configure 430 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for libogg 1.3.2.
  4. #
  5. # Report bugs to <[email protected]>.
  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 [email protected]
  259. $0: about your system, including any error possibly output
  260. $0: before this message. Then install a modern shell, or
  261. $0: manually run the script under such a shell if you do
  262. $0: 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='libogg'
  542. PACKAGE_TARNAME='libogg'
  543. PACKAGE_VERSION='1.3.2'
  544. PACKAGE_STRING='libogg 1.3.2'
  545. PACKAGE_BUGREPORT='[email protected]'
  546. PACKAGE_URL=''
  547. ac_unique_file="src/framing.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_subst_vars='am__EXEEXT_FALSE
  584. am__EXEEXT_TRUE
  585. LTLIBOBJS
  586. PROFILE
  587. DEBUG
  588. OPT
  589. SIZE64
  590. USIZE32
  591. SIZE32
  592. USIZE16
  593. SIZE16
  594. INCLUDE_SYS_TYPES_H
  595. INCLUDE_STDINT_H
  596. INCLUDE_INTTYPES_H
  597. LIBTOOL_DEPS
  598. LIBOBJS
  599. CPP
  600. OTOOL64
  601. OTOOL
  602. LIPO
  603. NMEDIT
  604. DSYMUTIL
  605. MANIFEST_TOOL
  606. RANLIB
  607. ac_ct_AR
  608. AR
  609. DLLTOOL
  610. OBJDUMP
  611. LN_S
  612. NM
  613. ac_ct_DUMPBIN
  614. DUMPBIN
  615. LD
  616. FGREP
  617. EGREP
  618. GREP
  619. SED
  620. host_os
  621. host_vendor
  622. host_cpu
  623. host
  624. build_os
  625. build_vendor
  626. build_cpu
  627. build
  628. LIBTOOL
  629. am__fastdepCC_FALSE
  630. am__fastdepCC_TRUE
  631. CCDEPMODE
  632. am__nodep
  633. AMDEPBACKSLASH
  634. AMDEP_FALSE
  635. AMDEP_TRUE
  636. am__quote
  637. am__include
  638. DEPDIR
  639. OBJEXT
  640. EXEEXT
  641. ac_ct_CC
  642. CPPFLAGS
  643. LDFLAGS
  644. CFLAGS
  645. CC
  646. LIB_AGE
  647. LIB_REVISION
  648. LIB_CURRENT
  649. MAINT
  650. MAINTAINER_MODE_FALSE
  651. MAINTAINER_MODE_TRUE
  652. AM_BACKSLASH
  653. AM_DEFAULT_VERBOSITY
  654. AM_DEFAULT_V
  655. AM_V
  656. am__untar
  657. am__tar
  658. AMTAR
  659. am__leading_dot
  660. SET_MAKE
  661. AWK
  662. mkdir_p
  663. MKDIR_P
  664. INSTALL_STRIP_PROGRAM
  665. STRIP
  666. install_sh
  667. MAKEINFO
  668. AUTOHEADER
  669. AUTOMAKE
  670. AUTOCONF
  671. ACLOCAL
  672. VERSION
  673. PACKAGE
  674. CYGPATH_W
  675. am__isrc
  676. INSTALL_DATA
  677. INSTALL_SCRIPT
  678. INSTALL_PROGRAM
  679. target_alias
  680. host_alias
  681. build_alias
  682. LIBS
  683. ECHO_T
  684. ECHO_N
  685. ECHO_C
  686. DEFS
  687. mandir
  688. localedir
  689. libdir
  690. psdir
  691. pdfdir
  692. dvidir
  693. htmldir
  694. infodir
  695. docdir
  696. oldincludedir
  697. includedir
  698. localstatedir
  699. sharedstatedir
  700. sysconfdir
  701. datadir
  702. datarootdir
  703. libexecdir
  704. sbindir
  705. bindir
  706. program_transform_name
  707. prefix
  708. exec_prefix
  709. PACKAGE_URL
  710. PACKAGE_BUGREPORT
  711. PACKAGE_STRING
  712. PACKAGE_VERSION
  713. PACKAGE_TARNAME
  714. PACKAGE_NAME
  715. PATH_SEPARATOR
  716. SHELL'
  717. ac_subst_files=''
  718. ac_user_opts='
  719. enable_option_checking
  720. enable_silent_rules
  721. enable_maintainer_mode
  722. enable_dependency_tracking
  723. enable_shared
  724. enable_static
  725. with_pic
  726. enable_fast_install
  727. with_gnu_ld
  728. with_sysroot
  729. enable_libtool_lock
  730. '
  731. ac_precious_vars='build_alias
  732. host_alias
  733. target_alias
  734. CC
  735. CFLAGS
  736. LDFLAGS
  737. LIBS
  738. CPPFLAGS
  739. CPP'
  740. # Initialize some variables set by options.
  741. ac_init_help=
  742. ac_init_version=false
  743. ac_unrecognized_opts=
  744. ac_unrecognized_sep=
  745. # The variables have the same names as the options, with
  746. # dashes changed to underlines.
  747. cache_file=/dev/null
  748. exec_prefix=NONE
  749. no_create=
  750. no_recursion=
  751. prefix=NONE
  752. program_prefix=NONE
  753. program_suffix=NONE
  754. program_transform_name=s,x,x,
  755. silent=
  756. site=
  757. srcdir=
  758. verbose=
  759. x_includes=NONE
  760. x_libraries=NONE
  761. # Installation directory options.
  762. # These are left unexpanded so users can "make install exec_prefix=/foo"
  763. # and all the variables that are supposed to be based on exec_prefix
  764. # by default will actually change.
  765. # Use braces instead of parens because sh, perl, etc. also accept them.
  766. # (The list follows the same order as the GNU Coding Standards.)
  767. bindir='${exec_prefix}/bin'
  768. sbindir='${exec_prefix}/sbin'
  769. libexecdir='${exec_prefix}/libexec'
  770. datarootdir='${prefix}/share'
  771. datadir='${datarootdir}'
  772. sysconfdir='${prefix}/etc'
  773. sharedstatedir='${prefix}/com'
  774. localstatedir='${prefix}/var'
  775. includedir='${prefix}/include'
  776. oldincludedir='/usr/include'
  777. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  778. infodir='${datarootdir}/info'
  779. htmldir='${docdir}'
  780. dvidir='${docdir}'
  781. pdfdir='${docdir}'
  782. psdir='${docdir}'
  783. libdir='${exec_prefix}/lib'
  784. localedir='${datarootdir}/locale'
  785. mandir='${datarootdir}/man'
  786. ac_prev=
  787. ac_dashdash=
  788. for ac_option
  789. do
  790. # If the previous option needs an argument, assign it.
  791. if test -n "$ac_prev"; then
  792. eval $ac_prev=\$ac_option
  793. ac_prev=
  794. continue
  795. fi
  796. case $ac_option in
  797. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  798. *=) ac_optarg= ;;
  799. *) ac_optarg=yes ;;
  800. esac
  801. # Accept the important Cygnus configure options, so we can diagnose typos.
  802. case $ac_dashdash$ac_option in
  803. --)
  804. ac_dashdash=yes ;;
  805. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  806. ac_prev=bindir ;;
  807. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  808. bindir=$ac_optarg ;;
  809. -build | --build | --buil | --bui | --bu)
  810. ac_prev=build_alias ;;
  811. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  812. build_alias=$ac_optarg ;;
  813. -cache-file | --cache-file | --cache-fil | --cache-fi \
  814. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  815. ac_prev=cache_file ;;
  816. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  817. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  818. cache_file=$ac_optarg ;;
  819. --config-cache | -C)
  820. cache_file=config.cache ;;
  821. -datadir | --datadir | --datadi | --datad)
  822. ac_prev=datadir ;;
  823. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  824. datadir=$ac_optarg ;;
  825. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  826. | --dataroo | --dataro | --datar)
  827. ac_prev=datarootdir ;;
  828. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  829. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  830. datarootdir=$ac_optarg ;;
  831. -disable-* | --disable-*)
  832. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  833. # Reject names that are not valid shell variable names.
  834. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  835. as_fn_error $? "invalid feature name: $ac_useropt"
  836. ac_useropt_orig=$ac_useropt
  837. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  838. case $ac_user_opts in
  839. *"
  840. "enable_$ac_useropt"
  841. "*) ;;
  842. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  843. ac_unrecognized_sep=', ';;
  844. esac
  845. eval enable_$ac_useropt=no ;;
  846. -docdir | --docdir | --docdi | --doc | --do)
  847. ac_prev=docdir ;;
  848. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  849. docdir=$ac_optarg ;;
  850. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  851. ac_prev=dvidir ;;
  852. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  853. dvidir=$ac_optarg ;;
  854. -enable-* | --enable-*)
  855. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  856. # Reject names that are not valid shell variable names.
  857. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  858. as_fn_error $? "invalid feature name: $ac_useropt"
  859. ac_useropt_orig=$ac_useropt
  860. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  861. case $ac_user_opts in
  862. *"
  863. "enable_$ac_useropt"
  864. "*) ;;
  865. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  866. ac_unrecognized_sep=', ';;
  867. esac
  868. eval enable_$ac_useropt=\$ac_optarg ;;
  869. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  870. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  871. | --exec | --exe | --ex)
  872. ac_prev=exec_prefix ;;
  873. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  874. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  875. | --exec=* | --exe=* | --ex=*)
  876. exec_prefix=$ac_optarg ;;
  877. -gas | --gas | --ga | --g)
  878. # Obsolete; use --with-gas.
  879. with_gas=yes ;;
  880. -help | --help | --hel | --he | -h)
  881. ac_init_help=long ;;
  882. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  883. ac_init_help=recursive ;;
  884. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  885. ac_init_help=short ;;
  886. -host | --host | --hos | --ho)
  887. ac_prev=host_alias ;;
  888. -host=* | --host=* | --hos=* | --ho=*)
  889. host_alias=$ac_optarg ;;
  890. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  891. ac_prev=htmldir ;;
  892. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  893. | --ht=*)
  894. htmldir=$ac_optarg ;;
  895. -includedir | --includedir | --includedi | --included | --include \
  896. | --includ | --inclu | --incl | --inc)
  897. ac_prev=includedir ;;
  898. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  899. | --includ=* | --inclu=* | --incl=* | --inc=*)
  900. includedir=$ac_optarg ;;
  901. -infodir | --infodir | --infodi | --infod | --info | --inf)
  902. ac_prev=infodir ;;
  903. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  904. infodir=$ac_optarg ;;
  905. -libdir | --libdir | --libdi | --libd)
  906. ac_prev=libdir ;;
  907. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  908. libdir=$ac_optarg ;;
  909. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  910. | --libexe | --libex | --libe)
  911. ac_prev=libexecdir ;;
  912. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  913. | --libexe=* | --libex=* | --libe=*)
  914. libexecdir=$ac_optarg ;;
  915. -localedir | --localedir | --localedi | --localed | --locale)
  916. ac_prev=localedir ;;
  917. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  918. localedir=$ac_optarg ;;
  919. -localstatedir | --localstatedir | --localstatedi | --localstated \
  920. | --localstate | --localstat | --localsta | --localst | --locals)
  921. ac_prev=localstatedir ;;
  922. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  923. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  924. localstatedir=$ac_optarg ;;
  925. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  926. ac_prev=mandir ;;
  927. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  928. mandir=$ac_optarg ;;
  929. -nfp | --nfp | --nf)
  930. # Obsolete; use --without-fp.
  931. with_fp=no ;;
  932. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  933. | --no-cr | --no-c | -n)
  934. no_create=yes ;;
  935. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  936. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  937. no_recursion=yes ;;
  938. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  939. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  940. | --oldin | --oldi | --old | --ol | --o)
  941. ac_prev=oldincludedir ;;
  942. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  943. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  944. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  945. oldincludedir=$ac_optarg ;;
  946. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  947. ac_prev=prefix ;;
  948. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  949. prefix=$ac_optarg ;;
  950. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  951. | --program-pre | --program-pr | --program-p)
  952. ac_prev=program_prefix ;;
  953. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  954. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  955. program_prefix=$ac_optarg ;;
  956. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  957. | --program-suf | --program-su | --program-s)
  958. ac_prev=program_suffix ;;
  959. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  960. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  961. program_suffix=$ac_optarg ;;
  962. -program-transform-name | --program-transform-name \
  963. | --program-transform-nam | --program-transform-na \
  964. | --program-transform-n | --program-transform- \
  965. | --program-transform | --program-transfor \
  966. | --program-transfo | --program-transf \
  967. | --program-trans | --program-tran \
  968. | --progr-tra | --program-tr | --program-t)
  969. ac_prev=program_transform_name ;;
  970. -program-transform-name=* | --program-transform-name=* \
  971. | --program-transform-nam=* | --program-transform-na=* \
  972. | --program-transform-n=* | --program-transform-=* \
  973. | --program-transform=* | --program-transfor=* \
  974. | --program-transfo=* | --program-transf=* \
  975. | --program-trans=* | --program-tran=* \
  976. | --progr-tra=* | --program-tr=* | --program-t=*)
  977. program_transform_name=$ac_optarg ;;
  978. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  979. ac_prev=pdfdir ;;
  980. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  981. pdfdir=$ac_optarg ;;
  982. -psdir | --psdir | --psdi | --psd | --ps)
  983. ac_prev=psdir ;;
  984. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  985. psdir=$ac_optarg ;;
  986. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  987. | -silent | --silent | --silen | --sile | --sil)
  988. silent=yes ;;
  989. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  990. ac_prev=sbindir ;;
  991. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  992. | --sbi=* | --sb=*)
  993. sbindir=$ac_optarg ;;
  994. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  995. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  996. | --sharedst | --shareds | --shared | --share | --shar \
  997. | --sha | --sh)
  998. ac_prev=sharedstatedir ;;
  999. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1000. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1001. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1002. | --sha=* | --sh=*)
  1003. sharedstatedir=$ac_optarg ;;
  1004. -site | --site | --sit)
  1005. ac_prev=site ;;
  1006. -site=* | --site=* | --sit=*)
  1007. site=$ac_optarg ;;
  1008. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1009. ac_prev=srcdir ;;
  1010. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1011. srcdir=$ac_optarg ;;
  1012. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1013. | --syscon | --sysco | --sysc | --sys | --sy)
  1014. ac_prev=sysconfdir ;;
  1015. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1016. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1017. sysconfdir=$ac_optarg ;;
  1018. -target | --target | --targe | --targ | --tar | --ta | --t)
  1019. ac_prev=target_alias ;;
  1020. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1021. target_alias=$ac_optarg ;;
  1022. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1023. verbose=yes ;;
  1024. -version | --version | --versio | --versi | --vers | -V)
  1025. ac_init_version=: ;;
  1026. -with-* | --with-*)
  1027. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1028. # Reject names that are not valid shell variable names.
  1029. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1030. as_fn_error $? "invalid package name: $ac_useropt"
  1031. ac_useropt_orig=$ac_useropt
  1032. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1033. case $ac_user_opts in
  1034. *"
  1035. "with_$ac_useropt"
  1036. "*) ;;
  1037. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1038. ac_unrecognized_sep=', ';;
  1039. esac
  1040. eval with_$ac_useropt=\$ac_optarg ;;
  1041. -without-* | --without-*)
  1042. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1043. # Reject names that are not valid shell variable names.
  1044. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1045. as_fn_error $? "invalid package name: $ac_useropt"
  1046. ac_useropt_orig=$ac_useropt
  1047. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1048. case $ac_user_opts in
  1049. *"
  1050. "with_$ac_useropt"
  1051. "*) ;;
  1052. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1053. ac_unrecognized_sep=', ';;
  1054. esac
  1055. eval with_$ac_useropt=no ;;
  1056. --x)
  1057. # Obsolete; use --with-x.
  1058. with_x=yes ;;
  1059. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1060. | --x-incl | --x-inc | --x-in | --x-i)
  1061. ac_prev=x_includes ;;
  1062. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1063. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1064. x_includes=$ac_optarg ;;
  1065. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1066. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1067. ac_prev=x_libraries ;;
  1068. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1069. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1070. x_libraries=$ac_optarg ;;
  1071. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1072. Try \`$0 --help' for more information"
  1073. ;;
  1074. *=*)
  1075. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1076. # Reject names that are not valid shell variable names.
  1077. case $ac_envvar in #(
  1078. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1079. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1080. esac
  1081. eval $ac_envvar=\$ac_optarg
  1082. export $ac_envvar ;;
  1083. *)
  1084. # FIXME: should be removed in autoconf 3.0.
  1085. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1086. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1087. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1088. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1089. ;;
  1090. esac
  1091. done
  1092. if test -n "$ac_prev"; then
  1093. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1094. as_fn_error $? "missing argument to $ac_option"
  1095. fi
  1096. if test -n "$ac_unrecognized_opts"; then
  1097. case $enable_option_checking in
  1098. no) ;;
  1099. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1100. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1101. esac
  1102. fi
  1103. # Check all directory arguments for consistency.
  1104. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1105. datadir sysconfdir sharedstatedir localstatedir includedir \
  1106. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1107. libdir localedir mandir
  1108. do
  1109. eval ac_val=\$$ac_var
  1110. # Remove trailing slashes.
  1111. case $ac_val in
  1112. */ )
  1113. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1114. eval $ac_var=\$ac_val;;
  1115. esac
  1116. # Be sure to have absolute directory names.
  1117. case $ac_val in
  1118. [\\/$]* | ?:[\\/]* ) continue;;
  1119. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1120. esac
  1121. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1122. done
  1123. # There might be people who depend on the old broken behavior: `$host'
  1124. # used to hold the argument of --host etc.
  1125. # FIXME: To remove some day.
  1126. build=$build_alias
  1127. host=$host_alias
  1128. target=$target_alias
  1129. # FIXME: To remove some day.
  1130. if test "x$host_alias" != x; then
  1131. if test "x$build_alias" = x; then
  1132. cross_compiling=maybe
  1133. elif test "x$build_alias" != "x$host_alias"; then
  1134. cross_compiling=yes
  1135. fi
  1136. fi
  1137. ac_tool_prefix=
  1138. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1139. test "$silent" = yes && exec 6>/dev/null
  1140. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1141. ac_ls_di=`ls -di .` &&
  1142. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1143. as_fn_error $? "working directory cannot be determined"
  1144. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1145. as_fn_error $? "pwd does not report name of working directory"
  1146. # Find the source files, if location was not specified.
  1147. if test -z "$srcdir"; then
  1148. ac_srcdir_defaulted=yes
  1149. # Try the directory containing this script, then the parent directory.
  1150. ac_confdir=`$as_dirname -- "$as_myself" ||
  1151. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1152. X"$as_myself" : 'X\(//\)[^/]' \| \
  1153. X"$as_myself" : 'X\(//\)$' \| \
  1154. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1155. $as_echo X"$as_myself" |
  1156. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1157. s//\1/
  1158. q
  1159. }
  1160. /^X\(\/\/\)[^/].*/{
  1161. s//\1/
  1162. q
  1163. }
  1164. /^X\(\/\/\)$/{
  1165. s//\1/
  1166. q
  1167. }
  1168. /^X\(\/\).*/{
  1169. s//\1/
  1170. q
  1171. }
  1172. s/.*/./; q'`
  1173. srcdir=$ac_confdir
  1174. if test ! -r "$srcdir/$ac_unique_file"; then
  1175. srcdir=..
  1176. fi
  1177. else
  1178. ac_srcdir_defaulted=no
  1179. fi
  1180. if test ! -r "$srcdir/$ac_unique_file"; then
  1181. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1182. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1183. fi
  1184. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1185. ac_abs_confdir=`(
  1186. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1187. pwd)`
  1188. # When building in place, set srcdir=.
  1189. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1190. srcdir=.
  1191. fi
  1192. # Remove unnecessary trailing slashes from srcdir.
  1193. # Double slashes in file names in object file debugging info
  1194. # mess up M-x gdb in Emacs.
  1195. case $srcdir in
  1196. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1197. esac
  1198. for ac_var in $ac_precious_vars; do
  1199. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1200. eval ac_env_${ac_var}_value=\$${ac_var}
  1201. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1202. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1203. done
  1204. #
  1205. # Report the --help message.
  1206. #
  1207. if test "$ac_init_help" = "long"; then
  1208. # Omit some internal or obsolete options to make the list less imposing.
  1209. # This message is too long to be a string in the A/UX 3.1 sh.
  1210. cat <<_ACEOF
  1211. \`configure' configures libogg 1.3.2 to adapt to many kinds of systems.
  1212. Usage: $0 [OPTION]... [VAR=VALUE]...
  1213. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1214. VAR=VALUE. See below for descriptions of some of the useful variables.
  1215. Defaults for the options are specified in brackets.
  1216. Configuration:
  1217. -h, --help display this help and exit
  1218. --help=short display options specific to this package
  1219. --help=recursive display the short help of all the included packages
  1220. -V, --version display version information and exit
  1221. -q, --quiet, --silent do not print \`checking ...' messages
  1222. --cache-file=FILE cache test results in FILE [disabled]
  1223. -C, --config-cache alias for \`--cache-file=config.cache'
  1224. -n, --no-create do not create output files
  1225. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1226. Installation directories:
  1227. --prefix=PREFIX install architecture-independent files in PREFIX
  1228. [$ac_default_prefix]
  1229. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1230. [PREFIX]
  1231. By default, \`make install' will install all the files in
  1232. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1233. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1234. for instance \`--prefix=\$HOME'.
  1235. For better control, use the options below.
  1236. Fine tuning of the installation directories:
  1237. --bindir=DIR user executables [EPREFIX/bin]
  1238. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1239. --libexecdir=DIR program executables [EPREFIX/libexec]
  1240. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1241. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1242. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1243. --libdir=DIR object code libraries [EPREFIX/lib]
  1244. --includedir=DIR C header files [PREFIX/include]
  1245. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1246. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1247. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1248. --infodir=DIR info documentation [DATAROOTDIR/info]
  1249. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1250. --mandir=DIR man documentation [DATAROOTDIR/man]
  1251. --docdir=DIR documentation root [DATAROOTDIR/doc/libogg]
  1252. --htmldir=DIR html documentation [DOCDIR]
  1253. --dvidir=DIR dvi documentation [DOCDIR]
  1254. --pdfdir=DIR pdf documentation [DOCDIR]
  1255. --psdir=DIR ps documentation [DOCDIR]
  1256. _ACEOF
  1257. cat <<\_ACEOF
  1258. Program names:
  1259. --program-prefix=PREFIX prepend PREFIX to installed program names
  1260. --program-suffix=SUFFIX append SUFFIX to installed program names
  1261. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1262. System types:
  1263. --build=BUILD configure for building on BUILD [guessed]
  1264. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1265. _ACEOF
  1266. fi
  1267. if test -n "$ac_init_help"; then
  1268. case $ac_init_help in
  1269. short | recursive ) echo "Configuration of libogg 1.3.2:";;
  1270. esac
  1271. cat <<\_ACEOF
  1272. Optional Features:
  1273. --disable-option-checking ignore unrecognized --enable/--with options
  1274. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1275. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1276. --enable-silent-rules less verbose build output (undo: "make V=1")
  1277. --disable-silent-rules verbose build output (undo: "make V=0")
  1278. --disable-maintainer-mode
  1279. disable make rules and dependencies not useful (and
  1280. sometimes confusing) to the casual installer
  1281. --enable-dependency-tracking
  1282. do not reject slow dependency extractors
  1283. --disable-dependency-tracking
  1284. speeds up one-time build
  1285. --enable-shared[=PKGS] build shared libraries [default=yes]
  1286. --enable-static[=PKGS] build static libraries [default=yes]
  1287. --enable-fast-install[=PKGS]
  1288. optimize for fast installation [default=yes]
  1289. --disable-libtool-lock avoid locking (might break parallel builds)
  1290. Optional Packages:
  1291. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1292. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1293. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1294. both]
  1295. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1296. --with-sysroot=DIR Search for dependent libraries within DIR
  1297. (or the compiler's sysroot if not specified).
  1298. Some influential environment variables:
  1299. CC C compiler command
  1300. CFLAGS C compiler flags
  1301. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1302. nonstandard directory <lib dir>
  1303. LIBS libraries to pass to the linker, e.g. -l<library>
  1304. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1305. you have headers in a nonstandard directory <include dir>
  1306. CPP C preprocessor
  1307. Use these variables to override the choices made by `configure' or to help
  1308. it to find libraries and programs with nonstandard names/locations.
  1309. Report bugs to <[email protected]>.
  1310. _ACEOF
  1311. ac_status=$?
  1312. fi
  1313. if test "$ac_init_help" = "recursive"; then
  1314. # If there are subdirs, report their specific --help.
  1315. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1316. test -d "$ac_dir" ||
  1317. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1318. continue
  1319. ac_builddir=.
  1320. case "$ac_dir" in
  1321. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1322. *)
  1323. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1324. # A ".." for each directory in $ac_dir_suffix.
  1325. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1326. case $ac_top_builddir_sub in
  1327. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1328. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1329. esac ;;
  1330. esac
  1331. ac_abs_top_builddir=$ac_pwd
  1332. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1333. # for backward compatibility:
  1334. ac_top_builddir=$ac_top_build_prefix
  1335. case $srcdir in
  1336. .) # We are building in place.
  1337. ac_srcdir=.
  1338. ac_top_srcdir=$ac_top_builddir_sub
  1339. ac_abs_top_srcdir=$ac_pwd ;;
  1340. [\\/]* | ?:[\\/]* ) # Absolute name.
  1341. ac_srcdir=$srcdir$ac_dir_suffix;
  1342. ac_top_srcdir=$srcdir
  1343. ac_abs_top_srcdir=$srcdir ;;
  1344. *) # Relative name.
  1345. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1346. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1347. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1348. esac
  1349. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1350. cd "$ac_dir" || { ac_status=$?; continue; }
  1351. # Check for guested configure.
  1352. if test -f "$ac_srcdir/configure.gnu"; then
  1353. echo &&
  1354. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1355. elif test -f "$ac_srcdir/configure"; then
  1356. echo &&
  1357. $SHELL "$ac_srcdir/configure" --help=recursive
  1358. else
  1359. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1360. fi || ac_status=$?
  1361. cd "$ac_pwd" || { ac_status=$?; break; }
  1362. done
  1363. fi
  1364. test -n "$ac_init_help" && exit $ac_status
  1365. if $ac_init_version; then
  1366. cat <<\_ACEOF
  1367. libogg configure 1.3.2
  1368. generated by GNU Autoconf 2.69
  1369. Copyright (C) 2012 Free Software Foundation, Inc.
  1370. This configure script is free software; the Free Software Foundation
  1371. gives unlimited permission to copy, distribute and modify it.
  1372. _ACEOF
  1373. exit
  1374. fi
  1375. ## ------------------------ ##
  1376. ## Autoconf initialization. ##
  1377. ## ------------------------ ##
  1378. # ac_fn_c_try_compile LINENO
  1379. # --------------------------
  1380. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1381. ac_fn_c_try_compile ()
  1382. {
  1383. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1384. rm -f conftest.$ac_objext
  1385. if { { ac_try="$ac_compile"
  1386. case "(($ac_try" in
  1387. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1388. *) ac_try_echo=$ac_try;;
  1389. esac
  1390. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1391. $as_echo "$ac_try_echo"; } >&5
  1392. (eval "$ac_compile") 2>conftest.err
  1393. ac_status=$?
  1394. if test -s conftest.err; then
  1395. grep -v '^ *+' conftest.err >conftest.er1
  1396. cat conftest.er1 >&5
  1397. mv -f conftest.er1 conftest.err
  1398. fi
  1399. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1400. test $ac_status = 0; } && {
  1401. test -z "$ac_c_werror_flag" ||
  1402. test ! -s conftest.err
  1403. } && test -s conftest.$ac_objext; then :
  1404. ac_retval=0
  1405. else
  1406. $as_echo "$as_me: failed program was:" >&5
  1407. sed 's/^/| /' conftest.$ac_ext >&5
  1408. ac_retval=1
  1409. fi
  1410. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1411. as_fn_set_status $ac_retval
  1412. } # ac_fn_c_try_compile
  1413. # ac_fn_c_try_link LINENO
  1414. # -----------------------
  1415. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1416. ac_fn_c_try_link ()
  1417. {
  1418. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1419. rm -f conftest.$ac_objext conftest$ac_exeext
  1420. if { { ac_try="$ac_link"
  1421. case "(($ac_try" in
  1422. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1423. *) ac_try_echo=$ac_try;;
  1424. esac
  1425. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1426. $as_echo "$ac_try_echo"; } >&5
  1427. (eval "$ac_link") 2>conftest.err
  1428. ac_status=$?
  1429. if test -s conftest.err; then
  1430. grep -v '^ *+' conftest.err >conftest.er1
  1431. cat conftest.er1 >&5
  1432. mv -f conftest.er1 conftest.err
  1433. fi
  1434. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1435. test $ac_status = 0; } && {
  1436. test -z "$ac_c_werror_flag" ||
  1437. test ! -s conftest.err
  1438. } && test -s conftest$ac_exeext && {
  1439. test "$cross_compiling" = yes ||
  1440. test -x conftest$ac_exeext
  1441. }; then :
  1442. ac_retval=0
  1443. else
  1444. $as_echo "$as_me: failed program was:" >&5
  1445. sed 's/^/| /' conftest.$ac_ext >&5
  1446. ac_retval=1
  1447. fi
  1448. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1449. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1450. # interfere with the next link command; also delete a directory that is
  1451. # left behind by Apple's compiler. We do this before executing the actions.
  1452. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1453. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1454. as_fn_set_status $ac_retval
  1455. } # ac_fn_c_try_link
  1456. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1457. # -------------------------------------------------------
  1458. # Tests whether HEADER exists and can be compiled using the include files in
  1459. # INCLUDES, setting the cache variable VAR accordingly.
  1460. ac_fn_c_check_header_compile ()
  1461. {
  1462. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1464. $as_echo_n "checking for $2... " >&6; }
  1465. if eval \${$3+:} false; then :
  1466. $as_echo_n "(cached) " >&6
  1467. else
  1468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1469. /* end confdefs.h. */
  1470. $4
  1471. #include <$2>
  1472. _ACEOF
  1473. if ac_fn_c_try_compile "$LINENO"; then :
  1474. eval "$3=yes"
  1475. else
  1476. eval "$3=no"
  1477. fi
  1478. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1479. fi
  1480. eval ac_res=\$$3
  1481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1482. $as_echo "$ac_res" >&6; }
  1483. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1484. } # ac_fn_c_check_header_compile
  1485. # ac_fn_c_try_cpp LINENO
  1486. # ----------------------
  1487. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1488. ac_fn_c_try_cpp ()
  1489. {
  1490. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1491. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1492. case "(($ac_try" in
  1493. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1494. *) ac_try_echo=$ac_try;;
  1495. esac
  1496. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1497. $as_echo "$ac_try_echo"; } >&5
  1498. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1499. ac_status=$?
  1500. if test -s conftest.err; then
  1501. grep -v '^ *+' conftest.err >conftest.er1
  1502. cat conftest.er1 >&5
  1503. mv -f conftest.er1 conftest.err
  1504. fi
  1505. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1506. test $ac_status = 0; } > conftest.i && {
  1507. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1508. test ! -s conftest.err
  1509. }; then :
  1510. ac_retval=0
  1511. else
  1512. $as_echo "$as_me: failed program was:" >&5
  1513. sed 's/^/| /' conftest.$ac_ext >&5
  1514. ac_retval=1
  1515. fi
  1516. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1517. as_fn_set_status $ac_retval
  1518. } # ac_fn_c_try_cpp
  1519. # ac_fn_c_try_run LINENO
  1520. # ----------------------
  1521. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1522. # that executables *can* be run.
  1523. ac_fn_c_try_run ()
  1524. {
  1525. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1526. if { { ac_try="$ac_link"
  1527. case "(($ac_try" in
  1528. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1529. *) ac_try_echo=$ac_try;;
  1530. esac
  1531. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1532. $as_echo "$ac_try_echo"; } >&5
  1533. (eval "$ac_link") 2>&5
  1534. ac_status=$?
  1535. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1536. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1537. { { case "(($ac_try" in
  1538. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1539. *) ac_try_echo=$ac_try;;
  1540. esac
  1541. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1542. $as_echo "$ac_try_echo"; } >&5
  1543. (eval "$ac_try") 2>&5
  1544. ac_status=$?
  1545. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1546. test $ac_status = 0; }; }; then :
  1547. ac_retval=0
  1548. else
  1549. $as_echo "$as_me: program exited with status $ac_status" >&5
  1550. $as_echo "$as_me: failed program was:" >&5
  1551. sed 's/^/| /' conftest.$ac_ext >&5
  1552. ac_retval=$ac_status
  1553. fi
  1554. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1555. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1556. as_fn_set_status $ac_retval
  1557. } # ac_fn_c_try_run
  1558. # ac_fn_c_check_func LINENO FUNC VAR
  1559. # ----------------------------------
  1560. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1561. ac_fn_c_check_func ()
  1562. {
  1563. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1565. $as_echo_n "checking for $2... " >&6; }
  1566. if eval \${$3+:} false; then :
  1567. $as_echo_n "(cached) " >&6
  1568. else
  1569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1570. /* end confdefs.h. */
  1571. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1572. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1573. #define $2 innocuous_$2
  1574. /* System header to define __stub macros and hopefully few prototypes,
  1575. which can conflict with char $2 (); below.
  1576. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1577. <limits.h> exists even on freestanding compilers. */
  1578. #ifdef __STDC__
  1579. # include <limits.h>
  1580. #else
  1581. # include <assert.h>
  1582. #endif
  1583. #undef $2
  1584. /* Override any GCC internal prototype to avoid an error.
  1585. Use char because int might match the return type of a GCC
  1586. builtin and then its argument prototype would still apply. */
  1587. #ifdef __cplusplus
  1588. extern "C"
  1589. #endif
  1590. char $2 ();
  1591. /* The GNU C library defines this for functions which it implements
  1592. to always fail with ENOSYS. Some functions are actually named
  1593. something starting with __ and the normal name is an alias. */
  1594. #if defined __stub_$2 || defined __stub___$2
  1595. choke me
  1596. #endif
  1597. int
  1598. main ()
  1599. {
  1600. return $2 ();
  1601. ;
  1602. return 0;
  1603. }
  1604. _ACEOF
  1605. if ac_fn_c_try_link "$LINENO"; then :
  1606. eval "$3=yes"
  1607. else
  1608. eval "$3=no"
  1609. fi
  1610. rm -f core conftest.err conftest.$ac_objext \
  1611. conftest$ac_exeext conftest.$ac_ext
  1612. fi
  1613. eval ac_res=\$$3
  1614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1615. $as_echo "$ac_res" >&6; }
  1616. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1617. } # ac_fn_c_check_func
  1618. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1619. # -------------------------------------------------------
  1620. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1621. # the include files in INCLUDES and setting the cache variable VAR
  1622. # accordingly.
  1623. ac_fn_c_check_header_mongrel ()
  1624. {
  1625. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1626. if eval \${$3+:} false; then :
  1627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1628. $as_echo_n "checking for $2... " >&6; }
  1629. if eval \${$3+:} false; then :
  1630. $as_echo_n "(cached) " >&6
  1631. fi
  1632. eval ac_res=\$$3
  1633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1634. $as_echo "$ac_res" >&6; }
  1635. else
  1636. # Is the header compilable?
  1637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1638. $as_echo_n "checking $2 usability... " >&6; }
  1639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1640. /* end confdefs.h. */
  1641. $4
  1642. #include <$2>
  1643. _ACEOF
  1644. if ac_fn_c_try_compile "$LINENO"; then :
  1645. ac_header_compiler=yes
  1646. else
  1647. ac_header_compiler=no
  1648. fi
  1649. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1651. $as_echo "$ac_header_compiler" >&6; }
  1652. # Is the header present?
  1653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1654. $as_echo_n "checking $2 presence... " >&6; }
  1655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1656. /* end confdefs.h. */
  1657. #include <$2>
  1658. _ACEOF
  1659. if ac_fn_c_try_cpp "$LINENO"; then :
  1660. ac_header_preproc=yes
  1661. else
  1662. ac_header_preproc=no
  1663. fi
  1664. rm -f conftest.err conftest.i conftest.$ac_ext
  1665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1666. $as_echo "$ac_header_preproc" >&6; }
  1667. # So? What about this header?
  1668. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1669. yes:no: )
  1670. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1671. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1672. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1673. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1674. ;;
  1675. no:yes:* )
  1676. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1677. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1678. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1679. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1680. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1681. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1682. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1683. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1684. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1685. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1686. ( $as_echo "## ------------------------------- ##
  1687. ## Report this to [email protected] ##
  1688. ## ------------------------------- ##"
  1689. ) | sed "s/^/$as_me: WARNING: /" >&2
  1690. ;;
  1691. esac
  1692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1693. $as_echo_n "checking for $2... " >&6; }
  1694. if eval \${$3+:} false; then :
  1695. $as_echo_n "(cached) " >&6
  1696. else
  1697. eval "$3=\$ac_header_compiler"
  1698. fi
  1699. eval ac_res=\$$3
  1700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1701. $as_echo "$ac_res" >&6; }
  1702. fi
  1703. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1704. } # ac_fn_c_check_header_mongrel
  1705. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1706. # --------------------------------------------
  1707. # Tries to find the compile-time value of EXPR in a program that includes
  1708. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1709. # computed
  1710. ac_fn_c_compute_int ()
  1711. {
  1712. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1713. if test "$cross_compiling" = yes; then
  1714. # Depending upon the size, compute the lo and hi bounds.
  1715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1716. /* end confdefs.h. */
  1717. $4
  1718. int
  1719. main ()
  1720. {
  1721. static int test_array [1 - 2 * !(($2) >= 0)];
  1722. test_array [0] = 0;
  1723. return test_array [0];
  1724. ;
  1725. return 0;
  1726. }
  1727. _ACEOF
  1728. if ac_fn_c_try_compile "$LINENO"; then :
  1729. ac_lo=0 ac_mid=0
  1730. while :; do
  1731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1732. /* end confdefs.h. */
  1733. $4
  1734. int
  1735. main ()
  1736. {
  1737. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1738. test_array [0] = 0;
  1739. return test_array [0];
  1740. ;
  1741. return 0;
  1742. }
  1743. _ACEOF
  1744. if ac_fn_c_try_compile "$LINENO"; then :
  1745. ac_hi=$ac_mid; break
  1746. else
  1747. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1748. if test $ac_lo -le $ac_mid; then
  1749. ac_lo= ac_hi=
  1750. break
  1751. fi
  1752. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1753. fi
  1754. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1755. done
  1756. else
  1757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1758. /* end confdefs.h. */
  1759. $4
  1760. int
  1761. main ()
  1762. {
  1763. static int test_array [1 - 2 * !(($2) < 0)];
  1764. test_array [0] = 0;
  1765. return test_array [0];
  1766. ;
  1767. return 0;
  1768. }
  1769. _ACEOF
  1770. if ac_fn_c_try_compile "$LINENO"; then :
  1771. ac_hi=-1 ac_mid=-1
  1772. while :; do
  1773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1774. /* end confdefs.h. */
  1775. $4
  1776. int
  1777. main ()
  1778. {
  1779. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1780. test_array [0] = 0;
  1781. return test_array [0];
  1782. ;
  1783. return 0;
  1784. }
  1785. _ACEOF
  1786. if ac_fn_c_try_compile "$LINENO"; then :
  1787. ac_lo=$ac_mid; break
  1788. else
  1789. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1790. if test $ac_mid -le $ac_hi; then
  1791. ac_lo= ac_hi=
  1792. break
  1793. fi
  1794. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1795. fi
  1796. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1797. done
  1798. else
  1799. ac_lo= ac_hi=
  1800. fi
  1801. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1802. fi
  1803. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1804. # Binary search between lo and hi bounds.
  1805. while test "x$ac_lo" != "x$ac_hi"; do
  1806. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1808. /* end confdefs.h. */
  1809. $4
  1810. int
  1811. main ()
  1812. {
  1813. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1814. test_array [0] = 0;
  1815. return test_array [0];
  1816. ;
  1817. return 0;
  1818. }
  1819. _ACEOF
  1820. if ac_fn_c_try_compile "$LINENO"; then :
  1821. ac_hi=$ac_mid
  1822. else
  1823. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1824. fi
  1825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1826. done
  1827. case $ac_lo in #((
  1828. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1829. '') ac_retval=1 ;;
  1830. esac
  1831. else
  1832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1833. /* end confdefs.h. */
  1834. $4
  1835. static long int longval () { return $2; }
  1836. static unsigned long int ulongval () { return $2; }
  1837. #include <stdio.h>
  1838. #include <stdlib.h>
  1839. int
  1840. main ()
  1841. {
  1842. FILE *f = fopen ("conftest.val", "w");
  1843. if (! f)
  1844. return 1;
  1845. if (($2) < 0)
  1846. {
  1847. long int i = longval ();
  1848. if (i != ($2))
  1849. return 1;
  1850. fprintf (f, "%ld", i);
  1851. }
  1852. else
  1853. {
  1854. unsigned long int i = ulongval ();
  1855. if (i != ($2))
  1856. return 1;
  1857. fprintf (f, "%lu", i);
  1858. }
  1859. /* Do not output a trailing newline, as this causes \r\n confusion
  1860. on some platforms. */
  1861. return ferror (f) || fclose (f) != 0;
  1862. ;
  1863. return 0;
  1864. }
  1865. _ACEOF
  1866. if ac_fn_c_try_run "$LINENO"; then :
  1867. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1868. else
  1869. ac_retval=1
  1870. fi
  1871. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1872. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1873. rm -f conftest.val
  1874. fi
  1875. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1876. as_fn_set_status $ac_retval
  1877. } # ac_fn_c_compute_int
  1878. cat >config.log <<_ACEOF
  1879. This file contains any messages produced by compilers while
  1880. running configure, to aid debugging if configure makes a mistake.
  1881. It was created by libogg $as_me 1.3.2, which was
  1882. generated by GNU Autoconf 2.69. Invocation command line was
  1883. $ $0 $@
  1884. _ACEOF
  1885. exec 5>>config.log
  1886. {
  1887. cat <<_ASUNAME
  1888. ## --------- ##
  1889. ## Platform. ##
  1890. ## --------- ##
  1891. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1892. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1893. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1894. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1895. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1896. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1897. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1898. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1899. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1900. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1901. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1902. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1903. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1904. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1905. _ASUNAME
  1906. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1907. for as_dir in $PATH
  1908. do
  1909. IFS=$as_save_IFS
  1910. test -z "$as_dir" && as_dir=.
  1911. $as_echo "PATH: $as_dir"
  1912. done
  1913. IFS=$as_save_IFS
  1914. } >&5
  1915. cat >&5 <<_ACEOF
  1916. ## ----------- ##
  1917. ## Core tests. ##
  1918. ## ----------- ##
  1919. _ACEOF
  1920. # Keep a trace of the command line.
  1921. # Strip out --no-create and --no-recursion so they do not pile up.
  1922. # Strip out --silent because we don't want to record it for future runs.
  1923. # Also quote any args containing shell meta-characters.
  1924. # Make two passes to allow for proper duplicate-argument suppression.
  1925. ac_configure_args=
  1926. ac_configure_args0=
  1927. ac_configure_args1=
  1928. ac_must_keep_next=false
  1929. for ac_pass in 1 2
  1930. do
  1931. for ac_arg
  1932. do
  1933. case $ac_arg in
  1934. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1935. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1936. | -silent | --silent | --silen | --sile | --sil)
  1937. continue ;;
  1938. *\'*)
  1939. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1940. esac
  1941. case $ac_pass in
  1942. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1943. 2)
  1944. as_fn_append ac_configure_args1 " '$ac_arg'"
  1945. if test $ac_must_keep_next = true; then
  1946. ac_must_keep_next=false # Got value, back to normal.
  1947. else
  1948. case $ac_arg in
  1949. *=* | --config-cache | -C | -disable-* | --disable-* \
  1950. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1951. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1952. | -with-* | --with-* | -without-* | --without-* | --x)
  1953. case "$ac_configure_args0 " in
  1954. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1955. esac
  1956. ;;
  1957. -* ) ac_must_keep_next=true ;;
  1958. esac
  1959. fi
  1960. as_fn_append ac_configure_args " '$ac_arg'"
  1961. ;;
  1962. esac
  1963. done
  1964. done
  1965. { ac_configure_args0=; unset ac_configure_args0;}
  1966. { ac_configure_args1=; unset ac_configure_args1;}
  1967. # When interrupted or exit'd, cleanup temporary files, and complete
  1968. # config.log. We remove comments because anyway the quotes in there
  1969. # would cause problems or look ugly.
  1970. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1971. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1972. trap 'exit_status=$?
  1973. # Save into config.log some information that might help in debugging.
  1974. {
  1975. echo
  1976. $as_echo "## ---------------- ##
  1977. ## Cache variables. ##
  1978. ## ---------------- ##"
  1979. echo
  1980. # The following way of writing the cache mishandles newlines in values,
  1981. (
  1982. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1983. eval ac_val=\$$ac_var
  1984. case $ac_val in #(
  1985. *${as_nl}*)
  1986. case $ac_var in #(
  1987. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1988. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1989. esac
  1990. case $ac_var in #(
  1991. _ | IFS | as_nl) ;; #(
  1992. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1993. *) { eval $ac_var=; unset $ac_var;} ;;
  1994. esac ;;
  1995. esac
  1996. done
  1997. (set) 2>&1 |
  1998. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1999. *${as_nl}ac_space=\ *)
  2000. sed -n \
  2001. "s/'\''/'\''\\\\'\'''\''/g;
  2002. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2003. ;; #(
  2004. *)
  2005. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2006. ;;
  2007. esac |
  2008. sort
  2009. )
  2010. echo
  2011. $as_echo "## ----------------- ##
  2012. ## Output variables. ##
  2013. ## ----------------- ##"
  2014. echo
  2015. for ac_var in $ac_subst_vars
  2016. do
  2017. eval ac_val=\$$ac_var
  2018. case $ac_val in
  2019. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2020. esac
  2021. $as_echo "$ac_var='\''$ac_val'\''"
  2022. done | sort
  2023. echo
  2024. if test -n "$ac_subst_files"; then
  2025. $as_echo "## ------------------- ##
  2026. ## File substitutions. ##
  2027. ## ------------------- ##"
  2028. echo
  2029. for ac_var in $ac_subst_files
  2030. do
  2031. eval ac_val=\$$ac_var
  2032. case $ac_val in
  2033. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2034. esac
  2035. $as_echo "$ac_var='\''$ac_val'\''"
  2036. done | sort
  2037. echo
  2038. fi
  2039. if test -s confdefs.h; then
  2040. $as_echo "## ----------- ##
  2041. ## confdefs.h. ##
  2042. ## ----------- ##"
  2043. echo
  2044. cat confdefs.h
  2045. echo
  2046. fi
  2047. test "$ac_signal" != 0 &&
  2048. $as_echo "$as_me: caught signal $ac_signal"
  2049. $as_echo "$as_me: exit $exit_status"
  2050. } >&5
  2051. rm -f core *.core core.conftest.* &&
  2052. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2053. exit $exit_status
  2054. ' 0
  2055. for ac_signal in 1 2 13 15; do
  2056. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2057. done
  2058. ac_signal=0
  2059. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2060. rm -f -r conftest* confdefs.h
  2061. $as_echo "/* confdefs.h */" > confdefs.h
  2062. # Predefined preprocessor variables.
  2063. cat >>confdefs.h <<_ACEOF
  2064. #define PACKAGE_NAME "$PACKAGE_NAME"
  2065. _ACEOF
  2066. cat >>confdefs.h <<_ACEOF
  2067. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2068. _ACEOF
  2069. cat >>confdefs.h <<_ACEOF
  2070. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2071. _ACEOF
  2072. cat >>confdefs.h <<_ACEOF
  2073. #define PACKAGE_STRING "$PACKAGE_STRING"
  2074. _ACEOF
  2075. cat >>confdefs.h <<_ACEOF
  2076. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2077. _ACEOF
  2078. cat >>confdefs.h <<_ACEOF
  2079. #define PACKAGE_URL "$PACKAGE_URL"
  2080. _ACEOF
  2081. # Let the site file select an alternate cache file if it wants to.
  2082. # Prefer an explicitly selected file to automatically selected ones.
  2083. ac_site_file1=NONE
  2084. ac_site_file2=NONE
  2085. if test -n "$CONFIG_SITE"; then
  2086. # We do not want a PATH search for config.site.
  2087. case $CONFIG_SITE in #((
  2088. -*) ac_site_file1=./$CONFIG_SITE;;
  2089. */*) ac_site_file1=$CONFIG_SITE;;
  2090. *) ac_site_file1=./$CONFIG_SITE;;
  2091. esac
  2092. elif test "x$prefix" != xNONE; then
  2093. ac_site_file1=$prefix/share/config.site
  2094. ac_site_file2=$prefix/etc/config.site
  2095. else
  2096. ac_site_file1=$ac_default_prefix/share/config.site
  2097. ac_site_file2=$ac_default_prefix/etc/config.site
  2098. fi
  2099. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2100. do
  2101. test "x$ac_site_file" = xNONE && continue
  2102. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2103. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2104. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2105. sed 's/^/| /' "$ac_site_file" >&5
  2106. . "$ac_site_file" \
  2107. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2108. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2109. as_fn_error $? "failed to load site script $ac_site_file
  2110. See \`config.log' for more details" "$LINENO" 5; }
  2111. fi
  2112. done
  2113. if test -r "$cache_file"; then
  2114. # Some versions of bash will fail to source /dev/null (special files
  2115. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2116. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2117. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2118. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2119. case $cache_file in
  2120. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2121. *) . "./$cache_file";;
  2122. esac
  2123. fi
  2124. else
  2125. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2126. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2127. >$cache_file
  2128. fi
  2129. # Check that the precious variables saved in the cache have kept the same
  2130. # value.
  2131. ac_cache_corrupted=false
  2132. for ac_var in $ac_precious_vars; do
  2133. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2134. eval ac_new_set=\$ac_env_${ac_var}_set
  2135. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2136. eval ac_new_val=\$ac_env_${ac_var}_value
  2137. case $ac_old_set,$ac_new_set in
  2138. set,)
  2139. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2140. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2141. ac_cache_corrupted=: ;;
  2142. ,set)
  2143. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2144. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2145. ac_cache_corrupted=: ;;
  2146. ,);;
  2147. *)
  2148. if test "x$ac_old_val" != "x$ac_new_val"; then
  2149. # differences in whitespace do not lead to failure.
  2150. ac_old_val_w=`echo x $ac_old_val`
  2151. ac_new_val_w=`echo x $ac_new_val`
  2152. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2153. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2154. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2155. ac_cache_corrupted=:
  2156. else
  2157. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2158. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2159. eval $ac_var=\$ac_old_val
  2160. fi
  2161. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2162. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2163. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2164. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2165. fi;;
  2166. esac
  2167. # Pass precious variables to config.status.
  2168. if test "$ac_new_set" = set; then
  2169. case $ac_new_val in
  2170. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2171. *) ac_arg=$ac_var=$ac_new_val ;;
  2172. esac
  2173. case " $ac_configure_args " in
  2174. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2175. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2176. esac
  2177. fi
  2178. done
  2179. if $ac_cache_corrupted; then
  2180. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2181. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2182. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2183. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2184. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2185. fi
  2186. ## -------------------- ##
  2187. ## Main body of script. ##
  2188. ## -------------------- ##
  2189. ac_ext=c
  2190. ac_cpp='$CPP $CPPFLAGS'
  2191. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2192. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2193. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2194. am__api_version='1.13'
  2195. ac_aux_dir=
  2196. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2197. if test -f "$ac_dir/install-sh"; then
  2198. ac_aux_dir=$ac_dir
  2199. ac_install_sh="$ac_aux_dir/install-sh -c"
  2200. break
  2201. elif test -f "$ac_dir/install.sh"; then
  2202. ac_aux_dir=$ac_dir
  2203. ac_install_sh="$ac_aux_dir/install.sh -c"
  2204. break
  2205. elif test -f "$ac_dir/shtool"; then
  2206. ac_aux_dir=$ac_dir
  2207. ac_install_sh="$ac_aux_dir/shtool install -c"
  2208. break
  2209. fi
  2210. done
  2211. if test -z "$ac_aux_dir"; then
  2212. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2213. fi
  2214. # These three variables are undocumented and unsupported,
  2215. # and are intended to be withdrawn in a future Autoconf release.
  2216. # They can cause serious problems if a builder's source tree is in a directory
  2217. # whose full name contains unusual characters.
  2218. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2219. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2220. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2221. # Find a good install program. We prefer a C program (faster),
  2222. # so one script is as good as another. But avoid the broken or
  2223. # incompatible versions:
  2224. # SysV /etc/install, /usr/sbin/install
  2225. # SunOS /usr/etc/install
  2226. # IRIX /sbin/install
  2227. # AIX /bin/install
  2228. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2229. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2230. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2231. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2232. # OS/2's system install, which has a completely different semantic
  2233. # ./install, which can be erroneously created by make from ./install.sh.
  2234. # Reject install programs that cannot install multiple files.
  2235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2236. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2237. if test -z "$INSTALL"; then
  2238. if ${ac_cv_path_install+:} false; then :
  2239. $as_echo_n "(cached) " >&6
  2240. else
  2241. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2242. for as_dir in $PATH
  2243. do
  2244. IFS=$as_save_IFS
  2245. test -z "$as_dir" && as_dir=.
  2246. # Account for people who put trailing slashes in PATH elements.
  2247. case $as_dir/ in #((
  2248. ./ | .// | /[cC]/* | \
  2249. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2250. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2251. /usr/ucb/* ) ;;
  2252. *)
  2253. # OSF1 and SCO ODT 3.0 have their own names for install.
  2254. # Don't use installbsd from OSF since it installs stuff as root
  2255. # by default.
  2256. for ac_prog in ginstall scoinst install; do
  2257. for ac_exec_ext in '' $ac_executable_extensions; do
  2258. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2259. if test $ac_prog = install &&
  2260. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2261. # AIX install. It has an incompatible calling convention.
  2262. :
  2263. elif test $ac_prog = install &&
  2264. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2265. # program-specific install script used by HP pwplus--don't use.
  2266. :
  2267. else
  2268. rm -rf conftest.one conftest.two conftest.dir
  2269. echo one > conftest.one
  2270. echo two > conftest.two
  2271. mkdir conftest.dir
  2272. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2273. test -s conftest.one && test -s conftest.two &&
  2274. test -s conftest.dir/conftest.one &&
  2275. test -s conftest.dir/conftest.two
  2276. then
  2277. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2278. break 3
  2279. fi
  2280. fi
  2281. fi
  2282. done
  2283. done
  2284. ;;
  2285. esac
  2286. done
  2287. IFS=$as_save_IFS
  2288. rm -rf conftest.one conftest.two conftest.dir
  2289. fi
  2290. if test "${ac_cv_path_install+set}" = set; then
  2291. INSTALL=$ac_cv_path_install
  2292. else
  2293. # As a last resort, use the slow shell script. Don't cache a
  2294. # value for INSTALL within a source directory, because that will
  2295. # break other packages using the cache if that directory is
  2296. # removed, or if the value is a relative name.
  2297. INSTALL=$ac_install_sh
  2298. fi
  2299. fi
  2300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2301. $as_echo "$INSTALL" >&6; }
  2302. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2303. # It thinks the first close brace ends the variable substitution.
  2304. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2305. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2306. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2308. $as_echo_n "checking whether build environment is sane... " >&6; }
  2309. # Reject unsafe characters in $srcdir or the absolute working directory
  2310. # name. Accept space and tab only in the latter.
  2311. am_lf='
  2312. '
  2313. case `pwd` in
  2314. *[\\\"\#\$\&\'\`$am_lf]*)
  2315. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2316. esac
  2317. case $srcdir in
  2318. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2319. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2320. esac
  2321. # Do 'set' in a subshell so we don't clobber the current shell's
  2322. # arguments. Must try -L first in case configure is actually a
  2323. # symlink; some systems play weird games with the mod time of symlinks
  2324. # (eg FreeBSD returns the mod time of the symlink's containing
  2325. # directory).
  2326. if (
  2327. am_has_slept=no
  2328. for am_try in 1 2; do
  2329. echo "timestamp, slept: $am_has_slept" > conftest.file
  2330. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2331. if test "$*" = "X"; then
  2332. # -L didn't work.
  2333. set X `ls -t "$srcdir/configure" conftest.file`
  2334. fi
  2335. if test "$*" != "X $srcdir/configure conftest.file" \
  2336. && test "$*" != "X conftest.file $srcdir/configure"; then
  2337. # If neither matched, then we have a broken ls. This can happen
  2338. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2339. # broken ls alias from the environment. This has actually
  2340. # happened. Such a system could not be considered "sane".
  2341. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2342. alias in your environment" "$LINENO" 5
  2343. fi
  2344. if test "$2" = conftest.file || test $am_try -eq 2; then
  2345. break
  2346. fi
  2347. # Just in case.
  2348. sleep 1
  2349. am_has_slept=yes
  2350. done
  2351. test "$2" = conftest.file
  2352. )
  2353. then
  2354. # Ok.
  2355. :
  2356. else
  2357. as_fn_error $? "newly created file is older than distributed files!
  2358. Check your system clock" "$LINENO" 5
  2359. fi
  2360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2361. $as_echo "yes" >&6; }
  2362. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2363. # generated files are strictly newer.
  2364. am_sleep_pid=
  2365. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2366. ( sleep 1 ) &
  2367. am_sleep_pid=$!
  2368. fi
  2369. rm -f conftest.file
  2370. test "$program_prefix" != NONE &&
  2371. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2372. # Use a double $ so make ignores it.
  2373. test "$program_suffix" != NONE &&
  2374. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2375. # Double any \ or $.
  2376. # By default was `s,x,x', remove it if useless.
  2377. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2378. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2379. # expand $ac_aux_dir to an absolute path
  2380. am_aux_dir=`cd $ac_aux_dir && pwd`
  2381. if test x"${MISSING+set}" != xset; then
  2382. case $am_aux_dir in
  2383. *\ * | *\ *)
  2384. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2385. *)
  2386. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2387. esac
  2388. fi
  2389. # Use eval to expand $SHELL
  2390. if eval "$MISSING --is-lightweight"; then
  2391. am_missing_run="$MISSING "
  2392. else
  2393. am_missing_run=
  2394. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2395. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2396. fi
  2397. if test x"${install_sh}" != xset; then
  2398. case $am_aux_dir in
  2399. *\ * | *\ *)
  2400. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2401. *)
  2402. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2403. esac
  2404. fi
  2405. # Installed binaries are usually stripped using 'strip' when the user
  2406. # run "make install-strip". However 'strip' might not be the right
  2407. # tool to use in cross-compilation environments, therefore Automake
  2408. # will honor the 'STRIP' environment variable to overrule this program.
  2409. if test "$cross_compiling" != no; then
  2410. if test -n "$ac_tool_prefix"; then
  2411. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2412. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2414. $as_echo_n "checking for $ac_word... " >&6; }
  2415. if ${ac_cv_prog_STRIP+:} false; then :
  2416. $as_echo_n "(cached) " >&6
  2417. else
  2418. if test -n "$STRIP"; then
  2419. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2420. else
  2421. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2422. for as_dir in $PATH
  2423. do
  2424. IFS=$as_save_IFS
  2425. test -z "$as_dir" && as_dir=.
  2426. for ac_exec_ext in '' $ac_executable_extensions; do
  2427. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2428. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2429. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2430. break 2
  2431. fi
  2432. done
  2433. done
  2434. IFS=$as_save_IFS
  2435. fi
  2436. fi
  2437. STRIP=$ac_cv_prog_STRIP
  2438. if test -n "$STRIP"; then
  2439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2440. $as_echo "$STRIP" >&6; }
  2441. else
  2442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2443. $as_echo "no" >&6; }
  2444. fi
  2445. fi
  2446. if test -z "$ac_cv_prog_STRIP"; then
  2447. ac_ct_STRIP=$STRIP
  2448. # Extract the first word of "strip", so it can be a program name with args.
  2449. set dummy strip; ac_word=$2
  2450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2451. $as_echo_n "checking for $ac_word... " >&6; }
  2452. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2453. $as_echo_n "(cached) " >&6
  2454. else
  2455. if test -n "$ac_ct_STRIP"; then
  2456. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2457. else
  2458. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2459. for as_dir in $PATH
  2460. do
  2461. IFS=$as_save_IFS
  2462. test -z "$as_dir" && as_dir=.
  2463. for ac_exec_ext in '' $ac_executable_extensions; do
  2464. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2465. ac_cv_prog_ac_ct_STRIP="strip"
  2466. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2467. break 2
  2468. fi
  2469. done
  2470. done
  2471. IFS=$as_save_IFS
  2472. fi
  2473. fi
  2474. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2475. if test -n "$ac_ct_STRIP"; then
  2476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2477. $as_echo "$ac_ct_STRIP" >&6; }
  2478. else
  2479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2480. $as_echo "no" >&6; }
  2481. fi
  2482. if test "x$ac_ct_STRIP" = x; then
  2483. STRIP=":"
  2484. else
  2485. case $cross_compiling:$ac_tool_warned in
  2486. yes:)
  2487. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2488. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2489. ac_tool_warned=yes ;;
  2490. esac
  2491. STRIP=$ac_ct_STRIP
  2492. fi
  2493. else
  2494. STRIP="$ac_cv_prog_STRIP"
  2495. fi
  2496. fi
  2497. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2499. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2500. if test -z "$MKDIR_P"; then
  2501. if ${ac_cv_path_mkdir+:} false; then :
  2502. $as_echo_n "(cached) " >&6
  2503. else
  2504. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2505. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2506. do
  2507. IFS=$as_save_IFS
  2508. test -z "$as_dir" && as_dir=.
  2509. for ac_prog in mkdir gmkdir; do
  2510. for ac_exec_ext in '' $ac_executable_extensions; do
  2511. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2512. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2513. 'mkdir (GNU coreutils) '* | \
  2514. 'mkdir (coreutils) '* | \
  2515. 'mkdir (fileutils) '4.1*)
  2516. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2517. break 3;;
  2518. esac
  2519. done
  2520. done
  2521. done
  2522. IFS=$as_save_IFS
  2523. fi
  2524. test -d ./--version && rmdir ./--version
  2525. if test "${ac_cv_path_mkdir+set}" = set; then
  2526. MKDIR_P="$ac_cv_path_mkdir -p"
  2527. else
  2528. # As a last resort, use the slow shell script. Don't cache a
  2529. # value for MKDIR_P within a source directory, because that will
  2530. # break other packages using the cache if that directory is
  2531. # removed, or if the value is a relative name.
  2532. MKDIR_P="$ac_install_sh -d"
  2533. fi
  2534. fi
  2535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2536. $as_echo "$MKDIR_P" >&6; }
  2537. for ac_prog in gawk mawk nawk awk
  2538. do
  2539. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2540. set dummy $ac_prog; ac_word=$2
  2541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2542. $as_echo_n "checking for $ac_word... " >&6; }
  2543. if ${ac_cv_prog_AWK+:} false; then :
  2544. $as_echo_n "(cached) " >&6
  2545. else
  2546. if test -n "$AWK"; then
  2547. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2548. else
  2549. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2550. for as_dir in $PATH
  2551. do
  2552. IFS=$as_save_IFS
  2553. test -z "$as_dir" && as_dir=.
  2554. for ac_exec_ext in '' $ac_executable_extensions; do
  2555. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2556. ac_cv_prog_AWK="$ac_prog"
  2557. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2558. break 2
  2559. fi
  2560. done
  2561. done
  2562. IFS=$as_save_IFS
  2563. fi
  2564. fi
  2565. AWK=$ac_cv_prog_AWK
  2566. if test -n "$AWK"; then
  2567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2568. $as_echo "$AWK" >&6; }
  2569. else
  2570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2571. $as_echo "no" >&6; }
  2572. fi
  2573. test -n "$AWK" && break
  2574. done
  2575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2576. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2577. set x ${MAKE-make}
  2578. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2579. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2580. $as_echo_n "(cached) " >&6
  2581. else
  2582. cat >conftest.make <<\_ACEOF
  2583. SHELL = /bin/sh
  2584. all:
  2585. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2586. _ACEOF
  2587. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2588. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2589. *@@@%%%=?*=@@@%%%*)
  2590. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2591. *)
  2592. eval ac_cv_prog_make_${ac_make}_set=no;;
  2593. esac
  2594. rm -f conftest.make
  2595. fi
  2596. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2598. $as_echo "yes" >&6; }
  2599. SET_MAKE=
  2600. else
  2601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2602. $as_echo "no" >&6; }
  2603. SET_MAKE="MAKE=${MAKE-make}"
  2604. fi
  2605. rm -rf .tst 2>/dev/null
  2606. mkdir .tst 2>/dev/null
  2607. if test -d .tst; then
  2608. am__leading_dot=.
  2609. else
  2610. am__leading_dot=_
  2611. fi
  2612. rmdir .tst 2>/dev/null
  2613. # Check whether --enable-silent-rules was given.
  2614. if test "${enable_silent_rules+set}" = set; then :
  2615. enableval=$enable_silent_rules;
  2616. fi
  2617. case $enable_silent_rules in # (((
  2618. yes) AM_DEFAULT_VERBOSITY=0;;
  2619. no) AM_DEFAULT_VERBOSITY=1;;
  2620. *) AM_DEFAULT_VERBOSITY=1;;
  2621. esac
  2622. am_make=${MAKE-make}
  2623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2624. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2625. if ${am_cv_make_support_nested_variables+:} false; then :
  2626. $as_echo_n "(cached) " >&6
  2627. else
  2628. if $as_echo 'TRUE=$(BAR$(V))
  2629. BAR0=false
  2630. BAR1=true
  2631. V=1
  2632. am__doit:
  2633. @$(TRUE)
  2634. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2635. am_cv_make_support_nested_variables=yes
  2636. else
  2637. am_cv_make_support_nested_variables=no
  2638. fi
  2639. fi
  2640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2641. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2642. if test $am_cv_make_support_nested_variables = yes; then
  2643. AM_V='$(V)'
  2644. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2645. else
  2646. AM_V=$AM_DEFAULT_VERBOSITY
  2647. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2648. fi
  2649. AM_BACKSLASH='\'
  2650. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2651. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2652. # is not polluted with repeated "-I."
  2653. am__isrc=' -I$(srcdir)'
  2654. # test to see if srcdir already configured
  2655. if test -f $srcdir/config.status; then
  2656. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2657. fi
  2658. fi
  2659. # test whether we have cygpath
  2660. if test -z "$CYGPATH_W"; then
  2661. if (cygpath --version) >/dev/null 2>/dev/null; then
  2662. CYGPATH_W='cygpath -w'
  2663. else
  2664. CYGPATH_W=echo
  2665. fi
  2666. fi
  2667. # Define the identity of the package.
  2668. PACKAGE='libogg'
  2669. VERSION='1.3.2'
  2670. cat >>confdefs.h <<_ACEOF
  2671. #define PACKAGE "$PACKAGE"
  2672. _ACEOF
  2673. cat >>confdefs.h <<_ACEOF
  2674. #define VERSION "$VERSION"
  2675. _ACEOF
  2676. # Some tools Automake needs.
  2677. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2678. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2679. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2680. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2681. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2682. # For better backward compatibility. To be removed once Automake 1.9.x
  2683. # dies out for good. For more background, see:
  2684. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2685. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2686. mkdir_p='$(MKDIR_P)'
  2687. # We need awk for the "check" target. The system "awk" is bad on
  2688. # some platforms.
  2689. # Always define AMTAR for backward compatibility. Yes, it's still used
  2690. # in the wild :-( We should find a proper way to deprecate it ...
  2691. AMTAR='$${TAR-tar}'
  2692. # We'll loop over all known methods to create a tar archive until one works.
  2693. _am_tools='gnutar pax cpio none'
  2694. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2696. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2697. # Check whether --enable-maintainer-mode was given.
  2698. if test "${enable_maintainer_mode+set}" = set; then :
  2699. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2700. else
  2701. USE_MAINTAINER_MODE=yes
  2702. fi
  2703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2704. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2705. if test $USE_MAINTAINER_MODE = yes; then
  2706. MAINTAINER_MODE_TRUE=
  2707. MAINTAINER_MODE_FALSE='#'
  2708. else
  2709. MAINTAINER_MODE_TRUE='#'
  2710. MAINTAINER_MODE_FALSE=
  2711. fi
  2712. MAINT=$MAINTAINER_MODE_TRUE
  2713. LIB_CURRENT=8
  2714. LIB_REVISION=2
  2715. LIB_AGE=8
  2716. ac_ext=c
  2717. ac_cpp='$CPP $CPPFLAGS'
  2718. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2719. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2720. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2721. if test -n "$ac_tool_prefix"; then
  2722. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2723. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2725. $as_echo_n "checking for $ac_word... " >&6; }
  2726. if ${ac_cv_prog_CC+:} false; then :
  2727. $as_echo_n "(cached) " >&6
  2728. else
  2729. if test -n "$CC"; then
  2730. ac_cv_prog_CC="$CC" # Let the user override the test.
  2731. else
  2732. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2733. for as_dir in $PATH
  2734. do
  2735. IFS=$as_save_IFS
  2736. test -z "$as_dir" && as_dir=.
  2737. for ac_exec_ext in '' $ac_executable_extensions; do
  2738. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2739. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2740. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2741. break 2
  2742. fi
  2743. done
  2744. done
  2745. IFS=$as_save_IFS
  2746. fi
  2747. fi
  2748. CC=$ac_cv_prog_CC
  2749. if test -n "$CC"; then
  2750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2751. $as_echo "$CC" >&6; }
  2752. else
  2753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2754. $as_echo "no" >&6; }
  2755. fi
  2756. fi
  2757. if test -z "$ac_cv_prog_CC"; then
  2758. ac_ct_CC=$CC
  2759. # Extract the first word of "gcc", so it can be a program name with args.
  2760. set dummy gcc; ac_word=$2
  2761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2762. $as_echo_n "checking for $ac_word... " >&6; }
  2763. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2764. $as_echo_n "(cached) " >&6
  2765. else
  2766. if test -n "$ac_ct_CC"; then
  2767. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2768. else
  2769. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2770. for as_dir in $PATH
  2771. do
  2772. IFS=$as_save_IFS
  2773. test -z "$as_dir" && as_dir=.
  2774. for ac_exec_ext in '' $ac_executable_extensions; do
  2775. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2776. ac_cv_prog_ac_ct_CC="gcc"
  2777. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2778. break 2
  2779. fi
  2780. done
  2781. done
  2782. IFS=$as_save_IFS
  2783. fi
  2784. fi
  2785. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2786. if test -n "$ac_ct_CC"; then
  2787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2788. $as_echo "$ac_ct_CC" >&6; }
  2789. else
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2791. $as_echo "no" >&6; }
  2792. fi
  2793. if test "x$ac_ct_CC" = x; then
  2794. CC=""
  2795. else
  2796. case $cross_compiling:$ac_tool_warned in
  2797. yes:)
  2798. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2799. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2800. ac_tool_warned=yes ;;
  2801. esac
  2802. CC=$ac_ct_CC
  2803. fi
  2804. else
  2805. CC="$ac_cv_prog_CC"
  2806. fi
  2807. if test -z "$CC"; then
  2808. if test -n "$ac_tool_prefix"; then
  2809. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2810. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2812. $as_echo_n "checking for $ac_word... " >&6; }
  2813. if ${ac_cv_prog_CC+:} false; then :
  2814. $as_echo_n "(cached) " >&6
  2815. else
  2816. if test -n "$CC"; then
  2817. ac_cv_prog_CC="$CC" # Let the user override the test.
  2818. else
  2819. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2820. for as_dir in $PATH
  2821. do
  2822. IFS=$as_save_IFS
  2823. test -z "$as_dir" && as_dir=.
  2824. for ac_exec_ext in '' $ac_executable_extensions; do
  2825. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2826. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2827. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2828. break 2
  2829. fi
  2830. done
  2831. done
  2832. IFS=$as_save_IFS
  2833. fi
  2834. fi
  2835. CC=$ac_cv_prog_CC
  2836. if test -n "$CC"; then
  2837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2838. $as_echo "$CC" >&6; }
  2839. else
  2840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2841. $as_echo "no" >&6; }
  2842. fi
  2843. fi
  2844. fi
  2845. if test -z "$CC"; then
  2846. # Extract the first word of "cc", so it can be a program name with args.
  2847. set dummy cc; ac_word=$2
  2848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2849. $as_echo_n "checking for $ac_word... " >&6; }
  2850. if ${ac_cv_prog_CC+:} false; then :
  2851. $as_echo_n "(cached) " >&6
  2852. else
  2853. if test -n "$CC"; then
  2854. ac_cv_prog_CC="$CC" # Let the user override the test.
  2855. else
  2856. ac_prog_rejected=no
  2857. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2858. for as_dir in $PATH
  2859. do
  2860. IFS=$as_save_IFS
  2861. test -z "$as_dir" && as_dir=.
  2862. for ac_exec_ext in '' $ac_executable_extensions; do
  2863. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2864. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2865. ac_prog_rejected=yes
  2866. continue
  2867. fi
  2868. ac_cv_prog_CC="cc"
  2869. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2870. break 2
  2871. fi
  2872. done
  2873. done
  2874. IFS=$as_save_IFS
  2875. if test $ac_prog_rejected = yes; then
  2876. # We found a bogon in the path, so make sure we never use it.
  2877. set dummy $ac_cv_prog_CC
  2878. shift
  2879. if test $# != 0; then
  2880. # We chose a different compiler from the bogus one.
  2881. # However, it has the same basename, so the bogon will be chosen
  2882. # first if we set CC to just the basename; use the full file name.
  2883. shift
  2884. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2885. fi
  2886. fi
  2887. fi
  2888. fi
  2889. CC=$ac_cv_prog_CC
  2890. if test -n "$CC"; then
  2891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2892. $as_echo "$CC" >&6; }
  2893. else
  2894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2895. $as_echo "no" >&6; }
  2896. fi
  2897. fi
  2898. if test -z "$CC"; then
  2899. if test -n "$ac_tool_prefix"; then
  2900. for ac_prog in cl.exe
  2901. do
  2902. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2903. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2905. $as_echo_n "checking for $ac_word... " >&6; }
  2906. if ${ac_cv_prog_CC+:} false; then :
  2907. $as_echo_n "(cached) " >&6
  2908. else
  2909. if test -n "$CC"; then
  2910. ac_cv_prog_CC="$CC" # Let the user override the test.
  2911. else
  2912. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2913. for as_dir in $PATH
  2914. do
  2915. IFS=$as_save_IFS
  2916. test -z "$as_dir" && as_dir=.
  2917. for ac_exec_ext in '' $ac_executable_extensions; do
  2918. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2919. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2920. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2921. break 2
  2922. fi
  2923. done
  2924. done
  2925. IFS=$as_save_IFS
  2926. fi
  2927. fi
  2928. CC=$ac_cv_prog_CC
  2929. if test -n "$CC"; then
  2930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2931. $as_echo "$CC" >&6; }
  2932. else
  2933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2934. $as_echo "no" >&6; }
  2935. fi
  2936. test -n "$CC" && break
  2937. done
  2938. fi
  2939. if test -z "$CC"; then
  2940. ac_ct_CC=$CC
  2941. for ac_prog in cl.exe
  2942. do
  2943. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2944. set dummy $ac_prog; ac_word=$2
  2945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2946. $as_echo_n "checking for $ac_word... " >&6; }
  2947. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2948. $as_echo_n "(cached) " >&6
  2949. else
  2950. if test -n "$ac_ct_CC"; then
  2951. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2952. else
  2953. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2954. for as_dir in $PATH
  2955. do
  2956. IFS=$as_save_IFS
  2957. test -z "$as_dir" && as_dir=.
  2958. for ac_exec_ext in '' $ac_executable_extensions; do
  2959. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2960. ac_cv_prog_ac_ct_CC="$ac_prog"
  2961. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2962. break 2
  2963. fi
  2964. done
  2965. done
  2966. IFS=$as_save_IFS
  2967. fi
  2968. fi
  2969. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2970. if test -n "$ac_ct_CC"; then
  2971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2972. $as_echo "$ac_ct_CC" >&6; }
  2973. else
  2974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2975. $as_echo "no" >&6; }
  2976. fi
  2977. test -n "$ac_ct_CC" && break
  2978. done
  2979. if test "x$ac_ct_CC" = x; then
  2980. CC=""
  2981. else
  2982. case $cross_compiling:$ac_tool_warned in
  2983. yes:)
  2984. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2985. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2986. ac_tool_warned=yes ;;
  2987. esac
  2988. CC=$ac_ct_CC
  2989. fi
  2990. fi
  2991. fi
  2992. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2993. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2994. as_fn_error $? "no acceptable C compiler found in \$PATH
  2995. See \`config.log' for more details" "$LINENO" 5; }
  2996. # Provide some information about the compiler.
  2997. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2998. set X $ac_compile
  2999. ac_compiler=$2
  3000. for ac_option in --version -v -V -qversion; do
  3001. { { ac_try="$ac_compiler $ac_option >&5"
  3002. case "(($ac_try" in
  3003. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3004. *) ac_try_echo=$ac_try;;
  3005. esac
  3006. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3007. $as_echo "$ac_try_echo"; } >&5
  3008. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3009. ac_status=$?
  3010. if test -s conftest.err; then
  3011. sed '10a\
  3012. ... rest of stderr output deleted ...
  3013. 10q' conftest.err >conftest.er1
  3014. cat conftest.er1 >&5
  3015. fi
  3016. rm -f conftest.er1 conftest.err
  3017. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3018. test $ac_status = 0; }
  3019. done
  3020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3021. /* end confdefs.h. */
  3022. int
  3023. main ()
  3024. {
  3025. ;
  3026. return 0;
  3027. }
  3028. _ACEOF
  3029. ac_clean_files_save=$ac_clean_files
  3030. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3031. # Try to create an executable without -o first, disregard a.out.
  3032. # It will help us diagnose broken compilers, and finding out an intuition
  3033. # of exeext.
  3034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3035. $as_echo_n "checking whether the C compiler works... " >&6; }
  3036. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3037. # The possible output files:
  3038. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3039. ac_rmfiles=
  3040. for ac_file in $ac_files
  3041. do
  3042. case $ac_file in
  3043. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3044. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3045. esac
  3046. done
  3047. rm -f $ac_rmfiles
  3048. if { { ac_try="$ac_link_default"
  3049. case "(($ac_try" in
  3050. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3051. *) ac_try_echo=$ac_try;;
  3052. esac
  3053. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3054. $as_echo "$ac_try_echo"; } >&5
  3055. (eval "$ac_link_default") 2>&5
  3056. ac_status=$?
  3057. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3058. test $ac_status = 0; }; then :
  3059. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3060. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3061. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3062. # so that the user can short-circuit this test for compilers unknown to
  3063. # Autoconf.
  3064. for ac_file in $ac_files ''
  3065. do
  3066. test -f "$ac_file" || continue
  3067. case $ac_file in
  3068. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3069. ;;
  3070. [ab].out )
  3071. # We found the default executable, but exeext='' is most
  3072. # certainly right.
  3073. break;;
  3074. *.* )
  3075. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3076. then :; else
  3077. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3078. fi
  3079. # We set ac_cv_exeext here because the later test for it is not
  3080. # safe: cross compilers may not add the suffix if given an `-o'
  3081. # argument, so we may need to know it at that point already.
  3082. # Even if this section looks crufty: it has the advantage of
  3083. # actually working.
  3084. break;;
  3085. * )
  3086. break;;
  3087. esac
  3088. done
  3089. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3090. else
  3091. ac_file=''
  3092. fi
  3093. if test -z "$ac_file"; then :
  3094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3095. $as_echo "no" >&6; }
  3096. $as_echo "$as_me: failed program was:" >&5
  3097. sed 's/^/| /' conftest.$ac_ext >&5
  3098. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3099. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3100. as_fn_error 77 "C compiler cannot create executables
  3101. See \`config.log' for more details" "$LINENO" 5; }
  3102. else
  3103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3104. $as_echo "yes" >&6; }
  3105. fi
  3106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3107. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3109. $as_echo "$ac_file" >&6; }
  3110. ac_exeext=$ac_cv_exeext
  3111. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3112. ac_clean_files=$ac_clean_files_save
  3113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3114. $as_echo_n "checking for suffix of executables... " >&6; }
  3115. if { { ac_try="$ac_link"
  3116. case "(($ac_try" in
  3117. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3118. *) ac_try_echo=$ac_try;;
  3119. esac
  3120. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3121. $as_echo "$ac_try_echo"; } >&5
  3122. (eval "$ac_link") 2>&5
  3123. ac_status=$?
  3124. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3125. test $ac_status = 0; }; then :
  3126. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3127. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3128. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3129. # `rm'.
  3130. for ac_file in conftest.exe conftest conftest.*; do
  3131. test -f "$ac_file" || continue
  3132. case $ac_file in
  3133. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3134. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3135. break;;
  3136. * ) break;;
  3137. esac
  3138. done
  3139. else
  3140. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3141. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3142. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3143. See \`config.log' for more details" "$LINENO" 5; }
  3144. fi
  3145. rm -f conftest conftest$ac_cv_exeext
  3146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3147. $as_echo "$ac_cv_exeext" >&6; }
  3148. rm -f conftest.$ac_ext
  3149. EXEEXT=$ac_cv_exeext
  3150. ac_exeext=$EXEEXT
  3151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3152. /* end confdefs.h. */
  3153. #include <stdio.h>
  3154. int
  3155. main ()
  3156. {
  3157. FILE *f = fopen ("conftest.out", "w");
  3158. return ferror (f) || fclose (f) != 0;
  3159. ;
  3160. return 0;
  3161. }
  3162. _ACEOF
  3163. ac_clean_files="$ac_clean_files conftest.out"
  3164. # Check that the compiler produces executables we can run. If not, either
  3165. # the compiler is broken, or we cross compile.
  3166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3167. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3168. if test "$cross_compiling" != yes; then
  3169. { { ac_try="$ac_link"
  3170. case "(($ac_try" in
  3171. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3172. *) ac_try_echo=$ac_try;;
  3173. esac
  3174. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3175. $as_echo "$ac_try_echo"; } >&5
  3176. (eval "$ac_link") 2>&5
  3177. ac_status=$?
  3178. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3179. test $ac_status = 0; }
  3180. if { ac_try='./conftest$ac_cv_exeext'
  3181. { { case "(($ac_try" in
  3182. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3183. *) ac_try_echo=$ac_try;;
  3184. esac
  3185. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3186. $as_echo "$ac_try_echo"; } >&5
  3187. (eval "$ac_try") 2>&5
  3188. ac_status=$?
  3189. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3190. test $ac_status = 0; }; }; then
  3191. cross_compiling=no
  3192. else
  3193. if test "$cross_compiling" = maybe; then
  3194. cross_compiling=yes
  3195. else
  3196. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3197. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3198. as_fn_error $? "cannot run C compiled programs.
  3199. If you meant to cross compile, use \`--host'.
  3200. See \`config.log' for more details" "$LINENO" 5; }
  3201. fi
  3202. fi
  3203. fi
  3204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3205. $as_echo "$cross_compiling" >&6; }
  3206. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3207. ac_clean_files=$ac_clean_files_save
  3208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3209. $as_echo_n "checking for suffix of object files... " >&6; }
  3210. if ${ac_cv_objext+:} false; then :
  3211. $as_echo_n "(cached) " >&6
  3212. else
  3213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3214. /* end confdefs.h. */
  3215. int
  3216. main ()
  3217. {
  3218. ;
  3219. return 0;
  3220. }
  3221. _ACEOF
  3222. rm -f conftest.o conftest.obj
  3223. if { { ac_try="$ac_compile"
  3224. case "(($ac_try" in
  3225. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3226. *) ac_try_echo=$ac_try;;
  3227. esac
  3228. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3229. $as_echo "$ac_try_echo"; } >&5
  3230. (eval "$ac_compile") 2>&5
  3231. ac_status=$?
  3232. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3233. test $ac_status = 0; }; then :
  3234. for ac_file in conftest.o conftest.obj conftest.*; do
  3235. test -f "$ac_file" || continue;
  3236. case $ac_file in
  3237. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3238. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3239. break;;
  3240. esac
  3241. done
  3242. else
  3243. $as_echo "$as_me: failed program was:" >&5
  3244. sed 's/^/| /' conftest.$ac_ext >&5
  3245. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3246. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3247. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3248. See \`config.log' for more details" "$LINENO" 5; }
  3249. fi
  3250. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3251. fi
  3252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3253. $as_echo "$ac_cv_objext" >&6; }
  3254. OBJEXT=$ac_cv_objext
  3255. ac_objext=$OBJEXT
  3256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3257. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3258. if ${ac_cv_c_compiler_gnu+:} false; then :
  3259. $as_echo_n "(cached) " >&6
  3260. else
  3261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3262. /* end confdefs.h. */
  3263. int
  3264. main ()
  3265. {
  3266. #ifndef __GNUC__
  3267. choke me
  3268. #endif
  3269. ;
  3270. return 0;
  3271. }
  3272. _ACEOF
  3273. if ac_fn_c_try_compile "$LINENO"; then :
  3274. ac_compiler_gnu=yes
  3275. else
  3276. ac_compiler_gnu=no
  3277. fi
  3278. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3279. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3280. fi
  3281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3282. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3283. if test $ac_compiler_gnu = yes; then
  3284. GCC=yes
  3285. else
  3286. GCC=
  3287. fi
  3288. ac_test_CFLAGS=${CFLAGS+set}
  3289. ac_save_CFLAGS=$CFLAGS
  3290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3291. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3292. if ${ac_cv_prog_cc_g+:} false; then :
  3293. $as_echo_n "(cached) " >&6
  3294. else
  3295. ac_save_c_werror_flag=$ac_c_werror_flag
  3296. ac_c_werror_flag=yes
  3297. ac_cv_prog_cc_g=no
  3298. CFLAGS="-g"
  3299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3300. /* end confdefs.h. */
  3301. int
  3302. main ()
  3303. {
  3304. ;
  3305. return 0;
  3306. }
  3307. _ACEOF
  3308. if ac_fn_c_try_compile "$LINENO"; then :
  3309. ac_cv_prog_cc_g=yes
  3310. else
  3311. CFLAGS=""
  3312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3313. /* end confdefs.h. */
  3314. int
  3315. main ()
  3316. {
  3317. ;
  3318. return 0;
  3319. }
  3320. _ACEOF
  3321. if ac_fn_c_try_compile "$LINENO"; then :
  3322. else
  3323. ac_c_werror_flag=$ac_save_c_werror_flag
  3324. CFLAGS="-g"
  3325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3326. /* end confdefs.h. */
  3327. int
  3328. main ()
  3329. {
  3330. ;
  3331. return 0;
  3332. }
  3333. _ACEOF
  3334. if ac_fn_c_try_compile "$LINENO"; then :
  3335. ac_cv_prog_cc_g=yes
  3336. fi
  3337. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3338. fi
  3339. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3340. fi
  3341. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3342. ac_c_werror_flag=$ac_save_c_werror_flag
  3343. fi
  3344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3345. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3346. if test "$ac_test_CFLAGS" = set; then
  3347. CFLAGS=$ac_save_CFLAGS
  3348. elif test $ac_cv_prog_cc_g = yes; then
  3349. if test "$GCC" = yes; then
  3350. CFLAGS="-g -O2"
  3351. else
  3352. CFLAGS="-g"
  3353. fi
  3354. else
  3355. if test "$GCC" = yes; then
  3356. CFLAGS="-O2"
  3357. else
  3358. CFLAGS=
  3359. fi
  3360. fi
  3361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3362. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3363. if ${ac_cv_prog_cc_c89+:} false; then :
  3364. $as_echo_n "(cached) " >&6
  3365. else
  3366. ac_cv_prog_cc_c89=no
  3367. ac_save_CC=$CC
  3368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3369. /* end confdefs.h. */
  3370. #include <stdarg.h>
  3371. #include <stdio.h>
  3372. struct stat;
  3373. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3374. struct buf { int x; };
  3375. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3376. static char *e (p, i)
  3377. char **p;
  3378. int i;
  3379. {
  3380. return p[i];
  3381. }
  3382. static char *f (char * (*g) (char **, int), char **p, ...)
  3383. {
  3384. char *s;
  3385. va_list v;
  3386. va_start (v,p);
  3387. s = g (p, va_arg (v,int));
  3388. va_end (v);
  3389. return s;
  3390. }
  3391. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3392. function prototypes and stuff, but not '\xHH' hex character constants.
  3393. These don't provoke an error unfortunately, instead are silently treated
  3394. as 'x'. The following induces an error, until -std is added to get
  3395. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3396. array size at least. It's necessary to write '\x00'==0 to get something
  3397. that's true only with -std. */
  3398. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3399. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3400. inside strings and character constants. */
  3401. #define FOO(x) 'x'
  3402. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3403. int test (int i, double x);
  3404. struct s1 {int (*f) (int a);};
  3405. struct s2 {int (*f) (double a);};
  3406. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3407. int argc;
  3408. char **argv;
  3409. int
  3410. main ()
  3411. {
  3412. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3413. ;
  3414. return 0;
  3415. }
  3416. _ACEOF
  3417. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3418. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3419. do
  3420. CC="$ac_save_CC $ac_arg"
  3421. if ac_fn_c_try_compile "$LINENO"; then :
  3422. ac_cv_prog_cc_c89=$ac_arg
  3423. fi
  3424. rm -f core conftest.err conftest.$ac_objext
  3425. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3426. done
  3427. rm -f conftest.$ac_ext
  3428. CC=$ac_save_CC
  3429. fi
  3430. # AC_CACHE_VAL
  3431. case "x$ac_cv_prog_cc_c89" in
  3432. x)
  3433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3434. $as_echo "none needed" >&6; } ;;
  3435. xno)
  3436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3437. $as_echo "unsupported" >&6; } ;;
  3438. *)
  3439. CC="$CC $ac_cv_prog_cc_c89"
  3440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3441. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3442. esac
  3443. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3444. fi
  3445. ac_ext=c
  3446. ac_cpp='$CPP $CPPFLAGS'
  3447. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3448. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3449. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3450. DEPDIR="${am__leading_dot}deps"
  3451. ac_config_commands="$ac_config_commands depfiles"
  3452. am_make=${MAKE-make}
  3453. cat > confinc << 'END'
  3454. am__doit:
  3455. @echo this is the am__doit target
  3456. .PHONY: am__doit
  3457. END
  3458. # If we don't find an include directive, just comment out the code.
  3459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3460. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3461. am__include="#"
  3462. am__quote=
  3463. _am_result=none
  3464. # First try GNU make style include.
  3465. echo "include confinc" > confmf
  3466. # Ignore all kinds of additional output from 'make'.
  3467. case `$am_make -s -f confmf 2> /dev/null` in #(
  3468. *the\ am__doit\ target*)
  3469. am__include=include
  3470. am__quote=
  3471. _am_result=GNU
  3472. ;;
  3473. esac
  3474. # Now try BSD make style include.
  3475. if test "$am__include" = "#"; then
  3476. echo '.include "confinc"' > confmf
  3477. case `$am_make -s -f confmf 2> /dev/null` in #(
  3478. *the\ am__doit\ target*)
  3479. am__include=.include
  3480. am__quote="\""
  3481. _am_result=BSD
  3482. ;;
  3483. esac
  3484. fi
  3485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3486. $as_echo "$_am_result" >&6; }
  3487. rm -f confinc confmf
  3488. # Check whether --enable-dependency-tracking was given.
  3489. if test "${enable_dependency_tracking+set}" = set; then :
  3490. enableval=$enable_dependency_tracking;
  3491. fi
  3492. if test "x$enable_dependency_tracking" != xno; then
  3493. am_depcomp="$ac_aux_dir/depcomp"
  3494. AMDEPBACKSLASH='\'
  3495. am__nodep='_no'
  3496. fi
  3497. if test "x$enable_dependency_tracking" != xno; then
  3498. AMDEP_TRUE=
  3499. AMDEP_FALSE='#'
  3500. else
  3501. AMDEP_TRUE='#'
  3502. AMDEP_FALSE=
  3503. fi
  3504. depcc="$CC" am_compiler_list=
  3505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3506. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3507. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3508. $as_echo_n "(cached) " >&6
  3509. else
  3510. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3511. # We make a subdir and do the tests there. Otherwise we can end up
  3512. # making bogus files that we don't know about and never remove. For
  3513. # instance it was reported that on HP-UX the gcc test will end up
  3514. # making a dummy file named 'D' -- because '-MD' means "put the output
  3515. # in D".
  3516. rm -rf conftest.dir
  3517. mkdir conftest.dir
  3518. # Copy depcomp to subdir because otherwise we won't find it if we're
  3519. # using a relative directory.
  3520. cp "$am_depcomp" conftest.dir
  3521. cd conftest.dir
  3522. # We will build objects and dependencies in a subdirectory because
  3523. # it helps to detect inapplicable dependency modes. For instance
  3524. # both Tru64's cc and ICC support -MD to output dependencies as a
  3525. # side effect of compilation, but ICC will put the dependencies in
  3526. # the current directory while Tru64 will put them in the object
  3527. # directory.
  3528. mkdir sub
  3529. am_cv_CC_dependencies_compiler_type=none
  3530. if test "$am_compiler_list" = ""; then
  3531. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3532. fi
  3533. am__universal=false
  3534. case " $depcc " in #(
  3535. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3536. esac
  3537. for depmode in $am_compiler_list; do
  3538. # Setup a source with many dependencies, because some compilers
  3539. # like to wrap large dependency lists on column 80 (with \), and
  3540. # we should not choose a depcomp mode which is confused by this.
  3541. #
  3542. # We need to recreate these files for each test, as the compiler may
  3543. # overwrite some of them when testing with obscure command lines.
  3544. # This happens at least with the AIX C compiler.
  3545. : > sub/conftest.c
  3546. for i in 1 2 3 4 5 6; do
  3547. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3548. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3549. # Solaris 10 /bin/sh.
  3550. echo '/* dummy */' > sub/conftst$i.h
  3551. done
  3552. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3553. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3554. # mode. It turns out that the SunPro C++ compiler does not properly
  3555. # handle '-M -o', and we need to detect this. Also, some Intel
  3556. # versions had trouble with output in subdirs.
  3557. am__obj=sub/conftest.${OBJEXT-o}
  3558. am__minus_obj="-o $am__obj"
  3559. case $depmode in
  3560. gcc)
  3561. # This depmode causes a compiler race in universal mode.
  3562. test "$am__universal" = false || continue
  3563. ;;
  3564. nosideeffect)
  3565. # After this tag, mechanisms are not by side-effect, so they'll
  3566. # only be used when explicitly requested.
  3567. if test "x$enable_dependency_tracking" = xyes; then
  3568. continue
  3569. else
  3570. break
  3571. fi
  3572. ;;
  3573. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3574. # This compiler won't grok '-c -o', but also, the minuso test has
  3575. # not run yet. These depmodes are late enough in the game, and
  3576. # so weak that their functioning should not be impacted.
  3577. am__obj=conftest.${OBJEXT-o}
  3578. am__minus_obj=
  3579. ;;
  3580. none) break ;;
  3581. esac
  3582. if depmode=$depmode \
  3583. source=sub/conftest.c object=$am__obj \
  3584. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3585. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3586. >/dev/null 2>conftest.err &&
  3587. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3588. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3589. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3590. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3591. # icc doesn't choke on unknown options, it will just issue warnings
  3592. # or remarks (even with -Werror). So we grep stderr for any message
  3593. # that says an option was ignored or not supported.
  3594. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3595. # icc: Command line warning: ignoring option '-M'; no argument required
  3596. # The diagnosis changed in icc 8.0:
  3597. # icc: Command line remark: option '-MP' not supported
  3598. if (grep 'ignoring option' conftest.err ||
  3599. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3600. am_cv_CC_dependencies_compiler_type=$depmode
  3601. break
  3602. fi
  3603. fi
  3604. done
  3605. cd ..
  3606. rm -rf conftest.dir
  3607. else
  3608. am_cv_CC_dependencies_compiler_type=none
  3609. fi
  3610. fi
  3611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3612. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3613. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3614. if
  3615. test "x$enable_dependency_tracking" != xno \
  3616. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3617. am__fastdepCC_TRUE=
  3618. am__fastdepCC_FALSE='#'
  3619. else
  3620. am__fastdepCC_TRUE='#'
  3621. am__fastdepCC_FALSE=
  3622. fi
  3623. case `pwd` in
  3624. *\ * | *\ *)
  3625. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3626. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3627. esac
  3628. macro_version='2.4.2'
  3629. macro_revision='1.3337'
  3630. ltmain="$ac_aux_dir/ltmain.sh"
  3631. # Make sure we can run config.sub.
  3632. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3633. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3635. $as_echo_n "checking build system type... " >&6; }
  3636. if ${ac_cv_build+:} false; then :
  3637. $as_echo_n "(cached) " >&6
  3638. else
  3639. ac_build_alias=$build_alias
  3640. test "x$ac_build_alias" = x &&
  3641. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3642. test "x$ac_build_alias" = x &&
  3643. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3644. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3645. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3646. fi
  3647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3648. $as_echo "$ac_cv_build" >&6; }
  3649. case $ac_cv_build in
  3650. *-*-*) ;;
  3651. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3652. esac
  3653. build=$ac_cv_build
  3654. ac_save_IFS=$IFS; IFS='-'
  3655. set x $ac_cv_build
  3656. shift
  3657. build_cpu=$1
  3658. build_vendor=$2
  3659. shift; shift
  3660. # Remember, the first character of IFS is used to create $*,
  3661. # except with old shells:
  3662. build_os=$*
  3663. IFS=$ac_save_IFS
  3664. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3666. $as_echo_n "checking host system type... " >&6; }
  3667. if ${ac_cv_host+:} false; then :
  3668. $as_echo_n "(cached) " >&6
  3669. else
  3670. if test "x$host_alias" = x; then
  3671. ac_cv_host=$ac_cv_build
  3672. else
  3673. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3674. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3675. fi
  3676. fi
  3677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3678. $as_echo "$ac_cv_host" >&6; }
  3679. case $ac_cv_host in
  3680. *-*-*) ;;
  3681. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3682. esac
  3683. host=$ac_cv_host
  3684. ac_save_IFS=$IFS; IFS='-'
  3685. set x $ac_cv_host
  3686. shift
  3687. host_cpu=$1
  3688. host_vendor=$2
  3689. shift; shift
  3690. # Remember, the first character of IFS is used to create $*,
  3691. # except with old shells:
  3692. host_os=$*
  3693. IFS=$ac_save_IFS
  3694. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3695. # Backslashify metacharacters that are still active within
  3696. # double-quoted strings.
  3697. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3698. # Same as above, but do not quote variable references.
  3699. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3700. # Sed substitution to delay expansion of an escaped shell variable in a
  3701. # double_quote_subst'ed string.
  3702. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3703. # Sed substitution to delay expansion of an escaped single quote.
  3704. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3705. # Sed substitution to avoid accidental globbing in evaled expressions
  3706. no_glob_subst='s/\*/\\\*/g'
  3707. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3708. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3709. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3711. $as_echo_n "checking how to print strings... " >&6; }
  3712. # Test print first, because it will be a builtin if present.
  3713. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3714. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3715. ECHO='print -r --'
  3716. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3717. ECHO='printf %s\n'
  3718. else
  3719. # Use this function as a fallback that always works.
  3720. func_fallback_echo ()
  3721. {
  3722. eval 'cat <<_LTECHO_EOF
  3723. $1
  3724. _LTECHO_EOF'
  3725. }
  3726. ECHO='func_fallback_echo'
  3727. fi
  3728. # func_echo_all arg...
  3729. # Invoke $ECHO with all args, space-separated.
  3730. func_echo_all ()
  3731. {
  3732. $ECHO ""
  3733. }
  3734. case "$ECHO" in
  3735. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3736. $as_echo "printf" >&6; } ;;
  3737. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3738. $as_echo "print -r" >&6; } ;;
  3739. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3740. $as_echo "cat" >&6; } ;;
  3741. esac
  3742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3743. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3744. if ${ac_cv_path_SED+:} false; then :
  3745. $as_echo_n "(cached) " >&6
  3746. else
  3747. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3748. for ac_i in 1 2 3 4 5 6 7; do
  3749. ac_script="$ac_script$as_nl$ac_script"
  3750. done
  3751. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3752. { ac_script=; unset ac_script;}
  3753. if test -z "$SED"; then
  3754. ac_path_SED_found=false
  3755. # Loop through the user's path and test for each of PROGNAME-LIST
  3756. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3757. for as_dir in $PATH
  3758. do
  3759. IFS=$as_save_IFS
  3760. test -z "$as_dir" && as_dir=.
  3761. for ac_prog in sed gsed; do
  3762. for ac_exec_ext in '' $ac_executable_extensions; do
  3763. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3764. as_fn_executable_p "$ac_path_SED" || continue
  3765. # Check for GNU ac_path_SED and select it if it is found.
  3766. # Check for GNU $ac_path_SED
  3767. case `"$ac_path_SED" --version 2>&1` in
  3768. *GNU*)
  3769. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3770. *)
  3771. ac_count=0
  3772. $as_echo_n 0123456789 >"conftest.in"
  3773. while :
  3774. do
  3775. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3776. mv "conftest.tmp" "conftest.in"
  3777. cp "conftest.in" "conftest.nl"
  3778. $as_echo '' >> "conftest.nl"
  3779. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3780. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3781. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3782. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3783. # Best one so far, save it but keep looking for a better one
  3784. ac_cv_path_SED="$ac_path_SED"
  3785. ac_path_SED_max=$ac_count
  3786. fi
  3787. # 10*(2^10) chars as input seems more than enough
  3788. test $ac_count -gt 10 && break
  3789. done
  3790. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3791. esac
  3792. $ac_path_SED_found && break 3
  3793. done
  3794. done
  3795. done
  3796. IFS=$as_save_IFS
  3797. if test -z "$ac_cv_path_SED"; then
  3798. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3799. fi
  3800. else
  3801. ac_cv_path_SED=$SED
  3802. fi
  3803. fi
  3804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3805. $as_echo "$ac_cv_path_SED" >&6; }
  3806. SED="$ac_cv_path_SED"
  3807. rm -f conftest.sed
  3808. test -z "$SED" && SED=sed
  3809. Xsed="$SED -e 1s/^X//"
  3810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3811. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3812. if ${ac_cv_path_GREP+:} false; then :
  3813. $as_echo_n "(cached) " >&6
  3814. else
  3815. if test -z "$GREP"; then
  3816. ac_path_GREP_found=false
  3817. # Loop through the user's path and test for each of PROGNAME-LIST
  3818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3819. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3820. do
  3821. IFS=$as_save_IFS
  3822. test -z "$as_dir" && as_dir=.
  3823. for ac_prog in grep ggrep; do
  3824. for ac_exec_ext in '' $ac_executable_extensions; do
  3825. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3826. as_fn_executable_p "$ac_path_GREP" || continue
  3827. # Check for GNU ac_path_GREP and select it if it is found.
  3828. # Check for GNU $ac_path_GREP
  3829. case `"$ac_path_GREP" --version 2>&1` in
  3830. *GNU*)
  3831. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3832. *)
  3833. ac_count=0
  3834. $as_echo_n 0123456789 >"conftest.in"
  3835. while :
  3836. do
  3837. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3838. mv "conftest.tmp" "conftest.in"
  3839. cp "conftest.in" "conftest.nl"
  3840. $as_echo 'GREP' >> "conftest.nl"
  3841. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3842. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3843. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3844. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3845. # Best one so far, save it but keep looking for a better one
  3846. ac_cv_path_GREP="$ac_path_GREP"
  3847. ac_path_GREP_max=$ac_count
  3848. fi
  3849. # 10*(2^10) chars as input seems more than enough
  3850. test $ac_count -gt 10 && break
  3851. done
  3852. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3853. esac
  3854. $ac_path_GREP_found && break 3
  3855. done
  3856. done
  3857. done
  3858. IFS=$as_save_IFS
  3859. if test -z "$ac_cv_path_GREP"; then
  3860. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3861. fi
  3862. else
  3863. ac_cv_path_GREP=$GREP
  3864. fi
  3865. fi
  3866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3867. $as_echo "$ac_cv_path_GREP" >&6; }
  3868. GREP="$ac_cv_path_GREP"
  3869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3870. $as_echo_n "checking for egrep... " >&6; }
  3871. if ${ac_cv_path_EGREP+:} false; then :
  3872. $as_echo_n "(cached) " >&6
  3873. else
  3874. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3875. then ac_cv_path_EGREP="$GREP -E"
  3876. else
  3877. if test -z "$EGREP"; then
  3878. ac_path_EGREP_found=false
  3879. # Loop through the user's path and test for each of PROGNAME-LIST
  3880. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3881. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3882. do
  3883. IFS=$as_save_IFS
  3884. test -z "$as_dir" && as_dir=.
  3885. for ac_prog in egrep; do
  3886. for ac_exec_ext in '' $ac_executable_extensions; do
  3887. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3888. as_fn_executable_p "$ac_path_EGREP" || continue
  3889. # Check for GNU ac_path_EGREP and select it if it is found.
  3890. # Check for GNU $ac_path_EGREP
  3891. case `"$ac_path_EGREP" --version 2>&1` in
  3892. *GNU*)
  3893. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3894. *)
  3895. ac_count=0
  3896. $as_echo_n 0123456789 >"conftest.in"
  3897. while :
  3898. do
  3899. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3900. mv "conftest.tmp" "conftest.in"
  3901. cp "conftest.in" "conftest.nl"
  3902. $as_echo 'EGREP' >> "conftest.nl"
  3903. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3904. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3905. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3906. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3907. # Best one so far, save it but keep looking for a better one
  3908. ac_cv_path_EGREP="$ac_path_EGREP"
  3909. ac_path_EGREP_max=$ac_count
  3910. fi
  3911. # 10*(2^10) chars as input seems more than enough
  3912. test $ac_count -gt 10 && break
  3913. done
  3914. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3915. esac
  3916. $ac_path_EGREP_found && break 3
  3917. done
  3918. done
  3919. done
  3920. IFS=$as_save_IFS
  3921. if test -z "$ac_cv_path_EGREP"; then
  3922. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3923. fi
  3924. else
  3925. ac_cv_path_EGREP=$EGREP
  3926. fi
  3927. fi
  3928. fi
  3929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3930. $as_echo "$ac_cv_path_EGREP" >&6; }
  3931. EGREP="$ac_cv_path_EGREP"
  3932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3933. $as_echo_n "checking for fgrep... " >&6; }
  3934. if ${ac_cv_path_FGREP+:} false; then :
  3935. $as_echo_n "(cached) " >&6
  3936. else
  3937. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3938. then ac_cv_path_FGREP="$GREP -F"
  3939. else
  3940. if test -z "$FGREP"; then
  3941. ac_path_FGREP_found=false
  3942. # Loop through the user's path and test for each of PROGNAME-LIST
  3943. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3944. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3945. do
  3946. IFS=$as_save_IFS
  3947. test -z "$as_dir" && as_dir=.
  3948. for ac_prog in fgrep; do
  3949. for ac_exec_ext in '' $ac_executable_extensions; do
  3950. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3951. as_fn_executable_p "$ac_path_FGREP" || continue
  3952. # Check for GNU ac_path_FGREP and select it if it is found.
  3953. # Check for GNU $ac_path_FGREP
  3954. case `"$ac_path_FGREP" --version 2>&1` in
  3955. *GNU*)
  3956. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3957. *)
  3958. ac_count=0
  3959. $as_echo_n 0123456789 >"conftest.in"
  3960. while :
  3961. do
  3962. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3963. mv "conftest.tmp" "conftest.in"
  3964. cp "conftest.in" "conftest.nl"
  3965. $as_echo 'FGREP' >> "conftest.nl"
  3966. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3967. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3968. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3969. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3970. # Best one so far, save it but keep looking for a better one
  3971. ac_cv_path_FGREP="$ac_path_FGREP"
  3972. ac_path_FGREP_max=$ac_count
  3973. fi
  3974. # 10*(2^10) chars as input seems more than enough
  3975. test $ac_count -gt 10 && break
  3976. done
  3977. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3978. esac
  3979. $ac_path_FGREP_found && break 3
  3980. done
  3981. done
  3982. done
  3983. IFS=$as_save_IFS
  3984. if test -z "$ac_cv_path_FGREP"; then
  3985. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3986. fi
  3987. else
  3988. ac_cv_path_FGREP=$FGREP
  3989. fi
  3990. fi
  3991. fi
  3992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3993. $as_echo "$ac_cv_path_FGREP" >&6; }
  3994. FGREP="$ac_cv_path_FGREP"
  3995. test -z "$GREP" && GREP=grep
  3996. # Check whether --with-gnu-ld was given.
  3997. if test "${with_gnu_ld+set}" = set; then :
  3998. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3999. else
  4000. with_gnu_ld=no
  4001. fi
  4002. ac_prog=ld
  4003. if test "$GCC" = yes; then
  4004. # Check if gcc -print-prog-name=ld gives a path.
  4005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4006. $as_echo_n "checking for ld used by $CC... " >&6; }
  4007. case $host in
  4008. *-*-mingw*)
  4009. # gcc leaves a trailing carriage return which upsets mingw
  4010. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4011. *)
  4012. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4013. esac
  4014. case $ac_prog in
  4015. # Accept absolute paths.
  4016. [\\/]* | ?:[\\/]*)
  4017. re_direlt='/[^/][^/]*/\.\./'
  4018. # Canonicalize the pathname of ld
  4019. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4020. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4021. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4022. done
  4023. test -z "$LD" && LD="$ac_prog"
  4024. ;;
  4025. "")
  4026. # If it fails, then pretend we aren't using GCC.
  4027. ac_prog=ld
  4028. ;;
  4029. *)
  4030. # If it is relative, then search for the first ld in PATH.
  4031. with_gnu_ld=unknown
  4032. ;;
  4033. esac
  4034. elif test "$with_gnu_ld" = yes; then
  4035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4036. $as_echo_n "checking for GNU ld... " >&6; }
  4037. else
  4038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4039. $as_echo_n "checking for non-GNU ld... " >&6; }
  4040. fi
  4041. if ${lt_cv_path_LD+:} false; then :
  4042. $as_echo_n "(cached) " >&6
  4043. else
  4044. if test -z "$LD"; then
  4045. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4046. for ac_dir in $PATH; do
  4047. IFS="$lt_save_ifs"
  4048. test -z "$ac_dir" && ac_dir=.
  4049. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4050. lt_cv_path_LD="$ac_dir/$ac_prog"
  4051. # Check to see if the program is GNU ld. I'd rather use --version,
  4052. # but apparently some variants of GNU ld only accept -v.
  4053. # Break only if it was the GNU/non-GNU ld that we prefer.
  4054. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4055. *GNU* | *'with BFD'*)
  4056. test "$with_gnu_ld" != no && break
  4057. ;;
  4058. *)
  4059. test "$with_gnu_ld" != yes && break
  4060. ;;
  4061. esac
  4062. fi
  4063. done
  4064. IFS="$lt_save_ifs"
  4065. else
  4066. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4067. fi
  4068. fi
  4069. LD="$lt_cv_path_LD"
  4070. if test -n "$LD"; then
  4071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4072. $as_echo "$LD" >&6; }
  4073. else
  4074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4075. $as_echo "no" >&6; }
  4076. fi
  4077. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4079. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4080. if ${lt_cv_prog_gnu_ld+:} false; then :
  4081. $as_echo_n "(cached) " >&6
  4082. else
  4083. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4084. case `$LD -v 2>&1 </dev/null` in
  4085. *GNU* | *'with BFD'*)
  4086. lt_cv_prog_gnu_ld=yes
  4087. ;;
  4088. *)
  4089. lt_cv_prog_gnu_ld=no
  4090. ;;
  4091. esac
  4092. fi
  4093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4094. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4095. with_gnu_ld=$lt_cv_prog_gnu_ld
  4096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4097. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4098. if ${lt_cv_path_NM+:} false; then :
  4099. $as_echo_n "(cached) " >&6
  4100. else
  4101. if test -n "$NM"; then
  4102. # Let the user override the test.
  4103. lt_cv_path_NM="$NM"
  4104. else
  4105. lt_nm_to_check="${ac_tool_prefix}nm"
  4106. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4107. lt_nm_to_check="$lt_nm_to_check nm"
  4108. fi
  4109. for lt_tmp_nm in $lt_nm_to_check; do
  4110. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4111. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4112. IFS="$lt_save_ifs"
  4113. test -z "$ac_dir" && ac_dir=.
  4114. tmp_nm="$ac_dir/$lt_tmp_nm"
  4115. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4116. # Check to see if the nm accepts a BSD-compat flag.
  4117. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4118. # nm: unknown option "B" ignored
  4119. # Tru64's nm complains that /dev/null is an invalid object file
  4120. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4121. */dev/null* | *'Invalid file or object type'*)
  4122. lt_cv_path_NM="$tmp_nm -B"
  4123. break
  4124. ;;
  4125. *)
  4126. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4127. */dev/null*)
  4128. lt_cv_path_NM="$tmp_nm -p"
  4129. break
  4130. ;;
  4131. *)
  4132. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4133. continue # so that we can try to find one that supports BSD flags
  4134. ;;
  4135. esac
  4136. ;;
  4137. esac
  4138. fi
  4139. done
  4140. IFS="$lt_save_ifs"
  4141. done
  4142. : ${lt_cv_path_NM=no}
  4143. fi
  4144. fi
  4145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4146. $as_echo "$lt_cv_path_NM" >&6; }
  4147. if test "$lt_cv_path_NM" != "no"; then
  4148. NM="$lt_cv_path_NM"
  4149. else
  4150. # Didn't find any BSD compatible name lister, look for dumpbin.
  4151. if test -n "$DUMPBIN"; then :
  4152. # Let the user override the test.
  4153. else
  4154. if test -n "$ac_tool_prefix"; then
  4155. for ac_prog in dumpbin "link -dump"
  4156. do
  4157. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4158. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4160. $as_echo_n "checking for $ac_word... " >&6; }
  4161. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4162. $as_echo_n "(cached) " >&6
  4163. else
  4164. if test -n "$DUMPBIN"; then
  4165. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4166. else
  4167. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4168. for as_dir in $PATH
  4169. do
  4170. IFS=$as_save_IFS
  4171. test -z "$as_dir" && as_dir=.
  4172. for ac_exec_ext in '' $ac_executable_extensions; do
  4173. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4174. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4175. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4176. break 2
  4177. fi
  4178. done
  4179. done
  4180. IFS=$as_save_IFS
  4181. fi
  4182. fi
  4183. DUMPBIN=$ac_cv_prog_DUMPBIN
  4184. if test -n "$DUMPBIN"; then
  4185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4186. $as_echo "$DUMPBIN" >&6; }
  4187. else
  4188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4189. $as_echo "no" >&6; }
  4190. fi
  4191. test -n "$DUMPBIN" && break
  4192. done
  4193. fi
  4194. if test -z "$DUMPBIN"; then
  4195. ac_ct_DUMPBIN=$DUMPBIN
  4196. for ac_prog in dumpbin "link -dump"
  4197. do
  4198. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4199. set dummy $ac_prog; ac_word=$2
  4200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4201. $as_echo_n "checking for $ac_word... " >&6; }
  4202. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4203. $as_echo_n "(cached) " >&6
  4204. else
  4205. if test -n "$ac_ct_DUMPBIN"; then
  4206. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4207. else
  4208. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4209. for as_dir in $PATH
  4210. do
  4211. IFS=$as_save_IFS
  4212. test -z "$as_dir" && as_dir=.
  4213. for ac_exec_ext in '' $ac_executable_extensions; do
  4214. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4215. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4216. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4217. break 2
  4218. fi
  4219. done
  4220. done
  4221. IFS=$as_save_IFS
  4222. fi
  4223. fi
  4224. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4225. if test -n "$ac_ct_DUMPBIN"; then
  4226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4227. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4228. else
  4229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4230. $as_echo "no" >&6; }
  4231. fi
  4232. test -n "$ac_ct_DUMPBIN" && break
  4233. done
  4234. if test "x$ac_ct_DUMPBIN" = x; then
  4235. DUMPBIN=":"
  4236. else
  4237. case $cross_compiling:$ac_tool_warned in
  4238. yes:)
  4239. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4240. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4241. ac_tool_warned=yes ;;
  4242. esac
  4243. DUMPBIN=$ac_ct_DUMPBIN
  4244. fi
  4245. fi
  4246. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4247. *COFF*)
  4248. DUMPBIN="$DUMPBIN -symbols"
  4249. ;;
  4250. *)
  4251. DUMPBIN=:
  4252. ;;
  4253. esac
  4254. fi
  4255. if test "$DUMPBIN" != ":"; then
  4256. NM="$DUMPBIN"
  4257. fi
  4258. fi
  4259. test -z "$NM" && NM=nm
  4260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4261. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4262. if ${lt_cv_nm_interface+:} false; then :
  4263. $as_echo_n "(cached) " >&6
  4264. else
  4265. lt_cv_nm_interface="BSD nm"
  4266. echo "int some_variable = 0;" > conftest.$ac_ext
  4267. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4268. (eval "$ac_compile" 2>conftest.err)
  4269. cat conftest.err >&5
  4270. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4271. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4272. cat conftest.err >&5
  4273. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4274. cat conftest.out >&5
  4275. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4276. lt_cv_nm_interface="MS dumpbin"
  4277. fi
  4278. rm -f conftest*
  4279. fi
  4280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4281. $as_echo "$lt_cv_nm_interface" >&6; }
  4282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4283. $as_echo_n "checking whether ln -s works... " >&6; }
  4284. LN_S=$as_ln_s
  4285. if test "$LN_S" = "ln -s"; then
  4286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4287. $as_echo "yes" >&6; }
  4288. else
  4289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4290. $as_echo "no, using $LN_S" >&6; }
  4291. fi
  4292. # find the maximum length of command line arguments
  4293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4294. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4295. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4296. $as_echo_n "(cached) " >&6
  4297. else
  4298. i=0
  4299. teststring="ABCD"
  4300. case $build_os in
  4301. msdosdjgpp*)
  4302. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4303. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4304. # during glob expansion). Even if it were fixed, the result of this
  4305. # check would be larger than it should be.
  4306. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4307. ;;
  4308. gnu*)
  4309. # Under GNU Hurd, this test is not required because there is
  4310. # no limit to the length of command line arguments.
  4311. # Libtool will interpret -1 as no limit whatsoever
  4312. lt_cv_sys_max_cmd_len=-1;
  4313. ;;
  4314. cygwin* | mingw* | cegcc*)
  4315. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4316. # about 5 minutes as the teststring grows exponentially.
  4317. # Worse, since 9x/ME are not pre-emptively multitasking,
  4318. # you end up with a "frozen" computer, even though with patience
  4319. # the test eventually succeeds (with a max line length of 256k).
  4320. # Instead, let's just punt: use the minimum linelength reported by
  4321. # all of the supported platforms: 8192 (on NT/2K/XP).
  4322. lt_cv_sys_max_cmd_len=8192;
  4323. ;;
  4324. mint*)
  4325. # On MiNT this can take a long time and run out of memory.
  4326. lt_cv_sys_max_cmd_len=8192;
  4327. ;;
  4328. amigaos*)
  4329. # On AmigaOS with pdksh, this test takes hours, literally.
  4330. # So we just punt and use a minimum line length of 8192.
  4331. lt_cv_sys_max_cmd_len=8192;
  4332. ;;
  4333. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4334. # This has been around since 386BSD, at least. Likely further.
  4335. if test -x /sbin/sysctl; then
  4336. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4337. elif test -x /usr/sbin/sysctl; then
  4338. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4339. else
  4340. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4341. fi
  4342. # And add a safety zone
  4343. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4344. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4345. ;;
  4346. interix*)
  4347. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4348. lt_cv_sys_max_cmd_len=196608
  4349. ;;
  4350. os2*)
  4351. # The test takes a long time on OS/2.
  4352. lt_cv_sys_max_cmd_len=8192
  4353. ;;
  4354. osf*)
  4355. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4356. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4357. # nice to cause kernel panics so lets avoid the loop below.
  4358. # First set a reasonable default.
  4359. lt_cv_sys_max_cmd_len=16384
  4360. #
  4361. if test -x /sbin/sysconfig; then
  4362. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4363. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4364. esac
  4365. fi
  4366. ;;
  4367. sco3.2v5*)
  4368. lt_cv_sys_max_cmd_len=102400
  4369. ;;
  4370. sysv5* | sco5v6* | sysv4.2uw2*)
  4371. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4372. if test -n "$kargmax"; then
  4373. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4374. else
  4375. lt_cv_sys_max_cmd_len=32768
  4376. fi
  4377. ;;
  4378. *)
  4379. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4380. if test -n "$lt_cv_sys_max_cmd_len"; then
  4381. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4382. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4383. else
  4384. # Make teststring a little bigger before we do anything with it.
  4385. # a 1K string should be a reasonable start.
  4386. for i in 1 2 3 4 5 6 7 8 ; do
  4387. teststring=$teststring$teststring
  4388. done
  4389. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4390. # If test is not a shell built-in, we'll probably end up computing a
  4391. # maximum length that is only half of the actual maximum length, but
  4392. # we can't tell.
  4393. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4394. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4395. test $i != 17 # 1/2 MB should be enough
  4396. do
  4397. i=`expr $i + 1`
  4398. teststring=$teststring$teststring
  4399. done
  4400. # Only check the string length outside the loop.
  4401. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4402. teststring=
  4403. # Add a significant safety factor because C++ compilers can tack on
  4404. # massive amounts of additional arguments before passing them to the
  4405. # linker. It appears as though 1/2 is a usable value.
  4406. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4407. fi
  4408. ;;
  4409. esac
  4410. fi
  4411. if test -n $lt_cv_sys_max_cmd_len ; then
  4412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4413. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4414. else
  4415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4416. $as_echo "none" >&6; }
  4417. fi
  4418. max_cmd_len=$lt_cv_sys_max_cmd_len
  4419. : ${CP="cp -f"}
  4420. : ${MV="mv -f"}
  4421. : ${RM="rm -f"}
  4422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4423. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4424. # Try some XSI features
  4425. xsi_shell=no
  4426. ( _lt_dummy="a/b/c"
  4427. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4428. = c,a/b,b/c, \
  4429. && eval 'test $(( 1 + 1 )) -eq 2 \
  4430. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4431. && xsi_shell=yes
  4432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4433. $as_echo "$xsi_shell" >&6; }
  4434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4435. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4436. lt_shell_append=no
  4437. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4438. >/dev/null 2>&1 \
  4439. && lt_shell_append=yes
  4440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4441. $as_echo "$lt_shell_append" >&6; }
  4442. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4443. lt_unset=unset
  4444. else
  4445. lt_unset=false
  4446. fi
  4447. # test EBCDIC or ASCII
  4448. case `echo X|tr X '\101'` in
  4449. A) # ASCII based system
  4450. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4451. lt_SP2NL='tr \040 \012'
  4452. lt_NL2SP='tr \015\012 \040\040'
  4453. ;;
  4454. *) # EBCDIC based system
  4455. lt_SP2NL='tr \100 \n'
  4456. lt_NL2SP='tr \r\n \100\100'
  4457. ;;
  4458. esac
  4459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4460. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4461. if ${lt_cv_to_host_file_cmd+:} false; then :
  4462. $as_echo_n "(cached) " >&6
  4463. else
  4464. case $host in
  4465. *-*-mingw* )
  4466. case $build in
  4467. *-*-mingw* ) # actually msys
  4468. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4469. ;;
  4470. *-*-cygwin* )
  4471. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4472. ;;
  4473. * ) # otherwise, assume *nix
  4474. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4475. ;;
  4476. esac
  4477. ;;
  4478. *-*-cygwin* )
  4479. case $build in
  4480. *-*-mingw* ) # actually msys
  4481. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4482. ;;
  4483. *-*-cygwin* )
  4484. lt_cv_to_host_file_cmd=func_convert_file_noop
  4485. ;;
  4486. * ) # otherwise, assume *nix
  4487. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4488. ;;
  4489. esac
  4490. ;;
  4491. * ) # unhandled hosts (and "normal" native builds)
  4492. lt_cv_to_host_file_cmd=func_convert_file_noop
  4493. ;;
  4494. esac
  4495. fi
  4496. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4498. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4500. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4501. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4502. $as_echo_n "(cached) " >&6
  4503. else
  4504. #assume ordinary cross tools, or native build.
  4505. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4506. case $host in
  4507. *-*-mingw* )
  4508. case $build in
  4509. *-*-mingw* ) # actually msys
  4510. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4511. ;;
  4512. esac
  4513. ;;
  4514. esac
  4515. fi
  4516. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4518. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4520. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4521. if ${lt_cv_ld_reload_flag+:} false; then :
  4522. $as_echo_n "(cached) " >&6
  4523. else
  4524. lt_cv_ld_reload_flag='-r'
  4525. fi
  4526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4527. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4528. reload_flag=$lt_cv_ld_reload_flag
  4529. case $reload_flag in
  4530. "" | " "*) ;;
  4531. *) reload_flag=" $reload_flag" ;;
  4532. esac
  4533. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4534. case $host_os in
  4535. cygwin* | mingw* | pw32* | cegcc*)
  4536. if test "$GCC" != yes; then
  4537. reload_cmds=false
  4538. fi
  4539. ;;
  4540. darwin*)
  4541. if test "$GCC" = yes; then
  4542. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4543. else
  4544. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4545. fi
  4546. ;;
  4547. esac
  4548. if test -n "$ac_tool_prefix"; then
  4549. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4550. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4552. $as_echo_n "checking for $ac_word... " >&6; }
  4553. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4554. $as_echo_n "(cached) " >&6
  4555. else
  4556. if test -n "$OBJDUMP"; then
  4557. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4558. else
  4559. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4560. for as_dir in $PATH
  4561. do
  4562. IFS=$as_save_IFS
  4563. test -z "$as_dir" && as_dir=.
  4564. for ac_exec_ext in '' $ac_executable_extensions; do
  4565. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4566. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4567. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4568. break 2
  4569. fi
  4570. done
  4571. done
  4572. IFS=$as_save_IFS
  4573. fi
  4574. fi
  4575. OBJDUMP=$ac_cv_prog_OBJDUMP
  4576. if test -n "$OBJDUMP"; then
  4577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4578. $as_echo "$OBJDUMP" >&6; }
  4579. else
  4580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4581. $as_echo "no" >&6; }
  4582. fi
  4583. fi
  4584. if test -z "$ac_cv_prog_OBJDUMP"; then
  4585. ac_ct_OBJDUMP=$OBJDUMP
  4586. # Extract the first word of "objdump", so it can be a program name with args.
  4587. set dummy objdump; ac_word=$2
  4588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4589. $as_echo_n "checking for $ac_word... " >&6; }
  4590. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4591. $as_echo_n "(cached) " >&6
  4592. else
  4593. if test -n "$ac_ct_OBJDUMP"; then
  4594. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4595. else
  4596. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4597. for as_dir in $PATH
  4598. do
  4599. IFS=$as_save_IFS
  4600. test -z "$as_dir" && as_dir=.
  4601. for ac_exec_ext in '' $ac_executable_extensions; do
  4602. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4603. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4604. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4605. break 2
  4606. fi
  4607. done
  4608. done
  4609. IFS=$as_save_IFS
  4610. fi
  4611. fi
  4612. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4613. if test -n "$ac_ct_OBJDUMP"; then
  4614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4615. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4616. else
  4617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4618. $as_echo "no" >&6; }
  4619. fi
  4620. if test "x$ac_ct_OBJDUMP" = x; then
  4621. OBJDUMP="false"
  4622. else
  4623. case $cross_compiling:$ac_tool_warned in
  4624. yes:)
  4625. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4626. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4627. ac_tool_warned=yes ;;
  4628. esac
  4629. OBJDUMP=$ac_ct_OBJDUMP
  4630. fi
  4631. else
  4632. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4633. fi
  4634. test -z "$OBJDUMP" && OBJDUMP=objdump
  4635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4636. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4637. if ${lt_cv_deplibs_check_method+:} false; then :
  4638. $as_echo_n "(cached) " >&6
  4639. else
  4640. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4641. lt_cv_file_magic_test_file=
  4642. lt_cv_deplibs_check_method='unknown'
  4643. # Need to set the preceding variable on all platforms that support
  4644. # interlibrary dependencies.
  4645. # 'none' -- dependencies not supported.
  4646. # `unknown' -- same as none, but documents that we really don't know.
  4647. # 'pass_all' -- all dependencies passed with no checks.
  4648. # 'test_compile' -- check by making test program.
  4649. # 'file_magic [[regex]]' -- check by looking for files in library path
  4650. # which responds to the $file_magic_cmd with a given extended regex.
  4651. # If you have `file' or equivalent on your system and you're not sure
  4652. # whether `pass_all' will *always* work, you probably want this one.
  4653. case $host_os in
  4654. aix[4-9]*)
  4655. lt_cv_deplibs_check_method=pass_all
  4656. ;;
  4657. beos*)
  4658. lt_cv_deplibs_check_method=pass_all
  4659. ;;
  4660. bsdi[45]*)
  4661. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4662. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4663. lt_cv_file_magic_test_file=/shlib/libc.so
  4664. ;;
  4665. cygwin*)
  4666. # func_win32_libid is a shell function defined in ltmain.sh
  4667. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4668. lt_cv_file_magic_cmd='func_win32_libid'
  4669. ;;
  4670. mingw* | pw32*)
  4671. # Base MSYS/MinGW do not provide the 'file' command needed by
  4672. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4673. # unless we find 'file', for example because we are cross-compiling.
  4674. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4675. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4676. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4677. lt_cv_file_magic_cmd='func_win32_libid'
  4678. else
  4679. # Keep this pattern in sync with the one in func_win32_libid.
  4680. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4681. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4682. fi
  4683. ;;
  4684. cegcc*)
  4685. # use the weaker test based on 'objdump'. See mingw*.
  4686. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4687. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4688. ;;
  4689. darwin* | rhapsody*)
  4690. lt_cv_deplibs_check_method=pass_all
  4691. ;;
  4692. freebsd* | dragonfly*)
  4693. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4694. case $host_cpu in
  4695. i*86 )
  4696. # Not sure whether the presence of OpenBSD here was a mistake.
  4697. # Let's accept both of them until this is cleared up.
  4698. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4699. lt_cv_file_magic_cmd=/usr/bin/file
  4700. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4701. ;;
  4702. esac
  4703. else
  4704. lt_cv_deplibs_check_method=pass_all
  4705. fi
  4706. ;;
  4707. gnu*)
  4708. lt_cv_deplibs_check_method=pass_all
  4709. ;;
  4710. haiku*)
  4711. lt_cv_deplibs_check_method=pass_all
  4712. ;;
  4713. hpux10.20* | hpux11*)
  4714. lt_cv_file_magic_cmd=/usr/bin/file
  4715. case $host_cpu in
  4716. ia64*)
  4717. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4718. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4719. ;;
  4720. hppa*64*)
  4721. 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]'
  4722. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4723. ;;
  4724. *)
  4725. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4726. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4727. ;;
  4728. esac
  4729. ;;
  4730. interix[3-9]*)
  4731. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4732. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4733. ;;
  4734. irix5* | irix6* | nonstopux*)
  4735. case $LD in
  4736. *-32|*"-32 ") libmagic=32-bit;;
  4737. *-n32|*"-n32 ") libmagic=N32;;
  4738. *-64|*"-64 ") libmagic=64-bit;;
  4739. *) libmagic=never-match;;
  4740. esac
  4741. lt_cv_deplibs_check_method=pass_all
  4742. ;;
  4743. # This must be glibc/ELF.
  4744. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4745. lt_cv_deplibs_check_method=pass_all
  4746. ;;
  4747. netbsd*)
  4748. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4749. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4750. else
  4751. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4752. fi
  4753. ;;
  4754. newos6*)
  4755. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4756. lt_cv_file_magic_cmd=/usr/bin/file
  4757. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4758. ;;
  4759. *nto* | *qnx*)
  4760. lt_cv_deplibs_check_method=pass_all
  4761. ;;
  4762. openbsd*)
  4763. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4764. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4765. else
  4766. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4767. fi
  4768. ;;
  4769. osf3* | osf4* | osf5*)
  4770. lt_cv_deplibs_check_method=pass_all
  4771. ;;
  4772. rdos*)
  4773. lt_cv_deplibs_check_method=pass_all
  4774. ;;
  4775. solaris*)
  4776. lt_cv_deplibs_check_method=pass_all
  4777. ;;
  4778. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4779. lt_cv_deplibs_check_method=pass_all
  4780. ;;
  4781. sysv4 | sysv4.3*)
  4782. case $host_vendor in
  4783. motorola)
  4784. 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]'
  4785. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4786. ;;
  4787. ncr)
  4788. lt_cv_deplibs_check_method=pass_all
  4789. ;;
  4790. sequent)
  4791. lt_cv_file_magic_cmd='/bin/file'
  4792. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4793. ;;
  4794. sni)
  4795. lt_cv_file_magic_cmd='/bin/file'
  4796. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4797. lt_cv_file_magic_test_file=/lib/libc.so
  4798. ;;
  4799. siemens)
  4800. lt_cv_deplibs_check_method=pass_all
  4801. ;;
  4802. pc)
  4803. lt_cv_deplibs_check_method=pass_all
  4804. ;;
  4805. esac
  4806. ;;
  4807. tpf*)
  4808. lt_cv_deplibs_check_method=pass_all
  4809. ;;
  4810. esac
  4811. fi
  4812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4813. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4814. file_magic_glob=
  4815. want_nocaseglob=no
  4816. if test "$build" = "$host"; then
  4817. case $host_os in
  4818. mingw* | pw32*)
  4819. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4820. want_nocaseglob=yes
  4821. else
  4822. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4823. fi
  4824. ;;
  4825. esac
  4826. fi
  4827. file_magic_cmd=$lt_cv_file_magic_cmd
  4828. deplibs_check_method=$lt_cv_deplibs_check_method
  4829. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4830. if test -n "$ac_tool_prefix"; then
  4831. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4832. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4834. $as_echo_n "checking for $ac_word... " >&6; }
  4835. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4836. $as_echo_n "(cached) " >&6
  4837. else
  4838. if test -n "$DLLTOOL"; then
  4839. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4840. else
  4841. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4842. for as_dir in $PATH
  4843. do
  4844. IFS=$as_save_IFS
  4845. test -z "$as_dir" && as_dir=.
  4846. for ac_exec_ext in '' $ac_executable_extensions; do
  4847. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4848. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4849. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4850. break 2
  4851. fi
  4852. done
  4853. done
  4854. IFS=$as_save_IFS
  4855. fi
  4856. fi
  4857. DLLTOOL=$ac_cv_prog_DLLTOOL
  4858. if test -n "$DLLTOOL"; then
  4859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4860. $as_echo "$DLLTOOL" >&6; }
  4861. else
  4862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4863. $as_echo "no" >&6; }
  4864. fi
  4865. fi
  4866. if test -z "$ac_cv_prog_DLLTOOL"; then
  4867. ac_ct_DLLTOOL=$DLLTOOL
  4868. # Extract the first word of "dlltool", so it can be a program name with args.
  4869. set dummy dlltool; ac_word=$2
  4870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4871. $as_echo_n "checking for $ac_word... " >&6; }
  4872. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4873. $as_echo_n "(cached) " >&6
  4874. else
  4875. if test -n "$ac_ct_DLLTOOL"; then
  4876. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4877. else
  4878. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4879. for as_dir in $PATH
  4880. do
  4881. IFS=$as_save_IFS
  4882. test -z "$as_dir" && as_dir=.
  4883. for ac_exec_ext in '' $ac_executable_extensions; do
  4884. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4885. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4886. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4887. break 2
  4888. fi
  4889. done
  4890. done
  4891. IFS=$as_save_IFS
  4892. fi
  4893. fi
  4894. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4895. if test -n "$ac_ct_DLLTOOL"; then
  4896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4897. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4898. else
  4899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4900. $as_echo "no" >&6; }
  4901. fi
  4902. if test "x$ac_ct_DLLTOOL" = x; then
  4903. DLLTOOL="false"
  4904. else
  4905. case $cross_compiling:$ac_tool_warned in
  4906. yes:)
  4907. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4908. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4909. ac_tool_warned=yes ;;
  4910. esac
  4911. DLLTOOL=$ac_ct_DLLTOOL
  4912. fi
  4913. else
  4914. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4915. fi
  4916. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4918. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4919. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4920. $as_echo_n "(cached) " >&6
  4921. else
  4922. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4923. case $host_os in
  4924. cygwin* | mingw* | pw32* | cegcc*)
  4925. # two different shell functions defined in ltmain.sh
  4926. # decide which to use based on capabilities of $DLLTOOL
  4927. case `$DLLTOOL --help 2>&1` in
  4928. *--identify-strict*)
  4929. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4930. ;;
  4931. *)
  4932. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4933. ;;
  4934. esac
  4935. ;;
  4936. *)
  4937. # fallback: assume linklib IS sharedlib
  4938. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4939. ;;
  4940. esac
  4941. fi
  4942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4943. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4944. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4945. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4946. if test -n "$ac_tool_prefix"; then
  4947. for ac_prog in ar
  4948. do
  4949. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4950. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4952. $as_echo_n "checking for $ac_word... " >&6; }
  4953. if ${ac_cv_prog_AR+:} false; then :
  4954. $as_echo_n "(cached) " >&6
  4955. else
  4956. if test -n "$AR"; then
  4957. ac_cv_prog_AR="$AR" # Let the user override the test.
  4958. else
  4959. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4960. for as_dir in $PATH
  4961. do
  4962. IFS=$as_save_IFS
  4963. test -z "$as_dir" && as_dir=.
  4964. for ac_exec_ext in '' $ac_executable_extensions; do
  4965. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4966. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4967. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4968. break 2
  4969. fi
  4970. done
  4971. done
  4972. IFS=$as_save_IFS
  4973. fi
  4974. fi
  4975. AR=$ac_cv_prog_AR
  4976. if test -n "$AR"; then
  4977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4978. $as_echo "$AR" >&6; }
  4979. else
  4980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4981. $as_echo "no" >&6; }
  4982. fi
  4983. test -n "$AR" && break
  4984. done
  4985. fi
  4986. if test -z "$AR"; then
  4987. ac_ct_AR=$AR
  4988. for ac_prog in ar
  4989. do
  4990. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4991. set dummy $ac_prog; ac_word=$2
  4992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4993. $as_echo_n "checking for $ac_word... " >&6; }
  4994. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4995. $as_echo_n "(cached) " >&6
  4996. else
  4997. if test -n "$ac_ct_AR"; then
  4998. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4999. else
  5000. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5001. for as_dir in $PATH
  5002. do
  5003. IFS=$as_save_IFS
  5004. test -z "$as_dir" && as_dir=.
  5005. for ac_exec_ext in '' $ac_executable_extensions; do
  5006. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5007. ac_cv_prog_ac_ct_AR="$ac_prog"
  5008. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5009. break 2
  5010. fi
  5011. done
  5012. done
  5013. IFS=$as_save_IFS
  5014. fi
  5015. fi
  5016. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5017. if test -n "$ac_ct_AR"; then
  5018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5019. $as_echo "$ac_ct_AR" >&6; }
  5020. else
  5021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5022. $as_echo "no" >&6; }
  5023. fi
  5024. test -n "$ac_ct_AR" && break
  5025. done
  5026. if test "x$ac_ct_AR" = x; then
  5027. AR="false"
  5028. else
  5029. case $cross_compiling:$ac_tool_warned in
  5030. yes:)
  5031. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5032. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5033. ac_tool_warned=yes ;;
  5034. esac
  5035. AR=$ac_ct_AR
  5036. fi
  5037. fi
  5038. : ${AR=ar}
  5039. : ${AR_FLAGS=cru}
  5040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5041. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5042. if ${lt_cv_ar_at_file+:} false; then :
  5043. $as_echo_n "(cached) " >&6
  5044. else
  5045. lt_cv_ar_at_file=no
  5046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5047. /* end confdefs.h. */
  5048. int
  5049. main ()
  5050. {
  5051. ;
  5052. return 0;
  5053. }
  5054. _ACEOF
  5055. if ac_fn_c_try_compile "$LINENO"; then :
  5056. echo conftest.$ac_objext > conftest.lst
  5057. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5058. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5059. (eval $lt_ar_try) 2>&5
  5060. ac_status=$?
  5061. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5062. test $ac_status = 0; }
  5063. if test "$ac_status" -eq 0; then
  5064. # Ensure the archiver fails upon bogus file names.
  5065. rm -f conftest.$ac_objext libconftest.a
  5066. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5067. (eval $lt_ar_try) 2>&5
  5068. ac_status=$?
  5069. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5070. test $ac_status = 0; }
  5071. if test "$ac_status" -ne 0; then
  5072. lt_cv_ar_at_file=@
  5073. fi
  5074. fi
  5075. rm -f conftest.* libconftest.a
  5076. fi
  5077. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5078. fi
  5079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5080. $as_echo "$lt_cv_ar_at_file" >&6; }
  5081. if test "x$lt_cv_ar_at_file" = xno; then
  5082. archiver_list_spec=
  5083. else
  5084. archiver_list_spec=$lt_cv_ar_at_file
  5085. fi
  5086. if test -n "$ac_tool_prefix"; then
  5087. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5088. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5090. $as_echo_n "checking for $ac_word... " >&6; }
  5091. if ${ac_cv_prog_STRIP+:} false; then :
  5092. $as_echo_n "(cached) " >&6
  5093. else
  5094. if test -n "$STRIP"; then
  5095. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5096. else
  5097. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5098. for as_dir in $PATH
  5099. do
  5100. IFS=$as_save_IFS
  5101. test -z "$as_dir" && as_dir=.
  5102. for ac_exec_ext in '' $ac_executable_extensions; do
  5103. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5104. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5105. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5106. break 2
  5107. fi
  5108. done
  5109. done
  5110. IFS=$as_save_IFS
  5111. fi
  5112. fi
  5113. STRIP=$ac_cv_prog_STRIP
  5114. if test -n "$STRIP"; then
  5115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5116. $as_echo "$STRIP" >&6; }
  5117. else
  5118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5119. $as_echo "no" >&6; }
  5120. fi
  5121. fi
  5122. if test -z "$ac_cv_prog_STRIP"; then
  5123. ac_ct_STRIP=$STRIP
  5124. # Extract the first word of "strip", so it can be a program name with args.
  5125. set dummy strip; ac_word=$2
  5126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5127. $as_echo_n "checking for $ac_word... " >&6; }
  5128. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5129. $as_echo_n "(cached) " >&6
  5130. else
  5131. if test -n "$ac_ct_STRIP"; then
  5132. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5133. else
  5134. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5135. for as_dir in $PATH
  5136. do
  5137. IFS=$as_save_IFS
  5138. test -z "$as_dir" && as_dir=.
  5139. for ac_exec_ext in '' $ac_executable_extensions; do
  5140. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5141. ac_cv_prog_ac_ct_STRIP="strip"
  5142. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5143. break 2
  5144. fi
  5145. done
  5146. done
  5147. IFS=$as_save_IFS
  5148. fi
  5149. fi
  5150. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5151. if test -n "$ac_ct_STRIP"; then
  5152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5153. $as_echo "$ac_ct_STRIP" >&6; }
  5154. else
  5155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5156. $as_echo "no" >&6; }
  5157. fi
  5158. if test "x$ac_ct_STRIP" = x; then
  5159. STRIP=":"
  5160. else
  5161. case $cross_compiling:$ac_tool_warned in
  5162. yes:)
  5163. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5164. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5165. ac_tool_warned=yes ;;
  5166. esac
  5167. STRIP=$ac_ct_STRIP
  5168. fi
  5169. else
  5170. STRIP="$ac_cv_prog_STRIP"
  5171. fi
  5172. test -z "$STRIP" && STRIP=:
  5173. if test -n "$ac_tool_prefix"; then
  5174. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5175. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5177. $as_echo_n "checking for $ac_word... " >&6; }
  5178. if ${ac_cv_prog_RANLIB+:} false; then :
  5179. $as_echo_n "(cached) " >&6
  5180. else
  5181. if test -n "$RANLIB"; then
  5182. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5183. else
  5184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5185. for as_dir in $PATH
  5186. do
  5187. IFS=$as_save_IFS
  5188. test -z "$as_dir" && as_dir=.
  5189. for ac_exec_ext in '' $ac_executable_extensions; do
  5190. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5191. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5192. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5193. break 2
  5194. fi
  5195. done
  5196. done
  5197. IFS=$as_save_IFS
  5198. fi
  5199. fi
  5200. RANLIB=$ac_cv_prog_RANLIB
  5201. if test -n "$RANLIB"; then
  5202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5203. $as_echo "$RANLIB" >&6; }
  5204. else
  5205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5206. $as_echo "no" >&6; }
  5207. fi
  5208. fi
  5209. if test -z "$ac_cv_prog_RANLIB"; then
  5210. ac_ct_RANLIB=$RANLIB
  5211. # Extract the first word of "ranlib", so it can be a program name with args.
  5212. set dummy ranlib; ac_word=$2
  5213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5214. $as_echo_n "checking for $ac_word... " >&6; }
  5215. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5216. $as_echo_n "(cached) " >&6
  5217. else
  5218. if test -n "$ac_ct_RANLIB"; then
  5219. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5220. else
  5221. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5222. for as_dir in $PATH
  5223. do
  5224. IFS=$as_save_IFS
  5225. test -z "$as_dir" && as_dir=.
  5226. for ac_exec_ext in '' $ac_executable_extensions; do
  5227. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5228. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5229. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5230. break 2
  5231. fi
  5232. done
  5233. done
  5234. IFS=$as_save_IFS
  5235. fi
  5236. fi
  5237. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5238. if test -n "$ac_ct_RANLIB"; then
  5239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5240. $as_echo "$ac_ct_RANLIB" >&6; }
  5241. else
  5242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5243. $as_echo "no" >&6; }
  5244. fi
  5245. if test "x$ac_ct_RANLIB" = x; then
  5246. RANLIB=":"
  5247. else
  5248. case $cross_compiling:$ac_tool_warned in
  5249. yes:)
  5250. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5251. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5252. ac_tool_warned=yes ;;
  5253. esac
  5254. RANLIB=$ac_ct_RANLIB
  5255. fi
  5256. else
  5257. RANLIB="$ac_cv_prog_RANLIB"
  5258. fi
  5259. test -z "$RANLIB" && RANLIB=:
  5260. # Determine commands to create old-style static archives.
  5261. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5262. old_postinstall_cmds='chmod 644 $oldlib'
  5263. old_postuninstall_cmds=
  5264. if test -n "$RANLIB"; then
  5265. case $host_os in
  5266. openbsd*)
  5267. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5268. ;;
  5269. *)
  5270. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5271. ;;
  5272. esac
  5273. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5274. fi
  5275. case $host_os in
  5276. darwin*)
  5277. lock_old_archive_extraction=yes ;;
  5278. *)
  5279. lock_old_archive_extraction=no ;;
  5280. esac
  5281. # If no C compiler was specified, use CC.
  5282. LTCC=${LTCC-"$CC"}
  5283. # If no C compiler flags were specified, use CFLAGS.
  5284. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5285. # Allow CC to be a program name with arguments.
  5286. compiler=$CC
  5287. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5289. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5290. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5291. $as_echo_n "(cached) " >&6
  5292. else
  5293. # These are sane defaults that work on at least a few old systems.
  5294. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5295. # Character class describing NM global symbol codes.
  5296. symcode='[BCDEGRST]'
  5297. # Regexp to match symbols that can be accessed directly from C.
  5298. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5299. # Define system-specific variables.
  5300. case $host_os in
  5301. aix*)
  5302. symcode='[BCDT]'
  5303. ;;
  5304. cygwin* | mingw* | pw32* | cegcc*)
  5305. symcode='[ABCDGISTW]'
  5306. ;;
  5307. hpux*)
  5308. if test "$host_cpu" = ia64; then
  5309. symcode='[ABCDEGRST]'
  5310. fi
  5311. ;;
  5312. irix* | nonstopux*)
  5313. symcode='[BCDEGRST]'
  5314. ;;
  5315. osf*)
  5316. symcode='[BCDEGQRST]'
  5317. ;;
  5318. solaris*)
  5319. symcode='[BDRT]'
  5320. ;;
  5321. sco3.2v5*)
  5322. symcode='[DT]'
  5323. ;;
  5324. sysv4.2uw2*)
  5325. symcode='[DT]'
  5326. ;;
  5327. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5328. symcode='[ABDT]'
  5329. ;;
  5330. sysv4)
  5331. symcode='[DFNSTU]'
  5332. ;;
  5333. esac
  5334. # If we're using GNU nm, then use its standard symbol codes.
  5335. case `$NM -V 2>&1` in
  5336. *GNU* | *'with BFD'*)
  5337. symcode='[ABCDGIRSTW]' ;;
  5338. esac
  5339. # Transform an extracted symbol line into a proper C declaration.
  5340. # Some systems (esp. on ia64) link data and code symbols differently,
  5341. # so use this general approach.
  5342. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5343. # Transform an extracted symbol line into symbol name and symbol address
  5344. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5345. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  5346. # Handle CRLF in mingw tool chain
  5347. opt_cr=
  5348. case $build_os in
  5349. mingw*)
  5350. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5351. ;;
  5352. esac
  5353. # Try without a prefix underscore, then with it.
  5354. for ac_symprfx in "" "_"; do
  5355. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5356. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5357. # Write the raw and C identifiers.
  5358. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5359. # Fake it for dumpbin and say T for any non-static function
  5360. # and D for any global variable.
  5361. # Also find C++ and __fastcall symbols from MSVC++,
  5362. # which start with @ or ?.
  5363. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5364. " {last_section=section; section=\$ 3};"\
  5365. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5366. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5367. " \$ 0!~/External *\|/{next};"\
  5368. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5369. " {if(hide[section]) next};"\
  5370. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5371. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5372. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5373. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5374. " ' prfx=^$ac_symprfx"
  5375. else
  5376. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5377. fi
  5378. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5379. # Check to see that the pipe works correctly.
  5380. pipe_works=no
  5381. rm -f conftest*
  5382. cat > conftest.$ac_ext <<_LT_EOF
  5383. #ifdef __cplusplus
  5384. extern "C" {
  5385. #endif
  5386. char nm_test_var;
  5387. void nm_test_func(void);
  5388. void nm_test_func(void){}
  5389. #ifdef __cplusplus
  5390. }
  5391. #endif
  5392. int main(){nm_test_var='a';nm_test_func();return(0);}
  5393. _LT_EOF
  5394. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5395. (eval $ac_compile) 2>&5
  5396. ac_status=$?
  5397. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5398. test $ac_status = 0; }; then
  5399. # Now try to grab the symbols.
  5400. nlist=conftest.nm
  5401. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5402. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5403. ac_status=$?
  5404. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5405. test $ac_status = 0; } && test -s "$nlist"; then
  5406. # Try sorting and uniquifying the output.
  5407. if sort "$nlist" | uniq > "$nlist"T; then
  5408. mv -f "$nlist"T "$nlist"
  5409. else
  5410. rm -f "$nlist"T
  5411. fi
  5412. # Make sure that we snagged all the symbols we need.
  5413. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5414. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5415. cat <<_LT_EOF > conftest.$ac_ext
  5416. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5417. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5418. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5419. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5420. # define LT_DLSYM_CONST
  5421. #elif defined(__osf__)
  5422. /* This system does not cope well with relocations in const data. */
  5423. # define LT_DLSYM_CONST
  5424. #else
  5425. # define LT_DLSYM_CONST const
  5426. #endif
  5427. #ifdef __cplusplus
  5428. extern "C" {
  5429. #endif
  5430. _LT_EOF
  5431. # Now generate the symbol file.
  5432. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5433. cat <<_LT_EOF >> conftest.$ac_ext
  5434. /* The mapping between symbol names and symbols. */
  5435. LT_DLSYM_CONST struct {
  5436. const char *name;
  5437. void *address;
  5438. }
  5439. lt__PROGRAM__LTX_preloaded_symbols[] =
  5440. {
  5441. { "@PROGRAM@", (void *) 0 },
  5442. _LT_EOF
  5443. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5444. cat <<\_LT_EOF >> conftest.$ac_ext
  5445. {0, (void *) 0}
  5446. };
  5447. /* This works around a problem in FreeBSD linker */
  5448. #ifdef FREEBSD_WORKAROUND
  5449. static const void *lt_preloaded_setup() {
  5450. return lt__PROGRAM__LTX_preloaded_symbols;
  5451. }
  5452. #endif
  5453. #ifdef __cplusplus
  5454. }
  5455. #endif
  5456. _LT_EOF
  5457. # Now try linking the two files.
  5458. mv conftest.$ac_objext conftstm.$ac_objext
  5459. lt_globsym_save_LIBS=$LIBS
  5460. lt_globsym_save_CFLAGS=$CFLAGS
  5461. LIBS="conftstm.$ac_objext"
  5462. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5463. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5464. (eval $ac_link) 2>&5
  5465. ac_status=$?
  5466. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5467. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5468. pipe_works=yes
  5469. fi
  5470. LIBS=$lt_globsym_save_LIBS
  5471. CFLAGS=$lt_globsym_save_CFLAGS
  5472. else
  5473. echo "cannot find nm_test_func in $nlist" >&5
  5474. fi
  5475. else
  5476. echo "cannot find nm_test_var in $nlist" >&5
  5477. fi
  5478. else
  5479. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5480. fi
  5481. else
  5482. echo "$progname: failed program was:" >&5
  5483. cat conftest.$ac_ext >&5
  5484. fi
  5485. rm -rf conftest* conftst*
  5486. # Do not use the global_symbol_pipe unless it works.
  5487. if test "$pipe_works" = yes; then
  5488. break
  5489. else
  5490. lt_cv_sys_global_symbol_pipe=
  5491. fi
  5492. done
  5493. fi
  5494. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5495. lt_cv_sys_global_symbol_to_cdecl=
  5496. fi
  5497. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5499. $as_echo "failed" >&6; }
  5500. else
  5501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5502. $as_echo "ok" >&6; }
  5503. fi
  5504. # Response file support.
  5505. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5506. nm_file_list_spec='@'
  5507. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5508. nm_file_list_spec='@'
  5509. fi
  5510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5511. $as_echo_n "checking for sysroot... " >&6; }
  5512. # Check whether --with-sysroot was given.
  5513. if test "${with_sysroot+set}" = set; then :
  5514. withval=$with_sysroot;
  5515. else
  5516. with_sysroot=no
  5517. fi
  5518. lt_sysroot=
  5519. case ${with_sysroot} in #(
  5520. yes)
  5521. if test "$GCC" = yes; then
  5522. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5523. fi
  5524. ;; #(
  5525. /*)
  5526. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5527. ;; #(
  5528. no|'')
  5529. ;; #(
  5530. *)
  5531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5532. $as_echo "${with_sysroot}" >&6; }
  5533. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5534. ;;
  5535. esac
  5536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5537. $as_echo "${lt_sysroot:-no}" >&6; }
  5538. # Check whether --enable-libtool-lock was given.
  5539. if test "${enable_libtool_lock+set}" = set; then :
  5540. enableval=$enable_libtool_lock;
  5541. fi
  5542. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5543. # Some flags need to be propagated to the compiler or linker for good
  5544. # libtool support.
  5545. case $host in
  5546. ia64-*-hpux*)
  5547. # Find out which ABI we are using.
  5548. echo 'int i;' > conftest.$ac_ext
  5549. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5550. (eval $ac_compile) 2>&5
  5551. ac_status=$?
  5552. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5553. test $ac_status = 0; }; then
  5554. case `/usr/bin/file conftest.$ac_objext` in
  5555. *ELF-32*)
  5556. HPUX_IA64_MODE="32"
  5557. ;;
  5558. *ELF-64*)
  5559. HPUX_IA64_MODE="64"
  5560. ;;
  5561. esac
  5562. fi
  5563. rm -rf conftest*
  5564. ;;
  5565. *-*-irix6*)
  5566. # Find out which ABI we are using.
  5567. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5568. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5569. (eval $ac_compile) 2>&5
  5570. ac_status=$?
  5571. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5572. test $ac_status = 0; }; then
  5573. if test "$lt_cv_prog_gnu_ld" = yes; then
  5574. case `/usr/bin/file conftest.$ac_objext` in
  5575. *32-bit*)
  5576. LD="${LD-ld} -melf32bsmip"
  5577. ;;
  5578. *N32*)
  5579. LD="${LD-ld} -melf32bmipn32"
  5580. ;;
  5581. *64-bit*)
  5582. LD="${LD-ld} -melf64bmip"
  5583. ;;
  5584. esac
  5585. else
  5586. case `/usr/bin/file conftest.$ac_objext` in
  5587. *32-bit*)
  5588. LD="${LD-ld} -32"
  5589. ;;
  5590. *N32*)
  5591. LD="${LD-ld} -n32"
  5592. ;;
  5593. *64-bit*)
  5594. LD="${LD-ld} -64"
  5595. ;;
  5596. esac
  5597. fi
  5598. fi
  5599. rm -rf conftest*
  5600. ;;
  5601. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5602. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5603. # Find out which ABI we are using.
  5604. echo 'int i;' > conftest.$ac_ext
  5605. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5606. (eval $ac_compile) 2>&5
  5607. ac_status=$?
  5608. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5609. test $ac_status = 0; }; then
  5610. case `/usr/bin/file conftest.o` in
  5611. *32-bit*)
  5612. case $host in
  5613. x86_64-*kfreebsd*-gnu)
  5614. LD="${LD-ld} -m elf_i386_fbsd"
  5615. ;;
  5616. x86_64-*linux*)
  5617. LD="${LD-ld} -m elf_i386"
  5618. ;;
  5619. powerpc64le-*linux*)
  5620. LD="${LD-ld} -m elf32lppclinux"
  5621. ;;
  5622. powerpc64-*linux*)
  5623. LD="${LD-ld} -m elf32ppclinux"
  5624. ;;
  5625. s390x-*linux*)
  5626. LD="${LD-ld} -m elf_s390"
  5627. ;;
  5628. sparc64-*linux*)
  5629. LD="${LD-ld} -m elf32_sparc"
  5630. ;;
  5631. esac
  5632. ;;
  5633. *64-bit*)
  5634. case $host in
  5635. x86_64-*kfreebsd*-gnu)
  5636. LD="${LD-ld} -m elf_x86_64_fbsd"
  5637. ;;
  5638. x86_64-*linux*)
  5639. LD="${LD-ld} -m elf_x86_64"
  5640. ;;
  5641. powerpcle-*linux*)
  5642. LD="${LD-ld} -m elf64lppc"
  5643. ;;
  5644. powerpc-*linux*)
  5645. LD="${LD-ld} -m elf64ppc"
  5646. ;;
  5647. s390*-*linux*|s390*-*tpf*)
  5648. LD="${LD-ld} -m elf64_s390"
  5649. ;;
  5650. sparc*-*linux*)
  5651. LD="${LD-ld} -m elf64_sparc"
  5652. ;;
  5653. esac
  5654. ;;
  5655. esac
  5656. fi
  5657. rm -rf conftest*
  5658. ;;
  5659. *-*-sco3.2v5*)
  5660. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5661. SAVE_CFLAGS="$CFLAGS"
  5662. CFLAGS="$CFLAGS -belf"
  5663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5664. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5665. if ${lt_cv_cc_needs_belf+:} false; then :
  5666. $as_echo_n "(cached) " >&6
  5667. else
  5668. ac_ext=c
  5669. ac_cpp='$CPP $CPPFLAGS'
  5670. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5671. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5672. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5674. /* end confdefs.h. */
  5675. int
  5676. main ()
  5677. {
  5678. ;
  5679. return 0;
  5680. }
  5681. _ACEOF
  5682. if ac_fn_c_try_link "$LINENO"; then :
  5683. lt_cv_cc_needs_belf=yes
  5684. else
  5685. lt_cv_cc_needs_belf=no
  5686. fi
  5687. rm -f core conftest.err conftest.$ac_objext \
  5688. conftest$ac_exeext conftest.$ac_ext
  5689. ac_ext=c
  5690. ac_cpp='$CPP $CPPFLAGS'
  5691. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5692. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5693. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5694. fi
  5695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5696. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5697. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5698. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5699. CFLAGS="$SAVE_CFLAGS"
  5700. fi
  5701. ;;
  5702. *-*solaris*)
  5703. # Find out which ABI we are using.
  5704. echo 'int i;' > conftest.$ac_ext
  5705. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5706. (eval $ac_compile) 2>&5
  5707. ac_status=$?
  5708. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5709. test $ac_status = 0; }; then
  5710. case `/usr/bin/file conftest.o` in
  5711. *64-bit*)
  5712. case $lt_cv_prog_gnu_ld in
  5713. yes*)
  5714. case $host in
  5715. i?86-*-solaris*)
  5716. LD="${LD-ld} -m elf_x86_64"
  5717. ;;
  5718. sparc*-*-solaris*)
  5719. LD="${LD-ld} -m elf64_sparc"
  5720. ;;
  5721. esac
  5722. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5723. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5724. LD="${LD-ld}_sol2"
  5725. fi
  5726. ;;
  5727. *)
  5728. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5729. LD="${LD-ld} -64"
  5730. fi
  5731. ;;
  5732. esac
  5733. ;;
  5734. esac
  5735. fi
  5736. rm -rf conftest*
  5737. ;;
  5738. esac
  5739. need_locks="$enable_libtool_lock"
  5740. if test -n "$ac_tool_prefix"; then
  5741. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5742. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5744. $as_echo_n "checking for $ac_word... " >&6; }
  5745. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5746. $as_echo_n "(cached) " >&6
  5747. else
  5748. if test -n "$MANIFEST_TOOL"; then
  5749. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5750. else
  5751. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5752. for as_dir in $PATH
  5753. do
  5754. IFS=$as_save_IFS
  5755. test -z "$as_dir" && as_dir=.
  5756. for ac_exec_ext in '' $ac_executable_extensions; do
  5757. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5758. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5759. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5760. break 2
  5761. fi
  5762. done
  5763. done
  5764. IFS=$as_save_IFS
  5765. fi
  5766. fi
  5767. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5768. if test -n "$MANIFEST_TOOL"; then
  5769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5770. $as_echo "$MANIFEST_TOOL" >&6; }
  5771. else
  5772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5773. $as_echo "no" >&6; }
  5774. fi
  5775. fi
  5776. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5777. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5778. # Extract the first word of "mt", so it can be a program name with args.
  5779. set dummy mt; ac_word=$2
  5780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5781. $as_echo_n "checking for $ac_word... " >&6; }
  5782. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5783. $as_echo_n "(cached) " >&6
  5784. else
  5785. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5786. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5787. else
  5788. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5789. for as_dir in $PATH
  5790. do
  5791. IFS=$as_save_IFS
  5792. test -z "$as_dir" && as_dir=.
  5793. for ac_exec_ext in '' $ac_executable_extensions; do
  5794. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5795. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5796. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5797. break 2
  5798. fi
  5799. done
  5800. done
  5801. IFS=$as_save_IFS
  5802. fi
  5803. fi
  5804. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5805. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5807. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5808. else
  5809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5810. $as_echo "no" >&6; }
  5811. fi
  5812. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5813. MANIFEST_TOOL=":"
  5814. else
  5815. case $cross_compiling:$ac_tool_warned in
  5816. yes:)
  5817. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5818. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5819. ac_tool_warned=yes ;;
  5820. esac
  5821. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5822. fi
  5823. else
  5824. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5825. fi
  5826. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5828. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5829. if ${lt_cv_path_mainfest_tool+:} false; then :
  5830. $as_echo_n "(cached) " >&6
  5831. else
  5832. lt_cv_path_mainfest_tool=no
  5833. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5834. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5835. cat conftest.err >&5
  5836. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5837. lt_cv_path_mainfest_tool=yes
  5838. fi
  5839. rm -f conftest*
  5840. fi
  5841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5842. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5843. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5844. MANIFEST_TOOL=:
  5845. fi
  5846. case $host_os in
  5847. rhapsody* | darwin*)
  5848. if test -n "$ac_tool_prefix"; then
  5849. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5850. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5852. $as_echo_n "checking for $ac_word... " >&6; }
  5853. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5854. $as_echo_n "(cached) " >&6
  5855. else
  5856. if test -n "$DSYMUTIL"; then
  5857. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5858. else
  5859. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5860. for as_dir in $PATH
  5861. do
  5862. IFS=$as_save_IFS
  5863. test -z "$as_dir" && as_dir=.
  5864. for ac_exec_ext in '' $ac_executable_extensions; do
  5865. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5866. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5867. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5868. break 2
  5869. fi
  5870. done
  5871. done
  5872. IFS=$as_save_IFS
  5873. fi
  5874. fi
  5875. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5876. if test -n "$DSYMUTIL"; then
  5877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5878. $as_echo "$DSYMUTIL" >&6; }
  5879. else
  5880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5881. $as_echo "no" >&6; }
  5882. fi
  5883. fi
  5884. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5885. ac_ct_DSYMUTIL=$DSYMUTIL
  5886. # Extract the first word of "dsymutil", so it can be a program name with args.
  5887. set dummy dsymutil; ac_word=$2
  5888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5889. $as_echo_n "checking for $ac_word... " >&6; }
  5890. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5891. $as_echo_n "(cached) " >&6
  5892. else
  5893. if test -n "$ac_ct_DSYMUTIL"; then
  5894. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5895. else
  5896. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5897. for as_dir in $PATH
  5898. do
  5899. IFS=$as_save_IFS
  5900. test -z "$as_dir" && as_dir=.
  5901. for ac_exec_ext in '' $ac_executable_extensions; do
  5902. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5903. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5904. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5905. break 2
  5906. fi
  5907. done
  5908. done
  5909. IFS=$as_save_IFS
  5910. fi
  5911. fi
  5912. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5913. if test -n "$ac_ct_DSYMUTIL"; then
  5914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5915. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5916. else
  5917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5918. $as_echo "no" >&6; }
  5919. fi
  5920. if test "x$ac_ct_DSYMUTIL" = x; then
  5921. DSYMUTIL=":"
  5922. else
  5923. case $cross_compiling:$ac_tool_warned in
  5924. yes:)
  5925. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5926. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5927. ac_tool_warned=yes ;;
  5928. esac
  5929. DSYMUTIL=$ac_ct_DSYMUTIL
  5930. fi
  5931. else
  5932. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5933. fi
  5934. if test -n "$ac_tool_prefix"; then
  5935. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5936. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5938. $as_echo_n "checking for $ac_word... " >&6; }
  5939. if ${ac_cv_prog_NMEDIT+:} false; then :
  5940. $as_echo_n "(cached) " >&6
  5941. else
  5942. if test -n "$NMEDIT"; then
  5943. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5944. else
  5945. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5946. for as_dir in $PATH
  5947. do
  5948. IFS=$as_save_IFS
  5949. test -z "$as_dir" && as_dir=.
  5950. for ac_exec_ext in '' $ac_executable_extensions; do
  5951. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5952. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5953. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5954. break 2
  5955. fi
  5956. done
  5957. done
  5958. IFS=$as_save_IFS
  5959. fi
  5960. fi
  5961. NMEDIT=$ac_cv_prog_NMEDIT
  5962. if test -n "$NMEDIT"; then
  5963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5964. $as_echo "$NMEDIT" >&6; }
  5965. else
  5966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5967. $as_echo "no" >&6; }
  5968. fi
  5969. fi
  5970. if test -z "$ac_cv_prog_NMEDIT"; then
  5971. ac_ct_NMEDIT=$NMEDIT
  5972. # Extract the first word of "nmedit", so it can be a program name with args.
  5973. set dummy nmedit; ac_word=$2
  5974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5975. $as_echo_n "checking for $ac_word... " >&6; }
  5976. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5977. $as_echo_n "(cached) " >&6
  5978. else
  5979. if test -n "$ac_ct_NMEDIT"; then
  5980. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5981. else
  5982. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5983. for as_dir in $PATH
  5984. do
  5985. IFS=$as_save_IFS
  5986. test -z "$as_dir" && as_dir=.
  5987. for ac_exec_ext in '' $ac_executable_extensions; do
  5988. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5989. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5990. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5991. break 2
  5992. fi
  5993. done
  5994. done
  5995. IFS=$as_save_IFS
  5996. fi
  5997. fi
  5998. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5999. if test -n "$ac_ct_NMEDIT"; then
  6000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6001. $as_echo "$ac_ct_NMEDIT" >&6; }
  6002. else
  6003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6004. $as_echo "no" >&6; }
  6005. fi
  6006. if test "x$ac_ct_NMEDIT" = x; then
  6007. NMEDIT=":"
  6008. else
  6009. case $cross_compiling:$ac_tool_warned in
  6010. yes:)
  6011. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6012. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6013. ac_tool_warned=yes ;;
  6014. esac
  6015. NMEDIT=$ac_ct_NMEDIT
  6016. fi
  6017. else
  6018. NMEDIT="$ac_cv_prog_NMEDIT"
  6019. fi
  6020. if test -n "$ac_tool_prefix"; then
  6021. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6022. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6024. $as_echo_n "checking for $ac_word... " >&6; }
  6025. if ${ac_cv_prog_LIPO+:} false; then :
  6026. $as_echo_n "(cached) " >&6
  6027. else
  6028. if test -n "$LIPO"; then
  6029. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6030. else
  6031. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6032. for as_dir in $PATH
  6033. do
  6034. IFS=$as_save_IFS
  6035. test -z "$as_dir" && as_dir=.
  6036. for ac_exec_ext in '' $ac_executable_extensions; do
  6037. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6038. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6039. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6040. break 2
  6041. fi
  6042. done
  6043. done
  6044. IFS=$as_save_IFS
  6045. fi
  6046. fi
  6047. LIPO=$ac_cv_prog_LIPO
  6048. if test -n "$LIPO"; then
  6049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6050. $as_echo "$LIPO" >&6; }
  6051. else
  6052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6053. $as_echo "no" >&6; }
  6054. fi
  6055. fi
  6056. if test -z "$ac_cv_prog_LIPO"; then
  6057. ac_ct_LIPO=$LIPO
  6058. # Extract the first word of "lipo", so it can be a program name with args.
  6059. set dummy lipo; ac_word=$2
  6060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6061. $as_echo_n "checking for $ac_word... " >&6; }
  6062. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6063. $as_echo_n "(cached) " >&6
  6064. else
  6065. if test -n "$ac_ct_LIPO"; then
  6066. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6067. else
  6068. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6069. for as_dir in $PATH
  6070. do
  6071. IFS=$as_save_IFS
  6072. test -z "$as_dir" && as_dir=.
  6073. for ac_exec_ext in '' $ac_executable_extensions; do
  6074. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6075. ac_cv_prog_ac_ct_LIPO="lipo"
  6076. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6077. break 2
  6078. fi
  6079. done
  6080. done
  6081. IFS=$as_save_IFS
  6082. fi
  6083. fi
  6084. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6085. if test -n "$ac_ct_LIPO"; then
  6086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6087. $as_echo "$ac_ct_LIPO" >&6; }
  6088. else
  6089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6090. $as_echo "no" >&6; }
  6091. fi
  6092. if test "x$ac_ct_LIPO" = x; then
  6093. LIPO=":"
  6094. else
  6095. case $cross_compiling:$ac_tool_warned in
  6096. yes:)
  6097. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6098. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6099. ac_tool_warned=yes ;;
  6100. esac
  6101. LIPO=$ac_ct_LIPO
  6102. fi
  6103. else
  6104. LIPO="$ac_cv_prog_LIPO"
  6105. fi
  6106. if test -n "$ac_tool_prefix"; then
  6107. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6108. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6110. $as_echo_n "checking for $ac_word... " >&6; }
  6111. if ${ac_cv_prog_OTOOL+:} false; then :
  6112. $as_echo_n "(cached) " >&6
  6113. else
  6114. if test -n "$OTOOL"; then
  6115. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6116. else
  6117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6118. for as_dir in $PATH
  6119. do
  6120. IFS=$as_save_IFS
  6121. test -z "$as_dir" && as_dir=.
  6122. for ac_exec_ext in '' $ac_executable_extensions; do
  6123. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6124. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6125. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6126. break 2
  6127. fi
  6128. done
  6129. done
  6130. IFS=$as_save_IFS
  6131. fi
  6132. fi
  6133. OTOOL=$ac_cv_prog_OTOOL
  6134. if test -n "$OTOOL"; then
  6135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6136. $as_echo "$OTOOL" >&6; }
  6137. else
  6138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6139. $as_echo "no" >&6; }
  6140. fi
  6141. fi
  6142. if test -z "$ac_cv_prog_OTOOL"; then
  6143. ac_ct_OTOOL=$OTOOL
  6144. # Extract the first word of "otool", so it can be a program name with args.
  6145. set dummy otool; ac_word=$2
  6146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6147. $as_echo_n "checking for $ac_word... " >&6; }
  6148. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6149. $as_echo_n "(cached) " >&6
  6150. else
  6151. if test -n "$ac_ct_OTOOL"; then
  6152. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6153. else
  6154. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6155. for as_dir in $PATH
  6156. do
  6157. IFS=$as_save_IFS
  6158. test -z "$as_dir" && as_dir=.
  6159. for ac_exec_ext in '' $ac_executable_extensions; do
  6160. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6161. ac_cv_prog_ac_ct_OTOOL="otool"
  6162. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6163. break 2
  6164. fi
  6165. done
  6166. done
  6167. IFS=$as_save_IFS
  6168. fi
  6169. fi
  6170. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6171. if test -n "$ac_ct_OTOOL"; then
  6172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6173. $as_echo "$ac_ct_OTOOL" >&6; }
  6174. else
  6175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6176. $as_echo "no" >&6; }
  6177. fi
  6178. if test "x$ac_ct_OTOOL" = x; then
  6179. OTOOL=":"
  6180. else
  6181. case $cross_compiling:$ac_tool_warned in
  6182. yes:)
  6183. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6184. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6185. ac_tool_warned=yes ;;
  6186. esac
  6187. OTOOL=$ac_ct_OTOOL
  6188. fi
  6189. else
  6190. OTOOL="$ac_cv_prog_OTOOL"
  6191. fi
  6192. if test -n "$ac_tool_prefix"; then
  6193. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6194. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6196. $as_echo_n "checking for $ac_word... " >&6; }
  6197. if ${ac_cv_prog_OTOOL64+:} false; then :
  6198. $as_echo_n "(cached) " >&6
  6199. else
  6200. if test -n "$OTOOL64"; then
  6201. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6202. else
  6203. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6204. for as_dir in $PATH
  6205. do
  6206. IFS=$as_save_IFS
  6207. test -z "$as_dir" && as_dir=.
  6208. for ac_exec_ext in '' $ac_executable_extensions; do
  6209. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6210. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6211. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6212. break 2
  6213. fi
  6214. done
  6215. done
  6216. IFS=$as_save_IFS
  6217. fi
  6218. fi
  6219. OTOOL64=$ac_cv_prog_OTOOL64
  6220. if test -n "$OTOOL64"; then
  6221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6222. $as_echo "$OTOOL64" >&6; }
  6223. else
  6224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6225. $as_echo "no" >&6; }
  6226. fi
  6227. fi
  6228. if test -z "$ac_cv_prog_OTOOL64"; then
  6229. ac_ct_OTOOL64=$OTOOL64
  6230. # Extract the first word of "otool64", so it can be a program name with args.
  6231. set dummy otool64; ac_word=$2
  6232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6233. $as_echo_n "checking for $ac_word... " >&6; }
  6234. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6235. $as_echo_n "(cached) " >&6
  6236. else
  6237. if test -n "$ac_ct_OTOOL64"; then
  6238. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6239. else
  6240. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6241. for as_dir in $PATH
  6242. do
  6243. IFS=$as_save_IFS
  6244. test -z "$as_dir" && as_dir=.
  6245. for ac_exec_ext in '' $ac_executable_extensions; do
  6246. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6247. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6248. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6249. break 2
  6250. fi
  6251. done
  6252. done
  6253. IFS=$as_save_IFS
  6254. fi
  6255. fi
  6256. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6257. if test -n "$ac_ct_OTOOL64"; then
  6258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6259. $as_echo "$ac_ct_OTOOL64" >&6; }
  6260. else
  6261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6262. $as_echo "no" >&6; }
  6263. fi
  6264. if test "x$ac_ct_OTOOL64" = x; then
  6265. OTOOL64=":"
  6266. else
  6267. case $cross_compiling:$ac_tool_warned in
  6268. yes:)
  6269. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6270. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6271. ac_tool_warned=yes ;;
  6272. esac
  6273. OTOOL64=$ac_ct_OTOOL64
  6274. fi
  6275. else
  6276. OTOOL64="$ac_cv_prog_OTOOL64"
  6277. fi
  6278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6279. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6280. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6281. $as_echo_n "(cached) " >&6
  6282. else
  6283. lt_cv_apple_cc_single_mod=no
  6284. if test -z "${LT_MULTI_MODULE}"; then
  6285. # By default we will add the -single_module flag. You can override
  6286. # by either setting the environment variable LT_MULTI_MODULE
  6287. # non-empty at configure time, or by adding -multi_module to the
  6288. # link flags.
  6289. rm -rf libconftest.dylib*
  6290. echo "int foo(void){return 1;}" > conftest.c
  6291. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6292. -dynamiclib -Wl,-single_module conftest.c" >&5
  6293. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6294. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6295. _lt_result=$?
  6296. # If there is a non-empty error log, and "single_module"
  6297. # appears in it, assume the flag caused a linker warning
  6298. if test -s conftest.err && $GREP single_module conftest.err; then
  6299. cat conftest.err >&5
  6300. # Otherwise, if the output was created with a 0 exit code from
  6301. # the compiler, it worked.
  6302. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6303. lt_cv_apple_cc_single_mod=yes
  6304. else
  6305. cat conftest.err >&5
  6306. fi
  6307. rm -rf libconftest.dylib*
  6308. rm -f conftest.*
  6309. fi
  6310. fi
  6311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6312. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6314. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6315. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6316. $as_echo_n "(cached) " >&6
  6317. else
  6318. lt_cv_ld_exported_symbols_list=no
  6319. save_LDFLAGS=$LDFLAGS
  6320. echo "_main" > conftest.sym
  6321. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6323. /* end confdefs.h. */
  6324. int
  6325. main ()
  6326. {
  6327. ;
  6328. return 0;
  6329. }
  6330. _ACEOF
  6331. if ac_fn_c_try_link "$LINENO"; then :
  6332. lt_cv_ld_exported_symbols_list=yes
  6333. else
  6334. lt_cv_ld_exported_symbols_list=no
  6335. fi
  6336. rm -f core conftest.err conftest.$ac_objext \
  6337. conftest$ac_exeext conftest.$ac_ext
  6338. LDFLAGS="$save_LDFLAGS"
  6339. fi
  6340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6341. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6343. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6344. if ${lt_cv_ld_force_load+:} false; then :
  6345. $as_echo_n "(cached) " >&6
  6346. else
  6347. lt_cv_ld_force_load=no
  6348. cat > conftest.c << _LT_EOF
  6349. int forced_loaded() { return 2;}
  6350. _LT_EOF
  6351. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6352. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6353. echo "$AR cru libconftest.a conftest.o" >&5
  6354. $AR cru libconftest.a conftest.o 2>&5
  6355. echo "$RANLIB libconftest.a" >&5
  6356. $RANLIB libconftest.a 2>&5
  6357. cat > conftest.c << _LT_EOF
  6358. int main() { return 0;}
  6359. _LT_EOF
  6360. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6361. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6362. _lt_result=$?
  6363. if test -s conftest.err && $GREP force_load conftest.err; then
  6364. cat conftest.err >&5
  6365. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6366. lt_cv_ld_force_load=yes
  6367. else
  6368. cat conftest.err >&5
  6369. fi
  6370. rm -f conftest.err libconftest.a conftest conftest.c
  6371. rm -rf conftest.dSYM
  6372. fi
  6373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6374. $as_echo "$lt_cv_ld_force_load" >&6; }
  6375. case $host_os in
  6376. rhapsody* | darwin1.[012])
  6377. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6378. darwin1.*)
  6379. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6380. darwin*) # darwin 5.x on
  6381. # if running on 10.5 or later, the deployment target defaults
  6382. # to the OS version, if on x86, and 10.4, the deployment
  6383. # target defaults to 10.4. Don't you love it?
  6384. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6385. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6386. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6387. 10.[012]*)
  6388. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6389. 10.*)
  6390. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6391. esac
  6392. ;;
  6393. esac
  6394. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6395. _lt_dar_single_mod='$single_module'
  6396. fi
  6397. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6398. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6399. else
  6400. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6401. fi
  6402. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6403. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6404. else
  6405. _lt_dsymutil=
  6406. fi
  6407. ;;
  6408. esac
  6409. ac_ext=c
  6410. ac_cpp='$CPP $CPPFLAGS'
  6411. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6412. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6413. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6415. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6416. # On Suns, sometimes $CPP names a directory.
  6417. if test -n "$CPP" && test -d "$CPP"; then
  6418. CPP=
  6419. fi
  6420. if test -z "$CPP"; then
  6421. if ${ac_cv_prog_CPP+:} false; then :
  6422. $as_echo_n "(cached) " >&6
  6423. else
  6424. # Double quotes because CPP needs to be expanded
  6425. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6426. do
  6427. ac_preproc_ok=false
  6428. for ac_c_preproc_warn_flag in '' yes
  6429. do
  6430. # Use a header file that comes with gcc, so configuring glibc
  6431. # with a fresh cross-compiler works.
  6432. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6433. # <limits.h> exists even on freestanding compilers.
  6434. # On the NeXT, cc -E runs the code through the compiler's parser,
  6435. # not just through cpp. "Syntax error" is here to catch this case.
  6436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6437. /* end confdefs.h. */
  6438. #ifdef __STDC__
  6439. # include <limits.h>
  6440. #else
  6441. # include <assert.h>
  6442. #endif
  6443. Syntax error
  6444. _ACEOF
  6445. if ac_fn_c_try_cpp "$LINENO"; then :
  6446. else
  6447. # Broken: fails on valid input.
  6448. continue
  6449. fi
  6450. rm -f conftest.err conftest.i conftest.$ac_ext
  6451. # OK, works on sane cases. Now check whether nonexistent headers
  6452. # can be detected and how.
  6453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6454. /* end confdefs.h. */
  6455. #include <ac_nonexistent.h>
  6456. _ACEOF
  6457. if ac_fn_c_try_cpp "$LINENO"; then :
  6458. # Broken: success on invalid input.
  6459. continue
  6460. else
  6461. # Passes both tests.
  6462. ac_preproc_ok=:
  6463. break
  6464. fi
  6465. rm -f conftest.err conftest.i conftest.$ac_ext
  6466. done
  6467. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6468. rm -f conftest.i conftest.err conftest.$ac_ext
  6469. if $ac_preproc_ok; then :
  6470. break
  6471. fi
  6472. done
  6473. ac_cv_prog_CPP=$CPP
  6474. fi
  6475. CPP=$ac_cv_prog_CPP
  6476. else
  6477. ac_cv_prog_CPP=$CPP
  6478. fi
  6479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6480. $as_echo "$CPP" >&6; }
  6481. ac_preproc_ok=false
  6482. for ac_c_preproc_warn_flag in '' yes
  6483. do
  6484. # Use a header file that comes with gcc, so configuring glibc
  6485. # with a fresh cross-compiler works.
  6486. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6487. # <limits.h> exists even on freestanding compilers.
  6488. # On the NeXT, cc -E runs the code through the compiler's parser,
  6489. # not just through cpp. "Syntax error" is here to catch this case.
  6490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6491. /* end confdefs.h. */
  6492. #ifdef __STDC__
  6493. # include <limits.h>
  6494. #else
  6495. # include <assert.h>
  6496. #endif
  6497. Syntax error
  6498. _ACEOF
  6499. if ac_fn_c_try_cpp "$LINENO"; then :
  6500. else
  6501. # Broken: fails on valid input.
  6502. continue
  6503. fi
  6504. rm -f conftest.err conftest.i conftest.$ac_ext
  6505. # OK, works on sane cases. Now check whether nonexistent headers
  6506. # can be detected and how.
  6507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6508. /* end confdefs.h. */
  6509. #include <ac_nonexistent.h>
  6510. _ACEOF
  6511. if ac_fn_c_try_cpp "$LINENO"; then :
  6512. # Broken: success on invalid input.
  6513. continue
  6514. else
  6515. # Passes both tests.
  6516. ac_preproc_ok=:
  6517. break
  6518. fi
  6519. rm -f conftest.err conftest.i conftest.$ac_ext
  6520. done
  6521. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6522. rm -f conftest.i conftest.err conftest.$ac_ext
  6523. if $ac_preproc_ok; then :
  6524. else
  6525. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6526. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6527. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6528. See \`config.log' for more details" "$LINENO" 5; }
  6529. fi
  6530. ac_ext=c
  6531. ac_cpp='$CPP $CPPFLAGS'
  6532. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6533. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6534. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6536. $as_echo_n "checking for ANSI C header files... " >&6; }
  6537. if ${ac_cv_header_stdc+:} false; then :
  6538. $as_echo_n "(cached) " >&6
  6539. else
  6540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6541. /* end confdefs.h. */
  6542. #include <stdlib.h>
  6543. #include <stdarg.h>
  6544. #include <string.h>
  6545. #include <float.h>
  6546. int
  6547. main ()
  6548. {
  6549. ;
  6550. return 0;
  6551. }
  6552. _ACEOF
  6553. if ac_fn_c_try_compile "$LINENO"; then :
  6554. ac_cv_header_stdc=yes
  6555. else
  6556. ac_cv_header_stdc=no
  6557. fi
  6558. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6559. if test $ac_cv_header_stdc = yes; then
  6560. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6562. /* end confdefs.h. */
  6563. #include <string.h>
  6564. _ACEOF
  6565. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6566. $EGREP "memchr" >/dev/null 2>&1; then :
  6567. else
  6568. ac_cv_header_stdc=no
  6569. fi
  6570. rm -f conftest*
  6571. fi
  6572. if test $ac_cv_header_stdc = yes; then
  6573. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6575. /* end confdefs.h. */
  6576. #include <stdlib.h>
  6577. _ACEOF
  6578. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6579. $EGREP "free" >/dev/null 2>&1; then :
  6580. else
  6581. ac_cv_header_stdc=no
  6582. fi
  6583. rm -f conftest*
  6584. fi
  6585. if test $ac_cv_header_stdc = yes; then
  6586. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6587. if test "$cross_compiling" = yes; then :
  6588. :
  6589. else
  6590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6591. /* end confdefs.h. */
  6592. #include <ctype.h>
  6593. #include <stdlib.h>
  6594. #if ((' ' & 0x0FF) == 0x020)
  6595. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6596. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6597. #else
  6598. # define ISLOWER(c) \
  6599. (('a' <= (c) && (c) <= 'i') \
  6600. || ('j' <= (c) && (c) <= 'r') \
  6601. || ('s' <= (c) && (c) <= 'z'))
  6602. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6603. #endif
  6604. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6605. int
  6606. main ()
  6607. {
  6608. int i;
  6609. for (i = 0; i < 256; i++)
  6610. if (XOR (islower (i), ISLOWER (i))
  6611. || toupper (i) != TOUPPER (i))
  6612. return 2;
  6613. return 0;
  6614. }
  6615. _ACEOF
  6616. if ac_fn_c_try_run "$LINENO"; then :
  6617. else
  6618. ac_cv_header_stdc=no
  6619. fi
  6620. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6621. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6622. fi
  6623. fi
  6624. fi
  6625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6626. $as_echo "$ac_cv_header_stdc" >&6; }
  6627. if test $ac_cv_header_stdc = yes; then
  6628. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6629. fi
  6630. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6631. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6632. inttypes.h stdint.h unistd.h
  6633. do :
  6634. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6635. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6636. "
  6637. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6638. cat >>confdefs.h <<_ACEOF
  6639. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6640. _ACEOF
  6641. fi
  6642. done
  6643. for ac_header in dlfcn.h
  6644. do :
  6645. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6646. "
  6647. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6648. cat >>confdefs.h <<_ACEOF
  6649. #define HAVE_DLFCN_H 1
  6650. _ACEOF
  6651. fi
  6652. done
  6653. # Set options
  6654. enable_dlopen=no
  6655. enable_win32_dll=no
  6656. # Check whether --enable-shared was given.
  6657. if test "${enable_shared+set}" = set; then :
  6658. enableval=$enable_shared; p=${PACKAGE-default}
  6659. case $enableval in
  6660. yes) enable_shared=yes ;;
  6661. no) enable_shared=no ;;
  6662. *)
  6663. enable_shared=no
  6664. # Look at the argument we got. We use all the common list separators.
  6665. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6666. for pkg in $enableval; do
  6667. IFS="$lt_save_ifs"
  6668. if test "X$pkg" = "X$p"; then
  6669. enable_shared=yes
  6670. fi
  6671. done
  6672. IFS="$lt_save_ifs"
  6673. ;;
  6674. esac
  6675. else
  6676. enable_shared=yes
  6677. fi
  6678. # Check whether --enable-static was given.
  6679. if test "${enable_static+set}" = set; then :
  6680. enableval=$enable_static; p=${PACKAGE-default}
  6681. case $enableval in
  6682. yes) enable_static=yes ;;
  6683. no) enable_static=no ;;
  6684. *)
  6685. enable_static=no
  6686. # Look at the argument we got. We use all the common list separators.
  6687. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6688. for pkg in $enableval; do
  6689. IFS="$lt_save_ifs"
  6690. if test "X$pkg" = "X$p"; then
  6691. enable_static=yes
  6692. fi
  6693. done
  6694. IFS="$lt_save_ifs"
  6695. ;;
  6696. esac
  6697. else
  6698. enable_static=yes
  6699. fi
  6700. # Check whether --with-pic was given.
  6701. if test "${with_pic+set}" = set; then :
  6702. withval=$with_pic; lt_p=${PACKAGE-default}
  6703. case $withval in
  6704. yes|no) pic_mode=$withval ;;
  6705. *)
  6706. pic_mode=default
  6707. # Look at the argument we got. We use all the common list separators.
  6708. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6709. for lt_pkg in $withval; do
  6710. IFS="$lt_save_ifs"
  6711. if test "X$lt_pkg" = "X$lt_p"; then
  6712. pic_mode=yes
  6713. fi
  6714. done
  6715. IFS="$lt_save_ifs"
  6716. ;;
  6717. esac
  6718. else
  6719. pic_mode=default
  6720. fi
  6721. test -z "$pic_mode" && pic_mode=default
  6722. # Check whether --enable-fast-install was given.
  6723. if test "${enable_fast_install+set}" = set; then :
  6724. enableval=$enable_fast_install; p=${PACKAGE-default}
  6725. case $enableval in
  6726. yes) enable_fast_install=yes ;;
  6727. no) enable_fast_install=no ;;
  6728. *)
  6729. enable_fast_install=no
  6730. # Look at the argument we got. We use all the common list separators.
  6731. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6732. for pkg in $enableval; do
  6733. IFS="$lt_save_ifs"
  6734. if test "X$pkg" = "X$p"; then
  6735. enable_fast_install=yes
  6736. fi
  6737. done
  6738. IFS="$lt_save_ifs"
  6739. ;;
  6740. esac
  6741. else
  6742. enable_fast_install=yes
  6743. fi
  6744. # This can be used to rebuild libtool when needed
  6745. LIBTOOL_DEPS="$ltmain"
  6746. # Always use our own libtool.
  6747. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6748. test -z "$LN_S" && LN_S="ln -s"
  6749. if test -n "${ZSH_VERSION+set}" ; then
  6750. setopt NO_GLOB_SUBST
  6751. fi
  6752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6753. $as_echo_n "checking for objdir... " >&6; }
  6754. if ${lt_cv_objdir+:} false; then :
  6755. $as_echo_n "(cached) " >&6
  6756. else
  6757. rm -f .libs 2>/dev/null
  6758. mkdir .libs 2>/dev/null
  6759. if test -d .libs; then
  6760. lt_cv_objdir=.libs
  6761. else
  6762. # MS-DOS does not allow filenames that begin with a dot.
  6763. lt_cv_objdir=_libs
  6764. fi
  6765. rmdir .libs 2>/dev/null
  6766. fi
  6767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6768. $as_echo "$lt_cv_objdir" >&6; }
  6769. objdir=$lt_cv_objdir
  6770. cat >>confdefs.h <<_ACEOF
  6771. #define LT_OBJDIR "$lt_cv_objdir/"
  6772. _ACEOF
  6773. case $host_os in
  6774. aix3*)
  6775. # AIX sometimes has problems with the GCC collect2 program. For some
  6776. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6777. # vanish in a puff of smoke.
  6778. if test "X${COLLECT_NAMES+set}" != Xset; then
  6779. COLLECT_NAMES=
  6780. export COLLECT_NAMES
  6781. fi
  6782. ;;
  6783. esac
  6784. # Global variables:
  6785. ofile=libtool
  6786. can_build_shared=yes
  6787. # All known linkers require a `.a' archive for static linking (except MSVC,
  6788. # which needs '.lib').
  6789. libext=a
  6790. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6791. old_CC="$CC"
  6792. old_CFLAGS="$CFLAGS"
  6793. # Set sane defaults for various variables
  6794. test -z "$CC" && CC=cc
  6795. test -z "$LTCC" && LTCC=$CC
  6796. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6797. test -z "$LD" && LD=ld
  6798. test -z "$ac_objext" && ac_objext=o
  6799. for cc_temp in $compiler""; do
  6800. case $cc_temp in
  6801. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6802. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6803. \-*) ;;
  6804. *) break;;
  6805. esac
  6806. done
  6807. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6808. # Only perform the check for file, if the check method requires it
  6809. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6810. case $deplibs_check_method in
  6811. file_magic*)
  6812. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6814. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6815. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6816. $as_echo_n "(cached) " >&6
  6817. else
  6818. case $MAGIC_CMD in
  6819. [\\/*] | ?:[\\/]*)
  6820. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6821. ;;
  6822. *)
  6823. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6824. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6825. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6826. for ac_dir in $ac_dummy; do
  6827. IFS="$lt_save_ifs"
  6828. test -z "$ac_dir" && ac_dir=.
  6829. if test -f $ac_dir/${ac_tool_prefix}file; then
  6830. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6831. if test -n "$file_magic_test_file"; then
  6832. case $deplibs_check_method in
  6833. "file_magic "*)
  6834. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6835. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6836. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6837. $EGREP "$file_magic_regex" > /dev/null; then
  6838. :
  6839. else
  6840. cat <<_LT_EOF 1>&2
  6841. *** Warning: the command libtool uses to detect shared libraries,
  6842. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6843. *** The result is that libtool may fail to recognize shared libraries
  6844. *** as such. This will affect the creation of libtool libraries that
  6845. *** depend on shared libraries, but programs linked with such libtool
  6846. *** libraries will work regardless of this problem. Nevertheless, you
  6847. *** may want to report the problem to your system manager and/or to
  6848. *** [email protected]
  6849. _LT_EOF
  6850. fi ;;
  6851. esac
  6852. fi
  6853. break
  6854. fi
  6855. done
  6856. IFS="$lt_save_ifs"
  6857. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6858. ;;
  6859. esac
  6860. fi
  6861. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6862. if test -n "$MAGIC_CMD"; then
  6863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6864. $as_echo "$MAGIC_CMD" >&6; }
  6865. else
  6866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6867. $as_echo "no" >&6; }
  6868. fi
  6869. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6870. if test -n "$ac_tool_prefix"; then
  6871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6872. $as_echo_n "checking for file... " >&6; }
  6873. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6874. $as_echo_n "(cached) " >&6
  6875. else
  6876. case $MAGIC_CMD in
  6877. [\\/*] | ?:[\\/]*)
  6878. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6879. ;;
  6880. *)
  6881. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6882. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6883. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6884. for ac_dir in $ac_dummy; do
  6885. IFS="$lt_save_ifs"
  6886. test -z "$ac_dir" && ac_dir=.
  6887. if test -f $ac_dir/file; then
  6888. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6889. if test -n "$file_magic_test_file"; then
  6890. case $deplibs_check_method in
  6891. "file_magic "*)
  6892. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6893. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6894. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6895. $EGREP "$file_magic_regex" > /dev/null; then
  6896. :
  6897. else
  6898. cat <<_LT_EOF 1>&2
  6899. *** Warning: the command libtool uses to detect shared libraries,
  6900. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6901. *** The result is that libtool may fail to recognize shared libraries
  6902. *** as such. This will affect the creation of libtool libraries that
  6903. *** depend on shared libraries, but programs linked with such libtool
  6904. *** libraries will work regardless of this problem. Nevertheless, you
  6905. *** may want to report the problem to your system manager and/or to
  6906. *** [email protected]
  6907. _LT_EOF
  6908. fi ;;
  6909. esac
  6910. fi
  6911. break
  6912. fi
  6913. done
  6914. IFS="$lt_save_ifs"
  6915. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6916. ;;
  6917. esac
  6918. fi
  6919. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6920. if test -n "$MAGIC_CMD"; then
  6921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6922. $as_echo "$MAGIC_CMD" >&6; }
  6923. else
  6924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6925. $as_echo "no" >&6; }
  6926. fi
  6927. else
  6928. MAGIC_CMD=:
  6929. fi
  6930. fi
  6931. fi
  6932. ;;
  6933. esac
  6934. # Use C for the default configuration in the libtool script
  6935. lt_save_CC="$CC"
  6936. ac_ext=c
  6937. ac_cpp='$CPP $CPPFLAGS'
  6938. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6939. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6940. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6941. # Source file extension for C test sources.
  6942. ac_ext=c
  6943. # Object file extension for compiled C test sources.
  6944. objext=o
  6945. objext=$objext
  6946. # Code to be used in simple compile tests
  6947. lt_simple_compile_test_code="int some_variable = 0;"
  6948. # Code to be used in simple link tests
  6949. lt_simple_link_test_code='int main(){return(0);}'
  6950. # If no C compiler was specified, use CC.
  6951. LTCC=${LTCC-"$CC"}
  6952. # If no C compiler flags were specified, use CFLAGS.
  6953. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6954. # Allow CC to be a program name with arguments.
  6955. compiler=$CC
  6956. # Save the default compiler, since it gets overwritten when the other
  6957. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6958. compiler_DEFAULT=$CC
  6959. # save warnings/boilerplate of simple test code
  6960. ac_outfile=conftest.$ac_objext
  6961. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6962. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6963. _lt_compiler_boilerplate=`cat conftest.err`
  6964. $RM conftest*
  6965. ac_outfile=conftest.$ac_objext
  6966. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6967. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6968. _lt_linker_boilerplate=`cat conftest.err`
  6969. $RM -r conftest*
  6970. if test -n "$compiler"; then
  6971. lt_prog_compiler_no_builtin_flag=
  6972. if test "$GCC" = yes; then
  6973. case $cc_basename in
  6974. nvcc*)
  6975. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6976. *)
  6977. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6978. esac
  6979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6980. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6981. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6982. $as_echo_n "(cached) " >&6
  6983. else
  6984. lt_cv_prog_compiler_rtti_exceptions=no
  6985. ac_outfile=conftest.$ac_objext
  6986. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6987. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6988. # Insert the option either (1) after the last *FLAGS variable, or
  6989. # (2) before a word containing "conftest.", or (3) at the end.
  6990. # Note that $ac_compile itself does not contain backslashes and begins
  6991. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6992. # The option is referenced via a variable to avoid confusing sed.
  6993. lt_compile=`echo "$ac_compile" | $SED \
  6994. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6995. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6996. -e 's:$: $lt_compiler_flag:'`
  6997. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6998. (eval "$lt_compile" 2>conftest.err)
  6999. ac_status=$?
  7000. cat conftest.err >&5
  7001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7002. if (exit $ac_status) && test -s "$ac_outfile"; then
  7003. # The compiler can only warn and ignore the option if not recognized
  7004. # So say no if there are warnings other than the usual output.
  7005. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7006. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7007. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7008. lt_cv_prog_compiler_rtti_exceptions=yes
  7009. fi
  7010. fi
  7011. $RM conftest*
  7012. fi
  7013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7014. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7015. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7016. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7017. else
  7018. :
  7019. fi
  7020. fi
  7021. lt_prog_compiler_wl=
  7022. lt_prog_compiler_pic=
  7023. lt_prog_compiler_static=
  7024. if test "$GCC" = yes; then
  7025. lt_prog_compiler_wl='-Wl,'
  7026. lt_prog_compiler_static='-static'
  7027. case $host_os in
  7028. aix*)
  7029. # All AIX code is PIC.
  7030. if test "$host_cpu" = ia64; then
  7031. # AIX 5 now supports IA64 processor
  7032. lt_prog_compiler_static='-Bstatic'
  7033. fi
  7034. ;;
  7035. amigaos*)
  7036. case $host_cpu in
  7037. powerpc)
  7038. # see comment about AmigaOS4 .so support
  7039. lt_prog_compiler_pic='-fPIC'
  7040. ;;
  7041. m68k)
  7042. # FIXME: we need at least 68020 code to build shared libraries, but
  7043. # adding the `-m68020' flag to GCC prevents building anything better,
  7044. # like `-m68040'.
  7045. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7046. ;;
  7047. esac
  7048. ;;
  7049. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7050. # PIC is the default for these OSes.
  7051. ;;
  7052. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7053. # This hack is so that the source file can tell whether it is being
  7054. # built for inclusion in a dll (and should export symbols for example).
  7055. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7056. # (--disable-auto-import) libraries
  7057. lt_prog_compiler_pic='-DDLL_EXPORT'
  7058. ;;
  7059. darwin* | rhapsody*)
  7060. # PIC is the default on this platform
  7061. # Common symbols not allowed in MH_DYLIB files
  7062. lt_prog_compiler_pic='-fno-common'
  7063. ;;
  7064. haiku*)
  7065. # PIC is the default for Haiku.
  7066. # The "-static" flag exists, but is broken.
  7067. lt_prog_compiler_static=
  7068. ;;
  7069. hpux*)
  7070. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7071. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7072. # sets the default TLS model and affects inlining.
  7073. case $host_cpu in
  7074. hppa*64*)
  7075. # +Z the default
  7076. ;;
  7077. *)
  7078. lt_prog_compiler_pic='-fPIC'
  7079. ;;
  7080. esac
  7081. ;;
  7082. interix[3-9]*)
  7083. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7084. # Instead, we relocate shared libraries at runtime.
  7085. ;;
  7086. msdosdjgpp*)
  7087. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7088. # on systems that don't support them.
  7089. lt_prog_compiler_can_build_shared=no
  7090. enable_shared=no
  7091. ;;
  7092. *nto* | *qnx*)
  7093. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7094. # it will coredump.
  7095. lt_prog_compiler_pic='-fPIC -shared'
  7096. ;;
  7097. sysv4*MP*)
  7098. if test -d /usr/nec; then
  7099. lt_prog_compiler_pic=-Kconform_pic
  7100. fi
  7101. ;;
  7102. *)
  7103. lt_prog_compiler_pic='-fPIC'
  7104. ;;
  7105. esac
  7106. case $cc_basename in
  7107. nvcc*) # Cuda Compiler Driver 2.2
  7108. lt_prog_compiler_wl='-Xlinker '
  7109. if test -n "$lt_prog_compiler_pic"; then
  7110. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7111. fi
  7112. ;;
  7113. esac
  7114. else
  7115. # PORTME Check for flag to pass linker flags through the system compiler.
  7116. case $host_os in
  7117. aix*)
  7118. lt_prog_compiler_wl='-Wl,'
  7119. if test "$host_cpu" = ia64; then
  7120. # AIX 5 now supports IA64 processor
  7121. lt_prog_compiler_static='-Bstatic'
  7122. else
  7123. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7124. fi
  7125. ;;
  7126. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7127. # This hack is so that the source file can tell whether it is being
  7128. # built for inclusion in a dll (and should export symbols for example).
  7129. lt_prog_compiler_pic='-DDLL_EXPORT'
  7130. ;;
  7131. hpux9* | hpux10* | hpux11*)
  7132. lt_prog_compiler_wl='-Wl,'
  7133. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7134. # not for PA HP-UX.
  7135. case $host_cpu in
  7136. hppa*64*|ia64*)
  7137. # +Z the default
  7138. ;;
  7139. *)
  7140. lt_prog_compiler_pic='+Z'
  7141. ;;
  7142. esac
  7143. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7144. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7145. ;;
  7146. irix5* | irix6* | nonstopux*)
  7147. lt_prog_compiler_wl='-Wl,'
  7148. # PIC (with -KPIC) is the default.
  7149. lt_prog_compiler_static='-non_shared'
  7150. ;;
  7151. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7152. case $cc_basename in
  7153. # old Intel for x86_64 which still supported -KPIC.
  7154. ecc*)
  7155. lt_prog_compiler_wl='-Wl,'
  7156. lt_prog_compiler_pic='-KPIC'
  7157. lt_prog_compiler_static='-static'
  7158. ;;
  7159. # icc used to be incompatible with GCC.
  7160. # ICC 10 doesn't accept -KPIC any more.
  7161. icc* | ifort*)
  7162. lt_prog_compiler_wl='-Wl,'
  7163. lt_prog_compiler_pic='-fPIC'
  7164. lt_prog_compiler_static='-static'
  7165. ;;
  7166. # Lahey Fortran 8.1.
  7167. lf95*)
  7168. lt_prog_compiler_wl='-Wl,'
  7169. lt_prog_compiler_pic='--shared'
  7170. lt_prog_compiler_static='--static'
  7171. ;;
  7172. nagfor*)
  7173. # NAG Fortran compiler
  7174. lt_prog_compiler_wl='-Wl,-Wl,,'
  7175. lt_prog_compiler_pic='-PIC'
  7176. lt_prog_compiler_static='-Bstatic'
  7177. ;;
  7178. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7179. # Portland Group compilers (*not* the Pentium gcc compiler,
  7180. # which looks to be a dead project)
  7181. lt_prog_compiler_wl='-Wl,'
  7182. lt_prog_compiler_pic='-fpic'
  7183. lt_prog_compiler_static='-Bstatic'
  7184. ;;
  7185. ccc*)
  7186. lt_prog_compiler_wl='-Wl,'
  7187. # All Alpha code is PIC.
  7188. lt_prog_compiler_static='-non_shared'
  7189. ;;
  7190. xl* | bgxl* | bgf* | mpixl*)
  7191. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7192. lt_prog_compiler_wl='-Wl,'
  7193. lt_prog_compiler_pic='-qpic'
  7194. lt_prog_compiler_static='-qstaticlink'
  7195. ;;
  7196. *)
  7197. case `$CC -V 2>&1 | sed 5q` in
  7198. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7199. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7200. lt_prog_compiler_pic='-KPIC'
  7201. lt_prog_compiler_static='-Bstatic'
  7202. lt_prog_compiler_wl=''
  7203. ;;
  7204. *Sun\ F* | *Sun*Fortran*)
  7205. lt_prog_compiler_pic='-KPIC'
  7206. lt_prog_compiler_static='-Bstatic'
  7207. lt_prog_compiler_wl='-Qoption ld '
  7208. ;;
  7209. *Sun\ C*)
  7210. # Sun C 5.9
  7211. lt_prog_compiler_pic='-KPIC'
  7212. lt_prog_compiler_static='-Bstatic'
  7213. lt_prog_compiler_wl='-Wl,'
  7214. ;;
  7215. *Intel*\ [CF]*Compiler*)
  7216. lt_prog_compiler_wl='-Wl,'
  7217. lt_prog_compiler_pic='-fPIC'
  7218. lt_prog_compiler_static='-static'
  7219. ;;
  7220. *Portland\ Group*)
  7221. lt_prog_compiler_wl='-Wl,'
  7222. lt_prog_compiler_pic='-fpic'
  7223. lt_prog_compiler_static='-Bstatic'
  7224. ;;
  7225. esac
  7226. ;;
  7227. esac
  7228. ;;
  7229. newsos6)
  7230. lt_prog_compiler_pic='-KPIC'
  7231. lt_prog_compiler_static='-Bstatic'
  7232. ;;
  7233. *nto* | *qnx*)
  7234. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7235. # it will coredump.
  7236. lt_prog_compiler_pic='-fPIC -shared'
  7237. ;;
  7238. osf3* | osf4* | osf5*)
  7239. lt_prog_compiler_wl='-Wl,'
  7240. # All OSF/1 code is PIC.
  7241. lt_prog_compiler_static='-non_shared'
  7242. ;;
  7243. rdos*)
  7244. lt_prog_compiler_static='-non_shared'
  7245. ;;
  7246. solaris*)
  7247. lt_prog_compiler_pic='-KPIC'
  7248. lt_prog_compiler_static='-Bstatic'
  7249. case $cc_basename in
  7250. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7251. lt_prog_compiler_wl='-Qoption ld ';;
  7252. *)
  7253. lt_prog_compiler_wl='-Wl,';;
  7254. esac
  7255. ;;
  7256. sunos4*)
  7257. lt_prog_compiler_wl='-Qoption ld '
  7258. lt_prog_compiler_pic='-PIC'
  7259. lt_prog_compiler_static='-Bstatic'
  7260. ;;
  7261. sysv4 | sysv4.2uw2* | sysv4.3*)
  7262. lt_prog_compiler_wl='-Wl,'
  7263. lt_prog_compiler_pic='-KPIC'
  7264. lt_prog_compiler_static='-Bstatic'
  7265. ;;
  7266. sysv4*MP*)
  7267. if test -d /usr/nec ;then
  7268. lt_prog_compiler_pic='-Kconform_pic'
  7269. lt_prog_compiler_static='-Bstatic'
  7270. fi
  7271. ;;
  7272. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7273. lt_prog_compiler_wl='-Wl,'
  7274. lt_prog_compiler_pic='-KPIC'
  7275. lt_prog_compiler_static='-Bstatic'
  7276. ;;
  7277. unicos*)
  7278. lt_prog_compiler_wl='-Wl,'
  7279. lt_prog_compiler_can_build_shared=no
  7280. ;;
  7281. uts4*)
  7282. lt_prog_compiler_pic='-pic'
  7283. lt_prog_compiler_static='-Bstatic'
  7284. ;;
  7285. *)
  7286. lt_prog_compiler_can_build_shared=no
  7287. ;;
  7288. esac
  7289. fi
  7290. case $host_os in
  7291. # For platforms which do not support PIC, -DPIC is meaningless:
  7292. *djgpp*)
  7293. lt_prog_compiler_pic=
  7294. ;;
  7295. *)
  7296. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7297. ;;
  7298. esac
  7299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7300. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7301. if ${lt_cv_prog_compiler_pic+:} false; then :
  7302. $as_echo_n "(cached) " >&6
  7303. else
  7304. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7305. fi
  7306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7307. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7308. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7309. #
  7310. # Check to make sure the PIC flag actually works.
  7311. #
  7312. if test -n "$lt_prog_compiler_pic"; then
  7313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7314. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7315. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7316. $as_echo_n "(cached) " >&6
  7317. else
  7318. lt_cv_prog_compiler_pic_works=no
  7319. ac_outfile=conftest.$ac_objext
  7320. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7321. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7322. # Insert the option either (1) after the last *FLAGS variable, or
  7323. # (2) before a word containing "conftest.", or (3) at the end.
  7324. # Note that $ac_compile itself does not contain backslashes and begins
  7325. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7326. # The option is referenced via a variable to avoid confusing sed.
  7327. lt_compile=`echo "$ac_compile" | $SED \
  7328. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7329. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7330. -e 's:$: $lt_compiler_flag:'`
  7331. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7332. (eval "$lt_compile" 2>conftest.err)
  7333. ac_status=$?
  7334. cat conftest.err >&5
  7335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7336. if (exit $ac_status) && test -s "$ac_outfile"; then
  7337. # The compiler can only warn and ignore the option if not recognized
  7338. # So say no if there are warnings other than the usual output.
  7339. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7340. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7341. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7342. lt_cv_prog_compiler_pic_works=yes
  7343. fi
  7344. fi
  7345. $RM conftest*
  7346. fi
  7347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7348. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7349. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7350. case $lt_prog_compiler_pic in
  7351. "" | " "*) ;;
  7352. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7353. esac
  7354. else
  7355. lt_prog_compiler_pic=
  7356. lt_prog_compiler_can_build_shared=no
  7357. fi
  7358. fi
  7359. #
  7360. # Check to make sure the static flag actually works.
  7361. #
  7362. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7364. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7365. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7366. $as_echo_n "(cached) " >&6
  7367. else
  7368. lt_cv_prog_compiler_static_works=no
  7369. save_LDFLAGS="$LDFLAGS"
  7370. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7371. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7372. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7373. # The linker can only warn and ignore the option if not recognized
  7374. # So say no if there are warnings
  7375. if test -s conftest.err; then
  7376. # Append any errors to the config.log.
  7377. cat conftest.err 1>&5
  7378. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7379. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7380. if diff conftest.exp conftest.er2 >/dev/null; then
  7381. lt_cv_prog_compiler_static_works=yes
  7382. fi
  7383. else
  7384. lt_cv_prog_compiler_static_works=yes
  7385. fi
  7386. fi
  7387. $RM -r conftest*
  7388. LDFLAGS="$save_LDFLAGS"
  7389. fi
  7390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7391. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7392. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7393. :
  7394. else
  7395. lt_prog_compiler_static=
  7396. fi
  7397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7398. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7399. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7400. $as_echo_n "(cached) " >&6
  7401. else
  7402. lt_cv_prog_compiler_c_o=no
  7403. $RM -r conftest 2>/dev/null
  7404. mkdir conftest
  7405. cd conftest
  7406. mkdir out
  7407. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7408. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7409. # Insert the option either (1) after the last *FLAGS variable, or
  7410. # (2) before a word containing "conftest.", or (3) at the end.
  7411. # Note that $ac_compile itself does not contain backslashes and begins
  7412. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7413. lt_compile=`echo "$ac_compile" | $SED \
  7414. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7415. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7416. -e 's:$: $lt_compiler_flag:'`
  7417. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7418. (eval "$lt_compile" 2>out/conftest.err)
  7419. ac_status=$?
  7420. cat out/conftest.err >&5
  7421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7422. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7423. then
  7424. # The compiler can only warn and ignore the option if not recognized
  7425. # So say no if there are warnings
  7426. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7427. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7428. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7429. lt_cv_prog_compiler_c_o=yes
  7430. fi
  7431. fi
  7432. chmod u+w . 2>&5
  7433. $RM conftest*
  7434. # SGI C++ compiler will create directory out/ii_files/ for
  7435. # template instantiation
  7436. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7437. $RM out/* && rmdir out
  7438. cd ..
  7439. $RM -r conftest
  7440. $RM conftest*
  7441. fi
  7442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7443. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7445. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7446. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7447. $as_echo_n "(cached) " >&6
  7448. else
  7449. lt_cv_prog_compiler_c_o=no
  7450. $RM -r conftest 2>/dev/null
  7451. mkdir conftest
  7452. cd conftest
  7453. mkdir out
  7454. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7455. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7456. # Insert the option either (1) after the last *FLAGS variable, or
  7457. # (2) before a word containing "conftest.", or (3) at the end.
  7458. # Note that $ac_compile itself does not contain backslashes and begins
  7459. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7460. lt_compile=`echo "$ac_compile" | $SED \
  7461. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7462. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7463. -e 's:$: $lt_compiler_flag:'`
  7464. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7465. (eval "$lt_compile" 2>out/conftest.err)
  7466. ac_status=$?
  7467. cat out/conftest.err >&5
  7468. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7469. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7470. then
  7471. # The compiler can only warn and ignore the option if not recognized
  7472. # So say no if there are warnings
  7473. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7474. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7475. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7476. lt_cv_prog_compiler_c_o=yes
  7477. fi
  7478. fi
  7479. chmod u+w . 2>&5
  7480. $RM conftest*
  7481. # SGI C++ compiler will create directory out/ii_files/ for
  7482. # template instantiation
  7483. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7484. $RM out/* && rmdir out
  7485. cd ..
  7486. $RM -r conftest
  7487. $RM conftest*
  7488. fi
  7489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7490. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7491. hard_links="nottested"
  7492. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7493. # do not overwrite the value of need_locks provided by the user
  7494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7495. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7496. hard_links=yes
  7497. $RM conftest*
  7498. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7499. touch conftest.a
  7500. ln conftest.a conftest.b 2>&5 || hard_links=no
  7501. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7503. $as_echo "$hard_links" >&6; }
  7504. if test "$hard_links" = no; then
  7505. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7506. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7507. need_locks=warn
  7508. fi
  7509. else
  7510. need_locks=no
  7511. fi
  7512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7513. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7514. runpath_var=
  7515. allow_undefined_flag=
  7516. always_export_symbols=no
  7517. archive_cmds=
  7518. archive_expsym_cmds=
  7519. compiler_needs_object=no
  7520. enable_shared_with_static_runtimes=no
  7521. export_dynamic_flag_spec=
  7522. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7523. hardcode_automatic=no
  7524. hardcode_direct=no
  7525. hardcode_direct_absolute=no
  7526. hardcode_libdir_flag_spec=
  7527. hardcode_libdir_separator=
  7528. hardcode_minus_L=no
  7529. hardcode_shlibpath_var=unsupported
  7530. inherit_rpath=no
  7531. link_all_deplibs=unknown
  7532. module_cmds=
  7533. module_expsym_cmds=
  7534. old_archive_from_new_cmds=
  7535. old_archive_from_expsyms_cmds=
  7536. thread_safe_flag_spec=
  7537. whole_archive_flag_spec=
  7538. # include_expsyms should be a list of space-separated symbols to be *always*
  7539. # included in the symbol list
  7540. include_expsyms=
  7541. # exclude_expsyms can be an extended regexp of symbols to exclude
  7542. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7543. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7544. # as well as any symbol that contains `d'.
  7545. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7546. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7547. # platforms (ab)use it in PIC code, but their linkers get confused if
  7548. # the symbol is explicitly referenced. Since portable code cannot
  7549. # rely on this symbol name, it's probably fine to never include it in
  7550. # preloaded symbol tables.
  7551. # Exclude shared library initialization/finalization symbols.
  7552. extract_expsyms_cmds=
  7553. case $host_os in
  7554. cygwin* | mingw* | pw32* | cegcc*)
  7555. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7556. # When not using gcc, we currently assume that we are using
  7557. # Microsoft Visual C++.
  7558. if test "$GCC" != yes; then
  7559. with_gnu_ld=no
  7560. fi
  7561. ;;
  7562. interix*)
  7563. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7564. with_gnu_ld=yes
  7565. ;;
  7566. openbsd*)
  7567. with_gnu_ld=no
  7568. ;;
  7569. esac
  7570. ld_shlibs=yes
  7571. # On some targets, GNU ld is compatible enough with the native linker
  7572. # that we're better off using the native interface for both.
  7573. lt_use_gnu_ld_interface=no
  7574. if test "$with_gnu_ld" = yes; then
  7575. case $host_os in
  7576. aix*)
  7577. # The AIX port of GNU ld has always aspired to compatibility
  7578. # with the native linker. However, as the warning in the GNU ld
  7579. # block says, versions before 2.19.5* couldn't really create working
  7580. # shared libraries, regardless of the interface used.
  7581. case `$LD -v 2>&1` in
  7582. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7583. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7584. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7585. *)
  7586. lt_use_gnu_ld_interface=yes
  7587. ;;
  7588. esac
  7589. ;;
  7590. *)
  7591. lt_use_gnu_ld_interface=yes
  7592. ;;
  7593. esac
  7594. fi
  7595. if test "$lt_use_gnu_ld_interface" = yes; then
  7596. # If archive_cmds runs LD, not CC, wlarc should be empty
  7597. wlarc='${wl}'
  7598. # Set some defaults for GNU ld with shared library support. These
  7599. # are reset later if shared libraries are not supported. Putting them
  7600. # here allows them to be overridden if necessary.
  7601. runpath_var=LD_RUN_PATH
  7602. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7603. export_dynamic_flag_spec='${wl}--export-dynamic'
  7604. # ancient GNU ld didn't support --whole-archive et. al.
  7605. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7606. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7607. else
  7608. whole_archive_flag_spec=
  7609. fi
  7610. supports_anon_versioning=no
  7611. case `$LD -v 2>&1` in
  7612. *GNU\ gold*) supports_anon_versioning=yes ;;
  7613. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7614. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7615. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7616. *\ 2.11.*) ;; # other 2.11 versions
  7617. *) supports_anon_versioning=yes ;;
  7618. esac
  7619. # See if GNU ld supports shared libraries.
  7620. case $host_os in
  7621. aix[3-9]*)
  7622. # On AIX/PPC, the GNU linker is very broken
  7623. if test "$host_cpu" != ia64; then
  7624. ld_shlibs=no
  7625. cat <<_LT_EOF 1>&2
  7626. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7627. *** to be unable to reliably create shared libraries on AIX.
  7628. *** Therefore, libtool is disabling shared libraries support. If you
  7629. *** really care for shared libraries, you may want to install binutils
  7630. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7631. *** You will then need to restart the configuration process.
  7632. _LT_EOF
  7633. fi
  7634. ;;
  7635. amigaos*)
  7636. case $host_cpu in
  7637. powerpc)
  7638. # see comment about AmigaOS4 .so support
  7639. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7640. archive_expsym_cmds=''
  7641. ;;
  7642. m68k)
  7643. 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)'
  7644. hardcode_libdir_flag_spec='-L$libdir'
  7645. hardcode_minus_L=yes
  7646. ;;
  7647. esac
  7648. ;;
  7649. beos*)
  7650. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7651. allow_undefined_flag=unsupported
  7652. # Joseph Beckenbach <[email protected]> says some releases of gcc
  7653. # support --undefined. This deserves some investigation. FIXME
  7654. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7655. else
  7656. ld_shlibs=no
  7657. fi
  7658. ;;
  7659. cygwin* | mingw* | pw32* | cegcc*)
  7660. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7661. # as there is no search path for DLLs.
  7662. hardcode_libdir_flag_spec='-L$libdir'
  7663. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7664. allow_undefined_flag=unsupported
  7665. always_export_symbols=no
  7666. enable_shared_with_static_runtimes=yes
  7667. 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'
  7668. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7669. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7670. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7671. # If the export-symbols file already is a .def file (1st line
  7672. # is EXPORTS), use it as is; otherwise, prepend...
  7673. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7674. cp $export_symbols $output_objdir/$soname.def;
  7675. else
  7676. echo EXPORTS > $output_objdir/$soname.def;
  7677. cat $export_symbols >> $output_objdir/$soname.def;
  7678. fi~
  7679. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7680. else
  7681. ld_shlibs=no
  7682. fi
  7683. ;;
  7684. haiku*)
  7685. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7686. link_all_deplibs=yes
  7687. ;;
  7688. interix[3-9]*)
  7689. hardcode_direct=no
  7690. hardcode_shlibpath_var=no
  7691. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7692. export_dynamic_flag_spec='${wl}-E'
  7693. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7694. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7695. # default) and relocated if they conflict, which is a slow very memory
  7696. # consuming and fragmenting process. To avoid this, we pick a random,
  7697. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7698. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7699. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7700. 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'
  7701. ;;
  7702. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7703. tmp_diet=no
  7704. if test "$host_os" = linux-dietlibc; then
  7705. case $cc_basename in
  7706. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7707. esac
  7708. fi
  7709. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7710. && test "$tmp_diet" = no
  7711. then
  7712. tmp_addflag=' $pic_flag'
  7713. tmp_sharedflag='-shared'
  7714. case $cc_basename,$host_cpu in
  7715. pgcc*) # Portland Group C compiler
  7716. 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'
  7717. tmp_addflag=' $pic_flag'
  7718. ;;
  7719. pgf77* | pgf90* | pgf95* | pgfortran*)
  7720. # Portland Group f77 and f90 compilers
  7721. 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'
  7722. tmp_addflag=' $pic_flag -Mnomain' ;;
  7723. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7724. tmp_addflag=' -i_dynamic' ;;
  7725. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7726. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7727. ifc* | ifort*) # Intel Fortran compiler
  7728. tmp_addflag=' -nofor_main' ;;
  7729. lf95*) # Lahey Fortran 8.1
  7730. whole_archive_flag_spec=
  7731. tmp_sharedflag='--shared' ;;
  7732. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7733. tmp_sharedflag='-qmkshrobj'
  7734. tmp_addflag= ;;
  7735. nvcc*) # Cuda Compiler Driver 2.2
  7736. 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'
  7737. compiler_needs_object=yes
  7738. ;;
  7739. esac
  7740. case `$CC -V 2>&1 | sed 5q` in
  7741. *Sun\ C*) # Sun C 5.9
  7742. 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'
  7743. compiler_needs_object=yes
  7744. tmp_sharedflag='-G' ;;
  7745. *Sun\ F*) # Sun Fortran 8.3
  7746. tmp_sharedflag='-G' ;;
  7747. esac
  7748. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7749. if test "x$supports_anon_versioning" = xyes; then
  7750. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7751. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7752. echo "local: *; };" >> $output_objdir/$libname.ver~
  7753. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7754. fi
  7755. case $cc_basename in
  7756. xlf* | bgf* | bgxlf* | mpixlf*)
  7757. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7758. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7759. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7760. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7761. if test "x$supports_anon_versioning" = xyes; then
  7762. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7763. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7764. echo "local: *; };" >> $output_objdir/$libname.ver~
  7765. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7766. fi
  7767. ;;
  7768. esac
  7769. else
  7770. ld_shlibs=no
  7771. fi
  7772. ;;
  7773. netbsd*)
  7774. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7775. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7776. wlarc=
  7777. else
  7778. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7779. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7780. fi
  7781. ;;
  7782. solaris*)
  7783. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7784. ld_shlibs=no
  7785. cat <<_LT_EOF 1>&2
  7786. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7787. *** create shared libraries on Solaris systems. Therefore, libtool
  7788. *** is disabling shared libraries support. We urge you to upgrade GNU
  7789. *** binutils to release 2.9.1 or newer. Another option is to modify
  7790. *** your PATH or compiler configuration so that the native linker is
  7791. *** used, and then restart.
  7792. _LT_EOF
  7793. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7794. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7795. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7796. else
  7797. ld_shlibs=no
  7798. fi
  7799. ;;
  7800. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7801. case `$LD -v 2>&1` in
  7802. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7803. ld_shlibs=no
  7804. cat <<_LT_EOF 1>&2
  7805. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7806. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7807. *** is disabling shared libraries support. We urge you to upgrade GNU
  7808. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7809. *** your PATH or compiler configuration so that the native linker is
  7810. *** used, and then restart.
  7811. _LT_EOF
  7812. ;;
  7813. *)
  7814. # For security reasons, it is highly recommended that you always
  7815. # use absolute paths for naming shared libraries, and exclude the
  7816. # DT_RUNPATH tag from executables and libraries. But doing so
  7817. # requires that you compile everything twice, which is a pain.
  7818. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7819. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7820. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7821. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7822. else
  7823. ld_shlibs=no
  7824. fi
  7825. ;;
  7826. esac
  7827. ;;
  7828. sunos4*)
  7829. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7830. wlarc=
  7831. hardcode_direct=yes
  7832. hardcode_shlibpath_var=no
  7833. ;;
  7834. *)
  7835. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7836. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7837. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7838. else
  7839. ld_shlibs=no
  7840. fi
  7841. ;;
  7842. esac
  7843. if test "$ld_shlibs" = no; then
  7844. runpath_var=
  7845. hardcode_libdir_flag_spec=
  7846. export_dynamic_flag_spec=
  7847. whole_archive_flag_spec=
  7848. fi
  7849. else
  7850. # PORTME fill in a description of your system's linker (not GNU ld)
  7851. case $host_os in
  7852. aix3*)
  7853. allow_undefined_flag=unsupported
  7854. always_export_symbols=yes
  7855. 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'
  7856. # Note: this linker hardcodes the directories in LIBPATH if there
  7857. # are no directories specified by -L.
  7858. hardcode_minus_L=yes
  7859. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7860. # Neither direct hardcoding nor static linking is supported with a
  7861. # broken collect2.
  7862. hardcode_direct=unsupported
  7863. fi
  7864. ;;
  7865. aix[4-9]*)
  7866. if test "$host_cpu" = ia64; then
  7867. # On IA64, the linker does run time linking by default, so we don't
  7868. # have to do anything special.
  7869. aix_use_runtimelinking=no
  7870. exp_sym_flag='-Bexport'
  7871. no_entry_flag=""
  7872. else
  7873. # If we're using GNU nm, then we don't want the "-C" option.
  7874. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7875. # Also, AIX nm treats weak defined symbols like other global
  7876. # defined symbols, whereas GNU nm marks them as "W".
  7877. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7878. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7879. else
  7880. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7881. fi
  7882. aix_use_runtimelinking=no
  7883. # Test if we are trying to use run time linking or normal
  7884. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7885. # need to do runtime linking.
  7886. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7887. for ld_flag in $LDFLAGS; do
  7888. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7889. aix_use_runtimelinking=yes
  7890. break
  7891. fi
  7892. done
  7893. ;;
  7894. esac
  7895. exp_sym_flag='-bexport'
  7896. no_entry_flag='-bnoentry'
  7897. fi
  7898. # When large executables or shared objects are built, AIX ld can
  7899. # have problems creating the table of contents. If linking a library
  7900. # or program results in "error TOC overflow" add -mminimal-toc to
  7901. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7902. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7903. archive_cmds=''
  7904. hardcode_direct=yes
  7905. hardcode_direct_absolute=yes
  7906. hardcode_libdir_separator=':'
  7907. link_all_deplibs=yes
  7908. file_list_spec='${wl}-f,'
  7909. if test "$GCC" = yes; then
  7910. case $host_os in aix4.[012]|aix4.[012].*)
  7911. # We only want to do this on AIX 4.2 and lower, the check
  7912. # below for broken collect2 doesn't work under 4.3+
  7913. collect2name=`${CC} -print-prog-name=collect2`
  7914. if test -f "$collect2name" &&
  7915. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7916. then
  7917. # We have reworked collect2
  7918. :
  7919. else
  7920. # We have old collect2
  7921. hardcode_direct=unsupported
  7922. # It fails to find uninstalled libraries when the uninstalled
  7923. # path is not listed in the libpath. Setting hardcode_minus_L
  7924. # to unsupported forces relinking
  7925. hardcode_minus_L=yes
  7926. hardcode_libdir_flag_spec='-L$libdir'
  7927. hardcode_libdir_separator=
  7928. fi
  7929. ;;
  7930. esac
  7931. shared_flag='-shared'
  7932. if test "$aix_use_runtimelinking" = yes; then
  7933. shared_flag="$shared_flag "'${wl}-G'
  7934. fi
  7935. else
  7936. # not using gcc
  7937. if test "$host_cpu" = ia64; then
  7938. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7939. # chokes on -Wl,-G. The following line is correct:
  7940. shared_flag='-G'
  7941. else
  7942. if test "$aix_use_runtimelinking" = yes; then
  7943. shared_flag='${wl}-G'
  7944. else
  7945. shared_flag='${wl}-bM:SRE'
  7946. fi
  7947. fi
  7948. fi
  7949. export_dynamic_flag_spec='${wl}-bexpall'
  7950. # It seems that -bexpall does not export symbols beginning with
  7951. # underscore (_), so it is better to generate a list of symbols to export.
  7952. always_export_symbols=yes
  7953. if test "$aix_use_runtimelinking" = yes; then
  7954. # Warning - without using the other runtime loading flags (-brtl),
  7955. # -berok will link without error, but may produce a broken library.
  7956. allow_undefined_flag='-berok'
  7957. # Determine the default libpath from the value encoded in an
  7958. # empty executable.
  7959. if test "${lt_cv_aix_libpath+set}" = set; then
  7960. aix_libpath=$lt_cv_aix_libpath
  7961. else
  7962. if ${lt_cv_aix_libpath_+:} false; then :
  7963. $as_echo_n "(cached) " >&6
  7964. else
  7965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7966. /* end confdefs.h. */
  7967. int
  7968. main ()
  7969. {
  7970. ;
  7971. return 0;
  7972. }
  7973. _ACEOF
  7974. if ac_fn_c_try_link "$LINENO"; then :
  7975. lt_aix_libpath_sed='
  7976. /Import File Strings/,/^$/ {
  7977. /^0/ {
  7978. s/^0 *\([^ ]*\) *$/\1/
  7979. p
  7980. }
  7981. }'
  7982. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7983. # Check for a 64-bit object if we didn't find anything.
  7984. if test -z "$lt_cv_aix_libpath_"; then
  7985. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7986. fi
  7987. fi
  7988. rm -f core conftest.err conftest.$ac_objext \
  7989. conftest$ac_exeext conftest.$ac_ext
  7990. if test -z "$lt_cv_aix_libpath_"; then
  7991. lt_cv_aix_libpath_="/usr/lib:/lib"
  7992. fi
  7993. fi
  7994. aix_libpath=$lt_cv_aix_libpath_
  7995. fi
  7996. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7997. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7998. else
  7999. if test "$host_cpu" = ia64; then
  8000. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8001. allow_undefined_flag="-z nodefs"
  8002. 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"
  8003. else
  8004. # Determine the default libpath from the value encoded in an
  8005. # empty executable.
  8006. if test "${lt_cv_aix_libpath+set}" = set; then
  8007. aix_libpath=$lt_cv_aix_libpath
  8008. else
  8009. if ${lt_cv_aix_libpath_+:} false; then :
  8010. $as_echo_n "(cached) " >&6
  8011. else
  8012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8013. /* end confdefs.h. */
  8014. int
  8015. main ()
  8016. {
  8017. ;
  8018. return 0;
  8019. }
  8020. _ACEOF
  8021. if ac_fn_c_try_link "$LINENO"; then :
  8022. lt_aix_libpath_sed='
  8023. /Import File Strings/,/^$/ {
  8024. /^0/ {
  8025. s/^0 *\([^ ]*\) *$/\1/
  8026. p
  8027. }
  8028. }'
  8029. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8030. # Check for a 64-bit object if we didn't find anything.
  8031. if test -z "$lt_cv_aix_libpath_"; then
  8032. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8033. fi
  8034. fi
  8035. rm -f core conftest.err conftest.$ac_objext \
  8036. conftest$ac_exeext conftest.$ac_ext
  8037. if test -z "$lt_cv_aix_libpath_"; then
  8038. lt_cv_aix_libpath_="/usr/lib:/lib"
  8039. fi
  8040. fi
  8041. aix_libpath=$lt_cv_aix_libpath_
  8042. fi
  8043. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8044. # Warning - without using the other run time loading flags,
  8045. # -berok will link without error, but may produce a broken library.
  8046. no_undefined_flag=' ${wl}-bernotok'
  8047. allow_undefined_flag=' ${wl}-berok'
  8048. if test "$with_gnu_ld" = yes; then
  8049. # We only use this code for GNU lds that support --whole-archive.
  8050. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8051. else
  8052. # Exported symbols can be pulled into shared objects from archives
  8053. whole_archive_flag_spec='$convenience'
  8054. fi
  8055. archive_cmds_need_lc=yes
  8056. # This is similar to how AIX traditionally builds its shared libraries.
  8057. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8058. fi
  8059. fi
  8060. ;;
  8061. amigaos*)
  8062. case $host_cpu in
  8063. powerpc)
  8064. # see comment about AmigaOS4 .so support
  8065. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8066. archive_expsym_cmds=''
  8067. ;;
  8068. m68k)
  8069. 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)'
  8070. hardcode_libdir_flag_spec='-L$libdir'
  8071. hardcode_minus_L=yes
  8072. ;;
  8073. esac
  8074. ;;
  8075. bsdi[45]*)
  8076. export_dynamic_flag_spec=-rdynamic
  8077. ;;
  8078. cygwin* | mingw* | pw32* | cegcc*)
  8079. # When not using gcc, we currently assume that we are using
  8080. # Microsoft Visual C++.
  8081. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8082. # no search path for DLLs.
  8083. case $cc_basename in
  8084. cl*)
  8085. # Native MSVC
  8086. hardcode_libdir_flag_spec=' '
  8087. allow_undefined_flag=unsupported
  8088. always_export_symbols=yes
  8089. file_list_spec='@'
  8090. # Tell ltmain to make .lib files, not .a files.
  8091. libext=lib
  8092. # Tell ltmain to make .dll files, not .so files.
  8093. shrext_cmds=".dll"
  8094. # FIXME: Setting linknames here is a bad hack.
  8095. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8096. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8097. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8098. else
  8099. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8100. fi~
  8101. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8102. linknames='
  8103. # The linker will not automatically build a static lib if we build a DLL.
  8104. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8105. enable_shared_with_static_runtimes=yes
  8106. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8107. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8108. # Don't use ranlib
  8109. old_postinstall_cmds='chmod 644 $oldlib'
  8110. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8111. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8112. case $lt_outputfile in
  8113. *.exe|*.EXE) ;;
  8114. *)
  8115. lt_outputfile="$lt_outputfile.exe"
  8116. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8117. ;;
  8118. esac~
  8119. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8120. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8121. $RM "$lt_outputfile.manifest";
  8122. fi'
  8123. ;;
  8124. *)
  8125. # Assume MSVC wrapper
  8126. hardcode_libdir_flag_spec=' '
  8127. allow_undefined_flag=unsupported
  8128. # Tell ltmain to make .lib files, not .a files.
  8129. libext=lib
  8130. # Tell ltmain to make .dll files, not .so files.
  8131. shrext_cmds=".dll"
  8132. # FIXME: Setting linknames here is a bad hack.
  8133. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8134. # The linker will automatically build a .lib file if we build a DLL.
  8135. old_archive_from_new_cmds='true'
  8136. # FIXME: Should let the user specify the lib program.
  8137. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8138. enable_shared_with_static_runtimes=yes
  8139. ;;
  8140. esac
  8141. ;;
  8142. darwin* | rhapsody*)
  8143. archive_cmds_need_lc=no
  8144. hardcode_direct=no
  8145. hardcode_automatic=yes
  8146. hardcode_shlibpath_var=unsupported
  8147. if test "$lt_cv_ld_force_load" = "yes"; then
  8148. 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\"`'
  8149. else
  8150. whole_archive_flag_spec=''
  8151. fi
  8152. link_all_deplibs=yes
  8153. allow_undefined_flag="$_lt_dar_allow_undefined"
  8154. case $cc_basename in
  8155. ifort*) _lt_dar_can_shared=yes ;;
  8156. *) _lt_dar_can_shared=$GCC ;;
  8157. esac
  8158. if test "$_lt_dar_can_shared" = "yes"; then
  8159. output_verbose_link_cmd=func_echo_all
  8160. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8161. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8162. 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}"
  8163. 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}"
  8164. else
  8165. ld_shlibs=no
  8166. fi
  8167. ;;
  8168. dgux*)
  8169. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8170. hardcode_libdir_flag_spec='-L$libdir'
  8171. hardcode_shlibpath_var=no
  8172. ;;
  8173. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8174. # support. Future versions do this automatically, but an explicit c++rt0.o
  8175. # does not break anything, and helps significantly (at the cost of a little
  8176. # extra space).
  8177. freebsd2.2*)
  8178. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8179. hardcode_libdir_flag_spec='-R$libdir'
  8180. hardcode_direct=yes
  8181. hardcode_shlibpath_var=no
  8182. ;;
  8183. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8184. freebsd2.*)
  8185. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8186. hardcode_direct=yes
  8187. hardcode_minus_L=yes
  8188. hardcode_shlibpath_var=no
  8189. ;;
  8190. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8191. freebsd* | dragonfly*)
  8192. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8193. hardcode_libdir_flag_spec='-R$libdir'
  8194. hardcode_direct=yes
  8195. hardcode_shlibpath_var=no
  8196. ;;
  8197. hpux9*)
  8198. if test "$GCC" = yes; then
  8199. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8200. else
  8201. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8202. fi
  8203. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8204. hardcode_libdir_separator=:
  8205. hardcode_direct=yes
  8206. # hardcode_minus_L: Not really in the search PATH,
  8207. # but as the default location of the library.
  8208. hardcode_minus_L=yes
  8209. export_dynamic_flag_spec='${wl}-E'
  8210. ;;
  8211. hpux10*)
  8212. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8213. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8214. else
  8215. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8216. fi
  8217. if test "$with_gnu_ld" = no; then
  8218. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8219. hardcode_libdir_separator=:
  8220. hardcode_direct=yes
  8221. hardcode_direct_absolute=yes
  8222. export_dynamic_flag_spec='${wl}-E'
  8223. # hardcode_minus_L: Not really in the search PATH,
  8224. # but as the default location of the library.
  8225. hardcode_minus_L=yes
  8226. fi
  8227. ;;
  8228. hpux11*)
  8229. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8230. case $host_cpu in
  8231. hppa*64*)
  8232. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8233. ;;
  8234. ia64*)
  8235. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8236. ;;
  8237. *)
  8238. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8239. ;;
  8240. esac
  8241. else
  8242. case $host_cpu in
  8243. hppa*64*)
  8244. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8245. ;;
  8246. ia64*)
  8247. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8248. ;;
  8249. *)
  8250. # Older versions of the 11.00 compiler do not understand -b yet
  8251. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8253. $as_echo_n "checking if $CC understands -b... " >&6; }
  8254. if ${lt_cv_prog_compiler__b+:} false; then :
  8255. $as_echo_n "(cached) " >&6
  8256. else
  8257. lt_cv_prog_compiler__b=no
  8258. save_LDFLAGS="$LDFLAGS"
  8259. LDFLAGS="$LDFLAGS -b"
  8260. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8261. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8262. # The linker can only warn and ignore the option if not recognized
  8263. # So say no if there are warnings
  8264. if test -s conftest.err; then
  8265. # Append any errors to the config.log.
  8266. cat conftest.err 1>&5
  8267. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8268. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8269. if diff conftest.exp conftest.er2 >/dev/null; then
  8270. lt_cv_prog_compiler__b=yes
  8271. fi
  8272. else
  8273. lt_cv_prog_compiler__b=yes
  8274. fi
  8275. fi
  8276. $RM -r conftest*
  8277. LDFLAGS="$save_LDFLAGS"
  8278. fi
  8279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8280. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8281. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8282. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8283. else
  8284. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8285. fi
  8286. ;;
  8287. esac
  8288. fi
  8289. if test "$with_gnu_ld" = no; then
  8290. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8291. hardcode_libdir_separator=:
  8292. case $host_cpu in
  8293. hppa*64*|ia64*)
  8294. hardcode_direct=no
  8295. hardcode_shlibpath_var=no
  8296. ;;
  8297. *)
  8298. hardcode_direct=yes
  8299. hardcode_direct_absolute=yes
  8300. export_dynamic_flag_spec='${wl}-E'
  8301. # hardcode_minus_L: Not really in the search PATH,
  8302. # but as the default location of the library.
  8303. hardcode_minus_L=yes
  8304. ;;
  8305. esac
  8306. fi
  8307. ;;
  8308. irix5* | irix6* | nonstopux*)
  8309. if test "$GCC" = yes; then
  8310. 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'
  8311. # Try to use the -exported_symbol ld option, if it does not
  8312. # work, assume that -exports_file does not work either and
  8313. # implicitly export all symbols.
  8314. # This should be the same for all languages, so no per-tag cache variable.
  8315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8316. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8317. if ${lt_cv_irix_exported_symbol+:} false; then :
  8318. $as_echo_n "(cached) " >&6
  8319. else
  8320. save_LDFLAGS="$LDFLAGS"
  8321. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8323. /* end confdefs.h. */
  8324. int foo (void) { return 0; }
  8325. _ACEOF
  8326. if ac_fn_c_try_link "$LINENO"; then :
  8327. lt_cv_irix_exported_symbol=yes
  8328. else
  8329. lt_cv_irix_exported_symbol=no
  8330. fi
  8331. rm -f core conftest.err conftest.$ac_objext \
  8332. conftest$ac_exeext conftest.$ac_ext
  8333. LDFLAGS="$save_LDFLAGS"
  8334. fi
  8335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8336. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8337. if test "$lt_cv_irix_exported_symbol" = yes; then
  8338. 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'
  8339. fi
  8340. else
  8341. 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'
  8342. 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'
  8343. fi
  8344. archive_cmds_need_lc='no'
  8345. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8346. hardcode_libdir_separator=:
  8347. inherit_rpath=yes
  8348. link_all_deplibs=yes
  8349. ;;
  8350. netbsd*)
  8351. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8352. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8353. else
  8354. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8355. fi
  8356. hardcode_libdir_flag_spec='-R$libdir'
  8357. hardcode_direct=yes
  8358. hardcode_shlibpath_var=no
  8359. ;;
  8360. newsos6)
  8361. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8362. hardcode_direct=yes
  8363. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8364. hardcode_libdir_separator=:
  8365. hardcode_shlibpath_var=no
  8366. ;;
  8367. *nto* | *qnx*)
  8368. ;;
  8369. openbsd*)
  8370. if test -f /usr/libexec/ld.so; then
  8371. hardcode_direct=yes
  8372. hardcode_shlibpath_var=no
  8373. hardcode_direct_absolute=yes
  8374. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8375. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8376. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8377. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8378. export_dynamic_flag_spec='${wl}-E'
  8379. else
  8380. case $host_os in
  8381. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8382. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8383. hardcode_libdir_flag_spec='-R$libdir'
  8384. ;;
  8385. *)
  8386. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8387. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8388. ;;
  8389. esac
  8390. fi
  8391. else
  8392. ld_shlibs=no
  8393. fi
  8394. ;;
  8395. os2*)
  8396. hardcode_libdir_flag_spec='-L$libdir'
  8397. hardcode_minus_L=yes
  8398. allow_undefined_flag=unsupported
  8399. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  8400. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8401. ;;
  8402. osf3*)
  8403. if test "$GCC" = yes; then
  8404. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8405. 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'
  8406. else
  8407. allow_undefined_flag=' -expect_unresolved \*'
  8408. 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'
  8409. fi
  8410. archive_cmds_need_lc='no'
  8411. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8412. hardcode_libdir_separator=:
  8413. ;;
  8414. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8415. if test "$GCC" = yes; then
  8416. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8417. 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'
  8418. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8419. else
  8420. allow_undefined_flag=' -expect_unresolved \*'
  8421. 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'
  8422. 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~
  8423. $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'
  8424. # Both c and cxx compiler support -rpath directly
  8425. hardcode_libdir_flag_spec='-rpath $libdir'
  8426. fi
  8427. archive_cmds_need_lc='no'
  8428. hardcode_libdir_separator=:
  8429. ;;
  8430. solaris*)
  8431. no_undefined_flag=' -z defs'
  8432. if test "$GCC" = yes; then
  8433. wlarc='${wl}'
  8434. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8435. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8436. $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'
  8437. else
  8438. case `$CC -V 2>&1` in
  8439. *"Compilers 5.0"*)
  8440. wlarc=''
  8441. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8442. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8443. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8444. ;;
  8445. *)
  8446. wlarc='${wl}'
  8447. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8448. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8449. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8450. ;;
  8451. esac
  8452. fi
  8453. hardcode_libdir_flag_spec='-R$libdir'
  8454. hardcode_shlibpath_var=no
  8455. case $host_os in
  8456. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8457. *)
  8458. # The compiler driver will combine and reorder linker options,
  8459. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8460. # but is careful enough not to reorder.
  8461. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8462. if test "$GCC" = yes; then
  8463. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8464. else
  8465. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8466. fi
  8467. ;;
  8468. esac
  8469. link_all_deplibs=yes
  8470. ;;
  8471. sunos4*)
  8472. if test "x$host_vendor" = xsequent; then
  8473. # Use $CC to link under sequent, because it throws in some extra .o
  8474. # files that make .init and .fini sections work.
  8475. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8476. else
  8477. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8478. fi
  8479. hardcode_libdir_flag_spec='-L$libdir'
  8480. hardcode_direct=yes
  8481. hardcode_minus_L=yes
  8482. hardcode_shlibpath_var=no
  8483. ;;
  8484. sysv4)
  8485. case $host_vendor in
  8486. sni)
  8487. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8488. hardcode_direct=yes # is this really true???
  8489. ;;
  8490. siemens)
  8491. ## LD is ld it makes a PLAMLIB
  8492. ## CC just makes a GrossModule.
  8493. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8494. reload_cmds='$CC -r -o $output$reload_objs'
  8495. hardcode_direct=no
  8496. ;;
  8497. motorola)
  8498. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8499. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8500. ;;
  8501. esac
  8502. runpath_var='LD_RUN_PATH'
  8503. hardcode_shlibpath_var=no
  8504. ;;
  8505. sysv4.3*)
  8506. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8507. hardcode_shlibpath_var=no
  8508. export_dynamic_flag_spec='-Bexport'
  8509. ;;
  8510. sysv4*MP*)
  8511. if test -d /usr/nec; then
  8512. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8513. hardcode_shlibpath_var=no
  8514. runpath_var=LD_RUN_PATH
  8515. hardcode_runpath_var=yes
  8516. ld_shlibs=yes
  8517. fi
  8518. ;;
  8519. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8520. no_undefined_flag='${wl}-z,text'
  8521. archive_cmds_need_lc=no
  8522. hardcode_shlibpath_var=no
  8523. runpath_var='LD_RUN_PATH'
  8524. if test "$GCC" = yes; then
  8525. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8526. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8527. else
  8528. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8529. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8530. fi
  8531. ;;
  8532. sysv5* | sco3.2v5* | sco5v6*)
  8533. # Note: We can NOT use -z defs as we might desire, because we do not
  8534. # link with -lc, and that would cause any symbols used from libc to
  8535. # always be unresolved, which means just about no library would
  8536. # ever link correctly. If we're not using GNU ld we use -z text
  8537. # though, which does catch some bad symbols but isn't as heavy-handed
  8538. # as -z defs.
  8539. no_undefined_flag='${wl}-z,text'
  8540. allow_undefined_flag='${wl}-z,nodefs'
  8541. archive_cmds_need_lc=no
  8542. hardcode_shlibpath_var=no
  8543. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8544. hardcode_libdir_separator=':'
  8545. link_all_deplibs=yes
  8546. export_dynamic_flag_spec='${wl}-Bexport'
  8547. runpath_var='LD_RUN_PATH'
  8548. if test "$GCC" = yes; then
  8549. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8550. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8551. else
  8552. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8553. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8554. fi
  8555. ;;
  8556. uts4*)
  8557. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8558. hardcode_libdir_flag_spec='-L$libdir'
  8559. hardcode_shlibpath_var=no
  8560. ;;
  8561. *)
  8562. ld_shlibs=no
  8563. ;;
  8564. esac
  8565. if test x$host_vendor = xsni; then
  8566. case $host in
  8567. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8568. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8569. ;;
  8570. esac
  8571. fi
  8572. fi
  8573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8574. $as_echo "$ld_shlibs" >&6; }
  8575. test "$ld_shlibs" = no && can_build_shared=no
  8576. with_gnu_ld=$with_gnu_ld
  8577. #
  8578. # Do we need to explicitly link libc?
  8579. #
  8580. case "x$archive_cmds_need_lc" in
  8581. x|xyes)
  8582. # Assume -lc should be added
  8583. archive_cmds_need_lc=yes
  8584. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8585. case $archive_cmds in
  8586. *'~'*)
  8587. # FIXME: we may have to deal with multi-command sequences.
  8588. ;;
  8589. '$CC '*)
  8590. # Test whether the compiler implicitly links with -lc since on some
  8591. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8592. # to ld, don't add -lc before -lgcc.
  8593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8594. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8595. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8596. $as_echo_n "(cached) " >&6
  8597. else
  8598. $RM conftest*
  8599. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8600. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8601. (eval $ac_compile) 2>&5
  8602. ac_status=$?
  8603. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8604. test $ac_status = 0; } 2>conftest.err; then
  8605. soname=conftest
  8606. lib=conftest
  8607. libobjs=conftest.$ac_objext
  8608. deplibs=
  8609. wl=$lt_prog_compiler_wl
  8610. pic_flag=$lt_prog_compiler_pic
  8611. compiler_flags=-v
  8612. linker_flags=-v
  8613. verstring=
  8614. output_objdir=.
  8615. libname=conftest
  8616. lt_save_allow_undefined_flag=$allow_undefined_flag
  8617. allow_undefined_flag=
  8618. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8619. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8620. ac_status=$?
  8621. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8622. test $ac_status = 0; }
  8623. then
  8624. lt_cv_archive_cmds_need_lc=no
  8625. else
  8626. lt_cv_archive_cmds_need_lc=yes
  8627. fi
  8628. allow_undefined_flag=$lt_save_allow_undefined_flag
  8629. else
  8630. cat conftest.err 1>&5
  8631. fi
  8632. $RM conftest*
  8633. fi
  8634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8635. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8636. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8637. ;;
  8638. esac
  8639. fi
  8640. ;;
  8641. esac
  8642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8643. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8644. if test "$GCC" = yes; then
  8645. case $host_os in
  8646. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8647. *) lt_awk_arg="/^libraries:/" ;;
  8648. esac
  8649. case $host_os in
  8650. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8651. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8652. esac
  8653. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8654. case $lt_search_path_spec in
  8655. *\;*)
  8656. # if the path contains ";" then we assume it to be the separator
  8657. # otherwise default to the standard path separator (i.e. ":") - it is
  8658. # assumed that no part of a normal pathname contains ";" but that should
  8659. # okay in the real world where ";" in dirpaths is itself problematic.
  8660. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8661. ;;
  8662. *)
  8663. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8664. ;;
  8665. esac
  8666. # Ok, now we have the path, separated by spaces, we can step through it
  8667. # and add multilib dir if necessary.
  8668. lt_tmp_lt_search_path_spec=
  8669. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8670. for lt_sys_path in $lt_search_path_spec; do
  8671. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8672. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8673. else
  8674. test -d "$lt_sys_path" && \
  8675. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8676. fi
  8677. done
  8678. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8679. BEGIN {RS=" "; FS="/|\n";} {
  8680. lt_foo="";
  8681. lt_count=0;
  8682. for (lt_i = NF; lt_i > 0; lt_i--) {
  8683. if ($lt_i != "" && $lt_i != ".") {
  8684. if ($lt_i == "..") {
  8685. lt_count++;
  8686. } else {
  8687. if (lt_count == 0) {
  8688. lt_foo="/" $lt_i lt_foo;
  8689. } else {
  8690. lt_count--;
  8691. }
  8692. }
  8693. }
  8694. }
  8695. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8696. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8697. }'`
  8698. # AWK program above erroneously prepends '/' to C:/dos/paths
  8699. # for these hosts.
  8700. case $host_os in
  8701. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8702. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8703. esac
  8704. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8705. else
  8706. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8707. fi
  8708. library_names_spec=
  8709. libname_spec='lib$name'
  8710. soname_spec=
  8711. shrext_cmds=".so"
  8712. postinstall_cmds=
  8713. postuninstall_cmds=
  8714. finish_cmds=
  8715. finish_eval=
  8716. shlibpath_var=
  8717. shlibpath_overrides_runpath=unknown
  8718. version_type=none
  8719. dynamic_linker="$host_os ld.so"
  8720. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8721. need_lib_prefix=unknown
  8722. hardcode_into_libs=no
  8723. # when you set need_version to no, make sure it does not cause -set_version
  8724. # flags to be left without arguments
  8725. need_version=unknown
  8726. case $host_os in
  8727. aix3*)
  8728. version_type=linux # correct to gnu/linux during the next big refactor
  8729. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8730. shlibpath_var=LIBPATH
  8731. # AIX 3 has no versioning support, so we append a major version to the name.
  8732. soname_spec='${libname}${release}${shared_ext}$major'
  8733. ;;
  8734. aix[4-9]*)
  8735. version_type=linux # correct to gnu/linux during the next big refactor
  8736. need_lib_prefix=no
  8737. need_version=no
  8738. hardcode_into_libs=yes
  8739. if test "$host_cpu" = ia64; then
  8740. # AIX 5 supports IA64
  8741. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8742. shlibpath_var=LD_LIBRARY_PATH
  8743. else
  8744. # With GCC up to 2.95.x, collect2 would create an import file
  8745. # for dependence libraries. The import file would start with
  8746. # the line `#! .'. This would cause the generated library to
  8747. # depend on `.', always an invalid library. This was fixed in
  8748. # development snapshots of GCC prior to 3.0.
  8749. case $host_os in
  8750. aix4 | aix4.[01] | aix4.[01].*)
  8751. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8752. echo ' yes '
  8753. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8754. :
  8755. else
  8756. can_build_shared=no
  8757. fi
  8758. ;;
  8759. esac
  8760. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8761. # soname into executable. Probably we can add versioning support to
  8762. # collect2, so additional links can be useful in future.
  8763. if test "$aix_use_runtimelinking" = yes; then
  8764. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8765. # instead of lib<name>.a to let people know that these are not
  8766. # typical AIX shared libraries.
  8767. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8768. else
  8769. # We preserve .a as extension for shared libraries through AIX4.2
  8770. # and later when we are not doing run time linking.
  8771. library_names_spec='${libname}${release}.a $libname.a'
  8772. soname_spec='${libname}${release}${shared_ext}$major'
  8773. fi
  8774. shlibpath_var=LIBPATH
  8775. fi
  8776. ;;
  8777. amigaos*)
  8778. case $host_cpu in
  8779. powerpc)
  8780. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8781. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8782. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8783. ;;
  8784. m68k)
  8785. library_names_spec='$libname.ixlibrary $libname.a'
  8786. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8787. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
  8788. ;;
  8789. esac
  8790. ;;
  8791. beos*)
  8792. library_names_spec='${libname}${shared_ext}'
  8793. dynamic_linker="$host_os ld.so"
  8794. shlibpath_var=LIBRARY_PATH
  8795. ;;
  8796. bsdi[45]*)
  8797. version_type=linux # correct to gnu/linux during the next big refactor
  8798. need_version=no
  8799. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8800. soname_spec='${libname}${release}${shared_ext}$major'
  8801. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8802. shlibpath_var=LD_LIBRARY_PATH
  8803. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8804. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8805. # the default ld.so.conf also contains /usr/contrib/lib and
  8806. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8807. # libtool to hard-code these into programs
  8808. ;;
  8809. cygwin* | mingw* | pw32* | cegcc*)
  8810. version_type=windows
  8811. shrext_cmds=".dll"
  8812. need_version=no
  8813. need_lib_prefix=no
  8814. case $GCC,$cc_basename in
  8815. yes,*)
  8816. # gcc
  8817. library_names_spec='$libname.dll.a'
  8818. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8819. postinstall_cmds='base_file=`basename \${file}`~
  8820. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8821. dldir=$destdir/`dirname \$dlpath`~
  8822. test -d \$dldir || mkdir -p \$dldir~
  8823. $install_prog $dir/$dlname \$dldir/$dlname~
  8824. chmod a+x \$dldir/$dlname~
  8825. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8826. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8827. fi'
  8828. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8829. dlpath=$dir/\$dldll~
  8830. $RM \$dlpath'
  8831. shlibpath_overrides_runpath=yes
  8832. case $host_os in
  8833. cygwin*)
  8834. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8835. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8836. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8837. ;;
  8838. mingw* | cegcc*)
  8839. # MinGW DLLs use traditional 'lib' prefix
  8840. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8841. ;;
  8842. pw32*)
  8843. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8844. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8845. ;;
  8846. esac
  8847. dynamic_linker='Win32 ld.exe'
  8848. ;;
  8849. *,cl*)
  8850. # Native MSVC
  8851. libname_spec='$name'
  8852. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8853. library_names_spec='${libname}.dll.lib'
  8854. case $build_os in
  8855. mingw*)
  8856. sys_lib_search_path_spec=
  8857. lt_save_ifs=$IFS
  8858. IFS=';'
  8859. for lt_path in $LIB
  8860. do
  8861. IFS=$lt_save_ifs
  8862. # Let DOS variable expansion print the short 8.3 style file name.
  8863. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8864. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8865. done
  8866. IFS=$lt_save_ifs
  8867. # Convert to MSYS style.
  8868. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8869. ;;
  8870. cygwin*)
  8871. # Convert to unix form, then to dos form, then back to unix form
  8872. # but this time dos style (no spaces!) so that the unix form looks
  8873. # like /cygdrive/c/PROGRA~1:/cygdr...
  8874. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8875. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8876. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8877. ;;
  8878. *)
  8879. sys_lib_search_path_spec="$LIB"
  8880. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8881. # It is most probably a Windows format PATH.
  8882. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8883. else
  8884. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8885. fi
  8886. # FIXME: find the short name or the path components, as spaces are
  8887. # common. (e.g. "Program Files" -> "PROGRA~1")
  8888. ;;
  8889. esac
  8890. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8891. postinstall_cmds='base_file=`basename \${file}`~
  8892. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8893. dldir=$destdir/`dirname \$dlpath`~
  8894. test -d \$dldir || mkdir -p \$dldir~
  8895. $install_prog $dir/$dlname \$dldir/$dlname'
  8896. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8897. dlpath=$dir/\$dldll~
  8898. $RM \$dlpath'
  8899. shlibpath_overrides_runpath=yes
  8900. dynamic_linker='Win32 link.exe'
  8901. ;;
  8902. *)
  8903. # Assume MSVC wrapper
  8904. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8905. dynamic_linker='Win32 ld.exe'
  8906. ;;
  8907. esac
  8908. # FIXME: first we should search . and the directory the executable is in
  8909. shlibpath_var=PATH
  8910. ;;
  8911. darwin* | rhapsody*)
  8912. dynamic_linker="$host_os dyld"
  8913. version_type=darwin
  8914. need_lib_prefix=no
  8915. need_version=no
  8916. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8917. soname_spec='${libname}${release}${major}$shared_ext'
  8918. shlibpath_overrides_runpath=yes
  8919. shlibpath_var=DYLD_LIBRARY_PATH
  8920. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8921. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8922. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8923. ;;
  8924. dgux*)
  8925. version_type=linux # correct to gnu/linux during the next big refactor
  8926. need_lib_prefix=no
  8927. need_version=no
  8928. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8929. soname_spec='${libname}${release}${shared_ext}$major'
  8930. shlibpath_var=LD_LIBRARY_PATH
  8931. ;;
  8932. freebsd* | dragonfly*)
  8933. # DragonFly does not have aout. When/if they implement a new
  8934. # versioning mechanism, adjust this.
  8935. if test -x /usr/bin/objformat; then
  8936. objformat=`/usr/bin/objformat`
  8937. else
  8938. case $host_os in
  8939. freebsd[23].*) objformat=aout ;;
  8940. *) objformat=elf ;;
  8941. esac
  8942. fi
  8943. version_type=freebsd-$objformat
  8944. case $version_type in
  8945. freebsd-elf*)
  8946. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8947. need_version=no
  8948. need_lib_prefix=no
  8949. ;;
  8950. freebsd-*)
  8951. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8952. need_version=yes
  8953. ;;
  8954. esac
  8955. shlibpath_var=LD_LIBRARY_PATH
  8956. case $host_os in
  8957. freebsd2.*)
  8958. shlibpath_overrides_runpath=yes
  8959. ;;
  8960. freebsd3.[01]* | freebsdelf3.[01]*)
  8961. shlibpath_overrides_runpath=yes
  8962. hardcode_into_libs=yes
  8963. ;;
  8964. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8965. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8966. shlibpath_overrides_runpath=no
  8967. hardcode_into_libs=yes
  8968. ;;
  8969. *) # from 4.6 on, and DragonFly
  8970. shlibpath_overrides_runpath=yes
  8971. hardcode_into_libs=yes
  8972. ;;
  8973. esac
  8974. ;;
  8975. gnu*)
  8976. version_type=linux # correct to gnu/linux during the next big refactor
  8977. need_lib_prefix=no
  8978. need_version=no
  8979. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8980. soname_spec='${libname}${release}${shared_ext}$major'
  8981. shlibpath_var=LD_LIBRARY_PATH
  8982. shlibpath_overrides_runpath=no
  8983. hardcode_into_libs=yes
  8984. ;;
  8985. haiku*)
  8986. version_type=linux # correct to gnu/linux during the next big refactor
  8987. need_lib_prefix=no
  8988. need_version=no
  8989. dynamic_linker="$host_os runtime_loader"
  8990. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8991. soname_spec='${libname}${release}${shared_ext}$major'
  8992. shlibpath_var=LIBRARY_PATH
  8993. shlibpath_overrides_runpath=yes
  8994. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8995. hardcode_into_libs=yes
  8996. ;;
  8997. hpux9* | hpux10* | hpux11*)
  8998. # Give a soname corresponding to the major version so that dld.sl refuses to
  8999. # link against other versions.
  9000. version_type=sunos
  9001. need_lib_prefix=no
  9002. need_version=no
  9003. case $host_cpu in
  9004. ia64*)
  9005. shrext_cmds='.so'
  9006. hardcode_into_libs=yes
  9007. dynamic_linker="$host_os dld.so"
  9008. shlibpath_var=LD_LIBRARY_PATH
  9009. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9010. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9011. soname_spec='${libname}${release}${shared_ext}$major'
  9012. if test "X$HPUX_IA64_MODE" = X32; then
  9013. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9014. else
  9015. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9016. fi
  9017. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9018. ;;
  9019. hppa*64*)
  9020. shrext_cmds='.sl'
  9021. hardcode_into_libs=yes
  9022. dynamic_linker="$host_os dld.sl"
  9023. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9024. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9025. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9026. soname_spec='${libname}${release}${shared_ext}$major'
  9027. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9028. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9029. ;;
  9030. *)
  9031. shrext_cmds='.sl'
  9032. dynamic_linker="$host_os dld.sl"
  9033. shlibpath_var=SHLIB_PATH
  9034. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9035. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9036. soname_spec='${libname}${release}${shared_ext}$major'
  9037. ;;
  9038. esac
  9039. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9040. postinstall_cmds='chmod 555 $lib'
  9041. # or fails outright, so override atomically:
  9042. install_override_mode=555
  9043. ;;
  9044. interix[3-9]*)
  9045. version_type=linux # correct to gnu/linux during the next big refactor
  9046. need_lib_prefix=no
  9047. need_version=no
  9048. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9049. soname_spec='${libname}${release}${shared_ext}$major'
  9050. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9051. shlibpath_var=LD_LIBRARY_PATH
  9052. shlibpath_overrides_runpath=no
  9053. hardcode_into_libs=yes
  9054. ;;
  9055. irix5* | irix6* | nonstopux*)
  9056. case $host_os in
  9057. nonstopux*) version_type=nonstopux ;;
  9058. *)
  9059. if test "$lt_cv_prog_gnu_ld" = yes; then
  9060. version_type=linux # correct to gnu/linux during the next big refactor
  9061. else
  9062. version_type=irix
  9063. fi ;;
  9064. esac
  9065. need_lib_prefix=no
  9066. need_version=no
  9067. soname_spec='${libname}${release}${shared_ext}$major'
  9068. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9069. case $host_os in
  9070. irix5* | nonstopux*)
  9071. libsuff= shlibsuff=
  9072. ;;
  9073. *)
  9074. case $LD in # libtool.m4 will add one of these switches to LD
  9075. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9076. libsuff= shlibsuff= libmagic=32-bit;;
  9077. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9078. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9079. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9080. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9081. *) libsuff= shlibsuff= libmagic=never-match;;
  9082. esac
  9083. ;;
  9084. esac
  9085. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9086. shlibpath_overrides_runpath=no
  9087. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9088. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9089. hardcode_into_libs=yes
  9090. ;;
  9091. # No shared lib support for Linux oldld, aout, or coff.
  9092. linux*oldld* | linux*aout* | linux*coff*)
  9093. dynamic_linker=no
  9094. ;;
  9095. # This must be glibc/ELF.
  9096. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9097. version_type=linux # correct to gnu/linux during the next big refactor
  9098. need_lib_prefix=no
  9099. need_version=no
  9100. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9101. soname_spec='${libname}${release}${shared_ext}$major'
  9102. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9103. shlibpath_var=LD_LIBRARY_PATH
  9104. shlibpath_overrides_runpath=no
  9105. # Some binutils ld are patched to set DT_RUNPATH
  9106. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9107. $as_echo_n "(cached) " >&6
  9108. else
  9109. lt_cv_shlibpath_overrides_runpath=no
  9110. save_LDFLAGS=$LDFLAGS
  9111. save_libdir=$libdir
  9112. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9113. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9115. /* end confdefs.h. */
  9116. int
  9117. main ()
  9118. {
  9119. ;
  9120. return 0;
  9121. }
  9122. _ACEOF
  9123. if ac_fn_c_try_link "$LINENO"; then :
  9124. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9125. lt_cv_shlibpath_overrides_runpath=yes
  9126. fi
  9127. fi
  9128. rm -f core conftest.err conftest.$ac_objext \
  9129. conftest$ac_exeext conftest.$ac_ext
  9130. LDFLAGS=$save_LDFLAGS
  9131. libdir=$save_libdir
  9132. fi
  9133. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9134. # This implies no fast_install, which is unacceptable.
  9135. # Some rework will be needed to allow for fast_install
  9136. # before this can be enabled.
  9137. hardcode_into_libs=yes
  9138. # Add ABI-specific directories to the system library path.
  9139. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  9140. # Append ld.so.conf contents to the search path
  9141. if test -f /etc/ld.so.conf; then
  9142. 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' ' '`
  9143. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  9144. fi
  9145. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9146. # powerpc, because MkLinux only supported shared libraries with the
  9147. # GNU dynamic linker. Since this was broken with cross compilers,
  9148. # most powerpc-linux boxes support dynamic linking these days and
  9149. # people can always --disable-shared, the test was removed, and we
  9150. # assume the GNU/Linux dynamic linker is in use.
  9151. dynamic_linker='GNU/Linux ld.so'
  9152. ;;
  9153. netbsd*)
  9154. version_type=sunos
  9155. need_lib_prefix=no
  9156. need_version=no
  9157. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9158. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9159. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9160. dynamic_linker='NetBSD (a.out) ld.so'
  9161. else
  9162. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9163. soname_spec='${libname}${release}${shared_ext}$major'
  9164. dynamic_linker='NetBSD ld.elf_so'
  9165. fi
  9166. shlibpath_var=LD_LIBRARY_PATH
  9167. shlibpath_overrides_runpath=yes
  9168. hardcode_into_libs=yes
  9169. ;;
  9170. newsos6)
  9171. version_type=linux # correct to gnu/linux during the next big refactor
  9172. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9173. shlibpath_var=LD_LIBRARY_PATH
  9174. shlibpath_overrides_runpath=yes
  9175. ;;
  9176. *nto* | *qnx*)
  9177. version_type=qnx
  9178. need_lib_prefix=no
  9179. need_version=no
  9180. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9181. soname_spec='${libname}${release}${shared_ext}$major'
  9182. shlibpath_var=LD_LIBRARY_PATH
  9183. shlibpath_overrides_runpath=no
  9184. hardcode_into_libs=yes
  9185. dynamic_linker='ldqnx.so'
  9186. ;;
  9187. openbsd*)
  9188. version_type=sunos
  9189. sys_lib_dlsearch_path_spec="/usr/lib"
  9190. need_lib_prefix=no
  9191. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9192. case $host_os in
  9193. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9194. *) need_version=no ;;
  9195. esac
  9196. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9197. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9198. shlibpath_var=LD_LIBRARY_PATH
  9199. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9200. case $host_os in
  9201. openbsd2.[89] | openbsd2.[89].*)
  9202. shlibpath_overrides_runpath=no
  9203. ;;
  9204. *)
  9205. shlibpath_overrides_runpath=yes
  9206. ;;
  9207. esac
  9208. else
  9209. shlibpath_overrides_runpath=yes
  9210. fi
  9211. ;;
  9212. os2*)
  9213. libname_spec='$name'
  9214. shrext_cmds=".dll"
  9215. need_lib_prefix=no
  9216. library_names_spec='$libname${shared_ext} $libname.a'
  9217. dynamic_linker='OS/2 ld.exe'
  9218. shlibpath_var=LIBPATH
  9219. ;;
  9220. osf3* | osf4* | osf5*)
  9221. version_type=osf
  9222. need_lib_prefix=no
  9223. need_version=no
  9224. soname_spec='${libname}${release}${shared_ext}$major'
  9225. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9226. shlibpath_var=LD_LIBRARY_PATH
  9227. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9228. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9229. ;;
  9230. rdos*)
  9231. dynamic_linker=no
  9232. ;;
  9233. solaris*)
  9234. version_type=linux # correct to gnu/linux during the next big refactor
  9235. need_lib_prefix=no
  9236. need_version=no
  9237. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9238. soname_spec='${libname}${release}${shared_ext}$major'
  9239. shlibpath_var=LD_LIBRARY_PATH
  9240. shlibpath_overrides_runpath=yes
  9241. hardcode_into_libs=yes
  9242. # ldd complains unless libraries are executable
  9243. postinstall_cmds='chmod +x $lib'
  9244. ;;
  9245. sunos4*)
  9246. version_type=sunos
  9247. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9248. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9249. shlibpath_var=LD_LIBRARY_PATH
  9250. shlibpath_overrides_runpath=yes
  9251. if test "$with_gnu_ld" = yes; then
  9252. need_lib_prefix=no
  9253. fi
  9254. need_version=yes
  9255. ;;
  9256. sysv4 | sysv4.3*)
  9257. version_type=linux # correct to gnu/linux during the next big refactor
  9258. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9259. soname_spec='${libname}${release}${shared_ext}$major'
  9260. shlibpath_var=LD_LIBRARY_PATH
  9261. case $host_vendor in
  9262. sni)
  9263. shlibpath_overrides_runpath=no
  9264. need_lib_prefix=no
  9265. runpath_var=LD_RUN_PATH
  9266. ;;
  9267. siemens)
  9268. need_lib_prefix=no
  9269. ;;
  9270. motorola)
  9271. need_lib_prefix=no
  9272. need_version=no
  9273. shlibpath_overrides_runpath=no
  9274. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9275. ;;
  9276. esac
  9277. ;;
  9278. sysv4*MP*)
  9279. if test -d /usr/nec ;then
  9280. version_type=linux # correct to gnu/linux during the next big refactor
  9281. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9282. soname_spec='$libname${shared_ext}.$major'
  9283. shlibpath_var=LD_LIBRARY_PATH
  9284. fi
  9285. ;;
  9286. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9287. version_type=freebsd-elf
  9288. need_lib_prefix=no
  9289. need_version=no
  9290. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9291. soname_spec='${libname}${release}${shared_ext}$major'
  9292. shlibpath_var=LD_LIBRARY_PATH
  9293. shlibpath_overrides_runpath=yes
  9294. hardcode_into_libs=yes
  9295. if test "$with_gnu_ld" = yes; then
  9296. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9297. else
  9298. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9299. case $host_os in
  9300. sco3.2v5*)
  9301. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9302. ;;
  9303. esac
  9304. fi
  9305. sys_lib_dlsearch_path_spec='/usr/lib'
  9306. ;;
  9307. tpf*)
  9308. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9309. version_type=linux # correct to gnu/linux during the next big refactor
  9310. need_lib_prefix=no
  9311. need_version=no
  9312. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9313. shlibpath_var=LD_LIBRARY_PATH
  9314. shlibpath_overrides_runpath=no
  9315. hardcode_into_libs=yes
  9316. ;;
  9317. uts4*)
  9318. version_type=linux # correct to gnu/linux during the next big refactor
  9319. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9320. soname_spec='${libname}${release}${shared_ext}$major'
  9321. shlibpath_var=LD_LIBRARY_PATH
  9322. ;;
  9323. *)
  9324. dynamic_linker=no
  9325. ;;
  9326. esac
  9327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9328. $as_echo "$dynamic_linker" >&6; }
  9329. test "$dynamic_linker" = no && can_build_shared=no
  9330. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9331. if test "$GCC" = yes; then
  9332. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9333. fi
  9334. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9335. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9336. fi
  9337. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9338. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9339. fi
  9340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9341. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9342. hardcode_action=
  9343. if test -n "$hardcode_libdir_flag_spec" ||
  9344. test -n "$runpath_var" ||
  9345. test "X$hardcode_automatic" = "Xyes" ; then
  9346. # We can hardcode non-existent directories.
  9347. if test "$hardcode_direct" != no &&
  9348. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9349. # have to relink, otherwise we might link with an installed library
  9350. # when we should be linking with a yet-to-be-installed one
  9351. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9352. test "$hardcode_minus_L" != no; then
  9353. # Linking always hardcodes the temporary library directory.
  9354. hardcode_action=relink
  9355. else
  9356. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9357. hardcode_action=immediate
  9358. fi
  9359. else
  9360. # We cannot hardcode anything, or else we can only hardcode existing
  9361. # directories.
  9362. hardcode_action=unsupported
  9363. fi
  9364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9365. $as_echo "$hardcode_action" >&6; }
  9366. if test "$hardcode_action" = relink ||
  9367. test "$inherit_rpath" = yes; then
  9368. # Fast installation is not supported
  9369. enable_fast_install=no
  9370. elif test "$shlibpath_overrides_runpath" = yes ||
  9371. test "$enable_shared" = no; then
  9372. # Fast installation is not necessary
  9373. enable_fast_install=needless
  9374. fi
  9375. if test "x$enable_dlopen" != xyes; then
  9376. enable_dlopen=unknown
  9377. enable_dlopen_self=unknown
  9378. enable_dlopen_self_static=unknown
  9379. else
  9380. lt_cv_dlopen=no
  9381. lt_cv_dlopen_libs=
  9382. case $host_os in
  9383. beos*)
  9384. lt_cv_dlopen="load_add_on"
  9385. lt_cv_dlopen_libs=
  9386. lt_cv_dlopen_self=yes
  9387. ;;
  9388. mingw* | pw32* | cegcc*)
  9389. lt_cv_dlopen="LoadLibrary"
  9390. lt_cv_dlopen_libs=
  9391. ;;
  9392. cygwin*)
  9393. lt_cv_dlopen="dlopen"
  9394. lt_cv_dlopen_libs=
  9395. ;;
  9396. darwin*)
  9397. # if libdl is installed we need to link against it
  9398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9399. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9400. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9401. $as_echo_n "(cached) " >&6
  9402. else
  9403. ac_check_lib_save_LIBS=$LIBS
  9404. LIBS="-ldl $LIBS"
  9405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9406. /* end confdefs.h. */
  9407. /* Override any GCC internal prototype to avoid an error.
  9408. Use char because int might match the return type of a GCC
  9409. builtin and then its argument prototype would still apply. */
  9410. #ifdef __cplusplus
  9411. extern "C"
  9412. #endif
  9413. char dlopen ();
  9414. int
  9415. main ()
  9416. {
  9417. return dlopen ();
  9418. ;
  9419. return 0;
  9420. }
  9421. _ACEOF
  9422. if ac_fn_c_try_link "$LINENO"; then :
  9423. ac_cv_lib_dl_dlopen=yes
  9424. else
  9425. ac_cv_lib_dl_dlopen=no
  9426. fi
  9427. rm -f core conftest.err conftest.$ac_objext \
  9428. conftest$ac_exeext conftest.$ac_ext
  9429. LIBS=$ac_check_lib_save_LIBS
  9430. fi
  9431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9432. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9433. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9434. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9435. else
  9436. lt_cv_dlopen="dyld"
  9437. lt_cv_dlopen_libs=
  9438. lt_cv_dlopen_self=yes
  9439. fi
  9440. ;;
  9441. *)
  9442. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9443. if test "x$ac_cv_func_shl_load" = xyes; then :
  9444. lt_cv_dlopen="shl_load"
  9445. else
  9446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9447. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9448. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9449. $as_echo_n "(cached) " >&6
  9450. else
  9451. ac_check_lib_save_LIBS=$LIBS
  9452. LIBS="-ldld $LIBS"
  9453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9454. /* end confdefs.h. */
  9455. /* Override any GCC internal prototype to avoid an error.
  9456. Use char because int might match the return type of a GCC
  9457. builtin and then its argument prototype would still apply. */
  9458. #ifdef __cplusplus
  9459. extern "C"
  9460. #endif
  9461. char shl_load ();
  9462. int
  9463. main ()
  9464. {
  9465. return shl_load ();
  9466. ;
  9467. return 0;
  9468. }
  9469. _ACEOF
  9470. if ac_fn_c_try_link "$LINENO"; then :
  9471. ac_cv_lib_dld_shl_load=yes
  9472. else
  9473. ac_cv_lib_dld_shl_load=no
  9474. fi
  9475. rm -f core conftest.err conftest.$ac_objext \
  9476. conftest$ac_exeext conftest.$ac_ext
  9477. LIBS=$ac_check_lib_save_LIBS
  9478. fi
  9479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9480. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9481. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9482. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9483. else
  9484. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9485. if test "x$ac_cv_func_dlopen" = xyes; then :
  9486. lt_cv_dlopen="dlopen"
  9487. else
  9488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9489. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9490. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9491. $as_echo_n "(cached) " >&6
  9492. else
  9493. ac_check_lib_save_LIBS=$LIBS
  9494. LIBS="-ldl $LIBS"
  9495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9496. /* end confdefs.h. */
  9497. /* Override any GCC internal prototype to avoid an error.
  9498. Use char because int might match the return type of a GCC
  9499. builtin and then its argument prototype would still apply. */
  9500. #ifdef __cplusplus
  9501. extern "C"
  9502. #endif
  9503. char dlopen ();
  9504. int
  9505. main ()
  9506. {
  9507. return dlopen ();
  9508. ;
  9509. return 0;
  9510. }
  9511. _ACEOF
  9512. if ac_fn_c_try_link "$LINENO"; then :
  9513. ac_cv_lib_dl_dlopen=yes
  9514. else
  9515. ac_cv_lib_dl_dlopen=no
  9516. fi
  9517. rm -f core conftest.err conftest.$ac_objext \
  9518. conftest$ac_exeext conftest.$ac_ext
  9519. LIBS=$ac_check_lib_save_LIBS
  9520. fi
  9521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9522. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9523. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9524. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9525. else
  9526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9527. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9528. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9529. $as_echo_n "(cached) " >&6
  9530. else
  9531. ac_check_lib_save_LIBS=$LIBS
  9532. LIBS="-lsvld $LIBS"
  9533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9534. /* end confdefs.h. */
  9535. /* Override any GCC internal prototype to avoid an error.
  9536. Use char because int might match the return type of a GCC
  9537. builtin and then its argument prototype would still apply. */
  9538. #ifdef __cplusplus
  9539. extern "C"
  9540. #endif
  9541. char dlopen ();
  9542. int
  9543. main ()
  9544. {
  9545. return dlopen ();
  9546. ;
  9547. return 0;
  9548. }
  9549. _ACEOF
  9550. if ac_fn_c_try_link "$LINENO"; then :
  9551. ac_cv_lib_svld_dlopen=yes
  9552. else
  9553. ac_cv_lib_svld_dlopen=no
  9554. fi
  9555. rm -f core conftest.err conftest.$ac_objext \
  9556. conftest$ac_exeext conftest.$ac_ext
  9557. LIBS=$ac_check_lib_save_LIBS
  9558. fi
  9559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9560. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9561. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9562. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9563. else
  9564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9565. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9566. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9567. $as_echo_n "(cached) " >&6
  9568. else
  9569. ac_check_lib_save_LIBS=$LIBS
  9570. LIBS="-ldld $LIBS"
  9571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9572. /* end confdefs.h. */
  9573. /* Override any GCC internal prototype to avoid an error.
  9574. Use char because int might match the return type of a GCC
  9575. builtin and then its argument prototype would still apply. */
  9576. #ifdef __cplusplus
  9577. extern "C"
  9578. #endif
  9579. char dld_link ();
  9580. int
  9581. main ()
  9582. {
  9583. return dld_link ();
  9584. ;
  9585. return 0;
  9586. }
  9587. _ACEOF
  9588. if ac_fn_c_try_link "$LINENO"; then :
  9589. ac_cv_lib_dld_dld_link=yes
  9590. else
  9591. ac_cv_lib_dld_dld_link=no
  9592. fi
  9593. rm -f core conftest.err conftest.$ac_objext \
  9594. conftest$ac_exeext conftest.$ac_ext
  9595. LIBS=$ac_check_lib_save_LIBS
  9596. fi
  9597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9598. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9599. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9600. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9601. fi
  9602. fi
  9603. fi
  9604. fi
  9605. fi
  9606. fi
  9607. ;;
  9608. esac
  9609. if test "x$lt_cv_dlopen" != xno; then
  9610. enable_dlopen=yes
  9611. else
  9612. enable_dlopen=no
  9613. fi
  9614. case $lt_cv_dlopen in
  9615. dlopen)
  9616. save_CPPFLAGS="$CPPFLAGS"
  9617. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9618. save_LDFLAGS="$LDFLAGS"
  9619. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9620. save_LIBS="$LIBS"
  9621. LIBS="$lt_cv_dlopen_libs $LIBS"
  9622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9623. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9624. if ${lt_cv_dlopen_self+:} false; then :
  9625. $as_echo_n "(cached) " >&6
  9626. else
  9627. if test "$cross_compiling" = yes; then :
  9628. lt_cv_dlopen_self=cross
  9629. else
  9630. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9631. lt_status=$lt_dlunknown
  9632. cat > conftest.$ac_ext <<_LT_EOF
  9633. #line $LINENO "configure"
  9634. #include "confdefs.h"
  9635. #if HAVE_DLFCN_H
  9636. #include <dlfcn.h>
  9637. #endif
  9638. #include <stdio.h>
  9639. #ifdef RTLD_GLOBAL
  9640. # define LT_DLGLOBAL RTLD_GLOBAL
  9641. #else
  9642. # ifdef DL_GLOBAL
  9643. # define LT_DLGLOBAL DL_GLOBAL
  9644. # else
  9645. # define LT_DLGLOBAL 0
  9646. # endif
  9647. #endif
  9648. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9649. find out it does not work in some platform. */
  9650. #ifndef LT_DLLAZY_OR_NOW
  9651. # ifdef RTLD_LAZY
  9652. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9653. # else
  9654. # ifdef DL_LAZY
  9655. # define LT_DLLAZY_OR_NOW DL_LAZY
  9656. # else
  9657. # ifdef RTLD_NOW
  9658. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9659. # else
  9660. # ifdef DL_NOW
  9661. # define LT_DLLAZY_OR_NOW DL_NOW
  9662. # else
  9663. # define LT_DLLAZY_OR_NOW 0
  9664. # endif
  9665. # endif
  9666. # endif
  9667. # endif
  9668. #endif
  9669. /* When -fvisbility=hidden is used, assume the code has been annotated
  9670. correspondingly for the symbols needed. */
  9671. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9672. int fnord () __attribute__((visibility("default")));
  9673. #endif
  9674. int fnord () { return 42; }
  9675. int main ()
  9676. {
  9677. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9678. int status = $lt_dlunknown;
  9679. if (self)
  9680. {
  9681. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9682. else
  9683. {
  9684. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9685. else puts (dlerror ());
  9686. }
  9687. /* dlclose (self); */
  9688. }
  9689. else
  9690. puts (dlerror ());
  9691. return status;
  9692. }
  9693. _LT_EOF
  9694. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9695. (eval $ac_link) 2>&5
  9696. ac_status=$?
  9697. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9698. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9699. (./conftest; exit; ) >&5 2>/dev/null
  9700. lt_status=$?
  9701. case x$lt_status in
  9702. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9703. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9704. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9705. esac
  9706. else :
  9707. # compilation failed
  9708. lt_cv_dlopen_self=no
  9709. fi
  9710. fi
  9711. rm -fr conftest*
  9712. fi
  9713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9714. $as_echo "$lt_cv_dlopen_self" >&6; }
  9715. if test "x$lt_cv_dlopen_self" = xyes; then
  9716. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9718. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9719. if ${lt_cv_dlopen_self_static+:} false; then :
  9720. $as_echo_n "(cached) " >&6
  9721. else
  9722. if test "$cross_compiling" = yes; then :
  9723. lt_cv_dlopen_self_static=cross
  9724. else
  9725. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9726. lt_status=$lt_dlunknown
  9727. cat > conftest.$ac_ext <<_LT_EOF
  9728. #line $LINENO "configure"
  9729. #include "confdefs.h"
  9730. #if HAVE_DLFCN_H
  9731. #include <dlfcn.h>
  9732. #endif
  9733. #include <stdio.h>
  9734. #ifdef RTLD_GLOBAL
  9735. # define LT_DLGLOBAL RTLD_GLOBAL
  9736. #else
  9737. # ifdef DL_GLOBAL
  9738. # define LT_DLGLOBAL DL_GLOBAL
  9739. # else
  9740. # define LT_DLGLOBAL 0
  9741. # endif
  9742. #endif
  9743. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9744. find out it does not work in some platform. */
  9745. #ifndef LT_DLLAZY_OR_NOW
  9746. # ifdef RTLD_LAZY
  9747. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9748. # else
  9749. # ifdef DL_LAZY
  9750. # define LT_DLLAZY_OR_NOW DL_LAZY
  9751. # else
  9752. # ifdef RTLD_NOW
  9753. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9754. # else
  9755. # ifdef DL_NOW
  9756. # define LT_DLLAZY_OR_NOW DL_NOW
  9757. # else
  9758. # define LT_DLLAZY_OR_NOW 0
  9759. # endif
  9760. # endif
  9761. # endif
  9762. # endif
  9763. #endif
  9764. /* When -fvisbility=hidden is used, assume the code has been annotated
  9765. correspondingly for the symbols needed. */
  9766. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9767. int fnord () __attribute__((visibility("default")));
  9768. #endif
  9769. int fnord () { return 42; }
  9770. int main ()
  9771. {
  9772. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9773. int status = $lt_dlunknown;
  9774. if (self)
  9775. {
  9776. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9777. else
  9778. {
  9779. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9780. else puts (dlerror ());
  9781. }
  9782. /* dlclose (self); */
  9783. }
  9784. else
  9785. puts (dlerror ());
  9786. return status;
  9787. }
  9788. _LT_EOF
  9789. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9790. (eval $ac_link) 2>&5
  9791. ac_status=$?
  9792. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9793. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9794. (./conftest; exit; ) >&5 2>/dev/null
  9795. lt_status=$?
  9796. case x$lt_status in
  9797. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9798. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9799. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9800. esac
  9801. else :
  9802. # compilation failed
  9803. lt_cv_dlopen_self_static=no
  9804. fi
  9805. fi
  9806. rm -fr conftest*
  9807. fi
  9808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9809. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9810. fi
  9811. CPPFLAGS="$save_CPPFLAGS"
  9812. LDFLAGS="$save_LDFLAGS"
  9813. LIBS="$save_LIBS"
  9814. ;;
  9815. esac
  9816. case $lt_cv_dlopen_self in
  9817. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9818. *) enable_dlopen_self=unknown ;;
  9819. esac
  9820. case $lt_cv_dlopen_self_static in
  9821. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9822. *) enable_dlopen_self_static=unknown ;;
  9823. esac
  9824. fi
  9825. striplib=
  9826. old_striplib=
  9827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9828. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9829. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9830. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9831. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9833. $as_echo "yes" >&6; }
  9834. else
  9835. # FIXME - insert some real tests, host_os isn't really good enough
  9836. case $host_os in
  9837. darwin*)
  9838. if test -n "$STRIP" ; then
  9839. striplib="$STRIP -x"
  9840. old_striplib="$STRIP -S"
  9841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9842. $as_echo "yes" >&6; }
  9843. else
  9844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9845. $as_echo "no" >&6; }
  9846. fi
  9847. ;;
  9848. *)
  9849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9850. $as_echo "no" >&6; }
  9851. ;;
  9852. esac
  9853. fi
  9854. # Report which library types will actually be built
  9855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9856. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9858. $as_echo "$can_build_shared" >&6; }
  9859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9860. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9861. test "$can_build_shared" = "no" && enable_shared=no
  9862. # On AIX, shared libraries and static libraries use the same namespace, and
  9863. # are all built from PIC.
  9864. case $host_os in
  9865. aix3*)
  9866. test "$enable_shared" = yes && enable_static=no
  9867. if test -n "$RANLIB"; then
  9868. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9869. postinstall_cmds='$RANLIB $lib'
  9870. fi
  9871. ;;
  9872. aix[4-9]*)
  9873. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9874. test "$enable_shared" = yes && enable_static=no
  9875. fi
  9876. ;;
  9877. esac
  9878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9879. $as_echo "$enable_shared" >&6; }
  9880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9881. $as_echo_n "checking whether to build static libraries... " >&6; }
  9882. # Make sure either enable_shared or enable_static is yes.
  9883. test "$enable_shared" = yes || enable_static=yes
  9884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9885. $as_echo "$enable_static" >&6; }
  9886. fi
  9887. ac_ext=c
  9888. ac_cpp='$CPP $CPPFLAGS'
  9889. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9890. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9891. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9892. CC="$lt_save_CC"
  9893. ac_config_commands="$ac_config_commands libtool"
  9894. # Only expand once:
  9895. if test "x$CC" != xcc; then
  9896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  9897. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  9898. else
  9899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  9900. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  9901. fi
  9902. set dummy $CC; ac_cc=`$as_echo "$2" |
  9903. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  9904. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  9905. $as_echo_n "(cached) " >&6
  9906. else
  9907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9908. /* end confdefs.h. */
  9909. int
  9910. main ()
  9911. {
  9912. ;
  9913. return 0;
  9914. }
  9915. _ACEOF
  9916. # Make sure it works both with $CC and with simple cc.
  9917. # We do the test twice because some compilers refuse to overwrite an
  9918. # existing .o file with -o, though they will create one.
  9919. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  9920. rm -f conftest2.*
  9921. if { { case "(($ac_try" in
  9922. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9923. *) ac_try_echo=$ac_try;;
  9924. esac
  9925. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9926. $as_echo "$ac_try_echo"; } >&5
  9927. (eval "$ac_try") 2>&5
  9928. ac_status=$?
  9929. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9930. test $ac_status = 0; } &&
  9931. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  9932. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9933. *) ac_try_echo=$ac_try;;
  9934. esac
  9935. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9936. $as_echo "$ac_try_echo"; } >&5
  9937. (eval "$ac_try") 2>&5
  9938. ac_status=$?
  9939. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9940. test $ac_status = 0; };
  9941. then
  9942. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  9943. if test "x$CC" != xcc; then
  9944. # Test first that cc exists at all.
  9945. if { ac_try='cc -c conftest.$ac_ext >&5'
  9946. { { case "(($ac_try" in
  9947. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9948. *) ac_try_echo=$ac_try;;
  9949. esac
  9950. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9951. $as_echo "$ac_try_echo"; } >&5
  9952. (eval "$ac_try") 2>&5
  9953. ac_status=$?
  9954. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9955. test $ac_status = 0; }; }; then
  9956. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  9957. rm -f conftest2.*
  9958. if { { case "(($ac_try" in
  9959. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9960. *) ac_try_echo=$ac_try;;
  9961. esac
  9962. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9963. $as_echo "$ac_try_echo"; } >&5
  9964. (eval "$ac_try") 2>&5
  9965. ac_status=$?
  9966. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9967. test $ac_status = 0; } &&
  9968. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  9969. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9970. *) ac_try_echo=$ac_try;;
  9971. esac
  9972. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9973. $as_echo "$ac_try_echo"; } >&5
  9974. (eval "$ac_try") 2>&5
  9975. ac_status=$?
  9976. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9977. test $ac_status = 0; };
  9978. then
  9979. # cc works too.
  9980. :
  9981. else
  9982. # cc exists but doesn't like -o.
  9983. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  9984. fi
  9985. fi
  9986. fi
  9987. else
  9988. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  9989. fi
  9990. rm -f core conftest*
  9991. fi
  9992. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  9993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9994. $as_echo "yes" >&6; }
  9995. else
  9996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9997. $as_echo "no" >&6; }
  9998. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  9999. fi
  10000. # FIXME: we rely on the cache variable name because
  10001. # there is no other way.
  10002. set dummy $CC
  10003. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  10004. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  10005. if test "$am_t" != yes; then
  10006. # Losing compiler, so override with the script.
  10007. # FIXME: It is wrong to rewrite CC.
  10008. # But if we don't then we get into trouble of one sort or another.
  10009. # A longer-term fix would be to have automake use am__CC in this case,
  10010. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  10011. CC="$am_aux_dir/compile $CC"
  10012. fi
  10013. cflags_save="$CFLAGS"
  10014. if test -z "$GCC"; then
  10015. case $host in
  10016. *-*-irix*)
  10017. DEBUG="-g -signed"
  10018. CFLAGS="-O2 -w -signed"
  10019. PROFILE="-p -g3 -O2 -signed"
  10020. ;;
  10021. sparc-sun-solaris*)
  10022. DEBUG="-v -g"
  10023. CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
  10024. PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc"
  10025. ;;
  10026. *)
  10027. DEBUG="-g"
  10028. CFLAGS="-O"
  10029. PROFILE="-g -p"
  10030. ;;
  10031. esac
  10032. else
  10033. case $host in
  10034. *-*-linux*)
  10035. DEBUG="-g -Wall -fsigned-char"
  10036. CFLAGS="-O20 -Wall -ffast-math -fsigned-char"
  10037. PROFILE="-Wall -W -pg -g -O20 -ffast-math -fsigned-char"
  10038. ;;
  10039. sparc-sun-*)
  10040. DEBUG="-g -Wall -fsigned-char"
  10041. CFLAGS="-O20 -ffast-math -fsigned-char"
  10042. PROFILE="-pg -g -O20 -fsigned-char"
  10043. ;;
  10044. *-*-darwin*)
  10045. DEBUG="-fno-common -g -Wall -fsigned-char"
  10046. CFLAGS="-fno-common -O4 -Wall -fsigned-char -ffast-math"
  10047. PROFILE="-fno-common -O4 -Wall -pg -g -fsigned-char -ffast-math"
  10048. ;;
  10049. *)
  10050. DEBUG="-g -Wall -fsigned-char"
  10051. CFLAGS="-O20 -fsigned-char"
  10052. PROFILE="-O20 -g -pg -fsigned-char"
  10053. ;;
  10054. esac
  10055. fi
  10056. CFLAGS="$CFLAGS $cflags_save"
  10057. DEBUG="$DEBUG $cflags_save"
  10058. PROFILE="$PROFILE $cflags_save"
  10059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  10060. $as_echo_n "checking for ANSI C header files... " >&6; }
  10061. if ${ac_cv_header_stdc+:} false; then :
  10062. $as_echo_n "(cached) " >&6
  10063. else
  10064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10065. /* end confdefs.h. */
  10066. #include <stdlib.h>
  10067. #include <stdarg.h>
  10068. #include <string.h>
  10069. #include <float.h>
  10070. int
  10071. main ()
  10072. {
  10073. ;
  10074. return 0;
  10075. }
  10076. _ACEOF
  10077. if ac_fn_c_try_compile "$LINENO"; then :
  10078. ac_cv_header_stdc=yes
  10079. else
  10080. ac_cv_header_stdc=no
  10081. fi
  10082. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10083. if test $ac_cv_header_stdc = yes; then
  10084. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  10085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10086. /* end confdefs.h. */
  10087. #include <string.h>
  10088. _ACEOF
  10089. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10090. $EGREP "memchr" >/dev/null 2>&1; then :
  10091. else
  10092. ac_cv_header_stdc=no
  10093. fi
  10094. rm -f conftest*
  10095. fi
  10096. if test $ac_cv_header_stdc = yes; then
  10097. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  10098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10099. /* end confdefs.h. */
  10100. #include <stdlib.h>
  10101. _ACEOF
  10102. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10103. $EGREP "free" >/dev/null 2>&1; then :
  10104. else
  10105. ac_cv_header_stdc=no
  10106. fi
  10107. rm -f conftest*
  10108. fi
  10109. if test $ac_cv_header_stdc = yes; then
  10110. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  10111. if test "$cross_compiling" = yes; then :
  10112. :
  10113. else
  10114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10115. /* end confdefs.h. */
  10116. #include <ctype.h>
  10117. #include <stdlib.h>
  10118. #if ((' ' & 0x0FF) == 0x020)
  10119. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  10120. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  10121. #else
  10122. # define ISLOWER(c) \
  10123. (('a' <= (c) && (c) <= 'i') \
  10124. || ('j' <= (c) && (c) <= 'r') \
  10125. || ('s' <= (c) && (c) <= 'z'))
  10126. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  10127. #endif
  10128. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  10129. int
  10130. main ()
  10131. {
  10132. int i;
  10133. for (i = 0; i < 256; i++)
  10134. if (XOR (islower (i), ISLOWER (i))
  10135. || toupper (i) != TOUPPER (i))
  10136. return 2;
  10137. return 0;
  10138. }
  10139. _ACEOF
  10140. if ac_fn_c_try_run "$LINENO"; then :
  10141. else
  10142. ac_cv_header_stdc=no
  10143. fi
  10144. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10145. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10146. fi
  10147. fi
  10148. fi
  10149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  10150. $as_echo "$ac_cv_header_stdc" >&6; }
  10151. if test $ac_cv_header_stdc = yes; then
  10152. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  10153. fi
  10154. INCLUDE_INTTYPES_H=0
  10155. INCLUDE_STDINT_H=0
  10156. INCLUDE_SYS_TYPES_H=0
  10157. ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  10158. if test "x$ac_cv_header_inttypes_h" = xyes; then :
  10159. INCLUDE_INTTYPES_H=1
  10160. fi
  10161. ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10162. if test "x$ac_cv_header_stdint_h" = xyes; then :
  10163. INCLUDE_STDINT_H=1
  10164. fi
  10165. ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  10166. if test "x$ac_cv_header_sys_types_h" = xyes; then :
  10167. INCLUDE_SYS_TYPES_H=1
  10168. fi
  10169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  10170. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  10171. if ${ac_cv_c_const+:} false; then :
  10172. $as_echo_n "(cached) " >&6
  10173. else
  10174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10175. /* end confdefs.h. */
  10176. int
  10177. main ()
  10178. {
  10179. #ifndef __cplusplus
  10180. /* Ultrix mips cc rejects this sort of thing. */
  10181. typedef int charset[2];
  10182. const charset cs = { 0, 0 };
  10183. /* SunOS 4.1.1 cc rejects this. */
  10184. char const *const *pcpcc;
  10185. char **ppc;
  10186. /* NEC SVR4.0.2 mips cc rejects this. */
  10187. struct point {int x, y;};
  10188. static struct point const zero = {0,0};
  10189. /* AIX XL C 1.02.0.0 rejects this.
  10190. It does not let you subtract one const X* pointer from another in
  10191. an arm of an if-expression whose if-part is not a constant
  10192. expression */
  10193. const char *g = "string";
  10194. pcpcc = &g + (g ? g-g : 0);
  10195. /* HPUX 7.0 cc rejects these. */
  10196. ++pcpcc;
  10197. ppc = (char**) pcpcc;
  10198. pcpcc = (char const *const *) ppc;
  10199. { /* SCO 3.2v4 cc rejects this sort of thing. */
  10200. char tx;
  10201. char *t = &tx;
  10202. char const *s = 0 ? (char *) 0 : (char const *) 0;
  10203. *t++ = 0;
  10204. if (s) return 0;
  10205. }
  10206. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  10207. int x[] = {25, 17};
  10208. const int *foo = &x[0];
  10209. ++foo;
  10210. }
  10211. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  10212. typedef const int *iptr;
  10213. iptr p = 0;
  10214. ++p;
  10215. }
  10216. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  10217. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  10218. struct s { int j; const int *ap[3]; } bx;
  10219. struct s *b = &bx; b->j = 5;
  10220. }
  10221. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  10222. const int foo = 10;
  10223. if (!foo) return 0;
  10224. }
  10225. return !cs[0] && !zero.x;
  10226. #endif
  10227. ;
  10228. return 0;
  10229. }
  10230. _ACEOF
  10231. if ac_fn_c_try_compile "$LINENO"; then :
  10232. ac_cv_c_const=yes
  10233. else
  10234. ac_cv_c_const=no
  10235. fi
  10236. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10237. fi
  10238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  10239. $as_echo "$ac_cv_c_const" >&6; }
  10240. if test $ac_cv_c_const = no; then
  10241. $as_echo "#define const /**/" >>confdefs.h
  10242. fi
  10243. # The cast to long int works around a bug in the HP C Compiler
  10244. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10245. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10246. # This bug is HP SR number 8606223364.
  10247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int16_t" >&5
  10248. $as_echo_n "checking size of int16_t... " >&6; }
  10249. if ${ac_cv_sizeof_int16_t+:} false; then :
  10250. $as_echo_n "(cached) " >&6
  10251. else
  10252. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int16_t))" "ac_cv_sizeof_int16_t" "$ac_includes_default"; then :
  10253. else
  10254. if test "$ac_cv_type_int16_t" = yes; then
  10255. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10256. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10257. as_fn_error 77 "cannot compute sizeof (int16_t)
  10258. See \`config.log' for more details" "$LINENO" 5; }
  10259. else
  10260. ac_cv_sizeof_int16_t=0
  10261. fi
  10262. fi
  10263. fi
  10264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int16_t" >&5
  10265. $as_echo "$ac_cv_sizeof_int16_t" >&6; }
  10266. cat >>confdefs.h <<_ACEOF
  10267. #define SIZEOF_INT16_T $ac_cv_sizeof_int16_t
  10268. _ACEOF
  10269. # The cast to long int works around a bug in the HP C Compiler
  10270. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10271. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10272. # This bug is HP SR number 8606223364.
  10273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint16_t" >&5
  10274. $as_echo_n "checking size of uint16_t... " >&6; }
  10275. if ${ac_cv_sizeof_uint16_t+:} false; then :
  10276. $as_echo_n "(cached) " >&6
  10277. else
  10278. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint16_t))" "ac_cv_sizeof_uint16_t" "$ac_includes_default"; then :
  10279. else
  10280. if test "$ac_cv_type_uint16_t" = yes; then
  10281. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10282. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10283. as_fn_error 77 "cannot compute sizeof (uint16_t)
  10284. See \`config.log' for more details" "$LINENO" 5; }
  10285. else
  10286. ac_cv_sizeof_uint16_t=0
  10287. fi
  10288. fi
  10289. fi
  10290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint16_t" >&5
  10291. $as_echo "$ac_cv_sizeof_uint16_t" >&6; }
  10292. cat >>confdefs.h <<_ACEOF
  10293. #define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t
  10294. _ACEOF
  10295. # The cast to long int works around a bug in the HP C Compiler
  10296. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10297. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10298. # This bug is HP SR number 8606223364.
  10299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of u_int16_t" >&5
  10300. $as_echo_n "checking size of u_int16_t... " >&6; }
  10301. if ${ac_cv_sizeof_u_int16_t+:} false; then :
  10302. $as_echo_n "(cached) " >&6
  10303. else
  10304. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (u_int16_t))" "ac_cv_sizeof_u_int16_t" "$ac_includes_default"; then :
  10305. else
  10306. if test "$ac_cv_type_u_int16_t" = yes; then
  10307. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10308. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10309. as_fn_error 77 "cannot compute sizeof (u_int16_t)
  10310. See \`config.log' for more details" "$LINENO" 5; }
  10311. else
  10312. ac_cv_sizeof_u_int16_t=0
  10313. fi
  10314. fi
  10315. fi
  10316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_u_int16_t" >&5
  10317. $as_echo "$ac_cv_sizeof_u_int16_t" >&6; }
  10318. cat >>confdefs.h <<_ACEOF
  10319. #define SIZEOF_U_INT16_T $ac_cv_sizeof_u_int16_t
  10320. _ACEOF
  10321. # The cast to long int works around a bug in the HP C Compiler
  10322. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10323. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10324. # This bug is HP SR number 8606223364.
  10325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int32_t" >&5
  10326. $as_echo_n "checking size of int32_t... " >&6; }
  10327. if ${ac_cv_sizeof_int32_t+:} false; then :
  10328. $as_echo_n "(cached) " >&6
  10329. else
  10330. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int32_t))" "ac_cv_sizeof_int32_t" "$ac_includes_default"; then :
  10331. else
  10332. if test "$ac_cv_type_int32_t" = yes; then
  10333. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10334. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10335. as_fn_error 77 "cannot compute sizeof (int32_t)
  10336. See \`config.log' for more details" "$LINENO" 5; }
  10337. else
  10338. ac_cv_sizeof_int32_t=0
  10339. fi
  10340. fi
  10341. fi
  10342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int32_t" >&5
  10343. $as_echo "$ac_cv_sizeof_int32_t" >&6; }
  10344. cat >>confdefs.h <<_ACEOF
  10345. #define SIZEOF_INT32_T $ac_cv_sizeof_int32_t
  10346. _ACEOF
  10347. # The cast to long int works around a bug in the HP C Compiler
  10348. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10349. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10350. # This bug is HP SR number 8606223364.
  10351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint32_t" >&5
  10352. $as_echo_n "checking size of uint32_t... " >&6; }
  10353. if ${ac_cv_sizeof_uint32_t+:} false; then :
  10354. $as_echo_n "(cached) " >&6
  10355. else
  10356. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint32_t))" "ac_cv_sizeof_uint32_t" "$ac_includes_default"; then :
  10357. else
  10358. if test "$ac_cv_type_uint32_t" = yes; then
  10359. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10360. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10361. as_fn_error 77 "cannot compute sizeof (uint32_t)
  10362. See \`config.log' for more details" "$LINENO" 5; }
  10363. else
  10364. ac_cv_sizeof_uint32_t=0
  10365. fi
  10366. fi
  10367. fi
  10368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint32_t" >&5
  10369. $as_echo "$ac_cv_sizeof_uint32_t" >&6; }
  10370. cat >>confdefs.h <<_ACEOF
  10371. #define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t
  10372. _ACEOF
  10373. # The cast to long int works around a bug in the HP C Compiler
  10374. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10375. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10376. # This bug is HP SR number 8606223364.
  10377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of u_int32_t" >&5
  10378. $as_echo_n "checking size of u_int32_t... " >&6; }
  10379. if ${ac_cv_sizeof_u_int32_t+:} false; then :
  10380. $as_echo_n "(cached) " >&6
  10381. else
  10382. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (u_int32_t))" "ac_cv_sizeof_u_int32_t" "$ac_includes_default"; then :
  10383. else
  10384. if test "$ac_cv_type_u_int32_t" = yes; then
  10385. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10386. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10387. as_fn_error 77 "cannot compute sizeof (u_int32_t)
  10388. See \`config.log' for more details" "$LINENO" 5; }
  10389. else
  10390. ac_cv_sizeof_u_int32_t=0
  10391. fi
  10392. fi
  10393. fi
  10394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_u_int32_t" >&5
  10395. $as_echo "$ac_cv_sizeof_u_int32_t" >&6; }
  10396. cat >>confdefs.h <<_ACEOF
  10397. #define SIZEOF_U_INT32_T $ac_cv_sizeof_u_int32_t
  10398. _ACEOF
  10399. # The cast to long int works around a bug in the HP C Compiler
  10400. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10401. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10402. # This bug is HP SR number 8606223364.
  10403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
  10404. $as_echo_n "checking size of int64_t... " >&6; }
  10405. if ${ac_cv_sizeof_int64_t+:} false; then :
  10406. $as_echo_n "(cached) " >&6
  10407. else
  10408. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t" "$ac_includes_default"; then :
  10409. else
  10410. if test "$ac_cv_type_int64_t" = yes; then
  10411. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10412. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10413. as_fn_error 77 "cannot compute sizeof (int64_t)
  10414. See \`config.log' for more details" "$LINENO" 5; }
  10415. else
  10416. ac_cv_sizeof_int64_t=0
  10417. fi
  10418. fi
  10419. fi
  10420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
  10421. $as_echo "$ac_cv_sizeof_int64_t" >&6; }
  10422. cat >>confdefs.h <<_ACEOF
  10423. #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
  10424. _ACEOF
  10425. # The cast to long int works around a bug in the HP C Compiler
  10426. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10427. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10428. # This bug is HP SR number 8606223364.
  10429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  10430. $as_echo_n "checking size of short... " >&6; }
  10431. if ${ac_cv_sizeof_short+:} false; then :
  10432. $as_echo_n "(cached) " >&6
  10433. else
  10434. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  10435. else
  10436. if test "$ac_cv_type_short" = yes; then
  10437. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10438. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10439. as_fn_error 77 "cannot compute sizeof (short)
  10440. See \`config.log' for more details" "$LINENO" 5; }
  10441. else
  10442. ac_cv_sizeof_short=0
  10443. fi
  10444. fi
  10445. fi
  10446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  10447. $as_echo "$ac_cv_sizeof_short" >&6; }
  10448. cat >>confdefs.h <<_ACEOF
  10449. #define SIZEOF_SHORT $ac_cv_sizeof_short
  10450. _ACEOF
  10451. # The cast to long int works around a bug in the HP C Compiler
  10452. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10453. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10454. # This bug is HP SR number 8606223364.
  10455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  10456. $as_echo_n "checking size of int... " >&6; }
  10457. if ${ac_cv_sizeof_int+:} false; then :
  10458. $as_echo_n "(cached) " >&6
  10459. else
  10460. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  10461. else
  10462. if test "$ac_cv_type_int" = yes; then
  10463. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10464. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10465. as_fn_error 77 "cannot compute sizeof (int)
  10466. See \`config.log' for more details" "$LINENO" 5; }
  10467. else
  10468. ac_cv_sizeof_int=0
  10469. fi
  10470. fi
  10471. fi
  10472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  10473. $as_echo "$ac_cv_sizeof_int" >&6; }
  10474. cat >>confdefs.h <<_ACEOF
  10475. #define SIZEOF_INT $ac_cv_sizeof_int
  10476. _ACEOF
  10477. # The cast to long int works around a bug in the HP C Compiler
  10478. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10479. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10480. # This bug is HP SR number 8606223364.
  10481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  10482. $as_echo_n "checking size of long... " >&6; }
  10483. if ${ac_cv_sizeof_long+:} false; then :
  10484. $as_echo_n "(cached) " >&6
  10485. else
  10486. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  10487. else
  10488. if test "$ac_cv_type_long" = yes; then
  10489. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10490. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10491. as_fn_error 77 "cannot compute sizeof (long)
  10492. See \`config.log' for more details" "$LINENO" 5; }
  10493. else
  10494. ac_cv_sizeof_long=0
  10495. fi
  10496. fi
  10497. fi
  10498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  10499. $as_echo "$ac_cv_sizeof_long" >&6; }
  10500. cat >>confdefs.h <<_ACEOF
  10501. #define SIZEOF_LONG $ac_cv_sizeof_long
  10502. _ACEOF
  10503. # The cast to long int works around a bug in the HP C Compiler
  10504. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10505. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10506. # This bug is HP SR number 8606223364.
  10507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  10508. $as_echo_n "checking size of long long... " >&6; }
  10509. if ${ac_cv_sizeof_long_long+:} false; then :
  10510. $as_echo_n "(cached) " >&6
  10511. else
  10512. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  10513. else
  10514. if test "$ac_cv_type_long_long" = yes; then
  10515. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10516. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10517. as_fn_error 77 "cannot compute sizeof (long long)
  10518. See \`config.log' for more details" "$LINENO" 5; }
  10519. else
  10520. ac_cv_sizeof_long_long=0
  10521. fi
  10522. fi
  10523. fi
  10524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  10525. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  10526. cat >>confdefs.h <<_ACEOF
  10527. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  10528. _ACEOF
  10529. case 2 in
  10530. $ac_cv_sizeof_int16_t) SIZE16="int16_t";;
  10531. $ac_cv_sizeof_short) SIZE16="short";;
  10532. $ac_cv_sizeof_int) SIZE16="int";;
  10533. esac
  10534. case 2 in
  10535. $ac_cv_sizeof_uint16_t) USIZE16="uint16_t";;
  10536. $ac_cv_sizeof_short) USIZE16="unsigned short";;
  10537. $ac_cv_sizeof_int) USIZE16="unsigned int";;
  10538. $ac_cv_sizeof_u_int16_t) USIZE16="u_int16_t";;
  10539. esac
  10540. case 4 in
  10541. $ac_cv_sizeof_int32_t) SIZE32="int32_t";;
  10542. $ac_cv_sizeof_short) SIZE32="short";;
  10543. $ac_cv_sizeof_int) SIZE32="int";;
  10544. $ac_cv_sizeof_long) SIZE32="long";;
  10545. esac
  10546. case 4 in
  10547. $ac_cv_sizeof_uint32_t) USIZE32="uint32_t";;
  10548. $ac_cv_sizeof_short) USIZE32="unsigned short";;
  10549. $ac_cv_sizeof_int) USIZE32="unsigned int";;
  10550. $ac_cv_sizeof_long) USIZE32="unsigned long";;
  10551. $ac_cv_sizeof_u_int32_t) USIZE32="u_int32_t";;
  10552. esac
  10553. case 8 in
  10554. $ac_cv_sizeof_int64_t) SIZE64="int64_t";;
  10555. $ac_cv_sizeof_int) SIZE64="int";;
  10556. $ac_cv_sizeof_long) SIZE64="long";;
  10557. $ac_cv_sizeof_long_long) SIZE64="long long";;
  10558. esac
  10559. if test -z "$SIZE16"; then
  10560. as_fn_error $? "No 16 bit type found on this platform!" "$LINENO" 5
  10561. fi
  10562. if test -z "$USIZE16"; then
  10563. as_fn_error $? "No unsigned 16 bit type found on this platform!" "$LINENO" 5
  10564. fi
  10565. if test -z "$SIZE32"; then
  10566. as_fn_error $? "No 32 bit type found on this platform!" "$LINENO" 5
  10567. fi
  10568. if test -z "$USIZE32"; then
  10569. as_fn_error $? "No unsigned 32 bit type found on this platform!" "$LINENO" 5
  10570. fi
  10571. if test -z "$SIZE64"; then
  10572. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No 64 bit type found on this platform!" >&5
  10573. $as_echo "$as_me: WARNING: No 64 bit type found on this platform!" >&2;}
  10574. fi
  10575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  10576. $as_echo_n "checking for working memcmp... " >&6; }
  10577. if ${ac_cv_func_memcmp_working+:} false; then :
  10578. $as_echo_n "(cached) " >&6
  10579. else
  10580. if test "$cross_compiling" = yes; then :
  10581. ac_cv_func_memcmp_working=no
  10582. else
  10583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10584. /* end confdefs.h. */
  10585. $ac_includes_default
  10586. int
  10587. main ()
  10588. {
  10589. /* Some versions of memcmp are not 8-bit clean. */
  10590. char c0 = '\100', c1 = '\200', c2 = '\201';
  10591. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  10592. return 1;
  10593. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  10594. or more and with at least one buffer not starting on a 4-byte boundary.
  10595. William Lewis provided this test program. */
  10596. {
  10597. char foo[21];
  10598. char bar[21];
  10599. int i;
  10600. for (i = 0; i < 4; i++)
  10601. {
  10602. char *a = foo + i;
  10603. char *b = bar + i;
  10604. strcpy (a, "--------01111111");
  10605. strcpy (b, "--------10000000");
  10606. if (memcmp (a, b, 16) >= 0)
  10607. return 1;
  10608. }
  10609. return 0;
  10610. }
  10611. ;
  10612. return 0;
  10613. }
  10614. _ACEOF
  10615. if ac_fn_c_try_run "$LINENO"; then :
  10616. ac_cv_func_memcmp_working=yes
  10617. else
  10618. ac_cv_func_memcmp_working=no
  10619. fi
  10620. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10621. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10622. fi
  10623. fi
  10624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  10625. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  10626. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  10627. *" memcmp.$ac_objext "* ) ;;
  10628. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  10629. ;;
  10630. esac
  10631. ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile doc/libogg/Makefile include/Makefile include/ogg/Makefile include/ogg/config_types.h libogg.spec ogg.pc ogg-uninstalled.pc"
  10632. ac_config_headers="$ac_config_headers config.h"
  10633. cat >confcache <<\_ACEOF
  10634. # This file is a shell script that caches the results of configure
  10635. # tests run on this system so they can be shared between configure
  10636. # scripts and configure runs, see configure's option --config-cache.
  10637. # It is not useful on other systems. If it contains results you don't
  10638. # want to keep, you may remove or edit it.
  10639. #
  10640. # config.status only pays attention to the cache file if you give it
  10641. # the --recheck option to rerun configure.
  10642. #
  10643. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10644. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10645. # following values.
  10646. _ACEOF
  10647. # The following way of writing the cache mishandles newlines in values,
  10648. # but we know of no workaround that is simple, portable, and efficient.
  10649. # So, we kill variables containing newlines.
  10650. # Ultrix sh set writes to stderr and can't be redirected directly,
  10651. # and sets the high bit in the cache file unless we assign to the vars.
  10652. (
  10653. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10654. eval ac_val=\$$ac_var
  10655. case $ac_val in #(
  10656. *${as_nl}*)
  10657. case $ac_var in #(
  10658. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  10659. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  10660. esac
  10661. case $ac_var in #(
  10662. _ | IFS | as_nl) ;; #(
  10663. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  10664. *) { eval $ac_var=; unset $ac_var;} ;;
  10665. esac ;;
  10666. esac
  10667. done
  10668. (set) 2>&1 |
  10669. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10670. *${as_nl}ac_space=\ *)
  10671. # `set' does not quote correctly, so add quotes: double-quote
  10672. # substitution turns \\\\ into \\, and sed turns \\ into \.
  10673. sed -n \
  10674. "s/'/'\\\\''/g;
  10675. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10676. ;; #(
  10677. *)
  10678. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10679. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10680. ;;
  10681. esac |
  10682. sort
  10683. ) |
  10684. sed '
  10685. /^ac_cv_env_/b end
  10686. t clear
  10687. :clear
  10688. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10689. t end
  10690. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10691. :end' >>confcache
  10692. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10693. if test -w "$cache_file"; then
  10694. if test "x$cache_file" != "x/dev/null"; then
  10695. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  10696. $as_echo "$as_me: updating cache $cache_file" >&6;}
  10697. if test ! -f "$cache_file" || test -h "$cache_file"; then
  10698. cat confcache >"$cache_file"
  10699. else
  10700. case $cache_file in #(
  10701. */* | ?:*)
  10702. mv -f confcache "$cache_file"$$ &&
  10703. mv -f "$cache_file"$$ "$cache_file" ;; #(
  10704. *)
  10705. mv -f confcache "$cache_file" ;;
  10706. esac
  10707. fi
  10708. fi
  10709. else
  10710. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  10711. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10712. fi
  10713. fi
  10714. rm -f confcache
  10715. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10716. # Let make expand exec_prefix.
  10717. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10718. DEFS=-DHAVE_CONFIG_H
  10719. ac_libobjs=
  10720. ac_ltlibobjs=
  10721. U=
  10722. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10723. # 1. Remove the extension, and $U if already installed.
  10724. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10725. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  10726. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  10727. # will be set to the directory where LIBOBJS objects are built.
  10728. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10729. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  10730. done
  10731. LIBOBJS=$ac_libobjs
  10732. LTLIBOBJS=$ac_ltlibobjs
  10733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  10734. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  10735. if test -n "$am_sleep_pid"; then
  10736. # Hide warnings about reused PIDs.
  10737. wait $am_sleep_pid 2>/dev/null
  10738. fi
  10739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  10740. $as_echo "done" >&6; }
  10741. if test -n "$EXEEXT"; then
  10742. am__EXEEXT_TRUE=
  10743. am__EXEEXT_FALSE='#'
  10744. else
  10745. am__EXEEXT_TRUE='#'
  10746. am__EXEEXT_FALSE=
  10747. fi
  10748. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  10749. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  10750. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10751. fi
  10752. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10753. as_fn_error $? "conditional \"AMDEP\" was never defined.
  10754. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10755. fi
  10756. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10757. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  10758. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10759. fi
  10760. : "${CONFIG_STATUS=./config.status}"
  10761. ac_write_fail=0
  10762. ac_clean_files_save=$ac_clean_files
  10763. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10764. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  10765. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10766. as_write_fail=0
  10767. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  10768. #! $SHELL
  10769. # Generated by $as_me.
  10770. # Run this file to recreate the current configuration.
  10771. # Compiler output produced by configure, useful for debugging
  10772. # configure, is in config.log if it exists.
  10773. debug=false
  10774. ac_cs_recheck=false
  10775. ac_cs_silent=false
  10776. SHELL=\${CONFIG_SHELL-$SHELL}
  10777. export SHELL
  10778. _ASEOF
  10779. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  10780. ## -------------------- ##
  10781. ## M4sh Initialization. ##
  10782. ## -------------------- ##
  10783. # Be more Bourne compatible
  10784. DUALCASE=1; export DUALCASE # for MKS sh
  10785. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  10786. emulate sh
  10787. NULLCMD=:
  10788. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  10789. # is contrary to our usage. Disable this feature.
  10790. alias -g '${1+"$@"}'='"$@"'
  10791. setopt NO_GLOB_SUBST
  10792. else
  10793. case `(set -o) 2>/dev/null` in #(
  10794. *posix*) :
  10795. set -o posix ;; #(
  10796. *) :
  10797. ;;
  10798. esac
  10799. fi
  10800. as_nl='
  10801. '
  10802. export as_nl
  10803. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  10804. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  10805. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  10806. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  10807. # Prefer a ksh shell builtin over an external printf program on Solaris,
  10808. # but without wasting forks for bash or zsh.
  10809. if test -z "$BASH_VERSION$ZSH_VERSION" \
  10810. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  10811. as_echo='print -r --'
  10812. as_echo_n='print -rn --'
  10813. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  10814. as_echo='printf %s\n'
  10815. as_echo_n='printf %s'
  10816. else
  10817. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  10818. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  10819. as_echo_n='/usr/ucb/echo -n'
  10820. else
  10821. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  10822. as_echo_n_body='eval
  10823. arg=$1;
  10824. case $arg in #(
  10825. *"$as_nl"*)
  10826. expr "X$arg" : "X\\(.*\\)$as_nl";
  10827. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  10828. esac;
  10829. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  10830. '
  10831. export as_echo_n_body
  10832. as_echo_n='sh -c $as_echo_n_body as_echo'
  10833. fi
  10834. export as_echo_body
  10835. as_echo='sh -c $as_echo_body as_echo'
  10836. fi
  10837. # The user is always right.
  10838. if test "${PATH_SEPARATOR+set}" != set; then
  10839. PATH_SEPARATOR=:
  10840. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  10841. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  10842. PATH_SEPARATOR=';'
  10843. }
  10844. fi
  10845. # IFS
  10846. # We need space, tab and new line, in precisely that order. Quoting is
  10847. # there to prevent editors from complaining about space-tab.
  10848. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10849. # splitting by setting IFS to empty value.)
  10850. IFS=" "" $as_nl"
  10851. # Find who we are. Look in the path if we contain no directory separator.
  10852. as_myself=
  10853. case $0 in #((
  10854. *[\\/]* ) as_myself=$0 ;;
  10855. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10856. for as_dir in $PATH
  10857. do
  10858. IFS=$as_save_IFS
  10859. test -z "$as_dir" && as_dir=.
  10860. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10861. done
  10862. IFS=$as_save_IFS
  10863. ;;
  10864. esac
  10865. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10866. # in which case we are not to be found in the path.
  10867. if test "x$as_myself" = x; then
  10868. as_myself=$0
  10869. fi
  10870. if test ! -f "$as_myself"; then
  10871. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10872. exit 1
  10873. fi
  10874. # Unset variables that we do not need and which cause bugs (e.g. in
  10875. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  10876. # suppresses any "Segmentation fault" message there. '((' could
  10877. # trigger a bug in pdksh 5.2.14.
  10878. for as_var in BASH_ENV ENV MAIL MAILPATH
  10879. do eval test x\${$as_var+set} = xset \
  10880. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  10881. done
  10882. PS1='$ '
  10883. PS2='> '
  10884. PS4='+ '
  10885. # NLS nuisances.
  10886. LC_ALL=C
  10887. export LC_ALL
  10888. LANGUAGE=C
  10889. export LANGUAGE
  10890. # CDPATH.
  10891. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10892. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  10893. # ----------------------------------------
  10894. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  10895. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  10896. # script with STATUS, using 1 if that was 0.
  10897. as_fn_error ()
  10898. {
  10899. as_status=$1; test $as_status -eq 0 && as_status=1
  10900. if test "$4"; then
  10901. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10902. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  10903. fi
  10904. $as_echo "$as_me: error: $2" >&2
  10905. as_fn_exit $as_status
  10906. } # as_fn_error
  10907. # as_fn_set_status STATUS
  10908. # -----------------------
  10909. # Set $? to STATUS, without forking.
  10910. as_fn_set_status ()
  10911. {
  10912. return $1
  10913. } # as_fn_set_status
  10914. # as_fn_exit STATUS
  10915. # -----------------
  10916. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  10917. as_fn_exit ()
  10918. {
  10919. set +e
  10920. as_fn_set_status $1
  10921. exit $1
  10922. } # as_fn_exit
  10923. # as_fn_unset VAR
  10924. # ---------------
  10925. # Portably unset VAR.
  10926. as_fn_unset ()
  10927. {
  10928. { eval $1=; unset $1;}
  10929. }
  10930. as_unset=as_fn_unset
  10931. # as_fn_append VAR VALUE
  10932. # ----------------------
  10933. # Append the text in VALUE to the end of the definition contained in VAR. Take
  10934. # advantage of any shell optimizations that allow amortized linear growth over
  10935. # repeated appends, instead of the typical quadratic growth present in naive
  10936. # implementations.
  10937. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  10938. eval 'as_fn_append ()
  10939. {
  10940. eval $1+=\$2
  10941. }'
  10942. else
  10943. as_fn_append ()
  10944. {
  10945. eval $1=\$$1\$2
  10946. }
  10947. fi # as_fn_append
  10948. # as_fn_arith ARG...
  10949. # ------------------
  10950. # Perform arithmetic evaluation on the ARGs, and store the result in the
  10951. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  10952. # must be portable across $(()) and expr.
  10953. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  10954. eval 'as_fn_arith ()
  10955. {
  10956. as_val=$(( $* ))
  10957. }'
  10958. else
  10959. as_fn_arith ()
  10960. {
  10961. as_val=`expr "$@" || test $? -eq 1`
  10962. }
  10963. fi # as_fn_arith
  10964. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10965. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10966. as_expr=expr
  10967. else
  10968. as_expr=false
  10969. fi
  10970. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10971. as_basename=basename
  10972. else
  10973. as_basename=false
  10974. fi
  10975. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10976. as_dirname=dirname
  10977. else
  10978. as_dirname=false
  10979. fi
  10980. as_me=`$as_basename -- "$0" ||
  10981. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10982. X"$0" : 'X\(//\)$' \| \
  10983. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10984. $as_echo X/"$0" |
  10985. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10986. s//\1/
  10987. q
  10988. }
  10989. /^X\/\(\/\/\)$/{
  10990. s//\1/
  10991. q
  10992. }
  10993. /^X\/\(\/\).*/{
  10994. s//\1/
  10995. q
  10996. }
  10997. s/.*/./; q'`
  10998. # Avoid depending upon Character Ranges.
  10999. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11000. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11001. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11002. as_cr_digits='0123456789'
  11003. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11004. ECHO_C= ECHO_N= ECHO_T=
  11005. case `echo -n x` in #(((((
  11006. -n*)
  11007. case `echo 'xy\c'` in
  11008. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11009. xy) ECHO_C='\c';;
  11010. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11011. ECHO_T=' ';;
  11012. esac;;
  11013. *)
  11014. ECHO_N='-n';;
  11015. esac
  11016. rm -f conf$$ conf$$.exe conf$$.file
  11017. if test -d conf$$.dir; then
  11018. rm -f conf$$.dir/conf$$.file
  11019. else
  11020. rm -f conf$$.dir
  11021. mkdir conf$$.dir 2>/dev/null
  11022. fi
  11023. if (echo >conf$$.file) 2>/dev/null; then
  11024. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11025. as_ln_s='ln -s'
  11026. # ... but there are two gotchas:
  11027. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11028. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11029. # In both cases, we have to default to `cp -pR'.
  11030. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11031. as_ln_s='cp -pR'
  11032. elif ln conf$$.file conf$$ 2>/dev/null; then
  11033. as_ln_s=ln
  11034. else
  11035. as_ln_s='cp -pR'
  11036. fi
  11037. else
  11038. as_ln_s='cp -pR'
  11039. fi
  11040. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11041. rmdir conf$$.dir 2>/dev/null
  11042. # as_fn_mkdir_p
  11043. # -------------
  11044. # Create "$as_dir" as a directory, including parents if necessary.
  11045. as_fn_mkdir_p ()
  11046. {
  11047. case $as_dir in #(
  11048. -*) as_dir=./$as_dir;;
  11049. esac
  11050. test -d "$as_dir" || eval $as_mkdir_p || {
  11051. as_dirs=
  11052. while :; do
  11053. case $as_dir in #(
  11054. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11055. *) as_qdir=$as_dir;;
  11056. esac
  11057. as_dirs="'$as_qdir' $as_dirs"
  11058. as_dir=`$as_dirname -- "$as_dir" ||
  11059. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11060. X"$as_dir" : 'X\(//\)[^/]' \| \
  11061. X"$as_dir" : 'X\(//\)$' \| \
  11062. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11063. $as_echo X"$as_dir" |
  11064. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11065. s//\1/
  11066. q
  11067. }
  11068. /^X\(\/\/\)[^/].*/{
  11069. s//\1/
  11070. q
  11071. }
  11072. /^X\(\/\/\)$/{
  11073. s//\1/
  11074. q
  11075. }
  11076. /^X\(\/\).*/{
  11077. s//\1/
  11078. q
  11079. }
  11080. s/.*/./; q'`
  11081. test -d "$as_dir" && break
  11082. done
  11083. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11084. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  11085. } # as_fn_mkdir_p
  11086. if mkdir -p . 2>/dev/null; then
  11087. as_mkdir_p='mkdir -p "$as_dir"'
  11088. else
  11089. test -d ./-p && rmdir ./-p
  11090. as_mkdir_p=false
  11091. fi
  11092. # as_fn_executable_p FILE
  11093. # -----------------------
  11094. # Test if FILE is an executable regular file.
  11095. as_fn_executable_p ()
  11096. {
  11097. test -f "$1" && test -x "$1"
  11098. } # as_fn_executable_p
  11099. as_test_x='test -x'
  11100. as_executable_p=as_fn_executable_p
  11101. # Sed expression to map a string onto a valid CPP name.
  11102. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11103. # Sed expression to map a string onto a valid variable name.
  11104. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11105. exec 6>&1
  11106. ## ----------------------------------- ##
  11107. ## Main body of $CONFIG_STATUS script. ##
  11108. ## ----------------------------------- ##
  11109. _ASEOF
  11110. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  11111. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11112. # Save the log message, to keep $0 and so on meaningful, and to
  11113. # report actual input values of CONFIG_FILES etc. instead of their
  11114. # values after options handling.
  11115. ac_log="
  11116. This file was extended by libogg $as_me 1.3.2, which was
  11117. generated by GNU Autoconf 2.69. Invocation command line was
  11118. CONFIG_FILES = $CONFIG_FILES
  11119. CONFIG_HEADERS = $CONFIG_HEADERS
  11120. CONFIG_LINKS = $CONFIG_LINKS
  11121. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11122. $ $0 $@
  11123. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11124. "
  11125. _ACEOF
  11126. case $ac_config_files in *"
  11127. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  11128. esac
  11129. case $ac_config_headers in *"
  11130. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  11131. esac
  11132. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11133. # Files that config.status was made for.
  11134. config_files="$ac_config_files"
  11135. config_headers="$ac_config_headers"
  11136. config_commands="$ac_config_commands"
  11137. _ACEOF
  11138. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11139. ac_cs_usage="\
  11140. \`$as_me' instantiates files and other configuration actions
  11141. from templates according to the current configuration. Unless the files
  11142. and actions are specified as TAGs, all are instantiated by default.
  11143. Usage: $0 [OPTION]... [TAG]...
  11144. -h, --help print this help, then exit
  11145. -V, --version print version number and configuration settings, then exit
  11146. --config print configuration, then exit
  11147. -q, --quiet, --silent
  11148. do not print progress messages
  11149. -d, --debug don't remove temporary files
  11150. --recheck update $as_me by reconfiguring in the same conditions
  11151. --file=FILE[:TEMPLATE]
  11152. instantiate the configuration file FILE
  11153. --header=FILE[:TEMPLATE]
  11154. instantiate the configuration header FILE
  11155. Configuration files:
  11156. $config_files
  11157. Configuration headers:
  11158. $config_headers
  11159. Configuration commands:
  11160. $config_commands
  11161. Report bugs to <[email protected]>."
  11162. _ACEOF
  11163. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11164. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  11165. ac_cs_version="\\
  11166. libogg config.status 1.3.2
  11167. configured by $0, generated by GNU Autoconf 2.69,
  11168. with options \\"\$ac_cs_config\\"
  11169. Copyright (C) 2012 Free Software Foundation, Inc.
  11170. This config.status script is free software; the Free Software Foundation
  11171. gives unlimited permission to copy, distribute and modify it."
  11172. ac_pwd='$ac_pwd'
  11173. srcdir='$srcdir'
  11174. INSTALL='$INSTALL'
  11175. MKDIR_P='$MKDIR_P'
  11176. AWK='$AWK'
  11177. test -n "\$AWK" || AWK=awk
  11178. _ACEOF
  11179. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11180. # The default lists apply if the user does not specify any file.
  11181. ac_need_defaults=:
  11182. while test $# != 0
  11183. do
  11184. case $1 in
  11185. --*=?*)
  11186. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11187. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11188. ac_shift=:
  11189. ;;
  11190. --*=)
  11191. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11192. ac_optarg=
  11193. ac_shift=:
  11194. ;;
  11195. *)
  11196. ac_option=$1
  11197. ac_optarg=$2
  11198. ac_shift=shift
  11199. ;;
  11200. esac
  11201. case $ac_option in
  11202. # Handling of the options.
  11203. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11204. ac_cs_recheck=: ;;
  11205. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11206. $as_echo "$ac_cs_version"; exit ;;
  11207. --config | --confi | --conf | --con | --co | --c )
  11208. $as_echo "$ac_cs_config"; exit ;;
  11209. --debug | --debu | --deb | --de | --d | -d )
  11210. debug=: ;;
  11211. --file | --fil | --fi | --f )
  11212. $ac_shift
  11213. case $ac_optarg in
  11214. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11215. '') as_fn_error $? "missing file argument" ;;
  11216. esac
  11217. as_fn_append CONFIG_FILES " '$ac_optarg'"
  11218. ac_need_defaults=false;;
  11219. --header | --heade | --head | --hea )
  11220. $ac_shift
  11221. case $ac_optarg in
  11222. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11223. esac
  11224. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  11225. ac_need_defaults=false;;
  11226. --he | --h)
  11227. # Conflict between --help and --header
  11228. as_fn_error $? "ambiguous option: \`$1'
  11229. Try \`$0 --help' for more information.";;
  11230. --help | --hel | -h )
  11231. $as_echo "$ac_cs_usage"; exit ;;
  11232. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11233. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11234. ac_cs_silent=: ;;
  11235. # This is an error.
  11236. -*) as_fn_error $? "unrecognized option: \`$1'
  11237. Try \`$0 --help' for more information." ;;
  11238. *) as_fn_append ac_config_targets " $1"
  11239. ac_need_defaults=false ;;
  11240. esac
  11241. shift
  11242. done
  11243. ac_configure_extra_args=
  11244. if $ac_cs_silent; then
  11245. exec 6>/dev/null
  11246. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11247. fi
  11248. _ACEOF
  11249. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11250. if \$ac_cs_recheck; then
  11251. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11252. shift
  11253. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11254. CONFIG_SHELL='$SHELL'
  11255. export CONFIG_SHELL
  11256. exec "\$@"
  11257. fi
  11258. _ACEOF
  11259. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11260. exec 5>>config.log
  11261. {
  11262. echo
  11263. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11264. ## Running $as_me. ##
  11265. _ASBOX
  11266. $as_echo "$ac_log"
  11267. } >&5
  11268. _ACEOF
  11269. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11270. #
  11271. # INIT-COMMANDS
  11272. #
  11273. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  11274. # The HP-UX ksh and POSIX shell print the target directory to stdout
  11275. # if CDPATH is set.
  11276. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11277. sed_quote_subst='$sed_quote_subst'
  11278. double_quote_subst='$double_quote_subst'
  11279. delay_variable_subst='$delay_variable_subst'
  11280. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  11281. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  11282. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  11283. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  11284. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  11285. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  11286. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  11287. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  11288. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  11289. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  11290. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  11291. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  11292. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  11293. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  11294. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  11295. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  11296. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  11297. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  11298. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  11299. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  11300. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  11301. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  11302. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  11303. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  11304. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  11305. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  11306. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  11307. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  11308. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  11309. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  11310. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  11311. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  11312. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  11313. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  11314. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  11315. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  11316. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  11317. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  11318. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  11319. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  11320. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  11321. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  11322. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  11323. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  11324. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  11325. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11326. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11327. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  11328. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  11329. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  11330. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  11331. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  11332. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  11333. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  11334. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  11335. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  11336. 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"`'
  11337. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  11338. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  11339. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  11340. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  11341. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  11342. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  11343. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  11344. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  11345. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  11346. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  11347. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  11348. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  11349. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  11350. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  11351. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  11352. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  11353. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  11354. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  11355. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11356. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  11357. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  11358. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  11359. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  11360. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  11361. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  11362. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11363. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  11364. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11365. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  11366. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11367. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  11368. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11369. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11370. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  11371. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  11372. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  11373. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  11374. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  11375. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11376. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  11377. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  11378. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  11379. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  11380. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  11381. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  11382. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  11383. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  11384. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  11385. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  11386. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  11387. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  11388. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  11389. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  11390. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  11391. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11392. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  11393. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  11394. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  11395. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  11396. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  11397. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11398. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11399. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  11400. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  11401. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  11402. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  11403. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  11404. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  11405. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  11406. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  11407. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  11408. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  11409. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  11410. LTCC='$LTCC'
  11411. LTCFLAGS='$LTCFLAGS'
  11412. compiler='$compiler_DEFAULT'
  11413. # A function that is used when there is no print builtin or printf.
  11414. func_fallback_echo ()
  11415. {
  11416. eval 'cat <<_LTECHO_EOF
  11417. \$1
  11418. _LTECHO_EOF'
  11419. }
  11420. # Quote evaled strings.
  11421. for var in SHELL \
  11422. ECHO \
  11423. PATH_SEPARATOR \
  11424. SED \
  11425. GREP \
  11426. EGREP \
  11427. FGREP \
  11428. LD \
  11429. NM \
  11430. LN_S \
  11431. lt_SP2NL \
  11432. lt_NL2SP \
  11433. reload_flag \
  11434. OBJDUMP \
  11435. deplibs_check_method \
  11436. file_magic_cmd \
  11437. file_magic_glob \
  11438. want_nocaseglob \
  11439. DLLTOOL \
  11440. sharedlib_from_linklib_cmd \
  11441. AR \
  11442. AR_FLAGS \
  11443. archiver_list_spec \
  11444. STRIP \
  11445. RANLIB \
  11446. CC \
  11447. CFLAGS \
  11448. compiler \
  11449. lt_cv_sys_global_symbol_pipe \
  11450. lt_cv_sys_global_symbol_to_cdecl \
  11451. lt_cv_sys_global_symbol_to_c_name_address \
  11452. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  11453. nm_file_list_spec \
  11454. lt_prog_compiler_no_builtin_flag \
  11455. lt_prog_compiler_pic \
  11456. lt_prog_compiler_wl \
  11457. lt_prog_compiler_static \
  11458. lt_cv_prog_compiler_c_o \
  11459. need_locks \
  11460. MANIFEST_TOOL \
  11461. DSYMUTIL \
  11462. NMEDIT \
  11463. LIPO \
  11464. OTOOL \
  11465. OTOOL64 \
  11466. shrext_cmds \
  11467. export_dynamic_flag_spec \
  11468. whole_archive_flag_spec \
  11469. compiler_needs_object \
  11470. with_gnu_ld \
  11471. allow_undefined_flag \
  11472. no_undefined_flag \
  11473. hardcode_libdir_flag_spec \
  11474. hardcode_libdir_separator \
  11475. exclude_expsyms \
  11476. include_expsyms \
  11477. file_list_spec \
  11478. variables_saved_for_relink \
  11479. libname_spec \
  11480. library_names_spec \
  11481. soname_spec \
  11482. install_override_mode \
  11483. finish_eval \
  11484. old_striplib \
  11485. striplib; do
  11486. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11487. *[\\\\\\\`\\"\\\$]*)
  11488. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  11489. ;;
  11490. *)
  11491. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11492. ;;
  11493. esac
  11494. done
  11495. # Double-quote double-evaled strings.
  11496. for var in reload_cmds \
  11497. old_postinstall_cmds \
  11498. old_postuninstall_cmds \
  11499. old_archive_cmds \
  11500. extract_expsyms_cmds \
  11501. old_archive_from_new_cmds \
  11502. old_archive_from_expsyms_cmds \
  11503. archive_cmds \
  11504. archive_expsym_cmds \
  11505. module_cmds \
  11506. module_expsym_cmds \
  11507. export_symbols_cmds \
  11508. prelink_cmds \
  11509. postlink_cmds \
  11510. postinstall_cmds \
  11511. postuninstall_cmds \
  11512. finish_cmds \
  11513. sys_lib_search_path_spec \
  11514. sys_lib_dlsearch_path_spec; do
  11515. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11516. *[\\\\\\\`\\"\\\$]*)
  11517. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  11518. ;;
  11519. *)
  11520. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11521. ;;
  11522. esac
  11523. done
  11524. ac_aux_dir='$ac_aux_dir'
  11525. xsi_shell='$xsi_shell'
  11526. lt_shell_append='$lt_shell_append'
  11527. # See if we are running on zsh, and set the options which allow our
  11528. # commands through without removal of \ escapes INIT.
  11529. if test -n "\${ZSH_VERSION+set}" ; then
  11530. setopt NO_GLOB_SUBST
  11531. fi
  11532. PACKAGE='$PACKAGE'
  11533. VERSION='$VERSION'
  11534. TIMESTAMP='$TIMESTAMP'
  11535. RM='$RM'
  11536. ofile='$ofile'
  11537. _ACEOF
  11538. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11539. # Handling of arguments.
  11540. for ac_config_target in $ac_config_targets
  11541. do
  11542. case $ac_config_target in
  11543. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  11544. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  11545. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11546. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11547. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  11548. "doc/libogg/Makefile") CONFIG_FILES="$CONFIG_FILES doc/libogg/Makefile" ;;
  11549. "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  11550. "include/ogg/Makefile") CONFIG_FILES="$CONFIG_FILES include/ogg/Makefile" ;;
  11551. "include/ogg/config_types.h") CONFIG_FILES="$CONFIG_FILES include/ogg/config_types.h" ;;
  11552. "libogg.spec") CONFIG_FILES="$CONFIG_FILES libogg.spec" ;;
  11553. "ogg.pc") CONFIG_FILES="$CONFIG_FILES ogg.pc" ;;
  11554. "ogg-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES ogg-uninstalled.pc" ;;
  11555. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11556. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  11557. esac
  11558. done
  11559. # If the user did not use the arguments to specify the items to instantiate,
  11560. # then the envvar interface is used. Set only those that are not.
  11561. # We use the long form for the default assignment because of an extremely
  11562. # bizarre bug on SunOS 4.1.3.
  11563. if $ac_need_defaults; then
  11564. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11565. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11566. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11567. fi
  11568. # Have a temporary directory for convenience. Make it in the build tree
  11569. # simply because there is no reason against having it here, and in addition,
  11570. # creating and moving files from /tmp can sometimes cause problems.
  11571. # Hook for its removal unless debugging.
  11572. # Note that there is a small window in which the directory will not be cleaned:
  11573. # after its creation but before its name has been assigned to `$tmp'.
  11574. $debug ||
  11575. {
  11576. tmp= ac_tmp=
  11577. trap 'exit_status=$?
  11578. : "${ac_tmp:=$tmp}"
  11579. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  11580. ' 0
  11581. trap 'as_fn_exit 1' 1 2 13 15
  11582. }
  11583. # Create a (secure) tmp directory for tmp files.
  11584. {
  11585. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11586. test -d "$tmp"
  11587. } ||
  11588. {
  11589. tmp=./conf$$-$RANDOM
  11590. (umask 077 && mkdir "$tmp")
  11591. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  11592. ac_tmp=$tmp
  11593. # Set up the scripts for CONFIG_FILES section.
  11594. # No need to generate them if there are no CONFIG_FILES.
  11595. # This happens for instance with `./config.status config.h'.
  11596. if test -n "$CONFIG_FILES"; then
  11597. ac_cr=`echo X | tr X '\015'`
  11598. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  11599. # But we know of no other shell where ac_cr would be empty at this
  11600. # point, so we can use a bashism as a fallback.
  11601. if test "x$ac_cr" = x; then
  11602. eval ac_cr=\$\'\\r\'
  11603. fi
  11604. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  11605. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  11606. ac_cs_awk_cr='\\r'
  11607. else
  11608. ac_cs_awk_cr=$ac_cr
  11609. fi
  11610. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  11611. _ACEOF
  11612. {
  11613. echo "cat >conf$$subs.awk <<_ACEOF" &&
  11614. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  11615. echo "_ACEOF"
  11616. } >conf$$subs.sh ||
  11617. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11618. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  11619. ac_delim='%!_!# '
  11620. for ac_last_try in false false false false false :; do
  11621. . ./conf$$subs.sh ||
  11622. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11623. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  11624. if test $ac_delim_n = $ac_delim_num; then
  11625. break
  11626. elif $ac_last_try; then
  11627. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11628. else
  11629. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11630. fi
  11631. done
  11632. rm -f conf$$subs.sh
  11633. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11634. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  11635. _ACEOF
  11636. sed -n '
  11637. h
  11638. s/^/S["/; s/!.*/"]=/
  11639. p
  11640. g
  11641. s/^[^!]*!//
  11642. :repl
  11643. t repl
  11644. s/'"$ac_delim"'$//
  11645. t delim
  11646. :nl
  11647. h
  11648. s/\(.\{148\}\)..*/\1/
  11649. t more1
  11650. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  11651. p
  11652. n
  11653. b repl
  11654. :more1
  11655. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11656. p
  11657. g
  11658. s/.\{148\}//
  11659. t nl
  11660. :delim
  11661. h
  11662. s/\(.\{148\}\)..*/\1/
  11663. t more2
  11664. s/["\\]/\\&/g; s/^/"/; s/$/"/
  11665. p
  11666. b
  11667. :more2
  11668. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11669. p
  11670. g
  11671. s/.\{148\}//
  11672. t delim
  11673. ' <conf$$subs.awk | sed '
  11674. /^[^""]/{
  11675. N
  11676. s/\n//
  11677. }
  11678. ' >>$CONFIG_STATUS || ac_write_fail=1
  11679. rm -f conf$$subs.awk
  11680. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11681. _ACAWK
  11682. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  11683. for (key in S) S_is_set[key] = 1
  11684. FS = ""
  11685. }
  11686. {
  11687. line = $ 0
  11688. nfields = split(line, field, "@")
  11689. substed = 0
  11690. len = length(field[1])
  11691. for (i = 2; i < nfields; i++) {
  11692. key = field[i]
  11693. keylen = length(key)
  11694. if (S_is_set[key]) {
  11695. value = S[key]
  11696. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  11697. len += length(value) + length(field[++i])
  11698. substed = 1
  11699. } else
  11700. len += 1 + keylen
  11701. }
  11702. print line
  11703. }
  11704. _ACAWK
  11705. _ACEOF
  11706. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11707. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  11708. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  11709. else
  11710. cat
  11711. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  11712. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  11713. _ACEOF
  11714. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  11715. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  11716. # trailing colons and then remove the whole line if VPATH becomes empty
  11717. # (actually we leave an empty line to preserve line numbers).
  11718. if test "x$srcdir" = x.; then
  11719. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  11720. h
  11721. s///
  11722. s/^/:/
  11723. s/[ ]*$/:/
  11724. s/:\$(srcdir):/:/g
  11725. s/:\${srcdir}:/:/g
  11726. s/:@srcdir@:/:/g
  11727. s/^:*//
  11728. s/:*$//
  11729. x
  11730. s/\(=[ ]*\).*/\1/
  11731. G
  11732. s/\n//
  11733. s/^[^=]*=[ ]*$//
  11734. }'
  11735. fi
  11736. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11737. fi # test -n "$CONFIG_FILES"
  11738. # Set up the scripts for CONFIG_HEADERS section.
  11739. # No need to generate them if there are no CONFIG_HEADERS.
  11740. # This happens for instance with `./config.status Makefile'.
  11741. if test -n "$CONFIG_HEADERS"; then
  11742. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  11743. BEGIN {
  11744. _ACEOF
  11745. # Transform confdefs.h into an awk script `defines.awk', embedded as
  11746. # here-document in config.status, that substitutes the proper values into
  11747. # config.h.in to produce config.h.
  11748. # Create a delimiter string that does not exist in confdefs.h, to ease
  11749. # handling of long lines.
  11750. ac_delim='%!_!# '
  11751. for ac_last_try in false false :; do
  11752. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  11753. if test -z "$ac_tt"; then
  11754. break
  11755. elif $ac_last_try; then
  11756. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  11757. else
  11758. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11759. fi
  11760. done
  11761. # For the awk script, D is an array of macro values keyed by name,
  11762. # likewise P contains macro parameters if any. Preserve backslash
  11763. # newline sequences.
  11764. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  11765. sed -n '
  11766. s/.\{148\}/&'"$ac_delim"'/g
  11767. t rset
  11768. :rset
  11769. s/^[ ]*#[ ]*define[ ][ ]*/ /
  11770. t def
  11771. d
  11772. :def
  11773. s/\\$//
  11774. t bsnl
  11775. s/["\\]/\\&/g
  11776. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11777. D["\1"]=" \3"/p
  11778. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  11779. d
  11780. :bsnl
  11781. s/["\\]/\\&/g
  11782. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11783. D["\1"]=" \3\\\\\\n"\\/p
  11784. t cont
  11785. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  11786. t cont
  11787. d
  11788. :cont
  11789. n
  11790. s/.\{148\}/&'"$ac_delim"'/g
  11791. t clear
  11792. :clear
  11793. s/\\$//
  11794. t bsnlc
  11795. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  11796. d
  11797. :bsnlc
  11798. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  11799. b cont
  11800. ' <confdefs.h | sed '
  11801. s/'"$ac_delim"'/"\\\
  11802. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  11803. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11804. for (key in D) D_is_set[key] = 1
  11805. FS = ""
  11806. }
  11807. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  11808. line = \$ 0
  11809. split(line, arg, " ")
  11810. if (arg[1] == "#") {
  11811. defundef = arg[2]
  11812. mac1 = arg[3]
  11813. } else {
  11814. defundef = substr(arg[1], 2)
  11815. mac1 = arg[2]
  11816. }
  11817. split(mac1, mac2, "(") #)
  11818. macro = mac2[1]
  11819. prefix = substr(line, 1, index(line, defundef) - 1)
  11820. if (D_is_set[macro]) {
  11821. # Preserve the white space surrounding the "#".
  11822. print prefix "define", macro P[macro] D[macro]
  11823. next
  11824. } else {
  11825. # Replace #undef with comments. This is necessary, for example,
  11826. # in the case of _POSIX_SOURCE, which is predefined and required
  11827. # on some systems where configure will not decide to define it.
  11828. if (defundef == "undef") {
  11829. print "/*", prefix defundef, macro, "*/"
  11830. next
  11831. }
  11832. }
  11833. }
  11834. { print }
  11835. _ACAWK
  11836. _ACEOF
  11837. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11838. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  11839. fi # test -n "$CONFIG_HEADERS"
  11840. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  11841. shift
  11842. for ac_tag
  11843. do
  11844. case $ac_tag in
  11845. :[FHLC]) ac_mode=$ac_tag; continue;;
  11846. esac
  11847. case $ac_mode$ac_tag in
  11848. :[FHL]*:*);;
  11849. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  11850. :[FH]-) ac_tag=-:-;;
  11851. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11852. esac
  11853. ac_save_IFS=$IFS
  11854. IFS=:
  11855. set x $ac_tag
  11856. IFS=$ac_save_IFS
  11857. shift
  11858. ac_file=$1
  11859. shift
  11860. case $ac_mode in
  11861. :L) ac_source=$1;;
  11862. :[FH])
  11863. ac_file_inputs=
  11864. for ac_f
  11865. do
  11866. case $ac_f in
  11867. -) ac_f="$ac_tmp/stdin";;
  11868. *) # Look for the file first in the build tree, then in the source tree
  11869. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11870. # because $ac_f cannot contain `:'.
  11871. test -f "$ac_f" ||
  11872. case $ac_f in
  11873. [\\/$]*) false;;
  11874. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11875. esac ||
  11876. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  11877. esac
  11878. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  11879. as_fn_append ac_file_inputs " '$ac_f'"
  11880. done
  11881. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11882. # use $as_me), people would be surprised to read:
  11883. # /* config.h. Generated by config.status. */
  11884. configure_input='Generated from '`
  11885. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  11886. `' by configure.'
  11887. if test x"$ac_file" != x-; then
  11888. configure_input="$ac_file. $configure_input"
  11889. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  11890. $as_echo "$as_me: creating $ac_file" >&6;}
  11891. fi
  11892. # Neutralize special characters interpreted by sed in replacement strings.
  11893. case $configure_input in #(
  11894. *\&* | *\|* | *\\* )
  11895. ac_sed_conf_input=`$as_echo "$configure_input" |
  11896. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  11897. *) ac_sed_conf_input=$configure_input;;
  11898. esac
  11899. case $ac_tag in
  11900. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  11901. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  11902. esac
  11903. ;;
  11904. esac
  11905. ac_dir=`$as_dirname -- "$ac_file" ||
  11906. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11907. X"$ac_file" : 'X\(//\)[^/]' \| \
  11908. X"$ac_file" : 'X\(//\)$' \| \
  11909. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11910. $as_echo X"$ac_file" |
  11911. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11912. s//\1/
  11913. q
  11914. }
  11915. /^X\(\/\/\)[^/].*/{
  11916. s//\1/
  11917. q
  11918. }
  11919. /^X\(\/\/\)$/{
  11920. s//\1/
  11921. q
  11922. }
  11923. /^X\(\/\).*/{
  11924. s//\1/
  11925. q
  11926. }
  11927. s/.*/./; q'`
  11928. as_dir="$ac_dir"; as_fn_mkdir_p
  11929. ac_builddir=.
  11930. case "$ac_dir" in
  11931. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11932. *)
  11933. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  11934. # A ".." for each directory in $ac_dir_suffix.
  11935. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  11936. case $ac_top_builddir_sub in
  11937. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11938. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11939. esac ;;
  11940. esac
  11941. ac_abs_top_builddir=$ac_pwd
  11942. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11943. # for backward compatibility:
  11944. ac_top_builddir=$ac_top_build_prefix
  11945. case $srcdir in
  11946. .) # We are building in place.
  11947. ac_srcdir=.
  11948. ac_top_srcdir=$ac_top_builddir_sub
  11949. ac_abs_top_srcdir=$ac_pwd ;;
  11950. [\\/]* | ?:[\\/]* ) # Absolute name.
  11951. ac_srcdir=$srcdir$ac_dir_suffix;
  11952. ac_top_srcdir=$srcdir
  11953. ac_abs_top_srcdir=$srcdir ;;
  11954. *) # Relative name.
  11955. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  11956. ac_top_srcdir=$ac_top_build_prefix$srcdir
  11957. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  11958. esac
  11959. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  11960. case $ac_mode in
  11961. :F)
  11962. #
  11963. # CONFIG_FILE
  11964. #
  11965. case $INSTALL in
  11966. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11967. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  11968. esac
  11969. ac_MKDIR_P=$MKDIR_P
  11970. case $MKDIR_P in
  11971. [\\/$]* | ?:[\\/]* ) ;;
  11972. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  11973. esac
  11974. _ACEOF
  11975. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11976. # If the template does not know about datarootdir, expand it.
  11977. # FIXME: This hack should be removed a few years after 2.60.
  11978. ac_datarootdir_hack=; ac_datarootdir_seen=
  11979. ac_sed_dataroot='
  11980. /datarootdir/ {
  11981. p
  11982. q
  11983. }
  11984. /@datadir@/p
  11985. /@docdir@/p
  11986. /@infodir@/p
  11987. /@localedir@/p
  11988. /@mandir@/p'
  11989. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  11990. *datarootdir*) ac_datarootdir_seen=yes;;
  11991. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  11992. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  11993. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  11994. _ACEOF
  11995. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11996. ac_datarootdir_hack='
  11997. s&@datadir@&$datadir&g
  11998. s&@docdir@&$docdir&g
  11999. s&@infodir@&$infodir&g
  12000. s&@localedir@&$localedir&g
  12001. s&@mandir@&$mandir&g
  12002. s&\\\${datarootdir}&$datarootdir&g' ;;
  12003. esac
  12004. _ACEOF
  12005. # Neutralize VPATH when `$srcdir' = `.'.
  12006. # Shell code in configure.ac might set extrasub.
  12007. # FIXME: do we really want to maintain this feature?
  12008. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12009. ac_sed_extra="$ac_vpsub
  12010. $extrasub
  12011. _ACEOF
  12012. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12013. :t
  12014. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12015. s|@configure_input@|$ac_sed_conf_input|;t t
  12016. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12017. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12018. s&@srcdir@&$ac_srcdir&;t t
  12019. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12020. s&@top_srcdir@&$ac_top_srcdir&;t t
  12021. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12022. s&@builddir@&$ac_builddir&;t t
  12023. s&@abs_builddir@&$ac_abs_builddir&;t t
  12024. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12025. s&@INSTALL@&$ac_INSTALL&;t t
  12026. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  12027. $ac_datarootdir_hack
  12028. "
  12029. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  12030. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12031. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12032. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  12033. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  12034. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  12035. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12036. which seems to be undefined. Please make sure it is defined" >&5
  12037. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12038. which seems to be undefined. Please make sure it is defined" >&2;}
  12039. rm -f "$ac_tmp/stdin"
  12040. case $ac_file in
  12041. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  12042. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  12043. esac \
  12044. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12045. ;;
  12046. :H)
  12047. #
  12048. # CONFIG_HEADER
  12049. #
  12050. if test x"$ac_file" != x-; then
  12051. {
  12052. $as_echo "/* $configure_input */" \
  12053. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  12054. } >"$ac_tmp/config.h" \
  12055. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12056. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  12057. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  12058. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  12059. else
  12060. rm -f "$ac_file"
  12061. mv "$ac_tmp/config.h" "$ac_file" \
  12062. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12063. fi
  12064. else
  12065. $as_echo "/* $configure_input */" \
  12066. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  12067. || as_fn_error $? "could not create -" "$LINENO" 5
  12068. fi
  12069. # Compute "$ac_file"'s index in $config_headers.
  12070. _am_arg="$ac_file"
  12071. _am_stamp_count=1
  12072. for _am_header in $config_headers :; do
  12073. case $_am_header in
  12074. $_am_arg | $_am_arg:* )
  12075. break ;;
  12076. * )
  12077. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  12078. esac
  12079. done
  12080. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  12081. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12082. X"$_am_arg" : 'X\(//\)[^/]' \| \
  12083. X"$_am_arg" : 'X\(//\)$' \| \
  12084. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  12085. $as_echo X"$_am_arg" |
  12086. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12087. s//\1/
  12088. q
  12089. }
  12090. /^X\(\/\/\)[^/].*/{
  12091. s//\1/
  12092. q
  12093. }
  12094. /^X\(\/\/\)$/{
  12095. s//\1/
  12096. q
  12097. }
  12098. /^X\(\/\).*/{
  12099. s//\1/
  12100. q
  12101. }
  12102. s/.*/./; q'`/stamp-h$_am_stamp_count
  12103. ;;
  12104. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  12105. $as_echo "$as_me: executing $ac_file commands" >&6;}
  12106. ;;
  12107. esac
  12108. case $ac_file$ac_mode in
  12109. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  12110. # Older Autoconf quotes --file arguments for eval, but not when files
  12111. # are listed without --file. Let's play safe and only enable the eval
  12112. # if we detect the quoting.
  12113. case $CONFIG_FILES in
  12114. *\'*) eval set x "$CONFIG_FILES" ;;
  12115. *) set x $CONFIG_FILES ;;
  12116. esac
  12117. shift
  12118. for mf
  12119. do
  12120. # Strip MF so we end up with the name of the file.
  12121. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12122. # Check whether this is an Automake generated Makefile or not.
  12123. # We used to match only the files named 'Makefile.in', but
  12124. # some people rename them; so instead we look at the file content.
  12125. # Grep'ing the first line is not enough: some people post-process
  12126. # each Makefile.in and add a new line on top of each file to say so.
  12127. # Grep'ing the whole file is not good either: AIX grep has a line
  12128. # limit of 2048, but all sed's we know have understand at least 4000.
  12129. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  12130. dirpart=`$as_dirname -- "$mf" ||
  12131. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12132. X"$mf" : 'X\(//\)[^/]' \| \
  12133. X"$mf" : 'X\(//\)$' \| \
  12134. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12135. $as_echo X"$mf" |
  12136. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12137. s//\1/
  12138. q
  12139. }
  12140. /^X\(\/\/\)[^/].*/{
  12141. s//\1/
  12142. q
  12143. }
  12144. /^X\(\/\/\)$/{
  12145. s//\1/
  12146. q
  12147. }
  12148. /^X\(\/\).*/{
  12149. s//\1/
  12150. q
  12151. }
  12152. s/.*/./; q'`
  12153. else
  12154. continue
  12155. fi
  12156. # Extract the definition of DEPDIR, am__include, and am__quote
  12157. # from the Makefile without running 'make'.
  12158. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  12159. test -z "$DEPDIR" && continue
  12160. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  12161. test -z "$am__include" && continue
  12162. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  12163. # Find all dependency output files, they are included files with
  12164. # $(DEPDIR) in their names. We invoke sed twice because it is the
  12165. # simplest approach to changing $(DEPDIR) to its actual value in the
  12166. # expansion.
  12167. for file in `sed -n "
  12168. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  12169. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  12170. # Make sure the directory exists.
  12171. test -f "$dirpart/$file" && continue
  12172. fdir=`$as_dirname -- "$file" ||
  12173. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12174. X"$file" : 'X\(//\)[^/]' \| \
  12175. X"$file" : 'X\(//\)$' \| \
  12176. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  12177. $as_echo X"$file" |
  12178. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12179. s//\1/
  12180. q
  12181. }
  12182. /^X\(\/\/\)[^/].*/{
  12183. s//\1/
  12184. q
  12185. }
  12186. /^X\(\/\/\)$/{
  12187. s//\1/
  12188. q
  12189. }
  12190. /^X\(\/\).*/{
  12191. s//\1/
  12192. q
  12193. }
  12194. s/.*/./; q'`
  12195. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  12196. # echo "creating $dirpart/$file"
  12197. echo '# dummy' > "$dirpart/$file"
  12198. done
  12199. done
  12200. }
  12201. ;;
  12202. "libtool":C)
  12203. # See if we are running on zsh, and set the options which allow our
  12204. # commands through without removal of \ escapes.
  12205. if test -n "${ZSH_VERSION+set}" ; then
  12206. setopt NO_GLOB_SUBST
  12207. fi
  12208. cfgfile="${ofile}T"
  12209. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  12210. $RM "$cfgfile"
  12211. cat <<_LT_EOF >> "$cfgfile"
  12212. #! $SHELL
  12213. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  12214. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  12215. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12216. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  12217. #
  12218. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  12219. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  12220. # Foundation, Inc.
  12221. # Written by Gordon Matzigkeit, 1996
  12222. #
  12223. # This file is part of GNU Libtool.
  12224. #
  12225. # GNU Libtool is free software; you can redistribute it and/or
  12226. # modify it under the terms of the GNU General Public License as
  12227. # published by the Free Software Foundation; either version 2 of
  12228. # the License, or (at your option) any later version.
  12229. #
  12230. # As a special exception to the GNU General Public License,
  12231. # if you distribute this file as part of a program or library that
  12232. # is built using GNU Libtool, you may include this file under the
  12233. # same distribution terms that you use for the rest of that program.
  12234. #
  12235. # GNU Libtool is distributed in the hope that it will be useful,
  12236. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12237. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12238. # GNU General Public License for more details.
  12239. #
  12240. # You should have received a copy of the GNU General Public License
  12241. # along with GNU Libtool; see the file COPYING. If not, a copy
  12242. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  12243. # obtained by writing to the Free Software Foundation, Inc.,
  12244. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  12245. # The names of the tagged configurations supported by this script.
  12246. available_tags=""
  12247. # ### BEGIN LIBTOOL CONFIG
  12248. # Which release of libtool.m4 was used?
  12249. macro_version=$macro_version
  12250. macro_revision=$macro_revision
  12251. # Whether or not to build shared libraries.
  12252. build_libtool_libs=$enable_shared
  12253. # Whether or not to build static libraries.
  12254. build_old_libs=$enable_static
  12255. # What type of objects to build.
  12256. pic_mode=$pic_mode
  12257. # Whether or not to optimize for fast installation.
  12258. fast_install=$enable_fast_install
  12259. # Shell to use when invoking shell scripts.
  12260. SHELL=$lt_SHELL
  12261. # An echo program that protects backslashes.
  12262. ECHO=$lt_ECHO
  12263. # The PATH separator for the build system.
  12264. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  12265. # The host system.
  12266. host_alias=$host_alias
  12267. host=$host
  12268. host_os=$host_os
  12269. # The build system.
  12270. build_alias=$build_alias
  12271. build=$build
  12272. build_os=$build_os
  12273. # A sed program that does not truncate output.
  12274. SED=$lt_SED
  12275. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  12276. Xsed="\$SED -e 1s/^X//"
  12277. # A grep program that handles long lines.
  12278. GREP=$lt_GREP
  12279. # An ERE matcher.
  12280. EGREP=$lt_EGREP
  12281. # A literal string matcher.
  12282. FGREP=$lt_FGREP
  12283. # A BSD- or MS-compatible name lister.
  12284. NM=$lt_NM
  12285. # Whether we need soft or hard links.
  12286. LN_S=$lt_LN_S
  12287. # What is the maximum length of a command?
  12288. max_cmd_len=$max_cmd_len
  12289. # Object file suffix (normally "o").
  12290. objext=$ac_objext
  12291. # Executable file suffix (normally "").
  12292. exeext=$exeext
  12293. # whether the shell understands "unset".
  12294. lt_unset=$lt_unset
  12295. # turn spaces into newlines.
  12296. SP2NL=$lt_lt_SP2NL
  12297. # turn newlines into spaces.
  12298. NL2SP=$lt_lt_NL2SP
  12299. # convert \$build file names to \$host format.
  12300. to_host_file_cmd=$lt_cv_to_host_file_cmd
  12301. # convert \$build files to toolchain format.
  12302. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  12303. # An object symbol dumper.
  12304. OBJDUMP=$lt_OBJDUMP
  12305. # Method to check whether dependent libraries are shared objects.
  12306. deplibs_check_method=$lt_deplibs_check_method
  12307. # Command to use when deplibs_check_method = "file_magic".
  12308. file_magic_cmd=$lt_file_magic_cmd
  12309. # How to find potential files when deplibs_check_method = "file_magic".
  12310. file_magic_glob=$lt_file_magic_glob
  12311. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  12312. want_nocaseglob=$lt_want_nocaseglob
  12313. # DLL creation program.
  12314. DLLTOOL=$lt_DLLTOOL
  12315. # Command to associate shared and link libraries.
  12316. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  12317. # The archiver.
  12318. AR=$lt_AR
  12319. # Flags to create an archive.
  12320. AR_FLAGS=$lt_AR_FLAGS
  12321. # How to feed a file listing to the archiver.
  12322. archiver_list_spec=$lt_archiver_list_spec
  12323. # A symbol stripping program.
  12324. STRIP=$lt_STRIP
  12325. # Commands used to install an old-style archive.
  12326. RANLIB=$lt_RANLIB
  12327. old_postinstall_cmds=$lt_old_postinstall_cmds
  12328. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12329. # Whether to use a lock for old archive extraction.
  12330. lock_old_archive_extraction=$lock_old_archive_extraction
  12331. # A C compiler.
  12332. LTCC=$lt_CC
  12333. # LTCC compiler flags.
  12334. LTCFLAGS=$lt_CFLAGS
  12335. # Take the output of nm and produce a listing of raw symbols and C names.
  12336. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12337. # Transform the output of nm in a proper C declaration.
  12338. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12339. # Transform the output of nm in a C name address pair.
  12340. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12341. # Transform the output of nm in a C name address pair when lib prefix is needed.
  12342. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  12343. # Specify filename containing input files for \$NM.
  12344. nm_file_list_spec=$lt_nm_file_list_spec
  12345. # The root where to search for dependent libraries,and in which our libraries should be installed.
  12346. lt_sysroot=$lt_sysroot
  12347. # The name of the directory that contains temporary libtool files.
  12348. objdir=$objdir
  12349. # Used to examine libraries when file_magic_cmd begins with "file".
  12350. MAGIC_CMD=$MAGIC_CMD
  12351. # Must we lock files when doing compilation?
  12352. need_locks=$lt_need_locks
  12353. # Manifest tool.
  12354. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  12355. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  12356. DSYMUTIL=$lt_DSYMUTIL
  12357. # Tool to change global to local symbols on Mac OS X.
  12358. NMEDIT=$lt_NMEDIT
  12359. # Tool to manipulate fat objects and archives on Mac OS X.
  12360. LIPO=$lt_LIPO
  12361. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  12362. OTOOL=$lt_OTOOL
  12363. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  12364. OTOOL64=$lt_OTOOL64
  12365. # Old archive suffix (normally "a").
  12366. libext=$libext
  12367. # Shared library suffix (normally ".so").
  12368. shrext_cmds=$lt_shrext_cmds
  12369. # The commands to extract the exported symbol list from a shared archive.
  12370. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12371. # Variables whose values should be saved in libtool wrapper scripts and
  12372. # restored at link time.
  12373. variables_saved_for_relink=$lt_variables_saved_for_relink
  12374. # Do we need the "lib" prefix for modules?
  12375. need_lib_prefix=$need_lib_prefix
  12376. # Do we need a version for libraries?
  12377. need_version=$need_version
  12378. # Library versioning type.
  12379. version_type=$version_type
  12380. # Shared library runtime path variable.
  12381. runpath_var=$runpath_var
  12382. # Shared library path variable.
  12383. shlibpath_var=$shlibpath_var
  12384. # Is shlibpath searched before the hard-coded library search path?
  12385. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12386. # Format of library name prefix.
  12387. libname_spec=$lt_libname_spec
  12388. # List of archive names. First name is the real one, the rest are links.
  12389. # The last name is the one that the linker finds with -lNAME
  12390. library_names_spec=$lt_library_names_spec
  12391. # The coded name of the library, if different from the real name.
  12392. soname_spec=$lt_soname_spec
  12393. # Permission mode override for installation of shared libraries.
  12394. install_override_mode=$lt_install_override_mode
  12395. # Command to use after installation of a shared archive.
  12396. postinstall_cmds=$lt_postinstall_cmds
  12397. # Command to use after uninstallation of a shared archive.
  12398. postuninstall_cmds=$lt_postuninstall_cmds
  12399. # Commands used to finish a libtool library installation in a directory.
  12400. finish_cmds=$lt_finish_cmds
  12401. # As "finish_cmds", except a single script fragment to be evaled but
  12402. # not shown.
  12403. finish_eval=$lt_finish_eval
  12404. # Whether we should hardcode library paths into libraries.
  12405. hardcode_into_libs=$hardcode_into_libs
  12406. # Compile-time system search path for libraries.
  12407. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12408. # Run-time system search path for libraries.
  12409. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12410. # Whether dlopen is supported.
  12411. dlopen_support=$enable_dlopen
  12412. # Whether dlopen of programs is supported.
  12413. dlopen_self=$enable_dlopen_self
  12414. # Whether dlopen of statically linked programs is supported.
  12415. dlopen_self_static=$enable_dlopen_self_static
  12416. # Commands to strip libraries.
  12417. old_striplib=$lt_old_striplib
  12418. striplib=$lt_striplib
  12419. # The linker used to build libraries.
  12420. LD=$lt_LD
  12421. # How to create reloadable object files.
  12422. reload_flag=$lt_reload_flag
  12423. reload_cmds=$lt_reload_cmds
  12424. # Commands used to build an old-style archive.
  12425. old_archive_cmds=$lt_old_archive_cmds
  12426. # A language specific compiler.
  12427. CC=$lt_compiler
  12428. # Is the compiler the GNU compiler?
  12429. with_gcc=$GCC
  12430. # Compiler flag to turn off builtin functions.
  12431. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  12432. # Additional compiler flags for building library objects.
  12433. pic_flag=$lt_lt_prog_compiler_pic
  12434. # How to pass a linker flag through the compiler.
  12435. wl=$lt_lt_prog_compiler_wl
  12436. # Compiler flag to prevent dynamic linking.
  12437. link_static_flag=$lt_lt_prog_compiler_static
  12438. # Does compiler simultaneously support -c and -o options?
  12439. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  12440. # Whether or not to add -lc for building shared libraries.
  12441. build_libtool_need_lc=$archive_cmds_need_lc
  12442. # Whether or not to disallow shared libs when runtime libs are static.
  12443. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  12444. # Compiler flag to allow reflexive dlopens.
  12445. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  12446. # Compiler flag to generate shared objects directly from archives.
  12447. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  12448. # Whether the compiler copes with passing no objects directly.
  12449. compiler_needs_object=$lt_compiler_needs_object
  12450. # Create an old-style archive from a shared archive.
  12451. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  12452. # Create a temporary old-style archive to link instead of a shared archive.
  12453. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  12454. # Commands used to build a shared archive.
  12455. archive_cmds=$lt_archive_cmds
  12456. archive_expsym_cmds=$lt_archive_expsym_cmds
  12457. # Commands used to build a loadable module if different from building
  12458. # a shared archive.
  12459. module_cmds=$lt_module_cmds
  12460. module_expsym_cmds=$lt_module_expsym_cmds
  12461. # Whether we are building with GNU ld or not.
  12462. with_gnu_ld=$lt_with_gnu_ld
  12463. # Flag that allows shared libraries with undefined symbols to be built.
  12464. allow_undefined_flag=$lt_allow_undefined_flag
  12465. # Flag that enforces no undefined symbols.
  12466. no_undefined_flag=$lt_no_undefined_flag
  12467. # Flag to hardcode \$libdir into a binary during linking.
  12468. # This must work even if \$libdir does not exist
  12469. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  12470. # Whether we need a single "-rpath" flag with a separated argument.
  12471. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  12472. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12473. # DIR into the resulting binary.
  12474. hardcode_direct=$hardcode_direct
  12475. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12476. # DIR into the resulting binary and the resulting library dependency is
  12477. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  12478. # library is relocated.
  12479. hardcode_direct_absolute=$hardcode_direct_absolute
  12480. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  12481. # into the resulting binary.
  12482. hardcode_minus_L=$hardcode_minus_L
  12483. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  12484. # into the resulting binary.
  12485. hardcode_shlibpath_var=$hardcode_shlibpath_var
  12486. # Set to "yes" if building a shared library automatically hardcodes DIR
  12487. # into the library and all subsequent libraries and executables linked
  12488. # against it.
  12489. hardcode_automatic=$hardcode_automatic
  12490. # Set to yes if linker adds runtime paths of dependent libraries
  12491. # to runtime path list.
  12492. inherit_rpath=$inherit_rpath
  12493. # Whether libtool must link a program against all its dependency libraries.
  12494. link_all_deplibs=$link_all_deplibs
  12495. # Set to "yes" if exported symbols are required.
  12496. always_export_symbols=$always_export_symbols
  12497. # The commands to list exported symbols.
  12498. export_symbols_cmds=$lt_export_symbols_cmds
  12499. # Symbols that should not be listed in the preloaded symbols.
  12500. exclude_expsyms=$lt_exclude_expsyms
  12501. # Symbols that must always be exported.
  12502. include_expsyms=$lt_include_expsyms
  12503. # Commands necessary for linking programs (against libraries) with templates.
  12504. prelink_cmds=$lt_prelink_cmds
  12505. # Commands necessary for finishing linking programs.
  12506. postlink_cmds=$lt_postlink_cmds
  12507. # Specify filename containing input files.
  12508. file_list_spec=$lt_file_list_spec
  12509. # How to hardcode a shared library path into an executable.
  12510. hardcode_action=$hardcode_action
  12511. # ### END LIBTOOL CONFIG
  12512. _LT_EOF
  12513. case $host_os in
  12514. aix3*)
  12515. cat <<\_LT_EOF >> "$cfgfile"
  12516. # AIX sometimes has problems with the GCC collect2 program. For some
  12517. # reason, if we set the COLLECT_NAMES environment variable, the problems
  12518. # vanish in a puff of smoke.
  12519. if test "X${COLLECT_NAMES+set}" != Xset; then
  12520. COLLECT_NAMES=
  12521. export COLLECT_NAMES
  12522. fi
  12523. _LT_EOF
  12524. ;;
  12525. esac
  12526. ltmain="$ac_aux_dir/ltmain.sh"
  12527. # We use sed instead of cat because bash on DJGPP gets confused if
  12528. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  12529. # text mode, it properly converts lines to CR/LF. This bash problem
  12530. # is reportedly fixed, but why not run on old versions too?
  12531. sed '$q' "$ltmain" >> "$cfgfile" \
  12532. || (rm -f "$cfgfile"; exit 1)
  12533. if test x"$xsi_shell" = xyes; then
  12534. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  12535. func_dirname ()\
  12536. {\
  12537. \ case ${1} in\
  12538. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  12539. \ * ) func_dirname_result="${3}" ;;\
  12540. \ esac\
  12541. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  12542. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12543. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12544. test 0 -eq $? || _lt_function_replace_fail=:
  12545. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  12546. func_basename ()\
  12547. {\
  12548. \ func_basename_result="${1##*/}"\
  12549. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  12550. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12551. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12552. test 0 -eq $? || _lt_function_replace_fail=:
  12553. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  12554. func_dirname_and_basename ()\
  12555. {\
  12556. \ case ${1} in\
  12557. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  12558. \ * ) func_dirname_result="${3}" ;;\
  12559. \ esac\
  12560. \ func_basename_result="${1##*/}"\
  12561. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  12562. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12563. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12564. test 0 -eq $? || _lt_function_replace_fail=:
  12565. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  12566. func_stripname ()\
  12567. {\
  12568. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  12569. \ # positional parameters, so assign one to ordinary parameter first.\
  12570. \ func_stripname_result=${3}\
  12571. \ func_stripname_result=${func_stripname_result#"${1}"}\
  12572. \ func_stripname_result=${func_stripname_result%"${2}"}\
  12573. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  12574. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12575. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12576. test 0 -eq $? || _lt_function_replace_fail=:
  12577. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  12578. func_split_long_opt ()\
  12579. {\
  12580. \ func_split_long_opt_name=${1%%=*}\
  12581. \ func_split_long_opt_arg=${1#*=}\
  12582. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  12583. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12584. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12585. test 0 -eq $? || _lt_function_replace_fail=:
  12586. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  12587. func_split_short_opt ()\
  12588. {\
  12589. \ func_split_short_opt_arg=${1#??}\
  12590. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  12591. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  12592. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12593. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12594. test 0 -eq $? || _lt_function_replace_fail=:
  12595. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  12596. func_lo2o ()\
  12597. {\
  12598. \ case ${1} in\
  12599. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  12600. \ *) func_lo2o_result=${1} ;;\
  12601. \ esac\
  12602. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  12603. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12604. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12605. test 0 -eq $? || _lt_function_replace_fail=:
  12606. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  12607. func_xform ()\
  12608. {\
  12609. func_xform_result=${1%.*}.lo\
  12610. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  12611. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12612. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12613. test 0 -eq $? || _lt_function_replace_fail=:
  12614. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  12615. func_arith ()\
  12616. {\
  12617. func_arith_result=$(( $* ))\
  12618. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  12619. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12620. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12621. test 0 -eq $? || _lt_function_replace_fail=:
  12622. sed -e '/^func_len ()$/,/^} # func_len /c\
  12623. func_len ()\
  12624. {\
  12625. func_len_result=${#1}\
  12626. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  12627. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12628. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12629. test 0 -eq $? || _lt_function_replace_fail=:
  12630. fi
  12631. if test x"$lt_shell_append" = xyes; then
  12632. sed -e '/^func_append ()$/,/^} # func_append /c\
  12633. func_append ()\
  12634. {\
  12635. eval "${1}+=\\${2}"\
  12636. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  12637. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12638. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12639. test 0 -eq $? || _lt_function_replace_fail=:
  12640. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  12641. func_append_quoted ()\
  12642. {\
  12643. \ func_quote_for_eval "${2}"\
  12644. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  12645. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  12646. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12647. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12648. test 0 -eq $? || _lt_function_replace_fail=:
  12649. # Save a `func_append' function call where possible by direct use of '+='
  12650. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  12651. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12652. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12653. test 0 -eq $? || _lt_function_replace_fail=:
  12654. else
  12655. # Save a `func_append' function call even when '+=' is not available
  12656. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  12657. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12658. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12659. test 0 -eq $? || _lt_function_replace_fail=:
  12660. fi
  12661. if test x"$_lt_function_replace_fail" = x":"; then
  12662. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  12663. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  12664. fi
  12665. mv -f "$cfgfile" "$ofile" ||
  12666. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  12667. chmod +x "$ofile"
  12668. ;;
  12669. esac
  12670. done # for ac_tag
  12671. as_fn_exit 0
  12672. _ACEOF
  12673. ac_clean_files=$ac_clean_files_save
  12674. test $ac_write_fail = 0 ||
  12675. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  12676. # configure is writing to config.log, and then calls config.status.
  12677. # config.status does its own redirection, appending to config.log.
  12678. # Unfortunately, on DOS this fails, as config.log is still kept open
  12679. # by configure, so config.status won't be able to write to it; its
  12680. # output is simply discarded. So we exec the FD to /dev/null,
  12681. # effectively closing config.log, so it can be properly (re)opened and
  12682. # appended to by config.status. When coming back to configure, we
  12683. # need to make the FD available again.
  12684. if test "$no_create" != yes; then
  12685. ac_cs_success=:
  12686. ac_config_status_args=
  12687. test "$silent" = yes &&
  12688. ac_config_status_args="$ac_config_status_args --quiet"
  12689. exec 5>/dev/null
  12690. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12691. exec 5>>config.log
  12692. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12693. # would make configure fail if this is the last instruction.
  12694. $ac_cs_success || as_fn_exit 1
  12695. fi
  12696. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  12697. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  12698. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  12699. fi