1
0

configure 565 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.68 for klish 1.5.1.
  4. #
  5. # Report bugs to <serj.kalichev at gmail dot com>.
  6. #
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  10. # Foundation, Inc.
  11. #
  12. #
  13. # This configure script is free software; the Free Software Foundation
  14. # gives unlimited permission to copy, distribute and modify it.
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else
  28. case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac
  34. fi
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. # Prefer a ksh shell builtin over an external printf program on Solaris,
  43. # but without wasting forks for bash or zsh.
  44. if test -z "$BASH_VERSION$ZSH_VERSION" \
  45. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='print -r --'
  47. as_echo_n='print -rn --'
  48. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='printf %s\n'
  50. as_echo_n='printf %s'
  51. else
  52. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  53. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54. as_echo_n='/usr/ucb/echo -n'
  55. else
  56. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57. as_echo_n_body='eval
  58. arg=$1;
  59. case $arg in #(
  60. *"$as_nl"*)
  61. expr "X$arg" : "X\\(.*\\)$as_nl";
  62. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  63. esac;
  64. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65. '
  66. export as_echo_n_body
  67. as_echo_n='sh -c $as_echo_n_body as_echo'
  68. fi
  69. export as_echo_body
  70. as_echo='sh -c $as_echo_body as_echo'
  71. fi
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. as_myself=
  88. case $0 in #((
  89. *[\\/]* ) as_myself=$0 ;;
  90. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  91. for as_dir in $PATH
  92. do
  93. IFS=$as_save_IFS
  94. test -z "$as_dir" && as_dir=.
  95. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  96. done
  97. IFS=$as_save_IFS
  98. ;;
  99. esac
  100. # We did not find ourselves, most probably we were run as `sh COMMAND'
  101. # in which case we are not to be found in the path.
  102. if test "x$as_myself" = x; then
  103. as_myself=$0
  104. fi
  105. if test ! -f "$as_myself"; then
  106. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  107. exit 1
  108. fi
  109. # Unset variables that we do not need and which cause bugs (e.g. in
  110. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  111. # suppresses any "Segmentation fault" message there. '((' could
  112. # trigger a bug in pdksh 5.2.14.
  113. for as_var in BASH_ENV ENV MAIL MAILPATH
  114. do eval test x\${$as_var+set} = xset \
  115. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  116. done
  117. PS1='$ '
  118. PS2='> '
  119. PS4='+ '
  120. # NLS nuisances.
  121. LC_ALL=C
  122. export LC_ALL
  123. LANGUAGE=C
  124. export LANGUAGE
  125. # CDPATH.
  126. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  155. else
  156. exitcode=1; echo positional parameters were not saved.
  157. fi
  158. test x\$exitcode = x0 || exit 1"
  159. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  160. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  161. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  162. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  163. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  164. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  165. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  166. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  167. PATH=/empty FPATH=/empty; export PATH FPATH
  168. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  169. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  170. test \$(( 1 + 1 )) = 2 || exit 1"
  171. if (eval "$as_required") 2>/dev/null; then :
  172. as_have_required=yes
  173. else
  174. as_have_required=no
  175. fi
  176. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  177. else
  178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  179. as_found=false
  180. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  181. do
  182. IFS=$as_save_IFS
  183. test -z "$as_dir" && as_dir=.
  184. as_found=:
  185. case $as_dir in #(
  186. /*)
  187. for as_base in sh bash ksh sh5; do
  188. # Try only shells that exist, to save several forks.
  189. as_shell=$as_dir/$as_base
  190. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  191. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  192. CONFIG_SHELL=$as_shell as_have_required=yes
  193. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  194. break 2
  195. fi
  196. fi
  197. done;;
  198. esac
  199. as_found=false
  200. done
  201. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  202. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  203. CONFIG_SHELL=$SHELL as_have_required=yes
  204. fi; }
  205. IFS=$as_save_IFS
  206. if test "x$CONFIG_SHELL" != x; then :
  207. # We cannot yet assume a decent shell, so we have to provide a
  208. # neutralization value for shells without unset; and this also
  209. # works around shells that cannot unset nonexistent variables.
  210. # Preserve -v and -x to the replacement shell.
  211. BASH_ENV=/dev/null
  212. ENV=/dev/null
  213. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  214. export CONFIG_SHELL
  215. case $- in # ((((
  216. *v*x* | *x*v* ) as_opts=-vx ;;
  217. *v* ) as_opts=-v ;;
  218. *x* ) as_opts=-x ;;
  219. * ) as_opts= ;;
  220. esac
  221. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  222. fi
  223. if test x$as_have_required = xno; then :
  224. $as_echo "$0: This script requires a shell more modern than all"
  225. $as_echo "$0: the shells that I found on your system."
  226. if test x${ZSH_VERSION+set} = xset ; then
  227. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  228. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  229. else
  230. $as_echo "$0: Please tell bug-autoconf@gnu.org and serj.kalichev at
  231. $0: gmail dot com about your system, including any error
  232. $0: possibly output before this message. Then install a
  233. $0: modern shell, or manually run the script under such a
  234. $0: shell if you do have one."
  235. fi
  236. exit 1
  237. fi
  238. fi
  239. fi
  240. SHELL=${CONFIG_SHELL-/bin/sh}
  241. export SHELL
  242. # Unset more variables known to interfere with behavior of common tools.
  243. CLICOLOR_FORCE= GREP_OPTIONS=
  244. unset CLICOLOR_FORCE GREP_OPTIONS
  245. ## --------------------- ##
  246. ## M4sh Shell Functions. ##
  247. ## --------------------- ##
  248. # as_fn_unset VAR
  249. # ---------------
  250. # Portably unset VAR.
  251. as_fn_unset ()
  252. {
  253. { eval $1=; unset $1;}
  254. }
  255. as_unset=as_fn_unset
  256. # as_fn_set_status STATUS
  257. # -----------------------
  258. # Set $? to STATUS, without forking.
  259. as_fn_set_status ()
  260. {
  261. return $1
  262. } # as_fn_set_status
  263. # as_fn_exit STATUS
  264. # -----------------
  265. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  266. as_fn_exit ()
  267. {
  268. set +e
  269. as_fn_set_status $1
  270. exit $1
  271. } # as_fn_exit
  272. # as_fn_mkdir_p
  273. # -------------
  274. # Create "$as_dir" as a directory, including parents if necessary.
  275. as_fn_mkdir_p ()
  276. {
  277. case $as_dir in #(
  278. -*) as_dir=./$as_dir;;
  279. esac
  280. test -d "$as_dir" || eval $as_mkdir_p || {
  281. as_dirs=
  282. while :; do
  283. case $as_dir in #(
  284. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  285. *) as_qdir=$as_dir;;
  286. esac
  287. as_dirs="'$as_qdir' $as_dirs"
  288. as_dir=`$as_dirname -- "$as_dir" ||
  289. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  290. X"$as_dir" : 'X\(//\)[^/]' \| \
  291. X"$as_dir" : 'X\(//\)$' \| \
  292. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  293. $as_echo X"$as_dir" |
  294. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  295. s//\1/
  296. q
  297. }
  298. /^X\(\/\/\)[^/].*/{
  299. s//\1/
  300. q
  301. }
  302. /^X\(\/\/\)$/{
  303. s//\1/
  304. q
  305. }
  306. /^X\(\/\).*/{
  307. s//\1/
  308. q
  309. }
  310. s/.*/./; q'`
  311. test -d "$as_dir" && break
  312. done
  313. test -z "$as_dirs" || eval "mkdir $as_dirs"
  314. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  315. } # as_fn_mkdir_p
  316. # as_fn_append VAR VALUE
  317. # ----------------------
  318. # Append the text in VALUE to the end of the definition contained in VAR. Take
  319. # advantage of any shell optimizations that allow amortized linear growth over
  320. # repeated appends, instead of the typical quadratic growth present in naive
  321. # implementations.
  322. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  323. eval 'as_fn_append ()
  324. {
  325. eval $1+=\$2
  326. }'
  327. else
  328. as_fn_append ()
  329. {
  330. eval $1=\$$1\$2
  331. }
  332. fi # as_fn_append
  333. # as_fn_arith ARG...
  334. # ------------------
  335. # Perform arithmetic evaluation on the ARGs, and store the result in the
  336. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  337. # must be portable across $(()) and expr.
  338. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  339. eval 'as_fn_arith ()
  340. {
  341. as_val=$(( $* ))
  342. }'
  343. else
  344. as_fn_arith ()
  345. {
  346. as_val=`expr "$@" || test $? -eq 1`
  347. }
  348. fi # as_fn_arith
  349. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  350. # ----------------------------------------
  351. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  352. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  353. # script with STATUS, using 1 if that was 0.
  354. as_fn_error ()
  355. {
  356. as_status=$1; test $as_status -eq 0 && as_status=1
  357. if test "$4"; then
  358. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  359. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  360. fi
  361. $as_echo "$as_me: error: $2" >&2
  362. as_fn_exit $as_status
  363. } # as_fn_error
  364. if expr a : '\(a\)' >/dev/null 2>&1 &&
  365. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  366. as_expr=expr
  367. else
  368. as_expr=false
  369. fi
  370. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  371. as_basename=basename
  372. else
  373. as_basename=false
  374. fi
  375. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  376. as_dirname=dirname
  377. else
  378. as_dirname=false
  379. fi
  380. as_me=`$as_basename -- "$0" ||
  381. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  382. X"$0" : 'X\(//\)$' \| \
  383. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  384. $as_echo X/"$0" |
  385. sed '/^.*\/\([^/][^/]*\)\/*$/{
  386. s//\1/
  387. q
  388. }
  389. /^X\/\(\/\/\)$/{
  390. s//\1/
  391. q
  392. }
  393. /^X\/\(\/\).*/{
  394. s//\1/
  395. q
  396. }
  397. s/.*/./; q'`
  398. # Avoid depending upon Character Ranges.
  399. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  400. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  401. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  402. as_cr_digits='0123456789'
  403. as_cr_alnum=$as_cr_Letters$as_cr_digits
  404. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  405. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  406. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  407. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  408. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  409. sed -n '
  410. p
  411. /[$]LINENO/=
  412. ' <$as_myself |
  413. sed '
  414. s/[$]LINENO.*/&-/
  415. t lineno
  416. b
  417. :lineno
  418. N
  419. :loop
  420. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  421. t loop
  422. s/-\n.*//
  423. ' >$as_me.lineno &&
  424. chmod +x "$as_me.lineno" ||
  425. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  426. # Don't try to exec as it changes $[0], causing all sort of problems
  427. # (the dirname of $[0] is not the place where we might find the
  428. # original and so on. Autoconf is especially sensitive to this).
  429. . "./$as_me.lineno"
  430. # Exit status is that of the last command.
  431. exit
  432. }
  433. ECHO_C= ECHO_N= ECHO_T=
  434. case `echo -n x` in #(((((
  435. -n*)
  436. case `echo 'xy\c'` in
  437. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  438. xy) ECHO_C='\c';;
  439. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  440. ECHO_T=' ';;
  441. esac;;
  442. *)
  443. ECHO_N='-n';;
  444. esac
  445. rm -f conf$$ conf$$.exe conf$$.file
  446. if test -d conf$$.dir; then
  447. rm -f conf$$.dir/conf$$.file
  448. else
  449. rm -f conf$$.dir
  450. mkdir conf$$.dir 2>/dev/null
  451. fi
  452. if (echo >conf$$.file) 2>/dev/null; then
  453. if ln -s conf$$.file conf$$ 2>/dev/null; then
  454. as_ln_s='ln -s'
  455. # ... but there are two gotchas:
  456. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  457. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  458. # In both cases, we have to default to `cp -p'.
  459. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  460. as_ln_s='cp -p'
  461. elif ln conf$$.file conf$$ 2>/dev/null; then
  462. as_ln_s=ln
  463. else
  464. as_ln_s='cp -p'
  465. fi
  466. else
  467. as_ln_s='cp -p'
  468. fi
  469. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  470. rmdir conf$$.dir 2>/dev/null
  471. if mkdir -p . 2>/dev/null; then
  472. as_mkdir_p='mkdir -p "$as_dir"'
  473. else
  474. test -d ./-p && rmdir ./-p
  475. as_mkdir_p=false
  476. fi
  477. if test -x / >/dev/null 2>&1; then
  478. as_test_x='test -x'
  479. else
  480. if ls -dL / >/dev/null 2>&1; then
  481. as_ls_L_option=L
  482. else
  483. as_ls_L_option=
  484. fi
  485. as_test_x='
  486. eval sh -c '\''
  487. if test -d "$1"; then
  488. test -d "$1/.";
  489. else
  490. case $1 in #(
  491. -*)set "./$1";;
  492. esac;
  493. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  494. ???[sx]*):;;*)false;;esac;fi
  495. '\'' sh
  496. '
  497. fi
  498. as_executable_p=$as_test_x
  499. # Sed expression to map a string onto a valid CPP name.
  500. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  501. # Sed expression to map a string onto a valid variable name.
  502. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  503. SHELL=${CONFIG_SHELL-/bin/sh}
  504. test -n "$DJDIR" || exec 7<&0 </dev/null
  505. exec 6>&1
  506. # Name of the host.
  507. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  508. # so uname gets run too.
  509. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  510. #
  511. # Initializations.
  512. #
  513. ac_default_prefix=/usr/local
  514. ac_clean_files=
  515. ac_config_libobj_dir=.
  516. LIBOBJS=
  517. cross_compiling=no
  518. subdirs=
  519. MFLAGS=
  520. MAKEFLAGS=
  521. # Identity of this package.
  522. PACKAGE_NAME='klish'
  523. PACKAGE_TARNAME='klish'
  524. PACKAGE_VERSION='1.5.1'
  525. PACKAGE_STRING='klish 1.5.1'
  526. PACKAGE_BUGREPORT='serj.kalichev at gmail dot com'
  527. PACKAGE_URL=''
  528. # Factoring default headers for most tests.
  529. ac_includes_default="\
  530. #include <stdio.h>
  531. #ifdef HAVE_SYS_TYPES_H
  532. # include <sys/types.h>
  533. #endif
  534. #ifdef HAVE_SYS_STAT_H
  535. # include <sys/stat.h>
  536. #endif
  537. #ifdef STDC_HEADERS
  538. # include <stdlib.h>
  539. # include <stddef.h>
  540. #else
  541. # ifdef HAVE_STDLIB_H
  542. # include <stdlib.h>
  543. # endif
  544. #endif
  545. #ifdef HAVE_STRING_H
  546. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  547. # include <memory.h>
  548. # endif
  549. # include <string.h>
  550. #endif
  551. #ifdef HAVE_STRINGS_H
  552. # include <strings.h>
  553. #endif
  554. #ifdef HAVE_INTTYPES_H
  555. # include <inttypes.h>
  556. #endif
  557. #ifdef HAVE_STDINT_H
  558. # include <stdint.h>
  559. #endif
  560. #ifdef HAVE_UNISTD_H
  561. # include <unistd.h>
  562. #endif"
  563. ac_subst_vars='am__EXEEXT_FALSE
  564. am__EXEEXT_TRUE
  565. LTLIBOBJS
  566. LIBOBJS
  567. BFD_LIBS
  568. LUBHEAP_CFLAGS
  569. LUBHEAP_LIBS
  570. LUBHEAP_FALSE
  571. LUBHEAP_TRUE
  572. TCL_FALSE
  573. TCL_TRUE
  574. TCL_VERSION
  575. TCL_LIBS
  576. TCL_CFLAGS
  577. RT_CFLAGS
  578. RT_LIBS
  579. PTHREAD_CFLAGS
  580. PTHREAD_LIBS
  581. TINYXML_CXXFLAGS
  582. TINYXML_LIBS
  583. TINYRL_CFLAGS
  584. TINYRL_LIBS
  585. KONF_CFLAGS
  586. KONF_LIBS
  587. LUB_CFLAGS
  588. LUB_LIBS
  589. DEBUG_FALSE
  590. DEBUG_TRUE
  591. am__fastdepCXX_FALSE
  592. am__fastdepCXX_TRUE
  593. CXXDEPMODE
  594. am__fastdepCC_FALSE
  595. am__fastdepCC_TRUE
  596. CCDEPMODE
  597. AMDEPBACKSLASH
  598. AMDEP_FALSE
  599. AMDEP_TRUE
  600. am__quote
  601. am__include
  602. DEPDIR
  603. am__untar
  604. am__tar
  605. AMTAR
  606. am__leading_dot
  607. SET_MAKE
  608. mkdir_p
  609. MKDIR_P
  610. INSTALL_STRIP_PROGRAM
  611. install_sh
  612. MAKEINFO
  613. AUTOHEADER
  614. AUTOMAKE
  615. AUTOCONF
  616. ACLOCAL
  617. VERSION
  618. PACKAGE
  619. CYGPATH_W
  620. am__isrc
  621. INSTALL_DATA
  622. INSTALL_SCRIPT
  623. INSTALL_PROGRAM
  624. CXXCPP
  625. CPP
  626. OTOOL64
  627. OTOOL
  628. LIPO
  629. NMEDIT
  630. DSYMUTIL
  631. MANIFEST_TOOL
  632. AWK
  633. RANLIB
  634. STRIP
  635. ac_ct_AR
  636. AR
  637. LN_S
  638. NM
  639. ac_ct_DUMPBIN
  640. DUMPBIN
  641. LD
  642. FGREP
  643. EGREP
  644. GREP
  645. SED
  646. LIBTOOL
  647. OBJDUMP
  648. DLLTOOL
  649. AS
  650. host_os
  651. host_vendor
  652. host_cpu
  653. host
  654. build_os
  655. build_vendor
  656. build_cpu
  657. build
  658. ac_ct_CXX
  659. CXXFLAGS
  660. CXX
  661. OBJEXT
  662. EXEEXT
  663. ac_ct_CC
  664. CPPFLAGS
  665. LDFLAGS
  666. CFLAGS
  667. CC
  668. target_alias
  669. host_alias
  670. build_alias
  671. LIBS
  672. ECHO_T
  673. ECHO_N
  674. ECHO_C
  675. DEFS
  676. mandir
  677. localedir
  678. libdir
  679. psdir
  680. pdfdir
  681. dvidir
  682. htmldir
  683. infodir
  684. docdir
  685. oldincludedir
  686. includedir
  687. localstatedir
  688. sharedstatedir
  689. sysconfdir
  690. datadir
  691. datarootdir
  692. libexecdir
  693. sbindir
  694. bindir
  695. program_transform_name
  696. prefix
  697. exec_prefix
  698. PACKAGE_URL
  699. PACKAGE_BUGREPORT
  700. PACKAGE_STRING
  701. PACKAGE_VERSION
  702. PACKAGE_TARNAME
  703. PACKAGE_NAME
  704. PATH_SEPARATOR
  705. SHELL'
  706. ac_subst_files=''
  707. ac_user_opts='
  708. enable_option_checking
  709. enable_shared
  710. enable_static
  711. with_pic
  712. enable_fast_install
  713. with_gnu_ld
  714. with_sysroot
  715. enable_libtool_lock
  716. enable_dependency_tracking
  717. enable_debug
  718. with_pthread
  719. with_rt
  720. with_tcl
  721. enable_lubheap
  722. enable_gpl
  723. '
  724. ac_precious_vars='build_alias
  725. host_alias
  726. target_alias
  727. CC
  728. CFLAGS
  729. LDFLAGS
  730. LIBS
  731. CPPFLAGS
  732. CXX
  733. CXXFLAGS
  734. CCC
  735. CPP
  736. CXXCPP'
  737. # Initialize some variables set by options.
  738. ac_init_help=
  739. ac_init_version=false
  740. ac_unrecognized_opts=
  741. ac_unrecognized_sep=
  742. # The variables have the same names as the options, with
  743. # dashes changed to underlines.
  744. cache_file=/dev/null
  745. exec_prefix=NONE
  746. no_create=
  747. no_recursion=
  748. prefix=NONE
  749. program_prefix=NONE
  750. program_suffix=NONE
  751. program_transform_name=s,x,x,
  752. silent=
  753. site=
  754. srcdir=
  755. verbose=
  756. x_includes=NONE
  757. x_libraries=NONE
  758. # Installation directory options.
  759. # These are left unexpanded so users can "make install exec_prefix=/foo"
  760. # and all the variables that are supposed to be based on exec_prefix
  761. # by default will actually change.
  762. # Use braces instead of parens because sh, perl, etc. also accept them.
  763. # (The list follows the same order as the GNU Coding Standards.)
  764. bindir='${exec_prefix}/bin'
  765. sbindir='${exec_prefix}/sbin'
  766. libexecdir='${exec_prefix}/libexec'
  767. datarootdir='${prefix}/share'
  768. datadir='${datarootdir}'
  769. sysconfdir='${prefix}/etc'
  770. sharedstatedir='${prefix}/com'
  771. localstatedir='${prefix}/var'
  772. includedir='${prefix}/include'
  773. oldincludedir='/usr/include'
  774. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  775. infodir='${datarootdir}/info'
  776. htmldir='${docdir}'
  777. dvidir='${docdir}'
  778. pdfdir='${docdir}'
  779. psdir='${docdir}'
  780. libdir='${exec_prefix}/lib'
  781. localedir='${datarootdir}/locale'
  782. mandir='${datarootdir}/man'
  783. ac_prev=
  784. ac_dashdash=
  785. for ac_option
  786. do
  787. # If the previous option needs an argument, assign it.
  788. if test -n "$ac_prev"; then
  789. eval $ac_prev=\$ac_option
  790. ac_prev=
  791. continue
  792. fi
  793. case $ac_option in
  794. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  795. *=) ac_optarg= ;;
  796. *) ac_optarg=yes ;;
  797. esac
  798. # Accept the important Cygnus configure options, so we can diagnose typos.
  799. case $ac_dashdash$ac_option in
  800. --)
  801. ac_dashdash=yes ;;
  802. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  803. ac_prev=bindir ;;
  804. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  805. bindir=$ac_optarg ;;
  806. -build | --build | --buil | --bui | --bu)
  807. ac_prev=build_alias ;;
  808. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  809. build_alias=$ac_optarg ;;
  810. -cache-file | --cache-file | --cache-fil | --cache-fi \
  811. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  812. ac_prev=cache_file ;;
  813. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  814. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  815. cache_file=$ac_optarg ;;
  816. --config-cache | -C)
  817. cache_file=config.cache ;;
  818. -datadir | --datadir | --datadi | --datad)
  819. ac_prev=datadir ;;
  820. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  821. datadir=$ac_optarg ;;
  822. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  823. | --dataroo | --dataro | --datar)
  824. ac_prev=datarootdir ;;
  825. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  826. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  827. datarootdir=$ac_optarg ;;
  828. -disable-* | --disable-*)
  829. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  830. # Reject names that are not valid shell variable names.
  831. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  832. as_fn_error $? "invalid feature name: $ac_useropt"
  833. ac_useropt_orig=$ac_useropt
  834. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  835. case $ac_user_opts in
  836. *"
  837. "enable_$ac_useropt"
  838. "*) ;;
  839. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  840. ac_unrecognized_sep=', ';;
  841. esac
  842. eval enable_$ac_useropt=no ;;
  843. -docdir | --docdir | --docdi | --doc | --do)
  844. ac_prev=docdir ;;
  845. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  846. docdir=$ac_optarg ;;
  847. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  848. ac_prev=dvidir ;;
  849. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  850. dvidir=$ac_optarg ;;
  851. -enable-* | --enable-*)
  852. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  853. # Reject names that are not valid shell variable names.
  854. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  855. as_fn_error $? "invalid feature name: $ac_useropt"
  856. ac_useropt_orig=$ac_useropt
  857. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  858. case $ac_user_opts in
  859. *"
  860. "enable_$ac_useropt"
  861. "*) ;;
  862. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  863. ac_unrecognized_sep=', ';;
  864. esac
  865. eval enable_$ac_useropt=\$ac_optarg ;;
  866. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  867. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  868. | --exec | --exe | --ex)
  869. ac_prev=exec_prefix ;;
  870. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  871. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  872. | --exec=* | --exe=* | --ex=*)
  873. exec_prefix=$ac_optarg ;;
  874. -gas | --gas | --ga | --g)
  875. # Obsolete; use --with-gas.
  876. with_gas=yes ;;
  877. -help | --help | --hel | --he | -h)
  878. ac_init_help=long ;;
  879. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  880. ac_init_help=recursive ;;
  881. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  882. ac_init_help=short ;;
  883. -host | --host | --hos | --ho)
  884. ac_prev=host_alias ;;
  885. -host=* | --host=* | --hos=* | --ho=*)
  886. host_alias=$ac_optarg ;;
  887. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  888. ac_prev=htmldir ;;
  889. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  890. | --ht=*)
  891. htmldir=$ac_optarg ;;
  892. -includedir | --includedir | --includedi | --included | --include \
  893. | --includ | --inclu | --incl | --inc)
  894. ac_prev=includedir ;;
  895. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  896. | --includ=* | --inclu=* | --incl=* | --inc=*)
  897. includedir=$ac_optarg ;;
  898. -infodir | --infodir | --infodi | --infod | --info | --inf)
  899. ac_prev=infodir ;;
  900. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  901. infodir=$ac_optarg ;;
  902. -libdir | --libdir | --libdi | --libd)
  903. ac_prev=libdir ;;
  904. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  905. libdir=$ac_optarg ;;
  906. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  907. | --libexe | --libex | --libe)
  908. ac_prev=libexecdir ;;
  909. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  910. | --libexe=* | --libex=* | --libe=*)
  911. libexecdir=$ac_optarg ;;
  912. -localedir | --localedir | --localedi | --localed | --locale)
  913. ac_prev=localedir ;;
  914. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  915. localedir=$ac_optarg ;;
  916. -localstatedir | --localstatedir | --localstatedi | --localstated \
  917. | --localstate | --localstat | --localsta | --localst | --locals)
  918. ac_prev=localstatedir ;;
  919. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  920. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  921. localstatedir=$ac_optarg ;;
  922. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  923. ac_prev=mandir ;;
  924. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  925. mandir=$ac_optarg ;;
  926. -nfp | --nfp | --nf)
  927. # Obsolete; use --without-fp.
  928. with_fp=no ;;
  929. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  930. | --no-cr | --no-c | -n)
  931. no_create=yes ;;
  932. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  933. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  934. no_recursion=yes ;;
  935. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  936. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  937. | --oldin | --oldi | --old | --ol | --o)
  938. ac_prev=oldincludedir ;;
  939. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  940. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  941. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  942. oldincludedir=$ac_optarg ;;
  943. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  944. ac_prev=prefix ;;
  945. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  946. prefix=$ac_optarg ;;
  947. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  948. | --program-pre | --program-pr | --program-p)
  949. ac_prev=program_prefix ;;
  950. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  951. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  952. program_prefix=$ac_optarg ;;
  953. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  954. | --program-suf | --program-su | --program-s)
  955. ac_prev=program_suffix ;;
  956. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  957. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  958. program_suffix=$ac_optarg ;;
  959. -program-transform-name | --program-transform-name \
  960. | --program-transform-nam | --program-transform-na \
  961. | --program-transform-n | --program-transform- \
  962. | --program-transform | --program-transfor \
  963. | --program-transfo | --program-transf \
  964. | --program-trans | --program-tran \
  965. | --progr-tra | --program-tr | --program-t)
  966. ac_prev=program_transform_name ;;
  967. -program-transform-name=* | --program-transform-name=* \
  968. | --program-transform-nam=* | --program-transform-na=* \
  969. | --program-transform-n=* | --program-transform-=* \
  970. | --program-transform=* | --program-transfor=* \
  971. | --program-transfo=* | --program-transf=* \
  972. | --program-trans=* | --program-tran=* \
  973. | --progr-tra=* | --program-tr=* | --program-t=*)
  974. program_transform_name=$ac_optarg ;;
  975. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  976. ac_prev=pdfdir ;;
  977. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  978. pdfdir=$ac_optarg ;;
  979. -psdir | --psdir | --psdi | --psd | --ps)
  980. ac_prev=psdir ;;
  981. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  982. psdir=$ac_optarg ;;
  983. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  984. | -silent | --silent | --silen | --sile | --sil)
  985. silent=yes ;;
  986. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  987. ac_prev=sbindir ;;
  988. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  989. | --sbi=* | --sb=*)
  990. sbindir=$ac_optarg ;;
  991. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  992. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  993. | --sharedst | --shareds | --shared | --share | --shar \
  994. | --sha | --sh)
  995. ac_prev=sharedstatedir ;;
  996. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  997. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  998. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  999. | --sha=* | --sh=*)
  1000. sharedstatedir=$ac_optarg ;;
  1001. -site | --site | --sit)
  1002. ac_prev=site ;;
  1003. -site=* | --site=* | --sit=*)
  1004. site=$ac_optarg ;;
  1005. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1006. ac_prev=srcdir ;;
  1007. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1008. srcdir=$ac_optarg ;;
  1009. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1010. | --syscon | --sysco | --sysc | --sys | --sy)
  1011. ac_prev=sysconfdir ;;
  1012. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1013. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1014. sysconfdir=$ac_optarg ;;
  1015. -target | --target | --targe | --targ | --tar | --ta | --t)
  1016. ac_prev=target_alias ;;
  1017. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1018. target_alias=$ac_optarg ;;
  1019. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1020. verbose=yes ;;
  1021. -version | --version | --versio | --versi | --vers | -V)
  1022. ac_init_version=: ;;
  1023. -with-* | --with-*)
  1024. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1025. # Reject names that are not valid shell variable names.
  1026. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1027. as_fn_error $? "invalid package name: $ac_useropt"
  1028. ac_useropt_orig=$ac_useropt
  1029. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1030. case $ac_user_opts in
  1031. *"
  1032. "with_$ac_useropt"
  1033. "*) ;;
  1034. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1035. ac_unrecognized_sep=', ';;
  1036. esac
  1037. eval with_$ac_useropt=\$ac_optarg ;;
  1038. -without-* | --without-*)
  1039. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1040. # Reject names that are not valid shell variable names.
  1041. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1042. as_fn_error $? "invalid package name: $ac_useropt"
  1043. ac_useropt_orig=$ac_useropt
  1044. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1045. case $ac_user_opts in
  1046. *"
  1047. "with_$ac_useropt"
  1048. "*) ;;
  1049. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1050. ac_unrecognized_sep=', ';;
  1051. esac
  1052. eval with_$ac_useropt=no ;;
  1053. --x)
  1054. # Obsolete; use --with-x.
  1055. with_x=yes ;;
  1056. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1057. | --x-incl | --x-inc | --x-in | --x-i)
  1058. ac_prev=x_includes ;;
  1059. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1060. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1061. x_includes=$ac_optarg ;;
  1062. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1063. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1064. ac_prev=x_libraries ;;
  1065. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1066. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1067. x_libraries=$ac_optarg ;;
  1068. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1069. Try \`$0 --help' for more information"
  1070. ;;
  1071. *=*)
  1072. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1073. # Reject names that are not valid shell variable names.
  1074. case $ac_envvar in #(
  1075. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1076. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1077. esac
  1078. eval $ac_envvar=\$ac_optarg
  1079. export $ac_envvar ;;
  1080. *)
  1081. # FIXME: should be removed in autoconf 3.0.
  1082. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1083. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1084. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1085. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1086. ;;
  1087. esac
  1088. done
  1089. if test -n "$ac_prev"; then
  1090. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1091. as_fn_error $? "missing argument to $ac_option"
  1092. fi
  1093. if test -n "$ac_unrecognized_opts"; then
  1094. case $enable_option_checking in
  1095. no) ;;
  1096. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1097. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1098. esac
  1099. fi
  1100. # Check all directory arguments for consistency.
  1101. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1102. datadir sysconfdir sharedstatedir localstatedir includedir \
  1103. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1104. libdir localedir mandir
  1105. do
  1106. eval ac_val=\$$ac_var
  1107. # Remove trailing slashes.
  1108. case $ac_val in
  1109. */ )
  1110. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1111. eval $ac_var=\$ac_val;;
  1112. esac
  1113. # Be sure to have absolute directory names.
  1114. case $ac_val in
  1115. [\\/$]* | ?:[\\/]* ) continue;;
  1116. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1117. esac
  1118. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1119. done
  1120. # There might be people who depend on the old broken behavior: `$host'
  1121. # used to hold the argument of --host etc.
  1122. # FIXME: To remove some day.
  1123. build=$build_alias
  1124. host=$host_alias
  1125. target=$target_alias
  1126. # FIXME: To remove some day.
  1127. if test "x$host_alias" != x; then
  1128. if test "x$build_alias" = x; then
  1129. cross_compiling=maybe
  1130. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1131. If a cross compiler is detected then cross compile mode will be used" >&2
  1132. elif test "x$build_alias" != "x$host_alias"; then
  1133. cross_compiling=yes
  1134. fi
  1135. fi
  1136. ac_tool_prefix=
  1137. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1138. test "$silent" = yes && exec 6>/dev/null
  1139. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1140. ac_ls_di=`ls -di .` &&
  1141. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1142. as_fn_error $? "working directory cannot be determined"
  1143. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1144. as_fn_error $? "pwd does not report name of working directory"
  1145. # Find the source files, if location was not specified.
  1146. if test -z "$srcdir"; then
  1147. ac_srcdir_defaulted=yes
  1148. # Try the directory containing this script, then the parent directory.
  1149. ac_confdir=`$as_dirname -- "$as_myself" ||
  1150. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1151. X"$as_myself" : 'X\(//\)[^/]' \| \
  1152. X"$as_myself" : 'X\(//\)$' \| \
  1153. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1154. $as_echo X"$as_myself" |
  1155. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1156. s//\1/
  1157. q
  1158. }
  1159. /^X\(\/\/\)[^/].*/{
  1160. s//\1/
  1161. q
  1162. }
  1163. /^X\(\/\/\)$/{
  1164. s//\1/
  1165. q
  1166. }
  1167. /^X\(\/\).*/{
  1168. s//\1/
  1169. q
  1170. }
  1171. s/.*/./; q'`
  1172. srcdir=$ac_confdir
  1173. if test ! -r "$srcdir/$ac_unique_file"; then
  1174. srcdir=..
  1175. fi
  1176. else
  1177. ac_srcdir_defaulted=no
  1178. fi
  1179. if test ! -r "$srcdir/$ac_unique_file"; then
  1180. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1181. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1182. fi
  1183. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1184. ac_abs_confdir=`(
  1185. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1186. pwd)`
  1187. # When building in place, set srcdir=.
  1188. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1189. srcdir=.
  1190. fi
  1191. # Remove unnecessary trailing slashes from srcdir.
  1192. # Double slashes in file names in object file debugging info
  1193. # mess up M-x gdb in Emacs.
  1194. case $srcdir in
  1195. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1196. esac
  1197. for ac_var in $ac_precious_vars; do
  1198. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1199. eval ac_env_${ac_var}_value=\$${ac_var}
  1200. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1201. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1202. done
  1203. #
  1204. # Report the --help message.
  1205. #
  1206. if test "$ac_init_help" = "long"; then
  1207. # Omit some internal or obsolete options to make the list less imposing.
  1208. # This message is too long to be a string in the A/UX 3.1 sh.
  1209. cat <<_ACEOF
  1210. \`configure' configures klish 1.5.1 to adapt to many kinds of systems.
  1211. Usage: $0 [OPTION]... [VAR=VALUE]...
  1212. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1213. VAR=VALUE. See below for descriptions of some of the useful variables.
  1214. Defaults for the options are specified in brackets.
  1215. Configuration:
  1216. -h, --help display this help and exit
  1217. --help=short display options specific to this package
  1218. --help=recursive display the short help of all the included packages
  1219. -V, --version display version information and exit
  1220. -q, --quiet, --silent do not print \`checking ...' messages
  1221. --cache-file=FILE cache test results in FILE [disabled]
  1222. -C, --config-cache alias for \`--cache-file=config.cache'
  1223. -n, --no-create do not create output files
  1224. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1225. Installation directories:
  1226. --prefix=PREFIX install architecture-independent files in PREFIX
  1227. [$ac_default_prefix]
  1228. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1229. [PREFIX]
  1230. By default, \`make install' will install all the files in
  1231. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1232. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1233. for instance \`--prefix=\$HOME'.
  1234. For better control, use the options below.
  1235. Fine tuning of the installation directories:
  1236. --bindir=DIR user executables [EPREFIX/bin]
  1237. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1238. --libexecdir=DIR program executables [EPREFIX/libexec]
  1239. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1240. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1241. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1242. --libdir=DIR object code libraries [EPREFIX/lib]
  1243. --includedir=DIR C header files [PREFIX/include]
  1244. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1245. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1246. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1247. --infodir=DIR info documentation [DATAROOTDIR/info]
  1248. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1249. --mandir=DIR man documentation [DATAROOTDIR/man]
  1250. --docdir=DIR documentation root [DATAROOTDIR/doc/klish]
  1251. --htmldir=DIR html documentation [DOCDIR]
  1252. --dvidir=DIR dvi documentation [DOCDIR]
  1253. --pdfdir=DIR pdf documentation [DOCDIR]
  1254. --psdir=DIR ps documentation [DOCDIR]
  1255. _ACEOF
  1256. cat <<\_ACEOF
  1257. Program names:
  1258. --program-prefix=PREFIX prepend PREFIX to installed program names
  1259. --program-suffix=SUFFIX append SUFFIX to installed program names
  1260. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1261. System types:
  1262. --build=BUILD configure for building on BUILD [guessed]
  1263. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1264. _ACEOF
  1265. fi
  1266. if test -n "$ac_init_help"; then
  1267. case $ac_init_help in
  1268. short | recursive ) echo "Configuration of klish 1.5.1:";;
  1269. esac
  1270. cat <<\_ACEOF
  1271. Optional Features:
  1272. --disable-option-checking ignore unrecognized --enable/--with options
  1273. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1274. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1275. --enable-shared[=PKGS] build shared libraries [default=yes]
  1276. --enable-static[=PKGS] build static libraries [default=yes]
  1277. --enable-fast-install[=PKGS]
  1278. optimize for fast installation [default=yes]
  1279. --disable-libtool-lock avoid locking (might break parallel builds)
  1280. --disable-dependency-tracking speeds up one-time build
  1281. --enable-dependency-tracking do not reject slow dependency extractors
  1282. --enable-debug Turn on debugging including asserts [default=no]
  1283. --enable-lubheap Replace standard memory libaries with lubheap
  1284. (EXPERIMENTAL) [default=no]
  1285. --enable-gpl Link with GPL licenced libraries [default=yes]
  1286. Optional Packages:
  1287. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1288. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1289. --with-pic try to use only PIC/non-PIC objects [default=use
  1290. both]
  1291. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1292. --with-sysroot=DIR Search for dependent libraries within DIR
  1293. (or the compiler's sysroot if not specified).
  1294. --with-pthread=DIR Use POSIX threads library distribution in DIR
  1295. --with-rt=DIR Use POSIX real time library distribution in DIR
  1296. --with-tcl=DIR Use TCL library distribution in DIR
  1297. Some influential environment variables:
  1298. CC C compiler command
  1299. CFLAGS C compiler flags
  1300. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1301. nonstandard directory <lib dir>
  1302. LIBS libraries to pass to the linker, e.g. -l<library>
  1303. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1304. you have headers in a nonstandard directory <include dir>
  1305. CXX C++ compiler command
  1306. CXXFLAGS C++ compiler flags
  1307. CPP C preprocessor
  1308. CXXCPP C++ preprocessor
  1309. Use these variables to override the choices made by `configure' or to help
  1310. it to find libraries and programs with nonstandard names/locations.
  1311. Report bugs to <serj.kalichev at gmail dot com>.
  1312. _ACEOF
  1313. ac_status=$?
  1314. fi
  1315. if test "$ac_init_help" = "recursive"; then
  1316. # If there are subdirs, report their specific --help.
  1317. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1318. test -d "$ac_dir" ||
  1319. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1320. continue
  1321. ac_builddir=.
  1322. case "$ac_dir" in
  1323. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1324. *)
  1325. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1326. # A ".." for each directory in $ac_dir_suffix.
  1327. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1328. case $ac_top_builddir_sub in
  1329. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1330. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1331. esac ;;
  1332. esac
  1333. ac_abs_top_builddir=$ac_pwd
  1334. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1335. # for backward compatibility:
  1336. ac_top_builddir=$ac_top_build_prefix
  1337. case $srcdir in
  1338. .) # We are building in place.
  1339. ac_srcdir=.
  1340. ac_top_srcdir=$ac_top_builddir_sub
  1341. ac_abs_top_srcdir=$ac_pwd ;;
  1342. [\\/]* | ?:[\\/]* ) # Absolute name.
  1343. ac_srcdir=$srcdir$ac_dir_suffix;
  1344. ac_top_srcdir=$srcdir
  1345. ac_abs_top_srcdir=$srcdir ;;
  1346. *) # Relative name.
  1347. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1348. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1349. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1350. esac
  1351. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1352. cd "$ac_dir" || { ac_status=$?; continue; }
  1353. # Check for guested configure.
  1354. if test -f "$ac_srcdir/configure.gnu"; then
  1355. echo &&
  1356. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1357. elif test -f "$ac_srcdir/configure"; then
  1358. echo &&
  1359. $SHELL "$ac_srcdir/configure" --help=recursive
  1360. else
  1361. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1362. fi || ac_status=$?
  1363. cd "$ac_pwd" || { ac_status=$?; break; }
  1364. done
  1365. fi
  1366. test -n "$ac_init_help" && exit $ac_status
  1367. if $ac_init_version; then
  1368. cat <<\_ACEOF
  1369. klish configure 1.5.1
  1370. generated by GNU Autoconf 2.68
  1371. Copyright (C) 2010 Free Software Foundation, Inc.
  1372. This configure script is free software; the Free Software Foundation
  1373. gives unlimited permission to copy, distribute and modify it.
  1374. _ACEOF
  1375. exit
  1376. fi
  1377. ## ------------------------ ##
  1378. ## Autoconf initialization. ##
  1379. ## ------------------------ ##
  1380. # ac_fn_c_try_compile LINENO
  1381. # --------------------------
  1382. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1383. ac_fn_c_try_compile ()
  1384. {
  1385. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1386. rm -f conftest.$ac_objext
  1387. if { { ac_try="$ac_compile"
  1388. case "(($ac_try" in
  1389. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1390. *) ac_try_echo=$ac_try;;
  1391. esac
  1392. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1393. $as_echo "$ac_try_echo"; } >&5
  1394. (eval "$ac_compile") 2>conftest.err
  1395. ac_status=$?
  1396. if test -s conftest.err; then
  1397. grep -v '^ *+' conftest.err >conftest.er1
  1398. cat conftest.er1 >&5
  1399. mv -f conftest.er1 conftest.err
  1400. fi
  1401. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1402. test $ac_status = 0; } && {
  1403. test -z "$ac_c_werror_flag" ||
  1404. test ! -s conftest.err
  1405. } && test -s conftest.$ac_objext; then :
  1406. ac_retval=0
  1407. else
  1408. $as_echo "$as_me: failed program was:" >&5
  1409. sed 's/^/| /' conftest.$ac_ext >&5
  1410. ac_retval=1
  1411. fi
  1412. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1413. as_fn_set_status $ac_retval
  1414. } # ac_fn_c_try_compile
  1415. # ac_fn_cxx_try_compile LINENO
  1416. # ----------------------------
  1417. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1418. ac_fn_cxx_try_compile ()
  1419. {
  1420. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1421. rm -f conftest.$ac_objext
  1422. if { { ac_try="$ac_compile"
  1423. case "(($ac_try" in
  1424. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1425. *) ac_try_echo=$ac_try;;
  1426. esac
  1427. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1428. $as_echo "$ac_try_echo"; } >&5
  1429. (eval "$ac_compile") 2>conftest.err
  1430. ac_status=$?
  1431. if test -s conftest.err; then
  1432. grep -v '^ *+' conftest.err >conftest.er1
  1433. cat conftest.er1 >&5
  1434. mv -f conftest.er1 conftest.err
  1435. fi
  1436. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1437. test $ac_status = 0; } && {
  1438. test -z "$ac_cxx_werror_flag" ||
  1439. test ! -s conftest.err
  1440. } && test -s conftest.$ac_objext; then :
  1441. ac_retval=0
  1442. else
  1443. $as_echo "$as_me: failed program was:" >&5
  1444. sed 's/^/| /' conftest.$ac_ext >&5
  1445. ac_retval=1
  1446. fi
  1447. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1448. as_fn_set_status $ac_retval
  1449. } # ac_fn_cxx_try_compile
  1450. # ac_fn_c_try_link LINENO
  1451. # -----------------------
  1452. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1453. ac_fn_c_try_link ()
  1454. {
  1455. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1456. rm -f conftest.$ac_objext conftest$ac_exeext
  1457. if { { ac_try="$ac_link"
  1458. case "(($ac_try" in
  1459. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1460. *) ac_try_echo=$ac_try;;
  1461. esac
  1462. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1463. $as_echo "$ac_try_echo"; } >&5
  1464. (eval "$ac_link") 2>conftest.err
  1465. ac_status=$?
  1466. if test -s conftest.err; then
  1467. grep -v '^ *+' conftest.err >conftest.er1
  1468. cat conftest.er1 >&5
  1469. mv -f conftest.er1 conftest.err
  1470. fi
  1471. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1472. test $ac_status = 0; } && {
  1473. test -z "$ac_c_werror_flag" ||
  1474. test ! -s conftest.err
  1475. } && test -s conftest$ac_exeext && {
  1476. test "$cross_compiling" = yes ||
  1477. $as_test_x conftest$ac_exeext
  1478. }; then :
  1479. ac_retval=0
  1480. else
  1481. $as_echo "$as_me: failed program was:" >&5
  1482. sed 's/^/| /' conftest.$ac_ext >&5
  1483. ac_retval=1
  1484. fi
  1485. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1486. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1487. # interfere with the next link command; also delete a directory that is
  1488. # left behind by Apple's compiler. We do this before executing the actions.
  1489. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1490. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1491. as_fn_set_status $ac_retval
  1492. } # ac_fn_c_try_link
  1493. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1494. # -------------------------------------------------------
  1495. # Tests whether HEADER exists and can be compiled using the include files in
  1496. # INCLUDES, setting the cache variable VAR accordingly.
  1497. ac_fn_c_check_header_compile ()
  1498. {
  1499. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1501. $as_echo_n "checking for $2... " >&6; }
  1502. if eval \${$3+:} false; then :
  1503. $as_echo_n "(cached) " >&6
  1504. else
  1505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1506. /* end confdefs.h. */
  1507. $4
  1508. #include <$2>
  1509. _ACEOF
  1510. if ac_fn_c_try_compile "$LINENO"; then :
  1511. eval "$3=yes"
  1512. else
  1513. eval "$3=no"
  1514. fi
  1515. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1516. fi
  1517. eval ac_res=\$$3
  1518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1519. $as_echo "$ac_res" >&6; }
  1520. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1521. } # ac_fn_c_check_header_compile
  1522. # ac_fn_c_try_cpp LINENO
  1523. # ----------------------
  1524. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1525. ac_fn_c_try_cpp ()
  1526. {
  1527. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1528. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1529. case "(($ac_try" in
  1530. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1531. *) ac_try_echo=$ac_try;;
  1532. esac
  1533. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1534. $as_echo "$ac_try_echo"; } >&5
  1535. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1536. ac_status=$?
  1537. if test -s conftest.err; then
  1538. grep -v '^ *+' conftest.err >conftest.er1
  1539. cat conftest.er1 >&5
  1540. mv -f conftest.er1 conftest.err
  1541. fi
  1542. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1543. test $ac_status = 0; } > conftest.i && {
  1544. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1545. test ! -s conftest.err
  1546. }; then :
  1547. ac_retval=0
  1548. else
  1549. $as_echo "$as_me: failed program was:" >&5
  1550. sed 's/^/| /' conftest.$ac_ext >&5
  1551. ac_retval=1
  1552. fi
  1553. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1554. as_fn_set_status $ac_retval
  1555. } # ac_fn_c_try_cpp
  1556. # ac_fn_c_try_run LINENO
  1557. # ----------------------
  1558. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1559. # that executables *can* be run.
  1560. ac_fn_c_try_run ()
  1561. {
  1562. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1563. if { { ac_try="$ac_link"
  1564. case "(($ac_try" in
  1565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1566. *) ac_try_echo=$ac_try;;
  1567. esac
  1568. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1569. $as_echo "$ac_try_echo"; } >&5
  1570. (eval "$ac_link") 2>&5
  1571. ac_status=$?
  1572. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1573. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1574. { { case "(($ac_try" in
  1575. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1576. *) ac_try_echo=$ac_try;;
  1577. esac
  1578. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1579. $as_echo "$ac_try_echo"; } >&5
  1580. (eval "$ac_try") 2>&5
  1581. ac_status=$?
  1582. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1583. test $ac_status = 0; }; }; then :
  1584. ac_retval=0
  1585. else
  1586. $as_echo "$as_me: program exited with status $ac_status" >&5
  1587. $as_echo "$as_me: failed program was:" >&5
  1588. sed 's/^/| /' conftest.$ac_ext >&5
  1589. ac_retval=$ac_status
  1590. fi
  1591. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1592. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1593. as_fn_set_status $ac_retval
  1594. } # ac_fn_c_try_run
  1595. # ac_fn_c_check_func LINENO FUNC VAR
  1596. # ----------------------------------
  1597. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1598. ac_fn_c_check_func ()
  1599. {
  1600. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1602. $as_echo_n "checking for $2... " >&6; }
  1603. if eval \${$3+:} false; then :
  1604. $as_echo_n "(cached) " >&6
  1605. else
  1606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1607. /* end confdefs.h. */
  1608. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1609. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1610. #define $2 innocuous_$2
  1611. /* System header to define __stub macros and hopefully few prototypes,
  1612. which can conflict with char $2 (); below.
  1613. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1614. <limits.h> exists even on freestanding compilers. */
  1615. #ifdef __STDC__
  1616. # include <limits.h>
  1617. #else
  1618. # include <assert.h>
  1619. #endif
  1620. #undef $2
  1621. /* Override any GCC internal prototype to avoid an error.
  1622. Use char because int might match the return type of a GCC
  1623. builtin and then its argument prototype would still apply. */
  1624. #ifdef __cplusplus
  1625. extern "C"
  1626. #endif
  1627. char $2 ();
  1628. /* The GNU C library defines this for functions which it implements
  1629. to always fail with ENOSYS. Some functions are actually named
  1630. something starting with __ and the normal name is an alias. */
  1631. #if defined __stub_$2 || defined __stub___$2
  1632. choke me
  1633. #endif
  1634. int
  1635. main ()
  1636. {
  1637. return $2 ();
  1638. ;
  1639. return 0;
  1640. }
  1641. _ACEOF
  1642. if ac_fn_c_try_link "$LINENO"; then :
  1643. eval "$3=yes"
  1644. else
  1645. eval "$3=no"
  1646. fi
  1647. rm -f core conftest.err conftest.$ac_objext \
  1648. conftest$ac_exeext conftest.$ac_ext
  1649. fi
  1650. eval ac_res=\$$3
  1651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1652. $as_echo "$ac_res" >&6; }
  1653. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1654. } # ac_fn_c_check_func
  1655. # ac_fn_cxx_try_cpp LINENO
  1656. # ------------------------
  1657. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1658. ac_fn_cxx_try_cpp ()
  1659. {
  1660. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1661. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1662. case "(($ac_try" in
  1663. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1664. *) ac_try_echo=$ac_try;;
  1665. esac
  1666. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1667. $as_echo "$ac_try_echo"; } >&5
  1668. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1669. ac_status=$?
  1670. if test -s conftest.err; then
  1671. grep -v '^ *+' conftest.err >conftest.er1
  1672. cat conftest.er1 >&5
  1673. mv -f conftest.er1 conftest.err
  1674. fi
  1675. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1676. test $ac_status = 0; } > conftest.i && {
  1677. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1678. test ! -s conftest.err
  1679. }; then :
  1680. ac_retval=0
  1681. else
  1682. $as_echo "$as_me: failed program was:" >&5
  1683. sed 's/^/| /' conftest.$ac_ext >&5
  1684. ac_retval=1
  1685. fi
  1686. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1687. as_fn_set_status $ac_retval
  1688. } # ac_fn_cxx_try_cpp
  1689. # ac_fn_cxx_try_link LINENO
  1690. # -------------------------
  1691. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1692. ac_fn_cxx_try_link ()
  1693. {
  1694. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1695. rm -f conftest.$ac_objext conftest$ac_exeext
  1696. if { { ac_try="$ac_link"
  1697. case "(($ac_try" in
  1698. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1699. *) ac_try_echo=$ac_try;;
  1700. esac
  1701. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1702. $as_echo "$ac_try_echo"; } >&5
  1703. (eval "$ac_link") 2>conftest.err
  1704. ac_status=$?
  1705. if test -s conftest.err; then
  1706. grep -v '^ *+' conftest.err >conftest.er1
  1707. cat conftest.er1 >&5
  1708. mv -f conftest.er1 conftest.err
  1709. fi
  1710. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1711. test $ac_status = 0; } && {
  1712. test -z "$ac_cxx_werror_flag" ||
  1713. test ! -s conftest.err
  1714. } && test -s conftest$ac_exeext && {
  1715. test "$cross_compiling" = yes ||
  1716. $as_test_x conftest$ac_exeext
  1717. }; then :
  1718. ac_retval=0
  1719. else
  1720. $as_echo "$as_me: failed program was:" >&5
  1721. sed 's/^/| /' conftest.$ac_ext >&5
  1722. ac_retval=1
  1723. fi
  1724. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1725. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1726. # interfere with the next link command; also delete a directory that is
  1727. # left behind by Apple's compiler. We do this before executing the actions.
  1728. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1729. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1730. as_fn_set_status $ac_retval
  1731. } # ac_fn_cxx_try_link
  1732. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1733. # --------------------------------------------
  1734. # Tries to find the compile-time value of EXPR in a program that includes
  1735. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1736. # computed
  1737. ac_fn_c_compute_int ()
  1738. {
  1739. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1740. if test "$cross_compiling" = yes; then
  1741. # Depending upon the size, compute the lo and hi bounds.
  1742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1743. /* end confdefs.h. */
  1744. $4
  1745. int
  1746. main ()
  1747. {
  1748. static int test_array [1 - 2 * !(($2) >= 0)];
  1749. test_array [0] = 0
  1750. ;
  1751. return 0;
  1752. }
  1753. _ACEOF
  1754. if ac_fn_c_try_compile "$LINENO"; then :
  1755. ac_lo=0 ac_mid=0
  1756. while :; do
  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) <= $ac_mid)];
  1764. test_array [0] = 0
  1765. ;
  1766. return 0;
  1767. }
  1768. _ACEOF
  1769. if ac_fn_c_try_compile "$LINENO"; then :
  1770. ac_hi=$ac_mid; break
  1771. else
  1772. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1773. if test $ac_lo -le $ac_mid; then
  1774. ac_lo= ac_hi=
  1775. break
  1776. fi
  1777. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1778. fi
  1779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1780. done
  1781. else
  1782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1783. /* end confdefs.h. */
  1784. $4
  1785. int
  1786. main ()
  1787. {
  1788. static int test_array [1 - 2 * !(($2) < 0)];
  1789. test_array [0] = 0
  1790. ;
  1791. return 0;
  1792. }
  1793. _ACEOF
  1794. if ac_fn_c_try_compile "$LINENO"; then :
  1795. ac_hi=-1 ac_mid=-1
  1796. while :; do
  1797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1798. /* end confdefs.h. */
  1799. $4
  1800. int
  1801. main ()
  1802. {
  1803. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1804. test_array [0] = 0
  1805. ;
  1806. return 0;
  1807. }
  1808. _ACEOF
  1809. if ac_fn_c_try_compile "$LINENO"; then :
  1810. ac_lo=$ac_mid; break
  1811. else
  1812. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1813. if test $ac_mid -le $ac_hi; then
  1814. ac_lo= ac_hi=
  1815. break
  1816. fi
  1817. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1818. fi
  1819. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1820. done
  1821. else
  1822. ac_lo= ac_hi=
  1823. fi
  1824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1825. fi
  1826. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1827. # Binary search between lo and hi bounds.
  1828. while test "x$ac_lo" != "x$ac_hi"; do
  1829. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1831. /* end confdefs.h. */
  1832. $4
  1833. int
  1834. main ()
  1835. {
  1836. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1837. test_array [0] = 0
  1838. ;
  1839. return 0;
  1840. }
  1841. _ACEOF
  1842. if ac_fn_c_try_compile "$LINENO"; then :
  1843. ac_hi=$ac_mid
  1844. else
  1845. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1846. fi
  1847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1848. done
  1849. case $ac_lo in #((
  1850. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1851. '') ac_retval=1 ;;
  1852. esac
  1853. else
  1854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1855. /* end confdefs.h. */
  1856. $4
  1857. static long int longval () { return $2; }
  1858. static unsigned long int ulongval () { return $2; }
  1859. #include <stdio.h>
  1860. #include <stdlib.h>
  1861. int
  1862. main ()
  1863. {
  1864. FILE *f = fopen ("conftest.val", "w");
  1865. if (! f)
  1866. return 1;
  1867. if (($2) < 0)
  1868. {
  1869. long int i = longval ();
  1870. if (i != ($2))
  1871. return 1;
  1872. fprintf (f, "%ld", i);
  1873. }
  1874. else
  1875. {
  1876. unsigned long int i = ulongval ();
  1877. if (i != ($2))
  1878. return 1;
  1879. fprintf (f, "%lu", i);
  1880. }
  1881. /* Do not output a trailing newline, as this causes \r\n confusion
  1882. on some platforms. */
  1883. return ferror (f) || fclose (f) != 0;
  1884. ;
  1885. return 0;
  1886. }
  1887. _ACEOF
  1888. if ac_fn_c_try_run "$LINENO"; then :
  1889. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1890. else
  1891. ac_retval=1
  1892. fi
  1893. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1894. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1895. rm -f conftest.val
  1896. fi
  1897. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1898. as_fn_set_status $ac_retval
  1899. } # ac_fn_c_compute_int
  1900. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1901. # -------------------------------------------------------
  1902. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1903. # the include files in INCLUDES and setting the cache variable VAR
  1904. # accordingly.
  1905. ac_fn_c_check_header_mongrel ()
  1906. {
  1907. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1908. if eval \${$3+:} false; then :
  1909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1910. $as_echo_n "checking for $2... " >&6; }
  1911. if eval \${$3+:} false; then :
  1912. $as_echo_n "(cached) " >&6
  1913. fi
  1914. eval ac_res=\$$3
  1915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1916. $as_echo "$ac_res" >&6; }
  1917. else
  1918. # Is the header compilable?
  1919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1920. $as_echo_n "checking $2 usability... " >&6; }
  1921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1922. /* end confdefs.h. */
  1923. $4
  1924. #include <$2>
  1925. _ACEOF
  1926. if ac_fn_c_try_compile "$LINENO"; then :
  1927. ac_header_compiler=yes
  1928. else
  1929. ac_header_compiler=no
  1930. fi
  1931. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1933. $as_echo "$ac_header_compiler" >&6; }
  1934. # Is the header present?
  1935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1936. $as_echo_n "checking $2 presence... " >&6; }
  1937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1938. /* end confdefs.h. */
  1939. #include <$2>
  1940. _ACEOF
  1941. if ac_fn_c_try_cpp "$LINENO"; then :
  1942. ac_header_preproc=yes
  1943. else
  1944. ac_header_preproc=no
  1945. fi
  1946. rm -f conftest.err conftest.i conftest.$ac_ext
  1947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1948. $as_echo "$ac_header_preproc" >&6; }
  1949. # So? What about this header?
  1950. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1951. yes:no: )
  1952. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1953. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1954. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1955. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1956. ;;
  1957. no:yes:* )
  1958. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1959. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1960. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1961. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1962. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1963. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1964. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1965. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1966. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1967. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1968. ( $as_echo "## --------------------------------------------- ##
  1969. ## Report this to serj.kalichev at gmail dot com ##
  1970. ## --------------------------------------------- ##"
  1971. ) | sed "s/^/$as_me: WARNING: /" >&2
  1972. ;;
  1973. esac
  1974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1975. $as_echo_n "checking for $2... " >&6; }
  1976. if eval \${$3+:} false; then :
  1977. $as_echo_n "(cached) " >&6
  1978. else
  1979. eval "$3=\$ac_header_compiler"
  1980. fi
  1981. eval ac_res=\$$3
  1982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1983. $as_echo "$ac_res" >&6; }
  1984. fi
  1985. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1986. } # ac_fn_c_check_header_mongrel
  1987. cat >config.log <<_ACEOF
  1988. This file contains any messages produced by compilers while
  1989. running configure, to aid debugging if configure makes a mistake.
  1990. It was created by klish $as_me 1.5.1, which was
  1991. generated by GNU Autoconf 2.68. Invocation command line was
  1992. $ $0 $@
  1993. _ACEOF
  1994. exec 5>>config.log
  1995. {
  1996. cat <<_ASUNAME
  1997. ## --------- ##
  1998. ## Platform. ##
  1999. ## --------- ##
  2000. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2001. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2002. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2003. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2004. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2005. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2006. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2007. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2008. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2009. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2010. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2011. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2012. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2013. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2014. _ASUNAME
  2015. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2016. for as_dir in $PATH
  2017. do
  2018. IFS=$as_save_IFS
  2019. test -z "$as_dir" && as_dir=.
  2020. $as_echo "PATH: $as_dir"
  2021. done
  2022. IFS=$as_save_IFS
  2023. } >&5
  2024. cat >&5 <<_ACEOF
  2025. ## ----------- ##
  2026. ## Core tests. ##
  2027. ## ----------- ##
  2028. _ACEOF
  2029. # Keep a trace of the command line.
  2030. # Strip out --no-create and --no-recursion so they do not pile up.
  2031. # Strip out --silent because we don't want to record it for future runs.
  2032. # Also quote any args containing shell meta-characters.
  2033. # Make two passes to allow for proper duplicate-argument suppression.
  2034. ac_configure_args=
  2035. ac_configure_args0=
  2036. ac_configure_args1=
  2037. ac_must_keep_next=false
  2038. for ac_pass in 1 2
  2039. do
  2040. for ac_arg
  2041. do
  2042. case $ac_arg in
  2043. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2044. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2045. | -silent | --silent | --silen | --sile | --sil)
  2046. continue ;;
  2047. *\'*)
  2048. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2049. esac
  2050. case $ac_pass in
  2051. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2052. 2)
  2053. as_fn_append ac_configure_args1 " '$ac_arg'"
  2054. if test $ac_must_keep_next = true; then
  2055. ac_must_keep_next=false # Got value, back to normal.
  2056. else
  2057. case $ac_arg in
  2058. *=* | --config-cache | -C | -disable-* | --disable-* \
  2059. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2060. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2061. | -with-* | --with-* | -without-* | --without-* | --x)
  2062. case "$ac_configure_args0 " in
  2063. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2064. esac
  2065. ;;
  2066. -* ) ac_must_keep_next=true ;;
  2067. esac
  2068. fi
  2069. as_fn_append ac_configure_args " '$ac_arg'"
  2070. ;;
  2071. esac
  2072. done
  2073. done
  2074. { ac_configure_args0=; unset ac_configure_args0;}
  2075. { ac_configure_args1=; unset ac_configure_args1;}
  2076. # When interrupted or exit'd, cleanup temporary files, and complete
  2077. # config.log. We remove comments because anyway the quotes in there
  2078. # would cause problems or look ugly.
  2079. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2080. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2081. trap 'exit_status=$?
  2082. # Save into config.log some information that might help in debugging.
  2083. {
  2084. echo
  2085. $as_echo "## ---------------- ##
  2086. ## Cache variables. ##
  2087. ## ---------------- ##"
  2088. echo
  2089. # The following way of writing the cache mishandles newlines in values,
  2090. (
  2091. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2092. eval ac_val=\$$ac_var
  2093. case $ac_val in #(
  2094. *${as_nl}*)
  2095. case $ac_var in #(
  2096. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2097. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2098. esac
  2099. case $ac_var in #(
  2100. _ | IFS | as_nl) ;; #(
  2101. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2102. *) { eval $ac_var=; unset $ac_var;} ;;
  2103. esac ;;
  2104. esac
  2105. done
  2106. (set) 2>&1 |
  2107. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2108. *${as_nl}ac_space=\ *)
  2109. sed -n \
  2110. "s/'\''/'\''\\\\'\'''\''/g;
  2111. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2112. ;; #(
  2113. *)
  2114. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2115. ;;
  2116. esac |
  2117. sort
  2118. )
  2119. echo
  2120. $as_echo "## ----------------- ##
  2121. ## Output variables. ##
  2122. ## ----------------- ##"
  2123. echo
  2124. for ac_var in $ac_subst_vars
  2125. do
  2126. eval ac_val=\$$ac_var
  2127. case $ac_val in
  2128. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2129. esac
  2130. $as_echo "$ac_var='\''$ac_val'\''"
  2131. done | sort
  2132. echo
  2133. if test -n "$ac_subst_files"; then
  2134. $as_echo "## ------------------- ##
  2135. ## File substitutions. ##
  2136. ## ------------------- ##"
  2137. echo
  2138. for ac_var in $ac_subst_files
  2139. do
  2140. eval ac_val=\$$ac_var
  2141. case $ac_val in
  2142. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2143. esac
  2144. $as_echo "$ac_var='\''$ac_val'\''"
  2145. done | sort
  2146. echo
  2147. fi
  2148. if test -s confdefs.h; then
  2149. $as_echo "## ----------- ##
  2150. ## confdefs.h. ##
  2151. ## ----------- ##"
  2152. echo
  2153. cat confdefs.h
  2154. echo
  2155. fi
  2156. test "$ac_signal" != 0 &&
  2157. $as_echo "$as_me: caught signal $ac_signal"
  2158. $as_echo "$as_me: exit $exit_status"
  2159. } >&5
  2160. rm -f core *.core core.conftest.* &&
  2161. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2162. exit $exit_status
  2163. ' 0
  2164. for ac_signal in 1 2 13 15; do
  2165. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2166. done
  2167. ac_signal=0
  2168. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2169. rm -f -r conftest* confdefs.h
  2170. $as_echo "/* confdefs.h */" > confdefs.h
  2171. # Predefined preprocessor variables.
  2172. cat >>confdefs.h <<_ACEOF
  2173. #define PACKAGE_NAME "$PACKAGE_NAME"
  2174. _ACEOF
  2175. cat >>confdefs.h <<_ACEOF
  2176. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2177. _ACEOF
  2178. cat >>confdefs.h <<_ACEOF
  2179. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2180. _ACEOF
  2181. cat >>confdefs.h <<_ACEOF
  2182. #define PACKAGE_STRING "$PACKAGE_STRING"
  2183. _ACEOF
  2184. cat >>confdefs.h <<_ACEOF
  2185. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2186. _ACEOF
  2187. cat >>confdefs.h <<_ACEOF
  2188. #define PACKAGE_URL "$PACKAGE_URL"
  2189. _ACEOF
  2190. # Let the site file select an alternate cache file if it wants to.
  2191. # Prefer an explicitly selected file to automatically selected ones.
  2192. ac_site_file1=NONE
  2193. ac_site_file2=NONE
  2194. if test -n "$CONFIG_SITE"; then
  2195. # We do not want a PATH search for config.site.
  2196. case $CONFIG_SITE in #((
  2197. -*) ac_site_file1=./$CONFIG_SITE;;
  2198. */*) ac_site_file1=$CONFIG_SITE;;
  2199. *) ac_site_file1=./$CONFIG_SITE;;
  2200. esac
  2201. elif test "x$prefix" != xNONE; then
  2202. ac_site_file1=$prefix/share/config.site
  2203. ac_site_file2=$prefix/etc/config.site
  2204. else
  2205. ac_site_file1=$ac_default_prefix/share/config.site
  2206. ac_site_file2=$ac_default_prefix/etc/config.site
  2207. fi
  2208. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2209. do
  2210. test "x$ac_site_file" = xNONE && continue
  2211. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2212. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2213. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2214. sed 's/^/| /' "$ac_site_file" >&5
  2215. . "$ac_site_file" \
  2216. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2217. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2218. as_fn_error $? "failed to load site script $ac_site_file
  2219. See \`config.log' for more details" "$LINENO" 5; }
  2220. fi
  2221. done
  2222. if test -r "$cache_file"; then
  2223. # Some versions of bash will fail to source /dev/null (special files
  2224. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2225. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2226. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2227. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2228. case $cache_file in
  2229. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2230. *) . "./$cache_file";;
  2231. esac
  2232. fi
  2233. else
  2234. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2235. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2236. >$cache_file
  2237. fi
  2238. # Check that the precious variables saved in the cache have kept the same
  2239. # value.
  2240. ac_cache_corrupted=false
  2241. for ac_var in $ac_precious_vars; do
  2242. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2243. eval ac_new_set=\$ac_env_${ac_var}_set
  2244. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2245. eval ac_new_val=\$ac_env_${ac_var}_value
  2246. case $ac_old_set,$ac_new_set in
  2247. set,)
  2248. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2249. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2250. ac_cache_corrupted=: ;;
  2251. ,set)
  2252. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2253. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2254. ac_cache_corrupted=: ;;
  2255. ,);;
  2256. *)
  2257. if test "x$ac_old_val" != "x$ac_new_val"; then
  2258. # differences in whitespace do not lead to failure.
  2259. ac_old_val_w=`echo x $ac_old_val`
  2260. ac_new_val_w=`echo x $ac_new_val`
  2261. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2262. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2263. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2264. ac_cache_corrupted=:
  2265. else
  2266. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2267. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2268. eval $ac_var=\$ac_old_val
  2269. fi
  2270. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2271. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2272. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2273. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2274. fi;;
  2275. esac
  2276. # Pass precious variables to config.status.
  2277. if test "$ac_new_set" = set; then
  2278. case $ac_new_val in
  2279. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2280. *) ac_arg=$ac_var=$ac_new_val ;;
  2281. esac
  2282. case " $ac_configure_args " in
  2283. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2284. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2285. esac
  2286. fi
  2287. done
  2288. if $ac_cache_corrupted; then
  2289. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2290. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2291. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2292. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2293. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2294. fi
  2295. ## -------------------- ##
  2296. ## Main body of script. ##
  2297. ## -------------------- ##
  2298. ac_ext=c
  2299. ac_cpp='$CPP $CPPFLAGS'
  2300. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2301. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2302. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2303. ac_aux_dir=
  2304. for ac_dir in aux_scripts "$srcdir"/aux_scripts; do
  2305. if test -f "$ac_dir/install-sh"; then
  2306. ac_aux_dir=$ac_dir
  2307. ac_install_sh="$ac_aux_dir/install-sh -c"
  2308. break
  2309. elif test -f "$ac_dir/install.sh"; then
  2310. ac_aux_dir=$ac_dir
  2311. ac_install_sh="$ac_aux_dir/install.sh -c"
  2312. break
  2313. elif test -f "$ac_dir/shtool"; then
  2314. ac_aux_dir=$ac_dir
  2315. ac_install_sh="$ac_aux_dir/shtool install -c"
  2316. break
  2317. fi
  2318. done
  2319. if test -z "$ac_aux_dir"; then
  2320. as_fn_error $? "cannot find install-sh, install.sh, or shtool in aux_scripts \"$srcdir\"/aux_scripts" "$LINENO" 5
  2321. fi
  2322. # These three variables are undocumented and unsupported,
  2323. # and are intended to be withdrawn in a future Autoconf release.
  2324. # They can cause serious problems if a builder's source tree is in a directory
  2325. # whose full name contains unusual characters.
  2326. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2327. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2328. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2329. # Checks for programs.
  2330. ac_ext=c
  2331. ac_cpp='$CPP $CPPFLAGS'
  2332. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2333. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2334. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2335. if test -n "$ac_tool_prefix"; then
  2336. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2337. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2339. $as_echo_n "checking for $ac_word... " >&6; }
  2340. if ${ac_cv_prog_CC+:} false; then :
  2341. $as_echo_n "(cached) " >&6
  2342. else
  2343. if test -n "$CC"; then
  2344. ac_cv_prog_CC="$CC" # Let the user override the test.
  2345. else
  2346. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2347. for as_dir in $PATH
  2348. do
  2349. IFS=$as_save_IFS
  2350. test -z "$as_dir" && as_dir=.
  2351. for ac_exec_ext in '' $ac_executable_extensions; do
  2352. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2353. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2354. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2355. break 2
  2356. fi
  2357. done
  2358. done
  2359. IFS=$as_save_IFS
  2360. fi
  2361. fi
  2362. CC=$ac_cv_prog_CC
  2363. if test -n "$CC"; then
  2364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2365. $as_echo "$CC" >&6; }
  2366. else
  2367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2368. $as_echo "no" >&6; }
  2369. fi
  2370. fi
  2371. if test -z "$ac_cv_prog_CC"; then
  2372. ac_ct_CC=$CC
  2373. # Extract the first word of "gcc", so it can be a program name with args.
  2374. set dummy gcc; ac_word=$2
  2375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2376. $as_echo_n "checking for $ac_word... " >&6; }
  2377. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2378. $as_echo_n "(cached) " >&6
  2379. else
  2380. if test -n "$ac_ct_CC"; then
  2381. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2382. else
  2383. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2384. for as_dir in $PATH
  2385. do
  2386. IFS=$as_save_IFS
  2387. test -z "$as_dir" && as_dir=.
  2388. for ac_exec_ext in '' $ac_executable_extensions; do
  2389. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2390. ac_cv_prog_ac_ct_CC="gcc"
  2391. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2392. break 2
  2393. fi
  2394. done
  2395. done
  2396. IFS=$as_save_IFS
  2397. fi
  2398. fi
  2399. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2400. if test -n "$ac_ct_CC"; then
  2401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2402. $as_echo "$ac_ct_CC" >&6; }
  2403. else
  2404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2405. $as_echo "no" >&6; }
  2406. fi
  2407. if test "x$ac_ct_CC" = x; then
  2408. CC=""
  2409. else
  2410. case $cross_compiling:$ac_tool_warned in
  2411. yes:)
  2412. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2413. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2414. ac_tool_warned=yes ;;
  2415. esac
  2416. CC=$ac_ct_CC
  2417. fi
  2418. else
  2419. CC="$ac_cv_prog_CC"
  2420. fi
  2421. if test -z "$CC"; then
  2422. if test -n "$ac_tool_prefix"; then
  2423. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2424. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2426. $as_echo_n "checking for $ac_word... " >&6; }
  2427. if ${ac_cv_prog_CC+:} false; then :
  2428. $as_echo_n "(cached) " >&6
  2429. else
  2430. if test -n "$CC"; then
  2431. ac_cv_prog_CC="$CC" # Let the user override the test.
  2432. else
  2433. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2434. for as_dir in $PATH
  2435. do
  2436. IFS=$as_save_IFS
  2437. test -z "$as_dir" && as_dir=.
  2438. for ac_exec_ext in '' $ac_executable_extensions; do
  2439. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2440. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2441. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2442. break 2
  2443. fi
  2444. done
  2445. done
  2446. IFS=$as_save_IFS
  2447. fi
  2448. fi
  2449. CC=$ac_cv_prog_CC
  2450. if test -n "$CC"; then
  2451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2452. $as_echo "$CC" >&6; }
  2453. else
  2454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2455. $as_echo "no" >&6; }
  2456. fi
  2457. fi
  2458. fi
  2459. if test -z "$CC"; then
  2460. # Extract the first word of "cc", so it can be a program name with args.
  2461. set dummy cc; ac_word=$2
  2462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2463. $as_echo_n "checking for $ac_word... " >&6; }
  2464. if ${ac_cv_prog_CC+:} false; then :
  2465. $as_echo_n "(cached) " >&6
  2466. else
  2467. if test -n "$CC"; then
  2468. ac_cv_prog_CC="$CC" # Let the user override the test.
  2469. else
  2470. ac_prog_rejected=no
  2471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2472. for as_dir in $PATH
  2473. do
  2474. IFS=$as_save_IFS
  2475. test -z "$as_dir" && as_dir=.
  2476. for ac_exec_ext in '' $ac_executable_extensions; do
  2477. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2478. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2479. ac_prog_rejected=yes
  2480. continue
  2481. fi
  2482. ac_cv_prog_CC="cc"
  2483. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2484. break 2
  2485. fi
  2486. done
  2487. done
  2488. IFS=$as_save_IFS
  2489. if test $ac_prog_rejected = yes; then
  2490. # We found a bogon in the path, so make sure we never use it.
  2491. set dummy $ac_cv_prog_CC
  2492. shift
  2493. if test $# != 0; then
  2494. # We chose a different compiler from the bogus one.
  2495. # However, it has the same basename, so the bogon will be chosen
  2496. # first if we set CC to just the basename; use the full file name.
  2497. shift
  2498. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2499. fi
  2500. fi
  2501. fi
  2502. fi
  2503. CC=$ac_cv_prog_CC
  2504. if test -n "$CC"; then
  2505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2506. $as_echo "$CC" >&6; }
  2507. else
  2508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2509. $as_echo "no" >&6; }
  2510. fi
  2511. fi
  2512. if test -z "$CC"; then
  2513. if test -n "$ac_tool_prefix"; then
  2514. for ac_prog in cl.exe
  2515. do
  2516. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2517. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2519. $as_echo_n "checking for $ac_word... " >&6; }
  2520. if ${ac_cv_prog_CC+:} false; then :
  2521. $as_echo_n "(cached) " >&6
  2522. else
  2523. if test -n "$CC"; then
  2524. ac_cv_prog_CC="$CC" # Let the user override the test.
  2525. else
  2526. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2527. for as_dir in $PATH
  2528. do
  2529. IFS=$as_save_IFS
  2530. test -z "$as_dir" && as_dir=.
  2531. for ac_exec_ext in '' $ac_executable_extensions; do
  2532. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2533. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2534. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2535. break 2
  2536. fi
  2537. done
  2538. done
  2539. IFS=$as_save_IFS
  2540. fi
  2541. fi
  2542. CC=$ac_cv_prog_CC
  2543. if test -n "$CC"; then
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2545. $as_echo "$CC" >&6; }
  2546. else
  2547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2548. $as_echo "no" >&6; }
  2549. fi
  2550. test -n "$CC" && break
  2551. done
  2552. fi
  2553. if test -z "$CC"; then
  2554. ac_ct_CC=$CC
  2555. for ac_prog in cl.exe
  2556. do
  2557. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2558. set dummy $ac_prog; ac_word=$2
  2559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2560. $as_echo_n "checking for $ac_word... " >&6; }
  2561. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2562. $as_echo_n "(cached) " >&6
  2563. else
  2564. if test -n "$ac_ct_CC"; then
  2565. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2566. else
  2567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2568. for as_dir in $PATH
  2569. do
  2570. IFS=$as_save_IFS
  2571. test -z "$as_dir" && as_dir=.
  2572. for ac_exec_ext in '' $ac_executable_extensions; do
  2573. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2574. ac_cv_prog_ac_ct_CC="$ac_prog"
  2575. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2576. break 2
  2577. fi
  2578. done
  2579. done
  2580. IFS=$as_save_IFS
  2581. fi
  2582. fi
  2583. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2584. if test -n "$ac_ct_CC"; then
  2585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2586. $as_echo "$ac_ct_CC" >&6; }
  2587. else
  2588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2589. $as_echo "no" >&6; }
  2590. fi
  2591. test -n "$ac_ct_CC" && break
  2592. done
  2593. if test "x$ac_ct_CC" = x; then
  2594. CC=""
  2595. else
  2596. case $cross_compiling:$ac_tool_warned in
  2597. yes:)
  2598. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2599. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2600. ac_tool_warned=yes ;;
  2601. esac
  2602. CC=$ac_ct_CC
  2603. fi
  2604. fi
  2605. fi
  2606. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2607. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2608. as_fn_error $? "no acceptable C compiler found in \$PATH
  2609. See \`config.log' for more details" "$LINENO" 5; }
  2610. # Provide some information about the compiler.
  2611. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2612. set X $ac_compile
  2613. ac_compiler=$2
  2614. for ac_option in --version -v -V -qversion; do
  2615. { { ac_try="$ac_compiler $ac_option >&5"
  2616. case "(($ac_try" in
  2617. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2618. *) ac_try_echo=$ac_try;;
  2619. esac
  2620. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2621. $as_echo "$ac_try_echo"; } >&5
  2622. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2623. ac_status=$?
  2624. if test -s conftest.err; then
  2625. sed '10a\
  2626. ... rest of stderr output deleted ...
  2627. 10q' conftest.err >conftest.er1
  2628. cat conftest.er1 >&5
  2629. fi
  2630. rm -f conftest.er1 conftest.err
  2631. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2632. test $ac_status = 0; }
  2633. done
  2634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2635. /* end confdefs.h. */
  2636. int
  2637. main ()
  2638. {
  2639. ;
  2640. return 0;
  2641. }
  2642. _ACEOF
  2643. ac_clean_files_save=$ac_clean_files
  2644. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2645. # Try to create an executable without -o first, disregard a.out.
  2646. # It will help us diagnose broken compilers, and finding out an intuition
  2647. # of exeext.
  2648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2649. $as_echo_n "checking whether the C compiler works... " >&6; }
  2650. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2651. # The possible output files:
  2652. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2653. ac_rmfiles=
  2654. for ac_file in $ac_files
  2655. do
  2656. case $ac_file in
  2657. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2658. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2659. esac
  2660. done
  2661. rm -f $ac_rmfiles
  2662. if { { ac_try="$ac_link_default"
  2663. case "(($ac_try" in
  2664. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2665. *) ac_try_echo=$ac_try;;
  2666. esac
  2667. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2668. $as_echo "$ac_try_echo"; } >&5
  2669. (eval "$ac_link_default") 2>&5
  2670. ac_status=$?
  2671. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2672. test $ac_status = 0; }; then :
  2673. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2674. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2675. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2676. # so that the user can short-circuit this test for compilers unknown to
  2677. # Autoconf.
  2678. for ac_file in $ac_files ''
  2679. do
  2680. test -f "$ac_file" || continue
  2681. case $ac_file in
  2682. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2683. ;;
  2684. [ab].out )
  2685. # We found the default executable, but exeext='' is most
  2686. # certainly right.
  2687. break;;
  2688. *.* )
  2689. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2690. then :; else
  2691. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2692. fi
  2693. # We set ac_cv_exeext here because the later test for it is not
  2694. # safe: cross compilers may not add the suffix if given an `-o'
  2695. # argument, so we may need to know it at that point already.
  2696. # Even if this section looks crufty: it has the advantage of
  2697. # actually working.
  2698. break;;
  2699. * )
  2700. break;;
  2701. esac
  2702. done
  2703. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2704. else
  2705. ac_file=''
  2706. fi
  2707. if test -z "$ac_file"; then :
  2708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2709. $as_echo "no" >&6; }
  2710. $as_echo "$as_me: failed program was:" >&5
  2711. sed 's/^/| /' conftest.$ac_ext >&5
  2712. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2713. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2714. as_fn_error 77 "C compiler cannot create executables
  2715. See \`config.log' for more details" "$LINENO" 5; }
  2716. else
  2717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2718. $as_echo "yes" >&6; }
  2719. fi
  2720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2721. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2723. $as_echo "$ac_file" >&6; }
  2724. ac_exeext=$ac_cv_exeext
  2725. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2726. ac_clean_files=$ac_clean_files_save
  2727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2728. $as_echo_n "checking for suffix of executables... " >&6; }
  2729. if { { ac_try="$ac_link"
  2730. case "(($ac_try" in
  2731. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2732. *) ac_try_echo=$ac_try;;
  2733. esac
  2734. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2735. $as_echo "$ac_try_echo"; } >&5
  2736. (eval "$ac_link") 2>&5
  2737. ac_status=$?
  2738. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2739. test $ac_status = 0; }; then :
  2740. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2741. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2742. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2743. # `rm'.
  2744. for ac_file in conftest.exe conftest conftest.*; do
  2745. test -f "$ac_file" || continue
  2746. case $ac_file in
  2747. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2748. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2749. break;;
  2750. * ) break;;
  2751. esac
  2752. done
  2753. else
  2754. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2755. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2756. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2757. See \`config.log' for more details" "$LINENO" 5; }
  2758. fi
  2759. rm -f conftest conftest$ac_cv_exeext
  2760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2761. $as_echo "$ac_cv_exeext" >&6; }
  2762. rm -f conftest.$ac_ext
  2763. EXEEXT=$ac_cv_exeext
  2764. ac_exeext=$EXEEXT
  2765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2766. /* end confdefs.h. */
  2767. #include <stdio.h>
  2768. int
  2769. main ()
  2770. {
  2771. FILE *f = fopen ("conftest.out", "w");
  2772. return ferror (f) || fclose (f) != 0;
  2773. ;
  2774. return 0;
  2775. }
  2776. _ACEOF
  2777. ac_clean_files="$ac_clean_files conftest.out"
  2778. # Check that the compiler produces executables we can run. If not, either
  2779. # the compiler is broken, or we cross compile.
  2780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2781. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2782. if test "$cross_compiling" != yes; then
  2783. { { ac_try="$ac_link"
  2784. case "(($ac_try" in
  2785. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2786. *) ac_try_echo=$ac_try;;
  2787. esac
  2788. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2789. $as_echo "$ac_try_echo"; } >&5
  2790. (eval "$ac_link") 2>&5
  2791. ac_status=$?
  2792. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2793. test $ac_status = 0; }
  2794. if { ac_try='./conftest$ac_cv_exeext'
  2795. { { case "(($ac_try" in
  2796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2797. *) ac_try_echo=$ac_try;;
  2798. esac
  2799. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2800. $as_echo "$ac_try_echo"; } >&5
  2801. (eval "$ac_try") 2>&5
  2802. ac_status=$?
  2803. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2804. test $ac_status = 0; }; }; then
  2805. cross_compiling=no
  2806. else
  2807. if test "$cross_compiling" = maybe; then
  2808. cross_compiling=yes
  2809. else
  2810. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2811. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2812. as_fn_error $? "cannot run C compiled programs.
  2813. If you meant to cross compile, use \`--host'.
  2814. See \`config.log' for more details" "$LINENO" 5; }
  2815. fi
  2816. fi
  2817. fi
  2818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2819. $as_echo "$cross_compiling" >&6; }
  2820. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2821. ac_clean_files=$ac_clean_files_save
  2822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2823. $as_echo_n "checking for suffix of object files... " >&6; }
  2824. if ${ac_cv_objext+:} false; then :
  2825. $as_echo_n "(cached) " >&6
  2826. else
  2827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2828. /* end confdefs.h. */
  2829. int
  2830. main ()
  2831. {
  2832. ;
  2833. return 0;
  2834. }
  2835. _ACEOF
  2836. rm -f conftest.o conftest.obj
  2837. if { { ac_try="$ac_compile"
  2838. case "(($ac_try" in
  2839. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2840. *) ac_try_echo=$ac_try;;
  2841. esac
  2842. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2843. $as_echo "$ac_try_echo"; } >&5
  2844. (eval "$ac_compile") 2>&5
  2845. ac_status=$?
  2846. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2847. test $ac_status = 0; }; then :
  2848. for ac_file in conftest.o conftest.obj conftest.*; do
  2849. test -f "$ac_file" || continue;
  2850. case $ac_file in
  2851. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2852. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2853. break;;
  2854. esac
  2855. done
  2856. else
  2857. $as_echo "$as_me: failed program was:" >&5
  2858. sed 's/^/| /' conftest.$ac_ext >&5
  2859. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2860. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2861. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2862. See \`config.log' for more details" "$LINENO" 5; }
  2863. fi
  2864. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2865. fi
  2866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2867. $as_echo "$ac_cv_objext" >&6; }
  2868. OBJEXT=$ac_cv_objext
  2869. ac_objext=$OBJEXT
  2870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2871. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2872. if ${ac_cv_c_compiler_gnu+:} false; then :
  2873. $as_echo_n "(cached) " >&6
  2874. else
  2875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2876. /* end confdefs.h. */
  2877. int
  2878. main ()
  2879. {
  2880. #ifndef __GNUC__
  2881. choke me
  2882. #endif
  2883. ;
  2884. return 0;
  2885. }
  2886. _ACEOF
  2887. if ac_fn_c_try_compile "$LINENO"; then :
  2888. ac_compiler_gnu=yes
  2889. else
  2890. ac_compiler_gnu=no
  2891. fi
  2892. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2893. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2894. fi
  2895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2896. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2897. if test $ac_compiler_gnu = yes; then
  2898. GCC=yes
  2899. else
  2900. GCC=
  2901. fi
  2902. ac_test_CFLAGS=${CFLAGS+set}
  2903. ac_save_CFLAGS=$CFLAGS
  2904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2905. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2906. if ${ac_cv_prog_cc_g+:} false; then :
  2907. $as_echo_n "(cached) " >&6
  2908. else
  2909. ac_save_c_werror_flag=$ac_c_werror_flag
  2910. ac_c_werror_flag=yes
  2911. ac_cv_prog_cc_g=no
  2912. CFLAGS="-g"
  2913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2914. /* end confdefs.h. */
  2915. int
  2916. main ()
  2917. {
  2918. ;
  2919. return 0;
  2920. }
  2921. _ACEOF
  2922. if ac_fn_c_try_compile "$LINENO"; then :
  2923. ac_cv_prog_cc_g=yes
  2924. else
  2925. CFLAGS=""
  2926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2927. /* end confdefs.h. */
  2928. int
  2929. main ()
  2930. {
  2931. ;
  2932. return 0;
  2933. }
  2934. _ACEOF
  2935. if ac_fn_c_try_compile "$LINENO"; then :
  2936. else
  2937. ac_c_werror_flag=$ac_save_c_werror_flag
  2938. CFLAGS="-g"
  2939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2940. /* end confdefs.h. */
  2941. int
  2942. main ()
  2943. {
  2944. ;
  2945. return 0;
  2946. }
  2947. _ACEOF
  2948. if ac_fn_c_try_compile "$LINENO"; then :
  2949. ac_cv_prog_cc_g=yes
  2950. fi
  2951. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2952. fi
  2953. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2954. fi
  2955. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2956. ac_c_werror_flag=$ac_save_c_werror_flag
  2957. fi
  2958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2959. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2960. if test "$ac_test_CFLAGS" = set; then
  2961. CFLAGS=$ac_save_CFLAGS
  2962. elif test $ac_cv_prog_cc_g = yes; then
  2963. if test "$GCC" = yes; then
  2964. CFLAGS="-g -O2"
  2965. else
  2966. CFLAGS="-g"
  2967. fi
  2968. else
  2969. if test "$GCC" = yes; then
  2970. CFLAGS="-O2"
  2971. else
  2972. CFLAGS=
  2973. fi
  2974. fi
  2975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2976. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2977. if ${ac_cv_prog_cc_c89+:} false; then :
  2978. $as_echo_n "(cached) " >&6
  2979. else
  2980. ac_cv_prog_cc_c89=no
  2981. ac_save_CC=$CC
  2982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2983. /* end confdefs.h. */
  2984. #include <stdarg.h>
  2985. #include <stdio.h>
  2986. #include <sys/types.h>
  2987. #include <sys/stat.h>
  2988. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2989. struct buf { int x; };
  2990. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2991. static char *e (p, i)
  2992. char **p;
  2993. int i;
  2994. {
  2995. return p[i];
  2996. }
  2997. static char *f (char * (*g) (char **, int), char **p, ...)
  2998. {
  2999. char *s;
  3000. va_list v;
  3001. va_start (v,p);
  3002. s = g (p, va_arg (v,int));
  3003. va_end (v);
  3004. return s;
  3005. }
  3006. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3007. function prototypes and stuff, but not '\xHH' hex character constants.
  3008. These don't provoke an error unfortunately, instead are silently treated
  3009. as 'x'. The following induces an error, until -std is added to get
  3010. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3011. array size at least. It's necessary to write '\x00'==0 to get something
  3012. that's true only with -std. */
  3013. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3014. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3015. inside strings and character constants. */
  3016. #define FOO(x) 'x'
  3017. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3018. int test (int i, double x);
  3019. struct s1 {int (*f) (int a);};
  3020. struct s2 {int (*f) (double a);};
  3021. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3022. int argc;
  3023. char **argv;
  3024. int
  3025. main ()
  3026. {
  3027. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3028. ;
  3029. return 0;
  3030. }
  3031. _ACEOF
  3032. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3033. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3034. do
  3035. CC="$ac_save_CC $ac_arg"
  3036. if ac_fn_c_try_compile "$LINENO"; then :
  3037. ac_cv_prog_cc_c89=$ac_arg
  3038. fi
  3039. rm -f core conftest.err conftest.$ac_objext
  3040. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3041. done
  3042. rm -f conftest.$ac_ext
  3043. CC=$ac_save_CC
  3044. fi
  3045. # AC_CACHE_VAL
  3046. case "x$ac_cv_prog_cc_c89" in
  3047. x)
  3048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3049. $as_echo "none needed" >&6; } ;;
  3050. xno)
  3051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3052. $as_echo "unsupported" >&6; } ;;
  3053. *)
  3054. CC="$CC $ac_cv_prog_cc_c89"
  3055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3056. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3057. esac
  3058. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3059. fi
  3060. ac_ext=c
  3061. ac_cpp='$CPP $CPPFLAGS'
  3062. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3063. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3064. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3065. ac_ext=cpp
  3066. ac_cpp='$CXXCPP $CPPFLAGS'
  3067. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3068. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3069. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3070. if test -z "$CXX"; then
  3071. if test -n "$CCC"; then
  3072. CXX=$CCC
  3073. else
  3074. if test -n "$ac_tool_prefix"; then
  3075. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3076. do
  3077. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3078. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3080. $as_echo_n "checking for $ac_word... " >&6; }
  3081. if ${ac_cv_prog_CXX+:} false; then :
  3082. $as_echo_n "(cached) " >&6
  3083. else
  3084. if test -n "$CXX"; then
  3085. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3086. else
  3087. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3088. for as_dir in $PATH
  3089. do
  3090. IFS=$as_save_IFS
  3091. test -z "$as_dir" && as_dir=.
  3092. for ac_exec_ext in '' $ac_executable_extensions; do
  3093. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3094. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3095. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3096. break 2
  3097. fi
  3098. done
  3099. done
  3100. IFS=$as_save_IFS
  3101. fi
  3102. fi
  3103. CXX=$ac_cv_prog_CXX
  3104. if test -n "$CXX"; then
  3105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3106. $as_echo "$CXX" >&6; }
  3107. else
  3108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3109. $as_echo "no" >&6; }
  3110. fi
  3111. test -n "$CXX" && break
  3112. done
  3113. fi
  3114. if test -z "$CXX"; then
  3115. ac_ct_CXX=$CXX
  3116. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3117. do
  3118. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3119. set dummy $ac_prog; ac_word=$2
  3120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3121. $as_echo_n "checking for $ac_word... " >&6; }
  3122. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  3123. $as_echo_n "(cached) " >&6
  3124. else
  3125. if test -n "$ac_ct_CXX"; then
  3126. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3127. else
  3128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3129. for as_dir in $PATH
  3130. do
  3131. IFS=$as_save_IFS
  3132. test -z "$as_dir" && as_dir=.
  3133. for ac_exec_ext in '' $ac_executable_extensions; do
  3134. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3135. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3136. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3137. break 2
  3138. fi
  3139. done
  3140. done
  3141. IFS=$as_save_IFS
  3142. fi
  3143. fi
  3144. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3145. if test -n "$ac_ct_CXX"; then
  3146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3147. $as_echo "$ac_ct_CXX" >&6; }
  3148. else
  3149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3150. $as_echo "no" >&6; }
  3151. fi
  3152. test -n "$ac_ct_CXX" && break
  3153. done
  3154. if test "x$ac_ct_CXX" = x; then
  3155. CXX="g++"
  3156. else
  3157. case $cross_compiling:$ac_tool_warned in
  3158. yes:)
  3159. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3160. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3161. ac_tool_warned=yes ;;
  3162. esac
  3163. CXX=$ac_ct_CXX
  3164. fi
  3165. fi
  3166. fi
  3167. fi
  3168. # Provide some information about the compiler.
  3169. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3170. set X $ac_compile
  3171. ac_compiler=$2
  3172. for ac_option in --version -v -V -qversion; do
  3173. { { ac_try="$ac_compiler $ac_option >&5"
  3174. case "(($ac_try" in
  3175. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3176. *) ac_try_echo=$ac_try;;
  3177. esac
  3178. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3179. $as_echo "$ac_try_echo"; } >&5
  3180. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3181. ac_status=$?
  3182. if test -s conftest.err; then
  3183. sed '10a\
  3184. ... rest of stderr output deleted ...
  3185. 10q' conftest.err >conftest.er1
  3186. cat conftest.er1 >&5
  3187. fi
  3188. rm -f conftest.er1 conftest.err
  3189. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3190. test $ac_status = 0; }
  3191. done
  3192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3193. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3194. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3195. $as_echo_n "(cached) " >&6
  3196. else
  3197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3198. /* end confdefs.h. */
  3199. int
  3200. main ()
  3201. {
  3202. #ifndef __GNUC__
  3203. choke me
  3204. #endif
  3205. ;
  3206. return 0;
  3207. }
  3208. _ACEOF
  3209. if ac_fn_cxx_try_compile "$LINENO"; then :
  3210. ac_compiler_gnu=yes
  3211. else
  3212. ac_compiler_gnu=no
  3213. fi
  3214. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3215. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3216. fi
  3217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3218. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3219. if test $ac_compiler_gnu = yes; then
  3220. GXX=yes
  3221. else
  3222. GXX=
  3223. fi
  3224. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3225. ac_save_CXXFLAGS=$CXXFLAGS
  3226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3227. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3228. if ${ac_cv_prog_cxx_g+:} false; then :
  3229. $as_echo_n "(cached) " >&6
  3230. else
  3231. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3232. ac_cxx_werror_flag=yes
  3233. ac_cv_prog_cxx_g=no
  3234. CXXFLAGS="-g"
  3235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3236. /* end confdefs.h. */
  3237. int
  3238. main ()
  3239. {
  3240. ;
  3241. return 0;
  3242. }
  3243. _ACEOF
  3244. if ac_fn_cxx_try_compile "$LINENO"; then :
  3245. ac_cv_prog_cxx_g=yes
  3246. else
  3247. CXXFLAGS=""
  3248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3249. /* end confdefs.h. */
  3250. int
  3251. main ()
  3252. {
  3253. ;
  3254. return 0;
  3255. }
  3256. _ACEOF
  3257. if ac_fn_cxx_try_compile "$LINENO"; then :
  3258. else
  3259. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3260. CXXFLAGS="-g"
  3261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3262. /* end confdefs.h. */
  3263. int
  3264. main ()
  3265. {
  3266. ;
  3267. return 0;
  3268. }
  3269. _ACEOF
  3270. if ac_fn_cxx_try_compile "$LINENO"; then :
  3271. ac_cv_prog_cxx_g=yes
  3272. fi
  3273. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3274. fi
  3275. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3276. fi
  3277. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3278. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3279. fi
  3280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3281. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3282. if test "$ac_test_CXXFLAGS" = set; then
  3283. CXXFLAGS=$ac_save_CXXFLAGS
  3284. elif test $ac_cv_prog_cxx_g = yes; then
  3285. if test "$GXX" = yes; then
  3286. CXXFLAGS="-g -O2"
  3287. else
  3288. CXXFLAGS="-g"
  3289. fi
  3290. else
  3291. if test "$GXX" = yes; then
  3292. CXXFLAGS="-O2"
  3293. else
  3294. CXXFLAGS=
  3295. fi
  3296. fi
  3297. ac_ext=c
  3298. ac_cpp='$CPP $CPPFLAGS'
  3299. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3300. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3301. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3302. # Make sure we can run config.sub.
  3303. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3304. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3306. $as_echo_n "checking build system type... " >&6; }
  3307. if ${ac_cv_build+:} false; then :
  3308. $as_echo_n "(cached) " >&6
  3309. else
  3310. ac_build_alias=$build_alias
  3311. test "x$ac_build_alias" = x &&
  3312. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3313. test "x$ac_build_alias" = x &&
  3314. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3315. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3316. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3317. fi
  3318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3319. $as_echo "$ac_cv_build" >&6; }
  3320. case $ac_cv_build in
  3321. *-*-*) ;;
  3322. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3323. esac
  3324. build=$ac_cv_build
  3325. ac_save_IFS=$IFS; IFS='-'
  3326. set x $ac_cv_build
  3327. shift
  3328. build_cpu=$1
  3329. build_vendor=$2
  3330. shift; shift
  3331. # Remember, the first character of IFS is used to create $*,
  3332. # except with old shells:
  3333. build_os=$*
  3334. IFS=$ac_save_IFS
  3335. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3337. $as_echo_n "checking host system type... " >&6; }
  3338. if ${ac_cv_host+:} false; then :
  3339. $as_echo_n "(cached) " >&6
  3340. else
  3341. if test "x$host_alias" = x; then
  3342. ac_cv_host=$ac_cv_build
  3343. else
  3344. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3345. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3346. fi
  3347. fi
  3348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3349. $as_echo "$ac_cv_host" >&6; }
  3350. case $ac_cv_host in
  3351. *-*-*) ;;
  3352. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3353. esac
  3354. host=$ac_cv_host
  3355. ac_save_IFS=$IFS; IFS='-'
  3356. set x $ac_cv_host
  3357. shift
  3358. host_cpu=$1
  3359. host_vendor=$2
  3360. shift; shift
  3361. # Remember, the first character of IFS is used to create $*,
  3362. # except with old shells:
  3363. host_os=$*
  3364. IFS=$ac_save_IFS
  3365. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3366. enable_win32_dll=yes
  3367. case $host in
  3368. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  3369. if test -n "$ac_tool_prefix"; then
  3370. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  3371. set dummy ${ac_tool_prefix}as; ac_word=$2
  3372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3373. $as_echo_n "checking for $ac_word... " >&6; }
  3374. if ${ac_cv_prog_AS+:} false; then :
  3375. $as_echo_n "(cached) " >&6
  3376. else
  3377. if test -n "$AS"; then
  3378. ac_cv_prog_AS="$AS" # Let the user override the test.
  3379. else
  3380. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3381. for as_dir in $PATH
  3382. do
  3383. IFS=$as_save_IFS
  3384. test -z "$as_dir" && as_dir=.
  3385. for ac_exec_ext in '' $ac_executable_extensions; do
  3386. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3387. ac_cv_prog_AS="${ac_tool_prefix}as"
  3388. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3389. break 2
  3390. fi
  3391. done
  3392. done
  3393. IFS=$as_save_IFS
  3394. fi
  3395. fi
  3396. AS=$ac_cv_prog_AS
  3397. if test -n "$AS"; then
  3398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  3399. $as_echo "$AS" >&6; }
  3400. else
  3401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3402. $as_echo "no" >&6; }
  3403. fi
  3404. fi
  3405. if test -z "$ac_cv_prog_AS"; then
  3406. ac_ct_AS=$AS
  3407. # Extract the first word of "as", so it can be a program name with args.
  3408. set dummy as; ac_word=$2
  3409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3410. $as_echo_n "checking for $ac_word... " >&6; }
  3411. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  3412. $as_echo_n "(cached) " >&6
  3413. else
  3414. if test -n "$ac_ct_AS"; then
  3415. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  3416. else
  3417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3418. for as_dir in $PATH
  3419. do
  3420. IFS=$as_save_IFS
  3421. test -z "$as_dir" && as_dir=.
  3422. for ac_exec_ext in '' $ac_executable_extensions; do
  3423. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3424. ac_cv_prog_ac_ct_AS="as"
  3425. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3426. break 2
  3427. fi
  3428. done
  3429. done
  3430. IFS=$as_save_IFS
  3431. fi
  3432. fi
  3433. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  3434. if test -n "$ac_ct_AS"; then
  3435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  3436. $as_echo "$ac_ct_AS" >&6; }
  3437. else
  3438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3439. $as_echo "no" >&6; }
  3440. fi
  3441. if test "x$ac_ct_AS" = x; then
  3442. AS="false"
  3443. else
  3444. case $cross_compiling:$ac_tool_warned in
  3445. yes:)
  3446. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3447. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3448. ac_tool_warned=yes ;;
  3449. esac
  3450. AS=$ac_ct_AS
  3451. fi
  3452. else
  3453. AS="$ac_cv_prog_AS"
  3454. fi
  3455. if test -n "$ac_tool_prefix"; then
  3456. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  3457. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  3458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3459. $as_echo_n "checking for $ac_word... " >&6; }
  3460. if ${ac_cv_prog_DLLTOOL+:} false; then :
  3461. $as_echo_n "(cached) " >&6
  3462. else
  3463. if test -n "$DLLTOOL"; then
  3464. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  3465. else
  3466. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3467. for as_dir in $PATH
  3468. do
  3469. IFS=$as_save_IFS
  3470. test -z "$as_dir" && as_dir=.
  3471. for ac_exec_ext in '' $ac_executable_extensions; do
  3472. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3473. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  3474. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3475. break 2
  3476. fi
  3477. done
  3478. done
  3479. IFS=$as_save_IFS
  3480. fi
  3481. fi
  3482. DLLTOOL=$ac_cv_prog_DLLTOOL
  3483. if test -n "$DLLTOOL"; then
  3484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  3485. $as_echo "$DLLTOOL" >&6; }
  3486. else
  3487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3488. $as_echo "no" >&6; }
  3489. fi
  3490. fi
  3491. if test -z "$ac_cv_prog_DLLTOOL"; then
  3492. ac_ct_DLLTOOL=$DLLTOOL
  3493. # Extract the first word of "dlltool", so it can be a program name with args.
  3494. set dummy dlltool; ac_word=$2
  3495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3496. $as_echo_n "checking for $ac_word... " >&6; }
  3497. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  3498. $as_echo_n "(cached) " >&6
  3499. else
  3500. if test -n "$ac_ct_DLLTOOL"; then
  3501. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  3502. else
  3503. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3504. for as_dir in $PATH
  3505. do
  3506. IFS=$as_save_IFS
  3507. test -z "$as_dir" && as_dir=.
  3508. for ac_exec_ext in '' $ac_executable_extensions; do
  3509. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3510. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  3511. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3512. break 2
  3513. fi
  3514. done
  3515. done
  3516. IFS=$as_save_IFS
  3517. fi
  3518. fi
  3519. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  3520. if test -n "$ac_ct_DLLTOOL"; then
  3521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  3522. $as_echo "$ac_ct_DLLTOOL" >&6; }
  3523. else
  3524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3525. $as_echo "no" >&6; }
  3526. fi
  3527. if test "x$ac_ct_DLLTOOL" = x; then
  3528. DLLTOOL="false"
  3529. else
  3530. case $cross_compiling:$ac_tool_warned in
  3531. yes:)
  3532. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3533. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3534. ac_tool_warned=yes ;;
  3535. esac
  3536. DLLTOOL=$ac_ct_DLLTOOL
  3537. fi
  3538. else
  3539. DLLTOOL="$ac_cv_prog_DLLTOOL"
  3540. fi
  3541. if test -n "$ac_tool_prefix"; then
  3542. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  3543. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  3544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3545. $as_echo_n "checking for $ac_word... " >&6; }
  3546. if ${ac_cv_prog_OBJDUMP+:} false; then :
  3547. $as_echo_n "(cached) " >&6
  3548. else
  3549. if test -n "$OBJDUMP"; then
  3550. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  3551. else
  3552. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3553. for as_dir in $PATH
  3554. do
  3555. IFS=$as_save_IFS
  3556. test -z "$as_dir" && as_dir=.
  3557. for ac_exec_ext in '' $ac_executable_extensions; do
  3558. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3559. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  3560. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3561. break 2
  3562. fi
  3563. done
  3564. done
  3565. IFS=$as_save_IFS
  3566. fi
  3567. fi
  3568. OBJDUMP=$ac_cv_prog_OBJDUMP
  3569. if test -n "$OBJDUMP"; then
  3570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  3571. $as_echo "$OBJDUMP" >&6; }
  3572. else
  3573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3574. $as_echo "no" >&6; }
  3575. fi
  3576. fi
  3577. if test -z "$ac_cv_prog_OBJDUMP"; then
  3578. ac_ct_OBJDUMP=$OBJDUMP
  3579. # Extract the first word of "objdump", so it can be a program name with args.
  3580. set dummy objdump; ac_word=$2
  3581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3582. $as_echo_n "checking for $ac_word... " >&6; }
  3583. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  3584. $as_echo_n "(cached) " >&6
  3585. else
  3586. if test -n "$ac_ct_OBJDUMP"; then
  3587. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  3588. else
  3589. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3590. for as_dir in $PATH
  3591. do
  3592. IFS=$as_save_IFS
  3593. test -z "$as_dir" && as_dir=.
  3594. for ac_exec_ext in '' $ac_executable_extensions; do
  3595. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3596. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  3597. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3598. break 2
  3599. fi
  3600. done
  3601. done
  3602. IFS=$as_save_IFS
  3603. fi
  3604. fi
  3605. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  3606. if test -n "$ac_ct_OBJDUMP"; then
  3607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  3608. $as_echo "$ac_ct_OBJDUMP" >&6; }
  3609. else
  3610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3611. $as_echo "no" >&6; }
  3612. fi
  3613. if test "x$ac_ct_OBJDUMP" = x; then
  3614. OBJDUMP="false"
  3615. else
  3616. case $cross_compiling:$ac_tool_warned in
  3617. yes:)
  3618. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3619. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3620. ac_tool_warned=yes ;;
  3621. esac
  3622. OBJDUMP=$ac_ct_OBJDUMP
  3623. fi
  3624. else
  3625. OBJDUMP="$ac_cv_prog_OBJDUMP"
  3626. fi
  3627. ;;
  3628. esac
  3629. test -z "$AS" && AS=as
  3630. test -z "$DLLTOOL" && DLLTOOL=dlltool
  3631. test -z "$OBJDUMP" && OBJDUMP=objdump
  3632. case `pwd` in
  3633. *\ * | *\ *)
  3634. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3635. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3636. esac
  3637. macro_version='2.4'
  3638. macro_revision='1.3293'
  3639. ltmain="$ac_aux_dir/ltmain.sh"
  3640. # Backslashify metacharacters that are still active within
  3641. # double-quoted strings.
  3642. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3643. # Same as above, but do not quote variable references.
  3644. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3645. # Sed substitution to delay expansion of an escaped shell variable in a
  3646. # double_quote_subst'ed string.
  3647. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3648. # Sed substitution to delay expansion of an escaped single quote.
  3649. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3650. # Sed substitution to avoid accidental globbing in evaled expressions
  3651. no_glob_subst='s/\*/\\\*/g'
  3652. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3653. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3654. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3656. $as_echo_n "checking how to print strings... " >&6; }
  3657. # Test print first, because it will be a builtin if present.
  3658. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3659. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3660. ECHO='print -r --'
  3661. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3662. ECHO='printf %s\n'
  3663. else
  3664. # Use this function as a fallback that always works.
  3665. func_fallback_echo ()
  3666. {
  3667. eval 'cat <<_LTECHO_EOF
  3668. $1
  3669. _LTECHO_EOF'
  3670. }
  3671. ECHO='func_fallback_echo'
  3672. fi
  3673. # func_echo_all arg...
  3674. # Invoke $ECHO with all args, space-separated.
  3675. func_echo_all ()
  3676. {
  3677. $ECHO ""
  3678. }
  3679. case "$ECHO" in
  3680. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3681. $as_echo "printf" >&6; } ;;
  3682. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3683. $as_echo "print -r" >&6; } ;;
  3684. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3685. $as_echo "cat" >&6; } ;;
  3686. esac
  3687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3688. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3689. if ${ac_cv_path_SED+:} false; then :
  3690. $as_echo_n "(cached) " >&6
  3691. else
  3692. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3693. for ac_i in 1 2 3 4 5 6 7; do
  3694. ac_script="$ac_script$as_nl$ac_script"
  3695. done
  3696. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3697. { ac_script=; unset ac_script;}
  3698. if test -z "$SED"; then
  3699. ac_path_SED_found=false
  3700. # Loop through the user's path and test for each of PROGNAME-LIST
  3701. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3702. for as_dir in $PATH
  3703. do
  3704. IFS=$as_save_IFS
  3705. test -z "$as_dir" && as_dir=.
  3706. for ac_prog in sed gsed; do
  3707. for ac_exec_ext in '' $ac_executable_extensions; do
  3708. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3709. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3710. # Check for GNU ac_path_SED and select it if it is found.
  3711. # Check for GNU $ac_path_SED
  3712. case `"$ac_path_SED" --version 2>&1` in
  3713. *GNU*)
  3714. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3715. *)
  3716. ac_count=0
  3717. $as_echo_n 0123456789 >"conftest.in"
  3718. while :
  3719. do
  3720. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3721. mv "conftest.tmp" "conftest.in"
  3722. cp "conftest.in" "conftest.nl"
  3723. $as_echo '' >> "conftest.nl"
  3724. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3725. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3726. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3727. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3728. # Best one so far, save it but keep looking for a better one
  3729. ac_cv_path_SED="$ac_path_SED"
  3730. ac_path_SED_max=$ac_count
  3731. fi
  3732. # 10*(2^10) chars as input seems more than enough
  3733. test $ac_count -gt 10 && break
  3734. done
  3735. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3736. esac
  3737. $ac_path_SED_found && break 3
  3738. done
  3739. done
  3740. done
  3741. IFS=$as_save_IFS
  3742. if test -z "$ac_cv_path_SED"; then
  3743. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3744. fi
  3745. else
  3746. ac_cv_path_SED=$SED
  3747. fi
  3748. fi
  3749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3750. $as_echo "$ac_cv_path_SED" >&6; }
  3751. SED="$ac_cv_path_SED"
  3752. rm -f conftest.sed
  3753. test -z "$SED" && SED=sed
  3754. Xsed="$SED -e 1s/^X//"
  3755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3756. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3757. if ${ac_cv_path_GREP+:} false; then :
  3758. $as_echo_n "(cached) " >&6
  3759. else
  3760. if test -z "$GREP"; then
  3761. ac_path_GREP_found=false
  3762. # Loop through the user's path and test for each of PROGNAME-LIST
  3763. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3764. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3765. do
  3766. IFS=$as_save_IFS
  3767. test -z "$as_dir" && as_dir=.
  3768. for ac_prog in grep ggrep; do
  3769. for ac_exec_ext in '' $ac_executable_extensions; do
  3770. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3771. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3772. # Check for GNU ac_path_GREP and select it if it is found.
  3773. # Check for GNU $ac_path_GREP
  3774. case `"$ac_path_GREP" --version 2>&1` in
  3775. *GNU*)
  3776. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3777. *)
  3778. ac_count=0
  3779. $as_echo_n 0123456789 >"conftest.in"
  3780. while :
  3781. do
  3782. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3783. mv "conftest.tmp" "conftest.in"
  3784. cp "conftest.in" "conftest.nl"
  3785. $as_echo 'GREP' >> "conftest.nl"
  3786. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3787. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3788. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3789. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3790. # Best one so far, save it but keep looking for a better one
  3791. ac_cv_path_GREP="$ac_path_GREP"
  3792. ac_path_GREP_max=$ac_count
  3793. fi
  3794. # 10*(2^10) chars as input seems more than enough
  3795. test $ac_count -gt 10 && break
  3796. done
  3797. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3798. esac
  3799. $ac_path_GREP_found && break 3
  3800. done
  3801. done
  3802. done
  3803. IFS=$as_save_IFS
  3804. if test -z "$ac_cv_path_GREP"; then
  3805. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3806. fi
  3807. else
  3808. ac_cv_path_GREP=$GREP
  3809. fi
  3810. fi
  3811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3812. $as_echo "$ac_cv_path_GREP" >&6; }
  3813. GREP="$ac_cv_path_GREP"
  3814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3815. $as_echo_n "checking for egrep... " >&6; }
  3816. if ${ac_cv_path_EGREP+:} false; then :
  3817. $as_echo_n "(cached) " >&6
  3818. else
  3819. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3820. then ac_cv_path_EGREP="$GREP -E"
  3821. else
  3822. if test -z "$EGREP"; then
  3823. ac_path_EGREP_found=false
  3824. # Loop through the user's path and test for each of PROGNAME-LIST
  3825. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3826. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3827. do
  3828. IFS=$as_save_IFS
  3829. test -z "$as_dir" && as_dir=.
  3830. for ac_prog in egrep; do
  3831. for ac_exec_ext in '' $ac_executable_extensions; do
  3832. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3833. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3834. # Check for GNU ac_path_EGREP and select it if it is found.
  3835. # Check for GNU $ac_path_EGREP
  3836. case `"$ac_path_EGREP" --version 2>&1` in
  3837. *GNU*)
  3838. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3839. *)
  3840. ac_count=0
  3841. $as_echo_n 0123456789 >"conftest.in"
  3842. while :
  3843. do
  3844. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3845. mv "conftest.tmp" "conftest.in"
  3846. cp "conftest.in" "conftest.nl"
  3847. $as_echo 'EGREP' >> "conftest.nl"
  3848. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3849. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3850. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3851. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3852. # Best one so far, save it but keep looking for a better one
  3853. ac_cv_path_EGREP="$ac_path_EGREP"
  3854. ac_path_EGREP_max=$ac_count
  3855. fi
  3856. # 10*(2^10) chars as input seems more than enough
  3857. test $ac_count -gt 10 && break
  3858. done
  3859. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3860. esac
  3861. $ac_path_EGREP_found && break 3
  3862. done
  3863. done
  3864. done
  3865. IFS=$as_save_IFS
  3866. if test -z "$ac_cv_path_EGREP"; then
  3867. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3868. fi
  3869. else
  3870. ac_cv_path_EGREP=$EGREP
  3871. fi
  3872. fi
  3873. fi
  3874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3875. $as_echo "$ac_cv_path_EGREP" >&6; }
  3876. EGREP="$ac_cv_path_EGREP"
  3877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3878. $as_echo_n "checking for fgrep... " >&6; }
  3879. if ${ac_cv_path_FGREP+:} false; then :
  3880. $as_echo_n "(cached) " >&6
  3881. else
  3882. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3883. then ac_cv_path_FGREP="$GREP -F"
  3884. else
  3885. if test -z "$FGREP"; then
  3886. ac_path_FGREP_found=false
  3887. # Loop through the user's path and test for each of PROGNAME-LIST
  3888. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3889. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3890. do
  3891. IFS=$as_save_IFS
  3892. test -z "$as_dir" && as_dir=.
  3893. for ac_prog in fgrep; do
  3894. for ac_exec_ext in '' $ac_executable_extensions; do
  3895. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3896. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  3897. # Check for GNU ac_path_FGREP and select it if it is found.
  3898. # Check for GNU $ac_path_FGREP
  3899. case `"$ac_path_FGREP" --version 2>&1` in
  3900. *GNU*)
  3901. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3902. *)
  3903. ac_count=0
  3904. $as_echo_n 0123456789 >"conftest.in"
  3905. while :
  3906. do
  3907. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3908. mv "conftest.tmp" "conftest.in"
  3909. cp "conftest.in" "conftest.nl"
  3910. $as_echo 'FGREP' >> "conftest.nl"
  3911. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3912. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3913. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3914. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3915. # Best one so far, save it but keep looking for a better one
  3916. ac_cv_path_FGREP="$ac_path_FGREP"
  3917. ac_path_FGREP_max=$ac_count
  3918. fi
  3919. # 10*(2^10) chars as input seems more than enough
  3920. test $ac_count -gt 10 && break
  3921. done
  3922. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3923. esac
  3924. $ac_path_FGREP_found && break 3
  3925. done
  3926. done
  3927. done
  3928. IFS=$as_save_IFS
  3929. if test -z "$ac_cv_path_FGREP"; then
  3930. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3931. fi
  3932. else
  3933. ac_cv_path_FGREP=$FGREP
  3934. fi
  3935. fi
  3936. fi
  3937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3938. $as_echo "$ac_cv_path_FGREP" >&6; }
  3939. FGREP="$ac_cv_path_FGREP"
  3940. test -z "$GREP" && GREP=grep
  3941. # Check whether --with-gnu-ld was given.
  3942. if test "${with_gnu_ld+set}" = set; then :
  3943. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3944. else
  3945. with_gnu_ld=no
  3946. fi
  3947. ac_prog=ld
  3948. if test "$GCC" = yes; then
  3949. # Check if gcc -print-prog-name=ld gives a path.
  3950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3951. $as_echo_n "checking for ld used by $CC... " >&6; }
  3952. case $host in
  3953. *-*-mingw*)
  3954. # gcc leaves a trailing carriage return which upsets mingw
  3955. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3956. *)
  3957. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3958. esac
  3959. case $ac_prog in
  3960. # Accept absolute paths.
  3961. [\\/]* | ?:[\\/]*)
  3962. re_direlt='/[^/][^/]*/\.\./'
  3963. # Canonicalize the pathname of ld
  3964. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3965. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3966. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3967. done
  3968. test -z "$LD" && LD="$ac_prog"
  3969. ;;
  3970. "")
  3971. # If it fails, then pretend we aren't using GCC.
  3972. ac_prog=ld
  3973. ;;
  3974. *)
  3975. # If it is relative, then search for the first ld in PATH.
  3976. with_gnu_ld=unknown
  3977. ;;
  3978. esac
  3979. elif test "$with_gnu_ld" = yes; then
  3980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3981. $as_echo_n "checking for GNU ld... " >&6; }
  3982. else
  3983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3984. $as_echo_n "checking for non-GNU ld... " >&6; }
  3985. fi
  3986. if ${lt_cv_path_LD+:} false; then :
  3987. $as_echo_n "(cached) " >&6
  3988. else
  3989. if test -z "$LD"; then
  3990. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3991. for ac_dir in $PATH; do
  3992. IFS="$lt_save_ifs"
  3993. test -z "$ac_dir" && ac_dir=.
  3994. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3995. lt_cv_path_LD="$ac_dir/$ac_prog"
  3996. # Check to see if the program is GNU ld. I'd rather use --version,
  3997. # but apparently some variants of GNU ld only accept -v.
  3998. # Break only if it was the GNU/non-GNU ld that we prefer.
  3999. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4000. *GNU* | *'with BFD'*)
  4001. test "$with_gnu_ld" != no && break
  4002. ;;
  4003. *)
  4004. test "$with_gnu_ld" != yes && break
  4005. ;;
  4006. esac
  4007. fi
  4008. done
  4009. IFS="$lt_save_ifs"
  4010. else
  4011. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4012. fi
  4013. fi
  4014. LD="$lt_cv_path_LD"
  4015. if test -n "$LD"; then
  4016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4017. $as_echo "$LD" >&6; }
  4018. else
  4019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4020. $as_echo "no" >&6; }
  4021. fi
  4022. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4024. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4025. if ${lt_cv_prog_gnu_ld+:} false; then :
  4026. $as_echo_n "(cached) " >&6
  4027. else
  4028. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4029. case `$LD -v 2>&1 </dev/null` in
  4030. *GNU* | *'with BFD'*)
  4031. lt_cv_prog_gnu_ld=yes
  4032. ;;
  4033. *)
  4034. lt_cv_prog_gnu_ld=no
  4035. ;;
  4036. esac
  4037. fi
  4038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4039. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4040. with_gnu_ld=$lt_cv_prog_gnu_ld
  4041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4042. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4043. if ${lt_cv_path_NM+:} false; then :
  4044. $as_echo_n "(cached) " >&6
  4045. else
  4046. if test -n "$NM"; then
  4047. # Let the user override the test.
  4048. lt_cv_path_NM="$NM"
  4049. else
  4050. lt_nm_to_check="${ac_tool_prefix}nm"
  4051. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4052. lt_nm_to_check="$lt_nm_to_check nm"
  4053. fi
  4054. for lt_tmp_nm in $lt_nm_to_check; do
  4055. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4056. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4057. IFS="$lt_save_ifs"
  4058. test -z "$ac_dir" && ac_dir=.
  4059. tmp_nm="$ac_dir/$lt_tmp_nm"
  4060. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4061. # Check to see if the nm accepts a BSD-compat flag.
  4062. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4063. # nm: unknown option "B" ignored
  4064. # Tru64's nm complains that /dev/null is an invalid object file
  4065. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4066. */dev/null* | *'Invalid file or object type'*)
  4067. lt_cv_path_NM="$tmp_nm -B"
  4068. break
  4069. ;;
  4070. *)
  4071. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4072. */dev/null*)
  4073. lt_cv_path_NM="$tmp_nm -p"
  4074. break
  4075. ;;
  4076. *)
  4077. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4078. continue # so that we can try to find one that supports BSD flags
  4079. ;;
  4080. esac
  4081. ;;
  4082. esac
  4083. fi
  4084. done
  4085. IFS="$lt_save_ifs"
  4086. done
  4087. : ${lt_cv_path_NM=no}
  4088. fi
  4089. fi
  4090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4091. $as_echo "$lt_cv_path_NM" >&6; }
  4092. if test "$lt_cv_path_NM" != "no"; then
  4093. NM="$lt_cv_path_NM"
  4094. else
  4095. # Didn't find any BSD compatible name lister, look for dumpbin.
  4096. if test -n "$DUMPBIN"; then :
  4097. # Let the user override the test.
  4098. else
  4099. if test -n "$ac_tool_prefix"; then
  4100. for ac_prog in dumpbin "link -dump"
  4101. do
  4102. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4103. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4105. $as_echo_n "checking for $ac_word... " >&6; }
  4106. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4107. $as_echo_n "(cached) " >&6
  4108. else
  4109. if test -n "$DUMPBIN"; then
  4110. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4111. else
  4112. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4113. for as_dir in $PATH
  4114. do
  4115. IFS=$as_save_IFS
  4116. test -z "$as_dir" && as_dir=.
  4117. for ac_exec_ext in '' $ac_executable_extensions; do
  4118. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4119. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4120. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4121. break 2
  4122. fi
  4123. done
  4124. done
  4125. IFS=$as_save_IFS
  4126. fi
  4127. fi
  4128. DUMPBIN=$ac_cv_prog_DUMPBIN
  4129. if test -n "$DUMPBIN"; then
  4130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4131. $as_echo "$DUMPBIN" >&6; }
  4132. else
  4133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4134. $as_echo "no" >&6; }
  4135. fi
  4136. test -n "$DUMPBIN" && break
  4137. done
  4138. fi
  4139. if test -z "$DUMPBIN"; then
  4140. ac_ct_DUMPBIN=$DUMPBIN
  4141. for ac_prog in dumpbin "link -dump"
  4142. do
  4143. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4144. set dummy $ac_prog; ac_word=$2
  4145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4146. $as_echo_n "checking for $ac_word... " >&6; }
  4147. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4148. $as_echo_n "(cached) " >&6
  4149. else
  4150. if test -n "$ac_ct_DUMPBIN"; then
  4151. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4152. else
  4153. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4154. for as_dir in $PATH
  4155. do
  4156. IFS=$as_save_IFS
  4157. test -z "$as_dir" && as_dir=.
  4158. for ac_exec_ext in '' $ac_executable_extensions; do
  4159. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4160. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4161. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4162. break 2
  4163. fi
  4164. done
  4165. done
  4166. IFS=$as_save_IFS
  4167. fi
  4168. fi
  4169. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4170. if test -n "$ac_ct_DUMPBIN"; then
  4171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4172. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4173. else
  4174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4175. $as_echo "no" >&6; }
  4176. fi
  4177. test -n "$ac_ct_DUMPBIN" && break
  4178. done
  4179. if test "x$ac_ct_DUMPBIN" = x; then
  4180. DUMPBIN=":"
  4181. else
  4182. case $cross_compiling:$ac_tool_warned in
  4183. yes:)
  4184. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4185. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4186. ac_tool_warned=yes ;;
  4187. esac
  4188. DUMPBIN=$ac_ct_DUMPBIN
  4189. fi
  4190. fi
  4191. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4192. *COFF*)
  4193. DUMPBIN="$DUMPBIN -symbols"
  4194. ;;
  4195. *)
  4196. DUMPBIN=:
  4197. ;;
  4198. esac
  4199. fi
  4200. if test "$DUMPBIN" != ":"; then
  4201. NM="$DUMPBIN"
  4202. fi
  4203. fi
  4204. test -z "$NM" && NM=nm
  4205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4206. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4207. if ${lt_cv_nm_interface+:} false; then :
  4208. $as_echo_n "(cached) " >&6
  4209. else
  4210. lt_cv_nm_interface="BSD nm"
  4211. echo "int some_variable = 0;" > conftest.$ac_ext
  4212. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4213. (eval "$ac_compile" 2>conftest.err)
  4214. cat conftest.err >&5
  4215. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4216. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4217. cat conftest.err >&5
  4218. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4219. cat conftest.out >&5
  4220. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4221. lt_cv_nm_interface="MS dumpbin"
  4222. fi
  4223. rm -f conftest*
  4224. fi
  4225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4226. $as_echo "$lt_cv_nm_interface" >&6; }
  4227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4228. $as_echo_n "checking whether ln -s works... " >&6; }
  4229. LN_S=$as_ln_s
  4230. if test "$LN_S" = "ln -s"; then
  4231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4232. $as_echo "yes" >&6; }
  4233. else
  4234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4235. $as_echo "no, using $LN_S" >&6; }
  4236. fi
  4237. # find the maximum length of command line arguments
  4238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4239. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4240. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4241. $as_echo_n "(cached) " >&6
  4242. else
  4243. i=0
  4244. teststring="ABCD"
  4245. case $build_os in
  4246. msdosdjgpp*)
  4247. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4248. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4249. # during glob expansion). Even if it were fixed, the result of this
  4250. # check would be larger than it should be.
  4251. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4252. ;;
  4253. gnu*)
  4254. # Under GNU Hurd, this test is not required because there is
  4255. # no limit to the length of command line arguments.
  4256. # Libtool will interpret -1 as no limit whatsoever
  4257. lt_cv_sys_max_cmd_len=-1;
  4258. ;;
  4259. cygwin* | mingw* | cegcc*)
  4260. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4261. # about 5 minutes as the teststring grows exponentially.
  4262. # Worse, since 9x/ME are not pre-emptively multitasking,
  4263. # you end up with a "frozen" computer, even though with patience
  4264. # the test eventually succeeds (with a max line length of 256k).
  4265. # Instead, let's just punt: use the minimum linelength reported by
  4266. # all of the supported platforms: 8192 (on NT/2K/XP).
  4267. lt_cv_sys_max_cmd_len=8192;
  4268. ;;
  4269. mint*)
  4270. # On MiNT this can take a long time and run out of memory.
  4271. lt_cv_sys_max_cmd_len=8192;
  4272. ;;
  4273. amigaos*)
  4274. # On AmigaOS with pdksh, this test takes hours, literally.
  4275. # So we just punt and use a minimum line length of 8192.
  4276. lt_cv_sys_max_cmd_len=8192;
  4277. ;;
  4278. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4279. # This has been around since 386BSD, at least. Likely further.
  4280. if test -x /sbin/sysctl; then
  4281. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4282. elif test -x /usr/sbin/sysctl; then
  4283. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4284. else
  4285. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4286. fi
  4287. # And add a safety zone
  4288. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4289. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4290. ;;
  4291. interix*)
  4292. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4293. lt_cv_sys_max_cmd_len=196608
  4294. ;;
  4295. osf*)
  4296. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4297. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4298. # nice to cause kernel panics so lets avoid the loop below.
  4299. # First set a reasonable default.
  4300. lt_cv_sys_max_cmd_len=16384
  4301. #
  4302. if test -x /sbin/sysconfig; then
  4303. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4304. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4305. esac
  4306. fi
  4307. ;;
  4308. sco3.2v5*)
  4309. lt_cv_sys_max_cmd_len=102400
  4310. ;;
  4311. sysv5* | sco5v6* | sysv4.2uw2*)
  4312. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4313. if test -n "$kargmax"; then
  4314. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4315. else
  4316. lt_cv_sys_max_cmd_len=32768
  4317. fi
  4318. ;;
  4319. *)
  4320. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4321. if test -n "$lt_cv_sys_max_cmd_len"; then
  4322. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4323. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4324. else
  4325. # Make teststring a little bigger before we do anything with it.
  4326. # a 1K string should be a reasonable start.
  4327. for i in 1 2 3 4 5 6 7 8 ; do
  4328. teststring=$teststring$teststring
  4329. done
  4330. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4331. # If test is not a shell built-in, we'll probably end up computing a
  4332. # maximum length that is only half of the actual maximum length, but
  4333. # we can't tell.
  4334. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  4335. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4336. test $i != 17 # 1/2 MB should be enough
  4337. do
  4338. i=`expr $i + 1`
  4339. teststring=$teststring$teststring
  4340. done
  4341. # Only check the string length outside the loop.
  4342. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4343. teststring=
  4344. # Add a significant safety factor because C++ compilers can tack on
  4345. # massive amounts of additional arguments before passing them to the
  4346. # linker. It appears as though 1/2 is a usable value.
  4347. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4348. fi
  4349. ;;
  4350. esac
  4351. fi
  4352. if test -n $lt_cv_sys_max_cmd_len ; then
  4353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4354. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4355. else
  4356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4357. $as_echo "none" >&6; }
  4358. fi
  4359. max_cmd_len=$lt_cv_sys_max_cmd_len
  4360. : ${CP="cp -f"}
  4361. : ${MV="mv -f"}
  4362. : ${RM="rm -f"}
  4363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4364. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4365. # Try some XSI features
  4366. xsi_shell=no
  4367. ( _lt_dummy="a/b/c"
  4368. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4369. = c,a/b,b/c, \
  4370. && eval 'test $(( 1 + 1 )) -eq 2 \
  4371. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4372. && xsi_shell=yes
  4373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4374. $as_echo "$xsi_shell" >&6; }
  4375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4376. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4377. lt_shell_append=no
  4378. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4379. >/dev/null 2>&1 \
  4380. && lt_shell_append=yes
  4381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4382. $as_echo "$lt_shell_append" >&6; }
  4383. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4384. lt_unset=unset
  4385. else
  4386. lt_unset=false
  4387. fi
  4388. # test EBCDIC or ASCII
  4389. case `echo X|tr X '\101'` in
  4390. A) # ASCII based system
  4391. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4392. lt_SP2NL='tr \040 \012'
  4393. lt_NL2SP='tr \015\012 \040\040'
  4394. ;;
  4395. *) # EBCDIC based system
  4396. lt_SP2NL='tr \100 \n'
  4397. lt_NL2SP='tr \r\n \100\100'
  4398. ;;
  4399. esac
  4400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4401. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4402. if ${lt_cv_to_host_file_cmd+:} false; then :
  4403. $as_echo_n "(cached) " >&6
  4404. else
  4405. case $host in
  4406. *-*-mingw* )
  4407. case $build in
  4408. *-*-mingw* ) # actually msys
  4409. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4410. ;;
  4411. *-*-cygwin* )
  4412. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4413. ;;
  4414. * ) # otherwise, assume *nix
  4415. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4416. ;;
  4417. esac
  4418. ;;
  4419. *-*-cygwin* )
  4420. case $build in
  4421. *-*-mingw* ) # actually msys
  4422. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4423. ;;
  4424. *-*-cygwin* )
  4425. lt_cv_to_host_file_cmd=func_convert_file_noop
  4426. ;;
  4427. * ) # otherwise, assume *nix
  4428. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4429. ;;
  4430. esac
  4431. ;;
  4432. * ) # unhandled hosts (and "normal" native builds)
  4433. lt_cv_to_host_file_cmd=func_convert_file_noop
  4434. ;;
  4435. esac
  4436. fi
  4437. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4439. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4441. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4442. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4443. $as_echo_n "(cached) " >&6
  4444. else
  4445. #assume ordinary cross tools, or native build.
  4446. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4447. case $host in
  4448. *-*-mingw* )
  4449. case $build in
  4450. *-*-mingw* ) # actually msys
  4451. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4452. ;;
  4453. esac
  4454. ;;
  4455. esac
  4456. fi
  4457. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4459. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4461. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4462. if ${lt_cv_ld_reload_flag+:} false; then :
  4463. $as_echo_n "(cached) " >&6
  4464. else
  4465. lt_cv_ld_reload_flag='-r'
  4466. fi
  4467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4468. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4469. reload_flag=$lt_cv_ld_reload_flag
  4470. case $reload_flag in
  4471. "" | " "*) ;;
  4472. *) reload_flag=" $reload_flag" ;;
  4473. esac
  4474. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4475. case $host_os in
  4476. cygwin* | mingw* | pw32* | cegcc*)
  4477. if test "$GCC" != yes; then
  4478. reload_cmds=false
  4479. fi
  4480. ;;
  4481. darwin*)
  4482. if test "$GCC" = yes; then
  4483. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4484. else
  4485. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4486. fi
  4487. ;;
  4488. esac
  4489. if test -n "$ac_tool_prefix"; then
  4490. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4491. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4493. $as_echo_n "checking for $ac_word... " >&6; }
  4494. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4495. $as_echo_n "(cached) " >&6
  4496. else
  4497. if test -n "$OBJDUMP"; then
  4498. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4499. else
  4500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4501. for as_dir in $PATH
  4502. do
  4503. IFS=$as_save_IFS
  4504. test -z "$as_dir" && as_dir=.
  4505. for ac_exec_ext in '' $ac_executable_extensions; do
  4506. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4507. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4508. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4509. break 2
  4510. fi
  4511. done
  4512. done
  4513. IFS=$as_save_IFS
  4514. fi
  4515. fi
  4516. OBJDUMP=$ac_cv_prog_OBJDUMP
  4517. if test -n "$OBJDUMP"; then
  4518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4519. $as_echo "$OBJDUMP" >&6; }
  4520. else
  4521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4522. $as_echo "no" >&6; }
  4523. fi
  4524. fi
  4525. if test -z "$ac_cv_prog_OBJDUMP"; then
  4526. ac_ct_OBJDUMP=$OBJDUMP
  4527. # Extract the first word of "objdump", so it can be a program name with args.
  4528. set dummy objdump; ac_word=$2
  4529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4530. $as_echo_n "checking for $ac_word... " >&6; }
  4531. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4532. $as_echo_n "(cached) " >&6
  4533. else
  4534. if test -n "$ac_ct_OBJDUMP"; then
  4535. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4536. else
  4537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4538. for as_dir in $PATH
  4539. do
  4540. IFS=$as_save_IFS
  4541. test -z "$as_dir" && as_dir=.
  4542. for ac_exec_ext in '' $ac_executable_extensions; do
  4543. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4544. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4545. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4546. break 2
  4547. fi
  4548. done
  4549. done
  4550. IFS=$as_save_IFS
  4551. fi
  4552. fi
  4553. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4554. if test -n "$ac_ct_OBJDUMP"; then
  4555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4556. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4557. else
  4558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4559. $as_echo "no" >&6; }
  4560. fi
  4561. if test "x$ac_ct_OBJDUMP" = x; then
  4562. OBJDUMP="false"
  4563. else
  4564. case $cross_compiling:$ac_tool_warned in
  4565. yes:)
  4566. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4567. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4568. ac_tool_warned=yes ;;
  4569. esac
  4570. OBJDUMP=$ac_ct_OBJDUMP
  4571. fi
  4572. else
  4573. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4574. fi
  4575. test -z "$OBJDUMP" && OBJDUMP=objdump
  4576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4577. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4578. if ${lt_cv_deplibs_check_method+:} false; then :
  4579. $as_echo_n "(cached) " >&6
  4580. else
  4581. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4582. lt_cv_file_magic_test_file=
  4583. lt_cv_deplibs_check_method='unknown'
  4584. # Need to set the preceding variable on all platforms that support
  4585. # interlibrary dependencies.
  4586. # 'none' -- dependencies not supported.
  4587. # `unknown' -- same as none, but documents that we really don't know.
  4588. # 'pass_all' -- all dependencies passed with no checks.
  4589. # 'test_compile' -- check by making test program.
  4590. # 'file_magic [[regex]]' -- check by looking for files in library path
  4591. # which responds to the $file_magic_cmd with a given extended regex.
  4592. # If you have `file' or equivalent on your system and you're not sure
  4593. # whether `pass_all' will *always* work, you probably want this one.
  4594. case $host_os in
  4595. aix[4-9]*)
  4596. lt_cv_deplibs_check_method=pass_all
  4597. ;;
  4598. beos*)
  4599. lt_cv_deplibs_check_method=pass_all
  4600. ;;
  4601. bsdi[45]*)
  4602. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4603. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4604. lt_cv_file_magic_test_file=/shlib/libc.so
  4605. ;;
  4606. cygwin*)
  4607. # func_win32_libid is a shell function defined in ltmain.sh
  4608. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4609. lt_cv_file_magic_cmd='func_win32_libid'
  4610. ;;
  4611. mingw* | pw32*)
  4612. # Base MSYS/MinGW do not provide the 'file' command needed by
  4613. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4614. # unless we find 'file', for example because we are cross-compiling.
  4615. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4616. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4617. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4618. lt_cv_file_magic_cmd='func_win32_libid'
  4619. else
  4620. # Keep this pattern in sync with the one in func_win32_libid.
  4621. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4622. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4623. fi
  4624. ;;
  4625. cegcc*)
  4626. # use the weaker test based on 'objdump'. See mingw*.
  4627. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4628. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4629. ;;
  4630. darwin* | rhapsody*)
  4631. lt_cv_deplibs_check_method=pass_all
  4632. ;;
  4633. freebsd* | dragonfly*)
  4634. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4635. case $host_cpu in
  4636. i*86 )
  4637. # Not sure whether the presence of OpenBSD here was a mistake.
  4638. # Let's accept both of them until this is cleared up.
  4639. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4640. lt_cv_file_magic_cmd=/usr/bin/file
  4641. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4642. ;;
  4643. esac
  4644. else
  4645. lt_cv_deplibs_check_method=pass_all
  4646. fi
  4647. ;;
  4648. gnu*)
  4649. lt_cv_deplibs_check_method=pass_all
  4650. ;;
  4651. haiku*)
  4652. lt_cv_deplibs_check_method=pass_all
  4653. ;;
  4654. hpux10.20* | hpux11*)
  4655. lt_cv_file_magic_cmd=/usr/bin/file
  4656. case $host_cpu in
  4657. ia64*)
  4658. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4659. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4660. ;;
  4661. hppa*64*)
  4662. 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]'
  4663. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4664. ;;
  4665. *)
  4666. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4667. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4668. ;;
  4669. esac
  4670. ;;
  4671. interix[3-9]*)
  4672. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4673. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4674. ;;
  4675. irix5* | irix6* | nonstopux*)
  4676. case $LD in
  4677. *-32|*"-32 ") libmagic=32-bit;;
  4678. *-n32|*"-n32 ") libmagic=N32;;
  4679. *-64|*"-64 ") libmagic=64-bit;;
  4680. *) libmagic=never-match;;
  4681. esac
  4682. lt_cv_deplibs_check_method=pass_all
  4683. ;;
  4684. # This must be Linux ELF.
  4685. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4686. lt_cv_deplibs_check_method=pass_all
  4687. ;;
  4688. netbsd*)
  4689. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4690. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4691. else
  4692. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4693. fi
  4694. ;;
  4695. newos6*)
  4696. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4697. lt_cv_file_magic_cmd=/usr/bin/file
  4698. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4699. ;;
  4700. *nto* | *qnx*)
  4701. lt_cv_deplibs_check_method=pass_all
  4702. ;;
  4703. openbsd*)
  4704. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4705. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4706. else
  4707. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4708. fi
  4709. ;;
  4710. osf3* | osf4* | osf5*)
  4711. lt_cv_deplibs_check_method=pass_all
  4712. ;;
  4713. rdos*)
  4714. lt_cv_deplibs_check_method=pass_all
  4715. ;;
  4716. solaris*)
  4717. lt_cv_deplibs_check_method=pass_all
  4718. ;;
  4719. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4720. lt_cv_deplibs_check_method=pass_all
  4721. ;;
  4722. sysv4 | sysv4.3*)
  4723. case $host_vendor in
  4724. motorola)
  4725. 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]'
  4726. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4727. ;;
  4728. ncr)
  4729. lt_cv_deplibs_check_method=pass_all
  4730. ;;
  4731. sequent)
  4732. lt_cv_file_magic_cmd='/bin/file'
  4733. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4734. ;;
  4735. sni)
  4736. lt_cv_file_magic_cmd='/bin/file'
  4737. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4738. lt_cv_file_magic_test_file=/lib/libc.so
  4739. ;;
  4740. siemens)
  4741. lt_cv_deplibs_check_method=pass_all
  4742. ;;
  4743. pc)
  4744. lt_cv_deplibs_check_method=pass_all
  4745. ;;
  4746. esac
  4747. ;;
  4748. tpf*)
  4749. lt_cv_deplibs_check_method=pass_all
  4750. ;;
  4751. esac
  4752. fi
  4753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4754. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4755. file_magic_glob=
  4756. want_nocaseglob=no
  4757. if test "$build" = "$host"; then
  4758. case $host_os in
  4759. mingw* | pw32*)
  4760. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4761. want_nocaseglob=yes
  4762. else
  4763. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4764. fi
  4765. ;;
  4766. esac
  4767. fi
  4768. file_magic_cmd=$lt_cv_file_magic_cmd
  4769. deplibs_check_method=$lt_cv_deplibs_check_method
  4770. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4771. if test -n "$ac_tool_prefix"; then
  4772. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4773. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4775. $as_echo_n "checking for $ac_word... " >&6; }
  4776. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4777. $as_echo_n "(cached) " >&6
  4778. else
  4779. if test -n "$DLLTOOL"; then
  4780. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4781. else
  4782. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4783. for as_dir in $PATH
  4784. do
  4785. IFS=$as_save_IFS
  4786. test -z "$as_dir" && as_dir=.
  4787. for ac_exec_ext in '' $ac_executable_extensions; do
  4788. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4789. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4790. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4791. break 2
  4792. fi
  4793. done
  4794. done
  4795. IFS=$as_save_IFS
  4796. fi
  4797. fi
  4798. DLLTOOL=$ac_cv_prog_DLLTOOL
  4799. if test -n "$DLLTOOL"; then
  4800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4801. $as_echo "$DLLTOOL" >&6; }
  4802. else
  4803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4804. $as_echo "no" >&6; }
  4805. fi
  4806. fi
  4807. if test -z "$ac_cv_prog_DLLTOOL"; then
  4808. ac_ct_DLLTOOL=$DLLTOOL
  4809. # Extract the first word of "dlltool", so it can be a program name with args.
  4810. set dummy dlltool; ac_word=$2
  4811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4812. $as_echo_n "checking for $ac_word... " >&6; }
  4813. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4814. $as_echo_n "(cached) " >&6
  4815. else
  4816. if test -n "$ac_ct_DLLTOOL"; then
  4817. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4818. else
  4819. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4820. for as_dir in $PATH
  4821. do
  4822. IFS=$as_save_IFS
  4823. test -z "$as_dir" && as_dir=.
  4824. for ac_exec_ext in '' $ac_executable_extensions; do
  4825. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4826. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4827. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4828. break 2
  4829. fi
  4830. done
  4831. done
  4832. IFS=$as_save_IFS
  4833. fi
  4834. fi
  4835. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4836. if test -n "$ac_ct_DLLTOOL"; then
  4837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4838. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4839. else
  4840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4841. $as_echo "no" >&6; }
  4842. fi
  4843. if test "x$ac_ct_DLLTOOL" = x; then
  4844. DLLTOOL="false"
  4845. else
  4846. case $cross_compiling:$ac_tool_warned in
  4847. yes:)
  4848. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4849. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4850. ac_tool_warned=yes ;;
  4851. esac
  4852. DLLTOOL=$ac_ct_DLLTOOL
  4853. fi
  4854. else
  4855. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4856. fi
  4857. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4859. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4860. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4861. $as_echo_n "(cached) " >&6
  4862. else
  4863. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4864. case $host_os in
  4865. cygwin* | mingw* | pw32* | cegcc*)
  4866. # two different shell functions defined in ltmain.sh
  4867. # decide which to use based on capabilities of $DLLTOOL
  4868. case `$DLLTOOL --help 2>&1` in
  4869. *--identify-strict*)
  4870. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4871. ;;
  4872. *)
  4873. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4874. ;;
  4875. esac
  4876. ;;
  4877. *)
  4878. # fallback: assume linklib IS sharedlib
  4879. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4880. ;;
  4881. esac
  4882. fi
  4883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4884. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4885. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4886. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4887. if test -n "$ac_tool_prefix"; then
  4888. for ac_prog in ar
  4889. do
  4890. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4891. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4893. $as_echo_n "checking for $ac_word... " >&6; }
  4894. if ${ac_cv_prog_AR+:} false; then :
  4895. $as_echo_n "(cached) " >&6
  4896. else
  4897. if test -n "$AR"; then
  4898. ac_cv_prog_AR="$AR" # Let the user override the test.
  4899. else
  4900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4901. for as_dir in $PATH
  4902. do
  4903. IFS=$as_save_IFS
  4904. test -z "$as_dir" && as_dir=.
  4905. for ac_exec_ext in '' $ac_executable_extensions; do
  4906. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4907. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4908. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4909. break 2
  4910. fi
  4911. done
  4912. done
  4913. IFS=$as_save_IFS
  4914. fi
  4915. fi
  4916. AR=$ac_cv_prog_AR
  4917. if test -n "$AR"; then
  4918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4919. $as_echo "$AR" >&6; }
  4920. else
  4921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4922. $as_echo "no" >&6; }
  4923. fi
  4924. test -n "$AR" && break
  4925. done
  4926. fi
  4927. if test -z "$AR"; then
  4928. ac_ct_AR=$AR
  4929. for ac_prog in ar
  4930. do
  4931. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4932. set dummy $ac_prog; ac_word=$2
  4933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4934. $as_echo_n "checking for $ac_word... " >&6; }
  4935. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4936. $as_echo_n "(cached) " >&6
  4937. else
  4938. if test -n "$ac_ct_AR"; then
  4939. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4940. else
  4941. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4942. for as_dir in $PATH
  4943. do
  4944. IFS=$as_save_IFS
  4945. test -z "$as_dir" && as_dir=.
  4946. for ac_exec_ext in '' $ac_executable_extensions; do
  4947. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4948. ac_cv_prog_ac_ct_AR="$ac_prog"
  4949. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4950. break 2
  4951. fi
  4952. done
  4953. done
  4954. IFS=$as_save_IFS
  4955. fi
  4956. fi
  4957. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4958. if test -n "$ac_ct_AR"; then
  4959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4960. $as_echo "$ac_ct_AR" >&6; }
  4961. else
  4962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4963. $as_echo "no" >&6; }
  4964. fi
  4965. test -n "$ac_ct_AR" && break
  4966. done
  4967. if test "x$ac_ct_AR" = x; then
  4968. AR="false"
  4969. else
  4970. case $cross_compiling:$ac_tool_warned in
  4971. yes:)
  4972. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4973. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4974. ac_tool_warned=yes ;;
  4975. esac
  4976. AR=$ac_ct_AR
  4977. fi
  4978. fi
  4979. : ${AR=ar}
  4980. : ${AR_FLAGS=cru}
  4981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4982. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4983. if ${lt_cv_ar_at_file+:} false; then :
  4984. $as_echo_n "(cached) " >&6
  4985. else
  4986. lt_cv_ar_at_file=no
  4987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4988. /* end confdefs.h. */
  4989. int
  4990. main ()
  4991. {
  4992. ;
  4993. return 0;
  4994. }
  4995. _ACEOF
  4996. if ac_fn_c_try_compile "$LINENO"; then :
  4997. echo conftest.$ac_objext > conftest.lst
  4998. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4999. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5000. (eval $lt_ar_try) 2>&5
  5001. ac_status=$?
  5002. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5003. test $ac_status = 0; }
  5004. if test "$ac_status" -eq 0; then
  5005. # Ensure the archiver fails upon bogus file names.
  5006. rm -f conftest.$ac_objext libconftest.a
  5007. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5008. (eval $lt_ar_try) 2>&5
  5009. ac_status=$?
  5010. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5011. test $ac_status = 0; }
  5012. if test "$ac_status" -ne 0; then
  5013. lt_cv_ar_at_file=@
  5014. fi
  5015. fi
  5016. rm -f conftest.* libconftest.a
  5017. fi
  5018. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5019. fi
  5020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5021. $as_echo "$lt_cv_ar_at_file" >&6; }
  5022. if test "x$lt_cv_ar_at_file" = xno; then
  5023. archiver_list_spec=
  5024. else
  5025. archiver_list_spec=$lt_cv_ar_at_file
  5026. fi
  5027. if test -n "$ac_tool_prefix"; then
  5028. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5029. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5031. $as_echo_n "checking for $ac_word... " >&6; }
  5032. if ${ac_cv_prog_STRIP+:} false; then :
  5033. $as_echo_n "(cached) " >&6
  5034. else
  5035. if test -n "$STRIP"; then
  5036. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5037. else
  5038. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5039. for as_dir in $PATH
  5040. do
  5041. IFS=$as_save_IFS
  5042. test -z "$as_dir" && as_dir=.
  5043. for ac_exec_ext in '' $ac_executable_extensions; do
  5044. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5045. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5046. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5047. break 2
  5048. fi
  5049. done
  5050. done
  5051. IFS=$as_save_IFS
  5052. fi
  5053. fi
  5054. STRIP=$ac_cv_prog_STRIP
  5055. if test -n "$STRIP"; then
  5056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5057. $as_echo "$STRIP" >&6; }
  5058. else
  5059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5060. $as_echo "no" >&6; }
  5061. fi
  5062. fi
  5063. if test -z "$ac_cv_prog_STRIP"; then
  5064. ac_ct_STRIP=$STRIP
  5065. # Extract the first word of "strip", so it can be a program name with args.
  5066. set dummy strip; ac_word=$2
  5067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5068. $as_echo_n "checking for $ac_word... " >&6; }
  5069. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5070. $as_echo_n "(cached) " >&6
  5071. else
  5072. if test -n "$ac_ct_STRIP"; then
  5073. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5074. else
  5075. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5076. for as_dir in $PATH
  5077. do
  5078. IFS=$as_save_IFS
  5079. test -z "$as_dir" && as_dir=.
  5080. for ac_exec_ext in '' $ac_executable_extensions; do
  5081. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5082. ac_cv_prog_ac_ct_STRIP="strip"
  5083. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5084. break 2
  5085. fi
  5086. done
  5087. done
  5088. IFS=$as_save_IFS
  5089. fi
  5090. fi
  5091. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5092. if test -n "$ac_ct_STRIP"; then
  5093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5094. $as_echo "$ac_ct_STRIP" >&6; }
  5095. else
  5096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5097. $as_echo "no" >&6; }
  5098. fi
  5099. if test "x$ac_ct_STRIP" = x; then
  5100. STRIP=":"
  5101. else
  5102. case $cross_compiling:$ac_tool_warned in
  5103. yes:)
  5104. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5105. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5106. ac_tool_warned=yes ;;
  5107. esac
  5108. STRIP=$ac_ct_STRIP
  5109. fi
  5110. else
  5111. STRIP="$ac_cv_prog_STRIP"
  5112. fi
  5113. test -z "$STRIP" && STRIP=:
  5114. if test -n "$ac_tool_prefix"; then
  5115. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5116. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5118. $as_echo_n "checking for $ac_word... " >&6; }
  5119. if ${ac_cv_prog_RANLIB+:} false; then :
  5120. $as_echo_n "(cached) " >&6
  5121. else
  5122. if test -n "$RANLIB"; then
  5123. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5124. else
  5125. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5126. for as_dir in $PATH
  5127. do
  5128. IFS=$as_save_IFS
  5129. test -z "$as_dir" && as_dir=.
  5130. for ac_exec_ext in '' $ac_executable_extensions; do
  5131. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5132. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5133. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5134. break 2
  5135. fi
  5136. done
  5137. done
  5138. IFS=$as_save_IFS
  5139. fi
  5140. fi
  5141. RANLIB=$ac_cv_prog_RANLIB
  5142. if test -n "$RANLIB"; then
  5143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5144. $as_echo "$RANLIB" >&6; }
  5145. else
  5146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5147. $as_echo "no" >&6; }
  5148. fi
  5149. fi
  5150. if test -z "$ac_cv_prog_RANLIB"; then
  5151. ac_ct_RANLIB=$RANLIB
  5152. # Extract the first word of "ranlib", so it can be a program name with args.
  5153. set dummy ranlib; ac_word=$2
  5154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5155. $as_echo_n "checking for $ac_word... " >&6; }
  5156. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5157. $as_echo_n "(cached) " >&6
  5158. else
  5159. if test -n "$ac_ct_RANLIB"; then
  5160. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5161. else
  5162. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5163. for as_dir in $PATH
  5164. do
  5165. IFS=$as_save_IFS
  5166. test -z "$as_dir" && as_dir=.
  5167. for ac_exec_ext in '' $ac_executable_extensions; do
  5168. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5169. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5170. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5171. break 2
  5172. fi
  5173. done
  5174. done
  5175. IFS=$as_save_IFS
  5176. fi
  5177. fi
  5178. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5179. if test -n "$ac_ct_RANLIB"; then
  5180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5181. $as_echo "$ac_ct_RANLIB" >&6; }
  5182. else
  5183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5184. $as_echo "no" >&6; }
  5185. fi
  5186. if test "x$ac_ct_RANLIB" = x; then
  5187. RANLIB=":"
  5188. else
  5189. case $cross_compiling:$ac_tool_warned in
  5190. yes:)
  5191. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5192. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5193. ac_tool_warned=yes ;;
  5194. esac
  5195. RANLIB=$ac_ct_RANLIB
  5196. fi
  5197. else
  5198. RANLIB="$ac_cv_prog_RANLIB"
  5199. fi
  5200. test -z "$RANLIB" && RANLIB=:
  5201. # Determine commands to create old-style static archives.
  5202. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5203. old_postinstall_cmds='chmod 644 $oldlib'
  5204. old_postuninstall_cmds=
  5205. if test -n "$RANLIB"; then
  5206. case $host_os in
  5207. openbsd*)
  5208. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5209. ;;
  5210. *)
  5211. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5212. ;;
  5213. esac
  5214. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5215. fi
  5216. case $host_os in
  5217. darwin*)
  5218. lock_old_archive_extraction=yes ;;
  5219. *)
  5220. lock_old_archive_extraction=no ;;
  5221. esac
  5222. for ac_prog in gawk mawk nawk awk
  5223. do
  5224. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5225. set dummy $ac_prog; ac_word=$2
  5226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5227. $as_echo_n "checking for $ac_word... " >&6; }
  5228. if ${ac_cv_prog_AWK+:} false; then :
  5229. $as_echo_n "(cached) " >&6
  5230. else
  5231. if test -n "$AWK"; then
  5232. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5233. else
  5234. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5235. for as_dir in $PATH
  5236. do
  5237. IFS=$as_save_IFS
  5238. test -z "$as_dir" && as_dir=.
  5239. for ac_exec_ext in '' $ac_executable_extensions; do
  5240. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5241. ac_cv_prog_AWK="$ac_prog"
  5242. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5243. break 2
  5244. fi
  5245. done
  5246. done
  5247. IFS=$as_save_IFS
  5248. fi
  5249. fi
  5250. AWK=$ac_cv_prog_AWK
  5251. if test -n "$AWK"; then
  5252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5253. $as_echo "$AWK" >&6; }
  5254. else
  5255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5256. $as_echo "no" >&6; }
  5257. fi
  5258. test -n "$AWK" && break
  5259. done
  5260. # If no C compiler was specified, use CC.
  5261. LTCC=${LTCC-"$CC"}
  5262. # If no C compiler flags were specified, use CFLAGS.
  5263. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5264. # Allow CC to be a program name with arguments.
  5265. compiler=$CC
  5266. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5268. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5269. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5270. $as_echo_n "(cached) " >&6
  5271. else
  5272. # These are sane defaults that work on at least a few old systems.
  5273. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5274. # Character class describing NM global symbol codes.
  5275. symcode='[BCDEGRST]'
  5276. # Regexp to match symbols that can be accessed directly from C.
  5277. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5278. # Define system-specific variables.
  5279. case $host_os in
  5280. aix*)
  5281. symcode='[BCDT]'
  5282. ;;
  5283. cygwin* | mingw* | pw32* | cegcc*)
  5284. symcode='[ABCDGISTW]'
  5285. ;;
  5286. hpux*)
  5287. if test "$host_cpu" = ia64; then
  5288. symcode='[ABCDEGRST]'
  5289. fi
  5290. ;;
  5291. irix* | nonstopux*)
  5292. symcode='[BCDEGRST]'
  5293. ;;
  5294. osf*)
  5295. symcode='[BCDEGQRST]'
  5296. ;;
  5297. solaris*)
  5298. symcode='[BDRT]'
  5299. ;;
  5300. sco3.2v5*)
  5301. symcode='[DT]'
  5302. ;;
  5303. sysv4.2uw2*)
  5304. symcode='[DT]'
  5305. ;;
  5306. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5307. symcode='[ABDT]'
  5308. ;;
  5309. sysv4)
  5310. symcode='[DFNSTU]'
  5311. ;;
  5312. esac
  5313. # If we're using GNU nm, then use its standard symbol codes.
  5314. case `$NM -V 2>&1` in
  5315. *GNU* | *'with BFD'*)
  5316. symcode='[ABCDGIRSTW]' ;;
  5317. esac
  5318. # Transform an extracted symbol line into a proper C declaration.
  5319. # Some systems (esp. on ia64) link data and code symbols differently,
  5320. # so use this general approach.
  5321. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5322. # Transform an extracted symbol line into symbol name and symbol address
  5323. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5324. 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'"
  5325. # Handle CRLF in mingw tool chain
  5326. opt_cr=
  5327. case $build_os in
  5328. mingw*)
  5329. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5330. ;;
  5331. esac
  5332. # Try without a prefix underscore, then with it.
  5333. for ac_symprfx in "" "_"; do
  5334. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5335. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5336. # Write the raw and C identifiers.
  5337. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5338. # Fake it for dumpbin and say T for any non-static function
  5339. # and D for any global variable.
  5340. # Also find C++ and __fastcall symbols from MSVC++,
  5341. # which start with @ or ?.
  5342. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5343. " {last_section=section; section=\$ 3};"\
  5344. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5345. " \$ 0!~/External *\|/{next};"\
  5346. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5347. " {if(hide[section]) next};"\
  5348. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5349. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5350. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5351. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5352. " ' prfx=^$ac_symprfx"
  5353. else
  5354. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5355. fi
  5356. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5357. # Check to see that the pipe works correctly.
  5358. pipe_works=no
  5359. rm -f conftest*
  5360. cat > conftest.$ac_ext <<_LT_EOF
  5361. #ifdef __cplusplus
  5362. extern "C" {
  5363. #endif
  5364. char nm_test_var;
  5365. void nm_test_func(void);
  5366. void nm_test_func(void){}
  5367. #ifdef __cplusplus
  5368. }
  5369. #endif
  5370. int main(){nm_test_var='a';nm_test_func();return(0);}
  5371. _LT_EOF
  5372. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5373. (eval $ac_compile) 2>&5
  5374. ac_status=$?
  5375. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5376. test $ac_status = 0; }; then
  5377. # Now try to grab the symbols.
  5378. nlist=conftest.nm
  5379. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5380. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5381. ac_status=$?
  5382. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5383. test $ac_status = 0; } && test -s "$nlist"; then
  5384. # Try sorting and uniquifying the output.
  5385. if sort "$nlist" | uniq > "$nlist"T; then
  5386. mv -f "$nlist"T "$nlist"
  5387. else
  5388. rm -f "$nlist"T
  5389. fi
  5390. # Make sure that we snagged all the symbols we need.
  5391. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5392. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5393. cat <<_LT_EOF > conftest.$ac_ext
  5394. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5395. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5396. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5397. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5398. # define LT_DLSYM_CONST
  5399. #elif defined(__osf__)
  5400. /* This system does not cope well with relocations in const data. */
  5401. # define LT_DLSYM_CONST
  5402. #else
  5403. # define LT_DLSYM_CONST const
  5404. #endif
  5405. #ifdef __cplusplus
  5406. extern "C" {
  5407. #endif
  5408. _LT_EOF
  5409. # Now generate the symbol file.
  5410. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5411. cat <<_LT_EOF >> conftest.$ac_ext
  5412. /* The mapping between symbol names and symbols. */
  5413. LT_DLSYM_CONST struct {
  5414. const char *name;
  5415. void *address;
  5416. }
  5417. lt__PROGRAM__LTX_preloaded_symbols[] =
  5418. {
  5419. { "@PROGRAM@", (void *) 0 },
  5420. _LT_EOF
  5421. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5422. cat <<\_LT_EOF >> conftest.$ac_ext
  5423. {0, (void *) 0}
  5424. };
  5425. /* This works around a problem in FreeBSD linker */
  5426. #ifdef FREEBSD_WORKAROUND
  5427. static const void *lt_preloaded_setup() {
  5428. return lt__PROGRAM__LTX_preloaded_symbols;
  5429. }
  5430. #endif
  5431. #ifdef __cplusplus
  5432. }
  5433. #endif
  5434. _LT_EOF
  5435. # Now try linking the two files.
  5436. mv conftest.$ac_objext conftstm.$ac_objext
  5437. lt_globsym_save_LIBS=$LIBS
  5438. lt_globsym_save_CFLAGS=$CFLAGS
  5439. LIBS="conftstm.$ac_objext"
  5440. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5441. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5442. (eval $ac_link) 2>&5
  5443. ac_status=$?
  5444. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5445. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5446. pipe_works=yes
  5447. fi
  5448. LIBS=$lt_globsym_save_LIBS
  5449. CFLAGS=$lt_globsym_save_CFLAGS
  5450. else
  5451. echo "cannot find nm_test_func in $nlist" >&5
  5452. fi
  5453. else
  5454. echo "cannot find nm_test_var in $nlist" >&5
  5455. fi
  5456. else
  5457. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5458. fi
  5459. else
  5460. echo "$progname: failed program was:" >&5
  5461. cat conftest.$ac_ext >&5
  5462. fi
  5463. rm -rf conftest* conftst*
  5464. # Do not use the global_symbol_pipe unless it works.
  5465. if test "$pipe_works" = yes; then
  5466. break
  5467. else
  5468. lt_cv_sys_global_symbol_pipe=
  5469. fi
  5470. done
  5471. fi
  5472. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5473. lt_cv_sys_global_symbol_to_cdecl=
  5474. fi
  5475. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5477. $as_echo "failed" >&6; }
  5478. else
  5479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5480. $as_echo "ok" >&6; }
  5481. fi
  5482. # Response file support.
  5483. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5484. nm_file_list_spec='@'
  5485. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5486. nm_file_list_spec='@'
  5487. fi
  5488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5489. $as_echo_n "checking for sysroot... " >&6; }
  5490. # Check whether --with-sysroot was given.
  5491. if test "${with_sysroot+set}" = set; then :
  5492. withval=$with_sysroot;
  5493. else
  5494. with_sysroot=no
  5495. fi
  5496. lt_sysroot=
  5497. case ${with_sysroot} in #(
  5498. yes)
  5499. if test "$GCC" = yes; then
  5500. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5501. fi
  5502. ;; #(
  5503. /*)
  5504. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5505. ;; #(
  5506. no|'')
  5507. ;; #(
  5508. *)
  5509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5510. $as_echo "${with_sysroot}" >&6; }
  5511. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5512. ;;
  5513. esac
  5514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5515. $as_echo "${lt_sysroot:-no}" >&6; }
  5516. # Check whether --enable-libtool-lock was given.
  5517. if test "${enable_libtool_lock+set}" = set; then :
  5518. enableval=$enable_libtool_lock;
  5519. fi
  5520. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5521. # Some flags need to be propagated to the compiler or linker for good
  5522. # libtool support.
  5523. case $host in
  5524. ia64-*-hpux*)
  5525. # Find out which ABI we are using.
  5526. echo 'int i;' > conftest.$ac_ext
  5527. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5528. (eval $ac_compile) 2>&5
  5529. ac_status=$?
  5530. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5531. test $ac_status = 0; }; then
  5532. case `/usr/bin/file conftest.$ac_objext` in
  5533. *ELF-32*)
  5534. HPUX_IA64_MODE="32"
  5535. ;;
  5536. *ELF-64*)
  5537. HPUX_IA64_MODE="64"
  5538. ;;
  5539. esac
  5540. fi
  5541. rm -rf conftest*
  5542. ;;
  5543. *-*-irix6*)
  5544. # Find out which ABI we are using.
  5545. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5546. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5547. (eval $ac_compile) 2>&5
  5548. ac_status=$?
  5549. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5550. test $ac_status = 0; }; then
  5551. if test "$lt_cv_prog_gnu_ld" = yes; then
  5552. case `/usr/bin/file conftest.$ac_objext` in
  5553. *32-bit*)
  5554. LD="${LD-ld} -melf32bsmip"
  5555. ;;
  5556. *N32*)
  5557. LD="${LD-ld} -melf32bmipn32"
  5558. ;;
  5559. *64-bit*)
  5560. LD="${LD-ld} -melf64bmip"
  5561. ;;
  5562. esac
  5563. else
  5564. case `/usr/bin/file conftest.$ac_objext` in
  5565. *32-bit*)
  5566. LD="${LD-ld} -32"
  5567. ;;
  5568. *N32*)
  5569. LD="${LD-ld} -n32"
  5570. ;;
  5571. *64-bit*)
  5572. LD="${LD-ld} -64"
  5573. ;;
  5574. esac
  5575. fi
  5576. fi
  5577. rm -rf conftest*
  5578. ;;
  5579. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5580. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5581. # Find out which ABI we are using.
  5582. echo 'int i;' > conftest.$ac_ext
  5583. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5584. (eval $ac_compile) 2>&5
  5585. ac_status=$?
  5586. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5587. test $ac_status = 0; }; then
  5588. case `/usr/bin/file conftest.o` in
  5589. *32-bit*)
  5590. case $host in
  5591. x86_64-*kfreebsd*-gnu)
  5592. LD="${LD-ld} -m elf_i386_fbsd"
  5593. ;;
  5594. x86_64-*linux*)
  5595. LD="${LD-ld} -m elf_i386"
  5596. ;;
  5597. ppc64-*linux*|powerpc64-*linux*)
  5598. LD="${LD-ld} -m elf32ppclinux"
  5599. ;;
  5600. s390x-*linux*)
  5601. LD="${LD-ld} -m elf_s390"
  5602. ;;
  5603. sparc64-*linux*)
  5604. LD="${LD-ld} -m elf32_sparc"
  5605. ;;
  5606. esac
  5607. ;;
  5608. *64-bit*)
  5609. case $host in
  5610. x86_64-*kfreebsd*-gnu)
  5611. LD="${LD-ld} -m elf_x86_64_fbsd"
  5612. ;;
  5613. x86_64-*linux*)
  5614. LD="${LD-ld} -m elf_x86_64"
  5615. ;;
  5616. ppc*-*linux*|powerpc*-*linux*)
  5617. LD="${LD-ld} -m elf64ppc"
  5618. ;;
  5619. s390*-*linux*|s390*-*tpf*)
  5620. LD="${LD-ld} -m elf64_s390"
  5621. ;;
  5622. sparc*-*linux*)
  5623. LD="${LD-ld} -m elf64_sparc"
  5624. ;;
  5625. esac
  5626. ;;
  5627. esac
  5628. fi
  5629. rm -rf conftest*
  5630. ;;
  5631. *-*-sco3.2v5*)
  5632. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5633. SAVE_CFLAGS="$CFLAGS"
  5634. CFLAGS="$CFLAGS -belf"
  5635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5636. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5637. if ${lt_cv_cc_needs_belf+:} false; then :
  5638. $as_echo_n "(cached) " >&6
  5639. else
  5640. ac_ext=c
  5641. ac_cpp='$CPP $CPPFLAGS'
  5642. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5643. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5644. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5646. /* end confdefs.h. */
  5647. int
  5648. main ()
  5649. {
  5650. ;
  5651. return 0;
  5652. }
  5653. _ACEOF
  5654. if ac_fn_c_try_link "$LINENO"; then :
  5655. lt_cv_cc_needs_belf=yes
  5656. else
  5657. lt_cv_cc_needs_belf=no
  5658. fi
  5659. rm -f core conftest.err conftest.$ac_objext \
  5660. conftest$ac_exeext conftest.$ac_ext
  5661. ac_ext=c
  5662. ac_cpp='$CPP $CPPFLAGS'
  5663. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5664. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5665. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5666. fi
  5667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5668. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5669. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5670. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5671. CFLAGS="$SAVE_CFLAGS"
  5672. fi
  5673. ;;
  5674. sparc*-*solaris*)
  5675. # Find out which ABI we are using.
  5676. echo 'int i;' > conftest.$ac_ext
  5677. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5678. (eval $ac_compile) 2>&5
  5679. ac_status=$?
  5680. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5681. test $ac_status = 0; }; then
  5682. case `/usr/bin/file conftest.o` in
  5683. *64-bit*)
  5684. case $lt_cv_prog_gnu_ld in
  5685. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5686. *)
  5687. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5688. LD="${LD-ld} -64"
  5689. fi
  5690. ;;
  5691. esac
  5692. ;;
  5693. esac
  5694. fi
  5695. rm -rf conftest*
  5696. ;;
  5697. esac
  5698. need_locks="$enable_libtool_lock"
  5699. if test -n "$ac_tool_prefix"; then
  5700. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5701. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5703. $as_echo_n "checking for $ac_word... " >&6; }
  5704. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5705. $as_echo_n "(cached) " >&6
  5706. else
  5707. if test -n "$MANIFEST_TOOL"; then
  5708. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5709. else
  5710. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5711. for as_dir in $PATH
  5712. do
  5713. IFS=$as_save_IFS
  5714. test -z "$as_dir" && as_dir=.
  5715. for ac_exec_ext in '' $ac_executable_extensions; do
  5716. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5717. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5718. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5719. break 2
  5720. fi
  5721. done
  5722. done
  5723. IFS=$as_save_IFS
  5724. fi
  5725. fi
  5726. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5727. if test -n "$MANIFEST_TOOL"; then
  5728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5729. $as_echo "$MANIFEST_TOOL" >&6; }
  5730. else
  5731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5732. $as_echo "no" >&6; }
  5733. fi
  5734. fi
  5735. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5736. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5737. # Extract the first word of "mt", so it can be a program name with args.
  5738. set dummy mt; ac_word=$2
  5739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5740. $as_echo_n "checking for $ac_word... " >&6; }
  5741. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5742. $as_echo_n "(cached) " >&6
  5743. else
  5744. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5745. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5746. else
  5747. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5748. for as_dir in $PATH
  5749. do
  5750. IFS=$as_save_IFS
  5751. test -z "$as_dir" && as_dir=.
  5752. for ac_exec_ext in '' $ac_executable_extensions; do
  5753. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5754. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5755. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5756. break 2
  5757. fi
  5758. done
  5759. done
  5760. IFS=$as_save_IFS
  5761. fi
  5762. fi
  5763. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5764. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5766. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5767. else
  5768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5769. $as_echo "no" >&6; }
  5770. fi
  5771. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5772. MANIFEST_TOOL=":"
  5773. else
  5774. case $cross_compiling:$ac_tool_warned in
  5775. yes:)
  5776. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5777. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5778. ac_tool_warned=yes ;;
  5779. esac
  5780. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5781. fi
  5782. else
  5783. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5784. fi
  5785. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5787. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5788. if ${lt_cv_path_mainfest_tool+:} false; then :
  5789. $as_echo_n "(cached) " >&6
  5790. else
  5791. lt_cv_path_mainfest_tool=no
  5792. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5793. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5794. cat conftest.err >&5
  5795. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5796. lt_cv_path_mainfest_tool=yes
  5797. fi
  5798. rm -f conftest*
  5799. fi
  5800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5801. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5802. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5803. MANIFEST_TOOL=:
  5804. fi
  5805. case $host_os in
  5806. rhapsody* | darwin*)
  5807. if test -n "$ac_tool_prefix"; then
  5808. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5809. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5811. $as_echo_n "checking for $ac_word... " >&6; }
  5812. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5813. $as_echo_n "(cached) " >&6
  5814. else
  5815. if test -n "$DSYMUTIL"; then
  5816. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5817. else
  5818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5819. for as_dir in $PATH
  5820. do
  5821. IFS=$as_save_IFS
  5822. test -z "$as_dir" && as_dir=.
  5823. for ac_exec_ext in '' $ac_executable_extensions; do
  5824. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5825. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5826. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5827. break 2
  5828. fi
  5829. done
  5830. done
  5831. IFS=$as_save_IFS
  5832. fi
  5833. fi
  5834. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5835. if test -n "$DSYMUTIL"; then
  5836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5837. $as_echo "$DSYMUTIL" >&6; }
  5838. else
  5839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5840. $as_echo "no" >&6; }
  5841. fi
  5842. fi
  5843. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5844. ac_ct_DSYMUTIL=$DSYMUTIL
  5845. # Extract the first word of "dsymutil", so it can be a program name with args.
  5846. set dummy dsymutil; ac_word=$2
  5847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5848. $as_echo_n "checking for $ac_word... " >&6; }
  5849. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5850. $as_echo_n "(cached) " >&6
  5851. else
  5852. if test -n "$ac_ct_DSYMUTIL"; then
  5853. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5854. else
  5855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5856. for as_dir in $PATH
  5857. do
  5858. IFS=$as_save_IFS
  5859. test -z "$as_dir" && as_dir=.
  5860. for ac_exec_ext in '' $ac_executable_extensions; do
  5861. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5862. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5863. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5864. break 2
  5865. fi
  5866. done
  5867. done
  5868. IFS=$as_save_IFS
  5869. fi
  5870. fi
  5871. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5872. if test -n "$ac_ct_DSYMUTIL"; then
  5873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5874. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5875. else
  5876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5877. $as_echo "no" >&6; }
  5878. fi
  5879. if test "x$ac_ct_DSYMUTIL" = x; then
  5880. DSYMUTIL=":"
  5881. else
  5882. case $cross_compiling:$ac_tool_warned in
  5883. yes:)
  5884. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5885. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5886. ac_tool_warned=yes ;;
  5887. esac
  5888. DSYMUTIL=$ac_ct_DSYMUTIL
  5889. fi
  5890. else
  5891. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5892. fi
  5893. if test -n "$ac_tool_prefix"; then
  5894. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5895. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5897. $as_echo_n "checking for $ac_word... " >&6; }
  5898. if ${ac_cv_prog_NMEDIT+:} false; then :
  5899. $as_echo_n "(cached) " >&6
  5900. else
  5901. if test -n "$NMEDIT"; then
  5902. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5903. else
  5904. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5905. for as_dir in $PATH
  5906. do
  5907. IFS=$as_save_IFS
  5908. test -z "$as_dir" && as_dir=.
  5909. for ac_exec_ext in '' $ac_executable_extensions; do
  5910. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5911. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5912. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5913. break 2
  5914. fi
  5915. done
  5916. done
  5917. IFS=$as_save_IFS
  5918. fi
  5919. fi
  5920. NMEDIT=$ac_cv_prog_NMEDIT
  5921. if test -n "$NMEDIT"; then
  5922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5923. $as_echo "$NMEDIT" >&6; }
  5924. else
  5925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5926. $as_echo "no" >&6; }
  5927. fi
  5928. fi
  5929. if test -z "$ac_cv_prog_NMEDIT"; then
  5930. ac_ct_NMEDIT=$NMEDIT
  5931. # Extract the first word of "nmedit", so it can be a program name with args.
  5932. set dummy nmedit; ac_word=$2
  5933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5934. $as_echo_n "checking for $ac_word... " >&6; }
  5935. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5936. $as_echo_n "(cached) " >&6
  5937. else
  5938. if test -n "$ac_ct_NMEDIT"; then
  5939. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5940. else
  5941. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5942. for as_dir in $PATH
  5943. do
  5944. IFS=$as_save_IFS
  5945. test -z "$as_dir" && as_dir=.
  5946. for ac_exec_ext in '' $ac_executable_extensions; do
  5947. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5948. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5949. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5950. break 2
  5951. fi
  5952. done
  5953. done
  5954. IFS=$as_save_IFS
  5955. fi
  5956. fi
  5957. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5958. if test -n "$ac_ct_NMEDIT"; then
  5959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5960. $as_echo "$ac_ct_NMEDIT" >&6; }
  5961. else
  5962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5963. $as_echo "no" >&6; }
  5964. fi
  5965. if test "x$ac_ct_NMEDIT" = x; then
  5966. NMEDIT=":"
  5967. else
  5968. case $cross_compiling:$ac_tool_warned in
  5969. yes:)
  5970. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5971. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5972. ac_tool_warned=yes ;;
  5973. esac
  5974. NMEDIT=$ac_ct_NMEDIT
  5975. fi
  5976. else
  5977. NMEDIT="$ac_cv_prog_NMEDIT"
  5978. fi
  5979. if test -n "$ac_tool_prefix"; then
  5980. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5981. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5983. $as_echo_n "checking for $ac_word... " >&6; }
  5984. if ${ac_cv_prog_LIPO+:} false; then :
  5985. $as_echo_n "(cached) " >&6
  5986. else
  5987. if test -n "$LIPO"; then
  5988. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5989. else
  5990. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5991. for as_dir in $PATH
  5992. do
  5993. IFS=$as_save_IFS
  5994. test -z "$as_dir" && as_dir=.
  5995. for ac_exec_ext in '' $ac_executable_extensions; do
  5996. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5997. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5998. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5999. break 2
  6000. fi
  6001. done
  6002. done
  6003. IFS=$as_save_IFS
  6004. fi
  6005. fi
  6006. LIPO=$ac_cv_prog_LIPO
  6007. if test -n "$LIPO"; then
  6008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6009. $as_echo "$LIPO" >&6; }
  6010. else
  6011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6012. $as_echo "no" >&6; }
  6013. fi
  6014. fi
  6015. if test -z "$ac_cv_prog_LIPO"; then
  6016. ac_ct_LIPO=$LIPO
  6017. # Extract the first word of "lipo", so it can be a program name with args.
  6018. set dummy lipo; ac_word=$2
  6019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6020. $as_echo_n "checking for $ac_word... " >&6; }
  6021. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6022. $as_echo_n "(cached) " >&6
  6023. else
  6024. if test -n "$ac_ct_LIPO"; then
  6025. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6026. else
  6027. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6028. for as_dir in $PATH
  6029. do
  6030. IFS=$as_save_IFS
  6031. test -z "$as_dir" && as_dir=.
  6032. for ac_exec_ext in '' $ac_executable_extensions; do
  6033. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6034. ac_cv_prog_ac_ct_LIPO="lipo"
  6035. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6036. break 2
  6037. fi
  6038. done
  6039. done
  6040. IFS=$as_save_IFS
  6041. fi
  6042. fi
  6043. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6044. if test -n "$ac_ct_LIPO"; then
  6045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6046. $as_echo "$ac_ct_LIPO" >&6; }
  6047. else
  6048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6049. $as_echo "no" >&6; }
  6050. fi
  6051. if test "x$ac_ct_LIPO" = x; then
  6052. LIPO=":"
  6053. else
  6054. case $cross_compiling:$ac_tool_warned in
  6055. yes:)
  6056. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6057. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6058. ac_tool_warned=yes ;;
  6059. esac
  6060. LIPO=$ac_ct_LIPO
  6061. fi
  6062. else
  6063. LIPO="$ac_cv_prog_LIPO"
  6064. fi
  6065. if test -n "$ac_tool_prefix"; then
  6066. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6067. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6069. $as_echo_n "checking for $ac_word... " >&6; }
  6070. if ${ac_cv_prog_OTOOL+:} false; then :
  6071. $as_echo_n "(cached) " >&6
  6072. else
  6073. if test -n "$OTOOL"; then
  6074. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6075. else
  6076. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6077. for as_dir in $PATH
  6078. do
  6079. IFS=$as_save_IFS
  6080. test -z "$as_dir" && as_dir=.
  6081. for ac_exec_ext in '' $ac_executable_extensions; do
  6082. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6083. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6084. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6085. break 2
  6086. fi
  6087. done
  6088. done
  6089. IFS=$as_save_IFS
  6090. fi
  6091. fi
  6092. OTOOL=$ac_cv_prog_OTOOL
  6093. if test -n "$OTOOL"; then
  6094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6095. $as_echo "$OTOOL" >&6; }
  6096. else
  6097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6098. $as_echo "no" >&6; }
  6099. fi
  6100. fi
  6101. if test -z "$ac_cv_prog_OTOOL"; then
  6102. ac_ct_OTOOL=$OTOOL
  6103. # Extract the first word of "otool", so it can be a program name with args.
  6104. set dummy otool; ac_word=$2
  6105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6106. $as_echo_n "checking for $ac_word... " >&6; }
  6107. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6108. $as_echo_n "(cached) " >&6
  6109. else
  6110. if test -n "$ac_ct_OTOOL"; then
  6111. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6112. else
  6113. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6114. for as_dir in $PATH
  6115. do
  6116. IFS=$as_save_IFS
  6117. test -z "$as_dir" && as_dir=.
  6118. for ac_exec_ext in '' $ac_executable_extensions; do
  6119. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6120. ac_cv_prog_ac_ct_OTOOL="otool"
  6121. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6122. break 2
  6123. fi
  6124. done
  6125. done
  6126. IFS=$as_save_IFS
  6127. fi
  6128. fi
  6129. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6130. if test -n "$ac_ct_OTOOL"; then
  6131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6132. $as_echo "$ac_ct_OTOOL" >&6; }
  6133. else
  6134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6135. $as_echo "no" >&6; }
  6136. fi
  6137. if test "x$ac_ct_OTOOL" = x; then
  6138. OTOOL=":"
  6139. else
  6140. case $cross_compiling:$ac_tool_warned in
  6141. yes:)
  6142. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6143. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6144. ac_tool_warned=yes ;;
  6145. esac
  6146. OTOOL=$ac_ct_OTOOL
  6147. fi
  6148. else
  6149. OTOOL="$ac_cv_prog_OTOOL"
  6150. fi
  6151. if test -n "$ac_tool_prefix"; then
  6152. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6153. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6155. $as_echo_n "checking for $ac_word... " >&6; }
  6156. if ${ac_cv_prog_OTOOL64+:} false; then :
  6157. $as_echo_n "(cached) " >&6
  6158. else
  6159. if test -n "$OTOOL64"; then
  6160. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6161. else
  6162. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6163. for as_dir in $PATH
  6164. do
  6165. IFS=$as_save_IFS
  6166. test -z "$as_dir" && as_dir=.
  6167. for ac_exec_ext in '' $ac_executable_extensions; do
  6168. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6169. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6170. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6171. break 2
  6172. fi
  6173. done
  6174. done
  6175. IFS=$as_save_IFS
  6176. fi
  6177. fi
  6178. OTOOL64=$ac_cv_prog_OTOOL64
  6179. if test -n "$OTOOL64"; then
  6180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6181. $as_echo "$OTOOL64" >&6; }
  6182. else
  6183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6184. $as_echo "no" >&6; }
  6185. fi
  6186. fi
  6187. if test -z "$ac_cv_prog_OTOOL64"; then
  6188. ac_ct_OTOOL64=$OTOOL64
  6189. # Extract the first word of "otool64", so it can be a program name with args.
  6190. set dummy otool64; ac_word=$2
  6191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6192. $as_echo_n "checking for $ac_word... " >&6; }
  6193. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6194. $as_echo_n "(cached) " >&6
  6195. else
  6196. if test -n "$ac_ct_OTOOL64"; then
  6197. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6198. else
  6199. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6200. for as_dir in $PATH
  6201. do
  6202. IFS=$as_save_IFS
  6203. test -z "$as_dir" && as_dir=.
  6204. for ac_exec_ext in '' $ac_executable_extensions; do
  6205. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6206. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6207. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6208. break 2
  6209. fi
  6210. done
  6211. done
  6212. IFS=$as_save_IFS
  6213. fi
  6214. fi
  6215. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6216. if test -n "$ac_ct_OTOOL64"; then
  6217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6218. $as_echo "$ac_ct_OTOOL64" >&6; }
  6219. else
  6220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6221. $as_echo "no" >&6; }
  6222. fi
  6223. if test "x$ac_ct_OTOOL64" = x; then
  6224. OTOOL64=":"
  6225. else
  6226. case $cross_compiling:$ac_tool_warned in
  6227. yes:)
  6228. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6229. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6230. ac_tool_warned=yes ;;
  6231. esac
  6232. OTOOL64=$ac_ct_OTOOL64
  6233. fi
  6234. else
  6235. OTOOL64="$ac_cv_prog_OTOOL64"
  6236. fi
  6237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6238. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6239. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6240. $as_echo_n "(cached) " >&6
  6241. else
  6242. lt_cv_apple_cc_single_mod=no
  6243. if test -z "${LT_MULTI_MODULE}"; then
  6244. # By default we will add the -single_module flag. You can override
  6245. # by either setting the environment variable LT_MULTI_MODULE
  6246. # non-empty at configure time, or by adding -multi_module to the
  6247. # link flags.
  6248. rm -rf libconftest.dylib*
  6249. echo "int foo(void){return 1;}" > conftest.c
  6250. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6251. -dynamiclib -Wl,-single_module conftest.c" >&5
  6252. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6253. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6254. _lt_result=$?
  6255. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6256. lt_cv_apple_cc_single_mod=yes
  6257. else
  6258. cat conftest.err >&5
  6259. fi
  6260. rm -rf libconftest.dylib*
  6261. rm -f conftest.*
  6262. fi
  6263. fi
  6264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6265. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6267. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6268. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6269. $as_echo_n "(cached) " >&6
  6270. else
  6271. lt_cv_ld_exported_symbols_list=no
  6272. save_LDFLAGS=$LDFLAGS
  6273. echo "_main" > conftest.sym
  6274. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6276. /* end confdefs.h. */
  6277. int
  6278. main ()
  6279. {
  6280. ;
  6281. return 0;
  6282. }
  6283. _ACEOF
  6284. if ac_fn_c_try_link "$LINENO"; then :
  6285. lt_cv_ld_exported_symbols_list=yes
  6286. else
  6287. lt_cv_ld_exported_symbols_list=no
  6288. fi
  6289. rm -f core conftest.err conftest.$ac_objext \
  6290. conftest$ac_exeext conftest.$ac_ext
  6291. LDFLAGS="$save_LDFLAGS"
  6292. fi
  6293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6294. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6296. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6297. if ${lt_cv_ld_force_load+:} false; then :
  6298. $as_echo_n "(cached) " >&6
  6299. else
  6300. lt_cv_ld_force_load=no
  6301. cat > conftest.c << _LT_EOF
  6302. int forced_loaded() { return 2;}
  6303. _LT_EOF
  6304. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6305. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6306. echo "$AR cru libconftest.a conftest.o" >&5
  6307. $AR cru libconftest.a conftest.o 2>&5
  6308. echo "$RANLIB libconftest.a" >&5
  6309. $RANLIB libconftest.a 2>&5
  6310. cat > conftest.c << _LT_EOF
  6311. int main() { return 0;}
  6312. _LT_EOF
  6313. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6314. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6315. _lt_result=$?
  6316. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6317. lt_cv_ld_force_load=yes
  6318. else
  6319. cat conftest.err >&5
  6320. fi
  6321. rm -f conftest.err libconftest.a conftest conftest.c
  6322. rm -rf conftest.dSYM
  6323. fi
  6324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6325. $as_echo "$lt_cv_ld_force_load" >&6; }
  6326. case $host_os in
  6327. rhapsody* | darwin1.[012])
  6328. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6329. darwin1.*)
  6330. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6331. darwin*) # darwin 5.x on
  6332. # if running on 10.5 or later, the deployment target defaults
  6333. # to the OS version, if on x86, and 10.4, the deployment
  6334. # target defaults to 10.4. Don't you love it?
  6335. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6336. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6337. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6338. 10.[012]*)
  6339. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6340. 10.*)
  6341. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6342. esac
  6343. ;;
  6344. esac
  6345. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6346. _lt_dar_single_mod='$single_module'
  6347. fi
  6348. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6349. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6350. else
  6351. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6352. fi
  6353. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6354. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6355. else
  6356. _lt_dsymutil=
  6357. fi
  6358. ;;
  6359. esac
  6360. ac_ext=c
  6361. ac_cpp='$CPP $CPPFLAGS'
  6362. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6363. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6364. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6366. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6367. # On Suns, sometimes $CPP names a directory.
  6368. if test -n "$CPP" && test -d "$CPP"; then
  6369. CPP=
  6370. fi
  6371. if test -z "$CPP"; then
  6372. if ${ac_cv_prog_CPP+:} false; then :
  6373. $as_echo_n "(cached) " >&6
  6374. else
  6375. # Double quotes because CPP needs to be expanded
  6376. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6377. do
  6378. ac_preproc_ok=false
  6379. for ac_c_preproc_warn_flag in '' yes
  6380. do
  6381. # Use a header file that comes with gcc, so configuring glibc
  6382. # with a fresh cross-compiler works.
  6383. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6384. # <limits.h> exists even on freestanding compilers.
  6385. # On the NeXT, cc -E runs the code through the compiler's parser,
  6386. # not just through cpp. "Syntax error" is here to catch this case.
  6387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6388. /* end confdefs.h. */
  6389. #ifdef __STDC__
  6390. # include <limits.h>
  6391. #else
  6392. # include <assert.h>
  6393. #endif
  6394. Syntax error
  6395. _ACEOF
  6396. if ac_fn_c_try_cpp "$LINENO"; then :
  6397. else
  6398. # Broken: fails on valid input.
  6399. continue
  6400. fi
  6401. rm -f conftest.err conftest.i conftest.$ac_ext
  6402. # OK, works on sane cases. Now check whether nonexistent headers
  6403. # can be detected and how.
  6404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6405. /* end confdefs.h. */
  6406. #include <ac_nonexistent.h>
  6407. _ACEOF
  6408. if ac_fn_c_try_cpp "$LINENO"; then :
  6409. # Broken: success on invalid input.
  6410. continue
  6411. else
  6412. # Passes both tests.
  6413. ac_preproc_ok=:
  6414. break
  6415. fi
  6416. rm -f conftest.err conftest.i conftest.$ac_ext
  6417. done
  6418. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6419. rm -f conftest.i conftest.err conftest.$ac_ext
  6420. if $ac_preproc_ok; then :
  6421. break
  6422. fi
  6423. done
  6424. ac_cv_prog_CPP=$CPP
  6425. fi
  6426. CPP=$ac_cv_prog_CPP
  6427. else
  6428. ac_cv_prog_CPP=$CPP
  6429. fi
  6430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6431. $as_echo "$CPP" >&6; }
  6432. ac_preproc_ok=false
  6433. for ac_c_preproc_warn_flag in '' yes
  6434. do
  6435. # Use a header file that comes with gcc, so configuring glibc
  6436. # with a fresh cross-compiler works.
  6437. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6438. # <limits.h> exists even on freestanding compilers.
  6439. # On the NeXT, cc -E runs the code through the compiler's parser,
  6440. # not just through cpp. "Syntax error" is here to catch this case.
  6441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6442. /* end confdefs.h. */
  6443. #ifdef __STDC__
  6444. # include <limits.h>
  6445. #else
  6446. # include <assert.h>
  6447. #endif
  6448. Syntax error
  6449. _ACEOF
  6450. if ac_fn_c_try_cpp "$LINENO"; then :
  6451. else
  6452. # Broken: fails on valid input.
  6453. continue
  6454. fi
  6455. rm -f conftest.err conftest.i conftest.$ac_ext
  6456. # OK, works on sane cases. Now check whether nonexistent headers
  6457. # can be detected and how.
  6458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6459. /* end confdefs.h. */
  6460. #include <ac_nonexistent.h>
  6461. _ACEOF
  6462. if ac_fn_c_try_cpp "$LINENO"; then :
  6463. # Broken: success on invalid input.
  6464. continue
  6465. else
  6466. # Passes both tests.
  6467. ac_preproc_ok=:
  6468. break
  6469. fi
  6470. rm -f conftest.err conftest.i conftest.$ac_ext
  6471. done
  6472. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6473. rm -f conftest.i conftest.err conftest.$ac_ext
  6474. if $ac_preproc_ok; then :
  6475. else
  6476. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6477. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6478. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6479. See \`config.log' for more details" "$LINENO" 5; }
  6480. fi
  6481. ac_ext=c
  6482. ac_cpp='$CPP $CPPFLAGS'
  6483. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6484. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6485. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6487. $as_echo_n "checking for ANSI C header files... " >&6; }
  6488. if ${ac_cv_header_stdc+:} false; then :
  6489. $as_echo_n "(cached) " >&6
  6490. else
  6491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6492. /* end confdefs.h. */
  6493. #include <stdlib.h>
  6494. #include <stdarg.h>
  6495. #include <string.h>
  6496. #include <float.h>
  6497. int
  6498. main ()
  6499. {
  6500. ;
  6501. return 0;
  6502. }
  6503. _ACEOF
  6504. if ac_fn_c_try_compile "$LINENO"; then :
  6505. ac_cv_header_stdc=yes
  6506. else
  6507. ac_cv_header_stdc=no
  6508. fi
  6509. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6510. if test $ac_cv_header_stdc = yes; then
  6511. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6513. /* end confdefs.h. */
  6514. #include <string.h>
  6515. _ACEOF
  6516. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6517. $EGREP "memchr" >/dev/null 2>&1; then :
  6518. else
  6519. ac_cv_header_stdc=no
  6520. fi
  6521. rm -f conftest*
  6522. fi
  6523. if test $ac_cv_header_stdc = yes; then
  6524. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6526. /* end confdefs.h. */
  6527. #include <stdlib.h>
  6528. _ACEOF
  6529. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6530. $EGREP "free" >/dev/null 2>&1; then :
  6531. else
  6532. ac_cv_header_stdc=no
  6533. fi
  6534. rm -f conftest*
  6535. fi
  6536. if test $ac_cv_header_stdc = yes; then
  6537. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6538. if test "$cross_compiling" = yes; then :
  6539. :
  6540. else
  6541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6542. /* end confdefs.h. */
  6543. #include <ctype.h>
  6544. #include <stdlib.h>
  6545. #if ((' ' & 0x0FF) == 0x020)
  6546. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6547. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6548. #else
  6549. # define ISLOWER(c) \
  6550. (('a' <= (c) && (c) <= 'i') \
  6551. || ('j' <= (c) && (c) <= 'r') \
  6552. || ('s' <= (c) && (c) <= 'z'))
  6553. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6554. #endif
  6555. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6556. int
  6557. main ()
  6558. {
  6559. int i;
  6560. for (i = 0; i < 256; i++)
  6561. if (XOR (islower (i), ISLOWER (i))
  6562. || toupper (i) != TOUPPER (i))
  6563. return 2;
  6564. return 0;
  6565. }
  6566. _ACEOF
  6567. if ac_fn_c_try_run "$LINENO"; then :
  6568. else
  6569. ac_cv_header_stdc=no
  6570. fi
  6571. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6572. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6573. fi
  6574. fi
  6575. fi
  6576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6577. $as_echo "$ac_cv_header_stdc" >&6; }
  6578. if test $ac_cv_header_stdc = yes; then
  6579. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6580. fi
  6581. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6582. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6583. inttypes.h stdint.h unistd.h
  6584. do :
  6585. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6586. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6587. "
  6588. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6589. cat >>confdefs.h <<_ACEOF
  6590. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6591. _ACEOF
  6592. fi
  6593. done
  6594. for ac_header in dlfcn.h
  6595. do :
  6596. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6597. "
  6598. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6599. cat >>confdefs.h <<_ACEOF
  6600. #define HAVE_DLFCN_H 1
  6601. _ACEOF
  6602. fi
  6603. done
  6604. func_stripname_cnf ()
  6605. {
  6606. case ${2} in
  6607. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  6608. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  6609. esac
  6610. } # func_stripname_cnf
  6611. # Set options
  6612. enable_dlopen=no
  6613. # Check whether --enable-shared was given.
  6614. if test "${enable_shared+set}" = set; then :
  6615. enableval=$enable_shared; p=${PACKAGE-default}
  6616. case $enableval in
  6617. yes) enable_shared=yes ;;
  6618. no) enable_shared=no ;;
  6619. *)
  6620. enable_shared=no
  6621. # Look at the argument we got. We use all the common list separators.
  6622. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6623. for pkg in $enableval; do
  6624. IFS="$lt_save_ifs"
  6625. if test "X$pkg" = "X$p"; then
  6626. enable_shared=yes
  6627. fi
  6628. done
  6629. IFS="$lt_save_ifs"
  6630. ;;
  6631. esac
  6632. else
  6633. enable_shared=yes
  6634. fi
  6635. # Check whether --enable-static was given.
  6636. if test "${enable_static+set}" = set; then :
  6637. enableval=$enable_static; p=${PACKAGE-default}
  6638. case $enableval in
  6639. yes) enable_static=yes ;;
  6640. no) enable_static=no ;;
  6641. *)
  6642. enable_static=no
  6643. # Look at the argument we got. We use all the common list separators.
  6644. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6645. for pkg in $enableval; do
  6646. IFS="$lt_save_ifs"
  6647. if test "X$pkg" = "X$p"; then
  6648. enable_static=yes
  6649. fi
  6650. done
  6651. IFS="$lt_save_ifs"
  6652. ;;
  6653. esac
  6654. else
  6655. enable_static=yes
  6656. fi
  6657. # Check whether --with-pic was given.
  6658. if test "${with_pic+set}" = set; then :
  6659. withval=$with_pic; pic_mode="$withval"
  6660. else
  6661. pic_mode=default
  6662. fi
  6663. test -z "$pic_mode" && pic_mode=default
  6664. # Check whether --enable-fast-install was given.
  6665. if test "${enable_fast_install+set}" = set; then :
  6666. enableval=$enable_fast_install; p=${PACKAGE-default}
  6667. case $enableval in
  6668. yes) enable_fast_install=yes ;;
  6669. no) enable_fast_install=no ;;
  6670. *)
  6671. enable_fast_install=no
  6672. # Look at the argument we got. We use all the common list separators.
  6673. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6674. for pkg in $enableval; do
  6675. IFS="$lt_save_ifs"
  6676. if test "X$pkg" = "X$p"; then
  6677. enable_fast_install=yes
  6678. fi
  6679. done
  6680. IFS="$lt_save_ifs"
  6681. ;;
  6682. esac
  6683. else
  6684. enable_fast_install=yes
  6685. fi
  6686. # This can be used to rebuild libtool when needed
  6687. LIBTOOL_DEPS="$ltmain"
  6688. # Always use our own libtool.
  6689. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6690. test -z "$LN_S" && LN_S="ln -s"
  6691. if test -n "${ZSH_VERSION+set}" ; then
  6692. setopt NO_GLOB_SUBST
  6693. fi
  6694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6695. $as_echo_n "checking for objdir... " >&6; }
  6696. if ${lt_cv_objdir+:} false; then :
  6697. $as_echo_n "(cached) " >&6
  6698. else
  6699. rm -f .libs 2>/dev/null
  6700. mkdir .libs 2>/dev/null
  6701. if test -d .libs; then
  6702. lt_cv_objdir=.libs
  6703. else
  6704. # MS-DOS does not allow filenames that begin with a dot.
  6705. lt_cv_objdir=_libs
  6706. fi
  6707. rmdir .libs 2>/dev/null
  6708. fi
  6709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6710. $as_echo "$lt_cv_objdir" >&6; }
  6711. objdir=$lt_cv_objdir
  6712. cat >>confdefs.h <<_ACEOF
  6713. #define LT_OBJDIR "$lt_cv_objdir/"
  6714. _ACEOF
  6715. case $host_os in
  6716. aix3*)
  6717. # AIX sometimes has problems with the GCC collect2 program. For some
  6718. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6719. # vanish in a puff of smoke.
  6720. if test "X${COLLECT_NAMES+set}" != Xset; then
  6721. COLLECT_NAMES=
  6722. export COLLECT_NAMES
  6723. fi
  6724. ;;
  6725. esac
  6726. # Global variables:
  6727. ofile=libtool
  6728. can_build_shared=yes
  6729. # All known linkers require a `.a' archive for static linking (except MSVC,
  6730. # which needs '.lib').
  6731. libext=a
  6732. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6733. old_CC="$CC"
  6734. old_CFLAGS="$CFLAGS"
  6735. # Set sane defaults for various variables
  6736. test -z "$CC" && CC=cc
  6737. test -z "$LTCC" && LTCC=$CC
  6738. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6739. test -z "$LD" && LD=ld
  6740. test -z "$ac_objext" && ac_objext=o
  6741. for cc_temp in $compiler""; do
  6742. case $cc_temp in
  6743. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6744. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6745. \-*) ;;
  6746. *) break;;
  6747. esac
  6748. done
  6749. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6750. # Only perform the check for file, if the check method requires it
  6751. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6752. case $deplibs_check_method in
  6753. file_magic*)
  6754. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6756. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6757. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6758. $as_echo_n "(cached) " >&6
  6759. else
  6760. case $MAGIC_CMD in
  6761. [\\/*] | ?:[\\/]*)
  6762. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6763. ;;
  6764. *)
  6765. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6766. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6767. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6768. for ac_dir in $ac_dummy; do
  6769. IFS="$lt_save_ifs"
  6770. test -z "$ac_dir" && ac_dir=.
  6771. if test -f $ac_dir/${ac_tool_prefix}file; then
  6772. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6773. if test -n "$file_magic_test_file"; then
  6774. case $deplibs_check_method in
  6775. "file_magic "*)
  6776. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6777. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6778. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6779. $EGREP "$file_magic_regex" > /dev/null; then
  6780. :
  6781. else
  6782. cat <<_LT_EOF 1>&2
  6783. *** Warning: the command libtool uses to detect shared libraries,
  6784. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6785. *** The result is that libtool may fail to recognize shared libraries
  6786. *** as such. This will affect the creation of libtool libraries that
  6787. *** depend on shared libraries, but programs linked with such libtool
  6788. *** libraries will work regardless of this problem. Nevertheless, you
  6789. *** may want to report the problem to your system manager and/or to
  6790. *** bug-libtool@gnu.org
  6791. _LT_EOF
  6792. fi ;;
  6793. esac
  6794. fi
  6795. break
  6796. fi
  6797. done
  6798. IFS="$lt_save_ifs"
  6799. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6800. ;;
  6801. esac
  6802. fi
  6803. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6804. if test -n "$MAGIC_CMD"; then
  6805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6806. $as_echo "$MAGIC_CMD" >&6; }
  6807. else
  6808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6809. $as_echo "no" >&6; }
  6810. fi
  6811. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6812. if test -n "$ac_tool_prefix"; then
  6813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6814. $as_echo_n "checking for 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/file; then
  6830. lt_cv_path_MAGIC_CMD="$ac_dir/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. *** bug-libtool@gnu.org
  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. else
  6870. MAGIC_CMD=:
  6871. fi
  6872. fi
  6873. fi
  6874. ;;
  6875. esac
  6876. # Use C for the default configuration in the libtool script
  6877. lt_save_CC="$CC"
  6878. ac_ext=c
  6879. ac_cpp='$CPP $CPPFLAGS'
  6880. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6881. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6882. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6883. # Source file extension for C test sources.
  6884. ac_ext=c
  6885. # Object file extension for compiled C test sources.
  6886. objext=o
  6887. objext=$objext
  6888. # Code to be used in simple compile tests
  6889. lt_simple_compile_test_code="int some_variable = 0;"
  6890. # Code to be used in simple link tests
  6891. lt_simple_link_test_code='int main(){return(0);}'
  6892. # If no C compiler was specified, use CC.
  6893. LTCC=${LTCC-"$CC"}
  6894. # If no C compiler flags were specified, use CFLAGS.
  6895. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6896. # Allow CC to be a program name with arguments.
  6897. compiler=$CC
  6898. # Save the default compiler, since it gets overwritten when the other
  6899. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6900. compiler_DEFAULT=$CC
  6901. # save warnings/boilerplate of simple test code
  6902. ac_outfile=conftest.$ac_objext
  6903. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6904. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6905. _lt_compiler_boilerplate=`cat conftest.err`
  6906. $RM conftest*
  6907. ac_outfile=conftest.$ac_objext
  6908. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6909. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6910. _lt_linker_boilerplate=`cat conftest.err`
  6911. $RM -r conftest*
  6912. if test -n "$compiler"; then
  6913. lt_prog_compiler_no_builtin_flag=
  6914. if test "$GCC" = yes; then
  6915. case $cc_basename in
  6916. nvcc*)
  6917. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6918. *)
  6919. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6920. esac
  6921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6922. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6923. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6924. $as_echo_n "(cached) " >&6
  6925. else
  6926. lt_cv_prog_compiler_rtti_exceptions=no
  6927. ac_outfile=conftest.$ac_objext
  6928. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6929. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6930. # Insert the option either (1) after the last *FLAGS variable, or
  6931. # (2) before a word containing "conftest.", or (3) at the end.
  6932. # Note that $ac_compile itself does not contain backslashes and begins
  6933. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6934. # The option is referenced via a variable to avoid confusing sed.
  6935. lt_compile=`echo "$ac_compile" | $SED \
  6936. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6937. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6938. -e 's:$: $lt_compiler_flag:'`
  6939. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6940. (eval "$lt_compile" 2>conftest.err)
  6941. ac_status=$?
  6942. cat conftest.err >&5
  6943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6944. if (exit $ac_status) && test -s "$ac_outfile"; then
  6945. # The compiler can only warn and ignore the option if not recognized
  6946. # So say no if there are warnings other than the usual output.
  6947. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6948. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6949. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6950. lt_cv_prog_compiler_rtti_exceptions=yes
  6951. fi
  6952. fi
  6953. $RM conftest*
  6954. fi
  6955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6956. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6957. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6958. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6959. else
  6960. :
  6961. fi
  6962. fi
  6963. lt_prog_compiler_wl=
  6964. lt_prog_compiler_pic=
  6965. lt_prog_compiler_static=
  6966. if test "$GCC" = yes; then
  6967. lt_prog_compiler_wl='-Wl,'
  6968. lt_prog_compiler_static='-static'
  6969. case $host_os in
  6970. aix*)
  6971. # All AIX code is PIC.
  6972. if test "$host_cpu" = ia64; then
  6973. # AIX 5 now supports IA64 processor
  6974. lt_prog_compiler_static='-Bstatic'
  6975. fi
  6976. ;;
  6977. amigaos*)
  6978. case $host_cpu in
  6979. powerpc)
  6980. # see comment about AmigaOS4 .so support
  6981. lt_prog_compiler_pic='-fPIC'
  6982. ;;
  6983. m68k)
  6984. # FIXME: we need at least 68020 code to build shared libraries, but
  6985. # adding the `-m68020' flag to GCC prevents building anything better,
  6986. # like `-m68040'.
  6987. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6988. ;;
  6989. esac
  6990. ;;
  6991. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6992. # PIC is the default for these OSes.
  6993. ;;
  6994. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6995. # This hack is so that the source file can tell whether it is being
  6996. # built for inclusion in a dll (and should export symbols for example).
  6997. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6998. # (--disable-auto-import) libraries
  6999. lt_prog_compiler_pic='-DDLL_EXPORT'
  7000. ;;
  7001. darwin* | rhapsody*)
  7002. # PIC is the default on this platform
  7003. # Common symbols not allowed in MH_DYLIB files
  7004. lt_prog_compiler_pic='-fno-common'
  7005. ;;
  7006. haiku*)
  7007. # PIC is the default for Haiku.
  7008. # The "-static" flag exists, but is broken.
  7009. lt_prog_compiler_static=
  7010. ;;
  7011. hpux*)
  7012. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7013. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7014. # sets the default TLS model and affects inlining.
  7015. case $host_cpu in
  7016. hppa*64*)
  7017. # +Z the default
  7018. ;;
  7019. *)
  7020. lt_prog_compiler_pic='-fPIC'
  7021. ;;
  7022. esac
  7023. ;;
  7024. interix[3-9]*)
  7025. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7026. # Instead, we relocate shared libraries at runtime.
  7027. ;;
  7028. msdosdjgpp*)
  7029. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7030. # on systems that don't support them.
  7031. lt_prog_compiler_can_build_shared=no
  7032. enable_shared=no
  7033. ;;
  7034. *nto* | *qnx*)
  7035. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7036. # it will coredump.
  7037. lt_prog_compiler_pic='-fPIC -shared'
  7038. ;;
  7039. sysv4*MP*)
  7040. if test -d /usr/nec; then
  7041. lt_prog_compiler_pic=-Kconform_pic
  7042. fi
  7043. ;;
  7044. *)
  7045. lt_prog_compiler_pic='-fPIC'
  7046. ;;
  7047. esac
  7048. case $cc_basename in
  7049. nvcc*) # Cuda Compiler Driver 2.2
  7050. lt_prog_compiler_wl='-Xlinker '
  7051. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7052. ;;
  7053. esac
  7054. else
  7055. # PORTME Check for flag to pass linker flags through the system compiler.
  7056. case $host_os in
  7057. aix*)
  7058. lt_prog_compiler_wl='-Wl,'
  7059. if test "$host_cpu" = ia64; then
  7060. # AIX 5 now supports IA64 processor
  7061. lt_prog_compiler_static='-Bstatic'
  7062. else
  7063. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7064. fi
  7065. ;;
  7066. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7067. # This hack is so that the source file can tell whether it is being
  7068. # built for inclusion in a dll (and should export symbols for example).
  7069. lt_prog_compiler_pic='-DDLL_EXPORT'
  7070. ;;
  7071. hpux9* | hpux10* | hpux11*)
  7072. lt_prog_compiler_wl='-Wl,'
  7073. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7074. # not for PA HP-UX.
  7075. case $host_cpu in
  7076. hppa*64*|ia64*)
  7077. # +Z the default
  7078. ;;
  7079. *)
  7080. lt_prog_compiler_pic='+Z'
  7081. ;;
  7082. esac
  7083. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7084. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7085. ;;
  7086. irix5* | irix6* | nonstopux*)
  7087. lt_prog_compiler_wl='-Wl,'
  7088. # PIC (with -KPIC) is the default.
  7089. lt_prog_compiler_static='-non_shared'
  7090. ;;
  7091. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7092. case $cc_basename in
  7093. # old Intel for x86_64 which still supported -KPIC.
  7094. ecc*)
  7095. lt_prog_compiler_wl='-Wl,'
  7096. lt_prog_compiler_pic='-KPIC'
  7097. lt_prog_compiler_static='-static'
  7098. ;;
  7099. # icc used to be incompatible with GCC.
  7100. # ICC 10 doesn't accept -KPIC any more.
  7101. icc* | ifort*)
  7102. lt_prog_compiler_wl='-Wl,'
  7103. lt_prog_compiler_pic='-fPIC'
  7104. lt_prog_compiler_static='-static'
  7105. ;;
  7106. # Lahey Fortran 8.1.
  7107. lf95*)
  7108. lt_prog_compiler_wl='-Wl,'
  7109. lt_prog_compiler_pic='--shared'
  7110. lt_prog_compiler_static='--static'
  7111. ;;
  7112. nagfor*)
  7113. # NAG Fortran compiler
  7114. lt_prog_compiler_wl='-Wl,-Wl,,'
  7115. lt_prog_compiler_pic='-PIC'
  7116. lt_prog_compiler_static='-Bstatic'
  7117. ;;
  7118. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7119. # Portland Group compilers (*not* the Pentium gcc compiler,
  7120. # which looks to be a dead project)
  7121. lt_prog_compiler_wl='-Wl,'
  7122. lt_prog_compiler_pic='-fpic'
  7123. lt_prog_compiler_static='-Bstatic'
  7124. ;;
  7125. ccc*)
  7126. lt_prog_compiler_wl='-Wl,'
  7127. # All Alpha code is PIC.
  7128. lt_prog_compiler_static='-non_shared'
  7129. ;;
  7130. xl* | bgxl* | bgf* | mpixl*)
  7131. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7132. lt_prog_compiler_wl='-Wl,'
  7133. lt_prog_compiler_pic='-qpic'
  7134. lt_prog_compiler_static='-qstaticlink'
  7135. ;;
  7136. *)
  7137. case `$CC -V 2>&1 | sed 5q` in
  7138. *Sun\ F* | *Sun*Fortran*)
  7139. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7140. lt_prog_compiler_pic='-KPIC'
  7141. lt_prog_compiler_static='-Bstatic'
  7142. lt_prog_compiler_wl=''
  7143. ;;
  7144. *Sun\ C*)
  7145. # Sun C 5.9
  7146. lt_prog_compiler_pic='-KPIC'
  7147. lt_prog_compiler_static='-Bstatic'
  7148. lt_prog_compiler_wl='-Wl,'
  7149. ;;
  7150. esac
  7151. ;;
  7152. esac
  7153. ;;
  7154. newsos6)
  7155. lt_prog_compiler_pic='-KPIC'
  7156. lt_prog_compiler_static='-Bstatic'
  7157. ;;
  7158. *nto* | *qnx*)
  7159. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7160. # it will coredump.
  7161. lt_prog_compiler_pic='-fPIC -shared'
  7162. ;;
  7163. osf3* | osf4* | osf5*)
  7164. lt_prog_compiler_wl='-Wl,'
  7165. # All OSF/1 code is PIC.
  7166. lt_prog_compiler_static='-non_shared'
  7167. ;;
  7168. rdos*)
  7169. lt_prog_compiler_static='-non_shared'
  7170. ;;
  7171. solaris*)
  7172. lt_prog_compiler_pic='-KPIC'
  7173. lt_prog_compiler_static='-Bstatic'
  7174. case $cc_basename in
  7175. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7176. lt_prog_compiler_wl='-Qoption ld ';;
  7177. *)
  7178. lt_prog_compiler_wl='-Wl,';;
  7179. esac
  7180. ;;
  7181. sunos4*)
  7182. lt_prog_compiler_wl='-Qoption ld '
  7183. lt_prog_compiler_pic='-PIC'
  7184. lt_prog_compiler_static='-Bstatic'
  7185. ;;
  7186. sysv4 | sysv4.2uw2* | sysv4.3*)
  7187. lt_prog_compiler_wl='-Wl,'
  7188. lt_prog_compiler_pic='-KPIC'
  7189. lt_prog_compiler_static='-Bstatic'
  7190. ;;
  7191. sysv4*MP*)
  7192. if test -d /usr/nec ;then
  7193. lt_prog_compiler_pic='-Kconform_pic'
  7194. lt_prog_compiler_static='-Bstatic'
  7195. fi
  7196. ;;
  7197. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7198. lt_prog_compiler_wl='-Wl,'
  7199. lt_prog_compiler_pic='-KPIC'
  7200. lt_prog_compiler_static='-Bstatic'
  7201. ;;
  7202. unicos*)
  7203. lt_prog_compiler_wl='-Wl,'
  7204. lt_prog_compiler_can_build_shared=no
  7205. ;;
  7206. uts4*)
  7207. lt_prog_compiler_pic='-pic'
  7208. lt_prog_compiler_static='-Bstatic'
  7209. ;;
  7210. *)
  7211. lt_prog_compiler_can_build_shared=no
  7212. ;;
  7213. esac
  7214. fi
  7215. case $host_os in
  7216. # For platforms which do not support PIC, -DPIC is meaningless:
  7217. *djgpp*)
  7218. lt_prog_compiler_pic=
  7219. ;;
  7220. *)
  7221. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7222. ;;
  7223. esac
  7224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7225. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7226. if ${lt_cv_prog_compiler_pic+:} false; then :
  7227. $as_echo_n "(cached) " >&6
  7228. else
  7229. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7230. fi
  7231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7232. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7233. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7234. #
  7235. # Check to make sure the PIC flag actually works.
  7236. #
  7237. if test -n "$lt_prog_compiler_pic"; then
  7238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7239. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7240. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7241. $as_echo_n "(cached) " >&6
  7242. else
  7243. lt_cv_prog_compiler_pic_works=no
  7244. ac_outfile=conftest.$ac_objext
  7245. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7246. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7247. # Insert the option either (1) after the last *FLAGS variable, or
  7248. # (2) before a word containing "conftest.", or (3) at the end.
  7249. # Note that $ac_compile itself does not contain backslashes and begins
  7250. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7251. # The option is referenced via a variable to avoid confusing sed.
  7252. lt_compile=`echo "$ac_compile" | $SED \
  7253. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7254. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7255. -e 's:$: $lt_compiler_flag:'`
  7256. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7257. (eval "$lt_compile" 2>conftest.err)
  7258. ac_status=$?
  7259. cat conftest.err >&5
  7260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7261. if (exit $ac_status) && test -s "$ac_outfile"; then
  7262. # The compiler can only warn and ignore the option if not recognized
  7263. # So say no if there are warnings other than the usual output.
  7264. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7265. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7266. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7267. lt_cv_prog_compiler_pic_works=yes
  7268. fi
  7269. fi
  7270. $RM conftest*
  7271. fi
  7272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7273. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7274. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7275. case $lt_prog_compiler_pic in
  7276. "" | " "*) ;;
  7277. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7278. esac
  7279. else
  7280. lt_prog_compiler_pic=
  7281. lt_prog_compiler_can_build_shared=no
  7282. fi
  7283. fi
  7284. #
  7285. # Check to make sure the static flag actually works.
  7286. #
  7287. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7289. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7290. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7291. $as_echo_n "(cached) " >&6
  7292. else
  7293. lt_cv_prog_compiler_static_works=no
  7294. save_LDFLAGS="$LDFLAGS"
  7295. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7296. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7297. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7298. # The linker can only warn and ignore the option if not recognized
  7299. # So say no if there are warnings
  7300. if test -s conftest.err; then
  7301. # Append any errors to the config.log.
  7302. cat conftest.err 1>&5
  7303. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7304. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7305. if diff conftest.exp conftest.er2 >/dev/null; then
  7306. lt_cv_prog_compiler_static_works=yes
  7307. fi
  7308. else
  7309. lt_cv_prog_compiler_static_works=yes
  7310. fi
  7311. fi
  7312. $RM -r conftest*
  7313. LDFLAGS="$save_LDFLAGS"
  7314. fi
  7315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7316. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7317. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7318. :
  7319. else
  7320. lt_prog_compiler_static=
  7321. fi
  7322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7323. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7324. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7325. $as_echo_n "(cached) " >&6
  7326. else
  7327. lt_cv_prog_compiler_c_o=no
  7328. $RM -r conftest 2>/dev/null
  7329. mkdir conftest
  7330. cd conftest
  7331. mkdir out
  7332. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7333. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7334. # Insert the option either (1) after the last *FLAGS variable, or
  7335. # (2) before a word containing "conftest.", or (3) at the end.
  7336. # Note that $ac_compile itself does not contain backslashes and begins
  7337. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7338. lt_compile=`echo "$ac_compile" | $SED \
  7339. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7340. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7341. -e 's:$: $lt_compiler_flag:'`
  7342. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7343. (eval "$lt_compile" 2>out/conftest.err)
  7344. ac_status=$?
  7345. cat out/conftest.err >&5
  7346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7347. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7348. then
  7349. # The compiler can only warn and ignore the option if not recognized
  7350. # So say no if there are warnings
  7351. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7352. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7353. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7354. lt_cv_prog_compiler_c_o=yes
  7355. fi
  7356. fi
  7357. chmod u+w . 2>&5
  7358. $RM conftest*
  7359. # SGI C++ compiler will create directory out/ii_files/ for
  7360. # template instantiation
  7361. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7362. $RM out/* && rmdir out
  7363. cd ..
  7364. $RM -r conftest
  7365. $RM conftest*
  7366. fi
  7367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7368. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7370. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7371. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7372. $as_echo_n "(cached) " >&6
  7373. else
  7374. lt_cv_prog_compiler_c_o=no
  7375. $RM -r conftest 2>/dev/null
  7376. mkdir conftest
  7377. cd conftest
  7378. mkdir out
  7379. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7380. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7381. # Insert the option either (1) after the last *FLAGS variable, or
  7382. # (2) before a word containing "conftest.", or (3) at the end.
  7383. # Note that $ac_compile itself does not contain backslashes and begins
  7384. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7385. lt_compile=`echo "$ac_compile" | $SED \
  7386. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7387. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7388. -e 's:$: $lt_compiler_flag:'`
  7389. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7390. (eval "$lt_compile" 2>out/conftest.err)
  7391. ac_status=$?
  7392. cat out/conftest.err >&5
  7393. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7394. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7395. then
  7396. # The compiler can only warn and ignore the option if not recognized
  7397. # So say no if there are warnings
  7398. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7399. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7400. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7401. lt_cv_prog_compiler_c_o=yes
  7402. fi
  7403. fi
  7404. chmod u+w . 2>&5
  7405. $RM conftest*
  7406. # SGI C++ compiler will create directory out/ii_files/ for
  7407. # template instantiation
  7408. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7409. $RM out/* && rmdir out
  7410. cd ..
  7411. $RM -r conftest
  7412. $RM conftest*
  7413. fi
  7414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7415. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7416. hard_links="nottested"
  7417. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7418. # do not overwrite the value of need_locks provided by the user
  7419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7420. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7421. hard_links=yes
  7422. $RM conftest*
  7423. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7424. touch conftest.a
  7425. ln conftest.a conftest.b 2>&5 || hard_links=no
  7426. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7428. $as_echo "$hard_links" >&6; }
  7429. if test "$hard_links" = no; then
  7430. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7431. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7432. need_locks=warn
  7433. fi
  7434. else
  7435. need_locks=no
  7436. fi
  7437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7438. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7439. runpath_var=
  7440. allow_undefined_flag=
  7441. always_export_symbols=no
  7442. archive_cmds=
  7443. archive_expsym_cmds=
  7444. compiler_needs_object=no
  7445. enable_shared_with_static_runtimes=no
  7446. export_dynamic_flag_spec=
  7447. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7448. hardcode_automatic=no
  7449. hardcode_direct=no
  7450. hardcode_direct_absolute=no
  7451. hardcode_libdir_flag_spec=
  7452. hardcode_libdir_flag_spec_ld=
  7453. hardcode_libdir_separator=
  7454. hardcode_minus_L=no
  7455. hardcode_shlibpath_var=unsupported
  7456. inherit_rpath=no
  7457. link_all_deplibs=unknown
  7458. module_cmds=
  7459. module_expsym_cmds=
  7460. old_archive_from_new_cmds=
  7461. old_archive_from_expsyms_cmds=
  7462. thread_safe_flag_spec=
  7463. whole_archive_flag_spec=
  7464. # include_expsyms should be a list of space-separated symbols to be *always*
  7465. # included in the symbol list
  7466. include_expsyms=
  7467. # exclude_expsyms can be an extended regexp of symbols to exclude
  7468. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7469. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7470. # as well as any symbol that contains `d'.
  7471. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7472. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7473. # platforms (ab)use it in PIC code, but their linkers get confused if
  7474. # the symbol is explicitly referenced. Since portable code cannot
  7475. # rely on this symbol name, it's probably fine to never include it in
  7476. # preloaded symbol tables.
  7477. # Exclude shared library initialization/finalization symbols.
  7478. extract_expsyms_cmds=
  7479. case $host_os in
  7480. cygwin* | mingw* | pw32* | cegcc*)
  7481. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7482. # When not using gcc, we currently assume that we are using
  7483. # Microsoft Visual C++.
  7484. if test "$GCC" != yes; then
  7485. with_gnu_ld=no
  7486. fi
  7487. ;;
  7488. interix*)
  7489. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7490. with_gnu_ld=yes
  7491. ;;
  7492. openbsd*)
  7493. with_gnu_ld=no
  7494. ;;
  7495. esac
  7496. ld_shlibs=yes
  7497. # On some targets, GNU ld is compatible enough with the native linker
  7498. # that we're better off using the native interface for both.
  7499. lt_use_gnu_ld_interface=no
  7500. if test "$with_gnu_ld" = yes; then
  7501. case $host_os in
  7502. aix*)
  7503. # The AIX port of GNU ld has always aspired to compatibility
  7504. # with the native linker. However, as the warning in the GNU ld
  7505. # block says, versions before 2.19.5* couldn't really create working
  7506. # shared libraries, regardless of the interface used.
  7507. case `$LD -v 2>&1` in
  7508. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7509. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7510. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7511. *)
  7512. lt_use_gnu_ld_interface=yes
  7513. ;;
  7514. esac
  7515. ;;
  7516. *)
  7517. lt_use_gnu_ld_interface=yes
  7518. ;;
  7519. esac
  7520. fi
  7521. if test "$lt_use_gnu_ld_interface" = yes; then
  7522. # If archive_cmds runs LD, not CC, wlarc should be empty
  7523. wlarc='${wl}'
  7524. # Set some defaults for GNU ld with shared library support. These
  7525. # are reset later if shared libraries are not supported. Putting them
  7526. # here allows them to be overridden if necessary.
  7527. runpath_var=LD_RUN_PATH
  7528. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7529. export_dynamic_flag_spec='${wl}--export-dynamic'
  7530. # ancient GNU ld didn't support --whole-archive et. al.
  7531. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7532. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7533. else
  7534. whole_archive_flag_spec=
  7535. fi
  7536. supports_anon_versioning=no
  7537. case `$LD -v 2>&1` in
  7538. *GNU\ gold*) supports_anon_versioning=yes ;;
  7539. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7540. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7541. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7542. *\ 2.11.*) ;; # other 2.11 versions
  7543. *) supports_anon_versioning=yes ;;
  7544. esac
  7545. # See if GNU ld supports shared libraries.
  7546. case $host_os in
  7547. aix[3-9]*)
  7548. # On AIX/PPC, the GNU linker is very broken
  7549. if test "$host_cpu" != ia64; then
  7550. ld_shlibs=no
  7551. cat <<_LT_EOF 1>&2
  7552. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7553. *** to be unable to reliably create shared libraries on AIX.
  7554. *** Therefore, libtool is disabling shared libraries support. If you
  7555. *** really care for shared libraries, you may want to install binutils
  7556. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7557. *** You will then need to restart the configuration process.
  7558. _LT_EOF
  7559. fi
  7560. ;;
  7561. amigaos*)
  7562. case $host_cpu in
  7563. powerpc)
  7564. # see comment about AmigaOS4 .so support
  7565. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7566. archive_expsym_cmds=''
  7567. ;;
  7568. m68k)
  7569. 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)'
  7570. hardcode_libdir_flag_spec='-L$libdir'
  7571. hardcode_minus_L=yes
  7572. ;;
  7573. esac
  7574. ;;
  7575. beos*)
  7576. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7577. allow_undefined_flag=unsupported
  7578. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7579. # support --undefined. This deserves some investigation. FIXME
  7580. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7581. else
  7582. ld_shlibs=no
  7583. fi
  7584. ;;
  7585. cygwin* | mingw* | pw32* | cegcc*)
  7586. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7587. # as there is no search path for DLLs.
  7588. hardcode_libdir_flag_spec='-L$libdir'
  7589. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7590. allow_undefined_flag=unsupported
  7591. always_export_symbols=no
  7592. enable_shared_with_static_runtimes=yes
  7593. 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'
  7594. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7595. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7596. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7597. # If the export-symbols file already is a .def file (1st line
  7598. # is EXPORTS), use it as is; otherwise, prepend...
  7599. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7600. cp $export_symbols $output_objdir/$soname.def;
  7601. else
  7602. echo EXPORTS > $output_objdir/$soname.def;
  7603. cat $export_symbols >> $output_objdir/$soname.def;
  7604. fi~
  7605. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7606. else
  7607. ld_shlibs=no
  7608. fi
  7609. ;;
  7610. haiku*)
  7611. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7612. link_all_deplibs=yes
  7613. ;;
  7614. interix[3-9]*)
  7615. hardcode_direct=no
  7616. hardcode_shlibpath_var=no
  7617. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7618. export_dynamic_flag_spec='${wl}-E'
  7619. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7620. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7621. # default) and relocated if they conflict, which is a slow very memory
  7622. # consuming and fragmenting process. To avoid this, we pick a random,
  7623. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7624. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7625. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7626. 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'
  7627. ;;
  7628. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7629. tmp_diet=no
  7630. if test "$host_os" = linux-dietlibc; then
  7631. case $cc_basename in
  7632. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7633. esac
  7634. fi
  7635. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7636. && test "$tmp_diet" = no
  7637. then
  7638. tmp_addflag=' $pic_flag'
  7639. tmp_sharedflag='-shared'
  7640. case $cc_basename,$host_cpu in
  7641. pgcc*) # Portland Group C compiler
  7642. 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'
  7643. tmp_addflag=' $pic_flag'
  7644. ;;
  7645. pgf77* | pgf90* | pgf95* | pgfortran*)
  7646. # Portland Group f77 and f90 compilers
  7647. 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'
  7648. tmp_addflag=' $pic_flag -Mnomain' ;;
  7649. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7650. tmp_addflag=' -i_dynamic' ;;
  7651. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7652. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7653. ifc* | ifort*) # Intel Fortran compiler
  7654. tmp_addflag=' -nofor_main' ;;
  7655. lf95*) # Lahey Fortran 8.1
  7656. whole_archive_flag_spec=
  7657. tmp_sharedflag='--shared' ;;
  7658. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7659. tmp_sharedflag='-qmkshrobj'
  7660. tmp_addflag= ;;
  7661. nvcc*) # Cuda Compiler Driver 2.2
  7662. 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'
  7663. compiler_needs_object=yes
  7664. ;;
  7665. esac
  7666. case `$CC -V 2>&1 | sed 5q` in
  7667. *Sun\ C*) # Sun C 5.9
  7668. 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'
  7669. compiler_needs_object=yes
  7670. tmp_sharedflag='-G' ;;
  7671. *Sun\ F*) # Sun Fortran 8.3
  7672. tmp_sharedflag='-G' ;;
  7673. esac
  7674. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7675. if test "x$supports_anon_versioning" = xyes; then
  7676. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7677. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7678. echo "local: *; };" >> $output_objdir/$libname.ver~
  7679. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7680. fi
  7681. case $cc_basename in
  7682. xlf* | bgf* | bgxlf* | mpixlf*)
  7683. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7684. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7685. hardcode_libdir_flag_spec=
  7686. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7687. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7688. if test "x$supports_anon_versioning" = xyes; then
  7689. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7690. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7691. echo "local: *; };" >> $output_objdir/$libname.ver~
  7692. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7693. fi
  7694. ;;
  7695. esac
  7696. else
  7697. ld_shlibs=no
  7698. fi
  7699. ;;
  7700. netbsd*)
  7701. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7702. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7703. wlarc=
  7704. else
  7705. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7706. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7707. fi
  7708. ;;
  7709. solaris*)
  7710. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7711. ld_shlibs=no
  7712. cat <<_LT_EOF 1>&2
  7713. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7714. *** create shared libraries on Solaris systems. Therefore, libtool
  7715. *** is disabling shared libraries support. We urge you to upgrade GNU
  7716. *** binutils to release 2.9.1 or newer. Another option is to modify
  7717. *** your PATH or compiler configuration so that the native linker is
  7718. *** used, and then restart.
  7719. _LT_EOF
  7720. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7721. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7722. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7723. else
  7724. ld_shlibs=no
  7725. fi
  7726. ;;
  7727. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7728. case `$LD -v 2>&1` in
  7729. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7730. ld_shlibs=no
  7731. cat <<_LT_EOF 1>&2
  7732. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7733. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7734. *** is disabling shared libraries support. We urge you to upgrade GNU
  7735. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7736. *** your PATH or compiler configuration so that the native linker is
  7737. *** used, and then restart.
  7738. _LT_EOF
  7739. ;;
  7740. *)
  7741. # For security reasons, it is highly recommended that you always
  7742. # use absolute paths for naming shared libraries, and exclude the
  7743. # DT_RUNPATH tag from executables and libraries. But doing so
  7744. # requires that you compile everything twice, which is a pain.
  7745. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7746. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7747. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7748. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7749. else
  7750. ld_shlibs=no
  7751. fi
  7752. ;;
  7753. esac
  7754. ;;
  7755. sunos4*)
  7756. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7757. wlarc=
  7758. hardcode_direct=yes
  7759. hardcode_shlibpath_var=no
  7760. ;;
  7761. *)
  7762. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7763. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7764. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7765. else
  7766. ld_shlibs=no
  7767. fi
  7768. ;;
  7769. esac
  7770. if test "$ld_shlibs" = no; then
  7771. runpath_var=
  7772. hardcode_libdir_flag_spec=
  7773. export_dynamic_flag_spec=
  7774. whole_archive_flag_spec=
  7775. fi
  7776. else
  7777. # PORTME fill in a description of your system's linker (not GNU ld)
  7778. case $host_os in
  7779. aix3*)
  7780. allow_undefined_flag=unsupported
  7781. always_export_symbols=yes
  7782. 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'
  7783. # Note: this linker hardcodes the directories in LIBPATH if there
  7784. # are no directories specified by -L.
  7785. hardcode_minus_L=yes
  7786. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7787. # Neither direct hardcoding nor static linking is supported with a
  7788. # broken collect2.
  7789. hardcode_direct=unsupported
  7790. fi
  7791. ;;
  7792. aix[4-9]*)
  7793. if test "$host_cpu" = ia64; then
  7794. # On IA64, the linker does run time linking by default, so we don't
  7795. # have to do anything special.
  7796. aix_use_runtimelinking=no
  7797. exp_sym_flag='-Bexport'
  7798. no_entry_flag=""
  7799. else
  7800. # If we're using GNU nm, then we don't want the "-C" option.
  7801. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7802. # Also, AIX nm treats weak defined symbols like other global
  7803. # defined symbols, whereas GNU nm marks them as "W".
  7804. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7805. 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'
  7806. else
  7807. 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'
  7808. fi
  7809. aix_use_runtimelinking=no
  7810. # Test if we are trying to use run time linking or normal
  7811. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7812. # need to do runtime linking.
  7813. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7814. for ld_flag in $LDFLAGS; do
  7815. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7816. aix_use_runtimelinking=yes
  7817. break
  7818. fi
  7819. done
  7820. ;;
  7821. esac
  7822. exp_sym_flag='-bexport'
  7823. no_entry_flag='-bnoentry'
  7824. fi
  7825. # When large executables or shared objects are built, AIX ld can
  7826. # have problems creating the table of contents. If linking a library
  7827. # or program results in "error TOC overflow" add -mminimal-toc to
  7828. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7829. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7830. archive_cmds=''
  7831. hardcode_direct=yes
  7832. hardcode_direct_absolute=yes
  7833. hardcode_libdir_separator=':'
  7834. link_all_deplibs=yes
  7835. file_list_spec='${wl}-f,'
  7836. if test "$GCC" = yes; then
  7837. case $host_os in aix4.[012]|aix4.[012].*)
  7838. # We only want to do this on AIX 4.2 and lower, the check
  7839. # below for broken collect2 doesn't work under 4.3+
  7840. collect2name=`${CC} -print-prog-name=collect2`
  7841. if test -f "$collect2name" &&
  7842. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7843. then
  7844. # We have reworked collect2
  7845. :
  7846. else
  7847. # We have old collect2
  7848. hardcode_direct=unsupported
  7849. # It fails to find uninstalled libraries when the uninstalled
  7850. # path is not listed in the libpath. Setting hardcode_minus_L
  7851. # to unsupported forces relinking
  7852. hardcode_minus_L=yes
  7853. hardcode_libdir_flag_spec='-L$libdir'
  7854. hardcode_libdir_separator=
  7855. fi
  7856. ;;
  7857. esac
  7858. shared_flag='-shared'
  7859. if test "$aix_use_runtimelinking" = yes; then
  7860. shared_flag="$shared_flag "'${wl}-G'
  7861. fi
  7862. else
  7863. # not using gcc
  7864. if test "$host_cpu" = ia64; then
  7865. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7866. # chokes on -Wl,-G. The following line is correct:
  7867. shared_flag='-G'
  7868. else
  7869. if test "$aix_use_runtimelinking" = yes; then
  7870. shared_flag='${wl}-G'
  7871. else
  7872. shared_flag='${wl}-bM:SRE'
  7873. fi
  7874. fi
  7875. fi
  7876. export_dynamic_flag_spec='${wl}-bexpall'
  7877. # It seems that -bexpall does not export symbols beginning with
  7878. # underscore (_), so it is better to generate a list of symbols to export.
  7879. always_export_symbols=yes
  7880. if test "$aix_use_runtimelinking" = yes; then
  7881. # Warning - without using the other runtime loading flags (-brtl),
  7882. # -berok will link without error, but may produce a broken library.
  7883. allow_undefined_flag='-berok'
  7884. # Determine the default libpath from the value encoded in an
  7885. # empty executable.
  7886. if test "${lt_cv_aix_libpath+set}" = set; then
  7887. aix_libpath=$lt_cv_aix_libpath
  7888. else
  7889. if ${lt_cv_aix_libpath_+:} false; then :
  7890. $as_echo_n "(cached) " >&6
  7891. else
  7892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7893. /* end confdefs.h. */
  7894. int
  7895. main ()
  7896. {
  7897. ;
  7898. return 0;
  7899. }
  7900. _ACEOF
  7901. if ac_fn_c_try_link "$LINENO"; then :
  7902. lt_aix_libpath_sed='
  7903. /Import File Strings/,/^$/ {
  7904. /^0/ {
  7905. s/^0 *\([^ ]*\) *$/\1/
  7906. p
  7907. }
  7908. }'
  7909. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7910. # Check for a 64-bit object if we didn't find anything.
  7911. if test -z "$lt_cv_aix_libpath_"; then
  7912. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7913. fi
  7914. fi
  7915. rm -f core conftest.err conftest.$ac_objext \
  7916. conftest$ac_exeext conftest.$ac_ext
  7917. if test -z "$lt_cv_aix_libpath_"; then
  7918. lt_cv_aix_libpath_="/usr/lib:/lib"
  7919. fi
  7920. fi
  7921. aix_libpath=$lt_cv_aix_libpath_
  7922. fi
  7923. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7924. 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"
  7925. else
  7926. if test "$host_cpu" = ia64; then
  7927. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7928. allow_undefined_flag="-z nodefs"
  7929. 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"
  7930. else
  7931. # Determine the default libpath from the value encoded in an
  7932. # empty executable.
  7933. if test "${lt_cv_aix_libpath+set}" = set; then
  7934. aix_libpath=$lt_cv_aix_libpath
  7935. else
  7936. if ${lt_cv_aix_libpath_+:} false; then :
  7937. $as_echo_n "(cached) " >&6
  7938. else
  7939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7940. /* end confdefs.h. */
  7941. int
  7942. main ()
  7943. {
  7944. ;
  7945. return 0;
  7946. }
  7947. _ACEOF
  7948. if ac_fn_c_try_link "$LINENO"; then :
  7949. lt_aix_libpath_sed='
  7950. /Import File Strings/,/^$/ {
  7951. /^0/ {
  7952. s/^0 *\([^ ]*\) *$/\1/
  7953. p
  7954. }
  7955. }'
  7956. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7957. # Check for a 64-bit object if we didn't find anything.
  7958. if test -z "$lt_cv_aix_libpath_"; then
  7959. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7960. fi
  7961. fi
  7962. rm -f core conftest.err conftest.$ac_objext \
  7963. conftest$ac_exeext conftest.$ac_ext
  7964. if test -z "$lt_cv_aix_libpath_"; then
  7965. lt_cv_aix_libpath_="/usr/lib:/lib"
  7966. fi
  7967. fi
  7968. aix_libpath=$lt_cv_aix_libpath_
  7969. fi
  7970. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7971. # Warning - without using the other run time loading flags,
  7972. # -berok will link without error, but may produce a broken library.
  7973. no_undefined_flag=' ${wl}-bernotok'
  7974. allow_undefined_flag=' ${wl}-berok'
  7975. if test "$with_gnu_ld" = yes; then
  7976. # We only use this code for GNU lds that support --whole-archive.
  7977. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7978. else
  7979. # Exported symbols can be pulled into shared objects from archives
  7980. whole_archive_flag_spec='$convenience'
  7981. fi
  7982. archive_cmds_need_lc=yes
  7983. # This is similar to how AIX traditionally builds its shared libraries.
  7984. 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'
  7985. fi
  7986. fi
  7987. ;;
  7988. amigaos*)
  7989. case $host_cpu in
  7990. powerpc)
  7991. # see comment about AmigaOS4 .so support
  7992. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7993. archive_expsym_cmds=''
  7994. ;;
  7995. m68k)
  7996. 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)'
  7997. hardcode_libdir_flag_spec='-L$libdir'
  7998. hardcode_minus_L=yes
  7999. ;;
  8000. esac
  8001. ;;
  8002. bsdi[45]*)
  8003. export_dynamic_flag_spec=-rdynamic
  8004. ;;
  8005. cygwin* | mingw* | pw32* | cegcc*)
  8006. # When not using gcc, we currently assume that we are using
  8007. # Microsoft Visual C++.
  8008. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8009. # no search path for DLLs.
  8010. case $cc_basename in
  8011. cl*)
  8012. # Native MSVC
  8013. hardcode_libdir_flag_spec=' '
  8014. allow_undefined_flag=unsupported
  8015. always_export_symbols=yes
  8016. file_list_spec='@'
  8017. # Tell ltmain to make .lib files, not .a files.
  8018. libext=lib
  8019. # Tell ltmain to make .dll files, not .so files.
  8020. shrext_cmds=".dll"
  8021. # FIXME: Setting linknames here is a bad hack.
  8022. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8023. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8024. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8025. else
  8026. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8027. fi~
  8028. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8029. linknames='
  8030. # The linker will not automatically build a static lib if we build a DLL.
  8031. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8032. enable_shared_with_static_runtimes=yes
  8033. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8034. # Don't use ranlib
  8035. old_postinstall_cmds='chmod 644 $oldlib'
  8036. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8037. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8038. case $lt_outputfile in
  8039. *.exe|*.EXE) ;;
  8040. *)
  8041. lt_outputfile="$lt_outputfile.exe"
  8042. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8043. ;;
  8044. esac~
  8045. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8046. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8047. $RM "$lt_outputfile.manifest";
  8048. fi'
  8049. ;;
  8050. *)
  8051. # Assume MSVC wrapper
  8052. hardcode_libdir_flag_spec=' '
  8053. allow_undefined_flag=unsupported
  8054. # Tell ltmain to make .lib files, not .a files.
  8055. libext=lib
  8056. # Tell ltmain to make .dll files, not .so files.
  8057. shrext_cmds=".dll"
  8058. # FIXME: Setting linknames here is a bad hack.
  8059. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8060. # The linker will automatically build a .lib file if we build a DLL.
  8061. old_archive_from_new_cmds='true'
  8062. # FIXME: Should let the user specify the lib program.
  8063. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8064. enable_shared_with_static_runtimes=yes
  8065. ;;
  8066. esac
  8067. ;;
  8068. darwin* | rhapsody*)
  8069. archive_cmds_need_lc=no
  8070. hardcode_direct=no
  8071. hardcode_automatic=yes
  8072. hardcode_shlibpath_var=unsupported
  8073. if test "$lt_cv_ld_force_load" = "yes"; then
  8074. 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\"`'
  8075. else
  8076. whole_archive_flag_spec=''
  8077. fi
  8078. link_all_deplibs=yes
  8079. allow_undefined_flag="$_lt_dar_allow_undefined"
  8080. case $cc_basename in
  8081. ifort*) _lt_dar_can_shared=yes ;;
  8082. *) _lt_dar_can_shared=$GCC ;;
  8083. esac
  8084. if test "$_lt_dar_can_shared" = "yes"; then
  8085. output_verbose_link_cmd=func_echo_all
  8086. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8087. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8088. 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}"
  8089. 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}"
  8090. else
  8091. ld_shlibs=no
  8092. fi
  8093. ;;
  8094. dgux*)
  8095. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8096. hardcode_libdir_flag_spec='-L$libdir'
  8097. hardcode_shlibpath_var=no
  8098. ;;
  8099. freebsd1*)
  8100. ld_shlibs=no
  8101. ;;
  8102. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8103. # support. Future versions do this automatically, but an explicit c++rt0.o
  8104. # does not break anything, and helps significantly (at the cost of a little
  8105. # extra space).
  8106. freebsd2.2*)
  8107. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8108. hardcode_libdir_flag_spec='-R$libdir'
  8109. hardcode_direct=yes
  8110. hardcode_shlibpath_var=no
  8111. ;;
  8112. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8113. freebsd2*)
  8114. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8115. hardcode_direct=yes
  8116. hardcode_minus_L=yes
  8117. hardcode_shlibpath_var=no
  8118. ;;
  8119. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8120. freebsd* | dragonfly*)
  8121. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8122. hardcode_libdir_flag_spec='-R$libdir'
  8123. hardcode_direct=yes
  8124. hardcode_shlibpath_var=no
  8125. ;;
  8126. hpux9*)
  8127. if test "$GCC" = yes; then
  8128. 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'
  8129. else
  8130. 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'
  8131. fi
  8132. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8133. hardcode_libdir_separator=:
  8134. hardcode_direct=yes
  8135. # hardcode_minus_L: Not really in the search PATH,
  8136. # but as the default location of the library.
  8137. hardcode_minus_L=yes
  8138. export_dynamic_flag_spec='${wl}-E'
  8139. ;;
  8140. hpux10*)
  8141. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8142. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8143. else
  8144. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8145. fi
  8146. if test "$with_gnu_ld" = no; then
  8147. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8148. hardcode_libdir_flag_spec_ld='+b $libdir'
  8149. hardcode_libdir_separator=:
  8150. hardcode_direct=yes
  8151. hardcode_direct_absolute=yes
  8152. export_dynamic_flag_spec='${wl}-E'
  8153. # hardcode_minus_L: Not really in the search PATH,
  8154. # but as the default location of the library.
  8155. hardcode_minus_L=yes
  8156. fi
  8157. ;;
  8158. hpux11*)
  8159. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8160. case $host_cpu in
  8161. hppa*64*)
  8162. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8163. ;;
  8164. ia64*)
  8165. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8166. ;;
  8167. *)
  8168. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8169. ;;
  8170. esac
  8171. else
  8172. case $host_cpu in
  8173. hppa*64*)
  8174. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8175. ;;
  8176. ia64*)
  8177. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8178. ;;
  8179. *)
  8180. # Older versions of the 11.00 compiler do not understand -b yet
  8181. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8183. $as_echo_n "checking if $CC understands -b... " >&6; }
  8184. if ${lt_cv_prog_compiler__b+:} false; then :
  8185. $as_echo_n "(cached) " >&6
  8186. else
  8187. lt_cv_prog_compiler__b=no
  8188. save_LDFLAGS="$LDFLAGS"
  8189. LDFLAGS="$LDFLAGS -b"
  8190. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8191. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8192. # The linker can only warn and ignore the option if not recognized
  8193. # So say no if there are warnings
  8194. if test -s conftest.err; then
  8195. # Append any errors to the config.log.
  8196. cat conftest.err 1>&5
  8197. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8198. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8199. if diff conftest.exp conftest.er2 >/dev/null; then
  8200. lt_cv_prog_compiler__b=yes
  8201. fi
  8202. else
  8203. lt_cv_prog_compiler__b=yes
  8204. fi
  8205. fi
  8206. $RM -r conftest*
  8207. LDFLAGS="$save_LDFLAGS"
  8208. fi
  8209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8210. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8211. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8212. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8213. else
  8214. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8215. fi
  8216. ;;
  8217. esac
  8218. fi
  8219. if test "$with_gnu_ld" = no; then
  8220. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8221. hardcode_libdir_separator=:
  8222. case $host_cpu in
  8223. hppa*64*|ia64*)
  8224. hardcode_direct=no
  8225. hardcode_shlibpath_var=no
  8226. ;;
  8227. *)
  8228. hardcode_direct=yes
  8229. hardcode_direct_absolute=yes
  8230. export_dynamic_flag_spec='${wl}-E'
  8231. # hardcode_minus_L: Not really in the search PATH,
  8232. # but as the default location of the library.
  8233. hardcode_minus_L=yes
  8234. ;;
  8235. esac
  8236. fi
  8237. ;;
  8238. irix5* | irix6* | nonstopux*)
  8239. if test "$GCC" = yes; then
  8240. 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'
  8241. # Try to use the -exported_symbol ld option, if it does not
  8242. # work, assume that -exports_file does not work either and
  8243. # implicitly export all symbols.
  8244. # This should be the same for all languages, so no per-tag cache variable.
  8245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8246. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8247. if ${lt_cv_irix_exported_symbol+:} false; then :
  8248. $as_echo_n "(cached) " >&6
  8249. else
  8250. save_LDFLAGS="$LDFLAGS"
  8251. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8253. /* end confdefs.h. */
  8254. int foo (void) { return 0; }
  8255. _ACEOF
  8256. if ac_fn_c_try_link "$LINENO"; then :
  8257. lt_cv_irix_exported_symbol=yes
  8258. else
  8259. lt_cv_irix_exported_symbol=no
  8260. fi
  8261. rm -f core conftest.err conftest.$ac_objext \
  8262. conftest$ac_exeext conftest.$ac_ext
  8263. LDFLAGS="$save_LDFLAGS"
  8264. fi
  8265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8266. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8267. if test "$lt_cv_irix_exported_symbol" = yes; then
  8268. 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'
  8269. fi
  8270. else
  8271. 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'
  8272. 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'
  8273. fi
  8274. archive_cmds_need_lc='no'
  8275. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8276. hardcode_libdir_separator=:
  8277. inherit_rpath=yes
  8278. link_all_deplibs=yes
  8279. ;;
  8280. netbsd*)
  8281. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8282. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8283. else
  8284. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8285. fi
  8286. hardcode_libdir_flag_spec='-R$libdir'
  8287. hardcode_direct=yes
  8288. hardcode_shlibpath_var=no
  8289. ;;
  8290. newsos6)
  8291. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8292. hardcode_direct=yes
  8293. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8294. hardcode_libdir_separator=:
  8295. hardcode_shlibpath_var=no
  8296. ;;
  8297. *nto* | *qnx*)
  8298. ;;
  8299. openbsd*)
  8300. if test -f /usr/libexec/ld.so; then
  8301. hardcode_direct=yes
  8302. hardcode_shlibpath_var=no
  8303. hardcode_direct_absolute=yes
  8304. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8305. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8306. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8307. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8308. export_dynamic_flag_spec='${wl}-E'
  8309. else
  8310. case $host_os in
  8311. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8312. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8313. hardcode_libdir_flag_spec='-R$libdir'
  8314. ;;
  8315. *)
  8316. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8317. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8318. ;;
  8319. esac
  8320. fi
  8321. else
  8322. ld_shlibs=no
  8323. fi
  8324. ;;
  8325. os2*)
  8326. hardcode_libdir_flag_spec='-L$libdir'
  8327. hardcode_minus_L=yes
  8328. allow_undefined_flag=unsupported
  8329. 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'
  8330. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8331. ;;
  8332. osf3*)
  8333. if test "$GCC" = yes; then
  8334. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8335. 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'
  8336. else
  8337. allow_undefined_flag=' -expect_unresolved \*'
  8338. 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'
  8339. fi
  8340. archive_cmds_need_lc='no'
  8341. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8342. hardcode_libdir_separator=:
  8343. ;;
  8344. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8345. if test "$GCC" = yes; then
  8346. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8347. 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'
  8348. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8349. else
  8350. allow_undefined_flag=' -expect_unresolved \*'
  8351. 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'
  8352. 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~
  8353. $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'
  8354. # Both c and cxx compiler support -rpath directly
  8355. hardcode_libdir_flag_spec='-rpath $libdir'
  8356. fi
  8357. archive_cmds_need_lc='no'
  8358. hardcode_libdir_separator=:
  8359. ;;
  8360. solaris*)
  8361. no_undefined_flag=' -z defs'
  8362. if test "$GCC" = yes; then
  8363. wlarc='${wl}'
  8364. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8365. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8366. $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'
  8367. else
  8368. case `$CC -V 2>&1` in
  8369. *"Compilers 5.0"*)
  8370. wlarc=''
  8371. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8372. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8373. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8374. ;;
  8375. *)
  8376. wlarc='${wl}'
  8377. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8378. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8379. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8380. ;;
  8381. esac
  8382. fi
  8383. hardcode_libdir_flag_spec='-R$libdir'
  8384. hardcode_shlibpath_var=no
  8385. case $host_os in
  8386. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8387. *)
  8388. # The compiler driver will combine and reorder linker options,
  8389. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8390. # but is careful enough not to reorder.
  8391. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8392. if test "$GCC" = yes; then
  8393. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8394. else
  8395. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8396. fi
  8397. ;;
  8398. esac
  8399. link_all_deplibs=yes
  8400. ;;
  8401. sunos4*)
  8402. if test "x$host_vendor" = xsequent; then
  8403. # Use $CC to link under sequent, because it throws in some extra .o
  8404. # files that make .init and .fini sections work.
  8405. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8406. else
  8407. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8408. fi
  8409. hardcode_libdir_flag_spec='-L$libdir'
  8410. hardcode_direct=yes
  8411. hardcode_minus_L=yes
  8412. hardcode_shlibpath_var=no
  8413. ;;
  8414. sysv4)
  8415. case $host_vendor in
  8416. sni)
  8417. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8418. hardcode_direct=yes # is this really true???
  8419. ;;
  8420. siemens)
  8421. ## LD is ld it makes a PLAMLIB
  8422. ## CC just makes a GrossModule.
  8423. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8424. reload_cmds='$CC -r -o $output$reload_objs'
  8425. hardcode_direct=no
  8426. ;;
  8427. motorola)
  8428. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8429. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8430. ;;
  8431. esac
  8432. runpath_var='LD_RUN_PATH'
  8433. hardcode_shlibpath_var=no
  8434. ;;
  8435. sysv4.3*)
  8436. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8437. hardcode_shlibpath_var=no
  8438. export_dynamic_flag_spec='-Bexport'
  8439. ;;
  8440. sysv4*MP*)
  8441. if test -d /usr/nec; then
  8442. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8443. hardcode_shlibpath_var=no
  8444. runpath_var=LD_RUN_PATH
  8445. hardcode_runpath_var=yes
  8446. ld_shlibs=yes
  8447. fi
  8448. ;;
  8449. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8450. no_undefined_flag='${wl}-z,text'
  8451. archive_cmds_need_lc=no
  8452. hardcode_shlibpath_var=no
  8453. runpath_var='LD_RUN_PATH'
  8454. if test "$GCC" = yes; then
  8455. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8456. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8457. else
  8458. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8459. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8460. fi
  8461. ;;
  8462. sysv5* | sco3.2v5* | sco5v6*)
  8463. # Note: We can NOT use -z defs as we might desire, because we do not
  8464. # link with -lc, and that would cause any symbols used from libc to
  8465. # always be unresolved, which means just about no library would
  8466. # ever link correctly. If we're not using GNU ld we use -z text
  8467. # though, which does catch some bad symbols but isn't as heavy-handed
  8468. # as -z defs.
  8469. no_undefined_flag='${wl}-z,text'
  8470. allow_undefined_flag='${wl}-z,nodefs'
  8471. archive_cmds_need_lc=no
  8472. hardcode_shlibpath_var=no
  8473. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8474. hardcode_libdir_separator=':'
  8475. link_all_deplibs=yes
  8476. export_dynamic_flag_spec='${wl}-Bexport'
  8477. runpath_var='LD_RUN_PATH'
  8478. if test "$GCC" = yes; then
  8479. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8480. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8481. else
  8482. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8483. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8484. fi
  8485. ;;
  8486. uts4*)
  8487. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8488. hardcode_libdir_flag_spec='-L$libdir'
  8489. hardcode_shlibpath_var=no
  8490. ;;
  8491. *)
  8492. ld_shlibs=no
  8493. ;;
  8494. esac
  8495. if test x$host_vendor = xsni; then
  8496. case $host in
  8497. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8498. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8499. ;;
  8500. esac
  8501. fi
  8502. fi
  8503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8504. $as_echo "$ld_shlibs" >&6; }
  8505. test "$ld_shlibs" = no && can_build_shared=no
  8506. with_gnu_ld=$with_gnu_ld
  8507. #
  8508. # Do we need to explicitly link libc?
  8509. #
  8510. case "x$archive_cmds_need_lc" in
  8511. x|xyes)
  8512. # Assume -lc should be added
  8513. archive_cmds_need_lc=yes
  8514. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8515. case $archive_cmds in
  8516. *'~'*)
  8517. # FIXME: we may have to deal with multi-command sequences.
  8518. ;;
  8519. '$CC '*)
  8520. # Test whether the compiler implicitly links with -lc since on some
  8521. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8522. # to ld, don't add -lc before -lgcc.
  8523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8524. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8525. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8526. $as_echo_n "(cached) " >&6
  8527. else
  8528. $RM conftest*
  8529. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8530. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8531. (eval $ac_compile) 2>&5
  8532. ac_status=$?
  8533. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8534. test $ac_status = 0; } 2>conftest.err; then
  8535. soname=conftest
  8536. lib=conftest
  8537. libobjs=conftest.$ac_objext
  8538. deplibs=
  8539. wl=$lt_prog_compiler_wl
  8540. pic_flag=$lt_prog_compiler_pic
  8541. compiler_flags=-v
  8542. linker_flags=-v
  8543. verstring=
  8544. output_objdir=.
  8545. libname=conftest
  8546. lt_save_allow_undefined_flag=$allow_undefined_flag
  8547. allow_undefined_flag=
  8548. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8549. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8550. ac_status=$?
  8551. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8552. test $ac_status = 0; }
  8553. then
  8554. lt_cv_archive_cmds_need_lc=no
  8555. else
  8556. lt_cv_archive_cmds_need_lc=yes
  8557. fi
  8558. allow_undefined_flag=$lt_save_allow_undefined_flag
  8559. else
  8560. cat conftest.err 1>&5
  8561. fi
  8562. $RM conftest*
  8563. fi
  8564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8565. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8566. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8567. ;;
  8568. esac
  8569. fi
  8570. ;;
  8571. esac
  8572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8573. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8574. if test "$GCC" = yes; then
  8575. case $host_os in
  8576. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8577. *) lt_awk_arg="/^libraries:/" ;;
  8578. esac
  8579. case $host_os in
  8580. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8581. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8582. esac
  8583. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8584. case $lt_search_path_spec in
  8585. *\;*)
  8586. # if the path contains ";" then we assume it to be the separator
  8587. # otherwise default to the standard path separator (i.e. ":") - it is
  8588. # assumed that no part of a normal pathname contains ";" but that should
  8589. # okay in the real world where ";" in dirpaths is itself problematic.
  8590. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8591. ;;
  8592. *)
  8593. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8594. ;;
  8595. esac
  8596. # Ok, now we have the path, separated by spaces, we can step through it
  8597. # and add multilib dir if necessary.
  8598. lt_tmp_lt_search_path_spec=
  8599. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8600. for lt_sys_path in $lt_search_path_spec; do
  8601. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8602. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8603. else
  8604. test -d "$lt_sys_path" && \
  8605. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8606. fi
  8607. done
  8608. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8609. BEGIN {RS=" "; FS="/|\n";} {
  8610. lt_foo="";
  8611. lt_count=0;
  8612. for (lt_i = NF; lt_i > 0; lt_i--) {
  8613. if ($lt_i != "" && $lt_i != ".") {
  8614. if ($lt_i == "..") {
  8615. lt_count++;
  8616. } else {
  8617. if (lt_count == 0) {
  8618. lt_foo="/" $lt_i lt_foo;
  8619. } else {
  8620. lt_count--;
  8621. }
  8622. }
  8623. }
  8624. }
  8625. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8626. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8627. }'`
  8628. # AWK program above erroneously prepends '/' to C:/dos/paths
  8629. # for these hosts.
  8630. case $host_os in
  8631. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8632. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8633. esac
  8634. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8635. else
  8636. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8637. fi
  8638. library_names_spec=
  8639. libname_spec='lib$name'
  8640. soname_spec=
  8641. shrext_cmds=".so"
  8642. postinstall_cmds=
  8643. postuninstall_cmds=
  8644. finish_cmds=
  8645. finish_eval=
  8646. shlibpath_var=
  8647. shlibpath_overrides_runpath=unknown
  8648. version_type=none
  8649. dynamic_linker="$host_os ld.so"
  8650. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8651. need_lib_prefix=unknown
  8652. hardcode_into_libs=no
  8653. # when you set need_version to no, make sure it does not cause -set_version
  8654. # flags to be left without arguments
  8655. need_version=unknown
  8656. case $host_os in
  8657. aix3*)
  8658. version_type=linux
  8659. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8660. shlibpath_var=LIBPATH
  8661. # AIX 3 has no versioning support, so we append a major version to the name.
  8662. soname_spec='${libname}${release}${shared_ext}$major'
  8663. ;;
  8664. aix[4-9]*)
  8665. version_type=linux
  8666. need_lib_prefix=no
  8667. need_version=no
  8668. hardcode_into_libs=yes
  8669. if test "$host_cpu" = ia64; then
  8670. # AIX 5 supports IA64
  8671. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8672. shlibpath_var=LD_LIBRARY_PATH
  8673. else
  8674. # With GCC up to 2.95.x, collect2 would create an import file
  8675. # for dependence libraries. The import file would start with
  8676. # the line `#! .'. This would cause the generated library to
  8677. # depend on `.', always an invalid library. This was fixed in
  8678. # development snapshots of GCC prior to 3.0.
  8679. case $host_os in
  8680. aix4 | aix4.[01] | aix4.[01].*)
  8681. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8682. echo ' yes '
  8683. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8684. :
  8685. else
  8686. can_build_shared=no
  8687. fi
  8688. ;;
  8689. esac
  8690. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8691. # soname into executable. Probably we can add versioning support to
  8692. # collect2, so additional links can be useful in future.
  8693. if test "$aix_use_runtimelinking" = yes; then
  8694. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8695. # instead of lib<name>.a to let people know that these are not
  8696. # typical AIX shared libraries.
  8697. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8698. else
  8699. # We preserve .a as extension for shared libraries through AIX4.2
  8700. # and later when we are not doing run time linking.
  8701. library_names_spec='${libname}${release}.a $libname.a'
  8702. soname_spec='${libname}${release}${shared_ext}$major'
  8703. fi
  8704. shlibpath_var=LIBPATH
  8705. fi
  8706. ;;
  8707. amigaos*)
  8708. case $host_cpu in
  8709. powerpc)
  8710. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8711. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8712. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8713. ;;
  8714. m68k)
  8715. library_names_spec='$libname.ixlibrary $libname.a'
  8716. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8717. 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'
  8718. ;;
  8719. esac
  8720. ;;
  8721. beos*)
  8722. library_names_spec='${libname}${shared_ext}'
  8723. dynamic_linker="$host_os ld.so"
  8724. shlibpath_var=LIBRARY_PATH
  8725. ;;
  8726. bsdi[45]*)
  8727. version_type=linux
  8728. need_version=no
  8729. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8730. soname_spec='${libname}${release}${shared_ext}$major'
  8731. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8732. shlibpath_var=LD_LIBRARY_PATH
  8733. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8734. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8735. # the default ld.so.conf also contains /usr/contrib/lib and
  8736. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8737. # libtool to hard-code these into programs
  8738. ;;
  8739. cygwin* | mingw* | pw32* | cegcc*)
  8740. version_type=windows
  8741. shrext_cmds=".dll"
  8742. need_version=no
  8743. need_lib_prefix=no
  8744. case $GCC,$cc_basename in
  8745. yes,*)
  8746. # gcc
  8747. library_names_spec='$libname.dll.a'
  8748. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8749. postinstall_cmds='base_file=`basename \${file}`~
  8750. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8751. dldir=$destdir/`dirname \$dlpath`~
  8752. test -d \$dldir || mkdir -p \$dldir~
  8753. $install_prog $dir/$dlname \$dldir/$dlname~
  8754. chmod a+x \$dldir/$dlname~
  8755. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8756. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8757. fi'
  8758. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8759. dlpath=$dir/\$dldll~
  8760. $RM \$dlpath'
  8761. shlibpath_overrides_runpath=yes
  8762. case $host_os in
  8763. cygwin*)
  8764. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8765. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8766. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8767. ;;
  8768. mingw* | cegcc*)
  8769. # MinGW DLLs use traditional 'lib' prefix
  8770. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8771. ;;
  8772. pw32*)
  8773. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8774. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8775. ;;
  8776. esac
  8777. dynamic_linker='Win32 ld.exe'
  8778. ;;
  8779. *,cl*)
  8780. # Native MSVC
  8781. libname_spec='$name'
  8782. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8783. library_names_spec='${libname}.dll.lib'
  8784. case $build_os in
  8785. mingw*)
  8786. sys_lib_search_path_spec=
  8787. lt_save_ifs=$IFS
  8788. IFS=';'
  8789. for lt_path in $LIB
  8790. do
  8791. IFS=$lt_save_ifs
  8792. # Let DOS variable expansion print the short 8.3 style file name.
  8793. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8794. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8795. done
  8796. IFS=$lt_save_ifs
  8797. # Convert to MSYS style.
  8798. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8799. ;;
  8800. cygwin*)
  8801. # Convert to unix form, then to dos form, then back to unix form
  8802. # but this time dos style (no spaces!) so that the unix form looks
  8803. # like /cygdrive/c/PROGRA~1:/cygdr...
  8804. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8805. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8806. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8807. ;;
  8808. *)
  8809. sys_lib_search_path_spec="$LIB"
  8810. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8811. # It is most probably a Windows format PATH.
  8812. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8813. else
  8814. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8815. fi
  8816. # FIXME: find the short name or the path components, as spaces are
  8817. # common. (e.g. "Program Files" -> "PROGRA~1")
  8818. ;;
  8819. esac
  8820. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8821. postinstall_cmds='base_file=`basename \${file}`~
  8822. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8823. dldir=$destdir/`dirname \$dlpath`~
  8824. test -d \$dldir || mkdir -p \$dldir~
  8825. $install_prog $dir/$dlname \$dldir/$dlname'
  8826. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8827. dlpath=$dir/\$dldll~
  8828. $RM \$dlpath'
  8829. shlibpath_overrides_runpath=yes
  8830. dynamic_linker='Win32 link.exe'
  8831. ;;
  8832. *)
  8833. # Assume MSVC wrapper
  8834. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8835. dynamic_linker='Win32 ld.exe'
  8836. ;;
  8837. esac
  8838. # FIXME: first we should search . and the directory the executable is in
  8839. shlibpath_var=PATH
  8840. ;;
  8841. darwin* | rhapsody*)
  8842. dynamic_linker="$host_os dyld"
  8843. version_type=darwin
  8844. need_lib_prefix=no
  8845. need_version=no
  8846. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8847. soname_spec='${libname}${release}${major}$shared_ext'
  8848. shlibpath_overrides_runpath=yes
  8849. shlibpath_var=DYLD_LIBRARY_PATH
  8850. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8851. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8852. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8853. ;;
  8854. dgux*)
  8855. version_type=linux
  8856. need_lib_prefix=no
  8857. need_version=no
  8858. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8859. soname_spec='${libname}${release}${shared_ext}$major'
  8860. shlibpath_var=LD_LIBRARY_PATH
  8861. ;;
  8862. freebsd1*)
  8863. dynamic_linker=no
  8864. ;;
  8865. freebsd* | dragonfly*)
  8866. # DragonFly does not have aout. When/if they implement a new
  8867. # versioning mechanism, adjust this.
  8868. if test -x /usr/bin/objformat; then
  8869. objformat=`/usr/bin/objformat`
  8870. else
  8871. case $host_os in
  8872. freebsd[123]*) objformat=aout ;;
  8873. *) objformat=elf ;;
  8874. esac
  8875. fi
  8876. version_type=freebsd-$objformat
  8877. case $version_type in
  8878. freebsd-elf*)
  8879. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8880. need_version=no
  8881. need_lib_prefix=no
  8882. ;;
  8883. freebsd-*)
  8884. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8885. need_version=yes
  8886. ;;
  8887. esac
  8888. shlibpath_var=LD_LIBRARY_PATH
  8889. case $host_os in
  8890. freebsd2*)
  8891. shlibpath_overrides_runpath=yes
  8892. ;;
  8893. freebsd3.[01]* | freebsdelf3.[01]*)
  8894. shlibpath_overrides_runpath=yes
  8895. hardcode_into_libs=yes
  8896. ;;
  8897. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8898. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8899. shlibpath_overrides_runpath=no
  8900. hardcode_into_libs=yes
  8901. ;;
  8902. *) # from 4.6 on, and DragonFly
  8903. shlibpath_overrides_runpath=yes
  8904. hardcode_into_libs=yes
  8905. ;;
  8906. esac
  8907. ;;
  8908. gnu*)
  8909. version_type=linux
  8910. need_lib_prefix=no
  8911. need_version=no
  8912. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8913. soname_spec='${libname}${release}${shared_ext}$major'
  8914. shlibpath_var=LD_LIBRARY_PATH
  8915. hardcode_into_libs=yes
  8916. ;;
  8917. haiku*)
  8918. version_type=linux
  8919. need_lib_prefix=no
  8920. need_version=no
  8921. dynamic_linker="$host_os runtime_loader"
  8922. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8923. soname_spec='${libname}${release}${shared_ext}$major'
  8924. shlibpath_var=LIBRARY_PATH
  8925. shlibpath_overrides_runpath=yes
  8926. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8927. hardcode_into_libs=yes
  8928. ;;
  8929. hpux9* | hpux10* | hpux11*)
  8930. # Give a soname corresponding to the major version so that dld.sl refuses to
  8931. # link against other versions.
  8932. version_type=sunos
  8933. need_lib_prefix=no
  8934. need_version=no
  8935. case $host_cpu in
  8936. ia64*)
  8937. shrext_cmds='.so'
  8938. hardcode_into_libs=yes
  8939. dynamic_linker="$host_os dld.so"
  8940. shlibpath_var=LD_LIBRARY_PATH
  8941. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8942. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8943. soname_spec='${libname}${release}${shared_ext}$major'
  8944. if test "X$HPUX_IA64_MODE" = X32; then
  8945. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8946. else
  8947. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8948. fi
  8949. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8950. ;;
  8951. hppa*64*)
  8952. shrext_cmds='.sl'
  8953. hardcode_into_libs=yes
  8954. dynamic_linker="$host_os dld.sl"
  8955. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8956. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8957. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8958. soname_spec='${libname}${release}${shared_ext}$major'
  8959. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8960. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8961. ;;
  8962. *)
  8963. shrext_cmds='.sl'
  8964. dynamic_linker="$host_os dld.sl"
  8965. shlibpath_var=SHLIB_PATH
  8966. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8967. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8968. soname_spec='${libname}${release}${shared_ext}$major'
  8969. ;;
  8970. esac
  8971. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8972. postinstall_cmds='chmod 555 $lib'
  8973. # or fails outright, so override atomically:
  8974. install_override_mode=555
  8975. ;;
  8976. interix[3-9]*)
  8977. version_type=linux
  8978. need_lib_prefix=no
  8979. need_version=no
  8980. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8981. soname_spec='${libname}${release}${shared_ext}$major'
  8982. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8983. shlibpath_var=LD_LIBRARY_PATH
  8984. shlibpath_overrides_runpath=no
  8985. hardcode_into_libs=yes
  8986. ;;
  8987. irix5* | irix6* | nonstopux*)
  8988. case $host_os in
  8989. nonstopux*) version_type=nonstopux ;;
  8990. *)
  8991. if test "$lt_cv_prog_gnu_ld" = yes; then
  8992. version_type=linux
  8993. else
  8994. version_type=irix
  8995. fi ;;
  8996. esac
  8997. need_lib_prefix=no
  8998. need_version=no
  8999. soname_spec='${libname}${release}${shared_ext}$major'
  9000. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9001. case $host_os in
  9002. irix5* | nonstopux*)
  9003. libsuff= shlibsuff=
  9004. ;;
  9005. *)
  9006. case $LD in # libtool.m4 will add one of these switches to LD
  9007. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9008. libsuff= shlibsuff= libmagic=32-bit;;
  9009. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9010. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9011. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9012. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9013. *) libsuff= shlibsuff= libmagic=never-match;;
  9014. esac
  9015. ;;
  9016. esac
  9017. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9018. shlibpath_overrides_runpath=no
  9019. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9020. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9021. hardcode_into_libs=yes
  9022. ;;
  9023. # No shared lib support for Linux oldld, aout, or coff.
  9024. linux*oldld* | linux*aout* | linux*coff*)
  9025. dynamic_linker=no
  9026. ;;
  9027. # This must be Linux ELF.
  9028. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9029. version_type=linux
  9030. need_lib_prefix=no
  9031. need_version=no
  9032. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9033. soname_spec='${libname}${release}${shared_ext}$major'
  9034. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9035. shlibpath_var=LD_LIBRARY_PATH
  9036. shlibpath_overrides_runpath=no
  9037. # Some binutils ld are patched to set DT_RUNPATH
  9038. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9039. $as_echo_n "(cached) " >&6
  9040. else
  9041. lt_cv_shlibpath_overrides_runpath=no
  9042. save_LDFLAGS=$LDFLAGS
  9043. save_libdir=$libdir
  9044. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9045. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9047. /* end confdefs.h. */
  9048. int
  9049. main ()
  9050. {
  9051. ;
  9052. return 0;
  9053. }
  9054. _ACEOF
  9055. if ac_fn_c_try_link "$LINENO"; then :
  9056. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9057. lt_cv_shlibpath_overrides_runpath=yes
  9058. fi
  9059. fi
  9060. rm -f core conftest.err conftest.$ac_objext \
  9061. conftest$ac_exeext conftest.$ac_ext
  9062. LDFLAGS=$save_LDFLAGS
  9063. libdir=$save_libdir
  9064. fi
  9065. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9066. # This implies no fast_install, which is unacceptable.
  9067. # Some rework will be needed to allow for fast_install
  9068. # before this can be enabled.
  9069. hardcode_into_libs=yes
  9070. # Append ld.so.conf contents to the search path
  9071. if test -f /etc/ld.so.conf; then
  9072. 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' ' '`
  9073. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9074. fi
  9075. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9076. # powerpc, because MkLinux only supported shared libraries with the
  9077. # GNU dynamic linker. Since this was broken with cross compilers,
  9078. # most powerpc-linux boxes support dynamic linking these days and
  9079. # people can always --disable-shared, the test was removed, and we
  9080. # assume the GNU/Linux dynamic linker is in use.
  9081. dynamic_linker='GNU/Linux ld.so'
  9082. ;;
  9083. netbsd*)
  9084. version_type=sunos
  9085. need_lib_prefix=no
  9086. need_version=no
  9087. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9088. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9089. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9090. dynamic_linker='NetBSD (a.out) ld.so'
  9091. else
  9092. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9093. soname_spec='${libname}${release}${shared_ext}$major'
  9094. dynamic_linker='NetBSD ld.elf_so'
  9095. fi
  9096. shlibpath_var=LD_LIBRARY_PATH
  9097. shlibpath_overrides_runpath=yes
  9098. hardcode_into_libs=yes
  9099. ;;
  9100. newsos6)
  9101. version_type=linux
  9102. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9103. shlibpath_var=LD_LIBRARY_PATH
  9104. shlibpath_overrides_runpath=yes
  9105. ;;
  9106. *nto* | *qnx*)
  9107. version_type=qnx
  9108. need_lib_prefix=no
  9109. need_version=no
  9110. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9111. soname_spec='${libname}${release}${shared_ext}$major'
  9112. shlibpath_var=LD_LIBRARY_PATH
  9113. shlibpath_overrides_runpath=no
  9114. hardcode_into_libs=yes
  9115. dynamic_linker='ldqnx.so'
  9116. ;;
  9117. openbsd*)
  9118. version_type=sunos
  9119. sys_lib_dlsearch_path_spec="/usr/lib"
  9120. need_lib_prefix=no
  9121. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9122. case $host_os in
  9123. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9124. *) need_version=no ;;
  9125. esac
  9126. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9127. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9128. shlibpath_var=LD_LIBRARY_PATH
  9129. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9130. case $host_os in
  9131. openbsd2.[89] | openbsd2.[89].*)
  9132. shlibpath_overrides_runpath=no
  9133. ;;
  9134. *)
  9135. shlibpath_overrides_runpath=yes
  9136. ;;
  9137. esac
  9138. else
  9139. shlibpath_overrides_runpath=yes
  9140. fi
  9141. ;;
  9142. os2*)
  9143. libname_spec='$name'
  9144. shrext_cmds=".dll"
  9145. need_lib_prefix=no
  9146. library_names_spec='$libname${shared_ext} $libname.a'
  9147. dynamic_linker='OS/2 ld.exe'
  9148. shlibpath_var=LIBPATH
  9149. ;;
  9150. osf3* | osf4* | osf5*)
  9151. version_type=osf
  9152. need_lib_prefix=no
  9153. need_version=no
  9154. soname_spec='${libname}${release}${shared_ext}$major'
  9155. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9156. shlibpath_var=LD_LIBRARY_PATH
  9157. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9158. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9159. ;;
  9160. rdos*)
  9161. dynamic_linker=no
  9162. ;;
  9163. solaris*)
  9164. version_type=linux
  9165. need_lib_prefix=no
  9166. need_version=no
  9167. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9168. soname_spec='${libname}${release}${shared_ext}$major'
  9169. shlibpath_var=LD_LIBRARY_PATH
  9170. shlibpath_overrides_runpath=yes
  9171. hardcode_into_libs=yes
  9172. # ldd complains unless libraries are executable
  9173. postinstall_cmds='chmod +x $lib'
  9174. ;;
  9175. sunos4*)
  9176. version_type=sunos
  9177. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9178. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9179. shlibpath_var=LD_LIBRARY_PATH
  9180. shlibpath_overrides_runpath=yes
  9181. if test "$with_gnu_ld" = yes; then
  9182. need_lib_prefix=no
  9183. fi
  9184. need_version=yes
  9185. ;;
  9186. sysv4 | sysv4.3*)
  9187. version_type=linux
  9188. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9189. soname_spec='${libname}${release}${shared_ext}$major'
  9190. shlibpath_var=LD_LIBRARY_PATH
  9191. case $host_vendor in
  9192. sni)
  9193. shlibpath_overrides_runpath=no
  9194. need_lib_prefix=no
  9195. runpath_var=LD_RUN_PATH
  9196. ;;
  9197. siemens)
  9198. need_lib_prefix=no
  9199. ;;
  9200. motorola)
  9201. need_lib_prefix=no
  9202. need_version=no
  9203. shlibpath_overrides_runpath=no
  9204. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9205. ;;
  9206. esac
  9207. ;;
  9208. sysv4*MP*)
  9209. if test -d /usr/nec ;then
  9210. version_type=linux
  9211. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9212. soname_spec='$libname${shared_ext}.$major'
  9213. shlibpath_var=LD_LIBRARY_PATH
  9214. fi
  9215. ;;
  9216. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9217. version_type=freebsd-elf
  9218. need_lib_prefix=no
  9219. need_version=no
  9220. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9221. soname_spec='${libname}${release}${shared_ext}$major'
  9222. shlibpath_var=LD_LIBRARY_PATH
  9223. shlibpath_overrides_runpath=yes
  9224. hardcode_into_libs=yes
  9225. if test "$with_gnu_ld" = yes; then
  9226. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9227. else
  9228. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9229. case $host_os in
  9230. sco3.2v5*)
  9231. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9232. ;;
  9233. esac
  9234. fi
  9235. sys_lib_dlsearch_path_spec='/usr/lib'
  9236. ;;
  9237. tpf*)
  9238. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9239. version_type=linux
  9240. need_lib_prefix=no
  9241. need_version=no
  9242. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9243. shlibpath_var=LD_LIBRARY_PATH
  9244. shlibpath_overrides_runpath=no
  9245. hardcode_into_libs=yes
  9246. ;;
  9247. uts4*)
  9248. version_type=linux
  9249. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9250. soname_spec='${libname}${release}${shared_ext}$major'
  9251. shlibpath_var=LD_LIBRARY_PATH
  9252. ;;
  9253. *)
  9254. dynamic_linker=no
  9255. ;;
  9256. esac
  9257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9258. $as_echo "$dynamic_linker" >&6; }
  9259. test "$dynamic_linker" = no && can_build_shared=no
  9260. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9261. if test "$GCC" = yes; then
  9262. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9263. fi
  9264. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9265. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9266. fi
  9267. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9268. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9269. fi
  9270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9271. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9272. hardcode_action=
  9273. if test -n "$hardcode_libdir_flag_spec" ||
  9274. test -n "$runpath_var" ||
  9275. test "X$hardcode_automatic" = "Xyes" ; then
  9276. # We can hardcode non-existent directories.
  9277. if test "$hardcode_direct" != no &&
  9278. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9279. # have to relink, otherwise we might link with an installed library
  9280. # when we should be linking with a yet-to-be-installed one
  9281. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9282. test "$hardcode_minus_L" != no; then
  9283. # Linking always hardcodes the temporary library directory.
  9284. hardcode_action=relink
  9285. else
  9286. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9287. hardcode_action=immediate
  9288. fi
  9289. else
  9290. # We cannot hardcode anything, or else we can only hardcode existing
  9291. # directories.
  9292. hardcode_action=unsupported
  9293. fi
  9294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9295. $as_echo "$hardcode_action" >&6; }
  9296. if test "$hardcode_action" = relink ||
  9297. test "$inherit_rpath" = yes; then
  9298. # Fast installation is not supported
  9299. enable_fast_install=no
  9300. elif test "$shlibpath_overrides_runpath" = yes ||
  9301. test "$enable_shared" = no; then
  9302. # Fast installation is not necessary
  9303. enable_fast_install=needless
  9304. fi
  9305. if test "x$enable_dlopen" != xyes; then
  9306. enable_dlopen=unknown
  9307. enable_dlopen_self=unknown
  9308. enable_dlopen_self_static=unknown
  9309. else
  9310. lt_cv_dlopen=no
  9311. lt_cv_dlopen_libs=
  9312. case $host_os in
  9313. beos*)
  9314. lt_cv_dlopen="load_add_on"
  9315. lt_cv_dlopen_libs=
  9316. lt_cv_dlopen_self=yes
  9317. ;;
  9318. mingw* | pw32* | cegcc*)
  9319. lt_cv_dlopen="LoadLibrary"
  9320. lt_cv_dlopen_libs=
  9321. ;;
  9322. cygwin*)
  9323. lt_cv_dlopen="dlopen"
  9324. lt_cv_dlopen_libs=
  9325. ;;
  9326. darwin*)
  9327. # if libdl is installed we need to link against it
  9328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9329. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9330. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9331. $as_echo_n "(cached) " >&6
  9332. else
  9333. ac_check_lib_save_LIBS=$LIBS
  9334. LIBS="-ldl $LIBS"
  9335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9336. /* end confdefs.h. */
  9337. /* Override any GCC internal prototype to avoid an error.
  9338. Use char because int might match the return type of a GCC
  9339. builtin and then its argument prototype would still apply. */
  9340. #ifdef __cplusplus
  9341. extern "C"
  9342. #endif
  9343. char dlopen ();
  9344. int
  9345. main ()
  9346. {
  9347. return dlopen ();
  9348. ;
  9349. return 0;
  9350. }
  9351. _ACEOF
  9352. if ac_fn_c_try_link "$LINENO"; then :
  9353. ac_cv_lib_dl_dlopen=yes
  9354. else
  9355. ac_cv_lib_dl_dlopen=no
  9356. fi
  9357. rm -f core conftest.err conftest.$ac_objext \
  9358. conftest$ac_exeext conftest.$ac_ext
  9359. LIBS=$ac_check_lib_save_LIBS
  9360. fi
  9361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9362. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9363. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9364. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9365. else
  9366. lt_cv_dlopen="dyld"
  9367. lt_cv_dlopen_libs=
  9368. lt_cv_dlopen_self=yes
  9369. fi
  9370. ;;
  9371. *)
  9372. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9373. if test "x$ac_cv_func_shl_load" = xyes; then :
  9374. lt_cv_dlopen="shl_load"
  9375. else
  9376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9377. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9378. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9379. $as_echo_n "(cached) " >&6
  9380. else
  9381. ac_check_lib_save_LIBS=$LIBS
  9382. LIBS="-ldld $LIBS"
  9383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9384. /* end confdefs.h. */
  9385. /* Override any GCC internal prototype to avoid an error.
  9386. Use char because int might match the return type of a GCC
  9387. builtin and then its argument prototype would still apply. */
  9388. #ifdef __cplusplus
  9389. extern "C"
  9390. #endif
  9391. char shl_load ();
  9392. int
  9393. main ()
  9394. {
  9395. return shl_load ();
  9396. ;
  9397. return 0;
  9398. }
  9399. _ACEOF
  9400. if ac_fn_c_try_link "$LINENO"; then :
  9401. ac_cv_lib_dld_shl_load=yes
  9402. else
  9403. ac_cv_lib_dld_shl_load=no
  9404. fi
  9405. rm -f core conftest.err conftest.$ac_objext \
  9406. conftest$ac_exeext conftest.$ac_ext
  9407. LIBS=$ac_check_lib_save_LIBS
  9408. fi
  9409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9410. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9411. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9412. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9413. else
  9414. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9415. if test "x$ac_cv_func_dlopen" = xyes; then :
  9416. lt_cv_dlopen="dlopen"
  9417. else
  9418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9419. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9420. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9421. $as_echo_n "(cached) " >&6
  9422. else
  9423. ac_check_lib_save_LIBS=$LIBS
  9424. LIBS="-ldl $LIBS"
  9425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9426. /* end confdefs.h. */
  9427. /* Override any GCC internal prototype to avoid an error.
  9428. Use char because int might match the return type of a GCC
  9429. builtin and then its argument prototype would still apply. */
  9430. #ifdef __cplusplus
  9431. extern "C"
  9432. #endif
  9433. char dlopen ();
  9434. int
  9435. main ()
  9436. {
  9437. return dlopen ();
  9438. ;
  9439. return 0;
  9440. }
  9441. _ACEOF
  9442. if ac_fn_c_try_link "$LINENO"; then :
  9443. ac_cv_lib_dl_dlopen=yes
  9444. else
  9445. ac_cv_lib_dl_dlopen=no
  9446. fi
  9447. rm -f core conftest.err conftest.$ac_objext \
  9448. conftest$ac_exeext conftest.$ac_ext
  9449. LIBS=$ac_check_lib_save_LIBS
  9450. fi
  9451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9452. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9453. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9454. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9455. else
  9456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9457. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9458. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9459. $as_echo_n "(cached) " >&6
  9460. else
  9461. ac_check_lib_save_LIBS=$LIBS
  9462. LIBS="-lsvld $LIBS"
  9463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9464. /* end confdefs.h. */
  9465. /* Override any GCC internal prototype to avoid an error.
  9466. Use char because int might match the return type of a GCC
  9467. builtin and then its argument prototype would still apply. */
  9468. #ifdef __cplusplus
  9469. extern "C"
  9470. #endif
  9471. char dlopen ();
  9472. int
  9473. main ()
  9474. {
  9475. return dlopen ();
  9476. ;
  9477. return 0;
  9478. }
  9479. _ACEOF
  9480. if ac_fn_c_try_link "$LINENO"; then :
  9481. ac_cv_lib_svld_dlopen=yes
  9482. else
  9483. ac_cv_lib_svld_dlopen=no
  9484. fi
  9485. rm -f core conftest.err conftest.$ac_objext \
  9486. conftest$ac_exeext conftest.$ac_ext
  9487. LIBS=$ac_check_lib_save_LIBS
  9488. fi
  9489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9490. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9491. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9492. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9493. else
  9494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9495. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9496. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9497. $as_echo_n "(cached) " >&6
  9498. else
  9499. ac_check_lib_save_LIBS=$LIBS
  9500. LIBS="-ldld $LIBS"
  9501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9502. /* end confdefs.h. */
  9503. /* Override any GCC internal prototype to avoid an error.
  9504. Use char because int might match the return type of a GCC
  9505. builtin and then its argument prototype would still apply. */
  9506. #ifdef __cplusplus
  9507. extern "C"
  9508. #endif
  9509. char dld_link ();
  9510. int
  9511. main ()
  9512. {
  9513. return dld_link ();
  9514. ;
  9515. return 0;
  9516. }
  9517. _ACEOF
  9518. if ac_fn_c_try_link "$LINENO"; then :
  9519. ac_cv_lib_dld_dld_link=yes
  9520. else
  9521. ac_cv_lib_dld_dld_link=no
  9522. fi
  9523. rm -f core conftest.err conftest.$ac_objext \
  9524. conftest$ac_exeext conftest.$ac_ext
  9525. LIBS=$ac_check_lib_save_LIBS
  9526. fi
  9527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9528. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9529. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9530. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9531. fi
  9532. fi
  9533. fi
  9534. fi
  9535. fi
  9536. fi
  9537. ;;
  9538. esac
  9539. if test "x$lt_cv_dlopen" != xno; then
  9540. enable_dlopen=yes
  9541. else
  9542. enable_dlopen=no
  9543. fi
  9544. case $lt_cv_dlopen in
  9545. dlopen)
  9546. save_CPPFLAGS="$CPPFLAGS"
  9547. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9548. save_LDFLAGS="$LDFLAGS"
  9549. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9550. save_LIBS="$LIBS"
  9551. LIBS="$lt_cv_dlopen_libs $LIBS"
  9552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9553. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9554. if ${lt_cv_dlopen_self+:} false; then :
  9555. $as_echo_n "(cached) " >&6
  9556. else
  9557. if test "$cross_compiling" = yes; then :
  9558. lt_cv_dlopen_self=cross
  9559. else
  9560. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9561. lt_status=$lt_dlunknown
  9562. cat > conftest.$ac_ext <<_LT_EOF
  9563. #line $LINENO "configure"
  9564. #include "confdefs.h"
  9565. #if HAVE_DLFCN_H
  9566. #include <dlfcn.h>
  9567. #endif
  9568. #include <stdio.h>
  9569. #ifdef RTLD_GLOBAL
  9570. # define LT_DLGLOBAL RTLD_GLOBAL
  9571. #else
  9572. # ifdef DL_GLOBAL
  9573. # define LT_DLGLOBAL DL_GLOBAL
  9574. # else
  9575. # define LT_DLGLOBAL 0
  9576. # endif
  9577. #endif
  9578. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9579. find out it does not work in some platform. */
  9580. #ifndef LT_DLLAZY_OR_NOW
  9581. # ifdef RTLD_LAZY
  9582. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9583. # else
  9584. # ifdef DL_LAZY
  9585. # define LT_DLLAZY_OR_NOW DL_LAZY
  9586. # else
  9587. # ifdef RTLD_NOW
  9588. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9589. # else
  9590. # ifdef DL_NOW
  9591. # define LT_DLLAZY_OR_NOW DL_NOW
  9592. # else
  9593. # define LT_DLLAZY_OR_NOW 0
  9594. # endif
  9595. # endif
  9596. # endif
  9597. # endif
  9598. #endif
  9599. /* When -fvisbility=hidden is used, assume the code has been annotated
  9600. correspondingly for the symbols needed. */
  9601. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9602. int fnord () __attribute__((visibility("default")));
  9603. #endif
  9604. int fnord () { return 42; }
  9605. int main ()
  9606. {
  9607. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9608. int status = $lt_dlunknown;
  9609. if (self)
  9610. {
  9611. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9612. else
  9613. {
  9614. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9615. else puts (dlerror ());
  9616. }
  9617. /* dlclose (self); */
  9618. }
  9619. else
  9620. puts (dlerror ());
  9621. return status;
  9622. }
  9623. _LT_EOF
  9624. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9625. (eval $ac_link) 2>&5
  9626. ac_status=$?
  9627. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9628. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9629. (./conftest; exit; ) >&5 2>/dev/null
  9630. lt_status=$?
  9631. case x$lt_status in
  9632. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9633. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9634. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9635. esac
  9636. else :
  9637. # compilation failed
  9638. lt_cv_dlopen_self=no
  9639. fi
  9640. fi
  9641. rm -fr conftest*
  9642. fi
  9643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9644. $as_echo "$lt_cv_dlopen_self" >&6; }
  9645. if test "x$lt_cv_dlopen_self" = xyes; then
  9646. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9648. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9649. if ${lt_cv_dlopen_self_static+:} false; then :
  9650. $as_echo_n "(cached) " >&6
  9651. else
  9652. if test "$cross_compiling" = yes; then :
  9653. lt_cv_dlopen_self_static=cross
  9654. else
  9655. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9656. lt_status=$lt_dlunknown
  9657. cat > conftest.$ac_ext <<_LT_EOF
  9658. #line $LINENO "configure"
  9659. #include "confdefs.h"
  9660. #if HAVE_DLFCN_H
  9661. #include <dlfcn.h>
  9662. #endif
  9663. #include <stdio.h>
  9664. #ifdef RTLD_GLOBAL
  9665. # define LT_DLGLOBAL RTLD_GLOBAL
  9666. #else
  9667. # ifdef DL_GLOBAL
  9668. # define LT_DLGLOBAL DL_GLOBAL
  9669. # else
  9670. # define LT_DLGLOBAL 0
  9671. # endif
  9672. #endif
  9673. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9674. find out it does not work in some platform. */
  9675. #ifndef LT_DLLAZY_OR_NOW
  9676. # ifdef RTLD_LAZY
  9677. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9678. # else
  9679. # ifdef DL_LAZY
  9680. # define LT_DLLAZY_OR_NOW DL_LAZY
  9681. # else
  9682. # ifdef RTLD_NOW
  9683. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9684. # else
  9685. # ifdef DL_NOW
  9686. # define LT_DLLAZY_OR_NOW DL_NOW
  9687. # else
  9688. # define LT_DLLAZY_OR_NOW 0
  9689. # endif
  9690. # endif
  9691. # endif
  9692. # endif
  9693. #endif
  9694. /* When -fvisbility=hidden is used, assume the code has been annotated
  9695. correspondingly for the symbols needed. */
  9696. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9697. int fnord () __attribute__((visibility("default")));
  9698. #endif
  9699. int fnord () { return 42; }
  9700. int main ()
  9701. {
  9702. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9703. int status = $lt_dlunknown;
  9704. if (self)
  9705. {
  9706. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9707. else
  9708. {
  9709. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9710. else puts (dlerror ());
  9711. }
  9712. /* dlclose (self); */
  9713. }
  9714. else
  9715. puts (dlerror ());
  9716. return status;
  9717. }
  9718. _LT_EOF
  9719. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9720. (eval $ac_link) 2>&5
  9721. ac_status=$?
  9722. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9723. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9724. (./conftest; exit; ) >&5 2>/dev/null
  9725. lt_status=$?
  9726. case x$lt_status in
  9727. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9728. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9729. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9730. esac
  9731. else :
  9732. # compilation failed
  9733. lt_cv_dlopen_self_static=no
  9734. fi
  9735. fi
  9736. rm -fr conftest*
  9737. fi
  9738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9739. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9740. fi
  9741. CPPFLAGS="$save_CPPFLAGS"
  9742. LDFLAGS="$save_LDFLAGS"
  9743. LIBS="$save_LIBS"
  9744. ;;
  9745. esac
  9746. case $lt_cv_dlopen_self in
  9747. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9748. *) enable_dlopen_self=unknown ;;
  9749. esac
  9750. case $lt_cv_dlopen_self_static in
  9751. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9752. *) enable_dlopen_self_static=unknown ;;
  9753. esac
  9754. fi
  9755. striplib=
  9756. old_striplib=
  9757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9758. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9759. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9760. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9761. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9763. $as_echo "yes" >&6; }
  9764. else
  9765. # FIXME - insert some real tests, host_os isn't really good enough
  9766. case $host_os in
  9767. darwin*)
  9768. if test -n "$STRIP" ; then
  9769. striplib="$STRIP -x"
  9770. old_striplib="$STRIP -S"
  9771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9772. $as_echo "yes" >&6; }
  9773. else
  9774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9775. $as_echo "no" >&6; }
  9776. fi
  9777. ;;
  9778. *)
  9779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9780. $as_echo "no" >&6; }
  9781. ;;
  9782. esac
  9783. fi
  9784. # Report which library types will actually be built
  9785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9786. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9788. $as_echo "$can_build_shared" >&6; }
  9789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9790. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9791. test "$can_build_shared" = "no" && enable_shared=no
  9792. # On AIX, shared libraries and static libraries use the same namespace, and
  9793. # are all built from PIC.
  9794. case $host_os in
  9795. aix3*)
  9796. test "$enable_shared" = yes && enable_static=no
  9797. if test -n "$RANLIB"; then
  9798. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9799. postinstall_cmds='$RANLIB $lib'
  9800. fi
  9801. ;;
  9802. aix[4-9]*)
  9803. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9804. test "$enable_shared" = yes && enable_static=no
  9805. fi
  9806. ;;
  9807. esac
  9808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9809. $as_echo "$enable_shared" >&6; }
  9810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9811. $as_echo_n "checking whether to build static libraries... " >&6; }
  9812. # Make sure either enable_shared or enable_static is yes.
  9813. test "$enable_shared" = yes || enable_static=yes
  9814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9815. $as_echo "$enable_static" >&6; }
  9816. fi
  9817. ac_ext=c
  9818. ac_cpp='$CPP $CPPFLAGS'
  9819. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9820. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9821. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9822. CC="$lt_save_CC"
  9823. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9824. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9825. (test "X$CXX" != "Xg++"))) ; then
  9826. ac_ext=cpp
  9827. ac_cpp='$CXXCPP $CPPFLAGS'
  9828. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9829. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9830. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  9832. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  9833. if test -z "$CXXCPP"; then
  9834. if ${ac_cv_prog_CXXCPP+:} false; then :
  9835. $as_echo_n "(cached) " >&6
  9836. else
  9837. # Double quotes because CXXCPP needs to be expanded
  9838. for CXXCPP in "$CXX -E" "/lib/cpp"
  9839. do
  9840. ac_preproc_ok=false
  9841. for ac_cxx_preproc_warn_flag in '' yes
  9842. do
  9843. # Use a header file that comes with gcc, so configuring glibc
  9844. # with a fresh cross-compiler works.
  9845. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9846. # <limits.h> exists even on freestanding compilers.
  9847. # On the NeXT, cc -E runs the code through the compiler's parser,
  9848. # not just through cpp. "Syntax error" is here to catch this case.
  9849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9850. /* end confdefs.h. */
  9851. #ifdef __STDC__
  9852. # include <limits.h>
  9853. #else
  9854. # include <assert.h>
  9855. #endif
  9856. Syntax error
  9857. _ACEOF
  9858. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9859. else
  9860. # Broken: fails on valid input.
  9861. continue
  9862. fi
  9863. rm -f conftest.err conftest.i conftest.$ac_ext
  9864. # OK, works on sane cases. Now check whether nonexistent headers
  9865. # can be detected and how.
  9866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9867. /* end confdefs.h. */
  9868. #include <ac_nonexistent.h>
  9869. _ACEOF
  9870. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9871. # Broken: success on invalid input.
  9872. continue
  9873. else
  9874. # Passes both tests.
  9875. ac_preproc_ok=:
  9876. break
  9877. fi
  9878. rm -f conftest.err conftest.i conftest.$ac_ext
  9879. done
  9880. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  9881. rm -f conftest.i conftest.err conftest.$ac_ext
  9882. if $ac_preproc_ok; then :
  9883. break
  9884. fi
  9885. done
  9886. ac_cv_prog_CXXCPP=$CXXCPP
  9887. fi
  9888. CXXCPP=$ac_cv_prog_CXXCPP
  9889. else
  9890. ac_cv_prog_CXXCPP=$CXXCPP
  9891. fi
  9892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  9893. $as_echo "$CXXCPP" >&6; }
  9894. ac_preproc_ok=false
  9895. for ac_cxx_preproc_warn_flag in '' yes
  9896. do
  9897. # Use a header file that comes with gcc, so configuring glibc
  9898. # with a fresh cross-compiler works.
  9899. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9900. # <limits.h> exists even on freestanding compilers.
  9901. # On the NeXT, cc -E runs the code through the compiler's parser,
  9902. # not just through cpp. "Syntax error" is here to catch this case.
  9903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9904. /* end confdefs.h. */
  9905. #ifdef __STDC__
  9906. # include <limits.h>
  9907. #else
  9908. # include <assert.h>
  9909. #endif
  9910. Syntax error
  9911. _ACEOF
  9912. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9913. else
  9914. # Broken: fails on valid input.
  9915. continue
  9916. fi
  9917. rm -f conftest.err conftest.i conftest.$ac_ext
  9918. # OK, works on sane cases. Now check whether nonexistent headers
  9919. # can be detected and how.
  9920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9921. /* end confdefs.h. */
  9922. #include <ac_nonexistent.h>
  9923. _ACEOF
  9924. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9925. # Broken: success on invalid input.
  9926. continue
  9927. else
  9928. # Passes both tests.
  9929. ac_preproc_ok=:
  9930. break
  9931. fi
  9932. rm -f conftest.err conftest.i conftest.$ac_ext
  9933. done
  9934. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  9935. rm -f conftest.i conftest.err conftest.$ac_ext
  9936. if $ac_preproc_ok; then :
  9937. else
  9938. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9939. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9940. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  9941. See \`config.log' for more details" "$LINENO" 5; }
  9942. fi
  9943. ac_ext=c
  9944. ac_cpp='$CPP $CPPFLAGS'
  9945. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9946. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9947. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9948. else
  9949. _lt_caught_CXX_error=yes
  9950. fi
  9951. ac_ext=cpp
  9952. ac_cpp='$CXXCPP $CPPFLAGS'
  9953. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9954. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9955. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9956. archive_cmds_need_lc_CXX=no
  9957. allow_undefined_flag_CXX=
  9958. always_export_symbols_CXX=no
  9959. archive_expsym_cmds_CXX=
  9960. compiler_needs_object_CXX=no
  9961. export_dynamic_flag_spec_CXX=
  9962. hardcode_direct_CXX=no
  9963. hardcode_direct_absolute_CXX=no
  9964. hardcode_libdir_flag_spec_CXX=
  9965. hardcode_libdir_flag_spec_ld_CXX=
  9966. hardcode_libdir_separator_CXX=
  9967. hardcode_minus_L_CXX=no
  9968. hardcode_shlibpath_var_CXX=unsupported
  9969. hardcode_automatic_CXX=no
  9970. inherit_rpath_CXX=no
  9971. module_cmds_CXX=
  9972. module_expsym_cmds_CXX=
  9973. link_all_deplibs_CXX=unknown
  9974. old_archive_cmds_CXX=$old_archive_cmds
  9975. reload_flag_CXX=$reload_flag
  9976. reload_cmds_CXX=$reload_cmds
  9977. no_undefined_flag_CXX=
  9978. whole_archive_flag_spec_CXX=
  9979. enable_shared_with_static_runtimes_CXX=no
  9980. # Source file extension for C++ test sources.
  9981. ac_ext=cpp
  9982. # Object file extension for compiled C++ test sources.
  9983. objext=o
  9984. objext_CXX=$objext
  9985. # No sense in running all these tests if we already determined that
  9986. # the CXX compiler isn't working. Some variables (like enable_shared)
  9987. # are currently assumed to apply to all compilers on this platform,
  9988. # and will be corrupted by setting them based on a non-working compiler.
  9989. if test "$_lt_caught_CXX_error" != yes; then
  9990. # Code to be used in simple compile tests
  9991. lt_simple_compile_test_code="int some_variable = 0;"
  9992. # Code to be used in simple link tests
  9993. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  9994. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9995. # If no C compiler was specified, use CC.
  9996. LTCC=${LTCC-"$CC"}
  9997. # If no C compiler flags were specified, use CFLAGS.
  9998. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9999. # Allow CC to be a program name with arguments.
  10000. compiler=$CC
  10001. # save warnings/boilerplate of simple test code
  10002. ac_outfile=conftest.$ac_objext
  10003. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10004. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10005. _lt_compiler_boilerplate=`cat conftest.err`
  10006. $RM conftest*
  10007. ac_outfile=conftest.$ac_objext
  10008. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10009. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10010. _lt_linker_boilerplate=`cat conftest.err`
  10011. $RM -r conftest*
  10012. # Allow CC to be a program name with arguments.
  10013. lt_save_CC=$CC
  10014. lt_save_CFLAGS=$CFLAGS
  10015. lt_save_LD=$LD
  10016. lt_save_GCC=$GCC
  10017. GCC=$GXX
  10018. lt_save_with_gnu_ld=$with_gnu_ld
  10019. lt_save_path_LD=$lt_cv_path_LD
  10020. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10021. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10022. else
  10023. $as_unset lt_cv_prog_gnu_ld
  10024. fi
  10025. if test -n "${lt_cv_path_LDCXX+set}"; then
  10026. lt_cv_path_LD=$lt_cv_path_LDCXX
  10027. else
  10028. $as_unset lt_cv_path_LD
  10029. fi
  10030. test -z "${LDCXX+set}" || LD=$LDCXX
  10031. CC=${CXX-"c++"}
  10032. CFLAGS=$CXXFLAGS
  10033. compiler=$CC
  10034. compiler_CXX=$CC
  10035. for cc_temp in $compiler""; do
  10036. case $cc_temp in
  10037. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10038. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10039. \-*) ;;
  10040. *) break;;
  10041. esac
  10042. done
  10043. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10044. if test -n "$compiler"; then
  10045. # We don't want -fno-exception when compiling C++ code, so set the
  10046. # no_builtin_flag separately
  10047. if test "$GXX" = yes; then
  10048. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10049. else
  10050. lt_prog_compiler_no_builtin_flag_CXX=
  10051. fi
  10052. if test "$GXX" = yes; then
  10053. # Set up default GNU C++ configuration
  10054. # Check whether --with-gnu-ld was given.
  10055. if test "${with_gnu_ld+set}" = set; then :
  10056. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10057. else
  10058. with_gnu_ld=no
  10059. fi
  10060. ac_prog=ld
  10061. if test "$GCC" = yes; then
  10062. # Check if gcc -print-prog-name=ld gives a path.
  10063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10064. $as_echo_n "checking for ld used by $CC... " >&6; }
  10065. case $host in
  10066. *-*-mingw*)
  10067. # gcc leaves a trailing carriage return which upsets mingw
  10068. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10069. *)
  10070. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10071. esac
  10072. case $ac_prog in
  10073. # Accept absolute paths.
  10074. [\\/]* | ?:[\\/]*)
  10075. re_direlt='/[^/][^/]*/\.\./'
  10076. # Canonicalize the pathname of ld
  10077. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10078. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10079. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10080. done
  10081. test -z "$LD" && LD="$ac_prog"
  10082. ;;
  10083. "")
  10084. # If it fails, then pretend we aren't using GCC.
  10085. ac_prog=ld
  10086. ;;
  10087. *)
  10088. # If it is relative, then search for the first ld in PATH.
  10089. with_gnu_ld=unknown
  10090. ;;
  10091. esac
  10092. elif test "$with_gnu_ld" = yes; then
  10093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10094. $as_echo_n "checking for GNU ld... " >&6; }
  10095. else
  10096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10097. $as_echo_n "checking for non-GNU ld... " >&6; }
  10098. fi
  10099. if ${lt_cv_path_LD+:} false; then :
  10100. $as_echo_n "(cached) " >&6
  10101. else
  10102. if test -z "$LD"; then
  10103. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10104. for ac_dir in $PATH; do
  10105. IFS="$lt_save_ifs"
  10106. test -z "$ac_dir" && ac_dir=.
  10107. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10108. lt_cv_path_LD="$ac_dir/$ac_prog"
  10109. # Check to see if the program is GNU ld. I'd rather use --version,
  10110. # but apparently some variants of GNU ld only accept -v.
  10111. # Break only if it was the GNU/non-GNU ld that we prefer.
  10112. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10113. *GNU* | *'with BFD'*)
  10114. test "$with_gnu_ld" != no && break
  10115. ;;
  10116. *)
  10117. test "$with_gnu_ld" != yes && break
  10118. ;;
  10119. esac
  10120. fi
  10121. done
  10122. IFS="$lt_save_ifs"
  10123. else
  10124. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10125. fi
  10126. fi
  10127. LD="$lt_cv_path_LD"
  10128. if test -n "$LD"; then
  10129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10130. $as_echo "$LD" >&6; }
  10131. else
  10132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10133. $as_echo "no" >&6; }
  10134. fi
  10135. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10137. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10138. if ${lt_cv_prog_gnu_ld+:} false; then :
  10139. $as_echo_n "(cached) " >&6
  10140. else
  10141. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10142. case `$LD -v 2>&1 </dev/null` in
  10143. *GNU* | *'with BFD'*)
  10144. lt_cv_prog_gnu_ld=yes
  10145. ;;
  10146. *)
  10147. lt_cv_prog_gnu_ld=no
  10148. ;;
  10149. esac
  10150. fi
  10151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10152. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10153. with_gnu_ld=$lt_cv_prog_gnu_ld
  10154. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10155. # archiving commands below assume that GNU ld is being used.
  10156. if test "$with_gnu_ld" = yes; then
  10157. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10158. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10159. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10160. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10161. # If archive_cmds runs LD, not CC, wlarc should be empty
  10162. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10163. # investigate it a little bit more. (MM)
  10164. wlarc='${wl}'
  10165. # ancient GNU ld didn't support --whole-archive et. al.
  10166. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10167. $GREP 'no-whole-archive' > /dev/null; then
  10168. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10169. else
  10170. whole_archive_flag_spec_CXX=
  10171. fi
  10172. else
  10173. with_gnu_ld=no
  10174. wlarc=
  10175. # A generic and very simple default shared library creation
  10176. # command for GNU C++ for the case where it uses the native
  10177. # linker, instead of GNU ld. If possible, this setting should
  10178. # overridden to take advantage of the native linker features on
  10179. # the platform it is being used on.
  10180. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10181. fi
  10182. # Commands to make compiler produce verbose output that lists
  10183. # what "hidden" libraries, object files and flags are used when
  10184. # linking a shared library.
  10185. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10186. else
  10187. GXX=no
  10188. with_gnu_ld=no
  10189. wlarc=
  10190. fi
  10191. # PORTME: fill in a description of your system's C++ link characteristics
  10192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10193. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10194. ld_shlibs_CXX=yes
  10195. case $host_os in
  10196. aix3*)
  10197. # FIXME: insert proper C++ library support
  10198. ld_shlibs_CXX=no
  10199. ;;
  10200. aix[4-9]*)
  10201. if test "$host_cpu" = ia64; then
  10202. # On IA64, the linker does run time linking by default, so we don't
  10203. # have to do anything special.
  10204. aix_use_runtimelinking=no
  10205. exp_sym_flag='-Bexport'
  10206. no_entry_flag=""
  10207. else
  10208. aix_use_runtimelinking=no
  10209. # Test if we are trying to use run time linking or normal
  10210. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10211. # need to do runtime linking.
  10212. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10213. for ld_flag in $LDFLAGS; do
  10214. case $ld_flag in
  10215. *-brtl*)
  10216. aix_use_runtimelinking=yes
  10217. break
  10218. ;;
  10219. esac
  10220. done
  10221. ;;
  10222. esac
  10223. exp_sym_flag='-bexport'
  10224. no_entry_flag='-bnoentry'
  10225. fi
  10226. # When large executables or shared objects are built, AIX ld can
  10227. # have problems creating the table of contents. If linking a library
  10228. # or program results in "error TOC overflow" add -mminimal-toc to
  10229. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10230. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10231. archive_cmds_CXX=''
  10232. hardcode_direct_CXX=yes
  10233. hardcode_direct_absolute_CXX=yes
  10234. hardcode_libdir_separator_CXX=':'
  10235. link_all_deplibs_CXX=yes
  10236. file_list_spec_CXX='${wl}-f,'
  10237. if test "$GXX" = yes; then
  10238. case $host_os in aix4.[012]|aix4.[012].*)
  10239. # We only want to do this on AIX 4.2 and lower, the check
  10240. # below for broken collect2 doesn't work under 4.3+
  10241. collect2name=`${CC} -print-prog-name=collect2`
  10242. if test -f "$collect2name" &&
  10243. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10244. then
  10245. # We have reworked collect2
  10246. :
  10247. else
  10248. # We have old collect2
  10249. hardcode_direct_CXX=unsupported
  10250. # It fails to find uninstalled libraries when the uninstalled
  10251. # path is not listed in the libpath. Setting hardcode_minus_L
  10252. # to unsupported forces relinking
  10253. hardcode_minus_L_CXX=yes
  10254. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10255. hardcode_libdir_separator_CXX=
  10256. fi
  10257. esac
  10258. shared_flag='-shared'
  10259. if test "$aix_use_runtimelinking" = yes; then
  10260. shared_flag="$shared_flag "'${wl}-G'
  10261. fi
  10262. else
  10263. # not using gcc
  10264. if test "$host_cpu" = ia64; then
  10265. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10266. # chokes on -Wl,-G. The following line is correct:
  10267. shared_flag='-G'
  10268. else
  10269. if test "$aix_use_runtimelinking" = yes; then
  10270. shared_flag='${wl}-G'
  10271. else
  10272. shared_flag='${wl}-bM:SRE'
  10273. fi
  10274. fi
  10275. fi
  10276. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10277. # It seems that -bexpall does not export symbols beginning with
  10278. # underscore (_), so it is better to generate a list of symbols to
  10279. # export.
  10280. always_export_symbols_CXX=yes
  10281. if test "$aix_use_runtimelinking" = yes; then
  10282. # Warning - without using the other runtime loading flags (-brtl),
  10283. # -berok will link without error, but may produce a broken library.
  10284. allow_undefined_flag_CXX='-berok'
  10285. # Determine the default libpath from the value encoded in an empty
  10286. # executable.
  10287. if test "${lt_cv_aix_libpath+set}" = set; then
  10288. aix_libpath=$lt_cv_aix_libpath
  10289. else
  10290. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10291. $as_echo_n "(cached) " >&6
  10292. else
  10293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10294. /* end confdefs.h. */
  10295. int
  10296. main ()
  10297. {
  10298. ;
  10299. return 0;
  10300. }
  10301. _ACEOF
  10302. if ac_fn_cxx_try_link "$LINENO"; then :
  10303. lt_aix_libpath_sed='
  10304. /Import File Strings/,/^$/ {
  10305. /^0/ {
  10306. s/^0 *\([^ ]*\) *$/\1/
  10307. p
  10308. }
  10309. }'
  10310. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10311. # Check for a 64-bit object if we didn't find anything.
  10312. if test -z "$lt_cv_aix_libpath__CXX"; then
  10313. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10314. fi
  10315. fi
  10316. rm -f core conftest.err conftest.$ac_objext \
  10317. conftest$ac_exeext conftest.$ac_ext
  10318. if test -z "$lt_cv_aix_libpath__CXX"; then
  10319. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10320. fi
  10321. fi
  10322. aix_libpath=$lt_cv_aix_libpath__CXX
  10323. fi
  10324. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10325. archive_expsym_cmds_CXX='$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"
  10326. else
  10327. if test "$host_cpu" = ia64; then
  10328. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10329. allow_undefined_flag_CXX="-z nodefs"
  10330. archive_expsym_cmds_CXX="\$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"
  10331. else
  10332. # Determine the default libpath from the value encoded in an
  10333. # empty executable.
  10334. if test "${lt_cv_aix_libpath+set}" = set; then
  10335. aix_libpath=$lt_cv_aix_libpath
  10336. else
  10337. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10338. $as_echo_n "(cached) " >&6
  10339. else
  10340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10341. /* end confdefs.h. */
  10342. int
  10343. main ()
  10344. {
  10345. ;
  10346. return 0;
  10347. }
  10348. _ACEOF
  10349. if ac_fn_cxx_try_link "$LINENO"; then :
  10350. lt_aix_libpath_sed='
  10351. /Import File Strings/,/^$/ {
  10352. /^0/ {
  10353. s/^0 *\([^ ]*\) *$/\1/
  10354. p
  10355. }
  10356. }'
  10357. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10358. # Check for a 64-bit object if we didn't find anything.
  10359. if test -z "$lt_cv_aix_libpath__CXX"; then
  10360. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10361. fi
  10362. fi
  10363. rm -f core conftest.err conftest.$ac_objext \
  10364. conftest$ac_exeext conftest.$ac_ext
  10365. if test -z "$lt_cv_aix_libpath__CXX"; then
  10366. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10367. fi
  10368. fi
  10369. aix_libpath=$lt_cv_aix_libpath__CXX
  10370. fi
  10371. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10372. # Warning - without using the other run time loading flags,
  10373. # -berok will link without error, but may produce a broken library.
  10374. no_undefined_flag_CXX=' ${wl}-bernotok'
  10375. allow_undefined_flag_CXX=' ${wl}-berok'
  10376. if test "$with_gnu_ld" = yes; then
  10377. # We only use this code for GNU lds that support --whole-archive.
  10378. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10379. else
  10380. # Exported symbols can be pulled into shared objects from archives
  10381. whole_archive_flag_spec_CXX='$convenience'
  10382. fi
  10383. archive_cmds_need_lc_CXX=yes
  10384. # This is similar to how AIX traditionally builds its shared
  10385. # libraries.
  10386. archive_expsym_cmds_CXX="\$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'
  10387. fi
  10388. fi
  10389. ;;
  10390. beos*)
  10391. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10392. allow_undefined_flag_CXX=unsupported
  10393. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10394. # support --undefined. This deserves some investigation. FIXME
  10395. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10396. else
  10397. ld_shlibs_CXX=no
  10398. fi
  10399. ;;
  10400. chorus*)
  10401. case $cc_basename in
  10402. *)
  10403. # FIXME: insert proper C++ library support
  10404. ld_shlibs_CXX=no
  10405. ;;
  10406. esac
  10407. ;;
  10408. cygwin* | mingw* | pw32* | cegcc*)
  10409. case $GXX,$cc_basename in
  10410. ,cl* | no,cl*)
  10411. # Native MSVC
  10412. # hardcode_libdir_flag_spec is actually meaningless, as there is
  10413. # no search path for DLLs.
  10414. hardcode_libdir_flag_spec_CXX=' '
  10415. allow_undefined_flag_CXX=unsupported
  10416. always_export_symbols_CXX=yes
  10417. file_list_spec_CXX='@'
  10418. # Tell ltmain to make .lib files, not .a files.
  10419. libext=lib
  10420. # Tell ltmain to make .dll files, not .so files.
  10421. shrext_cmds=".dll"
  10422. # FIXME: Setting linknames here is a bad hack.
  10423. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  10424. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10425. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  10426. else
  10427. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  10428. fi~
  10429. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  10430. linknames='
  10431. # The linker will not automatically build a static lib if we build a DLL.
  10432. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  10433. enable_shared_with_static_runtimes_CXX=yes
  10434. # Don't use ranlib
  10435. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  10436. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  10437. lt_tool_outputfile="@TOOL_OUTPUT@"~
  10438. case $lt_outputfile in
  10439. *.exe|*.EXE) ;;
  10440. *)
  10441. lt_outputfile="$lt_outputfile.exe"
  10442. lt_tool_outputfile="$lt_tool_outputfile.exe"
  10443. ;;
  10444. esac~
  10445. func_to_tool_file "$lt_outputfile"~
  10446. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  10447. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  10448. $RM "$lt_outputfile.manifest";
  10449. fi'
  10450. ;;
  10451. *)
  10452. # g++
  10453. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10454. # as there is no search path for DLLs.
  10455. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10456. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  10457. allow_undefined_flag_CXX=unsupported
  10458. always_export_symbols_CXX=no
  10459. enable_shared_with_static_runtimes_CXX=yes
  10460. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10461. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10462. # If the export-symbols file already is a .def file (1st line
  10463. # is EXPORTS), use it as is; otherwise, prepend...
  10464. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10465. cp $export_symbols $output_objdir/$soname.def;
  10466. else
  10467. echo EXPORTS > $output_objdir/$soname.def;
  10468. cat $export_symbols >> $output_objdir/$soname.def;
  10469. fi~
  10470. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10471. else
  10472. ld_shlibs_CXX=no
  10473. fi
  10474. ;;
  10475. esac
  10476. ;;
  10477. darwin* | rhapsody*)
  10478. archive_cmds_need_lc_CXX=no
  10479. hardcode_direct_CXX=no
  10480. hardcode_automatic_CXX=yes
  10481. hardcode_shlibpath_var_CXX=unsupported
  10482. if test "$lt_cv_ld_force_load" = "yes"; then
  10483. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  10484. else
  10485. whole_archive_flag_spec_CXX=''
  10486. fi
  10487. link_all_deplibs_CXX=yes
  10488. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10489. case $cc_basename in
  10490. ifort*) _lt_dar_can_shared=yes ;;
  10491. *) _lt_dar_can_shared=$GCC ;;
  10492. esac
  10493. if test "$_lt_dar_can_shared" = "yes"; then
  10494. output_verbose_link_cmd=func_echo_all
  10495. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  10496. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10497. archive_expsym_cmds_CXX="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}"
  10498. module_expsym_cmds_CXX="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}"
  10499. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10500. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  10501. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  10502. fi
  10503. else
  10504. ld_shlibs_CXX=no
  10505. fi
  10506. ;;
  10507. dgux*)
  10508. case $cc_basename in
  10509. ec++*)
  10510. # FIXME: insert proper C++ library support
  10511. ld_shlibs_CXX=no
  10512. ;;
  10513. ghcx*)
  10514. # Green Hills C++ Compiler
  10515. # FIXME: insert proper C++ library support
  10516. ld_shlibs_CXX=no
  10517. ;;
  10518. *)
  10519. # FIXME: insert proper C++ library support
  10520. ld_shlibs_CXX=no
  10521. ;;
  10522. esac
  10523. ;;
  10524. freebsd[12]*)
  10525. # C++ shared libraries reported to be fairly broken before
  10526. # switch to ELF
  10527. ld_shlibs_CXX=no
  10528. ;;
  10529. freebsd-elf*)
  10530. archive_cmds_need_lc_CXX=no
  10531. ;;
  10532. freebsd* | dragonfly*)
  10533. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10534. # conventions
  10535. ld_shlibs_CXX=yes
  10536. ;;
  10537. gnu*)
  10538. ;;
  10539. haiku*)
  10540. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10541. link_all_deplibs_CXX=yes
  10542. ;;
  10543. hpux9*)
  10544. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10545. hardcode_libdir_separator_CXX=:
  10546. export_dynamic_flag_spec_CXX='${wl}-E'
  10547. hardcode_direct_CXX=yes
  10548. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10549. # but as the default
  10550. # location of the library.
  10551. case $cc_basename in
  10552. CC*)
  10553. # FIXME: insert proper C++ library support
  10554. ld_shlibs_CXX=no
  10555. ;;
  10556. aCC*)
  10557. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10558. # Commands to make compiler produce verbose output that lists
  10559. # what "hidden" libraries, object files and flags are used when
  10560. # linking a shared library.
  10561. #
  10562. # There doesn't appear to be a way to prevent this compiler from
  10563. # explicitly linking system object files so we need to strip them
  10564. # from the output so that they don't get included in the library
  10565. # dependencies.
  10566. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  10567. ;;
  10568. *)
  10569. if test "$GXX" = yes; then
  10570. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10571. else
  10572. # FIXME: insert proper C++ library support
  10573. ld_shlibs_CXX=no
  10574. fi
  10575. ;;
  10576. esac
  10577. ;;
  10578. hpux10*|hpux11*)
  10579. if test $with_gnu_ld = no; then
  10580. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10581. hardcode_libdir_separator_CXX=:
  10582. case $host_cpu in
  10583. hppa*64*|ia64*)
  10584. ;;
  10585. *)
  10586. export_dynamic_flag_spec_CXX='${wl}-E'
  10587. ;;
  10588. esac
  10589. fi
  10590. case $host_cpu in
  10591. hppa*64*|ia64*)
  10592. hardcode_direct_CXX=no
  10593. hardcode_shlibpath_var_CXX=no
  10594. ;;
  10595. *)
  10596. hardcode_direct_CXX=yes
  10597. hardcode_direct_absolute_CXX=yes
  10598. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10599. # but as the default
  10600. # location of the library.
  10601. ;;
  10602. esac
  10603. case $cc_basename in
  10604. CC*)
  10605. # FIXME: insert proper C++ library support
  10606. ld_shlibs_CXX=no
  10607. ;;
  10608. aCC*)
  10609. case $host_cpu in
  10610. hppa*64*)
  10611. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10612. ;;
  10613. ia64*)
  10614. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10615. ;;
  10616. *)
  10617. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10618. ;;
  10619. esac
  10620. # Commands to make compiler produce verbose output that lists
  10621. # what "hidden" libraries, object files and flags are used when
  10622. # linking a shared library.
  10623. #
  10624. # There doesn't appear to be a way to prevent this compiler from
  10625. # explicitly linking system object files so we need to strip them
  10626. # from the output so that they don't get included in the library
  10627. # dependencies.
  10628. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  10629. ;;
  10630. *)
  10631. if test "$GXX" = yes; then
  10632. if test $with_gnu_ld = no; then
  10633. case $host_cpu in
  10634. hppa*64*)
  10635. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10636. ;;
  10637. ia64*)
  10638. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10639. ;;
  10640. *)
  10641. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10642. ;;
  10643. esac
  10644. fi
  10645. else
  10646. # FIXME: insert proper C++ library support
  10647. ld_shlibs_CXX=no
  10648. fi
  10649. ;;
  10650. esac
  10651. ;;
  10652. interix[3-9]*)
  10653. hardcode_direct_CXX=no
  10654. hardcode_shlibpath_var_CXX=no
  10655. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10656. export_dynamic_flag_spec_CXX='${wl}-E'
  10657. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10658. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10659. # default) and relocated if they conflict, which is a slow very memory
  10660. # consuming and fragmenting process. To avoid this, we pick a random,
  10661. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10662. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10663. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10664. archive_expsym_cmds_CXX='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'
  10665. ;;
  10666. irix5* | irix6*)
  10667. case $cc_basename in
  10668. CC*)
  10669. # SGI C++
  10670. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  10671. # Archives containing C++ object files must be created using
  10672. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10673. # necessary to make sure instantiated templates are included
  10674. # in the archive.
  10675. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10676. ;;
  10677. *)
  10678. if test "$GXX" = yes; then
  10679. if test "$with_gnu_ld" = no; then
  10680. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
  10681. else
  10682. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  10683. fi
  10684. fi
  10685. link_all_deplibs_CXX=yes
  10686. ;;
  10687. esac
  10688. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10689. hardcode_libdir_separator_CXX=:
  10690. inherit_rpath_CXX=yes
  10691. ;;
  10692. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10693. case $cc_basename in
  10694. KCC*)
  10695. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10696. # KCC will only create a shared library if the output file
  10697. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10698. # to its proper name (with version) after linking.
  10699. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10700. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  10701. # Commands to make compiler produce verbose output that lists
  10702. # what "hidden" libraries, object files and flags are used when
  10703. # linking a shared library.
  10704. #
  10705. # There doesn't appear to be a way to prevent this compiler from
  10706. # explicitly linking system object files so we need to strip them
  10707. # from the output so that they don't get included in the library
  10708. # dependencies.
  10709. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  10710. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10711. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10712. # Archives containing C++ object files must be created using
  10713. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10714. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10715. ;;
  10716. icpc* | ecpc* )
  10717. # Intel C++
  10718. with_gnu_ld=yes
  10719. # version 8.0 and above of icpc choke on multiply defined symbols
  10720. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10721. # earlier do not add the objects themselves.
  10722. case `$CC -V 2>&1` in
  10723. *"Version 7."*)
  10724. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10725. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10726. ;;
  10727. *) # Version 8.0 or newer
  10728. tmp_idyn=
  10729. case $host_cpu in
  10730. ia64*) tmp_idyn=' -i_dynamic';;
  10731. esac
  10732. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10733. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10734. ;;
  10735. esac
  10736. archive_cmds_need_lc_CXX=no
  10737. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10738. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10739. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10740. ;;
  10741. pgCC* | pgcpp*)
  10742. # Portland Group C++ compiler
  10743. case `$CC -V` in
  10744. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  10745. prelink_cmds_CXX='tpldir=Template.dir~
  10746. rm -rf $tpldir~
  10747. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10748. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  10749. old_archive_cmds_CXX='tpldir=Template.dir~
  10750. rm -rf $tpldir~
  10751. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10752. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  10753. $RANLIB $oldlib'
  10754. archive_cmds_CXX='tpldir=Template.dir~
  10755. rm -rf $tpldir~
  10756. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10757. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10758. archive_expsym_cmds_CXX='tpldir=Template.dir~
  10759. rm -rf $tpldir~
  10760. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10761. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10762. ;;
  10763. *) # Version 6 and above use weak symbols
  10764. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10765. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10766. ;;
  10767. esac
  10768. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10769. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10770. whole_archive_flag_spec_CXX='${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'
  10771. ;;
  10772. cxx*)
  10773. # Compaq C++
  10774. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10775. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  10776. runpath_var=LD_RUN_PATH
  10777. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10778. hardcode_libdir_separator_CXX=:
  10779. # Commands to make compiler produce verbose output that lists
  10780. # what "hidden" libraries, object files and flags are used when
  10781. # linking a shared library.
  10782. #
  10783. # There doesn't appear to be a way to prevent this compiler from
  10784. # explicitly linking system object files so we need to strip them
  10785. # from the output so that they don't get included in the library
  10786. # dependencies.
  10787. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  10788. ;;
  10789. xl* | mpixl* | bgxl*)
  10790. # IBM XL 8.0 on PPC, with GNU ld
  10791. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10792. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10793. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10794. if test "x$supports_anon_versioning" = xyes; then
  10795. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  10796. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10797. echo "local: *; };" >> $output_objdir/$libname.ver~
  10798. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10799. fi
  10800. ;;
  10801. *)
  10802. case `$CC -V 2>&1 | sed 5q` in
  10803. *Sun\ C*)
  10804. # Sun C++ 5.9
  10805. no_undefined_flag_CXX=' -zdefs'
  10806. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10807. archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  10808. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10809. whole_archive_flag_spec_CXX='${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'
  10810. compiler_needs_object_CXX=yes
  10811. # Not sure whether something based on
  10812. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10813. # would be better.
  10814. output_verbose_link_cmd='func_echo_all'
  10815. # Archives containing C++ object files must be created using
  10816. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10817. # necessary to make sure instantiated templates are included
  10818. # in the archive.
  10819. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10820. ;;
  10821. esac
  10822. ;;
  10823. esac
  10824. ;;
  10825. lynxos*)
  10826. # FIXME: insert proper C++ library support
  10827. ld_shlibs_CXX=no
  10828. ;;
  10829. m88k*)
  10830. # FIXME: insert proper C++ library support
  10831. ld_shlibs_CXX=no
  10832. ;;
  10833. mvs*)
  10834. case $cc_basename in
  10835. cxx*)
  10836. # FIXME: insert proper C++ library support
  10837. ld_shlibs_CXX=no
  10838. ;;
  10839. *)
  10840. # FIXME: insert proper C++ library support
  10841. ld_shlibs_CXX=no
  10842. ;;
  10843. esac
  10844. ;;
  10845. netbsd*)
  10846. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10847. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10848. wlarc=
  10849. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10850. hardcode_direct_CXX=yes
  10851. hardcode_shlibpath_var_CXX=no
  10852. fi
  10853. # Workaround some broken pre-1.5 toolchains
  10854. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10855. ;;
  10856. *nto* | *qnx*)
  10857. ld_shlibs_CXX=yes
  10858. ;;
  10859. openbsd2*)
  10860. # C++ shared libraries are fairly broken
  10861. ld_shlibs_CXX=no
  10862. ;;
  10863. openbsd*)
  10864. if test -f /usr/libexec/ld.so; then
  10865. hardcode_direct_CXX=yes
  10866. hardcode_shlibpath_var_CXX=no
  10867. hardcode_direct_absolute_CXX=yes
  10868. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10869. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10870. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10871. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10872. export_dynamic_flag_spec_CXX='${wl}-E'
  10873. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10874. fi
  10875. output_verbose_link_cmd=func_echo_all
  10876. else
  10877. ld_shlibs_CXX=no
  10878. fi
  10879. ;;
  10880. osf3* | osf4* | osf5*)
  10881. case $cc_basename in
  10882. KCC*)
  10883. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10884. # KCC will only create a shared library if the output file
  10885. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10886. # to its proper name (with version) after linking.
  10887. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10888. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10889. hardcode_libdir_separator_CXX=:
  10890. # Archives containing C++ object files must be created using
  10891. # the KAI C++ compiler.
  10892. case $host in
  10893. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10894. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  10895. esac
  10896. ;;
  10897. RCC*)
  10898. # Rational C++ 2.4.1
  10899. # FIXME: insert proper C++ library support
  10900. ld_shlibs_CXX=no
  10901. ;;
  10902. cxx*)
  10903. case $host in
  10904. osf3*)
  10905. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10906. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  10907. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10908. ;;
  10909. *)
  10910. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10911. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  10912. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10913. echo "-hidden">> $lib.exp~
  10914. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
  10915. $RM $lib.exp'
  10916. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10917. ;;
  10918. esac
  10919. hardcode_libdir_separator_CXX=:
  10920. # Commands to make compiler produce verbose output that lists
  10921. # what "hidden" libraries, object files and flags are used when
  10922. # linking a shared library.
  10923. #
  10924. # There doesn't appear to be a way to prevent this compiler from
  10925. # explicitly linking system object files so we need to strip them
  10926. # from the output so that they don't get included in the library
  10927. # dependencies.
  10928. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  10929. ;;
  10930. *)
  10931. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10932. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10933. case $host in
  10934. osf3*)
  10935. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
  10936. ;;
  10937. *)
  10938. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
  10939. ;;
  10940. esac
  10941. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10942. hardcode_libdir_separator_CXX=:
  10943. # Commands to make compiler produce verbose output that lists
  10944. # what "hidden" libraries, object files and flags are used when
  10945. # linking a shared library.
  10946. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10947. else
  10948. # FIXME: insert proper C++ library support
  10949. ld_shlibs_CXX=no
  10950. fi
  10951. ;;
  10952. esac
  10953. ;;
  10954. psos*)
  10955. # FIXME: insert proper C++ library support
  10956. ld_shlibs_CXX=no
  10957. ;;
  10958. sunos4*)
  10959. case $cc_basename in
  10960. CC*)
  10961. # Sun C++ 4.x
  10962. # FIXME: insert proper C++ library support
  10963. ld_shlibs_CXX=no
  10964. ;;
  10965. lcc*)
  10966. # Lucid
  10967. # FIXME: insert proper C++ library support
  10968. ld_shlibs_CXX=no
  10969. ;;
  10970. *)
  10971. # FIXME: insert proper C++ library support
  10972. ld_shlibs_CXX=no
  10973. ;;
  10974. esac
  10975. ;;
  10976. solaris*)
  10977. case $cc_basename in
  10978. CC* | sunCC*)
  10979. # Sun C++ 4.2, 5.x and Centerline C++
  10980. archive_cmds_need_lc_CXX=yes
  10981. no_undefined_flag_CXX=' -zdefs'
  10982. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10983. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10984. $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10985. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10986. hardcode_shlibpath_var_CXX=no
  10987. case $host_os in
  10988. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10989. *)
  10990. # The compiler driver will combine and reorder linker options,
  10991. # but understands `-z linker_flag'.
  10992. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10993. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  10994. ;;
  10995. esac
  10996. link_all_deplibs_CXX=yes
  10997. output_verbose_link_cmd='func_echo_all'
  10998. # Archives containing C++ object files must be created using
  10999. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11000. # necessary to make sure instantiated templates are included
  11001. # in the archive.
  11002. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11003. ;;
  11004. gcx*)
  11005. # Green Hills C++ Compiler
  11006. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11007. # The C++ compiler must be used to create the archive.
  11008. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11009. ;;
  11010. *)
  11011. # GNU C++ compiler with Solaris linker
  11012. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11013. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11014. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11015. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11016. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11017. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11018. # Commands to make compiler produce verbose output that lists
  11019. # what "hidden" libraries, object files and flags are used when
  11020. # linking a shared library.
  11021. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11022. else
  11023. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11024. # platform.
  11025. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11026. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11027. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11028. # Commands to make compiler produce verbose output that lists
  11029. # what "hidden" libraries, object files and flags are used when
  11030. # linking a shared library.
  11031. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11032. fi
  11033. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11034. case $host_os in
  11035. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11036. *)
  11037. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11038. ;;
  11039. esac
  11040. fi
  11041. ;;
  11042. esac
  11043. ;;
  11044. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11045. no_undefined_flag_CXX='${wl}-z,text'
  11046. archive_cmds_need_lc_CXX=no
  11047. hardcode_shlibpath_var_CXX=no
  11048. runpath_var='LD_RUN_PATH'
  11049. case $cc_basename in
  11050. CC*)
  11051. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11052. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11053. ;;
  11054. *)
  11055. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11056. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11057. ;;
  11058. esac
  11059. ;;
  11060. sysv5* | sco3.2v5* | sco5v6*)
  11061. # Note: We can NOT use -z defs as we might desire, because we do not
  11062. # link with -lc, and that would cause any symbols used from libc to
  11063. # always be unresolved, which means just about no library would
  11064. # ever link correctly. If we're not using GNU ld we use -z text
  11065. # though, which does catch some bad symbols but isn't as heavy-handed
  11066. # as -z defs.
  11067. no_undefined_flag_CXX='${wl}-z,text'
  11068. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11069. archive_cmds_need_lc_CXX=no
  11070. hardcode_shlibpath_var_CXX=no
  11071. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11072. hardcode_libdir_separator_CXX=':'
  11073. link_all_deplibs_CXX=yes
  11074. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11075. runpath_var='LD_RUN_PATH'
  11076. case $cc_basename in
  11077. CC*)
  11078. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11079. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11080. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11081. '"$old_archive_cmds_CXX"
  11082. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11083. '"$reload_cmds_CXX"
  11084. ;;
  11085. *)
  11086. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11087. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11088. ;;
  11089. esac
  11090. ;;
  11091. tandem*)
  11092. case $cc_basename in
  11093. NCC*)
  11094. # NonStop-UX NCC 3.20
  11095. # FIXME: insert proper C++ library support
  11096. ld_shlibs_CXX=no
  11097. ;;
  11098. *)
  11099. # FIXME: insert proper C++ library support
  11100. ld_shlibs_CXX=no
  11101. ;;
  11102. esac
  11103. ;;
  11104. vxworks*)
  11105. # FIXME: insert proper C++ library support
  11106. ld_shlibs_CXX=no
  11107. ;;
  11108. *)
  11109. # FIXME: insert proper C++ library support
  11110. ld_shlibs_CXX=no
  11111. ;;
  11112. esac
  11113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11114. $as_echo "$ld_shlibs_CXX" >&6; }
  11115. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11116. GCC_CXX="$GXX"
  11117. LD_CXX="$LD"
  11118. ## CAVEAT EMPTOR:
  11119. ## There is no encapsulation within the following macros, do not change
  11120. ## the running order or otherwise move them around unless you know exactly
  11121. ## what you are doing...
  11122. # Dependencies to place before and after the object being linked:
  11123. predep_objects_CXX=
  11124. postdep_objects_CXX=
  11125. predeps_CXX=
  11126. postdeps_CXX=
  11127. compiler_lib_search_path_CXX=
  11128. cat > conftest.$ac_ext <<_LT_EOF
  11129. class Foo
  11130. {
  11131. public:
  11132. Foo (void) { a = 0; }
  11133. private:
  11134. int a;
  11135. };
  11136. _LT_EOF
  11137. _lt_libdeps_save_CFLAGS=$CFLAGS
  11138. case "$CC $CFLAGS " in #(
  11139. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11140. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11141. esac
  11142. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11143. (eval $ac_compile) 2>&5
  11144. ac_status=$?
  11145. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11146. test $ac_status = 0; }; then
  11147. # Parse the compiler output and extract the necessary
  11148. # objects, libraries and library flags.
  11149. # Sentinel used to keep track of whether or not we are before
  11150. # the conftest object file.
  11151. pre_test_object_deps_done=no
  11152. for p in `eval "$output_verbose_link_cmd"`; do
  11153. case ${prev}${p} in
  11154. -L* | -R* | -l*)
  11155. # Some compilers place space between "-{L,R}" and the path.
  11156. # Remove the space.
  11157. if test $p = "-L" ||
  11158. test $p = "-R"; then
  11159. prev=$p
  11160. continue
  11161. fi
  11162. # Expand the sysroot to ease extracting the directories later.
  11163. if test -z "$prev"; then
  11164. case $p in
  11165. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11166. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11167. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11168. esac
  11169. fi
  11170. case $p in
  11171. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11172. esac
  11173. if test "$pre_test_object_deps_done" = no; then
  11174. case ${prev} in
  11175. -L | -R)
  11176. # Internal compiler library paths should come after those
  11177. # provided the user. The postdeps already come after the
  11178. # user supplied libs so there is no need to process them.
  11179. if test -z "$compiler_lib_search_path_CXX"; then
  11180. compiler_lib_search_path_CXX="${prev}${p}"
  11181. else
  11182. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11183. fi
  11184. ;;
  11185. # The "-l" case would never come before the object being
  11186. # linked, so don't bother handling this case.
  11187. esac
  11188. else
  11189. if test -z "$postdeps_CXX"; then
  11190. postdeps_CXX="${prev}${p}"
  11191. else
  11192. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11193. fi
  11194. fi
  11195. prev=
  11196. ;;
  11197. *.lto.$objext) ;; # Ignore GCC LTO objects
  11198. *.$objext)
  11199. # This assumes that the test object file only shows up
  11200. # once in the compiler output.
  11201. if test "$p" = "conftest.$objext"; then
  11202. pre_test_object_deps_done=yes
  11203. continue
  11204. fi
  11205. if test "$pre_test_object_deps_done" = no; then
  11206. if test -z "$predep_objects_CXX"; then
  11207. predep_objects_CXX="$p"
  11208. else
  11209. predep_objects_CXX="$predep_objects_CXX $p"
  11210. fi
  11211. else
  11212. if test -z "$postdep_objects_CXX"; then
  11213. postdep_objects_CXX="$p"
  11214. else
  11215. postdep_objects_CXX="$postdep_objects_CXX $p"
  11216. fi
  11217. fi
  11218. ;;
  11219. *) ;; # Ignore the rest.
  11220. esac
  11221. done
  11222. # Clean up.
  11223. rm -f a.out a.exe
  11224. else
  11225. echo "libtool.m4: error: problem compiling CXX test program"
  11226. fi
  11227. $RM -f confest.$objext
  11228. CFLAGS=$_lt_libdeps_save_CFLAGS
  11229. # PORTME: override above test on systems where it is broken
  11230. case $host_os in
  11231. interix[3-9]*)
  11232. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11233. # hack all around it, let's just trust "g++" to DTRT.
  11234. predep_objects_CXX=
  11235. postdep_objects_CXX=
  11236. postdeps_CXX=
  11237. ;;
  11238. linux*)
  11239. case `$CC -V 2>&1 | sed 5q` in
  11240. *Sun\ C*)
  11241. # Sun C++ 5.9
  11242. # The more standards-conforming stlport4 library is
  11243. # incompatible with the Cstd library. Avoid specifying
  11244. # it if it's in CXXFLAGS. Ignore libCrun as
  11245. # -library=stlport4 depends on it.
  11246. case " $CXX $CXXFLAGS " in
  11247. *" -library=stlport4 "*)
  11248. solaris_use_stlport4=yes
  11249. ;;
  11250. esac
  11251. if test "$solaris_use_stlport4" != yes; then
  11252. postdeps_CXX='-library=Cstd -library=Crun'
  11253. fi
  11254. ;;
  11255. esac
  11256. ;;
  11257. solaris*)
  11258. case $cc_basename in
  11259. CC* | sunCC*)
  11260. # The more standards-conforming stlport4 library is
  11261. # incompatible with the Cstd library. Avoid specifying
  11262. # it if it's in CXXFLAGS. Ignore libCrun as
  11263. # -library=stlport4 depends on it.
  11264. case " $CXX $CXXFLAGS " in
  11265. *" -library=stlport4 "*)
  11266. solaris_use_stlport4=yes
  11267. ;;
  11268. esac
  11269. # Adding this requires a known-good setup of shared libraries for
  11270. # Sun compiler versions before 5.6, else PIC objects from an old
  11271. # archive will be linked into the output, leading to subtle bugs.
  11272. if test "$solaris_use_stlport4" != yes; then
  11273. postdeps_CXX='-library=Cstd -library=Crun'
  11274. fi
  11275. ;;
  11276. esac
  11277. ;;
  11278. esac
  11279. case " $postdeps_CXX " in
  11280. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11281. esac
  11282. compiler_lib_search_dirs_CXX=
  11283. if test -n "${compiler_lib_search_path_CXX}"; then
  11284. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11285. fi
  11286. lt_prog_compiler_wl_CXX=
  11287. lt_prog_compiler_pic_CXX=
  11288. lt_prog_compiler_static_CXX=
  11289. # C++ specific cases for pic, static, wl, etc.
  11290. if test "$GXX" = yes; then
  11291. lt_prog_compiler_wl_CXX='-Wl,'
  11292. lt_prog_compiler_static_CXX='-static'
  11293. case $host_os in
  11294. aix*)
  11295. # All AIX code is PIC.
  11296. if test "$host_cpu" = ia64; then
  11297. # AIX 5 now supports IA64 processor
  11298. lt_prog_compiler_static_CXX='-Bstatic'
  11299. fi
  11300. ;;
  11301. amigaos*)
  11302. case $host_cpu in
  11303. powerpc)
  11304. # see comment about AmigaOS4 .so support
  11305. lt_prog_compiler_pic_CXX='-fPIC'
  11306. ;;
  11307. m68k)
  11308. # FIXME: we need at least 68020 code to build shared libraries, but
  11309. # adding the `-m68020' flag to GCC prevents building anything better,
  11310. # like `-m68040'.
  11311. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11312. ;;
  11313. esac
  11314. ;;
  11315. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11316. # PIC is the default for these OSes.
  11317. ;;
  11318. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11319. # This hack is so that the source file can tell whether it is being
  11320. # built for inclusion in a dll (and should export symbols for example).
  11321. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11322. # (--disable-auto-import) libraries
  11323. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11324. ;;
  11325. darwin* | rhapsody*)
  11326. # PIC is the default on this platform
  11327. # Common symbols not allowed in MH_DYLIB files
  11328. lt_prog_compiler_pic_CXX='-fno-common'
  11329. ;;
  11330. *djgpp*)
  11331. # DJGPP does not support shared libraries at all
  11332. lt_prog_compiler_pic_CXX=
  11333. ;;
  11334. haiku*)
  11335. # PIC is the default for Haiku.
  11336. # The "-static" flag exists, but is broken.
  11337. lt_prog_compiler_static_CXX=
  11338. ;;
  11339. interix[3-9]*)
  11340. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11341. # Instead, we relocate shared libraries at runtime.
  11342. ;;
  11343. sysv4*MP*)
  11344. if test -d /usr/nec; then
  11345. lt_prog_compiler_pic_CXX=-Kconform_pic
  11346. fi
  11347. ;;
  11348. hpux*)
  11349. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11350. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11351. # sets the default TLS model and affects inlining.
  11352. case $host_cpu in
  11353. hppa*64*)
  11354. ;;
  11355. *)
  11356. lt_prog_compiler_pic_CXX='-fPIC'
  11357. ;;
  11358. esac
  11359. ;;
  11360. *qnx* | *nto*)
  11361. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11362. # it will coredump.
  11363. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11364. ;;
  11365. *)
  11366. lt_prog_compiler_pic_CXX='-fPIC'
  11367. ;;
  11368. esac
  11369. else
  11370. case $host_os in
  11371. aix[4-9]*)
  11372. # All AIX code is PIC.
  11373. if test "$host_cpu" = ia64; then
  11374. # AIX 5 now supports IA64 processor
  11375. lt_prog_compiler_static_CXX='-Bstatic'
  11376. else
  11377. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11378. fi
  11379. ;;
  11380. chorus*)
  11381. case $cc_basename in
  11382. cxch68*)
  11383. # Green Hills C++ Compiler
  11384. # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  11385. ;;
  11386. esac
  11387. ;;
  11388. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11389. # This hack is so that the source file can tell whether it is being
  11390. # built for inclusion in a dll (and should export symbols for example).
  11391. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11392. ;;
  11393. dgux*)
  11394. case $cc_basename in
  11395. ec++*)
  11396. lt_prog_compiler_pic_CXX='-KPIC'
  11397. ;;
  11398. ghcx*)
  11399. # Green Hills C++ Compiler
  11400. lt_prog_compiler_pic_CXX='-pic'
  11401. ;;
  11402. *)
  11403. ;;
  11404. esac
  11405. ;;
  11406. freebsd* | dragonfly*)
  11407. # FreeBSD uses GNU C++
  11408. ;;
  11409. hpux9* | hpux10* | hpux11*)
  11410. case $cc_basename in
  11411. CC*)
  11412. lt_prog_compiler_wl_CXX='-Wl,'
  11413. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11414. if test "$host_cpu" != ia64; then
  11415. lt_prog_compiler_pic_CXX='+Z'
  11416. fi
  11417. ;;
  11418. aCC*)
  11419. lt_prog_compiler_wl_CXX='-Wl,'
  11420. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11421. case $host_cpu in
  11422. hppa*64*|ia64*)
  11423. # +Z the default
  11424. ;;
  11425. *)
  11426. lt_prog_compiler_pic_CXX='+Z'
  11427. ;;
  11428. esac
  11429. ;;
  11430. *)
  11431. ;;
  11432. esac
  11433. ;;
  11434. interix*)
  11435. # This is c89, which is MS Visual C++ (no shared libs)
  11436. # Anyone wants to do a port?
  11437. ;;
  11438. irix5* | irix6* | nonstopux*)
  11439. case $cc_basename in
  11440. CC*)
  11441. lt_prog_compiler_wl_CXX='-Wl,'
  11442. lt_prog_compiler_static_CXX='-non_shared'
  11443. # CC pic flag -KPIC is the default.
  11444. ;;
  11445. *)
  11446. ;;
  11447. esac
  11448. ;;
  11449. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11450. case $cc_basename in
  11451. KCC*)
  11452. # KAI C++ Compiler
  11453. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11454. lt_prog_compiler_pic_CXX='-fPIC'
  11455. ;;
  11456. ecpc* )
  11457. # old Intel C++ for x86_64 which still supported -KPIC.
  11458. lt_prog_compiler_wl_CXX='-Wl,'
  11459. lt_prog_compiler_pic_CXX='-KPIC'
  11460. lt_prog_compiler_static_CXX='-static'
  11461. ;;
  11462. icpc* )
  11463. # Intel C++, used to be incompatible with GCC.
  11464. # ICC 10 doesn't accept -KPIC any more.
  11465. lt_prog_compiler_wl_CXX='-Wl,'
  11466. lt_prog_compiler_pic_CXX='-fPIC'
  11467. lt_prog_compiler_static_CXX='-static'
  11468. ;;
  11469. pgCC* | pgcpp*)
  11470. # Portland Group C++ compiler
  11471. lt_prog_compiler_wl_CXX='-Wl,'
  11472. lt_prog_compiler_pic_CXX='-fpic'
  11473. lt_prog_compiler_static_CXX='-Bstatic'
  11474. ;;
  11475. cxx*)
  11476. # Compaq C++
  11477. # Make sure the PIC flag is empty. It appears that all Alpha
  11478. # Linux and Compaq Tru64 Unix objects are PIC.
  11479. lt_prog_compiler_pic_CXX=
  11480. lt_prog_compiler_static_CXX='-non_shared'
  11481. ;;
  11482. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  11483. # IBM XL 8.0, 9.0 on PPC and BlueGene
  11484. lt_prog_compiler_wl_CXX='-Wl,'
  11485. lt_prog_compiler_pic_CXX='-qpic'
  11486. lt_prog_compiler_static_CXX='-qstaticlink'
  11487. ;;
  11488. *)
  11489. case `$CC -V 2>&1 | sed 5q` in
  11490. *Sun\ C*)
  11491. # Sun C++ 5.9
  11492. lt_prog_compiler_pic_CXX='-KPIC'
  11493. lt_prog_compiler_static_CXX='-Bstatic'
  11494. lt_prog_compiler_wl_CXX='-Qoption ld '
  11495. ;;
  11496. esac
  11497. ;;
  11498. esac
  11499. ;;
  11500. lynxos*)
  11501. ;;
  11502. m88k*)
  11503. ;;
  11504. mvs*)
  11505. case $cc_basename in
  11506. cxx*)
  11507. lt_prog_compiler_pic_CXX='-W c,exportall'
  11508. ;;
  11509. *)
  11510. ;;
  11511. esac
  11512. ;;
  11513. netbsd*)
  11514. ;;
  11515. *qnx* | *nto*)
  11516. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11517. # it will coredump.
  11518. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11519. ;;
  11520. osf3* | osf4* | osf5*)
  11521. case $cc_basename in
  11522. KCC*)
  11523. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11524. ;;
  11525. RCC*)
  11526. # Rational C++ 2.4.1
  11527. lt_prog_compiler_pic_CXX='-pic'
  11528. ;;
  11529. cxx*)
  11530. # Digital/Compaq C++
  11531. lt_prog_compiler_wl_CXX='-Wl,'
  11532. # Make sure the PIC flag is empty. It appears that all Alpha
  11533. # Linux and Compaq Tru64 Unix objects are PIC.
  11534. lt_prog_compiler_pic_CXX=
  11535. lt_prog_compiler_static_CXX='-non_shared'
  11536. ;;
  11537. *)
  11538. ;;
  11539. esac
  11540. ;;
  11541. psos*)
  11542. ;;
  11543. solaris*)
  11544. case $cc_basename in
  11545. CC* | sunCC*)
  11546. # Sun C++ 4.2, 5.x and Centerline C++
  11547. lt_prog_compiler_pic_CXX='-KPIC'
  11548. lt_prog_compiler_static_CXX='-Bstatic'
  11549. lt_prog_compiler_wl_CXX='-Qoption ld '
  11550. ;;
  11551. gcx*)
  11552. # Green Hills C++ Compiler
  11553. lt_prog_compiler_pic_CXX='-PIC'
  11554. ;;
  11555. *)
  11556. ;;
  11557. esac
  11558. ;;
  11559. sunos4*)
  11560. case $cc_basename in
  11561. CC*)
  11562. # Sun C++ 4.x
  11563. lt_prog_compiler_pic_CXX='-pic'
  11564. lt_prog_compiler_static_CXX='-Bstatic'
  11565. ;;
  11566. lcc*)
  11567. # Lucid
  11568. lt_prog_compiler_pic_CXX='-pic'
  11569. ;;
  11570. *)
  11571. ;;
  11572. esac
  11573. ;;
  11574. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11575. case $cc_basename in
  11576. CC*)
  11577. lt_prog_compiler_wl_CXX='-Wl,'
  11578. lt_prog_compiler_pic_CXX='-KPIC'
  11579. lt_prog_compiler_static_CXX='-Bstatic'
  11580. ;;
  11581. esac
  11582. ;;
  11583. tandem*)
  11584. case $cc_basename in
  11585. NCC*)
  11586. # NonStop-UX NCC 3.20
  11587. lt_prog_compiler_pic_CXX='-KPIC'
  11588. ;;
  11589. *)
  11590. ;;
  11591. esac
  11592. ;;
  11593. vxworks*)
  11594. ;;
  11595. *)
  11596. lt_prog_compiler_can_build_shared_CXX=no
  11597. ;;
  11598. esac
  11599. fi
  11600. case $host_os in
  11601. # For platforms which do not support PIC, -DPIC is meaningless:
  11602. *djgpp*)
  11603. lt_prog_compiler_pic_CXX=
  11604. ;;
  11605. *)
  11606. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11607. ;;
  11608. esac
  11609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11610. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11611. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  11612. $as_echo_n "(cached) " >&6
  11613. else
  11614. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  11615. fi
  11616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  11617. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  11618. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  11619. #
  11620. # Check to make sure the PIC flag actually works.
  11621. #
  11622. if test -n "$lt_prog_compiler_pic_CXX"; then
  11623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11624. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11625. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  11626. $as_echo_n "(cached) " >&6
  11627. else
  11628. lt_cv_prog_compiler_pic_works_CXX=no
  11629. ac_outfile=conftest.$ac_objext
  11630. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11631. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11632. # Insert the option either (1) after the last *FLAGS variable, or
  11633. # (2) before a word containing "conftest.", or (3) at the end.
  11634. # Note that $ac_compile itself does not contain backslashes and begins
  11635. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11636. # The option is referenced via a variable to avoid confusing sed.
  11637. lt_compile=`echo "$ac_compile" | $SED \
  11638. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11639. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11640. -e 's:$: $lt_compiler_flag:'`
  11641. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11642. (eval "$lt_compile" 2>conftest.err)
  11643. ac_status=$?
  11644. cat conftest.err >&5
  11645. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11646. if (exit $ac_status) && test -s "$ac_outfile"; then
  11647. # The compiler can only warn and ignore the option if not recognized
  11648. # So say no if there are warnings other than the usual output.
  11649. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  11650. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11651. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11652. lt_cv_prog_compiler_pic_works_CXX=yes
  11653. fi
  11654. fi
  11655. $RM conftest*
  11656. fi
  11657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11658. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11659. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11660. case $lt_prog_compiler_pic_CXX in
  11661. "" | " "*) ;;
  11662. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11663. esac
  11664. else
  11665. lt_prog_compiler_pic_CXX=
  11666. lt_prog_compiler_can_build_shared_CXX=no
  11667. fi
  11668. fi
  11669. #
  11670. # Check to make sure the static flag actually works.
  11671. #
  11672. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11674. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11675. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  11676. $as_echo_n "(cached) " >&6
  11677. else
  11678. lt_cv_prog_compiler_static_works_CXX=no
  11679. save_LDFLAGS="$LDFLAGS"
  11680. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11681. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11682. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11683. # The linker can only warn and ignore the option if not recognized
  11684. # So say no if there are warnings
  11685. if test -s conftest.err; then
  11686. # Append any errors to the config.log.
  11687. cat conftest.err 1>&5
  11688. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  11689. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11690. if diff conftest.exp conftest.er2 >/dev/null; then
  11691. lt_cv_prog_compiler_static_works_CXX=yes
  11692. fi
  11693. else
  11694. lt_cv_prog_compiler_static_works_CXX=yes
  11695. fi
  11696. fi
  11697. $RM -r conftest*
  11698. LDFLAGS="$save_LDFLAGS"
  11699. fi
  11700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11701. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11702. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11703. :
  11704. else
  11705. lt_prog_compiler_static_CXX=
  11706. fi
  11707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11708. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11709. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  11710. $as_echo_n "(cached) " >&6
  11711. else
  11712. lt_cv_prog_compiler_c_o_CXX=no
  11713. $RM -r conftest 2>/dev/null
  11714. mkdir conftest
  11715. cd conftest
  11716. mkdir out
  11717. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11718. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11719. # Insert the option either (1) after the last *FLAGS variable, or
  11720. # (2) before a word containing "conftest.", or (3) at the end.
  11721. # Note that $ac_compile itself does not contain backslashes and begins
  11722. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11723. lt_compile=`echo "$ac_compile" | $SED \
  11724. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11725. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11726. -e 's:$: $lt_compiler_flag:'`
  11727. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11728. (eval "$lt_compile" 2>out/conftest.err)
  11729. ac_status=$?
  11730. cat out/conftest.err >&5
  11731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11732. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11733. then
  11734. # The compiler can only warn and ignore the option if not recognized
  11735. # So say no if there are warnings
  11736. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11737. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11738. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11739. lt_cv_prog_compiler_c_o_CXX=yes
  11740. fi
  11741. fi
  11742. chmod u+w . 2>&5
  11743. $RM conftest*
  11744. # SGI C++ compiler will create directory out/ii_files/ for
  11745. # template instantiation
  11746. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11747. $RM out/* && rmdir out
  11748. cd ..
  11749. $RM -r conftest
  11750. $RM conftest*
  11751. fi
  11752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11753. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11755. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11756. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  11757. $as_echo_n "(cached) " >&6
  11758. else
  11759. lt_cv_prog_compiler_c_o_CXX=no
  11760. $RM -r conftest 2>/dev/null
  11761. mkdir conftest
  11762. cd conftest
  11763. mkdir out
  11764. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11765. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11766. # Insert the option either (1) after the last *FLAGS variable, or
  11767. # (2) before a word containing "conftest.", or (3) at the end.
  11768. # Note that $ac_compile itself does not contain backslashes and begins
  11769. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11770. lt_compile=`echo "$ac_compile" | $SED \
  11771. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11772. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11773. -e 's:$: $lt_compiler_flag:'`
  11774. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11775. (eval "$lt_compile" 2>out/conftest.err)
  11776. ac_status=$?
  11777. cat out/conftest.err >&5
  11778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11779. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11780. then
  11781. # The compiler can only warn and ignore the option if not recognized
  11782. # So say no if there are warnings
  11783. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11784. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11785. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11786. lt_cv_prog_compiler_c_o_CXX=yes
  11787. fi
  11788. fi
  11789. chmod u+w . 2>&5
  11790. $RM conftest*
  11791. # SGI C++ compiler will create directory out/ii_files/ for
  11792. # template instantiation
  11793. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11794. $RM out/* && rmdir out
  11795. cd ..
  11796. $RM -r conftest
  11797. $RM conftest*
  11798. fi
  11799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11800. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11801. hard_links="nottested"
  11802. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11803. # do not overwrite the value of need_locks provided by the user
  11804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11805. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11806. hard_links=yes
  11807. $RM conftest*
  11808. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11809. touch conftest.a
  11810. ln conftest.a conftest.b 2>&5 || hard_links=no
  11811. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11813. $as_echo "$hard_links" >&6; }
  11814. if test "$hard_links" = no; then
  11815. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11816. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11817. need_locks=warn
  11818. fi
  11819. else
  11820. need_locks=no
  11821. fi
  11822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11823. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11824. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11825. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11826. case $host_os in
  11827. aix[4-9]*)
  11828. # If we're using GNU nm, then we don't want the "-C" option.
  11829. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11830. # Also, AIX nm treats weak defined symbols like other global defined
  11831. # symbols, whereas GNU nm marks them as "W".
  11832. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11833. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11834. else
  11835. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11836. fi
  11837. ;;
  11838. pw32*)
  11839. export_symbols_cmds_CXX="$ltdll_cmds"
  11840. ;;
  11841. cygwin* | mingw* | cegcc*)
  11842. case $cc_basename in
  11843. cl*) ;;
  11844. *)
  11845. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  11846. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  11847. ;;
  11848. esac
  11849. ;;
  11850. *)
  11851. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11852. ;;
  11853. esac
  11854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11855. $as_echo "$ld_shlibs_CXX" >&6; }
  11856. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11857. with_gnu_ld_CXX=$with_gnu_ld
  11858. #
  11859. # Do we need to explicitly link libc?
  11860. #
  11861. case "x$archive_cmds_need_lc_CXX" in
  11862. x|xyes)
  11863. # Assume -lc should be added
  11864. archive_cmds_need_lc_CXX=yes
  11865. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11866. case $archive_cmds_CXX in
  11867. *'~'*)
  11868. # FIXME: we may have to deal with multi-command sequences.
  11869. ;;
  11870. '$CC '*)
  11871. # Test whether the compiler implicitly links with -lc since on some
  11872. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11873. # to ld, don't add -lc before -lgcc.
  11874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11875. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11876. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  11877. $as_echo_n "(cached) " >&6
  11878. else
  11879. $RM conftest*
  11880. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11881. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11882. (eval $ac_compile) 2>&5
  11883. ac_status=$?
  11884. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11885. test $ac_status = 0; } 2>conftest.err; then
  11886. soname=conftest
  11887. lib=conftest
  11888. libobjs=conftest.$ac_objext
  11889. deplibs=
  11890. wl=$lt_prog_compiler_wl_CXX
  11891. pic_flag=$lt_prog_compiler_pic_CXX
  11892. compiler_flags=-v
  11893. linker_flags=-v
  11894. verstring=
  11895. output_objdir=.
  11896. libname=conftest
  11897. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11898. allow_undefined_flag_CXX=
  11899. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11900. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11901. ac_status=$?
  11902. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11903. test $ac_status = 0; }
  11904. then
  11905. lt_cv_archive_cmds_need_lc_CXX=no
  11906. else
  11907. lt_cv_archive_cmds_need_lc_CXX=yes
  11908. fi
  11909. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11910. else
  11911. cat conftest.err 1>&5
  11912. fi
  11913. $RM conftest*
  11914. fi
  11915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  11916. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  11917. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  11918. ;;
  11919. esac
  11920. fi
  11921. ;;
  11922. esac
  11923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11924. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11925. library_names_spec=
  11926. libname_spec='lib$name'
  11927. soname_spec=
  11928. shrext_cmds=".so"
  11929. postinstall_cmds=
  11930. postuninstall_cmds=
  11931. finish_cmds=
  11932. finish_eval=
  11933. shlibpath_var=
  11934. shlibpath_overrides_runpath=unknown
  11935. version_type=none
  11936. dynamic_linker="$host_os ld.so"
  11937. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11938. need_lib_prefix=unknown
  11939. hardcode_into_libs=no
  11940. # when you set need_version to no, make sure it does not cause -set_version
  11941. # flags to be left without arguments
  11942. need_version=unknown
  11943. case $host_os in
  11944. aix3*)
  11945. version_type=linux
  11946. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11947. shlibpath_var=LIBPATH
  11948. # AIX 3 has no versioning support, so we append a major version to the name.
  11949. soname_spec='${libname}${release}${shared_ext}$major'
  11950. ;;
  11951. aix[4-9]*)
  11952. version_type=linux
  11953. need_lib_prefix=no
  11954. need_version=no
  11955. hardcode_into_libs=yes
  11956. if test "$host_cpu" = ia64; then
  11957. # AIX 5 supports IA64
  11958. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11959. shlibpath_var=LD_LIBRARY_PATH
  11960. else
  11961. # With GCC up to 2.95.x, collect2 would create an import file
  11962. # for dependence libraries. The import file would start with
  11963. # the line `#! .'. This would cause the generated library to
  11964. # depend on `.', always an invalid library. This was fixed in
  11965. # development snapshots of GCC prior to 3.0.
  11966. case $host_os in
  11967. aix4 | aix4.[01] | aix4.[01].*)
  11968. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11969. echo ' yes '
  11970. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  11971. :
  11972. else
  11973. can_build_shared=no
  11974. fi
  11975. ;;
  11976. esac
  11977. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11978. # soname into executable. Probably we can add versioning support to
  11979. # collect2, so additional links can be useful in future.
  11980. if test "$aix_use_runtimelinking" = yes; then
  11981. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11982. # instead of lib<name>.a to let people know that these are not
  11983. # typical AIX shared libraries.
  11984. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11985. else
  11986. # We preserve .a as extension for shared libraries through AIX4.2
  11987. # and later when we are not doing run time linking.
  11988. library_names_spec='${libname}${release}.a $libname.a'
  11989. soname_spec='${libname}${release}${shared_ext}$major'
  11990. fi
  11991. shlibpath_var=LIBPATH
  11992. fi
  11993. ;;
  11994. amigaos*)
  11995. case $host_cpu in
  11996. powerpc)
  11997. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11998. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11999. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12000. ;;
  12001. m68k)
  12002. library_names_spec='$libname.ixlibrary $libname.a'
  12003. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12004. 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'
  12005. ;;
  12006. esac
  12007. ;;
  12008. beos*)
  12009. library_names_spec='${libname}${shared_ext}'
  12010. dynamic_linker="$host_os ld.so"
  12011. shlibpath_var=LIBRARY_PATH
  12012. ;;
  12013. bsdi[45]*)
  12014. version_type=linux
  12015. need_version=no
  12016. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12017. soname_spec='${libname}${release}${shared_ext}$major'
  12018. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12019. shlibpath_var=LD_LIBRARY_PATH
  12020. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12021. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12022. # the default ld.so.conf also contains /usr/contrib/lib and
  12023. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12024. # libtool to hard-code these into programs
  12025. ;;
  12026. cygwin* | mingw* | pw32* | cegcc*)
  12027. version_type=windows
  12028. shrext_cmds=".dll"
  12029. need_version=no
  12030. need_lib_prefix=no
  12031. case $GCC,$cc_basename in
  12032. yes,*)
  12033. # gcc
  12034. library_names_spec='$libname.dll.a'
  12035. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12036. postinstall_cmds='base_file=`basename \${file}`~
  12037. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12038. dldir=$destdir/`dirname \$dlpath`~
  12039. test -d \$dldir || mkdir -p \$dldir~
  12040. $install_prog $dir/$dlname \$dldir/$dlname~
  12041. chmod a+x \$dldir/$dlname~
  12042. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12043. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12044. fi'
  12045. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12046. dlpath=$dir/\$dldll~
  12047. $RM \$dlpath'
  12048. shlibpath_overrides_runpath=yes
  12049. case $host_os in
  12050. cygwin*)
  12051. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12052. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12053. ;;
  12054. mingw* | cegcc*)
  12055. # MinGW DLLs use traditional 'lib' prefix
  12056. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12057. ;;
  12058. pw32*)
  12059. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12060. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12061. ;;
  12062. esac
  12063. dynamic_linker='Win32 ld.exe'
  12064. ;;
  12065. *,cl*)
  12066. # Native MSVC
  12067. libname_spec='$name'
  12068. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12069. library_names_spec='${libname}.dll.lib'
  12070. case $build_os in
  12071. mingw*)
  12072. sys_lib_search_path_spec=
  12073. lt_save_ifs=$IFS
  12074. IFS=';'
  12075. for lt_path in $LIB
  12076. do
  12077. IFS=$lt_save_ifs
  12078. # Let DOS variable expansion print the short 8.3 style file name.
  12079. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12080. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12081. done
  12082. IFS=$lt_save_ifs
  12083. # Convert to MSYS style.
  12084. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12085. ;;
  12086. cygwin*)
  12087. # Convert to unix form, then to dos form, then back to unix form
  12088. # but this time dos style (no spaces!) so that the unix form looks
  12089. # like /cygdrive/c/PROGRA~1:/cygdr...
  12090. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12091. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12092. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12093. ;;
  12094. *)
  12095. sys_lib_search_path_spec="$LIB"
  12096. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12097. # It is most probably a Windows format PATH.
  12098. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12099. else
  12100. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12101. fi
  12102. # FIXME: find the short name or the path components, as spaces are
  12103. # common. (e.g. "Program Files" -> "PROGRA~1")
  12104. ;;
  12105. esac
  12106. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12107. postinstall_cmds='base_file=`basename \${file}`~
  12108. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12109. dldir=$destdir/`dirname \$dlpath`~
  12110. test -d \$dldir || mkdir -p \$dldir~
  12111. $install_prog $dir/$dlname \$dldir/$dlname'
  12112. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12113. dlpath=$dir/\$dldll~
  12114. $RM \$dlpath'
  12115. shlibpath_overrides_runpath=yes
  12116. dynamic_linker='Win32 link.exe'
  12117. ;;
  12118. *)
  12119. # Assume MSVC wrapper
  12120. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12121. dynamic_linker='Win32 ld.exe'
  12122. ;;
  12123. esac
  12124. # FIXME: first we should search . and the directory the executable is in
  12125. shlibpath_var=PATH
  12126. ;;
  12127. darwin* | rhapsody*)
  12128. dynamic_linker="$host_os dyld"
  12129. version_type=darwin
  12130. need_lib_prefix=no
  12131. need_version=no
  12132. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12133. soname_spec='${libname}${release}${major}$shared_ext'
  12134. shlibpath_overrides_runpath=yes
  12135. shlibpath_var=DYLD_LIBRARY_PATH
  12136. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12137. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12138. ;;
  12139. dgux*)
  12140. version_type=linux
  12141. need_lib_prefix=no
  12142. need_version=no
  12143. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12144. soname_spec='${libname}${release}${shared_ext}$major'
  12145. shlibpath_var=LD_LIBRARY_PATH
  12146. ;;
  12147. freebsd1*)
  12148. dynamic_linker=no
  12149. ;;
  12150. freebsd* | dragonfly*)
  12151. # DragonFly does not have aout. When/if they implement a new
  12152. # versioning mechanism, adjust this.
  12153. if test -x /usr/bin/objformat; then
  12154. objformat=`/usr/bin/objformat`
  12155. else
  12156. case $host_os in
  12157. freebsd[123]*) objformat=aout ;;
  12158. *) objformat=elf ;;
  12159. esac
  12160. fi
  12161. version_type=freebsd-$objformat
  12162. case $version_type in
  12163. freebsd-elf*)
  12164. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12165. need_version=no
  12166. need_lib_prefix=no
  12167. ;;
  12168. freebsd-*)
  12169. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12170. need_version=yes
  12171. ;;
  12172. esac
  12173. shlibpath_var=LD_LIBRARY_PATH
  12174. case $host_os in
  12175. freebsd2*)
  12176. shlibpath_overrides_runpath=yes
  12177. ;;
  12178. freebsd3.[01]* | freebsdelf3.[01]*)
  12179. shlibpath_overrides_runpath=yes
  12180. hardcode_into_libs=yes
  12181. ;;
  12182. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12183. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12184. shlibpath_overrides_runpath=no
  12185. hardcode_into_libs=yes
  12186. ;;
  12187. *) # from 4.6 on, and DragonFly
  12188. shlibpath_overrides_runpath=yes
  12189. hardcode_into_libs=yes
  12190. ;;
  12191. esac
  12192. ;;
  12193. gnu*)
  12194. version_type=linux
  12195. need_lib_prefix=no
  12196. need_version=no
  12197. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12198. soname_spec='${libname}${release}${shared_ext}$major'
  12199. shlibpath_var=LD_LIBRARY_PATH
  12200. hardcode_into_libs=yes
  12201. ;;
  12202. haiku*)
  12203. version_type=linux
  12204. need_lib_prefix=no
  12205. need_version=no
  12206. dynamic_linker="$host_os runtime_loader"
  12207. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12208. soname_spec='${libname}${release}${shared_ext}$major'
  12209. shlibpath_var=LIBRARY_PATH
  12210. shlibpath_overrides_runpath=yes
  12211. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12212. hardcode_into_libs=yes
  12213. ;;
  12214. hpux9* | hpux10* | hpux11*)
  12215. # Give a soname corresponding to the major version so that dld.sl refuses to
  12216. # link against other versions.
  12217. version_type=sunos
  12218. need_lib_prefix=no
  12219. need_version=no
  12220. case $host_cpu in
  12221. ia64*)
  12222. shrext_cmds='.so'
  12223. hardcode_into_libs=yes
  12224. dynamic_linker="$host_os dld.so"
  12225. shlibpath_var=LD_LIBRARY_PATH
  12226. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12227. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12228. soname_spec='${libname}${release}${shared_ext}$major'
  12229. if test "X$HPUX_IA64_MODE" = X32; then
  12230. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12231. else
  12232. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12233. fi
  12234. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12235. ;;
  12236. hppa*64*)
  12237. shrext_cmds='.sl'
  12238. hardcode_into_libs=yes
  12239. dynamic_linker="$host_os dld.sl"
  12240. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12241. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12242. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12243. soname_spec='${libname}${release}${shared_ext}$major'
  12244. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12245. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12246. ;;
  12247. *)
  12248. shrext_cmds='.sl'
  12249. dynamic_linker="$host_os dld.sl"
  12250. shlibpath_var=SHLIB_PATH
  12251. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12252. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12253. soname_spec='${libname}${release}${shared_ext}$major'
  12254. ;;
  12255. esac
  12256. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12257. postinstall_cmds='chmod 555 $lib'
  12258. # or fails outright, so override atomically:
  12259. install_override_mode=555
  12260. ;;
  12261. interix[3-9]*)
  12262. version_type=linux
  12263. need_lib_prefix=no
  12264. need_version=no
  12265. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12266. soname_spec='${libname}${release}${shared_ext}$major'
  12267. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12268. shlibpath_var=LD_LIBRARY_PATH
  12269. shlibpath_overrides_runpath=no
  12270. hardcode_into_libs=yes
  12271. ;;
  12272. irix5* | irix6* | nonstopux*)
  12273. case $host_os in
  12274. nonstopux*) version_type=nonstopux ;;
  12275. *)
  12276. if test "$lt_cv_prog_gnu_ld" = yes; then
  12277. version_type=linux
  12278. else
  12279. version_type=irix
  12280. fi ;;
  12281. esac
  12282. need_lib_prefix=no
  12283. need_version=no
  12284. soname_spec='${libname}${release}${shared_ext}$major'
  12285. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12286. case $host_os in
  12287. irix5* | nonstopux*)
  12288. libsuff= shlibsuff=
  12289. ;;
  12290. *)
  12291. case $LD in # libtool.m4 will add one of these switches to LD
  12292. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12293. libsuff= shlibsuff= libmagic=32-bit;;
  12294. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12295. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12296. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12297. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12298. *) libsuff= shlibsuff= libmagic=never-match;;
  12299. esac
  12300. ;;
  12301. esac
  12302. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12303. shlibpath_overrides_runpath=no
  12304. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12305. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12306. hardcode_into_libs=yes
  12307. ;;
  12308. # No shared lib support for Linux oldld, aout, or coff.
  12309. linux*oldld* | linux*aout* | linux*coff*)
  12310. dynamic_linker=no
  12311. ;;
  12312. # This must be Linux ELF.
  12313. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12314. version_type=linux
  12315. need_lib_prefix=no
  12316. need_version=no
  12317. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12318. soname_spec='${libname}${release}${shared_ext}$major'
  12319. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12320. shlibpath_var=LD_LIBRARY_PATH
  12321. shlibpath_overrides_runpath=no
  12322. # Some binutils ld are patched to set DT_RUNPATH
  12323. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  12324. $as_echo_n "(cached) " >&6
  12325. else
  12326. lt_cv_shlibpath_overrides_runpath=no
  12327. save_LDFLAGS=$LDFLAGS
  12328. save_libdir=$libdir
  12329. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12330. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12332. /* end confdefs.h. */
  12333. int
  12334. main ()
  12335. {
  12336. ;
  12337. return 0;
  12338. }
  12339. _ACEOF
  12340. if ac_fn_cxx_try_link "$LINENO"; then :
  12341. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12342. lt_cv_shlibpath_overrides_runpath=yes
  12343. fi
  12344. fi
  12345. rm -f core conftest.err conftest.$ac_objext \
  12346. conftest$ac_exeext conftest.$ac_ext
  12347. LDFLAGS=$save_LDFLAGS
  12348. libdir=$save_libdir
  12349. fi
  12350. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12351. # This implies no fast_install, which is unacceptable.
  12352. # Some rework will be needed to allow for fast_install
  12353. # before this can be enabled.
  12354. hardcode_into_libs=yes
  12355. # Append ld.so.conf contents to the search path
  12356. if test -f /etc/ld.so.conf; then
  12357. 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' ' '`
  12358. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12359. fi
  12360. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12361. # powerpc, because MkLinux only supported shared libraries with the
  12362. # GNU dynamic linker. Since this was broken with cross compilers,
  12363. # most powerpc-linux boxes support dynamic linking these days and
  12364. # people can always --disable-shared, the test was removed, and we
  12365. # assume the GNU/Linux dynamic linker is in use.
  12366. dynamic_linker='GNU/Linux ld.so'
  12367. ;;
  12368. netbsd*)
  12369. version_type=sunos
  12370. need_lib_prefix=no
  12371. need_version=no
  12372. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12373. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12374. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12375. dynamic_linker='NetBSD (a.out) ld.so'
  12376. else
  12377. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12378. soname_spec='${libname}${release}${shared_ext}$major'
  12379. dynamic_linker='NetBSD ld.elf_so'
  12380. fi
  12381. shlibpath_var=LD_LIBRARY_PATH
  12382. shlibpath_overrides_runpath=yes
  12383. hardcode_into_libs=yes
  12384. ;;
  12385. newsos6)
  12386. version_type=linux
  12387. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12388. shlibpath_var=LD_LIBRARY_PATH
  12389. shlibpath_overrides_runpath=yes
  12390. ;;
  12391. *nto* | *qnx*)
  12392. version_type=qnx
  12393. need_lib_prefix=no
  12394. need_version=no
  12395. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12396. soname_spec='${libname}${release}${shared_ext}$major'
  12397. shlibpath_var=LD_LIBRARY_PATH
  12398. shlibpath_overrides_runpath=no
  12399. hardcode_into_libs=yes
  12400. dynamic_linker='ldqnx.so'
  12401. ;;
  12402. openbsd*)
  12403. version_type=sunos
  12404. sys_lib_dlsearch_path_spec="/usr/lib"
  12405. need_lib_prefix=no
  12406. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12407. case $host_os in
  12408. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12409. *) need_version=no ;;
  12410. esac
  12411. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12412. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12413. shlibpath_var=LD_LIBRARY_PATH
  12414. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12415. case $host_os in
  12416. openbsd2.[89] | openbsd2.[89].*)
  12417. shlibpath_overrides_runpath=no
  12418. ;;
  12419. *)
  12420. shlibpath_overrides_runpath=yes
  12421. ;;
  12422. esac
  12423. else
  12424. shlibpath_overrides_runpath=yes
  12425. fi
  12426. ;;
  12427. os2*)
  12428. libname_spec='$name'
  12429. shrext_cmds=".dll"
  12430. need_lib_prefix=no
  12431. library_names_spec='$libname${shared_ext} $libname.a'
  12432. dynamic_linker='OS/2 ld.exe'
  12433. shlibpath_var=LIBPATH
  12434. ;;
  12435. osf3* | osf4* | osf5*)
  12436. version_type=osf
  12437. need_lib_prefix=no
  12438. need_version=no
  12439. soname_spec='${libname}${release}${shared_ext}$major'
  12440. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12441. shlibpath_var=LD_LIBRARY_PATH
  12442. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12443. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12444. ;;
  12445. rdos*)
  12446. dynamic_linker=no
  12447. ;;
  12448. solaris*)
  12449. version_type=linux
  12450. need_lib_prefix=no
  12451. need_version=no
  12452. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12453. soname_spec='${libname}${release}${shared_ext}$major'
  12454. shlibpath_var=LD_LIBRARY_PATH
  12455. shlibpath_overrides_runpath=yes
  12456. hardcode_into_libs=yes
  12457. # ldd complains unless libraries are executable
  12458. postinstall_cmds='chmod +x $lib'
  12459. ;;
  12460. sunos4*)
  12461. version_type=sunos
  12462. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12463. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12464. shlibpath_var=LD_LIBRARY_PATH
  12465. shlibpath_overrides_runpath=yes
  12466. if test "$with_gnu_ld" = yes; then
  12467. need_lib_prefix=no
  12468. fi
  12469. need_version=yes
  12470. ;;
  12471. sysv4 | sysv4.3*)
  12472. version_type=linux
  12473. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12474. soname_spec='${libname}${release}${shared_ext}$major'
  12475. shlibpath_var=LD_LIBRARY_PATH
  12476. case $host_vendor in
  12477. sni)
  12478. shlibpath_overrides_runpath=no
  12479. need_lib_prefix=no
  12480. runpath_var=LD_RUN_PATH
  12481. ;;
  12482. siemens)
  12483. need_lib_prefix=no
  12484. ;;
  12485. motorola)
  12486. need_lib_prefix=no
  12487. need_version=no
  12488. shlibpath_overrides_runpath=no
  12489. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12490. ;;
  12491. esac
  12492. ;;
  12493. sysv4*MP*)
  12494. if test -d /usr/nec ;then
  12495. version_type=linux
  12496. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12497. soname_spec='$libname${shared_ext}.$major'
  12498. shlibpath_var=LD_LIBRARY_PATH
  12499. fi
  12500. ;;
  12501. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12502. version_type=freebsd-elf
  12503. need_lib_prefix=no
  12504. need_version=no
  12505. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12506. soname_spec='${libname}${release}${shared_ext}$major'
  12507. shlibpath_var=LD_LIBRARY_PATH
  12508. shlibpath_overrides_runpath=yes
  12509. hardcode_into_libs=yes
  12510. if test "$with_gnu_ld" = yes; then
  12511. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12512. else
  12513. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12514. case $host_os in
  12515. sco3.2v5*)
  12516. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12517. ;;
  12518. esac
  12519. fi
  12520. sys_lib_dlsearch_path_spec='/usr/lib'
  12521. ;;
  12522. tpf*)
  12523. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12524. version_type=linux
  12525. need_lib_prefix=no
  12526. need_version=no
  12527. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12528. shlibpath_var=LD_LIBRARY_PATH
  12529. shlibpath_overrides_runpath=no
  12530. hardcode_into_libs=yes
  12531. ;;
  12532. uts4*)
  12533. version_type=linux
  12534. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12535. soname_spec='${libname}${release}${shared_ext}$major'
  12536. shlibpath_var=LD_LIBRARY_PATH
  12537. ;;
  12538. *)
  12539. dynamic_linker=no
  12540. ;;
  12541. esac
  12542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12543. $as_echo "$dynamic_linker" >&6; }
  12544. test "$dynamic_linker" = no && can_build_shared=no
  12545. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12546. if test "$GCC" = yes; then
  12547. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12548. fi
  12549. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12550. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12551. fi
  12552. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12553. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12554. fi
  12555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12556. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12557. hardcode_action_CXX=
  12558. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12559. test -n "$runpath_var_CXX" ||
  12560. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12561. # We can hardcode non-existent directories.
  12562. if test "$hardcode_direct_CXX" != no &&
  12563. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12564. # have to relink, otherwise we might link with an installed library
  12565. # when we should be linking with a yet-to-be-installed one
  12566. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12567. test "$hardcode_minus_L_CXX" != no; then
  12568. # Linking always hardcodes the temporary library directory.
  12569. hardcode_action_CXX=relink
  12570. else
  12571. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12572. hardcode_action_CXX=immediate
  12573. fi
  12574. else
  12575. # We cannot hardcode anything, or else we can only hardcode existing
  12576. # directories.
  12577. hardcode_action_CXX=unsupported
  12578. fi
  12579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12580. $as_echo "$hardcode_action_CXX" >&6; }
  12581. if test "$hardcode_action_CXX" = relink ||
  12582. test "$inherit_rpath_CXX" = yes; then
  12583. # Fast installation is not supported
  12584. enable_fast_install=no
  12585. elif test "$shlibpath_overrides_runpath" = yes ||
  12586. test "$enable_shared" = no; then
  12587. # Fast installation is not necessary
  12588. enable_fast_install=needless
  12589. fi
  12590. fi # test -n "$compiler"
  12591. CC=$lt_save_CC
  12592. CFLAGS=$lt_save_CFLAGS
  12593. LDCXX=$LD
  12594. LD=$lt_save_LD
  12595. GCC=$lt_save_GCC
  12596. with_gnu_ld=$lt_save_with_gnu_ld
  12597. lt_cv_path_LDCXX=$lt_cv_path_LD
  12598. lt_cv_path_LD=$lt_save_path_LD
  12599. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12600. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12601. fi # test "$_lt_caught_CXX_error" != yes
  12602. ac_ext=c
  12603. ac_cpp='$CPP $CPPFLAGS'
  12604. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12605. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12606. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12607. ac_config_commands="$ac_config_commands libtool"
  12608. # Only expand once:
  12609. ac_config_headers="$ac_config_headers config.h"
  12610. am__api_version='1.11'
  12611. # Find a good install program. We prefer a C program (faster),
  12612. # so one script is as good as another. But avoid the broken or
  12613. # incompatible versions:
  12614. # SysV /etc/install, /usr/sbin/install
  12615. # SunOS /usr/etc/install
  12616. # IRIX /sbin/install
  12617. # AIX /bin/install
  12618. # AmigaOS /C/install, which installs bootblocks on floppy discs
  12619. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  12620. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  12621. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  12622. # OS/2's system install, which has a completely different semantic
  12623. # ./install, which can be erroneously created by make from ./install.sh.
  12624. # Reject install programs that cannot install multiple files.
  12625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  12626. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  12627. if test -z "$INSTALL"; then
  12628. if ${ac_cv_path_install+:} false; then :
  12629. $as_echo_n "(cached) " >&6
  12630. else
  12631. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12632. for as_dir in $PATH
  12633. do
  12634. IFS=$as_save_IFS
  12635. test -z "$as_dir" && as_dir=.
  12636. # Account for people who put trailing slashes in PATH elements.
  12637. case $as_dir/ in #((
  12638. ./ | .// | /[cC]/* | \
  12639. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  12640. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  12641. /usr/ucb/* ) ;;
  12642. *)
  12643. # OSF1 and SCO ODT 3.0 have their own names for install.
  12644. # Don't use installbsd from OSF since it installs stuff as root
  12645. # by default.
  12646. for ac_prog in ginstall scoinst install; do
  12647. for ac_exec_ext in '' $ac_executable_extensions; do
  12648. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  12649. if test $ac_prog = install &&
  12650. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  12651. # AIX install. It has an incompatible calling convention.
  12652. :
  12653. elif test $ac_prog = install &&
  12654. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  12655. # program-specific install script used by HP pwplus--don't use.
  12656. :
  12657. else
  12658. rm -rf conftest.one conftest.two conftest.dir
  12659. echo one > conftest.one
  12660. echo two > conftest.two
  12661. mkdir conftest.dir
  12662. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  12663. test -s conftest.one && test -s conftest.two &&
  12664. test -s conftest.dir/conftest.one &&
  12665. test -s conftest.dir/conftest.two
  12666. then
  12667. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  12668. break 3
  12669. fi
  12670. fi
  12671. fi
  12672. done
  12673. done
  12674. ;;
  12675. esac
  12676. done
  12677. IFS=$as_save_IFS
  12678. rm -rf conftest.one conftest.two conftest.dir
  12679. fi
  12680. if test "${ac_cv_path_install+set}" = set; then
  12681. INSTALL=$ac_cv_path_install
  12682. else
  12683. # As a last resort, use the slow shell script. Don't cache a
  12684. # value for INSTALL within a source directory, because that will
  12685. # break other packages using the cache if that directory is
  12686. # removed, or if the value is a relative name.
  12687. INSTALL=$ac_install_sh
  12688. fi
  12689. fi
  12690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  12691. $as_echo "$INSTALL" >&6; }
  12692. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  12693. # It thinks the first close brace ends the variable substitution.
  12694. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  12695. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  12696. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  12697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  12698. $as_echo_n "checking whether build environment is sane... " >&6; }
  12699. # Just in case
  12700. sleep 1
  12701. echo timestamp > conftest.file
  12702. # Reject unsafe characters in $srcdir or the absolute working directory
  12703. # name. Accept space and tab only in the latter.
  12704. am_lf='
  12705. '
  12706. case `pwd` in
  12707. *[\\\"\#\$\&\'\`$am_lf]*)
  12708. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  12709. esac
  12710. case $srcdir in
  12711. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  12712. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  12713. esac
  12714. # Do `set' in a subshell so we don't clobber the current shell's
  12715. # arguments. Must try -L first in case configure is actually a
  12716. # symlink; some systems play weird games with the mod time of symlinks
  12717. # (eg FreeBSD returns the mod time of the symlink's containing
  12718. # directory).
  12719. if (
  12720. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  12721. if test "$*" = "X"; then
  12722. # -L didn't work.
  12723. set X `ls -t "$srcdir/configure" conftest.file`
  12724. fi
  12725. rm -f conftest.file
  12726. if test "$*" != "X $srcdir/configure conftest.file" \
  12727. && test "$*" != "X conftest.file $srcdir/configure"; then
  12728. # If neither matched, then we have a broken ls. This can happen
  12729. # if, for instance, CONFIG_SHELL is bash and it inherits a
  12730. # broken ls alias from the environment. This has actually
  12731. # happened. Such a system could not be considered "sane".
  12732. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  12733. alias in your environment" "$LINENO" 5
  12734. fi
  12735. test "$2" = conftest.file
  12736. )
  12737. then
  12738. # Ok.
  12739. :
  12740. else
  12741. as_fn_error $? "newly created file is older than distributed files!
  12742. Check your system clock" "$LINENO" 5
  12743. fi
  12744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12745. $as_echo "yes" >&6; }
  12746. test "$program_prefix" != NONE &&
  12747. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  12748. # Use a double $ so make ignores it.
  12749. test "$program_suffix" != NONE &&
  12750. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  12751. # Double any \ or $.
  12752. # By default was `s,x,x', remove it if useless.
  12753. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  12754. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  12755. # expand $ac_aux_dir to an absolute path
  12756. am_aux_dir=`cd $ac_aux_dir && pwd`
  12757. if test x"${MISSING+set}" != xset; then
  12758. case $am_aux_dir in
  12759. *\ * | *\ *)
  12760. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  12761. *)
  12762. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  12763. esac
  12764. fi
  12765. # Use eval to expand $SHELL
  12766. if eval "$MISSING --run true"; then
  12767. am_missing_run="$MISSING --run "
  12768. else
  12769. am_missing_run=
  12770. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  12771. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  12772. fi
  12773. if test x"${install_sh}" != xset; then
  12774. case $am_aux_dir in
  12775. *\ * | *\ *)
  12776. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  12777. *)
  12778. install_sh="\${SHELL} $am_aux_dir/install-sh"
  12779. esac
  12780. fi
  12781. # Installed binaries are usually stripped using `strip' when the user
  12782. # run `make install-strip'. However `strip' might not be the right
  12783. # tool to use in cross-compilation environments, therefore Automake
  12784. # will honor the `STRIP' environment variable to overrule this program.
  12785. if test "$cross_compiling" != no; then
  12786. if test -n "$ac_tool_prefix"; then
  12787. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  12788. set dummy ${ac_tool_prefix}strip; ac_word=$2
  12789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12790. $as_echo_n "checking for $ac_word... " >&6; }
  12791. if ${ac_cv_prog_STRIP+:} false; then :
  12792. $as_echo_n "(cached) " >&6
  12793. else
  12794. if test -n "$STRIP"; then
  12795. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  12796. else
  12797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12798. for as_dir in $PATH
  12799. do
  12800. IFS=$as_save_IFS
  12801. test -z "$as_dir" && as_dir=.
  12802. for ac_exec_ext in '' $ac_executable_extensions; do
  12803. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12804. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  12805. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12806. break 2
  12807. fi
  12808. done
  12809. done
  12810. IFS=$as_save_IFS
  12811. fi
  12812. fi
  12813. STRIP=$ac_cv_prog_STRIP
  12814. if test -n "$STRIP"; then
  12815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  12816. $as_echo "$STRIP" >&6; }
  12817. else
  12818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12819. $as_echo "no" >&6; }
  12820. fi
  12821. fi
  12822. if test -z "$ac_cv_prog_STRIP"; then
  12823. ac_ct_STRIP=$STRIP
  12824. # Extract the first word of "strip", so it can be a program name with args.
  12825. set dummy strip; ac_word=$2
  12826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12827. $as_echo_n "checking for $ac_word... " >&6; }
  12828. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  12829. $as_echo_n "(cached) " >&6
  12830. else
  12831. if test -n "$ac_ct_STRIP"; then
  12832. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  12833. else
  12834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12835. for as_dir in $PATH
  12836. do
  12837. IFS=$as_save_IFS
  12838. test -z "$as_dir" && as_dir=.
  12839. for ac_exec_ext in '' $ac_executable_extensions; do
  12840. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12841. ac_cv_prog_ac_ct_STRIP="strip"
  12842. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12843. break 2
  12844. fi
  12845. done
  12846. done
  12847. IFS=$as_save_IFS
  12848. fi
  12849. fi
  12850. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  12851. if test -n "$ac_ct_STRIP"; then
  12852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  12853. $as_echo "$ac_ct_STRIP" >&6; }
  12854. else
  12855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12856. $as_echo "no" >&6; }
  12857. fi
  12858. if test "x$ac_ct_STRIP" = x; then
  12859. STRIP=":"
  12860. else
  12861. case $cross_compiling:$ac_tool_warned in
  12862. yes:)
  12863. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12864. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12865. ac_tool_warned=yes ;;
  12866. esac
  12867. STRIP=$ac_ct_STRIP
  12868. fi
  12869. else
  12870. STRIP="$ac_cv_prog_STRIP"
  12871. fi
  12872. fi
  12873. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  12874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  12875. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  12876. if test -z "$MKDIR_P"; then
  12877. if ${ac_cv_path_mkdir+:} false; then :
  12878. $as_echo_n "(cached) " >&6
  12879. else
  12880. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12881. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  12882. do
  12883. IFS=$as_save_IFS
  12884. test -z "$as_dir" && as_dir=.
  12885. for ac_prog in mkdir gmkdir; do
  12886. for ac_exec_ext in '' $ac_executable_extensions; do
  12887. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  12888. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  12889. 'mkdir (GNU coreutils) '* | \
  12890. 'mkdir (coreutils) '* | \
  12891. 'mkdir (fileutils) '4.1*)
  12892. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  12893. break 3;;
  12894. esac
  12895. done
  12896. done
  12897. done
  12898. IFS=$as_save_IFS
  12899. fi
  12900. test -d ./--version && rmdir ./--version
  12901. if test "${ac_cv_path_mkdir+set}" = set; then
  12902. MKDIR_P="$ac_cv_path_mkdir -p"
  12903. else
  12904. # As a last resort, use the slow shell script. Don't cache a
  12905. # value for MKDIR_P within a source directory, because that will
  12906. # break other packages using the cache if that directory is
  12907. # removed, or if the value is a relative name.
  12908. MKDIR_P="$ac_install_sh -d"
  12909. fi
  12910. fi
  12911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  12912. $as_echo "$MKDIR_P" >&6; }
  12913. mkdir_p="$MKDIR_P"
  12914. case $mkdir_p in
  12915. [\\/$]* | ?:[\\/]*) ;;
  12916. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  12917. esac
  12918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  12919. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  12920. set x ${MAKE-make}
  12921. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  12922. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  12923. $as_echo_n "(cached) " >&6
  12924. else
  12925. cat >conftest.make <<\_ACEOF
  12926. SHELL = /bin/sh
  12927. all:
  12928. @echo '@@@%%%=$(MAKE)=@@@%%%'
  12929. _ACEOF
  12930. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  12931. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  12932. *@@@%%%=?*=@@@%%%*)
  12933. eval ac_cv_prog_make_${ac_make}_set=yes;;
  12934. *)
  12935. eval ac_cv_prog_make_${ac_make}_set=no;;
  12936. esac
  12937. rm -f conftest.make
  12938. fi
  12939. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  12940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12941. $as_echo "yes" >&6; }
  12942. SET_MAKE=
  12943. else
  12944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12945. $as_echo "no" >&6; }
  12946. SET_MAKE="MAKE=${MAKE-make}"
  12947. fi
  12948. rm -rf .tst 2>/dev/null
  12949. mkdir .tst 2>/dev/null
  12950. if test -d .tst; then
  12951. am__leading_dot=.
  12952. else
  12953. am__leading_dot=_
  12954. fi
  12955. rmdir .tst 2>/dev/null
  12956. DEPDIR="${am__leading_dot}deps"
  12957. ac_config_commands="$ac_config_commands depfiles"
  12958. am_make=${MAKE-make}
  12959. cat > confinc << 'END'
  12960. am__doit:
  12961. @echo this is the am__doit target
  12962. .PHONY: am__doit
  12963. END
  12964. # If we don't find an include directive, just comment out the code.
  12965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  12966. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  12967. am__include="#"
  12968. am__quote=
  12969. _am_result=none
  12970. # First try GNU make style include.
  12971. echo "include confinc" > confmf
  12972. # Ignore all kinds of additional output from `make'.
  12973. case `$am_make -s -f confmf 2> /dev/null` in #(
  12974. *the\ am__doit\ target*)
  12975. am__include=include
  12976. am__quote=
  12977. _am_result=GNU
  12978. ;;
  12979. esac
  12980. # Now try BSD make style include.
  12981. if test "$am__include" = "#"; then
  12982. echo '.include "confinc"' > confmf
  12983. case `$am_make -s -f confmf 2> /dev/null` in #(
  12984. *the\ am__doit\ target*)
  12985. am__include=.include
  12986. am__quote="\""
  12987. _am_result=BSD
  12988. ;;
  12989. esac
  12990. fi
  12991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  12992. $as_echo "$_am_result" >&6; }
  12993. rm -f confinc confmf
  12994. # Check whether --enable-dependency-tracking was given.
  12995. if test "${enable_dependency_tracking+set}" = set; then :
  12996. enableval=$enable_dependency_tracking;
  12997. fi
  12998. if test "x$enable_dependency_tracking" != xno; then
  12999. am_depcomp="$ac_aux_dir/depcomp"
  13000. AMDEPBACKSLASH='\'
  13001. fi
  13002. if test "x$enable_dependency_tracking" != xno; then
  13003. AMDEP_TRUE=
  13004. AMDEP_FALSE='#'
  13005. else
  13006. AMDEP_TRUE='#'
  13007. AMDEP_FALSE=
  13008. fi
  13009. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  13010. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  13011. # is not polluted with repeated "-I."
  13012. am__isrc=' -I$(srcdir)'
  13013. # test to see if srcdir already configured
  13014. if test -f $srcdir/config.status; then
  13015. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  13016. fi
  13017. fi
  13018. # test whether we have cygpath
  13019. if test -z "$CYGPATH_W"; then
  13020. if (cygpath --version) >/dev/null 2>/dev/null; then
  13021. CYGPATH_W='cygpath -w'
  13022. else
  13023. CYGPATH_W=echo
  13024. fi
  13025. fi
  13026. # Define the identity of the package.
  13027. PACKAGE='klish'
  13028. VERSION='1.5.1'
  13029. cat >>confdefs.h <<_ACEOF
  13030. #define PACKAGE "$PACKAGE"
  13031. _ACEOF
  13032. cat >>confdefs.h <<_ACEOF
  13033. #define VERSION "$VERSION"
  13034. _ACEOF
  13035. # Some tools Automake needs.
  13036. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  13037. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  13038. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  13039. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  13040. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  13041. # We need awk for the "check" target. The system "awk" is bad on
  13042. # some platforms.
  13043. # Always define AMTAR for backward compatibility.
  13044. AMTAR=${AMTAR-"${am_missing_run}tar"}
  13045. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  13046. depcc="$CC" am_compiler_list=
  13047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  13048. $as_echo_n "checking dependency style of $depcc... " >&6; }
  13049. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  13050. $as_echo_n "(cached) " >&6
  13051. else
  13052. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  13053. # We make a subdir and do the tests there. Otherwise we can end up
  13054. # making bogus files that we don't know about and never remove. For
  13055. # instance it was reported that on HP-UX the gcc test will end up
  13056. # making a dummy file named `D' -- because `-MD' means `put the output
  13057. # in D'.
  13058. mkdir conftest.dir
  13059. # Copy depcomp to subdir because otherwise we won't find it if we're
  13060. # using a relative directory.
  13061. cp "$am_depcomp" conftest.dir
  13062. cd conftest.dir
  13063. # We will build objects and dependencies in a subdirectory because
  13064. # it helps to detect inapplicable dependency modes. For instance
  13065. # both Tru64's cc and ICC support -MD to output dependencies as a
  13066. # side effect of compilation, but ICC will put the dependencies in
  13067. # the current directory while Tru64 will put them in the object
  13068. # directory.
  13069. mkdir sub
  13070. am_cv_CC_dependencies_compiler_type=none
  13071. if test "$am_compiler_list" = ""; then
  13072. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  13073. fi
  13074. am__universal=false
  13075. case " $depcc " in #(
  13076. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13077. esac
  13078. for depmode in $am_compiler_list; do
  13079. # Setup a source with many dependencies, because some compilers
  13080. # like to wrap large dependency lists on column 80 (with \), and
  13081. # we should not choose a depcomp mode which is confused by this.
  13082. #
  13083. # We need to recreate these files for each test, as the compiler may
  13084. # overwrite some of them when testing with obscure command lines.
  13085. # This happens at least with the AIX C compiler.
  13086. : > sub/conftest.c
  13087. for i in 1 2 3 4 5 6; do
  13088. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  13089. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  13090. # Solaris 8's {/usr,}/bin/sh.
  13091. touch sub/conftst$i.h
  13092. done
  13093. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13094. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13095. # mode. It turns out that the SunPro C++ compiler does not properly
  13096. # handle `-M -o', and we need to detect this. Also, some Intel
  13097. # versions had trouble with output in subdirs
  13098. am__obj=sub/conftest.${OBJEXT-o}
  13099. am__minus_obj="-o $am__obj"
  13100. case $depmode in
  13101. gcc)
  13102. # This depmode causes a compiler race in universal mode.
  13103. test "$am__universal" = false || continue
  13104. ;;
  13105. nosideeffect)
  13106. # after this tag, mechanisms are not by side-effect, so they'll
  13107. # only be used when explicitly requested
  13108. if test "x$enable_dependency_tracking" = xyes; then
  13109. continue
  13110. else
  13111. break
  13112. fi
  13113. ;;
  13114. msvisualcpp | msvcmsys)
  13115. # This compiler won't grok `-c -o', but also, the minuso test has
  13116. # not run yet. These depmodes are late enough in the game, and
  13117. # so weak that their functioning should not be impacted.
  13118. am__obj=conftest.${OBJEXT-o}
  13119. am__minus_obj=
  13120. ;;
  13121. none) break ;;
  13122. esac
  13123. if depmode=$depmode \
  13124. source=sub/conftest.c object=$am__obj \
  13125. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13126. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13127. >/dev/null 2>conftest.err &&
  13128. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13129. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13130. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13131. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13132. # icc doesn't choke on unknown options, it will just issue warnings
  13133. # or remarks (even with -Werror). So we grep stderr for any message
  13134. # that says an option was ignored or not supported.
  13135. # When given -MP, icc 7.0 and 7.1 complain thusly:
  13136. # icc: Command line warning: ignoring option '-M'; no argument required
  13137. # The diagnosis changed in icc 8.0:
  13138. # icc: Command line remark: option '-MP' not supported
  13139. if (grep 'ignoring option' conftest.err ||
  13140. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  13141. am_cv_CC_dependencies_compiler_type=$depmode
  13142. break
  13143. fi
  13144. fi
  13145. done
  13146. cd ..
  13147. rm -rf conftest.dir
  13148. else
  13149. am_cv_CC_dependencies_compiler_type=none
  13150. fi
  13151. fi
  13152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  13153. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  13154. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  13155. if
  13156. test "x$enable_dependency_tracking" != xno \
  13157. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  13158. am__fastdepCC_TRUE=
  13159. am__fastdepCC_FALSE='#'
  13160. else
  13161. am__fastdepCC_TRUE='#'
  13162. am__fastdepCC_FALSE=
  13163. fi
  13164. depcc="$CXX" am_compiler_list=
  13165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  13166. $as_echo_n "checking dependency style of $depcc... " >&6; }
  13167. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  13168. $as_echo_n "(cached) " >&6
  13169. else
  13170. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  13171. # We make a subdir and do the tests there. Otherwise we can end up
  13172. # making bogus files that we don't know about and never remove. For
  13173. # instance it was reported that on HP-UX the gcc test will end up
  13174. # making a dummy file named `D' -- because `-MD' means `put the output
  13175. # in D'.
  13176. mkdir conftest.dir
  13177. # Copy depcomp to subdir because otherwise we won't find it if we're
  13178. # using a relative directory.
  13179. cp "$am_depcomp" conftest.dir
  13180. cd conftest.dir
  13181. # We will build objects and dependencies in a subdirectory because
  13182. # it helps to detect inapplicable dependency modes. For instance
  13183. # both Tru64's cc and ICC support -MD to output dependencies as a
  13184. # side effect of compilation, but ICC will put the dependencies in
  13185. # the current directory while Tru64 will put them in the object
  13186. # directory.
  13187. mkdir sub
  13188. am_cv_CXX_dependencies_compiler_type=none
  13189. if test "$am_compiler_list" = ""; then
  13190. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  13191. fi
  13192. am__universal=false
  13193. case " $depcc " in #(
  13194. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13195. esac
  13196. for depmode in $am_compiler_list; do
  13197. # Setup a source with many dependencies, because some compilers
  13198. # like to wrap large dependency lists on column 80 (with \), and
  13199. # we should not choose a depcomp mode which is confused by this.
  13200. #
  13201. # We need to recreate these files for each test, as the compiler may
  13202. # overwrite some of them when testing with obscure command lines.
  13203. # This happens at least with the AIX C compiler.
  13204. : > sub/conftest.c
  13205. for i in 1 2 3 4 5 6; do
  13206. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  13207. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  13208. # Solaris 8's {/usr,}/bin/sh.
  13209. touch sub/conftst$i.h
  13210. done
  13211. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13212. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13213. # mode. It turns out that the SunPro C++ compiler does not properly
  13214. # handle `-M -o', and we need to detect this. Also, some Intel
  13215. # versions had trouble with output in subdirs
  13216. am__obj=sub/conftest.${OBJEXT-o}
  13217. am__minus_obj="-o $am__obj"
  13218. case $depmode in
  13219. gcc)
  13220. # This depmode causes a compiler race in universal mode.
  13221. test "$am__universal" = false || continue
  13222. ;;
  13223. nosideeffect)
  13224. # after this tag, mechanisms are not by side-effect, so they'll
  13225. # only be used when explicitly requested
  13226. if test "x$enable_dependency_tracking" = xyes; then
  13227. continue
  13228. else
  13229. break
  13230. fi
  13231. ;;
  13232. msvisualcpp | msvcmsys)
  13233. # This compiler won't grok `-c -o', but also, the minuso test has
  13234. # not run yet. These depmodes are late enough in the game, and
  13235. # so weak that their functioning should not be impacted.
  13236. am__obj=conftest.${OBJEXT-o}
  13237. am__minus_obj=
  13238. ;;
  13239. none) break ;;
  13240. esac
  13241. if depmode=$depmode \
  13242. source=sub/conftest.c object=$am__obj \
  13243. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13244. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13245. >/dev/null 2>conftest.err &&
  13246. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13247. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13248. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13249. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13250. # icc doesn't choke on unknown options, it will just issue warnings
  13251. # or remarks (even with -Werror). So we grep stderr for any message
  13252. # that says an option was ignored or not supported.
  13253. # When given -MP, icc 7.0 and 7.1 complain thusly:
  13254. # icc: Command line warning: ignoring option '-M'; no argument required
  13255. # The diagnosis changed in icc 8.0:
  13256. # icc: Command line remark: option '-MP' not supported
  13257. if (grep 'ignoring option' conftest.err ||
  13258. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  13259. am_cv_CXX_dependencies_compiler_type=$depmode
  13260. break
  13261. fi
  13262. fi
  13263. done
  13264. cd ..
  13265. rm -rf conftest.dir
  13266. else
  13267. am_cv_CXX_dependencies_compiler_type=none
  13268. fi
  13269. fi
  13270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  13271. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  13272. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  13273. if
  13274. test "x$enable_dependency_tracking" != xno \
  13275. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  13276. am__fastdepCXX_TRUE=
  13277. am__fastdepCXX_FALSE='#'
  13278. else
  13279. am__fastdepCXX_TRUE='#'
  13280. am__fastdepCXX_FALSE=
  13281. fi
  13282. if test "x$CC" != xcc; then
  13283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  13284. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  13285. else
  13286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  13287. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  13288. fi
  13289. set dummy $CC; ac_cc=`$as_echo "$2" |
  13290. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  13291. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  13292. $as_echo_n "(cached) " >&6
  13293. else
  13294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13295. /* end confdefs.h. */
  13296. int
  13297. main ()
  13298. {
  13299. ;
  13300. return 0;
  13301. }
  13302. _ACEOF
  13303. # Make sure it works both with $CC and with simple cc.
  13304. # We do the test twice because some compilers refuse to overwrite an
  13305. # existing .o file with -o, though they will create one.
  13306. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  13307. rm -f conftest2.*
  13308. if { { case "(($ac_try" in
  13309. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13310. *) ac_try_echo=$ac_try;;
  13311. esac
  13312. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13313. $as_echo "$ac_try_echo"; } >&5
  13314. (eval "$ac_try") 2>&5
  13315. ac_status=$?
  13316. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13317. test $ac_status = 0; } &&
  13318. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  13319. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13320. *) ac_try_echo=$ac_try;;
  13321. esac
  13322. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13323. $as_echo "$ac_try_echo"; } >&5
  13324. (eval "$ac_try") 2>&5
  13325. ac_status=$?
  13326. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13327. test $ac_status = 0; };
  13328. then
  13329. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  13330. if test "x$CC" != xcc; then
  13331. # Test first that cc exists at all.
  13332. if { ac_try='cc -c conftest.$ac_ext >&5'
  13333. { { case "(($ac_try" in
  13334. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13335. *) ac_try_echo=$ac_try;;
  13336. esac
  13337. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13338. $as_echo "$ac_try_echo"; } >&5
  13339. (eval "$ac_try") 2>&5
  13340. ac_status=$?
  13341. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13342. test $ac_status = 0; }; }; then
  13343. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  13344. rm -f conftest2.*
  13345. if { { case "(($ac_try" in
  13346. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13347. *) ac_try_echo=$ac_try;;
  13348. esac
  13349. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13350. $as_echo "$ac_try_echo"; } >&5
  13351. (eval "$ac_try") 2>&5
  13352. ac_status=$?
  13353. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13354. test $ac_status = 0; } &&
  13355. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  13356. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13357. *) ac_try_echo=$ac_try;;
  13358. esac
  13359. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13360. $as_echo "$ac_try_echo"; } >&5
  13361. (eval "$ac_try") 2>&5
  13362. ac_status=$?
  13363. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13364. test $ac_status = 0; };
  13365. then
  13366. # cc works too.
  13367. :
  13368. else
  13369. # cc exists but doesn't like -o.
  13370. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  13371. fi
  13372. fi
  13373. fi
  13374. else
  13375. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  13376. fi
  13377. rm -f core conftest*
  13378. fi
  13379. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  13380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13381. $as_echo "yes" >&6; }
  13382. else
  13383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13384. $as_echo "no" >&6; }
  13385. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  13386. fi
  13387. # FIXME: we rely on the cache variable name because
  13388. # there is no other way.
  13389. set dummy $CC
  13390. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  13391. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  13392. if test "$am_t" != yes; then
  13393. # Losing compiler, so override with the script.
  13394. # FIXME: It is wrong to rewrite CC.
  13395. # But if we don't then we get into trouble of one sort or another.
  13396. # A longer-term fix would be to have automake use am__CC in this case,
  13397. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  13398. CC="$am_aux_dir/compile $CC"
  13399. fi
  13400. # needed to handle 64-bit architecture
  13401. # The cast to long int works around a bug in the HP C Compiler
  13402. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13403. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13404. # This bug is HP SR number 8606223364.
  13405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  13406. $as_echo_n "checking size of int... " >&6; }
  13407. if ${ac_cv_sizeof_int+:} false; then :
  13408. $as_echo_n "(cached) " >&6
  13409. else
  13410. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  13411. else
  13412. if test "$ac_cv_type_int" = yes; then
  13413. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13414. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13415. as_fn_error 77 "cannot compute sizeof (int)
  13416. See \`config.log' for more details" "$LINENO" 5; }
  13417. else
  13418. ac_cv_sizeof_int=0
  13419. fi
  13420. fi
  13421. fi
  13422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  13423. $as_echo "$ac_cv_sizeof_int" >&6; }
  13424. cat >>confdefs.h <<_ACEOF
  13425. #define SIZEOF_INT $ac_cv_sizeof_int
  13426. _ACEOF
  13427. # The cast to long int works around a bug in the HP C Compiler
  13428. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13429. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13430. # This bug is HP SR number 8606223364.
  13431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  13432. $as_echo_n "checking size of long... " >&6; }
  13433. if ${ac_cv_sizeof_long+:} false; then :
  13434. $as_echo_n "(cached) " >&6
  13435. else
  13436. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  13437. else
  13438. if test "$ac_cv_type_long" = yes; then
  13439. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13440. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13441. as_fn_error 77 "cannot compute sizeof (long)
  13442. See \`config.log' for more details" "$LINENO" 5; }
  13443. else
  13444. ac_cv_sizeof_long=0
  13445. fi
  13446. fi
  13447. fi
  13448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  13449. $as_echo "$ac_cv_sizeof_long" >&6; }
  13450. cat >>confdefs.h <<_ACEOF
  13451. #define SIZEOF_LONG $ac_cv_sizeof_long
  13452. _ACEOF
  13453. # The cast to long int works around a bug in the HP C Compiler
  13454. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13455. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13456. # This bug is HP SR number 8606223364.
  13457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  13458. $as_echo_n "checking size of size_t... " >&6; }
  13459. if ${ac_cv_sizeof_size_t+:} false; then :
  13460. $as_echo_n "(cached) " >&6
  13461. else
  13462. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
  13463. else
  13464. if test "$ac_cv_type_size_t" = yes; then
  13465. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13466. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13467. as_fn_error 77 "cannot compute sizeof (size_t)
  13468. See \`config.log' for more details" "$LINENO" 5; }
  13469. else
  13470. ac_cv_sizeof_size_t=0
  13471. fi
  13472. fi
  13473. fi
  13474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  13475. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  13476. cat >>confdefs.h <<_ACEOF
  13477. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  13478. _ACEOF
  13479. #------------------------------------------------------------------------
  13480. # Handle the --prefix=... option
  13481. #------------------------------------------------------------------------
  13482. if test "${prefix}" = "NONE"; then
  13483. prefix=/usr/local
  13484. fi
  13485. if test "${exec_prefix}" = "NONE"; then
  13486. exec_prefix=$prefix
  13487. fi
  13488. # libdir must be a fully qualified path (not ${exec_prefix}/lib)
  13489. eval libdir="$libdir"
  13490. ################################
  13491. # Deal with debugging options
  13492. ################################
  13493. # Check whether --enable-debug was given.
  13494. if test "${enable_debug+set}" = set; then :
  13495. enableval=$enable_debug;
  13496. else
  13497. enable_debug=no
  13498. fi
  13499. if test x$enable_debug = xyes; then
  13500. DEBUG_TRUE=
  13501. DEBUG_FALSE='#'
  13502. else
  13503. DEBUG_TRUE='#'
  13504. DEBUG_FALSE=
  13505. fi
  13506. ################################
  13507. # Check for the LUB library
  13508. ################################
  13509. LUB_LIBS="-llub"
  13510. LUB_CFLAGS=""
  13511. if test "x$LUB_LIBS" = "x"; then
  13512. as_fn_error $? "Cannot find the \"Little Useful Bits\" library" "$LINENO" 5
  13513. fi
  13514. ################################
  13515. # Check for the KONF library
  13516. ################################
  13517. KONF_LIBS="-lkonf"
  13518. KONF_CFLAGS=""
  13519. if test "x$KONF_LIBS" = "x"; then
  13520. as_fn_error $? "Cannot find the \"CLI config\" library" "$LINENO" 5
  13521. fi
  13522. ################################
  13523. # Check for the TINYRL library
  13524. ################################
  13525. TINYRL_LIBS="-ltinyrl"
  13526. TINYRL_CFLAGS=""
  13527. if test "x$TINYRL_LIBS" = "x"; then
  13528. as_fn_error $? "Cannot find the \"Tiny Readline\" library" "$LINENO" 5
  13529. fi
  13530. ################################
  13531. # Check for the TINYXML library
  13532. ################################
  13533. TINYXML_LIBS="-ltinyxml"
  13534. TINYXML_CXXFLAGS="-std=gnu++98"
  13535. if test "x$TINYXML_LIBS" = "x"; then
  13536. as_fn_error $? "Cannot find the \"Tiny XML\" library" "$LINENO" 5
  13537. fi
  13538. ################################
  13539. # Check for the PTHREAD library
  13540. ################################
  13541. # Check whether --with-pthread was given.
  13542. if test "${with_pthread+set}" = set; then :
  13543. withval=$with_pthread;
  13544. fi
  13545. for ac_header in pthread.h
  13546. do :
  13547. ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  13548. if test "x$ac_cv_header_pthread_h" = xyes; then :
  13549. cat >>confdefs.h <<_ACEOF
  13550. #define HAVE_PTHREAD_H 1
  13551. _ACEOF
  13552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  13553. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  13554. if ${ac_cv_lib_pthread_pthread_create+:} false; then :
  13555. $as_echo_n "(cached) " >&6
  13556. else
  13557. ac_check_lib_save_LIBS=$LIBS
  13558. LIBS="-lpthread $LIBS"
  13559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13560. /* end confdefs.h. */
  13561. /* Override any GCC internal prototype to avoid an error.
  13562. Use char because int might match the return type of a GCC
  13563. builtin and then its argument prototype would still apply. */
  13564. #ifdef __cplusplus
  13565. extern "C"
  13566. #endif
  13567. char pthread_create ();
  13568. int
  13569. main ()
  13570. {
  13571. return pthread_create ();
  13572. ;
  13573. return 0;
  13574. }
  13575. _ACEOF
  13576. if ac_fn_c_try_link "$LINENO"; then :
  13577. ac_cv_lib_pthread_pthread_create=yes
  13578. else
  13579. ac_cv_lib_pthread_pthread_create=no
  13580. fi
  13581. rm -f core conftest.err conftest.$ac_objext \
  13582. conftest$ac_exeext conftest.$ac_ext
  13583. LIBS=$ac_check_lib_save_LIBS
  13584. fi
  13585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  13586. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  13587. if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
  13588. $as_echo "#define HAVE_LIBPTHREAD /**/" >>confdefs.h
  13589. if test "x$with_pthread" = "x"; then
  13590. PTHREAD_LIBS="-lpthread"
  13591. else
  13592. PTHREAD_CFLAGS="-I$with_pthread/include"
  13593. PTHREAD_LIBS="-L$with_pthread/lib -lpthread"
  13594. fi
  13595. fi
  13596. fi
  13597. done
  13598. if test "x$PTHREAD_LIBS" = "x"; then
  13599. as_fn_error $? "Cannot find the POSIX threads library" "$LINENO" 5
  13600. fi
  13601. ################################
  13602. # Check for the RT library
  13603. ################################
  13604. # Check whether --with-rt was given.
  13605. if test "${with_rt+set}" = set; then :
  13606. withval=$with_rt;
  13607. fi
  13608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  13609. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  13610. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  13611. $as_echo_n "(cached) " >&6
  13612. else
  13613. ac_check_lib_save_LIBS=$LIBS
  13614. LIBS="-lrt $LIBS"
  13615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13616. /* end confdefs.h. */
  13617. /* Override any GCC internal prototype to avoid an error.
  13618. Use char because int might match the return type of a GCC
  13619. builtin and then its argument prototype would still apply. */
  13620. #ifdef __cplusplus
  13621. extern "C"
  13622. #endif
  13623. char clock_gettime ();
  13624. int
  13625. main ()
  13626. {
  13627. return clock_gettime ();
  13628. ;
  13629. return 0;
  13630. }
  13631. _ACEOF
  13632. if ac_fn_c_try_link "$LINENO"; then :
  13633. ac_cv_lib_rt_clock_gettime=yes
  13634. else
  13635. ac_cv_lib_rt_clock_gettime=no
  13636. fi
  13637. rm -f core conftest.err conftest.$ac_objext \
  13638. conftest$ac_exeext conftest.$ac_ext
  13639. LIBS=$ac_check_lib_save_LIBS
  13640. fi
  13641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  13642. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  13643. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  13644. $as_echo "#define HAVE_LIBRT /**/" >>confdefs.h
  13645. if test "x$with_rt" = "x"; then
  13646. RT_LIBS="-lrt"
  13647. else
  13648. RT_CFLAGS="-I$with_rt/include"
  13649. RT_LIBS="-L$with_rt/lib -lrt"
  13650. fi
  13651. fi
  13652. ################################
  13653. # Check for the TCL library
  13654. ################################
  13655. TCL_CONFIG=${libdir}/tclConfig.sh
  13656. # Check whether --with-tcl was given.
  13657. if test "${with_tcl+set}" = set; then :
  13658. withval=$with_tcl; if test -e $TCL_CONFIG; then
  13659. source ${TCL_CONFIG} # get TCL_VERSION
  13660. if test "${with_tcl}" = "yes"; then
  13661. TCL_CFLAGS="${TCL_INCLUDE_SPEC}"
  13662. TCL_LIBS="${TCL_LIB_SPEC}"
  13663. else
  13664. TCL_CFLAGS="-I${with_tcl}/include"
  13665. TCL_LIBS="-L${with_tcl}/lib -ltcl"
  13666. fi
  13667. CPPFLAGS="$CPPFLAGS $TCL_CFLAGS"
  13668. for ac_header in tcl.h
  13669. do :
  13670. ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
  13671. if test "x$ac_cv_header_tcl_h" = xyes; then :
  13672. cat >>confdefs.h <<_ACEOF
  13673. #define HAVE_TCL_H 1
  13674. _ACEOF
  13675. as_ac_Lib=`$as_echo "ac_cv_lib_tcl${TCL_VERSION}''_Tcl_CreateInterp" | $as_tr_sh`
  13676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_CreateInterp in -ltcl${TCL_VERSION}" >&5
  13677. $as_echo_n "checking for Tcl_CreateInterp in -ltcl${TCL_VERSION}... " >&6; }
  13678. if eval \${$as_ac_Lib+:} false; then :
  13679. $as_echo_n "(cached) " >&6
  13680. else
  13681. ac_check_lib_save_LIBS=$LIBS
  13682. LIBS="-ltcl${TCL_VERSION} $LIBS"
  13683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13684. /* end confdefs.h. */
  13685. /* Override any GCC internal prototype to avoid an error.
  13686. Use char because int might match the return type of a GCC
  13687. builtin and then its argument prototype would still apply. */
  13688. #ifdef __cplusplus
  13689. extern "C"
  13690. #endif
  13691. char Tcl_CreateInterp ();
  13692. int
  13693. main ()
  13694. {
  13695. return Tcl_CreateInterp ();
  13696. ;
  13697. return 0;
  13698. }
  13699. _ACEOF
  13700. if ac_fn_c_try_link "$LINENO"; then :
  13701. eval "$as_ac_Lib=yes"
  13702. else
  13703. eval "$as_ac_Lib=no"
  13704. fi
  13705. rm -f core conftest.err conftest.$ac_objext \
  13706. conftest$ac_exeext conftest.$ac_ext
  13707. LIBS=$ac_check_lib_save_LIBS
  13708. fi
  13709. eval ac_res=\$$as_ac_Lib
  13710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13711. $as_echo "$ac_res" >&6; }
  13712. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13713. $as_echo "#define HAVE_LIBTCL /**/" >>confdefs.h
  13714. have_tcl="yes"
  13715. fi
  13716. fi
  13717. done
  13718. fi
  13719. fi
  13720. if test "x${have_tcl}" = "xyes"; then
  13721. TCL_TRUE=
  13722. TCL_FALSE='#'
  13723. else
  13724. TCL_TRUE='#'
  13725. TCL_FALSE=
  13726. fi
  13727. ################################
  13728. # Check for inclusion of lub_heap
  13729. ################################
  13730. # Check whether --enable-lubheap was given.
  13731. if test "${enable_lubheap+set}" = set; then :
  13732. enableval=$enable_lubheap;
  13733. else
  13734. enable_lubheap=no
  13735. fi
  13736. if test "x$enable_lubheap" = "xyes"; then
  13737. LUBHEAP_TRUE=
  13738. LUBHEAP_FALSE='#'
  13739. else
  13740. LUBHEAP_TRUE='#'
  13741. LUBHEAP_FALSE=
  13742. fi
  13743. if test "x$enable_lubheap" = "xyes"; then
  13744. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing standard memory libraries with lubheap" >&5
  13745. $as_echo "$as_me: WARNING: Replacing standard memory libraries with lubheap" >&2;}
  13746. LUBHEAP_LIBS="-llubheap"
  13747. LUBHEAP_CFLAGS=""
  13748. if test "x$LUBHEAP_LIBS" = "x"; then
  13749. as_fn_error $? "Cannot find the \"Little Useful Bits Heap\" library" "$LINENO" 5
  13750. fi
  13751. fi
  13752. ################################
  13753. # Check for linkage with GPL libraries
  13754. ################################
  13755. # Check whether --enable-gpl was given.
  13756. if test "${enable_gpl+set}" = set; then :
  13757. enableval=$enable_gpl;
  13758. else
  13759. enable_gpl=yes
  13760. fi
  13761. if test "x$enable_gpl" = "xyes"; then
  13762. ################################
  13763. # Check for BFD library
  13764. ################################
  13765. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Linking with GPL licence libraries" >&5
  13766. $as_echo "$as_me: WARNING: Linking with GPL licence libraries" >&2;}
  13767. for ac_header in bfd.h
  13768. do :
  13769. ac_fn_c_check_header_mongrel "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
  13770. if test "x$ac_cv_header_bfd_h" = xyes; then :
  13771. cat >>confdefs.h <<_ACEOF
  13772. #define HAVE_BFD_H 1
  13773. _ACEOF
  13774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bfd_init in -lbfd" >&5
  13775. $as_echo_n "checking for bfd_init in -lbfd... " >&6; }
  13776. if ${ac_cv_lib_bfd_bfd_init+:} false; then :
  13777. $as_echo_n "(cached) " >&6
  13778. else
  13779. ac_check_lib_save_LIBS=$LIBS
  13780. LIBS="-lbfd $LIBS"
  13781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13782. /* end confdefs.h. */
  13783. /* Override any GCC internal prototype to avoid an error.
  13784. Use char because int might match the return type of a GCC
  13785. builtin and then its argument prototype would still apply. */
  13786. #ifdef __cplusplus
  13787. extern "C"
  13788. #endif
  13789. char bfd_init ();
  13790. int
  13791. main ()
  13792. {
  13793. return bfd_init ();
  13794. ;
  13795. return 0;
  13796. }
  13797. _ACEOF
  13798. if ac_fn_c_try_link "$LINENO"; then :
  13799. ac_cv_lib_bfd_bfd_init=yes
  13800. else
  13801. ac_cv_lib_bfd_bfd_init=no
  13802. fi
  13803. rm -f core conftest.err conftest.$ac_objext \
  13804. conftest$ac_exeext conftest.$ac_ext
  13805. LIBS=$ac_check_lib_save_LIBS
  13806. fi
  13807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfd_bfd_init" >&5
  13808. $as_echo "$ac_cv_lib_bfd_bfd_init" >&6; }
  13809. if test "x$ac_cv_lib_bfd_bfd_init" = xyes; then :
  13810. $as_echo "#define HAVE_LIBBFD /**/" >>confdefs.h
  13811. BFD_LIBS="-lbfd -liberty"
  13812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libintl_dgettext in -lintl" >&5
  13813. $as_echo_n "checking for libintl_dgettext in -lintl... " >&6; }
  13814. if ${ac_cv_lib_intl_libintl_dgettext+:} false; then :
  13815. $as_echo_n "(cached) " >&6
  13816. else
  13817. ac_check_lib_save_LIBS=$LIBS
  13818. LIBS="-lintl $LIBS"
  13819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13820. /* end confdefs.h. */
  13821. /* Override any GCC internal prototype to avoid an error.
  13822. Use char because int might match the return type of a GCC
  13823. builtin and then its argument prototype would still apply. */
  13824. #ifdef __cplusplus
  13825. extern "C"
  13826. #endif
  13827. char libintl_dgettext ();
  13828. int
  13829. main ()
  13830. {
  13831. return libintl_dgettext ();
  13832. ;
  13833. return 0;
  13834. }
  13835. _ACEOF
  13836. if ac_fn_c_try_link "$LINENO"; then :
  13837. ac_cv_lib_intl_libintl_dgettext=yes
  13838. else
  13839. ac_cv_lib_intl_libintl_dgettext=no
  13840. fi
  13841. rm -f core conftest.err conftest.$ac_objext \
  13842. conftest$ac_exeext conftest.$ac_ext
  13843. LIBS=$ac_check_lib_save_LIBS
  13844. fi
  13845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_libintl_dgettext" >&5
  13846. $as_echo "$ac_cv_lib_intl_libintl_dgettext" >&6; }
  13847. if test "x$ac_cv_lib_intl_libintl_dgettext" = xyes; then :
  13848. $as_echo "#define HAVE_LIBINTL /**/" >>confdefs.h
  13849. BFD_LIBS="$BFD_LIBS -lintl"
  13850. fi
  13851. fi
  13852. fi
  13853. done
  13854. else
  13855. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Skipping BFD library checks because of GPL Licence" >&5
  13856. $as_echo "$as_me: WARNING: Skipping BFD library checks because of GPL Licence" >&2;}
  13857. fi
  13858. ################################
  13859. # Check for regex.h
  13860. ################################
  13861. for ac_header in regex.h
  13862. do :
  13863. ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
  13864. if test "x$ac_cv_header_regex_h" = xyes; then :
  13865. cat >>confdefs.h <<_ACEOF
  13866. #define HAVE_REGEX_H 1
  13867. _ACEOF
  13868. else
  13869. as_fn_error $? "regex.h not found: regular expressions are not supported" "$LINENO" 5
  13870. fi
  13871. done
  13872. ################################
  13873. # Check for getopt_long()
  13874. ################################
  13875. for ac_header in getopt.h
  13876. do :
  13877. ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
  13878. if test "x$ac_cv_header_getopt_h" = xyes; then :
  13879. cat >>confdefs.h <<_ACEOF
  13880. #define HAVE_GETOPT_H 1
  13881. _ACEOF
  13882. else
  13883. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: getopt.h not found: only short parameters can be used on command line" >&5
  13884. $as_echo "$as_me: WARNING: getopt.h not found: only short parameters can be used on command line" >&2;}
  13885. fi
  13886. done
  13887. ################################
  13888. # Check for locale.h
  13889. ################################
  13890. for ac_header in locale.h
  13891. do :
  13892. ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
  13893. if test "x$ac_cv_header_locale_h" = xyes; then :
  13894. cat >>confdefs.h <<_ACEOF
  13895. #define HAVE_LOCALE_H 1
  13896. _ACEOF
  13897. else
  13898. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: locale.h not found: the locales is not supported" >&5
  13899. $as_echo "$as_me: WARNING: locale.h not found: the locales is not supported" >&2;}
  13900. fi
  13901. done
  13902. ################################
  13903. # Check for CODESET within nl_langinfo
  13904. ################################
  13905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  13906. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  13907. if ${am_cv_langinfo_codeset+:} false; then :
  13908. $as_echo_n "(cached) " >&6
  13909. else
  13910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13911. /* end confdefs.h. */
  13912. #include <langinfo.h>
  13913. int
  13914. main ()
  13915. {
  13916. char* cs = nl_langinfo(CODESET); return !cs;
  13917. ;
  13918. return 0;
  13919. }
  13920. _ACEOF
  13921. if ac_fn_c_try_link "$LINENO"; then :
  13922. am_cv_langinfo_codeset=yes
  13923. else
  13924. am_cv_langinfo_codeset=no
  13925. fi
  13926. rm -f core conftest.err conftest.$ac_objext \
  13927. conftest$ac_exeext conftest.$ac_ext
  13928. fi
  13929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  13930. $as_echo "$am_cv_langinfo_codeset" >&6; }
  13931. if test $am_cv_langinfo_codeset = yes; then
  13932. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  13933. fi
  13934. ################################
  13935. # Check for pwd.h and grp.h
  13936. ################################
  13937. for ac_header in pwd.h
  13938. do :
  13939. ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
  13940. if test "x$ac_cv_header_pwd_h" = xyes; then :
  13941. cat >>confdefs.h <<_ACEOF
  13942. #define HAVE_PWD_H 1
  13943. _ACEOF
  13944. else
  13945. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pwd.h not found: the pwd operations is not supported" >&5
  13946. $as_echo "$as_me: WARNING: pwd.h not found: the pwd operations is not supported" >&2;}
  13947. fi
  13948. done
  13949. for ac_header in grp.h
  13950. do :
  13951. ac_fn_c_check_header_mongrel "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
  13952. if test "x$ac_cv_header_grp_h" = xyes; then :
  13953. cat >>confdefs.h <<_ACEOF
  13954. #define HAVE_GRP_H 1
  13955. _ACEOF
  13956. else
  13957. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: grp.h not found: the grp operations is not supported" >&5
  13958. $as_echo "$as_me: WARNING: grp.h not found: the grp operations is not supported" >&2;}
  13959. fi
  13960. done
  13961. ################################
  13962. # Check for chroot
  13963. ################################
  13964. for ac_func in chroot
  13965. do :
  13966. ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
  13967. if test "x$ac_cv_func_chroot" = xyes; then :
  13968. cat >>confdefs.h <<_ACEOF
  13969. #define HAVE_CHROOT 1
  13970. _ACEOF
  13971. else
  13972. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: chroot() not found: the choot is not supported" >&5
  13973. $as_echo "$as_me: WARNING: chroot() not found: the choot is not supported" >&2;}
  13974. fi
  13975. done
  13976. ac_config_files="$ac_config_files Makefile"
  13977. cat >confcache <<\_ACEOF
  13978. # This file is a shell script that caches the results of configure
  13979. # tests run on this system so they can be shared between configure
  13980. # scripts and configure runs, see configure's option --config-cache.
  13981. # It is not useful on other systems. If it contains results you don't
  13982. # want to keep, you may remove or edit it.
  13983. #
  13984. # config.status only pays attention to the cache file if you give it
  13985. # the --recheck option to rerun configure.
  13986. #
  13987. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13988. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13989. # following values.
  13990. _ACEOF
  13991. # The following way of writing the cache mishandles newlines in values,
  13992. # but we know of no workaround that is simple, portable, and efficient.
  13993. # So, we kill variables containing newlines.
  13994. # Ultrix sh set writes to stderr and can't be redirected directly,
  13995. # and sets the high bit in the cache file unless we assign to the vars.
  13996. (
  13997. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13998. eval ac_val=\$$ac_var
  13999. case $ac_val in #(
  14000. *${as_nl}*)
  14001. case $ac_var in #(
  14002. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14003. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14004. esac
  14005. case $ac_var in #(
  14006. _ | IFS | as_nl) ;; #(
  14007. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14008. *) { eval $ac_var=; unset $ac_var;} ;;
  14009. esac ;;
  14010. esac
  14011. done
  14012. (set) 2>&1 |
  14013. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14014. *${as_nl}ac_space=\ *)
  14015. # `set' does not quote correctly, so add quotes: double-quote
  14016. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14017. sed -n \
  14018. "s/'/'\\\\''/g;
  14019. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14020. ;; #(
  14021. *)
  14022. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14023. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14024. ;;
  14025. esac |
  14026. sort
  14027. ) |
  14028. sed '
  14029. /^ac_cv_env_/b end
  14030. t clear
  14031. :clear
  14032. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14033. t end
  14034. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14035. :end' >>confcache
  14036. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14037. if test -w "$cache_file"; then
  14038. if test "x$cache_file" != "x/dev/null"; then
  14039. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14040. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14041. if test ! -f "$cache_file" || test -h "$cache_file"; then
  14042. cat confcache >"$cache_file"
  14043. else
  14044. case $cache_file in #(
  14045. */* | ?:*)
  14046. mv -f confcache "$cache_file"$$ &&
  14047. mv -f "$cache_file"$$ "$cache_file" ;; #(
  14048. *)
  14049. mv -f confcache "$cache_file" ;;
  14050. esac
  14051. fi
  14052. fi
  14053. else
  14054. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14055. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14056. fi
  14057. fi
  14058. rm -f confcache
  14059. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14060. # Let make expand exec_prefix.
  14061. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14062. DEFS=-DHAVE_CONFIG_H
  14063. ac_libobjs=
  14064. ac_ltlibobjs=
  14065. U=
  14066. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14067. # 1. Remove the extension, and $U if already installed.
  14068. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14069. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14070. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14071. # will be set to the directory where LIBOBJS objects are built.
  14072. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14073. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14074. done
  14075. LIBOBJS=$ac_libobjs
  14076. LTLIBOBJS=$ac_ltlibobjs
  14077. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14078. as_fn_error $? "conditional \"AMDEP\" was never defined.
  14079. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14080. fi
  14081. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14082. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14083. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14084. fi
  14085. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14086. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  14087. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14088. fi
  14089. if test -n "$EXEEXT"; then
  14090. am__EXEEXT_TRUE=
  14091. am__EXEEXT_FALSE='#'
  14092. else
  14093. am__EXEEXT_TRUE='#'
  14094. am__EXEEXT_FALSE=
  14095. fi
  14096. if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
  14097. as_fn_error $? "conditional \"DEBUG\" was never defined.
  14098. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14099. fi
  14100. if test -z "${TCL_TRUE}" && test -z "${TCL_FALSE}"; then
  14101. as_fn_error $? "conditional \"TCL\" was never defined.
  14102. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14103. fi
  14104. if test -z "${LUBHEAP_TRUE}" && test -z "${LUBHEAP_FALSE}"; then
  14105. as_fn_error $? "conditional \"LUBHEAP\" was never defined.
  14106. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14107. fi
  14108. : "${CONFIG_STATUS=./config.status}"
  14109. ac_write_fail=0
  14110. ac_clean_files_save=$ac_clean_files
  14111. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14112. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14113. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14114. as_write_fail=0
  14115. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14116. #! $SHELL
  14117. # Generated by $as_me.
  14118. # Run this file to recreate the current configuration.
  14119. # Compiler output produced by configure, useful for debugging
  14120. # configure, is in config.log if it exists.
  14121. debug=false
  14122. ac_cs_recheck=false
  14123. ac_cs_silent=false
  14124. SHELL=\${CONFIG_SHELL-$SHELL}
  14125. export SHELL
  14126. _ASEOF
  14127. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14128. ## -------------------- ##
  14129. ## M4sh Initialization. ##
  14130. ## -------------------- ##
  14131. # Be more Bourne compatible
  14132. DUALCASE=1; export DUALCASE # for MKS sh
  14133. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14134. emulate sh
  14135. NULLCMD=:
  14136. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14137. # is contrary to our usage. Disable this feature.
  14138. alias -g '${1+"$@"}'='"$@"'
  14139. setopt NO_GLOB_SUBST
  14140. else
  14141. case `(set -o) 2>/dev/null` in #(
  14142. *posix*) :
  14143. set -o posix ;; #(
  14144. *) :
  14145. ;;
  14146. esac
  14147. fi
  14148. as_nl='
  14149. '
  14150. export as_nl
  14151. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14152. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14153. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14154. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14155. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14156. # but without wasting forks for bash or zsh.
  14157. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14158. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14159. as_echo='print -r --'
  14160. as_echo_n='print -rn --'
  14161. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14162. as_echo='printf %s\n'
  14163. as_echo_n='printf %s'
  14164. else
  14165. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14166. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14167. as_echo_n='/usr/ucb/echo -n'
  14168. else
  14169. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14170. as_echo_n_body='eval
  14171. arg=$1;
  14172. case $arg in #(
  14173. *"$as_nl"*)
  14174. expr "X$arg" : "X\\(.*\\)$as_nl";
  14175. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14176. esac;
  14177. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14178. '
  14179. export as_echo_n_body
  14180. as_echo_n='sh -c $as_echo_n_body as_echo'
  14181. fi
  14182. export as_echo_body
  14183. as_echo='sh -c $as_echo_body as_echo'
  14184. fi
  14185. # The user is always right.
  14186. if test "${PATH_SEPARATOR+set}" != set; then
  14187. PATH_SEPARATOR=:
  14188. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14189. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14190. PATH_SEPARATOR=';'
  14191. }
  14192. fi
  14193. # IFS
  14194. # We need space, tab and new line, in precisely that order. Quoting is
  14195. # there to prevent editors from complaining about space-tab.
  14196. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14197. # splitting by setting IFS to empty value.)
  14198. IFS=" "" $as_nl"
  14199. # Find who we are. Look in the path if we contain no directory separator.
  14200. as_myself=
  14201. case $0 in #((
  14202. *[\\/]* ) as_myself=$0 ;;
  14203. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14204. for as_dir in $PATH
  14205. do
  14206. IFS=$as_save_IFS
  14207. test -z "$as_dir" && as_dir=.
  14208. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14209. done
  14210. IFS=$as_save_IFS
  14211. ;;
  14212. esac
  14213. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14214. # in which case we are not to be found in the path.
  14215. if test "x$as_myself" = x; then
  14216. as_myself=$0
  14217. fi
  14218. if test ! -f "$as_myself"; then
  14219. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14220. exit 1
  14221. fi
  14222. # Unset variables that we do not need and which cause bugs (e.g. in
  14223. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14224. # suppresses any "Segmentation fault" message there. '((' could
  14225. # trigger a bug in pdksh 5.2.14.
  14226. for as_var in BASH_ENV ENV MAIL MAILPATH
  14227. do eval test x\${$as_var+set} = xset \
  14228. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14229. done
  14230. PS1='$ '
  14231. PS2='> '
  14232. PS4='+ '
  14233. # NLS nuisances.
  14234. LC_ALL=C
  14235. export LC_ALL
  14236. LANGUAGE=C
  14237. export LANGUAGE
  14238. # CDPATH.
  14239. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14240. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14241. # ----------------------------------------
  14242. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14243. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14244. # script with STATUS, using 1 if that was 0.
  14245. as_fn_error ()
  14246. {
  14247. as_status=$1; test $as_status -eq 0 && as_status=1
  14248. if test "$4"; then
  14249. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14250. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14251. fi
  14252. $as_echo "$as_me: error: $2" >&2
  14253. as_fn_exit $as_status
  14254. } # as_fn_error
  14255. # as_fn_set_status STATUS
  14256. # -----------------------
  14257. # Set $? to STATUS, without forking.
  14258. as_fn_set_status ()
  14259. {
  14260. return $1
  14261. } # as_fn_set_status
  14262. # as_fn_exit STATUS
  14263. # -----------------
  14264. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14265. as_fn_exit ()
  14266. {
  14267. set +e
  14268. as_fn_set_status $1
  14269. exit $1
  14270. } # as_fn_exit
  14271. # as_fn_unset VAR
  14272. # ---------------
  14273. # Portably unset VAR.
  14274. as_fn_unset ()
  14275. {
  14276. { eval $1=; unset $1;}
  14277. }
  14278. as_unset=as_fn_unset
  14279. # as_fn_append VAR VALUE
  14280. # ----------------------
  14281. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14282. # advantage of any shell optimizations that allow amortized linear growth over
  14283. # repeated appends, instead of the typical quadratic growth present in naive
  14284. # implementations.
  14285. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14286. eval 'as_fn_append ()
  14287. {
  14288. eval $1+=\$2
  14289. }'
  14290. else
  14291. as_fn_append ()
  14292. {
  14293. eval $1=\$$1\$2
  14294. }
  14295. fi # as_fn_append
  14296. # as_fn_arith ARG...
  14297. # ------------------
  14298. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14299. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14300. # must be portable across $(()) and expr.
  14301. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14302. eval 'as_fn_arith ()
  14303. {
  14304. as_val=$(( $* ))
  14305. }'
  14306. else
  14307. as_fn_arith ()
  14308. {
  14309. as_val=`expr "$@" || test $? -eq 1`
  14310. }
  14311. fi # as_fn_arith
  14312. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14313. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14314. as_expr=expr
  14315. else
  14316. as_expr=false
  14317. fi
  14318. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14319. as_basename=basename
  14320. else
  14321. as_basename=false
  14322. fi
  14323. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14324. as_dirname=dirname
  14325. else
  14326. as_dirname=false
  14327. fi
  14328. as_me=`$as_basename -- "$0" ||
  14329. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14330. X"$0" : 'X\(//\)$' \| \
  14331. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14332. $as_echo X/"$0" |
  14333. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14334. s//\1/
  14335. q
  14336. }
  14337. /^X\/\(\/\/\)$/{
  14338. s//\1/
  14339. q
  14340. }
  14341. /^X\/\(\/\).*/{
  14342. s//\1/
  14343. q
  14344. }
  14345. s/.*/./; q'`
  14346. # Avoid depending upon Character Ranges.
  14347. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14348. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14349. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14350. as_cr_digits='0123456789'
  14351. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14352. ECHO_C= ECHO_N= ECHO_T=
  14353. case `echo -n x` in #(((((
  14354. -n*)
  14355. case `echo 'xy\c'` in
  14356. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14357. xy) ECHO_C='\c';;
  14358. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14359. ECHO_T=' ';;
  14360. esac;;
  14361. *)
  14362. ECHO_N='-n';;
  14363. esac
  14364. rm -f conf$$ conf$$.exe conf$$.file
  14365. if test -d conf$$.dir; then
  14366. rm -f conf$$.dir/conf$$.file
  14367. else
  14368. rm -f conf$$.dir
  14369. mkdir conf$$.dir 2>/dev/null
  14370. fi
  14371. if (echo >conf$$.file) 2>/dev/null; then
  14372. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14373. as_ln_s='ln -s'
  14374. # ... but there are two gotchas:
  14375. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14376. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14377. # In both cases, we have to default to `cp -p'.
  14378. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14379. as_ln_s='cp -p'
  14380. elif ln conf$$.file conf$$ 2>/dev/null; then
  14381. as_ln_s=ln
  14382. else
  14383. as_ln_s='cp -p'
  14384. fi
  14385. else
  14386. as_ln_s='cp -p'
  14387. fi
  14388. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14389. rmdir conf$$.dir 2>/dev/null
  14390. # as_fn_mkdir_p
  14391. # -------------
  14392. # Create "$as_dir" as a directory, including parents if necessary.
  14393. as_fn_mkdir_p ()
  14394. {
  14395. case $as_dir in #(
  14396. -*) as_dir=./$as_dir;;
  14397. esac
  14398. test -d "$as_dir" || eval $as_mkdir_p || {
  14399. as_dirs=
  14400. while :; do
  14401. case $as_dir in #(
  14402. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14403. *) as_qdir=$as_dir;;
  14404. esac
  14405. as_dirs="'$as_qdir' $as_dirs"
  14406. as_dir=`$as_dirname -- "$as_dir" ||
  14407. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14408. X"$as_dir" : 'X\(//\)[^/]' \| \
  14409. X"$as_dir" : 'X\(//\)$' \| \
  14410. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14411. $as_echo X"$as_dir" |
  14412. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14413. s//\1/
  14414. q
  14415. }
  14416. /^X\(\/\/\)[^/].*/{
  14417. s//\1/
  14418. q
  14419. }
  14420. /^X\(\/\/\)$/{
  14421. s//\1/
  14422. q
  14423. }
  14424. /^X\(\/\).*/{
  14425. s//\1/
  14426. q
  14427. }
  14428. s/.*/./; q'`
  14429. test -d "$as_dir" && break
  14430. done
  14431. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14432. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14433. } # as_fn_mkdir_p
  14434. if mkdir -p . 2>/dev/null; then
  14435. as_mkdir_p='mkdir -p "$as_dir"'
  14436. else
  14437. test -d ./-p && rmdir ./-p
  14438. as_mkdir_p=false
  14439. fi
  14440. if test -x / >/dev/null 2>&1; then
  14441. as_test_x='test -x'
  14442. else
  14443. if ls -dL / >/dev/null 2>&1; then
  14444. as_ls_L_option=L
  14445. else
  14446. as_ls_L_option=
  14447. fi
  14448. as_test_x='
  14449. eval sh -c '\''
  14450. if test -d "$1"; then
  14451. test -d "$1/.";
  14452. else
  14453. case $1 in #(
  14454. -*)set "./$1";;
  14455. esac;
  14456. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  14457. ???[sx]*):;;*)false;;esac;fi
  14458. '\'' sh
  14459. '
  14460. fi
  14461. as_executable_p=$as_test_x
  14462. # Sed expression to map a string onto a valid CPP name.
  14463. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14464. # Sed expression to map a string onto a valid variable name.
  14465. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14466. exec 6>&1
  14467. ## ----------------------------------- ##
  14468. ## Main body of $CONFIG_STATUS script. ##
  14469. ## ----------------------------------- ##
  14470. _ASEOF
  14471. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14472. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14473. # Save the log message, to keep $0 and so on meaningful, and to
  14474. # report actual input values of CONFIG_FILES etc. instead of their
  14475. # values after options handling.
  14476. ac_log="
  14477. This file was extended by klish $as_me 1.5.1, which was
  14478. generated by GNU Autoconf 2.68. Invocation command line was
  14479. CONFIG_FILES = $CONFIG_FILES
  14480. CONFIG_HEADERS = $CONFIG_HEADERS
  14481. CONFIG_LINKS = $CONFIG_LINKS
  14482. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14483. $ $0 $@
  14484. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14485. "
  14486. _ACEOF
  14487. case $ac_config_files in *"
  14488. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14489. esac
  14490. case $ac_config_headers in *"
  14491. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14492. esac
  14493. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14494. # Files that config.status was made for.
  14495. config_files="$ac_config_files"
  14496. config_headers="$ac_config_headers"
  14497. config_commands="$ac_config_commands"
  14498. _ACEOF
  14499. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14500. ac_cs_usage="\
  14501. \`$as_me' instantiates files and other configuration actions
  14502. from templates according to the current configuration. Unless the files
  14503. and actions are specified as TAGs, all are instantiated by default.
  14504. Usage: $0 [OPTION]... [TAG]...
  14505. -h, --help print this help, then exit
  14506. -V, --version print version number and configuration settings, then exit
  14507. --config print configuration, then exit
  14508. -q, --quiet, --silent
  14509. do not print progress messages
  14510. -d, --debug don't remove temporary files
  14511. --recheck update $as_me by reconfiguring in the same conditions
  14512. --file=FILE[:TEMPLATE]
  14513. instantiate the configuration file FILE
  14514. --header=FILE[:TEMPLATE]
  14515. instantiate the configuration header FILE
  14516. Configuration files:
  14517. $config_files
  14518. Configuration headers:
  14519. $config_headers
  14520. Configuration commands:
  14521. $config_commands
  14522. Report bugs to <serj.kalichev at gmail dot com>."
  14523. _ACEOF
  14524. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14525. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14526. ac_cs_version="\\
  14527. klish config.status 1.5.1
  14528. configured by $0, generated by GNU Autoconf 2.68,
  14529. with options \\"\$ac_cs_config\\"
  14530. Copyright (C) 2010 Free Software Foundation, Inc.
  14531. This config.status script is free software; the Free Software Foundation
  14532. gives unlimited permission to copy, distribute and modify it."
  14533. ac_pwd='$ac_pwd'
  14534. srcdir='$srcdir'
  14535. INSTALL='$INSTALL'
  14536. MKDIR_P='$MKDIR_P'
  14537. AWK='$AWK'
  14538. test -n "\$AWK" || AWK=awk
  14539. _ACEOF
  14540. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14541. # The default lists apply if the user does not specify any file.
  14542. ac_need_defaults=:
  14543. while test $# != 0
  14544. do
  14545. case $1 in
  14546. --*=?*)
  14547. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14548. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14549. ac_shift=:
  14550. ;;
  14551. --*=)
  14552. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14553. ac_optarg=
  14554. ac_shift=:
  14555. ;;
  14556. *)
  14557. ac_option=$1
  14558. ac_optarg=$2
  14559. ac_shift=shift
  14560. ;;
  14561. esac
  14562. case $ac_option in
  14563. # Handling of the options.
  14564. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14565. ac_cs_recheck=: ;;
  14566. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14567. $as_echo "$ac_cs_version"; exit ;;
  14568. --config | --confi | --conf | --con | --co | --c )
  14569. $as_echo "$ac_cs_config"; exit ;;
  14570. --debug | --debu | --deb | --de | --d | -d )
  14571. debug=: ;;
  14572. --file | --fil | --fi | --f )
  14573. $ac_shift
  14574. case $ac_optarg in
  14575. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14576. '') as_fn_error $? "missing file argument" ;;
  14577. esac
  14578. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14579. ac_need_defaults=false;;
  14580. --header | --heade | --head | --hea )
  14581. $ac_shift
  14582. case $ac_optarg in
  14583. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14584. esac
  14585. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14586. ac_need_defaults=false;;
  14587. --he | --h)
  14588. # Conflict between --help and --header
  14589. as_fn_error $? "ambiguous option: \`$1'
  14590. Try \`$0 --help' for more information.";;
  14591. --help | --hel | -h )
  14592. $as_echo "$ac_cs_usage"; exit ;;
  14593. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14594. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14595. ac_cs_silent=: ;;
  14596. # This is an error.
  14597. -*) as_fn_error $? "unrecognized option: \`$1'
  14598. Try \`$0 --help' for more information." ;;
  14599. *) as_fn_append ac_config_targets " $1"
  14600. ac_need_defaults=false ;;
  14601. esac
  14602. shift
  14603. done
  14604. ac_configure_extra_args=
  14605. if $ac_cs_silent; then
  14606. exec 6>/dev/null
  14607. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14608. fi
  14609. _ACEOF
  14610. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14611. if \$ac_cs_recheck; then
  14612. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14613. shift
  14614. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14615. CONFIG_SHELL='$SHELL'
  14616. export CONFIG_SHELL
  14617. exec "\$@"
  14618. fi
  14619. _ACEOF
  14620. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14621. exec 5>>config.log
  14622. {
  14623. echo
  14624. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14625. ## Running $as_me. ##
  14626. _ASBOX
  14627. $as_echo "$ac_log"
  14628. } >&5
  14629. _ACEOF
  14630. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14631. #
  14632. # INIT-COMMANDS
  14633. #
  14634. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14635. # if CDPATH is set.
  14636. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14637. sed_quote_subst='$sed_quote_subst'
  14638. double_quote_subst='$double_quote_subst'
  14639. delay_variable_subst='$delay_variable_subst'
  14640. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  14641. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  14642. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  14643. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14644. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14645. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14646. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14647. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14648. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14649. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14650. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14651. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14652. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14653. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14654. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14655. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14656. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14657. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14658. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14659. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14660. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14661. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  14662. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  14663. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  14664. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  14665. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  14666. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  14667. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  14668. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  14669. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  14670. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  14671. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  14672. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  14673. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  14674. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  14675. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  14676. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  14677. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  14678. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  14679. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  14680. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  14681. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  14682. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  14683. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  14684. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  14685. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14686. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14687. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  14688. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  14689. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  14690. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  14691. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  14692. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  14693. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  14694. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  14695. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  14696. 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"`'
  14697. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  14698. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  14699. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  14700. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  14701. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  14702. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  14703. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  14704. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  14705. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  14706. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  14707. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  14708. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  14709. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  14710. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  14711. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  14712. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  14713. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  14714. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  14715. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14716. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  14717. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  14718. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  14719. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  14720. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  14721. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  14722. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14723. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  14724. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14725. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  14726. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14727. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  14728. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14729. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14730. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  14731. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  14732. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  14733. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  14734. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  14735. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  14736. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14737. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  14738. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  14739. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  14740. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  14741. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  14742. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  14743. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  14744. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  14745. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  14746. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  14747. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  14748. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  14749. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  14750. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  14751. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  14752. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14753. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  14754. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  14755. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  14756. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  14757. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  14758. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14759. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14760. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  14761. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  14762. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  14763. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  14764. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  14765. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  14766. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  14767. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  14768. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  14769. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  14770. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  14771. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  14772. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  14773. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  14774. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  14775. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  14776. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  14777. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  14778. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14779. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14780. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14781. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  14782. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  14783. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14784. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  14785. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  14786. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  14787. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  14788. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  14789. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  14790. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14791. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14792. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  14793. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14794. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14795. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14796. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14797. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14798. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14799. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  14800. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14801. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14802. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14803. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
  14804. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  14805. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  14806. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  14807. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  14808. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  14809. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  14810. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  14811. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  14812. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  14813. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14814. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  14815. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  14816. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14817. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14818. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14819. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  14820. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  14821. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  14822. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  14823. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  14824. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  14825. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  14826. LTCC='$LTCC'
  14827. LTCFLAGS='$LTCFLAGS'
  14828. compiler='$compiler_DEFAULT'
  14829. # A function that is used when there is no print builtin or printf.
  14830. func_fallback_echo ()
  14831. {
  14832. eval 'cat <<_LTECHO_EOF
  14833. \$1
  14834. _LTECHO_EOF'
  14835. }
  14836. # Quote evaled strings.
  14837. for var in AS \
  14838. DLLTOOL \
  14839. OBJDUMP \
  14840. SHELL \
  14841. ECHO \
  14842. SED \
  14843. GREP \
  14844. EGREP \
  14845. FGREP \
  14846. LD \
  14847. NM \
  14848. LN_S \
  14849. lt_SP2NL \
  14850. lt_NL2SP \
  14851. reload_flag \
  14852. deplibs_check_method \
  14853. file_magic_cmd \
  14854. file_magic_glob \
  14855. want_nocaseglob \
  14856. sharedlib_from_linklib_cmd \
  14857. AR \
  14858. AR_FLAGS \
  14859. archiver_list_spec \
  14860. STRIP \
  14861. RANLIB \
  14862. CC \
  14863. CFLAGS \
  14864. compiler \
  14865. lt_cv_sys_global_symbol_pipe \
  14866. lt_cv_sys_global_symbol_to_cdecl \
  14867. lt_cv_sys_global_symbol_to_c_name_address \
  14868. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14869. nm_file_list_spec \
  14870. lt_prog_compiler_no_builtin_flag \
  14871. lt_prog_compiler_pic \
  14872. lt_prog_compiler_wl \
  14873. lt_prog_compiler_static \
  14874. lt_cv_prog_compiler_c_o \
  14875. need_locks \
  14876. MANIFEST_TOOL \
  14877. DSYMUTIL \
  14878. NMEDIT \
  14879. LIPO \
  14880. OTOOL \
  14881. OTOOL64 \
  14882. shrext_cmds \
  14883. export_dynamic_flag_spec \
  14884. whole_archive_flag_spec \
  14885. compiler_needs_object \
  14886. with_gnu_ld \
  14887. allow_undefined_flag \
  14888. no_undefined_flag \
  14889. hardcode_libdir_flag_spec \
  14890. hardcode_libdir_flag_spec_ld \
  14891. hardcode_libdir_separator \
  14892. exclude_expsyms \
  14893. include_expsyms \
  14894. file_list_spec \
  14895. variables_saved_for_relink \
  14896. libname_spec \
  14897. library_names_spec \
  14898. soname_spec \
  14899. install_override_mode \
  14900. finish_eval \
  14901. old_striplib \
  14902. striplib \
  14903. compiler_lib_search_dirs \
  14904. predep_objects \
  14905. postdep_objects \
  14906. predeps \
  14907. postdeps \
  14908. compiler_lib_search_path \
  14909. LD_CXX \
  14910. reload_flag_CXX \
  14911. compiler_CXX \
  14912. lt_prog_compiler_no_builtin_flag_CXX \
  14913. lt_prog_compiler_pic_CXX \
  14914. lt_prog_compiler_wl_CXX \
  14915. lt_prog_compiler_static_CXX \
  14916. lt_cv_prog_compiler_c_o_CXX \
  14917. export_dynamic_flag_spec_CXX \
  14918. whole_archive_flag_spec_CXX \
  14919. compiler_needs_object_CXX \
  14920. with_gnu_ld_CXX \
  14921. allow_undefined_flag_CXX \
  14922. no_undefined_flag_CXX \
  14923. hardcode_libdir_flag_spec_CXX \
  14924. hardcode_libdir_flag_spec_ld_CXX \
  14925. hardcode_libdir_separator_CXX \
  14926. exclude_expsyms_CXX \
  14927. include_expsyms_CXX \
  14928. file_list_spec_CXX \
  14929. compiler_lib_search_dirs_CXX \
  14930. predep_objects_CXX \
  14931. postdep_objects_CXX \
  14932. predeps_CXX \
  14933. postdeps_CXX \
  14934. compiler_lib_search_path_CXX; do
  14935. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14936. *[\\\\\\\`\\"\\\$]*)
  14937. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14938. ;;
  14939. *)
  14940. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14941. ;;
  14942. esac
  14943. done
  14944. # Double-quote double-evaled strings.
  14945. for var in reload_cmds \
  14946. old_postinstall_cmds \
  14947. old_postuninstall_cmds \
  14948. old_archive_cmds \
  14949. extract_expsyms_cmds \
  14950. old_archive_from_new_cmds \
  14951. old_archive_from_expsyms_cmds \
  14952. archive_cmds \
  14953. archive_expsym_cmds \
  14954. module_cmds \
  14955. module_expsym_cmds \
  14956. export_symbols_cmds \
  14957. prelink_cmds \
  14958. postlink_cmds \
  14959. postinstall_cmds \
  14960. postuninstall_cmds \
  14961. finish_cmds \
  14962. sys_lib_search_path_spec \
  14963. sys_lib_dlsearch_path_spec \
  14964. reload_cmds_CXX \
  14965. old_archive_cmds_CXX \
  14966. old_archive_from_new_cmds_CXX \
  14967. old_archive_from_expsyms_cmds_CXX \
  14968. archive_cmds_CXX \
  14969. archive_expsym_cmds_CXX \
  14970. module_cmds_CXX \
  14971. module_expsym_cmds_CXX \
  14972. export_symbols_cmds_CXX \
  14973. prelink_cmds_CXX \
  14974. postlink_cmds_CXX; do
  14975. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14976. *[\\\\\\\`\\"\\\$]*)
  14977. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  14978. ;;
  14979. *)
  14980. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14981. ;;
  14982. esac
  14983. done
  14984. ac_aux_dir='$ac_aux_dir'
  14985. xsi_shell='$xsi_shell'
  14986. lt_shell_append='$lt_shell_append'
  14987. # See if we are running on zsh, and set the options which allow our
  14988. # commands through without removal of \ escapes INIT.
  14989. if test -n "\${ZSH_VERSION+set}" ; then
  14990. setopt NO_GLOB_SUBST
  14991. fi
  14992. PACKAGE='$PACKAGE'
  14993. VERSION='$VERSION'
  14994. TIMESTAMP='$TIMESTAMP'
  14995. RM='$RM'
  14996. ofile='$ofile'
  14997. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14998. _ACEOF
  14999. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15000. # Handling of arguments.
  15001. for ac_config_target in $ac_config_targets
  15002. do
  15003. case $ac_config_target in
  15004. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15005. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  15006. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15007. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15008. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  15009. esac
  15010. done
  15011. # If the user did not use the arguments to specify the items to instantiate,
  15012. # then the envvar interface is used. Set only those that are not.
  15013. # We use the long form for the default assignment because of an extremely
  15014. # bizarre bug on SunOS 4.1.3.
  15015. if $ac_need_defaults; then
  15016. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15017. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  15018. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15019. fi
  15020. # Have a temporary directory for convenience. Make it in the build tree
  15021. # simply because there is no reason against having it here, and in addition,
  15022. # creating and moving files from /tmp can sometimes cause problems.
  15023. # Hook for its removal unless debugging.
  15024. # Note that there is a small window in which the directory will not be cleaned:
  15025. # after its creation but before its name has been assigned to `$tmp'.
  15026. $debug ||
  15027. {
  15028. tmp= ac_tmp=
  15029. trap 'exit_status=$?
  15030. : "${ac_tmp:=$tmp}"
  15031. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  15032. ' 0
  15033. trap 'as_fn_exit 1' 1 2 13 15
  15034. }
  15035. # Create a (secure) tmp directory for tmp files.
  15036. {
  15037. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15038. test -d "$tmp"
  15039. } ||
  15040. {
  15041. tmp=./conf$$-$RANDOM
  15042. (umask 077 && mkdir "$tmp")
  15043. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15044. ac_tmp=$tmp
  15045. # Set up the scripts for CONFIG_FILES section.
  15046. # No need to generate them if there are no CONFIG_FILES.
  15047. # This happens for instance with `./config.status config.h'.
  15048. if test -n "$CONFIG_FILES"; then
  15049. ac_cr=`echo X | tr X '\015'`
  15050. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15051. # But we know of no other shell where ac_cr would be empty at this
  15052. # point, so we can use a bashism as a fallback.
  15053. if test "x$ac_cr" = x; then
  15054. eval ac_cr=\$\'\\r\'
  15055. fi
  15056. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15057. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15058. ac_cs_awk_cr='\\r'
  15059. else
  15060. ac_cs_awk_cr=$ac_cr
  15061. fi
  15062. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  15063. _ACEOF
  15064. {
  15065. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15066. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15067. echo "_ACEOF"
  15068. } >conf$$subs.sh ||
  15069. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15070. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15071. ac_delim='%!_!# '
  15072. for ac_last_try in false false false false false :; do
  15073. . ./conf$$subs.sh ||
  15074. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15075. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15076. if test $ac_delim_n = $ac_delim_num; then
  15077. break
  15078. elif $ac_last_try; then
  15079. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15080. else
  15081. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15082. fi
  15083. done
  15084. rm -f conf$$subs.sh
  15085. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15086. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  15087. _ACEOF
  15088. sed -n '
  15089. h
  15090. s/^/S["/; s/!.*/"]=/
  15091. p
  15092. g
  15093. s/^[^!]*!//
  15094. :repl
  15095. t repl
  15096. s/'"$ac_delim"'$//
  15097. t delim
  15098. :nl
  15099. h
  15100. s/\(.\{148\}\)..*/\1/
  15101. t more1
  15102. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15103. p
  15104. n
  15105. b repl
  15106. :more1
  15107. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15108. p
  15109. g
  15110. s/.\{148\}//
  15111. t nl
  15112. :delim
  15113. h
  15114. s/\(.\{148\}\)..*/\1/
  15115. t more2
  15116. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15117. p
  15118. b
  15119. :more2
  15120. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15121. p
  15122. g
  15123. s/.\{148\}//
  15124. t delim
  15125. ' <conf$$subs.awk | sed '
  15126. /^[^""]/{
  15127. N
  15128. s/\n//
  15129. }
  15130. ' >>$CONFIG_STATUS || ac_write_fail=1
  15131. rm -f conf$$subs.awk
  15132. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15133. _ACAWK
  15134. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  15135. for (key in S) S_is_set[key] = 1
  15136. FS = ""
  15137. }
  15138. {
  15139. line = $ 0
  15140. nfields = split(line, field, "@")
  15141. substed = 0
  15142. len = length(field[1])
  15143. for (i = 2; i < nfields; i++) {
  15144. key = field[i]
  15145. keylen = length(key)
  15146. if (S_is_set[key]) {
  15147. value = S[key]
  15148. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15149. len += length(value) + length(field[++i])
  15150. substed = 1
  15151. } else
  15152. len += 1 + keylen
  15153. }
  15154. print line
  15155. }
  15156. _ACAWK
  15157. _ACEOF
  15158. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15159. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15160. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15161. else
  15162. cat
  15163. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  15164. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15165. _ACEOF
  15166. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15167. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15168. # trailing colons and then remove the whole line if VPATH becomes empty
  15169. # (actually we leave an empty line to preserve line numbers).
  15170. if test "x$srcdir" = x.; then
  15171. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  15172. h
  15173. s///
  15174. s/^/:/
  15175. s/[ ]*$/:/
  15176. s/:\$(srcdir):/:/g
  15177. s/:\${srcdir}:/:/g
  15178. s/:@srcdir@:/:/g
  15179. s/^:*//
  15180. s/:*$//
  15181. x
  15182. s/\(=[ ]*\).*/\1/
  15183. G
  15184. s/\n//
  15185. s/^[^=]*=[ ]*$//
  15186. }'
  15187. fi
  15188. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15189. fi # test -n "$CONFIG_FILES"
  15190. # Set up the scripts for CONFIG_HEADERS section.
  15191. # No need to generate them if there are no CONFIG_HEADERS.
  15192. # This happens for instance with `./config.status Makefile'.
  15193. if test -n "$CONFIG_HEADERS"; then
  15194. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  15195. BEGIN {
  15196. _ACEOF
  15197. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15198. # here-document in config.status, that substitutes the proper values into
  15199. # config.h.in to produce config.h.
  15200. # Create a delimiter string that does not exist in confdefs.h, to ease
  15201. # handling of long lines.
  15202. ac_delim='%!_!# '
  15203. for ac_last_try in false false :; do
  15204. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  15205. if test -z "$ac_tt"; then
  15206. break
  15207. elif $ac_last_try; then
  15208. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  15209. else
  15210. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15211. fi
  15212. done
  15213. # For the awk script, D is an array of macro values keyed by name,
  15214. # likewise P contains macro parameters if any. Preserve backslash
  15215. # newline sequences.
  15216. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15217. sed -n '
  15218. s/.\{148\}/&'"$ac_delim"'/g
  15219. t rset
  15220. :rset
  15221. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15222. t def
  15223. d
  15224. :def
  15225. s/\\$//
  15226. t bsnl
  15227. s/["\\]/\\&/g
  15228. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15229. D["\1"]=" \3"/p
  15230. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15231. d
  15232. :bsnl
  15233. s/["\\]/\\&/g
  15234. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15235. D["\1"]=" \3\\\\\\n"\\/p
  15236. t cont
  15237. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15238. t cont
  15239. d
  15240. :cont
  15241. n
  15242. s/.\{148\}/&'"$ac_delim"'/g
  15243. t clear
  15244. :clear
  15245. s/\\$//
  15246. t bsnlc
  15247. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15248. d
  15249. :bsnlc
  15250. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15251. b cont
  15252. ' <confdefs.h | sed '
  15253. s/'"$ac_delim"'/"\\\
  15254. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15255. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15256. for (key in D) D_is_set[key] = 1
  15257. FS = ""
  15258. }
  15259. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15260. line = \$ 0
  15261. split(line, arg, " ")
  15262. if (arg[1] == "#") {
  15263. defundef = arg[2]
  15264. mac1 = arg[3]
  15265. } else {
  15266. defundef = substr(arg[1], 2)
  15267. mac1 = arg[2]
  15268. }
  15269. split(mac1, mac2, "(") #)
  15270. macro = mac2[1]
  15271. prefix = substr(line, 1, index(line, defundef) - 1)
  15272. if (D_is_set[macro]) {
  15273. # Preserve the white space surrounding the "#".
  15274. print prefix "define", macro P[macro] D[macro]
  15275. next
  15276. } else {
  15277. # Replace #undef with comments. This is necessary, for example,
  15278. # in the case of _POSIX_SOURCE, which is predefined and required
  15279. # on some systems where configure will not decide to define it.
  15280. if (defundef == "undef") {
  15281. print "/*", prefix defundef, macro, "*/"
  15282. next
  15283. }
  15284. }
  15285. }
  15286. { print }
  15287. _ACAWK
  15288. _ACEOF
  15289. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15290. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15291. fi # test -n "$CONFIG_HEADERS"
  15292. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15293. shift
  15294. for ac_tag
  15295. do
  15296. case $ac_tag in
  15297. :[FHLC]) ac_mode=$ac_tag; continue;;
  15298. esac
  15299. case $ac_mode$ac_tag in
  15300. :[FHL]*:*);;
  15301. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15302. :[FH]-) ac_tag=-:-;;
  15303. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15304. esac
  15305. ac_save_IFS=$IFS
  15306. IFS=:
  15307. set x $ac_tag
  15308. IFS=$ac_save_IFS
  15309. shift
  15310. ac_file=$1
  15311. shift
  15312. case $ac_mode in
  15313. :L) ac_source=$1;;
  15314. :[FH])
  15315. ac_file_inputs=
  15316. for ac_f
  15317. do
  15318. case $ac_f in
  15319. -) ac_f="$ac_tmp/stdin";;
  15320. *) # Look for the file first in the build tree, then in the source tree
  15321. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15322. # because $ac_f cannot contain `:'.
  15323. test -f "$ac_f" ||
  15324. case $ac_f in
  15325. [\\/$]*) false;;
  15326. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15327. esac ||
  15328. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15329. esac
  15330. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15331. as_fn_append ac_file_inputs " '$ac_f'"
  15332. done
  15333. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15334. # use $as_me), people would be surprised to read:
  15335. # /* config.h. Generated by config.status. */
  15336. configure_input='Generated from '`
  15337. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15338. `' by configure.'
  15339. if test x"$ac_file" != x-; then
  15340. configure_input="$ac_file. $configure_input"
  15341. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15342. $as_echo "$as_me: creating $ac_file" >&6;}
  15343. fi
  15344. # Neutralize special characters interpreted by sed in replacement strings.
  15345. case $configure_input in #(
  15346. *\&* | *\|* | *\\* )
  15347. ac_sed_conf_input=`$as_echo "$configure_input" |
  15348. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15349. *) ac_sed_conf_input=$configure_input;;
  15350. esac
  15351. case $ac_tag in
  15352. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  15353. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  15354. esac
  15355. ;;
  15356. esac
  15357. ac_dir=`$as_dirname -- "$ac_file" ||
  15358. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15359. X"$ac_file" : 'X\(//\)[^/]' \| \
  15360. X"$ac_file" : 'X\(//\)$' \| \
  15361. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15362. $as_echo X"$ac_file" |
  15363. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15364. s//\1/
  15365. q
  15366. }
  15367. /^X\(\/\/\)[^/].*/{
  15368. s//\1/
  15369. q
  15370. }
  15371. /^X\(\/\/\)$/{
  15372. s//\1/
  15373. q
  15374. }
  15375. /^X\(\/\).*/{
  15376. s//\1/
  15377. q
  15378. }
  15379. s/.*/./; q'`
  15380. as_dir="$ac_dir"; as_fn_mkdir_p
  15381. ac_builddir=.
  15382. case "$ac_dir" in
  15383. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15384. *)
  15385. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15386. # A ".." for each directory in $ac_dir_suffix.
  15387. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15388. case $ac_top_builddir_sub in
  15389. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15390. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15391. esac ;;
  15392. esac
  15393. ac_abs_top_builddir=$ac_pwd
  15394. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15395. # for backward compatibility:
  15396. ac_top_builddir=$ac_top_build_prefix
  15397. case $srcdir in
  15398. .) # We are building in place.
  15399. ac_srcdir=.
  15400. ac_top_srcdir=$ac_top_builddir_sub
  15401. ac_abs_top_srcdir=$ac_pwd ;;
  15402. [\\/]* | ?:[\\/]* ) # Absolute name.
  15403. ac_srcdir=$srcdir$ac_dir_suffix;
  15404. ac_top_srcdir=$srcdir
  15405. ac_abs_top_srcdir=$srcdir ;;
  15406. *) # Relative name.
  15407. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15408. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15409. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15410. esac
  15411. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15412. case $ac_mode in
  15413. :F)
  15414. #
  15415. # CONFIG_FILE
  15416. #
  15417. case $INSTALL in
  15418. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15419. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15420. esac
  15421. ac_MKDIR_P=$MKDIR_P
  15422. case $MKDIR_P in
  15423. [\\/$]* | ?:[\\/]* ) ;;
  15424. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15425. esac
  15426. _ACEOF
  15427. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15428. # If the template does not know about datarootdir, expand it.
  15429. # FIXME: This hack should be removed a few years after 2.60.
  15430. ac_datarootdir_hack=; ac_datarootdir_seen=
  15431. ac_sed_dataroot='
  15432. /datarootdir/ {
  15433. p
  15434. q
  15435. }
  15436. /@datadir@/p
  15437. /@docdir@/p
  15438. /@infodir@/p
  15439. /@localedir@/p
  15440. /@mandir@/p'
  15441. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15442. *datarootdir*) ac_datarootdir_seen=yes;;
  15443. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15444. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15445. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15446. _ACEOF
  15447. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15448. ac_datarootdir_hack='
  15449. s&@datadir@&$datadir&g
  15450. s&@docdir@&$docdir&g
  15451. s&@infodir@&$infodir&g
  15452. s&@localedir@&$localedir&g
  15453. s&@mandir@&$mandir&g
  15454. s&\\\${datarootdir}&$datarootdir&g' ;;
  15455. esac
  15456. _ACEOF
  15457. # Neutralize VPATH when `$srcdir' = `.'.
  15458. # Shell code in configure.ac might set extrasub.
  15459. # FIXME: do we really want to maintain this feature?
  15460. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15461. ac_sed_extra="$ac_vpsub
  15462. $extrasub
  15463. _ACEOF
  15464. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15465. :t
  15466. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15467. s|@configure_input@|$ac_sed_conf_input|;t t
  15468. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15469. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15470. s&@srcdir@&$ac_srcdir&;t t
  15471. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15472. s&@top_srcdir@&$ac_top_srcdir&;t t
  15473. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15474. s&@builddir@&$ac_builddir&;t t
  15475. s&@abs_builddir@&$ac_abs_builddir&;t t
  15476. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15477. s&@INSTALL@&$ac_INSTALL&;t t
  15478. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15479. $ac_datarootdir_hack
  15480. "
  15481. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  15482. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15483. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15484. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  15485. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  15486. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  15487. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15488. which seems to be undefined. Please make sure it is defined" >&5
  15489. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15490. which seems to be undefined. Please make sure it is defined" >&2;}
  15491. rm -f "$ac_tmp/stdin"
  15492. case $ac_file in
  15493. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  15494. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  15495. esac \
  15496. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15497. ;;
  15498. :H)
  15499. #
  15500. # CONFIG_HEADER
  15501. #
  15502. if test x"$ac_file" != x-; then
  15503. {
  15504. $as_echo "/* $configure_input */" \
  15505. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  15506. } >"$ac_tmp/config.h" \
  15507. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15508. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  15509. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  15510. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  15511. else
  15512. rm -f "$ac_file"
  15513. mv "$ac_tmp/config.h" "$ac_file" \
  15514. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15515. fi
  15516. else
  15517. $as_echo "/* $configure_input */" \
  15518. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  15519. || as_fn_error $? "could not create -" "$LINENO" 5
  15520. fi
  15521. # Compute "$ac_file"'s index in $config_headers.
  15522. _am_arg="$ac_file"
  15523. _am_stamp_count=1
  15524. for _am_header in $config_headers :; do
  15525. case $_am_header in
  15526. $_am_arg | $_am_arg:* )
  15527. break ;;
  15528. * )
  15529. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  15530. esac
  15531. done
  15532. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  15533. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15534. X"$_am_arg" : 'X\(//\)[^/]' \| \
  15535. X"$_am_arg" : 'X\(//\)$' \| \
  15536. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  15537. $as_echo X"$_am_arg" |
  15538. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15539. s//\1/
  15540. q
  15541. }
  15542. /^X\(\/\/\)[^/].*/{
  15543. s//\1/
  15544. q
  15545. }
  15546. /^X\(\/\/\)$/{
  15547. s//\1/
  15548. q
  15549. }
  15550. /^X\(\/\).*/{
  15551. s//\1/
  15552. q
  15553. }
  15554. s/.*/./; q'`/stamp-h$_am_stamp_count
  15555. ;;
  15556. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15557. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15558. ;;
  15559. esac
  15560. case $ac_file$ac_mode in
  15561. "libtool":C)
  15562. # See if we are running on zsh, and set the options which allow our
  15563. # commands through without removal of \ escapes.
  15564. if test -n "${ZSH_VERSION+set}" ; then
  15565. setopt NO_GLOB_SUBST
  15566. fi
  15567. cfgfile="${ofile}T"
  15568. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15569. $RM "$cfgfile"
  15570. cat <<_LT_EOF >> "$cfgfile"
  15571. #! $SHELL
  15572. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15573. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15574. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15575. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15576. #
  15577. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15578. # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
  15579. # Inc.
  15580. # Written by Gordon Matzigkeit, 1996
  15581. #
  15582. # This file is part of GNU Libtool.
  15583. #
  15584. # GNU Libtool is free software; you can redistribute it and/or
  15585. # modify it under the terms of the GNU General Public License as
  15586. # published by the Free Software Foundation; either version 2 of
  15587. # the License, or (at your option) any later version.
  15588. #
  15589. # As a special exception to the GNU General Public License,
  15590. # if you distribute this file as part of a program or library that
  15591. # is built using GNU Libtool, you may include this file under the
  15592. # same distribution terms that you use for the rest of that program.
  15593. #
  15594. # GNU Libtool is distributed in the hope that it will be useful,
  15595. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15596. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15597. # GNU General Public License for more details.
  15598. #
  15599. # You should have received a copy of the GNU General Public License
  15600. # along with GNU Libtool; see the file COPYING. If not, a copy
  15601. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15602. # obtained by writing to the Free Software Foundation, Inc.,
  15603. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15604. # The names of the tagged configurations supported by this script.
  15605. available_tags="CXX "
  15606. # ### BEGIN LIBTOOL CONFIG
  15607. # Assembler program.
  15608. AS=$lt_AS
  15609. # DLL creation program.
  15610. DLLTOOL=$lt_DLLTOOL
  15611. # Object dumper program.
  15612. OBJDUMP=$lt_OBJDUMP
  15613. # Which release of libtool.m4 was used?
  15614. macro_version=$macro_version
  15615. macro_revision=$macro_revision
  15616. # Whether or not to build shared libraries.
  15617. build_libtool_libs=$enable_shared
  15618. # Whether or not to build static libraries.
  15619. build_old_libs=$enable_static
  15620. # What type of objects to build.
  15621. pic_mode=$pic_mode
  15622. # Whether or not to optimize for fast installation.
  15623. fast_install=$enable_fast_install
  15624. # Shell to use when invoking shell scripts.
  15625. SHELL=$lt_SHELL
  15626. # An echo program that protects backslashes.
  15627. ECHO=$lt_ECHO
  15628. # The host system.
  15629. host_alias=$host_alias
  15630. host=$host
  15631. host_os=$host_os
  15632. # The build system.
  15633. build_alias=$build_alias
  15634. build=$build
  15635. build_os=$build_os
  15636. # A sed program that does not truncate output.
  15637. SED=$lt_SED
  15638. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15639. Xsed="\$SED -e 1s/^X//"
  15640. # A grep program that handles long lines.
  15641. GREP=$lt_GREP
  15642. # An ERE matcher.
  15643. EGREP=$lt_EGREP
  15644. # A literal string matcher.
  15645. FGREP=$lt_FGREP
  15646. # A BSD- or MS-compatible name lister.
  15647. NM=$lt_NM
  15648. # Whether we need soft or hard links.
  15649. LN_S=$lt_LN_S
  15650. # What is the maximum length of a command?
  15651. max_cmd_len=$max_cmd_len
  15652. # Object file suffix (normally "o").
  15653. objext=$ac_objext
  15654. # Executable file suffix (normally "").
  15655. exeext=$exeext
  15656. # whether the shell understands "unset".
  15657. lt_unset=$lt_unset
  15658. # turn spaces into newlines.
  15659. SP2NL=$lt_lt_SP2NL
  15660. # turn newlines into spaces.
  15661. NL2SP=$lt_lt_NL2SP
  15662. # convert \$build file names to \$host format.
  15663. to_host_file_cmd=$lt_cv_to_host_file_cmd
  15664. # convert \$build files to toolchain format.
  15665. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  15666. # Method to check whether dependent libraries are shared objects.
  15667. deplibs_check_method=$lt_deplibs_check_method
  15668. # Command to use when deplibs_check_method = "file_magic".
  15669. file_magic_cmd=$lt_file_magic_cmd
  15670. # How to find potential files when deplibs_check_method = "file_magic".
  15671. file_magic_glob=$lt_file_magic_glob
  15672. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  15673. want_nocaseglob=$lt_want_nocaseglob
  15674. # Command to associate shared and link libraries.
  15675. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  15676. # The archiver.
  15677. AR=$lt_AR
  15678. # Flags to create an archive.
  15679. AR_FLAGS=$lt_AR_FLAGS
  15680. # How to feed a file listing to the archiver.
  15681. archiver_list_spec=$lt_archiver_list_spec
  15682. # A symbol stripping program.
  15683. STRIP=$lt_STRIP
  15684. # Commands used to install an old-style archive.
  15685. RANLIB=$lt_RANLIB
  15686. old_postinstall_cmds=$lt_old_postinstall_cmds
  15687. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15688. # Whether to use a lock for old archive extraction.
  15689. lock_old_archive_extraction=$lock_old_archive_extraction
  15690. # A C compiler.
  15691. LTCC=$lt_CC
  15692. # LTCC compiler flags.
  15693. LTCFLAGS=$lt_CFLAGS
  15694. # Take the output of nm and produce a listing of raw symbols and C names.
  15695. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15696. # Transform the output of nm in a proper C declaration.
  15697. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15698. # Transform the output of nm in a C name address pair.
  15699. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15700. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15701. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15702. # Specify filename containing input files for \$NM.
  15703. nm_file_list_spec=$lt_nm_file_list_spec
  15704. # The root where to search for dependent libraries,and in which our libraries should be installed.
  15705. lt_sysroot=$lt_sysroot
  15706. # The name of the directory that contains temporary libtool files.
  15707. objdir=$objdir
  15708. # Used to examine libraries when file_magic_cmd begins with "file".
  15709. MAGIC_CMD=$MAGIC_CMD
  15710. # Must we lock files when doing compilation?
  15711. need_locks=$lt_need_locks
  15712. # Manifest tool.
  15713. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  15714. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15715. DSYMUTIL=$lt_DSYMUTIL
  15716. # Tool to change global to local symbols on Mac OS X.
  15717. NMEDIT=$lt_NMEDIT
  15718. # Tool to manipulate fat objects and archives on Mac OS X.
  15719. LIPO=$lt_LIPO
  15720. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15721. OTOOL=$lt_OTOOL
  15722. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15723. OTOOL64=$lt_OTOOL64
  15724. # Old archive suffix (normally "a").
  15725. libext=$libext
  15726. # Shared library suffix (normally ".so").
  15727. shrext_cmds=$lt_shrext_cmds
  15728. # The commands to extract the exported symbol list from a shared archive.
  15729. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15730. # Variables whose values should be saved in libtool wrapper scripts and
  15731. # restored at link time.
  15732. variables_saved_for_relink=$lt_variables_saved_for_relink
  15733. # Do we need the "lib" prefix for modules?
  15734. need_lib_prefix=$need_lib_prefix
  15735. # Do we need a version for libraries?
  15736. need_version=$need_version
  15737. # Library versioning type.
  15738. version_type=$version_type
  15739. # Shared library runtime path variable.
  15740. runpath_var=$runpath_var
  15741. # Shared library path variable.
  15742. shlibpath_var=$shlibpath_var
  15743. # Is shlibpath searched before the hard-coded library search path?
  15744. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15745. # Format of library name prefix.
  15746. libname_spec=$lt_libname_spec
  15747. # List of archive names. First name is the real one, the rest are links.
  15748. # The last name is the one that the linker finds with -lNAME
  15749. library_names_spec=$lt_library_names_spec
  15750. # The coded name of the library, if different from the real name.
  15751. soname_spec=$lt_soname_spec
  15752. # Permission mode override for installation of shared libraries.
  15753. install_override_mode=$lt_install_override_mode
  15754. # Command to use after installation of a shared archive.
  15755. postinstall_cmds=$lt_postinstall_cmds
  15756. # Command to use after uninstallation of a shared archive.
  15757. postuninstall_cmds=$lt_postuninstall_cmds
  15758. # Commands used to finish a libtool library installation in a directory.
  15759. finish_cmds=$lt_finish_cmds
  15760. # As "finish_cmds", except a single script fragment to be evaled but
  15761. # not shown.
  15762. finish_eval=$lt_finish_eval
  15763. # Whether we should hardcode library paths into libraries.
  15764. hardcode_into_libs=$hardcode_into_libs
  15765. # Compile-time system search path for libraries.
  15766. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15767. # Run-time system search path for libraries.
  15768. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15769. # Whether dlopen is supported.
  15770. dlopen_support=$enable_dlopen
  15771. # Whether dlopen of programs is supported.
  15772. dlopen_self=$enable_dlopen_self
  15773. # Whether dlopen of statically linked programs is supported.
  15774. dlopen_self_static=$enable_dlopen_self_static
  15775. # Commands to strip libraries.
  15776. old_striplib=$lt_old_striplib
  15777. striplib=$lt_striplib
  15778. # The linker used to build libraries.
  15779. LD=$lt_LD
  15780. # How to create reloadable object files.
  15781. reload_flag=$lt_reload_flag
  15782. reload_cmds=$lt_reload_cmds
  15783. # Commands used to build an old-style archive.
  15784. old_archive_cmds=$lt_old_archive_cmds
  15785. # A language specific compiler.
  15786. CC=$lt_compiler
  15787. # Is the compiler the GNU compiler?
  15788. with_gcc=$GCC
  15789. # Compiler flag to turn off builtin functions.
  15790. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15791. # Additional compiler flags for building library objects.
  15792. pic_flag=$lt_lt_prog_compiler_pic
  15793. # How to pass a linker flag through the compiler.
  15794. wl=$lt_lt_prog_compiler_wl
  15795. # Compiler flag to prevent dynamic linking.
  15796. link_static_flag=$lt_lt_prog_compiler_static
  15797. # Does compiler simultaneously support -c and -o options?
  15798. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15799. # Whether or not to add -lc for building shared libraries.
  15800. build_libtool_need_lc=$archive_cmds_need_lc
  15801. # Whether or not to disallow shared libs when runtime libs are static.
  15802. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15803. # Compiler flag to allow reflexive dlopens.
  15804. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15805. # Compiler flag to generate shared objects directly from archives.
  15806. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15807. # Whether the compiler copes with passing no objects directly.
  15808. compiler_needs_object=$lt_compiler_needs_object
  15809. # Create an old-style archive from a shared archive.
  15810. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15811. # Create a temporary old-style archive to link instead of a shared archive.
  15812. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15813. # Commands used to build a shared archive.
  15814. archive_cmds=$lt_archive_cmds
  15815. archive_expsym_cmds=$lt_archive_expsym_cmds
  15816. # Commands used to build a loadable module if different from building
  15817. # a shared archive.
  15818. module_cmds=$lt_module_cmds
  15819. module_expsym_cmds=$lt_module_expsym_cmds
  15820. # Whether we are building with GNU ld or not.
  15821. with_gnu_ld=$lt_with_gnu_ld
  15822. # Flag that allows shared libraries with undefined symbols to be built.
  15823. allow_undefined_flag=$lt_allow_undefined_flag
  15824. # Flag that enforces no undefined symbols.
  15825. no_undefined_flag=$lt_no_undefined_flag
  15826. # Flag to hardcode \$libdir into a binary during linking.
  15827. # This must work even if \$libdir does not exist
  15828. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15829. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15830. # during linking. This must work even if \$libdir does not exist.
  15831. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  15832. # Whether we need a single "-rpath" flag with a separated argument.
  15833. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15834. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15835. # DIR into the resulting binary.
  15836. hardcode_direct=$hardcode_direct
  15837. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15838. # DIR into the resulting binary and the resulting library dependency is
  15839. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15840. # library is relocated.
  15841. hardcode_direct_absolute=$hardcode_direct_absolute
  15842. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15843. # into the resulting binary.
  15844. hardcode_minus_L=$hardcode_minus_L
  15845. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15846. # into the resulting binary.
  15847. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15848. # Set to "yes" if building a shared library automatically hardcodes DIR
  15849. # into the library and all subsequent libraries and executables linked
  15850. # against it.
  15851. hardcode_automatic=$hardcode_automatic
  15852. # Set to yes if linker adds runtime paths of dependent libraries
  15853. # to runtime path list.
  15854. inherit_rpath=$inherit_rpath
  15855. # Whether libtool must link a program against all its dependency libraries.
  15856. link_all_deplibs=$link_all_deplibs
  15857. # Set to "yes" if exported symbols are required.
  15858. always_export_symbols=$always_export_symbols
  15859. # The commands to list exported symbols.
  15860. export_symbols_cmds=$lt_export_symbols_cmds
  15861. # Symbols that should not be listed in the preloaded symbols.
  15862. exclude_expsyms=$lt_exclude_expsyms
  15863. # Symbols that must always be exported.
  15864. include_expsyms=$lt_include_expsyms
  15865. # Commands necessary for linking programs (against libraries) with templates.
  15866. prelink_cmds=$lt_prelink_cmds
  15867. # Commands necessary for finishing linking programs.
  15868. postlink_cmds=$lt_postlink_cmds
  15869. # Specify filename containing input files.
  15870. file_list_spec=$lt_file_list_spec
  15871. # How to hardcode a shared library path into an executable.
  15872. hardcode_action=$hardcode_action
  15873. # The directories searched by this compiler when creating a shared library.
  15874. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  15875. # Dependencies to place before and after the objects being linked to
  15876. # create a shared library.
  15877. predep_objects=$lt_predep_objects
  15878. postdep_objects=$lt_postdep_objects
  15879. predeps=$lt_predeps
  15880. postdeps=$lt_postdeps
  15881. # The library search path used internally by the compiler when linking
  15882. # a shared library.
  15883. compiler_lib_search_path=$lt_compiler_lib_search_path
  15884. # ### END LIBTOOL CONFIG
  15885. _LT_EOF
  15886. case $host_os in
  15887. aix3*)
  15888. cat <<\_LT_EOF >> "$cfgfile"
  15889. # AIX sometimes has problems with the GCC collect2 program. For some
  15890. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15891. # vanish in a puff of smoke.
  15892. if test "X${COLLECT_NAMES+set}" != Xset; then
  15893. COLLECT_NAMES=
  15894. export COLLECT_NAMES
  15895. fi
  15896. _LT_EOF
  15897. ;;
  15898. esac
  15899. ltmain="$ac_aux_dir/ltmain.sh"
  15900. # We use sed instead of cat because bash on DJGPP gets confused if
  15901. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15902. # text mode, it properly converts lines to CR/LF. This bash problem
  15903. # is reportedly fixed, but why not run on old versions too?
  15904. sed '$q' "$ltmain" >> "$cfgfile" \
  15905. || (rm -f "$cfgfile"; exit 1)
  15906. if test x"$xsi_shell" = xyes; then
  15907. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  15908. func_dirname ()\
  15909. {\
  15910. \ case ${1} in\
  15911. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  15912. \ * ) func_dirname_result="${3}" ;;\
  15913. \ esac\
  15914. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  15915. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15916. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15917. test 0 -eq $? || _lt_function_replace_fail=:
  15918. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  15919. func_basename ()\
  15920. {\
  15921. \ func_basename_result="${1##*/}"\
  15922. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  15923. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15924. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15925. test 0 -eq $? || _lt_function_replace_fail=:
  15926. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  15927. func_dirname_and_basename ()\
  15928. {\
  15929. \ case ${1} in\
  15930. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  15931. \ * ) func_dirname_result="${3}" ;;\
  15932. \ esac\
  15933. \ func_basename_result="${1##*/}"\
  15934. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  15935. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15936. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15937. test 0 -eq $? || _lt_function_replace_fail=:
  15938. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  15939. func_stripname ()\
  15940. {\
  15941. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  15942. \ # positional parameters, so assign one to ordinary parameter first.\
  15943. \ func_stripname_result=${3}\
  15944. \ func_stripname_result=${func_stripname_result#"${1}"}\
  15945. \ func_stripname_result=${func_stripname_result%"${2}"}\
  15946. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  15947. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15948. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15949. test 0 -eq $? || _lt_function_replace_fail=:
  15950. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  15951. func_split_long_opt ()\
  15952. {\
  15953. \ func_split_long_opt_name=${1%%=*}\
  15954. \ func_split_long_opt_arg=${1#*=}\
  15955. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  15956. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15957. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15958. test 0 -eq $? || _lt_function_replace_fail=:
  15959. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  15960. func_split_short_opt ()\
  15961. {\
  15962. \ func_split_short_opt_arg=${1#??}\
  15963. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  15964. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  15965. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15966. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15967. test 0 -eq $? || _lt_function_replace_fail=:
  15968. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  15969. func_lo2o ()\
  15970. {\
  15971. \ case ${1} in\
  15972. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  15973. \ *) func_lo2o_result=${1} ;;\
  15974. \ esac\
  15975. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  15976. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15977. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15978. test 0 -eq $? || _lt_function_replace_fail=:
  15979. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  15980. func_xform ()\
  15981. {\
  15982. func_xform_result=${1%.*}.lo\
  15983. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  15984. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15985. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15986. test 0 -eq $? || _lt_function_replace_fail=:
  15987. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  15988. func_arith ()\
  15989. {\
  15990. func_arith_result=$(( $* ))\
  15991. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  15992. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15993. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15994. test 0 -eq $? || _lt_function_replace_fail=:
  15995. sed -e '/^func_len ()$/,/^} # func_len /c\
  15996. func_len ()\
  15997. {\
  15998. func_len_result=${#1}\
  15999. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  16000. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16001. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16002. test 0 -eq $? || _lt_function_replace_fail=:
  16003. fi
  16004. if test x"$lt_shell_append" = xyes; then
  16005. sed -e '/^func_append ()$/,/^} # func_append /c\
  16006. func_append ()\
  16007. {\
  16008. eval "${1}+=\\${2}"\
  16009. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  16010. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16011. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16012. test 0 -eq $? || _lt_function_replace_fail=:
  16013. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  16014. func_append_quoted ()\
  16015. {\
  16016. \ func_quote_for_eval "${2}"\
  16017. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  16018. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  16019. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16020. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16021. test 0 -eq $? || _lt_function_replace_fail=:
  16022. # Save a `func_append' function call where possible by direct use of '+='
  16023. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  16024. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16025. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16026. test 0 -eq $? || _lt_function_replace_fail=:
  16027. else
  16028. # Save a `func_append' function call even when '+=' is not available
  16029. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  16030. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16031. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16032. test 0 -eq $? || _lt_function_replace_fail=:
  16033. fi
  16034. if test x"$_lt_function_replace_fail" = x":"; then
  16035. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  16036. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  16037. fi
  16038. mv -f "$cfgfile" "$ofile" ||
  16039. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16040. chmod +x "$ofile"
  16041. cat <<_LT_EOF >> "$ofile"
  16042. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  16043. # The linker used to build libraries.
  16044. LD=$lt_LD_CXX
  16045. # How to create reloadable object files.
  16046. reload_flag=$lt_reload_flag_CXX
  16047. reload_cmds=$lt_reload_cmds_CXX
  16048. # Commands used to build an old-style archive.
  16049. old_archive_cmds=$lt_old_archive_cmds_CXX
  16050. # A language specific compiler.
  16051. CC=$lt_compiler_CXX
  16052. # Is the compiler the GNU compiler?
  16053. with_gcc=$GCC_CXX
  16054. # Compiler flag to turn off builtin functions.
  16055. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  16056. # Additional compiler flags for building library objects.
  16057. pic_flag=$lt_lt_prog_compiler_pic_CXX
  16058. # How to pass a linker flag through the compiler.
  16059. wl=$lt_lt_prog_compiler_wl_CXX
  16060. # Compiler flag to prevent dynamic linking.
  16061. link_static_flag=$lt_lt_prog_compiler_static_CXX
  16062. # Does compiler simultaneously support -c and -o options?
  16063. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  16064. # Whether or not to add -lc for building shared libraries.
  16065. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  16066. # Whether or not to disallow shared libs when runtime libs are static.
  16067. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  16068. # Compiler flag to allow reflexive dlopens.
  16069. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  16070. # Compiler flag to generate shared objects directly from archives.
  16071. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  16072. # Whether the compiler copes with passing no objects directly.
  16073. compiler_needs_object=$lt_compiler_needs_object_CXX
  16074. # Create an old-style archive from a shared archive.
  16075. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  16076. # Create a temporary old-style archive to link instead of a shared archive.
  16077. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  16078. # Commands used to build a shared archive.
  16079. archive_cmds=$lt_archive_cmds_CXX
  16080. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  16081. # Commands used to build a loadable module if different from building
  16082. # a shared archive.
  16083. module_cmds=$lt_module_cmds_CXX
  16084. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  16085. # Whether we are building with GNU ld or not.
  16086. with_gnu_ld=$lt_with_gnu_ld_CXX
  16087. # Flag that allows shared libraries with undefined symbols to be built.
  16088. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  16089. # Flag that enforces no undefined symbols.
  16090. no_undefined_flag=$lt_no_undefined_flag_CXX
  16091. # Flag to hardcode \$libdir into a binary during linking.
  16092. # This must work even if \$libdir does not exist
  16093. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  16094. # If ld is used when linking, flag to hardcode \$libdir into a binary
  16095. # during linking. This must work even if \$libdir does not exist.
  16096. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  16097. # Whether we need a single "-rpath" flag with a separated argument.
  16098. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  16099. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16100. # DIR into the resulting binary.
  16101. hardcode_direct=$hardcode_direct_CXX
  16102. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16103. # DIR into the resulting binary and the resulting library dependency is
  16104. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16105. # library is relocated.
  16106. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  16107. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16108. # into the resulting binary.
  16109. hardcode_minus_L=$hardcode_minus_L_CXX
  16110. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16111. # into the resulting binary.
  16112. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  16113. # Set to "yes" if building a shared library automatically hardcodes DIR
  16114. # into the library and all subsequent libraries and executables linked
  16115. # against it.
  16116. hardcode_automatic=$hardcode_automatic_CXX
  16117. # Set to yes if linker adds runtime paths of dependent libraries
  16118. # to runtime path list.
  16119. inherit_rpath=$inherit_rpath_CXX
  16120. # Whether libtool must link a program against all its dependency libraries.
  16121. link_all_deplibs=$link_all_deplibs_CXX
  16122. # Set to "yes" if exported symbols are required.
  16123. always_export_symbols=$always_export_symbols_CXX
  16124. # The commands to list exported symbols.
  16125. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  16126. # Symbols that should not be listed in the preloaded symbols.
  16127. exclude_expsyms=$lt_exclude_expsyms_CXX
  16128. # Symbols that must always be exported.
  16129. include_expsyms=$lt_include_expsyms_CXX
  16130. # Commands necessary for linking programs (against libraries) with templates.
  16131. prelink_cmds=$lt_prelink_cmds_CXX
  16132. # Commands necessary for finishing linking programs.
  16133. postlink_cmds=$lt_postlink_cmds_CXX
  16134. # Specify filename containing input files.
  16135. file_list_spec=$lt_file_list_spec_CXX
  16136. # How to hardcode a shared library path into an executable.
  16137. hardcode_action=$hardcode_action_CXX
  16138. # The directories searched by this compiler when creating a shared library.
  16139. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  16140. # Dependencies to place before and after the objects being linked to
  16141. # create a shared library.
  16142. predep_objects=$lt_predep_objects_CXX
  16143. postdep_objects=$lt_postdep_objects_CXX
  16144. predeps=$lt_predeps_CXX
  16145. postdeps=$lt_postdeps_CXX
  16146. # The library search path used internally by the compiler when linking
  16147. # a shared library.
  16148. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  16149. # ### END LIBTOOL TAG CONFIG: CXX
  16150. _LT_EOF
  16151. ;;
  16152. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  16153. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  16154. # are listed without --file. Let's play safe and only enable the eval
  16155. # if we detect the quoting.
  16156. case $CONFIG_FILES in
  16157. *\'*) eval set x "$CONFIG_FILES" ;;
  16158. *) set x $CONFIG_FILES ;;
  16159. esac
  16160. shift
  16161. for mf
  16162. do
  16163. # Strip MF so we end up with the name of the file.
  16164. mf=`echo "$mf" | sed -e 's/:.*$//'`
  16165. # Check whether this is an Automake generated Makefile or not.
  16166. # We used to match only the files named `Makefile.in', but
  16167. # some people rename them; so instead we look at the file content.
  16168. # Grep'ing the first line is not enough: some people post-process
  16169. # each Makefile.in and add a new line on top of each file to say so.
  16170. # Grep'ing the whole file is not good either: AIX grep has a line
  16171. # limit of 2048, but all sed's we know have understand at least 4000.
  16172. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  16173. dirpart=`$as_dirname -- "$mf" ||
  16174. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16175. X"$mf" : 'X\(//\)[^/]' \| \
  16176. X"$mf" : 'X\(//\)$' \| \
  16177. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  16178. $as_echo X"$mf" |
  16179. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16180. s//\1/
  16181. q
  16182. }
  16183. /^X\(\/\/\)[^/].*/{
  16184. s//\1/
  16185. q
  16186. }
  16187. /^X\(\/\/\)$/{
  16188. s//\1/
  16189. q
  16190. }
  16191. /^X\(\/\).*/{
  16192. s//\1/
  16193. q
  16194. }
  16195. s/.*/./; q'`
  16196. else
  16197. continue
  16198. fi
  16199. # Extract the definition of DEPDIR, am__include, and am__quote
  16200. # from the Makefile without running `make'.
  16201. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  16202. test -z "$DEPDIR" && continue
  16203. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  16204. test -z "am__include" && continue
  16205. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  16206. # When using ansi2knr, U may be empty or an underscore; expand it
  16207. U=`sed -n 's/^U = //p' < "$mf"`
  16208. # Find all dependency output files, they are included files with
  16209. # $(DEPDIR) in their names. We invoke sed twice because it is the
  16210. # simplest approach to changing $(DEPDIR) to its actual value in the
  16211. # expansion.
  16212. for file in `sed -n "
  16213. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  16214. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  16215. # Make sure the directory exists.
  16216. test -f "$dirpart/$file" && continue
  16217. fdir=`$as_dirname -- "$file" ||
  16218. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16219. X"$file" : 'X\(//\)[^/]' \| \
  16220. X"$file" : 'X\(//\)$' \| \
  16221. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  16222. $as_echo X"$file" |
  16223. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16224. s//\1/
  16225. q
  16226. }
  16227. /^X\(\/\/\)[^/].*/{
  16228. s//\1/
  16229. q
  16230. }
  16231. /^X\(\/\/\)$/{
  16232. s//\1/
  16233. q
  16234. }
  16235. /^X\(\/\).*/{
  16236. s//\1/
  16237. q
  16238. }
  16239. s/.*/./; q'`
  16240. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  16241. # echo "creating $dirpart/$file"
  16242. echo '# dummy' > "$dirpart/$file"
  16243. done
  16244. done
  16245. }
  16246. ;;
  16247. esac
  16248. done # for ac_tag
  16249. as_fn_exit 0
  16250. _ACEOF
  16251. ac_clean_files=$ac_clean_files_save
  16252. test $ac_write_fail = 0 ||
  16253. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16254. # configure is writing to config.log, and then calls config.status.
  16255. # config.status does its own redirection, appending to config.log.
  16256. # Unfortunately, on DOS this fails, as config.log is still kept open
  16257. # by configure, so config.status won't be able to write to it; its
  16258. # output is simply discarded. So we exec the FD to /dev/null,
  16259. # effectively closing config.log, so it can be properly (re)opened and
  16260. # appended to by config.status. When coming back to configure, we
  16261. # need to make the FD available again.
  16262. if test "$no_create" != yes; then
  16263. ac_cs_success=:
  16264. ac_config_status_args=
  16265. test "$silent" = yes &&
  16266. ac_config_status_args="$ac_config_status_args --quiet"
  16267. exec 5>/dev/null
  16268. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16269. exec 5>>config.log
  16270. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16271. # would make configure fail if this is the last instruction.
  16272. $ac_cs_success || as_fn_exit 1
  16273. fi
  16274. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16275. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16276. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16277. fi