2
0

configure 568 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.65 for vcmi 0.84b.
  4. #
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  8. # Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in #((
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. exit 1
  105. fi
  106. # Unset variables that we do not need and which cause bugs (e.g. in
  107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  108. # suppresses any "Segmentation fault" message there. '((' could
  109. # trigger a bug in pdksh 5.2.14.
  110. for as_var in BASH_ENV ENV MAIL MAILPATH
  111. do eval test x\${$as_var+set} = xset \
  112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  113. done
  114. PS1='$ '
  115. PS2='> '
  116. PS4='+ '
  117. # NLS nuisances.
  118. LC_ALL=C
  119. export LC_ALL
  120. LANGUAGE=C
  121. export LANGUAGE
  122. # CDPATH.
  123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  124. if test "x$CONFIG_SHELL" = x; then
  125. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  126. emulate sh
  127. NULLCMD=:
  128. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  129. # is contrary to our usage. Disable this feature.
  130. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  131. setopt NO_GLOB_SUBST
  132. else
  133. case \`(set -o) 2>/dev/null\` in #(
  134. *posix*) :
  135. set -o posix ;; #(
  136. *) :
  137. ;;
  138. esac
  139. fi
  140. "
  141. as_required="as_fn_return () { (exit \$1); }
  142. as_fn_success () { as_fn_return 0; }
  143. as_fn_failure () { as_fn_return 1; }
  144. as_fn_ret_success () { return 0; }
  145. as_fn_ret_failure () { return 1; }
  146. exitcode=0
  147. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  148. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  149. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  150. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  151. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  152. else
  153. exitcode=1; echo positional parameters were not saved.
  154. fi
  155. test x\$exitcode = x0 || exit 1"
  156. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  157. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  158. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  159. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  160. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  161. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  162. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  163. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  164. PATH=/empty FPATH=/empty; export PATH FPATH
  165. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  166. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  167. test \$(( 1 + 1 )) = 2 || exit 1"
  168. if (eval "$as_required") 2>/dev/null; then :
  169. as_have_required=yes
  170. else
  171. as_have_required=no
  172. fi
  173. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  174. else
  175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  176. as_found=false
  177. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  178. do
  179. IFS=$as_save_IFS
  180. test -z "$as_dir" && as_dir=.
  181. as_found=:
  182. case $as_dir in #(
  183. /*)
  184. for as_base in sh bash ksh sh5; do
  185. # Try only shells that exist, to save several forks.
  186. as_shell=$as_dir/$as_base
  187. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  188. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  189. CONFIG_SHELL=$as_shell as_have_required=yes
  190. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  191. break 2
  192. fi
  193. fi
  194. done;;
  195. esac
  196. as_found=false
  197. done
  198. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  199. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  200. CONFIG_SHELL=$SHELL as_have_required=yes
  201. fi; }
  202. IFS=$as_save_IFS
  203. if test "x$CONFIG_SHELL" != x; then :
  204. # We cannot yet assume a decent shell, so we have to provide a
  205. # neutralization value for shells without unset; and this also
  206. # works around shells that cannot unset nonexistent variables.
  207. BASH_ENV=/dev/null
  208. ENV=/dev/null
  209. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  210. export CONFIG_SHELL
  211. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  212. fi
  213. if test x$as_have_required = xno; then :
  214. $as_echo "$0: This script requires a shell more modern than all"
  215. $as_echo "$0: the shells that I found on your system."
  216. if test x${ZSH_VERSION+set} = xset ; then
  217. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  218. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  219. else
  220. $as_echo "$0: Please tell [email protected] about your system,
  221. $0: including any error possibly output before this
  222. $0: message. Then install a modern shell, or manually run
  223. $0: the script under such a shell if you do have one."
  224. fi
  225. exit 1
  226. fi
  227. fi
  228. fi
  229. SHELL=${CONFIG_SHELL-/bin/sh}
  230. export SHELL
  231. # Unset more variables known to interfere with behavior of common tools.
  232. CLICOLOR_FORCE= GREP_OPTIONS=
  233. unset CLICOLOR_FORCE GREP_OPTIONS
  234. ## --------------------- ##
  235. ## M4sh Shell Functions. ##
  236. ## --------------------- ##
  237. # as_fn_unset VAR
  238. # ---------------
  239. # Portably unset VAR.
  240. as_fn_unset ()
  241. {
  242. { eval $1=; unset $1;}
  243. }
  244. as_unset=as_fn_unset
  245. # as_fn_set_status STATUS
  246. # -----------------------
  247. # Set $? to STATUS, without forking.
  248. as_fn_set_status ()
  249. {
  250. return $1
  251. } # as_fn_set_status
  252. # as_fn_exit STATUS
  253. # -----------------
  254. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  255. as_fn_exit ()
  256. {
  257. set +e
  258. as_fn_set_status $1
  259. exit $1
  260. } # as_fn_exit
  261. # as_fn_mkdir_p
  262. # -------------
  263. # Create "$as_dir" as a directory, including parents if necessary.
  264. as_fn_mkdir_p ()
  265. {
  266. case $as_dir in #(
  267. -*) as_dir=./$as_dir;;
  268. esac
  269. test -d "$as_dir" || eval $as_mkdir_p || {
  270. as_dirs=
  271. while :; do
  272. case $as_dir in #(
  273. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  274. *) as_qdir=$as_dir;;
  275. esac
  276. as_dirs="'$as_qdir' $as_dirs"
  277. as_dir=`$as_dirname -- "$as_dir" ||
  278. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  279. X"$as_dir" : 'X\(//\)[^/]' \| \
  280. X"$as_dir" : 'X\(//\)$' \| \
  281. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  282. $as_echo X"$as_dir" |
  283. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  284. s//\1/
  285. q
  286. }
  287. /^X\(\/\/\)[^/].*/{
  288. s//\1/
  289. q
  290. }
  291. /^X\(\/\/\)$/{
  292. s//\1/
  293. q
  294. }
  295. /^X\(\/\).*/{
  296. s//\1/
  297. q
  298. }
  299. s/.*/./; q'`
  300. test -d "$as_dir" && break
  301. done
  302. test -z "$as_dirs" || eval "mkdir $as_dirs"
  303. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  304. } # as_fn_mkdir_p
  305. # as_fn_append VAR VALUE
  306. # ----------------------
  307. # Append the text in VALUE to the end of the definition contained in VAR. Take
  308. # advantage of any shell optimizations that allow amortized linear growth over
  309. # repeated appends, instead of the typical quadratic growth present in naive
  310. # implementations.
  311. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  312. eval 'as_fn_append ()
  313. {
  314. eval $1+=\$2
  315. }'
  316. else
  317. as_fn_append ()
  318. {
  319. eval $1=\$$1\$2
  320. }
  321. fi # as_fn_append
  322. # as_fn_arith ARG...
  323. # ------------------
  324. # Perform arithmetic evaluation on the ARGs, and store the result in the
  325. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  326. # must be portable across $(()) and expr.
  327. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  328. eval 'as_fn_arith ()
  329. {
  330. as_val=$(( $* ))
  331. }'
  332. else
  333. as_fn_arith ()
  334. {
  335. as_val=`expr "$@" || test $? -eq 1`
  336. }
  337. fi # as_fn_arith
  338. # as_fn_error ERROR [LINENO LOG_FD]
  339. # ---------------------------------
  340. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  341. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  342. # script with status $?, using 1 if that was 0.
  343. as_fn_error ()
  344. {
  345. as_status=$?; test $as_status -eq 0 && as_status=1
  346. if test "$3"; then
  347. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  348. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  349. fi
  350. $as_echo "$as_me: error: $1" >&2
  351. as_fn_exit $as_status
  352. } # as_fn_error
  353. if expr a : '\(a\)' >/dev/null 2>&1 &&
  354. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  355. as_expr=expr
  356. else
  357. as_expr=false
  358. fi
  359. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  360. as_basename=basename
  361. else
  362. as_basename=false
  363. fi
  364. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  365. as_dirname=dirname
  366. else
  367. as_dirname=false
  368. fi
  369. as_me=`$as_basename -- "$0" ||
  370. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  371. X"$0" : 'X\(//\)$' \| \
  372. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  373. $as_echo X/"$0" |
  374. sed '/^.*\/\([^/][^/]*\)\/*$/{
  375. s//\1/
  376. q
  377. }
  378. /^X\/\(\/\/\)$/{
  379. s//\1/
  380. q
  381. }
  382. /^X\/\(\/\).*/{
  383. s//\1/
  384. q
  385. }
  386. s/.*/./; q'`
  387. # Avoid depending upon Character Ranges.
  388. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  389. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  390. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  391. as_cr_digits='0123456789'
  392. as_cr_alnum=$as_cr_Letters$as_cr_digits
  393. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  394. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  395. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  396. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  397. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  398. sed -n '
  399. p
  400. /[$]LINENO/=
  401. ' <$as_myself |
  402. sed '
  403. s/[$]LINENO.*/&-/
  404. t lineno
  405. b
  406. :lineno
  407. N
  408. :loop
  409. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  410. t loop
  411. s/-\n.*//
  412. ' >$as_me.lineno &&
  413. chmod +x "$as_me.lineno" ||
  414. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  415. # Don't try to exec as it changes $[0], causing all sort of problems
  416. # (the dirname of $[0] is not the place where we might find the
  417. # original and so on. Autoconf is especially sensitive to this).
  418. . "./$as_me.lineno"
  419. # Exit status is that of the last command.
  420. exit
  421. }
  422. ECHO_C= ECHO_N= ECHO_T=
  423. case `echo -n x` in #(((((
  424. -n*)
  425. case `echo 'xy\c'` in
  426. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  427. xy) ECHO_C='\c';;
  428. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  429. ECHO_T=' ';;
  430. esac;;
  431. *)
  432. ECHO_N='-n';;
  433. esac
  434. rm -f conf$$ conf$$.exe conf$$.file
  435. if test -d conf$$.dir; then
  436. rm -f conf$$.dir/conf$$.file
  437. else
  438. rm -f conf$$.dir
  439. mkdir conf$$.dir 2>/dev/null
  440. fi
  441. if (echo >conf$$.file) 2>/dev/null; then
  442. if ln -s conf$$.file conf$$ 2>/dev/null; then
  443. as_ln_s='ln -s'
  444. # ... but there are two gotchas:
  445. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  446. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  447. # In both cases, we have to default to `cp -p'.
  448. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  449. as_ln_s='cp -p'
  450. elif ln conf$$.file conf$$ 2>/dev/null; then
  451. as_ln_s=ln
  452. else
  453. as_ln_s='cp -p'
  454. fi
  455. else
  456. as_ln_s='cp -p'
  457. fi
  458. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  459. rmdir conf$$.dir 2>/dev/null
  460. if mkdir -p . 2>/dev/null; then
  461. as_mkdir_p='mkdir -p "$as_dir"'
  462. else
  463. test -d ./-p && rmdir ./-p
  464. as_mkdir_p=false
  465. fi
  466. if test -x / >/dev/null 2>&1; then
  467. as_test_x='test -x'
  468. else
  469. if ls -dL / >/dev/null 2>&1; then
  470. as_ls_L_option=L
  471. else
  472. as_ls_L_option=
  473. fi
  474. as_test_x='
  475. eval sh -c '\''
  476. if test -d "$1"; then
  477. test -d "$1/.";
  478. else
  479. case $1 in #(
  480. -*)set "./$1";;
  481. esac;
  482. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  483. ???[sx]*):;;*)false;;esac;fi
  484. '\'' sh
  485. '
  486. fi
  487. as_executable_p=$as_test_x
  488. # Sed expression to map a string onto a valid CPP name.
  489. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  490. # Sed expression to map a string onto a valid variable name.
  491. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  492. SHELL=${CONFIG_SHELL-/bin/sh}
  493. test -n "$DJDIR" || exec 7<&0 </dev/null
  494. exec 6>&1
  495. # Name of the host.
  496. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  497. # so uname gets run too.
  498. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  499. #
  500. # Initializations.
  501. #
  502. ac_default_prefix=/usr/local
  503. ac_clean_files=
  504. ac_config_libobj_dir=.
  505. LIBOBJS=
  506. cross_compiling=no
  507. subdirs=
  508. MFLAGS=
  509. MAKEFLAGS=
  510. # Identity of this package.
  511. PACKAGE_NAME='vcmi'
  512. PACKAGE_TARNAME='vcmi'
  513. PACKAGE_VERSION='0.84b'
  514. PACKAGE_STRING='vcmi 0.84b'
  515. PACKAGE_BUGREPORT=''
  516. PACKAGE_URL=''
  517. # Factoring default headers for most tests.
  518. ac_includes_default="\
  519. #include <stdio.h>
  520. #ifdef HAVE_SYS_TYPES_H
  521. # include <sys/types.h>
  522. #endif
  523. #ifdef HAVE_SYS_STAT_H
  524. # include <sys/stat.h>
  525. #endif
  526. #ifdef STDC_HEADERS
  527. # include <stdlib.h>
  528. # include <stddef.h>
  529. #else
  530. # ifdef HAVE_STDLIB_H
  531. # include <stdlib.h>
  532. # endif
  533. #endif
  534. #ifdef HAVE_STRING_H
  535. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  536. # include <memory.h>
  537. # endif
  538. # include <string.h>
  539. #endif
  540. #ifdef HAVE_STRINGS_H
  541. # include <strings.h>
  542. #endif
  543. #ifdef HAVE_INTTYPES_H
  544. # include <inttypes.h>
  545. #endif
  546. #ifdef HAVE_STDINT_H
  547. # include <stdint.h>
  548. #endif
  549. #ifdef HAVE_UNISTD_H
  550. # include <unistd.h>
  551. #endif"
  552. ac_subst_vars='am__EXEEXT_FALSE
  553. am__EXEEXT_TRUE
  554. LTLIBOBJS
  555. LIBOBJS
  556. VCMI_SCRIPTING_LIBS_DIR
  557. VCMI_AI_LIBS_DIR
  558. FFMPEG_CXXFLAGS
  559. FFMPEG_LIBS
  560. SDL_CXXFLAGS
  561. SDL_LIBS
  562. HAVE_SDL_CONFIG
  563. BOOST_PROGRAM_OPTIONS_LIB
  564. BOOST_IOSTREAMS_LIB
  565. BOOST_THREAD_LIB
  566. BOOST_FILESYSTEM_LIB
  567. BOOST_SYSTEM_LIB
  568. BOOST_LDFLAGS
  569. BOOST_CPPFLAGS
  570. AM_BACKSLASH
  571. AM_DEFAULT_VERBOSITY
  572. CXXCPP
  573. CPP
  574. OTOOL64
  575. OTOOL
  576. LIPO
  577. NMEDIT
  578. DSYMUTIL
  579. RANLIB
  580. AR
  581. OBJDUMP
  582. LN_S
  583. NM
  584. ac_ct_DUMPBIN
  585. DUMPBIN
  586. LD
  587. FGREP
  588. EGREP
  589. GREP
  590. SED
  591. am__fastdepCC_FALSE
  592. am__fastdepCC_TRUE
  593. CCDEPMODE
  594. ac_ct_CC
  595. CFLAGS
  596. CC
  597. host_os
  598. host_vendor
  599. host_cpu
  600. host
  601. build_os
  602. build_vendor
  603. build_cpu
  604. build
  605. LIBTOOL
  606. am__fastdepCXX_FALSE
  607. am__fastdepCXX_TRUE
  608. CXXDEPMODE
  609. AMDEPBACKSLASH
  610. AMDEP_FALSE
  611. AMDEP_TRUE
  612. am__quote
  613. am__include
  614. DEPDIR
  615. OBJEXT
  616. EXEEXT
  617. ac_ct_CXX
  618. CPPFLAGS
  619. LDFLAGS
  620. CXXFLAGS
  621. CXX
  622. am__untar
  623. am__tar
  624. AMTAR
  625. am__leading_dot
  626. SET_MAKE
  627. AWK
  628. mkdir_p
  629. MKDIR_P
  630. INSTALL_STRIP_PROGRAM
  631. STRIP
  632. install_sh
  633. MAKEINFO
  634. AUTOHEADER
  635. AUTOMAKE
  636. AUTOCONF
  637. ACLOCAL
  638. VERSION
  639. PACKAGE
  640. CYGPATH_W
  641. am__isrc
  642. INSTALL_DATA
  643. INSTALL_SCRIPT
  644. INSTALL_PROGRAM
  645. target_alias
  646. host_alias
  647. build_alias
  648. LIBS
  649. ECHO_T
  650. ECHO_N
  651. ECHO_C
  652. DEFS
  653. mandir
  654. localedir
  655. libdir
  656. psdir
  657. pdfdir
  658. dvidir
  659. htmldir
  660. infodir
  661. docdir
  662. oldincludedir
  663. includedir
  664. localstatedir
  665. sharedstatedir
  666. sysconfdir
  667. datadir
  668. datarootdir
  669. libexecdir
  670. sbindir
  671. bindir
  672. program_transform_name
  673. prefix
  674. exec_prefix
  675. PACKAGE_URL
  676. PACKAGE_BUGREPORT
  677. PACKAGE_STRING
  678. PACKAGE_VERSION
  679. PACKAGE_TARNAME
  680. PACKAGE_NAME
  681. PATH_SEPARATOR
  682. SHELL'
  683. ac_subst_files=''
  684. ac_user_opts='
  685. enable_option_checking
  686. enable_dependency_tracking
  687. enable_shared
  688. enable_static
  689. with_pic
  690. enable_fast_install
  691. with_gnu_ld
  692. enable_libtool_lock
  693. enable_silent_rules
  694. enable_debug
  695. with_boost
  696. with_boost_libdir
  697. with_boost_system
  698. with_boost_filesystem
  699. with_boost_thread
  700. with_boost_iostreams
  701. with_boost_program_options
  702. '
  703. ac_precious_vars='build_alias
  704. host_alias
  705. target_alias
  706. CXX
  707. CXXFLAGS
  708. LDFLAGS
  709. LIBS
  710. CPPFLAGS
  711. CCC
  712. CC
  713. CFLAGS
  714. CPP
  715. CXXCPP'
  716. # Initialize some variables set by options.
  717. ac_init_help=
  718. ac_init_version=false
  719. ac_unrecognized_opts=
  720. ac_unrecognized_sep=
  721. # The variables have the same names as the options, with
  722. # dashes changed to underlines.
  723. cache_file=/dev/null
  724. exec_prefix=NONE
  725. no_create=
  726. no_recursion=
  727. prefix=NONE
  728. program_prefix=NONE
  729. program_suffix=NONE
  730. program_transform_name=s,x,x,
  731. silent=
  732. site=
  733. srcdir=
  734. verbose=
  735. x_includes=NONE
  736. x_libraries=NONE
  737. # Installation directory options.
  738. # These are left unexpanded so users can "make install exec_prefix=/foo"
  739. # and all the variables that are supposed to be based on exec_prefix
  740. # by default will actually change.
  741. # Use braces instead of parens because sh, perl, etc. also accept them.
  742. # (The list follows the same order as the GNU Coding Standards.)
  743. bindir='${exec_prefix}/bin'
  744. sbindir='${exec_prefix}/sbin'
  745. libexecdir='${exec_prefix}/libexec'
  746. datarootdir='${prefix}/share'
  747. datadir='${datarootdir}'
  748. sysconfdir='${prefix}/etc'
  749. sharedstatedir='${prefix}/com'
  750. localstatedir='${prefix}/var'
  751. includedir='${prefix}/include'
  752. oldincludedir='/usr/include'
  753. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  754. infodir='${datarootdir}/info'
  755. htmldir='${docdir}'
  756. dvidir='${docdir}'
  757. pdfdir='${docdir}'
  758. psdir='${docdir}'
  759. libdir='${exec_prefix}/lib'
  760. localedir='${datarootdir}/locale'
  761. mandir='${datarootdir}/man'
  762. ac_prev=
  763. ac_dashdash=
  764. for ac_option
  765. do
  766. # If the previous option needs an argument, assign it.
  767. if test -n "$ac_prev"; then
  768. eval $ac_prev=\$ac_option
  769. ac_prev=
  770. continue
  771. fi
  772. case $ac_option in
  773. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  774. *) ac_optarg=yes ;;
  775. esac
  776. # Accept the important Cygnus configure options, so we can diagnose typos.
  777. case $ac_dashdash$ac_option in
  778. --)
  779. ac_dashdash=yes ;;
  780. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  781. ac_prev=bindir ;;
  782. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  783. bindir=$ac_optarg ;;
  784. -build | --build | --buil | --bui | --bu)
  785. ac_prev=build_alias ;;
  786. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  787. build_alias=$ac_optarg ;;
  788. -cache-file | --cache-file | --cache-fil | --cache-fi \
  789. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  790. ac_prev=cache_file ;;
  791. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  792. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  793. cache_file=$ac_optarg ;;
  794. --config-cache | -C)
  795. cache_file=config.cache ;;
  796. -datadir | --datadir | --datadi | --datad)
  797. ac_prev=datadir ;;
  798. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  799. datadir=$ac_optarg ;;
  800. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  801. | --dataroo | --dataro | --datar)
  802. ac_prev=datarootdir ;;
  803. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  804. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  805. datarootdir=$ac_optarg ;;
  806. -disable-* | --disable-*)
  807. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  808. # Reject names that are not valid shell variable names.
  809. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  810. as_fn_error "invalid feature name: $ac_useropt"
  811. ac_useropt_orig=$ac_useropt
  812. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  813. case $ac_user_opts in
  814. *"
  815. "enable_$ac_useropt"
  816. "*) ;;
  817. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  818. ac_unrecognized_sep=', ';;
  819. esac
  820. eval enable_$ac_useropt=no ;;
  821. -docdir | --docdir | --docdi | --doc | --do)
  822. ac_prev=docdir ;;
  823. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  824. docdir=$ac_optarg ;;
  825. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  826. ac_prev=dvidir ;;
  827. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  828. dvidir=$ac_optarg ;;
  829. -enable-* | --enable-*)
  830. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  831. # Reject names that are not valid shell variable names.
  832. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  833. as_fn_error "invalid feature name: $ac_useropt"
  834. ac_useropt_orig=$ac_useropt
  835. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  836. case $ac_user_opts in
  837. *"
  838. "enable_$ac_useropt"
  839. "*) ;;
  840. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  841. ac_unrecognized_sep=', ';;
  842. esac
  843. eval enable_$ac_useropt=\$ac_optarg ;;
  844. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  845. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  846. | --exec | --exe | --ex)
  847. ac_prev=exec_prefix ;;
  848. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  849. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  850. | --exec=* | --exe=* | --ex=*)
  851. exec_prefix=$ac_optarg ;;
  852. -gas | --gas | --ga | --g)
  853. # Obsolete; use --with-gas.
  854. with_gas=yes ;;
  855. -help | --help | --hel | --he | -h)
  856. ac_init_help=long ;;
  857. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  858. ac_init_help=recursive ;;
  859. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  860. ac_init_help=short ;;
  861. -host | --host | --hos | --ho)
  862. ac_prev=host_alias ;;
  863. -host=* | --host=* | --hos=* | --ho=*)
  864. host_alias=$ac_optarg ;;
  865. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  866. ac_prev=htmldir ;;
  867. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  868. | --ht=*)
  869. htmldir=$ac_optarg ;;
  870. -includedir | --includedir | --includedi | --included | --include \
  871. | --includ | --inclu | --incl | --inc)
  872. ac_prev=includedir ;;
  873. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  874. | --includ=* | --inclu=* | --incl=* | --inc=*)
  875. includedir=$ac_optarg ;;
  876. -infodir | --infodir | --infodi | --infod | --info | --inf)
  877. ac_prev=infodir ;;
  878. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  879. infodir=$ac_optarg ;;
  880. -libdir | --libdir | --libdi | --libd)
  881. ac_prev=libdir ;;
  882. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  883. libdir=$ac_optarg ;;
  884. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  885. | --libexe | --libex | --libe)
  886. ac_prev=libexecdir ;;
  887. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  888. | --libexe=* | --libex=* | --libe=*)
  889. libexecdir=$ac_optarg ;;
  890. -localedir | --localedir | --localedi | --localed | --locale)
  891. ac_prev=localedir ;;
  892. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  893. localedir=$ac_optarg ;;
  894. -localstatedir | --localstatedir | --localstatedi | --localstated \
  895. | --localstate | --localstat | --localsta | --localst | --locals)
  896. ac_prev=localstatedir ;;
  897. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  898. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  899. localstatedir=$ac_optarg ;;
  900. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  901. ac_prev=mandir ;;
  902. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  903. mandir=$ac_optarg ;;
  904. -nfp | --nfp | --nf)
  905. # Obsolete; use --without-fp.
  906. with_fp=no ;;
  907. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  908. | --no-cr | --no-c | -n)
  909. no_create=yes ;;
  910. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  911. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  912. no_recursion=yes ;;
  913. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  914. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  915. | --oldin | --oldi | --old | --ol | --o)
  916. ac_prev=oldincludedir ;;
  917. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  918. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  919. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  920. oldincludedir=$ac_optarg ;;
  921. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  922. ac_prev=prefix ;;
  923. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  924. prefix=$ac_optarg ;;
  925. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  926. | --program-pre | --program-pr | --program-p)
  927. ac_prev=program_prefix ;;
  928. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  929. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  930. program_prefix=$ac_optarg ;;
  931. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  932. | --program-suf | --program-su | --program-s)
  933. ac_prev=program_suffix ;;
  934. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  935. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  936. program_suffix=$ac_optarg ;;
  937. -program-transform-name | --program-transform-name \
  938. | --program-transform-nam | --program-transform-na \
  939. | --program-transform-n | --program-transform- \
  940. | --program-transform | --program-transfor \
  941. | --program-transfo | --program-transf \
  942. | --program-trans | --program-tran \
  943. | --progr-tra | --program-tr | --program-t)
  944. ac_prev=program_transform_name ;;
  945. -program-transform-name=* | --program-transform-name=* \
  946. | --program-transform-nam=* | --program-transform-na=* \
  947. | --program-transform-n=* | --program-transform-=* \
  948. | --program-transform=* | --program-transfor=* \
  949. | --program-transfo=* | --program-transf=* \
  950. | --program-trans=* | --program-tran=* \
  951. | --progr-tra=* | --program-tr=* | --program-t=*)
  952. program_transform_name=$ac_optarg ;;
  953. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  954. ac_prev=pdfdir ;;
  955. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  956. pdfdir=$ac_optarg ;;
  957. -psdir | --psdir | --psdi | --psd | --ps)
  958. ac_prev=psdir ;;
  959. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  960. psdir=$ac_optarg ;;
  961. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  962. | -silent | --silent | --silen | --sile | --sil)
  963. silent=yes ;;
  964. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  965. ac_prev=sbindir ;;
  966. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  967. | --sbi=* | --sb=*)
  968. sbindir=$ac_optarg ;;
  969. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  970. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  971. | --sharedst | --shareds | --shared | --share | --shar \
  972. | --sha | --sh)
  973. ac_prev=sharedstatedir ;;
  974. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  975. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  976. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  977. | --sha=* | --sh=*)
  978. sharedstatedir=$ac_optarg ;;
  979. -site | --site | --sit)
  980. ac_prev=site ;;
  981. -site=* | --site=* | --sit=*)
  982. site=$ac_optarg ;;
  983. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  984. ac_prev=srcdir ;;
  985. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  986. srcdir=$ac_optarg ;;
  987. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  988. | --syscon | --sysco | --sysc | --sys | --sy)
  989. ac_prev=sysconfdir ;;
  990. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  991. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  992. sysconfdir=$ac_optarg ;;
  993. -target | --target | --targe | --targ | --tar | --ta | --t)
  994. ac_prev=target_alias ;;
  995. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  996. target_alias=$ac_optarg ;;
  997. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  998. verbose=yes ;;
  999. -version | --version | --versio | --versi | --vers | -V)
  1000. ac_init_version=: ;;
  1001. -with-* | --with-*)
  1002. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1003. # Reject names that are not valid shell variable names.
  1004. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1005. as_fn_error "invalid package name: $ac_useropt"
  1006. ac_useropt_orig=$ac_useropt
  1007. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1008. case $ac_user_opts in
  1009. *"
  1010. "with_$ac_useropt"
  1011. "*) ;;
  1012. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1013. ac_unrecognized_sep=', ';;
  1014. esac
  1015. eval with_$ac_useropt=\$ac_optarg ;;
  1016. -without-* | --without-*)
  1017. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1018. # Reject names that are not valid shell variable names.
  1019. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1020. as_fn_error "invalid package name: $ac_useropt"
  1021. ac_useropt_orig=$ac_useropt
  1022. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1023. case $ac_user_opts in
  1024. *"
  1025. "with_$ac_useropt"
  1026. "*) ;;
  1027. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1028. ac_unrecognized_sep=', ';;
  1029. esac
  1030. eval with_$ac_useropt=no ;;
  1031. --x)
  1032. # Obsolete; use --with-x.
  1033. with_x=yes ;;
  1034. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1035. | --x-incl | --x-inc | --x-in | --x-i)
  1036. ac_prev=x_includes ;;
  1037. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1038. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1039. x_includes=$ac_optarg ;;
  1040. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1041. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1042. ac_prev=x_libraries ;;
  1043. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1044. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1045. x_libraries=$ac_optarg ;;
  1046. -*) as_fn_error "unrecognized option: \`$ac_option'
  1047. Try \`$0 --help' for more information."
  1048. ;;
  1049. *=*)
  1050. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1051. # Reject names that are not valid shell variable names.
  1052. case $ac_envvar in #(
  1053. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1054. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1055. esac
  1056. eval $ac_envvar=\$ac_optarg
  1057. export $ac_envvar ;;
  1058. *)
  1059. # FIXME: should be removed in autoconf 3.0.
  1060. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1061. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1062. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1063. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1064. ;;
  1065. esac
  1066. done
  1067. if test -n "$ac_prev"; then
  1068. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1069. as_fn_error "missing argument to $ac_option"
  1070. fi
  1071. if test -n "$ac_unrecognized_opts"; then
  1072. case $enable_option_checking in
  1073. no) ;;
  1074. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1075. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1076. esac
  1077. fi
  1078. # Check all directory arguments for consistency.
  1079. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1080. datadir sysconfdir sharedstatedir localstatedir includedir \
  1081. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1082. libdir localedir mandir
  1083. do
  1084. eval ac_val=\$$ac_var
  1085. # Remove trailing slashes.
  1086. case $ac_val in
  1087. */ )
  1088. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1089. eval $ac_var=\$ac_val;;
  1090. esac
  1091. # Be sure to have absolute directory names.
  1092. case $ac_val in
  1093. [\\/$]* | ?:[\\/]* ) continue;;
  1094. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1095. esac
  1096. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1097. done
  1098. # There might be people who depend on the old broken behavior: `$host'
  1099. # used to hold the argument of --host etc.
  1100. # FIXME: To remove some day.
  1101. build=$build_alias
  1102. host=$host_alias
  1103. target=$target_alias
  1104. # FIXME: To remove some day.
  1105. if test "x$host_alias" != x; then
  1106. if test "x$build_alias" = x; then
  1107. cross_compiling=maybe
  1108. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1109. If a cross compiler is detected then cross compile mode will be used." >&2
  1110. elif test "x$build_alias" != "x$host_alias"; then
  1111. cross_compiling=yes
  1112. fi
  1113. fi
  1114. ac_tool_prefix=
  1115. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1116. test "$silent" = yes && exec 6>/dev/null
  1117. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1118. ac_ls_di=`ls -di .` &&
  1119. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1120. as_fn_error "working directory cannot be determined"
  1121. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1122. as_fn_error "pwd does not report name of working directory"
  1123. # Find the source files, if location was not specified.
  1124. if test -z "$srcdir"; then
  1125. ac_srcdir_defaulted=yes
  1126. # Try the directory containing this script, then the parent directory.
  1127. ac_confdir=`$as_dirname -- "$as_myself" ||
  1128. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1129. X"$as_myself" : 'X\(//\)[^/]' \| \
  1130. X"$as_myself" : 'X\(//\)$' \| \
  1131. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1132. $as_echo X"$as_myself" |
  1133. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1134. s//\1/
  1135. q
  1136. }
  1137. /^X\(\/\/\)[^/].*/{
  1138. s//\1/
  1139. q
  1140. }
  1141. /^X\(\/\/\)$/{
  1142. s//\1/
  1143. q
  1144. }
  1145. /^X\(\/\).*/{
  1146. s//\1/
  1147. q
  1148. }
  1149. s/.*/./; q'`
  1150. srcdir=$ac_confdir
  1151. if test ! -r "$srcdir/$ac_unique_file"; then
  1152. srcdir=..
  1153. fi
  1154. else
  1155. ac_srcdir_defaulted=no
  1156. fi
  1157. if test ! -r "$srcdir/$ac_unique_file"; then
  1158. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1159. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1160. fi
  1161. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1162. ac_abs_confdir=`(
  1163. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1164. pwd)`
  1165. # When building in place, set srcdir=.
  1166. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1167. srcdir=.
  1168. fi
  1169. # Remove unnecessary trailing slashes from srcdir.
  1170. # Double slashes in file names in object file debugging info
  1171. # mess up M-x gdb in Emacs.
  1172. case $srcdir in
  1173. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1174. esac
  1175. for ac_var in $ac_precious_vars; do
  1176. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1177. eval ac_env_${ac_var}_value=\$${ac_var}
  1178. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1179. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1180. done
  1181. #
  1182. # Report the --help message.
  1183. #
  1184. if test "$ac_init_help" = "long"; then
  1185. # Omit some internal or obsolete options to make the list less imposing.
  1186. # This message is too long to be a string in the A/UX 3.1 sh.
  1187. cat <<_ACEOF
  1188. \`configure' configures vcmi 0.84b to adapt to many kinds of systems.
  1189. Usage: $0 [OPTION]... [VAR=VALUE]...
  1190. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1191. VAR=VALUE. See below for descriptions of some of the useful variables.
  1192. Defaults for the options are specified in brackets.
  1193. Configuration:
  1194. -h, --help display this help and exit
  1195. --help=short display options specific to this package
  1196. --help=recursive display the short help of all the included packages
  1197. -V, --version display version information and exit
  1198. -q, --quiet, --silent do not print \`checking...' messages
  1199. --cache-file=FILE cache test results in FILE [disabled]
  1200. -C, --config-cache alias for \`--cache-file=config.cache'
  1201. -n, --no-create do not create output files
  1202. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1203. Installation directories:
  1204. --prefix=PREFIX install architecture-independent files in PREFIX
  1205. [$ac_default_prefix]
  1206. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1207. [PREFIX]
  1208. By default, \`make install' will install all the files in
  1209. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1210. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1211. for instance \`--prefix=\$HOME'.
  1212. For better control, use the options below.
  1213. Fine tuning of the installation directories:
  1214. --bindir=DIR user executables [EPREFIX/bin]
  1215. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1216. --libexecdir=DIR program executables [EPREFIX/libexec]
  1217. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1218. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1219. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1220. --libdir=DIR object code libraries [EPREFIX/lib]
  1221. --includedir=DIR C header files [PREFIX/include]
  1222. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1223. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1224. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1225. --infodir=DIR info documentation [DATAROOTDIR/info]
  1226. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1227. --mandir=DIR man documentation [DATAROOTDIR/man]
  1228. --docdir=DIR documentation root [DATAROOTDIR/doc/vcmi]
  1229. --htmldir=DIR html documentation [DOCDIR]
  1230. --dvidir=DIR dvi documentation [DOCDIR]
  1231. --pdfdir=DIR pdf documentation [DOCDIR]
  1232. --psdir=DIR ps documentation [DOCDIR]
  1233. _ACEOF
  1234. cat <<\_ACEOF
  1235. Program names:
  1236. --program-prefix=PREFIX prepend PREFIX to installed program names
  1237. --program-suffix=SUFFIX append SUFFIX to installed program names
  1238. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1239. System types:
  1240. --build=BUILD configure for building on BUILD [guessed]
  1241. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1242. _ACEOF
  1243. fi
  1244. if test -n "$ac_init_help"; then
  1245. case $ac_init_help in
  1246. short | recursive ) echo "Configuration of vcmi 0.84b:";;
  1247. esac
  1248. cat <<\_ACEOF
  1249. Optional Features:
  1250. --disable-option-checking ignore unrecognized --enable/--with options
  1251. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1252. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1253. --disable-dependency-tracking speeds up one-time build
  1254. --enable-dependency-tracking do not reject slow dependency extractors
  1255. --enable-shared[=PKGS] build shared libraries [default=yes]
  1256. --enable-static[=PKGS] build static libraries [default=no]
  1257. --enable-fast-install[=PKGS]
  1258. optimize for fast installation [default=yes]
  1259. --disable-libtool-lock avoid locking (might break parallel builds)
  1260. --enable-silent-rules less verbose build output (undo: `make V=1')
  1261. --disable-silent-rules verbose build output (undo: `make V=0')
  1262. --disable-debug turn off debugging (default=enable)
  1263. Optional Packages:
  1264. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1265. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1266. --with-pic try to use only PIC/non-PIC objects [default=use
  1267. both]
  1268. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1269. --with-boost[=ARG] use Boost library from a standard location
  1270. (ARG=yes), from the specified location (ARG=<path>),
  1271. or disable it (ARG=no) [ARG=yes]
  1272. --with-boost-libdir=LIB_DIR
  1273. Force given directory for boost libraries. Note that
  1274. this will override library path detection, so use
  1275. this parameter only if default library detection
  1276. fails and you know exactly where your boost
  1277. libraries are located.
  1278. --with-boost-system[=special-lib]
  1279. use the System library from boost - it is possible
  1280. to specify a certain library for the linker e.g.
  1281. --with-boost-system=boost_system-gcc-mt
  1282. --with-boost-filesystem[=special-lib]
  1283. use the Filesystem library from boost - it is
  1284. possible to specify a certain library for the linker
  1285. e.g. --with-boost-filesystem=boost_filesystem-gcc-mt
  1286. --with-boost-thread[=special-lib]
  1287. use the Thread library from boost - it is possible
  1288. to specify a certain library for the linker e.g.
  1289. --with-boost-thread=boost_thread-gcc-mt
  1290. --with-boost-iostreams[=special-lib]
  1291. use the IOStreams library from boost - it is
  1292. possible to specify a certain library for the linker
  1293. e.g.
  1294. --with-boost-iostreams=boost_iostreams-gcc-mt-d-1_33_1
  1295. --with-boost-program-options[=special-lib]
  1296. use the program options library from boost - it is
  1297. possible to specify a certain library for the linker
  1298. e.g.
  1299. --with-boost-program-options=boost_program_options-gcc-mt-1_33_1
  1300. Some influential environment variables:
  1301. CXX C++ compiler command
  1302. CXXFLAGS C++ compiler flags
  1303. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1304. nonstandard directory <lib dir>
  1305. LIBS libraries to pass to the linker, e.g. -l<library>
  1306. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1307. you have headers in a nonstandard directory <include dir>
  1308. CC C compiler command
  1309. CFLAGS C compiler flags
  1310. CPP C preprocessor
  1311. CXXCPP C++ preprocessor
  1312. Use these variables to override the choices made by `configure' or to help
  1313. it to find libraries and programs with nonstandard names/locations.
  1314. Report bugs to the package provider.
  1315. _ACEOF
  1316. ac_status=$?
  1317. fi
  1318. if test "$ac_init_help" = "recursive"; then
  1319. # If there are subdirs, report their specific --help.
  1320. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1321. test -d "$ac_dir" ||
  1322. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1323. continue
  1324. ac_builddir=.
  1325. case "$ac_dir" in
  1326. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1327. *)
  1328. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1329. # A ".." for each directory in $ac_dir_suffix.
  1330. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1331. case $ac_top_builddir_sub in
  1332. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1333. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1334. esac ;;
  1335. esac
  1336. ac_abs_top_builddir=$ac_pwd
  1337. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1338. # for backward compatibility:
  1339. ac_top_builddir=$ac_top_build_prefix
  1340. case $srcdir in
  1341. .) # We are building in place.
  1342. ac_srcdir=.
  1343. ac_top_srcdir=$ac_top_builddir_sub
  1344. ac_abs_top_srcdir=$ac_pwd ;;
  1345. [\\/]* | ?:[\\/]* ) # Absolute name.
  1346. ac_srcdir=$srcdir$ac_dir_suffix;
  1347. ac_top_srcdir=$srcdir
  1348. ac_abs_top_srcdir=$srcdir ;;
  1349. *) # Relative name.
  1350. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1351. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1352. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1353. esac
  1354. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1355. cd "$ac_dir" || { ac_status=$?; continue; }
  1356. # Check for guested configure.
  1357. if test -f "$ac_srcdir/configure.gnu"; then
  1358. echo &&
  1359. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1360. elif test -f "$ac_srcdir/configure"; then
  1361. echo &&
  1362. $SHELL "$ac_srcdir/configure" --help=recursive
  1363. else
  1364. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1365. fi || ac_status=$?
  1366. cd "$ac_pwd" || { ac_status=$?; break; }
  1367. done
  1368. fi
  1369. test -n "$ac_init_help" && exit $ac_status
  1370. if $ac_init_version; then
  1371. cat <<\_ACEOF
  1372. vcmi configure 0.84b
  1373. generated by GNU Autoconf 2.65
  1374. Copyright (C) 2009 Free Software Foundation, Inc.
  1375. This configure script is free software; the Free Software Foundation
  1376. gives unlimited permission to copy, distribute and modify it.
  1377. _ACEOF
  1378. exit
  1379. fi
  1380. ## ------------------------ ##
  1381. ## Autoconf initialization. ##
  1382. ## ------------------------ ##
  1383. # ac_fn_cxx_try_compile LINENO
  1384. # ----------------------------
  1385. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1386. ac_fn_cxx_try_compile ()
  1387. {
  1388. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1389. rm -f conftest.$ac_objext
  1390. if { { ac_try="$ac_compile"
  1391. case "(($ac_try" in
  1392. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1393. *) ac_try_echo=$ac_try;;
  1394. esac
  1395. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1396. $as_echo "$ac_try_echo"; } >&5
  1397. (eval "$ac_compile") 2>conftest.err
  1398. ac_status=$?
  1399. if test -s conftest.err; then
  1400. grep -v '^ *+' conftest.err >conftest.er1
  1401. cat conftest.er1 >&5
  1402. mv -f conftest.er1 conftest.err
  1403. fi
  1404. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1405. test $ac_status = 0; } && {
  1406. test -z "$ac_cxx_werror_flag" ||
  1407. test ! -s conftest.err
  1408. } && test -s conftest.$ac_objext; then :
  1409. ac_retval=0
  1410. else
  1411. $as_echo "$as_me: failed program was:" >&5
  1412. sed 's/^/| /' conftest.$ac_ext >&5
  1413. ac_retval=1
  1414. fi
  1415. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1416. as_fn_set_status $ac_retval
  1417. } # ac_fn_cxx_try_compile
  1418. # ac_fn_c_try_compile LINENO
  1419. # --------------------------
  1420. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1421. ac_fn_c_try_compile ()
  1422. {
  1423. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1424. rm -f conftest.$ac_objext
  1425. if { { ac_try="$ac_compile"
  1426. case "(($ac_try" in
  1427. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1428. *) ac_try_echo=$ac_try;;
  1429. esac
  1430. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1431. $as_echo "$ac_try_echo"; } >&5
  1432. (eval "$ac_compile") 2>conftest.err
  1433. ac_status=$?
  1434. if test -s conftest.err; then
  1435. grep -v '^ *+' conftest.err >conftest.er1
  1436. cat conftest.er1 >&5
  1437. mv -f conftest.er1 conftest.err
  1438. fi
  1439. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1440. test $ac_status = 0; } && {
  1441. test -z "$ac_c_werror_flag" ||
  1442. test ! -s conftest.err
  1443. } && test -s conftest.$ac_objext; then :
  1444. ac_retval=0
  1445. else
  1446. $as_echo "$as_me: failed program was:" >&5
  1447. sed 's/^/| /' conftest.$ac_ext >&5
  1448. ac_retval=1
  1449. fi
  1450. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1451. as_fn_set_status $ac_retval
  1452. } # ac_fn_c_try_compile
  1453. # ac_fn_c_try_link LINENO
  1454. # -----------------------
  1455. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1456. ac_fn_c_try_link ()
  1457. {
  1458. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1459. rm -f conftest.$ac_objext conftest$ac_exeext
  1460. if { { ac_try="$ac_link"
  1461. case "(($ac_try" in
  1462. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1463. *) ac_try_echo=$ac_try;;
  1464. esac
  1465. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1466. $as_echo "$ac_try_echo"; } >&5
  1467. (eval "$ac_link") 2>conftest.err
  1468. ac_status=$?
  1469. if test -s conftest.err; then
  1470. grep -v '^ *+' conftest.err >conftest.er1
  1471. cat conftest.er1 >&5
  1472. mv -f conftest.er1 conftest.err
  1473. fi
  1474. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1475. test $ac_status = 0; } && {
  1476. test -z "$ac_c_werror_flag" ||
  1477. test ! -s conftest.err
  1478. } && test -s conftest$ac_exeext && {
  1479. test "$cross_compiling" = yes ||
  1480. $as_test_x conftest$ac_exeext
  1481. }; then :
  1482. ac_retval=0
  1483. else
  1484. $as_echo "$as_me: failed program was:" >&5
  1485. sed 's/^/| /' conftest.$ac_ext >&5
  1486. ac_retval=1
  1487. fi
  1488. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1489. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1490. # interfere with the next link command; also delete a directory that is
  1491. # left behind by Apple's compiler. We do this before executing the actions.
  1492. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1493. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1494. as_fn_set_status $ac_retval
  1495. } # ac_fn_c_try_link
  1496. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1497. # -------------------------------------------------------
  1498. # Tests whether HEADER exists and can be compiled using the include files in
  1499. # INCLUDES, setting the cache variable VAR accordingly.
  1500. ac_fn_c_check_header_compile ()
  1501. {
  1502. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1504. $as_echo_n "checking for $2... " >&6; }
  1505. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1506. $as_echo_n "(cached) " >&6
  1507. else
  1508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1509. /* end confdefs.h. */
  1510. $4
  1511. #include <$2>
  1512. _ACEOF
  1513. if ac_fn_c_try_compile "$LINENO"; then :
  1514. eval "$3=yes"
  1515. else
  1516. eval "$3=no"
  1517. fi
  1518. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1519. fi
  1520. eval ac_res=\$$3
  1521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1522. $as_echo "$ac_res" >&6; }
  1523. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1524. } # ac_fn_c_check_header_compile
  1525. # ac_fn_c_try_cpp LINENO
  1526. # ----------------------
  1527. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1528. ac_fn_c_try_cpp ()
  1529. {
  1530. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1531. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1532. case "(($ac_try" in
  1533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1534. *) ac_try_echo=$ac_try;;
  1535. esac
  1536. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1537. $as_echo "$ac_try_echo"; } >&5
  1538. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1539. ac_status=$?
  1540. if test -s conftest.err; then
  1541. grep -v '^ *+' conftest.err >conftest.er1
  1542. cat conftest.er1 >&5
  1543. mv -f conftest.er1 conftest.err
  1544. fi
  1545. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1546. test $ac_status = 0; } >/dev/null && {
  1547. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1548. test ! -s conftest.err
  1549. }; then :
  1550. ac_retval=0
  1551. else
  1552. $as_echo "$as_me: failed program was:" >&5
  1553. sed 's/^/| /' conftest.$ac_ext >&5
  1554. ac_retval=1
  1555. fi
  1556. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1557. as_fn_set_status $ac_retval
  1558. } # ac_fn_c_try_cpp
  1559. # ac_fn_c_try_run LINENO
  1560. # ----------------------
  1561. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1562. # that executables *can* be run.
  1563. ac_fn_c_try_run ()
  1564. {
  1565. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1566. if { { ac_try="$ac_link"
  1567. case "(($ac_try" in
  1568. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1569. *) ac_try_echo=$ac_try;;
  1570. esac
  1571. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1572. $as_echo "$ac_try_echo"; } >&5
  1573. (eval "$ac_link") 2>&5
  1574. ac_status=$?
  1575. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1576. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1577. { { case "(($ac_try" in
  1578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1579. *) ac_try_echo=$ac_try;;
  1580. esac
  1581. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1582. $as_echo "$ac_try_echo"; } >&5
  1583. (eval "$ac_try") 2>&5
  1584. ac_status=$?
  1585. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1586. test $ac_status = 0; }; }; then :
  1587. ac_retval=0
  1588. else
  1589. $as_echo "$as_me: program exited with status $ac_status" >&5
  1590. $as_echo "$as_me: failed program was:" >&5
  1591. sed 's/^/| /' conftest.$ac_ext >&5
  1592. ac_retval=$ac_status
  1593. fi
  1594. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1595. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1596. as_fn_set_status $ac_retval
  1597. } # ac_fn_c_try_run
  1598. # ac_fn_c_check_func LINENO FUNC VAR
  1599. # ----------------------------------
  1600. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1601. ac_fn_c_check_func ()
  1602. {
  1603. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1605. $as_echo_n "checking for $2... " >&6; }
  1606. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1607. $as_echo_n "(cached) " >&6
  1608. else
  1609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1610. /* end confdefs.h. */
  1611. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1612. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1613. #define $2 innocuous_$2
  1614. /* System header to define __stub macros and hopefully few prototypes,
  1615. which can conflict with char $2 (); below.
  1616. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1617. <limits.h> exists even on freestanding compilers. */
  1618. #ifdef __STDC__
  1619. # include <limits.h>
  1620. #else
  1621. # include <assert.h>
  1622. #endif
  1623. #undef $2
  1624. /* Override any GCC internal prototype to avoid an error.
  1625. Use char because int might match the return type of a GCC
  1626. builtin and then its argument prototype would still apply. */
  1627. #ifdef __cplusplus
  1628. extern "C"
  1629. #endif
  1630. char $2 ();
  1631. /* The GNU C library defines this for functions which it implements
  1632. to always fail with ENOSYS. Some functions are actually named
  1633. something starting with __ and the normal name is an alias. */
  1634. #if defined __stub_$2 || defined __stub___$2
  1635. choke me
  1636. #endif
  1637. int
  1638. main ()
  1639. {
  1640. return $2 ();
  1641. ;
  1642. return 0;
  1643. }
  1644. _ACEOF
  1645. if ac_fn_c_try_link "$LINENO"; then :
  1646. eval "$3=yes"
  1647. else
  1648. eval "$3=no"
  1649. fi
  1650. rm -f core conftest.err conftest.$ac_objext \
  1651. conftest$ac_exeext conftest.$ac_ext
  1652. fi
  1653. eval ac_res=\$$3
  1654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1655. $as_echo "$ac_res" >&6; }
  1656. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1657. } # ac_fn_c_check_func
  1658. # ac_fn_cxx_try_cpp LINENO
  1659. # ------------------------
  1660. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1661. ac_fn_cxx_try_cpp ()
  1662. {
  1663. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1664. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1665. case "(($ac_try" in
  1666. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1667. *) ac_try_echo=$ac_try;;
  1668. esac
  1669. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1670. $as_echo "$ac_try_echo"; } >&5
  1671. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1672. ac_status=$?
  1673. if test -s conftest.err; then
  1674. grep -v '^ *+' conftest.err >conftest.er1
  1675. cat conftest.er1 >&5
  1676. mv -f conftest.er1 conftest.err
  1677. fi
  1678. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1679. test $ac_status = 0; } >/dev/null && {
  1680. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1681. test ! -s conftest.err
  1682. }; then :
  1683. ac_retval=0
  1684. else
  1685. $as_echo "$as_me: failed program was:" >&5
  1686. sed 's/^/| /' conftest.$ac_ext >&5
  1687. ac_retval=1
  1688. fi
  1689. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1690. as_fn_set_status $ac_retval
  1691. } # ac_fn_cxx_try_cpp
  1692. # ac_fn_cxx_try_link LINENO
  1693. # -------------------------
  1694. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1695. ac_fn_cxx_try_link ()
  1696. {
  1697. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1698. rm -f conftest.$ac_objext conftest$ac_exeext
  1699. if { { ac_try="$ac_link"
  1700. case "(($ac_try" in
  1701. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1702. *) ac_try_echo=$ac_try;;
  1703. esac
  1704. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1705. $as_echo "$ac_try_echo"; } >&5
  1706. (eval "$ac_link") 2>conftest.err
  1707. ac_status=$?
  1708. if test -s conftest.err; then
  1709. grep -v '^ *+' conftest.err >conftest.er1
  1710. cat conftest.er1 >&5
  1711. mv -f conftest.er1 conftest.err
  1712. fi
  1713. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1714. test $ac_status = 0; } && {
  1715. test -z "$ac_cxx_werror_flag" ||
  1716. test ! -s conftest.err
  1717. } && test -s conftest$ac_exeext && {
  1718. test "$cross_compiling" = yes ||
  1719. $as_test_x conftest$ac_exeext
  1720. }; then :
  1721. ac_retval=0
  1722. else
  1723. $as_echo "$as_me: failed program was:" >&5
  1724. sed 's/^/| /' conftest.$ac_ext >&5
  1725. ac_retval=1
  1726. fi
  1727. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1728. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1729. # interfere with the next link command; also delete a directory that is
  1730. # left behind by Apple's compiler. We do this before executing the actions.
  1731. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1732. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1733. as_fn_set_status $ac_retval
  1734. } # ac_fn_cxx_try_link
  1735. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1736. # ---------------------------------------------------------
  1737. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1738. # the include files in INCLUDES and setting the cache variable VAR
  1739. # accordingly.
  1740. ac_fn_cxx_check_header_mongrel ()
  1741. {
  1742. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1743. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1745. $as_echo_n "checking for $2... " >&6; }
  1746. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1747. $as_echo_n "(cached) " >&6
  1748. fi
  1749. eval ac_res=\$$3
  1750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1751. $as_echo "$ac_res" >&6; }
  1752. else
  1753. # Is the header compilable?
  1754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1755. $as_echo_n "checking $2 usability... " >&6; }
  1756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1757. /* end confdefs.h. */
  1758. $4
  1759. #include <$2>
  1760. _ACEOF
  1761. if ac_fn_cxx_try_compile "$LINENO"; then :
  1762. ac_header_compiler=yes
  1763. else
  1764. ac_header_compiler=no
  1765. fi
  1766. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1768. $as_echo "$ac_header_compiler" >&6; }
  1769. # Is the header present?
  1770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1771. $as_echo_n "checking $2 presence... " >&6; }
  1772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1773. /* end confdefs.h. */
  1774. #include <$2>
  1775. _ACEOF
  1776. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1777. ac_header_preproc=yes
  1778. else
  1779. ac_header_preproc=no
  1780. fi
  1781. rm -f conftest.err conftest.$ac_ext
  1782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1783. $as_echo "$ac_header_preproc" >&6; }
  1784. # So? What about this header?
  1785. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1786. yes:no: )
  1787. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1788. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1789. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1790. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1791. ;;
  1792. no:yes:* )
  1793. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1794. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1795. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1796. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1797. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1798. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1799. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1800. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1801. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1802. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1803. ;;
  1804. esac
  1805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1806. $as_echo_n "checking for $2... " >&6; }
  1807. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1808. $as_echo_n "(cached) " >&6
  1809. else
  1810. eval "$3=\$ac_header_compiler"
  1811. fi
  1812. eval ac_res=\$$3
  1813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1814. $as_echo "$ac_res" >&6; }
  1815. fi
  1816. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1817. } # ac_fn_cxx_check_header_mongrel
  1818. # ac_fn_cxx_try_run LINENO
  1819. # ------------------------
  1820. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1821. # that executables *can* be run.
  1822. ac_fn_cxx_try_run ()
  1823. {
  1824. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1825. if { { ac_try="$ac_link"
  1826. case "(($ac_try" in
  1827. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1828. *) ac_try_echo=$ac_try;;
  1829. esac
  1830. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1831. $as_echo "$ac_try_echo"; } >&5
  1832. (eval "$ac_link") 2>&5
  1833. ac_status=$?
  1834. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1835. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1836. { { case "(($ac_try" in
  1837. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1838. *) ac_try_echo=$ac_try;;
  1839. esac
  1840. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1841. $as_echo "$ac_try_echo"; } >&5
  1842. (eval "$ac_try") 2>&5
  1843. ac_status=$?
  1844. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1845. test $ac_status = 0; }; }; then :
  1846. ac_retval=0
  1847. else
  1848. $as_echo "$as_me: program exited with status $ac_status" >&5
  1849. $as_echo "$as_me: failed program was:" >&5
  1850. sed 's/^/| /' conftest.$ac_ext >&5
  1851. ac_retval=$ac_status
  1852. fi
  1853. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1854. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1855. as_fn_set_status $ac_retval
  1856. } # ac_fn_cxx_try_run
  1857. # ac_fn_cxx_check_func LINENO FUNC VAR
  1858. # ------------------------------------
  1859. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1860. ac_fn_cxx_check_func ()
  1861. {
  1862. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1864. $as_echo_n "checking for $2... " >&6; }
  1865. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1866. $as_echo_n "(cached) " >&6
  1867. else
  1868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1869. /* end confdefs.h. */
  1870. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1871. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1872. #define $2 innocuous_$2
  1873. /* System header to define __stub macros and hopefully few prototypes,
  1874. which can conflict with char $2 (); below.
  1875. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1876. <limits.h> exists even on freestanding compilers. */
  1877. #ifdef __STDC__
  1878. # include <limits.h>
  1879. #else
  1880. # include <assert.h>
  1881. #endif
  1882. #undef $2
  1883. /* Override any GCC internal prototype to avoid an error.
  1884. Use char because int might match the return type of a GCC
  1885. builtin and then its argument prototype would still apply. */
  1886. #ifdef __cplusplus
  1887. extern "C"
  1888. #endif
  1889. char $2 ();
  1890. /* The GNU C library defines this for functions which it implements
  1891. to always fail with ENOSYS. Some functions are actually named
  1892. something starting with __ and the normal name is an alias. */
  1893. #if defined __stub_$2 || defined __stub___$2
  1894. choke me
  1895. #endif
  1896. int
  1897. main ()
  1898. {
  1899. return $2 ();
  1900. ;
  1901. return 0;
  1902. }
  1903. _ACEOF
  1904. if ac_fn_cxx_try_link "$LINENO"; then :
  1905. eval "$3=yes"
  1906. else
  1907. eval "$3=no"
  1908. fi
  1909. rm -f core conftest.err conftest.$ac_objext \
  1910. conftest$ac_exeext conftest.$ac_ext
  1911. fi
  1912. eval ac_res=\$$3
  1913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1914. $as_echo "$ac_res" >&6; }
  1915. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1916. } # ac_fn_cxx_check_func
  1917. cat >config.log <<_ACEOF
  1918. This file contains any messages produced by compilers while
  1919. running configure, to aid debugging if configure makes a mistake.
  1920. It was created by vcmi $as_me 0.84b, which was
  1921. generated by GNU Autoconf 2.65. Invocation command line was
  1922. $ $0 $@
  1923. _ACEOF
  1924. exec 5>>config.log
  1925. {
  1926. cat <<_ASUNAME
  1927. ## --------- ##
  1928. ## Platform. ##
  1929. ## --------- ##
  1930. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1931. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1932. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1933. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1934. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1935. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1936. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1937. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1938. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1939. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1940. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1941. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1942. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1943. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1944. _ASUNAME
  1945. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1946. for as_dir in $PATH
  1947. do
  1948. IFS=$as_save_IFS
  1949. test -z "$as_dir" && as_dir=.
  1950. $as_echo "PATH: $as_dir"
  1951. done
  1952. IFS=$as_save_IFS
  1953. } >&5
  1954. cat >&5 <<_ACEOF
  1955. ## ----------- ##
  1956. ## Core tests. ##
  1957. ## ----------- ##
  1958. _ACEOF
  1959. # Keep a trace of the command line.
  1960. # Strip out --no-create and --no-recursion so they do not pile up.
  1961. # Strip out --silent because we don't want to record it for future runs.
  1962. # Also quote any args containing shell meta-characters.
  1963. # Make two passes to allow for proper duplicate-argument suppression.
  1964. ac_configure_args=
  1965. ac_configure_args0=
  1966. ac_configure_args1=
  1967. ac_must_keep_next=false
  1968. for ac_pass in 1 2
  1969. do
  1970. for ac_arg
  1971. do
  1972. case $ac_arg in
  1973. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1974. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1975. | -silent | --silent | --silen | --sile | --sil)
  1976. continue ;;
  1977. *\'*)
  1978. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1979. esac
  1980. case $ac_pass in
  1981. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1982. 2)
  1983. as_fn_append ac_configure_args1 " '$ac_arg'"
  1984. if test $ac_must_keep_next = true; then
  1985. ac_must_keep_next=false # Got value, back to normal.
  1986. else
  1987. case $ac_arg in
  1988. *=* | --config-cache | -C | -disable-* | --disable-* \
  1989. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1990. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1991. | -with-* | --with-* | -without-* | --without-* | --x)
  1992. case "$ac_configure_args0 " in
  1993. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1994. esac
  1995. ;;
  1996. -* ) ac_must_keep_next=true ;;
  1997. esac
  1998. fi
  1999. as_fn_append ac_configure_args " '$ac_arg'"
  2000. ;;
  2001. esac
  2002. done
  2003. done
  2004. { ac_configure_args0=; unset ac_configure_args0;}
  2005. { ac_configure_args1=; unset ac_configure_args1;}
  2006. # When interrupted or exit'd, cleanup temporary files, and complete
  2007. # config.log. We remove comments because anyway the quotes in there
  2008. # would cause problems or look ugly.
  2009. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2010. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2011. trap 'exit_status=$?
  2012. # Save into config.log some information that might help in debugging.
  2013. {
  2014. echo
  2015. cat <<\_ASBOX
  2016. ## ---------------- ##
  2017. ## Cache variables. ##
  2018. ## ---------------- ##
  2019. _ASBOX
  2020. echo
  2021. # The following way of writing the cache mishandles newlines in values,
  2022. (
  2023. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2024. eval ac_val=\$$ac_var
  2025. case $ac_val in #(
  2026. *${as_nl}*)
  2027. case $ac_var in #(
  2028. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2029. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2030. esac
  2031. case $ac_var in #(
  2032. _ | IFS | as_nl) ;; #(
  2033. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2034. *) { eval $ac_var=; unset $ac_var;} ;;
  2035. esac ;;
  2036. esac
  2037. done
  2038. (set) 2>&1 |
  2039. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2040. *${as_nl}ac_space=\ *)
  2041. sed -n \
  2042. "s/'\''/'\''\\\\'\'''\''/g;
  2043. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2044. ;; #(
  2045. *)
  2046. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2047. ;;
  2048. esac |
  2049. sort
  2050. )
  2051. echo
  2052. cat <<\_ASBOX
  2053. ## ----------------- ##
  2054. ## Output variables. ##
  2055. ## ----------------- ##
  2056. _ASBOX
  2057. echo
  2058. for ac_var in $ac_subst_vars
  2059. do
  2060. eval ac_val=\$$ac_var
  2061. case $ac_val in
  2062. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2063. esac
  2064. $as_echo "$ac_var='\''$ac_val'\''"
  2065. done | sort
  2066. echo
  2067. if test -n "$ac_subst_files"; then
  2068. cat <<\_ASBOX
  2069. ## ------------------- ##
  2070. ## File substitutions. ##
  2071. ## ------------------- ##
  2072. _ASBOX
  2073. echo
  2074. for ac_var in $ac_subst_files
  2075. do
  2076. eval ac_val=\$$ac_var
  2077. case $ac_val in
  2078. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2079. esac
  2080. $as_echo "$ac_var='\''$ac_val'\''"
  2081. done | sort
  2082. echo
  2083. fi
  2084. if test -s confdefs.h; then
  2085. cat <<\_ASBOX
  2086. ## ----------- ##
  2087. ## confdefs.h. ##
  2088. ## ----------- ##
  2089. _ASBOX
  2090. echo
  2091. cat confdefs.h
  2092. echo
  2093. fi
  2094. test "$ac_signal" != 0 &&
  2095. $as_echo "$as_me: caught signal $ac_signal"
  2096. $as_echo "$as_me: exit $exit_status"
  2097. } >&5
  2098. rm -f core *.core core.conftest.* &&
  2099. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2100. exit $exit_status
  2101. ' 0
  2102. for ac_signal in 1 2 13 15; do
  2103. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2104. done
  2105. ac_signal=0
  2106. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2107. rm -f -r conftest* confdefs.h
  2108. $as_echo "/* confdefs.h */" > confdefs.h
  2109. # Predefined preprocessor variables.
  2110. cat >>confdefs.h <<_ACEOF
  2111. #define PACKAGE_NAME "$PACKAGE_NAME"
  2112. _ACEOF
  2113. cat >>confdefs.h <<_ACEOF
  2114. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2115. _ACEOF
  2116. cat >>confdefs.h <<_ACEOF
  2117. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2118. _ACEOF
  2119. cat >>confdefs.h <<_ACEOF
  2120. #define PACKAGE_STRING "$PACKAGE_STRING"
  2121. _ACEOF
  2122. cat >>confdefs.h <<_ACEOF
  2123. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2124. _ACEOF
  2125. cat >>confdefs.h <<_ACEOF
  2126. #define PACKAGE_URL "$PACKAGE_URL"
  2127. _ACEOF
  2128. # Let the site file select an alternate cache file if it wants to.
  2129. # Prefer an explicitly selected file to automatically selected ones.
  2130. ac_site_file1=NONE
  2131. ac_site_file2=NONE
  2132. if test -n "$CONFIG_SITE"; then
  2133. ac_site_file1=$CONFIG_SITE
  2134. elif test "x$prefix" != xNONE; then
  2135. ac_site_file1=$prefix/share/config.site
  2136. ac_site_file2=$prefix/etc/config.site
  2137. else
  2138. ac_site_file1=$ac_default_prefix/share/config.site
  2139. ac_site_file2=$ac_default_prefix/etc/config.site
  2140. fi
  2141. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2142. do
  2143. test "x$ac_site_file" = xNONE && continue
  2144. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2145. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2146. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2147. sed 's/^/| /' "$ac_site_file" >&5
  2148. . "$ac_site_file"
  2149. fi
  2150. done
  2151. if test -r "$cache_file"; then
  2152. # Some versions of bash will fail to source /dev/null (special files
  2153. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2154. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2155. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2156. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2157. case $cache_file in
  2158. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2159. *) . "./$cache_file";;
  2160. esac
  2161. fi
  2162. else
  2163. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2164. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2165. >$cache_file
  2166. fi
  2167. # Check that the precious variables saved in the cache have kept the same
  2168. # value.
  2169. ac_cache_corrupted=false
  2170. for ac_var in $ac_precious_vars; do
  2171. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2172. eval ac_new_set=\$ac_env_${ac_var}_set
  2173. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2174. eval ac_new_val=\$ac_env_${ac_var}_value
  2175. case $ac_old_set,$ac_new_set in
  2176. set,)
  2177. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2178. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2179. ac_cache_corrupted=: ;;
  2180. ,set)
  2181. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2182. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2183. ac_cache_corrupted=: ;;
  2184. ,);;
  2185. *)
  2186. if test "x$ac_old_val" != "x$ac_new_val"; then
  2187. # differences in whitespace do not lead to failure.
  2188. ac_old_val_w=`echo x $ac_old_val`
  2189. ac_new_val_w=`echo x $ac_new_val`
  2190. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2191. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2192. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2193. ac_cache_corrupted=:
  2194. else
  2195. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2196. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2197. eval $ac_var=\$ac_old_val
  2198. fi
  2199. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2200. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2201. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2202. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2203. fi;;
  2204. esac
  2205. # Pass precious variables to config.status.
  2206. if test "$ac_new_set" = set; then
  2207. case $ac_new_val in
  2208. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2209. *) ac_arg=$ac_var=$ac_new_val ;;
  2210. esac
  2211. case " $ac_configure_args " in
  2212. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2213. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2214. esac
  2215. fi
  2216. done
  2217. if $ac_cache_corrupted; then
  2218. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2219. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2220. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2221. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2222. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2223. fi
  2224. ## -------------------- ##
  2225. ## Main body of script. ##
  2226. ## -------------------- ##
  2227. ac_ext=c
  2228. ac_cpp='$CPP $CPPFLAGS'
  2229. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2230. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2231. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2232. # Follow NAME_VER in global.h
  2233. am__api_version='1.11'
  2234. ac_aux_dir=
  2235. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2236. for ac_t in install-sh install.sh shtool; do
  2237. if test -f "$ac_dir/$ac_t"; then
  2238. ac_aux_dir=$ac_dir
  2239. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2240. break 2
  2241. fi
  2242. done
  2243. done
  2244. if test -z "$ac_aux_dir"; then
  2245. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2246. fi
  2247. # These three variables are undocumented and unsupported,
  2248. # and are intended to be withdrawn in a future Autoconf release.
  2249. # They can cause serious problems if a builder's source tree is in a directory
  2250. # whose full name contains unusual characters.
  2251. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2252. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2253. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2254. # Find a good install program. We prefer a C program (faster),
  2255. # so one script is as good as another. But avoid the broken or
  2256. # incompatible versions:
  2257. # SysV /etc/install, /usr/sbin/install
  2258. # SunOS /usr/etc/install
  2259. # IRIX /sbin/install
  2260. # AIX /bin/install
  2261. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2262. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2263. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2264. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2265. # OS/2's system install, which has a completely different semantic
  2266. # ./install, which can be erroneously created by make from ./install.sh.
  2267. # Reject install programs that cannot install multiple files.
  2268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2269. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2270. if test -z "$INSTALL"; then
  2271. if test "${ac_cv_path_install+set}" = set; then :
  2272. $as_echo_n "(cached) " >&6
  2273. else
  2274. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2275. for as_dir in $PATH
  2276. do
  2277. IFS=$as_save_IFS
  2278. test -z "$as_dir" && as_dir=.
  2279. # Account for people who put trailing slashes in PATH elements.
  2280. case $as_dir/ in #((
  2281. ./ | .// | /[cC]/* | \
  2282. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2283. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2284. /usr/ucb/* ) ;;
  2285. *)
  2286. # OSF1 and SCO ODT 3.0 have their own names for install.
  2287. # Don't use installbsd from OSF since it installs stuff as root
  2288. # by default.
  2289. for ac_prog in ginstall scoinst install; do
  2290. for ac_exec_ext in '' $ac_executable_extensions; do
  2291. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2292. if test $ac_prog = install &&
  2293. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2294. # AIX install. It has an incompatible calling convention.
  2295. :
  2296. elif test $ac_prog = install &&
  2297. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2298. # program-specific install script used by HP pwplus--don't use.
  2299. :
  2300. else
  2301. rm -rf conftest.one conftest.two conftest.dir
  2302. echo one > conftest.one
  2303. echo two > conftest.two
  2304. mkdir conftest.dir
  2305. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2306. test -s conftest.one && test -s conftest.two &&
  2307. test -s conftest.dir/conftest.one &&
  2308. test -s conftest.dir/conftest.two
  2309. then
  2310. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2311. break 3
  2312. fi
  2313. fi
  2314. fi
  2315. done
  2316. done
  2317. ;;
  2318. esac
  2319. done
  2320. IFS=$as_save_IFS
  2321. rm -rf conftest.one conftest.two conftest.dir
  2322. fi
  2323. if test "${ac_cv_path_install+set}" = set; then
  2324. INSTALL=$ac_cv_path_install
  2325. else
  2326. # As a last resort, use the slow shell script. Don't cache a
  2327. # value for INSTALL within a source directory, because that will
  2328. # break other packages using the cache if that directory is
  2329. # removed, or if the value is a relative name.
  2330. INSTALL=$ac_install_sh
  2331. fi
  2332. fi
  2333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2334. $as_echo "$INSTALL" >&6; }
  2335. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2336. # It thinks the first close brace ends the variable substitution.
  2337. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2338. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2339. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2341. $as_echo_n "checking whether build environment is sane... " >&6; }
  2342. # Just in case
  2343. sleep 1
  2344. echo timestamp > conftest.file
  2345. # Reject unsafe characters in $srcdir or the absolute working directory
  2346. # name. Accept space and tab only in the latter.
  2347. am_lf='
  2348. '
  2349. case `pwd` in
  2350. *[\\\"\#\$\&\'\`$am_lf]*)
  2351. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2352. esac
  2353. case $srcdir in
  2354. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2355. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2356. esac
  2357. # Do `set' in a subshell so we don't clobber the current shell's
  2358. # arguments. Must try -L first in case configure is actually a
  2359. # symlink; some systems play weird games with the mod time of symlinks
  2360. # (eg FreeBSD returns the mod time of the symlink's containing
  2361. # directory).
  2362. if (
  2363. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2364. if test "$*" = "X"; then
  2365. # -L didn't work.
  2366. set X `ls -t "$srcdir/configure" conftest.file`
  2367. fi
  2368. rm -f conftest.file
  2369. if test "$*" != "X $srcdir/configure conftest.file" \
  2370. && test "$*" != "X conftest.file $srcdir/configure"; then
  2371. # If neither matched, then we have a broken ls. This can happen
  2372. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2373. # broken ls alias from the environment. This has actually
  2374. # happened. Such a system could not be considered "sane".
  2375. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2376. alias in your environment" "$LINENO" 5
  2377. fi
  2378. test "$2" = conftest.file
  2379. )
  2380. then
  2381. # Ok.
  2382. :
  2383. else
  2384. as_fn_error "newly created file is older than distributed files!
  2385. Check your system clock" "$LINENO" 5
  2386. fi
  2387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2388. $as_echo "yes" >&6; }
  2389. test "$program_prefix" != NONE &&
  2390. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2391. # Use a double $ so make ignores it.
  2392. test "$program_suffix" != NONE &&
  2393. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2394. # Double any \ or $.
  2395. # By default was `s,x,x', remove it if useless.
  2396. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2397. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2398. # expand $ac_aux_dir to an absolute path
  2399. am_aux_dir=`cd $ac_aux_dir && pwd`
  2400. if test x"${MISSING+set}" != xset; then
  2401. case $am_aux_dir in
  2402. *\ * | *\ *)
  2403. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2404. *)
  2405. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2406. esac
  2407. fi
  2408. # Use eval to expand $SHELL
  2409. if eval "$MISSING --run true"; then
  2410. am_missing_run="$MISSING --run "
  2411. else
  2412. am_missing_run=
  2413. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2414. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2415. fi
  2416. if test x"${install_sh}" != xset; then
  2417. case $am_aux_dir in
  2418. *\ * | *\ *)
  2419. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2420. *)
  2421. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2422. esac
  2423. fi
  2424. # Installed binaries are usually stripped using `strip' when the user
  2425. # run `make install-strip'. However `strip' might not be the right
  2426. # tool to use in cross-compilation environments, therefore Automake
  2427. # will honor the `STRIP' environment variable to overrule this program.
  2428. if test "$cross_compiling" != no; then
  2429. if test -n "$ac_tool_prefix"; then
  2430. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2431. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2433. $as_echo_n "checking for $ac_word... " >&6; }
  2434. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2435. $as_echo_n "(cached) " >&6
  2436. else
  2437. if test -n "$STRIP"; then
  2438. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2439. else
  2440. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2441. for as_dir in $PATH
  2442. do
  2443. IFS=$as_save_IFS
  2444. test -z "$as_dir" && as_dir=.
  2445. for ac_exec_ext in '' $ac_executable_extensions; do
  2446. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2447. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2448. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2449. break 2
  2450. fi
  2451. done
  2452. done
  2453. IFS=$as_save_IFS
  2454. fi
  2455. fi
  2456. STRIP=$ac_cv_prog_STRIP
  2457. if test -n "$STRIP"; then
  2458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2459. $as_echo "$STRIP" >&6; }
  2460. else
  2461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2462. $as_echo "no" >&6; }
  2463. fi
  2464. fi
  2465. if test -z "$ac_cv_prog_STRIP"; then
  2466. ac_ct_STRIP=$STRIP
  2467. # Extract the first word of "strip", so it can be a program name with args.
  2468. set dummy strip; ac_word=$2
  2469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2470. $as_echo_n "checking for $ac_word... " >&6; }
  2471. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2472. $as_echo_n "(cached) " >&6
  2473. else
  2474. if test -n "$ac_ct_STRIP"; then
  2475. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2476. else
  2477. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2478. for as_dir in $PATH
  2479. do
  2480. IFS=$as_save_IFS
  2481. test -z "$as_dir" && as_dir=.
  2482. for ac_exec_ext in '' $ac_executable_extensions; do
  2483. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2484. ac_cv_prog_ac_ct_STRIP="strip"
  2485. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2486. break 2
  2487. fi
  2488. done
  2489. done
  2490. IFS=$as_save_IFS
  2491. fi
  2492. fi
  2493. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2494. if test -n "$ac_ct_STRIP"; then
  2495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2496. $as_echo "$ac_ct_STRIP" >&6; }
  2497. else
  2498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2499. $as_echo "no" >&6; }
  2500. fi
  2501. if test "x$ac_ct_STRIP" = x; then
  2502. STRIP=":"
  2503. else
  2504. case $cross_compiling:$ac_tool_warned in
  2505. yes:)
  2506. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2507. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2508. ac_tool_warned=yes ;;
  2509. esac
  2510. STRIP=$ac_ct_STRIP
  2511. fi
  2512. else
  2513. STRIP="$ac_cv_prog_STRIP"
  2514. fi
  2515. fi
  2516. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2518. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2519. if test -z "$MKDIR_P"; then
  2520. if test "${ac_cv_path_mkdir+set}" = set; then :
  2521. $as_echo_n "(cached) " >&6
  2522. else
  2523. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2524. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2525. do
  2526. IFS=$as_save_IFS
  2527. test -z "$as_dir" && as_dir=.
  2528. for ac_prog in mkdir gmkdir; do
  2529. for ac_exec_ext in '' $ac_executable_extensions; do
  2530. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2531. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2532. 'mkdir (GNU coreutils) '* | \
  2533. 'mkdir (coreutils) '* | \
  2534. 'mkdir (fileutils) '4.1*)
  2535. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2536. break 3;;
  2537. esac
  2538. done
  2539. done
  2540. done
  2541. IFS=$as_save_IFS
  2542. fi
  2543. test -d ./--version && rmdir ./--version
  2544. if test "${ac_cv_path_mkdir+set}" = set; then
  2545. MKDIR_P="$ac_cv_path_mkdir -p"
  2546. else
  2547. # As a last resort, use the slow shell script. Don't cache a
  2548. # value for MKDIR_P within a source directory, because that will
  2549. # break other packages using the cache if that directory is
  2550. # removed, or if the value is a relative name.
  2551. MKDIR_P="$ac_install_sh -d"
  2552. fi
  2553. fi
  2554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2555. $as_echo "$MKDIR_P" >&6; }
  2556. mkdir_p="$MKDIR_P"
  2557. case $mkdir_p in
  2558. [\\/$]* | ?:[\\/]*) ;;
  2559. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2560. esac
  2561. for ac_prog in gawk mawk nawk awk
  2562. do
  2563. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2564. set dummy $ac_prog; ac_word=$2
  2565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2566. $as_echo_n "checking for $ac_word... " >&6; }
  2567. if test "${ac_cv_prog_AWK+set}" = set; then :
  2568. $as_echo_n "(cached) " >&6
  2569. else
  2570. if test -n "$AWK"; then
  2571. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2572. else
  2573. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2574. for as_dir in $PATH
  2575. do
  2576. IFS=$as_save_IFS
  2577. test -z "$as_dir" && as_dir=.
  2578. for ac_exec_ext in '' $ac_executable_extensions; do
  2579. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2580. ac_cv_prog_AWK="$ac_prog"
  2581. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2582. break 2
  2583. fi
  2584. done
  2585. done
  2586. IFS=$as_save_IFS
  2587. fi
  2588. fi
  2589. AWK=$ac_cv_prog_AWK
  2590. if test -n "$AWK"; then
  2591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2592. $as_echo "$AWK" >&6; }
  2593. else
  2594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2595. $as_echo "no" >&6; }
  2596. fi
  2597. test -n "$AWK" && break
  2598. done
  2599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2600. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2601. set x ${MAKE-make}
  2602. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2603. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2604. $as_echo_n "(cached) " >&6
  2605. else
  2606. cat >conftest.make <<\_ACEOF
  2607. SHELL = /bin/sh
  2608. all:
  2609. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2610. _ACEOF
  2611. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2612. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2613. *@@@%%%=?*=@@@%%%*)
  2614. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2615. *)
  2616. eval ac_cv_prog_make_${ac_make}_set=no;;
  2617. esac
  2618. rm -f conftest.make
  2619. fi
  2620. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2622. $as_echo "yes" >&6; }
  2623. SET_MAKE=
  2624. else
  2625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2626. $as_echo "no" >&6; }
  2627. SET_MAKE="MAKE=${MAKE-make}"
  2628. fi
  2629. rm -rf .tst 2>/dev/null
  2630. mkdir .tst 2>/dev/null
  2631. if test -d .tst; then
  2632. am__leading_dot=.
  2633. else
  2634. am__leading_dot=_
  2635. fi
  2636. rmdir .tst 2>/dev/null
  2637. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2638. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2639. # is not polluted with repeated "-I."
  2640. am__isrc=' -I$(srcdir)'
  2641. # test to see if srcdir already configured
  2642. if test -f $srcdir/config.status; then
  2643. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2644. fi
  2645. fi
  2646. # test whether we have cygpath
  2647. if test -z "$CYGPATH_W"; then
  2648. if (cygpath --version) >/dev/null 2>/dev/null; then
  2649. CYGPATH_W='cygpath -w'
  2650. else
  2651. CYGPATH_W=echo
  2652. fi
  2653. fi
  2654. # Define the identity of the package.
  2655. PACKAGE='vcmi'
  2656. VERSION='0.84b'
  2657. cat >>confdefs.h <<_ACEOF
  2658. #define PACKAGE "$PACKAGE"
  2659. _ACEOF
  2660. cat >>confdefs.h <<_ACEOF
  2661. #define VERSION "$VERSION"
  2662. _ACEOF
  2663. # Some tools Automake needs.
  2664. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2665. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2666. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2667. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2668. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2669. # We need awk for the "check" target. The system "awk" is bad on
  2670. # some platforms.
  2671. # Always define AMTAR for backward compatibility.
  2672. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2673. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2674. # Checks for build toolchain
  2675. ac_ext=cpp
  2676. ac_cpp='$CXXCPP $CPPFLAGS'
  2677. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2678. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2679. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2680. ac_ext=cpp
  2681. ac_cpp='$CXXCPP $CPPFLAGS'
  2682. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2683. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2684. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2685. if test -z "$CXX"; then
  2686. if test -n "$CCC"; then
  2687. CXX=$CCC
  2688. else
  2689. if test -n "$ac_tool_prefix"; then
  2690. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2691. do
  2692. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2693. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2695. $as_echo_n "checking for $ac_word... " >&6; }
  2696. if test "${ac_cv_prog_CXX+set}" = set; then :
  2697. $as_echo_n "(cached) " >&6
  2698. else
  2699. if test -n "$CXX"; then
  2700. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2701. else
  2702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2703. for as_dir in $PATH
  2704. do
  2705. IFS=$as_save_IFS
  2706. test -z "$as_dir" && as_dir=.
  2707. for ac_exec_ext in '' $ac_executable_extensions; do
  2708. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2709. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2710. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2711. break 2
  2712. fi
  2713. done
  2714. done
  2715. IFS=$as_save_IFS
  2716. fi
  2717. fi
  2718. CXX=$ac_cv_prog_CXX
  2719. if test -n "$CXX"; then
  2720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2721. $as_echo "$CXX" >&6; }
  2722. else
  2723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2724. $as_echo "no" >&6; }
  2725. fi
  2726. test -n "$CXX" && break
  2727. done
  2728. fi
  2729. if test -z "$CXX"; then
  2730. ac_ct_CXX=$CXX
  2731. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2732. do
  2733. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2734. set dummy $ac_prog; ac_word=$2
  2735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2736. $as_echo_n "checking for $ac_word... " >&6; }
  2737. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  2738. $as_echo_n "(cached) " >&6
  2739. else
  2740. if test -n "$ac_ct_CXX"; then
  2741. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2742. else
  2743. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2744. for as_dir in $PATH
  2745. do
  2746. IFS=$as_save_IFS
  2747. test -z "$as_dir" && as_dir=.
  2748. for ac_exec_ext in '' $ac_executable_extensions; do
  2749. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2750. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2751. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2752. break 2
  2753. fi
  2754. done
  2755. done
  2756. IFS=$as_save_IFS
  2757. fi
  2758. fi
  2759. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2760. if test -n "$ac_ct_CXX"; then
  2761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2762. $as_echo "$ac_ct_CXX" >&6; }
  2763. else
  2764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2765. $as_echo "no" >&6; }
  2766. fi
  2767. test -n "$ac_ct_CXX" && break
  2768. done
  2769. if test "x$ac_ct_CXX" = x; then
  2770. CXX="g++"
  2771. else
  2772. case $cross_compiling:$ac_tool_warned in
  2773. yes:)
  2774. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2775. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2776. ac_tool_warned=yes ;;
  2777. esac
  2778. CXX=$ac_ct_CXX
  2779. fi
  2780. fi
  2781. fi
  2782. fi
  2783. # Provide some information about the compiler.
  2784. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2785. set X $ac_compile
  2786. ac_compiler=$2
  2787. for ac_option in --version -v -V -qversion; do
  2788. { { ac_try="$ac_compiler $ac_option >&5"
  2789. case "(($ac_try" in
  2790. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2791. *) ac_try_echo=$ac_try;;
  2792. esac
  2793. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2794. $as_echo "$ac_try_echo"; } >&5
  2795. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2796. ac_status=$?
  2797. if test -s conftest.err; then
  2798. sed '10a\
  2799. ... rest of stderr output deleted ...
  2800. 10q' conftest.err >conftest.er1
  2801. cat conftest.er1 >&5
  2802. fi
  2803. rm -f conftest.er1 conftest.err
  2804. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2805. test $ac_status = 0; }
  2806. done
  2807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2808. /* end confdefs.h. */
  2809. int
  2810. main ()
  2811. {
  2812. ;
  2813. return 0;
  2814. }
  2815. _ACEOF
  2816. ac_clean_files_save=$ac_clean_files
  2817. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2818. # Try to create an executable without -o first, disregard a.out.
  2819. # It will help us diagnose broken compilers, and finding out an intuition
  2820. # of exeext.
  2821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2822. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2823. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2824. # The possible output files:
  2825. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2826. ac_rmfiles=
  2827. for ac_file in $ac_files
  2828. do
  2829. case $ac_file in
  2830. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2831. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2832. esac
  2833. done
  2834. rm -f $ac_rmfiles
  2835. if { { ac_try="$ac_link_default"
  2836. case "(($ac_try" in
  2837. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2838. *) ac_try_echo=$ac_try;;
  2839. esac
  2840. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2841. $as_echo "$ac_try_echo"; } >&5
  2842. (eval "$ac_link_default") 2>&5
  2843. ac_status=$?
  2844. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2845. test $ac_status = 0; }; then :
  2846. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2847. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2848. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2849. # so that the user can short-circuit this test for compilers unknown to
  2850. # Autoconf.
  2851. for ac_file in $ac_files ''
  2852. do
  2853. test -f "$ac_file" || continue
  2854. case $ac_file in
  2855. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2856. ;;
  2857. [ab].out )
  2858. # We found the default executable, but exeext='' is most
  2859. # certainly right.
  2860. break;;
  2861. *.* )
  2862. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2863. then :; else
  2864. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2865. fi
  2866. # We set ac_cv_exeext here because the later test for it is not
  2867. # safe: cross compilers may not add the suffix if given an `-o'
  2868. # argument, so we may need to know it at that point already.
  2869. # Even if this section looks crufty: it has the advantage of
  2870. # actually working.
  2871. break;;
  2872. * )
  2873. break;;
  2874. esac
  2875. done
  2876. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2877. else
  2878. ac_file=''
  2879. fi
  2880. if test -z "$ac_file"; then :
  2881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2882. $as_echo "no" >&6; }
  2883. $as_echo "$as_me: failed program was:" >&5
  2884. sed 's/^/| /' conftest.$ac_ext >&5
  2885. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2886. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2887. { as_fn_set_status 77
  2888. as_fn_error "C++ compiler cannot create executables
  2889. See \`config.log' for more details." "$LINENO" 5; }; }
  2890. else
  2891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2892. $as_echo "yes" >&6; }
  2893. fi
  2894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  2895. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2897. $as_echo "$ac_file" >&6; }
  2898. ac_exeext=$ac_cv_exeext
  2899. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2900. ac_clean_files=$ac_clean_files_save
  2901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2902. $as_echo_n "checking for suffix of executables... " >&6; }
  2903. if { { ac_try="$ac_link"
  2904. case "(($ac_try" in
  2905. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2906. *) ac_try_echo=$ac_try;;
  2907. esac
  2908. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2909. $as_echo "$ac_try_echo"; } >&5
  2910. (eval "$ac_link") 2>&5
  2911. ac_status=$?
  2912. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2913. test $ac_status = 0; }; then :
  2914. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2915. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2916. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2917. # `rm'.
  2918. for ac_file in conftest.exe conftest conftest.*; do
  2919. test -f "$ac_file" || continue
  2920. case $ac_file in
  2921. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2922. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2923. break;;
  2924. * ) break;;
  2925. esac
  2926. done
  2927. else
  2928. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2929. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2930. as_fn_error "cannot compute suffix of executables: cannot compile and link
  2931. See \`config.log' for more details." "$LINENO" 5; }
  2932. fi
  2933. rm -f conftest conftest$ac_cv_exeext
  2934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2935. $as_echo "$ac_cv_exeext" >&6; }
  2936. rm -f conftest.$ac_ext
  2937. EXEEXT=$ac_cv_exeext
  2938. ac_exeext=$EXEEXT
  2939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2940. /* end confdefs.h. */
  2941. #include <stdio.h>
  2942. int
  2943. main ()
  2944. {
  2945. FILE *f = fopen ("conftest.out", "w");
  2946. return ferror (f) || fclose (f) != 0;
  2947. ;
  2948. return 0;
  2949. }
  2950. _ACEOF
  2951. ac_clean_files="$ac_clean_files conftest.out"
  2952. # Check that the compiler produces executables we can run. If not, either
  2953. # the compiler is broken, or we cross compile.
  2954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2955. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2956. if test "$cross_compiling" != yes; then
  2957. { { ac_try="$ac_link"
  2958. case "(($ac_try" in
  2959. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2960. *) ac_try_echo=$ac_try;;
  2961. esac
  2962. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2963. $as_echo "$ac_try_echo"; } >&5
  2964. (eval "$ac_link") 2>&5
  2965. ac_status=$?
  2966. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2967. test $ac_status = 0; }
  2968. if { ac_try='./conftest$ac_cv_exeext'
  2969. { { case "(($ac_try" in
  2970. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2971. *) ac_try_echo=$ac_try;;
  2972. esac
  2973. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2974. $as_echo "$ac_try_echo"; } >&5
  2975. (eval "$ac_try") 2>&5
  2976. ac_status=$?
  2977. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2978. test $ac_status = 0; }; }; then
  2979. cross_compiling=no
  2980. else
  2981. if test "$cross_compiling" = maybe; then
  2982. cross_compiling=yes
  2983. else
  2984. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2985. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2986. as_fn_error "cannot run C++ compiled programs.
  2987. If you meant to cross compile, use \`--host'.
  2988. See \`config.log' for more details." "$LINENO" 5; }
  2989. fi
  2990. fi
  2991. fi
  2992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2993. $as_echo "$cross_compiling" >&6; }
  2994. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2995. ac_clean_files=$ac_clean_files_save
  2996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2997. $as_echo_n "checking for suffix of object files... " >&6; }
  2998. if test "${ac_cv_objext+set}" = set; then :
  2999. $as_echo_n "(cached) " >&6
  3000. else
  3001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3002. /* end confdefs.h. */
  3003. int
  3004. main ()
  3005. {
  3006. ;
  3007. return 0;
  3008. }
  3009. _ACEOF
  3010. rm -f conftest.o conftest.obj
  3011. if { { ac_try="$ac_compile"
  3012. case "(($ac_try" in
  3013. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3014. *) ac_try_echo=$ac_try;;
  3015. esac
  3016. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3017. $as_echo "$ac_try_echo"; } >&5
  3018. (eval "$ac_compile") 2>&5
  3019. ac_status=$?
  3020. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3021. test $ac_status = 0; }; then :
  3022. for ac_file in conftest.o conftest.obj conftest.*; do
  3023. test -f "$ac_file" || continue;
  3024. case $ac_file in
  3025. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3026. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3027. break;;
  3028. esac
  3029. done
  3030. else
  3031. $as_echo "$as_me: failed program was:" >&5
  3032. sed 's/^/| /' conftest.$ac_ext >&5
  3033. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3034. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3035. as_fn_error "cannot compute suffix of object files: cannot compile
  3036. See \`config.log' for more details." "$LINENO" 5; }
  3037. fi
  3038. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3039. fi
  3040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3041. $as_echo "$ac_cv_objext" >&6; }
  3042. OBJEXT=$ac_cv_objext
  3043. ac_objext=$OBJEXT
  3044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3045. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3046. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3047. $as_echo_n "(cached) " >&6
  3048. else
  3049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3050. /* end confdefs.h. */
  3051. int
  3052. main ()
  3053. {
  3054. #ifndef __GNUC__
  3055. choke me
  3056. #endif
  3057. ;
  3058. return 0;
  3059. }
  3060. _ACEOF
  3061. if ac_fn_cxx_try_compile "$LINENO"; then :
  3062. ac_compiler_gnu=yes
  3063. else
  3064. ac_compiler_gnu=no
  3065. fi
  3066. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3067. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3068. fi
  3069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3070. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3071. if test $ac_compiler_gnu = yes; then
  3072. GXX=yes
  3073. else
  3074. GXX=
  3075. fi
  3076. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3077. ac_save_CXXFLAGS=$CXXFLAGS
  3078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3079. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3080. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3081. $as_echo_n "(cached) " >&6
  3082. else
  3083. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3084. ac_cxx_werror_flag=yes
  3085. ac_cv_prog_cxx_g=no
  3086. CXXFLAGS="-g"
  3087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3088. /* end confdefs.h. */
  3089. int
  3090. main ()
  3091. {
  3092. ;
  3093. return 0;
  3094. }
  3095. _ACEOF
  3096. if ac_fn_cxx_try_compile "$LINENO"; then :
  3097. ac_cv_prog_cxx_g=yes
  3098. else
  3099. CXXFLAGS=""
  3100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3101. /* end confdefs.h. */
  3102. int
  3103. main ()
  3104. {
  3105. ;
  3106. return 0;
  3107. }
  3108. _ACEOF
  3109. if ac_fn_cxx_try_compile "$LINENO"; then :
  3110. else
  3111. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3112. CXXFLAGS="-g"
  3113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3114. /* end confdefs.h. */
  3115. int
  3116. main ()
  3117. {
  3118. ;
  3119. return 0;
  3120. }
  3121. _ACEOF
  3122. if ac_fn_cxx_try_compile "$LINENO"; then :
  3123. ac_cv_prog_cxx_g=yes
  3124. fi
  3125. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3126. fi
  3127. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3128. fi
  3129. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3130. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3131. fi
  3132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3133. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3134. if test "$ac_test_CXXFLAGS" = set; then
  3135. CXXFLAGS=$ac_save_CXXFLAGS
  3136. elif test $ac_cv_prog_cxx_g = yes; then
  3137. if test "$GXX" = yes; then
  3138. CXXFLAGS="-g -O2"
  3139. else
  3140. CXXFLAGS="-g"
  3141. fi
  3142. else
  3143. if test "$GXX" = yes; then
  3144. CXXFLAGS="-O2"
  3145. else
  3146. CXXFLAGS=
  3147. fi
  3148. fi
  3149. ac_ext=cpp
  3150. ac_cpp='$CXXCPP $CPPFLAGS'
  3151. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3152. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3153. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3154. DEPDIR="${am__leading_dot}deps"
  3155. ac_config_commands="$ac_config_commands depfiles"
  3156. am_make=${MAKE-make}
  3157. cat > confinc << 'END'
  3158. am__doit:
  3159. @echo this is the am__doit target
  3160. .PHONY: am__doit
  3161. END
  3162. # If we don't find an include directive, just comment out the code.
  3163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3164. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3165. am__include="#"
  3166. am__quote=
  3167. _am_result=none
  3168. # First try GNU make style include.
  3169. echo "include confinc" > confmf
  3170. # Ignore all kinds of additional output from `make'.
  3171. case `$am_make -s -f confmf 2> /dev/null` in #(
  3172. *the\ am__doit\ target*)
  3173. am__include=include
  3174. am__quote=
  3175. _am_result=GNU
  3176. ;;
  3177. esac
  3178. # Now try BSD make style include.
  3179. if test "$am__include" = "#"; then
  3180. echo '.include "confinc"' > confmf
  3181. case `$am_make -s -f confmf 2> /dev/null` in #(
  3182. *the\ am__doit\ target*)
  3183. am__include=.include
  3184. am__quote="\""
  3185. _am_result=BSD
  3186. ;;
  3187. esac
  3188. fi
  3189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3190. $as_echo "$_am_result" >&6; }
  3191. rm -f confinc confmf
  3192. # Check whether --enable-dependency-tracking was given.
  3193. if test "${enable_dependency_tracking+set}" = set; then :
  3194. enableval=$enable_dependency_tracking;
  3195. fi
  3196. if test "x$enable_dependency_tracking" != xno; then
  3197. am_depcomp="$ac_aux_dir/depcomp"
  3198. AMDEPBACKSLASH='\'
  3199. fi
  3200. if test "x$enable_dependency_tracking" != xno; then
  3201. AMDEP_TRUE=
  3202. AMDEP_FALSE='#'
  3203. else
  3204. AMDEP_TRUE='#'
  3205. AMDEP_FALSE=
  3206. fi
  3207. depcc="$CXX" am_compiler_list=
  3208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3209. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3210. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  3211. $as_echo_n "(cached) " >&6
  3212. else
  3213. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3214. # We make a subdir and do the tests there. Otherwise we can end up
  3215. # making bogus files that we don't know about and never remove. For
  3216. # instance it was reported that on HP-UX the gcc test will end up
  3217. # making a dummy file named `D' -- because `-MD' means `put the output
  3218. # in D'.
  3219. mkdir conftest.dir
  3220. # Copy depcomp to subdir because otherwise we won't find it if we're
  3221. # using a relative directory.
  3222. cp "$am_depcomp" conftest.dir
  3223. cd conftest.dir
  3224. # We will build objects and dependencies in a subdirectory because
  3225. # it helps to detect inapplicable dependency modes. For instance
  3226. # both Tru64's cc and ICC support -MD to output dependencies as a
  3227. # side effect of compilation, but ICC will put the dependencies in
  3228. # the current directory while Tru64 will put them in the object
  3229. # directory.
  3230. mkdir sub
  3231. am_cv_CXX_dependencies_compiler_type=none
  3232. if test "$am_compiler_list" = ""; then
  3233. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3234. fi
  3235. am__universal=false
  3236. case " $depcc " in #(
  3237. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3238. esac
  3239. for depmode in $am_compiler_list; do
  3240. # Setup a source with many dependencies, because some compilers
  3241. # like to wrap large dependency lists on column 80 (with \), and
  3242. # we should not choose a depcomp mode which is confused by this.
  3243. #
  3244. # We need to recreate these files for each test, as the compiler may
  3245. # overwrite some of them when testing with obscure command lines.
  3246. # This happens at least with the AIX C compiler.
  3247. : > sub/conftest.c
  3248. for i in 1 2 3 4 5 6; do
  3249. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3250. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3251. # Solaris 8's {/usr,}/bin/sh.
  3252. touch sub/conftst$i.h
  3253. done
  3254. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3255. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3256. # mode. It turns out that the SunPro C++ compiler does not properly
  3257. # handle `-M -o', and we need to detect this. Also, some Intel
  3258. # versions had trouble with output in subdirs
  3259. am__obj=sub/conftest.${OBJEXT-o}
  3260. am__minus_obj="-o $am__obj"
  3261. case $depmode in
  3262. gcc)
  3263. # This depmode causes a compiler race in universal mode.
  3264. test "$am__universal" = false || continue
  3265. ;;
  3266. nosideeffect)
  3267. # after this tag, mechanisms are not by side-effect, so they'll
  3268. # only be used when explicitly requested
  3269. if test "x$enable_dependency_tracking" = xyes; then
  3270. continue
  3271. else
  3272. break
  3273. fi
  3274. ;;
  3275. msvisualcpp | msvcmsys)
  3276. # This compiler won't grok `-c -o', but also, the minuso test has
  3277. # not run yet. These depmodes are late enough in the game, and
  3278. # so weak that their functioning should not be impacted.
  3279. am__obj=conftest.${OBJEXT-o}
  3280. am__minus_obj=
  3281. ;;
  3282. none) break ;;
  3283. esac
  3284. if depmode=$depmode \
  3285. source=sub/conftest.c object=$am__obj \
  3286. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3287. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3288. >/dev/null 2>conftest.err &&
  3289. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3290. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3291. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3292. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3293. # icc doesn't choke on unknown options, it will just issue warnings
  3294. # or remarks (even with -Werror). So we grep stderr for any message
  3295. # that says an option was ignored or not supported.
  3296. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3297. # icc: Command line warning: ignoring option '-M'; no argument required
  3298. # The diagnosis changed in icc 8.0:
  3299. # icc: Command line remark: option '-MP' not supported
  3300. if (grep 'ignoring option' conftest.err ||
  3301. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3302. am_cv_CXX_dependencies_compiler_type=$depmode
  3303. break
  3304. fi
  3305. fi
  3306. done
  3307. cd ..
  3308. rm -rf conftest.dir
  3309. else
  3310. am_cv_CXX_dependencies_compiler_type=none
  3311. fi
  3312. fi
  3313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3314. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3315. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3316. if
  3317. test "x$enable_dependency_tracking" != xno \
  3318. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3319. am__fastdepCXX_TRUE=
  3320. am__fastdepCXX_FALSE='#'
  3321. else
  3322. am__fastdepCXX_TRUE='#'
  3323. am__fastdepCXX_FALSE=
  3324. fi
  3325. # Check whether --enable-shared was given.
  3326. if test "${enable_shared+set}" = set; then :
  3327. enableval=$enable_shared; p=${PACKAGE-default}
  3328. case $enableval in
  3329. yes) enable_shared=yes ;;
  3330. no) enable_shared=no ;;
  3331. *)
  3332. enable_shared=no
  3333. # Look at the argument we got. We use all the common list separators.
  3334. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3335. for pkg in $enableval; do
  3336. IFS="$lt_save_ifs"
  3337. if test "X$pkg" = "X$p"; then
  3338. enable_shared=yes
  3339. fi
  3340. done
  3341. IFS="$lt_save_ifs"
  3342. ;;
  3343. esac
  3344. else
  3345. enable_shared=yes
  3346. fi
  3347. # Check whether --enable-static was given.
  3348. if test "${enable_static+set}" = set; then :
  3349. enableval=$enable_static; p=${PACKAGE-default}
  3350. case $enableval in
  3351. yes) enable_static=yes ;;
  3352. no) enable_static=no ;;
  3353. *)
  3354. enable_static=no
  3355. # Look at the argument we got. We use all the common list separators.
  3356. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3357. for pkg in $enableval; do
  3358. IFS="$lt_save_ifs"
  3359. if test "X$pkg" = "X$p"; then
  3360. enable_static=yes
  3361. fi
  3362. done
  3363. IFS="$lt_save_ifs"
  3364. ;;
  3365. esac
  3366. else
  3367. enable_static=no
  3368. fi
  3369. case `pwd` in
  3370. *\ * | *\ *)
  3371. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3372. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3373. esac
  3374. macro_version='2.2.10'
  3375. macro_revision='1.3175'
  3376. ltmain="$ac_aux_dir/ltmain.sh"
  3377. # Make sure we can run config.sub.
  3378. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3379. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3381. $as_echo_n "checking build system type... " >&6; }
  3382. if test "${ac_cv_build+set}" = set; then :
  3383. $as_echo_n "(cached) " >&6
  3384. else
  3385. ac_build_alias=$build_alias
  3386. test "x$ac_build_alias" = x &&
  3387. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3388. test "x$ac_build_alias" = x &&
  3389. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  3390. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3391. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3392. fi
  3393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3394. $as_echo "$ac_cv_build" >&6; }
  3395. case $ac_cv_build in
  3396. *-*-*) ;;
  3397. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  3398. esac
  3399. build=$ac_cv_build
  3400. ac_save_IFS=$IFS; IFS='-'
  3401. set x $ac_cv_build
  3402. shift
  3403. build_cpu=$1
  3404. build_vendor=$2
  3405. shift; shift
  3406. # Remember, the first character of IFS is used to create $*,
  3407. # except with old shells:
  3408. build_os=$*
  3409. IFS=$ac_save_IFS
  3410. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3412. $as_echo_n "checking host system type... " >&6; }
  3413. if test "${ac_cv_host+set}" = set; then :
  3414. $as_echo_n "(cached) " >&6
  3415. else
  3416. if test "x$host_alias" = x; then
  3417. ac_cv_host=$ac_cv_build
  3418. else
  3419. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3420. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3421. fi
  3422. fi
  3423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3424. $as_echo "$ac_cv_host" >&6; }
  3425. case $ac_cv_host in
  3426. *-*-*) ;;
  3427. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  3428. esac
  3429. host=$ac_cv_host
  3430. ac_save_IFS=$IFS; IFS='-'
  3431. set x $ac_cv_host
  3432. shift
  3433. host_cpu=$1
  3434. host_vendor=$2
  3435. shift; shift
  3436. # Remember, the first character of IFS is used to create $*,
  3437. # except with old shells:
  3438. host_os=$*
  3439. IFS=$ac_save_IFS
  3440. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3441. # Backslashify metacharacters that are still active within
  3442. # double-quoted strings.
  3443. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3444. # Same as above, but do not quote variable references.
  3445. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3446. # Sed substitution to delay expansion of an escaped shell variable in a
  3447. # double_quote_subst'ed string.
  3448. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3449. # Sed substitution to delay expansion of an escaped single quote.
  3450. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3451. # Sed substitution to avoid accidental globbing in evaled expressions
  3452. no_glob_subst='s/\*/\\\*/g'
  3453. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3454. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3455. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3457. $as_echo_n "checking how to print strings... " >&6; }
  3458. # Test print first, because it will be a builtin if present.
  3459. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  3460. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3461. ECHO='print -r --'
  3462. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3463. ECHO='printf %s\n'
  3464. else
  3465. # Use this function as a fallback that always works.
  3466. func_fallback_echo ()
  3467. {
  3468. eval 'cat <<_LTECHO_EOF
  3469. $1
  3470. _LTECHO_EOF'
  3471. }
  3472. ECHO='func_fallback_echo'
  3473. fi
  3474. # func_echo_all arg...
  3475. # Invoke $ECHO with all args, space-separated.
  3476. func_echo_all ()
  3477. {
  3478. $ECHO ""
  3479. }
  3480. case "$ECHO" in
  3481. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3482. $as_echo "printf" >&6; } ;;
  3483. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3484. $as_echo "print -r" >&6; } ;;
  3485. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3486. $as_echo "cat" >&6; } ;;
  3487. esac
  3488. ac_ext=c
  3489. ac_cpp='$CPP $CPPFLAGS'
  3490. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3491. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3492. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3493. if test -n "$ac_tool_prefix"; then
  3494. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3495. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3497. $as_echo_n "checking for $ac_word... " >&6; }
  3498. if test "${ac_cv_prog_CC+set}" = set; then :
  3499. $as_echo_n "(cached) " >&6
  3500. else
  3501. if test -n "$CC"; then
  3502. ac_cv_prog_CC="$CC" # Let the user override the test.
  3503. else
  3504. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3505. for as_dir in $PATH
  3506. do
  3507. IFS=$as_save_IFS
  3508. test -z "$as_dir" && as_dir=.
  3509. for ac_exec_ext in '' $ac_executable_extensions; do
  3510. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3511. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3512. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3513. break 2
  3514. fi
  3515. done
  3516. done
  3517. IFS=$as_save_IFS
  3518. fi
  3519. fi
  3520. CC=$ac_cv_prog_CC
  3521. if test -n "$CC"; then
  3522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3523. $as_echo "$CC" >&6; }
  3524. else
  3525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3526. $as_echo "no" >&6; }
  3527. fi
  3528. fi
  3529. if test -z "$ac_cv_prog_CC"; then
  3530. ac_ct_CC=$CC
  3531. # Extract the first word of "gcc", so it can be a program name with args.
  3532. set dummy gcc; ac_word=$2
  3533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3534. $as_echo_n "checking for $ac_word... " >&6; }
  3535. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3536. $as_echo_n "(cached) " >&6
  3537. else
  3538. if test -n "$ac_ct_CC"; then
  3539. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3540. else
  3541. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3542. for as_dir in $PATH
  3543. do
  3544. IFS=$as_save_IFS
  3545. test -z "$as_dir" && as_dir=.
  3546. for ac_exec_ext in '' $ac_executable_extensions; do
  3547. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3548. ac_cv_prog_ac_ct_CC="gcc"
  3549. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3550. break 2
  3551. fi
  3552. done
  3553. done
  3554. IFS=$as_save_IFS
  3555. fi
  3556. fi
  3557. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3558. if test -n "$ac_ct_CC"; then
  3559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3560. $as_echo "$ac_ct_CC" >&6; }
  3561. else
  3562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3563. $as_echo "no" >&6; }
  3564. fi
  3565. if test "x$ac_ct_CC" = x; then
  3566. CC=""
  3567. else
  3568. case $cross_compiling:$ac_tool_warned in
  3569. yes:)
  3570. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3571. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3572. ac_tool_warned=yes ;;
  3573. esac
  3574. CC=$ac_ct_CC
  3575. fi
  3576. else
  3577. CC="$ac_cv_prog_CC"
  3578. fi
  3579. if test -z "$CC"; then
  3580. if test -n "$ac_tool_prefix"; then
  3581. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3582. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3584. $as_echo_n "checking for $ac_word... " >&6; }
  3585. if test "${ac_cv_prog_CC+set}" = set; then :
  3586. $as_echo_n "(cached) " >&6
  3587. else
  3588. if test -n "$CC"; then
  3589. ac_cv_prog_CC="$CC" # Let the user override the test.
  3590. else
  3591. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3592. for as_dir in $PATH
  3593. do
  3594. IFS=$as_save_IFS
  3595. test -z "$as_dir" && as_dir=.
  3596. for ac_exec_ext in '' $ac_executable_extensions; do
  3597. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3598. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3599. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3600. break 2
  3601. fi
  3602. done
  3603. done
  3604. IFS=$as_save_IFS
  3605. fi
  3606. fi
  3607. CC=$ac_cv_prog_CC
  3608. if test -n "$CC"; then
  3609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3610. $as_echo "$CC" >&6; }
  3611. else
  3612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3613. $as_echo "no" >&6; }
  3614. fi
  3615. fi
  3616. fi
  3617. if test -z "$CC"; then
  3618. # Extract the first word of "cc", so it can be a program name with args.
  3619. set dummy cc; ac_word=$2
  3620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3621. $as_echo_n "checking for $ac_word... " >&6; }
  3622. if test "${ac_cv_prog_CC+set}" = set; then :
  3623. $as_echo_n "(cached) " >&6
  3624. else
  3625. if test -n "$CC"; then
  3626. ac_cv_prog_CC="$CC" # Let the user override the test.
  3627. else
  3628. ac_prog_rejected=no
  3629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3630. for as_dir in $PATH
  3631. do
  3632. IFS=$as_save_IFS
  3633. test -z "$as_dir" && as_dir=.
  3634. for ac_exec_ext in '' $ac_executable_extensions; do
  3635. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3636. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3637. ac_prog_rejected=yes
  3638. continue
  3639. fi
  3640. ac_cv_prog_CC="cc"
  3641. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3642. break 2
  3643. fi
  3644. done
  3645. done
  3646. IFS=$as_save_IFS
  3647. if test $ac_prog_rejected = yes; then
  3648. # We found a bogon in the path, so make sure we never use it.
  3649. set dummy $ac_cv_prog_CC
  3650. shift
  3651. if test $# != 0; then
  3652. # We chose a different compiler from the bogus one.
  3653. # However, it has the same basename, so the bogon will be chosen
  3654. # first if we set CC to just the basename; use the full file name.
  3655. shift
  3656. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3657. fi
  3658. fi
  3659. fi
  3660. fi
  3661. CC=$ac_cv_prog_CC
  3662. if test -n "$CC"; then
  3663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3664. $as_echo "$CC" >&6; }
  3665. else
  3666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3667. $as_echo "no" >&6; }
  3668. fi
  3669. fi
  3670. if test -z "$CC"; then
  3671. if test -n "$ac_tool_prefix"; then
  3672. for ac_prog in cl.exe
  3673. do
  3674. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3675. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3677. $as_echo_n "checking for $ac_word... " >&6; }
  3678. if test "${ac_cv_prog_CC+set}" = set; then :
  3679. $as_echo_n "(cached) " >&6
  3680. else
  3681. if test -n "$CC"; then
  3682. ac_cv_prog_CC="$CC" # Let the user override the test.
  3683. else
  3684. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3685. for as_dir in $PATH
  3686. do
  3687. IFS=$as_save_IFS
  3688. test -z "$as_dir" && as_dir=.
  3689. for ac_exec_ext in '' $ac_executable_extensions; do
  3690. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3691. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3692. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3693. break 2
  3694. fi
  3695. done
  3696. done
  3697. IFS=$as_save_IFS
  3698. fi
  3699. fi
  3700. CC=$ac_cv_prog_CC
  3701. if test -n "$CC"; then
  3702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3703. $as_echo "$CC" >&6; }
  3704. else
  3705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3706. $as_echo "no" >&6; }
  3707. fi
  3708. test -n "$CC" && break
  3709. done
  3710. fi
  3711. if test -z "$CC"; then
  3712. ac_ct_CC=$CC
  3713. for ac_prog in cl.exe
  3714. do
  3715. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3716. set dummy $ac_prog; ac_word=$2
  3717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3718. $as_echo_n "checking for $ac_word... " >&6; }
  3719. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3720. $as_echo_n "(cached) " >&6
  3721. else
  3722. if test -n "$ac_ct_CC"; then
  3723. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3724. else
  3725. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3726. for as_dir in $PATH
  3727. do
  3728. IFS=$as_save_IFS
  3729. test -z "$as_dir" && as_dir=.
  3730. for ac_exec_ext in '' $ac_executable_extensions; do
  3731. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3732. ac_cv_prog_ac_ct_CC="$ac_prog"
  3733. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3734. break 2
  3735. fi
  3736. done
  3737. done
  3738. IFS=$as_save_IFS
  3739. fi
  3740. fi
  3741. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3742. if test -n "$ac_ct_CC"; then
  3743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3744. $as_echo "$ac_ct_CC" >&6; }
  3745. else
  3746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3747. $as_echo "no" >&6; }
  3748. fi
  3749. test -n "$ac_ct_CC" && break
  3750. done
  3751. if test "x$ac_ct_CC" = x; then
  3752. CC=""
  3753. else
  3754. case $cross_compiling:$ac_tool_warned in
  3755. yes:)
  3756. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3757. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3758. ac_tool_warned=yes ;;
  3759. esac
  3760. CC=$ac_ct_CC
  3761. fi
  3762. fi
  3763. fi
  3764. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3765. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3766. as_fn_error "no acceptable C compiler found in \$PATH
  3767. See \`config.log' for more details." "$LINENO" 5; }
  3768. # Provide some information about the compiler.
  3769. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3770. set X $ac_compile
  3771. ac_compiler=$2
  3772. for ac_option in --version -v -V -qversion; do
  3773. { { ac_try="$ac_compiler $ac_option >&5"
  3774. case "(($ac_try" in
  3775. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3776. *) ac_try_echo=$ac_try;;
  3777. esac
  3778. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3779. $as_echo "$ac_try_echo"; } >&5
  3780. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3781. ac_status=$?
  3782. if test -s conftest.err; then
  3783. sed '10a\
  3784. ... rest of stderr output deleted ...
  3785. 10q' conftest.err >conftest.er1
  3786. cat conftest.er1 >&5
  3787. fi
  3788. rm -f conftest.er1 conftest.err
  3789. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3790. test $ac_status = 0; }
  3791. done
  3792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3793. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3794. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3795. $as_echo_n "(cached) " >&6
  3796. else
  3797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3798. /* end confdefs.h. */
  3799. int
  3800. main ()
  3801. {
  3802. #ifndef __GNUC__
  3803. choke me
  3804. #endif
  3805. ;
  3806. return 0;
  3807. }
  3808. _ACEOF
  3809. if ac_fn_c_try_compile "$LINENO"; then :
  3810. ac_compiler_gnu=yes
  3811. else
  3812. ac_compiler_gnu=no
  3813. fi
  3814. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3815. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3816. fi
  3817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3818. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3819. if test $ac_compiler_gnu = yes; then
  3820. GCC=yes
  3821. else
  3822. GCC=
  3823. fi
  3824. ac_test_CFLAGS=${CFLAGS+set}
  3825. ac_save_CFLAGS=$CFLAGS
  3826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3827. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3828. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3829. $as_echo_n "(cached) " >&6
  3830. else
  3831. ac_save_c_werror_flag=$ac_c_werror_flag
  3832. ac_c_werror_flag=yes
  3833. ac_cv_prog_cc_g=no
  3834. CFLAGS="-g"
  3835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3836. /* end confdefs.h. */
  3837. int
  3838. main ()
  3839. {
  3840. ;
  3841. return 0;
  3842. }
  3843. _ACEOF
  3844. if ac_fn_c_try_compile "$LINENO"; then :
  3845. ac_cv_prog_cc_g=yes
  3846. else
  3847. CFLAGS=""
  3848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3849. /* end confdefs.h. */
  3850. int
  3851. main ()
  3852. {
  3853. ;
  3854. return 0;
  3855. }
  3856. _ACEOF
  3857. if ac_fn_c_try_compile "$LINENO"; then :
  3858. else
  3859. ac_c_werror_flag=$ac_save_c_werror_flag
  3860. CFLAGS="-g"
  3861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3862. /* end confdefs.h. */
  3863. int
  3864. main ()
  3865. {
  3866. ;
  3867. return 0;
  3868. }
  3869. _ACEOF
  3870. if ac_fn_c_try_compile "$LINENO"; then :
  3871. ac_cv_prog_cc_g=yes
  3872. fi
  3873. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3874. fi
  3875. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3876. fi
  3877. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3878. ac_c_werror_flag=$ac_save_c_werror_flag
  3879. fi
  3880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3881. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3882. if test "$ac_test_CFLAGS" = set; then
  3883. CFLAGS=$ac_save_CFLAGS
  3884. elif test $ac_cv_prog_cc_g = yes; then
  3885. if test "$GCC" = yes; then
  3886. CFLAGS="-g -O2"
  3887. else
  3888. CFLAGS="-g"
  3889. fi
  3890. else
  3891. if test "$GCC" = yes; then
  3892. CFLAGS="-O2"
  3893. else
  3894. CFLAGS=
  3895. fi
  3896. fi
  3897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3898. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3899. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3900. $as_echo_n "(cached) " >&6
  3901. else
  3902. ac_cv_prog_cc_c89=no
  3903. ac_save_CC=$CC
  3904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3905. /* end confdefs.h. */
  3906. #include <stdarg.h>
  3907. #include <stdio.h>
  3908. #include <sys/types.h>
  3909. #include <sys/stat.h>
  3910. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3911. struct buf { int x; };
  3912. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3913. static char *e (p, i)
  3914. char **p;
  3915. int i;
  3916. {
  3917. return p[i];
  3918. }
  3919. static char *f (char * (*g) (char **, int), char **p, ...)
  3920. {
  3921. char *s;
  3922. va_list v;
  3923. va_start (v,p);
  3924. s = g (p, va_arg (v,int));
  3925. va_end (v);
  3926. return s;
  3927. }
  3928. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3929. function prototypes and stuff, but not '\xHH' hex character constants.
  3930. These don't provoke an error unfortunately, instead are silently treated
  3931. as 'x'. The following induces an error, until -std is added to get
  3932. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3933. array size at least. It's necessary to write '\x00'==0 to get something
  3934. that's true only with -std. */
  3935. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3936. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3937. inside strings and character constants. */
  3938. #define FOO(x) 'x'
  3939. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3940. int test (int i, double x);
  3941. struct s1 {int (*f) (int a);};
  3942. struct s2 {int (*f) (double a);};
  3943. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3944. int argc;
  3945. char **argv;
  3946. int
  3947. main ()
  3948. {
  3949. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3950. ;
  3951. return 0;
  3952. }
  3953. _ACEOF
  3954. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3955. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3956. do
  3957. CC="$ac_save_CC $ac_arg"
  3958. if ac_fn_c_try_compile "$LINENO"; then :
  3959. ac_cv_prog_cc_c89=$ac_arg
  3960. fi
  3961. rm -f core conftest.err conftest.$ac_objext
  3962. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3963. done
  3964. rm -f conftest.$ac_ext
  3965. CC=$ac_save_CC
  3966. fi
  3967. # AC_CACHE_VAL
  3968. case "x$ac_cv_prog_cc_c89" in
  3969. x)
  3970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3971. $as_echo "none needed" >&6; } ;;
  3972. xno)
  3973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3974. $as_echo "unsupported" >&6; } ;;
  3975. *)
  3976. CC="$CC $ac_cv_prog_cc_c89"
  3977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3978. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3979. esac
  3980. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3981. fi
  3982. ac_ext=cpp
  3983. ac_cpp='$CXXCPP $CPPFLAGS'
  3984. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3985. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3986. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3987. depcc="$CC" am_compiler_list=
  3988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3989. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3990. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3991. $as_echo_n "(cached) " >&6
  3992. else
  3993. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3994. # We make a subdir and do the tests there. Otherwise we can end up
  3995. # making bogus files that we don't know about and never remove. For
  3996. # instance it was reported that on HP-UX the gcc test will end up
  3997. # making a dummy file named `D' -- because `-MD' means `put the output
  3998. # in D'.
  3999. mkdir conftest.dir
  4000. # Copy depcomp to subdir because otherwise we won't find it if we're
  4001. # using a relative directory.
  4002. cp "$am_depcomp" conftest.dir
  4003. cd conftest.dir
  4004. # We will build objects and dependencies in a subdirectory because
  4005. # it helps to detect inapplicable dependency modes. For instance
  4006. # both Tru64's cc and ICC support -MD to output dependencies as a
  4007. # side effect of compilation, but ICC will put the dependencies in
  4008. # the current directory while Tru64 will put them in the object
  4009. # directory.
  4010. mkdir sub
  4011. am_cv_CC_dependencies_compiler_type=none
  4012. if test "$am_compiler_list" = ""; then
  4013. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4014. fi
  4015. am__universal=false
  4016. case " $depcc " in #(
  4017. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4018. esac
  4019. for depmode in $am_compiler_list; do
  4020. # Setup a source with many dependencies, because some compilers
  4021. # like to wrap large dependency lists on column 80 (with \), and
  4022. # we should not choose a depcomp mode which is confused by this.
  4023. #
  4024. # We need to recreate these files for each test, as the compiler may
  4025. # overwrite some of them when testing with obscure command lines.
  4026. # This happens at least with the AIX C compiler.
  4027. : > sub/conftest.c
  4028. for i in 1 2 3 4 5 6; do
  4029. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4030. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4031. # Solaris 8's {/usr,}/bin/sh.
  4032. touch sub/conftst$i.h
  4033. done
  4034. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4035. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4036. # mode. It turns out that the SunPro C++ compiler does not properly
  4037. # handle `-M -o', and we need to detect this. Also, some Intel
  4038. # versions had trouble with output in subdirs
  4039. am__obj=sub/conftest.${OBJEXT-o}
  4040. am__minus_obj="-o $am__obj"
  4041. case $depmode in
  4042. gcc)
  4043. # This depmode causes a compiler race in universal mode.
  4044. test "$am__universal" = false || continue
  4045. ;;
  4046. nosideeffect)
  4047. # after this tag, mechanisms are not by side-effect, so they'll
  4048. # only be used when explicitly requested
  4049. if test "x$enable_dependency_tracking" = xyes; then
  4050. continue
  4051. else
  4052. break
  4053. fi
  4054. ;;
  4055. msvisualcpp | msvcmsys)
  4056. # This compiler won't grok `-c -o', but also, the minuso test has
  4057. # not run yet. These depmodes are late enough in the game, and
  4058. # so weak that their functioning should not be impacted.
  4059. am__obj=conftest.${OBJEXT-o}
  4060. am__minus_obj=
  4061. ;;
  4062. none) break ;;
  4063. esac
  4064. if depmode=$depmode \
  4065. source=sub/conftest.c object=$am__obj \
  4066. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4067. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4068. >/dev/null 2>conftest.err &&
  4069. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4070. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4071. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4072. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4073. # icc doesn't choke on unknown options, it will just issue warnings
  4074. # or remarks (even with -Werror). So we grep stderr for any message
  4075. # that says an option was ignored or not supported.
  4076. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4077. # icc: Command line warning: ignoring option '-M'; no argument required
  4078. # The diagnosis changed in icc 8.0:
  4079. # icc: Command line remark: option '-MP' not supported
  4080. if (grep 'ignoring option' conftest.err ||
  4081. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4082. am_cv_CC_dependencies_compiler_type=$depmode
  4083. break
  4084. fi
  4085. fi
  4086. done
  4087. cd ..
  4088. rm -rf conftest.dir
  4089. else
  4090. am_cv_CC_dependencies_compiler_type=none
  4091. fi
  4092. fi
  4093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4094. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4095. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4096. if
  4097. test "x$enable_dependency_tracking" != xno \
  4098. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4099. am__fastdepCC_TRUE=
  4100. am__fastdepCC_FALSE='#'
  4101. else
  4102. am__fastdepCC_TRUE='#'
  4103. am__fastdepCC_FALSE=
  4104. fi
  4105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4106. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4107. if test "${ac_cv_path_SED+set}" = set; then :
  4108. $as_echo_n "(cached) " >&6
  4109. else
  4110. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4111. for ac_i in 1 2 3 4 5 6 7; do
  4112. ac_script="$ac_script$as_nl$ac_script"
  4113. done
  4114. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4115. { ac_script=; unset ac_script;}
  4116. if test -z "$SED"; then
  4117. ac_path_SED_found=false
  4118. # Loop through the user's path and test for each of PROGNAME-LIST
  4119. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4120. for as_dir in $PATH
  4121. do
  4122. IFS=$as_save_IFS
  4123. test -z "$as_dir" && as_dir=.
  4124. for ac_prog in sed gsed; do
  4125. for ac_exec_ext in '' $ac_executable_extensions; do
  4126. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4127. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4128. # Check for GNU ac_path_SED and select it if it is found.
  4129. # Check for GNU $ac_path_SED
  4130. case `"$ac_path_SED" --version 2>&1` in
  4131. *GNU*)
  4132. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4133. *)
  4134. ac_count=0
  4135. $as_echo_n 0123456789 >"conftest.in"
  4136. while :
  4137. do
  4138. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4139. mv "conftest.tmp" "conftest.in"
  4140. cp "conftest.in" "conftest.nl"
  4141. $as_echo '' >> "conftest.nl"
  4142. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4143. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4144. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4145. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4146. # Best one so far, save it but keep looking for a better one
  4147. ac_cv_path_SED="$ac_path_SED"
  4148. ac_path_SED_max=$ac_count
  4149. fi
  4150. # 10*(2^10) chars as input seems more than enough
  4151. test $ac_count -gt 10 && break
  4152. done
  4153. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4154. esac
  4155. $ac_path_SED_found && break 3
  4156. done
  4157. done
  4158. done
  4159. IFS=$as_save_IFS
  4160. if test -z "$ac_cv_path_SED"; then
  4161. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4162. fi
  4163. else
  4164. ac_cv_path_SED=$SED
  4165. fi
  4166. fi
  4167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4168. $as_echo "$ac_cv_path_SED" >&6; }
  4169. SED="$ac_cv_path_SED"
  4170. rm -f conftest.sed
  4171. test -z "$SED" && SED=sed
  4172. Xsed="$SED -e 1s/^X//"
  4173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4174. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4175. if test "${ac_cv_path_GREP+set}" = set; then :
  4176. $as_echo_n "(cached) " >&6
  4177. else
  4178. if test -z "$GREP"; then
  4179. ac_path_GREP_found=false
  4180. # Loop through the user's path and test for each of PROGNAME-LIST
  4181. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4182. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4183. do
  4184. IFS=$as_save_IFS
  4185. test -z "$as_dir" && as_dir=.
  4186. for ac_prog in grep ggrep; do
  4187. for ac_exec_ext in '' $ac_executable_extensions; do
  4188. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4189. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4190. # Check for GNU ac_path_GREP and select it if it is found.
  4191. # Check for GNU $ac_path_GREP
  4192. case `"$ac_path_GREP" --version 2>&1` in
  4193. *GNU*)
  4194. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4195. *)
  4196. ac_count=0
  4197. $as_echo_n 0123456789 >"conftest.in"
  4198. while :
  4199. do
  4200. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4201. mv "conftest.tmp" "conftest.in"
  4202. cp "conftest.in" "conftest.nl"
  4203. $as_echo 'GREP' >> "conftest.nl"
  4204. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4205. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4206. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4207. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4208. # Best one so far, save it but keep looking for a better one
  4209. ac_cv_path_GREP="$ac_path_GREP"
  4210. ac_path_GREP_max=$ac_count
  4211. fi
  4212. # 10*(2^10) chars as input seems more than enough
  4213. test $ac_count -gt 10 && break
  4214. done
  4215. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4216. esac
  4217. $ac_path_GREP_found && break 3
  4218. done
  4219. done
  4220. done
  4221. IFS=$as_save_IFS
  4222. if test -z "$ac_cv_path_GREP"; then
  4223. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4224. fi
  4225. else
  4226. ac_cv_path_GREP=$GREP
  4227. fi
  4228. fi
  4229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4230. $as_echo "$ac_cv_path_GREP" >&6; }
  4231. GREP="$ac_cv_path_GREP"
  4232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4233. $as_echo_n "checking for egrep... " >&6; }
  4234. if test "${ac_cv_path_EGREP+set}" = set; then :
  4235. $as_echo_n "(cached) " >&6
  4236. else
  4237. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4238. then ac_cv_path_EGREP="$GREP -E"
  4239. else
  4240. if test -z "$EGREP"; then
  4241. ac_path_EGREP_found=false
  4242. # Loop through the user's path and test for each of PROGNAME-LIST
  4243. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4244. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4245. do
  4246. IFS=$as_save_IFS
  4247. test -z "$as_dir" && as_dir=.
  4248. for ac_prog in egrep; do
  4249. for ac_exec_ext in '' $ac_executable_extensions; do
  4250. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4251. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4252. # Check for GNU ac_path_EGREP and select it if it is found.
  4253. # Check for GNU $ac_path_EGREP
  4254. case `"$ac_path_EGREP" --version 2>&1` in
  4255. *GNU*)
  4256. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4257. *)
  4258. ac_count=0
  4259. $as_echo_n 0123456789 >"conftest.in"
  4260. while :
  4261. do
  4262. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4263. mv "conftest.tmp" "conftest.in"
  4264. cp "conftest.in" "conftest.nl"
  4265. $as_echo 'EGREP' >> "conftest.nl"
  4266. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4267. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4268. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4269. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4270. # Best one so far, save it but keep looking for a better one
  4271. ac_cv_path_EGREP="$ac_path_EGREP"
  4272. ac_path_EGREP_max=$ac_count
  4273. fi
  4274. # 10*(2^10) chars as input seems more than enough
  4275. test $ac_count -gt 10 && break
  4276. done
  4277. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4278. esac
  4279. $ac_path_EGREP_found && break 3
  4280. done
  4281. done
  4282. done
  4283. IFS=$as_save_IFS
  4284. if test -z "$ac_cv_path_EGREP"; then
  4285. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4286. fi
  4287. else
  4288. ac_cv_path_EGREP=$EGREP
  4289. fi
  4290. fi
  4291. fi
  4292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4293. $as_echo "$ac_cv_path_EGREP" >&6; }
  4294. EGREP="$ac_cv_path_EGREP"
  4295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4296. $as_echo_n "checking for fgrep... " >&6; }
  4297. if test "${ac_cv_path_FGREP+set}" = set; then :
  4298. $as_echo_n "(cached) " >&6
  4299. else
  4300. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4301. then ac_cv_path_FGREP="$GREP -F"
  4302. else
  4303. if test -z "$FGREP"; then
  4304. ac_path_FGREP_found=false
  4305. # Loop through the user's path and test for each of PROGNAME-LIST
  4306. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4307. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4308. do
  4309. IFS=$as_save_IFS
  4310. test -z "$as_dir" && as_dir=.
  4311. for ac_prog in fgrep; do
  4312. for ac_exec_ext in '' $ac_executable_extensions; do
  4313. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4314. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4315. # Check for GNU ac_path_FGREP and select it if it is found.
  4316. # Check for GNU $ac_path_FGREP
  4317. case `"$ac_path_FGREP" --version 2>&1` in
  4318. *GNU*)
  4319. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4320. *)
  4321. ac_count=0
  4322. $as_echo_n 0123456789 >"conftest.in"
  4323. while :
  4324. do
  4325. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4326. mv "conftest.tmp" "conftest.in"
  4327. cp "conftest.in" "conftest.nl"
  4328. $as_echo 'FGREP' >> "conftest.nl"
  4329. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4330. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4331. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4332. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4333. # Best one so far, save it but keep looking for a better one
  4334. ac_cv_path_FGREP="$ac_path_FGREP"
  4335. ac_path_FGREP_max=$ac_count
  4336. fi
  4337. # 10*(2^10) chars as input seems more than enough
  4338. test $ac_count -gt 10 && break
  4339. done
  4340. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4341. esac
  4342. $ac_path_FGREP_found && break 3
  4343. done
  4344. done
  4345. done
  4346. IFS=$as_save_IFS
  4347. if test -z "$ac_cv_path_FGREP"; then
  4348. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4349. fi
  4350. else
  4351. ac_cv_path_FGREP=$FGREP
  4352. fi
  4353. fi
  4354. fi
  4355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4356. $as_echo "$ac_cv_path_FGREP" >&6; }
  4357. FGREP="$ac_cv_path_FGREP"
  4358. test -z "$GREP" && GREP=grep
  4359. # Check whether --with-gnu-ld was given.
  4360. if test "${with_gnu_ld+set}" = set; then :
  4361. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4362. else
  4363. with_gnu_ld=no
  4364. fi
  4365. ac_prog=ld
  4366. if test "$GCC" = yes; then
  4367. # Check if gcc -print-prog-name=ld gives a path.
  4368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4369. $as_echo_n "checking for ld used by $CC... " >&6; }
  4370. case $host in
  4371. *-*-mingw*)
  4372. # gcc leaves a trailing carriage return which upsets mingw
  4373. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4374. *)
  4375. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4376. esac
  4377. case $ac_prog in
  4378. # Accept absolute paths.
  4379. [\\/]* | ?:[\\/]*)
  4380. re_direlt='/[^/][^/]*/\.\./'
  4381. # Canonicalize the pathname of ld
  4382. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4383. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4384. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4385. done
  4386. test -z "$LD" && LD="$ac_prog"
  4387. ;;
  4388. "")
  4389. # If it fails, then pretend we aren't using GCC.
  4390. ac_prog=ld
  4391. ;;
  4392. *)
  4393. # If it is relative, then search for the first ld in PATH.
  4394. with_gnu_ld=unknown
  4395. ;;
  4396. esac
  4397. elif test "$with_gnu_ld" = yes; then
  4398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4399. $as_echo_n "checking for GNU ld... " >&6; }
  4400. else
  4401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4402. $as_echo_n "checking for non-GNU ld... " >&6; }
  4403. fi
  4404. if test "${lt_cv_path_LD+set}" = set; then :
  4405. $as_echo_n "(cached) " >&6
  4406. else
  4407. if test -z "$LD"; then
  4408. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4409. for ac_dir in $PATH; do
  4410. IFS="$lt_save_ifs"
  4411. test -z "$ac_dir" && ac_dir=.
  4412. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4413. lt_cv_path_LD="$ac_dir/$ac_prog"
  4414. # Check to see if the program is GNU ld. I'd rather use --version,
  4415. # but apparently some variants of GNU ld only accept -v.
  4416. # Break only if it was the GNU/non-GNU ld that we prefer.
  4417. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4418. *GNU* | *'with BFD'*)
  4419. test "$with_gnu_ld" != no && break
  4420. ;;
  4421. *)
  4422. test "$with_gnu_ld" != yes && break
  4423. ;;
  4424. esac
  4425. fi
  4426. done
  4427. IFS="$lt_save_ifs"
  4428. else
  4429. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4430. fi
  4431. fi
  4432. LD="$lt_cv_path_LD"
  4433. if test -n "$LD"; then
  4434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4435. $as_echo "$LD" >&6; }
  4436. else
  4437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4438. $as_echo "no" >&6; }
  4439. fi
  4440. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4442. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4443. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4444. $as_echo_n "(cached) " >&6
  4445. else
  4446. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4447. case `$LD -v 2>&1 </dev/null` in
  4448. *GNU* | *'with BFD'*)
  4449. lt_cv_prog_gnu_ld=yes
  4450. ;;
  4451. *)
  4452. lt_cv_prog_gnu_ld=no
  4453. ;;
  4454. esac
  4455. fi
  4456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4457. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4458. with_gnu_ld=$lt_cv_prog_gnu_ld
  4459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4460. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4461. if test "${lt_cv_path_NM+set}" = set; then :
  4462. $as_echo_n "(cached) " >&6
  4463. else
  4464. if test -n "$NM"; then
  4465. # Let the user override the test.
  4466. lt_cv_path_NM="$NM"
  4467. else
  4468. lt_nm_to_check="${ac_tool_prefix}nm"
  4469. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4470. lt_nm_to_check="$lt_nm_to_check nm"
  4471. fi
  4472. for lt_tmp_nm in $lt_nm_to_check; do
  4473. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4474. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4475. IFS="$lt_save_ifs"
  4476. test -z "$ac_dir" && ac_dir=.
  4477. tmp_nm="$ac_dir/$lt_tmp_nm"
  4478. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4479. # Check to see if the nm accepts a BSD-compat flag.
  4480. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4481. # nm: unknown option "B" ignored
  4482. # Tru64's nm complains that /dev/null is an invalid object file
  4483. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4484. */dev/null* | *'Invalid file or object type'*)
  4485. lt_cv_path_NM="$tmp_nm -B"
  4486. break
  4487. ;;
  4488. *)
  4489. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4490. */dev/null*)
  4491. lt_cv_path_NM="$tmp_nm -p"
  4492. break
  4493. ;;
  4494. *)
  4495. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4496. continue # so that we can try to find one that supports BSD flags
  4497. ;;
  4498. esac
  4499. ;;
  4500. esac
  4501. fi
  4502. done
  4503. IFS="$lt_save_ifs"
  4504. done
  4505. : ${lt_cv_path_NM=no}
  4506. fi
  4507. fi
  4508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4509. $as_echo "$lt_cv_path_NM" >&6; }
  4510. if test "$lt_cv_path_NM" != "no"; then
  4511. NM="$lt_cv_path_NM"
  4512. else
  4513. # Didn't find any BSD compatible name lister, look for dumpbin.
  4514. if test -n "$DUMPBIN"; then :
  4515. # Let the user override the test.
  4516. else
  4517. if test -n "$ac_tool_prefix"; then
  4518. for ac_prog in dumpbin "link -dump"
  4519. do
  4520. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4521. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4523. $as_echo_n "checking for $ac_word... " >&6; }
  4524. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4525. $as_echo_n "(cached) " >&6
  4526. else
  4527. if test -n "$DUMPBIN"; then
  4528. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4529. else
  4530. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4531. for as_dir in $PATH
  4532. do
  4533. IFS=$as_save_IFS
  4534. test -z "$as_dir" && as_dir=.
  4535. for ac_exec_ext in '' $ac_executable_extensions; do
  4536. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4537. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4538. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4539. break 2
  4540. fi
  4541. done
  4542. done
  4543. IFS=$as_save_IFS
  4544. fi
  4545. fi
  4546. DUMPBIN=$ac_cv_prog_DUMPBIN
  4547. if test -n "$DUMPBIN"; then
  4548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4549. $as_echo "$DUMPBIN" >&6; }
  4550. else
  4551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4552. $as_echo "no" >&6; }
  4553. fi
  4554. test -n "$DUMPBIN" && break
  4555. done
  4556. fi
  4557. if test -z "$DUMPBIN"; then
  4558. ac_ct_DUMPBIN=$DUMPBIN
  4559. for ac_prog in dumpbin "link -dump"
  4560. do
  4561. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4562. set dummy $ac_prog; ac_word=$2
  4563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4564. $as_echo_n "checking for $ac_word... " >&6; }
  4565. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4566. $as_echo_n "(cached) " >&6
  4567. else
  4568. if test -n "$ac_ct_DUMPBIN"; then
  4569. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4570. else
  4571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4572. for as_dir in $PATH
  4573. do
  4574. IFS=$as_save_IFS
  4575. test -z "$as_dir" && as_dir=.
  4576. for ac_exec_ext in '' $ac_executable_extensions; do
  4577. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4578. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4579. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4580. break 2
  4581. fi
  4582. done
  4583. done
  4584. IFS=$as_save_IFS
  4585. fi
  4586. fi
  4587. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4588. if test -n "$ac_ct_DUMPBIN"; then
  4589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4590. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4591. else
  4592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4593. $as_echo "no" >&6; }
  4594. fi
  4595. test -n "$ac_ct_DUMPBIN" && break
  4596. done
  4597. if test "x$ac_ct_DUMPBIN" = x; then
  4598. DUMPBIN=":"
  4599. else
  4600. case $cross_compiling:$ac_tool_warned in
  4601. yes:)
  4602. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4603. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4604. ac_tool_warned=yes ;;
  4605. esac
  4606. DUMPBIN=$ac_ct_DUMPBIN
  4607. fi
  4608. fi
  4609. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4610. *COFF*)
  4611. DUMPBIN="$DUMPBIN -symbols"
  4612. ;;
  4613. *)
  4614. DUMPBIN=:
  4615. ;;
  4616. esac
  4617. fi
  4618. if test "$DUMPBIN" != ":"; then
  4619. NM="$DUMPBIN"
  4620. fi
  4621. fi
  4622. test -z "$NM" && NM=nm
  4623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4624. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4625. if test "${lt_cv_nm_interface+set}" = set; then :
  4626. $as_echo_n "(cached) " >&6
  4627. else
  4628. lt_cv_nm_interface="BSD nm"
  4629. echo "int some_variable = 0;" > conftest.$ac_ext
  4630. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4631. (eval "$ac_compile" 2>conftest.err)
  4632. cat conftest.err >&5
  4633. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4634. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4635. cat conftest.err >&5
  4636. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4637. cat conftest.out >&5
  4638. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4639. lt_cv_nm_interface="MS dumpbin"
  4640. fi
  4641. rm -f conftest*
  4642. fi
  4643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4644. $as_echo "$lt_cv_nm_interface" >&6; }
  4645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4646. $as_echo_n "checking whether ln -s works... " >&6; }
  4647. LN_S=$as_ln_s
  4648. if test "$LN_S" = "ln -s"; then
  4649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4650. $as_echo "yes" >&6; }
  4651. else
  4652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4653. $as_echo "no, using $LN_S" >&6; }
  4654. fi
  4655. # find the maximum length of command line arguments
  4656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4657. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4658. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4659. $as_echo_n "(cached) " >&6
  4660. else
  4661. i=0
  4662. teststring="ABCD"
  4663. case $build_os in
  4664. msdosdjgpp*)
  4665. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4666. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4667. # during glob expansion). Even if it were fixed, the result of this
  4668. # check would be larger than it should be.
  4669. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4670. ;;
  4671. gnu*)
  4672. # Under GNU Hurd, this test is not required because there is
  4673. # no limit to the length of command line arguments.
  4674. # Libtool will interpret -1 as no limit whatsoever
  4675. lt_cv_sys_max_cmd_len=-1;
  4676. ;;
  4677. cygwin* | mingw* | cegcc*)
  4678. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4679. # about 5 minutes as the teststring grows exponentially.
  4680. # Worse, since 9x/ME are not pre-emptively multitasking,
  4681. # you end up with a "frozen" computer, even though with patience
  4682. # the test eventually succeeds (with a max line length of 256k).
  4683. # Instead, let's just punt: use the minimum linelength reported by
  4684. # all of the supported platforms: 8192 (on NT/2K/XP).
  4685. lt_cv_sys_max_cmd_len=8192;
  4686. ;;
  4687. mint*)
  4688. # On MiNT this can take a long time and run out of memory.
  4689. lt_cv_sys_max_cmd_len=8192;
  4690. ;;
  4691. amigaos*)
  4692. # On AmigaOS with pdksh, this test takes hours, literally.
  4693. # So we just punt and use a minimum line length of 8192.
  4694. lt_cv_sys_max_cmd_len=8192;
  4695. ;;
  4696. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4697. # This has been around since 386BSD, at least. Likely further.
  4698. if test -x /sbin/sysctl; then
  4699. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4700. elif test -x /usr/sbin/sysctl; then
  4701. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4702. else
  4703. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4704. fi
  4705. # And add a safety zone
  4706. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4707. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4708. ;;
  4709. interix*)
  4710. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4711. lt_cv_sys_max_cmd_len=196608
  4712. ;;
  4713. osf*)
  4714. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4715. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4716. # nice to cause kernel panics so lets avoid the loop below.
  4717. # First set a reasonable default.
  4718. lt_cv_sys_max_cmd_len=16384
  4719. #
  4720. if test -x /sbin/sysconfig; then
  4721. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4722. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4723. esac
  4724. fi
  4725. ;;
  4726. sco3.2v5*)
  4727. lt_cv_sys_max_cmd_len=102400
  4728. ;;
  4729. sysv5* | sco5v6* | sysv4.2uw2*)
  4730. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4731. if test -n "$kargmax"; then
  4732. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4733. else
  4734. lt_cv_sys_max_cmd_len=32768
  4735. fi
  4736. ;;
  4737. *)
  4738. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4739. if test -n "$lt_cv_sys_max_cmd_len"; then
  4740. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4741. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4742. else
  4743. # Make teststring a little bigger before we do anything with it.
  4744. # a 1K string should be a reasonable start.
  4745. for i in 1 2 3 4 5 6 7 8 ; do
  4746. teststring=$teststring$teststring
  4747. done
  4748. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4749. # If test is not a shell built-in, we'll probably end up computing a
  4750. # maximum length that is only half of the actual maximum length, but
  4751. # we can't tell.
  4752. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  4753. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4754. test $i != 17 # 1/2 MB should be enough
  4755. do
  4756. i=`expr $i + 1`
  4757. teststring=$teststring$teststring
  4758. done
  4759. # Only check the string length outside the loop.
  4760. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4761. teststring=
  4762. # Add a significant safety factor because C++ compilers can tack on
  4763. # massive amounts of additional arguments before passing them to the
  4764. # linker. It appears as though 1/2 is a usable value.
  4765. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4766. fi
  4767. ;;
  4768. esac
  4769. fi
  4770. if test -n $lt_cv_sys_max_cmd_len ; then
  4771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4772. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4773. else
  4774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4775. $as_echo "none" >&6; }
  4776. fi
  4777. max_cmd_len=$lt_cv_sys_max_cmd_len
  4778. : ${CP="cp -f"}
  4779. : ${MV="mv -f"}
  4780. : ${RM="rm -f"}
  4781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4782. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4783. # Try some XSI features
  4784. xsi_shell=no
  4785. ( _lt_dummy="a/b/c"
  4786. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4787. = c,a/b,, \
  4788. && eval 'test $(( 1 + 1 )) -eq 2 \
  4789. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4790. && xsi_shell=yes
  4791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4792. $as_echo "$xsi_shell" >&6; }
  4793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4794. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4795. lt_shell_append=no
  4796. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4797. >/dev/null 2>&1 \
  4798. && lt_shell_append=yes
  4799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4800. $as_echo "$lt_shell_append" >&6; }
  4801. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4802. lt_unset=unset
  4803. else
  4804. lt_unset=false
  4805. fi
  4806. # test EBCDIC or ASCII
  4807. case `echo X|tr X '\101'` in
  4808. A) # ASCII based system
  4809. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4810. lt_SP2NL='tr \040 \012'
  4811. lt_NL2SP='tr \015\012 \040\040'
  4812. ;;
  4813. *) # EBCDIC based system
  4814. lt_SP2NL='tr \100 \n'
  4815. lt_NL2SP='tr \r\n \100\100'
  4816. ;;
  4817. esac
  4818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4819. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4820. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4821. $as_echo_n "(cached) " >&6
  4822. else
  4823. lt_cv_ld_reload_flag='-r'
  4824. fi
  4825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4826. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4827. reload_flag=$lt_cv_ld_reload_flag
  4828. case $reload_flag in
  4829. "" | " "*) ;;
  4830. *) reload_flag=" $reload_flag" ;;
  4831. esac
  4832. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4833. case $host_os in
  4834. darwin*)
  4835. if test "$GCC" = yes; then
  4836. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4837. else
  4838. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4839. fi
  4840. ;;
  4841. esac
  4842. if test -n "$ac_tool_prefix"; then
  4843. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4844. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4846. $as_echo_n "checking for $ac_word... " >&6; }
  4847. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4848. $as_echo_n "(cached) " >&6
  4849. else
  4850. if test -n "$OBJDUMP"; then
  4851. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4852. else
  4853. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4854. for as_dir in $PATH
  4855. do
  4856. IFS=$as_save_IFS
  4857. test -z "$as_dir" && as_dir=.
  4858. for ac_exec_ext in '' $ac_executable_extensions; do
  4859. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4860. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4861. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4862. break 2
  4863. fi
  4864. done
  4865. done
  4866. IFS=$as_save_IFS
  4867. fi
  4868. fi
  4869. OBJDUMP=$ac_cv_prog_OBJDUMP
  4870. if test -n "$OBJDUMP"; then
  4871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4872. $as_echo "$OBJDUMP" >&6; }
  4873. else
  4874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4875. $as_echo "no" >&6; }
  4876. fi
  4877. fi
  4878. if test -z "$ac_cv_prog_OBJDUMP"; then
  4879. ac_ct_OBJDUMP=$OBJDUMP
  4880. # Extract the first word of "objdump", so it can be a program name with args.
  4881. set dummy objdump; ac_word=$2
  4882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4883. $as_echo_n "checking for $ac_word... " >&6; }
  4884. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4885. $as_echo_n "(cached) " >&6
  4886. else
  4887. if test -n "$ac_ct_OBJDUMP"; then
  4888. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4889. else
  4890. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4891. for as_dir in $PATH
  4892. do
  4893. IFS=$as_save_IFS
  4894. test -z "$as_dir" && as_dir=.
  4895. for ac_exec_ext in '' $ac_executable_extensions; do
  4896. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4897. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4898. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4899. break 2
  4900. fi
  4901. done
  4902. done
  4903. IFS=$as_save_IFS
  4904. fi
  4905. fi
  4906. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4907. if test -n "$ac_ct_OBJDUMP"; then
  4908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4909. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4910. else
  4911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4912. $as_echo "no" >&6; }
  4913. fi
  4914. if test "x$ac_ct_OBJDUMP" = x; then
  4915. OBJDUMP="false"
  4916. else
  4917. case $cross_compiling:$ac_tool_warned in
  4918. yes:)
  4919. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4920. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4921. ac_tool_warned=yes ;;
  4922. esac
  4923. OBJDUMP=$ac_ct_OBJDUMP
  4924. fi
  4925. else
  4926. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4927. fi
  4928. test -z "$OBJDUMP" && OBJDUMP=objdump
  4929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4930. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4931. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  4932. $as_echo_n "(cached) " >&6
  4933. else
  4934. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4935. lt_cv_file_magic_test_file=
  4936. lt_cv_deplibs_check_method='unknown'
  4937. # Need to set the preceding variable on all platforms that support
  4938. # interlibrary dependencies.
  4939. # 'none' -- dependencies not supported.
  4940. # `unknown' -- same as none, but documents that we really don't know.
  4941. # 'pass_all' -- all dependencies passed with no checks.
  4942. # 'test_compile' -- check by making test program.
  4943. # 'file_magic [[regex]]' -- check by looking for files in library path
  4944. # which responds to the $file_magic_cmd with a given extended regex.
  4945. # If you have `file' or equivalent on your system and you're not sure
  4946. # whether `pass_all' will *always* work, you probably want this one.
  4947. case $host_os in
  4948. aix[4-9]*)
  4949. lt_cv_deplibs_check_method=pass_all
  4950. ;;
  4951. beos*)
  4952. lt_cv_deplibs_check_method=pass_all
  4953. ;;
  4954. bsdi[45]*)
  4955. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4956. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4957. lt_cv_file_magic_test_file=/shlib/libc.so
  4958. ;;
  4959. cygwin*)
  4960. # func_win32_libid is a shell function defined in ltmain.sh
  4961. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4962. lt_cv_file_magic_cmd='func_win32_libid'
  4963. ;;
  4964. mingw* | pw32*)
  4965. # Base MSYS/MinGW do not provide the 'file' command needed by
  4966. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4967. # unless we find 'file', for example because we are cross-compiling.
  4968. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4969. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4970. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4971. lt_cv_file_magic_cmd='func_win32_libid'
  4972. else
  4973. # Keep this pattern in sync with the one in func_win32_libid.
  4974. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4975. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4976. fi
  4977. ;;
  4978. cegcc*)
  4979. # use the weaker test based on 'objdump'. See mingw*.
  4980. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4981. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4982. ;;
  4983. darwin* | rhapsody*)
  4984. lt_cv_deplibs_check_method=pass_all
  4985. ;;
  4986. freebsd* | dragonfly*)
  4987. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4988. case $host_cpu in
  4989. i*86 )
  4990. # Not sure whether the presence of OpenBSD here was a mistake.
  4991. # Let's accept both of them until this is cleared up.
  4992. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4993. lt_cv_file_magic_cmd=/usr/bin/file
  4994. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4995. ;;
  4996. esac
  4997. else
  4998. lt_cv_deplibs_check_method=pass_all
  4999. fi
  5000. ;;
  5001. gnu*)
  5002. lt_cv_deplibs_check_method=pass_all
  5003. ;;
  5004. haiku*)
  5005. lt_cv_deplibs_check_method=pass_all
  5006. ;;
  5007. hpux10.20* | hpux11*)
  5008. lt_cv_file_magic_cmd=/usr/bin/file
  5009. case $host_cpu in
  5010. ia64*)
  5011. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5012. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5013. ;;
  5014. hppa*64*)
  5015. 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]'
  5016. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5017. ;;
  5018. *)
  5019. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5020. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5021. ;;
  5022. esac
  5023. ;;
  5024. interix[3-9]*)
  5025. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5026. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5027. ;;
  5028. irix5* | irix6* | nonstopux*)
  5029. case $LD in
  5030. *-32|*"-32 ") libmagic=32-bit;;
  5031. *-n32|*"-n32 ") libmagic=N32;;
  5032. *-64|*"-64 ") libmagic=64-bit;;
  5033. *) libmagic=never-match;;
  5034. esac
  5035. lt_cv_deplibs_check_method=pass_all
  5036. ;;
  5037. # This must be Linux ELF.
  5038. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5039. lt_cv_deplibs_check_method=pass_all
  5040. ;;
  5041. netbsd*)
  5042. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5043. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5044. else
  5045. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5046. fi
  5047. ;;
  5048. newos6*)
  5049. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5050. lt_cv_file_magic_cmd=/usr/bin/file
  5051. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5052. ;;
  5053. *nto* | *qnx*)
  5054. lt_cv_deplibs_check_method=pass_all
  5055. ;;
  5056. openbsd*)
  5057. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5058. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5059. else
  5060. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5061. fi
  5062. ;;
  5063. osf3* | osf4* | osf5*)
  5064. lt_cv_deplibs_check_method=pass_all
  5065. ;;
  5066. rdos*)
  5067. lt_cv_deplibs_check_method=pass_all
  5068. ;;
  5069. solaris*)
  5070. lt_cv_deplibs_check_method=pass_all
  5071. ;;
  5072. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5073. lt_cv_deplibs_check_method=pass_all
  5074. ;;
  5075. sysv4 | sysv4.3*)
  5076. case $host_vendor in
  5077. motorola)
  5078. 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]'
  5079. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5080. ;;
  5081. ncr)
  5082. lt_cv_deplibs_check_method=pass_all
  5083. ;;
  5084. sequent)
  5085. lt_cv_file_magic_cmd='/bin/file'
  5086. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5087. ;;
  5088. sni)
  5089. lt_cv_file_magic_cmd='/bin/file'
  5090. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5091. lt_cv_file_magic_test_file=/lib/libc.so
  5092. ;;
  5093. siemens)
  5094. lt_cv_deplibs_check_method=pass_all
  5095. ;;
  5096. pc)
  5097. lt_cv_deplibs_check_method=pass_all
  5098. ;;
  5099. esac
  5100. ;;
  5101. tpf*)
  5102. lt_cv_deplibs_check_method=pass_all
  5103. ;;
  5104. esac
  5105. fi
  5106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5107. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5108. file_magic_cmd=$lt_cv_file_magic_cmd
  5109. deplibs_check_method=$lt_cv_deplibs_check_method
  5110. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5111. if test -n "$ac_tool_prefix"; then
  5112. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5113. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5115. $as_echo_n "checking for $ac_word... " >&6; }
  5116. if test "${ac_cv_prog_AR+set}" = set; then :
  5117. $as_echo_n "(cached) " >&6
  5118. else
  5119. if test -n "$AR"; then
  5120. ac_cv_prog_AR="$AR" # Let the user override the test.
  5121. else
  5122. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5123. for as_dir in $PATH
  5124. do
  5125. IFS=$as_save_IFS
  5126. test -z "$as_dir" && as_dir=.
  5127. for ac_exec_ext in '' $ac_executable_extensions; do
  5128. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5129. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5130. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5131. break 2
  5132. fi
  5133. done
  5134. done
  5135. IFS=$as_save_IFS
  5136. fi
  5137. fi
  5138. AR=$ac_cv_prog_AR
  5139. if test -n "$AR"; then
  5140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5141. $as_echo "$AR" >&6; }
  5142. else
  5143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5144. $as_echo "no" >&6; }
  5145. fi
  5146. fi
  5147. if test -z "$ac_cv_prog_AR"; then
  5148. ac_ct_AR=$AR
  5149. # Extract the first word of "ar", so it can be a program name with args.
  5150. set dummy ar; ac_word=$2
  5151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5152. $as_echo_n "checking for $ac_word... " >&6; }
  5153. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5154. $as_echo_n "(cached) " >&6
  5155. else
  5156. if test -n "$ac_ct_AR"; then
  5157. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5158. else
  5159. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5160. for as_dir in $PATH
  5161. do
  5162. IFS=$as_save_IFS
  5163. test -z "$as_dir" && as_dir=.
  5164. for ac_exec_ext in '' $ac_executable_extensions; do
  5165. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5166. ac_cv_prog_ac_ct_AR="ar"
  5167. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5168. break 2
  5169. fi
  5170. done
  5171. done
  5172. IFS=$as_save_IFS
  5173. fi
  5174. fi
  5175. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5176. if test -n "$ac_ct_AR"; then
  5177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5178. $as_echo "$ac_ct_AR" >&6; }
  5179. else
  5180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5181. $as_echo "no" >&6; }
  5182. fi
  5183. if test "x$ac_ct_AR" = x; then
  5184. AR="false"
  5185. else
  5186. case $cross_compiling:$ac_tool_warned in
  5187. yes:)
  5188. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5189. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5190. ac_tool_warned=yes ;;
  5191. esac
  5192. AR=$ac_ct_AR
  5193. fi
  5194. else
  5195. AR="$ac_cv_prog_AR"
  5196. fi
  5197. test -z "$AR" && AR=ar
  5198. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5199. if test -n "$ac_tool_prefix"; then
  5200. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5201. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5203. $as_echo_n "checking for $ac_word... " >&6; }
  5204. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5205. $as_echo_n "(cached) " >&6
  5206. else
  5207. if test -n "$STRIP"; then
  5208. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5209. else
  5210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5211. for as_dir in $PATH
  5212. do
  5213. IFS=$as_save_IFS
  5214. test -z "$as_dir" && as_dir=.
  5215. for ac_exec_ext in '' $ac_executable_extensions; do
  5216. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5217. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5218. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5219. break 2
  5220. fi
  5221. done
  5222. done
  5223. IFS=$as_save_IFS
  5224. fi
  5225. fi
  5226. STRIP=$ac_cv_prog_STRIP
  5227. if test -n "$STRIP"; then
  5228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5229. $as_echo "$STRIP" >&6; }
  5230. else
  5231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5232. $as_echo "no" >&6; }
  5233. fi
  5234. fi
  5235. if test -z "$ac_cv_prog_STRIP"; then
  5236. ac_ct_STRIP=$STRIP
  5237. # Extract the first word of "strip", so it can be a program name with args.
  5238. set dummy strip; ac_word=$2
  5239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5240. $as_echo_n "checking for $ac_word... " >&6; }
  5241. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5242. $as_echo_n "(cached) " >&6
  5243. else
  5244. if test -n "$ac_ct_STRIP"; then
  5245. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5246. else
  5247. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5248. for as_dir in $PATH
  5249. do
  5250. IFS=$as_save_IFS
  5251. test -z "$as_dir" && as_dir=.
  5252. for ac_exec_ext in '' $ac_executable_extensions; do
  5253. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5254. ac_cv_prog_ac_ct_STRIP="strip"
  5255. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5256. break 2
  5257. fi
  5258. done
  5259. done
  5260. IFS=$as_save_IFS
  5261. fi
  5262. fi
  5263. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5264. if test -n "$ac_ct_STRIP"; then
  5265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5266. $as_echo "$ac_ct_STRIP" >&6; }
  5267. else
  5268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5269. $as_echo "no" >&6; }
  5270. fi
  5271. if test "x$ac_ct_STRIP" = x; then
  5272. STRIP=":"
  5273. else
  5274. case $cross_compiling:$ac_tool_warned in
  5275. yes:)
  5276. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5277. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5278. ac_tool_warned=yes ;;
  5279. esac
  5280. STRIP=$ac_ct_STRIP
  5281. fi
  5282. else
  5283. STRIP="$ac_cv_prog_STRIP"
  5284. fi
  5285. test -z "$STRIP" && STRIP=:
  5286. if test -n "$ac_tool_prefix"; then
  5287. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5288. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5290. $as_echo_n "checking for $ac_word... " >&6; }
  5291. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5292. $as_echo_n "(cached) " >&6
  5293. else
  5294. if test -n "$RANLIB"; then
  5295. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5296. else
  5297. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5298. for as_dir in $PATH
  5299. do
  5300. IFS=$as_save_IFS
  5301. test -z "$as_dir" && as_dir=.
  5302. for ac_exec_ext in '' $ac_executable_extensions; do
  5303. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5304. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5305. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5306. break 2
  5307. fi
  5308. done
  5309. done
  5310. IFS=$as_save_IFS
  5311. fi
  5312. fi
  5313. RANLIB=$ac_cv_prog_RANLIB
  5314. if test -n "$RANLIB"; then
  5315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5316. $as_echo "$RANLIB" >&6; }
  5317. else
  5318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5319. $as_echo "no" >&6; }
  5320. fi
  5321. fi
  5322. if test -z "$ac_cv_prog_RANLIB"; then
  5323. ac_ct_RANLIB=$RANLIB
  5324. # Extract the first word of "ranlib", so it can be a program name with args.
  5325. set dummy ranlib; ac_word=$2
  5326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5327. $as_echo_n "checking for $ac_word... " >&6; }
  5328. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5329. $as_echo_n "(cached) " >&6
  5330. else
  5331. if test -n "$ac_ct_RANLIB"; then
  5332. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5333. else
  5334. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5335. for as_dir in $PATH
  5336. do
  5337. IFS=$as_save_IFS
  5338. test -z "$as_dir" && as_dir=.
  5339. for ac_exec_ext in '' $ac_executable_extensions; do
  5340. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5341. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5342. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5343. break 2
  5344. fi
  5345. done
  5346. done
  5347. IFS=$as_save_IFS
  5348. fi
  5349. fi
  5350. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5351. if test -n "$ac_ct_RANLIB"; then
  5352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5353. $as_echo "$ac_ct_RANLIB" >&6; }
  5354. else
  5355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5356. $as_echo "no" >&6; }
  5357. fi
  5358. if test "x$ac_ct_RANLIB" = x; then
  5359. RANLIB=":"
  5360. else
  5361. case $cross_compiling:$ac_tool_warned in
  5362. yes:)
  5363. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5364. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5365. ac_tool_warned=yes ;;
  5366. esac
  5367. RANLIB=$ac_ct_RANLIB
  5368. fi
  5369. else
  5370. RANLIB="$ac_cv_prog_RANLIB"
  5371. fi
  5372. test -z "$RANLIB" && RANLIB=:
  5373. # Determine commands to create old-style static archives.
  5374. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5375. old_postinstall_cmds='chmod 644 $oldlib'
  5376. old_postuninstall_cmds=
  5377. if test -n "$RANLIB"; then
  5378. case $host_os in
  5379. openbsd*)
  5380. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5381. ;;
  5382. *)
  5383. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5384. ;;
  5385. esac
  5386. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5387. fi
  5388. case $host_os in
  5389. darwin*)
  5390. lock_old_archive_extraction=yes ;;
  5391. *)
  5392. lock_old_archive_extraction=no ;;
  5393. esac
  5394. # If no C compiler was specified, use CC.
  5395. LTCC=${LTCC-"$CC"}
  5396. # If no C compiler flags were specified, use CFLAGS.
  5397. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5398. # Allow CC to be a program name with arguments.
  5399. compiler=$CC
  5400. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5402. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5403. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5404. $as_echo_n "(cached) " >&6
  5405. else
  5406. # These are sane defaults that work on at least a few old systems.
  5407. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5408. # Character class describing NM global symbol codes.
  5409. symcode='[BCDEGRST]'
  5410. # Regexp to match symbols that can be accessed directly from C.
  5411. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5412. # Define system-specific variables.
  5413. case $host_os in
  5414. aix*)
  5415. symcode='[BCDT]'
  5416. ;;
  5417. cygwin* | mingw* | pw32* | cegcc*)
  5418. symcode='[ABCDGISTW]'
  5419. ;;
  5420. hpux*)
  5421. if test "$host_cpu" = ia64; then
  5422. symcode='[ABCDEGRST]'
  5423. fi
  5424. ;;
  5425. irix* | nonstopux*)
  5426. symcode='[BCDEGRST]'
  5427. ;;
  5428. osf*)
  5429. symcode='[BCDEGQRST]'
  5430. ;;
  5431. solaris*)
  5432. symcode='[BDRT]'
  5433. ;;
  5434. sco3.2v5*)
  5435. symcode='[DT]'
  5436. ;;
  5437. sysv4.2uw2*)
  5438. symcode='[DT]'
  5439. ;;
  5440. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5441. symcode='[ABDT]'
  5442. ;;
  5443. sysv4)
  5444. symcode='[DFNSTU]'
  5445. ;;
  5446. esac
  5447. # If we're using GNU nm, then use its standard symbol codes.
  5448. case `$NM -V 2>&1` in
  5449. *GNU* | *'with BFD'*)
  5450. symcode='[ABCDGIRSTW]' ;;
  5451. esac
  5452. # Transform an extracted symbol line into a proper C declaration.
  5453. # Some systems (esp. on ia64) link data and code symbols differently,
  5454. # so use this general approach.
  5455. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5456. # Transform an extracted symbol line into symbol name and symbol address
  5457. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5458. 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'"
  5459. # Handle CRLF in mingw tool chain
  5460. opt_cr=
  5461. case $build_os in
  5462. mingw*)
  5463. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5464. ;;
  5465. esac
  5466. # Try without a prefix underscore, then with it.
  5467. for ac_symprfx in "" "_"; do
  5468. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5469. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5470. # Write the raw and C identifiers.
  5471. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5472. # Fake it for dumpbin and say T for any non-static function
  5473. # and D for any global variable.
  5474. # Also find C++ and __fastcall symbols from MSVC++,
  5475. # which start with @ or ?.
  5476. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5477. " {last_section=section; section=\$ 3};"\
  5478. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5479. " \$ 0!~/External *\|/{next};"\
  5480. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5481. " {if(hide[section]) next};"\
  5482. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5483. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5484. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5485. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5486. " ' prfx=^$ac_symprfx"
  5487. else
  5488. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5489. fi
  5490. # Check to see that the pipe works correctly.
  5491. pipe_works=no
  5492. rm -f conftest*
  5493. cat > conftest.$ac_ext <<_LT_EOF
  5494. #ifdef __cplusplus
  5495. extern "C" {
  5496. #endif
  5497. char nm_test_var;
  5498. void nm_test_func(void);
  5499. void nm_test_func(void){}
  5500. #ifdef __cplusplus
  5501. }
  5502. #endif
  5503. int main(){nm_test_var='a';nm_test_func();return(0);}
  5504. _LT_EOF
  5505. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5506. (eval $ac_compile) 2>&5
  5507. ac_status=$?
  5508. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5509. test $ac_status = 0; }; then
  5510. # Now try to grab the symbols.
  5511. nlist=conftest.nm
  5512. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5513. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5514. ac_status=$?
  5515. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5516. test $ac_status = 0; } && test -s "$nlist"; then
  5517. # Try sorting and uniquifying the output.
  5518. if sort "$nlist" | uniq > "$nlist"T; then
  5519. mv -f "$nlist"T "$nlist"
  5520. else
  5521. rm -f "$nlist"T
  5522. fi
  5523. # Make sure that we snagged all the symbols we need.
  5524. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5525. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5526. cat <<_LT_EOF > conftest.$ac_ext
  5527. #ifdef __cplusplus
  5528. extern "C" {
  5529. #endif
  5530. _LT_EOF
  5531. # Now generate the symbol file.
  5532. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5533. cat <<_LT_EOF >> conftest.$ac_ext
  5534. /* The mapping between symbol names and symbols. */
  5535. const struct {
  5536. const char *name;
  5537. void *address;
  5538. }
  5539. lt__PROGRAM__LTX_preloaded_symbols[] =
  5540. {
  5541. { "@PROGRAM@", (void *) 0 },
  5542. _LT_EOF
  5543. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5544. cat <<\_LT_EOF >> conftest.$ac_ext
  5545. {0, (void *) 0}
  5546. };
  5547. /* This works around a problem in FreeBSD linker */
  5548. #ifdef FREEBSD_WORKAROUND
  5549. static const void *lt_preloaded_setup() {
  5550. return lt__PROGRAM__LTX_preloaded_symbols;
  5551. }
  5552. #endif
  5553. #ifdef __cplusplus
  5554. }
  5555. #endif
  5556. _LT_EOF
  5557. # Now try linking the two files.
  5558. mv conftest.$ac_objext conftstm.$ac_objext
  5559. lt_save_LIBS="$LIBS"
  5560. lt_save_CFLAGS="$CFLAGS"
  5561. LIBS="conftstm.$ac_objext"
  5562. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5563. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5564. (eval $ac_link) 2>&5
  5565. ac_status=$?
  5566. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5567. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5568. pipe_works=yes
  5569. fi
  5570. LIBS="$lt_save_LIBS"
  5571. CFLAGS="$lt_save_CFLAGS"
  5572. else
  5573. echo "cannot find nm_test_func in $nlist" >&5
  5574. fi
  5575. else
  5576. echo "cannot find nm_test_var in $nlist" >&5
  5577. fi
  5578. else
  5579. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5580. fi
  5581. else
  5582. echo "$progname: failed program was:" >&5
  5583. cat conftest.$ac_ext >&5
  5584. fi
  5585. rm -rf conftest* conftst*
  5586. # Do not use the global_symbol_pipe unless it works.
  5587. if test "$pipe_works" = yes; then
  5588. break
  5589. else
  5590. lt_cv_sys_global_symbol_pipe=
  5591. fi
  5592. done
  5593. fi
  5594. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5595. lt_cv_sys_global_symbol_to_cdecl=
  5596. fi
  5597. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5599. $as_echo "failed" >&6; }
  5600. else
  5601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5602. $as_echo "ok" >&6; }
  5603. fi
  5604. # Check whether --enable-libtool-lock was given.
  5605. if test "${enable_libtool_lock+set}" = set; then :
  5606. enableval=$enable_libtool_lock;
  5607. fi
  5608. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5609. # Some flags need to be propagated to the compiler or linker for good
  5610. # libtool support.
  5611. case $host in
  5612. ia64-*-hpux*)
  5613. # Find out which ABI we are using.
  5614. echo 'int i;' > conftest.$ac_ext
  5615. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5616. (eval $ac_compile) 2>&5
  5617. ac_status=$?
  5618. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5619. test $ac_status = 0; }; then
  5620. case `/usr/bin/file conftest.$ac_objext` in
  5621. *ELF-32*)
  5622. HPUX_IA64_MODE="32"
  5623. ;;
  5624. *ELF-64*)
  5625. HPUX_IA64_MODE="64"
  5626. ;;
  5627. esac
  5628. fi
  5629. rm -rf conftest*
  5630. ;;
  5631. *-*-irix6*)
  5632. # Find out which ABI we are using.
  5633. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5634. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5635. (eval $ac_compile) 2>&5
  5636. ac_status=$?
  5637. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5638. test $ac_status = 0; }; then
  5639. if test "$lt_cv_prog_gnu_ld" = yes; then
  5640. case `/usr/bin/file conftest.$ac_objext` in
  5641. *32-bit*)
  5642. LD="${LD-ld} -melf32bsmip"
  5643. ;;
  5644. *N32*)
  5645. LD="${LD-ld} -melf32bmipn32"
  5646. ;;
  5647. *64-bit*)
  5648. LD="${LD-ld} -melf64bmip"
  5649. ;;
  5650. esac
  5651. else
  5652. case `/usr/bin/file conftest.$ac_objext` in
  5653. *32-bit*)
  5654. LD="${LD-ld} -32"
  5655. ;;
  5656. *N32*)
  5657. LD="${LD-ld} -n32"
  5658. ;;
  5659. *64-bit*)
  5660. LD="${LD-ld} -64"
  5661. ;;
  5662. esac
  5663. fi
  5664. fi
  5665. rm -rf conftest*
  5666. ;;
  5667. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5668. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5669. # Find out which ABI we are using.
  5670. echo 'int i;' > conftest.$ac_ext
  5671. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5672. (eval $ac_compile) 2>&5
  5673. ac_status=$?
  5674. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5675. test $ac_status = 0; }; then
  5676. case `/usr/bin/file conftest.o` in
  5677. *32-bit*)
  5678. case $host in
  5679. x86_64-*kfreebsd*-gnu)
  5680. LD="${LD-ld} -m elf_i386_fbsd"
  5681. ;;
  5682. x86_64-*linux*)
  5683. LD="${LD-ld} -m elf_i386"
  5684. ;;
  5685. ppc64-*linux*|powerpc64-*linux*)
  5686. LD="${LD-ld} -m elf32ppclinux"
  5687. ;;
  5688. s390x-*linux*)
  5689. LD="${LD-ld} -m elf_s390"
  5690. ;;
  5691. sparc64-*linux*)
  5692. LD="${LD-ld} -m elf32_sparc"
  5693. ;;
  5694. esac
  5695. ;;
  5696. *64-bit*)
  5697. case $host in
  5698. x86_64-*kfreebsd*-gnu)
  5699. LD="${LD-ld} -m elf_x86_64_fbsd"
  5700. ;;
  5701. x86_64-*linux*)
  5702. LD="${LD-ld} -m elf_x86_64"
  5703. ;;
  5704. ppc*-*linux*|powerpc*-*linux*)
  5705. LD="${LD-ld} -m elf64ppc"
  5706. ;;
  5707. s390*-*linux*|s390*-*tpf*)
  5708. LD="${LD-ld} -m elf64_s390"
  5709. ;;
  5710. sparc*-*linux*)
  5711. LD="${LD-ld} -m elf64_sparc"
  5712. ;;
  5713. esac
  5714. ;;
  5715. esac
  5716. fi
  5717. rm -rf conftest*
  5718. ;;
  5719. *-*-sco3.2v5*)
  5720. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5721. SAVE_CFLAGS="$CFLAGS"
  5722. CFLAGS="$CFLAGS -belf"
  5723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5724. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5725. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5726. $as_echo_n "(cached) " >&6
  5727. else
  5728. ac_ext=c
  5729. ac_cpp='$CPP $CPPFLAGS'
  5730. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5731. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5732. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5734. /* end confdefs.h. */
  5735. int
  5736. main ()
  5737. {
  5738. ;
  5739. return 0;
  5740. }
  5741. _ACEOF
  5742. if ac_fn_c_try_link "$LINENO"; then :
  5743. lt_cv_cc_needs_belf=yes
  5744. else
  5745. lt_cv_cc_needs_belf=no
  5746. fi
  5747. rm -f core conftest.err conftest.$ac_objext \
  5748. conftest$ac_exeext conftest.$ac_ext
  5749. ac_ext=c
  5750. ac_cpp='$CPP $CPPFLAGS'
  5751. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5752. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5753. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5754. fi
  5755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5756. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5757. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5758. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5759. CFLAGS="$SAVE_CFLAGS"
  5760. fi
  5761. ;;
  5762. sparc*-*solaris*)
  5763. # Find out which ABI we are using.
  5764. echo 'int i;' > conftest.$ac_ext
  5765. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5766. (eval $ac_compile) 2>&5
  5767. ac_status=$?
  5768. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5769. test $ac_status = 0; }; then
  5770. case `/usr/bin/file conftest.o` in
  5771. *64-bit*)
  5772. case $lt_cv_prog_gnu_ld in
  5773. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5774. *)
  5775. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5776. LD="${LD-ld} -64"
  5777. fi
  5778. ;;
  5779. esac
  5780. ;;
  5781. esac
  5782. fi
  5783. rm -rf conftest*
  5784. ;;
  5785. esac
  5786. need_locks="$enable_libtool_lock"
  5787. case $host_os in
  5788. rhapsody* | darwin*)
  5789. if test -n "$ac_tool_prefix"; then
  5790. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5791. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5793. $as_echo_n "checking for $ac_word... " >&6; }
  5794. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5795. $as_echo_n "(cached) " >&6
  5796. else
  5797. if test -n "$DSYMUTIL"; then
  5798. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5799. else
  5800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5801. for as_dir in $PATH
  5802. do
  5803. IFS=$as_save_IFS
  5804. test -z "$as_dir" && as_dir=.
  5805. for ac_exec_ext in '' $ac_executable_extensions; do
  5806. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5807. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5808. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5809. break 2
  5810. fi
  5811. done
  5812. done
  5813. IFS=$as_save_IFS
  5814. fi
  5815. fi
  5816. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5817. if test -n "$DSYMUTIL"; then
  5818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5819. $as_echo "$DSYMUTIL" >&6; }
  5820. else
  5821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5822. $as_echo "no" >&6; }
  5823. fi
  5824. fi
  5825. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5826. ac_ct_DSYMUTIL=$DSYMUTIL
  5827. # Extract the first word of "dsymutil", so it can be a program name with args.
  5828. set dummy dsymutil; ac_word=$2
  5829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5830. $as_echo_n "checking for $ac_word... " >&6; }
  5831. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  5832. $as_echo_n "(cached) " >&6
  5833. else
  5834. if test -n "$ac_ct_DSYMUTIL"; then
  5835. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5836. else
  5837. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5838. for as_dir in $PATH
  5839. do
  5840. IFS=$as_save_IFS
  5841. test -z "$as_dir" && as_dir=.
  5842. for ac_exec_ext in '' $ac_executable_extensions; do
  5843. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5844. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5845. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5846. break 2
  5847. fi
  5848. done
  5849. done
  5850. IFS=$as_save_IFS
  5851. fi
  5852. fi
  5853. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5854. if test -n "$ac_ct_DSYMUTIL"; then
  5855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5856. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5857. else
  5858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5859. $as_echo "no" >&6; }
  5860. fi
  5861. if test "x$ac_ct_DSYMUTIL" = x; then
  5862. DSYMUTIL=":"
  5863. else
  5864. case $cross_compiling:$ac_tool_warned in
  5865. yes:)
  5866. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5867. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5868. ac_tool_warned=yes ;;
  5869. esac
  5870. DSYMUTIL=$ac_ct_DSYMUTIL
  5871. fi
  5872. else
  5873. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5874. fi
  5875. if test -n "$ac_tool_prefix"; then
  5876. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5877. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5879. $as_echo_n "checking for $ac_word... " >&6; }
  5880. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  5881. $as_echo_n "(cached) " >&6
  5882. else
  5883. if test -n "$NMEDIT"; then
  5884. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5885. else
  5886. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5887. for as_dir in $PATH
  5888. do
  5889. IFS=$as_save_IFS
  5890. test -z "$as_dir" && as_dir=.
  5891. for ac_exec_ext in '' $ac_executable_extensions; do
  5892. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5893. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5894. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5895. break 2
  5896. fi
  5897. done
  5898. done
  5899. IFS=$as_save_IFS
  5900. fi
  5901. fi
  5902. NMEDIT=$ac_cv_prog_NMEDIT
  5903. if test -n "$NMEDIT"; then
  5904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5905. $as_echo "$NMEDIT" >&6; }
  5906. else
  5907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5908. $as_echo "no" >&6; }
  5909. fi
  5910. fi
  5911. if test -z "$ac_cv_prog_NMEDIT"; then
  5912. ac_ct_NMEDIT=$NMEDIT
  5913. # Extract the first word of "nmedit", so it can be a program name with args.
  5914. set dummy nmedit; ac_word=$2
  5915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5916. $as_echo_n "checking for $ac_word... " >&6; }
  5917. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  5918. $as_echo_n "(cached) " >&6
  5919. else
  5920. if test -n "$ac_ct_NMEDIT"; then
  5921. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5922. else
  5923. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5924. for as_dir in $PATH
  5925. do
  5926. IFS=$as_save_IFS
  5927. test -z "$as_dir" && as_dir=.
  5928. for ac_exec_ext in '' $ac_executable_extensions; do
  5929. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5930. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5931. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5932. break 2
  5933. fi
  5934. done
  5935. done
  5936. IFS=$as_save_IFS
  5937. fi
  5938. fi
  5939. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5940. if test -n "$ac_ct_NMEDIT"; then
  5941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5942. $as_echo "$ac_ct_NMEDIT" >&6; }
  5943. else
  5944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5945. $as_echo "no" >&6; }
  5946. fi
  5947. if test "x$ac_ct_NMEDIT" = x; then
  5948. NMEDIT=":"
  5949. else
  5950. case $cross_compiling:$ac_tool_warned in
  5951. yes:)
  5952. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5953. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5954. ac_tool_warned=yes ;;
  5955. esac
  5956. NMEDIT=$ac_ct_NMEDIT
  5957. fi
  5958. else
  5959. NMEDIT="$ac_cv_prog_NMEDIT"
  5960. fi
  5961. if test -n "$ac_tool_prefix"; then
  5962. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5963. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5965. $as_echo_n "checking for $ac_word... " >&6; }
  5966. if test "${ac_cv_prog_LIPO+set}" = set; then :
  5967. $as_echo_n "(cached) " >&6
  5968. else
  5969. if test -n "$LIPO"; then
  5970. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5971. else
  5972. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5973. for as_dir in $PATH
  5974. do
  5975. IFS=$as_save_IFS
  5976. test -z "$as_dir" && as_dir=.
  5977. for ac_exec_ext in '' $ac_executable_extensions; do
  5978. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5979. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5980. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5981. break 2
  5982. fi
  5983. done
  5984. done
  5985. IFS=$as_save_IFS
  5986. fi
  5987. fi
  5988. LIPO=$ac_cv_prog_LIPO
  5989. if test -n "$LIPO"; then
  5990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5991. $as_echo "$LIPO" >&6; }
  5992. else
  5993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5994. $as_echo "no" >&6; }
  5995. fi
  5996. fi
  5997. if test -z "$ac_cv_prog_LIPO"; then
  5998. ac_ct_LIPO=$LIPO
  5999. # Extract the first word of "lipo", so it can be a program name with args.
  6000. set dummy lipo; ac_word=$2
  6001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6002. $as_echo_n "checking for $ac_word... " >&6; }
  6003. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6004. $as_echo_n "(cached) " >&6
  6005. else
  6006. if test -n "$ac_ct_LIPO"; then
  6007. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6008. else
  6009. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6010. for as_dir in $PATH
  6011. do
  6012. IFS=$as_save_IFS
  6013. test -z "$as_dir" && as_dir=.
  6014. for ac_exec_ext in '' $ac_executable_extensions; do
  6015. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6016. ac_cv_prog_ac_ct_LIPO="lipo"
  6017. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6018. break 2
  6019. fi
  6020. done
  6021. done
  6022. IFS=$as_save_IFS
  6023. fi
  6024. fi
  6025. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6026. if test -n "$ac_ct_LIPO"; then
  6027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6028. $as_echo "$ac_ct_LIPO" >&6; }
  6029. else
  6030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6031. $as_echo "no" >&6; }
  6032. fi
  6033. if test "x$ac_ct_LIPO" = x; then
  6034. LIPO=":"
  6035. else
  6036. case $cross_compiling:$ac_tool_warned in
  6037. yes:)
  6038. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6039. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6040. ac_tool_warned=yes ;;
  6041. esac
  6042. LIPO=$ac_ct_LIPO
  6043. fi
  6044. else
  6045. LIPO="$ac_cv_prog_LIPO"
  6046. fi
  6047. if test -n "$ac_tool_prefix"; then
  6048. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6049. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6051. $as_echo_n "checking for $ac_word... " >&6; }
  6052. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6053. $as_echo_n "(cached) " >&6
  6054. else
  6055. if test -n "$OTOOL"; then
  6056. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6057. else
  6058. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6059. for as_dir in $PATH
  6060. do
  6061. IFS=$as_save_IFS
  6062. test -z "$as_dir" && as_dir=.
  6063. for ac_exec_ext in '' $ac_executable_extensions; do
  6064. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6065. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6066. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6067. break 2
  6068. fi
  6069. done
  6070. done
  6071. IFS=$as_save_IFS
  6072. fi
  6073. fi
  6074. OTOOL=$ac_cv_prog_OTOOL
  6075. if test -n "$OTOOL"; then
  6076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6077. $as_echo "$OTOOL" >&6; }
  6078. else
  6079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6080. $as_echo "no" >&6; }
  6081. fi
  6082. fi
  6083. if test -z "$ac_cv_prog_OTOOL"; then
  6084. ac_ct_OTOOL=$OTOOL
  6085. # Extract the first word of "otool", so it can be a program name with args.
  6086. set dummy otool; ac_word=$2
  6087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6088. $as_echo_n "checking for $ac_word... " >&6; }
  6089. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6090. $as_echo_n "(cached) " >&6
  6091. else
  6092. if test -n "$ac_ct_OTOOL"; then
  6093. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6094. else
  6095. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6096. for as_dir in $PATH
  6097. do
  6098. IFS=$as_save_IFS
  6099. test -z "$as_dir" && as_dir=.
  6100. for ac_exec_ext in '' $ac_executable_extensions; do
  6101. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6102. ac_cv_prog_ac_ct_OTOOL="otool"
  6103. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6104. break 2
  6105. fi
  6106. done
  6107. done
  6108. IFS=$as_save_IFS
  6109. fi
  6110. fi
  6111. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6112. if test -n "$ac_ct_OTOOL"; then
  6113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6114. $as_echo "$ac_ct_OTOOL" >&6; }
  6115. else
  6116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6117. $as_echo "no" >&6; }
  6118. fi
  6119. if test "x$ac_ct_OTOOL" = x; then
  6120. OTOOL=":"
  6121. else
  6122. case $cross_compiling:$ac_tool_warned in
  6123. yes:)
  6124. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6125. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6126. ac_tool_warned=yes ;;
  6127. esac
  6128. OTOOL=$ac_ct_OTOOL
  6129. fi
  6130. else
  6131. OTOOL="$ac_cv_prog_OTOOL"
  6132. fi
  6133. if test -n "$ac_tool_prefix"; then
  6134. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6135. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6137. $as_echo_n "checking for $ac_word... " >&6; }
  6138. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6139. $as_echo_n "(cached) " >&6
  6140. else
  6141. if test -n "$OTOOL64"; then
  6142. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6143. else
  6144. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6145. for as_dir in $PATH
  6146. do
  6147. IFS=$as_save_IFS
  6148. test -z "$as_dir" && as_dir=.
  6149. for ac_exec_ext in '' $ac_executable_extensions; do
  6150. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6151. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6152. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6153. break 2
  6154. fi
  6155. done
  6156. done
  6157. IFS=$as_save_IFS
  6158. fi
  6159. fi
  6160. OTOOL64=$ac_cv_prog_OTOOL64
  6161. if test -n "$OTOOL64"; then
  6162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6163. $as_echo "$OTOOL64" >&6; }
  6164. else
  6165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6166. $as_echo "no" >&6; }
  6167. fi
  6168. fi
  6169. if test -z "$ac_cv_prog_OTOOL64"; then
  6170. ac_ct_OTOOL64=$OTOOL64
  6171. # Extract the first word of "otool64", so it can be a program name with args.
  6172. set dummy otool64; ac_word=$2
  6173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6174. $as_echo_n "checking for $ac_word... " >&6; }
  6175. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6176. $as_echo_n "(cached) " >&6
  6177. else
  6178. if test -n "$ac_ct_OTOOL64"; then
  6179. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6180. else
  6181. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6182. for as_dir in $PATH
  6183. do
  6184. IFS=$as_save_IFS
  6185. test -z "$as_dir" && as_dir=.
  6186. for ac_exec_ext in '' $ac_executable_extensions; do
  6187. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6188. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6189. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6190. break 2
  6191. fi
  6192. done
  6193. done
  6194. IFS=$as_save_IFS
  6195. fi
  6196. fi
  6197. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6198. if test -n "$ac_ct_OTOOL64"; then
  6199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6200. $as_echo "$ac_ct_OTOOL64" >&6; }
  6201. else
  6202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6203. $as_echo "no" >&6; }
  6204. fi
  6205. if test "x$ac_ct_OTOOL64" = x; then
  6206. OTOOL64=":"
  6207. else
  6208. case $cross_compiling:$ac_tool_warned in
  6209. yes:)
  6210. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6211. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6212. ac_tool_warned=yes ;;
  6213. esac
  6214. OTOOL64=$ac_ct_OTOOL64
  6215. fi
  6216. else
  6217. OTOOL64="$ac_cv_prog_OTOOL64"
  6218. fi
  6219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6220. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6221. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6222. $as_echo_n "(cached) " >&6
  6223. else
  6224. lt_cv_apple_cc_single_mod=no
  6225. if test -z "${LT_MULTI_MODULE}"; then
  6226. # By default we will add the -single_module flag. You can override
  6227. # by either setting the environment variable LT_MULTI_MODULE
  6228. # non-empty at configure time, or by adding -multi_module to the
  6229. # link flags.
  6230. rm -rf libconftest.dylib*
  6231. echo "int foo(void){return 1;}" > conftest.c
  6232. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6233. -dynamiclib -Wl,-single_module conftest.c" >&5
  6234. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6235. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6236. _lt_result=$?
  6237. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6238. lt_cv_apple_cc_single_mod=yes
  6239. else
  6240. cat conftest.err >&5
  6241. fi
  6242. rm -rf libconftest.dylib*
  6243. rm -f conftest.*
  6244. fi
  6245. fi
  6246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6247. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6249. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6250. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6251. $as_echo_n "(cached) " >&6
  6252. else
  6253. lt_cv_ld_exported_symbols_list=no
  6254. save_LDFLAGS=$LDFLAGS
  6255. echo "_main" > conftest.sym
  6256. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6258. /* end confdefs.h. */
  6259. int
  6260. main ()
  6261. {
  6262. ;
  6263. return 0;
  6264. }
  6265. _ACEOF
  6266. if ac_fn_c_try_link "$LINENO"; then :
  6267. lt_cv_ld_exported_symbols_list=yes
  6268. else
  6269. lt_cv_ld_exported_symbols_list=no
  6270. fi
  6271. rm -f core conftest.err conftest.$ac_objext \
  6272. conftest$ac_exeext conftest.$ac_ext
  6273. LDFLAGS="$save_LDFLAGS"
  6274. fi
  6275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6276. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6278. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6279. if test "${lt_cv_ld_force_load+set}" = set; then :
  6280. $as_echo_n "(cached) " >&6
  6281. else
  6282. lt_cv_ld_force_load=no
  6283. cat > conftest.c << _LT_EOF
  6284. int forced_loaded() { return 2;}
  6285. _LT_EOF
  6286. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6287. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6288. echo "$AR cru libconftest.a conftest.o" >&5
  6289. $AR cru libconftest.a conftest.o 2>&5
  6290. echo "$RANLIB libconftest.a" >&5
  6291. $RANLIB libconftest.a 2>&5
  6292. cat > conftest.c << _LT_EOF
  6293. int main() { return 0;}
  6294. _LT_EOF
  6295. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6296. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6297. _lt_result=$?
  6298. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6299. lt_cv_ld_force_load=yes
  6300. else
  6301. cat conftest.err >&5
  6302. fi
  6303. rm -f conftest.err libconftest.a conftest conftest.c
  6304. rm -rf conftest.dSYM
  6305. fi
  6306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6307. $as_echo "$lt_cv_ld_force_load" >&6; }
  6308. case $host_os in
  6309. rhapsody* | darwin1.[012])
  6310. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6311. darwin1.*)
  6312. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6313. darwin*) # darwin 5.x on
  6314. # if running on 10.5 or later, the deployment target defaults
  6315. # to the OS version, if on x86, and 10.4, the deployment
  6316. # target defaults to 10.4. Don't you love it?
  6317. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6318. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6319. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6320. 10.[012]*)
  6321. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6322. 10.*)
  6323. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6324. esac
  6325. ;;
  6326. esac
  6327. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6328. _lt_dar_single_mod='$single_module'
  6329. fi
  6330. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6331. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6332. else
  6333. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6334. fi
  6335. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6336. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6337. else
  6338. _lt_dsymutil=
  6339. fi
  6340. ;;
  6341. esac
  6342. ac_ext=c
  6343. ac_cpp='$CPP $CPPFLAGS'
  6344. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6345. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6346. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6348. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6349. # On Suns, sometimes $CPP names a directory.
  6350. if test -n "$CPP" && test -d "$CPP"; then
  6351. CPP=
  6352. fi
  6353. if test -z "$CPP"; then
  6354. if test "${ac_cv_prog_CPP+set}" = set; then :
  6355. $as_echo_n "(cached) " >&6
  6356. else
  6357. # Double quotes because CPP needs to be expanded
  6358. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6359. do
  6360. ac_preproc_ok=false
  6361. for ac_c_preproc_warn_flag in '' yes
  6362. do
  6363. # Use a header file that comes with gcc, so configuring glibc
  6364. # with a fresh cross-compiler works.
  6365. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6366. # <limits.h> exists even on freestanding compilers.
  6367. # On the NeXT, cc -E runs the code through the compiler's parser,
  6368. # not just through cpp. "Syntax error" is here to catch this case.
  6369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6370. /* end confdefs.h. */
  6371. #ifdef __STDC__
  6372. # include <limits.h>
  6373. #else
  6374. # include <assert.h>
  6375. #endif
  6376. Syntax error
  6377. _ACEOF
  6378. if ac_fn_c_try_cpp "$LINENO"; then :
  6379. else
  6380. # Broken: fails on valid input.
  6381. continue
  6382. fi
  6383. rm -f conftest.err conftest.$ac_ext
  6384. # OK, works on sane cases. Now check whether nonexistent headers
  6385. # can be detected and how.
  6386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6387. /* end confdefs.h. */
  6388. #include <ac_nonexistent.h>
  6389. _ACEOF
  6390. if ac_fn_c_try_cpp "$LINENO"; then :
  6391. # Broken: success on invalid input.
  6392. continue
  6393. else
  6394. # Passes both tests.
  6395. ac_preproc_ok=:
  6396. break
  6397. fi
  6398. rm -f conftest.err conftest.$ac_ext
  6399. done
  6400. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6401. rm -f conftest.err conftest.$ac_ext
  6402. if $ac_preproc_ok; then :
  6403. break
  6404. fi
  6405. done
  6406. ac_cv_prog_CPP=$CPP
  6407. fi
  6408. CPP=$ac_cv_prog_CPP
  6409. else
  6410. ac_cv_prog_CPP=$CPP
  6411. fi
  6412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6413. $as_echo "$CPP" >&6; }
  6414. ac_preproc_ok=false
  6415. for ac_c_preproc_warn_flag in '' yes
  6416. do
  6417. # Use a header file that comes with gcc, so configuring glibc
  6418. # with a fresh cross-compiler works.
  6419. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6420. # <limits.h> exists even on freestanding compilers.
  6421. # On the NeXT, cc -E runs the code through the compiler's parser,
  6422. # not just through cpp. "Syntax error" is here to catch this case.
  6423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6424. /* end confdefs.h. */
  6425. #ifdef __STDC__
  6426. # include <limits.h>
  6427. #else
  6428. # include <assert.h>
  6429. #endif
  6430. Syntax error
  6431. _ACEOF
  6432. if ac_fn_c_try_cpp "$LINENO"; then :
  6433. else
  6434. # Broken: fails on valid input.
  6435. continue
  6436. fi
  6437. rm -f conftest.err conftest.$ac_ext
  6438. # OK, works on sane cases. Now check whether nonexistent headers
  6439. # can be detected and how.
  6440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6441. /* end confdefs.h. */
  6442. #include <ac_nonexistent.h>
  6443. _ACEOF
  6444. if ac_fn_c_try_cpp "$LINENO"; then :
  6445. # Broken: success on invalid input.
  6446. continue
  6447. else
  6448. # Passes both tests.
  6449. ac_preproc_ok=:
  6450. break
  6451. fi
  6452. rm -f conftest.err conftest.$ac_ext
  6453. done
  6454. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6455. rm -f conftest.err conftest.$ac_ext
  6456. if $ac_preproc_ok; then :
  6457. else
  6458. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6459. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6460. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  6461. See \`config.log' for more details." "$LINENO" 5; }
  6462. fi
  6463. ac_ext=c
  6464. ac_cpp='$CPP $CPPFLAGS'
  6465. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6466. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6467. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6469. $as_echo_n "checking for ANSI C header files... " >&6; }
  6470. if test "${ac_cv_header_stdc+set}" = set; then :
  6471. $as_echo_n "(cached) " >&6
  6472. else
  6473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6474. /* end confdefs.h. */
  6475. #include <stdlib.h>
  6476. #include <stdarg.h>
  6477. #include <string.h>
  6478. #include <float.h>
  6479. int
  6480. main ()
  6481. {
  6482. ;
  6483. return 0;
  6484. }
  6485. _ACEOF
  6486. if ac_fn_c_try_compile "$LINENO"; then :
  6487. ac_cv_header_stdc=yes
  6488. else
  6489. ac_cv_header_stdc=no
  6490. fi
  6491. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6492. if test $ac_cv_header_stdc = yes; then
  6493. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6495. /* end confdefs.h. */
  6496. #include <string.h>
  6497. _ACEOF
  6498. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6499. $EGREP "memchr" >/dev/null 2>&1; then :
  6500. else
  6501. ac_cv_header_stdc=no
  6502. fi
  6503. rm -f conftest*
  6504. fi
  6505. if test $ac_cv_header_stdc = yes; then
  6506. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6508. /* end confdefs.h. */
  6509. #include <stdlib.h>
  6510. _ACEOF
  6511. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6512. $EGREP "free" >/dev/null 2>&1; then :
  6513. else
  6514. ac_cv_header_stdc=no
  6515. fi
  6516. rm -f conftest*
  6517. fi
  6518. if test $ac_cv_header_stdc = yes; then
  6519. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6520. if test "$cross_compiling" = yes; then :
  6521. :
  6522. else
  6523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6524. /* end confdefs.h. */
  6525. #include <ctype.h>
  6526. #include <stdlib.h>
  6527. #if ((' ' & 0x0FF) == 0x020)
  6528. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6529. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6530. #else
  6531. # define ISLOWER(c) \
  6532. (('a' <= (c) && (c) <= 'i') \
  6533. || ('j' <= (c) && (c) <= 'r') \
  6534. || ('s' <= (c) && (c) <= 'z'))
  6535. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6536. #endif
  6537. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6538. int
  6539. main ()
  6540. {
  6541. int i;
  6542. for (i = 0; i < 256; i++)
  6543. if (XOR (islower (i), ISLOWER (i))
  6544. || toupper (i) != TOUPPER (i))
  6545. return 2;
  6546. return 0;
  6547. }
  6548. _ACEOF
  6549. if ac_fn_c_try_run "$LINENO"; then :
  6550. else
  6551. ac_cv_header_stdc=no
  6552. fi
  6553. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6554. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6555. fi
  6556. fi
  6557. fi
  6558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6559. $as_echo "$ac_cv_header_stdc" >&6; }
  6560. if test $ac_cv_header_stdc = yes; then
  6561. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6562. fi
  6563. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6564. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6565. inttypes.h stdint.h unistd.h
  6566. do :
  6567. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6568. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6569. "
  6570. eval as_val=\$$as_ac_Header
  6571. if test "x$as_val" = x""yes; then :
  6572. cat >>confdefs.h <<_ACEOF
  6573. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6574. _ACEOF
  6575. fi
  6576. done
  6577. for ac_header in dlfcn.h
  6578. do :
  6579. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6580. "
  6581. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6582. cat >>confdefs.h <<_ACEOF
  6583. #define HAVE_DLFCN_H 1
  6584. _ACEOF
  6585. fi
  6586. done
  6587. # Set options
  6588. enable_dlopen=no
  6589. enable_win32_dll=no
  6590. # Check whether --with-pic was given.
  6591. if test "${with_pic+set}" = set; then :
  6592. withval=$with_pic; pic_mode="$withval"
  6593. else
  6594. pic_mode=default
  6595. fi
  6596. test -z "$pic_mode" && pic_mode=default
  6597. # Check whether --enable-fast-install was given.
  6598. if test "${enable_fast_install+set}" = set; then :
  6599. enableval=$enable_fast_install; p=${PACKAGE-default}
  6600. case $enableval in
  6601. yes) enable_fast_install=yes ;;
  6602. no) enable_fast_install=no ;;
  6603. *)
  6604. enable_fast_install=no
  6605. # Look at the argument we got. We use all the common list separators.
  6606. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6607. for pkg in $enableval; do
  6608. IFS="$lt_save_ifs"
  6609. if test "X$pkg" = "X$p"; then
  6610. enable_fast_install=yes
  6611. fi
  6612. done
  6613. IFS="$lt_save_ifs"
  6614. ;;
  6615. esac
  6616. else
  6617. enable_fast_install=yes
  6618. fi
  6619. # This can be used to rebuild libtool when needed
  6620. LIBTOOL_DEPS="$ltmain"
  6621. # Always use our own libtool.
  6622. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6623. test -z "$LN_S" && LN_S="ln -s"
  6624. if test -n "${ZSH_VERSION+set}" ; then
  6625. setopt NO_GLOB_SUBST
  6626. fi
  6627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6628. $as_echo_n "checking for objdir... " >&6; }
  6629. if test "${lt_cv_objdir+set}" = set; then :
  6630. $as_echo_n "(cached) " >&6
  6631. else
  6632. rm -f .libs 2>/dev/null
  6633. mkdir .libs 2>/dev/null
  6634. if test -d .libs; then
  6635. lt_cv_objdir=.libs
  6636. else
  6637. # MS-DOS does not allow filenames that begin with a dot.
  6638. lt_cv_objdir=_libs
  6639. fi
  6640. rmdir .libs 2>/dev/null
  6641. fi
  6642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6643. $as_echo "$lt_cv_objdir" >&6; }
  6644. objdir=$lt_cv_objdir
  6645. cat >>confdefs.h <<_ACEOF
  6646. #define LT_OBJDIR "$lt_cv_objdir/"
  6647. _ACEOF
  6648. case $host_os in
  6649. aix3*)
  6650. # AIX sometimes has problems with the GCC collect2 program. For some
  6651. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6652. # vanish in a puff of smoke.
  6653. if test "X${COLLECT_NAMES+set}" != Xset; then
  6654. COLLECT_NAMES=
  6655. export COLLECT_NAMES
  6656. fi
  6657. ;;
  6658. esac
  6659. # Global variables:
  6660. ofile=libtool
  6661. can_build_shared=yes
  6662. # All known linkers require a `.a' archive for static linking (except MSVC,
  6663. # which needs '.lib').
  6664. libext=a
  6665. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6666. old_CC="$CC"
  6667. old_CFLAGS="$CFLAGS"
  6668. # Set sane defaults for various variables
  6669. test -z "$CC" && CC=cc
  6670. test -z "$LTCC" && LTCC=$CC
  6671. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6672. test -z "$LD" && LD=ld
  6673. test -z "$ac_objext" && ac_objext=o
  6674. for cc_temp in $compiler""; do
  6675. case $cc_temp in
  6676. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6677. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6678. \-*) ;;
  6679. *) break;;
  6680. esac
  6681. done
  6682. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6683. # Only perform the check for file, if the check method requires it
  6684. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6685. case $deplibs_check_method in
  6686. file_magic*)
  6687. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6689. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6690. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6691. $as_echo_n "(cached) " >&6
  6692. else
  6693. case $MAGIC_CMD in
  6694. [\\/*] | ?:[\\/]*)
  6695. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6696. ;;
  6697. *)
  6698. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6699. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6700. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6701. for ac_dir in $ac_dummy; do
  6702. IFS="$lt_save_ifs"
  6703. test -z "$ac_dir" && ac_dir=.
  6704. if test -f $ac_dir/${ac_tool_prefix}file; then
  6705. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6706. if test -n "$file_magic_test_file"; then
  6707. case $deplibs_check_method in
  6708. "file_magic "*)
  6709. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6710. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6711. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6712. $EGREP "$file_magic_regex" > /dev/null; then
  6713. :
  6714. else
  6715. cat <<_LT_EOF 1>&2
  6716. *** Warning: the command libtool uses to detect shared libraries,
  6717. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6718. *** The result is that libtool may fail to recognize shared libraries
  6719. *** as such. This will affect the creation of libtool libraries that
  6720. *** depend on shared libraries, but programs linked with such libtool
  6721. *** libraries will work regardless of this problem. Nevertheless, you
  6722. *** may want to report the problem to your system manager and/or to
  6723. *** [email protected]
  6724. _LT_EOF
  6725. fi ;;
  6726. esac
  6727. fi
  6728. break
  6729. fi
  6730. done
  6731. IFS="$lt_save_ifs"
  6732. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6733. ;;
  6734. esac
  6735. fi
  6736. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6737. if test -n "$MAGIC_CMD"; then
  6738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6739. $as_echo "$MAGIC_CMD" >&6; }
  6740. else
  6741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6742. $as_echo "no" >&6; }
  6743. fi
  6744. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6745. if test -n "$ac_tool_prefix"; then
  6746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6747. $as_echo_n "checking for file... " >&6; }
  6748. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6749. $as_echo_n "(cached) " >&6
  6750. else
  6751. case $MAGIC_CMD in
  6752. [\\/*] | ?:[\\/]*)
  6753. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6754. ;;
  6755. *)
  6756. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6757. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6758. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6759. for ac_dir in $ac_dummy; do
  6760. IFS="$lt_save_ifs"
  6761. test -z "$ac_dir" && ac_dir=.
  6762. if test -f $ac_dir/file; then
  6763. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6764. if test -n "$file_magic_test_file"; then
  6765. case $deplibs_check_method in
  6766. "file_magic "*)
  6767. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6768. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6769. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6770. $EGREP "$file_magic_regex" > /dev/null; then
  6771. :
  6772. else
  6773. cat <<_LT_EOF 1>&2
  6774. *** Warning: the command libtool uses to detect shared libraries,
  6775. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6776. *** The result is that libtool may fail to recognize shared libraries
  6777. *** as such. This will affect the creation of libtool libraries that
  6778. *** depend on shared libraries, but programs linked with such libtool
  6779. *** libraries will work regardless of this problem. Nevertheless, you
  6780. *** may want to report the problem to your system manager and/or to
  6781. *** [email protected]
  6782. _LT_EOF
  6783. fi ;;
  6784. esac
  6785. fi
  6786. break
  6787. fi
  6788. done
  6789. IFS="$lt_save_ifs"
  6790. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6791. ;;
  6792. esac
  6793. fi
  6794. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6795. if test -n "$MAGIC_CMD"; then
  6796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6797. $as_echo "$MAGIC_CMD" >&6; }
  6798. else
  6799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6800. $as_echo "no" >&6; }
  6801. fi
  6802. else
  6803. MAGIC_CMD=:
  6804. fi
  6805. fi
  6806. fi
  6807. ;;
  6808. esac
  6809. # Use C for the default configuration in the libtool script
  6810. lt_save_CC="$CC"
  6811. ac_ext=c
  6812. ac_cpp='$CPP $CPPFLAGS'
  6813. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6814. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6815. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6816. # Source file extension for C test sources.
  6817. ac_ext=c
  6818. # Object file extension for compiled C test sources.
  6819. objext=o
  6820. objext=$objext
  6821. # Code to be used in simple compile tests
  6822. lt_simple_compile_test_code="int some_variable = 0;"
  6823. # Code to be used in simple link tests
  6824. lt_simple_link_test_code='int main(){return(0);}'
  6825. # If no C compiler was specified, use CC.
  6826. LTCC=${LTCC-"$CC"}
  6827. # If no C compiler flags were specified, use CFLAGS.
  6828. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6829. # Allow CC to be a program name with arguments.
  6830. compiler=$CC
  6831. # Save the default compiler, since it gets overwritten when the other
  6832. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6833. compiler_DEFAULT=$CC
  6834. # save warnings/boilerplate of simple test code
  6835. ac_outfile=conftest.$ac_objext
  6836. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6837. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6838. _lt_compiler_boilerplate=`cat conftest.err`
  6839. $RM conftest*
  6840. ac_outfile=conftest.$ac_objext
  6841. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6842. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6843. _lt_linker_boilerplate=`cat conftest.err`
  6844. $RM -r conftest*
  6845. ## CAVEAT EMPTOR:
  6846. ## There is no encapsulation within the following macros, do not change
  6847. ## the running order or otherwise move them around unless you know exactly
  6848. ## what you are doing...
  6849. if test -n "$compiler"; then
  6850. lt_prog_compiler_no_builtin_flag=
  6851. if test "$GCC" = yes; then
  6852. case $cc_basename in
  6853. nvcc*)
  6854. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6855. *)
  6856. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6857. esac
  6858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6859. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6860. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  6861. $as_echo_n "(cached) " >&6
  6862. else
  6863. lt_cv_prog_compiler_rtti_exceptions=no
  6864. ac_outfile=conftest.$ac_objext
  6865. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6866. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6867. # Insert the option either (1) after the last *FLAGS variable, or
  6868. # (2) before a word containing "conftest.", or (3) at the end.
  6869. # Note that $ac_compile itself does not contain backslashes and begins
  6870. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6871. # The option is referenced via a variable to avoid confusing sed.
  6872. lt_compile=`echo "$ac_compile" | $SED \
  6873. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6874. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6875. -e 's:$: $lt_compiler_flag:'`
  6876. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6877. (eval "$lt_compile" 2>conftest.err)
  6878. ac_status=$?
  6879. cat conftest.err >&5
  6880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6881. if (exit $ac_status) && test -s "$ac_outfile"; then
  6882. # The compiler can only warn and ignore the option if not recognized
  6883. # So say no if there are warnings other than the usual output.
  6884. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6885. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6886. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6887. lt_cv_prog_compiler_rtti_exceptions=yes
  6888. fi
  6889. fi
  6890. $RM conftest*
  6891. fi
  6892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6893. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6894. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6895. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6896. else
  6897. :
  6898. fi
  6899. fi
  6900. lt_prog_compiler_wl=
  6901. lt_prog_compiler_pic=
  6902. lt_prog_compiler_static=
  6903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  6904. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6905. if test "$GCC" = yes; then
  6906. lt_prog_compiler_wl='-Wl,'
  6907. lt_prog_compiler_static='-static'
  6908. case $host_os in
  6909. aix*)
  6910. # All AIX code is PIC.
  6911. if test "$host_cpu" = ia64; then
  6912. # AIX 5 now supports IA64 processor
  6913. lt_prog_compiler_static='-Bstatic'
  6914. fi
  6915. ;;
  6916. amigaos*)
  6917. case $host_cpu in
  6918. powerpc)
  6919. # see comment about AmigaOS4 .so support
  6920. lt_prog_compiler_pic='-fPIC'
  6921. ;;
  6922. m68k)
  6923. # FIXME: we need at least 68020 code to build shared libraries, but
  6924. # adding the `-m68020' flag to GCC prevents building anything better,
  6925. # like `-m68040'.
  6926. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6927. ;;
  6928. esac
  6929. ;;
  6930. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6931. # PIC is the default for these OSes.
  6932. ;;
  6933. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6934. # This hack is so that the source file can tell whether it is being
  6935. # built for inclusion in a dll (and should export symbols for example).
  6936. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6937. # (--disable-auto-import) libraries
  6938. lt_prog_compiler_pic='-DDLL_EXPORT'
  6939. ;;
  6940. darwin* | rhapsody*)
  6941. # PIC is the default on this platform
  6942. # Common symbols not allowed in MH_DYLIB files
  6943. lt_prog_compiler_pic='-fno-common'
  6944. ;;
  6945. haiku*)
  6946. # PIC is the default for Haiku.
  6947. # The "-static" flag exists, but is broken.
  6948. lt_prog_compiler_static=
  6949. ;;
  6950. hpux*)
  6951. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6952. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6953. # sets the default TLS model and affects inlining.
  6954. case $host_cpu in
  6955. hppa*64*)
  6956. # +Z the default
  6957. ;;
  6958. *)
  6959. lt_prog_compiler_pic='-fPIC'
  6960. ;;
  6961. esac
  6962. ;;
  6963. interix[3-9]*)
  6964. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6965. # Instead, we relocate shared libraries at runtime.
  6966. ;;
  6967. msdosdjgpp*)
  6968. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6969. # on systems that don't support them.
  6970. lt_prog_compiler_can_build_shared=no
  6971. enable_shared=no
  6972. ;;
  6973. *nto* | *qnx*)
  6974. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6975. # it will coredump.
  6976. lt_prog_compiler_pic='-fPIC -shared'
  6977. ;;
  6978. sysv4*MP*)
  6979. if test -d /usr/nec; then
  6980. lt_prog_compiler_pic=-Kconform_pic
  6981. fi
  6982. ;;
  6983. *)
  6984. lt_prog_compiler_pic='-fPIC'
  6985. ;;
  6986. esac
  6987. case $cc_basename in
  6988. nvcc*) # Cuda Compiler Driver 2.2
  6989. lt_prog_compiler_wl='-Xlinker '
  6990. lt_prog_compiler_pic='-Xcompiler -fPIC'
  6991. ;;
  6992. esac
  6993. else
  6994. # PORTME Check for flag to pass linker flags through the system compiler.
  6995. case $host_os in
  6996. aix*)
  6997. lt_prog_compiler_wl='-Wl,'
  6998. if test "$host_cpu" = ia64; then
  6999. # AIX 5 now supports IA64 processor
  7000. lt_prog_compiler_static='-Bstatic'
  7001. else
  7002. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7003. fi
  7004. ;;
  7005. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7006. # This hack is so that the source file can tell whether it is being
  7007. # built for inclusion in a dll (and should export symbols for example).
  7008. lt_prog_compiler_pic='-DDLL_EXPORT'
  7009. ;;
  7010. hpux9* | hpux10* | hpux11*)
  7011. lt_prog_compiler_wl='-Wl,'
  7012. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7013. # not for PA HP-UX.
  7014. case $host_cpu in
  7015. hppa*64*|ia64*)
  7016. # +Z the default
  7017. ;;
  7018. *)
  7019. lt_prog_compiler_pic='+Z'
  7020. ;;
  7021. esac
  7022. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7023. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7024. ;;
  7025. irix5* | irix6* | nonstopux*)
  7026. lt_prog_compiler_wl='-Wl,'
  7027. # PIC (with -KPIC) is the default.
  7028. lt_prog_compiler_static='-non_shared'
  7029. ;;
  7030. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7031. case $cc_basename in
  7032. # old Intel for x86_64 which still supported -KPIC.
  7033. ecc*)
  7034. lt_prog_compiler_wl='-Wl,'
  7035. lt_prog_compiler_pic='-KPIC'
  7036. lt_prog_compiler_static='-static'
  7037. ;;
  7038. # icc used to be incompatible with GCC.
  7039. # ICC 10 doesn't accept -KPIC any more.
  7040. icc* | ifort*)
  7041. lt_prog_compiler_wl='-Wl,'
  7042. lt_prog_compiler_pic='-fPIC'
  7043. lt_prog_compiler_static='-static'
  7044. ;;
  7045. # Lahey Fortran 8.1.
  7046. lf95*)
  7047. lt_prog_compiler_wl='-Wl,'
  7048. lt_prog_compiler_pic='--shared'
  7049. lt_prog_compiler_static='--static'
  7050. ;;
  7051. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7052. # Portland Group compilers (*not* the Pentium gcc compiler,
  7053. # which looks to be a dead project)
  7054. lt_prog_compiler_wl='-Wl,'
  7055. lt_prog_compiler_pic='-fpic'
  7056. lt_prog_compiler_static='-Bstatic'
  7057. ;;
  7058. ccc*)
  7059. lt_prog_compiler_wl='-Wl,'
  7060. # All Alpha code is PIC.
  7061. lt_prog_compiler_static='-non_shared'
  7062. ;;
  7063. xl* | bgxl* | bgf* | mpixl*)
  7064. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7065. lt_prog_compiler_wl='-Wl,'
  7066. lt_prog_compiler_pic='-qpic'
  7067. lt_prog_compiler_static='-qstaticlink'
  7068. ;;
  7069. *)
  7070. case `$CC -V 2>&1 | sed 5q` in
  7071. *Sun\ F* | *Sun*Fortran*)
  7072. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7073. lt_prog_compiler_pic='-KPIC'
  7074. lt_prog_compiler_static='-Bstatic'
  7075. lt_prog_compiler_wl=''
  7076. ;;
  7077. *Sun\ C*)
  7078. # Sun C 5.9
  7079. lt_prog_compiler_pic='-KPIC'
  7080. lt_prog_compiler_static='-Bstatic'
  7081. lt_prog_compiler_wl='-Wl,'
  7082. ;;
  7083. esac
  7084. ;;
  7085. esac
  7086. ;;
  7087. newsos6)
  7088. lt_prog_compiler_pic='-KPIC'
  7089. lt_prog_compiler_static='-Bstatic'
  7090. ;;
  7091. *nto* | *qnx*)
  7092. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7093. # it will coredump.
  7094. lt_prog_compiler_pic='-fPIC -shared'
  7095. ;;
  7096. osf3* | osf4* | osf5*)
  7097. lt_prog_compiler_wl='-Wl,'
  7098. # All OSF/1 code is PIC.
  7099. lt_prog_compiler_static='-non_shared'
  7100. ;;
  7101. rdos*)
  7102. lt_prog_compiler_static='-non_shared'
  7103. ;;
  7104. solaris*)
  7105. lt_prog_compiler_pic='-KPIC'
  7106. lt_prog_compiler_static='-Bstatic'
  7107. case $cc_basename in
  7108. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7109. lt_prog_compiler_wl='-Qoption ld ';;
  7110. *)
  7111. lt_prog_compiler_wl='-Wl,';;
  7112. esac
  7113. ;;
  7114. sunos4*)
  7115. lt_prog_compiler_wl='-Qoption ld '
  7116. lt_prog_compiler_pic='-PIC'
  7117. lt_prog_compiler_static='-Bstatic'
  7118. ;;
  7119. sysv4 | sysv4.2uw2* | sysv4.3*)
  7120. lt_prog_compiler_wl='-Wl,'
  7121. lt_prog_compiler_pic='-KPIC'
  7122. lt_prog_compiler_static='-Bstatic'
  7123. ;;
  7124. sysv4*MP*)
  7125. if test -d /usr/nec ;then
  7126. lt_prog_compiler_pic='-Kconform_pic'
  7127. lt_prog_compiler_static='-Bstatic'
  7128. fi
  7129. ;;
  7130. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7131. lt_prog_compiler_wl='-Wl,'
  7132. lt_prog_compiler_pic='-KPIC'
  7133. lt_prog_compiler_static='-Bstatic'
  7134. ;;
  7135. unicos*)
  7136. lt_prog_compiler_wl='-Wl,'
  7137. lt_prog_compiler_can_build_shared=no
  7138. ;;
  7139. uts4*)
  7140. lt_prog_compiler_pic='-pic'
  7141. lt_prog_compiler_static='-Bstatic'
  7142. ;;
  7143. *)
  7144. lt_prog_compiler_can_build_shared=no
  7145. ;;
  7146. esac
  7147. fi
  7148. case $host_os in
  7149. # For platforms which do not support PIC, -DPIC is meaningless:
  7150. *djgpp*)
  7151. lt_prog_compiler_pic=
  7152. ;;
  7153. *)
  7154. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7155. ;;
  7156. esac
  7157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7158. $as_echo "$lt_prog_compiler_pic" >&6; }
  7159. #
  7160. # Check to make sure the PIC flag actually works.
  7161. #
  7162. if test -n "$lt_prog_compiler_pic"; then
  7163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7164. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7165. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7166. $as_echo_n "(cached) " >&6
  7167. else
  7168. lt_cv_prog_compiler_pic_works=no
  7169. ac_outfile=conftest.$ac_objext
  7170. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7171. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7172. # Insert the option either (1) after the last *FLAGS variable, or
  7173. # (2) before a word containing "conftest.", or (3) at the end.
  7174. # Note that $ac_compile itself does not contain backslashes and begins
  7175. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7176. # The option is referenced via a variable to avoid confusing sed.
  7177. lt_compile=`echo "$ac_compile" | $SED \
  7178. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7179. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7180. -e 's:$: $lt_compiler_flag:'`
  7181. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7182. (eval "$lt_compile" 2>conftest.err)
  7183. ac_status=$?
  7184. cat conftest.err >&5
  7185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7186. if (exit $ac_status) && test -s "$ac_outfile"; then
  7187. # The compiler can only warn and ignore the option if not recognized
  7188. # So say no if there are warnings other than the usual output.
  7189. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7190. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7191. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7192. lt_cv_prog_compiler_pic_works=yes
  7193. fi
  7194. fi
  7195. $RM conftest*
  7196. fi
  7197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7198. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7199. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7200. case $lt_prog_compiler_pic in
  7201. "" | " "*) ;;
  7202. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7203. esac
  7204. else
  7205. lt_prog_compiler_pic=
  7206. lt_prog_compiler_can_build_shared=no
  7207. fi
  7208. fi
  7209. #
  7210. # Check to make sure the static flag actually works.
  7211. #
  7212. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7214. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7215. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7216. $as_echo_n "(cached) " >&6
  7217. else
  7218. lt_cv_prog_compiler_static_works=no
  7219. save_LDFLAGS="$LDFLAGS"
  7220. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7221. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7222. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7223. # The linker can only warn and ignore the option if not recognized
  7224. # So say no if there are warnings
  7225. if test -s conftest.err; then
  7226. # Append any errors to the config.log.
  7227. cat conftest.err 1>&5
  7228. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7229. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7230. if diff conftest.exp conftest.er2 >/dev/null; then
  7231. lt_cv_prog_compiler_static_works=yes
  7232. fi
  7233. else
  7234. lt_cv_prog_compiler_static_works=yes
  7235. fi
  7236. fi
  7237. $RM -r conftest*
  7238. LDFLAGS="$save_LDFLAGS"
  7239. fi
  7240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7241. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7242. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7243. :
  7244. else
  7245. lt_prog_compiler_static=
  7246. fi
  7247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7248. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7249. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7250. $as_echo_n "(cached) " >&6
  7251. else
  7252. lt_cv_prog_compiler_c_o=no
  7253. $RM -r conftest 2>/dev/null
  7254. mkdir conftest
  7255. cd conftest
  7256. mkdir out
  7257. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7258. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7259. # Insert the option either (1) after the last *FLAGS variable, or
  7260. # (2) before a word containing "conftest.", or (3) at the end.
  7261. # Note that $ac_compile itself does not contain backslashes and begins
  7262. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7263. lt_compile=`echo "$ac_compile" | $SED \
  7264. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7265. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7266. -e 's:$: $lt_compiler_flag:'`
  7267. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7268. (eval "$lt_compile" 2>out/conftest.err)
  7269. ac_status=$?
  7270. cat out/conftest.err >&5
  7271. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7272. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7273. then
  7274. # The compiler can only warn and ignore the option if not recognized
  7275. # So say no if there are warnings
  7276. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7277. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7278. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7279. lt_cv_prog_compiler_c_o=yes
  7280. fi
  7281. fi
  7282. chmod u+w . 2>&5
  7283. $RM conftest*
  7284. # SGI C++ compiler will create directory out/ii_files/ for
  7285. # template instantiation
  7286. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7287. $RM out/* && rmdir out
  7288. cd ..
  7289. $RM -r conftest
  7290. $RM conftest*
  7291. fi
  7292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7293. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7295. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7296. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7297. $as_echo_n "(cached) " >&6
  7298. else
  7299. lt_cv_prog_compiler_c_o=no
  7300. $RM -r conftest 2>/dev/null
  7301. mkdir conftest
  7302. cd conftest
  7303. mkdir out
  7304. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7305. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7306. # Insert the option either (1) after the last *FLAGS variable, or
  7307. # (2) before a word containing "conftest.", or (3) at the end.
  7308. # Note that $ac_compile itself does not contain backslashes and begins
  7309. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7310. lt_compile=`echo "$ac_compile" | $SED \
  7311. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7312. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7313. -e 's:$: $lt_compiler_flag:'`
  7314. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7315. (eval "$lt_compile" 2>out/conftest.err)
  7316. ac_status=$?
  7317. cat out/conftest.err >&5
  7318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7319. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7320. then
  7321. # The compiler can only warn and ignore the option if not recognized
  7322. # So say no if there are warnings
  7323. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7324. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7325. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7326. lt_cv_prog_compiler_c_o=yes
  7327. fi
  7328. fi
  7329. chmod u+w . 2>&5
  7330. $RM conftest*
  7331. # SGI C++ compiler will create directory out/ii_files/ for
  7332. # template instantiation
  7333. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7334. $RM out/* && rmdir out
  7335. cd ..
  7336. $RM -r conftest
  7337. $RM conftest*
  7338. fi
  7339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7340. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7341. hard_links="nottested"
  7342. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7343. # do not overwrite the value of need_locks provided by the user
  7344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7345. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7346. hard_links=yes
  7347. $RM conftest*
  7348. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7349. touch conftest.a
  7350. ln conftest.a conftest.b 2>&5 || hard_links=no
  7351. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7353. $as_echo "$hard_links" >&6; }
  7354. if test "$hard_links" = no; then
  7355. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7356. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7357. need_locks=warn
  7358. fi
  7359. else
  7360. need_locks=no
  7361. fi
  7362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7363. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7364. runpath_var=
  7365. allow_undefined_flag=
  7366. always_export_symbols=no
  7367. archive_cmds=
  7368. archive_expsym_cmds=
  7369. compiler_needs_object=no
  7370. enable_shared_with_static_runtimes=no
  7371. export_dynamic_flag_spec=
  7372. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7373. hardcode_automatic=no
  7374. hardcode_direct=no
  7375. hardcode_direct_absolute=no
  7376. hardcode_libdir_flag_spec=
  7377. hardcode_libdir_flag_spec_ld=
  7378. hardcode_libdir_separator=
  7379. hardcode_minus_L=no
  7380. hardcode_shlibpath_var=unsupported
  7381. inherit_rpath=no
  7382. link_all_deplibs=unknown
  7383. module_cmds=
  7384. module_expsym_cmds=
  7385. old_archive_from_new_cmds=
  7386. old_archive_from_expsyms_cmds=
  7387. thread_safe_flag_spec=
  7388. whole_archive_flag_spec=
  7389. # include_expsyms should be a list of space-separated symbols to be *always*
  7390. # included in the symbol list
  7391. include_expsyms=
  7392. # exclude_expsyms can be an extended regexp of symbols to exclude
  7393. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7394. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7395. # as well as any symbol that contains `d'.
  7396. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7397. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7398. # platforms (ab)use it in PIC code, but their linkers get confused if
  7399. # the symbol is explicitly referenced. Since portable code cannot
  7400. # rely on this symbol name, it's probably fine to never include it in
  7401. # preloaded symbol tables.
  7402. # Exclude shared library initialization/finalization symbols.
  7403. extract_expsyms_cmds=
  7404. case $host_os in
  7405. cygwin* | mingw* | pw32* | cegcc*)
  7406. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7407. # When not using gcc, we currently assume that we are using
  7408. # Microsoft Visual C++.
  7409. if test "$GCC" != yes; then
  7410. with_gnu_ld=no
  7411. fi
  7412. ;;
  7413. interix*)
  7414. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7415. with_gnu_ld=yes
  7416. ;;
  7417. openbsd*)
  7418. with_gnu_ld=no
  7419. ;;
  7420. esac
  7421. ld_shlibs=yes
  7422. # On some targets, GNU ld is compatible enough with the native linker
  7423. # that we're better off using the native interface for both.
  7424. lt_use_gnu_ld_interface=no
  7425. if test "$with_gnu_ld" = yes; then
  7426. case $host_os in
  7427. aix*)
  7428. # The AIX port of GNU ld has always aspired to compatibility
  7429. # with the native linker. However, as the warning in the GNU ld
  7430. # block says, versions before 2.19.5* couldn't really create working
  7431. # shared libraries, regardless of the interface used.
  7432. case `$LD -v 2>&1` in
  7433. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7434. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7435. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7436. *)
  7437. lt_use_gnu_ld_interface=yes
  7438. ;;
  7439. esac
  7440. ;;
  7441. *)
  7442. lt_use_gnu_ld_interface=yes
  7443. ;;
  7444. esac
  7445. fi
  7446. if test "$lt_use_gnu_ld_interface" = yes; then
  7447. # If archive_cmds runs LD, not CC, wlarc should be empty
  7448. wlarc='${wl}'
  7449. # Set some defaults for GNU ld with shared library support. These
  7450. # are reset later if shared libraries are not supported. Putting them
  7451. # here allows them to be overridden if necessary.
  7452. runpath_var=LD_RUN_PATH
  7453. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7454. export_dynamic_flag_spec='${wl}--export-dynamic'
  7455. # ancient GNU ld didn't support --whole-archive et. al.
  7456. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7457. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7458. else
  7459. whole_archive_flag_spec=
  7460. fi
  7461. supports_anon_versioning=no
  7462. case `$LD -v 2>&1` in
  7463. *GNU\ gold*) supports_anon_versioning=yes ;;
  7464. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7465. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7466. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7467. *\ 2.11.*) ;; # other 2.11 versions
  7468. *) supports_anon_versioning=yes ;;
  7469. esac
  7470. # See if GNU ld supports shared libraries.
  7471. case $host_os in
  7472. aix[3-9]*)
  7473. # On AIX/PPC, the GNU linker is very broken
  7474. if test "$host_cpu" != ia64; then
  7475. ld_shlibs=no
  7476. cat <<_LT_EOF 1>&2
  7477. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7478. *** to be unable to reliably create shared libraries on AIX.
  7479. *** Therefore, libtool is disabling shared libraries support. If you
  7480. *** really care for shared libraries, you may want to install binutils
  7481. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7482. *** You will then need to restart the configuration process.
  7483. _LT_EOF
  7484. fi
  7485. ;;
  7486. amigaos*)
  7487. case $host_cpu in
  7488. powerpc)
  7489. # see comment about AmigaOS4 .so support
  7490. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7491. archive_expsym_cmds=''
  7492. ;;
  7493. m68k)
  7494. 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)'
  7495. hardcode_libdir_flag_spec='-L$libdir'
  7496. hardcode_minus_L=yes
  7497. ;;
  7498. esac
  7499. ;;
  7500. beos*)
  7501. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7502. allow_undefined_flag=unsupported
  7503. # Joseph Beckenbach <[email protected]> says some releases of gcc
  7504. # support --undefined. This deserves some investigation. FIXME
  7505. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7506. else
  7507. ld_shlibs=no
  7508. fi
  7509. ;;
  7510. cygwin* | mingw* | pw32* | cegcc*)
  7511. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7512. # as there is no search path for DLLs.
  7513. hardcode_libdir_flag_spec='-L$libdir'
  7514. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7515. allow_undefined_flag=unsupported
  7516. always_export_symbols=no
  7517. enable_shared_with_static_runtimes=yes
  7518. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7519. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7520. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7521. # If the export-symbols file already is a .def file (1st line
  7522. # is EXPORTS), use it as is; otherwise, prepend...
  7523. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7524. cp $export_symbols $output_objdir/$soname.def;
  7525. else
  7526. echo EXPORTS > $output_objdir/$soname.def;
  7527. cat $export_symbols >> $output_objdir/$soname.def;
  7528. fi~
  7529. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7530. else
  7531. ld_shlibs=no
  7532. fi
  7533. ;;
  7534. haiku*)
  7535. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7536. link_all_deplibs=yes
  7537. ;;
  7538. interix[3-9]*)
  7539. hardcode_direct=no
  7540. hardcode_shlibpath_var=no
  7541. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7542. export_dynamic_flag_spec='${wl}-E'
  7543. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7544. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7545. # default) and relocated if they conflict, which is a slow very memory
  7546. # consuming and fragmenting process. To avoid this, we pick a random,
  7547. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7548. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7549. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7550. 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'
  7551. ;;
  7552. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7553. tmp_diet=no
  7554. if test "$host_os" = linux-dietlibc; then
  7555. case $cc_basename in
  7556. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7557. esac
  7558. fi
  7559. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7560. && test "$tmp_diet" = no
  7561. then
  7562. tmp_addflag=
  7563. tmp_sharedflag='-shared'
  7564. case $cc_basename,$host_cpu in
  7565. pgcc*) # Portland Group C compiler
  7566. 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'
  7567. tmp_addflag=' $pic_flag'
  7568. ;;
  7569. pgf77* | pgf90* | pgf95* | pgfortran*)
  7570. # Portland Group f77 and f90 compilers
  7571. 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'
  7572. tmp_addflag=' $pic_flag -Mnomain' ;;
  7573. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7574. tmp_addflag=' -i_dynamic' ;;
  7575. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7576. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7577. ifc* | ifort*) # Intel Fortran compiler
  7578. tmp_addflag=' -nofor_main' ;;
  7579. lf95*) # Lahey Fortran 8.1
  7580. whole_archive_flag_spec=
  7581. tmp_sharedflag='--shared' ;;
  7582. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7583. tmp_sharedflag='-qmkshrobj'
  7584. tmp_addflag= ;;
  7585. nvcc*) # Cuda Compiler Driver 2.2
  7586. 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'
  7587. compiler_needs_object=yes
  7588. ;;
  7589. esac
  7590. case `$CC -V 2>&1 | sed 5q` in
  7591. *Sun\ C*) # Sun C 5.9
  7592. 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'
  7593. compiler_needs_object=yes
  7594. tmp_sharedflag='-G' ;;
  7595. *Sun\ F*) # Sun Fortran 8.3
  7596. tmp_sharedflag='-G' ;;
  7597. esac
  7598. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7599. if test "x$supports_anon_versioning" = xyes; then
  7600. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7601. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7602. echo "local: *; };" >> $output_objdir/$libname.ver~
  7603. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7604. fi
  7605. case $cc_basename in
  7606. xlf* | bgf* | bgxlf* | mpixlf*)
  7607. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7608. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7609. hardcode_libdir_flag_spec=
  7610. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7611. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7612. if test "x$supports_anon_versioning" = xyes; then
  7613. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7614. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7615. echo "local: *; };" >> $output_objdir/$libname.ver~
  7616. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7617. fi
  7618. ;;
  7619. esac
  7620. else
  7621. ld_shlibs=no
  7622. fi
  7623. ;;
  7624. netbsd*)
  7625. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7626. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7627. wlarc=
  7628. else
  7629. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7630. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7631. fi
  7632. ;;
  7633. solaris*)
  7634. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7635. ld_shlibs=no
  7636. cat <<_LT_EOF 1>&2
  7637. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7638. *** create shared libraries on Solaris systems. Therefore, libtool
  7639. *** is disabling shared libraries support. We urge you to upgrade GNU
  7640. *** binutils to release 2.9.1 or newer. Another option is to modify
  7641. *** your PATH or compiler configuration so that the native linker is
  7642. *** used, and then restart.
  7643. _LT_EOF
  7644. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7645. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7646. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7647. else
  7648. ld_shlibs=no
  7649. fi
  7650. ;;
  7651. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7652. case `$LD -v 2>&1` in
  7653. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7654. ld_shlibs=no
  7655. cat <<_LT_EOF 1>&2
  7656. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7657. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7658. *** is disabling shared libraries support. We urge you to upgrade GNU
  7659. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7660. *** your PATH or compiler configuration so that the native linker is
  7661. *** used, and then restart.
  7662. _LT_EOF
  7663. ;;
  7664. *)
  7665. # For security reasons, it is highly recommended that you always
  7666. # use absolute paths for naming shared libraries, and exclude the
  7667. # DT_RUNPATH tag from executables and libraries. But doing so
  7668. # requires that you compile everything twice, which is a pain.
  7669. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7670. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7671. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7672. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7673. else
  7674. ld_shlibs=no
  7675. fi
  7676. ;;
  7677. esac
  7678. ;;
  7679. sunos4*)
  7680. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7681. wlarc=
  7682. hardcode_direct=yes
  7683. hardcode_shlibpath_var=no
  7684. ;;
  7685. *)
  7686. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7687. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7688. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7689. else
  7690. ld_shlibs=no
  7691. fi
  7692. ;;
  7693. esac
  7694. if test "$ld_shlibs" = no; then
  7695. runpath_var=
  7696. hardcode_libdir_flag_spec=
  7697. export_dynamic_flag_spec=
  7698. whole_archive_flag_spec=
  7699. fi
  7700. else
  7701. # PORTME fill in a description of your system's linker (not GNU ld)
  7702. case $host_os in
  7703. aix3*)
  7704. allow_undefined_flag=unsupported
  7705. always_export_symbols=yes
  7706. 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'
  7707. # Note: this linker hardcodes the directories in LIBPATH if there
  7708. # are no directories specified by -L.
  7709. hardcode_minus_L=yes
  7710. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7711. # Neither direct hardcoding nor static linking is supported with a
  7712. # broken collect2.
  7713. hardcode_direct=unsupported
  7714. fi
  7715. ;;
  7716. aix[4-9]*)
  7717. if test "$host_cpu" = ia64; then
  7718. # On IA64, the linker does run time linking by default, so we don't
  7719. # have to do anything special.
  7720. aix_use_runtimelinking=no
  7721. exp_sym_flag='-Bexport'
  7722. no_entry_flag=""
  7723. else
  7724. # If we're using GNU nm, then we don't want the "-C" option.
  7725. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7726. # Also, AIX nm treats weak defined symbols like other global
  7727. # defined symbols, whereas GNU nm marks them as "W".
  7728. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7729. 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'
  7730. else
  7731. 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'
  7732. fi
  7733. aix_use_runtimelinking=no
  7734. # Test if we are trying to use run time linking or normal
  7735. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7736. # need to do runtime linking.
  7737. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7738. for ld_flag in $LDFLAGS; do
  7739. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7740. aix_use_runtimelinking=yes
  7741. break
  7742. fi
  7743. done
  7744. ;;
  7745. esac
  7746. exp_sym_flag='-bexport'
  7747. no_entry_flag='-bnoentry'
  7748. fi
  7749. # When large executables or shared objects are built, AIX ld can
  7750. # have problems creating the table of contents. If linking a library
  7751. # or program results in "error TOC overflow" add -mminimal-toc to
  7752. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7753. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7754. archive_cmds=''
  7755. hardcode_direct=yes
  7756. hardcode_direct_absolute=yes
  7757. hardcode_libdir_separator=':'
  7758. link_all_deplibs=yes
  7759. file_list_spec='${wl}-f,'
  7760. if test "$GCC" = yes; then
  7761. case $host_os in aix4.[012]|aix4.[012].*)
  7762. # We only want to do this on AIX 4.2 and lower, the check
  7763. # below for broken collect2 doesn't work under 4.3+
  7764. collect2name=`${CC} -print-prog-name=collect2`
  7765. if test -f "$collect2name" &&
  7766. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7767. then
  7768. # We have reworked collect2
  7769. :
  7770. else
  7771. # We have old collect2
  7772. hardcode_direct=unsupported
  7773. # It fails to find uninstalled libraries when the uninstalled
  7774. # path is not listed in the libpath. Setting hardcode_minus_L
  7775. # to unsupported forces relinking
  7776. hardcode_minus_L=yes
  7777. hardcode_libdir_flag_spec='-L$libdir'
  7778. hardcode_libdir_separator=
  7779. fi
  7780. ;;
  7781. esac
  7782. shared_flag='-shared'
  7783. if test "$aix_use_runtimelinking" = yes; then
  7784. shared_flag="$shared_flag "'${wl}-G'
  7785. fi
  7786. link_all_deplibs=no
  7787. else
  7788. # not using gcc
  7789. if test "$host_cpu" = ia64; then
  7790. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7791. # chokes on -Wl,-G. The following line is correct:
  7792. shared_flag='-G'
  7793. else
  7794. if test "$aix_use_runtimelinking" = yes; then
  7795. shared_flag='${wl}-G'
  7796. else
  7797. shared_flag='${wl}-bM:SRE'
  7798. fi
  7799. fi
  7800. fi
  7801. export_dynamic_flag_spec='${wl}-bexpall'
  7802. # It seems that -bexpall does not export symbols beginning with
  7803. # underscore (_), so it is better to generate a list of symbols to export.
  7804. always_export_symbols=yes
  7805. if test "$aix_use_runtimelinking" = yes; then
  7806. # Warning - without using the other runtime loading flags (-brtl),
  7807. # -berok will link without error, but may produce a broken library.
  7808. allow_undefined_flag='-berok'
  7809. # Determine the default libpath from the value encoded in an
  7810. # empty executable.
  7811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7812. /* end confdefs.h. */
  7813. int
  7814. main ()
  7815. {
  7816. ;
  7817. return 0;
  7818. }
  7819. _ACEOF
  7820. if ac_fn_c_try_link "$LINENO"; then :
  7821. lt_aix_libpath_sed='
  7822. /Import File Strings/,/^$/ {
  7823. /^0/ {
  7824. s/^0 *\(.*\)$/\1/
  7825. p
  7826. }
  7827. }'
  7828. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7829. # Check for a 64-bit object if we didn't find anything.
  7830. if test -z "$aix_libpath"; then
  7831. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7832. fi
  7833. fi
  7834. rm -f core conftest.err conftest.$ac_objext \
  7835. conftest$ac_exeext conftest.$ac_ext
  7836. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7837. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7838. 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"
  7839. else
  7840. if test "$host_cpu" = ia64; then
  7841. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7842. allow_undefined_flag="-z nodefs"
  7843. 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"
  7844. else
  7845. # Determine the default libpath from the value encoded in an
  7846. # empty executable.
  7847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7848. /* end confdefs.h. */
  7849. int
  7850. main ()
  7851. {
  7852. ;
  7853. return 0;
  7854. }
  7855. _ACEOF
  7856. if ac_fn_c_try_link "$LINENO"; then :
  7857. lt_aix_libpath_sed='
  7858. /Import File Strings/,/^$/ {
  7859. /^0/ {
  7860. s/^0 *\(.*\)$/\1/
  7861. p
  7862. }
  7863. }'
  7864. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7865. # Check for a 64-bit object if we didn't find anything.
  7866. if test -z "$aix_libpath"; then
  7867. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7868. fi
  7869. fi
  7870. rm -f core conftest.err conftest.$ac_objext \
  7871. conftest$ac_exeext conftest.$ac_ext
  7872. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7873. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7874. # Warning - without using the other run time loading flags,
  7875. # -berok will link without error, but may produce a broken library.
  7876. no_undefined_flag=' ${wl}-bernotok'
  7877. allow_undefined_flag=' ${wl}-berok'
  7878. if test "$with_gnu_ld" = yes; then
  7879. # We only use this code for GNU lds that support --whole-archive.
  7880. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7881. else
  7882. # Exported symbols can be pulled into shared objects from archives
  7883. whole_archive_flag_spec='$convenience'
  7884. fi
  7885. archive_cmds_need_lc=yes
  7886. # This is similar to how AIX traditionally builds its shared libraries.
  7887. 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'
  7888. fi
  7889. fi
  7890. ;;
  7891. amigaos*)
  7892. case $host_cpu in
  7893. powerpc)
  7894. # see comment about AmigaOS4 .so support
  7895. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7896. archive_expsym_cmds=''
  7897. ;;
  7898. m68k)
  7899. 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)'
  7900. hardcode_libdir_flag_spec='-L$libdir'
  7901. hardcode_minus_L=yes
  7902. ;;
  7903. esac
  7904. ;;
  7905. bsdi[45]*)
  7906. export_dynamic_flag_spec=-rdynamic
  7907. ;;
  7908. cygwin* | mingw* | pw32* | cegcc*)
  7909. # When not using gcc, we currently assume that we are using
  7910. # Microsoft Visual C++.
  7911. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7912. # no search path for DLLs.
  7913. hardcode_libdir_flag_spec=' '
  7914. allow_undefined_flag=unsupported
  7915. # Tell ltmain to make .lib files, not .a files.
  7916. libext=lib
  7917. # Tell ltmain to make .dll files, not .so files.
  7918. shrext_cmds=".dll"
  7919. # FIXME: Setting linknames here is a bad hack.
  7920. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  7921. # The linker will automatically build a .lib file if we build a DLL.
  7922. old_archive_from_new_cmds='true'
  7923. # FIXME: Should let the user specify the lib program.
  7924. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7925. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7926. enable_shared_with_static_runtimes=yes
  7927. ;;
  7928. darwin* | rhapsody*)
  7929. archive_cmds_need_lc=no
  7930. hardcode_direct=no
  7931. hardcode_automatic=yes
  7932. hardcode_shlibpath_var=unsupported
  7933. if test "$lt_cv_ld_force_load" = "yes"; then
  7934. 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\"`'
  7935. else
  7936. whole_archive_flag_spec=''
  7937. fi
  7938. link_all_deplibs=yes
  7939. allow_undefined_flag="$_lt_dar_allow_undefined"
  7940. case $cc_basename in
  7941. ifort*) _lt_dar_can_shared=yes ;;
  7942. *) _lt_dar_can_shared=$GCC ;;
  7943. esac
  7944. if test "$_lt_dar_can_shared" = "yes"; then
  7945. output_verbose_link_cmd=func_echo_all
  7946. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7947. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7948. 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}"
  7949. 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}"
  7950. else
  7951. ld_shlibs=no
  7952. fi
  7953. ;;
  7954. dgux*)
  7955. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7956. hardcode_libdir_flag_spec='-L$libdir'
  7957. hardcode_shlibpath_var=no
  7958. ;;
  7959. freebsd1*)
  7960. ld_shlibs=no
  7961. ;;
  7962. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7963. # support. Future versions do this automatically, but an explicit c++rt0.o
  7964. # does not break anything, and helps significantly (at the cost of a little
  7965. # extra space).
  7966. freebsd2.2*)
  7967. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7968. hardcode_libdir_flag_spec='-R$libdir'
  7969. hardcode_direct=yes
  7970. hardcode_shlibpath_var=no
  7971. ;;
  7972. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7973. freebsd2*)
  7974. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7975. hardcode_direct=yes
  7976. hardcode_minus_L=yes
  7977. hardcode_shlibpath_var=no
  7978. ;;
  7979. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7980. freebsd* | dragonfly*)
  7981. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7982. hardcode_libdir_flag_spec='-R$libdir'
  7983. hardcode_direct=yes
  7984. hardcode_shlibpath_var=no
  7985. ;;
  7986. hpux9*)
  7987. if test "$GCC" = yes; then
  7988. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7989. else
  7990. 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'
  7991. fi
  7992. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7993. hardcode_libdir_separator=:
  7994. hardcode_direct=yes
  7995. # hardcode_minus_L: Not really in the search PATH,
  7996. # but as the default location of the library.
  7997. hardcode_minus_L=yes
  7998. export_dynamic_flag_spec='${wl}-E'
  7999. ;;
  8000. hpux10*)
  8001. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8002. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8003. else
  8004. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8005. fi
  8006. if test "$with_gnu_ld" = no; then
  8007. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8008. hardcode_libdir_flag_spec_ld='+b $libdir'
  8009. hardcode_libdir_separator=:
  8010. hardcode_direct=yes
  8011. hardcode_direct_absolute=yes
  8012. export_dynamic_flag_spec='${wl}-E'
  8013. # hardcode_minus_L: Not really in the search PATH,
  8014. # but as the default location of the library.
  8015. hardcode_minus_L=yes
  8016. fi
  8017. ;;
  8018. hpux11*)
  8019. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8020. case $host_cpu in
  8021. hppa*64*)
  8022. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8023. ;;
  8024. ia64*)
  8025. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8026. ;;
  8027. *)
  8028. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8029. ;;
  8030. esac
  8031. else
  8032. case $host_cpu in
  8033. hppa*64*)
  8034. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8035. ;;
  8036. ia64*)
  8037. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8038. ;;
  8039. *)
  8040. # Older versions of the 11.00 compiler do not understand -b yet
  8041. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8043. $as_echo_n "checking if $CC understands -b... " >&6; }
  8044. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  8045. $as_echo_n "(cached) " >&6
  8046. else
  8047. lt_cv_prog_compiler__b=no
  8048. save_LDFLAGS="$LDFLAGS"
  8049. LDFLAGS="$LDFLAGS -b"
  8050. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8051. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8052. # The linker can only warn and ignore the option if not recognized
  8053. # So say no if there are warnings
  8054. if test -s conftest.err; then
  8055. # Append any errors to the config.log.
  8056. cat conftest.err 1>&5
  8057. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8058. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8059. if diff conftest.exp conftest.er2 >/dev/null; then
  8060. lt_cv_prog_compiler__b=yes
  8061. fi
  8062. else
  8063. lt_cv_prog_compiler__b=yes
  8064. fi
  8065. fi
  8066. $RM -r conftest*
  8067. LDFLAGS="$save_LDFLAGS"
  8068. fi
  8069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8070. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8071. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8072. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8073. else
  8074. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8075. fi
  8076. ;;
  8077. esac
  8078. fi
  8079. if test "$with_gnu_ld" = no; then
  8080. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8081. hardcode_libdir_separator=:
  8082. case $host_cpu in
  8083. hppa*64*|ia64*)
  8084. hardcode_direct=no
  8085. hardcode_shlibpath_var=no
  8086. ;;
  8087. *)
  8088. hardcode_direct=yes
  8089. hardcode_direct_absolute=yes
  8090. export_dynamic_flag_spec='${wl}-E'
  8091. # hardcode_minus_L: Not really in the search PATH,
  8092. # but as the default location of the library.
  8093. hardcode_minus_L=yes
  8094. ;;
  8095. esac
  8096. fi
  8097. ;;
  8098. irix5* | irix6* | nonstopux*)
  8099. if test "$GCC" = yes; then
  8100. archive_cmds='$CC -shared $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'
  8101. # Try to use the -exported_symbol ld option, if it does not
  8102. # work, assume that -exports_file does not work either and
  8103. # implicitly export all symbols.
  8104. save_LDFLAGS="$LDFLAGS"
  8105. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8107. /* end confdefs.h. */
  8108. int foo(void) {}
  8109. _ACEOF
  8110. if ac_fn_c_try_link "$LINENO"; then :
  8111. archive_expsym_cmds='$CC -shared $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'
  8112. fi
  8113. rm -f core conftest.err conftest.$ac_objext \
  8114. conftest$ac_exeext conftest.$ac_ext
  8115. LDFLAGS="$save_LDFLAGS"
  8116. else
  8117. 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'
  8118. 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'
  8119. fi
  8120. archive_cmds_need_lc='no'
  8121. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8122. hardcode_libdir_separator=:
  8123. inherit_rpath=yes
  8124. link_all_deplibs=yes
  8125. ;;
  8126. netbsd*)
  8127. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8128. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8129. else
  8130. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8131. fi
  8132. hardcode_libdir_flag_spec='-R$libdir'
  8133. hardcode_direct=yes
  8134. hardcode_shlibpath_var=no
  8135. ;;
  8136. newsos6)
  8137. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8138. hardcode_direct=yes
  8139. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8140. hardcode_libdir_separator=:
  8141. hardcode_shlibpath_var=no
  8142. ;;
  8143. *nto* | *qnx*)
  8144. ;;
  8145. openbsd*)
  8146. if test -f /usr/libexec/ld.so; then
  8147. hardcode_direct=yes
  8148. hardcode_shlibpath_var=no
  8149. hardcode_direct_absolute=yes
  8150. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8151. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8152. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8153. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8154. export_dynamic_flag_spec='${wl}-E'
  8155. else
  8156. case $host_os in
  8157. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8158. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8159. hardcode_libdir_flag_spec='-R$libdir'
  8160. ;;
  8161. *)
  8162. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8163. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8164. ;;
  8165. esac
  8166. fi
  8167. else
  8168. ld_shlibs=no
  8169. fi
  8170. ;;
  8171. os2*)
  8172. hardcode_libdir_flag_spec='-L$libdir'
  8173. hardcode_minus_L=yes
  8174. allow_undefined_flag=unsupported
  8175. 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'
  8176. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8177. ;;
  8178. osf3*)
  8179. if test "$GCC" = yes; then
  8180. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8181. 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'
  8182. else
  8183. allow_undefined_flag=' -expect_unresolved \*'
  8184. 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'
  8185. fi
  8186. archive_cmds_need_lc='no'
  8187. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8188. hardcode_libdir_separator=:
  8189. ;;
  8190. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8191. if test "$GCC" = yes; then
  8192. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8193. archive_cmds='$CC -shared${allow_undefined_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'
  8194. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8195. else
  8196. allow_undefined_flag=' -expect_unresolved \*'
  8197. 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'
  8198. 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~
  8199. $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'
  8200. # Both c and cxx compiler support -rpath directly
  8201. hardcode_libdir_flag_spec='-rpath $libdir'
  8202. fi
  8203. archive_cmds_need_lc='no'
  8204. hardcode_libdir_separator=:
  8205. ;;
  8206. solaris*)
  8207. no_undefined_flag=' -z defs'
  8208. if test "$GCC" = yes; then
  8209. wlarc='${wl}'
  8210. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8211. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8212. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8213. else
  8214. case `$CC -V 2>&1` in
  8215. *"Compilers 5.0"*)
  8216. wlarc=''
  8217. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8218. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8219. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8220. ;;
  8221. *)
  8222. wlarc='${wl}'
  8223. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8224. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8225. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8226. ;;
  8227. esac
  8228. fi
  8229. hardcode_libdir_flag_spec='-R$libdir'
  8230. hardcode_shlibpath_var=no
  8231. case $host_os in
  8232. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8233. *)
  8234. # The compiler driver will combine and reorder linker options,
  8235. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8236. # but is careful enough not to reorder.
  8237. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8238. if test "$GCC" = yes; then
  8239. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8240. else
  8241. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8242. fi
  8243. ;;
  8244. esac
  8245. link_all_deplibs=yes
  8246. ;;
  8247. sunos4*)
  8248. if test "x$host_vendor" = xsequent; then
  8249. # Use $CC to link under sequent, because it throws in some extra .o
  8250. # files that make .init and .fini sections work.
  8251. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8252. else
  8253. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8254. fi
  8255. hardcode_libdir_flag_spec='-L$libdir'
  8256. hardcode_direct=yes
  8257. hardcode_minus_L=yes
  8258. hardcode_shlibpath_var=no
  8259. ;;
  8260. sysv4)
  8261. case $host_vendor in
  8262. sni)
  8263. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8264. hardcode_direct=yes # is this really true???
  8265. ;;
  8266. siemens)
  8267. ## LD is ld it makes a PLAMLIB
  8268. ## CC just makes a GrossModule.
  8269. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8270. reload_cmds='$CC -r -o $output$reload_objs'
  8271. hardcode_direct=no
  8272. ;;
  8273. motorola)
  8274. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8275. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8276. ;;
  8277. esac
  8278. runpath_var='LD_RUN_PATH'
  8279. hardcode_shlibpath_var=no
  8280. ;;
  8281. sysv4.3*)
  8282. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8283. hardcode_shlibpath_var=no
  8284. export_dynamic_flag_spec='-Bexport'
  8285. ;;
  8286. sysv4*MP*)
  8287. if test -d /usr/nec; then
  8288. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8289. hardcode_shlibpath_var=no
  8290. runpath_var=LD_RUN_PATH
  8291. hardcode_runpath_var=yes
  8292. ld_shlibs=yes
  8293. fi
  8294. ;;
  8295. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8296. no_undefined_flag='${wl}-z,text'
  8297. archive_cmds_need_lc=no
  8298. hardcode_shlibpath_var=no
  8299. runpath_var='LD_RUN_PATH'
  8300. if test "$GCC" = yes; then
  8301. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8302. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8303. else
  8304. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8305. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8306. fi
  8307. ;;
  8308. sysv5* | sco3.2v5* | sco5v6*)
  8309. # Note: We can NOT use -z defs as we might desire, because we do not
  8310. # link with -lc, and that would cause any symbols used from libc to
  8311. # always be unresolved, which means just about no library would
  8312. # ever link correctly. If we're not using GNU ld we use -z text
  8313. # though, which does catch some bad symbols but isn't as heavy-handed
  8314. # as -z defs.
  8315. no_undefined_flag='${wl}-z,text'
  8316. allow_undefined_flag='${wl}-z,nodefs'
  8317. archive_cmds_need_lc=no
  8318. hardcode_shlibpath_var=no
  8319. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8320. hardcode_libdir_separator=':'
  8321. link_all_deplibs=yes
  8322. export_dynamic_flag_spec='${wl}-Bexport'
  8323. runpath_var='LD_RUN_PATH'
  8324. if test "$GCC" = yes; then
  8325. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8326. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8327. else
  8328. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8329. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8330. fi
  8331. ;;
  8332. uts4*)
  8333. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8334. hardcode_libdir_flag_spec='-L$libdir'
  8335. hardcode_shlibpath_var=no
  8336. ;;
  8337. *)
  8338. ld_shlibs=no
  8339. ;;
  8340. esac
  8341. if test x$host_vendor = xsni; then
  8342. case $host in
  8343. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8344. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8345. ;;
  8346. esac
  8347. fi
  8348. fi
  8349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8350. $as_echo "$ld_shlibs" >&6; }
  8351. test "$ld_shlibs" = no && can_build_shared=no
  8352. with_gnu_ld=$with_gnu_ld
  8353. #
  8354. # Do we need to explicitly link libc?
  8355. #
  8356. case "x$archive_cmds_need_lc" in
  8357. x|xyes)
  8358. # Assume -lc should be added
  8359. archive_cmds_need_lc=yes
  8360. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8361. case $archive_cmds in
  8362. *'~'*)
  8363. # FIXME: we may have to deal with multi-command sequences.
  8364. ;;
  8365. '$CC '*)
  8366. # Test whether the compiler implicitly links with -lc since on some
  8367. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8368. # to ld, don't add -lc before -lgcc.
  8369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8370. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8371. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  8372. $as_echo_n "(cached) " >&6
  8373. else
  8374. $RM conftest*
  8375. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8376. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8377. (eval $ac_compile) 2>&5
  8378. ac_status=$?
  8379. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8380. test $ac_status = 0; } 2>conftest.err; then
  8381. soname=conftest
  8382. lib=conftest
  8383. libobjs=conftest.$ac_objext
  8384. deplibs=
  8385. wl=$lt_prog_compiler_wl
  8386. pic_flag=$lt_prog_compiler_pic
  8387. compiler_flags=-v
  8388. linker_flags=-v
  8389. verstring=
  8390. output_objdir=.
  8391. libname=conftest
  8392. lt_save_allow_undefined_flag=$allow_undefined_flag
  8393. allow_undefined_flag=
  8394. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8395. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8396. ac_status=$?
  8397. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8398. test $ac_status = 0; }
  8399. then
  8400. lt_cv_archive_cmds_need_lc=no
  8401. else
  8402. lt_cv_archive_cmds_need_lc=yes
  8403. fi
  8404. allow_undefined_flag=$lt_save_allow_undefined_flag
  8405. else
  8406. cat conftest.err 1>&5
  8407. fi
  8408. $RM conftest*
  8409. fi
  8410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8411. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8412. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8413. ;;
  8414. esac
  8415. fi
  8416. ;;
  8417. esac
  8418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8419. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8420. if test "$GCC" = yes; then
  8421. case $host_os in
  8422. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8423. *) lt_awk_arg="/^libraries:/" ;;
  8424. esac
  8425. case $host_os in
  8426. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8427. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8428. esac
  8429. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8430. case $lt_search_path_spec in
  8431. *\;*)
  8432. # if the path contains ";" then we assume it to be the separator
  8433. # otherwise default to the standard path separator (i.e. ":") - it is
  8434. # assumed that no part of a normal pathname contains ";" but that should
  8435. # okay in the real world where ";" in dirpaths is itself problematic.
  8436. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8437. ;;
  8438. *)
  8439. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8440. ;;
  8441. esac
  8442. # Ok, now we have the path, separated by spaces, we can step through it
  8443. # and add multilib dir if necessary.
  8444. lt_tmp_lt_search_path_spec=
  8445. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8446. for lt_sys_path in $lt_search_path_spec; do
  8447. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8448. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8449. else
  8450. test -d "$lt_sys_path" && \
  8451. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8452. fi
  8453. done
  8454. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8455. BEGIN {RS=" "; FS="/|\n";} {
  8456. lt_foo="";
  8457. lt_count=0;
  8458. for (lt_i = NF; lt_i > 0; lt_i--) {
  8459. if ($lt_i != "" && $lt_i != ".") {
  8460. if ($lt_i == "..") {
  8461. lt_count++;
  8462. } else {
  8463. if (lt_count == 0) {
  8464. lt_foo="/" $lt_i lt_foo;
  8465. } else {
  8466. lt_count--;
  8467. }
  8468. }
  8469. }
  8470. }
  8471. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8472. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8473. }'`
  8474. # AWK program above erroneously prepends '/' to C:/dos/paths
  8475. # for these hosts.
  8476. case $host_os in
  8477. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8478. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8479. esac
  8480. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8481. else
  8482. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8483. fi
  8484. library_names_spec=
  8485. libname_spec='lib$name'
  8486. soname_spec=
  8487. shrext_cmds=".so"
  8488. postinstall_cmds=
  8489. postuninstall_cmds=
  8490. finish_cmds=
  8491. finish_eval=
  8492. shlibpath_var=
  8493. shlibpath_overrides_runpath=unknown
  8494. version_type=none
  8495. dynamic_linker="$host_os ld.so"
  8496. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8497. need_lib_prefix=unknown
  8498. hardcode_into_libs=no
  8499. # when you set need_version to no, make sure it does not cause -set_version
  8500. # flags to be left without arguments
  8501. need_version=unknown
  8502. case $host_os in
  8503. aix3*)
  8504. version_type=linux
  8505. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8506. shlibpath_var=LIBPATH
  8507. # AIX 3 has no versioning support, so we append a major version to the name.
  8508. soname_spec='${libname}${release}${shared_ext}$major'
  8509. ;;
  8510. aix[4-9]*)
  8511. version_type=linux
  8512. need_lib_prefix=no
  8513. need_version=no
  8514. hardcode_into_libs=yes
  8515. if test "$host_cpu" = ia64; then
  8516. # AIX 5 supports IA64
  8517. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8518. shlibpath_var=LD_LIBRARY_PATH
  8519. else
  8520. # With GCC up to 2.95.x, collect2 would create an import file
  8521. # for dependence libraries. The import file would start with
  8522. # the line `#! .'. This would cause the generated library to
  8523. # depend on `.', always an invalid library. This was fixed in
  8524. # development snapshots of GCC prior to 3.0.
  8525. case $host_os in
  8526. aix4 | aix4.[01] | aix4.[01].*)
  8527. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8528. echo ' yes '
  8529. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8530. :
  8531. else
  8532. can_build_shared=no
  8533. fi
  8534. ;;
  8535. esac
  8536. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8537. # soname into executable. Probably we can add versioning support to
  8538. # collect2, so additional links can be useful in future.
  8539. if test "$aix_use_runtimelinking" = yes; then
  8540. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8541. # instead of lib<name>.a to let people know that these are not
  8542. # typical AIX shared libraries.
  8543. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8544. else
  8545. # We preserve .a as extension for shared libraries through AIX4.2
  8546. # and later when we are not doing run time linking.
  8547. library_names_spec='${libname}${release}.a $libname.a'
  8548. soname_spec='${libname}${release}${shared_ext}$major'
  8549. fi
  8550. shlibpath_var=LIBPATH
  8551. fi
  8552. ;;
  8553. amigaos*)
  8554. case $host_cpu in
  8555. powerpc)
  8556. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8557. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8558. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8559. ;;
  8560. m68k)
  8561. library_names_spec='$libname.ixlibrary $libname.a'
  8562. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8563. 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'
  8564. ;;
  8565. esac
  8566. ;;
  8567. beos*)
  8568. library_names_spec='${libname}${shared_ext}'
  8569. dynamic_linker="$host_os ld.so"
  8570. shlibpath_var=LIBRARY_PATH
  8571. ;;
  8572. bsdi[45]*)
  8573. version_type=linux
  8574. need_version=no
  8575. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8576. soname_spec='${libname}${release}${shared_ext}$major'
  8577. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8578. shlibpath_var=LD_LIBRARY_PATH
  8579. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8580. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8581. # the default ld.so.conf also contains /usr/contrib/lib and
  8582. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8583. # libtool to hard-code these into programs
  8584. ;;
  8585. cygwin* | mingw* | pw32* | cegcc*)
  8586. version_type=windows
  8587. shrext_cmds=".dll"
  8588. need_version=no
  8589. need_lib_prefix=no
  8590. case $GCC,$host_os in
  8591. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8592. library_names_spec='$libname.dll.a'
  8593. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8594. postinstall_cmds='base_file=`basename \${file}`~
  8595. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8596. dldir=$destdir/`dirname \$dlpath`~
  8597. test -d \$dldir || mkdir -p \$dldir~
  8598. $install_prog $dir/$dlname \$dldir/$dlname~
  8599. chmod a+x \$dldir/$dlname~
  8600. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8601. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8602. fi'
  8603. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8604. dlpath=$dir/\$dldll~
  8605. $RM \$dlpath'
  8606. shlibpath_overrides_runpath=yes
  8607. case $host_os in
  8608. cygwin*)
  8609. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8610. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8611. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8612. ;;
  8613. mingw* | cegcc*)
  8614. # MinGW DLLs use traditional 'lib' prefix
  8615. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8616. ;;
  8617. pw32*)
  8618. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8619. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8620. ;;
  8621. esac
  8622. ;;
  8623. *)
  8624. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8625. ;;
  8626. esac
  8627. dynamic_linker='Win32 ld.exe'
  8628. # FIXME: first we should search . and the directory the executable is in
  8629. shlibpath_var=PATH
  8630. ;;
  8631. darwin* | rhapsody*)
  8632. dynamic_linker="$host_os dyld"
  8633. version_type=darwin
  8634. need_lib_prefix=no
  8635. need_version=no
  8636. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8637. soname_spec='${libname}${release}${major}$shared_ext'
  8638. shlibpath_overrides_runpath=yes
  8639. shlibpath_var=DYLD_LIBRARY_PATH
  8640. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8641. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8642. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8643. ;;
  8644. dgux*)
  8645. version_type=linux
  8646. need_lib_prefix=no
  8647. need_version=no
  8648. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8649. soname_spec='${libname}${release}${shared_ext}$major'
  8650. shlibpath_var=LD_LIBRARY_PATH
  8651. ;;
  8652. freebsd1*)
  8653. dynamic_linker=no
  8654. ;;
  8655. freebsd* | dragonfly*)
  8656. # DragonFly does not have aout. When/if they implement a new
  8657. # versioning mechanism, adjust this.
  8658. if test -x /usr/bin/objformat; then
  8659. objformat=`/usr/bin/objformat`
  8660. else
  8661. case $host_os in
  8662. freebsd[123]*) objformat=aout ;;
  8663. *) objformat=elf ;;
  8664. esac
  8665. fi
  8666. version_type=freebsd-$objformat
  8667. case $version_type in
  8668. freebsd-elf*)
  8669. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8670. need_version=no
  8671. need_lib_prefix=no
  8672. ;;
  8673. freebsd-*)
  8674. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8675. need_version=yes
  8676. ;;
  8677. esac
  8678. shlibpath_var=LD_LIBRARY_PATH
  8679. case $host_os in
  8680. freebsd2*)
  8681. shlibpath_overrides_runpath=yes
  8682. ;;
  8683. freebsd3.[01]* | freebsdelf3.[01]*)
  8684. shlibpath_overrides_runpath=yes
  8685. hardcode_into_libs=yes
  8686. ;;
  8687. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8688. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8689. shlibpath_overrides_runpath=no
  8690. hardcode_into_libs=yes
  8691. ;;
  8692. *) # from 4.6 on, and DragonFly
  8693. shlibpath_overrides_runpath=yes
  8694. hardcode_into_libs=yes
  8695. ;;
  8696. esac
  8697. ;;
  8698. gnu*)
  8699. version_type=linux
  8700. need_lib_prefix=no
  8701. need_version=no
  8702. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8703. soname_spec='${libname}${release}${shared_ext}$major'
  8704. shlibpath_var=LD_LIBRARY_PATH
  8705. hardcode_into_libs=yes
  8706. ;;
  8707. haiku*)
  8708. version_type=linux
  8709. need_lib_prefix=no
  8710. need_version=no
  8711. dynamic_linker="$host_os runtime_loader"
  8712. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8713. soname_spec='${libname}${release}${shared_ext}$major'
  8714. shlibpath_var=LIBRARY_PATH
  8715. shlibpath_overrides_runpath=yes
  8716. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8717. hardcode_into_libs=yes
  8718. ;;
  8719. hpux9* | hpux10* | hpux11*)
  8720. # Give a soname corresponding to the major version so that dld.sl refuses to
  8721. # link against other versions.
  8722. version_type=sunos
  8723. need_lib_prefix=no
  8724. need_version=no
  8725. case $host_cpu in
  8726. ia64*)
  8727. shrext_cmds='.so'
  8728. hardcode_into_libs=yes
  8729. dynamic_linker="$host_os dld.so"
  8730. shlibpath_var=LD_LIBRARY_PATH
  8731. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8732. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8733. soname_spec='${libname}${release}${shared_ext}$major'
  8734. if test "X$HPUX_IA64_MODE" = X32; then
  8735. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8736. else
  8737. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8738. fi
  8739. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8740. ;;
  8741. hppa*64*)
  8742. shrext_cmds='.sl'
  8743. hardcode_into_libs=yes
  8744. dynamic_linker="$host_os dld.sl"
  8745. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8746. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8747. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8748. soname_spec='${libname}${release}${shared_ext}$major'
  8749. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8750. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8751. ;;
  8752. *)
  8753. shrext_cmds='.sl'
  8754. dynamic_linker="$host_os dld.sl"
  8755. shlibpath_var=SHLIB_PATH
  8756. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8757. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8758. soname_spec='${libname}${release}${shared_ext}$major'
  8759. ;;
  8760. esac
  8761. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8762. postinstall_cmds='chmod 555 $lib'
  8763. # or fails outright, so override atomically:
  8764. install_override_mode=555
  8765. ;;
  8766. interix[3-9]*)
  8767. version_type=linux
  8768. need_lib_prefix=no
  8769. need_version=no
  8770. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8771. soname_spec='${libname}${release}${shared_ext}$major'
  8772. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8773. shlibpath_var=LD_LIBRARY_PATH
  8774. shlibpath_overrides_runpath=no
  8775. hardcode_into_libs=yes
  8776. ;;
  8777. irix5* | irix6* | nonstopux*)
  8778. case $host_os in
  8779. nonstopux*) version_type=nonstopux ;;
  8780. *)
  8781. if test "$lt_cv_prog_gnu_ld" = yes; then
  8782. version_type=linux
  8783. else
  8784. version_type=irix
  8785. fi ;;
  8786. esac
  8787. need_lib_prefix=no
  8788. need_version=no
  8789. soname_spec='${libname}${release}${shared_ext}$major'
  8790. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8791. case $host_os in
  8792. irix5* | nonstopux*)
  8793. libsuff= shlibsuff=
  8794. ;;
  8795. *)
  8796. case $LD in # libtool.m4 will add one of these switches to LD
  8797. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8798. libsuff= shlibsuff= libmagic=32-bit;;
  8799. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8800. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8801. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8802. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8803. *) libsuff= shlibsuff= libmagic=never-match;;
  8804. esac
  8805. ;;
  8806. esac
  8807. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8808. shlibpath_overrides_runpath=no
  8809. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8810. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8811. hardcode_into_libs=yes
  8812. ;;
  8813. # No shared lib support for Linux oldld, aout, or coff.
  8814. linux*oldld* | linux*aout* | linux*coff*)
  8815. dynamic_linker=no
  8816. ;;
  8817. # This must be Linux ELF.
  8818. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8819. version_type=linux
  8820. need_lib_prefix=no
  8821. need_version=no
  8822. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8823. soname_spec='${libname}${release}${shared_ext}$major'
  8824. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8825. shlibpath_var=LD_LIBRARY_PATH
  8826. shlibpath_overrides_runpath=no
  8827. # Some binutils ld are patched to set DT_RUNPATH
  8828. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  8829. $as_echo_n "(cached) " >&6
  8830. else
  8831. lt_cv_shlibpath_overrides_runpath=no
  8832. save_LDFLAGS=$LDFLAGS
  8833. save_libdir=$libdir
  8834. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8835. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8837. /* end confdefs.h. */
  8838. int
  8839. main ()
  8840. {
  8841. ;
  8842. return 0;
  8843. }
  8844. _ACEOF
  8845. if ac_fn_c_try_link "$LINENO"; then :
  8846. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8847. lt_cv_shlibpath_overrides_runpath=yes
  8848. fi
  8849. fi
  8850. rm -f core conftest.err conftest.$ac_objext \
  8851. conftest$ac_exeext conftest.$ac_ext
  8852. LDFLAGS=$save_LDFLAGS
  8853. libdir=$save_libdir
  8854. fi
  8855. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  8856. # This implies no fast_install, which is unacceptable.
  8857. # Some rework will be needed to allow for fast_install
  8858. # before this can be enabled.
  8859. hardcode_into_libs=yes
  8860. # find out which ABI we are using
  8861. libsuff=
  8862. case "$host_cpu" in
  8863. x86_64*|s390x*|powerpc64*)
  8864. echo '#line 10239 "configure"' > conftest.$ac_ext
  8865. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8866. (eval $ac_compile) 2>&5
  8867. ac_status=$?
  8868. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8869. test $ac_status = 0; }; then
  8870. case `/usr/bin/file conftest.$ac_objext` in
  8871. *64-bit*)
  8872. libsuff=64
  8873. ;;
  8874. esac
  8875. fi
  8876. rm -rf conftest*
  8877. ;;
  8878. esac
  8879. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
  8880. # Append ld.so.conf contents to the search path
  8881. if test -f /etc/ld.so.conf; then
  8882. 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' ' '`
  8883. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  8884. fi
  8885. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8886. # powerpc, because MkLinux only supported shared libraries with the
  8887. # GNU dynamic linker. Since this was broken with cross compilers,
  8888. # most powerpc-linux boxes support dynamic linking these days and
  8889. # people can always --disable-shared, the test was removed, and we
  8890. # assume the GNU/Linux dynamic linker is in use.
  8891. dynamic_linker='GNU/Linux ld.so'
  8892. ;;
  8893. netbsd*)
  8894. version_type=sunos
  8895. need_lib_prefix=no
  8896. need_version=no
  8897. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8898. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8899. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8900. dynamic_linker='NetBSD (a.out) ld.so'
  8901. else
  8902. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8903. soname_spec='${libname}${release}${shared_ext}$major'
  8904. dynamic_linker='NetBSD ld.elf_so'
  8905. fi
  8906. shlibpath_var=LD_LIBRARY_PATH
  8907. shlibpath_overrides_runpath=yes
  8908. hardcode_into_libs=yes
  8909. ;;
  8910. newsos6)
  8911. version_type=linux
  8912. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8913. shlibpath_var=LD_LIBRARY_PATH
  8914. shlibpath_overrides_runpath=yes
  8915. ;;
  8916. *nto* | *qnx*)
  8917. version_type=qnx
  8918. need_lib_prefix=no
  8919. need_version=no
  8920. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8921. soname_spec='${libname}${release}${shared_ext}$major'
  8922. shlibpath_var=LD_LIBRARY_PATH
  8923. shlibpath_overrides_runpath=no
  8924. hardcode_into_libs=yes
  8925. dynamic_linker='ldqnx.so'
  8926. ;;
  8927. openbsd*)
  8928. version_type=sunos
  8929. sys_lib_dlsearch_path_spec="/usr/lib"
  8930. need_lib_prefix=no
  8931. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8932. case $host_os in
  8933. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8934. *) need_version=no ;;
  8935. esac
  8936. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8937. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8938. shlibpath_var=LD_LIBRARY_PATH
  8939. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8940. case $host_os in
  8941. openbsd2.[89] | openbsd2.[89].*)
  8942. shlibpath_overrides_runpath=no
  8943. ;;
  8944. *)
  8945. shlibpath_overrides_runpath=yes
  8946. ;;
  8947. esac
  8948. else
  8949. shlibpath_overrides_runpath=yes
  8950. fi
  8951. ;;
  8952. os2*)
  8953. libname_spec='$name'
  8954. shrext_cmds=".dll"
  8955. need_lib_prefix=no
  8956. library_names_spec='$libname${shared_ext} $libname.a'
  8957. dynamic_linker='OS/2 ld.exe'
  8958. shlibpath_var=LIBPATH
  8959. ;;
  8960. osf3* | osf4* | osf5*)
  8961. version_type=osf
  8962. need_lib_prefix=no
  8963. need_version=no
  8964. soname_spec='${libname}${release}${shared_ext}$major'
  8965. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8966. shlibpath_var=LD_LIBRARY_PATH
  8967. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8968. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8969. ;;
  8970. rdos*)
  8971. dynamic_linker=no
  8972. ;;
  8973. solaris*)
  8974. version_type=linux
  8975. need_lib_prefix=no
  8976. need_version=no
  8977. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8978. soname_spec='${libname}${release}${shared_ext}$major'
  8979. shlibpath_var=LD_LIBRARY_PATH
  8980. shlibpath_overrides_runpath=yes
  8981. hardcode_into_libs=yes
  8982. # ldd complains unless libraries are executable
  8983. postinstall_cmds='chmod +x $lib'
  8984. ;;
  8985. sunos4*)
  8986. version_type=sunos
  8987. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8988. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8989. shlibpath_var=LD_LIBRARY_PATH
  8990. shlibpath_overrides_runpath=yes
  8991. if test "$with_gnu_ld" = yes; then
  8992. need_lib_prefix=no
  8993. fi
  8994. need_version=yes
  8995. ;;
  8996. sysv4 | sysv4.3*)
  8997. version_type=linux
  8998. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8999. soname_spec='${libname}${release}${shared_ext}$major'
  9000. shlibpath_var=LD_LIBRARY_PATH
  9001. case $host_vendor in
  9002. sni)
  9003. shlibpath_overrides_runpath=no
  9004. need_lib_prefix=no
  9005. runpath_var=LD_RUN_PATH
  9006. ;;
  9007. siemens)
  9008. need_lib_prefix=no
  9009. ;;
  9010. motorola)
  9011. need_lib_prefix=no
  9012. need_version=no
  9013. shlibpath_overrides_runpath=no
  9014. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9015. ;;
  9016. esac
  9017. ;;
  9018. sysv4*MP*)
  9019. if test -d /usr/nec ;then
  9020. version_type=linux
  9021. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9022. soname_spec='$libname${shared_ext}.$major'
  9023. shlibpath_var=LD_LIBRARY_PATH
  9024. fi
  9025. ;;
  9026. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9027. version_type=freebsd-elf
  9028. need_lib_prefix=no
  9029. need_version=no
  9030. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9031. soname_spec='${libname}${release}${shared_ext}$major'
  9032. shlibpath_var=LD_LIBRARY_PATH
  9033. shlibpath_overrides_runpath=yes
  9034. hardcode_into_libs=yes
  9035. if test "$with_gnu_ld" = yes; then
  9036. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9037. else
  9038. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9039. case $host_os in
  9040. sco3.2v5*)
  9041. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9042. ;;
  9043. esac
  9044. fi
  9045. sys_lib_dlsearch_path_spec='/usr/lib'
  9046. ;;
  9047. tpf*)
  9048. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9049. version_type=linux
  9050. need_lib_prefix=no
  9051. need_version=no
  9052. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9053. shlibpath_var=LD_LIBRARY_PATH
  9054. shlibpath_overrides_runpath=no
  9055. hardcode_into_libs=yes
  9056. ;;
  9057. uts4*)
  9058. version_type=linux
  9059. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9060. soname_spec='${libname}${release}${shared_ext}$major'
  9061. shlibpath_var=LD_LIBRARY_PATH
  9062. ;;
  9063. *)
  9064. dynamic_linker=no
  9065. ;;
  9066. esac
  9067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9068. $as_echo "$dynamic_linker" >&6; }
  9069. test "$dynamic_linker" = no && can_build_shared=no
  9070. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9071. if test "$GCC" = yes; then
  9072. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9073. fi
  9074. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9075. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9076. fi
  9077. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9078. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9079. fi
  9080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9081. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9082. hardcode_action=
  9083. if test -n "$hardcode_libdir_flag_spec" ||
  9084. test -n "$runpath_var" ||
  9085. test "X$hardcode_automatic" = "Xyes" ; then
  9086. # We can hardcode non-existent directories.
  9087. if test "$hardcode_direct" != no &&
  9088. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9089. # have to relink, otherwise we might link with an installed library
  9090. # when we should be linking with a yet-to-be-installed one
  9091. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9092. test "$hardcode_minus_L" != no; then
  9093. # Linking always hardcodes the temporary library directory.
  9094. hardcode_action=relink
  9095. else
  9096. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9097. hardcode_action=immediate
  9098. fi
  9099. else
  9100. # We cannot hardcode anything, or else we can only hardcode existing
  9101. # directories.
  9102. hardcode_action=unsupported
  9103. fi
  9104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9105. $as_echo "$hardcode_action" >&6; }
  9106. if test "$hardcode_action" = relink ||
  9107. test "$inherit_rpath" = yes; then
  9108. # Fast installation is not supported
  9109. enable_fast_install=no
  9110. elif test "$shlibpath_overrides_runpath" = yes ||
  9111. test "$enable_shared" = no; then
  9112. # Fast installation is not necessary
  9113. enable_fast_install=needless
  9114. fi
  9115. if test "x$enable_dlopen" != xyes; then
  9116. enable_dlopen=unknown
  9117. enable_dlopen_self=unknown
  9118. enable_dlopen_self_static=unknown
  9119. else
  9120. lt_cv_dlopen=no
  9121. lt_cv_dlopen_libs=
  9122. case $host_os in
  9123. beos*)
  9124. lt_cv_dlopen="load_add_on"
  9125. lt_cv_dlopen_libs=
  9126. lt_cv_dlopen_self=yes
  9127. ;;
  9128. mingw* | pw32* | cegcc*)
  9129. lt_cv_dlopen="LoadLibrary"
  9130. lt_cv_dlopen_libs=
  9131. ;;
  9132. cygwin*)
  9133. lt_cv_dlopen="dlopen"
  9134. lt_cv_dlopen_libs=
  9135. ;;
  9136. darwin*)
  9137. # if libdl is installed we need to link against it
  9138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9139. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9140. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9141. $as_echo_n "(cached) " >&6
  9142. else
  9143. ac_check_lib_save_LIBS=$LIBS
  9144. LIBS="-ldl $LIBS"
  9145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9146. /* end confdefs.h. */
  9147. /* Override any GCC internal prototype to avoid an error.
  9148. Use char because int might match the return type of a GCC
  9149. builtin and then its argument prototype would still apply. */
  9150. #ifdef __cplusplus
  9151. extern "C"
  9152. #endif
  9153. char dlopen ();
  9154. int
  9155. main ()
  9156. {
  9157. return dlopen ();
  9158. ;
  9159. return 0;
  9160. }
  9161. _ACEOF
  9162. if ac_fn_c_try_link "$LINENO"; then :
  9163. ac_cv_lib_dl_dlopen=yes
  9164. else
  9165. ac_cv_lib_dl_dlopen=no
  9166. fi
  9167. rm -f core conftest.err conftest.$ac_objext \
  9168. conftest$ac_exeext conftest.$ac_ext
  9169. LIBS=$ac_check_lib_save_LIBS
  9170. fi
  9171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9172. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9173. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9174. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9175. else
  9176. lt_cv_dlopen="dyld"
  9177. lt_cv_dlopen_libs=
  9178. lt_cv_dlopen_self=yes
  9179. fi
  9180. ;;
  9181. *)
  9182. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9183. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9184. lt_cv_dlopen="shl_load"
  9185. else
  9186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9187. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9188. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9189. $as_echo_n "(cached) " >&6
  9190. else
  9191. ac_check_lib_save_LIBS=$LIBS
  9192. LIBS="-ldld $LIBS"
  9193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9194. /* end confdefs.h. */
  9195. /* Override any GCC internal prototype to avoid an error.
  9196. Use char because int might match the return type of a GCC
  9197. builtin and then its argument prototype would still apply. */
  9198. #ifdef __cplusplus
  9199. extern "C"
  9200. #endif
  9201. char shl_load ();
  9202. int
  9203. main ()
  9204. {
  9205. return shl_load ();
  9206. ;
  9207. return 0;
  9208. }
  9209. _ACEOF
  9210. if ac_fn_c_try_link "$LINENO"; then :
  9211. ac_cv_lib_dld_shl_load=yes
  9212. else
  9213. ac_cv_lib_dld_shl_load=no
  9214. fi
  9215. rm -f core conftest.err conftest.$ac_objext \
  9216. conftest$ac_exeext conftest.$ac_ext
  9217. LIBS=$ac_check_lib_save_LIBS
  9218. fi
  9219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9220. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9221. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9222. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9223. else
  9224. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9225. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9226. lt_cv_dlopen="dlopen"
  9227. else
  9228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9229. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9230. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9231. $as_echo_n "(cached) " >&6
  9232. else
  9233. ac_check_lib_save_LIBS=$LIBS
  9234. LIBS="-ldl $LIBS"
  9235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9236. /* end confdefs.h. */
  9237. /* Override any GCC internal prototype to avoid an error.
  9238. Use char because int might match the return type of a GCC
  9239. builtin and then its argument prototype would still apply. */
  9240. #ifdef __cplusplus
  9241. extern "C"
  9242. #endif
  9243. char dlopen ();
  9244. int
  9245. main ()
  9246. {
  9247. return dlopen ();
  9248. ;
  9249. return 0;
  9250. }
  9251. _ACEOF
  9252. if ac_fn_c_try_link "$LINENO"; then :
  9253. ac_cv_lib_dl_dlopen=yes
  9254. else
  9255. ac_cv_lib_dl_dlopen=no
  9256. fi
  9257. rm -f core conftest.err conftest.$ac_objext \
  9258. conftest$ac_exeext conftest.$ac_ext
  9259. LIBS=$ac_check_lib_save_LIBS
  9260. fi
  9261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9262. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9263. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9264. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9265. else
  9266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9267. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9268. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9269. $as_echo_n "(cached) " >&6
  9270. else
  9271. ac_check_lib_save_LIBS=$LIBS
  9272. LIBS="-lsvld $LIBS"
  9273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9274. /* end confdefs.h. */
  9275. /* Override any GCC internal prototype to avoid an error.
  9276. Use char because int might match the return type of a GCC
  9277. builtin and then its argument prototype would still apply. */
  9278. #ifdef __cplusplus
  9279. extern "C"
  9280. #endif
  9281. char dlopen ();
  9282. int
  9283. main ()
  9284. {
  9285. return dlopen ();
  9286. ;
  9287. return 0;
  9288. }
  9289. _ACEOF
  9290. if ac_fn_c_try_link "$LINENO"; then :
  9291. ac_cv_lib_svld_dlopen=yes
  9292. else
  9293. ac_cv_lib_svld_dlopen=no
  9294. fi
  9295. rm -f core conftest.err conftest.$ac_objext \
  9296. conftest$ac_exeext conftest.$ac_ext
  9297. LIBS=$ac_check_lib_save_LIBS
  9298. fi
  9299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9300. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9301. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9302. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9303. else
  9304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9305. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9306. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9307. $as_echo_n "(cached) " >&6
  9308. else
  9309. ac_check_lib_save_LIBS=$LIBS
  9310. LIBS="-ldld $LIBS"
  9311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9312. /* end confdefs.h. */
  9313. /* Override any GCC internal prototype to avoid an error.
  9314. Use char because int might match the return type of a GCC
  9315. builtin and then its argument prototype would still apply. */
  9316. #ifdef __cplusplus
  9317. extern "C"
  9318. #endif
  9319. char dld_link ();
  9320. int
  9321. main ()
  9322. {
  9323. return dld_link ();
  9324. ;
  9325. return 0;
  9326. }
  9327. _ACEOF
  9328. if ac_fn_c_try_link "$LINENO"; then :
  9329. ac_cv_lib_dld_dld_link=yes
  9330. else
  9331. ac_cv_lib_dld_dld_link=no
  9332. fi
  9333. rm -f core conftest.err conftest.$ac_objext \
  9334. conftest$ac_exeext conftest.$ac_ext
  9335. LIBS=$ac_check_lib_save_LIBS
  9336. fi
  9337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9338. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9339. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9340. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9341. fi
  9342. fi
  9343. fi
  9344. fi
  9345. fi
  9346. fi
  9347. ;;
  9348. esac
  9349. if test "x$lt_cv_dlopen" != xno; then
  9350. enable_dlopen=yes
  9351. else
  9352. enable_dlopen=no
  9353. fi
  9354. case $lt_cv_dlopen in
  9355. dlopen)
  9356. save_CPPFLAGS="$CPPFLAGS"
  9357. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9358. save_LDFLAGS="$LDFLAGS"
  9359. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9360. save_LIBS="$LIBS"
  9361. LIBS="$lt_cv_dlopen_libs $LIBS"
  9362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9363. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9364. if test "${lt_cv_dlopen_self+set}" = set; then :
  9365. $as_echo_n "(cached) " >&6
  9366. else
  9367. if test "$cross_compiling" = yes; then :
  9368. lt_cv_dlopen_self=cross
  9369. else
  9370. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9371. lt_status=$lt_dlunknown
  9372. cat > conftest.$ac_ext <<_LT_EOF
  9373. #line $LINENO "configure"
  9374. #include "confdefs.h"
  9375. #if HAVE_DLFCN_H
  9376. #include <dlfcn.h>
  9377. #endif
  9378. #include <stdio.h>
  9379. #ifdef RTLD_GLOBAL
  9380. # define LT_DLGLOBAL RTLD_GLOBAL
  9381. #else
  9382. # ifdef DL_GLOBAL
  9383. # define LT_DLGLOBAL DL_GLOBAL
  9384. # else
  9385. # define LT_DLGLOBAL 0
  9386. # endif
  9387. #endif
  9388. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9389. find out it does not work in some platform. */
  9390. #ifndef LT_DLLAZY_OR_NOW
  9391. # ifdef RTLD_LAZY
  9392. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9393. # else
  9394. # ifdef DL_LAZY
  9395. # define LT_DLLAZY_OR_NOW DL_LAZY
  9396. # else
  9397. # ifdef RTLD_NOW
  9398. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9399. # else
  9400. # ifdef DL_NOW
  9401. # define LT_DLLAZY_OR_NOW DL_NOW
  9402. # else
  9403. # define LT_DLLAZY_OR_NOW 0
  9404. # endif
  9405. # endif
  9406. # endif
  9407. # endif
  9408. #endif
  9409. /* When -fvisbility=hidden is used, assume the code has been annotated
  9410. correspondingly for the symbols needed. */
  9411. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9412. void fnord () __attribute__((visibility("default")));
  9413. #endif
  9414. void fnord () { int i=42; }
  9415. int main ()
  9416. {
  9417. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9418. int status = $lt_dlunknown;
  9419. if (self)
  9420. {
  9421. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9422. else
  9423. {
  9424. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9425. else puts (dlerror ());
  9426. }
  9427. /* dlclose (self); */
  9428. }
  9429. else
  9430. puts (dlerror ());
  9431. return status;
  9432. }
  9433. _LT_EOF
  9434. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9435. (eval $ac_link) 2>&5
  9436. ac_status=$?
  9437. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9438. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9439. (./conftest; exit; ) >&5 2>/dev/null
  9440. lt_status=$?
  9441. case x$lt_status in
  9442. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9443. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9444. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9445. esac
  9446. else :
  9447. # compilation failed
  9448. lt_cv_dlopen_self=no
  9449. fi
  9450. fi
  9451. rm -fr conftest*
  9452. fi
  9453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9454. $as_echo "$lt_cv_dlopen_self" >&6; }
  9455. if test "x$lt_cv_dlopen_self" = xyes; then
  9456. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9458. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9459. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9460. $as_echo_n "(cached) " >&6
  9461. else
  9462. if test "$cross_compiling" = yes; then :
  9463. lt_cv_dlopen_self_static=cross
  9464. else
  9465. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9466. lt_status=$lt_dlunknown
  9467. cat > conftest.$ac_ext <<_LT_EOF
  9468. #line $LINENO "configure"
  9469. #include "confdefs.h"
  9470. #if HAVE_DLFCN_H
  9471. #include <dlfcn.h>
  9472. #endif
  9473. #include <stdio.h>
  9474. #ifdef RTLD_GLOBAL
  9475. # define LT_DLGLOBAL RTLD_GLOBAL
  9476. #else
  9477. # ifdef DL_GLOBAL
  9478. # define LT_DLGLOBAL DL_GLOBAL
  9479. # else
  9480. # define LT_DLGLOBAL 0
  9481. # endif
  9482. #endif
  9483. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9484. find out it does not work in some platform. */
  9485. #ifndef LT_DLLAZY_OR_NOW
  9486. # ifdef RTLD_LAZY
  9487. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9488. # else
  9489. # ifdef DL_LAZY
  9490. # define LT_DLLAZY_OR_NOW DL_LAZY
  9491. # else
  9492. # ifdef RTLD_NOW
  9493. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9494. # else
  9495. # ifdef DL_NOW
  9496. # define LT_DLLAZY_OR_NOW DL_NOW
  9497. # else
  9498. # define LT_DLLAZY_OR_NOW 0
  9499. # endif
  9500. # endif
  9501. # endif
  9502. # endif
  9503. #endif
  9504. /* When -fvisbility=hidden is used, assume the code has been annotated
  9505. correspondingly for the symbols needed. */
  9506. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9507. void fnord () __attribute__((visibility("default")));
  9508. #endif
  9509. void fnord () { int i=42; }
  9510. int main ()
  9511. {
  9512. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9513. int status = $lt_dlunknown;
  9514. if (self)
  9515. {
  9516. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9517. else
  9518. {
  9519. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9520. else puts (dlerror ());
  9521. }
  9522. /* dlclose (self); */
  9523. }
  9524. else
  9525. puts (dlerror ());
  9526. return status;
  9527. }
  9528. _LT_EOF
  9529. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9530. (eval $ac_link) 2>&5
  9531. ac_status=$?
  9532. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9533. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9534. (./conftest; exit; ) >&5 2>/dev/null
  9535. lt_status=$?
  9536. case x$lt_status in
  9537. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9538. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9539. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9540. esac
  9541. else :
  9542. # compilation failed
  9543. lt_cv_dlopen_self_static=no
  9544. fi
  9545. fi
  9546. rm -fr conftest*
  9547. fi
  9548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9549. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9550. fi
  9551. CPPFLAGS="$save_CPPFLAGS"
  9552. LDFLAGS="$save_LDFLAGS"
  9553. LIBS="$save_LIBS"
  9554. ;;
  9555. esac
  9556. case $lt_cv_dlopen_self in
  9557. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9558. *) enable_dlopen_self=unknown ;;
  9559. esac
  9560. case $lt_cv_dlopen_self_static in
  9561. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9562. *) enable_dlopen_self_static=unknown ;;
  9563. esac
  9564. fi
  9565. striplib=
  9566. old_striplib=
  9567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9568. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9569. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9570. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9571. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9573. $as_echo "yes" >&6; }
  9574. else
  9575. # FIXME - insert some real tests, host_os isn't really good enough
  9576. case $host_os in
  9577. darwin*)
  9578. if test -n "$STRIP" ; then
  9579. striplib="$STRIP -x"
  9580. old_striplib="$STRIP -S"
  9581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9582. $as_echo "yes" >&6; }
  9583. else
  9584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9585. $as_echo "no" >&6; }
  9586. fi
  9587. ;;
  9588. *)
  9589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9590. $as_echo "no" >&6; }
  9591. ;;
  9592. esac
  9593. fi
  9594. # Report which library types will actually be built
  9595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9596. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9598. $as_echo "$can_build_shared" >&6; }
  9599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9600. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9601. test "$can_build_shared" = "no" && enable_shared=no
  9602. # On AIX, shared libraries and static libraries use the same namespace, and
  9603. # are all built from PIC.
  9604. case $host_os in
  9605. aix3*)
  9606. test "$enable_shared" = yes && enable_static=no
  9607. if test -n "$RANLIB"; then
  9608. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9609. postinstall_cmds='$RANLIB $lib'
  9610. fi
  9611. ;;
  9612. aix[4-9]*)
  9613. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9614. test "$enable_shared" = yes && enable_static=no
  9615. fi
  9616. ;;
  9617. esac
  9618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9619. $as_echo "$enable_shared" >&6; }
  9620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9621. $as_echo_n "checking whether to build static libraries... " >&6; }
  9622. # Make sure either enable_shared or enable_static is yes.
  9623. test "$enable_shared" = yes || enable_static=yes
  9624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9625. $as_echo "$enable_static" >&6; }
  9626. fi
  9627. ac_ext=cpp
  9628. ac_cpp='$CXXCPP $CPPFLAGS'
  9629. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9630. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9631. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9632. CC="$lt_save_CC"
  9633. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9634. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9635. (test "X$CXX" != "Xg++"))) ; then
  9636. ac_ext=cpp
  9637. ac_cpp='$CXXCPP $CPPFLAGS'
  9638. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9639. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9640. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  9642. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  9643. if test -z "$CXXCPP"; then
  9644. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  9645. $as_echo_n "(cached) " >&6
  9646. else
  9647. # Double quotes because CXXCPP needs to be expanded
  9648. for CXXCPP in "$CXX -E" "/lib/cpp"
  9649. do
  9650. ac_preproc_ok=false
  9651. for ac_cxx_preproc_warn_flag in '' yes
  9652. do
  9653. # Use a header file that comes with gcc, so configuring glibc
  9654. # with a fresh cross-compiler works.
  9655. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9656. # <limits.h> exists even on freestanding compilers.
  9657. # On the NeXT, cc -E runs the code through the compiler's parser,
  9658. # not just through cpp. "Syntax error" is here to catch this case.
  9659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9660. /* end confdefs.h. */
  9661. #ifdef __STDC__
  9662. # include <limits.h>
  9663. #else
  9664. # include <assert.h>
  9665. #endif
  9666. Syntax error
  9667. _ACEOF
  9668. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9669. else
  9670. # Broken: fails on valid input.
  9671. continue
  9672. fi
  9673. rm -f conftest.err conftest.$ac_ext
  9674. # OK, works on sane cases. Now check whether nonexistent headers
  9675. # can be detected and how.
  9676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9677. /* end confdefs.h. */
  9678. #include <ac_nonexistent.h>
  9679. _ACEOF
  9680. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9681. # Broken: success on invalid input.
  9682. continue
  9683. else
  9684. # Passes both tests.
  9685. ac_preproc_ok=:
  9686. break
  9687. fi
  9688. rm -f conftest.err conftest.$ac_ext
  9689. done
  9690. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  9691. rm -f conftest.err conftest.$ac_ext
  9692. if $ac_preproc_ok; then :
  9693. break
  9694. fi
  9695. done
  9696. ac_cv_prog_CXXCPP=$CXXCPP
  9697. fi
  9698. CXXCPP=$ac_cv_prog_CXXCPP
  9699. else
  9700. ac_cv_prog_CXXCPP=$CXXCPP
  9701. fi
  9702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  9703. $as_echo "$CXXCPP" >&6; }
  9704. ac_preproc_ok=false
  9705. for ac_cxx_preproc_warn_flag in '' yes
  9706. do
  9707. # Use a header file that comes with gcc, so configuring glibc
  9708. # with a fresh cross-compiler works.
  9709. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9710. # <limits.h> exists even on freestanding compilers.
  9711. # On the NeXT, cc -E runs the code through the compiler's parser,
  9712. # not just through cpp. "Syntax error" is here to catch this case.
  9713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9714. /* end confdefs.h. */
  9715. #ifdef __STDC__
  9716. # include <limits.h>
  9717. #else
  9718. # include <assert.h>
  9719. #endif
  9720. Syntax error
  9721. _ACEOF
  9722. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9723. else
  9724. # Broken: fails on valid input.
  9725. continue
  9726. fi
  9727. rm -f conftest.err conftest.$ac_ext
  9728. # OK, works on sane cases. Now check whether nonexistent headers
  9729. # can be detected and how.
  9730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9731. /* end confdefs.h. */
  9732. #include <ac_nonexistent.h>
  9733. _ACEOF
  9734. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9735. # Broken: success on invalid input.
  9736. continue
  9737. else
  9738. # Passes both tests.
  9739. ac_preproc_ok=:
  9740. break
  9741. fi
  9742. rm -f conftest.err conftest.$ac_ext
  9743. done
  9744. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  9745. rm -f conftest.err conftest.$ac_ext
  9746. if $ac_preproc_ok; then :
  9747. else
  9748. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9749. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9750. as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
  9751. See \`config.log' for more details." "$LINENO" 5; }
  9752. fi
  9753. ac_ext=cpp
  9754. ac_cpp='$CXXCPP $CPPFLAGS'
  9755. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9756. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9757. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9758. else
  9759. _lt_caught_CXX_error=yes
  9760. fi
  9761. ac_ext=cpp
  9762. ac_cpp='$CXXCPP $CPPFLAGS'
  9763. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9764. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9765. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9766. archive_cmds_need_lc_CXX=no
  9767. allow_undefined_flag_CXX=
  9768. always_export_symbols_CXX=no
  9769. archive_expsym_cmds_CXX=
  9770. compiler_needs_object_CXX=no
  9771. export_dynamic_flag_spec_CXX=
  9772. hardcode_direct_CXX=no
  9773. hardcode_direct_absolute_CXX=no
  9774. hardcode_libdir_flag_spec_CXX=
  9775. hardcode_libdir_flag_spec_ld_CXX=
  9776. hardcode_libdir_separator_CXX=
  9777. hardcode_minus_L_CXX=no
  9778. hardcode_shlibpath_var_CXX=unsupported
  9779. hardcode_automatic_CXX=no
  9780. inherit_rpath_CXX=no
  9781. module_cmds_CXX=
  9782. module_expsym_cmds_CXX=
  9783. link_all_deplibs_CXX=unknown
  9784. old_archive_cmds_CXX=$old_archive_cmds
  9785. reload_flag_CXX=$reload_flag
  9786. reload_cmds_CXX=$reload_cmds
  9787. no_undefined_flag_CXX=
  9788. whole_archive_flag_spec_CXX=
  9789. enable_shared_with_static_runtimes_CXX=no
  9790. # Source file extension for C++ test sources.
  9791. ac_ext=cpp
  9792. # Object file extension for compiled C++ test sources.
  9793. objext=o
  9794. objext_CXX=$objext
  9795. # No sense in running all these tests if we already determined that
  9796. # the CXX compiler isn't working. Some variables (like enable_shared)
  9797. # are currently assumed to apply to all compilers on this platform,
  9798. # and will be corrupted by setting them based on a non-working compiler.
  9799. if test "$_lt_caught_CXX_error" != yes; then
  9800. # Code to be used in simple compile tests
  9801. lt_simple_compile_test_code="int some_variable = 0;"
  9802. # Code to be used in simple link tests
  9803. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  9804. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9805. # If no C compiler was specified, use CC.
  9806. LTCC=${LTCC-"$CC"}
  9807. # If no C compiler flags were specified, use CFLAGS.
  9808. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9809. # Allow CC to be a program name with arguments.
  9810. compiler=$CC
  9811. # save warnings/boilerplate of simple test code
  9812. ac_outfile=conftest.$ac_objext
  9813. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9814. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9815. _lt_compiler_boilerplate=`cat conftest.err`
  9816. $RM conftest*
  9817. ac_outfile=conftest.$ac_objext
  9818. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9819. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9820. _lt_linker_boilerplate=`cat conftest.err`
  9821. $RM -r conftest*
  9822. # Allow CC to be a program name with arguments.
  9823. lt_save_CC=$CC
  9824. lt_save_LD=$LD
  9825. lt_save_GCC=$GCC
  9826. GCC=$GXX
  9827. lt_save_with_gnu_ld=$with_gnu_ld
  9828. lt_save_path_LD=$lt_cv_path_LD
  9829. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9830. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9831. else
  9832. $as_unset lt_cv_prog_gnu_ld
  9833. fi
  9834. if test -n "${lt_cv_path_LDCXX+set}"; then
  9835. lt_cv_path_LD=$lt_cv_path_LDCXX
  9836. else
  9837. $as_unset lt_cv_path_LD
  9838. fi
  9839. test -z "${LDCXX+set}" || LD=$LDCXX
  9840. CC=${CXX-"c++"}
  9841. compiler=$CC
  9842. compiler_CXX=$CC
  9843. for cc_temp in $compiler""; do
  9844. case $cc_temp in
  9845. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9846. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9847. \-*) ;;
  9848. *) break;;
  9849. esac
  9850. done
  9851. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  9852. if test -n "$compiler"; then
  9853. # We don't want -fno-exception when compiling C++ code, so set the
  9854. # no_builtin_flag separately
  9855. if test "$GXX" = yes; then
  9856. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9857. else
  9858. lt_prog_compiler_no_builtin_flag_CXX=
  9859. fi
  9860. if test "$GXX" = yes; then
  9861. # Set up default GNU C++ configuration
  9862. # Check whether --with-gnu-ld was given.
  9863. if test "${with_gnu_ld+set}" = set; then :
  9864. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9865. else
  9866. with_gnu_ld=no
  9867. fi
  9868. ac_prog=ld
  9869. if test "$GCC" = yes; then
  9870. # Check if gcc -print-prog-name=ld gives a path.
  9871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  9872. $as_echo_n "checking for ld used by $CC... " >&6; }
  9873. case $host in
  9874. *-*-mingw*)
  9875. # gcc leaves a trailing carriage return which upsets mingw
  9876. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9877. *)
  9878. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9879. esac
  9880. case $ac_prog in
  9881. # Accept absolute paths.
  9882. [\\/]* | ?:[\\/]*)
  9883. re_direlt='/[^/][^/]*/\.\./'
  9884. # Canonicalize the pathname of ld
  9885. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  9886. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  9887. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  9888. done
  9889. test -z "$LD" && LD="$ac_prog"
  9890. ;;
  9891. "")
  9892. # If it fails, then pretend we aren't using GCC.
  9893. ac_prog=ld
  9894. ;;
  9895. *)
  9896. # If it is relative, then search for the first ld in PATH.
  9897. with_gnu_ld=unknown
  9898. ;;
  9899. esac
  9900. elif test "$with_gnu_ld" = yes; then
  9901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  9902. $as_echo_n "checking for GNU ld... " >&6; }
  9903. else
  9904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  9905. $as_echo_n "checking for non-GNU ld... " >&6; }
  9906. fi
  9907. if test "${lt_cv_path_LD+set}" = set; then :
  9908. $as_echo_n "(cached) " >&6
  9909. else
  9910. if test -z "$LD"; then
  9911. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9912. for ac_dir in $PATH; do
  9913. IFS="$lt_save_ifs"
  9914. test -z "$ac_dir" && ac_dir=.
  9915. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9916. lt_cv_path_LD="$ac_dir/$ac_prog"
  9917. # Check to see if the program is GNU ld. I'd rather use --version,
  9918. # but apparently some variants of GNU ld only accept -v.
  9919. # Break only if it was the GNU/non-GNU ld that we prefer.
  9920. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9921. *GNU* | *'with BFD'*)
  9922. test "$with_gnu_ld" != no && break
  9923. ;;
  9924. *)
  9925. test "$with_gnu_ld" != yes && break
  9926. ;;
  9927. esac
  9928. fi
  9929. done
  9930. IFS="$lt_save_ifs"
  9931. else
  9932. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9933. fi
  9934. fi
  9935. LD="$lt_cv_path_LD"
  9936. if test -n "$LD"; then
  9937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  9938. $as_echo "$LD" >&6; }
  9939. else
  9940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9941. $as_echo "no" >&6; }
  9942. fi
  9943. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  9944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  9945. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  9946. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  9947. $as_echo_n "(cached) " >&6
  9948. else
  9949. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  9950. case `$LD -v 2>&1 </dev/null` in
  9951. *GNU* | *'with BFD'*)
  9952. lt_cv_prog_gnu_ld=yes
  9953. ;;
  9954. *)
  9955. lt_cv_prog_gnu_ld=no
  9956. ;;
  9957. esac
  9958. fi
  9959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  9960. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  9961. with_gnu_ld=$lt_cv_prog_gnu_ld
  9962. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9963. # archiving commands below assume that GNU ld is being used.
  9964. if test "$with_gnu_ld" = yes; then
  9965. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9966. archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9967. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9968. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9969. # If archive_cmds runs LD, not CC, wlarc should be empty
  9970. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9971. # investigate it a little bit more. (MM)
  9972. wlarc='${wl}'
  9973. # ancient GNU ld didn't support --whole-archive et. al.
  9974. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  9975. $GREP 'no-whole-archive' > /dev/null; then
  9976. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9977. else
  9978. whole_archive_flag_spec_CXX=
  9979. fi
  9980. else
  9981. with_gnu_ld=no
  9982. wlarc=
  9983. # A generic and very simple default shared library creation
  9984. # command for GNU C++ for the case where it uses the native
  9985. # linker, instead of GNU ld. If possible, this setting should
  9986. # overridden to take advantage of the native linker features on
  9987. # the platform it is being used on.
  9988. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9989. fi
  9990. # Commands to make compiler produce verbose output that lists
  9991. # what "hidden" libraries, object files and flags are used when
  9992. # linking a shared library.
  9993. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  9994. else
  9995. GXX=no
  9996. with_gnu_ld=no
  9997. wlarc=
  9998. fi
  9999. # PORTME: fill in a description of your system's C++ link characteristics
  10000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10001. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10002. ld_shlibs_CXX=yes
  10003. case $host_os in
  10004. aix3*)
  10005. # FIXME: insert proper C++ library support
  10006. ld_shlibs_CXX=no
  10007. ;;
  10008. aix[4-9]*)
  10009. if test "$host_cpu" = ia64; then
  10010. # On IA64, the linker does run time linking by default, so we don't
  10011. # have to do anything special.
  10012. aix_use_runtimelinking=no
  10013. exp_sym_flag='-Bexport'
  10014. no_entry_flag=""
  10015. else
  10016. aix_use_runtimelinking=no
  10017. # Test if we are trying to use run time linking or normal
  10018. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10019. # need to do runtime linking.
  10020. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10021. for ld_flag in $LDFLAGS; do
  10022. case $ld_flag in
  10023. *-brtl*)
  10024. aix_use_runtimelinking=yes
  10025. break
  10026. ;;
  10027. esac
  10028. done
  10029. ;;
  10030. esac
  10031. exp_sym_flag='-bexport'
  10032. no_entry_flag='-bnoentry'
  10033. fi
  10034. # When large executables or shared objects are built, AIX ld can
  10035. # have problems creating the table of contents. If linking a library
  10036. # or program results in "error TOC overflow" add -mminimal-toc to
  10037. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10038. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10039. archive_cmds_CXX=''
  10040. hardcode_direct_CXX=yes
  10041. hardcode_direct_absolute_CXX=yes
  10042. hardcode_libdir_separator_CXX=':'
  10043. link_all_deplibs_CXX=yes
  10044. file_list_spec_CXX='${wl}-f,'
  10045. if test "$GXX" = yes; then
  10046. case $host_os in aix4.[012]|aix4.[012].*)
  10047. # We only want to do this on AIX 4.2 and lower, the check
  10048. # below for broken collect2 doesn't work under 4.3+
  10049. collect2name=`${CC} -print-prog-name=collect2`
  10050. if test -f "$collect2name" &&
  10051. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10052. then
  10053. # We have reworked collect2
  10054. :
  10055. else
  10056. # We have old collect2
  10057. hardcode_direct_CXX=unsupported
  10058. # It fails to find uninstalled libraries when the uninstalled
  10059. # path is not listed in the libpath. Setting hardcode_minus_L
  10060. # to unsupported forces relinking
  10061. hardcode_minus_L_CXX=yes
  10062. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10063. hardcode_libdir_separator_CXX=
  10064. fi
  10065. esac
  10066. shared_flag='-shared'
  10067. if test "$aix_use_runtimelinking" = yes; then
  10068. shared_flag="$shared_flag "'${wl}-G'
  10069. fi
  10070. else
  10071. # not using gcc
  10072. if test "$host_cpu" = ia64; then
  10073. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10074. # chokes on -Wl,-G. The following line is correct:
  10075. shared_flag='-G'
  10076. else
  10077. if test "$aix_use_runtimelinking" = yes; then
  10078. shared_flag='${wl}-G'
  10079. else
  10080. shared_flag='${wl}-bM:SRE'
  10081. fi
  10082. fi
  10083. fi
  10084. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10085. # It seems that -bexpall does not export symbols beginning with
  10086. # underscore (_), so it is better to generate a list of symbols to
  10087. # export.
  10088. always_export_symbols_CXX=yes
  10089. if test "$aix_use_runtimelinking" = yes; then
  10090. # Warning - without using the other runtime loading flags (-brtl),
  10091. # -berok will link without error, but may produce a broken library.
  10092. allow_undefined_flag_CXX='-berok'
  10093. # Determine the default libpath from the value encoded in an empty
  10094. # executable.
  10095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10096. /* end confdefs.h. */
  10097. int
  10098. main ()
  10099. {
  10100. ;
  10101. return 0;
  10102. }
  10103. _ACEOF
  10104. if ac_fn_cxx_try_link "$LINENO"; then :
  10105. lt_aix_libpath_sed='
  10106. /Import File Strings/,/^$/ {
  10107. /^0/ {
  10108. s/^0 *\(.*\)$/\1/
  10109. p
  10110. }
  10111. }'
  10112. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10113. # Check for a 64-bit object if we didn't find anything.
  10114. if test -z "$aix_libpath"; then
  10115. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10116. fi
  10117. fi
  10118. rm -f core conftest.err conftest.$ac_objext \
  10119. conftest$ac_exeext conftest.$ac_ext
  10120. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10121. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10122. 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"
  10123. else
  10124. if test "$host_cpu" = ia64; then
  10125. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10126. allow_undefined_flag_CXX="-z nodefs"
  10127. 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"
  10128. else
  10129. # Determine the default libpath from the value encoded in an
  10130. # empty executable.
  10131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10132. /* end confdefs.h. */
  10133. int
  10134. main ()
  10135. {
  10136. ;
  10137. return 0;
  10138. }
  10139. _ACEOF
  10140. if ac_fn_cxx_try_link "$LINENO"; then :
  10141. lt_aix_libpath_sed='
  10142. /Import File Strings/,/^$/ {
  10143. /^0/ {
  10144. s/^0 *\(.*\)$/\1/
  10145. p
  10146. }
  10147. }'
  10148. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10149. # Check for a 64-bit object if we didn't find anything.
  10150. if test -z "$aix_libpath"; then
  10151. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10152. fi
  10153. fi
  10154. rm -f core conftest.err conftest.$ac_objext \
  10155. conftest$ac_exeext conftest.$ac_ext
  10156. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10157. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10158. # Warning - without using the other run time loading flags,
  10159. # -berok will link without error, but may produce a broken library.
  10160. no_undefined_flag_CXX=' ${wl}-bernotok'
  10161. allow_undefined_flag_CXX=' ${wl}-berok'
  10162. if test "$with_gnu_ld" = yes; then
  10163. # We only use this code for GNU lds that support --whole-archive.
  10164. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10165. else
  10166. # Exported symbols can be pulled into shared objects from archives
  10167. whole_archive_flag_spec_CXX='$convenience'
  10168. fi
  10169. archive_cmds_need_lc_CXX=yes
  10170. # This is similar to how AIX traditionally builds its shared
  10171. # libraries.
  10172. 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'
  10173. fi
  10174. fi
  10175. ;;
  10176. beos*)
  10177. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10178. allow_undefined_flag_CXX=unsupported
  10179. # Joseph Beckenbach <[email protected]> says some releases of gcc
  10180. # support --undefined. This deserves some investigation. FIXME
  10181. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10182. else
  10183. ld_shlibs_CXX=no
  10184. fi
  10185. ;;
  10186. chorus*)
  10187. case $cc_basename in
  10188. *)
  10189. # FIXME: insert proper C++ library support
  10190. ld_shlibs_CXX=no
  10191. ;;
  10192. esac
  10193. ;;
  10194. cygwin* | mingw* | pw32* | cegcc*)
  10195. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10196. # as there is no search path for DLLs.
  10197. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10198. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  10199. allow_undefined_flag_CXX=unsupported
  10200. always_export_symbols_CXX=no
  10201. enable_shared_with_static_runtimes_CXX=yes
  10202. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10203. 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'
  10204. # If the export-symbols file already is a .def file (1st line
  10205. # is EXPORTS), use it as is; otherwise, prepend...
  10206. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10207. cp $export_symbols $output_objdir/$soname.def;
  10208. else
  10209. echo EXPORTS > $output_objdir/$soname.def;
  10210. cat $export_symbols >> $output_objdir/$soname.def;
  10211. fi~
  10212. $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'
  10213. else
  10214. ld_shlibs_CXX=no
  10215. fi
  10216. ;;
  10217. darwin* | rhapsody*)
  10218. archive_cmds_need_lc_CXX=no
  10219. hardcode_direct_CXX=no
  10220. hardcode_automatic_CXX=yes
  10221. hardcode_shlibpath_var_CXX=unsupported
  10222. if test "$lt_cv_ld_force_load" = "yes"; then
  10223. 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\"`'
  10224. else
  10225. whole_archive_flag_spec_CXX=''
  10226. fi
  10227. link_all_deplibs_CXX=yes
  10228. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10229. case $cc_basename in
  10230. ifort*) _lt_dar_can_shared=yes ;;
  10231. *) _lt_dar_can_shared=$GCC ;;
  10232. esac
  10233. if test "$_lt_dar_can_shared" = "yes"; then
  10234. output_verbose_link_cmd=func_echo_all
  10235. 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}"
  10236. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10237. 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}"
  10238. 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}"
  10239. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10240. 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}"
  10241. 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}"
  10242. fi
  10243. else
  10244. ld_shlibs_CXX=no
  10245. fi
  10246. ;;
  10247. dgux*)
  10248. case $cc_basename in
  10249. ec++*)
  10250. # FIXME: insert proper C++ library support
  10251. ld_shlibs_CXX=no
  10252. ;;
  10253. ghcx*)
  10254. # Green Hills C++ Compiler
  10255. # FIXME: insert proper C++ library support
  10256. ld_shlibs_CXX=no
  10257. ;;
  10258. *)
  10259. # FIXME: insert proper C++ library support
  10260. ld_shlibs_CXX=no
  10261. ;;
  10262. esac
  10263. ;;
  10264. freebsd[12]*)
  10265. # C++ shared libraries reported to be fairly broken before
  10266. # switch to ELF
  10267. ld_shlibs_CXX=no
  10268. ;;
  10269. freebsd-elf*)
  10270. archive_cmds_need_lc_CXX=no
  10271. ;;
  10272. freebsd* | dragonfly*)
  10273. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10274. # conventions
  10275. ld_shlibs_CXX=yes
  10276. ;;
  10277. gnu*)
  10278. ;;
  10279. haiku*)
  10280. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10281. link_all_deplibs_CXX=yes
  10282. ;;
  10283. hpux9*)
  10284. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10285. hardcode_libdir_separator_CXX=:
  10286. export_dynamic_flag_spec_CXX='${wl}-E'
  10287. hardcode_direct_CXX=yes
  10288. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10289. # but as the default
  10290. # location of the library.
  10291. case $cc_basename in
  10292. CC*)
  10293. # FIXME: insert proper C++ library support
  10294. ld_shlibs_CXX=no
  10295. ;;
  10296. aCC*)
  10297. 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'
  10298. # Commands to make compiler produce verbose output that lists
  10299. # what "hidden" libraries, object files and flags are used when
  10300. # linking a shared library.
  10301. #
  10302. # There doesn't appear to be a way to prevent this compiler from
  10303. # explicitly linking system object files so we need to strip them
  10304. # from the output so that they don't get included in the library
  10305. # dependencies.
  10306. 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"'
  10307. ;;
  10308. *)
  10309. if test "$GXX" = yes; then
  10310. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
  10311. else
  10312. # FIXME: insert proper C++ library support
  10313. ld_shlibs_CXX=no
  10314. fi
  10315. ;;
  10316. esac
  10317. ;;
  10318. hpux10*|hpux11*)
  10319. if test $with_gnu_ld = no; then
  10320. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10321. hardcode_libdir_separator_CXX=:
  10322. case $host_cpu in
  10323. hppa*64*|ia64*)
  10324. ;;
  10325. *)
  10326. export_dynamic_flag_spec_CXX='${wl}-E'
  10327. ;;
  10328. esac
  10329. fi
  10330. case $host_cpu in
  10331. hppa*64*|ia64*)
  10332. hardcode_direct_CXX=no
  10333. hardcode_shlibpath_var_CXX=no
  10334. ;;
  10335. *)
  10336. hardcode_direct_CXX=yes
  10337. hardcode_direct_absolute_CXX=yes
  10338. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10339. # but as the default
  10340. # location of the library.
  10341. ;;
  10342. esac
  10343. case $cc_basename in
  10344. CC*)
  10345. # FIXME: insert proper C++ library support
  10346. ld_shlibs_CXX=no
  10347. ;;
  10348. aCC*)
  10349. case $host_cpu in
  10350. hppa*64*)
  10351. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10352. ;;
  10353. ia64*)
  10354. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10355. ;;
  10356. *)
  10357. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10358. ;;
  10359. esac
  10360. # Commands to make compiler produce verbose output that lists
  10361. # what "hidden" libraries, object files and flags are used when
  10362. # linking a shared library.
  10363. #
  10364. # There doesn't appear to be a way to prevent this compiler from
  10365. # explicitly linking system object files so we need to strip them
  10366. # from the output so that they don't get included in the library
  10367. # dependencies.
  10368. 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"'
  10369. ;;
  10370. *)
  10371. if test "$GXX" = yes; then
  10372. if test $with_gnu_ld = no; then
  10373. case $host_cpu in
  10374. hppa*64*)
  10375. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10376. ;;
  10377. ia64*)
  10378. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10379. ;;
  10380. *)
  10381. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10382. ;;
  10383. esac
  10384. fi
  10385. else
  10386. # FIXME: insert proper C++ library support
  10387. ld_shlibs_CXX=no
  10388. fi
  10389. ;;
  10390. esac
  10391. ;;
  10392. interix[3-9]*)
  10393. hardcode_direct_CXX=no
  10394. hardcode_shlibpath_var_CXX=no
  10395. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10396. export_dynamic_flag_spec_CXX='${wl}-E'
  10397. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10398. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10399. # default) and relocated if they conflict, which is a slow very memory
  10400. # consuming and fragmenting process. To avoid this, we pick a random,
  10401. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10402. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10403. 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'
  10404. 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'
  10405. ;;
  10406. irix5* | irix6*)
  10407. case $cc_basename in
  10408. CC*)
  10409. # SGI C++
  10410. 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'
  10411. # Archives containing C++ object files must be created using
  10412. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10413. # necessary to make sure instantiated templates are included
  10414. # in the archive.
  10415. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10416. ;;
  10417. *)
  10418. if test "$GXX" = yes; then
  10419. if test "$with_gnu_ld" = no; then
  10420. archive_cmds_CXX='$CC -shared -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'
  10421. else
  10422. archive_cmds_CXX='$CC -shared -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'
  10423. fi
  10424. fi
  10425. link_all_deplibs_CXX=yes
  10426. ;;
  10427. esac
  10428. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10429. hardcode_libdir_separator_CXX=:
  10430. inherit_rpath_CXX=yes
  10431. ;;
  10432. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10433. case $cc_basename in
  10434. KCC*)
  10435. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10436. # KCC will only create a shared library if the output file
  10437. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10438. # to its proper name (with version) after linking.
  10439. 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'
  10440. 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'
  10441. # Commands to make compiler produce verbose output that lists
  10442. # what "hidden" libraries, object files and flags are used when
  10443. # linking a shared library.
  10444. #
  10445. # There doesn't appear to be a way to prevent this compiler from
  10446. # explicitly linking system object files so we need to strip them
  10447. # from the output so that they don't get included in the library
  10448. # dependencies.
  10449. 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"'
  10450. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10451. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10452. # Archives containing C++ object files must be created using
  10453. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10454. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10455. ;;
  10456. icpc* | ecpc* )
  10457. # Intel C++
  10458. with_gnu_ld=yes
  10459. # version 8.0 and above of icpc choke on multiply defined symbols
  10460. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10461. # earlier do not add the objects themselves.
  10462. case `$CC -V 2>&1` in
  10463. *"Version 7."*)
  10464. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10465. 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'
  10466. ;;
  10467. *) # Version 8.0 or newer
  10468. tmp_idyn=
  10469. case $host_cpu in
  10470. ia64*) tmp_idyn=' -i_dynamic';;
  10471. esac
  10472. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10473. 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'
  10474. ;;
  10475. esac
  10476. archive_cmds_need_lc_CXX=no
  10477. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10478. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10479. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10480. ;;
  10481. pgCC* | pgcpp*)
  10482. # Portland Group C++ compiler
  10483. case `$CC -V` in
  10484. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  10485. prelink_cmds_CXX='tpldir=Template.dir~
  10486. rm -rf $tpldir~
  10487. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10488. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  10489. old_archive_cmds_CXX='tpldir=Template.dir~
  10490. rm -rf $tpldir~
  10491. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10492. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  10493. $RANLIB $oldlib'
  10494. archive_cmds_CXX='tpldir=Template.dir~
  10495. rm -rf $tpldir~
  10496. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10497. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10498. archive_expsym_cmds_CXX='tpldir=Template.dir~
  10499. rm -rf $tpldir~
  10500. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10501. $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'
  10502. ;;
  10503. *) # Version 6 and above use weak symbols
  10504. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10505. 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'
  10506. ;;
  10507. esac
  10508. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10509. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10510. 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'
  10511. ;;
  10512. cxx*)
  10513. # Compaq C++
  10514. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10515. 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'
  10516. runpath_var=LD_RUN_PATH
  10517. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10518. hardcode_libdir_separator_CXX=:
  10519. # Commands to make compiler produce verbose output that lists
  10520. # what "hidden" libraries, object files and flags are used when
  10521. # linking a shared library.
  10522. #
  10523. # There doesn't appear to be a way to prevent this compiler from
  10524. # explicitly linking system object files so we need to strip them
  10525. # from the output so that they don't get included in the library
  10526. # dependencies.
  10527. 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'
  10528. ;;
  10529. xl* | mpixl* | bgxl*)
  10530. # IBM XL 8.0 on PPC, with GNU ld
  10531. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10532. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10533. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10534. if test "x$supports_anon_versioning" = xyes; then
  10535. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  10536. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10537. echo "local: *; };" >> $output_objdir/$libname.ver~
  10538. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10539. fi
  10540. ;;
  10541. *)
  10542. case `$CC -V 2>&1 | sed 5q` in
  10543. *Sun\ C*)
  10544. # Sun C++ 5.9
  10545. no_undefined_flag_CXX=' -zdefs'
  10546. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10547. 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'
  10548. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10549. 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'
  10550. compiler_needs_object_CXX=yes
  10551. # Not sure whether something based on
  10552. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10553. # would be better.
  10554. output_verbose_link_cmd='func_echo_all'
  10555. # Archives containing C++ object files must be created using
  10556. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10557. # necessary to make sure instantiated templates are included
  10558. # in the archive.
  10559. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10560. ;;
  10561. esac
  10562. ;;
  10563. esac
  10564. ;;
  10565. lynxos*)
  10566. # FIXME: insert proper C++ library support
  10567. ld_shlibs_CXX=no
  10568. ;;
  10569. m88k*)
  10570. # FIXME: insert proper C++ library support
  10571. ld_shlibs_CXX=no
  10572. ;;
  10573. mvs*)
  10574. case $cc_basename in
  10575. cxx*)
  10576. # FIXME: insert proper C++ library support
  10577. ld_shlibs_CXX=no
  10578. ;;
  10579. *)
  10580. # FIXME: insert proper C++ library support
  10581. ld_shlibs_CXX=no
  10582. ;;
  10583. esac
  10584. ;;
  10585. netbsd*)
  10586. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10587. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10588. wlarc=
  10589. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10590. hardcode_direct_CXX=yes
  10591. hardcode_shlibpath_var_CXX=no
  10592. fi
  10593. # Workaround some broken pre-1.5 toolchains
  10594. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10595. ;;
  10596. *nto* | *qnx*)
  10597. ld_shlibs_CXX=yes
  10598. ;;
  10599. openbsd2*)
  10600. # C++ shared libraries are fairly broken
  10601. ld_shlibs_CXX=no
  10602. ;;
  10603. openbsd*)
  10604. if test -f /usr/libexec/ld.so; then
  10605. hardcode_direct_CXX=yes
  10606. hardcode_shlibpath_var_CXX=no
  10607. hardcode_direct_absolute_CXX=yes
  10608. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10609. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10610. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10611. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10612. export_dynamic_flag_spec_CXX='${wl}-E'
  10613. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10614. fi
  10615. output_verbose_link_cmd=func_echo_all
  10616. else
  10617. ld_shlibs_CXX=no
  10618. fi
  10619. ;;
  10620. osf3* | osf4* | osf5*)
  10621. case $cc_basename in
  10622. KCC*)
  10623. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10624. # KCC will only create a shared library if the output file
  10625. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10626. # to its proper name (with version) after linking.
  10627. 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'
  10628. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10629. hardcode_libdir_separator_CXX=:
  10630. # Archives containing C++ object files must be created using
  10631. # the KAI C++ compiler.
  10632. case $host in
  10633. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10634. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  10635. esac
  10636. ;;
  10637. RCC*)
  10638. # Rational C++ 2.4.1
  10639. # FIXME: insert proper C++ library support
  10640. ld_shlibs_CXX=no
  10641. ;;
  10642. cxx*)
  10643. case $host in
  10644. osf3*)
  10645. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10646. 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'
  10647. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10648. ;;
  10649. *)
  10650. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10651. 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'
  10652. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10653. echo "-hidden">> $lib.exp~
  10654. $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~
  10655. $RM $lib.exp'
  10656. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10657. ;;
  10658. esac
  10659. hardcode_libdir_separator_CXX=:
  10660. # Commands to make compiler produce verbose output that lists
  10661. # what "hidden" libraries, object files and flags are used when
  10662. # linking a shared library.
  10663. #
  10664. # There doesn't appear to be a way to prevent this compiler from
  10665. # explicitly linking system object files so we need to strip them
  10666. # from the output so that they don't get included in the library
  10667. # dependencies.
  10668. 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"'
  10669. ;;
  10670. *)
  10671. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10672. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10673. case $host in
  10674. osf3*)
  10675. 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'
  10676. ;;
  10677. *)
  10678. archive_cmds_CXX='$CC -shared -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'
  10679. ;;
  10680. esac
  10681. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10682. hardcode_libdir_separator_CXX=:
  10683. # Commands to make compiler produce verbose output that lists
  10684. # what "hidden" libraries, object files and flags are used when
  10685. # linking a shared library.
  10686. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10687. else
  10688. # FIXME: insert proper C++ library support
  10689. ld_shlibs_CXX=no
  10690. fi
  10691. ;;
  10692. esac
  10693. ;;
  10694. psos*)
  10695. # FIXME: insert proper C++ library support
  10696. ld_shlibs_CXX=no
  10697. ;;
  10698. sunos4*)
  10699. case $cc_basename in
  10700. CC*)
  10701. # Sun C++ 4.x
  10702. # FIXME: insert proper C++ library support
  10703. ld_shlibs_CXX=no
  10704. ;;
  10705. lcc*)
  10706. # Lucid
  10707. # FIXME: insert proper C++ library support
  10708. ld_shlibs_CXX=no
  10709. ;;
  10710. *)
  10711. # FIXME: insert proper C++ library support
  10712. ld_shlibs_CXX=no
  10713. ;;
  10714. esac
  10715. ;;
  10716. solaris*)
  10717. case $cc_basename in
  10718. CC* | sunCC*)
  10719. # Sun C++ 4.2, 5.x and Centerline C++
  10720. archive_cmds_need_lc_CXX=yes
  10721. no_undefined_flag_CXX=' -zdefs'
  10722. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10723. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10724. $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'
  10725. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10726. hardcode_shlibpath_var_CXX=no
  10727. case $host_os in
  10728. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10729. *)
  10730. # The compiler driver will combine and reorder linker options,
  10731. # but understands `-z linker_flag'.
  10732. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10733. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  10734. ;;
  10735. esac
  10736. link_all_deplibs_CXX=yes
  10737. output_verbose_link_cmd='func_echo_all'
  10738. # Archives containing C++ object files must be created using
  10739. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10740. # necessary to make sure instantiated templates are included
  10741. # in the archive.
  10742. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10743. ;;
  10744. gcx*)
  10745. # Green Hills C++ Compiler
  10746. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10747. # The C++ compiler must be used to create the archive.
  10748. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10749. ;;
  10750. *)
  10751. # GNU C++ compiler with Solaris linker
  10752. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10753. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10754. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  10755. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10756. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10757. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10758. # Commands to make compiler produce verbose output that lists
  10759. # what "hidden" libraries, object files and flags are used when
  10760. # linking a shared library.
  10761. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10762. else
  10763. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10764. # platform.
  10765. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10766. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10767. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10768. # Commands to make compiler produce verbose output that lists
  10769. # what "hidden" libraries, object files and flags are used when
  10770. # linking a shared library.
  10771. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10772. fi
  10773. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10774. case $host_os in
  10775. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10776. *)
  10777. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10778. ;;
  10779. esac
  10780. fi
  10781. ;;
  10782. esac
  10783. ;;
  10784. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10785. no_undefined_flag_CXX='${wl}-z,text'
  10786. archive_cmds_need_lc_CXX=no
  10787. hardcode_shlibpath_var_CXX=no
  10788. runpath_var='LD_RUN_PATH'
  10789. case $cc_basename in
  10790. CC*)
  10791. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10792. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10793. ;;
  10794. *)
  10795. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10796. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10797. ;;
  10798. esac
  10799. ;;
  10800. sysv5* | sco3.2v5* | sco5v6*)
  10801. # Note: We can NOT use -z defs as we might desire, because we do not
  10802. # link with -lc, and that would cause any symbols used from libc to
  10803. # always be unresolved, which means just about no library would
  10804. # ever link correctly. If we're not using GNU ld we use -z text
  10805. # though, which does catch some bad symbols but isn't as heavy-handed
  10806. # as -z defs.
  10807. no_undefined_flag_CXX='${wl}-z,text'
  10808. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10809. archive_cmds_need_lc_CXX=no
  10810. hardcode_shlibpath_var_CXX=no
  10811. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  10812. hardcode_libdir_separator_CXX=':'
  10813. link_all_deplibs_CXX=yes
  10814. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10815. runpath_var='LD_RUN_PATH'
  10816. case $cc_basename in
  10817. CC*)
  10818. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10819. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10820. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  10821. '"$old_archive_cmds_CXX"
  10822. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  10823. '"$reload_cmds_CXX"
  10824. ;;
  10825. *)
  10826. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10827. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10828. ;;
  10829. esac
  10830. ;;
  10831. tandem*)
  10832. case $cc_basename in
  10833. NCC*)
  10834. # NonStop-UX NCC 3.20
  10835. # FIXME: insert proper C++ library support
  10836. ld_shlibs_CXX=no
  10837. ;;
  10838. *)
  10839. # FIXME: insert proper C++ library support
  10840. ld_shlibs_CXX=no
  10841. ;;
  10842. esac
  10843. ;;
  10844. vxworks*)
  10845. # FIXME: insert proper C++ library support
  10846. ld_shlibs_CXX=no
  10847. ;;
  10848. *)
  10849. # FIXME: insert proper C++ library support
  10850. ld_shlibs_CXX=no
  10851. ;;
  10852. esac
  10853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  10854. $as_echo "$ld_shlibs_CXX" >&6; }
  10855. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10856. GCC_CXX="$GXX"
  10857. LD_CXX="$LD"
  10858. ## CAVEAT EMPTOR:
  10859. ## There is no encapsulation within the following macros, do not change
  10860. ## the running order or otherwise move them around unless you know exactly
  10861. ## what you are doing...
  10862. # Dependencies to place before and after the object being linked:
  10863. predep_objects_CXX=
  10864. postdep_objects_CXX=
  10865. predeps_CXX=
  10866. postdeps_CXX=
  10867. compiler_lib_search_path_CXX=
  10868. cat > conftest.$ac_ext <<_LT_EOF
  10869. class Foo
  10870. {
  10871. public:
  10872. Foo (void) { a = 0; }
  10873. private:
  10874. int a;
  10875. };
  10876. _LT_EOF
  10877. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10878. (eval $ac_compile) 2>&5
  10879. ac_status=$?
  10880. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10881. test $ac_status = 0; }; then
  10882. # Parse the compiler output and extract the necessary
  10883. # objects, libraries and library flags.
  10884. # Sentinel used to keep track of whether or not we are before
  10885. # the conftest object file.
  10886. pre_test_object_deps_done=no
  10887. for p in `eval "$output_verbose_link_cmd"`; do
  10888. case $p in
  10889. -L* | -R* | -l*)
  10890. # Some compilers place space between "-{L,R}" and the path.
  10891. # Remove the space.
  10892. if test $p = "-L" ||
  10893. test $p = "-R"; then
  10894. prev=$p
  10895. continue
  10896. else
  10897. prev=
  10898. fi
  10899. if test "$pre_test_object_deps_done" = no; then
  10900. case $p in
  10901. -L* | -R*)
  10902. # Internal compiler library paths should come after those
  10903. # provided the user. The postdeps already come after the
  10904. # user supplied libs so there is no need to process them.
  10905. if test -z "$compiler_lib_search_path_CXX"; then
  10906. compiler_lib_search_path_CXX="${prev}${p}"
  10907. else
  10908. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10909. fi
  10910. ;;
  10911. # The "-l" case would never come before the object being
  10912. # linked, so don't bother handling this case.
  10913. esac
  10914. else
  10915. if test -z "$postdeps_CXX"; then
  10916. postdeps_CXX="${prev}${p}"
  10917. else
  10918. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10919. fi
  10920. fi
  10921. ;;
  10922. *.$objext)
  10923. # This assumes that the test object file only shows up
  10924. # once in the compiler output.
  10925. if test "$p" = "conftest.$objext"; then
  10926. pre_test_object_deps_done=yes
  10927. continue
  10928. fi
  10929. if test "$pre_test_object_deps_done" = no; then
  10930. if test -z "$predep_objects_CXX"; then
  10931. predep_objects_CXX="$p"
  10932. else
  10933. predep_objects_CXX="$predep_objects_CXX $p"
  10934. fi
  10935. else
  10936. if test -z "$postdep_objects_CXX"; then
  10937. postdep_objects_CXX="$p"
  10938. else
  10939. postdep_objects_CXX="$postdep_objects_CXX $p"
  10940. fi
  10941. fi
  10942. ;;
  10943. *) ;; # Ignore the rest.
  10944. esac
  10945. done
  10946. # Clean up.
  10947. rm -f a.out a.exe
  10948. else
  10949. echo "libtool.m4: error: problem compiling CXX test program"
  10950. fi
  10951. $RM -f confest.$objext
  10952. # PORTME: override above test on systems where it is broken
  10953. case $host_os in
  10954. interix[3-9]*)
  10955. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10956. # hack all around it, let's just trust "g++" to DTRT.
  10957. predep_objects_CXX=
  10958. postdep_objects_CXX=
  10959. postdeps_CXX=
  10960. ;;
  10961. linux*)
  10962. case `$CC -V 2>&1 | sed 5q` in
  10963. *Sun\ C*)
  10964. # Sun C++ 5.9
  10965. # The more standards-conforming stlport4 library is
  10966. # incompatible with the Cstd library. Avoid specifying
  10967. # it if it's in CXXFLAGS. Ignore libCrun as
  10968. # -library=stlport4 depends on it.
  10969. case " $CXX $CXXFLAGS " in
  10970. *" -library=stlport4 "*)
  10971. solaris_use_stlport4=yes
  10972. ;;
  10973. esac
  10974. if test "$solaris_use_stlport4" != yes; then
  10975. postdeps_CXX='-library=Cstd -library=Crun'
  10976. fi
  10977. ;;
  10978. esac
  10979. ;;
  10980. solaris*)
  10981. case $cc_basename in
  10982. CC* | sunCC*)
  10983. # The more standards-conforming stlport4 library is
  10984. # incompatible with the Cstd library. Avoid specifying
  10985. # it if it's in CXXFLAGS. Ignore libCrun as
  10986. # -library=stlport4 depends on it.
  10987. case " $CXX $CXXFLAGS " in
  10988. *" -library=stlport4 "*)
  10989. solaris_use_stlport4=yes
  10990. ;;
  10991. esac
  10992. # Adding this requires a known-good setup of shared libraries for
  10993. # Sun compiler versions before 5.6, else PIC objects from an old
  10994. # archive will be linked into the output, leading to subtle bugs.
  10995. if test "$solaris_use_stlport4" != yes; then
  10996. postdeps_CXX='-library=Cstd -library=Crun'
  10997. fi
  10998. ;;
  10999. esac
  11000. ;;
  11001. esac
  11002. case " $postdeps_CXX " in
  11003. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11004. esac
  11005. compiler_lib_search_dirs_CXX=
  11006. if test -n "${compiler_lib_search_path_CXX}"; then
  11007. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11008. fi
  11009. lt_prog_compiler_wl_CXX=
  11010. lt_prog_compiler_pic_CXX=
  11011. lt_prog_compiler_static_CXX=
  11012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11013. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11014. # C++ specific cases for pic, static, wl, etc.
  11015. if test "$GXX" = yes; then
  11016. lt_prog_compiler_wl_CXX='-Wl,'
  11017. lt_prog_compiler_static_CXX='-static'
  11018. case $host_os in
  11019. aix*)
  11020. # All AIX code is PIC.
  11021. if test "$host_cpu" = ia64; then
  11022. # AIX 5 now supports IA64 processor
  11023. lt_prog_compiler_static_CXX='-Bstatic'
  11024. fi
  11025. ;;
  11026. amigaos*)
  11027. case $host_cpu in
  11028. powerpc)
  11029. # see comment about AmigaOS4 .so support
  11030. lt_prog_compiler_pic_CXX='-fPIC'
  11031. ;;
  11032. m68k)
  11033. # FIXME: we need at least 68020 code to build shared libraries, but
  11034. # adding the `-m68020' flag to GCC prevents building anything better,
  11035. # like `-m68040'.
  11036. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11037. ;;
  11038. esac
  11039. ;;
  11040. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11041. # PIC is the default for these OSes.
  11042. ;;
  11043. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11044. # This hack is so that the source file can tell whether it is being
  11045. # built for inclusion in a dll (and should export symbols for example).
  11046. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11047. # (--disable-auto-import) libraries
  11048. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11049. ;;
  11050. darwin* | rhapsody*)
  11051. # PIC is the default on this platform
  11052. # Common symbols not allowed in MH_DYLIB files
  11053. lt_prog_compiler_pic_CXX='-fno-common'
  11054. ;;
  11055. *djgpp*)
  11056. # DJGPP does not support shared libraries at all
  11057. lt_prog_compiler_pic_CXX=
  11058. ;;
  11059. haiku*)
  11060. # PIC is the default for Haiku.
  11061. # The "-static" flag exists, but is broken.
  11062. lt_prog_compiler_static_CXX=
  11063. ;;
  11064. interix[3-9]*)
  11065. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11066. # Instead, we relocate shared libraries at runtime.
  11067. ;;
  11068. sysv4*MP*)
  11069. if test -d /usr/nec; then
  11070. lt_prog_compiler_pic_CXX=-Kconform_pic
  11071. fi
  11072. ;;
  11073. hpux*)
  11074. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11075. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11076. # sets the default TLS model and affects inlining.
  11077. case $host_cpu in
  11078. hppa*64*)
  11079. ;;
  11080. *)
  11081. lt_prog_compiler_pic_CXX='-fPIC'
  11082. ;;
  11083. esac
  11084. ;;
  11085. *qnx* | *nto*)
  11086. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11087. # it will coredump.
  11088. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11089. ;;
  11090. *)
  11091. lt_prog_compiler_pic_CXX='-fPIC'
  11092. ;;
  11093. esac
  11094. else
  11095. case $host_os in
  11096. aix[4-9]*)
  11097. # All AIX code is PIC.
  11098. if test "$host_cpu" = ia64; then
  11099. # AIX 5 now supports IA64 processor
  11100. lt_prog_compiler_static_CXX='-Bstatic'
  11101. else
  11102. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11103. fi
  11104. ;;
  11105. chorus*)
  11106. case $cc_basename in
  11107. cxch68*)
  11108. # Green Hills C++ Compiler
  11109. # _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"
  11110. ;;
  11111. esac
  11112. ;;
  11113. dgux*)
  11114. case $cc_basename in
  11115. ec++*)
  11116. lt_prog_compiler_pic_CXX='-KPIC'
  11117. ;;
  11118. ghcx*)
  11119. # Green Hills C++ Compiler
  11120. lt_prog_compiler_pic_CXX='-pic'
  11121. ;;
  11122. *)
  11123. ;;
  11124. esac
  11125. ;;
  11126. freebsd* | dragonfly*)
  11127. # FreeBSD uses GNU C++
  11128. ;;
  11129. hpux9* | hpux10* | hpux11*)
  11130. case $cc_basename in
  11131. CC*)
  11132. lt_prog_compiler_wl_CXX='-Wl,'
  11133. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11134. if test "$host_cpu" != ia64; then
  11135. lt_prog_compiler_pic_CXX='+Z'
  11136. fi
  11137. ;;
  11138. aCC*)
  11139. lt_prog_compiler_wl_CXX='-Wl,'
  11140. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11141. case $host_cpu in
  11142. hppa*64*|ia64*)
  11143. # +Z the default
  11144. ;;
  11145. *)
  11146. lt_prog_compiler_pic_CXX='+Z'
  11147. ;;
  11148. esac
  11149. ;;
  11150. *)
  11151. ;;
  11152. esac
  11153. ;;
  11154. interix*)
  11155. # This is c89, which is MS Visual C++ (no shared libs)
  11156. # Anyone wants to do a port?
  11157. ;;
  11158. irix5* | irix6* | nonstopux*)
  11159. case $cc_basename in
  11160. CC*)
  11161. lt_prog_compiler_wl_CXX='-Wl,'
  11162. lt_prog_compiler_static_CXX='-non_shared'
  11163. # CC pic flag -KPIC is the default.
  11164. ;;
  11165. *)
  11166. ;;
  11167. esac
  11168. ;;
  11169. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11170. case $cc_basename in
  11171. KCC*)
  11172. # KAI C++ Compiler
  11173. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11174. lt_prog_compiler_pic_CXX='-fPIC'
  11175. ;;
  11176. ecpc* )
  11177. # old Intel C++ for x86_64 which still supported -KPIC.
  11178. lt_prog_compiler_wl_CXX='-Wl,'
  11179. lt_prog_compiler_pic_CXX='-KPIC'
  11180. lt_prog_compiler_static_CXX='-static'
  11181. ;;
  11182. icpc* )
  11183. # Intel C++, used to be incompatible with GCC.
  11184. # ICC 10 doesn't accept -KPIC any more.
  11185. lt_prog_compiler_wl_CXX='-Wl,'
  11186. lt_prog_compiler_pic_CXX='-fPIC'
  11187. lt_prog_compiler_static_CXX='-static'
  11188. ;;
  11189. pgCC* | pgcpp*)
  11190. # Portland Group C++ compiler
  11191. lt_prog_compiler_wl_CXX='-Wl,'
  11192. lt_prog_compiler_pic_CXX='-fpic'
  11193. lt_prog_compiler_static_CXX='-Bstatic'
  11194. ;;
  11195. cxx*)
  11196. # Compaq C++
  11197. # Make sure the PIC flag is empty. It appears that all Alpha
  11198. # Linux and Compaq Tru64 Unix objects are PIC.
  11199. lt_prog_compiler_pic_CXX=
  11200. lt_prog_compiler_static_CXX='-non_shared'
  11201. ;;
  11202. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  11203. # IBM XL 8.0, 9.0 on PPC and BlueGene
  11204. lt_prog_compiler_wl_CXX='-Wl,'
  11205. lt_prog_compiler_pic_CXX='-qpic'
  11206. lt_prog_compiler_static_CXX='-qstaticlink'
  11207. ;;
  11208. *)
  11209. case `$CC -V 2>&1 | sed 5q` in
  11210. *Sun\ C*)
  11211. # Sun C++ 5.9
  11212. lt_prog_compiler_pic_CXX='-KPIC'
  11213. lt_prog_compiler_static_CXX='-Bstatic'
  11214. lt_prog_compiler_wl_CXX='-Qoption ld '
  11215. ;;
  11216. esac
  11217. ;;
  11218. esac
  11219. ;;
  11220. lynxos*)
  11221. ;;
  11222. m88k*)
  11223. ;;
  11224. mvs*)
  11225. case $cc_basename in
  11226. cxx*)
  11227. lt_prog_compiler_pic_CXX='-W c,exportall'
  11228. ;;
  11229. *)
  11230. ;;
  11231. esac
  11232. ;;
  11233. netbsd*)
  11234. ;;
  11235. *qnx* | *nto*)
  11236. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11237. # it will coredump.
  11238. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11239. ;;
  11240. osf3* | osf4* | osf5*)
  11241. case $cc_basename in
  11242. KCC*)
  11243. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11244. ;;
  11245. RCC*)
  11246. # Rational C++ 2.4.1
  11247. lt_prog_compiler_pic_CXX='-pic'
  11248. ;;
  11249. cxx*)
  11250. # Digital/Compaq C++
  11251. lt_prog_compiler_wl_CXX='-Wl,'
  11252. # Make sure the PIC flag is empty. It appears that all Alpha
  11253. # Linux and Compaq Tru64 Unix objects are PIC.
  11254. lt_prog_compiler_pic_CXX=
  11255. lt_prog_compiler_static_CXX='-non_shared'
  11256. ;;
  11257. *)
  11258. ;;
  11259. esac
  11260. ;;
  11261. psos*)
  11262. ;;
  11263. solaris*)
  11264. case $cc_basename in
  11265. CC* | sunCC*)
  11266. # Sun C++ 4.2, 5.x and Centerline C++
  11267. lt_prog_compiler_pic_CXX='-KPIC'
  11268. lt_prog_compiler_static_CXX='-Bstatic'
  11269. lt_prog_compiler_wl_CXX='-Qoption ld '
  11270. ;;
  11271. gcx*)
  11272. # Green Hills C++ Compiler
  11273. lt_prog_compiler_pic_CXX='-PIC'
  11274. ;;
  11275. *)
  11276. ;;
  11277. esac
  11278. ;;
  11279. sunos4*)
  11280. case $cc_basename in
  11281. CC*)
  11282. # Sun C++ 4.x
  11283. lt_prog_compiler_pic_CXX='-pic'
  11284. lt_prog_compiler_static_CXX='-Bstatic'
  11285. ;;
  11286. lcc*)
  11287. # Lucid
  11288. lt_prog_compiler_pic_CXX='-pic'
  11289. ;;
  11290. *)
  11291. ;;
  11292. esac
  11293. ;;
  11294. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11295. case $cc_basename in
  11296. CC*)
  11297. lt_prog_compiler_wl_CXX='-Wl,'
  11298. lt_prog_compiler_pic_CXX='-KPIC'
  11299. lt_prog_compiler_static_CXX='-Bstatic'
  11300. ;;
  11301. esac
  11302. ;;
  11303. tandem*)
  11304. case $cc_basename in
  11305. NCC*)
  11306. # NonStop-UX NCC 3.20
  11307. lt_prog_compiler_pic_CXX='-KPIC'
  11308. ;;
  11309. *)
  11310. ;;
  11311. esac
  11312. ;;
  11313. vxworks*)
  11314. ;;
  11315. *)
  11316. lt_prog_compiler_can_build_shared_CXX=no
  11317. ;;
  11318. esac
  11319. fi
  11320. case $host_os in
  11321. # For platforms which do not support PIC, -DPIC is meaningless:
  11322. *djgpp*)
  11323. lt_prog_compiler_pic_CXX=
  11324. ;;
  11325. *)
  11326. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11327. ;;
  11328. esac
  11329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  11330. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  11331. #
  11332. # Check to make sure the PIC flag actually works.
  11333. #
  11334. if test -n "$lt_prog_compiler_pic_CXX"; then
  11335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11336. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11337. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  11338. $as_echo_n "(cached) " >&6
  11339. else
  11340. lt_cv_prog_compiler_pic_works_CXX=no
  11341. ac_outfile=conftest.$ac_objext
  11342. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11343. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11344. # Insert the option either (1) after the last *FLAGS variable, or
  11345. # (2) before a word containing "conftest.", or (3) at the end.
  11346. # Note that $ac_compile itself does not contain backslashes and begins
  11347. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11348. # The option is referenced via a variable to avoid confusing sed.
  11349. lt_compile=`echo "$ac_compile" | $SED \
  11350. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11351. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11352. -e 's:$: $lt_compiler_flag:'`
  11353. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11354. (eval "$lt_compile" 2>conftest.err)
  11355. ac_status=$?
  11356. cat conftest.err >&5
  11357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11358. if (exit $ac_status) && test -s "$ac_outfile"; then
  11359. # The compiler can only warn and ignore the option if not recognized
  11360. # So say no if there are warnings other than the usual output.
  11361. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  11362. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11363. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11364. lt_cv_prog_compiler_pic_works_CXX=yes
  11365. fi
  11366. fi
  11367. $RM conftest*
  11368. fi
  11369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11370. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11371. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11372. case $lt_prog_compiler_pic_CXX in
  11373. "" | " "*) ;;
  11374. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11375. esac
  11376. else
  11377. lt_prog_compiler_pic_CXX=
  11378. lt_prog_compiler_can_build_shared_CXX=no
  11379. fi
  11380. fi
  11381. #
  11382. # Check to make sure the static flag actually works.
  11383. #
  11384. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11386. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11387. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  11388. $as_echo_n "(cached) " >&6
  11389. else
  11390. lt_cv_prog_compiler_static_works_CXX=no
  11391. save_LDFLAGS="$LDFLAGS"
  11392. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11393. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11394. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11395. # The linker can only warn and ignore the option if not recognized
  11396. # So say no if there are warnings
  11397. if test -s conftest.err; then
  11398. # Append any errors to the config.log.
  11399. cat conftest.err 1>&5
  11400. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  11401. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11402. if diff conftest.exp conftest.er2 >/dev/null; then
  11403. lt_cv_prog_compiler_static_works_CXX=yes
  11404. fi
  11405. else
  11406. lt_cv_prog_compiler_static_works_CXX=yes
  11407. fi
  11408. fi
  11409. $RM -r conftest*
  11410. LDFLAGS="$save_LDFLAGS"
  11411. fi
  11412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11413. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11414. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11415. :
  11416. else
  11417. lt_prog_compiler_static_CXX=
  11418. fi
  11419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11420. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11421. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11422. $as_echo_n "(cached) " >&6
  11423. else
  11424. lt_cv_prog_compiler_c_o_CXX=no
  11425. $RM -r conftest 2>/dev/null
  11426. mkdir conftest
  11427. cd conftest
  11428. mkdir out
  11429. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11430. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11431. # Insert the option either (1) after the last *FLAGS variable, or
  11432. # (2) before a word containing "conftest.", or (3) at the end.
  11433. # Note that $ac_compile itself does not contain backslashes and begins
  11434. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11435. lt_compile=`echo "$ac_compile" | $SED \
  11436. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11437. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11438. -e 's:$: $lt_compiler_flag:'`
  11439. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11440. (eval "$lt_compile" 2>out/conftest.err)
  11441. ac_status=$?
  11442. cat out/conftest.err >&5
  11443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11444. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11445. then
  11446. # The compiler can only warn and ignore the option if not recognized
  11447. # So say no if there are warnings
  11448. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11449. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11450. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11451. lt_cv_prog_compiler_c_o_CXX=yes
  11452. fi
  11453. fi
  11454. chmod u+w . 2>&5
  11455. $RM conftest*
  11456. # SGI C++ compiler will create directory out/ii_files/ for
  11457. # template instantiation
  11458. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11459. $RM out/* && rmdir out
  11460. cd ..
  11461. $RM -r conftest
  11462. $RM conftest*
  11463. fi
  11464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11465. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11467. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11468. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11469. $as_echo_n "(cached) " >&6
  11470. else
  11471. lt_cv_prog_compiler_c_o_CXX=no
  11472. $RM -r conftest 2>/dev/null
  11473. mkdir conftest
  11474. cd conftest
  11475. mkdir out
  11476. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11477. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11478. # Insert the option either (1) after the last *FLAGS variable, or
  11479. # (2) before a word containing "conftest.", or (3) at the end.
  11480. # Note that $ac_compile itself does not contain backslashes and begins
  11481. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11482. lt_compile=`echo "$ac_compile" | $SED \
  11483. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11484. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11485. -e 's:$: $lt_compiler_flag:'`
  11486. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11487. (eval "$lt_compile" 2>out/conftest.err)
  11488. ac_status=$?
  11489. cat out/conftest.err >&5
  11490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11491. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11492. then
  11493. # The compiler can only warn and ignore the option if not recognized
  11494. # So say no if there are warnings
  11495. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11496. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11497. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11498. lt_cv_prog_compiler_c_o_CXX=yes
  11499. fi
  11500. fi
  11501. chmod u+w . 2>&5
  11502. $RM conftest*
  11503. # SGI C++ compiler will create directory out/ii_files/ for
  11504. # template instantiation
  11505. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11506. $RM out/* && rmdir out
  11507. cd ..
  11508. $RM -r conftest
  11509. $RM conftest*
  11510. fi
  11511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11512. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11513. hard_links="nottested"
  11514. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11515. # do not overwrite the value of need_locks provided by the user
  11516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11517. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11518. hard_links=yes
  11519. $RM conftest*
  11520. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11521. touch conftest.a
  11522. ln conftest.a conftest.b 2>&5 || hard_links=no
  11523. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11525. $as_echo "$hard_links" >&6; }
  11526. if test "$hard_links" = no; then
  11527. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11528. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11529. need_locks=warn
  11530. fi
  11531. else
  11532. need_locks=no
  11533. fi
  11534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11535. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11536. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11537. case $host_os in
  11538. aix[4-9]*)
  11539. # If we're using GNU nm, then we don't want the "-C" option.
  11540. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11541. # Also, AIX nm treats weak defined symbols like other global defined
  11542. # symbols, whereas GNU nm marks them as "W".
  11543. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11544. 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'
  11545. else
  11546. 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'
  11547. fi
  11548. ;;
  11549. pw32*)
  11550. export_symbols_cmds_CXX="$ltdll_cmds"
  11551. ;;
  11552. cygwin* | mingw* | cegcc*)
  11553. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  11554. ;;
  11555. linux* | k*bsd*-gnu)
  11556. link_all_deplibs_CXX=no
  11557. ;;
  11558. *)
  11559. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11560. ;;
  11561. esac
  11562. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11564. $as_echo "$ld_shlibs_CXX" >&6; }
  11565. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11566. with_gnu_ld_CXX=$with_gnu_ld
  11567. #
  11568. # Do we need to explicitly link libc?
  11569. #
  11570. case "x$archive_cmds_need_lc_CXX" in
  11571. x|xyes)
  11572. # Assume -lc should be added
  11573. archive_cmds_need_lc_CXX=yes
  11574. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11575. case $archive_cmds_CXX in
  11576. *'~'*)
  11577. # FIXME: we may have to deal with multi-command sequences.
  11578. ;;
  11579. '$CC '*)
  11580. # Test whether the compiler implicitly links with -lc since on some
  11581. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11582. # to ld, don't add -lc before -lgcc.
  11583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11584. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11585. if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
  11586. $as_echo_n "(cached) " >&6
  11587. else
  11588. $RM conftest*
  11589. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11590. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11591. (eval $ac_compile) 2>&5
  11592. ac_status=$?
  11593. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11594. test $ac_status = 0; } 2>conftest.err; then
  11595. soname=conftest
  11596. lib=conftest
  11597. libobjs=conftest.$ac_objext
  11598. deplibs=
  11599. wl=$lt_prog_compiler_wl_CXX
  11600. pic_flag=$lt_prog_compiler_pic_CXX
  11601. compiler_flags=-v
  11602. linker_flags=-v
  11603. verstring=
  11604. output_objdir=.
  11605. libname=conftest
  11606. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11607. allow_undefined_flag_CXX=
  11608. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11609. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11610. ac_status=$?
  11611. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11612. test $ac_status = 0; }
  11613. then
  11614. lt_cv_archive_cmds_need_lc_CXX=no
  11615. else
  11616. lt_cv_archive_cmds_need_lc_CXX=yes
  11617. fi
  11618. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11619. else
  11620. cat conftest.err 1>&5
  11621. fi
  11622. $RM conftest*
  11623. fi
  11624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  11625. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  11626. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  11627. ;;
  11628. esac
  11629. fi
  11630. ;;
  11631. esac
  11632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11633. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11634. library_names_spec=
  11635. libname_spec='lib$name'
  11636. soname_spec=
  11637. shrext_cmds=".so"
  11638. postinstall_cmds=
  11639. postuninstall_cmds=
  11640. finish_cmds=
  11641. finish_eval=
  11642. shlibpath_var=
  11643. shlibpath_overrides_runpath=unknown
  11644. version_type=none
  11645. dynamic_linker="$host_os ld.so"
  11646. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11647. need_lib_prefix=unknown
  11648. hardcode_into_libs=no
  11649. # when you set need_version to no, make sure it does not cause -set_version
  11650. # flags to be left without arguments
  11651. need_version=unknown
  11652. case $host_os in
  11653. aix3*)
  11654. version_type=linux
  11655. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11656. shlibpath_var=LIBPATH
  11657. # AIX 3 has no versioning support, so we append a major version to the name.
  11658. soname_spec='${libname}${release}${shared_ext}$major'
  11659. ;;
  11660. aix[4-9]*)
  11661. version_type=linux
  11662. need_lib_prefix=no
  11663. need_version=no
  11664. hardcode_into_libs=yes
  11665. if test "$host_cpu" = ia64; then
  11666. # AIX 5 supports IA64
  11667. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11668. shlibpath_var=LD_LIBRARY_PATH
  11669. else
  11670. # With GCC up to 2.95.x, collect2 would create an import file
  11671. # for dependence libraries. The import file would start with
  11672. # the line `#! .'. This would cause the generated library to
  11673. # depend on `.', always an invalid library. This was fixed in
  11674. # development snapshots of GCC prior to 3.0.
  11675. case $host_os in
  11676. aix4 | aix4.[01] | aix4.[01].*)
  11677. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11678. echo ' yes '
  11679. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  11680. :
  11681. else
  11682. can_build_shared=no
  11683. fi
  11684. ;;
  11685. esac
  11686. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11687. # soname into executable. Probably we can add versioning support to
  11688. # collect2, so additional links can be useful in future.
  11689. if test "$aix_use_runtimelinking" = yes; then
  11690. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11691. # instead of lib<name>.a to let people know that these are not
  11692. # typical AIX shared libraries.
  11693. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11694. else
  11695. # We preserve .a as extension for shared libraries through AIX4.2
  11696. # and later when we are not doing run time linking.
  11697. library_names_spec='${libname}${release}.a $libname.a'
  11698. soname_spec='${libname}${release}${shared_ext}$major'
  11699. fi
  11700. shlibpath_var=LIBPATH
  11701. fi
  11702. ;;
  11703. amigaos*)
  11704. case $host_cpu in
  11705. powerpc)
  11706. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11707. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11708. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11709. ;;
  11710. m68k)
  11711. library_names_spec='$libname.ixlibrary $libname.a'
  11712. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11713. 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'
  11714. ;;
  11715. esac
  11716. ;;
  11717. beos*)
  11718. library_names_spec='${libname}${shared_ext}'
  11719. dynamic_linker="$host_os ld.so"
  11720. shlibpath_var=LIBRARY_PATH
  11721. ;;
  11722. bsdi[45]*)
  11723. version_type=linux
  11724. need_version=no
  11725. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11726. soname_spec='${libname}${release}${shared_ext}$major'
  11727. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11728. shlibpath_var=LD_LIBRARY_PATH
  11729. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11730. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11731. # the default ld.so.conf also contains /usr/contrib/lib and
  11732. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11733. # libtool to hard-code these into programs
  11734. ;;
  11735. cygwin* | mingw* | pw32* | cegcc*)
  11736. version_type=windows
  11737. shrext_cmds=".dll"
  11738. need_version=no
  11739. need_lib_prefix=no
  11740. case $GCC,$host_os in
  11741. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  11742. library_names_spec='$libname.dll.a'
  11743. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11744. postinstall_cmds='base_file=`basename \${file}`~
  11745. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11746. dldir=$destdir/`dirname \$dlpath`~
  11747. test -d \$dldir || mkdir -p \$dldir~
  11748. $install_prog $dir/$dlname \$dldir/$dlname~
  11749. chmod a+x \$dldir/$dlname~
  11750. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11751. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11752. fi'
  11753. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11754. dlpath=$dir/\$dldll~
  11755. $RM \$dlpath'
  11756. shlibpath_overrides_runpath=yes
  11757. case $host_os in
  11758. cygwin*)
  11759. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11760. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11761. ;;
  11762. mingw* | cegcc*)
  11763. # MinGW DLLs use traditional 'lib' prefix
  11764. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11765. ;;
  11766. pw32*)
  11767. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11768. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11769. ;;
  11770. esac
  11771. ;;
  11772. *)
  11773. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11774. ;;
  11775. esac
  11776. dynamic_linker='Win32 ld.exe'
  11777. # FIXME: first we should search . and the directory the executable is in
  11778. shlibpath_var=PATH
  11779. ;;
  11780. darwin* | rhapsody*)
  11781. dynamic_linker="$host_os dyld"
  11782. version_type=darwin
  11783. need_lib_prefix=no
  11784. need_version=no
  11785. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11786. soname_spec='${libname}${release}${major}$shared_ext'
  11787. shlibpath_overrides_runpath=yes
  11788. shlibpath_var=DYLD_LIBRARY_PATH
  11789. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11790. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11791. ;;
  11792. dgux*)
  11793. version_type=linux
  11794. need_lib_prefix=no
  11795. need_version=no
  11796. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11797. soname_spec='${libname}${release}${shared_ext}$major'
  11798. shlibpath_var=LD_LIBRARY_PATH
  11799. ;;
  11800. freebsd1*)
  11801. dynamic_linker=no
  11802. ;;
  11803. freebsd* | dragonfly*)
  11804. # DragonFly does not have aout. When/if they implement a new
  11805. # versioning mechanism, adjust this.
  11806. if test -x /usr/bin/objformat; then
  11807. objformat=`/usr/bin/objformat`
  11808. else
  11809. case $host_os in
  11810. freebsd[123]*) objformat=aout ;;
  11811. *) objformat=elf ;;
  11812. esac
  11813. fi
  11814. version_type=freebsd-$objformat
  11815. case $version_type in
  11816. freebsd-elf*)
  11817. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11818. need_version=no
  11819. need_lib_prefix=no
  11820. ;;
  11821. freebsd-*)
  11822. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11823. need_version=yes
  11824. ;;
  11825. esac
  11826. shlibpath_var=LD_LIBRARY_PATH
  11827. case $host_os in
  11828. freebsd2*)
  11829. shlibpath_overrides_runpath=yes
  11830. ;;
  11831. freebsd3.[01]* | freebsdelf3.[01]*)
  11832. shlibpath_overrides_runpath=yes
  11833. hardcode_into_libs=yes
  11834. ;;
  11835. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11836. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11837. shlibpath_overrides_runpath=no
  11838. hardcode_into_libs=yes
  11839. ;;
  11840. *) # from 4.6 on, and DragonFly
  11841. shlibpath_overrides_runpath=yes
  11842. hardcode_into_libs=yes
  11843. ;;
  11844. esac
  11845. ;;
  11846. gnu*)
  11847. version_type=linux
  11848. need_lib_prefix=no
  11849. need_version=no
  11850. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11851. soname_spec='${libname}${release}${shared_ext}$major'
  11852. shlibpath_var=LD_LIBRARY_PATH
  11853. hardcode_into_libs=yes
  11854. ;;
  11855. haiku*)
  11856. version_type=linux
  11857. need_lib_prefix=no
  11858. need_version=no
  11859. dynamic_linker="$host_os runtime_loader"
  11860. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11861. soname_spec='${libname}${release}${shared_ext}$major'
  11862. shlibpath_var=LIBRARY_PATH
  11863. shlibpath_overrides_runpath=yes
  11864. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  11865. hardcode_into_libs=yes
  11866. ;;
  11867. hpux9* | hpux10* | hpux11*)
  11868. # Give a soname corresponding to the major version so that dld.sl refuses to
  11869. # link against other versions.
  11870. version_type=sunos
  11871. need_lib_prefix=no
  11872. need_version=no
  11873. case $host_cpu in
  11874. ia64*)
  11875. shrext_cmds='.so'
  11876. hardcode_into_libs=yes
  11877. dynamic_linker="$host_os dld.so"
  11878. shlibpath_var=LD_LIBRARY_PATH
  11879. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11880. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11881. soname_spec='${libname}${release}${shared_ext}$major'
  11882. if test "X$HPUX_IA64_MODE" = X32; then
  11883. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11884. else
  11885. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11886. fi
  11887. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11888. ;;
  11889. hppa*64*)
  11890. shrext_cmds='.sl'
  11891. hardcode_into_libs=yes
  11892. dynamic_linker="$host_os dld.sl"
  11893. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11894. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11895. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11896. soname_spec='${libname}${release}${shared_ext}$major'
  11897. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11898. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11899. ;;
  11900. *)
  11901. shrext_cmds='.sl'
  11902. dynamic_linker="$host_os dld.sl"
  11903. shlibpath_var=SHLIB_PATH
  11904. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11905. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11906. soname_spec='${libname}${release}${shared_ext}$major'
  11907. ;;
  11908. esac
  11909. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  11910. postinstall_cmds='chmod 555 $lib'
  11911. # or fails outright, so override atomically:
  11912. install_override_mode=555
  11913. ;;
  11914. interix[3-9]*)
  11915. version_type=linux
  11916. need_lib_prefix=no
  11917. need_version=no
  11918. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11919. soname_spec='${libname}${release}${shared_ext}$major'
  11920. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11921. shlibpath_var=LD_LIBRARY_PATH
  11922. shlibpath_overrides_runpath=no
  11923. hardcode_into_libs=yes
  11924. ;;
  11925. irix5* | irix6* | nonstopux*)
  11926. case $host_os in
  11927. nonstopux*) version_type=nonstopux ;;
  11928. *)
  11929. if test "$lt_cv_prog_gnu_ld" = yes; then
  11930. version_type=linux
  11931. else
  11932. version_type=irix
  11933. fi ;;
  11934. esac
  11935. need_lib_prefix=no
  11936. need_version=no
  11937. soname_spec='${libname}${release}${shared_ext}$major'
  11938. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11939. case $host_os in
  11940. irix5* | nonstopux*)
  11941. libsuff= shlibsuff=
  11942. ;;
  11943. *)
  11944. case $LD in # libtool.m4 will add one of these switches to LD
  11945. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11946. libsuff= shlibsuff= libmagic=32-bit;;
  11947. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11948. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11949. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11950. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11951. *) libsuff= shlibsuff= libmagic=never-match;;
  11952. esac
  11953. ;;
  11954. esac
  11955. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11956. shlibpath_overrides_runpath=no
  11957. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11958. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11959. hardcode_into_libs=yes
  11960. ;;
  11961. # No shared lib support for Linux oldld, aout, or coff.
  11962. linux*oldld* | linux*aout* | linux*coff*)
  11963. dynamic_linker=no
  11964. ;;
  11965. # This must be Linux ELF.
  11966. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11967. version_type=linux
  11968. need_lib_prefix=no
  11969. need_version=no
  11970. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11971. soname_spec='${libname}${release}${shared_ext}$major'
  11972. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11973. shlibpath_var=LD_LIBRARY_PATH
  11974. shlibpath_overrides_runpath=no
  11975. # Some binutils ld are patched to set DT_RUNPATH
  11976. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  11977. $as_echo_n "(cached) " >&6
  11978. else
  11979. lt_cv_shlibpath_overrides_runpath=no
  11980. save_LDFLAGS=$LDFLAGS
  11981. save_libdir=$libdir
  11982. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  11983. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  11984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11985. /* end confdefs.h. */
  11986. int
  11987. main ()
  11988. {
  11989. ;
  11990. return 0;
  11991. }
  11992. _ACEOF
  11993. if ac_fn_cxx_try_link "$LINENO"; then :
  11994. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  11995. lt_cv_shlibpath_overrides_runpath=yes
  11996. fi
  11997. fi
  11998. rm -f core conftest.err conftest.$ac_objext \
  11999. conftest$ac_exeext conftest.$ac_ext
  12000. LDFLAGS=$save_LDFLAGS
  12001. libdir=$save_libdir
  12002. fi
  12003. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12004. # This implies no fast_install, which is unacceptable.
  12005. # Some rework will be needed to allow for fast_install
  12006. # before this can be enabled.
  12007. hardcode_into_libs=yes
  12008. # find out which ABI we are using
  12009. libsuff=
  12010. case "$host_cpu" in
  12011. x86_64*|s390x*|powerpc64*)
  12012. echo '#line 13927 "configure"' > conftest.$ac_ext
  12013. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12014. (eval $ac_compile) 2>&5
  12015. ac_status=$?
  12016. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12017. test $ac_status = 0; }; then
  12018. case `/usr/bin/file conftest.$ac_objext` in
  12019. *64-bit*)
  12020. libsuff=64
  12021. ;;
  12022. esac
  12023. fi
  12024. rm -rf conftest*
  12025. ;;
  12026. esac
  12027. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
  12028. # Append ld.so.conf contents to the search path
  12029. if test -f /etc/ld.so.conf; then
  12030. 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' ' '`
  12031. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  12032. fi
  12033. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12034. # powerpc, because MkLinux only supported shared libraries with the
  12035. # GNU dynamic linker. Since this was broken with cross compilers,
  12036. # most powerpc-linux boxes support dynamic linking these days and
  12037. # people can always --disable-shared, the test was removed, and we
  12038. # assume the GNU/Linux dynamic linker is in use.
  12039. dynamic_linker='GNU/Linux ld.so'
  12040. ;;
  12041. netbsd*)
  12042. version_type=sunos
  12043. need_lib_prefix=no
  12044. need_version=no
  12045. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12046. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12047. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12048. dynamic_linker='NetBSD (a.out) ld.so'
  12049. else
  12050. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12051. soname_spec='${libname}${release}${shared_ext}$major'
  12052. dynamic_linker='NetBSD ld.elf_so'
  12053. fi
  12054. shlibpath_var=LD_LIBRARY_PATH
  12055. shlibpath_overrides_runpath=yes
  12056. hardcode_into_libs=yes
  12057. ;;
  12058. newsos6)
  12059. version_type=linux
  12060. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12061. shlibpath_var=LD_LIBRARY_PATH
  12062. shlibpath_overrides_runpath=yes
  12063. ;;
  12064. *nto* | *qnx*)
  12065. version_type=qnx
  12066. need_lib_prefix=no
  12067. need_version=no
  12068. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12069. soname_spec='${libname}${release}${shared_ext}$major'
  12070. shlibpath_var=LD_LIBRARY_PATH
  12071. shlibpath_overrides_runpath=no
  12072. hardcode_into_libs=yes
  12073. dynamic_linker='ldqnx.so'
  12074. ;;
  12075. openbsd*)
  12076. version_type=sunos
  12077. sys_lib_dlsearch_path_spec="/usr/lib"
  12078. need_lib_prefix=no
  12079. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12080. case $host_os in
  12081. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12082. *) need_version=no ;;
  12083. esac
  12084. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12085. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12086. shlibpath_var=LD_LIBRARY_PATH
  12087. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12088. case $host_os in
  12089. openbsd2.[89] | openbsd2.[89].*)
  12090. shlibpath_overrides_runpath=no
  12091. ;;
  12092. *)
  12093. shlibpath_overrides_runpath=yes
  12094. ;;
  12095. esac
  12096. else
  12097. shlibpath_overrides_runpath=yes
  12098. fi
  12099. ;;
  12100. os2*)
  12101. libname_spec='$name'
  12102. shrext_cmds=".dll"
  12103. need_lib_prefix=no
  12104. library_names_spec='$libname${shared_ext} $libname.a'
  12105. dynamic_linker='OS/2 ld.exe'
  12106. shlibpath_var=LIBPATH
  12107. ;;
  12108. osf3* | osf4* | osf5*)
  12109. version_type=osf
  12110. need_lib_prefix=no
  12111. need_version=no
  12112. soname_spec='${libname}${release}${shared_ext}$major'
  12113. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12114. shlibpath_var=LD_LIBRARY_PATH
  12115. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12116. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12117. ;;
  12118. rdos*)
  12119. dynamic_linker=no
  12120. ;;
  12121. solaris*)
  12122. version_type=linux
  12123. need_lib_prefix=no
  12124. need_version=no
  12125. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12126. soname_spec='${libname}${release}${shared_ext}$major'
  12127. shlibpath_var=LD_LIBRARY_PATH
  12128. shlibpath_overrides_runpath=yes
  12129. hardcode_into_libs=yes
  12130. # ldd complains unless libraries are executable
  12131. postinstall_cmds='chmod +x $lib'
  12132. ;;
  12133. sunos4*)
  12134. version_type=sunos
  12135. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12136. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12137. shlibpath_var=LD_LIBRARY_PATH
  12138. shlibpath_overrides_runpath=yes
  12139. if test "$with_gnu_ld" = yes; then
  12140. need_lib_prefix=no
  12141. fi
  12142. need_version=yes
  12143. ;;
  12144. sysv4 | sysv4.3*)
  12145. version_type=linux
  12146. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12147. soname_spec='${libname}${release}${shared_ext}$major'
  12148. shlibpath_var=LD_LIBRARY_PATH
  12149. case $host_vendor in
  12150. sni)
  12151. shlibpath_overrides_runpath=no
  12152. need_lib_prefix=no
  12153. runpath_var=LD_RUN_PATH
  12154. ;;
  12155. siemens)
  12156. need_lib_prefix=no
  12157. ;;
  12158. motorola)
  12159. need_lib_prefix=no
  12160. need_version=no
  12161. shlibpath_overrides_runpath=no
  12162. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12163. ;;
  12164. esac
  12165. ;;
  12166. sysv4*MP*)
  12167. if test -d /usr/nec ;then
  12168. version_type=linux
  12169. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12170. soname_spec='$libname${shared_ext}.$major'
  12171. shlibpath_var=LD_LIBRARY_PATH
  12172. fi
  12173. ;;
  12174. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12175. version_type=freebsd-elf
  12176. need_lib_prefix=no
  12177. need_version=no
  12178. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12179. soname_spec='${libname}${release}${shared_ext}$major'
  12180. shlibpath_var=LD_LIBRARY_PATH
  12181. shlibpath_overrides_runpath=yes
  12182. hardcode_into_libs=yes
  12183. if test "$with_gnu_ld" = yes; then
  12184. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12185. else
  12186. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12187. case $host_os in
  12188. sco3.2v5*)
  12189. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12190. ;;
  12191. esac
  12192. fi
  12193. sys_lib_dlsearch_path_spec='/usr/lib'
  12194. ;;
  12195. tpf*)
  12196. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12197. version_type=linux
  12198. need_lib_prefix=no
  12199. need_version=no
  12200. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12201. shlibpath_var=LD_LIBRARY_PATH
  12202. shlibpath_overrides_runpath=no
  12203. hardcode_into_libs=yes
  12204. ;;
  12205. uts4*)
  12206. version_type=linux
  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=LD_LIBRARY_PATH
  12210. ;;
  12211. *)
  12212. dynamic_linker=no
  12213. ;;
  12214. esac
  12215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12216. $as_echo "$dynamic_linker" >&6; }
  12217. test "$dynamic_linker" = no && can_build_shared=no
  12218. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12219. if test "$GCC" = yes; then
  12220. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12221. fi
  12222. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12223. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12224. fi
  12225. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12226. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12227. fi
  12228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12229. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12230. hardcode_action_CXX=
  12231. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12232. test -n "$runpath_var_CXX" ||
  12233. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12234. # We can hardcode non-existent directories.
  12235. if test "$hardcode_direct_CXX" != no &&
  12236. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12237. # have to relink, otherwise we might link with an installed library
  12238. # when we should be linking with a yet-to-be-installed one
  12239. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12240. test "$hardcode_minus_L_CXX" != no; then
  12241. # Linking always hardcodes the temporary library directory.
  12242. hardcode_action_CXX=relink
  12243. else
  12244. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12245. hardcode_action_CXX=immediate
  12246. fi
  12247. else
  12248. # We cannot hardcode anything, or else we can only hardcode existing
  12249. # directories.
  12250. hardcode_action_CXX=unsupported
  12251. fi
  12252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12253. $as_echo "$hardcode_action_CXX" >&6; }
  12254. if test "$hardcode_action_CXX" = relink ||
  12255. test "$inherit_rpath_CXX" = yes; then
  12256. # Fast installation is not supported
  12257. enable_fast_install=no
  12258. elif test "$shlibpath_overrides_runpath" = yes ||
  12259. test "$enable_shared" = no; then
  12260. # Fast installation is not necessary
  12261. enable_fast_install=needless
  12262. fi
  12263. fi # test -n "$compiler"
  12264. CC=$lt_save_CC
  12265. LDCXX=$LD
  12266. LD=$lt_save_LD
  12267. GCC=$lt_save_GCC
  12268. with_gnu_ld=$lt_save_with_gnu_ld
  12269. lt_cv_path_LDCXX=$lt_cv_path_LD
  12270. lt_cv_path_LD=$lt_save_path_LD
  12271. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12272. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12273. fi # test "$_lt_caught_CXX_error" != yes
  12274. ac_ext=cpp
  12275. ac_cpp='$CXXCPP $CPPFLAGS'
  12276. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12277. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12278. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12279. ac_config_commands="$ac_config_commands libtool"
  12280. # Only expand once:
  12281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler vendor" >&5
  12282. $as_echo_n "checking for C++ compiler vendor... " >&6; }
  12283. if test "${ax_cv_cxx_compiler_vendor+set}" = set; then :
  12284. $as_echo_n "(cached) " >&6
  12285. else
  12286. ax_cv_cxx_compiler_vendor=unknown
  12287. # note: don't check for gcc first since some other compilers define __GNUC__
  12288. for ventest in intel:__ICC,__ECC,__INTEL_COMPILER ibm:__xlc__,__xlC__,__IBMC__,__IBMCPP__ pathscale:__PATHCC__,__PATHSCALE__ clang:__clang__ gnu:__GNUC__ sun:__SUNPRO_C,__SUNPRO_CC hp:__HP_cc,__HP_aCC dec:__DECC,__DECCXX,__DECC_VER,__DECCXX_VER borland:__BORLANDC__,__TURBOC__ comeau:__COMO__ cray:_CRAYC kai:__KCC lcc:__LCC__ metrowerks:__MWERKS__ sgi:__sgi,sgi microsoft:_MSC_VER watcom:__WATCOMC__ portland:__PGI; do
  12289. vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")"
  12290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12291. /* end confdefs.h. */
  12292. int
  12293. main ()
  12294. {
  12295. #if !($vencpp)
  12296. thisisanerror;
  12297. #endif
  12298. ;
  12299. return 0;
  12300. }
  12301. _ACEOF
  12302. if ac_fn_cxx_try_compile "$LINENO"; then :
  12303. ax_cv_cxx_compiler_vendor=`echo $ventest | cut -d: -f1`; break
  12304. fi
  12305. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12306. done
  12307. fi
  12308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compiler_vendor" >&5
  12309. $as_echo "$ax_cv_cxx_compiler_vendor" >&6; }
  12310. # Use silent rules if supported.
  12311. # Check whether --enable-silent-rules was given.
  12312. if test "${enable_silent_rules+set}" = set; then :
  12313. enableval=$enable_silent_rules;
  12314. fi
  12315. case $enable_silent_rules in
  12316. yes) AM_DEFAULT_VERBOSITY=0;;
  12317. no) AM_DEFAULT_VERBOSITY=1;;
  12318. *) AM_DEFAULT_VERBOSITY=0;;
  12319. esac
  12320. AM_BACKSLASH='\'
  12321. # Check whether --enable-debug was given.
  12322. if test "${enable_debug+set}" = set; then :
  12323. enableval=$enable_debug; if test x$enableval = xyes ; then
  12324. enable_debug="yes"
  12325. else
  12326. enable_debug="no"
  12327. fi
  12328. else
  12329. enable_debug="yes"
  12330. fi
  12331. if test "x$GXX" = "xyes" -a "x$enable_debug" = "xyes" ; then
  12332. CXXFLAGS="$CXXFLAGS -O0 -ggdb"
  12333. fi
  12334. # For gcc and compatible compilers, enable compilation warnings, but
  12335. # selectively disable some because too many are generated.
  12336. if test "x$GXX" = "xyes" ; then
  12337. CXXFLAGS="$CXXFLAGS -Wall -Wno-switch -Wno-sign-compare -Wcast-align -Wpointer-arith -Wno-unknown-pragmas"
  12338. fi
  12339. # extra clang parameters
  12340. if test "x${ax_cv_cxx_compiler_vendor}" = "xclang" ; then
  12341. CXXFLAGS="$CXXFLAGS -Wno-address-of-temporary -Wno-unused-value -Wno-cast-align"
  12342. fi
  12343. # extra Intel icc parameters
  12344. if test "x${ax_cv_cxx_compiler_vendor}" = "xintel" ; then
  12345. CXXFLAGS="$CXXFLAGS -diag-disable 383,981,1418,869,1563,2259,1782,444,271,1,10156,1419"
  12346. fi
  12347. # Check for Boost libraries
  12348. # Check whether --with-boost was given.
  12349. if test "${with_boost+set}" = set; then :
  12350. withval=$with_boost;
  12351. if test "$withval" = "no"; then
  12352. want_boost="no"
  12353. elif test "$withval" = "yes"; then
  12354. want_boost="yes"
  12355. ac_boost_path=""
  12356. else
  12357. want_boost="yes"
  12358. ac_boost_path="$withval"
  12359. fi
  12360. else
  12361. want_boost="yes"
  12362. fi
  12363. # Check whether --with-boost-libdir was given.
  12364. if test "${with_boost_libdir+set}" = set; then :
  12365. withval=$with_boost_libdir;
  12366. if test -d "$withval"
  12367. then
  12368. ac_boost_lib_path="$withval"
  12369. else
  12370. as_fn_error "--with-boost-libdir expected directory name" "$LINENO" 5
  12371. fi
  12372. else
  12373. ac_boost_lib_path=""
  12374. fi
  12375. if test "x$want_boost" = "xyes"; then
  12376. boost_lib_version_req=1.36
  12377. boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
  12378. boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
  12379. boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
  12380. boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
  12381. if test "x$boost_lib_version_req_sub_minor" = "x" ; then
  12382. boost_lib_version_req_sub_minor="0"
  12383. fi
  12384. WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
  12385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5
  12386. $as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
  12387. succeeded=no
  12388. libsubdirs="lib"
  12389. ax_arch=`uname -m`
  12390. if test $ax_arch = x86_64 -o $ax_arch = ppc64 -o $ax_arch = s390x -o $ax_arch = sparc64; then
  12391. libsubdirs="lib64 lib lib64"
  12392. fi
  12393. if test "$ac_boost_path" != ""; then
  12394. BOOST_CPPFLAGS="-I$ac_boost_path/include"
  12395. for ac_boost_path_tmp in $libsubdirs; do
  12396. if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then
  12397. BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp"
  12398. break
  12399. fi
  12400. done
  12401. elif test "$cross_compiling" != yes; then
  12402. for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
  12403. if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
  12404. for libsubdir in $libsubdirs ; do
  12405. if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
  12406. done
  12407. BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir"
  12408. BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
  12409. break;
  12410. fi
  12411. done
  12412. fi
  12413. if test "$ac_boost_lib_path" != ""; then
  12414. BOOST_LDFLAGS="-L$ac_boost_lib_path"
  12415. fi
  12416. CPPFLAGS_SAVED="$CPPFLAGS"
  12417. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  12418. export CPPFLAGS
  12419. LDFLAGS_SAVED="$LDFLAGS"
  12420. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  12421. export LDFLAGS
  12422. ac_ext=cpp
  12423. ac_cpp='$CXXCPP $CPPFLAGS'
  12424. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12425. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12426. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12428. /* end confdefs.h. */
  12429. #include <boost/version.hpp>
  12430. int
  12431. main ()
  12432. {
  12433. #if BOOST_VERSION >= $WANT_BOOST_VERSION
  12434. // Everything is okay
  12435. #else
  12436. # error Boost version is too old
  12437. #endif
  12438. ;
  12439. return 0;
  12440. }
  12441. _ACEOF
  12442. if ac_fn_cxx_try_compile "$LINENO"; then :
  12443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12444. $as_echo "yes" >&6; }
  12445. succeeded=yes
  12446. found_system=yes
  12447. fi
  12448. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12449. ac_ext=cpp
  12450. ac_cpp='$CXXCPP $CPPFLAGS'
  12451. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12452. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12453. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12454. if test "x$succeeded" != "xyes"; then
  12455. _version=0
  12456. if test "$ac_boost_path" != ""; then
  12457. if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
  12458. for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
  12459. _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
  12460. V_CHECK=`expr $_version_tmp \> $_version`
  12461. if test "$V_CHECK" = "1" ; then
  12462. _version=$_version_tmp
  12463. fi
  12464. VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
  12465. BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
  12466. done
  12467. fi
  12468. else
  12469. if test "$cross_compiling" != yes; then
  12470. for ac_boost_path in /usr /usr/local /opt /opt/local ; do
  12471. if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
  12472. for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
  12473. _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
  12474. V_CHECK=`expr $_version_tmp \> $_version`
  12475. if test "$V_CHECK" = "1" ; then
  12476. _version=$_version_tmp
  12477. best_path=$ac_boost_path
  12478. fi
  12479. done
  12480. fi
  12481. done
  12482. VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
  12483. BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
  12484. if test "$ac_boost_lib_path" = ""; then
  12485. for libsubdir in $libsubdirs ; do
  12486. if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
  12487. done
  12488. BOOST_LDFLAGS="-L$best_path/$libsubdir"
  12489. fi
  12490. fi
  12491. if test "x$BOOST_ROOT" != "x"; then
  12492. for libsubdir in $libsubdirs ; do
  12493. if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
  12494. done
  12495. if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
  12496. version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
  12497. stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
  12498. stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
  12499. V_CHECK=`expr $stage_version_shorten \>\= $_version`
  12500. if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
  12501. { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
  12502. $as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
  12503. BOOST_CPPFLAGS="-I$BOOST_ROOT"
  12504. BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
  12505. fi
  12506. fi
  12507. fi
  12508. fi
  12509. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  12510. export CPPFLAGS
  12511. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  12512. export LDFLAGS
  12513. ac_ext=cpp
  12514. ac_cpp='$CXXCPP $CPPFLAGS'
  12515. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12516. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12517. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12519. /* end confdefs.h. */
  12520. #include <boost/version.hpp>
  12521. int
  12522. main ()
  12523. {
  12524. #if BOOST_VERSION >= $WANT_BOOST_VERSION
  12525. // Everything is okay
  12526. #else
  12527. # error Boost version is too old
  12528. #endif
  12529. ;
  12530. return 0;
  12531. }
  12532. _ACEOF
  12533. if ac_fn_cxx_try_compile "$LINENO"; then :
  12534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12535. $as_echo "yes" >&6; }
  12536. succeeded=yes
  12537. found_system=yes
  12538. fi
  12539. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12540. ac_ext=cpp
  12541. ac_cpp='$CXXCPP $CPPFLAGS'
  12542. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12543. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12544. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12545. fi
  12546. if test "$succeeded" != "yes" ; then
  12547. if test "$_version" = "0" ; then
  12548. { $as_echo "$as_me:${as_lineno-$LINENO}: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5
  12549. $as_echo "$as_me: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&6;}
  12550. else
  12551. { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
  12552. $as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
  12553. fi
  12554. # execute ACTION-IF-NOT-FOUND (if present):
  12555. :
  12556. else
  12557. $as_echo "#define HAVE_BOOST /**/" >>confdefs.h
  12558. # execute ACTION-IF-FOUND (if present):
  12559. :
  12560. fi
  12561. CPPFLAGS="$CPPFLAGS_SAVED"
  12562. LDFLAGS="$LDFLAGS_SAVED"
  12563. fi
  12564. # Check whether --with-boost-system was given.
  12565. if test "${with_boost_system+set}" = set; then :
  12566. withval=$with_boost_system;
  12567. if test "$withval" = "no"; then
  12568. want_boost="no"
  12569. elif test "$withval" = "yes"; then
  12570. want_boost="yes"
  12571. ax_boost_user_system_lib=""
  12572. else
  12573. want_boost="yes"
  12574. ax_boost_user_system_lib="$withval"
  12575. fi
  12576. else
  12577. want_boost="yes"
  12578. fi
  12579. if test "x$want_boost" = "xyes"; then
  12580. CPPFLAGS_SAVED="$CPPFLAGS"
  12581. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  12582. export CPPFLAGS
  12583. LDFLAGS_SAVED="$LDFLAGS"
  12584. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  12585. export LDFLAGS
  12586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::System library is available" >&5
  12587. $as_echo_n "checking whether the Boost::System library is available... " >&6; }
  12588. if test "${ax_cv_boost_system+set}" = set; then :
  12589. $as_echo_n "(cached) " >&6
  12590. else
  12591. ac_ext=cpp
  12592. ac_cpp='$CXXCPP $CPPFLAGS'
  12593. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12594. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12595. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12596. CXXFLAGS_SAVE=$CXXFLAGS
  12597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12598. /* end confdefs.h. */
  12599. #include <boost/system/error_code.hpp>
  12600. int
  12601. main ()
  12602. {
  12603. boost::system::system_category
  12604. ;
  12605. return 0;
  12606. }
  12607. _ACEOF
  12608. if ac_fn_cxx_try_compile "$LINENO"; then :
  12609. ax_cv_boost_system=yes
  12610. else
  12611. ax_cv_boost_system=no
  12612. fi
  12613. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12614. CXXFLAGS=$CXXFLAGS_SAVE
  12615. ac_ext=cpp
  12616. ac_cpp='$CXXCPP $CPPFLAGS'
  12617. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12618. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12619. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12620. fi
  12621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_system" >&5
  12622. $as_echo "$ax_cv_boost_system" >&6; }
  12623. if test "x$ax_cv_boost_system" = "xyes"; then
  12624. $as_echo "#define HAVE_BOOST_SYSTEM /**/" >>confdefs.h
  12625. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  12626. LDFLAGS_SAVE=$LDFLAGS
  12627. if test "x$ax_boost_user_system_lib" = "x"; then
  12628. for libextension in `ls $BOOSTLIBDIR/libboost_system*.so* $BOOSTLIBDIR/libboost_system*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.so.*$;\1;' -e 's;^lib\(boost_system.*\)\.a*$;\1;'` ; do
  12629. ax_lib=${libextension}
  12630. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  12631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  12632. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  12633. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  12634. $as_echo_n "(cached) " >&6
  12635. else
  12636. ac_check_lib_save_LIBS=$LIBS
  12637. LIBS="-l$ax_lib $LIBS"
  12638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12639. /* end confdefs.h. */
  12640. /* Override any GCC internal prototype to avoid an error.
  12641. Use char because int might match the return type of a GCC
  12642. builtin and then its argument prototype would still apply. */
  12643. #ifdef __cplusplus
  12644. extern "C"
  12645. #endif
  12646. char exit ();
  12647. int
  12648. main ()
  12649. {
  12650. return exit ();
  12651. ;
  12652. return 0;
  12653. }
  12654. _ACEOF
  12655. if ac_fn_cxx_try_link "$LINENO"; then :
  12656. eval "$as_ac_Lib=yes"
  12657. else
  12658. eval "$as_ac_Lib=no"
  12659. fi
  12660. rm -f core conftest.err conftest.$ac_objext \
  12661. conftest$ac_exeext conftest.$ac_ext
  12662. LIBS=$ac_check_lib_save_LIBS
  12663. fi
  12664. eval ac_res=\$$as_ac_Lib
  12665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12666. $as_echo "$ac_res" >&6; }
  12667. eval as_val=\$$as_ac_Lib
  12668. if test "x$as_val" = x""yes; then :
  12669. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  12670. else
  12671. link_system="no"
  12672. fi
  12673. done
  12674. if test "x$link_system" != "xyes"; then
  12675. for libextension in `ls $BOOSTLIBDIR/boost_system*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_system.*\)\.dll.*$;\1;' -e 's;^\(boost_system.*\)\.a*$;\1;'` ; do
  12676. ax_lib=${libextension}
  12677. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  12678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  12679. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  12680. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  12681. $as_echo_n "(cached) " >&6
  12682. else
  12683. ac_check_lib_save_LIBS=$LIBS
  12684. LIBS="-l$ax_lib $LIBS"
  12685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12686. /* end confdefs.h. */
  12687. /* Override any GCC internal prototype to avoid an error.
  12688. Use char because int might match the return type of a GCC
  12689. builtin and then its argument prototype would still apply. */
  12690. #ifdef __cplusplus
  12691. extern "C"
  12692. #endif
  12693. char exit ();
  12694. int
  12695. main ()
  12696. {
  12697. return exit ();
  12698. ;
  12699. return 0;
  12700. }
  12701. _ACEOF
  12702. if ac_fn_cxx_try_link "$LINENO"; then :
  12703. eval "$as_ac_Lib=yes"
  12704. else
  12705. eval "$as_ac_Lib=no"
  12706. fi
  12707. rm -f core conftest.err conftest.$ac_objext \
  12708. conftest$ac_exeext conftest.$ac_ext
  12709. LIBS=$ac_check_lib_save_LIBS
  12710. fi
  12711. eval ac_res=\$$as_ac_Lib
  12712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12713. $as_echo "$ac_res" >&6; }
  12714. eval as_val=\$$as_ac_Lib
  12715. if test "x$as_val" = x""yes; then :
  12716. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  12717. else
  12718. link_system="no"
  12719. fi
  12720. done
  12721. fi
  12722. else
  12723. for ax_lib in $ax_boost_user_system_lib boost_system-$ax_boost_user_system_lib; do
  12724. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  12725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  12726. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  12727. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  12728. $as_echo_n "(cached) " >&6
  12729. else
  12730. ac_check_lib_save_LIBS=$LIBS
  12731. LIBS="-l$ax_lib $LIBS"
  12732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12733. /* end confdefs.h. */
  12734. /* Override any GCC internal prototype to avoid an error.
  12735. Use char because int might match the return type of a GCC
  12736. builtin and then its argument prototype would still apply. */
  12737. #ifdef __cplusplus
  12738. extern "C"
  12739. #endif
  12740. char exit ();
  12741. int
  12742. main ()
  12743. {
  12744. return exit ();
  12745. ;
  12746. return 0;
  12747. }
  12748. _ACEOF
  12749. if ac_fn_cxx_try_link "$LINENO"; then :
  12750. eval "$as_ac_Lib=yes"
  12751. else
  12752. eval "$as_ac_Lib=no"
  12753. fi
  12754. rm -f core conftest.err conftest.$ac_objext \
  12755. conftest$ac_exeext conftest.$ac_ext
  12756. LIBS=$ac_check_lib_save_LIBS
  12757. fi
  12758. eval ac_res=\$$as_ac_Lib
  12759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12760. $as_echo "$ac_res" >&6; }
  12761. eval as_val=\$$as_ac_Lib
  12762. if test "x$as_val" = x""yes; then :
  12763. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  12764. else
  12765. link_system="no"
  12766. fi
  12767. done
  12768. fi
  12769. if test "x$ax_lib" = "x"; then
  12770. as_fn_error "Could not find a version of the library!" "$LINENO" 5
  12771. fi
  12772. if test "x$link_system" = "xno"; then
  12773. as_fn_error "Could not link against $ax_lib !" "$LINENO" 5
  12774. fi
  12775. fi
  12776. CPPFLAGS="$CPPFLAGS_SAVED"
  12777. LDFLAGS="$LDFLAGS_SAVED"
  12778. fi
  12779. # Check whether --with-boost-filesystem was given.
  12780. if test "${with_boost_filesystem+set}" = set; then :
  12781. withval=$with_boost_filesystem;
  12782. if test "$withval" = "no"; then
  12783. want_boost="no"
  12784. elif test "$withval" = "yes"; then
  12785. want_boost="yes"
  12786. ax_boost_user_filesystem_lib=""
  12787. else
  12788. want_boost="yes"
  12789. ax_boost_user_filesystem_lib="$withval"
  12790. fi
  12791. else
  12792. want_boost="yes"
  12793. fi
  12794. if test "x$want_boost" = "xyes"; then
  12795. CPPFLAGS_SAVED="$CPPFLAGS"
  12796. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  12797. export CPPFLAGS
  12798. LDFLAGS_SAVED="$LDFLAGS"
  12799. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  12800. export LDFLAGS
  12801. LIBS_SAVED=$LIBS
  12802. LIBS="$LIBS $BOOST_SYSTEM_LIB"
  12803. export LIBS
  12804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Filesystem library is available" >&5
  12805. $as_echo_n "checking whether the Boost::Filesystem library is available... " >&6; }
  12806. if test "${ax_cv_boost_filesystem+set}" = set; then :
  12807. $as_echo_n "(cached) " >&6
  12808. else
  12809. ac_ext=cpp
  12810. ac_cpp='$CXXCPP $CPPFLAGS'
  12811. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12812. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12813. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12815. /* end confdefs.h. */
  12816. #include <boost/filesystem/path.hpp>
  12817. int
  12818. main ()
  12819. {
  12820. using namespace boost::filesystem;
  12821. path my_path( "foo/bar/data.txt" );
  12822. return 0;
  12823. ;
  12824. return 0;
  12825. }
  12826. _ACEOF
  12827. if ac_fn_cxx_try_compile "$LINENO"; then :
  12828. ax_cv_boost_filesystem=yes
  12829. else
  12830. ax_cv_boost_filesystem=no
  12831. fi
  12832. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12833. ac_ext=cpp
  12834. ac_cpp='$CXXCPP $CPPFLAGS'
  12835. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12836. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12837. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12838. fi
  12839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_filesystem" >&5
  12840. $as_echo "$ax_cv_boost_filesystem" >&6; }
  12841. if test "x$ax_cv_boost_filesystem" = "xyes"; then
  12842. $as_echo "#define HAVE_BOOST_FILESYSTEM /**/" >>confdefs.h
  12843. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  12844. if test "x$ax_boost_user_filesystem_lib" = "x"; then
  12845. for libextension in `ls $BOOSTLIBDIR/libboost_filesystem*.so* $BOOSTLIBDIR/libboost_filesystem*.dylib* $BOOSTLIBDIR/libboost_filesystem*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_filesystem.*\)\.so.*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.a*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.dylib$;\1;'` ; do
  12846. ax_lib=${libextension}
  12847. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  12848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  12849. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  12850. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  12851. $as_echo_n "(cached) " >&6
  12852. else
  12853. ac_check_lib_save_LIBS=$LIBS
  12854. LIBS="-l$ax_lib $LIBS"
  12855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12856. /* end confdefs.h. */
  12857. /* Override any GCC internal prototype to avoid an error.
  12858. Use char because int might match the return type of a GCC
  12859. builtin and then its argument prototype would still apply. */
  12860. #ifdef __cplusplus
  12861. extern "C"
  12862. #endif
  12863. char exit ();
  12864. int
  12865. main ()
  12866. {
  12867. return exit ();
  12868. ;
  12869. return 0;
  12870. }
  12871. _ACEOF
  12872. if ac_fn_cxx_try_link "$LINENO"; then :
  12873. eval "$as_ac_Lib=yes"
  12874. else
  12875. eval "$as_ac_Lib=no"
  12876. fi
  12877. rm -f core conftest.err conftest.$ac_objext \
  12878. conftest$ac_exeext conftest.$ac_ext
  12879. LIBS=$ac_check_lib_save_LIBS
  12880. fi
  12881. eval ac_res=\$$as_ac_Lib
  12882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12883. $as_echo "$ac_res" >&6; }
  12884. eval as_val=\$$as_ac_Lib
  12885. if test "x$as_val" = x""yes; then :
  12886. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  12887. else
  12888. link_filesystem="no"
  12889. fi
  12890. done
  12891. if test "x$link_program_options" != "xyes"; then
  12892. for libextension in `ls $BOOSTLIBDIR/boost_filesystem*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_filesystem.*\)\.dll.*$;\1;' -e 's;^\(boost_filesystem.*\)\.a*$;\1;'` ; do
  12893. ax_lib=${libextension}
  12894. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  12895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  12896. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  12897. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  12898. $as_echo_n "(cached) " >&6
  12899. else
  12900. ac_check_lib_save_LIBS=$LIBS
  12901. LIBS="-l$ax_lib $LIBS"
  12902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12903. /* end confdefs.h. */
  12904. /* Override any GCC internal prototype to avoid an error.
  12905. Use char because int might match the return type of a GCC
  12906. builtin and then its argument prototype would still apply. */
  12907. #ifdef __cplusplus
  12908. extern "C"
  12909. #endif
  12910. char exit ();
  12911. int
  12912. main ()
  12913. {
  12914. return exit ();
  12915. ;
  12916. return 0;
  12917. }
  12918. _ACEOF
  12919. if ac_fn_cxx_try_link "$LINENO"; then :
  12920. eval "$as_ac_Lib=yes"
  12921. else
  12922. eval "$as_ac_Lib=no"
  12923. fi
  12924. rm -f core conftest.err conftest.$ac_objext \
  12925. conftest$ac_exeext conftest.$ac_ext
  12926. LIBS=$ac_check_lib_save_LIBS
  12927. fi
  12928. eval ac_res=\$$as_ac_Lib
  12929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12930. $as_echo "$ac_res" >&6; }
  12931. eval as_val=\$$as_ac_Lib
  12932. if test "x$as_val" = x""yes; then :
  12933. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  12934. else
  12935. link_filesystem="no"
  12936. fi
  12937. done
  12938. fi
  12939. else
  12940. for ax_lib in $ax_boost_user_filesystem_lib boost_filesystem-$ax_boost_user_filesystem_lib; do
  12941. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  12942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  12943. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  12944. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  12945. $as_echo_n "(cached) " >&6
  12946. else
  12947. ac_check_lib_save_LIBS=$LIBS
  12948. LIBS="-l$ax_lib $LIBS"
  12949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12950. /* end confdefs.h. */
  12951. /* Override any GCC internal prototype to avoid an error.
  12952. Use char because int might match the return type of a GCC
  12953. builtin and then its argument prototype would still apply. */
  12954. #ifdef __cplusplus
  12955. extern "C"
  12956. #endif
  12957. char exit ();
  12958. int
  12959. main ()
  12960. {
  12961. return exit ();
  12962. ;
  12963. return 0;
  12964. }
  12965. _ACEOF
  12966. if ac_fn_cxx_try_link "$LINENO"; then :
  12967. eval "$as_ac_Lib=yes"
  12968. else
  12969. eval "$as_ac_Lib=no"
  12970. fi
  12971. rm -f core conftest.err conftest.$ac_objext \
  12972. conftest$ac_exeext conftest.$ac_ext
  12973. LIBS=$ac_check_lib_save_LIBS
  12974. fi
  12975. eval ac_res=\$$as_ac_Lib
  12976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12977. $as_echo "$ac_res" >&6; }
  12978. eval as_val=\$$as_ac_Lib
  12979. if test "x$as_val" = x""yes; then :
  12980. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  12981. else
  12982. link_filesystem="no"
  12983. fi
  12984. done
  12985. fi
  12986. if test "x$ax_lib" = "x"; then
  12987. as_fn_error "Could not find a version of the library!" "$LINENO" 5
  12988. fi
  12989. if test "x$link_filesystem" != "xyes"; then
  12990. as_fn_error "Could not link against $ax_lib !" "$LINENO" 5
  12991. fi
  12992. fi
  12993. CPPFLAGS="$CPPFLAGS_SAVED"
  12994. LDFLAGS="$LDFLAGS_SAVED"
  12995. LIBS="$LIBS_SAVED"
  12996. fi
  12997. # Check whether --with-boost-thread was given.
  12998. if test "${with_boost_thread+set}" = set; then :
  12999. withval=$with_boost_thread;
  13000. if test "$withval" = "no"; then
  13001. want_boost="no"
  13002. elif test "$withval" = "yes"; then
  13003. want_boost="yes"
  13004. ax_boost_user_thread_lib=""
  13005. else
  13006. want_boost="yes"
  13007. ax_boost_user_thread_lib="$withval"
  13008. fi
  13009. else
  13010. want_boost="yes"
  13011. fi
  13012. if test "x$want_boost" = "xyes"; then
  13013. CPPFLAGS_SAVED="$CPPFLAGS"
  13014. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13015. export CPPFLAGS
  13016. LDFLAGS_SAVED="$LDFLAGS"
  13017. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13018. export LDFLAGS
  13019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Thread library is available" >&5
  13020. $as_echo_n "checking whether the Boost::Thread library is available... " >&6; }
  13021. if test "${ax_cv_boost_thread+set}" = set; then :
  13022. $as_echo_n "(cached) " >&6
  13023. else
  13024. ac_ext=cpp
  13025. ac_cpp='$CXXCPP $CPPFLAGS'
  13026. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13027. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13028. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13029. CXXFLAGS_SAVE=$CXXFLAGS
  13030. if test "x$build_os" = "xsolaris" ; then
  13031. CXXFLAGS="-pthreads $CXXFLAGS"
  13032. elif test "x$build_os" = "xming32" ; then
  13033. CXXFLAGS="-mthreads $CXXFLAGS"
  13034. else
  13035. CXXFLAGS="-pthread $CXXFLAGS"
  13036. fi
  13037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13038. /* end confdefs.h. */
  13039. #include <boost/thread/thread.hpp>
  13040. int
  13041. main ()
  13042. {
  13043. boost::thread_group thrds;
  13044. return 0;
  13045. ;
  13046. return 0;
  13047. }
  13048. _ACEOF
  13049. if ac_fn_cxx_try_compile "$LINENO"; then :
  13050. ax_cv_boost_thread=yes
  13051. else
  13052. ax_cv_boost_thread=no
  13053. fi
  13054. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13055. CXXFLAGS=$CXXFLAGS_SAVE
  13056. ac_ext=cpp
  13057. ac_cpp='$CXXCPP $CPPFLAGS'
  13058. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13059. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13060. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13061. fi
  13062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_thread" >&5
  13063. $as_echo "$ax_cv_boost_thread" >&6; }
  13064. if test "x$ax_cv_boost_thread" = "xyes"; then
  13065. if test "x$build_os" = "xsolaris" ; then
  13066. BOOST_CPPFLAGS="-pthreads $BOOST_CPPFLAGS"
  13067. elif test "x$build_os" = "xming32" ; then
  13068. BOOST_CPPFLAGS="-mthreads $BOOST_CPPFLAGS"
  13069. else
  13070. BOOST_CPPFLAGS="-pthread $BOOST_CPPFLAGS"
  13071. fi
  13072. $as_echo "#define HAVE_BOOST_THREAD /**/" >>confdefs.h
  13073. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13074. LDFLAGS_SAVE=$LDFLAGS
  13075. case "x$build_os" in
  13076. *bsd* )
  13077. LDFLAGS="-pthread $LDFLAGS"
  13078. break;
  13079. ;;
  13080. esac
  13081. if test "x$ax_boost_user_thread_lib" = "x"; then
  13082. for libextension in `ls $BOOSTLIBDIR/libboost_thread*.so* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_thread.*\)\.so.*$;\1;'` `ls $BOOSTLIBDIR/libboost_thread*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_thread.*\)\.a*$;\1;'`; do
  13083. ax_lib=${libextension}
  13084. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13086. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13087. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  13088. $as_echo_n "(cached) " >&6
  13089. else
  13090. ac_check_lib_save_LIBS=$LIBS
  13091. LIBS="-l$ax_lib $LIBS"
  13092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13093. /* end confdefs.h. */
  13094. /* Override any GCC internal prototype to avoid an error.
  13095. Use char because int might match the return type of a GCC
  13096. builtin and then its argument prototype would still apply. */
  13097. #ifdef __cplusplus
  13098. extern "C"
  13099. #endif
  13100. char exit ();
  13101. int
  13102. main ()
  13103. {
  13104. return exit ();
  13105. ;
  13106. return 0;
  13107. }
  13108. _ACEOF
  13109. if ac_fn_cxx_try_link "$LINENO"; then :
  13110. eval "$as_ac_Lib=yes"
  13111. else
  13112. eval "$as_ac_Lib=no"
  13113. fi
  13114. rm -f core conftest.err conftest.$ac_objext \
  13115. conftest$ac_exeext conftest.$ac_ext
  13116. LIBS=$ac_check_lib_save_LIBS
  13117. fi
  13118. eval ac_res=\$$as_ac_Lib
  13119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13120. $as_echo "$ac_res" >&6; }
  13121. eval as_val=\$$as_ac_Lib
  13122. if test "x$as_val" = x""yes; then :
  13123. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  13124. else
  13125. link_thread="no"
  13126. fi
  13127. done
  13128. if test "x$link_thread" != "xyes"; then
  13129. for libextension in `ls $BOOSTLIBDIR/boost_thread*.dll* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_thread.*\)\.dll.*$;\1;'` `ls $BOOSTLIBDIR/boost_thread*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_thread.*\)\.a*$;\1;'` ; do
  13130. ax_lib=${libextension}
  13131. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13133. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13134. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  13135. $as_echo_n "(cached) " >&6
  13136. else
  13137. ac_check_lib_save_LIBS=$LIBS
  13138. LIBS="-l$ax_lib $LIBS"
  13139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13140. /* end confdefs.h. */
  13141. /* Override any GCC internal prototype to avoid an error.
  13142. Use char because int might match the return type of a GCC
  13143. builtin and then its argument prototype would still apply. */
  13144. #ifdef __cplusplus
  13145. extern "C"
  13146. #endif
  13147. char exit ();
  13148. int
  13149. main ()
  13150. {
  13151. return exit ();
  13152. ;
  13153. return 0;
  13154. }
  13155. _ACEOF
  13156. if ac_fn_cxx_try_link "$LINENO"; then :
  13157. eval "$as_ac_Lib=yes"
  13158. else
  13159. eval "$as_ac_Lib=no"
  13160. fi
  13161. rm -f core conftest.err conftest.$ac_objext \
  13162. conftest$ac_exeext conftest.$ac_ext
  13163. LIBS=$ac_check_lib_save_LIBS
  13164. fi
  13165. eval ac_res=\$$as_ac_Lib
  13166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13167. $as_echo "$ac_res" >&6; }
  13168. eval as_val=\$$as_ac_Lib
  13169. if test "x$as_val" = x""yes; then :
  13170. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  13171. else
  13172. link_thread="no"
  13173. fi
  13174. done
  13175. fi
  13176. else
  13177. for ax_lib in $ax_boost_user_thread_lib boost_thread-$ax_boost_user_thread_lib; do
  13178. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13180. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13181. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  13182. $as_echo_n "(cached) " >&6
  13183. else
  13184. ac_check_lib_save_LIBS=$LIBS
  13185. LIBS="-l$ax_lib $LIBS"
  13186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13187. /* end confdefs.h. */
  13188. /* Override any GCC internal prototype to avoid an error.
  13189. Use char because int might match the return type of a GCC
  13190. builtin and then its argument prototype would still apply. */
  13191. #ifdef __cplusplus
  13192. extern "C"
  13193. #endif
  13194. char exit ();
  13195. int
  13196. main ()
  13197. {
  13198. return exit ();
  13199. ;
  13200. return 0;
  13201. }
  13202. _ACEOF
  13203. if ac_fn_cxx_try_link "$LINENO"; then :
  13204. eval "$as_ac_Lib=yes"
  13205. else
  13206. eval "$as_ac_Lib=no"
  13207. fi
  13208. rm -f core conftest.err conftest.$ac_objext \
  13209. conftest$ac_exeext conftest.$ac_ext
  13210. LIBS=$ac_check_lib_save_LIBS
  13211. fi
  13212. eval ac_res=\$$as_ac_Lib
  13213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13214. $as_echo "$ac_res" >&6; }
  13215. eval as_val=\$$as_ac_Lib
  13216. if test "x$as_val" = x""yes; then :
  13217. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  13218. else
  13219. link_thread="no"
  13220. fi
  13221. done
  13222. fi
  13223. if test "x$ax_lib" = "x"; then
  13224. as_fn_error "Could not find a version of the library!" "$LINENO" 5
  13225. fi
  13226. if test "x$link_thread" = "xno"; then
  13227. as_fn_error "Could not link against $ax_lib !" "$LINENO" 5
  13228. else
  13229. case "x$build_os" in
  13230. *bsd* )
  13231. BOOST_LDFLAGS="-pthread $BOOST_LDFLAGS"
  13232. break;
  13233. ;;
  13234. esac
  13235. fi
  13236. fi
  13237. CPPFLAGS="$CPPFLAGS_SAVED"
  13238. LDFLAGS="$LDFLAGS_SAVED"
  13239. fi
  13240. # Check whether --with-boost-iostreams was given.
  13241. if test "${with_boost_iostreams+set}" = set; then :
  13242. withval=$with_boost_iostreams;
  13243. if test "$withval" = "no"; then
  13244. want_boost="no"
  13245. elif test "$withval" = "yes"; then
  13246. want_boost="yes"
  13247. ax_boost_user_iostreams_lib=""
  13248. else
  13249. want_boost="yes"
  13250. ax_boost_user_iostreams_lib="$withval"
  13251. fi
  13252. else
  13253. want_boost="yes"
  13254. fi
  13255. if test "x$want_boost" = "xyes"; then
  13256. CPPFLAGS_SAVED="$CPPFLAGS"
  13257. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13258. export CPPFLAGS
  13259. LDFLAGS_SAVED="$LDFLAGS"
  13260. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13261. export LDFLAGS
  13262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::IOStreams library is available" >&5
  13263. $as_echo_n "checking whether the Boost::IOStreams library is available... " >&6; }
  13264. if test "${ax_cv_boost_iostreams+set}" = set; then :
  13265. $as_echo_n "(cached) " >&6
  13266. else
  13267. ac_ext=cpp
  13268. ac_cpp='$CXXCPP $CPPFLAGS'
  13269. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13270. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13271. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13273. /* end confdefs.h. */
  13274. #include <boost/iostreams/filtering_stream.hpp>
  13275. #include <boost/range/iterator_range.hpp>
  13276. int
  13277. main ()
  13278. {
  13279. std::string input = "Hello World!";
  13280. namespace io = boost::iostreams;
  13281. io::filtering_istream in(boost::make_iterator_range(input));
  13282. return 0;
  13283. ;
  13284. return 0;
  13285. }
  13286. _ACEOF
  13287. if ac_fn_cxx_try_compile "$LINENO"; then :
  13288. ax_cv_boost_iostreams=yes
  13289. else
  13290. ax_cv_boost_iostreams=no
  13291. fi
  13292. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13293. ac_ext=cpp
  13294. ac_cpp='$CXXCPP $CPPFLAGS'
  13295. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13296. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13297. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13298. fi
  13299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_iostreams" >&5
  13300. $as_echo "$ax_cv_boost_iostreams" >&6; }
  13301. if test "x$ax_cv_boost_iostreams" = "xyes"; then
  13302. $as_echo "#define HAVE_BOOST_IOSTREAMS /**/" >>confdefs.h
  13303. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13304. if test "x$ax_boost_user_iostreams_lib" = "x"; then
  13305. for libextension in `ls $BOOSTLIBDIR/libboost_iostreams*.so* $BOOSTLIBDIR/libboost_iostreams*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_iostreams.*\)\.so.*$;\1;' -e 's;^lib\(boost_iostreams.*\)\.a*$;\1;'` ; do
  13306. ax_lib=${libextension}
  13307. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13309. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13310. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  13311. $as_echo_n "(cached) " >&6
  13312. else
  13313. ac_check_lib_save_LIBS=$LIBS
  13314. LIBS="-l$ax_lib $LIBS"
  13315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13316. /* end confdefs.h. */
  13317. /* Override any GCC internal prototype to avoid an error.
  13318. Use char because int might match the return type of a GCC
  13319. builtin and then its argument prototype would still apply. */
  13320. #ifdef __cplusplus
  13321. extern "C"
  13322. #endif
  13323. char exit ();
  13324. int
  13325. main ()
  13326. {
  13327. return exit ();
  13328. ;
  13329. return 0;
  13330. }
  13331. _ACEOF
  13332. if ac_fn_cxx_try_link "$LINENO"; then :
  13333. eval "$as_ac_Lib=yes"
  13334. else
  13335. eval "$as_ac_Lib=no"
  13336. fi
  13337. rm -f core conftest.err conftest.$ac_objext \
  13338. conftest$ac_exeext conftest.$ac_ext
  13339. LIBS=$ac_check_lib_save_LIBS
  13340. fi
  13341. eval ac_res=\$$as_ac_Lib
  13342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13343. $as_echo "$ac_res" >&6; }
  13344. eval as_val=\$$as_ac_Lib
  13345. if test "x$as_val" = x""yes; then :
  13346. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  13347. else
  13348. link_iostreams="no"
  13349. fi
  13350. done
  13351. if test "x$link_iostreams" != "xyes"; then
  13352. for libextension in `ls $BOOSTLIBDIR/boost_iostreams*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_iostreams.*\)\.dll.*$;\1;' -e 's;^\(boost_iostreams.*\)\.a*$;\1;'` ; do
  13353. ax_lib=${libextension}
  13354. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13356. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13357. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  13358. $as_echo_n "(cached) " >&6
  13359. else
  13360. ac_check_lib_save_LIBS=$LIBS
  13361. LIBS="-l$ax_lib $LIBS"
  13362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13363. /* end confdefs.h. */
  13364. /* Override any GCC internal prototype to avoid an error.
  13365. Use char because int might match the return type of a GCC
  13366. builtin and then its argument prototype would still apply. */
  13367. #ifdef __cplusplus
  13368. extern "C"
  13369. #endif
  13370. char exit ();
  13371. int
  13372. main ()
  13373. {
  13374. return exit ();
  13375. ;
  13376. return 0;
  13377. }
  13378. _ACEOF
  13379. if ac_fn_cxx_try_link "$LINENO"; then :
  13380. eval "$as_ac_Lib=yes"
  13381. else
  13382. eval "$as_ac_Lib=no"
  13383. fi
  13384. rm -f core conftest.err conftest.$ac_objext \
  13385. conftest$ac_exeext conftest.$ac_ext
  13386. LIBS=$ac_check_lib_save_LIBS
  13387. fi
  13388. eval ac_res=\$$as_ac_Lib
  13389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13390. $as_echo "$ac_res" >&6; }
  13391. eval as_val=\$$as_ac_Lib
  13392. if test "x$as_val" = x""yes; then :
  13393. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  13394. else
  13395. link_iostreams="no"
  13396. fi
  13397. done
  13398. fi
  13399. else
  13400. for ax_lib in $ax_boost_user_iostreams_lib boost_iostreams-$ax_boost_user_iostreams_lib; do
  13401. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
  13402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
  13403. $as_echo_n "checking for main in -l$ax_lib... " >&6; }
  13404. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  13405. $as_echo_n "(cached) " >&6
  13406. else
  13407. ac_check_lib_save_LIBS=$LIBS
  13408. LIBS="-l$ax_lib $LIBS"
  13409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13410. /* end confdefs.h. */
  13411. int
  13412. main ()
  13413. {
  13414. return main ();
  13415. ;
  13416. return 0;
  13417. }
  13418. _ACEOF
  13419. if ac_fn_cxx_try_link "$LINENO"; then :
  13420. eval "$as_ac_Lib=yes"
  13421. else
  13422. eval "$as_ac_Lib=no"
  13423. fi
  13424. rm -f core conftest.err conftest.$ac_objext \
  13425. conftest$ac_exeext conftest.$ac_ext
  13426. LIBS=$ac_check_lib_save_LIBS
  13427. fi
  13428. eval ac_res=\$$as_ac_Lib
  13429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13430. $as_echo "$ac_res" >&6; }
  13431. eval as_val=\$$as_ac_Lib
  13432. if test "x$as_val" = x""yes; then :
  13433. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  13434. else
  13435. link_iostreams="no"
  13436. fi
  13437. done
  13438. fi
  13439. if test "x$ax_lib" = "x"; then
  13440. as_fn_error "Could not find a version of the library!" "$LINENO" 5
  13441. fi
  13442. if test "x$link_iostreams" != "xyes"; then
  13443. as_fn_error "Could not link against $ax_lib !" "$LINENO" 5
  13444. fi
  13445. fi
  13446. CPPFLAGS="$CPPFLAGS_SAVED"
  13447. LDFLAGS="$LDFLAGS_SAVED"
  13448. fi
  13449. # Check whether --with-boost-program-options was given.
  13450. if test "${with_boost_program_options+set}" = set; then :
  13451. withval=$with_boost_program_options;
  13452. if test "$withval" = "no"; then
  13453. want_boost="no"
  13454. elif test "$withval" = "yes"; then
  13455. want_boost="yes"
  13456. ax_boost_user_program_options_lib=""
  13457. else
  13458. want_boost="yes"
  13459. ax_boost_user_program_options_lib="$withval"
  13460. fi
  13461. else
  13462. want_boost="yes"
  13463. fi
  13464. if test "x$want_boost" = "xyes"; then
  13465. export want_boost
  13466. CPPFLAGS_SAVED="$CPPFLAGS"
  13467. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13468. export CPPFLAGS
  13469. LDFLAGS_SAVED="$LDFLAGS"
  13470. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13471. export LDFLAGS
  13472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Program_Options library is available" >&5
  13473. $as_echo_n "checking whether the Boost::Program_Options library is available... " >&6; }
  13474. if test "${ax_cv_boost_program_options+set}" = set; then :
  13475. $as_echo_n "(cached) " >&6
  13476. else
  13477. ac_ext=cpp
  13478. ac_cpp='$CXXCPP $CPPFLAGS'
  13479. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13480. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13481. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13483. /* end confdefs.h. */
  13484. #include <boost/program_options.hpp>
  13485. int
  13486. main ()
  13487. {
  13488. boost::program_options::options_description generic("Generic options");
  13489. return 0;
  13490. ;
  13491. return 0;
  13492. }
  13493. _ACEOF
  13494. if ac_fn_cxx_try_compile "$LINENO"; then :
  13495. ax_cv_boost_program_options=yes
  13496. else
  13497. ax_cv_boost_program_options=no
  13498. fi
  13499. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13500. ac_ext=cpp
  13501. ac_cpp='$CXXCPP $CPPFLAGS'
  13502. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13503. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13504. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13505. fi
  13506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_program_options" >&5
  13507. $as_echo "$ax_cv_boost_program_options" >&6; }
  13508. if test "$ax_cv_boost_program_options" = yes; then
  13509. $as_echo "#define HAVE_BOOST_PROGRAM_OPTIONS /**/" >>confdefs.h
  13510. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13511. if test "x$ax_boost_user_program_options_lib" = "x"; then
  13512. for libextension in `ls $BOOSTLIBDIR/libboost_program_options*.so* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.so.*$;\1;'` `ls $BOOSTLIBDIR/libboost_program_options*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.a*$;\1;'` ; do
  13513. ax_lib=${libextension}
  13514. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13516. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13517. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  13518. $as_echo_n "(cached) " >&6
  13519. else
  13520. ac_check_lib_save_LIBS=$LIBS
  13521. LIBS="-l$ax_lib $LIBS"
  13522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13523. /* end confdefs.h. */
  13524. /* Override any GCC internal prototype to avoid an error.
  13525. Use char because int might match the return type of a GCC
  13526. builtin and then its argument prototype would still apply. */
  13527. #ifdef __cplusplus
  13528. extern "C"
  13529. #endif
  13530. char exit ();
  13531. int
  13532. main ()
  13533. {
  13534. return exit ();
  13535. ;
  13536. return 0;
  13537. }
  13538. _ACEOF
  13539. if ac_fn_cxx_try_link "$LINENO"; then :
  13540. eval "$as_ac_Lib=yes"
  13541. else
  13542. eval "$as_ac_Lib=no"
  13543. fi
  13544. rm -f core conftest.err conftest.$ac_objext \
  13545. conftest$ac_exeext conftest.$ac_ext
  13546. LIBS=$ac_check_lib_save_LIBS
  13547. fi
  13548. eval ac_res=\$$as_ac_Lib
  13549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13550. $as_echo "$ac_res" >&6; }
  13551. eval as_val=\$$as_ac_Lib
  13552. if test "x$as_val" = x""yes; then :
  13553. BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; link_program_options="yes"; break
  13554. else
  13555. link_program_options="no"
  13556. fi
  13557. done
  13558. if test "x$link_program_options" != "xyes"; then
  13559. for libextension in `ls $BOOSTLIBDIR/boost_program_options*.dll* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.dll.*$;\1;'` `ls $BOOSTLIBDIR/boost_program_options*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.a*$;\1;'` ; do
  13560. ax_lib=${libextension}
  13561. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13563. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13564. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  13565. $as_echo_n "(cached) " >&6
  13566. else
  13567. ac_check_lib_save_LIBS=$LIBS
  13568. LIBS="-l$ax_lib $LIBS"
  13569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13570. /* end confdefs.h. */
  13571. /* Override any GCC internal prototype to avoid an error.
  13572. Use char because int might match the return type of a GCC
  13573. builtin and then its argument prototype would still apply. */
  13574. #ifdef __cplusplus
  13575. extern "C"
  13576. #endif
  13577. char exit ();
  13578. int
  13579. main ()
  13580. {
  13581. return exit ();
  13582. ;
  13583. return 0;
  13584. }
  13585. _ACEOF
  13586. if ac_fn_cxx_try_link "$LINENO"; then :
  13587. eval "$as_ac_Lib=yes"
  13588. else
  13589. eval "$as_ac_Lib=no"
  13590. fi
  13591. rm -f core conftest.err conftest.$ac_objext \
  13592. conftest$ac_exeext conftest.$ac_ext
  13593. LIBS=$ac_check_lib_save_LIBS
  13594. fi
  13595. eval ac_res=\$$as_ac_Lib
  13596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13597. $as_echo "$ac_res" >&6; }
  13598. eval as_val=\$$as_ac_Lib
  13599. if test "x$as_val" = x""yes; then :
  13600. BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; link_program_options="yes"; break
  13601. else
  13602. link_program_options="no"
  13603. fi
  13604. done
  13605. fi
  13606. else
  13607. for ax_lib in $ax_boost_user_program_options_lib boost_program_options-$ax_boost_user_program_options_lib; do
  13608. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
  13609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
  13610. $as_echo_n "checking for main in -l$ax_lib... " >&6; }
  13611. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  13612. $as_echo_n "(cached) " >&6
  13613. else
  13614. ac_check_lib_save_LIBS=$LIBS
  13615. LIBS="-l$ax_lib $LIBS"
  13616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13617. /* end confdefs.h. */
  13618. int
  13619. main ()
  13620. {
  13621. return main ();
  13622. ;
  13623. return 0;
  13624. }
  13625. _ACEOF
  13626. if ac_fn_cxx_try_link "$LINENO"; then :
  13627. eval "$as_ac_Lib=yes"
  13628. else
  13629. eval "$as_ac_Lib=no"
  13630. fi
  13631. rm -f core conftest.err conftest.$ac_objext \
  13632. conftest$ac_exeext conftest.$ac_ext
  13633. LIBS=$ac_check_lib_save_LIBS
  13634. fi
  13635. eval ac_res=\$$as_ac_Lib
  13636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13637. $as_echo "$ac_res" >&6; }
  13638. eval as_val=\$$as_ac_Lib
  13639. if test "x$as_val" = x""yes; then :
  13640. BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; link_program_options="yes"; break
  13641. else
  13642. link_program_options="no"
  13643. fi
  13644. done
  13645. fi
  13646. if test "x$ax_lib" = "x"; then
  13647. as_fn_error "Could not find a version of the library!" "$LINENO" 5
  13648. fi
  13649. if test "x$link_program_options" != "xyes"; then
  13650. as_fn_error "Could not link against $ax_lib !" "$LINENO" 5
  13651. fi
  13652. fi
  13653. CPPFLAGS="$CPPFLAGS_SAVED"
  13654. LDFLAGS="$LDFLAGS_SAVED"
  13655. fi
  13656. # Check for SDL headers and libraries
  13657. saved_LIBS=$LIBS
  13658. saved_CFLAGS=$CFLAGS
  13659. # Extract the first word of "sdl-config", so it can be a program name with args.
  13660. set dummy sdl-config; ac_word=$2
  13661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13662. $as_echo_n "checking for $ac_word... " >&6; }
  13663. if test "${ac_cv_prog_HAVE_SDL_CONFIG+set}" = set; then :
  13664. $as_echo_n "(cached) " >&6
  13665. else
  13666. if test -n "$HAVE_SDL_CONFIG"; then
  13667. ac_cv_prog_HAVE_SDL_CONFIG="$HAVE_SDL_CONFIG" # Let the user override the test.
  13668. else
  13669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13670. for as_dir in $PATH
  13671. do
  13672. IFS=$as_save_IFS
  13673. test -z "$as_dir" && as_dir=.
  13674. for ac_exec_ext in '' $ac_executable_extensions; do
  13675. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13676. ac_cv_prog_HAVE_SDL_CONFIG="yes"
  13677. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13678. break 2
  13679. fi
  13680. done
  13681. done
  13682. IFS=$as_save_IFS
  13683. test -z "$ac_cv_prog_HAVE_SDL_CONFIG" && ac_cv_prog_HAVE_SDL_CONFIG="no"
  13684. fi
  13685. fi
  13686. HAVE_SDL_CONFIG=$ac_cv_prog_HAVE_SDL_CONFIG
  13687. if test -n "$HAVE_SDL_CONFIG"; then
  13688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_SDL_CONFIG" >&5
  13689. $as_echo "$HAVE_SDL_CONFIG" >&6; }
  13690. else
  13691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13692. $as_echo "no" >&6; }
  13693. fi
  13694. if test "$HAVE_SDL_CONFIG" = no; then
  13695. as_fn_error "sdl-config doesn't exist. Try to check the PATH enviroment." "$LINENO" 5
  13696. fi
  13697. SDL_CXXFLAGS="`sdl-config --cflags`"
  13698. LIBS="$LIBS `sdl-config --libs`"
  13699. CFLAGS="$CFLAGS $SDL_CXXFLAGS"
  13700. for ac_header in SDL/SDL.h SDL/SDL_mixer.h SDL/SDL_image.h SDL/SDL_ttf.h
  13701. do :
  13702. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13703. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13704. eval as_val=\$$as_ac_Header
  13705. if test "x$as_val" = x""yes; then :
  13706. cat >>confdefs.h <<_ACEOF
  13707. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13708. _ACEOF
  13709. else
  13710. as_fn_error "Header not found. Install missing devel package." "$LINENO" 5
  13711. fi
  13712. done
  13713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Init in -lSDL" >&5
  13714. $as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
  13715. if test "${ac_cv_lib_SDL_SDL_Init+set}" = set; then :
  13716. $as_echo_n "(cached) " >&6
  13717. else
  13718. ac_check_lib_save_LIBS=$LIBS
  13719. LIBS="-lSDL $LIBS"
  13720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13721. /* end confdefs.h. */
  13722. /* Override any GCC internal prototype to avoid an error.
  13723. Use char because int might match the return type of a GCC
  13724. builtin and then its argument prototype would still apply. */
  13725. #ifdef __cplusplus
  13726. extern "C"
  13727. #endif
  13728. char SDL_Init ();
  13729. int
  13730. main ()
  13731. {
  13732. return SDL_Init ();
  13733. ;
  13734. return 0;
  13735. }
  13736. _ACEOF
  13737. if ac_fn_cxx_try_link "$LINENO"; then :
  13738. ac_cv_lib_SDL_SDL_Init=yes
  13739. else
  13740. ac_cv_lib_SDL_SDL_Init=no
  13741. fi
  13742. rm -f core conftest.err conftest.$ac_objext \
  13743. conftest$ac_exeext conftest.$ac_ext
  13744. LIBS=$ac_check_lib_save_LIBS
  13745. fi
  13746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_Init" >&5
  13747. $as_echo "$ac_cv_lib_SDL_SDL_Init" >&6; }
  13748. if test "x$ac_cv_lib_SDL_SDL_Init" = x""yes; then :
  13749. cat >>confdefs.h <<_ACEOF
  13750. #define HAVE_LIBSDL 1
  13751. _ACEOF
  13752. LIBS="-lSDL $LIBS"
  13753. else
  13754. as_fn_error "SDL library not found. Please install it." "$LINENO" 5
  13755. fi
  13756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL_mixer" >&5
  13757. $as_echo_n "checking for main in -lSDL_mixer... " >&6; }
  13758. if test "${ac_cv_lib_SDL_mixer_main+set}" = set; then :
  13759. $as_echo_n "(cached) " >&6
  13760. else
  13761. ac_check_lib_save_LIBS=$LIBS
  13762. LIBS="-lSDL_mixer $LIBS"
  13763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13764. /* end confdefs.h. */
  13765. int
  13766. main ()
  13767. {
  13768. return main ();
  13769. ;
  13770. return 0;
  13771. }
  13772. _ACEOF
  13773. if ac_fn_cxx_try_link "$LINENO"; then :
  13774. ac_cv_lib_SDL_mixer_main=yes
  13775. else
  13776. ac_cv_lib_SDL_mixer_main=no
  13777. fi
  13778. rm -f core conftest.err conftest.$ac_objext \
  13779. conftest$ac_exeext conftest.$ac_ext
  13780. LIBS=$ac_check_lib_save_LIBS
  13781. fi
  13782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_mixer_main" >&5
  13783. $as_echo "$ac_cv_lib_SDL_mixer_main" >&6; }
  13784. if test "x$ac_cv_lib_SDL_mixer_main" = x""yes; then :
  13785. cat >>confdefs.h <<_ACEOF
  13786. #define HAVE_LIBSDL_MIXER 1
  13787. _ACEOF
  13788. LIBS="-lSDL_mixer $LIBS"
  13789. else
  13790. as_fn_error "SDL_mixer library not found. Please install it." "$LINENO" 5
  13791. fi
  13792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMG_Load in -lSDL_image" >&5
  13793. $as_echo_n "checking for IMG_Load in -lSDL_image... " >&6; }
  13794. if test "${ac_cv_lib_SDL_image_IMG_Load+set}" = set; then :
  13795. $as_echo_n "(cached) " >&6
  13796. else
  13797. ac_check_lib_save_LIBS=$LIBS
  13798. LIBS="-lSDL_image $LIBS"
  13799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13800. /* end confdefs.h. */
  13801. /* Override any GCC internal prototype to avoid an error.
  13802. Use char because int might match the return type of a GCC
  13803. builtin and then its argument prototype would still apply. */
  13804. #ifdef __cplusplus
  13805. extern "C"
  13806. #endif
  13807. char IMG_Load ();
  13808. int
  13809. main ()
  13810. {
  13811. return IMG_Load ();
  13812. ;
  13813. return 0;
  13814. }
  13815. _ACEOF
  13816. if ac_fn_cxx_try_link "$LINENO"; then :
  13817. ac_cv_lib_SDL_image_IMG_Load=yes
  13818. else
  13819. ac_cv_lib_SDL_image_IMG_Load=no
  13820. fi
  13821. rm -f core conftest.err conftest.$ac_objext \
  13822. conftest$ac_exeext conftest.$ac_ext
  13823. LIBS=$ac_check_lib_save_LIBS
  13824. fi
  13825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_image_IMG_Load" >&5
  13826. $as_echo "$ac_cv_lib_SDL_image_IMG_Load" >&6; }
  13827. if test "x$ac_cv_lib_SDL_image_IMG_Load" = x""yes; then :
  13828. cat >>confdefs.h <<_ACEOF
  13829. #define HAVE_LIBSDL_IMAGE 1
  13830. _ACEOF
  13831. LIBS="-lSDL_image $LIBS"
  13832. else
  13833. as_fn_error "SDL_image library not found. Please install it." "$LINENO" 5
  13834. fi
  13835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL_ttf" >&5
  13836. $as_echo_n "checking for main in -lSDL_ttf... " >&6; }
  13837. if test "${ac_cv_lib_SDL_ttf_main+set}" = set; then :
  13838. $as_echo_n "(cached) " >&6
  13839. else
  13840. ac_check_lib_save_LIBS=$LIBS
  13841. LIBS="-lSDL_ttf $LIBS"
  13842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13843. /* end confdefs.h. */
  13844. int
  13845. main ()
  13846. {
  13847. return main ();
  13848. ;
  13849. return 0;
  13850. }
  13851. _ACEOF
  13852. if ac_fn_cxx_try_link "$LINENO"; then :
  13853. ac_cv_lib_SDL_ttf_main=yes
  13854. else
  13855. ac_cv_lib_SDL_ttf_main=no
  13856. fi
  13857. rm -f core conftest.err conftest.$ac_objext \
  13858. conftest$ac_exeext conftest.$ac_ext
  13859. LIBS=$ac_check_lib_save_LIBS
  13860. fi
  13861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_ttf_main" >&5
  13862. $as_echo "$ac_cv_lib_SDL_ttf_main" >&6; }
  13863. if test "x$ac_cv_lib_SDL_ttf_main" = x""yes; then :
  13864. cat >>confdefs.h <<_ACEOF
  13865. #define HAVE_LIBSDL_TTF 1
  13866. _ACEOF
  13867. LIBS="-lSDL_ttf $LIBS"
  13868. else
  13869. as_fn_error "SDL_ttf library not found. Please install it." "$LINENO" 5
  13870. fi
  13871. SDL_LIBS="$LIBS"
  13872. LIBS=$saved_LIBS
  13873. CFLAGS=$saved_CFLAGS
  13874. # Check for ffmpeg libraries
  13875. saved_LIBS=$LIBS
  13876. saved_CFLAGS=$CFLAGS
  13877. FFMPEG_CXXFLAGS=""
  13878. FFMPEG_LIBS=
  13879. LIBS="$LIBS `pkg-config --libs libavformat libswscale`"
  13880. CFLAGS="$CFLAGS `pkg-config --cflags libavformat libswscale`"
  13881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_open_input_file in -lavformat" >&5
  13882. $as_echo_n "checking for av_open_input_file in -lavformat... " >&6; }
  13883. if test "${ac_cv_lib_avformat_av_open_input_file+set}" = set; then :
  13884. $as_echo_n "(cached) " >&6
  13885. else
  13886. ac_check_lib_save_LIBS=$LIBS
  13887. LIBS="-lavformat $LIBS"
  13888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13889. /* end confdefs.h. */
  13890. /* Override any GCC internal prototype to avoid an error.
  13891. Use char because int might match the return type of a GCC
  13892. builtin and then its argument prototype would still apply. */
  13893. #ifdef __cplusplus
  13894. extern "C"
  13895. #endif
  13896. char av_open_input_file ();
  13897. int
  13898. main ()
  13899. {
  13900. return av_open_input_file ();
  13901. ;
  13902. return 0;
  13903. }
  13904. _ACEOF
  13905. if ac_fn_cxx_try_link "$LINENO"; then :
  13906. ac_cv_lib_avformat_av_open_input_file=yes
  13907. else
  13908. ac_cv_lib_avformat_av_open_input_file=no
  13909. fi
  13910. rm -f core conftest.err conftest.$ac_objext \
  13911. conftest$ac_exeext conftest.$ac_ext
  13912. LIBS=$ac_check_lib_save_LIBS
  13913. fi
  13914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_av_open_input_file" >&5
  13915. $as_echo "$ac_cv_lib_avformat_av_open_input_file" >&6; }
  13916. if test "x$ac_cv_lib_avformat_av_open_input_file" = x""yes; then :
  13917. cat >>confdefs.h <<_ACEOF
  13918. #define HAVE_LIBAVFORMAT 1
  13919. _ACEOF
  13920. LIBS="-lavformat $LIBS"
  13921. else
  13922. as_fn_error "FFMpeg avformat library not found. Please install it." "$LINENO" 5
  13923. fi
  13924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sws_getContext in -lswscale" >&5
  13925. $as_echo_n "checking for sws_getContext in -lswscale... " >&6; }
  13926. if test "${ac_cv_lib_swscale_sws_getContext+set}" = set; then :
  13927. $as_echo_n "(cached) " >&6
  13928. else
  13929. ac_check_lib_save_LIBS=$LIBS
  13930. LIBS="-lswscale $LIBS"
  13931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13932. /* end confdefs.h. */
  13933. /* Override any GCC internal prototype to avoid an error.
  13934. Use char because int might match the return type of a GCC
  13935. builtin and then its argument prototype would still apply. */
  13936. #ifdef __cplusplus
  13937. extern "C"
  13938. #endif
  13939. char sws_getContext ();
  13940. int
  13941. main ()
  13942. {
  13943. return sws_getContext ();
  13944. ;
  13945. return 0;
  13946. }
  13947. _ACEOF
  13948. if ac_fn_cxx_try_link "$LINENO"; then :
  13949. ac_cv_lib_swscale_sws_getContext=yes
  13950. else
  13951. ac_cv_lib_swscale_sws_getContext=no
  13952. fi
  13953. rm -f core conftest.err conftest.$ac_objext \
  13954. conftest$ac_exeext conftest.$ac_ext
  13955. LIBS=$ac_check_lib_save_LIBS
  13956. fi
  13957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_sws_getContext" >&5
  13958. $as_echo "$ac_cv_lib_swscale_sws_getContext" >&6; }
  13959. if test "x$ac_cv_lib_swscale_sws_getContext" = x""yes; then :
  13960. cat >>confdefs.h <<_ACEOF
  13961. #define HAVE_LIBSWSCALE 1
  13962. _ACEOF
  13963. LIBS="-lswscale $LIBS"
  13964. else
  13965. as_fn_error "FFMpeg swscale library not found. Please install it." "$LINENO" 5
  13966. fi
  13967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcodec_decode_video2 in -lavcodec" >&5
  13968. $as_echo_n "checking for avcodec_decode_video2 in -lavcodec... " >&6; }
  13969. if test "${ac_cv_lib_avcodec_avcodec_decode_video2+set}" = set; then :
  13970. $as_echo_n "(cached) " >&6
  13971. else
  13972. ac_check_lib_save_LIBS=$LIBS
  13973. LIBS="-lavcodec $LIBS"
  13974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13975. /* end confdefs.h. */
  13976. /* Override any GCC internal prototype to avoid an error.
  13977. Use char because int might match the return type of a GCC
  13978. builtin and then its argument prototype would still apply. */
  13979. #ifdef __cplusplus
  13980. extern "C"
  13981. #endif
  13982. char avcodec_decode_video2 ();
  13983. int
  13984. main ()
  13985. {
  13986. return avcodec_decode_video2 ();
  13987. ;
  13988. return 0;
  13989. }
  13990. _ACEOF
  13991. if ac_fn_cxx_try_link "$LINENO"; then :
  13992. ac_cv_lib_avcodec_avcodec_decode_video2=yes
  13993. else
  13994. ac_cv_lib_avcodec_avcodec_decode_video2=no
  13995. fi
  13996. rm -f core conftest.err conftest.$ac_objext \
  13997. conftest$ac_exeext conftest.$ac_ext
  13998. LIBS=$ac_check_lib_save_LIBS
  13999. fi
  14000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_avcodec_decode_video2" >&5
  14001. $as_echo "$ac_cv_lib_avcodec_avcodec_decode_video2" >&6; }
  14002. if test "x$ac_cv_lib_avcodec_avcodec_decode_video2" = x""yes; then :
  14003. AVCODEC_DECODE_VIDEO2="-DWITH_AVCODEC_DECODE_VIDEO2"
  14004. fi
  14005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_register_protocol2 in -lavcodec" >&5
  14006. $as_echo_n "checking for av_register_protocol2 in -lavcodec... " >&6; }
  14007. if test "${ac_cv_lib_avcodec_av_register_protocol2+set}" = set; then :
  14008. $as_echo_n "(cached) " >&6
  14009. else
  14010. ac_check_lib_save_LIBS=$LIBS
  14011. LIBS="-lavcodec $LIBS"
  14012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14013. /* end confdefs.h. */
  14014. /* Override any GCC internal prototype to avoid an error.
  14015. Use char because int might match the return type of a GCC
  14016. builtin and then its argument prototype would still apply. */
  14017. #ifdef __cplusplus
  14018. extern "C"
  14019. #endif
  14020. char av_register_protocol2 ();
  14021. int
  14022. main ()
  14023. {
  14024. return av_register_protocol2 ();
  14025. ;
  14026. return 0;
  14027. }
  14028. _ACEOF
  14029. if ac_fn_cxx_try_link "$LINENO"; then :
  14030. ac_cv_lib_avcodec_av_register_protocol2=yes
  14031. else
  14032. ac_cv_lib_avcodec_av_register_protocol2=no
  14033. fi
  14034. rm -f core conftest.err conftest.$ac_objext \
  14035. conftest$ac_exeext conftest.$ac_ext
  14036. LIBS=$ac_check_lib_save_LIBS
  14037. fi
  14038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_av_register_protocol2" >&5
  14039. $as_echo "$ac_cv_lib_avcodec_av_register_protocol2" >&6; }
  14040. if test "x$ac_cv_lib_avcodec_av_register_protocol2" = x""yes; then :
  14041. AV_REGISTER_PROTOCOL2="-DWITH_AV_REGISTER_PROTOCOL2"
  14042. fi
  14043. FFMPEG_LIBS="$LIBS"
  14044. FFMPEG_CXXFLAGS="$CFLAGS $AVCODEC_DECODE_VIDEO2 $AV_REGISTER_PROTOCOL2"
  14045. LIBS=$saved_LIBS
  14046. CFLAGS=$saved_CFLAGS
  14047. # Checks for header files.
  14048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14049. $as_echo_n "checking for ANSI C header files... " >&6; }
  14050. if test "${ac_cv_header_stdc+set}" = set; then :
  14051. $as_echo_n "(cached) " >&6
  14052. else
  14053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14054. /* end confdefs.h. */
  14055. #include <stdlib.h>
  14056. #include <stdarg.h>
  14057. #include <string.h>
  14058. #include <float.h>
  14059. int
  14060. main ()
  14061. {
  14062. ;
  14063. return 0;
  14064. }
  14065. _ACEOF
  14066. if ac_fn_cxx_try_compile "$LINENO"; then :
  14067. ac_cv_header_stdc=yes
  14068. else
  14069. ac_cv_header_stdc=no
  14070. fi
  14071. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14072. if test $ac_cv_header_stdc = yes; then
  14073. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14075. /* end confdefs.h. */
  14076. #include <string.h>
  14077. _ACEOF
  14078. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14079. $EGREP "memchr" >/dev/null 2>&1; then :
  14080. else
  14081. ac_cv_header_stdc=no
  14082. fi
  14083. rm -f conftest*
  14084. fi
  14085. if test $ac_cv_header_stdc = yes; then
  14086. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14088. /* end confdefs.h. */
  14089. #include <stdlib.h>
  14090. _ACEOF
  14091. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14092. $EGREP "free" >/dev/null 2>&1; then :
  14093. else
  14094. ac_cv_header_stdc=no
  14095. fi
  14096. rm -f conftest*
  14097. fi
  14098. if test $ac_cv_header_stdc = yes; then
  14099. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14100. if test "$cross_compiling" = yes; then :
  14101. :
  14102. else
  14103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14104. /* end confdefs.h. */
  14105. #include <ctype.h>
  14106. #include <stdlib.h>
  14107. #if ((' ' & 0x0FF) == 0x020)
  14108. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14109. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14110. #else
  14111. # define ISLOWER(c) \
  14112. (('a' <= (c) && (c) <= 'i') \
  14113. || ('j' <= (c) && (c) <= 'r') \
  14114. || ('s' <= (c) && (c) <= 'z'))
  14115. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14116. #endif
  14117. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14118. int
  14119. main ()
  14120. {
  14121. int i;
  14122. for (i = 0; i < 256; i++)
  14123. if (XOR (islower (i), ISLOWER (i))
  14124. || toupper (i) != TOUPPER (i))
  14125. return 2;
  14126. return 0;
  14127. }
  14128. _ACEOF
  14129. if ac_fn_cxx_try_run "$LINENO"; then :
  14130. else
  14131. ac_cv_header_stdc=no
  14132. fi
  14133. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14134. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14135. fi
  14136. fi
  14137. fi
  14138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14139. $as_echo "$ac_cv_header_stdc" >&6; }
  14140. if test $ac_cv_header_stdc = yes; then
  14141. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14142. fi
  14143. for ac_header in fcntl.h stdlib.h string.h
  14144. do :
  14145. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14146. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14147. eval as_val=\$$as_ac_Header
  14148. if test "x$as_val" = x""yes; then :
  14149. cat >>confdefs.h <<_ACEOF
  14150. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14151. _ACEOF
  14152. fi
  14153. done
  14154. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  14155. for ac_header in boost/filesystem.hpp boost/algorithm/string.hpp boost/algorithm/string/replace.hpp boost/filesystem/operations.hpp boost/assign/std/vector.hpp boost/algorithm/string/find.hpp boost/function.hpp boost/bind.hpp
  14156. do :
  14157. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14158. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14159. eval as_val=\$$as_ac_Header
  14160. if test "x$as_val" = x""yes; then :
  14161. cat >>confdefs.h <<_ACEOF
  14162. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14163. _ACEOF
  14164. else
  14165. as_fn_error "Required boost headers not found. Please install it." "$LINENO" 5
  14166. fi
  14167. done
  14168. # Checks for library functions.
  14169. for ac_func in atexit memset pow select sqrt
  14170. do :
  14171. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14172. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14173. eval as_val=\$$as_ac_var
  14174. if test "x$as_val" = x""yes; then :
  14175. cat >>confdefs.h <<_ACEOF
  14176. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14177. _ACEOF
  14178. fi
  14179. done
  14180. CXXFLAGS="$CXXFLAGS -DDATA_DIR=\\\"\$(pkgdatadir)\\\" -DBIN_DIR=\\\"\$(bindir)\\\" -DLIB_DIR=\\\"\$(pkglibdir)\\\""
  14181. VCMI_AI_LIBS_DIR="$libdir/vcmi/AI"
  14182. VCMI_SCRIPTING_LIBS_DIR="$libdir/vcmi/Scripting"
  14183. ac_config_files="$ac_config_files Makefile lib/Makefile client/Makefile server/Makefile AI/Makefile AI/StupidAI/Makefile AI/GeniusAI/Makefile AI/EmptyAI/Makefile Scripting/ERM/Makefile Odpalarka/Makefile VCMI_BattleAiHost/Makefile"
  14184. cat >confcache <<\_ACEOF
  14185. # This file is a shell script that caches the results of configure
  14186. # tests run on this system so they can be shared between configure
  14187. # scripts and configure runs, see configure's option --config-cache.
  14188. # It is not useful on other systems. If it contains results you don't
  14189. # want to keep, you may remove or edit it.
  14190. #
  14191. # config.status only pays attention to the cache file if you give it
  14192. # the --recheck option to rerun configure.
  14193. #
  14194. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14195. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14196. # following values.
  14197. _ACEOF
  14198. # The following way of writing the cache mishandles newlines in values,
  14199. # but we know of no workaround that is simple, portable, and efficient.
  14200. # So, we kill variables containing newlines.
  14201. # Ultrix sh set writes to stderr and can't be redirected directly,
  14202. # and sets the high bit in the cache file unless we assign to the vars.
  14203. (
  14204. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14205. eval ac_val=\$$ac_var
  14206. case $ac_val in #(
  14207. *${as_nl}*)
  14208. case $ac_var in #(
  14209. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14210. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14211. esac
  14212. case $ac_var in #(
  14213. _ | IFS | as_nl) ;; #(
  14214. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14215. *) { eval $ac_var=; unset $ac_var;} ;;
  14216. esac ;;
  14217. esac
  14218. done
  14219. (set) 2>&1 |
  14220. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14221. *${as_nl}ac_space=\ *)
  14222. # `set' does not quote correctly, so add quotes: double-quote
  14223. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14224. sed -n \
  14225. "s/'/'\\\\''/g;
  14226. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14227. ;; #(
  14228. *)
  14229. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14230. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14231. ;;
  14232. esac |
  14233. sort
  14234. ) |
  14235. sed '
  14236. /^ac_cv_env_/b end
  14237. t clear
  14238. :clear
  14239. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14240. t end
  14241. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14242. :end' >>confcache
  14243. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14244. if test -w "$cache_file"; then
  14245. test "x$cache_file" != "x/dev/null" &&
  14246. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14247. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14248. cat confcache >$cache_file
  14249. else
  14250. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14251. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14252. fi
  14253. fi
  14254. rm -f confcache
  14255. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14256. # Let make expand exec_prefix.
  14257. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14258. # Transform confdefs.h into DEFS.
  14259. # Protect against shell expansion while executing Makefile rules.
  14260. # Protect against Makefile macro expansion.
  14261. #
  14262. # If the first sed substitution is executed (which looks for macros that
  14263. # take arguments), then branch to the quote section. Otherwise,
  14264. # look for a macro that doesn't take arguments.
  14265. ac_script='
  14266. :mline
  14267. /\\$/{
  14268. N
  14269. s,\\\n,,
  14270. b mline
  14271. }
  14272. t clear
  14273. :clear
  14274. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  14275. t quote
  14276. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  14277. t quote
  14278. b any
  14279. :quote
  14280. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  14281. s/\[/\\&/g
  14282. s/\]/\\&/g
  14283. s/\$/$$/g
  14284. H
  14285. :any
  14286. ${
  14287. g
  14288. s/^\n//
  14289. s/\n/ /g
  14290. p
  14291. }
  14292. '
  14293. DEFS=`sed -n "$ac_script" confdefs.h`
  14294. ac_libobjs=
  14295. ac_ltlibobjs=
  14296. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14297. # 1. Remove the extension, and $U if already installed.
  14298. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14299. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14300. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14301. # will be set to the directory where LIBOBJS objects are built.
  14302. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14303. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14304. done
  14305. LIBOBJS=$ac_libobjs
  14306. LTLIBOBJS=$ac_ltlibobjs
  14307. if test -n "$EXEEXT"; then
  14308. am__EXEEXT_TRUE=
  14309. am__EXEEXT_FALSE='#'
  14310. else
  14311. am__EXEEXT_TRUE='#'
  14312. am__EXEEXT_FALSE=
  14313. fi
  14314. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14315. as_fn_error "conditional \"AMDEP\" was never defined.
  14316. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14317. fi
  14318. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14319. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  14320. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14321. fi
  14322. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14323. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  14324. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14325. fi
  14326. : ${CONFIG_STATUS=./config.status}
  14327. ac_write_fail=0
  14328. ac_clean_files_save=$ac_clean_files
  14329. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14330. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14331. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14332. as_write_fail=0
  14333. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14334. #! $SHELL
  14335. # Generated by $as_me.
  14336. # Run this file to recreate the current configuration.
  14337. # Compiler output produced by configure, useful for debugging
  14338. # configure, is in config.log if it exists.
  14339. debug=false
  14340. ac_cs_recheck=false
  14341. ac_cs_silent=false
  14342. SHELL=\${CONFIG_SHELL-$SHELL}
  14343. export SHELL
  14344. _ASEOF
  14345. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14346. ## -------------------- ##
  14347. ## M4sh Initialization. ##
  14348. ## -------------------- ##
  14349. # Be more Bourne compatible
  14350. DUALCASE=1; export DUALCASE # for MKS sh
  14351. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14352. emulate sh
  14353. NULLCMD=:
  14354. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14355. # is contrary to our usage. Disable this feature.
  14356. alias -g '${1+"$@"}'='"$@"'
  14357. setopt NO_GLOB_SUBST
  14358. else
  14359. case `(set -o) 2>/dev/null` in #(
  14360. *posix*) :
  14361. set -o posix ;; #(
  14362. *) :
  14363. ;;
  14364. esac
  14365. fi
  14366. as_nl='
  14367. '
  14368. export as_nl
  14369. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14370. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14371. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14372. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14373. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14374. # but without wasting forks for bash or zsh.
  14375. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14376. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14377. as_echo='print -r --'
  14378. as_echo_n='print -rn --'
  14379. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14380. as_echo='printf %s\n'
  14381. as_echo_n='printf %s'
  14382. else
  14383. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14384. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14385. as_echo_n='/usr/ucb/echo -n'
  14386. else
  14387. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14388. as_echo_n_body='eval
  14389. arg=$1;
  14390. case $arg in #(
  14391. *"$as_nl"*)
  14392. expr "X$arg" : "X\\(.*\\)$as_nl";
  14393. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14394. esac;
  14395. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14396. '
  14397. export as_echo_n_body
  14398. as_echo_n='sh -c $as_echo_n_body as_echo'
  14399. fi
  14400. export as_echo_body
  14401. as_echo='sh -c $as_echo_body as_echo'
  14402. fi
  14403. # The user is always right.
  14404. if test "${PATH_SEPARATOR+set}" != set; then
  14405. PATH_SEPARATOR=:
  14406. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14407. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14408. PATH_SEPARATOR=';'
  14409. }
  14410. fi
  14411. # IFS
  14412. # We need space, tab and new line, in precisely that order. Quoting is
  14413. # there to prevent editors from complaining about space-tab.
  14414. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14415. # splitting by setting IFS to empty value.)
  14416. IFS=" "" $as_nl"
  14417. # Find who we are. Look in the path if we contain no directory separator.
  14418. case $0 in #((
  14419. *[\\/]* ) as_myself=$0 ;;
  14420. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14421. for as_dir in $PATH
  14422. do
  14423. IFS=$as_save_IFS
  14424. test -z "$as_dir" && as_dir=.
  14425. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14426. done
  14427. IFS=$as_save_IFS
  14428. ;;
  14429. esac
  14430. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14431. # in which case we are not to be found in the path.
  14432. if test "x$as_myself" = x; then
  14433. as_myself=$0
  14434. fi
  14435. if test ! -f "$as_myself"; then
  14436. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14437. exit 1
  14438. fi
  14439. # Unset variables that we do not need and which cause bugs (e.g. in
  14440. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14441. # suppresses any "Segmentation fault" message there. '((' could
  14442. # trigger a bug in pdksh 5.2.14.
  14443. for as_var in BASH_ENV ENV MAIL MAILPATH
  14444. do eval test x\${$as_var+set} = xset \
  14445. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14446. done
  14447. PS1='$ '
  14448. PS2='> '
  14449. PS4='+ '
  14450. # NLS nuisances.
  14451. LC_ALL=C
  14452. export LC_ALL
  14453. LANGUAGE=C
  14454. export LANGUAGE
  14455. # CDPATH.
  14456. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14457. # as_fn_error ERROR [LINENO LOG_FD]
  14458. # ---------------------------------
  14459. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14460. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14461. # script with status $?, using 1 if that was 0.
  14462. as_fn_error ()
  14463. {
  14464. as_status=$?; test $as_status -eq 0 && as_status=1
  14465. if test "$3"; then
  14466. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14467. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  14468. fi
  14469. $as_echo "$as_me: error: $1" >&2
  14470. as_fn_exit $as_status
  14471. } # as_fn_error
  14472. # as_fn_set_status STATUS
  14473. # -----------------------
  14474. # Set $? to STATUS, without forking.
  14475. as_fn_set_status ()
  14476. {
  14477. return $1
  14478. } # as_fn_set_status
  14479. # as_fn_exit STATUS
  14480. # -----------------
  14481. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14482. as_fn_exit ()
  14483. {
  14484. set +e
  14485. as_fn_set_status $1
  14486. exit $1
  14487. } # as_fn_exit
  14488. # as_fn_unset VAR
  14489. # ---------------
  14490. # Portably unset VAR.
  14491. as_fn_unset ()
  14492. {
  14493. { eval $1=; unset $1;}
  14494. }
  14495. as_unset=as_fn_unset
  14496. # as_fn_append VAR VALUE
  14497. # ----------------------
  14498. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14499. # advantage of any shell optimizations that allow amortized linear growth over
  14500. # repeated appends, instead of the typical quadratic growth present in naive
  14501. # implementations.
  14502. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14503. eval 'as_fn_append ()
  14504. {
  14505. eval $1+=\$2
  14506. }'
  14507. else
  14508. as_fn_append ()
  14509. {
  14510. eval $1=\$$1\$2
  14511. }
  14512. fi # as_fn_append
  14513. # as_fn_arith ARG...
  14514. # ------------------
  14515. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14516. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14517. # must be portable across $(()) and expr.
  14518. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14519. eval 'as_fn_arith ()
  14520. {
  14521. as_val=$(( $* ))
  14522. }'
  14523. else
  14524. as_fn_arith ()
  14525. {
  14526. as_val=`expr "$@" || test $? -eq 1`
  14527. }
  14528. fi # as_fn_arith
  14529. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14530. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14531. as_expr=expr
  14532. else
  14533. as_expr=false
  14534. fi
  14535. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14536. as_basename=basename
  14537. else
  14538. as_basename=false
  14539. fi
  14540. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14541. as_dirname=dirname
  14542. else
  14543. as_dirname=false
  14544. fi
  14545. as_me=`$as_basename -- "$0" ||
  14546. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14547. X"$0" : 'X\(//\)$' \| \
  14548. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14549. $as_echo X/"$0" |
  14550. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14551. s//\1/
  14552. q
  14553. }
  14554. /^X\/\(\/\/\)$/{
  14555. s//\1/
  14556. q
  14557. }
  14558. /^X\/\(\/\).*/{
  14559. s//\1/
  14560. q
  14561. }
  14562. s/.*/./; q'`
  14563. # Avoid depending upon Character Ranges.
  14564. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14565. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14566. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14567. as_cr_digits='0123456789'
  14568. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14569. ECHO_C= ECHO_N= ECHO_T=
  14570. case `echo -n x` in #(((((
  14571. -n*)
  14572. case `echo 'xy\c'` in
  14573. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14574. xy) ECHO_C='\c';;
  14575. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14576. ECHO_T=' ';;
  14577. esac;;
  14578. *)
  14579. ECHO_N='-n';;
  14580. esac
  14581. rm -f conf$$ conf$$.exe conf$$.file
  14582. if test -d conf$$.dir; then
  14583. rm -f conf$$.dir/conf$$.file
  14584. else
  14585. rm -f conf$$.dir
  14586. mkdir conf$$.dir 2>/dev/null
  14587. fi
  14588. if (echo >conf$$.file) 2>/dev/null; then
  14589. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14590. as_ln_s='ln -s'
  14591. # ... but there are two gotchas:
  14592. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14593. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14594. # In both cases, we have to default to `cp -p'.
  14595. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14596. as_ln_s='cp -p'
  14597. elif ln conf$$.file conf$$ 2>/dev/null; then
  14598. as_ln_s=ln
  14599. else
  14600. as_ln_s='cp -p'
  14601. fi
  14602. else
  14603. as_ln_s='cp -p'
  14604. fi
  14605. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14606. rmdir conf$$.dir 2>/dev/null
  14607. # as_fn_mkdir_p
  14608. # -------------
  14609. # Create "$as_dir" as a directory, including parents if necessary.
  14610. as_fn_mkdir_p ()
  14611. {
  14612. case $as_dir in #(
  14613. -*) as_dir=./$as_dir;;
  14614. esac
  14615. test -d "$as_dir" || eval $as_mkdir_p || {
  14616. as_dirs=
  14617. while :; do
  14618. case $as_dir in #(
  14619. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14620. *) as_qdir=$as_dir;;
  14621. esac
  14622. as_dirs="'$as_qdir' $as_dirs"
  14623. as_dir=`$as_dirname -- "$as_dir" ||
  14624. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14625. X"$as_dir" : 'X\(//\)[^/]' \| \
  14626. X"$as_dir" : 'X\(//\)$' \| \
  14627. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14628. $as_echo X"$as_dir" |
  14629. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14630. s//\1/
  14631. q
  14632. }
  14633. /^X\(\/\/\)[^/].*/{
  14634. s//\1/
  14635. q
  14636. }
  14637. /^X\(\/\/\)$/{
  14638. s//\1/
  14639. q
  14640. }
  14641. /^X\(\/\).*/{
  14642. s//\1/
  14643. q
  14644. }
  14645. s/.*/./; q'`
  14646. test -d "$as_dir" && break
  14647. done
  14648. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14649. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  14650. } # as_fn_mkdir_p
  14651. if mkdir -p . 2>/dev/null; then
  14652. as_mkdir_p='mkdir -p "$as_dir"'
  14653. else
  14654. test -d ./-p && rmdir ./-p
  14655. as_mkdir_p=false
  14656. fi
  14657. if test -x / >/dev/null 2>&1; then
  14658. as_test_x='test -x'
  14659. else
  14660. if ls -dL / >/dev/null 2>&1; then
  14661. as_ls_L_option=L
  14662. else
  14663. as_ls_L_option=
  14664. fi
  14665. as_test_x='
  14666. eval sh -c '\''
  14667. if test -d "$1"; then
  14668. test -d "$1/.";
  14669. else
  14670. case $1 in #(
  14671. -*)set "./$1";;
  14672. esac;
  14673. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  14674. ???[sx]*):;;*)false;;esac;fi
  14675. '\'' sh
  14676. '
  14677. fi
  14678. as_executable_p=$as_test_x
  14679. # Sed expression to map a string onto a valid CPP name.
  14680. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14681. # Sed expression to map a string onto a valid variable name.
  14682. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14683. exec 6>&1
  14684. ## ----------------------------------- ##
  14685. ## Main body of $CONFIG_STATUS script. ##
  14686. ## ----------------------------------- ##
  14687. _ASEOF
  14688. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14689. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14690. # Save the log message, to keep $0 and so on meaningful, and to
  14691. # report actual input values of CONFIG_FILES etc. instead of their
  14692. # values after options handling.
  14693. ac_log="
  14694. This file was extended by vcmi $as_me 0.84b, which was
  14695. generated by GNU Autoconf 2.65. Invocation command line was
  14696. CONFIG_FILES = $CONFIG_FILES
  14697. CONFIG_HEADERS = $CONFIG_HEADERS
  14698. CONFIG_LINKS = $CONFIG_LINKS
  14699. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14700. $ $0 $@
  14701. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14702. "
  14703. _ACEOF
  14704. case $ac_config_files in *"
  14705. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14706. esac
  14707. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14708. # Files that config.status was made for.
  14709. config_files="`echo $ac_config_files`"
  14710. config_commands="`echo $ac_config_commands`"
  14711. _ACEOF
  14712. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14713. ac_cs_usage="\
  14714. \`$as_me' instantiates files and other configuration actions
  14715. from templates according to the current configuration. Unless the files
  14716. and actions are specified as TAGs, all are instantiated by default.
  14717. Usage: $0 [OPTION]... [TAG]...
  14718. -h, --help print this help, then exit
  14719. -V, --version print version number and configuration settings, then exit
  14720. --config print configuration, then exit
  14721. -q, --quiet, --silent
  14722. do not print progress messages
  14723. -d, --debug don't remove temporary files
  14724. --recheck update $as_me by reconfiguring in the same conditions
  14725. --file=FILE[:TEMPLATE]
  14726. instantiate the configuration file FILE
  14727. Configuration files:
  14728. $config_files
  14729. Configuration commands:
  14730. $config_commands
  14731. Report bugs to the package provider."
  14732. _ACEOF
  14733. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14734. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14735. ac_cs_version="\\
  14736. vcmi config.status 0.84b
  14737. configured by $0, generated by GNU Autoconf 2.65,
  14738. with options \\"\$ac_cs_config\\"
  14739. Copyright (C) 2009 Free Software Foundation, Inc.
  14740. This config.status script is free software; the Free Software Foundation
  14741. gives unlimited permission to copy, distribute and modify it."
  14742. ac_pwd='$ac_pwd'
  14743. srcdir='$srcdir'
  14744. INSTALL='$INSTALL'
  14745. MKDIR_P='$MKDIR_P'
  14746. AWK='$AWK'
  14747. test -n "\$AWK" || AWK=awk
  14748. _ACEOF
  14749. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14750. # The default lists apply if the user does not specify any file.
  14751. ac_need_defaults=:
  14752. while test $# != 0
  14753. do
  14754. case $1 in
  14755. --*=*)
  14756. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14757. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14758. ac_shift=:
  14759. ;;
  14760. *)
  14761. ac_option=$1
  14762. ac_optarg=$2
  14763. ac_shift=shift
  14764. ;;
  14765. esac
  14766. case $ac_option in
  14767. # Handling of the options.
  14768. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14769. ac_cs_recheck=: ;;
  14770. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14771. $as_echo "$ac_cs_version"; exit ;;
  14772. --config | --confi | --conf | --con | --co | --c )
  14773. $as_echo "$ac_cs_config"; exit ;;
  14774. --debug | --debu | --deb | --de | --d | -d )
  14775. debug=: ;;
  14776. --file | --fil | --fi | --f )
  14777. $ac_shift
  14778. case $ac_optarg in
  14779. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14780. esac
  14781. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14782. ac_need_defaults=false;;
  14783. --he | --h | --help | --hel | -h )
  14784. $as_echo "$ac_cs_usage"; exit ;;
  14785. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14786. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14787. ac_cs_silent=: ;;
  14788. # This is an error.
  14789. -*) as_fn_error "unrecognized option: \`$1'
  14790. Try \`$0 --help' for more information." ;;
  14791. *) as_fn_append ac_config_targets " $1"
  14792. ac_need_defaults=false ;;
  14793. esac
  14794. shift
  14795. done
  14796. ac_configure_extra_args=
  14797. if $ac_cs_silent; then
  14798. exec 6>/dev/null
  14799. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14800. fi
  14801. _ACEOF
  14802. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14803. if \$ac_cs_recheck; then
  14804. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14805. shift
  14806. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14807. CONFIG_SHELL='$SHELL'
  14808. export CONFIG_SHELL
  14809. exec "\$@"
  14810. fi
  14811. _ACEOF
  14812. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14813. exec 5>>config.log
  14814. {
  14815. echo
  14816. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14817. ## Running $as_me. ##
  14818. _ASBOX
  14819. $as_echo "$ac_log"
  14820. } >&5
  14821. _ACEOF
  14822. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14823. #
  14824. # INIT-COMMANDS
  14825. #
  14826. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14827. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14828. # if CDPATH is set.
  14829. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14830. sed_quote_subst='$sed_quote_subst'
  14831. double_quote_subst='$double_quote_subst'
  14832. delay_variable_subst='$delay_variable_subst'
  14833. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14834. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14835. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14836. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14837. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14838. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14839. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14840. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14841. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14842. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14843. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14844. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14845. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14846. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14847. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14848. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14849. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14850. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14851. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  14852. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  14853. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  14854. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  14855. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  14856. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  14857. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  14858. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  14859. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  14860. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  14861. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  14862. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  14863. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  14864. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  14865. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  14866. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  14867. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  14868. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  14869. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  14870. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14871. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14872. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  14873. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  14874. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  14875. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  14876. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  14877. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  14878. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  14879. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  14880. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  14881. 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"`'
  14882. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  14883. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  14884. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  14885. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  14886. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  14887. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  14888. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  14889. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  14890. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  14891. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  14892. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  14893. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  14894. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  14895. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  14896. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  14897. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14898. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  14899. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  14900. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  14901. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  14902. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  14903. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  14904. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14905. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  14906. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14907. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  14908. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14909. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  14910. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14911. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14912. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  14913. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  14914. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  14915. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  14916. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  14917. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  14918. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14919. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  14920. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  14921. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  14922. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  14923. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  14924. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  14925. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  14926. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  14927. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  14928. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  14929. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  14930. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  14931. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  14932. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  14933. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  14934. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14935. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  14936. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  14937. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  14938. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  14939. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  14940. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14941. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14942. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  14943. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  14944. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  14945. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  14946. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  14947. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  14948. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  14949. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  14950. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  14951. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  14952. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  14953. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  14954. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  14955. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  14956. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  14957. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  14958. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  14959. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  14960. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14961. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14962. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14963. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  14964. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  14965. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14966. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  14967. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  14968. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  14969. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  14970. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  14971. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  14972. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14973. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14974. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  14975. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14976. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14977. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14978. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14979. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14980. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14981. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  14982. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14983. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14984. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14985. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
  14986. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  14987. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  14988. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  14989. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  14990. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  14991. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  14992. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  14993. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  14994. fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
  14995. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  14996. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14997. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  14998. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  14999. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15000. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15001. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  15002. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  15003. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15004. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15005. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  15006. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  15007. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  15008. LTCC='$LTCC'
  15009. LTCFLAGS='$LTCFLAGS'
  15010. compiler='$compiler_DEFAULT'
  15011. # A function that is used when there is no print builtin or printf.
  15012. func_fallback_echo ()
  15013. {
  15014. eval 'cat <<_LTECHO_EOF
  15015. \$1
  15016. _LTECHO_EOF'
  15017. }
  15018. # Quote evaled strings.
  15019. for var in SHELL \
  15020. ECHO \
  15021. SED \
  15022. GREP \
  15023. EGREP \
  15024. FGREP \
  15025. LD \
  15026. NM \
  15027. LN_S \
  15028. lt_SP2NL \
  15029. lt_NL2SP \
  15030. reload_flag \
  15031. OBJDUMP \
  15032. deplibs_check_method \
  15033. file_magic_cmd \
  15034. AR \
  15035. AR_FLAGS \
  15036. STRIP \
  15037. RANLIB \
  15038. CC \
  15039. CFLAGS \
  15040. compiler \
  15041. lt_cv_sys_global_symbol_pipe \
  15042. lt_cv_sys_global_symbol_to_cdecl \
  15043. lt_cv_sys_global_symbol_to_c_name_address \
  15044. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15045. lt_prog_compiler_no_builtin_flag \
  15046. lt_prog_compiler_wl \
  15047. lt_prog_compiler_pic \
  15048. lt_prog_compiler_static \
  15049. lt_cv_prog_compiler_c_o \
  15050. need_locks \
  15051. DSYMUTIL \
  15052. NMEDIT \
  15053. LIPO \
  15054. OTOOL \
  15055. OTOOL64 \
  15056. shrext_cmds \
  15057. export_dynamic_flag_spec \
  15058. whole_archive_flag_spec \
  15059. compiler_needs_object \
  15060. with_gnu_ld \
  15061. allow_undefined_flag \
  15062. no_undefined_flag \
  15063. hardcode_libdir_flag_spec \
  15064. hardcode_libdir_flag_spec_ld \
  15065. hardcode_libdir_separator \
  15066. fix_srcfile_path \
  15067. exclude_expsyms \
  15068. include_expsyms \
  15069. file_list_spec \
  15070. variables_saved_for_relink \
  15071. libname_spec \
  15072. library_names_spec \
  15073. soname_spec \
  15074. install_override_mode \
  15075. finish_eval \
  15076. old_striplib \
  15077. striplib \
  15078. compiler_lib_search_dirs \
  15079. predep_objects \
  15080. postdep_objects \
  15081. predeps \
  15082. postdeps \
  15083. compiler_lib_search_path \
  15084. LD_CXX \
  15085. reload_flag_CXX \
  15086. compiler_CXX \
  15087. lt_prog_compiler_no_builtin_flag_CXX \
  15088. lt_prog_compiler_wl_CXX \
  15089. lt_prog_compiler_pic_CXX \
  15090. lt_prog_compiler_static_CXX \
  15091. lt_cv_prog_compiler_c_o_CXX \
  15092. export_dynamic_flag_spec_CXX \
  15093. whole_archive_flag_spec_CXX \
  15094. compiler_needs_object_CXX \
  15095. with_gnu_ld_CXX \
  15096. allow_undefined_flag_CXX \
  15097. no_undefined_flag_CXX \
  15098. hardcode_libdir_flag_spec_CXX \
  15099. hardcode_libdir_flag_spec_ld_CXX \
  15100. hardcode_libdir_separator_CXX \
  15101. fix_srcfile_path_CXX \
  15102. exclude_expsyms_CXX \
  15103. include_expsyms_CXX \
  15104. file_list_spec_CXX \
  15105. compiler_lib_search_dirs_CXX \
  15106. predep_objects_CXX \
  15107. postdep_objects_CXX \
  15108. predeps_CXX \
  15109. postdeps_CXX \
  15110. compiler_lib_search_path_CXX; do
  15111. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15112. *[\\\\\\\`\\"\\\$]*)
  15113. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  15114. ;;
  15115. *)
  15116. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15117. ;;
  15118. esac
  15119. done
  15120. # Double-quote double-evaled strings.
  15121. for var in reload_cmds \
  15122. old_postinstall_cmds \
  15123. old_postuninstall_cmds \
  15124. old_archive_cmds \
  15125. extract_expsyms_cmds \
  15126. old_archive_from_new_cmds \
  15127. old_archive_from_expsyms_cmds \
  15128. archive_cmds \
  15129. archive_expsym_cmds \
  15130. module_cmds \
  15131. module_expsym_cmds \
  15132. export_symbols_cmds \
  15133. prelink_cmds \
  15134. postinstall_cmds \
  15135. postuninstall_cmds \
  15136. finish_cmds \
  15137. sys_lib_search_path_spec \
  15138. sys_lib_dlsearch_path_spec \
  15139. reload_cmds_CXX \
  15140. old_archive_cmds_CXX \
  15141. old_archive_from_new_cmds_CXX \
  15142. old_archive_from_expsyms_cmds_CXX \
  15143. archive_cmds_CXX \
  15144. archive_expsym_cmds_CXX \
  15145. module_cmds_CXX \
  15146. module_expsym_cmds_CXX \
  15147. export_symbols_cmds_CXX \
  15148. prelink_cmds_CXX; do
  15149. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15150. *[\\\\\\\`\\"\\\$]*)
  15151. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  15152. ;;
  15153. *)
  15154. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15155. ;;
  15156. esac
  15157. done
  15158. ac_aux_dir='$ac_aux_dir'
  15159. xsi_shell='$xsi_shell'
  15160. lt_shell_append='$lt_shell_append'
  15161. # See if we are running on zsh, and set the options which allow our
  15162. # commands through without removal of \ escapes INIT.
  15163. if test -n "\${ZSH_VERSION+set}" ; then
  15164. setopt NO_GLOB_SUBST
  15165. fi
  15166. PACKAGE='$PACKAGE'
  15167. VERSION='$VERSION'
  15168. TIMESTAMP='$TIMESTAMP'
  15169. RM='$RM'
  15170. ofile='$ofile'
  15171. _ACEOF
  15172. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15173. # Handling of arguments.
  15174. for ac_config_target in $ac_config_targets
  15175. do
  15176. case $ac_config_target in
  15177. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15178. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15179. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15180. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  15181. "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;;
  15182. "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
  15183. "AI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/Makefile" ;;
  15184. "AI/StupidAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/StupidAI/Makefile" ;;
  15185. "AI/GeniusAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/GeniusAI/Makefile" ;;
  15186. "AI/EmptyAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/EmptyAI/Makefile" ;;
  15187. "Scripting/ERM/Makefile") CONFIG_FILES="$CONFIG_FILES Scripting/ERM/Makefile" ;;
  15188. "Odpalarka/Makefile") CONFIG_FILES="$CONFIG_FILES Odpalarka/Makefile" ;;
  15189. "VCMI_BattleAiHost/Makefile") CONFIG_FILES="$CONFIG_FILES VCMI_BattleAiHost/Makefile" ;;
  15190. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  15191. esac
  15192. done
  15193. # If the user did not use the arguments to specify the items to instantiate,
  15194. # then the envvar interface is used. Set only those that are not.
  15195. # We use the long form for the default assignment because of an extremely
  15196. # bizarre bug on SunOS 4.1.3.
  15197. if $ac_need_defaults; then
  15198. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15199. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15200. fi
  15201. # Have a temporary directory for convenience. Make it in the build tree
  15202. # simply because there is no reason against having it here, and in addition,
  15203. # creating and moving files from /tmp can sometimes cause problems.
  15204. # Hook for its removal unless debugging.
  15205. # Note that there is a small window in which the directory will not be cleaned:
  15206. # after its creation but before its name has been assigned to `$tmp'.
  15207. $debug ||
  15208. {
  15209. tmp=
  15210. trap 'exit_status=$?
  15211. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  15212. ' 0
  15213. trap 'as_fn_exit 1' 1 2 13 15
  15214. }
  15215. # Create a (secure) tmp directory for tmp files.
  15216. {
  15217. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15218. test -n "$tmp" && test -d "$tmp"
  15219. } ||
  15220. {
  15221. tmp=./conf$$-$RANDOM
  15222. (umask 077 && mkdir "$tmp")
  15223. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  15224. # Set up the scripts for CONFIG_FILES section.
  15225. # No need to generate them if there are no CONFIG_FILES.
  15226. # This happens for instance with `./config.status config.h'.
  15227. if test -n "$CONFIG_FILES"; then
  15228. ac_cr=`echo X | tr X '\015'`
  15229. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15230. # But we know of no other shell where ac_cr would be empty at this
  15231. # point, so we can use a bashism as a fallback.
  15232. if test "x$ac_cr" = x; then
  15233. eval ac_cr=\$\'\\r\'
  15234. fi
  15235. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15236. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15237. ac_cs_awk_cr='\r'
  15238. else
  15239. ac_cs_awk_cr=$ac_cr
  15240. fi
  15241. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  15242. _ACEOF
  15243. {
  15244. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15245. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15246. echo "_ACEOF"
  15247. } >conf$$subs.sh ||
  15248. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  15249. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  15250. ac_delim='%!_!# '
  15251. for ac_last_try in false false false false false :; do
  15252. . ./conf$$subs.sh ||
  15253. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  15254. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15255. if test $ac_delim_n = $ac_delim_num; then
  15256. break
  15257. elif $ac_last_try; then
  15258. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  15259. else
  15260. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15261. fi
  15262. done
  15263. rm -f conf$$subs.sh
  15264. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15265. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  15266. _ACEOF
  15267. sed -n '
  15268. h
  15269. s/^/S["/; s/!.*/"]=/
  15270. p
  15271. g
  15272. s/^[^!]*!//
  15273. :repl
  15274. t repl
  15275. s/'"$ac_delim"'$//
  15276. t delim
  15277. :nl
  15278. h
  15279. s/\(.\{148\}\)..*/\1/
  15280. t more1
  15281. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15282. p
  15283. n
  15284. b repl
  15285. :more1
  15286. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15287. p
  15288. g
  15289. s/.\{148\}//
  15290. t nl
  15291. :delim
  15292. h
  15293. s/\(.\{148\}\)..*/\1/
  15294. t more2
  15295. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15296. p
  15297. b
  15298. :more2
  15299. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15300. p
  15301. g
  15302. s/.\{148\}//
  15303. t delim
  15304. ' <conf$$subs.awk | sed '
  15305. /^[^""]/{
  15306. N
  15307. s/\n//
  15308. }
  15309. ' >>$CONFIG_STATUS || ac_write_fail=1
  15310. rm -f conf$$subs.awk
  15311. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15312. _ACAWK
  15313. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  15314. for (key in S) S_is_set[key] = 1
  15315. FS = ""
  15316. }
  15317. {
  15318. line = $ 0
  15319. nfields = split(line, field, "@")
  15320. substed = 0
  15321. len = length(field[1])
  15322. for (i = 2; i < nfields; i++) {
  15323. key = field[i]
  15324. keylen = length(key)
  15325. if (S_is_set[key]) {
  15326. value = S[key]
  15327. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15328. len += length(value) + length(field[++i])
  15329. substed = 1
  15330. } else
  15331. len += 1 + keylen
  15332. }
  15333. print line
  15334. }
  15335. _ACAWK
  15336. _ACEOF
  15337. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15338. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15339. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15340. else
  15341. cat
  15342. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  15343. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  15344. _ACEOF
  15345. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  15346. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  15347. # trailing colons and then remove the whole line if VPATH becomes empty
  15348. # (actually we leave an empty line to preserve line numbers).
  15349. if test "x$srcdir" = x.; then
  15350. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  15351. s/:*\$(srcdir):*/:/
  15352. s/:*\${srcdir}:*/:/
  15353. s/:*@srcdir@:*/:/
  15354. s/^\([^=]*=[ ]*\):*/\1/
  15355. s/:*$//
  15356. s/^[^=]*=[ ]*$//
  15357. }'
  15358. fi
  15359. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15360. fi # test -n "$CONFIG_FILES"
  15361. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  15362. shift
  15363. for ac_tag
  15364. do
  15365. case $ac_tag in
  15366. :[FHLC]) ac_mode=$ac_tag; continue;;
  15367. esac
  15368. case $ac_mode$ac_tag in
  15369. :[FHL]*:*);;
  15370. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15371. :[FH]-) ac_tag=-:-;;
  15372. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15373. esac
  15374. ac_save_IFS=$IFS
  15375. IFS=:
  15376. set x $ac_tag
  15377. IFS=$ac_save_IFS
  15378. shift
  15379. ac_file=$1
  15380. shift
  15381. case $ac_mode in
  15382. :L) ac_source=$1;;
  15383. :[FH])
  15384. ac_file_inputs=
  15385. for ac_f
  15386. do
  15387. case $ac_f in
  15388. -) ac_f="$tmp/stdin";;
  15389. *) # Look for the file first in the build tree, then in the source tree
  15390. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15391. # because $ac_f cannot contain `:'.
  15392. test -f "$ac_f" ||
  15393. case $ac_f in
  15394. [\\/$]*) false;;
  15395. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15396. esac ||
  15397. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15398. esac
  15399. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15400. as_fn_append ac_file_inputs " '$ac_f'"
  15401. done
  15402. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15403. # use $as_me), people would be surprised to read:
  15404. # /* config.h. Generated by config.status. */
  15405. configure_input='Generated from '`
  15406. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15407. `' by configure.'
  15408. if test x"$ac_file" != x-; then
  15409. configure_input="$ac_file. $configure_input"
  15410. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15411. $as_echo "$as_me: creating $ac_file" >&6;}
  15412. fi
  15413. # Neutralize special characters interpreted by sed in replacement strings.
  15414. case $configure_input in #(
  15415. *\&* | *\|* | *\\* )
  15416. ac_sed_conf_input=`$as_echo "$configure_input" |
  15417. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15418. *) ac_sed_conf_input=$configure_input;;
  15419. esac
  15420. case $ac_tag in
  15421. *:-:* | *:-) cat >"$tmp/stdin" \
  15422. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  15423. esac
  15424. ;;
  15425. esac
  15426. ac_dir=`$as_dirname -- "$ac_file" ||
  15427. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15428. X"$ac_file" : 'X\(//\)[^/]' \| \
  15429. X"$ac_file" : 'X\(//\)$' \| \
  15430. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15431. $as_echo X"$ac_file" |
  15432. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15433. s//\1/
  15434. q
  15435. }
  15436. /^X\(\/\/\)[^/].*/{
  15437. s//\1/
  15438. q
  15439. }
  15440. /^X\(\/\/\)$/{
  15441. s//\1/
  15442. q
  15443. }
  15444. /^X\(\/\).*/{
  15445. s//\1/
  15446. q
  15447. }
  15448. s/.*/./; q'`
  15449. as_dir="$ac_dir"; as_fn_mkdir_p
  15450. ac_builddir=.
  15451. case "$ac_dir" in
  15452. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15453. *)
  15454. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15455. # A ".." for each directory in $ac_dir_suffix.
  15456. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15457. case $ac_top_builddir_sub in
  15458. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15459. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15460. esac ;;
  15461. esac
  15462. ac_abs_top_builddir=$ac_pwd
  15463. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15464. # for backward compatibility:
  15465. ac_top_builddir=$ac_top_build_prefix
  15466. case $srcdir in
  15467. .) # We are building in place.
  15468. ac_srcdir=.
  15469. ac_top_srcdir=$ac_top_builddir_sub
  15470. ac_abs_top_srcdir=$ac_pwd ;;
  15471. [\\/]* | ?:[\\/]* ) # Absolute name.
  15472. ac_srcdir=$srcdir$ac_dir_suffix;
  15473. ac_top_srcdir=$srcdir
  15474. ac_abs_top_srcdir=$srcdir ;;
  15475. *) # Relative name.
  15476. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15477. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15478. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15479. esac
  15480. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15481. case $ac_mode in
  15482. :F)
  15483. #
  15484. # CONFIG_FILE
  15485. #
  15486. case $INSTALL in
  15487. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15488. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15489. esac
  15490. ac_MKDIR_P=$MKDIR_P
  15491. case $MKDIR_P in
  15492. [\\/$]* | ?:[\\/]* ) ;;
  15493. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15494. esac
  15495. _ACEOF
  15496. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15497. # If the template does not know about datarootdir, expand it.
  15498. # FIXME: This hack should be removed a few years after 2.60.
  15499. ac_datarootdir_hack=; ac_datarootdir_seen=
  15500. ac_sed_dataroot='
  15501. /datarootdir/ {
  15502. p
  15503. q
  15504. }
  15505. /@datadir@/p
  15506. /@docdir@/p
  15507. /@infodir@/p
  15508. /@localedir@/p
  15509. /@mandir@/p'
  15510. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15511. *datarootdir*) ac_datarootdir_seen=yes;;
  15512. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15513. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15514. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15515. _ACEOF
  15516. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15517. ac_datarootdir_hack='
  15518. s&@datadir@&$datadir&g
  15519. s&@docdir@&$docdir&g
  15520. s&@infodir@&$infodir&g
  15521. s&@localedir@&$localedir&g
  15522. s&@mandir@&$mandir&g
  15523. s&\\\${datarootdir}&$datarootdir&g' ;;
  15524. esac
  15525. _ACEOF
  15526. # Neutralize VPATH when `$srcdir' = `.'.
  15527. # Shell code in configure.ac might set extrasub.
  15528. # FIXME: do we really want to maintain this feature?
  15529. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15530. ac_sed_extra="$ac_vpsub
  15531. $extrasub
  15532. _ACEOF
  15533. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15534. :t
  15535. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15536. s|@configure_input@|$ac_sed_conf_input|;t t
  15537. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15538. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15539. s&@srcdir@&$ac_srcdir&;t t
  15540. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15541. s&@top_srcdir@&$ac_top_srcdir&;t t
  15542. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15543. s&@builddir@&$ac_builddir&;t t
  15544. s&@abs_builddir@&$ac_abs_builddir&;t t
  15545. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15546. s&@INSTALL@&$ac_INSTALL&;t t
  15547. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15548. $ac_datarootdir_hack
  15549. "
  15550. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  15551. || as_fn_error "could not create $ac_file" "$LINENO" 5
  15552. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15553. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  15554. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  15555. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15556. which seems to be undefined. Please make sure it is defined." >&5
  15557. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15558. which seems to be undefined. Please make sure it is defined." >&2;}
  15559. rm -f "$tmp/stdin"
  15560. case $ac_file in
  15561. -) cat "$tmp/out" && rm -f "$tmp/out";;
  15562. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  15563. esac \
  15564. || as_fn_error "could not create $ac_file" "$LINENO" 5
  15565. ;;
  15566. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15567. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15568. ;;
  15569. esac
  15570. case $ac_file$ac_mode in
  15571. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15572. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  15573. # are listed without --file. Let's play safe and only enable the eval
  15574. # if we detect the quoting.
  15575. case $CONFIG_FILES in
  15576. *\'*) eval set x "$CONFIG_FILES" ;;
  15577. *) set x $CONFIG_FILES ;;
  15578. esac
  15579. shift
  15580. for mf
  15581. do
  15582. # Strip MF so we end up with the name of the file.
  15583. mf=`echo "$mf" | sed -e 's/:.*$//'`
  15584. # Check whether this is an Automake generated Makefile or not.
  15585. # We used to match only the files named `Makefile.in', but
  15586. # some people rename them; so instead we look at the file content.
  15587. # Grep'ing the first line is not enough: some people post-process
  15588. # each Makefile.in and add a new line on top of each file to say so.
  15589. # Grep'ing the whole file is not good either: AIX grep has a line
  15590. # limit of 2048, but all sed's we know have understand at least 4000.
  15591. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  15592. dirpart=`$as_dirname -- "$mf" ||
  15593. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15594. X"$mf" : 'X\(//\)[^/]' \| \
  15595. X"$mf" : 'X\(//\)$' \| \
  15596. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  15597. $as_echo X"$mf" |
  15598. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15599. s//\1/
  15600. q
  15601. }
  15602. /^X\(\/\/\)[^/].*/{
  15603. s//\1/
  15604. q
  15605. }
  15606. /^X\(\/\/\)$/{
  15607. s//\1/
  15608. q
  15609. }
  15610. /^X\(\/\).*/{
  15611. s//\1/
  15612. q
  15613. }
  15614. s/.*/./; q'`
  15615. else
  15616. continue
  15617. fi
  15618. # Extract the definition of DEPDIR, am__include, and am__quote
  15619. # from the Makefile without running `make'.
  15620. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15621. test -z "$DEPDIR" && continue
  15622. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15623. test -z "am__include" && continue
  15624. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15625. # When using ansi2knr, U may be empty or an underscore; expand it
  15626. U=`sed -n 's/^U = //p' < "$mf"`
  15627. # Find all dependency output files, they are included files with
  15628. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15629. # simplest approach to changing $(DEPDIR) to its actual value in the
  15630. # expansion.
  15631. for file in `sed -n "
  15632. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15633. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  15634. # Make sure the directory exists.
  15635. test -f "$dirpart/$file" && continue
  15636. fdir=`$as_dirname -- "$file" ||
  15637. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15638. X"$file" : 'X\(//\)[^/]' \| \
  15639. X"$file" : 'X\(//\)$' \| \
  15640. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15641. $as_echo X"$file" |
  15642. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15643. s//\1/
  15644. q
  15645. }
  15646. /^X\(\/\/\)[^/].*/{
  15647. s//\1/
  15648. q
  15649. }
  15650. /^X\(\/\/\)$/{
  15651. s//\1/
  15652. q
  15653. }
  15654. /^X\(\/\).*/{
  15655. s//\1/
  15656. q
  15657. }
  15658. s/.*/./; q'`
  15659. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  15660. # echo "creating $dirpart/$file"
  15661. echo '# dummy' > "$dirpart/$file"
  15662. done
  15663. done
  15664. }
  15665. ;;
  15666. "libtool":C)
  15667. # See if we are running on zsh, and set the options which allow our
  15668. # commands through without removal of \ escapes.
  15669. if test -n "${ZSH_VERSION+set}" ; then
  15670. setopt NO_GLOB_SUBST
  15671. fi
  15672. cfgfile="${ofile}T"
  15673. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15674. $RM "$cfgfile"
  15675. cat <<_LT_EOF >> "$cfgfile"
  15676. #! $SHELL
  15677. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15678. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15679. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15680. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15681. #
  15682. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15683. # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
  15684. # Inc.
  15685. # Written by Gordon Matzigkeit, 1996
  15686. #
  15687. # This file is part of GNU Libtool.
  15688. #
  15689. # GNU Libtool is free software; you can redistribute it and/or
  15690. # modify it under the terms of the GNU General Public License as
  15691. # published by the Free Software Foundation; either version 2 of
  15692. # the License, or (at your option) any later version.
  15693. #
  15694. # As a special exception to the GNU General Public License,
  15695. # if you distribute this file as part of a program or library that
  15696. # is built using GNU Libtool, you may include this file under the
  15697. # same distribution terms that you use for the rest of that program.
  15698. #
  15699. # GNU Libtool is distributed in the hope that it will be useful,
  15700. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15701. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15702. # GNU General Public License for more details.
  15703. #
  15704. # You should have received a copy of the GNU General Public License
  15705. # along with GNU Libtool; see the file COPYING. If not, a copy
  15706. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15707. # obtained by writing to the Free Software Foundation, Inc.,
  15708. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15709. # The names of the tagged configurations supported by this script.
  15710. available_tags="CXX "
  15711. # ### BEGIN LIBTOOL CONFIG
  15712. # Whether or not to build shared libraries.
  15713. build_libtool_libs=$enable_shared
  15714. # Whether or not to build static libraries.
  15715. build_old_libs=$enable_static
  15716. # Which release of libtool.m4 was used?
  15717. macro_version=$macro_version
  15718. macro_revision=$macro_revision
  15719. # What type of objects to build.
  15720. pic_mode=$pic_mode
  15721. # Whether or not to optimize for fast installation.
  15722. fast_install=$enable_fast_install
  15723. # Shell to use when invoking shell scripts.
  15724. SHELL=$lt_SHELL
  15725. # An echo program that protects backslashes.
  15726. ECHO=$lt_ECHO
  15727. # The host system.
  15728. host_alias=$host_alias
  15729. host=$host
  15730. host_os=$host_os
  15731. # The build system.
  15732. build_alias=$build_alias
  15733. build=$build
  15734. build_os=$build_os
  15735. # A sed program that does not truncate output.
  15736. SED=$lt_SED
  15737. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15738. Xsed="\$SED -e 1s/^X//"
  15739. # A grep program that handles long lines.
  15740. GREP=$lt_GREP
  15741. # An ERE matcher.
  15742. EGREP=$lt_EGREP
  15743. # A literal string matcher.
  15744. FGREP=$lt_FGREP
  15745. # A BSD- or MS-compatible name lister.
  15746. NM=$lt_NM
  15747. # Whether we need soft or hard links.
  15748. LN_S=$lt_LN_S
  15749. # What is the maximum length of a command?
  15750. max_cmd_len=$max_cmd_len
  15751. # Object file suffix (normally "o").
  15752. objext=$ac_objext
  15753. # Executable file suffix (normally "").
  15754. exeext=$exeext
  15755. # whether the shell understands "unset".
  15756. lt_unset=$lt_unset
  15757. # turn spaces into newlines.
  15758. SP2NL=$lt_lt_SP2NL
  15759. # turn newlines into spaces.
  15760. NL2SP=$lt_lt_NL2SP
  15761. # An object symbol dumper.
  15762. OBJDUMP=$lt_OBJDUMP
  15763. # Method to check whether dependent libraries are shared objects.
  15764. deplibs_check_method=$lt_deplibs_check_method
  15765. # Command to use when deplibs_check_method == "file_magic".
  15766. file_magic_cmd=$lt_file_magic_cmd
  15767. # The archiver.
  15768. AR=$lt_AR
  15769. AR_FLAGS=$lt_AR_FLAGS
  15770. # A symbol stripping program.
  15771. STRIP=$lt_STRIP
  15772. # Commands used to install an old-style archive.
  15773. RANLIB=$lt_RANLIB
  15774. old_postinstall_cmds=$lt_old_postinstall_cmds
  15775. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15776. # Whether to use a lock for old archive extraction.
  15777. lock_old_archive_extraction=$lock_old_archive_extraction
  15778. # A C compiler.
  15779. LTCC=$lt_CC
  15780. # LTCC compiler flags.
  15781. LTCFLAGS=$lt_CFLAGS
  15782. # Take the output of nm and produce a listing of raw symbols and C names.
  15783. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15784. # Transform the output of nm in a proper C declaration.
  15785. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15786. # Transform the output of nm in a C name address pair.
  15787. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15788. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15789. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15790. # The name of the directory that contains temporary libtool files.
  15791. objdir=$objdir
  15792. # Used to examine libraries when file_magic_cmd begins with "file".
  15793. MAGIC_CMD=$MAGIC_CMD
  15794. # Must we lock files when doing compilation?
  15795. need_locks=$lt_need_locks
  15796. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15797. DSYMUTIL=$lt_DSYMUTIL
  15798. # Tool to change global to local symbols on Mac OS X.
  15799. NMEDIT=$lt_NMEDIT
  15800. # Tool to manipulate fat objects and archives on Mac OS X.
  15801. LIPO=$lt_LIPO
  15802. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15803. OTOOL=$lt_OTOOL
  15804. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15805. OTOOL64=$lt_OTOOL64
  15806. # Old archive suffix (normally "a").
  15807. libext=$libext
  15808. # Shared library suffix (normally ".so").
  15809. shrext_cmds=$lt_shrext_cmds
  15810. # The commands to extract the exported symbol list from a shared archive.
  15811. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15812. # Variables whose values should be saved in libtool wrapper scripts and
  15813. # restored at link time.
  15814. variables_saved_for_relink=$lt_variables_saved_for_relink
  15815. # Do we need the "lib" prefix for modules?
  15816. need_lib_prefix=$need_lib_prefix
  15817. # Do we need a version for libraries?
  15818. need_version=$need_version
  15819. # Library versioning type.
  15820. version_type=$version_type
  15821. # Shared library runtime path variable.
  15822. runpath_var=$runpath_var
  15823. # Shared library path variable.
  15824. shlibpath_var=$shlibpath_var
  15825. # Is shlibpath searched before the hard-coded library search path?
  15826. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15827. # Format of library name prefix.
  15828. libname_spec=$lt_libname_spec
  15829. # List of archive names. First name is the real one, the rest are links.
  15830. # The last name is the one that the linker finds with -lNAME
  15831. library_names_spec=$lt_library_names_spec
  15832. # The coded name of the library, if different from the real name.
  15833. soname_spec=$lt_soname_spec
  15834. # Permission mode override for installation of shared libraries.
  15835. install_override_mode=$lt_install_override_mode
  15836. # Command to use after installation of a shared archive.
  15837. postinstall_cmds=$lt_postinstall_cmds
  15838. # Command to use after uninstallation of a shared archive.
  15839. postuninstall_cmds=$lt_postuninstall_cmds
  15840. # Commands used to finish a libtool library installation in a directory.
  15841. finish_cmds=$lt_finish_cmds
  15842. # As "finish_cmds", except a single script fragment to be evaled but
  15843. # not shown.
  15844. finish_eval=$lt_finish_eval
  15845. # Whether we should hardcode library paths into libraries.
  15846. hardcode_into_libs=$hardcode_into_libs
  15847. # Compile-time system search path for libraries.
  15848. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15849. # Run-time system search path for libraries.
  15850. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15851. # Whether dlopen is supported.
  15852. dlopen_support=$enable_dlopen
  15853. # Whether dlopen of programs is supported.
  15854. dlopen_self=$enable_dlopen_self
  15855. # Whether dlopen of statically linked programs is supported.
  15856. dlopen_self_static=$enable_dlopen_self_static
  15857. # Commands to strip libraries.
  15858. old_striplib=$lt_old_striplib
  15859. striplib=$lt_striplib
  15860. # The linker used to build libraries.
  15861. LD=$lt_LD
  15862. # How to create reloadable object files.
  15863. reload_flag=$lt_reload_flag
  15864. reload_cmds=$lt_reload_cmds
  15865. # Commands used to build an old-style archive.
  15866. old_archive_cmds=$lt_old_archive_cmds
  15867. # A language specific compiler.
  15868. CC=$lt_compiler
  15869. # Is the compiler the GNU compiler?
  15870. with_gcc=$GCC
  15871. # Compiler flag to turn off builtin functions.
  15872. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15873. # How to pass a linker flag through the compiler.
  15874. wl=$lt_lt_prog_compiler_wl
  15875. # Additional compiler flags for building library objects.
  15876. pic_flag=$lt_lt_prog_compiler_pic
  15877. # Compiler flag to prevent dynamic linking.
  15878. link_static_flag=$lt_lt_prog_compiler_static
  15879. # Does compiler simultaneously support -c and -o options?
  15880. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15881. # Whether or not to add -lc for building shared libraries.
  15882. build_libtool_need_lc=$archive_cmds_need_lc
  15883. # Whether or not to disallow shared libs when runtime libs are static.
  15884. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15885. # Compiler flag to allow reflexive dlopens.
  15886. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15887. # Compiler flag to generate shared objects directly from archives.
  15888. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15889. # Whether the compiler copes with passing no objects directly.
  15890. compiler_needs_object=$lt_compiler_needs_object
  15891. # Create an old-style archive from a shared archive.
  15892. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15893. # Create a temporary old-style archive to link instead of a shared archive.
  15894. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15895. # Commands used to build a shared archive.
  15896. archive_cmds=$lt_archive_cmds
  15897. archive_expsym_cmds=$lt_archive_expsym_cmds
  15898. # Commands used to build a loadable module if different from building
  15899. # a shared archive.
  15900. module_cmds=$lt_module_cmds
  15901. module_expsym_cmds=$lt_module_expsym_cmds
  15902. # Whether we are building with GNU ld or not.
  15903. with_gnu_ld=$lt_with_gnu_ld
  15904. # Flag that allows shared libraries with undefined symbols to be built.
  15905. allow_undefined_flag=$lt_allow_undefined_flag
  15906. # Flag that enforces no undefined symbols.
  15907. no_undefined_flag=$lt_no_undefined_flag
  15908. # Flag to hardcode \$libdir into a binary during linking.
  15909. # This must work even if \$libdir does not exist
  15910. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15911. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15912. # during linking. This must work even if \$libdir does not exist.
  15913. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  15914. # Whether we need a single "-rpath" flag with a separated argument.
  15915. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15916. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15917. # DIR into the resulting binary.
  15918. hardcode_direct=$hardcode_direct
  15919. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15920. # DIR into the resulting binary and the resulting library dependency is
  15921. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15922. # library is relocated.
  15923. hardcode_direct_absolute=$hardcode_direct_absolute
  15924. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15925. # into the resulting binary.
  15926. hardcode_minus_L=$hardcode_minus_L
  15927. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15928. # into the resulting binary.
  15929. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15930. # Set to "yes" if building a shared library automatically hardcodes DIR
  15931. # into the library and all subsequent libraries and executables linked
  15932. # against it.
  15933. hardcode_automatic=$hardcode_automatic
  15934. # Set to yes if linker adds runtime paths of dependent libraries
  15935. # to runtime path list.
  15936. inherit_rpath=$inherit_rpath
  15937. # Whether libtool must link a program against all its dependency libraries.
  15938. link_all_deplibs=$link_all_deplibs
  15939. # Fix the shell variable \$srcfile for the compiler.
  15940. fix_srcfile_path=$lt_fix_srcfile_path
  15941. # Set to "yes" if exported symbols are required.
  15942. always_export_symbols=$always_export_symbols
  15943. # The commands to list exported symbols.
  15944. export_symbols_cmds=$lt_export_symbols_cmds
  15945. # Symbols that should not be listed in the preloaded symbols.
  15946. exclude_expsyms=$lt_exclude_expsyms
  15947. # Symbols that must always be exported.
  15948. include_expsyms=$lt_include_expsyms
  15949. # Commands necessary for linking programs (against libraries) with templates.
  15950. prelink_cmds=$lt_prelink_cmds
  15951. # Specify filename containing input files.
  15952. file_list_spec=$lt_file_list_spec
  15953. # How to hardcode a shared library path into an executable.
  15954. hardcode_action=$hardcode_action
  15955. # The directories searched by this compiler when creating a shared library.
  15956. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  15957. # Dependencies to place before and after the objects being linked to
  15958. # create a shared library.
  15959. predep_objects=$lt_predep_objects
  15960. postdep_objects=$lt_postdep_objects
  15961. predeps=$lt_predeps
  15962. postdeps=$lt_postdeps
  15963. # The library search path used internally by the compiler when linking
  15964. # a shared library.
  15965. compiler_lib_search_path=$lt_compiler_lib_search_path
  15966. # ### END LIBTOOL CONFIG
  15967. _LT_EOF
  15968. case $host_os in
  15969. aix3*)
  15970. cat <<\_LT_EOF >> "$cfgfile"
  15971. # AIX sometimes has problems with the GCC collect2 program. For some
  15972. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15973. # vanish in a puff of smoke.
  15974. if test "X${COLLECT_NAMES+set}" != Xset; then
  15975. COLLECT_NAMES=
  15976. export COLLECT_NAMES
  15977. fi
  15978. _LT_EOF
  15979. ;;
  15980. esac
  15981. ltmain="$ac_aux_dir/ltmain.sh"
  15982. # We use sed instead of cat because bash on DJGPP gets confused if
  15983. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15984. # text mode, it properly converts lines to CR/LF. This bash problem
  15985. # is reportedly fixed, but why not run on old versions too?
  15986. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  15987. || (rm -f "$cfgfile"; exit 1)
  15988. case $xsi_shell in
  15989. yes)
  15990. cat << \_LT_EOF >> "$cfgfile"
  15991. # func_dirname file append nondir_replacement
  15992. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15993. # otherwise set result to NONDIR_REPLACEMENT.
  15994. func_dirname ()
  15995. {
  15996. case ${1} in
  15997. */*) func_dirname_result="${1%/*}${2}" ;;
  15998. * ) func_dirname_result="${3}" ;;
  15999. esac
  16000. }
  16001. # func_basename file
  16002. func_basename ()
  16003. {
  16004. func_basename_result="${1##*/}"
  16005. }
  16006. # func_dirname_and_basename file append nondir_replacement
  16007. # perform func_basename and func_dirname in a single function
  16008. # call:
  16009. # dirname: Compute the dirname of FILE. If nonempty,
  16010. # add APPEND to the result, otherwise set result
  16011. # to NONDIR_REPLACEMENT.
  16012. # value returned in "$func_dirname_result"
  16013. # basename: Compute filename of FILE.
  16014. # value retuned in "$func_basename_result"
  16015. # Implementation must be kept synchronized with func_dirname
  16016. # and func_basename. For efficiency, we do not delegate to
  16017. # those functions but instead duplicate the functionality here.
  16018. func_dirname_and_basename ()
  16019. {
  16020. case ${1} in
  16021. */*) func_dirname_result="${1%/*}${2}" ;;
  16022. * ) func_dirname_result="${3}" ;;
  16023. esac
  16024. func_basename_result="${1##*/}"
  16025. }
  16026. # func_stripname prefix suffix name
  16027. # strip PREFIX and SUFFIX off of NAME.
  16028. # PREFIX and SUFFIX must not contain globbing or regex special
  16029. # characters, hashes, percent signs, but SUFFIX may contain a leading
  16030. # dot (in which case that matches only a dot).
  16031. func_stripname ()
  16032. {
  16033. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  16034. # positional parameters, so assign one to ordinary parameter first.
  16035. func_stripname_result=${3}
  16036. func_stripname_result=${func_stripname_result#"${1}"}
  16037. func_stripname_result=${func_stripname_result%"${2}"}
  16038. }
  16039. # func_opt_split
  16040. func_opt_split ()
  16041. {
  16042. func_opt_split_opt=${1%%=*}
  16043. func_opt_split_arg=${1#*=}
  16044. }
  16045. # func_lo2o object
  16046. func_lo2o ()
  16047. {
  16048. case ${1} in
  16049. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  16050. *) func_lo2o_result=${1} ;;
  16051. esac
  16052. }
  16053. # func_xform libobj-or-source
  16054. func_xform ()
  16055. {
  16056. func_xform_result=${1%.*}.lo
  16057. }
  16058. # func_arith arithmetic-term...
  16059. func_arith ()
  16060. {
  16061. func_arith_result=$(( $* ))
  16062. }
  16063. # func_len string
  16064. # STRING may not start with a hyphen.
  16065. func_len ()
  16066. {
  16067. func_len_result=${#1}
  16068. }
  16069. _LT_EOF
  16070. ;;
  16071. *) # Bourne compatible functions.
  16072. cat << \_LT_EOF >> "$cfgfile"
  16073. # func_dirname file append nondir_replacement
  16074. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  16075. # otherwise set result to NONDIR_REPLACEMENT.
  16076. func_dirname ()
  16077. {
  16078. # Extract subdirectory from the argument.
  16079. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  16080. if test "X$func_dirname_result" = "X${1}"; then
  16081. func_dirname_result="${3}"
  16082. else
  16083. func_dirname_result="$func_dirname_result${2}"
  16084. fi
  16085. }
  16086. # func_basename file
  16087. func_basename ()
  16088. {
  16089. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  16090. }
  16091. # func_stripname prefix suffix name
  16092. # strip PREFIX and SUFFIX off of NAME.
  16093. # PREFIX and SUFFIX must not contain globbing or regex special
  16094. # characters, hashes, percent signs, but SUFFIX may contain a leading
  16095. # dot (in which case that matches only a dot).
  16096. # func_strip_suffix prefix name
  16097. func_stripname ()
  16098. {
  16099. case ${2} in
  16100. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  16101. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  16102. esac
  16103. }
  16104. # sed scripts:
  16105. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  16106. my_sed_long_arg='1s/^-[^=]*=//'
  16107. # func_opt_split
  16108. func_opt_split ()
  16109. {
  16110. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  16111. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  16112. }
  16113. # func_lo2o object
  16114. func_lo2o ()
  16115. {
  16116. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  16117. }
  16118. # func_xform libobj-or-source
  16119. func_xform ()
  16120. {
  16121. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  16122. }
  16123. # func_arith arithmetic-term...
  16124. func_arith ()
  16125. {
  16126. func_arith_result=`expr "$@"`
  16127. }
  16128. # func_len string
  16129. # STRING may not start with a hyphen.
  16130. func_len ()
  16131. {
  16132. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  16133. }
  16134. _LT_EOF
  16135. esac
  16136. case $lt_shell_append in
  16137. yes)
  16138. cat << \_LT_EOF >> "$cfgfile"
  16139. # func_append var value
  16140. # Append VALUE to the end of shell variable VAR.
  16141. func_append ()
  16142. {
  16143. eval "$1+=\$2"
  16144. }
  16145. _LT_EOF
  16146. ;;
  16147. *)
  16148. cat << \_LT_EOF >> "$cfgfile"
  16149. # func_append var value
  16150. # Append VALUE to the end of shell variable VAR.
  16151. func_append ()
  16152. {
  16153. eval "$1=\$$1\$2"
  16154. }
  16155. _LT_EOF
  16156. ;;
  16157. esac
  16158. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  16159. || (rm -f "$cfgfile"; exit 1)
  16160. mv -f "$cfgfile" "$ofile" ||
  16161. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16162. chmod +x "$ofile"
  16163. cat <<_LT_EOF >> "$ofile"
  16164. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  16165. # The linker used to build libraries.
  16166. LD=$lt_LD_CXX
  16167. # How to create reloadable object files.
  16168. reload_flag=$lt_reload_flag_CXX
  16169. reload_cmds=$lt_reload_cmds_CXX
  16170. # Commands used to build an old-style archive.
  16171. old_archive_cmds=$lt_old_archive_cmds_CXX
  16172. # A language specific compiler.
  16173. CC=$lt_compiler_CXX
  16174. # Is the compiler the GNU compiler?
  16175. with_gcc=$GCC_CXX
  16176. # Compiler flag to turn off builtin functions.
  16177. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  16178. # How to pass a linker flag through the compiler.
  16179. wl=$lt_lt_prog_compiler_wl_CXX
  16180. # Additional compiler flags for building library objects.
  16181. pic_flag=$lt_lt_prog_compiler_pic_CXX
  16182. # Compiler flag to prevent dynamic linking.
  16183. link_static_flag=$lt_lt_prog_compiler_static_CXX
  16184. # Does compiler simultaneously support -c and -o options?
  16185. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  16186. # Whether or not to add -lc for building shared libraries.
  16187. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  16188. # Whether or not to disallow shared libs when runtime libs are static.
  16189. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  16190. # Compiler flag to allow reflexive dlopens.
  16191. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  16192. # Compiler flag to generate shared objects directly from archives.
  16193. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  16194. # Whether the compiler copes with passing no objects directly.
  16195. compiler_needs_object=$lt_compiler_needs_object_CXX
  16196. # Create an old-style archive from a shared archive.
  16197. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  16198. # Create a temporary old-style archive to link instead of a shared archive.
  16199. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  16200. # Commands used to build a shared archive.
  16201. archive_cmds=$lt_archive_cmds_CXX
  16202. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  16203. # Commands used to build a loadable module if different from building
  16204. # a shared archive.
  16205. module_cmds=$lt_module_cmds_CXX
  16206. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  16207. # Whether we are building with GNU ld or not.
  16208. with_gnu_ld=$lt_with_gnu_ld_CXX
  16209. # Flag that allows shared libraries with undefined symbols to be built.
  16210. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  16211. # Flag that enforces no undefined symbols.
  16212. no_undefined_flag=$lt_no_undefined_flag_CXX
  16213. # Flag to hardcode \$libdir into a binary during linking.
  16214. # This must work even if \$libdir does not exist
  16215. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  16216. # If ld is used when linking, flag to hardcode \$libdir into a binary
  16217. # during linking. This must work even if \$libdir does not exist.
  16218. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  16219. # Whether we need a single "-rpath" flag with a separated argument.
  16220. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  16221. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16222. # DIR into the resulting binary.
  16223. hardcode_direct=$hardcode_direct_CXX
  16224. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16225. # DIR into the resulting binary and the resulting library dependency is
  16226. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16227. # library is relocated.
  16228. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  16229. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16230. # into the resulting binary.
  16231. hardcode_minus_L=$hardcode_minus_L_CXX
  16232. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16233. # into the resulting binary.
  16234. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  16235. # Set to "yes" if building a shared library automatically hardcodes DIR
  16236. # into the library and all subsequent libraries and executables linked
  16237. # against it.
  16238. hardcode_automatic=$hardcode_automatic_CXX
  16239. # Set to yes if linker adds runtime paths of dependent libraries
  16240. # to runtime path list.
  16241. inherit_rpath=$inherit_rpath_CXX
  16242. # Whether libtool must link a program against all its dependency libraries.
  16243. link_all_deplibs=$link_all_deplibs_CXX
  16244. # Fix the shell variable \$srcfile for the compiler.
  16245. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  16246. # Set to "yes" if exported symbols are required.
  16247. always_export_symbols=$always_export_symbols_CXX
  16248. # The commands to list exported symbols.
  16249. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  16250. # Symbols that should not be listed in the preloaded symbols.
  16251. exclude_expsyms=$lt_exclude_expsyms_CXX
  16252. # Symbols that must always be exported.
  16253. include_expsyms=$lt_include_expsyms_CXX
  16254. # Commands necessary for linking programs (against libraries) with templates.
  16255. prelink_cmds=$lt_prelink_cmds_CXX
  16256. # Specify filename containing input files.
  16257. file_list_spec=$lt_file_list_spec_CXX
  16258. # How to hardcode a shared library path into an executable.
  16259. hardcode_action=$hardcode_action_CXX
  16260. # The directories searched by this compiler when creating a shared library.
  16261. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  16262. # Dependencies to place before and after the objects being linked to
  16263. # create a shared library.
  16264. predep_objects=$lt_predep_objects_CXX
  16265. postdep_objects=$lt_postdep_objects_CXX
  16266. predeps=$lt_predeps_CXX
  16267. postdeps=$lt_postdeps_CXX
  16268. # The library search path used internally by the compiler when linking
  16269. # a shared library.
  16270. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  16271. # ### END LIBTOOL TAG CONFIG: CXX
  16272. _LT_EOF
  16273. ;;
  16274. esac
  16275. done # for ac_tag
  16276. as_fn_exit 0
  16277. _ACEOF
  16278. ac_clean_files=$ac_clean_files_save
  16279. test $ac_write_fail = 0 ||
  16280. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16281. # configure is writing to config.log, and then calls config.status.
  16282. # config.status does its own redirection, appending to config.log.
  16283. # Unfortunately, on DOS this fails, as config.log is still kept open
  16284. # by configure, so config.status won't be able to write to it; its
  16285. # output is simply discarded. So we exec the FD to /dev/null,
  16286. # effectively closing config.log, so it can be properly (re)opened and
  16287. # appended to by config.status. When coming back to configure, we
  16288. # need to make the FD available again.
  16289. if test "$no_create" != yes; then
  16290. ac_cs_success=:
  16291. ac_config_status_args=
  16292. test "$silent" = yes &&
  16293. ac_config_status_args="$ac_config_status_args --quiet"
  16294. exec 5>/dev/null
  16295. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16296. exec 5>>config.log
  16297. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16298. # would make configure fail if this is the last instruction.
  16299. $ac_cs_success || as_fn_exit $?
  16300. fi
  16301. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16302. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16303. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16304. fi