1
0

configure 506 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for klish 3.0.0.
  4. #
  5. # Report bugs to <serj.kalichev at gmail dot com>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1
  188. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  189. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  192. PATH=/empty FPATH=/empty; export PATH FPATH
  193. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  194. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and serj.kalichev at
  259. $0: gmail dot com about your system, including any error
  260. $0: possibly output before this message. Then install a
  261. $0: modern shell, or manually run the script under such a
  262. $0: shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='klish'
  542. PACKAGE_TARNAME='klish'
  543. PACKAGE_VERSION='3.0.0'
  544. PACKAGE_STRING='klish 3.0.0'
  545. PACKAGE_BUGREPORT='serj.kalichev at gmail dot com'
  546. PACKAGE_URL=''
  547. # Factoring default headers for most tests.
  548. ac_includes_default="\
  549. #include <stdio.h>
  550. #ifdef HAVE_SYS_TYPES_H
  551. # include <sys/types.h>
  552. #endif
  553. #ifdef HAVE_SYS_STAT_H
  554. # include <sys/stat.h>
  555. #endif
  556. #ifdef STDC_HEADERS
  557. # include <stdlib.h>
  558. # include <stddef.h>
  559. #else
  560. # ifdef HAVE_STDLIB_H
  561. # include <stdlib.h>
  562. # endif
  563. #endif
  564. #ifdef HAVE_STRING_H
  565. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  566. # include <memory.h>
  567. # endif
  568. # include <string.h>
  569. #endif
  570. #ifdef HAVE_STRINGS_H
  571. # include <strings.h>
  572. #endif
  573. #ifdef HAVE_INTTYPES_H
  574. # include <inttypes.h>
  575. #endif
  576. #ifdef HAVE_STDINT_H
  577. # include <stdint.h>
  578. #endif
  579. #ifdef HAVE_UNISTD_H
  580. # include <unistd.h>
  581. #endif"
  582. ac_config_libobj_dir=libc
  583. ac_subst_vars='am__EXEEXT_FALSE
  584. am__EXEEXT_TRUE
  585. LTLIBOBJS
  586. LUA_LIB
  587. LUA_INCLUDE
  588. pkgluaexecdir
  589. luaexecdir
  590. pkgluadir
  591. luadir
  592. LUA_EXEC_PREFIX
  593. LUA_PREFIX
  594. LUA_PLATFORM
  595. LUA_SHORT_VERSION
  596. LUA_VERSION
  597. LUA
  598. WITH_LUA_FALSE
  599. WITH_LUA_TRUE
  600. EXPAT_CFLAGS
  601. EXPAT_LDFLAGS
  602. EXPAT_LIBS
  603. WITH_EXPAT_FALSE
  604. WITH_EXPAT_TRUE
  605. ROXML_CFLAGS
  606. ROXML_LDFLAGS
  607. ROXML_LIBS
  608. WITH_ROXML_FALSE
  609. WITH_ROXML_TRUE
  610. LIBXML2_CFLAGS
  611. LIBXML2_LDFLAGS
  612. LIBXML2_LIBS
  613. WITH_LIBXML2_FALSE
  614. WITH_LIBXML2_TRUE
  615. PLUGINS_SUBDIR
  616. DBS_SUBDIR
  617. CLISH_PLUGIN_BUILTIN_LIBS
  618. CLISH_PLUGIN_BUILTIN_DEFS
  619. CLISH_PLUGIN_BUILTIN_LIST
  620. LIBOBJS
  621. TESTC_FALSE
  622. TESTC_TRUE
  623. DEBUG_FALSE
  624. DEBUG_TRUE
  625. HAVE_LD_VERSION_SCRIPT_FALSE
  626. HAVE_LD_VERSION_SCRIPT_TRUE
  627. AM_BACKSLASH
  628. AM_DEFAULT_VERBOSITY
  629. AM_DEFAULT_V
  630. AM_V
  631. am__fastdepCC_FALSE
  632. am__fastdepCC_TRUE
  633. CCDEPMODE
  634. am__nodep
  635. AMDEPBACKSLASH
  636. AMDEP_FALSE
  637. AMDEP_TRUE
  638. am__include
  639. DEPDIR
  640. am__untar
  641. am__tar
  642. AMTAR
  643. am__leading_dot
  644. SET_MAKE
  645. mkdir_p
  646. MKDIR_P
  647. INSTALL_STRIP_PROGRAM
  648. install_sh
  649. MAKEINFO
  650. AUTOHEADER
  651. AUTOMAKE
  652. AUTOCONF
  653. ACLOCAL
  654. VERSION
  655. PACKAGE
  656. CYGPATH_W
  657. am__isrc
  658. INSTALL_DATA
  659. INSTALL_SCRIPT
  660. INSTALL_PROGRAM
  661. LT_SYS_LIBRARY_PATH
  662. OTOOL64
  663. OTOOL
  664. LIPO
  665. NMEDIT
  666. DSYMUTIL
  667. MANIFEST_TOOL
  668. AWK
  669. RANLIB
  670. STRIP
  671. ac_ct_AR
  672. AR
  673. LN_S
  674. NM
  675. ac_ct_DUMPBIN
  676. DUMPBIN
  677. LD
  678. FGREP
  679. SED
  680. LIBTOOL
  681. OBJDUMP
  682. DLLTOOL
  683. AS
  684. host_os
  685. host_vendor
  686. host_cpu
  687. host
  688. build_os
  689. build_vendor
  690. build_cpu
  691. build
  692. EGREP
  693. GREP
  694. CPP
  695. OBJEXT
  696. EXEEXT
  697. ac_ct_CC
  698. CPPFLAGS
  699. LDFLAGS
  700. CFLAGS
  701. CC
  702. SONAME_AGE
  703. SONAME_REVISION
  704. SONAME_CURRENT
  705. target_alias
  706. host_alias
  707. build_alias
  708. LIBS
  709. ECHO_T
  710. ECHO_N
  711. ECHO_C
  712. DEFS
  713. mandir
  714. localedir
  715. libdir
  716. psdir
  717. pdfdir
  718. dvidir
  719. htmldir
  720. infodir
  721. docdir
  722. oldincludedir
  723. includedir
  724. runstatedir
  725. localstatedir
  726. sharedstatedir
  727. sysconfdir
  728. datadir
  729. datarootdir
  730. libexecdir
  731. sbindir
  732. bindir
  733. program_transform_name
  734. prefix
  735. exec_prefix
  736. PACKAGE_URL
  737. PACKAGE_BUGREPORT
  738. PACKAGE_STRING
  739. PACKAGE_VERSION
  740. PACKAGE_TARNAME
  741. PACKAGE_NAME
  742. PATH_SEPARATOR
  743. SHELL
  744. am__quote'
  745. ac_subst_files=''
  746. ac_user_opts='
  747. enable_option_checking
  748. enable_shared
  749. enable_static
  750. with_pic
  751. enable_fast_install
  752. with_aix_soname
  753. with_gnu_ld
  754. with_sysroot
  755. enable_libtool_lock
  756. enable_dependency_tracking
  757. enable_silent_rules
  758. enable_ld_version_script
  759. enable_debug
  760. enable_testc
  761. with_internal_getopt
  762. with_faux
  763. with_libxml2
  764. with_roxml
  765. with_expat
  766. with_lua
  767. '
  768. ac_precious_vars='build_alias
  769. host_alias
  770. target_alias
  771. CC
  772. CFLAGS
  773. LDFLAGS
  774. LIBS
  775. CPPFLAGS
  776. CPP
  777. LT_SYS_LIBRARY_PATH
  778. LUA
  779. LUA_INCLUDE
  780. LUA_LIB'
  781. # Initialize some variables set by options.
  782. ac_init_help=
  783. ac_init_version=false
  784. ac_unrecognized_opts=
  785. ac_unrecognized_sep=
  786. # The variables have the same names as the options, with
  787. # dashes changed to underlines.
  788. cache_file=/dev/null
  789. exec_prefix=NONE
  790. no_create=
  791. no_recursion=
  792. prefix=NONE
  793. program_prefix=NONE
  794. program_suffix=NONE
  795. program_transform_name=s,x,x,
  796. silent=
  797. site=
  798. srcdir=
  799. verbose=
  800. x_includes=NONE
  801. x_libraries=NONE
  802. # Installation directory options.
  803. # These are left unexpanded so users can "make install exec_prefix=/foo"
  804. # and all the variables that are supposed to be based on exec_prefix
  805. # by default will actually change.
  806. # Use braces instead of parens because sh, perl, etc. also accept them.
  807. # (The list follows the same order as the GNU Coding Standards.)
  808. bindir='${exec_prefix}/bin'
  809. sbindir='${exec_prefix}/sbin'
  810. libexecdir='${exec_prefix}/libexec'
  811. datarootdir='${prefix}/share'
  812. datadir='${datarootdir}'
  813. sysconfdir='${prefix}/etc'
  814. sharedstatedir='${prefix}/com'
  815. localstatedir='${prefix}/var'
  816. runstatedir='${localstatedir}/run'
  817. includedir='${prefix}/include'
  818. oldincludedir='/usr/include'
  819. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  820. infodir='${datarootdir}/info'
  821. htmldir='${docdir}'
  822. dvidir='${docdir}'
  823. pdfdir='${docdir}'
  824. psdir='${docdir}'
  825. libdir='${exec_prefix}/lib'
  826. localedir='${datarootdir}/locale'
  827. mandir='${datarootdir}/man'
  828. ac_prev=
  829. ac_dashdash=
  830. for ac_option
  831. do
  832. # If the previous option needs an argument, assign it.
  833. if test -n "$ac_prev"; then
  834. eval $ac_prev=\$ac_option
  835. ac_prev=
  836. continue
  837. fi
  838. case $ac_option in
  839. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  840. *=) ac_optarg= ;;
  841. *) ac_optarg=yes ;;
  842. esac
  843. # Accept the important Cygnus configure options, so we can diagnose typos.
  844. case $ac_dashdash$ac_option in
  845. --)
  846. ac_dashdash=yes ;;
  847. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  848. ac_prev=bindir ;;
  849. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  850. bindir=$ac_optarg ;;
  851. -build | --build | --buil | --bui | --bu)
  852. ac_prev=build_alias ;;
  853. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  854. build_alias=$ac_optarg ;;
  855. -cache-file | --cache-file | --cache-fil | --cache-fi \
  856. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  857. ac_prev=cache_file ;;
  858. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  859. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  860. cache_file=$ac_optarg ;;
  861. --config-cache | -C)
  862. cache_file=config.cache ;;
  863. -datadir | --datadir | --datadi | --datad)
  864. ac_prev=datadir ;;
  865. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  866. datadir=$ac_optarg ;;
  867. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  868. | --dataroo | --dataro | --datar)
  869. ac_prev=datarootdir ;;
  870. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  871. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  872. datarootdir=$ac_optarg ;;
  873. -disable-* | --disable-*)
  874. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  875. # Reject names that are not valid shell variable names.
  876. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  877. as_fn_error $? "invalid feature name: $ac_useropt"
  878. ac_useropt_orig=$ac_useropt
  879. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  880. case $ac_user_opts in
  881. *"
  882. "enable_$ac_useropt"
  883. "*) ;;
  884. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  885. ac_unrecognized_sep=', ';;
  886. esac
  887. eval enable_$ac_useropt=no ;;
  888. -docdir | --docdir | --docdi | --doc | --do)
  889. ac_prev=docdir ;;
  890. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  891. docdir=$ac_optarg ;;
  892. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  893. ac_prev=dvidir ;;
  894. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  895. dvidir=$ac_optarg ;;
  896. -enable-* | --enable-*)
  897. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  898. # Reject names that are not valid shell variable names.
  899. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  900. as_fn_error $? "invalid feature name: $ac_useropt"
  901. ac_useropt_orig=$ac_useropt
  902. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  903. case $ac_user_opts in
  904. *"
  905. "enable_$ac_useropt"
  906. "*) ;;
  907. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  908. ac_unrecognized_sep=', ';;
  909. esac
  910. eval enable_$ac_useropt=\$ac_optarg ;;
  911. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  912. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  913. | --exec | --exe | --ex)
  914. ac_prev=exec_prefix ;;
  915. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  916. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  917. | --exec=* | --exe=* | --ex=*)
  918. exec_prefix=$ac_optarg ;;
  919. -gas | --gas | --ga | --g)
  920. # Obsolete; use --with-gas.
  921. with_gas=yes ;;
  922. -help | --help | --hel | --he | -h)
  923. ac_init_help=long ;;
  924. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  925. ac_init_help=recursive ;;
  926. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  927. ac_init_help=short ;;
  928. -host | --host | --hos | --ho)
  929. ac_prev=host_alias ;;
  930. -host=* | --host=* | --hos=* | --ho=*)
  931. host_alias=$ac_optarg ;;
  932. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  933. ac_prev=htmldir ;;
  934. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  935. | --ht=*)
  936. htmldir=$ac_optarg ;;
  937. -includedir | --includedir | --includedi | --included | --include \
  938. | --includ | --inclu | --incl | --inc)
  939. ac_prev=includedir ;;
  940. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  941. | --includ=* | --inclu=* | --incl=* | --inc=*)
  942. includedir=$ac_optarg ;;
  943. -infodir | --infodir | --infodi | --infod | --info | --inf)
  944. ac_prev=infodir ;;
  945. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  946. infodir=$ac_optarg ;;
  947. -libdir | --libdir | --libdi | --libd)
  948. ac_prev=libdir ;;
  949. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  950. libdir=$ac_optarg ;;
  951. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  952. | --libexe | --libex | --libe)
  953. ac_prev=libexecdir ;;
  954. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  955. | --libexe=* | --libex=* | --libe=*)
  956. libexecdir=$ac_optarg ;;
  957. -localedir | --localedir | --localedi | --localed | --locale)
  958. ac_prev=localedir ;;
  959. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  960. localedir=$ac_optarg ;;
  961. -localstatedir | --localstatedir | --localstatedi | --localstated \
  962. | --localstate | --localstat | --localsta | --localst | --locals)
  963. ac_prev=localstatedir ;;
  964. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  965. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  966. localstatedir=$ac_optarg ;;
  967. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  968. ac_prev=mandir ;;
  969. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  970. mandir=$ac_optarg ;;
  971. -nfp | --nfp | --nf)
  972. # Obsolete; use --without-fp.
  973. with_fp=no ;;
  974. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  975. | --no-cr | --no-c | -n)
  976. no_create=yes ;;
  977. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  978. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  979. no_recursion=yes ;;
  980. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  981. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  982. | --oldin | --oldi | --old | --ol | --o)
  983. ac_prev=oldincludedir ;;
  984. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  985. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  986. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  987. oldincludedir=$ac_optarg ;;
  988. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  989. ac_prev=prefix ;;
  990. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  991. prefix=$ac_optarg ;;
  992. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  993. | --program-pre | --program-pr | --program-p)
  994. ac_prev=program_prefix ;;
  995. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  996. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  997. program_prefix=$ac_optarg ;;
  998. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  999. | --program-suf | --program-su | --program-s)
  1000. ac_prev=program_suffix ;;
  1001. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1002. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1003. program_suffix=$ac_optarg ;;
  1004. -program-transform-name | --program-transform-name \
  1005. | --program-transform-nam | --program-transform-na \
  1006. | --program-transform-n | --program-transform- \
  1007. | --program-transform | --program-transfor \
  1008. | --program-transfo | --program-transf \
  1009. | --program-trans | --program-tran \
  1010. | --progr-tra | --program-tr | --program-t)
  1011. ac_prev=program_transform_name ;;
  1012. -program-transform-name=* | --program-transform-name=* \
  1013. | --program-transform-nam=* | --program-transform-na=* \
  1014. | --program-transform-n=* | --program-transform-=* \
  1015. | --program-transform=* | --program-transfor=* \
  1016. | --program-transfo=* | --program-transf=* \
  1017. | --program-trans=* | --program-tran=* \
  1018. | --progr-tra=* | --program-tr=* | --program-t=*)
  1019. program_transform_name=$ac_optarg ;;
  1020. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1021. ac_prev=pdfdir ;;
  1022. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1023. pdfdir=$ac_optarg ;;
  1024. -psdir | --psdir | --psdi | --psd | --ps)
  1025. ac_prev=psdir ;;
  1026. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1027. psdir=$ac_optarg ;;
  1028. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1029. | -silent | --silent | --silen | --sile | --sil)
  1030. silent=yes ;;
  1031. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1032. | --runstate | --runstat | --runsta | --runst | --runs \
  1033. | --run | --ru | --r)
  1034. ac_prev=runstatedir ;;
  1035. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1036. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1037. | --run=* | --ru=* | --r=*)
  1038. runstatedir=$ac_optarg ;;
  1039. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1040. ac_prev=sbindir ;;
  1041. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1042. | --sbi=* | --sb=*)
  1043. sbindir=$ac_optarg ;;
  1044. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1045. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1046. | --sharedst | --shareds | --shared | --share | --shar \
  1047. | --sha | --sh)
  1048. ac_prev=sharedstatedir ;;
  1049. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1050. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1051. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1052. | --sha=* | --sh=*)
  1053. sharedstatedir=$ac_optarg ;;
  1054. -site | --site | --sit)
  1055. ac_prev=site ;;
  1056. -site=* | --site=* | --sit=*)
  1057. site=$ac_optarg ;;
  1058. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1059. ac_prev=srcdir ;;
  1060. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1061. srcdir=$ac_optarg ;;
  1062. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1063. | --syscon | --sysco | --sysc | --sys | --sy)
  1064. ac_prev=sysconfdir ;;
  1065. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1066. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1067. sysconfdir=$ac_optarg ;;
  1068. -target | --target | --targe | --targ | --tar | --ta | --t)
  1069. ac_prev=target_alias ;;
  1070. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1071. target_alias=$ac_optarg ;;
  1072. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1073. verbose=yes ;;
  1074. -version | --version | --versio | --versi | --vers | -V)
  1075. ac_init_version=: ;;
  1076. -with-* | --with-*)
  1077. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1078. # Reject names that are not valid shell variable names.
  1079. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1080. as_fn_error $? "invalid package name: $ac_useropt"
  1081. ac_useropt_orig=$ac_useropt
  1082. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1083. case $ac_user_opts in
  1084. *"
  1085. "with_$ac_useropt"
  1086. "*) ;;
  1087. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1088. ac_unrecognized_sep=', ';;
  1089. esac
  1090. eval with_$ac_useropt=\$ac_optarg ;;
  1091. -without-* | --without-*)
  1092. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1093. # Reject names that are not valid shell variable names.
  1094. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1095. as_fn_error $? "invalid package name: $ac_useropt"
  1096. ac_useropt_orig=$ac_useropt
  1097. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1098. case $ac_user_opts in
  1099. *"
  1100. "with_$ac_useropt"
  1101. "*) ;;
  1102. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1103. ac_unrecognized_sep=', ';;
  1104. esac
  1105. eval with_$ac_useropt=no ;;
  1106. --x)
  1107. # Obsolete; use --with-x.
  1108. with_x=yes ;;
  1109. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1110. | --x-incl | --x-inc | --x-in | --x-i)
  1111. ac_prev=x_includes ;;
  1112. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1113. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1114. x_includes=$ac_optarg ;;
  1115. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1116. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1117. ac_prev=x_libraries ;;
  1118. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1119. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1120. x_libraries=$ac_optarg ;;
  1121. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1122. Try \`$0 --help' for more information"
  1123. ;;
  1124. *=*)
  1125. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1126. # Reject names that are not valid shell variable names.
  1127. case $ac_envvar in #(
  1128. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1129. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1130. esac
  1131. eval $ac_envvar=\$ac_optarg
  1132. export $ac_envvar ;;
  1133. *)
  1134. # FIXME: should be removed in autoconf 3.0.
  1135. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1136. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1137. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1138. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1139. ;;
  1140. esac
  1141. done
  1142. if test -n "$ac_prev"; then
  1143. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1144. as_fn_error $? "missing argument to $ac_option"
  1145. fi
  1146. if test -n "$ac_unrecognized_opts"; then
  1147. case $enable_option_checking in
  1148. no) ;;
  1149. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1150. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1151. esac
  1152. fi
  1153. # Check all directory arguments for consistency.
  1154. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1155. datadir sysconfdir sharedstatedir localstatedir includedir \
  1156. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1157. libdir localedir mandir runstatedir
  1158. do
  1159. eval ac_val=\$$ac_var
  1160. # Remove trailing slashes.
  1161. case $ac_val in
  1162. */ )
  1163. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1164. eval $ac_var=\$ac_val;;
  1165. esac
  1166. # Be sure to have absolute directory names.
  1167. case $ac_val in
  1168. [\\/$]* | ?:[\\/]* ) continue;;
  1169. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1170. esac
  1171. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1172. done
  1173. # There might be people who depend on the old broken behavior: `$host'
  1174. # used to hold the argument of --host etc.
  1175. # FIXME: To remove some day.
  1176. build=$build_alias
  1177. host=$host_alias
  1178. target=$target_alias
  1179. # FIXME: To remove some day.
  1180. if test "x$host_alias" != x; then
  1181. if test "x$build_alias" = x; then
  1182. cross_compiling=maybe
  1183. elif test "x$build_alias" != "x$host_alias"; then
  1184. cross_compiling=yes
  1185. fi
  1186. fi
  1187. ac_tool_prefix=
  1188. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1189. test "$silent" = yes && exec 6>/dev/null
  1190. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1191. ac_ls_di=`ls -di .` &&
  1192. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1193. as_fn_error $? "working directory cannot be determined"
  1194. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1195. as_fn_error $? "pwd does not report name of working directory"
  1196. # Find the source files, if location was not specified.
  1197. if test -z "$srcdir"; then
  1198. ac_srcdir_defaulted=yes
  1199. # Try the directory containing this script, then the parent directory.
  1200. ac_confdir=`$as_dirname -- "$as_myself" ||
  1201. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1202. X"$as_myself" : 'X\(//\)[^/]' \| \
  1203. X"$as_myself" : 'X\(//\)$' \| \
  1204. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1205. $as_echo X"$as_myself" |
  1206. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1207. s//\1/
  1208. q
  1209. }
  1210. /^X\(\/\/\)[^/].*/{
  1211. s//\1/
  1212. q
  1213. }
  1214. /^X\(\/\/\)$/{
  1215. s//\1/
  1216. q
  1217. }
  1218. /^X\(\/\).*/{
  1219. s//\1/
  1220. q
  1221. }
  1222. s/.*/./; q'`
  1223. srcdir=$ac_confdir
  1224. if test ! -r "$srcdir/$ac_unique_file"; then
  1225. srcdir=..
  1226. fi
  1227. else
  1228. ac_srcdir_defaulted=no
  1229. fi
  1230. if test ! -r "$srcdir/$ac_unique_file"; then
  1231. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1232. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1233. fi
  1234. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1235. ac_abs_confdir=`(
  1236. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1237. pwd)`
  1238. # When building in place, set srcdir=.
  1239. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1240. srcdir=.
  1241. fi
  1242. # Remove unnecessary trailing slashes from srcdir.
  1243. # Double slashes in file names in object file debugging info
  1244. # mess up M-x gdb in Emacs.
  1245. case $srcdir in
  1246. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1247. esac
  1248. for ac_var in $ac_precious_vars; do
  1249. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1250. eval ac_env_${ac_var}_value=\$${ac_var}
  1251. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1252. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1253. done
  1254. #
  1255. # Report the --help message.
  1256. #
  1257. if test "$ac_init_help" = "long"; then
  1258. # Omit some internal or obsolete options to make the list less imposing.
  1259. # This message is too long to be a string in the A/UX 3.1 sh.
  1260. cat <<_ACEOF
  1261. \`configure' configures klish 3.0.0 to adapt to many kinds of systems.
  1262. Usage: $0 [OPTION]... [VAR=VALUE]...
  1263. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1264. VAR=VALUE. See below for descriptions of some of the useful variables.
  1265. Defaults for the options are specified in brackets.
  1266. Configuration:
  1267. -h, --help display this help and exit
  1268. --help=short display options specific to this package
  1269. --help=recursive display the short help of all the included packages
  1270. -V, --version display version information and exit
  1271. -q, --quiet, --silent do not print \`checking ...' messages
  1272. --cache-file=FILE cache test results in FILE [disabled]
  1273. -C, --config-cache alias for \`--cache-file=config.cache'
  1274. -n, --no-create do not create output files
  1275. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1276. Installation directories:
  1277. --prefix=PREFIX install architecture-independent files in PREFIX
  1278. [$ac_default_prefix]
  1279. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1280. [PREFIX]
  1281. By default, \`make install' will install all the files in
  1282. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1283. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1284. for instance \`--prefix=\$HOME'.
  1285. For better control, use the options below.
  1286. Fine tuning of the installation directories:
  1287. --bindir=DIR user executables [EPREFIX/bin]
  1288. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1289. --libexecdir=DIR program executables [EPREFIX/libexec]
  1290. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1291. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1292. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1293. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1294. --libdir=DIR object code libraries [EPREFIX/lib]
  1295. --includedir=DIR C header files [PREFIX/include]
  1296. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1297. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1298. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1299. --infodir=DIR info documentation [DATAROOTDIR/info]
  1300. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1301. --mandir=DIR man documentation [DATAROOTDIR/man]
  1302. --docdir=DIR documentation root [DATAROOTDIR/doc/klish]
  1303. --htmldir=DIR html documentation [DOCDIR]
  1304. --dvidir=DIR dvi documentation [DOCDIR]
  1305. --pdfdir=DIR pdf documentation [DOCDIR]
  1306. --psdir=DIR ps documentation [DOCDIR]
  1307. _ACEOF
  1308. cat <<\_ACEOF
  1309. Program names:
  1310. --program-prefix=PREFIX prepend PREFIX to installed program names
  1311. --program-suffix=SUFFIX append SUFFIX to installed program names
  1312. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1313. System types:
  1314. --build=BUILD configure for building on BUILD [guessed]
  1315. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1316. _ACEOF
  1317. fi
  1318. if test -n "$ac_init_help"; then
  1319. case $ac_init_help in
  1320. short | recursive ) echo "Configuration of klish 3.0.0:";;
  1321. esac
  1322. cat <<\_ACEOF
  1323. Optional Features:
  1324. --disable-option-checking ignore unrecognized --enable/--with options
  1325. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1326. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1327. --enable-shared[=PKGS] build shared libraries [default=yes]
  1328. --enable-static[=PKGS] build static libraries [default=yes]
  1329. --enable-fast-install[=PKGS]
  1330. optimize for fast installation [default=yes]
  1331. --disable-libtool-lock avoid locking (might break parallel builds)
  1332. --enable-dependency-tracking
  1333. do not reject slow dependency extractors
  1334. --disable-dependency-tracking
  1335. speeds up one-time build
  1336. --enable-silent-rules less verbose build output (undo: "make V=1")
  1337. --disable-silent-rules verbose build output (undo: "make V=0")
  1338. --enable-ld-version-script
  1339. enable linker version script (default is enabled
  1340. when possible)
  1341. --enable-debug Turn on debugging including asserts [default=no]
  1342. --enable-testc Enable testc tests compiling [default=no]
  1343. Optional Packages:
  1344. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1345. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1346. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1347. both]
  1348. --with-aix-soname=aix|svr4|both
  1349. shared library versioning (aka "SONAME") variant to
  1350. provide on AIX, [default=aix].
  1351. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1352. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1353. compiler's sysroot if not specified).
  1354. --with-internal-getopt Use internal implementation of getopt [default=no]
  1355. --with-faux=DIR Search DIR directory for faux library files
  1356. [default=yes]
  1357. --with-libxml2=DIR Use libxml2 as the XML parser implementation
  1358. [default=no]
  1359. --with-roxml=DIR Use roxml as the XML parser implementation
  1360. [default=no]
  1361. --with-expat=DIR Use expat as the XML parser implementation
  1362. [default=no]
  1363. --with-lua=DIR Build Lua ACTION plugin [default=no]
  1364. Some influential environment variables:
  1365. CC C compiler command
  1366. CFLAGS C compiler flags
  1367. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1368. nonstandard directory <lib dir>
  1369. LIBS libraries to pass to the linker, e.g. -l<library>
  1370. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1371. you have headers in a nonstandard directory <include dir>
  1372. CPP C preprocessor
  1373. LT_SYS_LIBRARY_PATH
  1374. User-defined run-time library search path.
  1375. LUA The Lua interpreter, e.g. /usr/bin/lua5.1
  1376. LUA_INCLUDE The Lua includes, e.g. -I/usr/include/lua5.1
  1377. LUA_LIB The Lua library, e.g. -llua5.1
  1378. Use these variables to override the choices made by `configure' or to help
  1379. it to find libraries and programs with nonstandard names/locations.
  1380. Report bugs to <serj.kalichev at gmail dot com>.
  1381. _ACEOF
  1382. ac_status=$?
  1383. fi
  1384. if test "$ac_init_help" = "recursive"; then
  1385. # If there are subdirs, report their specific --help.
  1386. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1387. test -d "$ac_dir" ||
  1388. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1389. continue
  1390. ac_builddir=.
  1391. case "$ac_dir" in
  1392. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1393. *)
  1394. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1395. # A ".." for each directory in $ac_dir_suffix.
  1396. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1397. case $ac_top_builddir_sub in
  1398. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1399. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1400. esac ;;
  1401. esac
  1402. ac_abs_top_builddir=$ac_pwd
  1403. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1404. # for backward compatibility:
  1405. ac_top_builddir=$ac_top_build_prefix
  1406. case $srcdir in
  1407. .) # We are building in place.
  1408. ac_srcdir=.
  1409. ac_top_srcdir=$ac_top_builddir_sub
  1410. ac_abs_top_srcdir=$ac_pwd ;;
  1411. [\\/]* | ?:[\\/]* ) # Absolute name.
  1412. ac_srcdir=$srcdir$ac_dir_suffix;
  1413. ac_top_srcdir=$srcdir
  1414. ac_abs_top_srcdir=$srcdir ;;
  1415. *) # Relative name.
  1416. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1417. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1418. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1419. esac
  1420. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1421. cd "$ac_dir" || { ac_status=$?; continue; }
  1422. # Check for guested configure.
  1423. if test -f "$ac_srcdir/configure.gnu"; then
  1424. echo &&
  1425. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1426. elif test -f "$ac_srcdir/configure"; then
  1427. echo &&
  1428. $SHELL "$ac_srcdir/configure" --help=recursive
  1429. else
  1430. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1431. fi || ac_status=$?
  1432. cd "$ac_pwd" || { ac_status=$?; break; }
  1433. done
  1434. fi
  1435. test -n "$ac_init_help" && exit $ac_status
  1436. if $ac_init_version; then
  1437. cat <<\_ACEOF
  1438. klish configure 3.0.0
  1439. generated by GNU Autoconf 2.69
  1440. Copyright (C) 2012 Free Software Foundation, Inc.
  1441. This configure script is free software; the Free Software Foundation
  1442. gives unlimited permission to copy, distribute and modify it.
  1443. _ACEOF
  1444. exit
  1445. fi
  1446. ## ------------------------ ##
  1447. ## Autoconf initialization. ##
  1448. ## ------------------------ ##
  1449. # ac_fn_c_try_compile LINENO
  1450. # --------------------------
  1451. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1452. ac_fn_c_try_compile ()
  1453. {
  1454. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1455. rm -f conftest.$ac_objext
  1456. if { { ac_try="$ac_compile"
  1457. case "(($ac_try" in
  1458. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1459. *) ac_try_echo=$ac_try;;
  1460. esac
  1461. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1462. $as_echo "$ac_try_echo"; } >&5
  1463. (eval "$ac_compile") 2>conftest.err
  1464. ac_status=$?
  1465. if test -s conftest.err; then
  1466. grep -v '^ *+' conftest.err >conftest.er1
  1467. cat conftest.er1 >&5
  1468. mv -f conftest.er1 conftest.err
  1469. fi
  1470. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1471. test $ac_status = 0; } && {
  1472. test -z "$ac_c_werror_flag" ||
  1473. test ! -s conftest.err
  1474. } && test -s conftest.$ac_objext; then :
  1475. ac_retval=0
  1476. else
  1477. $as_echo "$as_me: failed program was:" >&5
  1478. sed 's/^/| /' conftest.$ac_ext >&5
  1479. ac_retval=1
  1480. fi
  1481. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1482. as_fn_set_status $ac_retval
  1483. } # ac_fn_c_try_compile
  1484. # ac_fn_c_try_cpp LINENO
  1485. # ----------------------
  1486. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1487. ac_fn_c_try_cpp ()
  1488. {
  1489. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1490. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1491. case "(($ac_try" in
  1492. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1493. *) ac_try_echo=$ac_try;;
  1494. esac
  1495. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1496. $as_echo "$ac_try_echo"; } >&5
  1497. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1498. ac_status=$?
  1499. if test -s conftest.err; then
  1500. grep -v '^ *+' conftest.err >conftest.er1
  1501. cat conftest.er1 >&5
  1502. mv -f conftest.er1 conftest.err
  1503. fi
  1504. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1505. test $ac_status = 0; } > conftest.i && {
  1506. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1507. test ! -s conftest.err
  1508. }; then :
  1509. ac_retval=0
  1510. else
  1511. $as_echo "$as_me: failed program was:" >&5
  1512. sed 's/^/| /' conftest.$ac_ext >&5
  1513. ac_retval=1
  1514. fi
  1515. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1516. as_fn_set_status $ac_retval
  1517. } # ac_fn_c_try_cpp
  1518. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1519. # -------------------------------------------------------
  1520. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1521. # the include files in INCLUDES and setting the cache variable VAR
  1522. # accordingly.
  1523. ac_fn_c_check_header_mongrel ()
  1524. {
  1525. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1526. if eval \${$3+:} false; then :
  1527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1528. $as_echo_n "checking for $2... " >&6; }
  1529. if eval \${$3+:} false; then :
  1530. $as_echo_n "(cached) " >&6
  1531. fi
  1532. eval ac_res=\$$3
  1533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1534. $as_echo "$ac_res" >&6; }
  1535. else
  1536. # Is the header compilable?
  1537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1538. $as_echo_n "checking $2 usability... " >&6; }
  1539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1540. /* end confdefs.h. */
  1541. $4
  1542. #include <$2>
  1543. _ACEOF
  1544. if ac_fn_c_try_compile "$LINENO"; then :
  1545. ac_header_compiler=yes
  1546. else
  1547. ac_header_compiler=no
  1548. fi
  1549. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1551. $as_echo "$ac_header_compiler" >&6; }
  1552. # Is the header present?
  1553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1554. $as_echo_n "checking $2 presence... " >&6; }
  1555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1556. /* end confdefs.h. */
  1557. #include <$2>
  1558. _ACEOF
  1559. if ac_fn_c_try_cpp "$LINENO"; then :
  1560. ac_header_preproc=yes
  1561. else
  1562. ac_header_preproc=no
  1563. fi
  1564. rm -f conftest.err conftest.i conftest.$ac_ext
  1565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1566. $as_echo "$ac_header_preproc" >&6; }
  1567. # So? What about this header?
  1568. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1569. yes:no: )
  1570. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1571. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1572. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1573. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1574. ;;
  1575. no:yes:* )
  1576. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1577. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1578. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1579. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1580. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1581. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1582. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1583. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1584. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1585. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1586. ( $as_echo "## --------------------------------------------- ##
  1587. ## Report this to serj.kalichev at gmail dot com ##
  1588. ## --------------------------------------------- ##"
  1589. ) | sed "s/^/$as_me: WARNING: /" >&2
  1590. ;;
  1591. esac
  1592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1593. $as_echo_n "checking for $2... " >&6; }
  1594. if eval \${$3+:} false; then :
  1595. $as_echo_n "(cached) " >&6
  1596. else
  1597. eval "$3=\$ac_header_compiler"
  1598. fi
  1599. eval ac_res=\$$3
  1600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1601. $as_echo "$ac_res" >&6; }
  1602. fi
  1603. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1604. } # ac_fn_c_check_header_mongrel
  1605. # ac_fn_c_try_run LINENO
  1606. # ----------------------
  1607. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1608. # that executables *can* be run.
  1609. ac_fn_c_try_run ()
  1610. {
  1611. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1612. if { { ac_try="$ac_link"
  1613. case "(($ac_try" in
  1614. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1615. *) ac_try_echo=$ac_try;;
  1616. esac
  1617. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1618. $as_echo "$ac_try_echo"; } >&5
  1619. (eval "$ac_link") 2>&5
  1620. ac_status=$?
  1621. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1622. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1623. { { case "(($ac_try" in
  1624. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1625. *) ac_try_echo=$ac_try;;
  1626. esac
  1627. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1628. $as_echo "$ac_try_echo"; } >&5
  1629. (eval "$ac_try") 2>&5
  1630. ac_status=$?
  1631. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1632. test $ac_status = 0; }; }; then :
  1633. ac_retval=0
  1634. else
  1635. $as_echo "$as_me: program exited with status $ac_status" >&5
  1636. $as_echo "$as_me: failed program was:" >&5
  1637. sed 's/^/| /' conftest.$ac_ext >&5
  1638. ac_retval=$ac_status
  1639. fi
  1640. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1641. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1642. as_fn_set_status $ac_retval
  1643. } # ac_fn_c_try_run
  1644. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1645. # -------------------------------------------------------
  1646. # Tests whether HEADER exists and can be compiled using the include files in
  1647. # INCLUDES, setting the cache variable VAR accordingly.
  1648. ac_fn_c_check_header_compile ()
  1649. {
  1650. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1652. $as_echo_n "checking for $2... " >&6; }
  1653. if eval \${$3+:} false; then :
  1654. $as_echo_n "(cached) " >&6
  1655. else
  1656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1657. /* end confdefs.h. */
  1658. $4
  1659. #include <$2>
  1660. _ACEOF
  1661. if ac_fn_c_try_compile "$LINENO"; then :
  1662. eval "$3=yes"
  1663. else
  1664. eval "$3=no"
  1665. fi
  1666. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1667. fi
  1668. eval ac_res=\$$3
  1669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1670. $as_echo "$ac_res" >&6; }
  1671. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1672. } # ac_fn_c_check_header_compile
  1673. # ac_fn_c_try_link LINENO
  1674. # -----------------------
  1675. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1676. ac_fn_c_try_link ()
  1677. {
  1678. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1679. rm -f conftest.$ac_objext conftest$ac_exeext
  1680. if { { ac_try="$ac_link"
  1681. case "(($ac_try" in
  1682. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1683. *) ac_try_echo=$ac_try;;
  1684. esac
  1685. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1686. $as_echo "$ac_try_echo"; } >&5
  1687. (eval "$ac_link") 2>conftest.err
  1688. ac_status=$?
  1689. if test -s conftest.err; then
  1690. grep -v '^ *+' conftest.err >conftest.er1
  1691. cat conftest.er1 >&5
  1692. mv -f conftest.er1 conftest.err
  1693. fi
  1694. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1695. test $ac_status = 0; } && {
  1696. test -z "$ac_c_werror_flag" ||
  1697. test ! -s conftest.err
  1698. } && test -s conftest$ac_exeext && {
  1699. test "$cross_compiling" = yes ||
  1700. test -x conftest$ac_exeext
  1701. }; then :
  1702. ac_retval=0
  1703. else
  1704. $as_echo "$as_me: failed program was:" >&5
  1705. sed 's/^/| /' conftest.$ac_ext >&5
  1706. ac_retval=1
  1707. fi
  1708. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1709. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1710. # interfere with the next link command; also delete a directory that is
  1711. # left behind by Apple's compiler. We do this before executing the actions.
  1712. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1713. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1714. as_fn_set_status $ac_retval
  1715. } # ac_fn_c_try_link
  1716. # ac_fn_c_check_func LINENO FUNC VAR
  1717. # ----------------------------------
  1718. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1719. ac_fn_c_check_func ()
  1720. {
  1721. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1723. $as_echo_n "checking for $2... " >&6; }
  1724. if eval \${$3+:} false; then :
  1725. $as_echo_n "(cached) " >&6
  1726. else
  1727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1728. /* end confdefs.h. */
  1729. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1730. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1731. #define $2 innocuous_$2
  1732. /* System header to define __stub macros and hopefully few prototypes,
  1733. which can conflict with char $2 (); below.
  1734. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1735. <limits.h> exists even on freestanding compilers. */
  1736. #ifdef __STDC__
  1737. # include <limits.h>
  1738. #else
  1739. # include <assert.h>
  1740. #endif
  1741. #undef $2
  1742. /* Override any GCC internal prototype to avoid an error.
  1743. Use char because int might match the return type of a GCC
  1744. builtin and then its argument prototype would still apply. */
  1745. #ifdef __cplusplus
  1746. extern "C"
  1747. #endif
  1748. char $2 ();
  1749. /* The GNU C library defines this for functions which it implements
  1750. to always fail with ENOSYS. Some functions are actually named
  1751. something starting with __ and the normal name is an alias. */
  1752. #if defined __stub_$2 || defined __stub___$2
  1753. choke me
  1754. #endif
  1755. int
  1756. main ()
  1757. {
  1758. return $2 ();
  1759. ;
  1760. return 0;
  1761. }
  1762. _ACEOF
  1763. if ac_fn_c_try_link "$LINENO"; then :
  1764. eval "$3=yes"
  1765. else
  1766. eval "$3=no"
  1767. fi
  1768. rm -f core conftest.err conftest.$ac_objext \
  1769. conftest$ac_exeext conftest.$ac_ext
  1770. fi
  1771. eval ac_res=\$$3
  1772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1773. $as_echo "$ac_res" >&6; }
  1774. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1775. } # ac_fn_c_check_func
  1776. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1777. # --------------------------------------------
  1778. # Tries to find the compile-time value of EXPR in a program that includes
  1779. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1780. # computed
  1781. ac_fn_c_compute_int ()
  1782. {
  1783. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1784. if test "$cross_compiling" = yes; then
  1785. # Depending upon the size, compute the lo and hi bounds.
  1786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1787. /* end confdefs.h. */
  1788. $4
  1789. int
  1790. main ()
  1791. {
  1792. static int test_array [1 - 2 * !(($2) >= 0)];
  1793. test_array [0] = 0;
  1794. return test_array [0];
  1795. ;
  1796. return 0;
  1797. }
  1798. _ACEOF
  1799. if ac_fn_c_try_compile "$LINENO"; then :
  1800. ac_lo=0 ac_mid=0
  1801. while :; do
  1802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1803. /* end confdefs.h. */
  1804. $4
  1805. int
  1806. main ()
  1807. {
  1808. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1809. test_array [0] = 0;
  1810. return test_array [0];
  1811. ;
  1812. return 0;
  1813. }
  1814. _ACEOF
  1815. if ac_fn_c_try_compile "$LINENO"; then :
  1816. ac_hi=$ac_mid; break
  1817. else
  1818. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1819. if test $ac_lo -le $ac_mid; then
  1820. ac_lo= ac_hi=
  1821. break
  1822. fi
  1823. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1824. fi
  1825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1826. done
  1827. else
  1828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1829. /* end confdefs.h. */
  1830. $4
  1831. int
  1832. main ()
  1833. {
  1834. static int test_array [1 - 2 * !(($2) < 0)];
  1835. test_array [0] = 0;
  1836. return test_array [0];
  1837. ;
  1838. return 0;
  1839. }
  1840. _ACEOF
  1841. if ac_fn_c_try_compile "$LINENO"; then :
  1842. ac_hi=-1 ac_mid=-1
  1843. while :; do
  1844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1845. /* end confdefs.h. */
  1846. $4
  1847. int
  1848. main ()
  1849. {
  1850. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1851. test_array [0] = 0;
  1852. return test_array [0];
  1853. ;
  1854. return 0;
  1855. }
  1856. _ACEOF
  1857. if ac_fn_c_try_compile "$LINENO"; then :
  1858. ac_lo=$ac_mid; break
  1859. else
  1860. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1861. if test $ac_mid -le $ac_hi; then
  1862. ac_lo= ac_hi=
  1863. break
  1864. fi
  1865. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1866. fi
  1867. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1868. done
  1869. else
  1870. ac_lo= ac_hi=
  1871. fi
  1872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1873. fi
  1874. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1875. # Binary search between lo and hi bounds.
  1876. while test "x$ac_lo" != "x$ac_hi"; do
  1877. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1879. /* end confdefs.h. */
  1880. $4
  1881. int
  1882. main ()
  1883. {
  1884. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1885. test_array [0] = 0;
  1886. return test_array [0];
  1887. ;
  1888. return 0;
  1889. }
  1890. _ACEOF
  1891. if ac_fn_c_try_compile "$LINENO"; then :
  1892. ac_hi=$ac_mid
  1893. else
  1894. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1895. fi
  1896. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1897. done
  1898. case $ac_lo in #((
  1899. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1900. '') ac_retval=1 ;;
  1901. esac
  1902. else
  1903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1904. /* end confdefs.h. */
  1905. $4
  1906. static long int longval () { return $2; }
  1907. static unsigned long int ulongval () { return $2; }
  1908. #include <stdio.h>
  1909. #include <stdlib.h>
  1910. int
  1911. main ()
  1912. {
  1913. FILE *f = fopen ("conftest.val", "w");
  1914. if (! f)
  1915. return 1;
  1916. if (($2) < 0)
  1917. {
  1918. long int i = longval ();
  1919. if (i != ($2))
  1920. return 1;
  1921. fprintf (f, "%ld", i);
  1922. }
  1923. else
  1924. {
  1925. unsigned long int i = ulongval ();
  1926. if (i != ($2))
  1927. return 1;
  1928. fprintf (f, "%lu", i);
  1929. }
  1930. /* Do not output a trailing newline, as this causes \r\n confusion
  1931. on some platforms. */
  1932. return ferror (f) || fclose (f) != 0;
  1933. ;
  1934. return 0;
  1935. }
  1936. _ACEOF
  1937. if ac_fn_c_try_run "$LINENO"; then :
  1938. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1939. else
  1940. ac_retval=1
  1941. fi
  1942. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1943. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1944. rm -f conftest.val
  1945. fi
  1946. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1947. as_fn_set_status $ac_retval
  1948. } # ac_fn_c_compute_int
  1949. cat >config.log <<_ACEOF
  1950. This file contains any messages produced by compilers while
  1951. running configure, to aid debugging if configure makes a mistake.
  1952. It was created by klish $as_me 3.0.0, which was
  1953. generated by GNU Autoconf 2.69. Invocation command line was
  1954. $ $0 $@
  1955. _ACEOF
  1956. exec 5>>config.log
  1957. {
  1958. cat <<_ASUNAME
  1959. ## --------- ##
  1960. ## Platform. ##
  1961. ## --------- ##
  1962. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1963. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1964. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1965. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1966. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1967. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1968. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1969. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1970. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1971. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1972. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1973. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1974. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1975. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1976. _ASUNAME
  1977. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1978. for as_dir in $PATH
  1979. do
  1980. IFS=$as_save_IFS
  1981. test -z "$as_dir" && as_dir=.
  1982. $as_echo "PATH: $as_dir"
  1983. done
  1984. IFS=$as_save_IFS
  1985. } >&5
  1986. cat >&5 <<_ACEOF
  1987. ## ----------- ##
  1988. ## Core tests. ##
  1989. ## ----------- ##
  1990. _ACEOF
  1991. # Keep a trace of the command line.
  1992. # Strip out --no-create and --no-recursion so they do not pile up.
  1993. # Strip out --silent because we don't want to record it for future runs.
  1994. # Also quote any args containing shell meta-characters.
  1995. # Make two passes to allow for proper duplicate-argument suppression.
  1996. ac_configure_args=
  1997. ac_configure_args0=
  1998. ac_configure_args1=
  1999. ac_must_keep_next=false
  2000. for ac_pass in 1 2
  2001. do
  2002. for ac_arg
  2003. do
  2004. case $ac_arg in
  2005. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2006. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2007. | -silent | --silent | --silen | --sile | --sil)
  2008. continue ;;
  2009. *\'*)
  2010. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2011. esac
  2012. case $ac_pass in
  2013. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2014. 2)
  2015. as_fn_append ac_configure_args1 " '$ac_arg'"
  2016. if test $ac_must_keep_next = true; then
  2017. ac_must_keep_next=false # Got value, back to normal.
  2018. else
  2019. case $ac_arg in
  2020. *=* | --config-cache | -C | -disable-* | --disable-* \
  2021. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2022. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2023. | -with-* | --with-* | -without-* | --without-* | --x)
  2024. case "$ac_configure_args0 " in
  2025. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2026. esac
  2027. ;;
  2028. -* ) ac_must_keep_next=true ;;
  2029. esac
  2030. fi
  2031. as_fn_append ac_configure_args " '$ac_arg'"
  2032. ;;
  2033. esac
  2034. done
  2035. done
  2036. { ac_configure_args0=; unset ac_configure_args0;}
  2037. { ac_configure_args1=; unset ac_configure_args1;}
  2038. # When interrupted or exit'd, cleanup temporary files, and complete
  2039. # config.log. We remove comments because anyway the quotes in there
  2040. # would cause problems or look ugly.
  2041. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2042. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2043. trap 'exit_status=$?
  2044. # Save into config.log some information that might help in debugging.
  2045. {
  2046. echo
  2047. $as_echo "## ---------------- ##
  2048. ## Cache variables. ##
  2049. ## ---------------- ##"
  2050. echo
  2051. # The following way of writing the cache mishandles newlines in values,
  2052. (
  2053. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2054. eval ac_val=\$$ac_var
  2055. case $ac_val in #(
  2056. *${as_nl}*)
  2057. case $ac_var in #(
  2058. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2059. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2060. esac
  2061. case $ac_var in #(
  2062. _ | IFS | as_nl) ;; #(
  2063. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2064. *) { eval $ac_var=; unset $ac_var;} ;;
  2065. esac ;;
  2066. esac
  2067. done
  2068. (set) 2>&1 |
  2069. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2070. *${as_nl}ac_space=\ *)
  2071. sed -n \
  2072. "s/'\''/'\''\\\\'\'''\''/g;
  2073. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2074. ;; #(
  2075. *)
  2076. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2077. ;;
  2078. esac |
  2079. sort
  2080. )
  2081. echo
  2082. $as_echo "## ----------------- ##
  2083. ## Output variables. ##
  2084. ## ----------------- ##"
  2085. echo
  2086. for ac_var in $ac_subst_vars
  2087. do
  2088. eval ac_val=\$$ac_var
  2089. case $ac_val in
  2090. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2091. esac
  2092. $as_echo "$ac_var='\''$ac_val'\''"
  2093. done | sort
  2094. echo
  2095. if test -n "$ac_subst_files"; then
  2096. $as_echo "## ------------------- ##
  2097. ## File substitutions. ##
  2098. ## ------------------- ##"
  2099. echo
  2100. for ac_var in $ac_subst_files
  2101. do
  2102. eval ac_val=\$$ac_var
  2103. case $ac_val in
  2104. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2105. esac
  2106. $as_echo "$ac_var='\''$ac_val'\''"
  2107. done | sort
  2108. echo
  2109. fi
  2110. if test -s confdefs.h; then
  2111. $as_echo "## ----------- ##
  2112. ## confdefs.h. ##
  2113. ## ----------- ##"
  2114. echo
  2115. cat confdefs.h
  2116. echo
  2117. fi
  2118. test "$ac_signal" != 0 &&
  2119. $as_echo "$as_me: caught signal $ac_signal"
  2120. $as_echo "$as_me: exit $exit_status"
  2121. } >&5
  2122. rm -f core *.core core.conftest.* &&
  2123. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2124. exit $exit_status
  2125. ' 0
  2126. for ac_signal in 1 2 13 15; do
  2127. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2128. done
  2129. ac_signal=0
  2130. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2131. rm -f -r conftest* confdefs.h
  2132. $as_echo "/* confdefs.h */" > confdefs.h
  2133. # Predefined preprocessor variables.
  2134. cat >>confdefs.h <<_ACEOF
  2135. #define PACKAGE_NAME "$PACKAGE_NAME"
  2136. _ACEOF
  2137. cat >>confdefs.h <<_ACEOF
  2138. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2139. _ACEOF
  2140. cat >>confdefs.h <<_ACEOF
  2141. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2142. _ACEOF
  2143. cat >>confdefs.h <<_ACEOF
  2144. #define PACKAGE_STRING "$PACKAGE_STRING"
  2145. _ACEOF
  2146. cat >>confdefs.h <<_ACEOF
  2147. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2148. _ACEOF
  2149. cat >>confdefs.h <<_ACEOF
  2150. #define PACKAGE_URL "$PACKAGE_URL"
  2151. _ACEOF
  2152. # Let the site file select an alternate cache file if it wants to.
  2153. # Prefer an explicitly selected file to automatically selected ones.
  2154. ac_site_file1=NONE
  2155. ac_site_file2=NONE
  2156. if test -n "$CONFIG_SITE"; then
  2157. # We do not want a PATH search for config.site.
  2158. case $CONFIG_SITE in #((
  2159. -*) ac_site_file1=./$CONFIG_SITE;;
  2160. */*) ac_site_file1=$CONFIG_SITE;;
  2161. *) ac_site_file1=./$CONFIG_SITE;;
  2162. esac
  2163. elif test "x$prefix" != xNONE; then
  2164. ac_site_file1=$prefix/share/config.site
  2165. ac_site_file2=$prefix/etc/config.site
  2166. else
  2167. ac_site_file1=$ac_default_prefix/share/config.site
  2168. ac_site_file2=$ac_default_prefix/etc/config.site
  2169. fi
  2170. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2171. do
  2172. test "x$ac_site_file" = xNONE && continue
  2173. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2174. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2175. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2176. sed 's/^/| /' "$ac_site_file" >&5
  2177. . "$ac_site_file" \
  2178. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2179. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2180. as_fn_error $? "failed to load site script $ac_site_file
  2181. See \`config.log' for more details" "$LINENO" 5; }
  2182. fi
  2183. done
  2184. if test -r "$cache_file"; then
  2185. # Some versions of bash will fail to source /dev/null (special files
  2186. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2187. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2188. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2189. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2190. case $cache_file in
  2191. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2192. *) . "./$cache_file";;
  2193. esac
  2194. fi
  2195. else
  2196. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2197. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2198. >$cache_file
  2199. fi
  2200. # Check that the precious variables saved in the cache have kept the same
  2201. # value.
  2202. ac_cache_corrupted=false
  2203. for ac_var in $ac_precious_vars; do
  2204. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2205. eval ac_new_set=\$ac_env_${ac_var}_set
  2206. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2207. eval ac_new_val=\$ac_env_${ac_var}_value
  2208. case $ac_old_set,$ac_new_set in
  2209. set,)
  2210. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2211. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2212. ac_cache_corrupted=: ;;
  2213. ,set)
  2214. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2215. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2216. ac_cache_corrupted=: ;;
  2217. ,);;
  2218. *)
  2219. if test "x$ac_old_val" != "x$ac_new_val"; then
  2220. # differences in whitespace do not lead to failure.
  2221. ac_old_val_w=`echo x $ac_old_val`
  2222. ac_new_val_w=`echo x $ac_new_val`
  2223. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2224. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2225. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2226. ac_cache_corrupted=:
  2227. else
  2228. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2229. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2230. eval $ac_var=\$ac_old_val
  2231. fi
  2232. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2233. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2234. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2235. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2236. fi;;
  2237. esac
  2238. # Pass precious variables to config.status.
  2239. if test "$ac_new_set" = set; then
  2240. case $ac_new_val in
  2241. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2242. *) ac_arg=$ac_var=$ac_new_val ;;
  2243. esac
  2244. case " $ac_configure_args " in
  2245. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2246. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2247. esac
  2248. fi
  2249. done
  2250. if $ac_cache_corrupted; then
  2251. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2252. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2253. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2254. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2255. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2256. fi
  2257. ## -------------------- ##
  2258. ## Main body of script. ##
  2259. ## -------------------- ##
  2260. ac_ext=c
  2261. ac_cpp='$CPP $CPPFLAGS'
  2262. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2263. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2264. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2265. ac_aux_dir=
  2266. for ac_dir in aux_scripts "$srcdir"/aux_scripts; do
  2267. if test -f "$ac_dir/install-sh"; then
  2268. ac_aux_dir=$ac_dir
  2269. ac_install_sh="$ac_aux_dir/install-sh -c"
  2270. break
  2271. elif test -f "$ac_dir/install.sh"; then
  2272. ac_aux_dir=$ac_dir
  2273. ac_install_sh="$ac_aux_dir/install.sh -c"
  2274. break
  2275. elif test -f "$ac_dir/shtool"; then
  2276. ac_aux_dir=$ac_dir
  2277. ac_install_sh="$ac_aux_dir/shtool install -c"
  2278. break
  2279. fi
  2280. done
  2281. if test -z "$ac_aux_dir"; then
  2282. as_fn_error $? "cannot find install-sh, install.sh, or shtool in aux_scripts \"$srcdir\"/aux_scripts" "$LINENO" 5
  2283. fi
  2284. # These three variables are undocumented and unsupported,
  2285. # and are intended to be withdrawn in a future Autoconf release.
  2286. # They can cause serious problems if a builder's source tree is in a directory
  2287. # whose full name contains unusual characters.
  2288. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2289. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2290. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2291. # Values for SONAME. See -version-info for details.
  2292. SONAME_CURRENT=3
  2293. SONAME_REVISION=0
  2294. SONAME_AGE=0
  2295. # Check for system extensions (_POSIX_THREAD_SEMANTICS for Solaris)
  2296. # Expand $ac_aux_dir to an absolute path.
  2297. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2298. ac_ext=c
  2299. ac_cpp='$CPP $CPPFLAGS'
  2300. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2301. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2302. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2303. if test -n "$ac_tool_prefix"; then
  2304. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2305. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2307. $as_echo_n "checking for $ac_word... " >&6; }
  2308. if ${ac_cv_prog_CC+:} false; then :
  2309. $as_echo_n "(cached) " >&6
  2310. else
  2311. if test -n "$CC"; then
  2312. ac_cv_prog_CC="$CC" # Let the user override the test.
  2313. else
  2314. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2315. for as_dir in $PATH
  2316. do
  2317. IFS=$as_save_IFS
  2318. test -z "$as_dir" && as_dir=.
  2319. for ac_exec_ext in '' $ac_executable_extensions; do
  2320. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2321. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2322. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2323. break 2
  2324. fi
  2325. done
  2326. done
  2327. IFS=$as_save_IFS
  2328. fi
  2329. fi
  2330. CC=$ac_cv_prog_CC
  2331. if test -n "$CC"; then
  2332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2333. $as_echo "$CC" >&6; }
  2334. else
  2335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2336. $as_echo "no" >&6; }
  2337. fi
  2338. fi
  2339. if test -z "$ac_cv_prog_CC"; then
  2340. ac_ct_CC=$CC
  2341. # Extract the first word of "gcc", so it can be a program name with args.
  2342. set dummy gcc; ac_word=$2
  2343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2344. $as_echo_n "checking for $ac_word... " >&6; }
  2345. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2346. $as_echo_n "(cached) " >&6
  2347. else
  2348. if test -n "$ac_ct_CC"; then
  2349. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2350. else
  2351. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2352. for as_dir in $PATH
  2353. do
  2354. IFS=$as_save_IFS
  2355. test -z "$as_dir" && as_dir=.
  2356. for ac_exec_ext in '' $ac_executable_extensions; do
  2357. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2358. ac_cv_prog_ac_ct_CC="gcc"
  2359. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2360. break 2
  2361. fi
  2362. done
  2363. done
  2364. IFS=$as_save_IFS
  2365. fi
  2366. fi
  2367. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2368. if test -n "$ac_ct_CC"; then
  2369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2370. $as_echo "$ac_ct_CC" >&6; }
  2371. else
  2372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2373. $as_echo "no" >&6; }
  2374. fi
  2375. if test "x$ac_ct_CC" = x; then
  2376. CC=""
  2377. else
  2378. case $cross_compiling:$ac_tool_warned in
  2379. yes:)
  2380. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2381. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2382. ac_tool_warned=yes ;;
  2383. esac
  2384. CC=$ac_ct_CC
  2385. fi
  2386. else
  2387. CC="$ac_cv_prog_CC"
  2388. fi
  2389. if test -z "$CC"; then
  2390. if test -n "$ac_tool_prefix"; then
  2391. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2392. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2394. $as_echo_n "checking for $ac_word... " >&6; }
  2395. if ${ac_cv_prog_CC+:} false; then :
  2396. $as_echo_n "(cached) " >&6
  2397. else
  2398. if test -n "$CC"; then
  2399. ac_cv_prog_CC="$CC" # Let the user override the test.
  2400. else
  2401. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2402. for as_dir in $PATH
  2403. do
  2404. IFS=$as_save_IFS
  2405. test -z "$as_dir" && as_dir=.
  2406. for ac_exec_ext in '' $ac_executable_extensions; do
  2407. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2408. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2409. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2410. break 2
  2411. fi
  2412. done
  2413. done
  2414. IFS=$as_save_IFS
  2415. fi
  2416. fi
  2417. CC=$ac_cv_prog_CC
  2418. if test -n "$CC"; then
  2419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2420. $as_echo "$CC" >&6; }
  2421. else
  2422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2423. $as_echo "no" >&6; }
  2424. fi
  2425. fi
  2426. fi
  2427. if test -z "$CC"; then
  2428. # Extract the first word of "cc", so it can be a program name with args.
  2429. set dummy cc; ac_word=$2
  2430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2431. $as_echo_n "checking for $ac_word... " >&6; }
  2432. if ${ac_cv_prog_CC+:} false; then :
  2433. $as_echo_n "(cached) " >&6
  2434. else
  2435. if test -n "$CC"; then
  2436. ac_cv_prog_CC="$CC" # Let the user override the test.
  2437. else
  2438. ac_prog_rejected=no
  2439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2440. for as_dir in $PATH
  2441. do
  2442. IFS=$as_save_IFS
  2443. test -z "$as_dir" && as_dir=.
  2444. for ac_exec_ext in '' $ac_executable_extensions; do
  2445. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2446. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2447. ac_prog_rejected=yes
  2448. continue
  2449. fi
  2450. ac_cv_prog_CC="cc"
  2451. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2452. break 2
  2453. fi
  2454. done
  2455. done
  2456. IFS=$as_save_IFS
  2457. if test $ac_prog_rejected = yes; then
  2458. # We found a bogon in the path, so make sure we never use it.
  2459. set dummy $ac_cv_prog_CC
  2460. shift
  2461. if test $# != 0; then
  2462. # We chose a different compiler from the bogus one.
  2463. # However, it has the same basename, so the bogon will be chosen
  2464. # first if we set CC to just the basename; use the full file name.
  2465. shift
  2466. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2467. fi
  2468. fi
  2469. fi
  2470. fi
  2471. CC=$ac_cv_prog_CC
  2472. if test -n "$CC"; then
  2473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2474. $as_echo "$CC" >&6; }
  2475. else
  2476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2477. $as_echo "no" >&6; }
  2478. fi
  2479. fi
  2480. if test -z "$CC"; then
  2481. if test -n "$ac_tool_prefix"; then
  2482. for ac_prog in cl.exe
  2483. do
  2484. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2485. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2487. $as_echo_n "checking for $ac_word... " >&6; }
  2488. if ${ac_cv_prog_CC+:} false; then :
  2489. $as_echo_n "(cached) " >&6
  2490. else
  2491. if test -n "$CC"; then
  2492. ac_cv_prog_CC="$CC" # Let the user override the test.
  2493. else
  2494. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2495. for as_dir in $PATH
  2496. do
  2497. IFS=$as_save_IFS
  2498. test -z "$as_dir" && as_dir=.
  2499. for ac_exec_ext in '' $ac_executable_extensions; do
  2500. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2501. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2502. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2503. break 2
  2504. fi
  2505. done
  2506. done
  2507. IFS=$as_save_IFS
  2508. fi
  2509. fi
  2510. CC=$ac_cv_prog_CC
  2511. if test -n "$CC"; then
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2513. $as_echo "$CC" >&6; }
  2514. else
  2515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2516. $as_echo "no" >&6; }
  2517. fi
  2518. test -n "$CC" && break
  2519. done
  2520. fi
  2521. if test -z "$CC"; then
  2522. ac_ct_CC=$CC
  2523. for ac_prog in cl.exe
  2524. do
  2525. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2526. set dummy $ac_prog; ac_word=$2
  2527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2528. $as_echo_n "checking for $ac_word... " >&6; }
  2529. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2530. $as_echo_n "(cached) " >&6
  2531. else
  2532. if test -n "$ac_ct_CC"; then
  2533. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2534. else
  2535. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2536. for as_dir in $PATH
  2537. do
  2538. IFS=$as_save_IFS
  2539. test -z "$as_dir" && as_dir=.
  2540. for ac_exec_ext in '' $ac_executable_extensions; do
  2541. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2542. ac_cv_prog_ac_ct_CC="$ac_prog"
  2543. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2544. break 2
  2545. fi
  2546. done
  2547. done
  2548. IFS=$as_save_IFS
  2549. fi
  2550. fi
  2551. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2552. if test -n "$ac_ct_CC"; then
  2553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2554. $as_echo "$ac_ct_CC" >&6; }
  2555. else
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2557. $as_echo "no" >&6; }
  2558. fi
  2559. test -n "$ac_ct_CC" && break
  2560. done
  2561. if test "x$ac_ct_CC" = x; then
  2562. CC=""
  2563. else
  2564. case $cross_compiling:$ac_tool_warned in
  2565. yes:)
  2566. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2567. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2568. ac_tool_warned=yes ;;
  2569. esac
  2570. CC=$ac_ct_CC
  2571. fi
  2572. fi
  2573. fi
  2574. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2575. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2576. as_fn_error $? "no acceptable C compiler found in \$PATH
  2577. See \`config.log' for more details" "$LINENO" 5; }
  2578. # Provide some information about the compiler.
  2579. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2580. set X $ac_compile
  2581. ac_compiler=$2
  2582. for ac_option in --version -v -V -qversion; do
  2583. { { ac_try="$ac_compiler $ac_option >&5"
  2584. case "(($ac_try" in
  2585. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2586. *) ac_try_echo=$ac_try;;
  2587. esac
  2588. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2589. $as_echo "$ac_try_echo"; } >&5
  2590. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2591. ac_status=$?
  2592. if test -s conftest.err; then
  2593. sed '10a\
  2594. ... rest of stderr output deleted ...
  2595. 10q' conftest.err >conftest.er1
  2596. cat conftest.er1 >&5
  2597. fi
  2598. rm -f conftest.er1 conftest.err
  2599. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2600. test $ac_status = 0; }
  2601. done
  2602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2603. /* end confdefs.h. */
  2604. int
  2605. main ()
  2606. {
  2607. ;
  2608. return 0;
  2609. }
  2610. _ACEOF
  2611. ac_clean_files_save=$ac_clean_files
  2612. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2613. # Try to create an executable without -o first, disregard a.out.
  2614. # It will help us diagnose broken compilers, and finding out an intuition
  2615. # of exeext.
  2616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2617. $as_echo_n "checking whether the C compiler works... " >&6; }
  2618. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2619. # The possible output files:
  2620. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2621. ac_rmfiles=
  2622. for ac_file in $ac_files
  2623. do
  2624. case $ac_file in
  2625. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2626. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2627. esac
  2628. done
  2629. rm -f $ac_rmfiles
  2630. if { { ac_try="$ac_link_default"
  2631. case "(($ac_try" in
  2632. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2633. *) ac_try_echo=$ac_try;;
  2634. esac
  2635. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2636. $as_echo "$ac_try_echo"; } >&5
  2637. (eval "$ac_link_default") 2>&5
  2638. ac_status=$?
  2639. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2640. test $ac_status = 0; }; then :
  2641. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2642. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2643. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2644. # so that the user can short-circuit this test for compilers unknown to
  2645. # Autoconf.
  2646. for ac_file in $ac_files ''
  2647. do
  2648. test -f "$ac_file" || continue
  2649. case $ac_file in
  2650. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2651. ;;
  2652. [ab].out )
  2653. # We found the default executable, but exeext='' is most
  2654. # certainly right.
  2655. break;;
  2656. *.* )
  2657. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2658. then :; else
  2659. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2660. fi
  2661. # We set ac_cv_exeext here because the later test for it is not
  2662. # safe: cross compilers may not add the suffix if given an `-o'
  2663. # argument, so we may need to know it at that point already.
  2664. # Even if this section looks crufty: it has the advantage of
  2665. # actually working.
  2666. break;;
  2667. * )
  2668. break;;
  2669. esac
  2670. done
  2671. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2672. else
  2673. ac_file=''
  2674. fi
  2675. if test -z "$ac_file"; then :
  2676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2677. $as_echo "no" >&6; }
  2678. $as_echo "$as_me: failed program was:" >&5
  2679. sed 's/^/| /' conftest.$ac_ext >&5
  2680. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2681. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2682. as_fn_error 77 "C compiler cannot create executables
  2683. See \`config.log' for more details" "$LINENO" 5; }
  2684. else
  2685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2686. $as_echo "yes" >&6; }
  2687. fi
  2688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2689. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2691. $as_echo "$ac_file" >&6; }
  2692. ac_exeext=$ac_cv_exeext
  2693. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2694. ac_clean_files=$ac_clean_files_save
  2695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2696. $as_echo_n "checking for suffix of executables... " >&6; }
  2697. if { { ac_try="$ac_link"
  2698. case "(($ac_try" in
  2699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2700. *) ac_try_echo=$ac_try;;
  2701. esac
  2702. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2703. $as_echo "$ac_try_echo"; } >&5
  2704. (eval "$ac_link") 2>&5
  2705. ac_status=$?
  2706. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2707. test $ac_status = 0; }; then :
  2708. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2709. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2710. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2711. # `rm'.
  2712. for ac_file in conftest.exe conftest conftest.*; do
  2713. test -f "$ac_file" || continue
  2714. case $ac_file in
  2715. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2716. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2717. break;;
  2718. * ) break;;
  2719. esac
  2720. done
  2721. else
  2722. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2723. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2724. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2725. See \`config.log' for more details" "$LINENO" 5; }
  2726. fi
  2727. rm -f conftest conftest$ac_cv_exeext
  2728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2729. $as_echo "$ac_cv_exeext" >&6; }
  2730. rm -f conftest.$ac_ext
  2731. EXEEXT=$ac_cv_exeext
  2732. ac_exeext=$EXEEXT
  2733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2734. /* end confdefs.h. */
  2735. #include <stdio.h>
  2736. int
  2737. main ()
  2738. {
  2739. FILE *f = fopen ("conftest.out", "w");
  2740. return ferror (f) || fclose (f) != 0;
  2741. ;
  2742. return 0;
  2743. }
  2744. _ACEOF
  2745. ac_clean_files="$ac_clean_files conftest.out"
  2746. # Check that the compiler produces executables we can run. If not, either
  2747. # the compiler is broken, or we cross compile.
  2748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2749. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2750. if test "$cross_compiling" != yes; then
  2751. { { ac_try="$ac_link"
  2752. case "(($ac_try" in
  2753. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2754. *) ac_try_echo=$ac_try;;
  2755. esac
  2756. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2757. $as_echo "$ac_try_echo"; } >&5
  2758. (eval "$ac_link") 2>&5
  2759. ac_status=$?
  2760. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2761. test $ac_status = 0; }
  2762. if { ac_try='./conftest$ac_cv_exeext'
  2763. { { case "(($ac_try" in
  2764. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2765. *) ac_try_echo=$ac_try;;
  2766. esac
  2767. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2768. $as_echo "$ac_try_echo"; } >&5
  2769. (eval "$ac_try") 2>&5
  2770. ac_status=$?
  2771. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2772. test $ac_status = 0; }; }; then
  2773. cross_compiling=no
  2774. else
  2775. if test "$cross_compiling" = maybe; then
  2776. cross_compiling=yes
  2777. else
  2778. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2779. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2780. as_fn_error $? "cannot run C compiled programs.
  2781. If you meant to cross compile, use \`--host'.
  2782. See \`config.log' for more details" "$LINENO" 5; }
  2783. fi
  2784. fi
  2785. fi
  2786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2787. $as_echo "$cross_compiling" >&6; }
  2788. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2789. ac_clean_files=$ac_clean_files_save
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2791. $as_echo_n "checking for suffix of object files... " >&6; }
  2792. if ${ac_cv_objext+:} false; then :
  2793. $as_echo_n "(cached) " >&6
  2794. else
  2795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2796. /* end confdefs.h. */
  2797. int
  2798. main ()
  2799. {
  2800. ;
  2801. return 0;
  2802. }
  2803. _ACEOF
  2804. rm -f conftest.o conftest.obj
  2805. if { { ac_try="$ac_compile"
  2806. case "(($ac_try" in
  2807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2808. *) ac_try_echo=$ac_try;;
  2809. esac
  2810. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2811. $as_echo "$ac_try_echo"; } >&5
  2812. (eval "$ac_compile") 2>&5
  2813. ac_status=$?
  2814. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2815. test $ac_status = 0; }; then :
  2816. for ac_file in conftest.o conftest.obj conftest.*; do
  2817. test -f "$ac_file" || continue;
  2818. case $ac_file in
  2819. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2820. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2821. break;;
  2822. esac
  2823. done
  2824. else
  2825. $as_echo "$as_me: failed program was:" >&5
  2826. sed 's/^/| /' conftest.$ac_ext >&5
  2827. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2828. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2829. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2830. See \`config.log' for more details" "$LINENO" 5; }
  2831. fi
  2832. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2833. fi
  2834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2835. $as_echo "$ac_cv_objext" >&6; }
  2836. OBJEXT=$ac_cv_objext
  2837. ac_objext=$OBJEXT
  2838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2839. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2840. if ${ac_cv_c_compiler_gnu+:} false; then :
  2841. $as_echo_n "(cached) " >&6
  2842. else
  2843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2844. /* end confdefs.h. */
  2845. int
  2846. main ()
  2847. {
  2848. #ifndef __GNUC__
  2849. choke me
  2850. #endif
  2851. ;
  2852. return 0;
  2853. }
  2854. _ACEOF
  2855. if ac_fn_c_try_compile "$LINENO"; then :
  2856. ac_compiler_gnu=yes
  2857. else
  2858. ac_compiler_gnu=no
  2859. fi
  2860. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2861. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2862. fi
  2863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2864. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2865. if test $ac_compiler_gnu = yes; then
  2866. GCC=yes
  2867. else
  2868. GCC=
  2869. fi
  2870. ac_test_CFLAGS=${CFLAGS+set}
  2871. ac_save_CFLAGS=$CFLAGS
  2872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2873. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2874. if ${ac_cv_prog_cc_g+:} false; then :
  2875. $as_echo_n "(cached) " >&6
  2876. else
  2877. ac_save_c_werror_flag=$ac_c_werror_flag
  2878. ac_c_werror_flag=yes
  2879. ac_cv_prog_cc_g=no
  2880. CFLAGS="-g"
  2881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2882. /* end confdefs.h. */
  2883. int
  2884. main ()
  2885. {
  2886. ;
  2887. return 0;
  2888. }
  2889. _ACEOF
  2890. if ac_fn_c_try_compile "$LINENO"; then :
  2891. ac_cv_prog_cc_g=yes
  2892. else
  2893. CFLAGS=""
  2894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2895. /* end confdefs.h. */
  2896. int
  2897. main ()
  2898. {
  2899. ;
  2900. return 0;
  2901. }
  2902. _ACEOF
  2903. if ac_fn_c_try_compile "$LINENO"; then :
  2904. else
  2905. ac_c_werror_flag=$ac_save_c_werror_flag
  2906. CFLAGS="-g"
  2907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2908. /* end confdefs.h. */
  2909. int
  2910. main ()
  2911. {
  2912. ;
  2913. return 0;
  2914. }
  2915. _ACEOF
  2916. if ac_fn_c_try_compile "$LINENO"; then :
  2917. ac_cv_prog_cc_g=yes
  2918. fi
  2919. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2920. fi
  2921. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2922. fi
  2923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2924. ac_c_werror_flag=$ac_save_c_werror_flag
  2925. fi
  2926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2927. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2928. if test "$ac_test_CFLAGS" = set; then
  2929. CFLAGS=$ac_save_CFLAGS
  2930. elif test $ac_cv_prog_cc_g = yes; then
  2931. if test "$GCC" = yes; then
  2932. CFLAGS="-g -O2"
  2933. else
  2934. CFLAGS="-g"
  2935. fi
  2936. else
  2937. if test "$GCC" = yes; then
  2938. CFLAGS="-O2"
  2939. else
  2940. CFLAGS=
  2941. fi
  2942. fi
  2943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2944. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2945. if ${ac_cv_prog_cc_c89+:} false; then :
  2946. $as_echo_n "(cached) " >&6
  2947. else
  2948. ac_cv_prog_cc_c89=no
  2949. ac_save_CC=$CC
  2950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2951. /* end confdefs.h. */
  2952. #include <stdarg.h>
  2953. #include <stdio.h>
  2954. struct stat;
  2955. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2956. struct buf { int x; };
  2957. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2958. static char *e (p, i)
  2959. char **p;
  2960. int i;
  2961. {
  2962. return p[i];
  2963. }
  2964. static char *f (char * (*g) (char **, int), char **p, ...)
  2965. {
  2966. char *s;
  2967. va_list v;
  2968. va_start (v,p);
  2969. s = g (p, va_arg (v,int));
  2970. va_end (v);
  2971. return s;
  2972. }
  2973. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2974. function prototypes and stuff, but not '\xHH' hex character constants.
  2975. These don't provoke an error unfortunately, instead are silently treated
  2976. as 'x'. The following induces an error, until -std is added to get
  2977. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2978. array size at least. It's necessary to write '\x00'==0 to get something
  2979. that's true only with -std. */
  2980. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2981. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2982. inside strings and character constants. */
  2983. #define FOO(x) 'x'
  2984. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2985. int test (int i, double x);
  2986. struct s1 {int (*f) (int a);};
  2987. struct s2 {int (*f) (double a);};
  2988. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2989. int argc;
  2990. char **argv;
  2991. int
  2992. main ()
  2993. {
  2994. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2995. ;
  2996. return 0;
  2997. }
  2998. _ACEOF
  2999. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3000. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3001. do
  3002. CC="$ac_save_CC $ac_arg"
  3003. if ac_fn_c_try_compile "$LINENO"; then :
  3004. ac_cv_prog_cc_c89=$ac_arg
  3005. fi
  3006. rm -f core conftest.err conftest.$ac_objext
  3007. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3008. done
  3009. rm -f conftest.$ac_ext
  3010. CC=$ac_save_CC
  3011. fi
  3012. # AC_CACHE_VAL
  3013. case "x$ac_cv_prog_cc_c89" in
  3014. x)
  3015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3016. $as_echo "none needed" >&6; } ;;
  3017. xno)
  3018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3019. $as_echo "unsupported" >&6; } ;;
  3020. *)
  3021. CC="$CC $ac_cv_prog_cc_c89"
  3022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3023. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3024. esac
  3025. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3026. fi
  3027. ac_ext=c
  3028. ac_cpp='$CPP $CPPFLAGS'
  3029. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3030. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3031. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3032. ac_ext=c
  3033. ac_cpp='$CPP $CPPFLAGS'
  3034. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3035. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3036. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3038. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3039. if ${am_cv_prog_cc_c_o+:} false; then :
  3040. $as_echo_n "(cached) " >&6
  3041. else
  3042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3043. /* end confdefs.h. */
  3044. int
  3045. main ()
  3046. {
  3047. ;
  3048. return 0;
  3049. }
  3050. _ACEOF
  3051. # Make sure it works both with $CC and with simple cc.
  3052. # Following AC_PROG_CC_C_O, we do the test twice because some
  3053. # compilers refuse to overwrite an existing .o file with -o,
  3054. # though they will create one.
  3055. am_cv_prog_cc_c_o=yes
  3056. for am_i in 1 2; do
  3057. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3058. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3059. ac_status=$?
  3060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3061. (exit $ac_status); } \
  3062. && test -f conftest2.$ac_objext; then
  3063. : OK
  3064. else
  3065. am_cv_prog_cc_c_o=no
  3066. break
  3067. fi
  3068. done
  3069. rm -f core conftest*
  3070. unset am_i
  3071. fi
  3072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3073. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3074. if test "$am_cv_prog_cc_c_o" != yes; then
  3075. # Losing compiler, so override with the script.
  3076. # FIXME: It is wrong to rewrite CC.
  3077. # But if we don't then we get into trouble of one sort or another.
  3078. # A longer-term fix would be to have automake use am__CC in this case,
  3079. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3080. CC="$am_aux_dir/compile $CC"
  3081. fi
  3082. ac_ext=c
  3083. ac_cpp='$CPP $CPPFLAGS'
  3084. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3085. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3086. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3087. ac_ext=c
  3088. ac_cpp='$CPP $CPPFLAGS'
  3089. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3090. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3091. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3093. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3094. # On Suns, sometimes $CPP names a directory.
  3095. if test -n "$CPP" && test -d "$CPP"; then
  3096. CPP=
  3097. fi
  3098. if test -z "$CPP"; then
  3099. if ${ac_cv_prog_CPP+:} false; then :
  3100. $as_echo_n "(cached) " >&6
  3101. else
  3102. # Double quotes because CPP needs to be expanded
  3103. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3104. do
  3105. ac_preproc_ok=false
  3106. for ac_c_preproc_warn_flag in '' yes
  3107. do
  3108. # Use a header file that comes with gcc, so configuring glibc
  3109. # with a fresh cross-compiler works.
  3110. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3111. # <limits.h> exists even on freestanding compilers.
  3112. # On the NeXT, cc -E runs the code through the compiler's parser,
  3113. # not just through cpp. "Syntax error" is here to catch this case.
  3114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3115. /* end confdefs.h. */
  3116. #ifdef __STDC__
  3117. # include <limits.h>
  3118. #else
  3119. # include <assert.h>
  3120. #endif
  3121. Syntax error
  3122. _ACEOF
  3123. if ac_fn_c_try_cpp "$LINENO"; then :
  3124. else
  3125. # Broken: fails on valid input.
  3126. continue
  3127. fi
  3128. rm -f conftest.err conftest.i conftest.$ac_ext
  3129. # OK, works on sane cases. Now check whether nonexistent headers
  3130. # can be detected and how.
  3131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3132. /* end confdefs.h. */
  3133. #include <ac_nonexistent.h>
  3134. _ACEOF
  3135. if ac_fn_c_try_cpp "$LINENO"; then :
  3136. # Broken: success on invalid input.
  3137. continue
  3138. else
  3139. # Passes both tests.
  3140. ac_preproc_ok=:
  3141. break
  3142. fi
  3143. rm -f conftest.err conftest.i conftest.$ac_ext
  3144. done
  3145. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3146. rm -f conftest.i conftest.err conftest.$ac_ext
  3147. if $ac_preproc_ok; then :
  3148. break
  3149. fi
  3150. done
  3151. ac_cv_prog_CPP=$CPP
  3152. fi
  3153. CPP=$ac_cv_prog_CPP
  3154. else
  3155. ac_cv_prog_CPP=$CPP
  3156. fi
  3157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3158. $as_echo "$CPP" >&6; }
  3159. ac_preproc_ok=false
  3160. for ac_c_preproc_warn_flag in '' yes
  3161. do
  3162. # Use a header file that comes with gcc, so configuring glibc
  3163. # with a fresh cross-compiler works.
  3164. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3165. # <limits.h> exists even on freestanding compilers.
  3166. # On the NeXT, cc -E runs the code through the compiler's parser,
  3167. # not just through cpp. "Syntax error" is here to catch this case.
  3168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3169. /* end confdefs.h. */
  3170. #ifdef __STDC__
  3171. # include <limits.h>
  3172. #else
  3173. # include <assert.h>
  3174. #endif
  3175. Syntax error
  3176. _ACEOF
  3177. if ac_fn_c_try_cpp "$LINENO"; then :
  3178. else
  3179. # Broken: fails on valid input.
  3180. continue
  3181. fi
  3182. rm -f conftest.err conftest.i conftest.$ac_ext
  3183. # OK, works on sane cases. Now check whether nonexistent headers
  3184. # can be detected and how.
  3185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3186. /* end confdefs.h. */
  3187. #include <ac_nonexistent.h>
  3188. _ACEOF
  3189. if ac_fn_c_try_cpp "$LINENO"; then :
  3190. # Broken: success on invalid input.
  3191. continue
  3192. else
  3193. # Passes both tests.
  3194. ac_preproc_ok=:
  3195. break
  3196. fi
  3197. rm -f conftest.err conftest.i conftest.$ac_ext
  3198. done
  3199. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3200. rm -f conftest.i conftest.err conftest.$ac_ext
  3201. if $ac_preproc_ok; then :
  3202. else
  3203. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3204. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3205. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3206. See \`config.log' for more details" "$LINENO" 5; }
  3207. fi
  3208. ac_ext=c
  3209. ac_cpp='$CPP $CPPFLAGS'
  3210. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3211. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3212. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3214. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3215. if ${ac_cv_path_GREP+:} false; then :
  3216. $as_echo_n "(cached) " >&6
  3217. else
  3218. if test -z "$GREP"; then
  3219. ac_path_GREP_found=false
  3220. # Loop through the user's path and test for each of PROGNAME-LIST
  3221. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3222. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3223. do
  3224. IFS=$as_save_IFS
  3225. test -z "$as_dir" && as_dir=.
  3226. for ac_prog in grep ggrep; do
  3227. for ac_exec_ext in '' $ac_executable_extensions; do
  3228. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3229. as_fn_executable_p "$ac_path_GREP" || continue
  3230. # Check for GNU ac_path_GREP and select it if it is found.
  3231. # Check for GNU $ac_path_GREP
  3232. case `"$ac_path_GREP" --version 2>&1` in
  3233. *GNU*)
  3234. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3235. *)
  3236. ac_count=0
  3237. $as_echo_n 0123456789 >"conftest.in"
  3238. while :
  3239. do
  3240. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3241. mv "conftest.tmp" "conftest.in"
  3242. cp "conftest.in" "conftest.nl"
  3243. $as_echo 'GREP' >> "conftest.nl"
  3244. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3245. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3246. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3247. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3248. # Best one so far, save it but keep looking for a better one
  3249. ac_cv_path_GREP="$ac_path_GREP"
  3250. ac_path_GREP_max=$ac_count
  3251. fi
  3252. # 10*(2^10) chars as input seems more than enough
  3253. test $ac_count -gt 10 && break
  3254. done
  3255. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3256. esac
  3257. $ac_path_GREP_found && break 3
  3258. done
  3259. done
  3260. done
  3261. IFS=$as_save_IFS
  3262. if test -z "$ac_cv_path_GREP"; then
  3263. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3264. fi
  3265. else
  3266. ac_cv_path_GREP=$GREP
  3267. fi
  3268. fi
  3269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3270. $as_echo "$ac_cv_path_GREP" >&6; }
  3271. GREP="$ac_cv_path_GREP"
  3272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3273. $as_echo_n "checking for egrep... " >&6; }
  3274. if ${ac_cv_path_EGREP+:} false; then :
  3275. $as_echo_n "(cached) " >&6
  3276. else
  3277. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3278. then ac_cv_path_EGREP="$GREP -E"
  3279. else
  3280. if test -z "$EGREP"; then
  3281. ac_path_EGREP_found=false
  3282. # Loop through the user's path and test for each of PROGNAME-LIST
  3283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3284. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3285. do
  3286. IFS=$as_save_IFS
  3287. test -z "$as_dir" && as_dir=.
  3288. for ac_prog in egrep; do
  3289. for ac_exec_ext in '' $ac_executable_extensions; do
  3290. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3291. as_fn_executable_p "$ac_path_EGREP" || continue
  3292. # Check for GNU ac_path_EGREP and select it if it is found.
  3293. # Check for GNU $ac_path_EGREP
  3294. case `"$ac_path_EGREP" --version 2>&1` in
  3295. *GNU*)
  3296. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3297. *)
  3298. ac_count=0
  3299. $as_echo_n 0123456789 >"conftest.in"
  3300. while :
  3301. do
  3302. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3303. mv "conftest.tmp" "conftest.in"
  3304. cp "conftest.in" "conftest.nl"
  3305. $as_echo 'EGREP' >> "conftest.nl"
  3306. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3307. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3308. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3309. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3310. # Best one so far, save it but keep looking for a better one
  3311. ac_cv_path_EGREP="$ac_path_EGREP"
  3312. ac_path_EGREP_max=$ac_count
  3313. fi
  3314. # 10*(2^10) chars as input seems more than enough
  3315. test $ac_count -gt 10 && break
  3316. done
  3317. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3318. esac
  3319. $ac_path_EGREP_found && break 3
  3320. done
  3321. done
  3322. done
  3323. IFS=$as_save_IFS
  3324. if test -z "$ac_cv_path_EGREP"; then
  3325. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3326. fi
  3327. else
  3328. ac_cv_path_EGREP=$EGREP
  3329. fi
  3330. fi
  3331. fi
  3332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3333. $as_echo "$ac_cv_path_EGREP" >&6; }
  3334. EGREP="$ac_cv_path_EGREP"
  3335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3336. $as_echo_n "checking for ANSI C header files... " >&6; }
  3337. if ${ac_cv_header_stdc+:} false; then :
  3338. $as_echo_n "(cached) " >&6
  3339. else
  3340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3341. /* end confdefs.h. */
  3342. #include <stdlib.h>
  3343. #include <stdarg.h>
  3344. #include <string.h>
  3345. #include <float.h>
  3346. int
  3347. main ()
  3348. {
  3349. ;
  3350. return 0;
  3351. }
  3352. _ACEOF
  3353. if ac_fn_c_try_compile "$LINENO"; then :
  3354. ac_cv_header_stdc=yes
  3355. else
  3356. ac_cv_header_stdc=no
  3357. fi
  3358. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3359. if test $ac_cv_header_stdc = yes; then
  3360. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3362. /* end confdefs.h. */
  3363. #include <string.h>
  3364. _ACEOF
  3365. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3366. $EGREP "memchr" >/dev/null 2>&1; then :
  3367. else
  3368. ac_cv_header_stdc=no
  3369. fi
  3370. rm -f conftest*
  3371. fi
  3372. if test $ac_cv_header_stdc = yes; then
  3373. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3375. /* end confdefs.h. */
  3376. #include <stdlib.h>
  3377. _ACEOF
  3378. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3379. $EGREP "free" >/dev/null 2>&1; then :
  3380. else
  3381. ac_cv_header_stdc=no
  3382. fi
  3383. rm -f conftest*
  3384. fi
  3385. if test $ac_cv_header_stdc = yes; then
  3386. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3387. if test "$cross_compiling" = yes; then :
  3388. :
  3389. else
  3390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3391. /* end confdefs.h. */
  3392. #include <ctype.h>
  3393. #include <stdlib.h>
  3394. #if ((' ' & 0x0FF) == 0x020)
  3395. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3396. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3397. #else
  3398. # define ISLOWER(c) \
  3399. (('a' <= (c) && (c) <= 'i') \
  3400. || ('j' <= (c) && (c) <= 'r') \
  3401. || ('s' <= (c) && (c) <= 'z'))
  3402. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3403. #endif
  3404. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3405. int
  3406. main ()
  3407. {
  3408. int i;
  3409. for (i = 0; i < 256; i++)
  3410. if (XOR (islower (i), ISLOWER (i))
  3411. || toupper (i) != TOUPPER (i))
  3412. return 2;
  3413. return 0;
  3414. }
  3415. _ACEOF
  3416. if ac_fn_c_try_run "$LINENO"; then :
  3417. else
  3418. ac_cv_header_stdc=no
  3419. fi
  3420. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3421. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3422. fi
  3423. fi
  3424. fi
  3425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3426. $as_echo "$ac_cv_header_stdc" >&6; }
  3427. if test $ac_cv_header_stdc = yes; then
  3428. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3429. fi
  3430. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3431. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3432. inttypes.h stdint.h unistd.h
  3433. do :
  3434. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3435. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3436. "
  3437. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3438. cat >>confdefs.h <<_ACEOF
  3439. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3440. _ACEOF
  3441. fi
  3442. done
  3443. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3444. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  3445. MINIX=yes
  3446. else
  3447. MINIX=
  3448. fi
  3449. if test "$MINIX" = yes; then
  3450. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3451. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3452. $as_echo "#define _MINIX 1" >>confdefs.h
  3453. fi
  3454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3455. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3456. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  3457. $as_echo_n "(cached) " >&6
  3458. else
  3459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3460. /* end confdefs.h. */
  3461. # define __EXTENSIONS__ 1
  3462. $ac_includes_default
  3463. int
  3464. main ()
  3465. {
  3466. ;
  3467. return 0;
  3468. }
  3469. _ACEOF
  3470. if ac_fn_c_try_compile "$LINENO"; then :
  3471. ac_cv_safe_to_define___extensions__=yes
  3472. else
  3473. ac_cv_safe_to_define___extensions__=no
  3474. fi
  3475. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3476. fi
  3477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3478. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3479. test $ac_cv_safe_to_define___extensions__ = yes &&
  3480. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3481. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3482. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3483. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3484. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3485. # Checks for programs.
  3486. ac_ext=c
  3487. ac_cpp='$CPP $CPPFLAGS'
  3488. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3489. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3490. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3491. if test -n "$ac_tool_prefix"; then
  3492. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3493. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3495. $as_echo_n "checking for $ac_word... " >&6; }
  3496. if ${ac_cv_prog_CC+:} false; then :
  3497. $as_echo_n "(cached) " >&6
  3498. else
  3499. if test -n "$CC"; then
  3500. ac_cv_prog_CC="$CC" # Let the user override the test.
  3501. else
  3502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3503. for as_dir in $PATH
  3504. do
  3505. IFS=$as_save_IFS
  3506. test -z "$as_dir" && as_dir=.
  3507. for ac_exec_ext in '' $ac_executable_extensions; do
  3508. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3509. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3510. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3511. break 2
  3512. fi
  3513. done
  3514. done
  3515. IFS=$as_save_IFS
  3516. fi
  3517. fi
  3518. CC=$ac_cv_prog_CC
  3519. if test -n "$CC"; then
  3520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3521. $as_echo "$CC" >&6; }
  3522. else
  3523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3524. $as_echo "no" >&6; }
  3525. fi
  3526. fi
  3527. if test -z "$ac_cv_prog_CC"; then
  3528. ac_ct_CC=$CC
  3529. # Extract the first word of "gcc", so it can be a program name with args.
  3530. set dummy gcc; ac_word=$2
  3531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3532. $as_echo_n "checking for $ac_word... " >&6; }
  3533. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3534. $as_echo_n "(cached) " >&6
  3535. else
  3536. if test -n "$ac_ct_CC"; then
  3537. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3538. else
  3539. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3540. for as_dir in $PATH
  3541. do
  3542. IFS=$as_save_IFS
  3543. test -z "$as_dir" && as_dir=.
  3544. for ac_exec_ext in '' $ac_executable_extensions; do
  3545. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3546. ac_cv_prog_ac_ct_CC="gcc"
  3547. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3548. break 2
  3549. fi
  3550. done
  3551. done
  3552. IFS=$as_save_IFS
  3553. fi
  3554. fi
  3555. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3556. if test -n "$ac_ct_CC"; then
  3557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3558. $as_echo "$ac_ct_CC" >&6; }
  3559. else
  3560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3561. $as_echo "no" >&6; }
  3562. fi
  3563. if test "x$ac_ct_CC" = x; then
  3564. CC=""
  3565. else
  3566. case $cross_compiling:$ac_tool_warned in
  3567. yes:)
  3568. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3569. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3570. ac_tool_warned=yes ;;
  3571. esac
  3572. CC=$ac_ct_CC
  3573. fi
  3574. else
  3575. CC="$ac_cv_prog_CC"
  3576. fi
  3577. if test -z "$CC"; then
  3578. if test -n "$ac_tool_prefix"; then
  3579. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3580. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3582. $as_echo_n "checking for $ac_word... " >&6; }
  3583. if ${ac_cv_prog_CC+:} false; then :
  3584. $as_echo_n "(cached) " >&6
  3585. else
  3586. if test -n "$CC"; then
  3587. ac_cv_prog_CC="$CC" # Let the user override the test.
  3588. else
  3589. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3590. for as_dir in $PATH
  3591. do
  3592. IFS=$as_save_IFS
  3593. test -z "$as_dir" && as_dir=.
  3594. for ac_exec_ext in '' $ac_executable_extensions; do
  3595. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3596. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3597. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3598. break 2
  3599. fi
  3600. done
  3601. done
  3602. IFS=$as_save_IFS
  3603. fi
  3604. fi
  3605. CC=$ac_cv_prog_CC
  3606. if test -n "$CC"; then
  3607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3608. $as_echo "$CC" >&6; }
  3609. else
  3610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3611. $as_echo "no" >&6; }
  3612. fi
  3613. fi
  3614. fi
  3615. if test -z "$CC"; then
  3616. # Extract the first word of "cc", so it can be a program name with args.
  3617. set dummy cc; ac_word=$2
  3618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3619. $as_echo_n "checking for $ac_word... " >&6; }
  3620. if ${ac_cv_prog_CC+:} false; then :
  3621. $as_echo_n "(cached) " >&6
  3622. else
  3623. if test -n "$CC"; then
  3624. ac_cv_prog_CC="$CC" # Let the user override the test.
  3625. else
  3626. ac_prog_rejected=no
  3627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3628. for as_dir in $PATH
  3629. do
  3630. IFS=$as_save_IFS
  3631. test -z "$as_dir" && as_dir=.
  3632. for ac_exec_ext in '' $ac_executable_extensions; do
  3633. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3634. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3635. ac_prog_rejected=yes
  3636. continue
  3637. fi
  3638. ac_cv_prog_CC="cc"
  3639. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3640. break 2
  3641. fi
  3642. done
  3643. done
  3644. IFS=$as_save_IFS
  3645. if test $ac_prog_rejected = yes; then
  3646. # We found a bogon in the path, so make sure we never use it.
  3647. set dummy $ac_cv_prog_CC
  3648. shift
  3649. if test $# != 0; then
  3650. # We chose a different compiler from the bogus one.
  3651. # However, it has the same basename, so the bogon will be chosen
  3652. # first if we set CC to just the basename; use the full file name.
  3653. shift
  3654. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3655. fi
  3656. fi
  3657. fi
  3658. fi
  3659. CC=$ac_cv_prog_CC
  3660. if test -n "$CC"; then
  3661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3662. $as_echo "$CC" >&6; }
  3663. else
  3664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3665. $as_echo "no" >&6; }
  3666. fi
  3667. fi
  3668. if test -z "$CC"; then
  3669. if test -n "$ac_tool_prefix"; then
  3670. for ac_prog in cl.exe
  3671. do
  3672. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3673. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3675. $as_echo_n "checking for $ac_word... " >&6; }
  3676. if ${ac_cv_prog_CC+:} false; then :
  3677. $as_echo_n "(cached) " >&6
  3678. else
  3679. if test -n "$CC"; then
  3680. ac_cv_prog_CC="$CC" # Let the user override the test.
  3681. else
  3682. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3683. for as_dir in $PATH
  3684. do
  3685. IFS=$as_save_IFS
  3686. test -z "$as_dir" && as_dir=.
  3687. for ac_exec_ext in '' $ac_executable_extensions; do
  3688. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3689. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3690. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3691. break 2
  3692. fi
  3693. done
  3694. done
  3695. IFS=$as_save_IFS
  3696. fi
  3697. fi
  3698. CC=$ac_cv_prog_CC
  3699. if test -n "$CC"; then
  3700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3701. $as_echo "$CC" >&6; }
  3702. else
  3703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3704. $as_echo "no" >&6; }
  3705. fi
  3706. test -n "$CC" && break
  3707. done
  3708. fi
  3709. if test -z "$CC"; then
  3710. ac_ct_CC=$CC
  3711. for ac_prog in cl.exe
  3712. do
  3713. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3714. set dummy $ac_prog; ac_word=$2
  3715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3716. $as_echo_n "checking for $ac_word... " >&6; }
  3717. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3718. $as_echo_n "(cached) " >&6
  3719. else
  3720. if test -n "$ac_ct_CC"; then
  3721. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3722. else
  3723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3724. for as_dir in $PATH
  3725. do
  3726. IFS=$as_save_IFS
  3727. test -z "$as_dir" && as_dir=.
  3728. for ac_exec_ext in '' $ac_executable_extensions; do
  3729. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3730. ac_cv_prog_ac_ct_CC="$ac_prog"
  3731. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3732. break 2
  3733. fi
  3734. done
  3735. done
  3736. IFS=$as_save_IFS
  3737. fi
  3738. fi
  3739. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3740. if test -n "$ac_ct_CC"; then
  3741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3742. $as_echo "$ac_ct_CC" >&6; }
  3743. else
  3744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3745. $as_echo "no" >&6; }
  3746. fi
  3747. test -n "$ac_ct_CC" && break
  3748. done
  3749. if test "x$ac_ct_CC" = x; then
  3750. CC=""
  3751. else
  3752. case $cross_compiling:$ac_tool_warned in
  3753. yes:)
  3754. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3755. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3756. ac_tool_warned=yes ;;
  3757. esac
  3758. CC=$ac_ct_CC
  3759. fi
  3760. fi
  3761. fi
  3762. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3763. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3764. as_fn_error $? "no acceptable C compiler found in \$PATH
  3765. See \`config.log' for more details" "$LINENO" 5; }
  3766. # Provide some information about the compiler.
  3767. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3768. set X $ac_compile
  3769. ac_compiler=$2
  3770. for ac_option in --version -v -V -qversion; do
  3771. { { ac_try="$ac_compiler $ac_option >&5"
  3772. case "(($ac_try" in
  3773. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3774. *) ac_try_echo=$ac_try;;
  3775. esac
  3776. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3777. $as_echo "$ac_try_echo"; } >&5
  3778. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3779. ac_status=$?
  3780. if test -s conftest.err; then
  3781. sed '10a\
  3782. ... rest of stderr output deleted ...
  3783. 10q' conftest.err >conftest.er1
  3784. cat conftest.er1 >&5
  3785. fi
  3786. rm -f conftest.er1 conftest.err
  3787. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3788. test $ac_status = 0; }
  3789. done
  3790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3791. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3792. if ${ac_cv_c_compiler_gnu+:} false; then :
  3793. $as_echo_n "(cached) " >&6
  3794. else
  3795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3796. /* end confdefs.h. */
  3797. int
  3798. main ()
  3799. {
  3800. #ifndef __GNUC__
  3801. choke me
  3802. #endif
  3803. ;
  3804. return 0;
  3805. }
  3806. _ACEOF
  3807. if ac_fn_c_try_compile "$LINENO"; then :
  3808. ac_compiler_gnu=yes
  3809. else
  3810. ac_compiler_gnu=no
  3811. fi
  3812. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3813. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3814. fi
  3815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3816. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3817. if test $ac_compiler_gnu = yes; then
  3818. GCC=yes
  3819. else
  3820. GCC=
  3821. fi
  3822. ac_test_CFLAGS=${CFLAGS+set}
  3823. ac_save_CFLAGS=$CFLAGS
  3824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3825. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3826. if ${ac_cv_prog_cc_g+:} false; then :
  3827. $as_echo_n "(cached) " >&6
  3828. else
  3829. ac_save_c_werror_flag=$ac_c_werror_flag
  3830. ac_c_werror_flag=yes
  3831. ac_cv_prog_cc_g=no
  3832. CFLAGS="-g"
  3833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3834. /* end confdefs.h. */
  3835. int
  3836. main ()
  3837. {
  3838. ;
  3839. return 0;
  3840. }
  3841. _ACEOF
  3842. if ac_fn_c_try_compile "$LINENO"; then :
  3843. ac_cv_prog_cc_g=yes
  3844. else
  3845. CFLAGS=""
  3846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3847. /* end confdefs.h. */
  3848. int
  3849. main ()
  3850. {
  3851. ;
  3852. return 0;
  3853. }
  3854. _ACEOF
  3855. if ac_fn_c_try_compile "$LINENO"; then :
  3856. else
  3857. ac_c_werror_flag=$ac_save_c_werror_flag
  3858. CFLAGS="-g"
  3859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3860. /* end confdefs.h. */
  3861. int
  3862. main ()
  3863. {
  3864. ;
  3865. return 0;
  3866. }
  3867. _ACEOF
  3868. if ac_fn_c_try_compile "$LINENO"; then :
  3869. ac_cv_prog_cc_g=yes
  3870. fi
  3871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  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. ac_c_werror_flag=$ac_save_c_werror_flag
  3877. fi
  3878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3879. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3880. if test "$ac_test_CFLAGS" = set; then
  3881. CFLAGS=$ac_save_CFLAGS
  3882. elif test $ac_cv_prog_cc_g = yes; then
  3883. if test "$GCC" = yes; then
  3884. CFLAGS="-g -O2"
  3885. else
  3886. CFLAGS="-g"
  3887. fi
  3888. else
  3889. if test "$GCC" = yes; then
  3890. CFLAGS="-O2"
  3891. else
  3892. CFLAGS=
  3893. fi
  3894. fi
  3895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3896. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3897. if ${ac_cv_prog_cc_c89+:} false; then :
  3898. $as_echo_n "(cached) " >&6
  3899. else
  3900. ac_cv_prog_cc_c89=no
  3901. ac_save_CC=$CC
  3902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3903. /* end confdefs.h. */
  3904. #include <stdarg.h>
  3905. #include <stdio.h>
  3906. struct stat;
  3907. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3908. struct buf { int x; };
  3909. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3910. static char *e (p, i)
  3911. char **p;
  3912. int i;
  3913. {
  3914. return p[i];
  3915. }
  3916. static char *f (char * (*g) (char **, int), char **p, ...)
  3917. {
  3918. char *s;
  3919. va_list v;
  3920. va_start (v,p);
  3921. s = g (p, va_arg (v,int));
  3922. va_end (v);
  3923. return s;
  3924. }
  3925. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3926. function prototypes and stuff, but not '\xHH' hex character constants.
  3927. These don't provoke an error unfortunately, instead are silently treated
  3928. as 'x'. The following induces an error, until -std is added to get
  3929. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3930. array size at least. It's necessary to write '\x00'==0 to get something
  3931. that's true only with -std. */
  3932. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3933. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3934. inside strings and character constants. */
  3935. #define FOO(x) 'x'
  3936. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3937. int test (int i, double x);
  3938. struct s1 {int (*f) (int a);};
  3939. struct s2 {int (*f) (double a);};
  3940. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3941. int argc;
  3942. char **argv;
  3943. int
  3944. main ()
  3945. {
  3946. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3947. ;
  3948. return 0;
  3949. }
  3950. _ACEOF
  3951. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3952. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3953. do
  3954. CC="$ac_save_CC $ac_arg"
  3955. if ac_fn_c_try_compile "$LINENO"; then :
  3956. ac_cv_prog_cc_c89=$ac_arg
  3957. fi
  3958. rm -f core conftest.err conftest.$ac_objext
  3959. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3960. done
  3961. rm -f conftest.$ac_ext
  3962. CC=$ac_save_CC
  3963. fi
  3964. # AC_CACHE_VAL
  3965. case "x$ac_cv_prog_cc_c89" in
  3966. x)
  3967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3968. $as_echo "none needed" >&6; } ;;
  3969. xno)
  3970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3971. $as_echo "unsupported" >&6; } ;;
  3972. *)
  3973. CC="$CC $ac_cv_prog_cc_c89"
  3974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3975. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3976. esac
  3977. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3978. fi
  3979. ac_ext=c
  3980. ac_cpp='$CPP $CPPFLAGS'
  3981. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3982. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3983. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3984. ac_ext=c
  3985. ac_cpp='$CPP $CPPFLAGS'
  3986. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3987. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3988. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3990. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3991. if ${am_cv_prog_cc_c_o+:} false; then :
  3992. $as_echo_n "(cached) " >&6
  3993. else
  3994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3995. /* end confdefs.h. */
  3996. int
  3997. main ()
  3998. {
  3999. ;
  4000. return 0;
  4001. }
  4002. _ACEOF
  4003. # Make sure it works both with $CC and with simple cc.
  4004. # Following AC_PROG_CC_C_O, we do the test twice because some
  4005. # compilers refuse to overwrite an existing .o file with -o,
  4006. # though they will create one.
  4007. am_cv_prog_cc_c_o=yes
  4008. for am_i in 1 2; do
  4009. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4010. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4011. ac_status=$?
  4012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4013. (exit $ac_status); } \
  4014. && test -f conftest2.$ac_objext; then
  4015. : OK
  4016. else
  4017. am_cv_prog_cc_c_o=no
  4018. break
  4019. fi
  4020. done
  4021. rm -f core conftest*
  4022. unset am_i
  4023. fi
  4024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4025. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4026. if test "$am_cv_prog_cc_c_o" != yes; then
  4027. # Losing compiler, so override with the script.
  4028. # FIXME: It is wrong to rewrite CC.
  4029. # But if we don't then we get into trouble of one sort or another.
  4030. # A longer-term fix would be to have automake use am__CC in this case,
  4031. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4032. CC="$am_aux_dir/compile $CC"
  4033. fi
  4034. ac_ext=c
  4035. ac_cpp='$CPP $CPPFLAGS'
  4036. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4037. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4038. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4039. # Make sure we can run config.sub.
  4040. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4041. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4043. $as_echo_n "checking build system type... " >&6; }
  4044. if ${ac_cv_build+:} false; then :
  4045. $as_echo_n "(cached) " >&6
  4046. else
  4047. ac_build_alias=$build_alias
  4048. test "x$ac_build_alias" = x &&
  4049. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4050. test "x$ac_build_alias" = x &&
  4051. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4052. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4053. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4054. fi
  4055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4056. $as_echo "$ac_cv_build" >&6; }
  4057. case $ac_cv_build in
  4058. *-*-*) ;;
  4059. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4060. esac
  4061. build=$ac_cv_build
  4062. ac_save_IFS=$IFS; IFS='-'
  4063. set x $ac_cv_build
  4064. shift
  4065. build_cpu=$1
  4066. build_vendor=$2
  4067. shift; shift
  4068. # Remember, the first character of IFS is used to create $*,
  4069. # except with old shells:
  4070. build_os=$*
  4071. IFS=$ac_save_IFS
  4072. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4074. $as_echo_n "checking host system type... " >&6; }
  4075. if ${ac_cv_host+:} false; then :
  4076. $as_echo_n "(cached) " >&6
  4077. else
  4078. if test "x$host_alias" = x; then
  4079. ac_cv_host=$ac_cv_build
  4080. else
  4081. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4082. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4083. fi
  4084. fi
  4085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4086. $as_echo "$ac_cv_host" >&6; }
  4087. case $ac_cv_host in
  4088. *-*-*) ;;
  4089. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4090. esac
  4091. host=$ac_cv_host
  4092. ac_save_IFS=$IFS; IFS='-'
  4093. set x $ac_cv_host
  4094. shift
  4095. host_cpu=$1
  4096. host_vendor=$2
  4097. shift; shift
  4098. # Remember, the first character of IFS is used to create $*,
  4099. # except with old shells:
  4100. host_os=$*
  4101. IFS=$ac_save_IFS
  4102. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4103. enable_win32_dll=yes
  4104. case $host in
  4105. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  4106. if test -n "$ac_tool_prefix"; then
  4107. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  4108. set dummy ${ac_tool_prefix}as; ac_word=$2
  4109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4110. $as_echo_n "checking for $ac_word... " >&6; }
  4111. if ${ac_cv_prog_AS+:} false; then :
  4112. $as_echo_n "(cached) " >&6
  4113. else
  4114. if test -n "$AS"; then
  4115. ac_cv_prog_AS="$AS" # Let the user override the test.
  4116. else
  4117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4118. for as_dir in $PATH
  4119. do
  4120. IFS=$as_save_IFS
  4121. test -z "$as_dir" && as_dir=.
  4122. for ac_exec_ext in '' $ac_executable_extensions; do
  4123. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4124. ac_cv_prog_AS="${ac_tool_prefix}as"
  4125. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4126. break 2
  4127. fi
  4128. done
  4129. done
  4130. IFS=$as_save_IFS
  4131. fi
  4132. fi
  4133. AS=$ac_cv_prog_AS
  4134. if test -n "$AS"; then
  4135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  4136. $as_echo "$AS" >&6; }
  4137. else
  4138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4139. $as_echo "no" >&6; }
  4140. fi
  4141. fi
  4142. if test -z "$ac_cv_prog_AS"; then
  4143. ac_ct_AS=$AS
  4144. # Extract the first word of "as", so it can be a program name with args.
  4145. set dummy as; ac_word=$2
  4146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4147. $as_echo_n "checking for $ac_word... " >&6; }
  4148. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  4149. $as_echo_n "(cached) " >&6
  4150. else
  4151. if test -n "$ac_ct_AS"; then
  4152. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  4153. else
  4154. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4155. for as_dir in $PATH
  4156. do
  4157. IFS=$as_save_IFS
  4158. test -z "$as_dir" && as_dir=.
  4159. for ac_exec_ext in '' $ac_executable_extensions; do
  4160. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4161. ac_cv_prog_ac_ct_AS="as"
  4162. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4163. break 2
  4164. fi
  4165. done
  4166. done
  4167. IFS=$as_save_IFS
  4168. fi
  4169. fi
  4170. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  4171. if test -n "$ac_ct_AS"; then
  4172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  4173. $as_echo "$ac_ct_AS" >&6; }
  4174. else
  4175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4176. $as_echo "no" >&6; }
  4177. fi
  4178. if test "x$ac_ct_AS" = x; then
  4179. AS="false"
  4180. else
  4181. case $cross_compiling:$ac_tool_warned in
  4182. yes:)
  4183. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4184. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4185. ac_tool_warned=yes ;;
  4186. esac
  4187. AS=$ac_ct_AS
  4188. fi
  4189. else
  4190. AS="$ac_cv_prog_AS"
  4191. fi
  4192. if test -n "$ac_tool_prefix"; then
  4193. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4194. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4196. $as_echo_n "checking for $ac_word... " >&6; }
  4197. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4198. $as_echo_n "(cached) " >&6
  4199. else
  4200. if test -n "$DLLTOOL"; then
  4201. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4202. else
  4203. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4204. for as_dir in $PATH
  4205. do
  4206. IFS=$as_save_IFS
  4207. test -z "$as_dir" && as_dir=.
  4208. for ac_exec_ext in '' $ac_executable_extensions; do
  4209. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4210. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4211. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4212. break 2
  4213. fi
  4214. done
  4215. done
  4216. IFS=$as_save_IFS
  4217. fi
  4218. fi
  4219. DLLTOOL=$ac_cv_prog_DLLTOOL
  4220. if test -n "$DLLTOOL"; then
  4221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4222. $as_echo "$DLLTOOL" >&6; }
  4223. else
  4224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4225. $as_echo "no" >&6; }
  4226. fi
  4227. fi
  4228. if test -z "$ac_cv_prog_DLLTOOL"; then
  4229. ac_ct_DLLTOOL=$DLLTOOL
  4230. # Extract the first word of "dlltool", so it can be a program name with args.
  4231. set dummy dlltool; ac_word=$2
  4232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4233. $as_echo_n "checking for $ac_word... " >&6; }
  4234. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4235. $as_echo_n "(cached) " >&6
  4236. else
  4237. if test -n "$ac_ct_DLLTOOL"; then
  4238. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4239. else
  4240. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4241. for as_dir in $PATH
  4242. do
  4243. IFS=$as_save_IFS
  4244. test -z "$as_dir" && as_dir=.
  4245. for ac_exec_ext in '' $ac_executable_extensions; do
  4246. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4247. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4248. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4249. break 2
  4250. fi
  4251. done
  4252. done
  4253. IFS=$as_save_IFS
  4254. fi
  4255. fi
  4256. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4257. if test -n "$ac_ct_DLLTOOL"; then
  4258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4259. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4260. else
  4261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4262. $as_echo "no" >&6; }
  4263. fi
  4264. if test "x$ac_ct_DLLTOOL" = x; then
  4265. DLLTOOL="false"
  4266. else
  4267. case $cross_compiling:$ac_tool_warned in
  4268. yes:)
  4269. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4270. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4271. ac_tool_warned=yes ;;
  4272. esac
  4273. DLLTOOL=$ac_ct_DLLTOOL
  4274. fi
  4275. else
  4276. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4277. fi
  4278. if test -n "$ac_tool_prefix"; then
  4279. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4280. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4282. $as_echo_n "checking for $ac_word... " >&6; }
  4283. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4284. $as_echo_n "(cached) " >&6
  4285. else
  4286. if test -n "$OBJDUMP"; then
  4287. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4288. else
  4289. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4290. for as_dir in $PATH
  4291. do
  4292. IFS=$as_save_IFS
  4293. test -z "$as_dir" && as_dir=.
  4294. for ac_exec_ext in '' $ac_executable_extensions; do
  4295. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4296. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4297. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4298. break 2
  4299. fi
  4300. done
  4301. done
  4302. IFS=$as_save_IFS
  4303. fi
  4304. fi
  4305. OBJDUMP=$ac_cv_prog_OBJDUMP
  4306. if test -n "$OBJDUMP"; then
  4307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4308. $as_echo "$OBJDUMP" >&6; }
  4309. else
  4310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4311. $as_echo "no" >&6; }
  4312. fi
  4313. fi
  4314. if test -z "$ac_cv_prog_OBJDUMP"; then
  4315. ac_ct_OBJDUMP=$OBJDUMP
  4316. # Extract the first word of "objdump", so it can be a program name with args.
  4317. set dummy objdump; ac_word=$2
  4318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4319. $as_echo_n "checking for $ac_word... " >&6; }
  4320. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4321. $as_echo_n "(cached) " >&6
  4322. else
  4323. if test -n "$ac_ct_OBJDUMP"; then
  4324. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4325. else
  4326. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4327. for as_dir in $PATH
  4328. do
  4329. IFS=$as_save_IFS
  4330. test -z "$as_dir" && as_dir=.
  4331. for ac_exec_ext in '' $ac_executable_extensions; do
  4332. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4333. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4334. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4335. break 2
  4336. fi
  4337. done
  4338. done
  4339. IFS=$as_save_IFS
  4340. fi
  4341. fi
  4342. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4343. if test -n "$ac_ct_OBJDUMP"; then
  4344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4345. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4346. else
  4347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4348. $as_echo "no" >&6; }
  4349. fi
  4350. if test "x$ac_ct_OBJDUMP" = x; then
  4351. OBJDUMP="false"
  4352. else
  4353. case $cross_compiling:$ac_tool_warned in
  4354. yes:)
  4355. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4356. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4357. ac_tool_warned=yes ;;
  4358. esac
  4359. OBJDUMP=$ac_ct_OBJDUMP
  4360. fi
  4361. else
  4362. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4363. fi
  4364. ;;
  4365. esac
  4366. test -z "$AS" && AS=as
  4367. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4368. test -z "$OBJDUMP" && OBJDUMP=objdump
  4369. case `pwd` in
  4370. *\ * | *\ *)
  4371. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4372. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4373. esac
  4374. macro_version='2.4.6'
  4375. macro_revision='2.4.6'
  4376. ltmain=$ac_aux_dir/ltmain.sh
  4377. # Backslashify metacharacters that are still active within
  4378. # double-quoted strings.
  4379. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4380. # Same as above, but do not quote variable references.
  4381. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4382. # Sed substitution to delay expansion of an escaped shell variable in a
  4383. # double_quote_subst'ed string.
  4384. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4385. # Sed substitution to delay expansion of an escaped single quote.
  4386. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4387. # Sed substitution to avoid accidental globbing in evaled expressions
  4388. no_glob_subst='s/\*/\\\*/g'
  4389. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4390. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4391. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4393. $as_echo_n "checking how to print strings... " >&6; }
  4394. # Test print first, because it will be a builtin if present.
  4395. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4396. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4397. ECHO='print -r --'
  4398. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4399. ECHO='printf %s\n'
  4400. else
  4401. # Use this function as a fallback that always works.
  4402. func_fallback_echo ()
  4403. {
  4404. eval 'cat <<_LTECHO_EOF
  4405. $1
  4406. _LTECHO_EOF'
  4407. }
  4408. ECHO='func_fallback_echo'
  4409. fi
  4410. # func_echo_all arg...
  4411. # Invoke $ECHO with all args, space-separated.
  4412. func_echo_all ()
  4413. {
  4414. $ECHO ""
  4415. }
  4416. case $ECHO in
  4417. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4418. $as_echo "printf" >&6; } ;;
  4419. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4420. $as_echo "print -r" >&6; } ;;
  4421. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4422. $as_echo "cat" >&6; } ;;
  4423. esac
  4424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4425. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4426. if ${ac_cv_path_SED+:} false; then :
  4427. $as_echo_n "(cached) " >&6
  4428. else
  4429. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4430. for ac_i in 1 2 3 4 5 6 7; do
  4431. ac_script="$ac_script$as_nl$ac_script"
  4432. done
  4433. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4434. { ac_script=; unset ac_script;}
  4435. if test -z "$SED"; then
  4436. ac_path_SED_found=false
  4437. # Loop through the user's path and test for each of PROGNAME-LIST
  4438. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4439. for as_dir in $PATH
  4440. do
  4441. IFS=$as_save_IFS
  4442. test -z "$as_dir" && as_dir=.
  4443. for ac_prog in sed gsed; do
  4444. for ac_exec_ext in '' $ac_executable_extensions; do
  4445. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4446. as_fn_executable_p "$ac_path_SED" || continue
  4447. # Check for GNU ac_path_SED and select it if it is found.
  4448. # Check for GNU $ac_path_SED
  4449. case `"$ac_path_SED" --version 2>&1` in
  4450. *GNU*)
  4451. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4452. *)
  4453. ac_count=0
  4454. $as_echo_n 0123456789 >"conftest.in"
  4455. while :
  4456. do
  4457. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4458. mv "conftest.tmp" "conftest.in"
  4459. cp "conftest.in" "conftest.nl"
  4460. $as_echo '' >> "conftest.nl"
  4461. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4462. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4463. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4464. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4465. # Best one so far, save it but keep looking for a better one
  4466. ac_cv_path_SED="$ac_path_SED"
  4467. ac_path_SED_max=$ac_count
  4468. fi
  4469. # 10*(2^10) chars as input seems more than enough
  4470. test $ac_count -gt 10 && break
  4471. done
  4472. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4473. esac
  4474. $ac_path_SED_found && break 3
  4475. done
  4476. done
  4477. done
  4478. IFS=$as_save_IFS
  4479. if test -z "$ac_cv_path_SED"; then
  4480. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4481. fi
  4482. else
  4483. ac_cv_path_SED=$SED
  4484. fi
  4485. fi
  4486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4487. $as_echo "$ac_cv_path_SED" >&6; }
  4488. SED="$ac_cv_path_SED"
  4489. rm -f conftest.sed
  4490. test -z "$SED" && SED=sed
  4491. Xsed="$SED -e 1s/^X//"
  4492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4493. $as_echo_n "checking for fgrep... " >&6; }
  4494. if ${ac_cv_path_FGREP+:} false; then :
  4495. $as_echo_n "(cached) " >&6
  4496. else
  4497. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4498. then ac_cv_path_FGREP="$GREP -F"
  4499. else
  4500. if test -z "$FGREP"; then
  4501. ac_path_FGREP_found=false
  4502. # Loop through the user's path and test for each of PROGNAME-LIST
  4503. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4504. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4505. do
  4506. IFS=$as_save_IFS
  4507. test -z "$as_dir" && as_dir=.
  4508. for ac_prog in fgrep; do
  4509. for ac_exec_ext in '' $ac_executable_extensions; do
  4510. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4511. as_fn_executable_p "$ac_path_FGREP" || continue
  4512. # Check for GNU ac_path_FGREP and select it if it is found.
  4513. # Check for GNU $ac_path_FGREP
  4514. case `"$ac_path_FGREP" --version 2>&1` in
  4515. *GNU*)
  4516. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4517. *)
  4518. ac_count=0
  4519. $as_echo_n 0123456789 >"conftest.in"
  4520. while :
  4521. do
  4522. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4523. mv "conftest.tmp" "conftest.in"
  4524. cp "conftest.in" "conftest.nl"
  4525. $as_echo 'FGREP' >> "conftest.nl"
  4526. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4527. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4528. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4529. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4530. # Best one so far, save it but keep looking for a better one
  4531. ac_cv_path_FGREP="$ac_path_FGREP"
  4532. ac_path_FGREP_max=$ac_count
  4533. fi
  4534. # 10*(2^10) chars as input seems more than enough
  4535. test $ac_count -gt 10 && break
  4536. done
  4537. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4538. esac
  4539. $ac_path_FGREP_found && break 3
  4540. done
  4541. done
  4542. done
  4543. IFS=$as_save_IFS
  4544. if test -z "$ac_cv_path_FGREP"; then
  4545. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4546. fi
  4547. else
  4548. ac_cv_path_FGREP=$FGREP
  4549. fi
  4550. fi
  4551. fi
  4552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4553. $as_echo "$ac_cv_path_FGREP" >&6; }
  4554. FGREP="$ac_cv_path_FGREP"
  4555. test -z "$GREP" && GREP=grep
  4556. # Check whether --with-gnu-ld was given.
  4557. if test "${with_gnu_ld+set}" = set; then :
  4558. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4559. else
  4560. with_gnu_ld=no
  4561. fi
  4562. ac_prog=ld
  4563. if test yes = "$GCC"; then
  4564. # Check if gcc -print-prog-name=ld gives a path.
  4565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4566. $as_echo_n "checking for ld used by $CC... " >&6; }
  4567. case $host in
  4568. *-*-mingw*)
  4569. # gcc leaves a trailing carriage return, which upsets mingw
  4570. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4571. *)
  4572. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4573. esac
  4574. case $ac_prog in
  4575. # Accept absolute paths.
  4576. [\\/]* | ?:[\\/]*)
  4577. re_direlt='/[^/][^/]*/\.\./'
  4578. # Canonicalize the pathname of ld
  4579. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4580. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4581. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4582. done
  4583. test -z "$LD" && LD=$ac_prog
  4584. ;;
  4585. "")
  4586. # If it fails, then pretend we aren't using GCC.
  4587. ac_prog=ld
  4588. ;;
  4589. *)
  4590. # If it is relative, then search for the first ld in PATH.
  4591. with_gnu_ld=unknown
  4592. ;;
  4593. esac
  4594. elif test yes = "$with_gnu_ld"; then
  4595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4596. $as_echo_n "checking for GNU ld... " >&6; }
  4597. else
  4598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4599. $as_echo_n "checking for non-GNU ld... " >&6; }
  4600. fi
  4601. if ${lt_cv_path_LD+:} false; then :
  4602. $as_echo_n "(cached) " >&6
  4603. else
  4604. if test -z "$LD"; then
  4605. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4606. for ac_dir in $PATH; do
  4607. IFS=$lt_save_ifs
  4608. test -z "$ac_dir" && ac_dir=.
  4609. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4610. lt_cv_path_LD=$ac_dir/$ac_prog
  4611. # Check to see if the program is GNU ld. I'd rather use --version,
  4612. # but apparently some variants of GNU ld only accept -v.
  4613. # Break only if it was the GNU/non-GNU ld that we prefer.
  4614. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4615. *GNU* | *'with BFD'*)
  4616. test no != "$with_gnu_ld" && break
  4617. ;;
  4618. *)
  4619. test yes != "$with_gnu_ld" && break
  4620. ;;
  4621. esac
  4622. fi
  4623. done
  4624. IFS=$lt_save_ifs
  4625. else
  4626. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4627. fi
  4628. fi
  4629. LD=$lt_cv_path_LD
  4630. if test -n "$LD"; then
  4631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4632. $as_echo "$LD" >&6; }
  4633. else
  4634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4635. $as_echo "no" >&6; }
  4636. fi
  4637. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4639. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4640. if ${lt_cv_prog_gnu_ld+:} false; then :
  4641. $as_echo_n "(cached) " >&6
  4642. else
  4643. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4644. case `$LD -v 2>&1 </dev/null` in
  4645. *GNU* | *'with BFD'*)
  4646. lt_cv_prog_gnu_ld=yes
  4647. ;;
  4648. *)
  4649. lt_cv_prog_gnu_ld=no
  4650. ;;
  4651. esac
  4652. fi
  4653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4654. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4655. with_gnu_ld=$lt_cv_prog_gnu_ld
  4656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4657. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4658. if ${lt_cv_path_NM+:} false; then :
  4659. $as_echo_n "(cached) " >&6
  4660. else
  4661. if test -n "$NM"; then
  4662. # Let the user override the test.
  4663. lt_cv_path_NM=$NM
  4664. else
  4665. lt_nm_to_check=${ac_tool_prefix}nm
  4666. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4667. lt_nm_to_check="$lt_nm_to_check nm"
  4668. fi
  4669. for lt_tmp_nm in $lt_nm_to_check; do
  4670. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4671. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4672. IFS=$lt_save_ifs
  4673. test -z "$ac_dir" && ac_dir=.
  4674. tmp_nm=$ac_dir/$lt_tmp_nm
  4675. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4676. # Check to see if the nm accepts a BSD-compat flag.
  4677. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4678. # nm: unknown option "B" ignored
  4679. # Tru64's nm complains that /dev/null is an invalid object file
  4680. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4681. case $build_os in
  4682. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4683. *) lt_bad_file=/dev/null ;;
  4684. esac
  4685. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4686. *$lt_bad_file* | *'Invalid file or object type'*)
  4687. lt_cv_path_NM="$tmp_nm -B"
  4688. break 2
  4689. ;;
  4690. *)
  4691. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4692. */dev/null*)
  4693. lt_cv_path_NM="$tmp_nm -p"
  4694. break 2
  4695. ;;
  4696. *)
  4697. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4698. continue # so that we can try to find one that supports BSD flags
  4699. ;;
  4700. esac
  4701. ;;
  4702. esac
  4703. fi
  4704. done
  4705. IFS=$lt_save_ifs
  4706. done
  4707. : ${lt_cv_path_NM=no}
  4708. fi
  4709. fi
  4710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4711. $as_echo "$lt_cv_path_NM" >&6; }
  4712. if test no != "$lt_cv_path_NM"; then
  4713. NM=$lt_cv_path_NM
  4714. else
  4715. # Didn't find any BSD compatible name lister, look for dumpbin.
  4716. if test -n "$DUMPBIN"; then :
  4717. # Let the user override the test.
  4718. else
  4719. if test -n "$ac_tool_prefix"; then
  4720. for ac_prog in dumpbin "link -dump"
  4721. do
  4722. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4723. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4725. $as_echo_n "checking for $ac_word... " >&6; }
  4726. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4727. $as_echo_n "(cached) " >&6
  4728. else
  4729. if test -n "$DUMPBIN"; then
  4730. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4731. else
  4732. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4733. for as_dir in $PATH
  4734. do
  4735. IFS=$as_save_IFS
  4736. test -z "$as_dir" && as_dir=.
  4737. for ac_exec_ext in '' $ac_executable_extensions; do
  4738. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4739. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4740. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4741. break 2
  4742. fi
  4743. done
  4744. done
  4745. IFS=$as_save_IFS
  4746. fi
  4747. fi
  4748. DUMPBIN=$ac_cv_prog_DUMPBIN
  4749. if test -n "$DUMPBIN"; then
  4750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4751. $as_echo "$DUMPBIN" >&6; }
  4752. else
  4753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4754. $as_echo "no" >&6; }
  4755. fi
  4756. test -n "$DUMPBIN" && break
  4757. done
  4758. fi
  4759. if test -z "$DUMPBIN"; then
  4760. ac_ct_DUMPBIN=$DUMPBIN
  4761. for ac_prog in dumpbin "link -dump"
  4762. do
  4763. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4764. set dummy $ac_prog; ac_word=$2
  4765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4766. $as_echo_n "checking for $ac_word... " >&6; }
  4767. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4768. $as_echo_n "(cached) " >&6
  4769. else
  4770. if test -n "$ac_ct_DUMPBIN"; then
  4771. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4772. else
  4773. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4774. for as_dir in $PATH
  4775. do
  4776. IFS=$as_save_IFS
  4777. test -z "$as_dir" && as_dir=.
  4778. for ac_exec_ext in '' $ac_executable_extensions; do
  4779. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4780. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4781. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4782. break 2
  4783. fi
  4784. done
  4785. done
  4786. IFS=$as_save_IFS
  4787. fi
  4788. fi
  4789. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4790. if test -n "$ac_ct_DUMPBIN"; then
  4791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4792. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4793. else
  4794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4795. $as_echo "no" >&6; }
  4796. fi
  4797. test -n "$ac_ct_DUMPBIN" && break
  4798. done
  4799. if test "x$ac_ct_DUMPBIN" = x; then
  4800. DUMPBIN=":"
  4801. else
  4802. case $cross_compiling:$ac_tool_warned in
  4803. yes:)
  4804. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4805. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4806. ac_tool_warned=yes ;;
  4807. esac
  4808. DUMPBIN=$ac_ct_DUMPBIN
  4809. fi
  4810. fi
  4811. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4812. *COFF*)
  4813. DUMPBIN="$DUMPBIN -symbols -headers"
  4814. ;;
  4815. *)
  4816. DUMPBIN=:
  4817. ;;
  4818. esac
  4819. fi
  4820. if test : != "$DUMPBIN"; then
  4821. NM=$DUMPBIN
  4822. fi
  4823. fi
  4824. test -z "$NM" && NM=nm
  4825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4826. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4827. if ${lt_cv_nm_interface+:} false; then :
  4828. $as_echo_n "(cached) " >&6
  4829. else
  4830. lt_cv_nm_interface="BSD nm"
  4831. echo "int some_variable = 0;" > conftest.$ac_ext
  4832. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4833. (eval "$ac_compile" 2>conftest.err)
  4834. cat conftest.err >&5
  4835. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4836. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4837. cat conftest.err >&5
  4838. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4839. cat conftest.out >&5
  4840. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4841. lt_cv_nm_interface="MS dumpbin"
  4842. fi
  4843. rm -f conftest*
  4844. fi
  4845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4846. $as_echo "$lt_cv_nm_interface" >&6; }
  4847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4848. $as_echo_n "checking whether ln -s works... " >&6; }
  4849. LN_S=$as_ln_s
  4850. if test "$LN_S" = "ln -s"; then
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4852. $as_echo "yes" >&6; }
  4853. else
  4854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4855. $as_echo "no, using $LN_S" >&6; }
  4856. fi
  4857. # find the maximum length of command line arguments
  4858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4859. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4860. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4861. $as_echo_n "(cached) " >&6
  4862. else
  4863. i=0
  4864. teststring=ABCD
  4865. case $build_os in
  4866. msdosdjgpp*)
  4867. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4868. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4869. # during glob expansion). Even if it were fixed, the result of this
  4870. # check would be larger than it should be.
  4871. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4872. ;;
  4873. gnu*)
  4874. # Under GNU Hurd, this test is not required because there is
  4875. # no limit to the length of command line arguments.
  4876. # Libtool will interpret -1 as no limit whatsoever
  4877. lt_cv_sys_max_cmd_len=-1;
  4878. ;;
  4879. cygwin* | mingw* | cegcc*)
  4880. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4881. # about 5 minutes as the teststring grows exponentially.
  4882. # Worse, since 9x/ME are not pre-emptively multitasking,
  4883. # you end up with a "frozen" computer, even though with patience
  4884. # the test eventually succeeds (with a max line length of 256k).
  4885. # Instead, let's just punt: use the minimum linelength reported by
  4886. # all of the supported platforms: 8192 (on NT/2K/XP).
  4887. lt_cv_sys_max_cmd_len=8192;
  4888. ;;
  4889. mint*)
  4890. # On MiNT this can take a long time and run out of memory.
  4891. lt_cv_sys_max_cmd_len=8192;
  4892. ;;
  4893. amigaos*)
  4894. # On AmigaOS with pdksh, this test takes hours, literally.
  4895. # So we just punt and use a minimum line length of 8192.
  4896. lt_cv_sys_max_cmd_len=8192;
  4897. ;;
  4898. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  4899. # This has been around since 386BSD, at least. Likely further.
  4900. if test -x /sbin/sysctl; then
  4901. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4902. elif test -x /usr/sbin/sysctl; then
  4903. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4904. else
  4905. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4906. fi
  4907. # And add a safety zone
  4908. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4909. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4910. ;;
  4911. interix*)
  4912. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4913. lt_cv_sys_max_cmd_len=196608
  4914. ;;
  4915. os2*)
  4916. # The test takes a long time on OS/2.
  4917. lt_cv_sys_max_cmd_len=8192
  4918. ;;
  4919. osf*)
  4920. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4921. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4922. # nice to cause kernel panics so lets avoid the loop below.
  4923. # First set a reasonable default.
  4924. lt_cv_sys_max_cmd_len=16384
  4925. #
  4926. if test -x /sbin/sysconfig; then
  4927. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4928. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4929. esac
  4930. fi
  4931. ;;
  4932. sco3.2v5*)
  4933. lt_cv_sys_max_cmd_len=102400
  4934. ;;
  4935. sysv5* | sco5v6* | sysv4.2uw2*)
  4936. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4937. if test -n "$kargmax"; then
  4938. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4939. else
  4940. lt_cv_sys_max_cmd_len=32768
  4941. fi
  4942. ;;
  4943. *)
  4944. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4945. if test -n "$lt_cv_sys_max_cmd_len" && \
  4946. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4947. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4948. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4949. else
  4950. # Make teststring a little bigger before we do anything with it.
  4951. # a 1K string should be a reasonable start.
  4952. for i in 1 2 3 4 5 6 7 8; do
  4953. teststring=$teststring$teststring
  4954. done
  4955. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4956. # If test is not a shell built-in, we'll probably end up computing a
  4957. # maximum length that is only half of the actual maximum length, but
  4958. # we can't tell.
  4959. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4960. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4961. test 17 != "$i" # 1/2 MB should be enough
  4962. do
  4963. i=`expr $i + 1`
  4964. teststring=$teststring$teststring
  4965. done
  4966. # Only check the string length outside the loop.
  4967. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4968. teststring=
  4969. # Add a significant safety factor because C++ compilers can tack on
  4970. # massive amounts of additional arguments before passing them to the
  4971. # linker. It appears as though 1/2 is a usable value.
  4972. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4973. fi
  4974. ;;
  4975. esac
  4976. fi
  4977. if test -n "$lt_cv_sys_max_cmd_len"; then
  4978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4979. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4980. else
  4981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4982. $as_echo "none" >&6; }
  4983. fi
  4984. max_cmd_len=$lt_cv_sys_max_cmd_len
  4985. : ${CP="cp -f"}
  4986. : ${MV="mv -f"}
  4987. : ${RM="rm -f"}
  4988. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4989. lt_unset=unset
  4990. else
  4991. lt_unset=false
  4992. fi
  4993. # test EBCDIC or ASCII
  4994. case `echo X|tr X '\101'` in
  4995. A) # ASCII based system
  4996. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4997. lt_SP2NL='tr \040 \012'
  4998. lt_NL2SP='tr \015\012 \040\040'
  4999. ;;
  5000. *) # EBCDIC based system
  5001. lt_SP2NL='tr \100 \n'
  5002. lt_NL2SP='tr \r\n \100\100'
  5003. ;;
  5004. esac
  5005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5006. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5007. if ${lt_cv_to_host_file_cmd+:} false; then :
  5008. $as_echo_n "(cached) " >&6
  5009. else
  5010. case $host in
  5011. *-*-mingw* )
  5012. case $build in
  5013. *-*-mingw* ) # actually msys
  5014. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5015. ;;
  5016. *-*-cygwin* )
  5017. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5018. ;;
  5019. * ) # otherwise, assume *nix
  5020. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5021. ;;
  5022. esac
  5023. ;;
  5024. *-*-cygwin* )
  5025. case $build in
  5026. *-*-mingw* ) # actually msys
  5027. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5028. ;;
  5029. *-*-cygwin* )
  5030. lt_cv_to_host_file_cmd=func_convert_file_noop
  5031. ;;
  5032. * ) # otherwise, assume *nix
  5033. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5034. ;;
  5035. esac
  5036. ;;
  5037. * ) # unhandled hosts (and "normal" native builds)
  5038. lt_cv_to_host_file_cmd=func_convert_file_noop
  5039. ;;
  5040. esac
  5041. fi
  5042. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5044. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5046. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5047. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5048. $as_echo_n "(cached) " >&6
  5049. else
  5050. #assume ordinary cross tools, or native build.
  5051. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5052. case $host in
  5053. *-*-mingw* )
  5054. case $build in
  5055. *-*-mingw* ) # actually msys
  5056. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5057. ;;
  5058. esac
  5059. ;;
  5060. esac
  5061. fi
  5062. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5064. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5066. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5067. if ${lt_cv_ld_reload_flag+:} false; then :
  5068. $as_echo_n "(cached) " >&6
  5069. else
  5070. lt_cv_ld_reload_flag='-r'
  5071. fi
  5072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5073. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5074. reload_flag=$lt_cv_ld_reload_flag
  5075. case $reload_flag in
  5076. "" | " "*) ;;
  5077. *) reload_flag=" $reload_flag" ;;
  5078. esac
  5079. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5080. case $host_os in
  5081. cygwin* | mingw* | pw32* | cegcc*)
  5082. if test yes != "$GCC"; then
  5083. reload_cmds=false
  5084. fi
  5085. ;;
  5086. darwin*)
  5087. if test yes = "$GCC"; then
  5088. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5089. else
  5090. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5091. fi
  5092. ;;
  5093. esac
  5094. if test -n "$ac_tool_prefix"; then
  5095. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5096. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5098. $as_echo_n "checking for $ac_word... " >&6; }
  5099. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5100. $as_echo_n "(cached) " >&6
  5101. else
  5102. if test -n "$OBJDUMP"; then
  5103. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5104. else
  5105. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5106. for as_dir in $PATH
  5107. do
  5108. IFS=$as_save_IFS
  5109. test -z "$as_dir" && as_dir=.
  5110. for ac_exec_ext in '' $ac_executable_extensions; do
  5111. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5112. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5113. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5114. break 2
  5115. fi
  5116. done
  5117. done
  5118. IFS=$as_save_IFS
  5119. fi
  5120. fi
  5121. OBJDUMP=$ac_cv_prog_OBJDUMP
  5122. if test -n "$OBJDUMP"; then
  5123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5124. $as_echo "$OBJDUMP" >&6; }
  5125. else
  5126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5127. $as_echo "no" >&6; }
  5128. fi
  5129. fi
  5130. if test -z "$ac_cv_prog_OBJDUMP"; then
  5131. ac_ct_OBJDUMP=$OBJDUMP
  5132. # Extract the first word of "objdump", so it can be a program name with args.
  5133. set dummy objdump; ac_word=$2
  5134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5135. $as_echo_n "checking for $ac_word... " >&6; }
  5136. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5137. $as_echo_n "(cached) " >&6
  5138. else
  5139. if test -n "$ac_ct_OBJDUMP"; then
  5140. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5141. else
  5142. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5143. for as_dir in $PATH
  5144. do
  5145. IFS=$as_save_IFS
  5146. test -z "$as_dir" && as_dir=.
  5147. for ac_exec_ext in '' $ac_executable_extensions; do
  5148. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5149. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5150. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5151. break 2
  5152. fi
  5153. done
  5154. done
  5155. IFS=$as_save_IFS
  5156. fi
  5157. fi
  5158. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5159. if test -n "$ac_ct_OBJDUMP"; then
  5160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5161. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5162. else
  5163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5164. $as_echo "no" >&6; }
  5165. fi
  5166. if test "x$ac_ct_OBJDUMP" = x; then
  5167. OBJDUMP="false"
  5168. else
  5169. case $cross_compiling:$ac_tool_warned in
  5170. yes:)
  5171. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5172. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5173. ac_tool_warned=yes ;;
  5174. esac
  5175. OBJDUMP=$ac_ct_OBJDUMP
  5176. fi
  5177. else
  5178. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5179. fi
  5180. test -z "$OBJDUMP" && OBJDUMP=objdump
  5181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5182. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5183. if ${lt_cv_deplibs_check_method+:} false; then :
  5184. $as_echo_n "(cached) " >&6
  5185. else
  5186. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5187. lt_cv_file_magic_test_file=
  5188. lt_cv_deplibs_check_method='unknown'
  5189. # Need to set the preceding variable on all platforms that support
  5190. # interlibrary dependencies.
  5191. # 'none' -- dependencies not supported.
  5192. # 'unknown' -- same as none, but documents that we really don't know.
  5193. # 'pass_all' -- all dependencies passed with no checks.
  5194. # 'test_compile' -- check by making test program.
  5195. # 'file_magic [[regex]]' -- check by looking for files in library path
  5196. # that responds to the $file_magic_cmd with a given extended regex.
  5197. # If you have 'file' or equivalent on your system and you're not sure
  5198. # whether 'pass_all' will *always* work, you probably want this one.
  5199. case $host_os in
  5200. aix[4-9]*)
  5201. lt_cv_deplibs_check_method=pass_all
  5202. ;;
  5203. beos*)
  5204. lt_cv_deplibs_check_method=pass_all
  5205. ;;
  5206. bsdi[45]*)
  5207. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5208. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5209. lt_cv_file_magic_test_file=/shlib/libc.so
  5210. ;;
  5211. cygwin*)
  5212. # func_win32_libid is a shell function defined in ltmain.sh
  5213. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5214. lt_cv_file_magic_cmd='func_win32_libid'
  5215. ;;
  5216. mingw* | pw32*)
  5217. # Base MSYS/MinGW do not provide the 'file' command needed by
  5218. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5219. # unless we find 'file', for example because we are cross-compiling.
  5220. if ( file / ) >/dev/null 2>&1; then
  5221. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5222. lt_cv_file_magic_cmd='func_win32_libid'
  5223. else
  5224. # Keep this pattern in sync with the one in func_win32_libid.
  5225. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5226. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5227. fi
  5228. ;;
  5229. cegcc*)
  5230. # use the weaker test based on 'objdump'. See mingw*.
  5231. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5232. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5233. ;;
  5234. darwin* | rhapsody*)
  5235. lt_cv_deplibs_check_method=pass_all
  5236. ;;
  5237. freebsd* | dragonfly*)
  5238. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5239. case $host_cpu in
  5240. i*86 )
  5241. # Not sure whether the presence of OpenBSD here was a mistake.
  5242. # Let's accept both of them until this is cleared up.
  5243. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5244. lt_cv_file_magic_cmd=/usr/bin/file
  5245. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5246. ;;
  5247. esac
  5248. else
  5249. lt_cv_deplibs_check_method=pass_all
  5250. fi
  5251. ;;
  5252. haiku*)
  5253. lt_cv_deplibs_check_method=pass_all
  5254. ;;
  5255. hpux10.20* | hpux11*)
  5256. lt_cv_file_magic_cmd=/usr/bin/file
  5257. case $host_cpu in
  5258. ia64*)
  5259. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5260. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5261. ;;
  5262. hppa*64*)
  5263. 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]'
  5264. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5265. ;;
  5266. *)
  5267. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5268. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5269. ;;
  5270. esac
  5271. ;;
  5272. interix[3-9]*)
  5273. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5274. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5275. ;;
  5276. irix5* | irix6* | nonstopux*)
  5277. case $LD in
  5278. *-32|*"-32 ") libmagic=32-bit;;
  5279. *-n32|*"-n32 ") libmagic=N32;;
  5280. *-64|*"-64 ") libmagic=64-bit;;
  5281. *) libmagic=never-match;;
  5282. esac
  5283. lt_cv_deplibs_check_method=pass_all
  5284. ;;
  5285. # This must be glibc/ELF.
  5286. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5287. lt_cv_deplibs_check_method=pass_all
  5288. ;;
  5289. netbsd* | netbsdelf*-gnu)
  5290. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5291. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5292. else
  5293. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5294. fi
  5295. ;;
  5296. newos6*)
  5297. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5298. lt_cv_file_magic_cmd=/usr/bin/file
  5299. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5300. ;;
  5301. *nto* | *qnx*)
  5302. lt_cv_deplibs_check_method=pass_all
  5303. ;;
  5304. openbsd* | bitrig*)
  5305. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5306. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5307. else
  5308. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5309. fi
  5310. ;;
  5311. osf3* | osf4* | osf5*)
  5312. lt_cv_deplibs_check_method=pass_all
  5313. ;;
  5314. rdos*)
  5315. lt_cv_deplibs_check_method=pass_all
  5316. ;;
  5317. solaris*)
  5318. lt_cv_deplibs_check_method=pass_all
  5319. ;;
  5320. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5321. lt_cv_deplibs_check_method=pass_all
  5322. ;;
  5323. sysv4 | sysv4.3*)
  5324. case $host_vendor in
  5325. motorola)
  5326. 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]'
  5327. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5328. ;;
  5329. ncr)
  5330. lt_cv_deplibs_check_method=pass_all
  5331. ;;
  5332. sequent)
  5333. lt_cv_file_magic_cmd='/bin/file'
  5334. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5335. ;;
  5336. sni)
  5337. lt_cv_file_magic_cmd='/bin/file'
  5338. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5339. lt_cv_file_magic_test_file=/lib/libc.so
  5340. ;;
  5341. siemens)
  5342. lt_cv_deplibs_check_method=pass_all
  5343. ;;
  5344. pc)
  5345. lt_cv_deplibs_check_method=pass_all
  5346. ;;
  5347. esac
  5348. ;;
  5349. tpf*)
  5350. lt_cv_deplibs_check_method=pass_all
  5351. ;;
  5352. os2*)
  5353. lt_cv_deplibs_check_method=pass_all
  5354. ;;
  5355. esac
  5356. fi
  5357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5358. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5359. file_magic_glob=
  5360. want_nocaseglob=no
  5361. if test "$build" = "$host"; then
  5362. case $host_os in
  5363. mingw* | pw32*)
  5364. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5365. want_nocaseglob=yes
  5366. else
  5367. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5368. fi
  5369. ;;
  5370. esac
  5371. fi
  5372. file_magic_cmd=$lt_cv_file_magic_cmd
  5373. deplibs_check_method=$lt_cv_deplibs_check_method
  5374. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5375. if test -n "$ac_tool_prefix"; then
  5376. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5377. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5379. $as_echo_n "checking for $ac_word... " >&6; }
  5380. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5381. $as_echo_n "(cached) " >&6
  5382. else
  5383. if test -n "$DLLTOOL"; then
  5384. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5385. else
  5386. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5387. for as_dir in $PATH
  5388. do
  5389. IFS=$as_save_IFS
  5390. test -z "$as_dir" && as_dir=.
  5391. for ac_exec_ext in '' $ac_executable_extensions; do
  5392. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5393. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5394. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5395. break 2
  5396. fi
  5397. done
  5398. done
  5399. IFS=$as_save_IFS
  5400. fi
  5401. fi
  5402. DLLTOOL=$ac_cv_prog_DLLTOOL
  5403. if test -n "$DLLTOOL"; then
  5404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5405. $as_echo "$DLLTOOL" >&6; }
  5406. else
  5407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5408. $as_echo "no" >&6; }
  5409. fi
  5410. fi
  5411. if test -z "$ac_cv_prog_DLLTOOL"; then
  5412. ac_ct_DLLTOOL=$DLLTOOL
  5413. # Extract the first word of "dlltool", so it can be a program name with args.
  5414. set dummy dlltool; ac_word=$2
  5415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5416. $as_echo_n "checking for $ac_word... " >&6; }
  5417. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5418. $as_echo_n "(cached) " >&6
  5419. else
  5420. if test -n "$ac_ct_DLLTOOL"; then
  5421. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5422. else
  5423. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5424. for as_dir in $PATH
  5425. do
  5426. IFS=$as_save_IFS
  5427. test -z "$as_dir" && as_dir=.
  5428. for ac_exec_ext in '' $ac_executable_extensions; do
  5429. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5430. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5431. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5432. break 2
  5433. fi
  5434. done
  5435. done
  5436. IFS=$as_save_IFS
  5437. fi
  5438. fi
  5439. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5440. if test -n "$ac_ct_DLLTOOL"; then
  5441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5442. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5443. else
  5444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5445. $as_echo "no" >&6; }
  5446. fi
  5447. if test "x$ac_ct_DLLTOOL" = x; then
  5448. DLLTOOL="false"
  5449. else
  5450. case $cross_compiling:$ac_tool_warned in
  5451. yes:)
  5452. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5453. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5454. ac_tool_warned=yes ;;
  5455. esac
  5456. DLLTOOL=$ac_ct_DLLTOOL
  5457. fi
  5458. else
  5459. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5460. fi
  5461. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5463. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5464. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5465. $as_echo_n "(cached) " >&6
  5466. else
  5467. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5468. case $host_os in
  5469. cygwin* | mingw* | pw32* | cegcc*)
  5470. # two different shell functions defined in ltmain.sh;
  5471. # decide which one to use based on capabilities of $DLLTOOL
  5472. case `$DLLTOOL --help 2>&1` in
  5473. *--identify-strict*)
  5474. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5475. ;;
  5476. *)
  5477. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5478. ;;
  5479. esac
  5480. ;;
  5481. *)
  5482. # fallback: assume linklib IS sharedlib
  5483. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5484. ;;
  5485. esac
  5486. fi
  5487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5488. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5489. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5490. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5491. if test -n "$ac_tool_prefix"; then
  5492. for ac_prog in ar
  5493. do
  5494. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5495. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5497. $as_echo_n "checking for $ac_word... " >&6; }
  5498. if ${ac_cv_prog_AR+:} false; then :
  5499. $as_echo_n "(cached) " >&6
  5500. else
  5501. if test -n "$AR"; then
  5502. ac_cv_prog_AR="$AR" # Let the user override the test.
  5503. else
  5504. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5505. for as_dir in $PATH
  5506. do
  5507. IFS=$as_save_IFS
  5508. test -z "$as_dir" && as_dir=.
  5509. for ac_exec_ext in '' $ac_executable_extensions; do
  5510. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5511. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5512. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5513. break 2
  5514. fi
  5515. done
  5516. done
  5517. IFS=$as_save_IFS
  5518. fi
  5519. fi
  5520. AR=$ac_cv_prog_AR
  5521. if test -n "$AR"; then
  5522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5523. $as_echo "$AR" >&6; }
  5524. else
  5525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5526. $as_echo "no" >&6; }
  5527. fi
  5528. test -n "$AR" && break
  5529. done
  5530. fi
  5531. if test -z "$AR"; then
  5532. ac_ct_AR=$AR
  5533. for ac_prog in ar
  5534. do
  5535. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5536. set dummy $ac_prog; ac_word=$2
  5537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5538. $as_echo_n "checking for $ac_word... " >&6; }
  5539. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5540. $as_echo_n "(cached) " >&6
  5541. else
  5542. if test -n "$ac_ct_AR"; then
  5543. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5544. else
  5545. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5546. for as_dir in $PATH
  5547. do
  5548. IFS=$as_save_IFS
  5549. test -z "$as_dir" && as_dir=.
  5550. for ac_exec_ext in '' $ac_executable_extensions; do
  5551. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5552. ac_cv_prog_ac_ct_AR="$ac_prog"
  5553. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5554. break 2
  5555. fi
  5556. done
  5557. done
  5558. IFS=$as_save_IFS
  5559. fi
  5560. fi
  5561. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5562. if test -n "$ac_ct_AR"; then
  5563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5564. $as_echo "$ac_ct_AR" >&6; }
  5565. else
  5566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5567. $as_echo "no" >&6; }
  5568. fi
  5569. test -n "$ac_ct_AR" && break
  5570. done
  5571. if test "x$ac_ct_AR" = x; then
  5572. AR="false"
  5573. else
  5574. case $cross_compiling:$ac_tool_warned in
  5575. yes:)
  5576. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5577. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5578. ac_tool_warned=yes ;;
  5579. esac
  5580. AR=$ac_ct_AR
  5581. fi
  5582. fi
  5583. : ${AR=ar}
  5584. : ${AR_FLAGS=cr}
  5585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5586. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5587. if ${lt_cv_ar_at_file+:} false; then :
  5588. $as_echo_n "(cached) " >&6
  5589. else
  5590. lt_cv_ar_at_file=no
  5591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5592. /* end confdefs.h. */
  5593. int
  5594. main ()
  5595. {
  5596. ;
  5597. return 0;
  5598. }
  5599. _ACEOF
  5600. if ac_fn_c_try_compile "$LINENO"; then :
  5601. echo conftest.$ac_objext > conftest.lst
  5602. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5603. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5604. (eval $lt_ar_try) 2>&5
  5605. ac_status=$?
  5606. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5607. test $ac_status = 0; }
  5608. if test 0 -eq "$ac_status"; then
  5609. # Ensure the archiver fails upon bogus file names.
  5610. rm -f conftest.$ac_objext libconftest.a
  5611. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5612. (eval $lt_ar_try) 2>&5
  5613. ac_status=$?
  5614. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5615. test $ac_status = 0; }
  5616. if test 0 -ne "$ac_status"; then
  5617. lt_cv_ar_at_file=@
  5618. fi
  5619. fi
  5620. rm -f conftest.* libconftest.a
  5621. fi
  5622. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5623. fi
  5624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5625. $as_echo "$lt_cv_ar_at_file" >&6; }
  5626. if test no = "$lt_cv_ar_at_file"; then
  5627. archiver_list_spec=
  5628. else
  5629. archiver_list_spec=$lt_cv_ar_at_file
  5630. fi
  5631. if test -n "$ac_tool_prefix"; then
  5632. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5633. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5635. $as_echo_n "checking for $ac_word... " >&6; }
  5636. if ${ac_cv_prog_STRIP+:} false; then :
  5637. $as_echo_n "(cached) " >&6
  5638. else
  5639. if test -n "$STRIP"; then
  5640. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5641. else
  5642. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5643. for as_dir in $PATH
  5644. do
  5645. IFS=$as_save_IFS
  5646. test -z "$as_dir" && as_dir=.
  5647. for ac_exec_ext in '' $ac_executable_extensions; do
  5648. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5649. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5650. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5651. break 2
  5652. fi
  5653. done
  5654. done
  5655. IFS=$as_save_IFS
  5656. fi
  5657. fi
  5658. STRIP=$ac_cv_prog_STRIP
  5659. if test -n "$STRIP"; then
  5660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5661. $as_echo "$STRIP" >&6; }
  5662. else
  5663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5664. $as_echo "no" >&6; }
  5665. fi
  5666. fi
  5667. if test -z "$ac_cv_prog_STRIP"; then
  5668. ac_ct_STRIP=$STRIP
  5669. # Extract the first word of "strip", so it can be a program name with args.
  5670. set dummy strip; ac_word=$2
  5671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5672. $as_echo_n "checking for $ac_word... " >&6; }
  5673. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5674. $as_echo_n "(cached) " >&6
  5675. else
  5676. if test -n "$ac_ct_STRIP"; then
  5677. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5678. else
  5679. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5680. for as_dir in $PATH
  5681. do
  5682. IFS=$as_save_IFS
  5683. test -z "$as_dir" && as_dir=.
  5684. for ac_exec_ext in '' $ac_executable_extensions; do
  5685. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5686. ac_cv_prog_ac_ct_STRIP="strip"
  5687. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5688. break 2
  5689. fi
  5690. done
  5691. done
  5692. IFS=$as_save_IFS
  5693. fi
  5694. fi
  5695. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5696. if test -n "$ac_ct_STRIP"; then
  5697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5698. $as_echo "$ac_ct_STRIP" >&6; }
  5699. else
  5700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5701. $as_echo "no" >&6; }
  5702. fi
  5703. if test "x$ac_ct_STRIP" = x; then
  5704. STRIP=":"
  5705. else
  5706. case $cross_compiling:$ac_tool_warned in
  5707. yes:)
  5708. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5709. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5710. ac_tool_warned=yes ;;
  5711. esac
  5712. STRIP=$ac_ct_STRIP
  5713. fi
  5714. else
  5715. STRIP="$ac_cv_prog_STRIP"
  5716. fi
  5717. test -z "$STRIP" && STRIP=:
  5718. if test -n "$ac_tool_prefix"; then
  5719. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5720. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5722. $as_echo_n "checking for $ac_word... " >&6; }
  5723. if ${ac_cv_prog_RANLIB+:} false; then :
  5724. $as_echo_n "(cached) " >&6
  5725. else
  5726. if test -n "$RANLIB"; then
  5727. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5728. else
  5729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5730. for as_dir in $PATH
  5731. do
  5732. IFS=$as_save_IFS
  5733. test -z "$as_dir" && as_dir=.
  5734. for ac_exec_ext in '' $ac_executable_extensions; do
  5735. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5736. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5737. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5738. break 2
  5739. fi
  5740. done
  5741. done
  5742. IFS=$as_save_IFS
  5743. fi
  5744. fi
  5745. RANLIB=$ac_cv_prog_RANLIB
  5746. if test -n "$RANLIB"; then
  5747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5748. $as_echo "$RANLIB" >&6; }
  5749. else
  5750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5751. $as_echo "no" >&6; }
  5752. fi
  5753. fi
  5754. if test -z "$ac_cv_prog_RANLIB"; then
  5755. ac_ct_RANLIB=$RANLIB
  5756. # Extract the first word of "ranlib", so it can be a program name with args.
  5757. set dummy ranlib; ac_word=$2
  5758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5759. $as_echo_n "checking for $ac_word... " >&6; }
  5760. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5761. $as_echo_n "(cached) " >&6
  5762. else
  5763. if test -n "$ac_ct_RANLIB"; then
  5764. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5765. else
  5766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5767. for as_dir in $PATH
  5768. do
  5769. IFS=$as_save_IFS
  5770. test -z "$as_dir" && as_dir=.
  5771. for ac_exec_ext in '' $ac_executable_extensions; do
  5772. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5773. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5774. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5775. break 2
  5776. fi
  5777. done
  5778. done
  5779. IFS=$as_save_IFS
  5780. fi
  5781. fi
  5782. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5783. if test -n "$ac_ct_RANLIB"; then
  5784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5785. $as_echo "$ac_ct_RANLIB" >&6; }
  5786. else
  5787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5788. $as_echo "no" >&6; }
  5789. fi
  5790. if test "x$ac_ct_RANLIB" = x; then
  5791. RANLIB=":"
  5792. else
  5793. case $cross_compiling:$ac_tool_warned in
  5794. yes:)
  5795. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5796. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5797. ac_tool_warned=yes ;;
  5798. esac
  5799. RANLIB=$ac_ct_RANLIB
  5800. fi
  5801. else
  5802. RANLIB="$ac_cv_prog_RANLIB"
  5803. fi
  5804. test -z "$RANLIB" && RANLIB=:
  5805. # Determine commands to create old-style static archives.
  5806. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5807. old_postinstall_cmds='chmod 644 $oldlib'
  5808. old_postuninstall_cmds=
  5809. if test -n "$RANLIB"; then
  5810. case $host_os in
  5811. bitrig* | openbsd*)
  5812. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5813. ;;
  5814. *)
  5815. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5816. ;;
  5817. esac
  5818. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5819. fi
  5820. case $host_os in
  5821. darwin*)
  5822. lock_old_archive_extraction=yes ;;
  5823. *)
  5824. lock_old_archive_extraction=no ;;
  5825. esac
  5826. for ac_prog in gawk mawk nawk awk
  5827. do
  5828. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5829. set dummy $ac_prog; ac_word=$2
  5830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5831. $as_echo_n "checking for $ac_word... " >&6; }
  5832. if ${ac_cv_prog_AWK+:} false; then :
  5833. $as_echo_n "(cached) " >&6
  5834. else
  5835. if test -n "$AWK"; then
  5836. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5837. else
  5838. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5839. for as_dir in $PATH
  5840. do
  5841. IFS=$as_save_IFS
  5842. test -z "$as_dir" && as_dir=.
  5843. for ac_exec_ext in '' $ac_executable_extensions; do
  5844. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5845. ac_cv_prog_AWK="$ac_prog"
  5846. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5847. break 2
  5848. fi
  5849. done
  5850. done
  5851. IFS=$as_save_IFS
  5852. fi
  5853. fi
  5854. AWK=$ac_cv_prog_AWK
  5855. if test -n "$AWK"; then
  5856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5857. $as_echo "$AWK" >&6; }
  5858. else
  5859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5860. $as_echo "no" >&6; }
  5861. fi
  5862. test -n "$AWK" && break
  5863. done
  5864. # If no C compiler was specified, use CC.
  5865. LTCC=${LTCC-"$CC"}
  5866. # If no C compiler flags were specified, use CFLAGS.
  5867. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5868. # Allow CC to be a program name with arguments.
  5869. compiler=$CC
  5870. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5872. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5873. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5874. $as_echo_n "(cached) " >&6
  5875. else
  5876. # These are sane defaults that work on at least a few old systems.
  5877. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5878. # Character class describing NM global symbol codes.
  5879. symcode='[BCDEGRST]'
  5880. # Regexp to match symbols that can be accessed directly from C.
  5881. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5882. # Define system-specific variables.
  5883. case $host_os in
  5884. aix*)
  5885. symcode='[BCDT]'
  5886. ;;
  5887. cygwin* | mingw* | pw32* | cegcc*)
  5888. symcode='[ABCDGISTW]'
  5889. ;;
  5890. hpux*)
  5891. if test ia64 = "$host_cpu"; then
  5892. symcode='[ABCDEGRST]'
  5893. fi
  5894. ;;
  5895. irix* | nonstopux*)
  5896. symcode='[BCDEGRST]'
  5897. ;;
  5898. osf*)
  5899. symcode='[BCDEGQRST]'
  5900. ;;
  5901. solaris*)
  5902. symcode='[BDRT]'
  5903. ;;
  5904. sco3.2v5*)
  5905. symcode='[DT]'
  5906. ;;
  5907. sysv4.2uw2*)
  5908. symcode='[DT]'
  5909. ;;
  5910. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5911. symcode='[ABDT]'
  5912. ;;
  5913. sysv4)
  5914. symcode='[DFNSTU]'
  5915. ;;
  5916. esac
  5917. # If we're using GNU nm, then use its standard symbol codes.
  5918. case `$NM -V 2>&1` in
  5919. *GNU* | *'with BFD'*)
  5920. symcode='[ABCDGIRSTW]' ;;
  5921. esac
  5922. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5923. # Gets list of data symbols to import.
  5924. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5925. # Adjust the below global symbol transforms to fixup imported variables.
  5926. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5927. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5928. lt_c_name_lib_hook="\
  5929. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5930. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5931. else
  5932. # Disable hooks by default.
  5933. lt_cv_sys_global_symbol_to_import=
  5934. lt_cdecl_hook=
  5935. lt_c_name_hook=
  5936. lt_c_name_lib_hook=
  5937. fi
  5938. # Transform an extracted symbol line into a proper C declaration.
  5939. # Some systems (esp. on ia64) link data and code symbols differently,
  5940. # so use this general approach.
  5941. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5942. $lt_cdecl_hook\
  5943. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5944. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5945. # Transform an extracted symbol line into symbol name and symbol address
  5946. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5947. $lt_c_name_hook\
  5948. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5949. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5950. # Transform an extracted symbol line into symbol name with lib prefix and
  5951. # symbol address.
  5952. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5953. $lt_c_name_lib_hook\
  5954. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5955. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5956. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5957. # Handle CRLF in mingw tool chain
  5958. opt_cr=
  5959. case $build_os in
  5960. mingw*)
  5961. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5962. ;;
  5963. esac
  5964. # Try without a prefix underscore, then with it.
  5965. for ac_symprfx in "" "_"; do
  5966. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5967. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5968. # Write the raw and C identifiers.
  5969. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5970. # Fake it for dumpbin and say T for any non-static function,
  5971. # D for any global variable and I for any imported variable.
  5972. # Also find C++ and __fastcall symbols from MSVC++,
  5973. # which start with @ or ?.
  5974. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5975. " {last_section=section; section=\$ 3};"\
  5976. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5977. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5978. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5979. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5980. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5981. " \$ 0!~/External *\|/{next};"\
  5982. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5983. " {if(hide[section]) next};"\
  5984. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5985. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5986. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5987. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5988. " ' prfx=^$ac_symprfx"
  5989. else
  5990. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5991. fi
  5992. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5993. # Check to see that the pipe works correctly.
  5994. pipe_works=no
  5995. rm -f conftest*
  5996. cat > conftest.$ac_ext <<_LT_EOF
  5997. #ifdef __cplusplus
  5998. extern "C" {
  5999. #endif
  6000. char nm_test_var;
  6001. void nm_test_func(void);
  6002. void nm_test_func(void){}
  6003. #ifdef __cplusplus
  6004. }
  6005. #endif
  6006. int main(){nm_test_var='a';nm_test_func();return(0);}
  6007. _LT_EOF
  6008. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6009. (eval $ac_compile) 2>&5
  6010. ac_status=$?
  6011. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6012. test $ac_status = 0; }; then
  6013. # Now try to grab the symbols.
  6014. nlist=conftest.nm
  6015. $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
  6016. if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
  6017. # Try sorting and uniquifying the output.
  6018. if sort "$nlist" | uniq > "$nlist"T; then
  6019. mv -f "$nlist"T "$nlist"
  6020. else
  6021. rm -f "$nlist"T
  6022. fi
  6023. # Make sure that we snagged all the symbols we need.
  6024. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6025. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6026. cat <<_LT_EOF > conftest.$ac_ext
  6027. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6028. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6029. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6030. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6031. # define LT_DLSYM_CONST
  6032. #elif defined __osf__
  6033. /* This system does not cope well with relocations in const data. */
  6034. # define LT_DLSYM_CONST
  6035. #else
  6036. # define LT_DLSYM_CONST const
  6037. #endif
  6038. #ifdef __cplusplus
  6039. extern "C" {
  6040. #endif
  6041. _LT_EOF
  6042. # Now generate the symbol file.
  6043. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6044. cat <<_LT_EOF >> conftest.$ac_ext
  6045. /* The mapping between symbol names and symbols. */
  6046. LT_DLSYM_CONST struct {
  6047. const char *name;
  6048. void *address;
  6049. }
  6050. lt__PROGRAM__LTX_preloaded_symbols[] =
  6051. {
  6052. { "@PROGRAM@", (void *) 0 },
  6053. _LT_EOF
  6054. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6055. cat <<\_LT_EOF >> conftest.$ac_ext
  6056. {0, (void *) 0}
  6057. };
  6058. /* This works around a problem in FreeBSD linker */
  6059. #ifdef FREEBSD_WORKAROUND
  6060. static const void *lt_preloaded_setup() {
  6061. return lt__PROGRAM__LTX_preloaded_symbols;
  6062. }
  6063. #endif
  6064. #ifdef __cplusplus
  6065. }
  6066. #endif
  6067. _LT_EOF
  6068. # Now try linking the two files.
  6069. mv conftest.$ac_objext conftstm.$ac_objext
  6070. lt_globsym_save_LIBS=$LIBS
  6071. lt_globsym_save_CFLAGS=$CFLAGS
  6072. LIBS=conftstm.$ac_objext
  6073. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6074. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6075. (eval $ac_link) 2>&5
  6076. ac_status=$?
  6077. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6078. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6079. pipe_works=yes
  6080. fi
  6081. LIBS=$lt_globsym_save_LIBS
  6082. CFLAGS=$lt_globsym_save_CFLAGS
  6083. else
  6084. echo "cannot find nm_test_func in $nlist" >&5
  6085. fi
  6086. else
  6087. echo "cannot find nm_test_var in $nlist" >&5
  6088. fi
  6089. else
  6090. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6091. fi
  6092. else
  6093. echo "$progname: failed program was:" >&5
  6094. cat conftest.$ac_ext >&5
  6095. fi
  6096. rm -rf conftest* conftst*
  6097. # Do not use the global_symbol_pipe unless it works.
  6098. if test yes = "$pipe_works"; then
  6099. break
  6100. else
  6101. lt_cv_sys_global_symbol_pipe=
  6102. fi
  6103. done
  6104. fi
  6105. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6106. lt_cv_sys_global_symbol_to_cdecl=
  6107. fi
  6108. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6110. $as_echo "failed" >&6; }
  6111. else
  6112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6113. $as_echo "ok" >&6; }
  6114. fi
  6115. # Response file support.
  6116. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6117. nm_file_list_spec='@'
  6118. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6119. nm_file_list_spec='@'
  6120. fi
  6121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6122. $as_echo_n "checking for sysroot... " >&6; }
  6123. # Check whether --with-sysroot was given.
  6124. if test "${with_sysroot+set}" = set; then :
  6125. withval=$with_sysroot;
  6126. else
  6127. with_sysroot=no
  6128. fi
  6129. lt_sysroot=
  6130. case $with_sysroot in #(
  6131. yes)
  6132. if test yes = "$GCC"; then
  6133. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6134. fi
  6135. ;; #(
  6136. /*)
  6137. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6138. ;; #(
  6139. no|'')
  6140. ;; #(
  6141. *)
  6142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6143. $as_echo "$with_sysroot" >&6; }
  6144. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6145. ;;
  6146. esac
  6147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6148. $as_echo "${lt_sysroot:-no}" >&6; }
  6149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6150. $as_echo_n "checking for a working dd... " >&6; }
  6151. if ${ac_cv_path_lt_DD+:} false; then :
  6152. $as_echo_n "(cached) " >&6
  6153. else
  6154. printf 0123456789abcdef0123456789abcdef >conftest.i
  6155. cat conftest.i conftest.i >conftest2.i
  6156. : ${lt_DD:=$DD}
  6157. if test -z "$lt_DD"; then
  6158. ac_path_lt_DD_found=false
  6159. # Loop through the user's path and test for each of PROGNAME-LIST
  6160. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6161. for as_dir in $PATH
  6162. do
  6163. IFS=$as_save_IFS
  6164. test -z "$as_dir" && as_dir=.
  6165. for ac_prog in dd; do
  6166. for ac_exec_ext in '' $ac_executable_extensions; do
  6167. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  6168. as_fn_executable_p "$ac_path_lt_DD" || continue
  6169. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6170. cmp -s conftest.i conftest.out \
  6171. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6172. fi
  6173. $ac_path_lt_DD_found && break 3
  6174. done
  6175. done
  6176. done
  6177. IFS=$as_save_IFS
  6178. if test -z "$ac_cv_path_lt_DD"; then
  6179. :
  6180. fi
  6181. else
  6182. ac_cv_path_lt_DD=$lt_DD
  6183. fi
  6184. rm -f conftest.i conftest2.i conftest.out
  6185. fi
  6186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6187. $as_echo "$ac_cv_path_lt_DD" >&6; }
  6188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6189. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  6190. if ${lt_cv_truncate_bin+:} false; then :
  6191. $as_echo_n "(cached) " >&6
  6192. else
  6193. printf 0123456789abcdef0123456789abcdef >conftest.i
  6194. cat conftest.i conftest.i >conftest2.i
  6195. lt_cv_truncate_bin=
  6196. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6197. cmp -s conftest.i conftest.out \
  6198. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6199. fi
  6200. rm -f conftest.i conftest2.i conftest.out
  6201. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6202. fi
  6203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6204. $as_echo "$lt_cv_truncate_bin" >&6; }
  6205. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6206. func_cc_basename ()
  6207. {
  6208. for cc_temp in $*""; do
  6209. case $cc_temp in
  6210. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6211. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6212. \-*) ;;
  6213. *) break;;
  6214. esac
  6215. done
  6216. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6217. }
  6218. # Check whether --enable-libtool-lock was given.
  6219. if test "${enable_libtool_lock+set}" = set; then :
  6220. enableval=$enable_libtool_lock;
  6221. fi
  6222. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6223. # Some flags need to be propagated to the compiler or linker for good
  6224. # libtool support.
  6225. case $host in
  6226. ia64-*-hpux*)
  6227. # Find out what ABI is being produced by ac_compile, and set mode
  6228. # options accordingly.
  6229. echo 'int i;' > conftest.$ac_ext
  6230. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6231. (eval $ac_compile) 2>&5
  6232. ac_status=$?
  6233. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6234. test $ac_status = 0; }; then
  6235. case `/usr/bin/file conftest.$ac_objext` in
  6236. *ELF-32*)
  6237. HPUX_IA64_MODE=32
  6238. ;;
  6239. *ELF-64*)
  6240. HPUX_IA64_MODE=64
  6241. ;;
  6242. esac
  6243. fi
  6244. rm -rf conftest*
  6245. ;;
  6246. *-*-irix6*)
  6247. # Find out what ABI is being produced by ac_compile, and set linker
  6248. # options accordingly.
  6249. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6250. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6251. (eval $ac_compile) 2>&5
  6252. ac_status=$?
  6253. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6254. test $ac_status = 0; }; then
  6255. if test yes = "$lt_cv_prog_gnu_ld"; then
  6256. case `/usr/bin/file conftest.$ac_objext` in
  6257. *32-bit*)
  6258. LD="${LD-ld} -melf32bsmip"
  6259. ;;
  6260. *N32*)
  6261. LD="${LD-ld} -melf32bmipn32"
  6262. ;;
  6263. *64-bit*)
  6264. LD="${LD-ld} -melf64bmip"
  6265. ;;
  6266. esac
  6267. else
  6268. case `/usr/bin/file conftest.$ac_objext` in
  6269. *32-bit*)
  6270. LD="${LD-ld} -32"
  6271. ;;
  6272. *N32*)
  6273. LD="${LD-ld} -n32"
  6274. ;;
  6275. *64-bit*)
  6276. LD="${LD-ld} -64"
  6277. ;;
  6278. esac
  6279. fi
  6280. fi
  6281. rm -rf conftest*
  6282. ;;
  6283. mips64*-*linux*)
  6284. # Find out what ABI is being produced by ac_compile, and set linker
  6285. # options accordingly.
  6286. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6287. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6288. (eval $ac_compile) 2>&5
  6289. ac_status=$?
  6290. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6291. test $ac_status = 0; }; then
  6292. emul=elf
  6293. case `/usr/bin/file conftest.$ac_objext` in
  6294. *32-bit*)
  6295. emul="${emul}32"
  6296. ;;
  6297. *64-bit*)
  6298. emul="${emul}64"
  6299. ;;
  6300. esac
  6301. case `/usr/bin/file conftest.$ac_objext` in
  6302. *MSB*)
  6303. emul="${emul}btsmip"
  6304. ;;
  6305. *LSB*)
  6306. emul="${emul}ltsmip"
  6307. ;;
  6308. esac
  6309. case `/usr/bin/file conftest.$ac_objext` in
  6310. *N32*)
  6311. emul="${emul}n32"
  6312. ;;
  6313. esac
  6314. LD="${LD-ld} -m $emul"
  6315. fi
  6316. rm -rf conftest*
  6317. ;;
  6318. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6319. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6320. # Find out what ABI is being produced by ac_compile, and set linker
  6321. # options accordingly. Note that the listed cases only cover the
  6322. # situations where additional linker options are needed (such as when
  6323. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6324. # vice versa); the common cases where no linker options are needed do
  6325. # not appear in the list.
  6326. echo 'int i;' > conftest.$ac_ext
  6327. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6328. (eval $ac_compile) 2>&5
  6329. ac_status=$?
  6330. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6331. test $ac_status = 0; }; then
  6332. case `/usr/bin/file conftest.o` in
  6333. *32-bit*)
  6334. case $host in
  6335. x86_64-*kfreebsd*-gnu)
  6336. LD="${LD-ld} -m elf_i386_fbsd"
  6337. ;;
  6338. x86_64-*linux*)
  6339. case `/usr/bin/file conftest.o` in
  6340. *x86-64*)
  6341. LD="${LD-ld} -m elf32_x86_64"
  6342. ;;
  6343. *)
  6344. LD="${LD-ld} -m elf_i386"
  6345. ;;
  6346. esac
  6347. ;;
  6348. powerpc64le-*linux*)
  6349. LD="${LD-ld} -m elf32lppclinux"
  6350. ;;
  6351. powerpc64-*linux*)
  6352. LD="${LD-ld} -m elf32ppclinux"
  6353. ;;
  6354. s390x-*linux*)
  6355. LD="${LD-ld} -m elf_s390"
  6356. ;;
  6357. sparc64-*linux*)
  6358. LD="${LD-ld} -m elf32_sparc"
  6359. ;;
  6360. esac
  6361. ;;
  6362. *64-bit*)
  6363. case $host in
  6364. x86_64-*kfreebsd*-gnu)
  6365. LD="${LD-ld} -m elf_x86_64_fbsd"
  6366. ;;
  6367. x86_64-*linux*)
  6368. LD="${LD-ld} -m elf_x86_64"
  6369. ;;
  6370. powerpcle-*linux*)
  6371. LD="${LD-ld} -m elf64lppc"
  6372. ;;
  6373. powerpc-*linux*)
  6374. LD="${LD-ld} -m elf64ppc"
  6375. ;;
  6376. s390*-*linux*|s390*-*tpf*)
  6377. LD="${LD-ld} -m elf64_s390"
  6378. ;;
  6379. sparc*-*linux*)
  6380. LD="${LD-ld} -m elf64_sparc"
  6381. ;;
  6382. esac
  6383. ;;
  6384. esac
  6385. fi
  6386. rm -rf conftest*
  6387. ;;
  6388. *-*-sco3.2v5*)
  6389. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6390. SAVE_CFLAGS=$CFLAGS
  6391. CFLAGS="$CFLAGS -belf"
  6392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6393. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6394. if ${lt_cv_cc_needs_belf+:} false; then :
  6395. $as_echo_n "(cached) " >&6
  6396. else
  6397. ac_ext=c
  6398. ac_cpp='$CPP $CPPFLAGS'
  6399. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6400. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6401. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6403. /* end confdefs.h. */
  6404. int
  6405. main ()
  6406. {
  6407. ;
  6408. return 0;
  6409. }
  6410. _ACEOF
  6411. if ac_fn_c_try_link "$LINENO"; then :
  6412. lt_cv_cc_needs_belf=yes
  6413. else
  6414. lt_cv_cc_needs_belf=no
  6415. fi
  6416. rm -f core conftest.err conftest.$ac_objext \
  6417. conftest$ac_exeext conftest.$ac_ext
  6418. ac_ext=c
  6419. ac_cpp='$CPP $CPPFLAGS'
  6420. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6421. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6422. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6423. fi
  6424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6425. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6426. if test yes != "$lt_cv_cc_needs_belf"; then
  6427. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6428. CFLAGS=$SAVE_CFLAGS
  6429. fi
  6430. ;;
  6431. *-*solaris*)
  6432. # Find out what ABI is being produced by ac_compile, and set linker
  6433. # options accordingly.
  6434. echo 'int i;' > conftest.$ac_ext
  6435. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6436. (eval $ac_compile) 2>&5
  6437. ac_status=$?
  6438. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6439. test $ac_status = 0; }; then
  6440. case `/usr/bin/file conftest.o` in
  6441. *64-bit*)
  6442. case $lt_cv_prog_gnu_ld in
  6443. yes*)
  6444. case $host in
  6445. i?86-*-solaris*|x86_64-*-solaris*)
  6446. LD="${LD-ld} -m elf_x86_64"
  6447. ;;
  6448. sparc*-*-solaris*)
  6449. LD="${LD-ld} -m elf64_sparc"
  6450. ;;
  6451. esac
  6452. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6453. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6454. LD=${LD-ld}_sol2
  6455. fi
  6456. ;;
  6457. *)
  6458. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6459. LD="${LD-ld} -64"
  6460. fi
  6461. ;;
  6462. esac
  6463. ;;
  6464. esac
  6465. fi
  6466. rm -rf conftest*
  6467. ;;
  6468. esac
  6469. need_locks=$enable_libtool_lock
  6470. if test -n "$ac_tool_prefix"; then
  6471. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6472. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6474. $as_echo_n "checking for $ac_word... " >&6; }
  6475. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6476. $as_echo_n "(cached) " >&6
  6477. else
  6478. if test -n "$MANIFEST_TOOL"; then
  6479. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6480. else
  6481. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6482. for as_dir in $PATH
  6483. do
  6484. IFS=$as_save_IFS
  6485. test -z "$as_dir" && as_dir=.
  6486. for ac_exec_ext in '' $ac_executable_extensions; do
  6487. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6488. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6489. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6490. break 2
  6491. fi
  6492. done
  6493. done
  6494. IFS=$as_save_IFS
  6495. fi
  6496. fi
  6497. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6498. if test -n "$MANIFEST_TOOL"; then
  6499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6500. $as_echo "$MANIFEST_TOOL" >&6; }
  6501. else
  6502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6503. $as_echo "no" >&6; }
  6504. fi
  6505. fi
  6506. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6507. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6508. # Extract the first word of "mt", so it can be a program name with args.
  6509. set dummy mt; ac_word=$2
  6510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6511. $as_echo_n "checking for $ac_word... " >&6; }
  6512. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6513. $as_echo_n "(cached) " >&6
  6514. else
  6515. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6516. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6517. else
  6518. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6519. for as_dir in $PATH
  6520. do
  6521. IFS=$as_save_IFS
  6522. test -z "$as_dir" && as_dir=.
  6523. for ac_exec_ext in '' $ac_executable_extensions; do
  6524. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6525. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6526. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6527. break 2
  6528. fi
  6529. done
  6530. done
  6531. IFS=$as_save_IFS
  6532. fi
  6533. fi
  6534. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6535. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6537. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6538. else
  6539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6540. $as_echo "no" >&6; }
  6541. fi
  6542. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6543. MANIFEST_TOOL=":"
  6544. else
  6545. case $cross_compiling:$ac_tool_warned in
  6546. yes:)
  6547. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6548. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6549. ac_tool_warned=yes ;;
  6550. esac
  6551. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6552. fi
  6553. else
  6554. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6555. fi
  6556. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6558. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6559. if ${lt_cv_path_mainfest_tool+:} false; then :
  6560. $as_echo_n "(cached) " >&6
  6561. else
  6562. lt_cv_path_mainfest_tool=no
  6563. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6564. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6565. cat conftest.err >&5
  6566. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6567. lt_cv_path_mainfest_tool=yes
  6568. fi
  6569. rm -f conftest*
  6570. fi
  6571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6572. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6573. if test yes != "$lt_cv_path_mainfest_tool"; then
  6574. MANIFEST_TOOL=:
  6575. fi
  6576. case $host_os in
  6577. rhapsody* | darwin*)
  6578. if test -n "$ac_tool_prefix"; then
  6579. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6580. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6582. $as_echo_n "checking for $ac_word... " >&6; }
  6583. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6584. $as_echo_n "(cached) " >&6
  6585. else
  6586. if test -n "$DSYMUTIL"; then
  6587. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6588. else
  6589. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6590. for as_dir in $PATH
  6591. do
  6592. IFS=$as_save_IFS
  6593. test -z "$as_dir" && as_dir=.
  6594. for ac_exec_ext in '' $ac_executable_extensions; do
  6595. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6596. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6597. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6598. break 2
  6599. fi
  6600. done
  6601. done
  6602. IFS=$as_save_IFS
  6603. fi
  6604. fi
  6605. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6606. if test -n "$DSYMUTIL"; then
  6607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6608. $as_echo "$DSYMUTIL" >&6; }
  6609. else
  6610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6611. $as_echo "no" >&6; }
  6612. fi
  6613. fi
  6614. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6615. ac_ct_DSYMUTIL=$DSYMUTIL
  6616. # Extract the first word of "dsymutil", so it can be a program name with args.
  6617. set dummy dsymutil; ac_word=$2
  6618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6619. $as_echo_n "checking for $ac_word... " >&6; }
  6620. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6621. $as_echo_n "(cached) " >&6
  6622. else
  6623. if test -n "$ac_ct_DSYMUTIL"; then
  6624. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6625. else
  6626. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6627. for as_dir in $PATH
  6628. do
  6629. IFS=$as_save_IFS
  6630. test -z "$as_dir" && as_dir=.
  6631. for ac_exec_ext in '' $ac_executable_extensions; do
  6632. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6633. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6634. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6635. break 2
  6636. fi
  6637. done
  6638. done
  6639. IFS=$as_save_IFS
  6640. fi
  6641. fi
  6642. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6643. if test -n "$ac_ct_DSYMUTIL"; then
  6644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6645. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6646. else
  6647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6648. $as_echo "no" >&6; }
  6649. fi
  6650. if test "x$ac_ct_DSYMUTIL" = x; then
  6651. DSYMUTIL=":"
  6652. else
  6653. case $cross_compiling:$ac_tool_warned in
  6654. yes:)
  6655. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6656. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6657. ac_tool_warned=yes ;;
  6658. esac
  6659. DSYMUTIL=$ac_ct_DSYMUTIL
  6660. fi
  6661. else
  6662. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6663. fi
  6664. if test -n "$ac_tool_prefix"; then
  6665. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6666. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6668. $as_echo_n "checking for $ac_word... " >&6; }
  6669. if ${ac_cv_prog_NMEDIT+:} false; then :
  6670. $as_echo_n "(cached) " >&6
  6671. else
  6672. if test -n "$NMEDIT"; then
  6673. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6674. else
  6675. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6676. for as_dir in $PATH
  6677. do
  6678. IFS=$as_save_IFS
  6679. test -z "$as_dir" && as_dir=.
  6680. for ac_exec_ext in '' $ac_executable_extensions; do
  6681. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6682. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6683. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6684. break 2
  6685. fi
  6686. done
  6687. done
  6688. IFS=$as_save_IFS
  6689. fi
  6690. fi
  6691. NMEDIT=$ac_cv_prog_NMEDIT
  6692. if test -n "$NMEDIT"; then
  6693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6694. $as_echo "$NMEDIT" >&6; }
  6695. else
  6696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6697. $as_echo "no" >&6; }
  6698. fi
  6699. fi
  6700. if test -z "$ac_cv_prog_NMEDIT"; then
  6701. ac_ct_NMEDIT=$NMEDIT
  6702. # Extract the first word of "nmedit", so it can be a program name with args.
  6703. set dummy nmedit; ac_word=$2
  6704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6705. $as_echo_n "checking for $ac_word... " >&6; }
  6706. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6707. $as_echo_n "(cached) " >&6
  6708. else
  6709. if test -n "$ac_ct_NMEDIT"; then
  6710. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6711. else
  6712. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6713. for as_dir in $PATH
  6714. do
  6715. IFS=$as_save_IFS
  6716. test -z "$as_dir" && as_dir=.
  6717. for ac_exec_ext in '' $ac_executable_extensions; do
  6718. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6719. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6720. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6721. break 2
  6722. fi
  6723. done
  6724. done
  6725. IFS=$as_save_IFS
  6726. fi
  6727. fi
  6728. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6729. if test -n "$ac_ct_NMEDIT"; then
  6730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6731. $as_echo "$ac_ct_NMEDIT" >&6; }
  6732. else
  6733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6734. $as_echo "no" >&6; }
  6735. fi
  6736. if test "x$ac_ct_NMEDIT" = x; then
  6737. NMEDIT=":"
  6738. else
  6739. case $cross_compiling:$ac_tool_warned in
  6740. yes:)
  6741. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6742. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6743. ac_tool_warned=yes ;;
  6744. esac
  6745. NMEDIT=$ac_ct_NMEDIT
  6746. fi
  6747. else
  6748. NMEDIT="$ac_cv_prog_NMEDIT"
  6749. fi
  6750. if test -n "$ac_tool_prefix"; then
  6751. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6752. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6754. $as_echo_n "checking for $ac_word... " >&6; }
  6755. if ${ac_cv_prog_LIPO+:} false; then :
  6756. $as_echo_n "(cached) " >&6
  6757. else
  6758. if test -n "$LIPO"; then
  6759. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6760. else
  6761. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6762. for as_dir in $PATH
  6763. do
  6764. IFS=$as_save_IFS
  6765. test -z "$as_dir" && as_dir=.
  6766. for ac_exec_ext in '' $ac_executable_extensions; do
  6767. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6768. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6769. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6770. break 2
  6771. fi
  6772. done
  6773. done
  6774. IFS=$as_save_IFS
  6775. fi
  6776. fi
  6777. LIPO=$ac_cv_prog_LIPO
  6778. if test -n "$LIPO"; then
  6779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6780. $as_echo "$LIPO" >&6; }
  6781. else
  6782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6783. $as_echo "no" >&6; }
  6784. fi
  6785. fi
  6786. if test -z "$ac_cv_prog_LIPO"; then
  6787. ac_ct_LIPO=$LIPO
  6788. # Extract the first word of "lipo", so it can be a program name with args.
  6789. set dummy lipo; ac_word=$2
  6790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6791. $as_echo_n "checking for $ac_word... " >&6; }
  6792. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6793. $as_echo_n "(cached) " >&6
  6794. else
  6795. if test -n "$ac_ct_LIPO"; then
  6796. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6797. else
  6798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6799. for as_dir in $PATH
  6800. do
  6801. IFS=$as_save_IFS
  6802. test -z "$as_dir" && as_dir=.
  6803. for ac_exec_ext in '' $ac_executable_extensions; do
  6804. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6805. ac_cv_prog_ac_ct_LIPO="lipo"
  6806. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6807. break 2
  6808. fi
  6809. done
  6810. done
  6811. IFS=$as_save_IFS
  6812. fi
  6813. fi
  6814. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6815. if test -n "$ac_ct_LIPO"; then
  6816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6817. $as_echo "$ac_ct_LIPO" >&6; }
  6818. else
  6819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6820. $as_echo "no" >&6; }
  6821. fi
  6822. if test "x$ac_ct_LIPO" = x; then
  6823. LIPO=":"
  6824. else
  6825. case $cross_compiling:$ac_tool_warned in
  6826. yes:)
  6827. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6828. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6829. ac_tool_warned=yes ;;
  6830. esac
  6831. LIPO=$ac_ct_LIPO
  6832. fi
  6833. else
  6834. LIPO="$ac_cv_prog_LIPO"
  6835. fi
  6836. if test -n "$ac_tool_prefix"; then
  6837. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6838. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6840. $as_echo_n "checking for $ac_word... " >&6; }
  6841. if ${ac_cv_prog_OTOOL+:} false; then :
  6842. $as_echo_n "(cached) " >&6
  6843. else
  6844. if test -n "$OTOOL"; then
  6845. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6846. else
  6847. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6848. for as_dir in $PATH
  6849. do
  6850. IFS=$as_save_IFS
  6851. test -z "$as_dir" && as_dir=.
  6852. for ac_exec_ext in '' $ac_executable_extensions; do
  6853. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6854. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6855. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6856. break 2
  6857. fi
  6858. done
  6859. done
  6860. IFS=$as_save_IFS
  6861. fi
  6862. fi
  6863. OTOOL=$ac_cv_prog_OTOOL
  6864. if test -n "$OTOOL"; then
  6865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6866. $as_echo "$OTOOL" >&6; }
  6867. else
  6868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6869. $as_echo "no" >&6; }
  6870. fi
  6871. fi
  6872. if test -z "$ac_cv_prog_OTOOL"; then
  6873. ac_ct_OTOOL=$OTOOL
  6874. # Extract the first word of "otool", so it can be a program name with args.
  6875. set dummy otool; ac_word=$2
  6876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6877. $as_echo_n "checking for $ac_word... " >&6; }
  6878. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6879. $as_echo_n "(cached) " >&6
  6880. else
  6881. if test -n "$ac_ct_OTOOL"; then
  6882. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6883. else
  6884. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6885. for as_dir in $PATH
  6886. do
  6887. IFS=$as_save_IFS
  6888. test -z "$as_dir" && as_dir=.
  6889. for ac_exec_ext in '' $ac_executable_extensions; do
  6890. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6891. ac_cv_prog_ac_ct_OTOOL="otool"
  6892. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6893. break 2
  6894. fi
  6895. done
  6896. done
  6897. IFS=$as_save_IFS
  6898. fi
  6899. fi
  6900. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6901. if test -n "$ac_ct_OTOOL"; then
  6902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6903. $as_echo "$ac_ct_OTOOL" >&6; }
  6904. else
  6905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6906. $as_echo "no" >&6; }
  6907. fi
  6908. if test "x$ac_ct_OTOOL" = x; then
  6909. OTOOL=":"
  6910. else
  6911. case $cross_compiling:$ac_tool_warned in
  6912. yes:)
  6913. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6914. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6915. ac_tool_warned=yes ;;
  6916. esac
  6917. OTOOL=$ac_ct_OTOOL
  6918. fi
  6919. else
  6920. OTOOL="$ac_cv_prog_OTOOL"
  6921. fi
  6922. if test -n "$ac_tool_prefix"; then
  6923. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6924. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6926. $as_echo_n "checking for $ac_word... " >&6; }
  6927. if ${ac_cv_prog_OTOOL64+:} false; then :
  6928. $as_echo_n "(cached) " >&6
  6929. else
  6930. if test -n "$OTOOL64"; then
  6931. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6932. else
  6933. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6934. for as_dir in $PATH
  6935. do
  6936. IFS=$as_save_IFS
  6937. test -z "$as_dir" && as_dir=.
  6938. for ac_exec_ext in '' $ac_executable_extensions; do
  6939. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6940. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6941. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6942. break 2
  6943. fi
  6944. done
  6945. done
  6946. IFS=$as_save_IFS
  6947. fi
  6948. fi
  6949. OTOOL64=$ac_cv_prog_OTOOL64
  6950. if test -n "$OTOOL64"; then
  6951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6952. $as_echo "$OTOOL64" >&6; }
  6953. else
  6954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6955. $as_echo "no" >&6; }
  6956. fi
  6957. fi
  6958. if test -z "$ac_cv_prog_OTOOL64"; then
  6959. ac_ct_OTOOL64=$OTOOL64
  6960. # Extract the first word of "otool64", so it can be a program name with args.
  6961. set dummy otool64; ac_word=$2
  6962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6963. $as_echo_n "checking for $ac_word... " >&6; }
  6964. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6965. $as_echo_n "(cached) " >&6
  6966. else
  6967. if test -n "$ac_ct_OTOOL64"; then
  6968. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6969. else
  6970. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6971. for as_dir in $PATH
  6972. do
  6973. IFS=$as_save_IFS
  6974. test -z "$as_dir" && as_dir=.
  6975. for ac_exec_ext in '' $ac_executable_extensions; do
  6976. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6977. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6978. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6979. break 2
  6980. fi
  6981. done
  6982. done
  6983. IFS=$as_save_IFS
  6984. fi
  6985. fi
  6986. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6987. if test -n "$ac_ct_OTOOL64"; then
  6988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6989. $as_echo "$ac_ct_OTOOL64" >&6; }
  6990. else
  6991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6992. $as_echo "no" >&6; }
  6993. fi
  6994. if test "x$ac_ct_OTOOL64" = x; then
  6995. OTOOL64=":"
  6996. else
  6997. case $cross_compiling:$ac_tool_warned in
  6998. yes:)
  6999. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7000. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7001. ac_tool_warned=yes ;;
  7002. esac
  7003. OTOOL64=$ac_ct_OTOOL64
  7004. fi
  7005. else
  7006. OTOOL64="$ac_cv_prog_OTOOL64"
  7007. fi
  7008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7009. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7010. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7011. $as_echo_n "(cached) " >&6
  7012. else
  7013. lt_cv_apple_cc_single_mod=no
  7014. if test -z "$LT_MULTI_MODULE"; then
  7015. # By default we will add the -single_module flag. You can override
  7016. # by either setting the environment variable LT_MULTI_MODULE
  7017. # non-empty at configure time, or by adding -multi_module to the
  7018. # link flags.
  7019. rm -rf libconftest.dylib*
  7020. echo "int foo(void){return 1;}" > conftest.c
  7021. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7022. -dynamiclib -Wl,-single_module conftest.c" >&5
  7023. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7024. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7025. _lt_result=$?
  7026. # If there is a non-empty error log, and "single_module"
  7027. # appears in it, assume the flag caused a linker warning
  7028. if test -s conftest.err && $GREP single_module conftest.err; then
  7029. cat conftest.err >&5
  7030. # Otherwise, if the output was created with a 0 exit code from
  7031. # the compiler, it worked.
  7032. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7033. lt_cv_apple_cc_single_mod=yes
  7034. else
  7035. cat conftest.err >&5
  7036. fi
  7037. rm -rf libconftest.dylib*
  7038. rm -f conftest.*
  7039. fi
  7040. fi
  7041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7042. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7044. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7045. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7046. $as_echo_n "(cached) " >&6
  7047. else
  7048. lt_cv_ld_exported_symbols_list=no
  7049. save_LDFLAGS=$LDFLAGS
  7050. echo "_main" > conftest.sym
  7051. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7053. /* end confdefs.h. */
  7054. int
  7055. main ()
  7056. {
  7057. ;
  7058. return 0;
  7059. }
  7060. _ACEOF
  7061. if ac_fn_c_try_link "$LINENO"; then :
  7062. lt_cv_ld_exported_symbols_list=yes
  7063. else
  7064. lt_cv_ld_exported_symbols_list=no
  7065. fi
  7066. rm -f core conftest.err conftest.$ac_objext \
  7067. conftest$ac_exeext conftest.$ac_ext
  7068. LDFLAGS=$save_LDFLAGS
  7069. fi
  7070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7071. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7073. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7074. if ${lt_cv_ld_force_load+:} false; then :
  7075. $as_echo_n "(cached) " >&6
  7076. else
  7077. lt_cv_ld_force_load=no
  7078. cat > conftest.c << _LT_EOF
  7079. int forced_loaded() { return 2;}
  7080. _LT_EOF
  7081. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7082. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7083. echo "$AR cr libconftest.a conftest.o" >&5
  7084. $AR cr libconftest.a conftest.o 2>&5
  7085. echo "$RANLIB libconftest.a" >&5
  7086. $RANLIB libconftest.a 2>&5
  7087. cat > conftest.c << _LT_EOF
  7088. int main() { return 0;}
  7089. _LT_EOF
  7090. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7091. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7092. _lt_result=$?
  7093. if test -s conftest.err && $GREP force_load conftest.err; then
  7094. cat conftest.err >&5
  7095. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7096. lt_cv_ld_force_load=yes
  7097. else
  7098. cat conftest.err >&5
  7099. fi
  7100. rm -f conftest.err libconftest.a conftest conftest.c
  7101. rm -rf conftest.dSYM
  7102. fi
  7103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7104. $as_echo "$lt_cv_ld_force_load" >&6; }
  7105. case $host_os in
  7106. rhapsody* | darwin1.[012])
  7107. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7108. darwin1.*)
  7109. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7110. darwin*) # darwin 5.x on
  7111. # if running on 10.5 or later, the deployment target defaults
  7112. # to the OS version, if on x86, and 10.4, the deployment
  7113. # target defaults to 10.4. Don't you love it?
  7114. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7115. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7116. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7117. 10.[012][,.]*)
  7118. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7119. 10.*)
  7120. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7121. esac
  7122. ;;
  7123. esac
  7124. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7125. _lt_dar_single_mod='$single_module'
  7126. fi
  7127. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7128. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7129. else
  7130. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7131. fi
  7132. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7133. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7134. else
  7135. _lt_dsymutil=
  7136. fi
  7137. ;;
  7138. esac
  7139. # func_munge_path_list VARIABLE PATH
  7140. # -----------------------------------
  7141. # VARIABLE is name of variable containing _space_ separated list of
  7142. # directories to be munged by the contents of PATH, which is string
  7143. # having a format:
  7144. # "DIR[:DIR]:"
  7145. # string "DIR[ DIR]" will be prepended to VARIABLE
  7146. # ":DIR[:DIR]"
  7147. # string "DIR[ DIR]" will be appended to VARIABLE
  7148. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7149. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7150. # "DIRA[ DIRA]" will be appended to VARIABLE
  7151. # "DIR[:DIR]"
  7152. # VARIABLE will be replaced by "DIR[ DIR]"
  7153. func_munge_path_list ()
  7154. {
  7155. case x$2 in
  7156. x)
  7157. ;;
  7158. *:)
  7159. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7160. ;;
  7161. x:*)
  7162. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7163. ;;
  7164. *::*)
  7165. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7166. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7167. ;;
  7168. *)
  7169. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7170. ;;
  7171. esac
  7172. }
  7173. for ac_header in dlfcn.h
  7174. do :
  7175. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7176. "
  7177. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7178. cat >>confdefs.h <<_ACEOF
  7179. #define HAVE_DLFCN_H 1
  7180. _ACEOF
  7181. fi
  7182. done
  7183. # Set options
  7184. enable_dlopen=no
  7185. # Check whether --enable-shared was given.
  7186. if test "${enable_shared+set}" = set; then :
  7187. enableval=$enable_shared; p=${PACKAGE-default}
  7188. case $enableval in
  7189. yes) enable_shared=yes ;;
  7190. no) enable_shared=no ;;
  7191. *)
  7192. enable_shared=no
  7193. # Look at the argument we got. We use all the common list separators.
  7194. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7195. for pkg in $enableval; do
  7196. IFS=$lt_save_ifs
  7197. if test "X$pkg" = "X$p"; then
  7198. enable_shared=yes
  7199. fi
  7200. done
  7201. IFS=$lt_save_ifs
  7202. ;;
  7203. esac
  7204. else
  7205. enable_shared=yes
  7206. fi
  7207. # Check whether --enable-static was given.
  7208. if test "${enable_static+set}" = set; then :
  7209. enableval=$enable_static; p=${PACKAGE-default}
  7210. case $enableval in
  7211. yes) enable_static=yes ;;
  7212. no) enable_static=no ;;
  7213. *)
  7214. enable_static=no
  7215. # Look at the argument we got. We use all the common list separators.
  7216. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7217. for pkg in $enableval; do
  7218. IFS=$lt_save_ifs
  7219. if test "X$pkg" = "X$p"; then
  7220. enable_static=yes
  7221. fi
  7222. done
  7223. IFS=$lt_save_ifs
  7224. ;;
  7225. esac
  7226. else
  7227. enable_static=yes
  7228. fi
  7229. # Check whether --with-pic was given.
  7230. if test "${with_pic+set}" = set; then :
  7231. withval=$with_pic; lt_p=${PACKAGE-default}
  7232. case $withval in
  7233. yes|no) pic_mode=$withval ;;
  7234. *)
  7235. pic_mode=default
  7236. # Look at the argument we got. We use all the common list separators.
  7237. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7238. for lt_pkg in $withval; do
  7239. IFS=$lt_save_ifs
  7240. if test "X$lt_pkg" = "X$lt_p"; then
  7241. pic_mode=yes
  7242. fi
  7243. done
  7244. IFS=$lt_save_ifs
  7245. ;;
  7246. esac
  7247. else
  7248. pic_mode=default
  7249. fi
  7250. # Check whether --enable-fast-install was given.
  7251. if test "${enable_fast_install+set}" = set; then :
  7252. enableval=$enable_fast_install; p=${PACKAGE-default}
  7253. case $enableval in
  7254. yes) enable_fast_install=yes ;;
  7255. no) enable_fast_install=no ;;
  7256. *)
  7257. enable_fast_install=no
  7258. # Look at the argument we got. We use all the common list separators.
  7259. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7260. for pkg in $enableval; do
  7261. IFS=$lt_save_ifs
  7262. if test "X$pkg" = "X$p"; then
  7263. enable_fast_install=yes
  7264. fi
  7265. done
  7266. IFS=$lt_save_ifs
  7267. ;;
  7268. esac
  7269. else
  7270. enable_fast_install=yes
  7271. fi
  7272. shared_archive_member_spec=
  7273. case $host,$enable_shared in
  7274. power*-*-aix[5-9]*,yes)
  7275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7276. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  7277. # Check whether --with-aix-soname was given.
  7278. if test "${with_aix_soname+set}" = set; then :
  7279. withval=$with_aix_soname; case $withval in
  7280. aix|svr4|both)
  7281. ;;
  7282. *)
  7283. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7284. ;;
  7285. esac
  7286. lt_cv_with_aix_soname=$with_aix_soname
  7287. else
  7288. if ${lt_cv_with_aix_soname+:} false; then :
  7289. $as_echo_n "(cached) " >&6
  7290. else
  7291. lt_cv_with_aix_soname=aix
  7292. fi
  7293. with_aix_soname=$lt_cv_with_aix_soname
  7294. fi
  7295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7296. $as_echo "$with_aix_soname" >&6; }
  7297. if test aix != "$with_aix_soname"; then
  7298. # For the AIX way of multilib, we name the shared archive member
  7299. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7300. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7301. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7302. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7303. if test 64 = "${OBJECT_MODE-32}"; then
  7304. shared_archive_member_spec=shr_64
  7305. else
  7306. shared_archive_member_spec=shr
  7307. fi
  7308. fi
  7309. ;;
  7310. *)
  7311. with_aix_soname=aix
  7312. ;;
  7313. esac
  7314. # This can be used to rebuild libtool when needed
  7315. LIBTOOL_DEPS=$ltmain
  7316. # Always use our own libtool.
  7317. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7318. test -z "$LN_S" && LN_S="ln -s"
  7319. if test -n "${ZSH_VERSION+set}"; then
  7320. setopt NO_GLOB_SUBST
  7321. fi
  7322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7323. $as_echo_n "checking for objdir... " >&6; }
  7324. if ${lt_cv_objdir+:} false; then :
  7325. $as_echo_n "(cached) " >&6
  7326. else
  7327. rm -f .libs 2>/dev/null
  7328. mkdir .libs 2>/dev/null
  7329. if test -d .libs; then
  7330. lt_cv_objdir=.libs
  7331. else
  7332. # MS-DOS does not allow filenames that begin with a dot.
  7333. lt_cv_objdir=_libs
  7334. fi
  7335. rmdir .libs 2>/dev/null
  7336. fi
  7337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7338. $as_echo "$lt_cv_objdir" >&6; }
  7339. objdir=$lt_cv_objdir
  7340. cat >>confdefs.h <<_ACEOF
  7341. #define LT_OBJDIR "$lt_cv_objdir/"
  7342. _ACEOF
  7343. case $host_os in
  7344. aix3*)
  7345. # AIX sometimes has problems with the GCC collect2 program. For some
  7346. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7347. # vanish in a puff of smoke.
  7348. if test set != "${COLLECT_NAMES+set}"; then
  7349. COLLECT_NAMES=
  7350. export COLLECT_NAMES
  7351. fi
  7352. ;;
  7353. esac
  7354. # Global variables:
  7355. ofile=libtool
  7356. can_build_shared=yes
  7357. # All known linkers require a '.a' archive for static linking (except MSVC,
  7358. # which needs '.lib').
  7359. libext=a
  7360. with_gnu_ld=$lt_cv_prog_gnu_ld
  7361. old_CC=$CC
  7362. old_CFLAGS=$CFLAGS
  7363. # Set sane defaults for various variables
  7364. test -z "$CC" && CC=cc
  7365. test -z "$LTCC" && LTCC=$CC
  7366. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7367. test -z "$LD" && LD=ld
  7368. test -z "$ac_objext" && ac_objext=o
  7369. func_cc_basename $compiler
  7370. cc_basename=$func_cc_basename_result
  7371. # Only perform the check for file, if the check method requires it
  7372. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7373. case $deplibs_check_method in
  7374. file_magic*)
  7375. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7377. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7378. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7379. $as_echo_n "(cached) " >&6
  7380. else
  7381. case $MAGIC_CMD in
  7382. [\\/*] | ?:[\\/]*)
  7383. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7384. ;;
  7385. *)
  7386. lt_save_MAGIC_CMD=$MAGIC_CMD
  7387. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7388. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7389. for ac_dir in $ac_dummy; do
  7390. IFS=$lt_save_ifs
  7391. test -z "$ac_dir" && ac_dir=.
  7392. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7393. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7394. if test -n "$file_magic_test_file"; then
  7395. case $deplibs_check_method in
  7396. "file_magic "*)
  7397. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7398. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7399. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7400. $EGREP "$file_magic_regex" > /dev/null; then
  7401. :
  7402. else
  7403. cat <<_LT_EOF 1>&2
  7404. *** Warning: the command libtool uses to detect shared libraries,
  7405. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7406. *** The result is that libtool may fail to recognize shared libraries
  7407. *** as such. This will affect the creation of libtool libraries that
  7408. *** depend on shared libraries, but programs linked with such libtool
  7409. *** libraries will work regardless of this problem. Nevertheless, you
  7410. *** may want to report the problem to your system manager and/or to
  7411. *** bug-libtool@gnu.org
  7412. _LT_EOF
  7413. fi ;;
  7414. esac
  7415. fi
  7416. break
  7417. fi
  7418. done
  7419. IFS=$lt_save_ifs
  7420. MAGIC_CMD=$lt_save_MAGIC_CMD
  7421. ;;
  7422. esac
  7423. fi
  7424. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7425. if test -n "$MAGIC_CMD"; then
  7426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7427. $as_echo "$MAGIC_CMD" >&6; }
  7428. else
  7429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7430. $as_echo "no" >&6; }
  7431. fi
  7432. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7433. if test -n "$ac_tool_prefix"; then
  7434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7435. $as_echo_n "checking for file... " >&6; }
  7436. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7437. $as_echo_n "(cached) " >&6
  7438. else
  7439. case $MAGIC_CMD in
  7440. [\\/*] | ?:[\\/]*)
  7441. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7442. ;;
  7443. *)
  7444. lt_save_MAGIC_CMD=$MAGIC_CMD
  7445. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7446. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7447. for ac_dir in $ac_dummy; do
  7448. IFS=$lt_save_ifs
  7449. test -z "$ac_dir" && ac_dir=.
  7450. if test -f "$ac_dir/file"; then
  7451. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7452. if test -n "$file_magic_test_file"; then
  7453. case $deplibs_check_method in
  7454. "file_magic "*)
  7455. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7456. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7457. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7458. $EGREP "$file_magic_regex" > /dev/null; then
  7459. :
  7460. else
  7461. cat <<_LT_EOF 1>&2
  7462. *** Warning: the command libtool uses to detect shared libraries,
  7463. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7464. *** The result is that libtool may fail to recognize shared libraries
  7465. *** as such. This will affect the creation of libtool libraries that
  7466. *** depend on shared libraries, but programs linked with such libtool
  7467. *** libraries will work regardless of this problem. Nevertheless, you
  7468. *** may want to report the problem to your system manager and/or to
  7469. *** bug-libtool@gnu.org
  7470. _LT_EOF
  7471. fi ;;
  7472. esac
  7473. fi
  7474. break
  7475. fi
  7476. done
  7477. IFS=$lt_save_ifs
  7478. MAGIC_CMD=$lt_save_MAGIC_CMD
  7479. ;;
  7480. esac
  7481. fi
  7482. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7483. if test -n "$MAGIC_CMD"; then
  7484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7485. $as_echo "$MAGIC_CMD" >&6; }
  7486. else
  7487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7488. $as_echo "no" >&6; }
  7489. fi
  7490. else
  7491. MAGIC_CMD=:
  7492. fi
  7493. fi
  7494. fi
  7495. ;;
  7496. esac
  7497. # Use C for the default configuration in the libtool script
  7498. lt_save_CC=$CC
  7499. ac_ext=c
  7500. ac_cpp='$CPP $CPPFLAGS'
  7501. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7502. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7503. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7504. # Source file extension for C test sources.
  7505. ac_ext=c
  7506. # Object file extension for compiled C test sources.
  7507. objext=o
  7508. objext=$objext
  7509. # Code to be used in simple compile tests
  7510. lt_simple_compile_test_code="int some_variable = 0;"
  7511. # Code to be used in simple link tests
  7512. lt_simple_link_test_code='int main(){return(0);}'
  7513. # If no C compiler was specified, use CC.
  7514. LTCC=${LTCC-"$CC"}
  7515. # If no C compiler flags were specified, use CFLAGS.
  7516. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7517. # Allow CC to be a program name with arguments.
  7518. compiler=$CC
  7519. # Save the default compiler, since it gets overwritten when the other
  7520. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7521. compiler_DEFAULT=$CC
  7522. # save warnings/boilerplate of simple test code
  7523. ac_outfile=conftest.$ac_objext
  7524. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7525. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7526. _lt_compiler_boilerplate=`cat conftest.err`
  7527. $RM conftest*
  7528. ac_outfile=conftest.$ac_objext
  7529. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7530. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7531. _lt_linker_boilerplate=`cat conftest.err`
  7532. $RM -r conftest*
  7533. ## CAVEAT EMPTOR:
  7534. ## There is no encapsulation within the following macros, do not change
  7535. ## the running order or otherwise move them around unless you know exactly
  7536. ## what you are doing...
  7537. if test -n "$compiler"; then
  7538. lt_prog_compiler_no_builtin_flag=
  7539. if test yes = "$GCC"; then
  7540. case $cc_basename in
  7541. nvcc*)
  7542. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7543. *)
  7544. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7545. esac
  7546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7547. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7548. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7549. $as_echo_n "(cached) " >&6
  7550. else
  7551. lt_cv_prog_compiler_rtti_exceptions=no
  7552. ac_outfile=conftest.$ac_objext
  7553. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7554. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7555. # Insert the option either (1) after the last *FLAGS variable, or
  7556. # (2) before a word containing "conftest.", or (3) at the end.
  7557. # Note that $ac_compile itself does not contain backslashes and begins
  7558. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7559. # The option is referenced via a variable to avoid confusing sed.
  7560. lt_compile=`echo "$ac_compile" | $SED \
  7561. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7562. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7563. -e 's:$: $lt_compiler_flag:'`
  7564. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7565. (eval "$lt_compile" 2>conftest.err)
  7566. ac_status=$?
  7567. cat conftest.err >&5
  7568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7569. if (exit $ac_status) && test -s "$ac_outfile"; then
  7570. # The compiler can only warn and ignore the option if not recognized
  7571. # So say no if there are warnings other than the usual output.
  7572. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7573. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7574. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7575. lt_cv_prog_compiler_rtti_exceptions=yes
  7576. fi
  7577. fi
  7578. $RM conftest*
  7579. fi
  7580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7581. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7582. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7583. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7584. else
  7585. :
  7586. fi
  7587. fi
  7588. lt_prog_compiler_wl=
  7589. lt_prog_compiler_pic=
  7590. lt_prog_compiler_static=
  7591. if test yes = "$GCC"; then
  7592. lt_prog_compiler_wl='-Wl,'
  7593. lt_prog_compiler_static='-static'
  7594. case $host_os in
  7595. aix*)
  7596. # All AIX code is PIC.
  7597. if test ia64 = "$host_cpu"; then
  7598. # AIX 5 now supports IA64 processor
  7599. lt_prog_compiler_static='-Bstatic'
  7600. fi
  7601. lt_prog_compiler_pic='-fPIC'
  7602. ;;
  7603. amigaos*)
  7604. case $host_cpu in
  7605. powerpc)
  7606. # see comment about AmigaOS4 .so support
  7607. lt_prog_compiler_pic='-fPIC'
  7608. ;;
  7609. m68k)
  7610. # FIXME: we need at least 68020 code to build shared libraries, but
  7611. # adding the '-m68020' flag to GCC prevents building anything better,
  7612. # like '-m68040'.
  7613. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7614. ;;
  7615. esac
  7616. ;;
  7617. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7618. # PIC is the default for these OSes.
  7619. ;;
  7620. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7621. # This hack is so that the source file can tell whether it is being
  7622. # built for inclusion in a dll (and should export symbols for example).
  7623. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7624. # (--disable-auto-import) libraries
  7625. lt_prog_compiler_pic='-DDLL_EXPORT'
  7626. case $host_os in
  7627. os2*)
  7628. lt_prog_compiler_static='$wl-static'
  7629. ;;
  7630. esac
  7631. ;;
  7632. darwin* | rhapsody*)
  7633. # PIC is the default on this platform
  7634. # Common symbols not allowed in MH_DYLIB files
  7635. lt_prog_compiler_pic='-fno-common'
  7636. ;;
  7637. haiku*)
  7638. # PIC is the default for Haiku.
  7639. # The "-static" flag exists, but is broken.
  7640. lt_prog_compiler_static=
  7641. ;;
  7642. hpux*)
  7643. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7644. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7645. # sets the default TLS model and affects inlining.
  7646. case $host_cpu in
  7647. hppa*64*)
  7648. # +Z the default
  7649. ;;
  7650. *)
  7651. lt_prog_compiler_pic='-fPIC'
  7652. ;;
  7653. esac
  7654. ;;
  7655. interix[3-9]*)
  7656. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7657. # Instead, we relocate shared libraries at runtime.
  7658. ;;
  7659. msdosdjgpp*)
  7660. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7661. # on systems that don't support them.
  7662. lt_prog_compiler_can_build_shared=no
  7663. enable_shared=no
  7664. ;;
  7665. *nto* | *qnx*)
  7666. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7667. # it will coredump.
  7668. lt_prog_compiler_pic='-fPIC -shared'
  7669. ;;
  7670. sysv4*MP*)
  7671. if test -d /usr/nec; then
  7672. lt_prog_compiler_pic=-Kconform_pic
  7673. fi
  7674. ;;
  7675. *)
  7676. lt_prog_compiler_pic='-fPIC'
  7677. ;;
  7678. esac
  7679. case $cc_basename in
  7680. nvcc*) # Cuda Compiler Driver 2.2
  7681. lt_prog_compiler_wl='-Xlinker '
  7682. if test -n "$lt_prog_compiler_pic"; then
  7683. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7684. fi
  7685. ;;
  7686. esac
  7687. else
  7688. # PORTME Check for flag to pass linker flags through the system compiler.
  7689. case $host_os in
  7690. aix*)
  7691. lt_prog_compiler_wl='-Wl,'
  7692. if test ia64 = "$host_cpu"; then
  7693. # AIX 5 now supports IA64 processor
  7694. lt_prog_compiler_static='-Bstatic'
  7695. else
  7696. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7697. fi
  7698. ;;
  7699. darwin* | rhapsody*)
  7700. # PIC is the default on this platform
  7701. # Common symbols not allowed in MH_DYLIB files
  7702. lt_prog_compiler_pic='-fno-common'
  7703. case $cc_basename in
  7704. nagfor*)
  7705. # NAG Fortran compiler
  7706. lt_prog_compiler_wl='-Wl,-Wl,,'
  7707. lt_prog_compiler_pic='-PIC'
  7708. lt_prog_compiler_static='-Bstatic'
  7709. ;;
  7710. esac
  7711. ;;
  7712. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7713. # This hack is so that the source file can tell whether it is being
  7714. # built for inclusion in a dll (and should export symbols for example).
  7715. lt_prog_compiler_pic='-DDLL_EXPORT'
  7716. case $host_os in
  7717. os2*)
  7718. lt_prog_compiler_static='$wl-static'
  7719. ;;
  7720. esac
  7721. ;;
  7722. hpux9* | hpux10* | hpux11*)
  7723. lt_prog_compiler_wl='-Wl,'
  7724. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7725. # not for PA HP-UX.
  7726. case $host_cpu in
  7727. hppa*64*|ia64*)
  7728. # +Z the default
  7729. ;;
  7730. *)
  7731. lt_prog_compiler_pic='+Z'
  7732. ;;
  7733. esac
  7734. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7735. lt_prog_compiler_static='$wl-a ${wl}archive'
  7736. ;;
  7737. irix5* | irix6* | nonstopux*)
  7738. lt_prog_compiler_wl='-Wl,'
  7739. # PIC (with -KPIC) is the default.
  7740. lt_prog_compiler_static='-non_shared'
  7741. ;;
  7742. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7743. case $cc_basename in
  7744. # old Intel for x86_64, which still supported -KPIC.
  7745. ecc*)
  7746. lt_prog_compiler_wl='-Wl,'
  7747. lt_prog_compiler_pic='-KPIC'
  7748. lt_prog_compiler_static='-static'
  7749. ;;
  7750. # flang / f18. f95 an alias for gfortran or flang on Debian
  7751. flang* | f18* | f95*)
  7752. lt_prog_compiler_wl='-Wl,'
  7753. lt_prog_compiler_pic='-fPIC'
  7754. lt_prog_compiler_static='-static'
  7755. ;;
  7756. # icc used to be incompatible with GCC.
  7757. # ICC 10 doesn't accept -KPIC any more.
  7758. icc* | ifort*)
  7759. lt_prog_compiler_wl='-Wl,'
  7760. lt_prog_compiler_pic='-fPIC'
  7761. lt_prog_compiler_static='-static'
  7762. ;;
  7763. # Lahey Fortran 8.1.
  7764. lf95*)
  7765. lt_prog_compiler_wl='-Wl,'
  7766. lt_prog_compiler_pic='--shared'
  7767. lt_prog_compiler_static='--static'
  7768. ;;
  7769. nagfor*)
  7770. # NAG Fortran compiler
  7771. lt_prog_compiler_wl='-Wl,-Wl,,'
  7772. lt_prog_compiler_pic='-PIC'
  7773. lt_prog_compiler_static='-Bstatic'
  7774. ;;
  7775. tcc*)
  7776. # Fabrice Bellard et al's Tiny C Compiler
  7777. lt_prog_compiler_wl='-Wl,'
  7778. lt_prog_compiler_pic='-fPIC'
  7779. lt_prog_compiler_static='-static'
  7780. ;;
  7781. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7782. # Portland Group compilers (*not* the Pentium gcc compiler,
  7783. # which looks to be a dead project)
  7784. lt_prog_compiler_wl='-Wl,'
  7785. lt_prog_compiler_pic='-fpic'
  7786. lt_prog_compiler_static='-Bstatic'
  7787. ;;
  7788. ccc*)
  7789. lt_prog_compiler_wl='-Wl,'
  7790. # All Alpha code is PIC.
  7791. lt_prog_compiler_static='-non_shared'
  7792. ;;
  7793. xl* | bgxl* | bgf* | mpixl*)
  7794. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7795. lt_prog_compiler_wl='-Wl,'
  7796. lt_prog_compiler_pic='-qpic'
  7797. lt_prog_compiler_static='-qstaticlink'
  7798. ;;
  7799. *)
  7800. case `$CC -V 2>&1 | sed 5q` in
  7801. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7802. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7803. lt_prog_compiler_pic='-KPIC'
  7804. lt_prog_compiler_static='-Bstatic'
  7805. lt_prog_compiler_wl=''
  7806. ;;
  7807. *Sun\ F* | *Sun*Fortran*)
  7808. lt_prog_compiler_pic='-KPIC'
  7809. lt_prog_compiler_static='-Bstatic'
  7810. lt_prog_compiler_wl='-Qoption ld '
  7811. ;;
  7812. *Sun\ C*)
  7813. # Sun C 5.9
  7814. lt_prog_compiler_pic='-KPIC'
  7815. lt_prog_compiler_static='-Bstatic'
  7816. lt_prog_compiler_wl='-Wl,'
  7817. ;;
  7818. *Intel*\ [CF]*Compiler*)
  7819. lt_prog_compiler_wl='-Wl,'
  7820. lt_prog_compiler_pic='-fPIC'
  7821. lt_prog_compiler_static='-static'
  7822. ;;
  7823. *Portland\ Group*)
  7824. lt_prog_compiler_wl='-Wl,'
  7825. lt_prog_compiler_pic='-fpic'
  7826. lt_prog_compiler_static='-Bstatic'
  7827. ;;
  7828. esac
  7829. ;;
  7830. esac
  7831. ;;
  7832. newsos6)
  7833. lt_prog_compiler_pic='-KPIC'
  7834. lt_prog_compiler_static='-Bstatic'
  7835. ;;
  7836. *nto* | *qnx*)
  7837. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7838. # it will coredump.
  7839. lt_prog_compiler_pic='-fPIC -shared'
  7840. ;;
  7841. osf3* | osf4* | osf5*)
  7842. lt_prog_compiler_wl='-Wl,'
  7843. # All OSF/1 code is PIC.
  7844. lt_prog_compiler_static='-non_shared'
  7845. ;;
  7846. rdos*)
  7847. lt_prog_compiler_static='-non_shared'
  7848. ;;
  7849. solaris*)
  7850. lt_prog_compiler_pic='-KPIC'
  7851. lt_prog_compiler_static='-Bstatic'
  7852. case $cc_basename in
  7853. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7854. lt_prog_compiler_wl='-Qoption ld ';;
  7855. *)
  7856. lt_prog_compiler_wl='-Wl,';;
  7857. esac
  7858. ;;
  7859. sunos4*)
  7860. lt_prog_compiler_wl='-Qoption ld '
  7861. lt_prog_compiler_pic='-PIC'
  7862. lt_prog_compiler_static='-Bstatic'
  7863. ;;
  7864. sysv4 | sysv4.2uw2* | sysv4.3*)
  7865. lt_prog_compiler_wl='-Wl,'
  7866. lt_prog_compiler_pic='-KPIC'
  7867. lt_prog_compiler_static='-Bstatic'
  7868. ;;
  7869. sysv4*MP*)
  7870. if test -d /usr/nec; then
  7871. lt_prog_compiler_pic='-Kconform_pic'
  7872. lt_prog_compiler_static='-Bstatic'
  7873. fi
  7874. ;;
  7875. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7876. lt_prog_compiler_wl='-Wl,'
  7877. lt_prog_compiler_pic='-KPIC'
  7878. lt_prog_compiler_static='-Bstatic'
  7879. ;;
  7880. unicos*)
  7881. lt_prog_compiler_wl='-Wl,'
  7882. lt_prog_compiler_can_build_shared=no
  7883. ;;
  7884. uts4*)
  7885. lt_prog_compiler_pic='-pic'
  7886. lt_prog_compiler_static='-Bstatic'
  7887. ;;
  7888. *)
  7889. lt_prog_compiler_can_build_shared=no
  7890. ;;
  7891. esac
  7892. fi
  7893. case $host_os in
  7894. # For platforms that do not support PIC, -DPIC is meaningless:
  7895. *djgpp*)
  7896. lt_prog_compiler_pic=
  7897. ;;
  7898. *)
  7899. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7900. ;;
  7901. esac
  7902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7903. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7904. if ${lt_cv_prog_compiler_pic+:} false; then :
  7905. $as_echo_n "(cached) " >&6
  7906. else
  7907. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7908. fi
  7909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7910. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7911. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7912. #
  7913. # Check to make sure the PIC flag actually works.
  7914. #
  7915. if test -n "$lt_prog_compiler_pic"; then
  7916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7917. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7918. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7919. $as_echo_n "(cached) " >&6
  7920. else
  7921. lt_cv_prog_compiler_pic_works=no
  7922. ac_outfile=conftest.$ac_objext
  7923. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7924. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  7925. # Insert the option either (1) after the last *FLAGS variable, or
  7926. # (2) before a word containing "conftest.", or (3) at the end.
  7927. # Note that $ac_compile itself does not contain backslashes and begins
  7928. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7929. # The option is referenced via a variable to avoid confusing sed.
  7930. lt_compile=`echo "$ac_compile" | $SED \
  7931. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7932. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7933. -e 's:$: $lt_compiler_flag:'`
  7934. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7935. (eval "$lt_compile" 2>conftest.err)
  7936. ac_status=$?
  7937. cat conftest.err >&5
  7938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7939. if (exit $ac_status) && test -s "$ac_outfile"; then
  7940. # The compiler can only warn and ignore the option if not recognized
  7941. # So say no if there are warnings other than the usual output.
  7942. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7943. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7944. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7945. lt_cv_prog_compiler_pic_works=yes
  7946. fi
  7947. fi
  7948. $RM conftest*
  7949. fi
  7950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7951. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7952. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  7953. case $lt_prog_compiler_pic in
  7954. "" | " "*) ;;
  7955. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7956. esac
  7957. else
  7958. lt_prog_compiler_pic=
  7959. lt_prog_compiler_can_build_shared=no
  7960. fi
  7961. fi
  7962. #
  7963. # Check to make sure the static flag actually works.
  7964. #
  7965. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7967. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7968. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7969. $as_echo_n "(cached) " >&6
  7970. else
  7971. lt_cv_prog_compiler_static_works=no
  7972. save_LDFLAGS=$LDFLAGS
  7973. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7974. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7975. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7976. # The linker can only warn and ignore the option if not recognized
  7977. # So say no if there are warnings
  7978. if test -s conftest.err; then
  7979. # Append any errors to the config.log.
  7980. cat conftest.err 1>&5
  7981. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7982. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7983. if diff conftest.exp conftest.er2 >/dev/null; then
  7984. lt_cv_prog_compiler_static_works=yes
  7985. fi
  7986. else
  7987. lt_cv_prog_compiler_static_works=yes
  7988. fi
  7989. fi
  7990. $RM -r conftest*
  7991. LDFLAGS=$save_LDFLAGS
  7992. fi
  7993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7994. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7995. if test yes = "$lt_cv_prog_compiler_static_works"; then
  7996. :
  7997. else
  7998. lt_prog_compiler_static=
  7999. fi
  8000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8001. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8002. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8003. $as_echo_n "(cached) " >&6
  8004. else
  8005. lt_cv_prog_compiler_c_o=no
  8006. $RM -r conftest 2>/dev/null
  8007. mkdir conftest
  8008. cd conftest
  8009. mkdir out
  8010. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8011. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8012. # Insert the option either (1) after the last *FLAGS variable, or
  8013. # (2) before a word containing "conftest.", or (3) at the end.
  8014. # Note that $ac_compile itself does not contain backslashes and begins
  8015. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8016. lt_compile=`echo "$ac_compile" | $SED \
  8017. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8018. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8019. -e 's:$: $lt_compiler_flag:'`
  8020. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8021. (eval "$lt_compile" 2>out/conftest.err)
  8022. ac_status=$?
  8023. cat out/conftest.err >&5
  8024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8025. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8026. then
  8027. # The compiler can only warn and ignore the option if not recognized
  8028. # So say no if there are warnings
  8029. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8030. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8031. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8032. lt_cv_prog_compiler_c_o=yes
  8033. fi
  8034. fi
  8035. chmod u+w . 2>&5
  8036. $RM conftest*
  8037. # SGI C++ compiler will create directory out/ii_files/ for
  8038. # template instantiation
  8039. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8040. $RM out/* && rmdir out
  8041. cd ..
  8042. $RM -r conftest
  8043. $RM conftest*
  8044. fi
  8045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8046. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8048. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8049. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8050. $as_echo_n "(cached) " >&6
  8051. else
  8052. lt_cv_prog_compiler_c_o=no
  8053. $RM -r conftest 2>/dev/null
  8054. mkdir conftest
  8055. cd conftest
  8056. mkdir out
  8057. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8058. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8059. # Insert the option either (1) after the last *FLAGS variable, or
  8060. # (2) before a word containing "conftest.", or (3) at the end.
  8061. # Note that $ac_compile itself does not contain backslashes and begins
  8062. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8063. lt_compile=`echo "$ac_compile" | $SED \
  8064. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8065. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8066. -e 's:$: $lt_compiler_flag:'`
  8067. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8068. (eval "$lt_compile" 2>out/conftest.err)
  8069. ac_status=$?
  8070. cat out/conftest.err >&5
  8071. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8072. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8073. then
  8074. # The compiler can only warn and ignore the option if not recognized
  8075. # So say no if there are warnings
  8076. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8077. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8078. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8079. lt_cv_prog_compiler_c_o=yes
  8080. fi
  8081. fi
  8082. chmod u+w . 2>&5
  8083. $RM conftest*
  8084. # SGI C++ compiler will create directory out/ii_files/ for
  8085. # template instantiation
  8086. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8087. $RM out/* && rmdir out
  8088. cd ..
  8089. $RM -r conftest
  8090. $RM conftest*
  8091. fi
  8092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8093. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8094. hard_links=nottested
  8095. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8096. # do not overwrite the value of need_locks provided by the user
  8097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8098. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8099. hard_links=yes
  8100. $RM conftest*
  8101. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8102. touch conftest.a
  8103. ln conftest.a conftest.b 2>&5 || hard_links=no
  8104. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8106. $as_echo "$hard_links" >&6; }
  8107. if test no = "$hard_links"; then
  8108. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8109. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8110. need_locks=warn
  8111. fi
  8112. else
  8113. need_locks=no
  8114. fi
  8115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8116. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8117. runpath_var=
  8118. allow_undefined_flag=
  8119. always_export_symbols=no
  8120. archive_cmds=
  8121. archive_expsym_cmds=
  8122. compiler_needs_object=no
  8123. enable_shared_with_static_runtimes=no
  8124. export_dynamic_flag_spec=
  8125. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8126. hardcode_automatic=no
  8127. hardcode_direct=no
  8128. hardcode_direct_absolute=no
  8129. hardcode_libdir_flag_spec=
  8130. hardcode_libdir_separator=
  8131. hardcode_minus_L=no
  8132. hardcode_shlibpath_var=unsupported
  8133. inherit_rpath=no
  8134. link_all_deplibs=unknown
  8135. module_cmds=
  8136. module_expsym_cmds=
  8137. old_archive_from_new_cmds=
  8138. old_archive_from_expsyms_cmds=
  8139. thread_safe_flag_spec=
  8140. whole_archive_flag_spec=
  8141. # include_expsyms should be a list of space-separated symbols to be *always*
  8142. # included in the symbol list
  8143. include_expsyms=
  8144. # exclude_expsyms can be an extended regexp of symbols to exclude
  8145. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8146. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8147. # as well as any symbol that contains 'd'.
  8148. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8149. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8150. # platforms (ab)use it in PIC code, but their linkers get confused if
  8151. # the symbol is explicitly referenced. Since portable code cannot
  8152. # rely on this symbol name, it's probably fine to never include it in
  8153. # preloaded symbol tables.
  8154. # Exclude shared library initialization/finalization symbols.
  8155. extract_expsyms_cmds=
  8156. case $host_os in
  8157. cygwin* | mingw* | pw32* | cegcc*)
  8158. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8159. # When not using gcc, we currently assume that we are using
  8160. # Microsoft Visual C++.
  8161. if test yes != "$GCC"; then
  8162. with_gnu_ld=no
  8163. fi
  8164. ;;
  8165. interix*)
  8166. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8167. with_gnu_ld=yes
  8168. ;;
  8169. openbsd* | bitrig*)
  8170. with_gnu_ld=no
  8171. ;;
  8172. linux* | k*bsd*-gnu | gnu*)
  8173. link_all_deplibs=no
  8174. ;;
  8175. esac
  8176. ld_shlibs=yes
  8177. # On some targets, GNU ld is compatible enough with the native linker
  8178. # that we're better off using the native interface for both.
  8179. lt_use_gnu_ld_interface=no
  8180. if test yes = "$with_gnu_ld"; then
  8181. case $host_os in
  8182. aix*)
  8183. # The AIX port of GNU ld has always aspired to compatibility
  8184. # with the native linker. However, as the warning in the GNU ld
  8185. # block says, versions before 2.19.5* couldn't really create working
  8186. # shared libraries, regardless of the interface used.
  8187. case `$LD -v 2>&1` in
  8188. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8189. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8190. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8191. *)
  8192. lt_use_gnu_ld_interface=yes
  8193. ;;
  8194. esac
  8195. ;;
  8196. *)
  8197. lt_use_gnu_ld_interface=yes
  8198. ;;
  8199. esac
  8200. fi
  8201. if test yes = "$lt_use_gnu_ld_interface"; then
  8202. # If archive_cmds runs LD, not CC, wlarc should be empty
  8203. wlarc='$wl'
  8204. # Set some defaults for GNU ld with shared library support. These
  8205. # are reset later if shared libraries are not supported. Putting them
  8206. # here allows them to be overridden if necessary.
  8207. runpath_var=LD_RUN_PATH
  8208. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8209. export_dynamic_flag_spec='$wl--export-dynamic'
  8210. # ancient GNU ld didn't support --whole-archive et. al.
  8211. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8212. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8213. else
  8214. whole_archive_flag_spec=
  8215. fi
  8216. supports_anon_versioning=no
  8217. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  8218. *GNU\ gold*) supports_anon_versioning=yes ;;
  8219. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8220. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8221. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8222. *\ 2.11.*) ;; # other 2.11 versions
  8223. *) supports_anon_versioning=yes ;;
  8224. esac
  8225. # See if GNU ld supports shared libraries.
  8226. case $host_os in
  8227. aix[3-9]*)
  8228. # On AIX/PPC, the GNU linker is very broken
  8229. if test ia64 != "$host_cpu"; then
  8230. ld_shlibs=no
  8231. cat <<_LT_EOF 1>&2
  8232. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8233. *** to be unable to reliably create shared libraries on AIX.
  8234. *** Therefore, libtool is disabling shared libraries support. If you
  8235. *** really care for shared libraries, you may want to install binutils
  8236. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8237. *** You will then need to restart the configuration process.
  8238. _LT_EOF
  8239. fi
  8240. ;;
  8241. amigaos*)
  8242. case $host_cpu in
  8243. powerpc)
  8244. # see comment about AmigaOS4 .so support
  8245. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8246. archive_expsym_cmds=''
  8247. ;;
  8248. m68k)
  8249. 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)'
  8250. hardcode_libdir_flag_spec='-L$libdir'
  8251. hardcode_minus_L=yes
  8252. ;;
  8253. esac
  8254. ;;
  8255. beos*)
  8256. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8257. allow_undefined_flag=unsupported
  8258. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8259. # support --undefined. This deserves some investigation. FIXME
  8260. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8261. else
  8262. ld_shlibs=no
  8263. fi
  8264. ;;
  8265. cygwin* | mingw* | pw32* | cegcc*)
  8266. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8267. # as there is no search path for DLLs.
  8268. hardcode_libdir_flag_spec='-L$libdir'
  8269. export_dynamic_flag_spec='$wl--export-all-symbols'
  8270. allow_undefined_flag=unsupported
  8271. always_export_symbols=no
  8272. enable_shared_with_static_runtimes=yes
  8273. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  8274. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8275. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8276. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8277. # If the export-symbols file already is a .def file, use it as
  8278. # is; otherwise, prepend EXPORTS...
  8279. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8280. cp $export_symbols $output_objdir/$soname.def;
  8281. else
  8282. echo EXPORTS > $output_objdir/$soname.def;
  8283. cat $export_symbols >> $output_objdir/$soname.def;
  8284. fi~
  8285. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8286. else
  8287. ld_shlibs=no
  8288. fi
  8289. ;;
  8290. haiku*)
  8291. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8292. link_all_deplibs=yes
  8293. ;;
  8294. os2*)
  8295. hardcode_libdir_flag_spec='-L$libdir'
  8296. hardcode_minus_L=yes
  8297. allow_undefined_flag=unsupported
  8298. shrext_cmds=.dll
  8299. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8300. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8301. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8302. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8303. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8304. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8305. emximp -o $lib $output_objdir/$libname.def'
  8306. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8307. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8308. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8309. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8310. prefix_cmds="$SED"~
  8311. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8312. prefix_cmds="$prefix_cmds -e 1d";
  8313. fi~
  8314. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8315. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8316. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8317. emximp -o $lib $output_objdir/$libname.def'
  8318. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8319. enable_shared_with_static_runtimes=yes
  8320. ;;
  8321. interix[3-9]*)
  8322. hardcode_direct=no
  8323. hardcode_shlibpath_var=no
  8324. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8325. export_dynamic_flag_spec='$wl-E'
  8326. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8327. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8328. # default) and relocated if they conflict, which is a slow very memory
  8329. # consuming and fragmenting process. To avoid this, we pick a random,
  8330. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8331. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8332. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8333. 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'
  8334. ;;
  8335. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8336. tmp_diet=no
  8337. if test linux-dietlibc = "$host_os"; then
  8338. case $cc_basename in
  8339. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8340. esac
  8341. fi
  8342. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8343. && test no = "$tmp_diet"
  8344. then
  8345. tmp_addflag=' $pic_flag'
  8346. tmp_sharedflag='-shared'
  8347. case $cc_basename,$host_cpu in
  8348. pgcc*) # Portland Group C compiler
  8349. 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'
  8350. tmp_addflag=' $pic_flag'
  8351. ;;
  8352. pgf77* | pgf90* | pgf95* | pgfortran*)
  8353. # Portland Group f77 and f90 compilers
  8354. 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'
  8355. tmp_addflag=' $pic_flag -Mnomain' ;;
  8356. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8357. tmp_addflag=' -i_dynamic' ;;
  8358. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8359. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8360. ifc* | ifort*) # Intel Fortran compiler
  8361. tmp_addflag=' -nofor_main' ;;
  8362. lf95*) # Lahey Fortran 8.1
  8363. whole_archive_flag_spec=
  8364. tmp_sharedflag='--shared' ;;
  8365. nagfor*) # NAGFOR 5.3
  8366. tmp_sharedflag='-Wl,-shared' ;;
  8367. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8368. tmp_sharedflag='-qmkshrobj'
  8369. tmp_addflag= ;;
  8370. nvcc*) # Cuda Compiler Driver 2.2
  8371. 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'
  8372. compiler_needs_object=yes
  8373. ;;
  8374. esac
  8375. case `$CC -V 2>&1 | sed 5q` in
  8376. *Sun\ C*) # Sun C 5.9
  8377. 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'
  8378. compiler_needs_object=yes
  8379. tmp_sharedflag='-G' ;;
  8380. *Sun\ F*) # Sun Fortran 8.3
  8381. tmp_sharedflag='-G' ;;
  8382. esac
  8383. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8384. if test yes = "$supports_anon_versioning"; then
  8385. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8386. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8387. echo "local: *; };" >> $output_objdir/$libname.ver~
  8388. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8389. fi
  8390. case $cc_basename in
  8391. tcc*)
  8392. export_dynamic_flag_spec='-rdynamic'
  8393. ;;
  8394. xlf* | bgf* | bgxlf* | mpixlf*)
  8395. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8396. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8397. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8398. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8399. if test yes = "$supports_anon_versioning"; then
  8400. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8401. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8402. echo "local: *; };" >> $output_objdir/$libname.ver~
  8403. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8404. fi
  8405. ;;
  8406. esac
  8407. else
  8408. ld_shlibs=no
  8409. fi
  8410. ;;
  8411. netbsd* | netbsdelf*-gnu)
  8412. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8413. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8414. wlarc=
  8415. else
  8416. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8417. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8418. fi
  8419. ;;
  8420. solaris*)
  8421. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8422. ld_shlibs=no
  8423. cat <<_LT_EOF 1>&2
  8424. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8425. *** create shared libraries on Solaris systems. Therefore, libtool
  8426. *** is disabling shared libraries support. We urge you to upgrade GNU
  8427. *** binutils to release 2.9.1 or newer. Another option is to modify
  8428. *** your PATH or compiler configuration so that the native linker is
  8429. *** used, and then restart.
  8430. _LT_EOF
  8431. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8432. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8433. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8434. else
  8435. ld_shlibs=no
  8436. fi
  8437. ;;
  8438. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8439. case `$LD -v 2>&1` in
  8440. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8441. ld_shlibs=no
  8442. cat <<_LT_EOF 1>&2
  8443. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8444. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8445. *** is disabling shared libraries support. We urge you to upgrade GNU
  8446. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8447. *** your PATH or compiler configuration so that the native linker is
  8448. *** used, and then restart.
  8449. _LT_EOF
  8450. ;;
  8451. *)
  8452. # For security reasons, it is highly recommended that you always
  8453. # use absolute paths for naming shared libraries, and exclude the
  8454. # DT_RUNPATH tag from executables and libraries. But doing so
  8455. # requires that you compile everything twice, which is a pain.
  8456. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8457. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8458. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8459. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8460. else
  8461. ld_shlibs=no
  8462. fi
  8463. ;;
  8464. esac
  8465. ;;
  8466. sunos4*)
  8467. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8468. wlarc=
  8469. hardcode_direct=yes
  8470. hardcode_shlibpath_var=no
  8471. ;;
  8472. *)
  8473. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8474. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8475. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8476. else
  8477. ld_shlibs=no
  8478. fi
  8479. ;;
  8480. esac
  8481. if test no = "$ld_shlibs"; then
  8482. runpath_var=
  8483. hardcode_libdir_flag_spec=
  8484. export_dynamic_flag_spec=
  8485. whole_archive_flag_spec=
  8486. fi
  8487. else
  8488. # PORTME fill in a description of your system's linker (not GNU ld)
  8489. case $host_os in
  8490. aix3*)
  8491. allow_undefined_flag=unsupported
  8492. always_export_symbols=yes
  8493. 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'
  8494. # Note: this linker hardcodes the directories in LIBPATH if there
  8495. # are no directories specified by -L.
  8496. hardcode_minus_L=yes
  8497. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8498. # Neither direct hardcoding nor static linking is supported with a
  8499. # broken collect2.
  8500. hardcode_direct=unsupported
  8501. fi
  8502. ;;
  8503. aix[4-9]*)
  8504. if test ia64 = "$host_cpu"; then
  8505. # On IA64, the linker does run time linking by default, so we don't
  8506. # have to do anything special.
  8507. aix_use_runtimelinking=no
  8508. exp_sym_flag='-Bexport'
  8509. no_entry_flag=
  8510. else
  8511. # If we're using GNU nm, then we don't want the "-C" option.
  8512. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8513. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8514. # weak defined symbols like other global defined symbols, whereas
  8515. # GNU nm marks them as "W".
  8516. # While the 'weak' keyword is ignored in the Export File, we need
  8517. # it in the Import File for the 'aix-soname' feature, so we have
  8518. # to replace the "-B" option with "-P" for AIX nm.
  8519. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8520. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  8521. else
  8522. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  8523. fi
  8524. aix_use_runtimelinking=no
  8525. # Test if we are trying to use run time linking or normal
  8526. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8527. # have runtime linking enabled, and use it for executables.
  8528. # For shared libraries, we enable/disable runtime linking
  8529. # depending on the kind of the shared library created -
  8530. # when "with_aix_soname,aix_use_runtimelinking" is:
  8531. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8532. # "aix,yes" lib.so shared, rtl:yes, for executables
  8533. # lib.a static archive
  8534. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8535. # lib.a(lib.so.V) shared, rtl:no, for executables
  8536. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8537. # lib.a(lib.so.V) shared, rtl:no
  8538. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8539. # lib.a static archive
  8540. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8541. for ld_flag in $LDFLAGS; do
  8542. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8543. aix_use_runtimelinking=yes
  8544. break
  8545. fi
  8546. done
  8547. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8548. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8549. # so we don't have lib.a shared libs to link our executables.
  8550. # We have to force runtime linking in this case.
  8551. aix_use_runtimelinking=yes
  8552. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8553. fi
  8554. ;;
  8555. esac
  8556. exp_sym_flag='-bexport'
  8557. no_entry_flag='-bnoentry'
  8558. fi
  8559. # When large executables or shared objects are built, AIX ld can
  8560. # have problems creating the table of contents. If linking a library
  8561. # or program results in "error TOC overflow" add -mminimal-toc to
  8562. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8563. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8564. archive_cmds=''
  8565. hardcode_direct=yes
  8566. hardcode_direct_absolute=yes
  8567. hardcode_libdir_separator=':'
  8568. link_all_deplibs=yes
  8569. file_list_spec='$wl-f,'
  8570. case $with_aix_soname,$aix_use_runtimelinking in
  8571. aix,*) ;; # traditional, no import file
  8572. svr4,* | *,yes) # use import file
  8573. # The Import File defines what to hardcode.
  8574. hardcode_direct=no
  8575. hardcode_direct_absolute=no
  8576. ;;
  8577. esac
  8578. if test yes = "$GCC"; then
  8579. case $host_os in aix4.[012]|aix4.[012].*)
  8580. # We only want to do this on AIX 4.2 and lower, the check
  8581. # below for broken collect2 doesn't work under 4.3+
  8582. collect2name=`$CC -print-prog-name=collect2`
  8583. if test -f "$collect2name" &&
  8584. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8585. then
  8586. # We have reworked collect2
  8587. :
  8588. else
  8589. # We have old collect2
  8590. hardcode_direct=unsupported
  8591. # It fails to find uninstalled libraries when the uninstalled
  8592. # path is not listed in the libpath. Setting hardcode_minus_L
  8593. # to unsupported forces relinking
  8594. hardcode_minus_L=yes
  8595. hardcode_libdir_flag_spec='-L$libdir'
  8596. hardcode_libdir_separator=
  8597. fi
  8598. ;;
  8599. esac
  8600. shared_flag='-shared'
  8601. if test yes = "$aix_use_runtimelinking"; then
  8602. shared_flag="$shared_flag "'$wl-G'
  8603. fi
  8604. # Need to ensure runtime linking is disabled for the traditional
  8605. # shared library, or the linker may eventually find shared libraries
  8606. # /with/ Import File - we do not want to mix them.
  8607. shared_flag_aix='-shared'
  8608. shared_flag_svr4='-shared $wl-G'
  8609. else
  8610. # not using gcc
  8611. if test ia64 = "$host_cpu"; then
  8612. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8613. # chokes on -Wl,-G. The following line is correct:
  8614. shared_flag='-G'
  8615. else
  8616. if test yes = "$aix_use_runtimelinking"; then
  8617. shared_flag='$wl-G'
  8618. else
  8619. shared_flag='$wl-bM:SRE'
  8620. fi
  8621. shared_flag_aix='$wl-bM:SRE'
  8622. shared_flag_svr4='$wl-G'
  8623. fi
  8624. fi
  8625. export_dynamic_flag_spec='$wl-bexpall'
  8626. # It seems that -bexpall does not export symbols beginning with
  8627. # underscore (_), so it is better to generate a list of symbols to export.
  8628. always_export_symbols=yes
  8629. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8630. # Warning - without using the other runtime loading flags (-brtl),
  8631. # -berok will link without error, but may produce a broken library.
  8632. allow_undefined_flag='-berok'
  8633. # Determine the default libpath from the value encoded in an
  8634. # empty executable.
  8635. if test set = "${lt_cv_aix_libpath+set}"; then
  8636. aix_libpath=$lt_cv_aix_libpath
  8637. else
  8638. if ${lt_cv_aix_libpath_+:} false; then :
  8639. $as_echo_n "(cached) " >&6
  8640. else
  8641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8642. /* end confdefs.h. */
  8643. int
  8644. main ()
  8645. {
  8646. ;
  8647. return 0;
  8648. }
  8649. _ACEOF
  8650. if ac_fn_c_try_link "$LINENO"; then :
  8651. lt_aix_libpath_sed='
  8652. /Import File Strings/,/^$/ {
  8653. /^0/ {
  8654. s/^0 *\([^ ]*\) *$/\1/
  8655. p
  8656. }
  8657. }'
  8658. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8659. # Check for a 64-bit object if we didn't find anything.
  8660. if test -z "$lt_cv_aix_libpath_"; then
  8661. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8662. fi
  8663. fi
  8664. rm -f core conftest.err conftest.$ac_objext \
  8665. conftest$ac_exeext conftest.$ac_ext
  8666. if test -z "$lt_cv_aix_libpath_"; then
  8667. lt_cv_aix_libpath_=/usr/lib:/lib
  8668. fi
  8669. fi
  8670. aix_libpath=$lt_cv_aix_libpath_
  8671. fi
  8672. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8673. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  8674. else
  8675. if test ia64 = "$host_cpu"; then
  8676. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8677. allow_undefined_flag="-z nodefs"
  8678. 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"
  8679. else
  8680. # Determine the default libpath from the value encoded in an
  8681. # empty executable.
  8682. if test set = "${lt_cv_aix_libpath+set}"; then
  8683. aix_libpath=$lt_cv_aix_libpath
  8684. else
  8685. if ${lt_cv_aix_libpath_+:} false; then :
  8686. $as_echo_n "(cached) " >&6
  8687. else
  8688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8689. /* end confdefs.h. */
  8690. int
  8691. main ()
  8692. {
  8693. ;
  8694. return 0;
  8695. }
  8696. _ACEOF
  8697. if ac_fn_c_try_link "$LINENO"; then :
  8698. lt_aix_libpath_sed='
  8699. /Import File Strings/,/^$/ {
  8700. /^0/ {
  8701. s/^0 *\([^ ]*\) *$/\1/
  8702. p
  8703. }
  8704. }'
  8705. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8706. # Check for a 64-bit object if we didn't find anything.
  8707. if test -z "$lt_cv_aix_libpath_"; then
  8708. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8709. fi
  8710. fi
  8711. rm -f core conftest.err conftest.$ac_objext \
  8712. conftest$ac_exeext conftest.$ac_ext
  8713. if test -z "$lt_cv_aix_libpath_"; then
  8714. lt_cv_aix_libpath_=/usr/lib:/lib
  8715. fi
  8716. fi
  8717. aix_libpath=$lt_cv_aix_libpath_
  8718. fi
  8719. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8720. # Warning - without using the other run time loading flags,
  8721. # -berok will link without error, but may produce a broken library.
  8722. no_undefined_flag=' $wl-bernotok'
  8723. allow_undefined_flag=' $wl-berok'
  8724. if test yes = "$with_gnu_ld"; then
  8725. # We only use this code for GNU lds that support --whole-archive.
  8726. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8727. else
  8728. # Exported symbols can be pulled into shared objects from archives
  8729. whole_archive_flag_spec='$convenience'
  8730. fi
  8731. archive_cmds_need_lc=yes
  8732. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8733. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8734. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8735. if test svr4 != "$with_aix_soname"; then
  8736. # This is similar to how AIX traditionally builds its shared libraries.
  8737. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  8738. fi
  8739. if test aix != "$with_aix_soname"; then
  8740. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  8741. else
  8742. # used by -dlpreopen to get the symbols
  8743. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8744. fi
  8745. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8746. fi
  8747. fi
  8748. ;;
  8749. amigaos*)
  8750. case $host_cpu in
  8751. powerpc)
  8752. # see comment about AmigaOS4 .so support
  8753. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8754. archive_expsym_cmds=''
  8755. ;;
  8756. m68k)
  8757. 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)'
  8758. hardcode_libdir_flag_spec='-L$libdir'
  8759. hardcode_minus_L=yes
  8760. ;;
  8761. esac
  8762. ;;
  8763. bsdi[45]*)
  8764. export_dynamic_flag_spec=-rdynamic
  8765. ;;
  8766. cygwin* | mingw* | pw32* | cegcc*)
  8767. # When not using gcc, we currently assume that we are using
  8768. # Microsoft Visual C++.
  8769. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8770. # no search path for DLLs.
  8771. case $cc_basename in
  8772. cl*)
  8773. # Native MSVC
  8774. hardcode_libdir_flag_spec=' '
  8775. allow_undefined_flag=unsupported
  8776. always_export_symbols=yes
  8777. file_list_spec='@'
  8778. # Tell ltmain to make .lib files, not .a files.
  8779. libext=lib
  8780. # Tell ltmain to make .dll files, not .so files.
  8781. shrext_cmds=.dll
  8782. # FIXME: Setting linknames here is a bad hack.
  8783. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  8784. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8785. cp "$export_symbols" "$output_objdir/$soname.def";
  8786. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  8787. else
  8788. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  8789. fi~
  8790. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8791. linknames='
  8792. # The linker will not automatically build a static lib if we build a DLL.
  8793. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8794. enable_shared_with_static_runtimes=yes
  8795. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8796. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8797. # Don't use ranlib
  8798. old_postinstall_cmds='chmod 644 $oldlib'
  8799. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8800. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8801. case $lt_outputfile in
  8802. *.exe|*.EXE) ;;
  8803. *)
  8804. lt_outputfile=$lt_outputfile.exe
  8805. lt_tool_outputfile=$lt_tool_outputfile.exe
  8806. ;;
  8807. esac~
  8808. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  8809. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8810. $RM "$lt_outputfile.manifest";
  8811. fi'
  8812. ;;
  8813. *)
  8814. # Assume MSVC wrapper
  8815. hardcode_libdir_flag_spec=' '
  8816. allow_undefined_flag=unsupported
  8817. # Tell ltmain to make .lib files, not .a files.
  8818. libext=lib
  8819. # Tell ltmain to make .dll files, not .so files.
  8820. shrext_cmds=.dll
  8821. # FIXME: Setting linknames here is a bad hack.
  8822. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8823. # The linker will automatically build a .lib file if we build a DLL.
  8824. old_archive_from_new_cmds='true'
  8825. # FIXME: Should let the user specify the lib program.
  8826. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8827. enable_shared_with_static_runtimes=yes
  8828. ;;
  8829. esac
  8830. ;;
  8831. darwin* | rhapsody*)
  8832. archive_cmds_need_lc=no
  8833. hardcode_direct=no
  8834. hardcode_automatic=yes
  8835. hardcode_shlibpath_var=unsupported
  8836. if test yes = "$lt_cv_ld_force_load"; then
  8837. 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\"`'
  8838. else
  8839. whole_archive_flag_spec=''
  8840. fi
  8841. link_all_deplibs=yes
  8842. allow_undefined_flag=$_lt_dar_allow_undefined
  8843. case $cc_basename in
  8844. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  8845. *) _lt_dar_can_shared=$GCC ;;
  8846. esac
  8847. if test yes = "$_lt_dar_can_shared"; then
  8848. output_verbose_link_cmd=func_echo_all
  8849. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  8850. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  8851. 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"
  8852. 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"
  8853. else
  8854. ld_shlibs=no
  8855. fi
  8856. ;;
  8857. dgux*)
  8858. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8859. hardcode_libdir_flag_spec='-L$libdir'
  8860. hardcode_shlibpath_var=no
  8861. ;;
  8862. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8863. # support. Future versions do this automatically, but an explicit c++rt0.o
  8864. # does not break anything, and helps significantly (at the cost of a little
  8865. # extra space).
  8866. freebsd2.2*)
  8867. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8868. hardcode_libdir_flag_spec='-R$libdir'
  8869. hardcode_direct=yes
  8870. hardcode_shlibpath_var=no
  8871. ;;
  8872. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8873. freebsd2.*)
  8874. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8875. hardcode_direct=yes
  8876. hardcode_minus_L=yes
  8877. hardcode_shlibpath_var=no
  8878. ;;
  8879. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8880. freebsd* | dragonfly*)
  8881. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8882. hardcode_libdir_flag_spec='-R$libdir'
  8883. hardcode_direct=yes
  8884. hardcode_shlibpath_var=no
  8885. ;;
  8886. hpux9*)
  8887. if test yes = "$GCC"; then
  8888. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8889. else
  8890. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8891. fi
  8892. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8893. hardcode_libdir_separator=:
  8894. hardcode_direct=yes
  8895. # hardcode_minus_L: Not really in the search PATH,
  8896. # but as the default location of the library.
  8897. hardcode_minus_L=yes
  8898. export_dynamic_flag_spec='$wl-E'
  8899. ;;
  8900. hpux10*)
  8901. if test yes,no = "$GCC,$with_gnu_ld"; then
  8902. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8903. else
  8904. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8905. fi
  8906. if test no = "$with_gnu_ld"; then
  8907. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8908. hardcode_libdir_separator=:
  8909. hardcode_direct=yes
  8910. hardcode_direct_absolute=yes
  8911. export_dynamic_flag_spec='$wl-E'
  8912. # hardcode_minus_L: Not really in the search PATH,
  8913. # but as the default location of the library.
  8914. hardcode_minus_L=yes
  8915. fi
  8916. ;;
  8917. hpux11*)
  8918. if test yes,no = "$GCC,$with_gnu_ld"; then
  8919. case $host_cpu in
  8920. hppa*64*)
  8921. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8922. ;;
  8923. ia64*)
  8924. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8925. ;;
  8926. *)
  8927. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8928. ;;
  8929. esac
  8930. else
  8931. case $host_cpu in
  8932. hppa*64*)
  8933. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8934. ;;
  8935. ia64*)
  8936. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8937. ;;
  8938. *)
  8939. # Older versions of the 11.00 compiler do not understand -b yet
  8940. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8942. $as_echo_n "checking if $CC understands -b... " >&6; }
  8943. if ${lt_cv_prog_compiler__b+:} false; then :
  8944. $as_echo_n "(cached) " >&6
  8945. else
  8946. lt_cv_prog_compiler__b=no
  8947. save_LDFLAGS=$LDFLAGS
  8948. LDFLAGS="$LDFLAGS -b"
  8949. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8950. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8951. # The linker can only warn and ignore the option if not recognized
  8952. # So say no if there are warnings
  8953. if test -s conftest.err; then
  8954. # Append any errors to the config.log.
  8955. cat conftest.err 1>&5
  8956. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8957. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8958. if diff conftest.exp conftest.er2 >/dev/null; then
  8959. lt_cv_prog_compiler__b=yes
  8960. fi
  8961. else
  8962. lt_cv_prog_compiler__b=yes
  8963. fi
  8964. fi
  8965. $RM -r conftest*
  8966. LDFLAGS=$save_LDFLAGS
  8967. fi
  8968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8969. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8970. if test yes = "$lt_cv_prog_compiler__b"; then
  8971. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8972. else
  8973. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8974. fi
  8975. ;;
  8976. esac
  8977. fi
  8978. if test no = "$with_gnu_ld"; then
  8979. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8980. hardcode_libdir_separator=:
  8981. case $host_cpu in
  8982. hppa*64*|ia64*)
  8983. hardcode_direct=no
  8984. hardcode_shlibpath_var=no
  8985. ;;
  8986. *)
  8987. hardcode_direct=yes
  8988. hardcode_direct_absolute=yes
  8989. export_dynamic_flag_spec='$wl-E'
  8990. # hardcode_minus_L: Not really in the search PATH,
  8991. # but as the default location of the library.
  8992. hardcode_minus_L=yes
  8993. ;;
  8994. esac
  8995. fi
  8996. ;;
  8997. irix5* | irix6* | nonstopux*)
  8998. if test yes = "$GCC"; then
  8999. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9000. # Try to use the -exported_symbol ld option, if it does not
  9001. # work, assume that -exports_file does not work either and
  9002. # implicitly export all symbols.
  9003. # This should be the same for all languages, so no per-tag cache variable.
  9004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9005. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9006. if ${lt_cv_irix_exported_symbol+:} false; then :
  9007. $as_echo_n "(cached) " >&6
  9008. else
  9009. save_LDFLAGS=$LDFLAGS
  9010. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9012. /* end confdefs.h. */
  9013. int foo (void) { return 0; }
  9014. _ACEOF
  9015. if ac_fn_c_try_link "$LINENO"; then :
  9016. lt_cv_irix_exported_symbol=yes
  9017. else
  9018. lt_cv_irix_exported_symbol=no
  9019. fi
  9020. rm -f core conftest.err conftest.$ac_objext \
  9021. conftest$ac_exeext conftest.$ac_ext
  9022. LDFLAGS=$save_LDFLAGS
  9023. fi
  9024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9025. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9026. if test yes = "$lt_cv_irix_exported_symbol"; then
  9027. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
  9028. fi
  9029. link_all_deplibs=no
  9030. else
  9031. 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'
  9032. 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'
  9033. fi
  9034. archive_cmds_need_lc='no'
  9035. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9036. hardcode_libdir_separator=:
  9037. inherit_rpath=yes
  9038. link_all_deplibs=yes
  9039. ;;
  9040. linux*)
  9041. case $cc_basename in
  9042. tcc*)
  9043. # Fabrice Bellard et al's Tiny C Compiler
  9044. ld_shlibs=yes
  9045. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9046. ;;
  9047. esac
  9048. ;;
  9049. netbsd* | netbsdelf*-gnu)
  9050. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9051. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9052. else
  9053. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9054. fi
  9055. hardcode_libdir_flag_spec='-R$libdir'
  9056. hardcode_direct=yes
  9057. hardcode_shlibpath_var=no
  9058. ;;
  9059. newsos6)
  9060. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9061. hardcode_direct=yes
  9062. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9063. hardcode_libdir_separator=:
  9064. hardcode_shlibpath_var=no
  9065. ;;
  9066. *nto* | *qnx*)
  9067. ;;
  9068. openbsd* | bitrig*)
  9069. if test -f /usr/libexec/ld.so; then
  9070. hardcode_direct=yes
  9071. hardcode_shlibpath_var=no
  9072. hardcode_direct_absolute=yes
  9073. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9074. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9075. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9076. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9077. export_dynamic_flag_spec='$wl-E'
  9078. else
  9079. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9080. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9081. fi
  9082. else
  9083. ld_shlibs=no
  9084. fi
  9085. ;;
  9086. os2*)
  9087. hardcode_libdir_flag_spec='-L$libdir'
  9088. hardcode_minus_L=yes
  9089. allow_undefined_flag=unsupported
  9090. shrext_cmds=.dll
  9091. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9092. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9093. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9094. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9095. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9096. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9097. emximp -o $lib $output_objdir/$libname.def'
  9098. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9099. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9100. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9101. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9102. prefix_cmds="$SED"~
  9103. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9104. prefix_cmds="$prefix_cmds -e 1d";
  9105. fi~
  9106. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9107. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9108. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9109. emximp -o $lib $output_objdir/$libname.def'
  9110. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9111. enable_shared_with_static_runtimes=yes
  9112. ;;
  9113. osf3*)
  9114. if test yes = "$GCC"; then
  9115. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9116. 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'
  9117. else
  9118. allow_undefined_flag=' -expect_unresolved \*'
  9119. 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'
  9120. fi
  9121. archive_cmds_need_lc='no'
  9122. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9123. hardcode_libdir_separator=:
  9124. ;;
  9125. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9126. if test yes = "$GCC"; then
  9127. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9128. archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9129. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9130. else
  9131. allow_undefined_flag=' -expect_unresolved \*'
  9132. 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'
  9133. 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~
  9134. $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'
  9135. # Both c and cxx compiler support -rpath directly
  9136. hardcode_libdir_flag_spec='-rpath $libdir'
  9137. fi
  9138. archive_cmds_need_lc='no'
  9139. hardcode_libdir_separator=:
  9140. ;;
  9141. solaris*)
  9142. no_undefined_flag=' -z defs'
  9143. if test yes = "$GCC"; then
  9144. wlarc='$wl'
  9145. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9146. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9147. $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9148. else
  9149. case `$CC -V 2>&1` in
  9150. *"Compilers 5.0"*)
  9151. wlarc=''
  9152. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9153. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9154. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9155. ;;
  9156. *)
  9157. wlarc='$wl'
  9158. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9159. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9160. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9161. ;;
  9162. esac
  9163. fi
  9164. hardcode_libdir_flag_spec='-R$libdir'
  9165. hardcode_shlibpath_var=no
  9166. case $host_os in
  9167. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9168. *)
  9169. # The compiler driver will combine and reorder linker options,
  9170. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9171. # but is careful enough not to reorder.
  9172. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9173. if test yes = "$GCC"; then
  9174. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9175. else
  9176. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9177. fi
  9178. ;;
  9179. esac
  9180. link_all_deplibs=yes
  9181. ;;
  9182. sunos4*)
  9183. if test sequent = "$host_vendor"; then
  9184. # Use $CC to link under sequent, because it throws in some extra .o
  9185. # files that make .init and .fini sections work.
  9186. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9187. else
  9188. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9189. fi
  9190. hardcode_libdir_flag_spec='-L$libdir'
  9191. hardcode_direct=yes
  9192. hardcode_minus_L=yes
  9193. hardcode_shlibpath_var=no
  9194. ;;
  9195. sysv4)
  9196. case $host_vendor in
  9197. sni)
  9198. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9199. hardcode_direct=yes # is this really true???
  9200. ;;
  9201. siemens)
  9202. ## LD is ld it makes a PLAMLIB
  9203. ## CC just makes a GrossModule.
  9204. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9205. reload_cmds='$CC -r -o $output$reload_objs'
  9206. hardcode_direct=no
  9207. ;;
  9208. motorola)
  9209. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9210. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9211. ;;
  9212. esac
  9213. runpath_var='LD_RUN_PATH'
  9214. hardcode_shlibpath_var=no
  9215. ;;
  9216. sysv4.3*)
  9217. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9218. hardcode_shlibpath_var=no
  9219. export_dynamic_flag_spec='-Bexport'
  9220. ;;
  9221. sysv4*MP*)
  9222. if test -d /usr/nec; then
  9223. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9224. hardcode_shlibpath_var=no
  9225. runpath_var=LD_RUN_PATH
  9226. hardcode_runpath_var=yes
  9227. ld_shlibs=yes
  9228. fi
  9229. ;;
  9230. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9231. no_undefined_flag='$wl-z,text'
  9232. archive_cmds_need_lc=no
  9233. hardcode_shlibpath_var=no
  9234. runpath_var='LD_RUN_PATH'
  9235. if test yes = "$GCC"; then
  9236. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9237. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9238. else
  9239. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9240. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9241. fi
  9242. ;;
  9243. sysv5* | sco3.2v5* | sco5v6*)
  9244. # Note: We CANNOT use -z defs as we might desire, because we do not
  9245. # link with -lc, and that would cause any symbols used from libc to
  9246. # always be unresolved, which means just about no library would
  9247. # ever link correctly. If we're not using GNU ld we use -z text
  9248. # though, which does catch some bad symbols but isn't as heavy-handed
  9249. # as -z defs.
  9250. no_undefined_flag='$wl-z,text'
  9251. allow_undefined_flag='$wl-z,nodefs'
  9252. archive_cmds_need_lc=no
  9253. hardcode_shlibpath_var=no
  9254. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9255. hardcode_libdir_separator=':'
  9256. link_all_deplibs=yes
  9257. export_dynamic_flag_spec='$wl-Bexport'
  9258. runpath_var='LD_RUN_PATH'
  9259. if test yes = "$GCC"; then
  9260. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9261. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9262. else
  9263. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9264. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9265. fi
  9266. ;;
  9267. uts4*)
  9268. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9269. hardcode_libdir_flag_spec='-L$libdir'
  9270. hardcode_shlibpath_var=no
  9271. ;;
  9272. *)
  9273. ld_shlibs=no
  9274. ;;
  9275. esac
  9276. if test sni = "$host_vendor"; then
  9277. case $host in
  9278. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9279. export_dynamic_flag_spec='$wl-Blargedynsym'
  9280. ;;
  9281. esac
  9282. fi
  9283. fi
  9284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9285. $as_echo "$ld_shlibs" >&6; }
  9286. test no = "$ld_shlibs" && can_build_shared=no
  9287. with_gnu_ld=$with_gnu_ld
  9288. #
  9289. # Do we need to explicitly link libc?
  9290. #
  9291. case "x$archive_cmds_need_lc" in
  9292. x|xyes)
  9293. # Assume -lc should be added
  9294. archive_cmds_need_lc=yes
  9295. if test yes,yes = "$GCC,$enable_shared"; then
  9296. case $archive_cmds in
  9297. *'~'*)
  9298. # FIXME: we may have to deal with multi-command sequences.
  9299. ;;
  9300. '$CC '*)
  9301. # Test whether the compiler implicitly links with -lc since on some
  9302. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9303. # to ld, don't add -lc before -lgcc.
  9304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9305. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9306. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9307. $as_echo_n "(cached) " >&6
  9308. else
  9309. $RM conftest*
  9310. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9311. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9312. (eval $ac_compile) 2>&5
  9313. ac_status=$?
  9314. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9315. test $ac_status = 0; } 2>conftest.err; then
  9316. soname=conftest
  9317. lib=conftest
  9318. libobjs=conftest.$ac_objext
  9319. deplibs=
  9320. wl=$lt_prog_compiler_wl
  9321. pic_flag=$lt_prog_compiler_pic
  9322. compiler_flags=-v
  9323. linker_flags=-v
  9324. verstring=
  9325. output_objdir=.
  9326. libname=conftest
  9327. lt_save_allow_undefined_flag=$allow_undefined_flag
  9328. allow_undefined_flag=
  9329. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9330. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9331. ac_status=$?
  9332. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9333. test $ac_status = 0; }
  9334. then
  9335. lt_cv_archive_cmds_need_lc=no
  9336. else
  9337. lt_cv_archive_cmds_need_lc=yes
  9338. fi
  9339. allow_undefined_flag=$lt_save_allow_undefined_flag
  9340. else
  9341. cat conftest.err 1>&5
  9342. fi
  9343. $RM conftest*
  9344. fi
  9345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9346. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9347. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9348. ;;
  9349. esac
  9350. fi
  9351. ;;
  9352. esac
  9353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9354. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9355. if test yes = "$GCC"; then
  9356. case $host_os in
  9357. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9358. *) lt_awk_arg='/^libraries:/' ;;
  9359. esac
  9360. case $host_os in
  9361. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9362. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9363. esac
  9364. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9365. case $lt_search_path_spec in
  9366. *\;*)
  9367. # if the path contains ";" then we assume it to be the separator
  9368. # otherwise default to the standard path separator (i.e. ":") - it is
  9369. # assumed that no part of a normal pathname contains ";" but that should
  9370. # okay in the real world where ";" in dirpaths is itself problematic.
  9371. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9372. ;;
  9373. *)
  9374. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9375. ;;
  9376. esac
  9377. # Ok, now we have the path, separated by spaces, we can step through it
  9378. # and add multilib dir if necessary...
  9379. lt_tmp_lt_search_path_spec=
  9380. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9381. # ...but if some path component already ends with the multilib dir we assume
  9382. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9383. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9384. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9385. lt_multi_os_dir=
  9386. ;;
  9387. esac
  9388. for lt_sys_path in $lt_search_path_spec; do
  9389. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9390. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9391. elif test -n "$lt_multi_os_dir"; then
  9392. test -d "$lt_sys_path" && \
  9393. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9394. fi
  9395. done
  9396. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9397. BEGIN {RS = " "; FS = "/|\n";} {
  9398. lt_foo = "";
  9399. lt_count = 0;
  9400. for (lt_i = NF; lt_i > 0; lt_i--) {
  9401. if ($lt_i != "" && $lt_i != ".") {
  9402. if ($lt_i == "..") {
  9403. lt_count++;
  9404. } else {
  9405. if (lt_count == 0) {
  9406. lt_foo = "/" $lt_i lt_foo;
  9407. } else {
  9408. lt_count--;
  9409. }
  9410. }
  9411. }
  9412. }
  9413. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9414. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9415. }'`
  9416. # AWK program above erroneously prepends '/' to C:/dos/paths
  9417. # for these hosts.
  9418. case $host_os in
  9419. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9420. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9421. esac
  9422. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9423. else
  9424. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9425. fi
  9426. library_names_spec=
  9427. libname_spec='lib$name'
  9428. soname_spec=
  9429. shrext_cmds=.so
  9430. postinstall_cmds=
  9431. postuninstall_cmds=
  9432. finish_cmds=
  9433. finish_eval=
  9434. shlibpath_var=
  9435. shlibpath_overrides_runpath=unknown
  9436. version_type=none
  9437. dynamic_linker="$host_os ld.so"
  9438. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9439. need_lib_prefix=unknown
  9440. hardcode_into_libs=no
  9441. # when you set need_version to no, make sure it does not cause -set_version
  9442. # flags to be left without arguments
  9443. need_version=unknown
  9444. case $host_os in
  9445. aix3*)
  9446. version_type=linux # correct to gnu/linux during the next big refactor
  9447. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9448. shlibpath_var=LIBPATH
  9449. # AIX 3 has no versioning support, so we append a major version to the name.
  9450. soname_spec='$libname$release$shared_ext$major'
  9451. ;;
  9452. aix[4-9]*)
  9453. version_type=linux # correct to gnu/linux during the next big refactor
  9454. need_lib_prefix=no
  9455. need_version=no
  9456. hardcode_into_libs=yes
  9457. if test ia64 = "$host_cpu"; then
  9458. # AIX 5 supports IA64
  9459. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9460. shlibpath_var=LD_LIBRARY_PATH
  9461. else
  9462. # With GCC up to 2.95.x, collect2 would create an import file
  9463. # for dependence libraries. The import file would start with
  9464. # the line '#! .'. This would cause the generated library to
  9465. # depend on '.', always an invalid library. This was fixed in
  9466. # development snapshots of GCC prior to 3.0.
  9467. case $host_os in
  9468. aix4 | aix4.[01] | aix4.[01].*)
  9469. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9470. echo ' yes '
  9471. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9472. :
  9473. else
  9474. can_build_shared=no
  9475. fi
  9476. ;;
  9477. esac
  9478. # Using Import Files as archive members, it is possible to support
  9479. # filename-based versioning of shared library archives on AIX. While
  9480. # this would work for both with and without runtime linking, it will
  9481. # prevent static linking of such archives. So we do filename-based
  9482. # shared library versioning with .so extension only, which is used
  9483. # when both runtime linking and shared linking is enabled.
  9484. # Unfortunately, runtime linking may impact performance, so we do
  9485. # not want this to be the default eventually. Also, we use the
  9486. # versioned .so libs for executables only if there is the -brtl
  9487. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9488. # To allow for filename-based versioning support, we need to create
  9489. # libNAME.so.V as an archive file, containing:
  9490. # *) an Import File, referring to the versioned filename of the
  9491. # archive as well as the shared archive member, telling the
  9492. # bitwidth (32 or 64) of that shared object, and providing the
  9493. # list of exported symbols of that shared object, eventually
  9494. # decorated with the 'weak' keyword
  9495. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9496. # it being seen by the linker.
  9497. # At run time we better use the real file rather than another symlink,
  9498. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9499. case $with_aix_soname,$aix_use_runtimelinking in
  9500. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9501. # soname into executable. Probably we can add versioning support to
  9502. # collect2, so additional links can be useful in future.
  9503. aix,yes) # traditional libtool
  9504. dynamic_linker='AIX unversionable lib.so'
  9505. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9506. # instead of lib<name>.a to let people know that these are not
  9507. # typical AIX shared libraries.
  9508. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9509. ;;
  9510. aix,no) # traditional AIX only
  9511. dynamic_linker='AIX lib.a(lib.so.V)'
  9512. # We preserve .a as extension for shared libraries through AIX4.2
  9513. # and later when we are not doing run time linking.
  9514. library_names_spec='$libname$release.a $libname.a'
  9515. soname_spec='$libname$release$shared_ext$major'
  9516. ;;
  9517. svr4,*) # full svr4 only
  9518. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9519. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9520. # We do not specify a path in Import Files, so LIBPATH fires.
  9521. shlibpath_overrides_runpath=yes
  9522. ;;
  9523. *,yes) # both, prefer svr4
  9524. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9525. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9526. # unpreferred sharedlib libNAME.a needs extra handling
  9527. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  9528. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  9529. # We do not specify a path in Import Files, so LIBPATH fires.
  9530. shlibpath_overrides_runpath=yes
  9531. ;;
  9532. *,no) # both, prefer aix
  9533. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9534. library_names_spec='$libname$release.a $libname.a'
  9535. soname_spec='$libname$release$shared_ext$major'
  9536. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9537. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  9538. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  9539. ;;
  9540. esac
  9541. shlibpath_var=LIBPATH
  9542. fi
  9543. ;;
  9544. amigaos*)
  9545. case $host_cpu in
  9546. powerpc)
  9547. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9548. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9549. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9550. ;;
  9551. m68k)
  9552. library_names_spec='$libname.ixlibrary $libname.a'
  9553. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9554. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9555. ;;
  9556. esac
  9557. ;;
  9558. beos*)
  9559. library_names_spec='$libname$shared_ext'
  9560. dynamic_linker="$host_os ld.so"
  9561. shlibpath_var=LIBRARY_PATH
  9562. ;;
  9563. bsdi[45]*)
  9564. version_type=linux # correct to gnu/linux during the next big refactor
  9565. need_version=no
  9566. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9567. soname_spec='$libname$release$shared_ext$major'
  9568. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9569. shlibpath_var=LD_LIBRARY_PATH
  9570. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9571. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9572. # the default ld.so.conf also contains /usr/contrib/lib and
  9573. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9574. # libtool to hard-code these into programs
  9575. ;;
  9576. cygwin* | mingw* | pw32* | cegcc*)
  9577. version_type=windows
  9578. shrext_cmds=.dll
  9579. need_version=no
  9580. need_lib_prefix=no
  9581. case $GCC,$cc_basename in
  9582. yes,*)
  9583. # gcc
  9584. library_names_spec='$libname.dll.a'
  9585. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9586. postinstall_cmds='base_file=`basename \$file`~
  9587. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9588. dldir=$destdir/`dirname \$dlpath`~
  9589. test -d \$dldir || mkdir -p \$dldir~
  9590. $install_prog $dir/$dlname \$dldir/$dlname~
  9591. chmod a+x \$dldir/$dlname~
  9592. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9593. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9594. fi'
  9595. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9596. dlpath=$dir/\$dldll~
  9597. $RM \$dlpath'
  9598. shlibpath_overrides_runpath=yes
  9599. case $host_os in
  9600. cygwin*)
  9601. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9602. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9603. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9604. ;;
  9605. mingw* | cegcc*)
  9606. # MinGW DLLs use traditional 'lib' prefix
  9607. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9608. ;;
  9609. pw32*)
  9610. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9611. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9612. ;;
  9613. esac
  9614. dynamic_linker='Win32 ld.exe'
  9615. ;;
  9616. *,cl*)
  9617. # Native MSVC
  9618. libname_spec='$name'
  9619. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9620. library_names_spec='$libname.dll.lib'
  9621. case $build_os in
  9622. mingw*)
  9623. sys_lib_search_path_spec=
  9624. lt_save_ifs=$IFS
  9625. IFS=';'
  9626. for lt_path in $LIB
  9627. do
  9628. IFS=$lt_save_ifs
  9629. # Let DOS variable expansion print the short 8.3 style file name.
  9630. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9631. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9632. done
  9633. IFS=$lt_save_ifs
  9634. # Convert to MSYS style.
  9635. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9636. ;;
  9637. cygwin*)
  9638. # Convert to unix form, then to dos form, then back to unix form
  9639. # but this time dos style (no spaces!) so that the unix form looks
  9640. # like /cygdrive/c/PROGRA~1:/cygdr...
  9641. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9642. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9643. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9644. ;;
  9645. *)
  9646. sys_lib_search_path_spec=$LIB
  9647. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9648. # It is most probably a Windows format PATH.
  9649. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9650. else
  9651. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9652. fi
  9653. # FIXME: find the short name or the path components, as spaces are
  9654. # common. (e.g. "Program Files" -> "PROGRA~1")
  9655. ;;
  9656. esac
  9657. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9658. postinstall_cmds='base_file=`basename \$file`~
  9659. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9660. dldir=$destdir/`dirname \$dlpath`~
  9661. test -d \$dldir || mkdir -p \$dldir~
  9662. $install_prog $dir/$dlname \$dldir/$dlname'
  9663. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9664. dlpath=$dir/\$dldll~
  9665. $RM \$dlpath'
  9666. shlibpath_overrides_runpath=yes
  9667. dynamic_linker='Win32 link.exe'
  9668. ;;
  9669. *)
  9670. # Assume MSVC wrapper
  9671. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9672. dynamic_linker='Win32 ld.exe'
  9673. ;;
  9674. esac
  9675. # FIXME: first we should search . and the directory the executable is in
  9676. shlibpath_var=PATH
  9677. ;;
  9678. darwin* | rhapsody*)
  9679. dynamic_linker="$host_os dyld"
  9680. version_type=darwin
  9681. need_lib_prefix=no
  9682. need_version=no
  9683. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  9684. soname_spec='$libname$release$major$shared_ext'
  9685. shlibpath_overrides_runpath=yes
  9686. shlibpath_var=DYLD_LIBRARY_PATH
  9687. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9688. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9689. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9690. ;;
  9691. dgux*)
  9692. version_type=linux # correct to gnu/linux during the next big refactor
  9693. need_lib_prefix=no
  9694. need_version=no
  9695. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9696. soname_spec='$libname$release$shared_ext$major'
  9697. shlibpath_var=LD_LIBRARY_PATH
  9698. ;;
  9699. freebsd* | dragonfly*)
  9700. # DragonFly does not have aout. When/if they implement a new
  9701. # versioning mechanism, adjust this.
  9702. if test -x /usr/bin/objformat; then
  9703. objformat=`/usr/bin/objformat`
  9704. else
  9705. case $host_os in
  9706. freebsd[23].*) objformat=aout ;;
  9707. *) objformat=elf ;;
  9708. esac
  9709. fi
  9710. version_type=freebsd-$objformat
  9711. case $version_type in
  9712. freebsd-elf*)
  9713. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9714. soname_spec='$libname$release$shared_ext$major'
  9715. need_version=no
  9716. need_lib_prefix=no
  9717. ;;
  9718. freebsd-*)
  9719. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9720. need_version=yes
  9721. ;;
  9722. esac
  9723. shlibpath_var=LD_LIBRARY_PATH
  9724. case $host_os in
  9725. freebsd2.*)
  9726. shlibpath_overrides_runpath=yes
  9727. ;;
  9728. freebsd3.[01]* | freebsdelf3.[01]*)
  9729. shlibpath_overrides_runpath=yes
  9730. hardcode_into_libs=yes
  9731. ;;
  9732. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9733. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9734. shlibpath_overrides_runpath=no
  9735. hardcode_into_libs=yes
  9736. ;;
  9737. *) # from 4.6 on, and DragonFly
  9738. shlibpath_overrides_runpath=yes
  9739. hardcode_into_libs=yes
  9740. ;;
  9741. esac
  9742. ;;
  9743. haiku*)
  9744. version_type=linux # correct to gnu/linux during the next big refactor
  9745. need_lib_prefix=no
  9746. need_version=no
  9747. dynamic_linker="$host_os runtime_loader"
  9748. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9749. soname_spec='$libname$release$shared_ext$major'
  9750. shlibpath_var=LIBRARY_PATH
  9751. shlibpath_overrides_runpath=no
  9752. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9753. hardcode_into_libs=yes
  9754. ;;
  9755. hpux9* | hpux10* | hpux11*)
  9756. # Give a soname corresponding to the major version so that dld.sl refuses to
  9757. # link against other versions.
  9758. version_type=sunos
  9759. need_lib_prefix=no
  9760. need_version=no
  9761. case $host_cpu in
  9762. ia64*)
  9763. shrext_cmds='.so'
  9764. hardcode_into_libs=yes
  9765. dynamic_linker="$host_os dld.so"
  9766. shlibpath_var=LD_LIBRARY_PATH
  9767. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9768. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9769. soname_spec='$libname$release$shared_ext$major'
  9770. if test 32 = "$HPUX_IA64_MODE"; then
  9771. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9772. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  9773. else
  9774. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9775. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  9776. fi
  9777. ;;
  9778. hppa*64*)
  9779. shrext_cmds='.sl'
  9780. hardcode_into_libs=yes
  9781. dynamic_linker="$host_os dld.sl"
  9782. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9783. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9784. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9785. soname_spec='$libname$release$shared_ext$major'
  9786. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9787. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9788. ;;
  9789. *)
  9790. shrext_cmds='.sl'
  9791. dynamic_linker="$host_os dld.sl"
  9792. shlibpath_var=SHLIB_PATH
  9793. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9794. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9795. soname_spec='$libname$release$shared_ext$major'
  9796. ;;
  9797. esac
  9798. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9799. postinstall_cmds='chmod 555 $lib'
  9800. # or fails outright, so override atomically:
  9801. install_override_mode=555
  9802. ;;
  9803. interix[3-9]*)
  9804. version_type=linux # correct to gnu/linux during the next big refactor
  9805. need_lib_prefix=no
  9806. need_version=no
  9807. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9808. soname_spec='$libname$release$shared_ext$major'
  9809. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9810. shlibpath_var=LD_LIBRARY_PATH
  9811. shlibpath_overrides_runpath=no
  9812. hardcode_into_libs=yes
  9813. ;;
  9814. irix5* | irix6* | nonstopux*)
  9815. case $host_os in
  9816. nonstopux*) version_type=nonstopux ;;
  9817. *)
  9818. if test yes = "$lt_cv_prog_gnu_ld"; then
  9819. version_type=linux # correct to gnu/linux during the next big refactor
  9820. else
  9821. version_type=irix
  9822. fi ;;
  9823. esac
  9824. need_lib_prefix=no
  9825. need_version=no
  9826. soname_spec='$libname$release$shared_ext$major'
  9827. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  9828. case $host_os in
  9829. irix5* | nonstopux*)
  9830. libsuff= shlibsuff=
  9831. ;;
  9832. *)
  9833. case $LD in # libtool.m4 will add one of these switches to LD
  9834. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9835. libsuff= shlibsuff= libmagic=32-bit;;
  9836. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9837. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9838. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9839. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9840. *) libsuff= shlibsuff= libmagic=never-match;;
  9841. esac
  9842. ;;
  9843. esac
  9844. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9845. shlibpath_overrides_runpath=no
  9846. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  9847. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  9848. hardcode_into_libs=yes
  9849. ;;
  9850. # No shared lib support for Linux oldld, aout, or coff.
  9851. linux*oldld* | linux*aout* | linux*coff*)
  9852. dynamic_linker=no
  9853. ;;
  9854. linux*android*)
  9855. version_type=none # Android doesn't support versioned libraries.
  9856. need_lib_prefix=no
  9857. need_version=no
  9858. library_names_spec='$libname$release$shared_ext'
  9859. soname_spec='$libname$release$shared_ext'
  9860. finish_cmds=
  9861. shlibpath_var=LD_LIBRARY_PATH
  9862. shlibpath_overrides_runpath=yes
  9863. # This implies no fast_install, which is unacceptable.
  9864. # Some rework will be needed to allow for fast_install
  9865. # before this can be enabled.
  9866. hardcode_into_libs=yes
  9867. dynamic_linker='Android linker'
  9868. # Don't embed -rpath directories since the linker doesn't support them.
  9869. hardcode_libdir_flag_spec='-L$libdir'
  9870. ;;
  9871. # This must be glibc/ELF.
  9872. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9873. version_type=linux # correct to gnu/linux during the next big refactor
  9874. need_lib_prefix=no
  9875. need_version=no
  9876. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9877. soname_spec='$libname$release$shared_ext$major'
  9878. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9879. shlibpath_var=LD_LIBRARY_PATH
  9880. shlibpath_overrides_runpath=no
  9881. # Some binutils ld are patched to set DT_RUNPATH
  9882. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9883. $as_echo_n "(cached) " >&6
  9884. else
  9885. lt_cv_shlibpath_overrides_runpath=no
  9886. save_LDFLAGS=$LDFLAGS
  9887. save_libdir=$libdir
  9888. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9889. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9891. /* end confdefs.h. */
  9892. int
  9893. main ()
  9894. {
  9895. ;
  9896. return 0;
  9897. }
  9898. _ACEOF
  9899. if ac_fn_c_try_link "$LINENO"; then :
  9900. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9901. lt_cv_shlibpath_overrides_runpath=yes
  9902. fi
  9903. fi
  9904. rm -f core conftest.err conftest.$ac_objext \
  9905. conftest$ac_exeext conftest.$ac_ext
  9906. LDFLAGS=$save_LDFLAGS
  9907. libdir=$save_libdir
  9908. fi
  9909. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9910. # This implies no fast_install, which is unacceptable.
  9911. # Some rework will be needed to allow for fast_install
  9912. # before this can be enabled.
  9913. hardcode_into_libs=yes
  9914. # Ideally, we could use ldconfig to report *all* directores which are
  9915. # searched for libraries, however this is still not possible. Aside from not
  9916. # being certain /sbin/ldconfig is available, command
  9917. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  9918. # even though it is searched at run-time. Try to do the best guess by
  9919. # appending ld.so.conf contents (and includes) to the search path.
  9920. if test -f /etc/ld.so.conf; then
  9921. 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' ' '`
  9922. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9923. fi
  9924. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9925. # powerpc, because MkLinux only supported shared libraries with the
  9926. # GNU dynamic linker. Since this was broken with cross compilers,
  9927. # most powerpc-linux boxes support dynamic linking these days and
  9928. # people can always --disable-shared, the test was removed, and we
  9929. # assume the GNU/Linux dynamic linker is in use.
  9930. dynamic_linker='GNU/Linux ld.so'
  9931. ;;
  9932. netbsdelf*-gnu)
  9933. version_type=linux
  9934. need_lib_prefix=no
  9935. need_version=no
  9936. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9937. soname_spec='${libname}${release}${shared_ext}$major'
  9938. shlibpath_var=LD_LIBRARY_PATH
  9939. shlibpath_overrides_runpath=no
  9940. hardcode_into_libs=yes
  9941. dynamic_linker='NetBSD ld.elf_so'
  9942. ;;
  9943. netbsd*)
  9944. version_type=sunos
  9945. need_lib_prefix=no
  9946. need_version=no
  9947. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9948. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9949. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9950. dynamic_linker='NetBSD (a.out) ld.so'
  9951. else
  9952. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9953. soname_spec='$libname$release$shared_ext$major'
  9954. dynamic_linker='NetBSD ld.elf_so'
  9955. fi
  9956. shlibpath_var=LD_LIBRARY_PATH
  9957. shlibpath_overrides_runpath=yes
  9958. hardcode_into_libs=yes
  9959. ;;
  9960. newsos6)
  9961. version_type=linux # correct to gnu/linux during the next big refactor
  9962. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9963. shlibpath_var=LD_LIBRARY_PATH
  9964. shlibpath_overrides_runpath=yes
  9965. ;;
  9966. *nto* | *qnx*)
  9967. version_type=qnx
  9968. need_lib_prefix=no
  9969. need_version=no
  9970. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9971. soname_spec='$libname$release$shared_ext$major'
  9972. shlibpath_var=LD_LIBRARY_PATH
  9973. shlibpath_overrides_runpath=no
  9974. hardcode_into_libs=yes
  9975. dynamic_linker='ldqnx.so'
  9976. ;;
  9977. openbsd* | bitrig*)
  9978. version_type=sunos
  9979. sys_lib_dlsearch_path_spec=/usr/lib
  9980. need_lib_prefix=no
  9981. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9982. need_version=no
  9983. else
  9984. need_version=yes
  9985. fi
  9986. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9987. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9988. shlibpath_var=LD_LIBRARY_PATH
  9989. shlibpath_overrides_runpath=yes
  9990. ;;
  9991. os2*)
  9992. libname_spec='$name'
  9993. version_type=windows
  9994. shrext_cmds=.dll
  9995. need_version=no
  9996. need_lib_prefix=no
  9997. # OS/2 can only load a DLL with a base name of 8 characters or less.
  9998. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  9999. v=$($ECHO $release$versuffix | tr -d .-);
  10000. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10001. $ECHO $n$v`$shared_ext'
  10002. library_names_spec='${libname}_dll.$libext'
  10003. dynamic_linker='OS/2 ld.exe'
  10004. shlibpath_var=BEGINLIBPATH
  10005. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10006. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10007. postinstall_cmds='base_file=`basename \$file`~
  10008. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10009. dldir=$destdir/`dirname \$dlpath`~
  10010. test -d \$dldir || mkdir -p \$dldir~
  10011. $install_prog $dir/$dlname \$dldir/$dlname~
  10012. chmod a+x \$dldir/$dlname~
  10013. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10014. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10015. fi'
  10016. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10017. dlpath=$dir/\$dldll~
  10018. $RM \$dlpath'
  10019. ;;
  10020. osf3* | osf4* | osf5*)
  10021. version_type=osf
  10022. need_lib_prefix=no
  10023. need_version=no
  10024. soname_spec='$libname$release$shared_ext$major'
  10025. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10026. shlibpath_var=LD_LIBRARY_PATH
  10027. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10028. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10029. ;;
  10030. rdos*)
  10031. dynamic_linker=no
  10032. ;;
  10033. solaris*)
  10034. version_type=linux # correct to gnu/linux during the next big refactor
  10035. need_lib_prefix=no
  10036. need_version=no
  10037. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10038. soname_spec='$libname$release$shared_ext$major'
  10039. shlibpath_var=LD_LIBRARY_PATH
  10040. shlibpath_overrides_runpath=yes
  10041. hardcode_into_libs=yes
  10042. # ldd complains unless libraries are executable
  10043. postinstall_cmds='chmod +x $lib'
  10044. ;;
  10045. sunos4*)
  10046. version_type=sunos
  10047. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10048. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10049. shlibpath_var=LD_LIBRARY_PATH
  10050. shlibpath_overrides_runpath=yes
  10051. if test yes = "$with_gnu_ld"; then
  10052. need_lib_prefix=no
  10053. fi
  10054. need_version=yes
  10055. ;;
  10056. sysv4 | sysv4.3*)
  10057. version_type=linux # correct to gnu/linux during the next big refactor
  10058. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10059. soname_spec='$libname$release$shared_ext$major'
  10060. shlibpath_var=LD_LIBRARY_PATH
  10061. case $host_vendor in
  10062. sni)
  10063. shlibpath_overrides_runpath=no
  10064. need_lib_prefix=no
  10065. runpath_var=LD_RUN_PATH
  10066. ;;
  10067. siemens)
  10068. need_lib_prefix=no
  10069. ;;
  10070. motorola)
  10071. need_lib_prefix=no
  10072. need_version=no
  10073. shlibpath_overrides_runpath=no
  10074. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10075. ;;
  10076. esac
  10077. ;;
  10078. sysv4*MP*)
  10079. if test -d /usr/nec; then
  10080. version_type=linux # correct to gnu/linux during the next big refactor
  10081. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10082. soname_spec='$libname$shared_ext.$major'
  10083. shlibpath_var=LD_LIBRARY_PATH
  10084. fi
  10085. ;;
  10086. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10087. version_type=sco
  10088. need_lib_prefix=no
  10089. need_version=no
  10090. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10091. soname_spec='$libname$release$shared_ext$major'
  10092. shlibpath_var=LD_LIBRARY_PATH
  10093. shlibpath_overrides_runpath=yes
  10094. hardcode_into_libs=yes
  10095. if test yes = "$with_gnu_ld"; then
  10096. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10097. else
  10098. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10099. case $host_os in
  10100. sco3.2v5*)
  10101. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10102. ;;
  10103. esac
  10104. fi
  10105. sys_lib_dlsearch_path_spec='/usr/lib'
  10106. ;;
  10107. tpf*)
  10108. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10109. version_type=linux # correct to gnu/linux during the next big refactor
  10110. need_lib_prefix=no
  10111. need_version=no
  10112. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10113. shlibpath_var=LD_LIBRARY_PATH
  10114. shlibpath_overrides_runpath=no
  10115. hardcode_into_libs=yes
  10116. ;;
  10117. uts4*)
  10118. version_type=linux # correct to gnu/linux during the next big refactor
  10119. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10120. soname_spec='$libname$release$shared_ext$major'
  10121. shlibpath_var=LD_LIBRARY_PATH
  10122. ;;
  10123. *)
  10124. dynamic_linker=no
  10125. ;;
  10126. esac
  10127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10128. $as_echo "$dynamic_linker" >&6; }
  10129. test no = "$dynamic_linker" && can_build_shared=no
  10130. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10131. if test yes = "$GCC"; then
  10132. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10133. fi
  10134. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10135. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10136. fi
  10137. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10138. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10139. fi
  10140. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10141. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10142. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10143. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10144. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10145. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10147. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10148. hardcode_action=
  10149. if test -n "$hardcode_libdir_flag_spec" ||
  10150. test -n "$runpath_var" ||
  10151. test yes = "$hardcode_automatic"; then
  10152. # We can hardcode non-existent directories.
  10153. if test no != "$hardcode_direct" &&
  10154. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10155. # have to relink, otherwise we might link with an installed library
  10156. # when we should be linking with a yet-to-be-installed one
  10157. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10158. test no != "$hardcode_minus_L"; then
  10159. # Linking always hardcodes the temporary library directory.
  10160. hardcode_action=relink
  10161. else
  10162. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10163. hardcode_action=immediate
  10164. fi
  10165. else
  10166. # We cannot hardcode anything, or else we can only hardcode existing
  10167. # directories.
  10168. hardcode_action=unsupported
  10169. fi
  10170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10171. $as_echo "$hardcode_action" >&6; }
  10172. if test relink = "$hardcode_action" ||
  10173. test yes = "$inherit_rpath"; then
  10174. # Fast installation is not supported
  10175. enable_fast_install=no
  10176. elif test yes = "$shlibpath_overrides_runpath" ||
  10177. test no = "$enable_shared"; then
  10178. # Fast installation is not necessary
  10179. enable_fast_install=needless
  10180. fi
  10181. if test yes != "$enable_dlopen"; then
  10182. enable_dlopen=unknown
  10183. enable_dlopen_self=unknown
  10184. enable_dlopen_self_static=unknown
  10185. else
  10186. lt_cv_dlopen=no
  10187. lt_cv_dlopen_libs=
  10188. case $host_os in
  10189. beos*)
  10190. lt_cv_dlopen=load_add_on
  10191. lt_cv_dlopen_libs=
  10192. lt_cv_dlopen_self=yes
  10193. ;;
  10194. mingw* | pw32* | cegcc*)
  10195. lt_cv_dlopen=LoadLibrary
  10196. lt_cv_dlopen_libs=
  10197. ;;
  10198. cygwin*)
  10199. lt_cv_dlopen=dlopen
  10200. lt_cv_dlopen_libs=
  10201. ;;
  10202. darwin*)
  10203. # if libdl is installed we need to link against it
  10204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10205. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10206. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10207. $as_echo_n "(cached) " >&6
  10208. else
  10209. ac_check_lib_save_LIBS=$LIBS
  10210. LIBS="-ldl $LIBS"
  10211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10212. /* end confdefs.h. */
  10213. /* Override any GCC internal prototype to avoid an error.
  10214. Use char because int might match the return type of a GCC
  10215. builtin and then its argument prototype would still apply. */
  10216. #ifdef __cplusplus
  10217. extern "C"
  10218. #endif
  10219. char dlopen ();
  10220. int
  10221. main ()
  10222. {
  10223. return dlopen ();
  10224. ;
  10225. return 0;
  10226. }
  10227. _ACEOF
  10228. if ac_fn_c_try_link "$LINENO"; then :
  10229. ac_cv_lib_dl_dlopen=yes
  10230. else
  10231. ac_cv_lib_dl_dlopen=no
  10232. fi
  10233. rm -f core conftest.err conftest.$ac_objext \
  10234. conftest$ac_exeext conftest.$ac_ext
  10235. LIBS=$ac_check_lib_save_LIBS
  10236. fi
  10237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10238. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10239. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10240. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10241. else
  10242. lt_cv_dlopen=dyld
  10243. lt_cv_dlopen_libs=
  10244. lt_cv_dlopen_self=yes
  10245. fi
  10246. ;;
  10247. tpf*)
  10248. # Don't try to run any link tests for TPF. We know it's impossible
  10249. # because TPF is a cross-compiler, and we know how we open DSOs.
  10250. lt_cv_dlopen=dlopen
  10251. lt_cv_dlopen_libs=
  10252. lt_cv_dlopen_self=no
  10253. ;;
  10254. *)
  10255. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10256. if test "x$ac_cv_func_shl_load" = xyes; then :
  10257. lt_cv_dlopen=shl_load
  10258. else
  10259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10260. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10261. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10262. $as_echo_n "(cached) " >&6
  10263. else
  10264. ac_check_lib_save_LIBS=$LIBS
  10265. LIBS="-ldld $LIBS"
  10266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10267. /* end confdefs.h. */
  10268. /* Override any GCC internal prototype to avoid an error.
  10269. Use char because int might match the return type of a GCC
  10270. builtin and then its argument prototype would still apply. */
  10271. #ifdef __cplusplus
  10272. extern "C"
  10273. #endif
  10274. char shl_load ();
  10275. int
  10276. main ()
  10277. {
  10278. return shl_load ();
  10279. ;
  10280. return 0;
  10281. }
  10282. _ACEOF
  10283. if ac_fn_c_try_link "$LINENO"; then :
  10284. ac_cv_lib_dld_shl_load=yes
  10285. else
  10286. ac_cv_lib_dld_shl_load=no
  10287. fi
  10288. rm -f core conftest.err conftest.$ac_objext \
  10289. conftest$ac_exeext conftest.$ac_ext
  10290. LIBS=$ac_check_lib_save_LIBS
  10291. fi
  10292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10293. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10294. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10295. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10296. else
  10297. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10298. if test "x$ac_cv_func_dlopen" = xyes; then :
  10299. lt_cv_dlopen=dlopen
  10300. else
  10301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10302. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10303. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10304. $as_echo_n "(cached) " >&6
  10305. else
  10306. ac_check_lib_save_LIBS=$LIBS
  10307. LIBS="-ldl $LIBS"
  10308. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10309. /* end confdefs.h. */
  10310. /* Override any GCC internal prototype to avoid an error.
  10311. Use char because int might match the return type of a GCC
  10312. builtin and then its argument prototype would still apply. */
  10313. #ifdef __cplusplus
  10314. extern "C"
  10315. #endif
  10316. char dlopen ();
  10317. int
  10318. main ()
  10319. {
  10320. return dlopen ();
  10321. ;
  10322. return 0;
  10323. }
  10324. _ACEOF
  10325. if ac_fn_c_try_link "$LINENO"; then :
  10326. ac_cv_lib_dl_dlopen=yes
  10327. else
  10328. ac_cv_lib_dl_dlopen=no
  10329. fi
  10330. rm -f core conftest.err conftest.$ac_objext \
  10331. conftest$ac_exeext conftest.$ac_ext
  10332. LIBS=$ac_check_lib_save_LIBS
  10333. fi
  10334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10335. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10336. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10337. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10338. else
  10339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10340. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10341. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10342. $as_echo_n "(cached) " >&6
  10343. else
  10344. ac_check_lib_save_LIBS=$LIBS
  10345. LIBS="-lsvld $LIBS"
  10346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10347. /* end confdefs.h. */
  10348. /* Override any GCC internal prototype to avoid an error.
  10349. Use char because int might match the return type of a GCC
  10350. builtin and then its argument prototype would still apply. */
  10351. #ifdef __cplusplus
  10352. extern "C"
  10353. #endif
  10354. char dlopen ();
  10355. int
  10356. main ()
  10357. {
  10358. return dlopen ();
  10359. ;
  10360. return 0;
  10361. }
  10362. _ACEOF
  10363. if ac_fn_c_try_link "$LINENO"; then :
  10364. ac_cv_lib_svld_dlopen=yes
  10365. else
  10366. ac_cv_lib_svld_dlopen=no
  10367. fi
  10368. rm -f core conftest.err conftest.$ac_objext \
  10369. conftest$ac_exeext conftest.$ac_ext
  10370. LIBS=$ac_check_lib_save_LIBS
  10371. fi
  10372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10373. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10374. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10375. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10376. else
  10377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10378. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10379. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10380. $as_echo_n "(cached) " >&6
  10381. else
  10382. ac_check_lib_save_LIBS=$LIBS
  10383. LIBS="-ldld $LIBS"
  10384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10385. /* end confdefs.h. */
  10386. /* Override any GCC internal prototype to avoid an error.
  10387. Use char because int might match the return type of a GCC
  10388. builtin and then its argument prototype would still apply. */
  10389. #ifdef __cplusplus
  10390. extern "C"
  10391. #endif
  10392. char dld_link ();
  10393. int
  10394. main ()
  10395. {
  10396. return dld_link ();
  10397. ;
  10398. return 0;
  10399. }
  10400. _ACEOF
  10401. if ac_fn_c_try_link "$LINENO"; then :
  10402. ac_cv_lib_dld_dld_link=yes
  10403. else
  10404. ac_cv_lib_dld_dld_link=no
  10405. fi
  10406. rm -f core conftest.err conftest.$ac_objext \
  10407. conftest$ac_exeext conftest.$ac_ext
  10408. LIBS=$ac_check_lib_save_LIBS
  10409. fi
  10410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10411. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10412. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10413. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10414. fi
  10415. fi
  10416. fi
  10417. fi
  10418. fi
  10419. fi
  10420. ;;
  10421. esac
  10422. if test no = "$lt_cv_dlopen"; then
  10423. enable_dlopen=no
  10424. else
  10425. enable_dlopen=yes
  10426. fi
  10427. case $lt_cv_dlopen in
  10428. dlopen)
  10429. save_CPPFLAGS=$CPPFLAGS
  10430. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10431. save_LDFLAGS=$LDFLAGS
  10432. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10433. save_LIBS=$LIBS
  10434. LIBS="$lt_cv_dlopen_libs $LIBS"
  10435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10436. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10437. if ${lt_cv_dlopen_self+:} false; then :
  10438. $as_echo_n "(cached) " >&6
  10439. else
  10440. if test yes = "$cross_compiling"; then :
  10441. lt_cv_dlopen_self=cross
  10442. else
  10443. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10444. lt_status=$lt_dlunknown
  10445. cat > conftest.$ac_ext <<_LT_EOF
  10446. #line $LINENO "configure"
  10447. #include "confdefs.h"
  10448. #if HAVE_DLFCN_H
  10449. #include <dlfcn.h>
  10450. #endif
  10451. #include <stdio.h>
  10452. #ifdef RTLD_GLOBAL
  10453. # define LT_DLGLOBAL RTLD_GLOBAL
  10454. #else
  10455. # ifdef DL_GLOBAL
  10456. # define LT_DLGLOBAL DL_GLOBAL
  10457. # else
  10458. # define LT_DLGLOBAL 0
  10459. # endif
  10460. #endif
  10461. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10462. find out it does not work in some platform. */
  10463. #ifndef LT_DLLAZY_OR_NOW
  10464. # ifdef RTLD_LAZY
  10465. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10466. # else
  10467. # ifdef DL_LAZY
  10468. # define LT_DLLAZY_OR_NOW DL_LAZY
  10469. # else
  10470. # ifdef RTLD_NOW
  10471. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10472. # else
  10473. # ifdef DL_NOW
  10474. # define LT_DLLAZY_OR_NOW DL_NOW
  10475. # else
  10476. # define LT_DLLAZY_OR_NOW 0
  10477. # endif
  10478. # endif
  10479. # endif
  10480. # endif
  10481. #endif
  10482. /* When -fvisibility=hidden is used, assume the code has been annotated
  10483. correspondingly for the symbols needed. */
  10484. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10485. int fnord () __attribute__((visibility("default")));
  10486. #endif
  10487. int fnord () { return 42; }
  10488. int main ()
  10489. {
  10490. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10491. int status = $lt_dlunknown;
  10492. if (self)
  10493. {
  10494. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10495. else
  10496. {
  10497. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10498. else puts (dlerror ());
  10499. }
  10500. /* dlclose (self); */
  10501. }
  10502. else
  10503. puts (dlerror ());
  10504. return status;
  10505. }
  10506. _LT_EOF
  10507. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10508. (eval $ac_link) 2>&5
  10509. ac_status=$?
  10510. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10511. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10512. (./conftest; exit; ) >&5 2>/dev/null
  10513. lt_status=$?
  10514. case x$lt_status in
  10515. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10516. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10517. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10518. esac
  10519. else :
  10520. # compilation failed
  10521. lt_cv_dlopen_self=no
  10522. fi
  10523. fi
  10524. rm -fr conftest*
  10525. fi
  10526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10527. $as_echo "$lt_cv_dlopen_self" >&6; }
  10528. if test yes = "$lt_cv_dlopen_self"; then
  10529. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10531. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10532. if ${lt_cv_dlopen_self_static+:} false; then :
  10533. $as_echo_n "(cached) " >&6
  10534. else
  10535. if test yes = "$cross_compiling"; then :
  10536. lt_cv_dlopen_self_static=cross
  10537. else
  10538. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10539. lt_status=$lt_dlunknown
  10540. cat > conftest.$ac_ext <<_LT_EOF
  10541. #line $LINENO "configure"
  10542. #include "confdefs.h"
  10543. #if HAVE_DLFCN_H
  10544. #include <dlfcn.h>
  10545. #endif
  10546. #include <stdio.h>
  10547. #ifdef RTLD_GLOBAL
  10548. # define LT_DLGLOBAL RTLD_GLOBAL
  10549. #else
  10550. # ifdef DL_GLOBAL
  10551. # define LT_DLGLOBAL DL_GLOBAL
  10552. # else
  10553. # define LT_DLGLOBAL 0
  10554. # endif
  10555. #endif
  10556. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10557. find out it does not work in some platform. */
  10558. #ifndef LT_DLLAZY_OR_NOW
  10559. # ifdef RTLD_LAZY
  10560. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10561. # else
  10562. # ifdef DL_LAZY
  10563. # define LT_DLLAZY_OR_NOW DL_LAZY
  10564. # else
  10565. # ifdef RTLD_NOW
  10566. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10567. # else
  10568. # ifdef DL_NOW
  10569. # define LT_DLLAZY_OR_NOW DL_NOW
  10570. # else
  10571. # define LT_DLLAZY_OR_NOW 0
  10572. # endif
  10573. # endif
  10574. # endif
  10575. # endif
  10576. #endif
  10577. /* When -fvisibility=hidden is used, assume the code has been annotated
  10578. correspondingly for the symbols needed. */
  10579. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10580. int fnord () __attribute__((visibility("default")));
  10581. #endif
  10582. int fnord () { return 42; }
  10583. int main ()
  10584. {
  10585. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10586. int status = $lt_dlunknown;
  10587. if (self)
  10588. {
  10589. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10590. else
  10591. {
  10592. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10593. else puts (dlerror ());
  10594. }
  10595. /* dlclose (self); */
  10596. }
  10597. else
  10598. puts (dlerror ());
  10599. return status;
  10600. }
  10601. _LT_EOF
  10602. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10603. (eval $ac_link) 2>&5
  10604. ac_status=$?
  10605. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10606. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10607. (./conftest; exit; ) >&5 2>/dev/null
  10608. lt_status=$?
  10609. case x$lt_status in
  10610. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10611. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10612. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10613. esac
  10614. else :
  10615. # compilation failed
  10616. lt_cv_dlopen_self_static=no
  10617. fi
  10618. fi
  10619. rm -fr conftest*
  10620. fi
  10621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10622. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10623. fi
  10624. CPPFLAGS=$save_CPPFLAGS
  10625. LDFLAGS=$save_LDFLAGS
  10626. LIBS=$save_LIBS
  10627. ;;
  10628. esac
  10629. case $lt_cv_dlopen_self in
  10630. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10631. *) enable_dlopen_self=unknown ;;
  10632. esac
  10633. case $lt_cv_dlopen_self_static in
  10634. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10635. *) enable_dlopen_self_static=unknown ;;
  10636. esac
  10637. fi
  10638. striplib=
  10639. old_striplib=
  10640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10641. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10642. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10643. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10644. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10646. $as_echo "yes" >&6; }
  10647. else
  10648. # FIXME - insert some real tests, host_os isn't really good enough
  10649. case $host_os in
  10650. darwin*)
  10651. if test -n "$STRIP"; then
  10652. striplib="$STRIP -x"
  10653. old_striplib="$STRIP -S"
  10654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10655. $as_echo "yes" >&6; }
  10656. else
  10657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10658. $as_echo "no" >&6; }
  10659. fi
  10660. ;;
  10661. *)
  10662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10663. $as_echo "no" >&6; }
  10664. ;;
  10665. esac
  10666. fi
  10667. # Report what library types will actually be built
  10668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10669. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10671. $as_echo "$can_build_shared" >&6; }
  10672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10673. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10674. test no = "$can_build_shared" && enable_shared=no
  10675. # On AIX, shared libraries and static libraries use the same namespace, and
  10676. # are all built from PIC.
  10677. case $host_os in
  10678. aix3*)
  10679. test yes = "$enable_shared" && enable_static=no
  10680. if test -n "$RANLIB"; then
  10681. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10682. postinstall_cmds='$RANLIB $lib'
  10683. fi
  10684. ;;
  10685. aix[4-9]*)
  10686. if test ia64 != "$host_cpu"; then
  10687. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10688. yes,aix,yes) ;; # shared object as lib.so file only
  10689. yes,svr4,*) ;; # shared object as lib.so archive member only
  10690. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10691. esac
  10692. fi
  10693. ;;
  10694. esac
  10695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10696. $as_echo "$enable_shared" >&6; }
  10697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10698. $as_echo_n "checking whether to build static libraries... " >&6; }
  10699. # Make sure either enable_shared or enable_static is yes.
  10700. test yes = "$enable_shared" || enable_static=yes
  10701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10702. $as_echo "$enable_static" >&6; }
  10703. fi
  10704. ac_ext=c
  10705. ac_cpp='$CPP $CPPFLAGS'
  10706. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10707. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10708. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10709. CC=$lt_save_CC
  10710. ac_config_commands="$ac_config_commands libtool"
  10711. # Only expand once:
  10712. ac_config_headers="$ac_config_headers config.h"
  10713. am__api_version='1.16'
  10714. # Find a good install program. We prefer a C program (faster),
  10715. # so one script is as good as another. But avoid the broken or
  10716. # incompatible versions:
  10717. # SysV /etc/install, /usr/sbin/install
  10718. # SunOS /usr/etc/install
  10719. # IRIX /sbin/install
  10720. # AIX /bin/install
  10721. # AmigaOS /C/install, which installs bootblocks on floppy discs
  10722. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  10723. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  10724. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  10725. # OS/2's system install, which has a completely different semantic
  10726. # ./install, which can be erroneously created by make from ./install.sh.
  10727. # Reject install programs that cannot install multiple files.
  10728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  10729. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  10730. if test -z "$INSTALL"; then
  10731. if ${ac_cv_path_install+:} false; then :
  10732. $as_echo_n "(cached) " >&6
  10733. else
  10734. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10735. for as_dir in $PATH
  10736. do
  10737. IFS=$as_save_IFS
  10738. test -z "$as_dir" && as_dir=.
  10739. # Account for people who put trailing slashes in PATH elements.
  10740. case $as_dir/ in #((
  10741. ./ | .// | /[cC]/* | \
  10742. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  10743. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  10744. /usr/ucb/* ) ;;
  10745. *)
  10746. # OSF1 and SCO ODT 3.0 have their own names for install.
  10747. # Don't use installbsd from OSF since it installs stuff as root
  10748. # by default.
  10749. for ac_prog in ginstall scoinst install; do
  10750. for ac_exec_ext in '' $ac_executable_extensions; do
  10751. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  10752. if test $ac_prog = install &&
  10753. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  10754. # AIX install. It has an incompatible calling convention.
  10755. :
  10756. elif test $ac_prog = install &&
  10757. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  10758. # program-specific install script used by HP pwplus--don't use.
  10759. :
  10760. else
  10761. rm -rf conftest.one conftest.two conftest.dir
  10762. echo one > conftest.one
  10763. echo two > conftest.two
  10764. mkdir conftest.dir
  10765. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  10766. test -s conftest.one && test -s conftest.two &&
  10767. test -s conftest.dir/conftest.one &&
  10768. test -s conftest.dir/conftest.two
  10769. then
  10770. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  10771. break 3
  10772. fi
  10773. fi
  10774. fi
  10775. done
  10776. done
  10777. ;;
  10778. esac
  10779. done
  10780. IFS=$as_save_IFS
  10781. rm -rf conftest.one conftest.two conftest.dir
  10782. fi
  10783. if test "${ac_cv_path_install+set}" = set; then
  10784. INSTALL=$ac_cv_path_install
  10785. else
  10786. # As a last resort, use the slow shell script. Don't cache a
  10787. # value for INSTALL within a source directory, because that will
  10788. # break other packages using the cache if that directory is
  10789. # removed, or if the value is a relative name.
  10790. INSTALL=$ac_install_sh
  10791. fi
  10792. fi
  10793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  10794. $as_echo "$INSTALL" >&6; }
  10795. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  10796. # It thinks the first close brace ends the variable substitution.
  10797. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  10798. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  10799. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  10800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  10801. $as_echo_n "checking whether build environment is sane... " >&6; }
  10802. # Reject unsafe characters in $srcdir or the absolute working directory
  10803. # name. Accept space and tab only in the latter.
  10804. am_lf='
  10805. '
  10806. case `pwd` in
  10807. *[\\\"\#\$\&\'\`$am_lf]*)
  10808. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  10809. esac
  10810. case $srcdir in
  10811. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  10812. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  10813. esac
  10814. # Do 'set' in a subshell so we don't clobber the current shell's
  10815. # arguments. Must try -L first in case configure is actually a
  10816. # symlink; some systems play weird games with the mod time of symlinks
  10817. # (eg FreeBSD returns the mod time of the symlink's containing
  10818. # directory).
  10819. if (
  10820. am_has_slept=no
  10821. for am_try in 1 2; do
  10822. echo "timestamp, slept: $am_has_slept" > conftest.file
  10823. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  10824. if test "$*" = "X"; then
  10825. # -L didn't work.
  10826. set X `ls -t "$srcdir/configure" conftest.file`
  10827. fi
  10828. if test "$*" != "X $srcdir/configure conftest.file" \
  10829. && test "$*" != "X conftest.file $srcdir/configure"; then
  10830. # If neither matched, then we have a broken ls. This can happen
  10831. # if, for instance, CONFIG_SHELL is bash and it inherits a
  10832. # broken ls alias from the environment. This has actually
  10833. # happened. Such a system could not be considered "sane".
  10834. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  10835. alias in your environment" "$LINENO" 5
  10836. fi
  10837. if test "$2" = conftest.file || test $am_try -eq 2; then
  10838. break
  10839. fi
  10840. # Just in case.
  10841. sleep 1
  10842. am_has_slept=yes
  10843. done
  10844. test "$2" = conftest.file
  10845. )
  10846. then
  10847. # Ok.
  10848. :
  10849. else
  10850. as_fn_error $? "newly created file is older than distributed files!
  10851. Check your system clock" "$LINENO" 5
  10852. fi
  10853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10854. $as_echo "yes" >&6; }
  10855. # If we didn't sleep, we still need to ensure time stamps of config.status and
  10856. # generated files are strictly newer.
  10857. am_sleep_pid=
  10858. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  10859. ( sleep 1 ) &
  10860. am_sleep_pid=$!
  10861. fi
  10862. rm -f conftest.file
  10863. test "$program_prefix" != NONE &&
  10864. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  10865. # Use a double $ so make ignores it.
  10866. test "$program_suffix" != NONE &&
  10867. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  10868. # Double any \ or $.
  10869. # By default was `s,x,x', remove it if useless.
  10870. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  10871. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  10872. if test x"${MISSING+set}" != xset; then
  10873. case $am_aux_dir in
  10874. *\ * | *\ *)
  10875. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  10876. *)
  10877. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  10878. esac
  10879. fi
  10880. # Use eval to expand $SHELL
  10881. if eval "$MISSING --is-lightweight"; then
  10882. am_missing_run="$MISSING "
  10883. else
  10884. am_missing_run=
  10885. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  10886. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  10887. fi
  10888. if test x"${install_sh+set}" != xset; then
  10889. case $am_aux_dir in
  10890. *\ * | *\ *)
  10891. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  10892. *)
  10893. install_sh="\${SHELL} $am_aux_dir/install-sh"
  10894. esac
  10895. fi
  10896. # Installed binaries are usually stripped using 'strip' when the user
  10897. # run "make install-strip". However 'strip' might not be the right
  10898. # tool to use in cross-compilation environments, therefore Automake
  10899. # will honor the 'STRIP' environment variable to overrule this program.
  10900. if test "$cross_compiling" != no; then
  10901. if test -n "$ac_tool_prefix"; then
  10902. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  10903. set dummy ${ac_tool_prefix}strip; ac_word=$2
  10904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10905. $as_echo_n "checking for $ac_word... " >&6; }
  10906. if ${ac_cv_prog_STRIP+:} false; then :
  10907. $as_echo_n "(cached) " >&6
  10908. else
  10909. if test -n "$STRIP"; then
  10910. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  10911. else
  10912. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10913. for as_dir in $PATH
  10914. do
  10915. IFS=$as_save_IFS
  10916. test -z "$as_dir" && as_dir=.
  10917. for ac_exec_ext in '' $ac_executable_extensions; do
  10918. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10919. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  10920. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10921. break 2
  10922. fi
  10923. done
  10924. done
  10925. IFS=$as_save_IFS
  10926. fi
  10927. fi
  10928. STRIP=$ac_cv_prog_STRIP
  10929. if test -n "$STRIP"; then
  10930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  10931. $as_echo "$STRIP" >&6; }
  10932. else
  10933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10934. $as_echo "no" >&6; }
  10935. fi
  10936. fi
  10937. if test -z "$ac_cv_prog_STRIP"; then
  10938. ac_ct_STRIP=$STRIP
  10939. # Extract the first word of "strip", so it can be a program name with args.
  10940. set dummy strip; ac_word=$2
  10941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10942. $as_echo_n "checking for $ac_word... " >&6; }
  10943. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  10944. $as_echo_n "(cached) " >&6
  10945. else
  10946. if test -n "$ac_ct_STRIP"; then
  10947. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  10948. else
  10949. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10950. for as_dir in $PATH
  10951. do
  10952. IFS=$as_save_IFS
  10953. test -z "$as_dir" && as_dir=.
  10954. for ac_exec_ext in '' $ac_executable_extensions; do
  10955. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10956. ac_cv_prog_ac_ct_STRIP="strip"
  10957. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10958. break 2
  10959. fi
  10960. done
  10961. done
  10962. IFS=$as_save_IFS
  10963. fi
  10964. fi
  10965. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  10966. if test -n "$ac_ct_STRIP"; then
  10967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  10968. $as_echo "$ac_ct_STRIP" >&6; }
  10969. else
  10970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10971. $as_echo "no" >&6; }
  10972. fi
  10973. if test "x$ac_ct_STRIP" = x; then
  10974. STRIP=":"
  10975. else
  10976. case $cross_compiling:$ac_tool_warned in
  10977. yes:)
  10978. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10979. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10980. ac_tool_warned=yes ;;
  10981. esac
  10982. STRIP=$ac_ct_STRIP
  10983. fi
  10984. else
  10985. STRIP="$ac_cv_prog_STRIP"
  10986. fi
  10987. fi
  10988. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  10989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  10990. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  10991. if test -z "$MKDIR_P"; then
  10992. if ${ac_cv_path_mkdir+:} false; then :
  10993. $as_echo_n "(cached) " >&6
  10994. else
  10995. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10996. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  10997. do
  10998. IFS=$as_save_IFS
  10999. test -z "$as_dir" && as_dir=.
  11000. for ac_prog in mkdir gmkdir; do
  11001. for ac_exec_ext in '' $ac_executable_extensions; do
  11002. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  11003. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  11004. 'mkdir (GNU coreutils) '* | \
  11005. 'mkdir (coreutils) '* | \
  11006. 'mkdir (fileutils) '4.1*)
  11007. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  11008. break 3;;
  11009. esac
  11010. done
  11011. done
  11012. done
  11013. IFS=$as_save_IFS
  11014. fi
  11015. test -d ./--version && rmdir ./--version
  11016. if test "${ac_cv_path_mkdir+set}" = set; then
  11017. MKDIR_P="$ac_cv_path_mkdir -p"
  11018. else
  11019. # As a last resort, use the slow shell script. Don't cache a
  11020. # value for MKDIR_P within a source directory, because that will
  11021. # break other packages using the cache if that directory is
  11022. # removed, or if the value is a relative name.
  11023. MKDIR_P="$ac_install_sh -d"
  11024. fi
  11025. fi
  11026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  11027. $as_echo "$MKDIR_P" >&6; }
  11028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  11029. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  11030. set x ${MAKE-make}
  11031. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  11032. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  11033. $as_echo_n "(cached) " >&6
  11034. else
  11035. cat >conftest.make <<\_ACEOF
  11036. SHELL = /bin/sh
  11037. all:
  11038. @echo '@@@%%%=$(MAKE)=@@@%%%'
  11039. _ACEOF
  11040. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  11041. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  11042. *@@@%%%=?*=@@@%%%*)
  11043. eval ac_cv_prog_make_${ac_make}_set=yes;;
  11044. *)
  11045. eval ac_cv_prog_make_${ac_make}_set=no;;
  11046. esac
  11047. rm -f conftest.make
  11048. fi
  11049. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  11050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11051. $as_echo "yes" >&6; }
  11052. SET_MAKE=
  11053. else
  11054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11055. $as_echo "no" >&6; }
  11056. SET_MAKE="MAKE=${MAKE-make}"
  11057. fi
  11058. rm -rf .tst 2>/dev/null
  11059. mkdir .tst 2>/dev/null
  11060. if test -d .tst; then
  11061. am__leading_dot=.
  11062. else
  11063. am__leading_dot=_
  11064. fi
  11065. rmdir .tst 2>/dev/null
  11066. DEPDIR="${am__leading_dot}deps"
  11067. ac_config_commands="$ac_config_commands depfiles"
  11068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  11069. $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
  11070. cat > confinc.mk << 'END'
  11071. am__doit:
  11072. @echo this is the am__doit target >confinc.out
  11073. .PHONY: am__doit
  11074. END
  11075. am__include="#"
  11076. am__quote=
  11077. # BSD make does it like this.
  11078. echo '.include "confinc.mk" # ignored' > confmf.BSD
  11079. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  11080. echo 'include confinc.mk # ignored' > confmf.GNU
  11081. _am_result=no
  11082. for s in GNU BSD; do
  11083. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  11084. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  11085. ac_status=$?
  11086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11087. (exit $ac_status); }
  11088. case $?:`cat confinc.out 2>/dev/null` in #(
  11089. '0:this is the am__doit target') :
  11090. case $s in #(
  11091. BSD) :
  11092. am__include='.include' am__quote='"' ;; #(
  11093. *) :
  11094. am__include='include' am__quote='' ;;
  11095. esac ;; #(
  11096. *) :
  11097. ;;
  11098. esac
  11099. if test "$am__include" != "#"; then
  11100. _am_result="yes ($s style)"
  11101. break
  11102. fi
  11103. done
  11104. rm -f confinc.* confmf.*
  11105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  11106. $as_echo "${_am_result}" >&6; }
  11107. # Check whether --enable-dependency-tracking was given.
  11108. if test "${enable_dependency_tracking+set}" = set; then :
  11109. enableval=$enable_dependency_tracking;
  11110. fi
  11111. if test "x$enable_dependency_tracking" != xno; then
  11112. am_depcomp="$ac_aux_dir/depcomp"
  11113. AMDEPBACKSLASH='\'
  11114. am__nodep='_no'
  11115. fi
  11116. if test "x$enable_dependency_tracking" != xno; then
  11117. AMDEP_TRUE=
  11118. AMDEP_FALSE='#'
  11119. else
  11120. AMDEP_TRUE='#'
  11121. AMDEP_FALSE=
  11122. fi
  11123. # Check whether --enable-silent-rules was given.
  11124. if test "${enable_silent_rules+set}" = set; then :
  11125. enableval=$enable_silent_rules;
  11126. fi
  11127. case $enable_silent_rules in # (((
  11128. yes) AM_DEFAULT_VERBOSITY=0;;
  11129. no) AM_DEFAULT_VERBOSITY=1;;
  11130. *) AM_DEFAULT_VERBOSITY=1;;
  11131. esac
  11132. am_make=${MAKE-make}
  11133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  11134. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  11135. if ${am_cv_make_support_nested_variables+:} false; then :
  11136. $as_echo_n "(cached) " >&6
  11137. else
  11138. if $as_echo 'TRUE=$(BAR$(V))
  11139. BAR0=false
  11140. BAR1=true
  11141. V=1
  11142. am__doit:
  11143. @$(TRUE)
  11144. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  11145. am_cv_make_support_nested_variables=yes
  11146. else
  11147. am_cv_make_support_nested_variables=no
  11148. fi
  11149. fi
  11150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  11151. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  11152. if test $am_cv_make_support_nested_variables = yes; then
  11153. AM_V='$(V)'
  11154. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  11155. else
  11156. AM_V=$AM_DEFAULT_VERBOSITY
  11157. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  11158. fi
  11159. AM_BACKSLASH='\'
  11160. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  11161. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  11162. # is not polluted with repeated "-I."
  11163. am__isrc=' -I$(srcdir)'
  11164. # test to see if srcdir already configured
  11165. if test -f $srcdir/config.status; then
  11166. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  11167. fi
  11168. fi
  11169. # test whether we have cygpath
  11170. if test -z "$CYGPATH_W"; then
  11171. if (cygpath --version) >/dev/null 2>/dev/null; then
  11172. CYGPATH_W='cygpath -w'
  11173. else
  11174. CYGPATH_W=echo
  11175. fi
  11176. fi
  11177. # Define the identity of the package.
  11178. PACKAGE='klish'
  11179. VERSION='3.0.0'
  11180. cat >>confdefs.h <<_ACEOF
  11181. #define PACKAGE "$PACKAGE"
  11182. _ACEOF
  11183. cat >>confdefs.h <<_ACEOF
  11184. #define VERSION "$VERSION"
  11185. _ACEOF
  11186. # Some tools Automake needs.
  11187. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  11188. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  11189. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  11190. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  11191. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  11192. # For better backward compatibility. To be removed once Automake 1.9.x
  11193. # dies out for good. For more background, see:
  11194. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  11195. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  11196. mkdir_p='$(MKDIR_P)'
  11197. # We need awk for the "check" target (and possibly the TAP driver). The
  11198. # system "awk" is bad on some platforms.
  11199. # Always define AMTAR for backward compatibility. Yes, it's still used
  11200. # in the wild :-( We should find a proper way to deprecate it ...
  11201. AMTAR='$${TAR-tar}'
  11202. # We'll loop over all known methods to create a tar archive until one works.
  11203. _am_tools='gnutar pax cpio none'
  11204. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  11205. depcc="$CC" am_compiler_list=
  11206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  11207. $as_echo_n "checking dependency style of $depcc... " >&6; }
  11208. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  11209. $as_echo_n "(cached) " >&6
  11210. else
  11211. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  11212. # We make a subdir and do the tests there. Otherwise we can end up
  11213. # making bogus files that we don't know about and never remove. For
  11214. # instance it was reported that on HP-UX the gcc test will end up
  11215. # making a dummy file named 'D' -- because '-MD' means "put the output
  11216. # in D".
  11217. rm -rf conftest.dir
  11218. mkdir conftest.dir
  11219. # Copy depcomp to subdir because otherwise we won't find it if we're
  11220. # using a relative directory.
  11221. cp "$am_depcomp" conftest.dir
  11222. cd conftest.dir
  11223. # We will build objects and dependencies in a subdirectory because
  11224. # it helps to detect inapplicable dependency modes. For instance
  11225. # both Tru64's cc and ICC support -MD to output dependencies as a
  11226. # side effect of compilation, but ICC will put the dependencies in
  11227. # the current directory while Tru64 will put them in the object
  11228. # directory.
  11229. mkdir sub
  11230. am_cv_CC_dependencies_compiler_type=none
  11231. if test "$am_compiler_list" = ""; then
  11232. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  11233. fi
  11234. am__universal=false
  11235. case " $depcc " in #(
  11236. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  11237. esac
  11238. for depmode in $am_compiler_list; do
  11239. # Setup a source with many dependencies, because some compilers
  11240. # like to wrap large dependency lists on column 80 (with \), and
  11241. # we should not choose a depcomp mode which is confused by this.
  11242. #
  11243. # We need to recreate these files for each test, as the compiler may
  11244. # overwrite some of them when testing with obscure command lines.
  11245. # This happens at least with the AIX C compiler.
  11246. : > sub/conftest.c
  11247. for i in 1 2 3 4 5 6; do
  11248. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  11249. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  11250. # Solaris 10 /bin/sh.
  11251. echo '/* dummy */' > sub/conftst$i.h
  11252. done
  11253. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  11254. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  11255. # mode. It turns out that the SunPro C++ compiler does not properly
  11256. # handle '-M -o', and we need to detect this. Also, some Intel
  11257. # versions had trouble with output in subdirs.
  11258. am__obj=sub/conftest.${OBJEXT-o}
  11259. am__minus_obj="-o $am__obj"
  11260. case $depmode in
  11261. gcc)
  11262. # This depmode causes a compiler race in universal mode.
  11263. test "$am__universal" = false || continue
  11264. ;;
  11265. nosideeffect)
  11266. # After this tag, mechanisms are not by side-effect, so they'll
  11267. # only be used when explicitly requested.
  11268. if test "x$enable_dependency_tracking" = xyes; then
  11269. continue
  11270. else
  11271. break
  11272. fi
  11273. ;;
  11274. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  11275. # This compiler won't grok '-c -o', but also, the minuso test has
  11276. # not run yet. These depmodes are late enough in the game, and
  11277. # so weak that their functioning should not be impacted.
  11278. am__obj=conftest.${OBJEXT-o}
  11279. am__minus_obj=
  11280. ;;
  11281. none) break ;;
  11282. esac
  11283. if depmode=$depmode \
  11284. source=sub/conftest.c object=$am__obj \
  11285. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  11286. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  11287. >/dev/null 2>conftest.err &&
  11288. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  11289. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  11290. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  11291. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  11292. # icc doesn't choke on unknown options, it will just issue warnings
  11293. # or remarks (even with -Werror). So we grep stderr for any message
  11294. # that says an option was ignored or not supported.
  11295. # When given -MP, icc 7.0 and 7.1 complain thusly:
  11296. # icc: Command line warning: ignoring option '-M'; no argument required
  11297. # The diagnosis changed in icc 8.0:
  11298. # icc: Command line remark: option '-MP' not supported
  11299. if (grep 'ignoring option' conftest.err ||
  11300. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  11301. am_cv_CC_dependencies_compiler_type=$depmode
  11302. break
  11303. fi
  11304. fi
  11305. done
  11306. cd ..
  11307. rm -rf conftest.dir
  11308. else
  11309. am_cv_CC_dependencies_compiler_type=none
  11310. fi
  11311. fi
  11312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  11313. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  11314. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  11315. if
  11316. test "x$enable_dependency_tracking" != xno \
  11317. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  11318. am__fastdepCC_TRUE=
  11319. am__fastdepCC_FALSE='#'
  11320. else
  11321. am__fastdepCC_TRUE='#'
  11322. am__fastdepCC_FALSE=
  11323. fi
  11324. # POSIX will say in a future version that running "rm -f" with no argument
  11325. # is OK; and we want to be able to make that assumption in our Makefile
  11326. # recipes. So use an aggressive probe to check that the usage we want is
  11327. # actually supported "in the wild" to an acceptable degree.
  11328. # See automake bug#10828.
  11329. # To make any issue more visible, cause the running configure to be aborted
  11330. # by default if the 'rm' program in use doesn't match our expectations; the
  11331. # user can still override this though.
  11332. if rm -f && rm -fr && rm -rf; then : OK; else
  11333. cat >&2 <<'END'
  11334. Oops!
  11335. Your 'rm' program seems unable to run without file operands specified
  11336. on the command line, even when the '-f' option is present. This is contrary
  11337. to the behaviour of most rm programs out there, and not conforming with
  11338. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  11339. Please tell bug-automake@gnu.org about your system, including the value
  11340. of your $PATH and any error possibly output before this message. This
  11341. can help us improve future automake versions.
  11342. END
  11343. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  11344. echo 'Configuration will proceed anyway, since you have set the' >&2
  11345. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  11346. echo >&2
  11347. else
  11348. cat >&2 <<'END'
  11349. Aborting the configuration process, to ensure you take notice of the issue.
  11350. You can download and install GNU coreutils to get an 'rm' implementation
  11351. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  11352. If you want to complete the configuration process using your problematic
  11353. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  11354. to "yes", and re-run configure.
  11355. END
  11356. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  11357. fi
  11358. fi
  11359. # Dir for libc replacements
  11360. # needed to handle 64-bit architecture
  11361. # The cast to long int works around a bug in the HP C Compiler
  11362. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11363. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11364. # This bug is HP SR number 8606223364.
  11365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  11366. $as_echo_n "checking size of int... " >&6; }
  11367. if ${ac_cv_sizeof_int+:} false; then :
  11368. $as_echo_n "(cached) " >&6
  11369. else
  11370. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  11371. else
  11372. if test "$ac_cv_type_int" = yes; then
  11373. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11374. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11375. as_fn_error 77 "cannot compute sizeof (int)
  11376. See \`config.log' for more details" "$LINENO" 5; }
  11377. else
  11378. ac_cv_sizeof_int=0
  11379. fi
  11380. fi
  11381. fi
  11382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  11383. $as_echo "$ac_cv_sizeof_int" >&6; }
  11384. cat >>confdefs.h <<_ACEOF
  11385. #define SIZEOF_INT $ac_cv_sizeof_int
  11386. _ACEOF
  11387. # The cast to long int works around a bug in the HP C Compiler
  11388. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11389. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11390. # This bug is HP SR number 8606223364.
  11391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  11392. $as_echo_n "checking size of long... " >&6; }
  11393. if ${ac_cv_sizeof_long+:} false; then :
  11394. $as_echo_n "(cached) " >&6
  11395. else
  11396. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  11397. else
  11398. if test "$ac_cv_type_long" = yes; then
  11399. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11400. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11401. as_fn_error 77 "cannot compute sizeof (long)
  11402. See \`config.log' for more details" "$LINENO" 5; }
  11403. else
  11404. ac_cv_sizeof_long=0
  11405. fi
  11406. fi
  11407. fi
  11408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  11409. $as_echo "$ac_cv_sizeof_long" >&6; }
  11410. cat >>confdefs.h <<_ACEOF
  11411. #define SIZEOF_LONG $ac_cv_sizeof_long
  11412. _ACEOF
  11413. # The cast to long int works around a bug in the HP C Compiler
  11414. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11415. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11416. # This bug is HP SR number 8606223364.
  11417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  11418. $as_echo_n "checking size of size_t... " >&6; }
  11419. if ${ac_cv_sizeof_size_t+:} false; then :
  11420. $as_echo_n "(cached) " >&6
  11421. else
  11422. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
  11423. else
  11424. if test "$ac_cv_type_size_t" = yes; then
  11425. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11426. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11427. as_fn_error 77 "cannot compute sizeof (size_t)
  11428. See \`config.log' for more details" "$LINENO" 5; }
  11429. else
  11430. ac_cv_sizeof_size_t=0
  11431. fi
  11432. fi
  11433. fi
  11434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  11435. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  11436. cat >>confdefs.h <<_ACEOF
  11437. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  11438. _ACEOF
  11439. #########################################
  11440. # See if linker supports version scripts
  11441. #########################################
  11442. # Check if LD supports linker scripts,
  11443. # and define automake conditional HAVE_LD_VERSION_SCRIPT if so.
  11444. # Check whether --enable-ld-version-script was given.
  11445. if test "${enable_ld_version_script+set}" = set; then :
  11446. enableval=$enable_ld_version_script; have_ld_version_script=$enableval
  11447. fi
  11448. if test -z "$have_ld_version_script"; then
  11449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
  11450. $as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
  11451. save_LDFLAGS="$LDFLAGS"
  11452. LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
  11453. cat > conftest.map <<EOF
  11454. VERS_1 {
  11455. global: sym;
  11456. };
  11457. VERS_2 {
  11458. global: sym;
  11459. } VERS_1;
  11460. EOF
  11461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11462. /* end confdefs.h. */
  11463. int main() { return 0; }
  11464. _ACEOF
  11465. if ac_fn_c_try_link "$LINENO"; then :
  11466. have_ld_version_script=yes
  11467. else
  11468. have_ld_version_script=no
  11469. fi
  11470. rm -f core conftest.err conftest.$ac_objext \
  11471. conftest$ac_exeext conftest.$ac_ext
  11472. rm -f conftest.map
  11473. LDFLAGS="$save_LDFLAGS"
  11474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
  11475. $as_echo "$have_ld_version_script" >&6; }
  11476. fi
  11477. if test "$have_ld_version_script" = "yes"; then
  11478. HAVE_LD_VERSION_SCRIPT_TRUE=
  11479. HAVE_LD_VERSION_SCRIPT_FALSE='#'
  11480. else
  11481. HAVE_LD_VERSION_SCRIPT_TRUE='#'
  11482. HAVE_LD_VERSION_SCRIPT_FALSE=
  11483. fi
  11484. ################################
  11485. # Deal with debugging options
  11486. ################################
  11487. # Check whether --enable-debug was given.
  11488. if test "${enable_debug+set}" = set; then :
  11489. enableval=$enable_debug;
  11490. else
  11491. enable_debug=no
  11492. fi
  11493. if test x$enable_debug = xyes; then
  11494. DEBUG_TRUE=
  11495. DEBUG_FALSE='#'
  11496. else
  11497. DEBUG_TRUE='#'
  11498. DEBUG_FALSE=
  11499. fi
  11500. ################################
  11501. # Compile in testc tests
  11502. ################################
  11503. # Check whether --enable-testc was given.
  11504. if test "${enable_testc+set}" = set; then :
  11505. enableval=$enable_testc;
  11506. else
  11507. enable_testc=no
  11508. fi
  11509. if test x$enable_testc = xyes; then
  11510. TESTC_TRUE=
  11511. TESTC_FALSE='#'
  11512. else
  11513. TESTC_TRUE='#'
  11514. TESTC_FALSE=
  11515. fi
  11516. ################################
  11517. # Search for network functions (like connect())
  11518. ################################
  11519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
  11520. $as_echo_n "checking for library containing socket... " >&6; }
  11521. if ${ac_cv_search_socket+:} false; then :
  11522. $as_echo_n "(cached) " >&6
  11523. else
  11524. ac_func_search_save_LIBS=$LIBS
  11525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11526. /* end confdefs.h. */
  11527. /* Override any GCC internal prototype to avoid an error.
  11528. Use char because int might match the return type of a GCC
  11529. builtin and then its argument prototype would still apply. */
  11530. #ifdef __cplusplus
  11531. extern "C"
  11532. #endif
  11533. char socket ();
  11534. int
  11535. main ()
  11536. {
  11537. return socket ();
  11538. ;
  11539. return 0;
  11540. }
  11541. _ACEOF
  11542. for ac_lib in '' socket; do
  11543. if test -z "$ac_lib"; then
  11544. ac_res="none required"
  11545. else
  11546. ac_res=-l$ac_lib
  11547. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  11548. fi
  11549. if ac_fn_c_try_link "$LINENO"; then :
  11550. ac_cv_search_socket=$ac_res
  11551. fi
  11552. rm -f core conftest.err conftest.$ac_objext \
  11553. conftest$ac_exeext
  11554. if ${ac_cv_search_socket+:} false; then :
  11555. break
  11556. fi
  11557. done
  11558. if ${ac_cv_search_socket+:} false; then :
  11559. else
  11560. ac_cv_search_socket=no
  11561. fi
  11562. rm conftest.$ac_ext
  11563. LIBS=$ac_func_search_save_LIBS
  11564. fi
  11565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
  11566. $as_echo "$ac_cv_search_socket" >&6; }
  11567. ac_res=$ac_cv_search_socket
  11568. if test "$ac_res" != no; then :
  11569. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  11570. fi
  11571. ################################
  11572. # Check for regex.h
  11573. ################################
  11574. for ac_header in regex.h
  11575. do :
  11576. ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
  11577. if test "x$ac_cv_header_regex_h" = xyes; then :
  11578. cat >>confdefs.h <<_ACEOF
  11579. #define HAVE_REGEX_H 1
  11580. _ACEOF
  11581. else
  11582. as_fn_error $? "regex.h not found: regular expressions are not supported" "$LINENO" 5
  11583. fi
  11584. done
  11585. ################################
  11586. # Internal getopt()
  11587. ################################
  11588. # Check whether --with-internal-getopt was given.
  11589. if test "${with_internal_getopt+set}" = set; then :
  11590. withval=$with_internal_getopt;
  11591. else
  11592. with_internal_getopt=no
  11593. fi
  11594. if test x$with_internal_getopt != xno; then
  11595. $as_echo "#define WITH_INTERNAL_GETOPT 1" >>confdefs.h
  11596. case " $LIBOBJS " in
  11597. *" getopt.$ac_objext "* ) ;;
  11598. *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
  11599. ;;
  11600. esac
  11601. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use internal implementation of getopt() and getopt_long()" >&5
  11602. $as_echo "$as_me: WARNING: Use internal implementation of getopt() and getopt_long()" >&2;}
  11603. else
  11604. for ac_header in getopt.h
  11605. do :
  11606. ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
  11607. if test "x$ac_cv_header_getopt_h" = xyes; then :
  11608. cat >>confdefs.h <<_ACEOF
  11609. #define HAVE_GETOPT_H 1
  11610. _ACEOF
  11611. found_getopt_h=yes
  11612. else
  11613. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: getopt.h not found: only short parameters can be used on command line" >&5
  11614. $as_echo "$as_me: WARNING: getopt.h not found: only short parameters can be used on command line" >&2;}
  11615. fi
  11616. done
  11617. fi
  11618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt_long()" >&5
  11619. $as_echo_n "checking for getopt_long()... " >&6; }
  11620. if test x$with_internal_getopt = xyes -o x$found_getopt_h = xyes; then
  11621. $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
  11622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11623. $as_echo "yes" >&6; }
  11624. else
  11625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11626. $as_echo "no" >&6; }
  11627. fi
  11628. ################################
  11629. # Check for locale.h
  11630. ################################
  11631. for ac_header in locale.h
  11632. do :
  11633. ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
  11634. if test "x$ac_cv_header_locale_h" = xyes; then :
  11635. cat >>confdefs.h <<_ACEOF
  11636. #define HAVE_LOCALE_H 1
  11637. _ACEOF
  11638. else
  11639. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: locale.h not found: the locales is not supported" >&5
  11640. $as_echo "$as_me: WARNING: locale.h not found: the locales is not supported" >&2;}
  11641. fi
  11642. done
  11643. ################################
  11644. # Check for CODESET within nl_langinfo
  11645. ################################
  11646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  11647. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  11648. if ${am_cv_langinfo_codeset+:} false; then :
  11649. $as_echo_n "(cached) " >&6
  11650. else
  11651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11652. /* end confdefs.h. */
  11653. #include <langinfo.h>
  11654. int
  11655. main ()
  11656. {
  11657. char* cs = nl_langinfo(CODESET); return !cs;
  11658. ;
  11659. return 0;
  11660. }
  11661. _ACEOF
  11662. if ac_fn_c_try_link "$LINENO"; then :
  11663. am_cv_langinfo_codeset=yes
  11664. else
  11665. am_cv_langinfo_codeset=no
  11666. fi
  11667. rm -f core conftest.err conftest.$ac_objext \
  11668. conftest$ac_exeext conftest.$ac_ext
  11669. fi
  11670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  11671. $as_echo "$am_cv_langinfo_codeset" >&6; }
  11672. if test $am_cv_langinfo_codeset = yes; then
  11673. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  11674. fi
  11675. ################################
  11676. # Check for pwd.h and grp.h
  11677. ################################
  11678. for ac_header in pwd.h
  11679. do :
  11680. ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
  11681. if test "x$ac_cv_header_pwd_h" = xyes; then :
  11682. cat >>confdefs.h <<_ACEOF
  11683. #define HAVE_PWD_H 1
  11684. _ACEOF
  11685. else
  11686. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pwd.h not found: the pwd operations is not supported" >&5
  11687. $as_echo "$as_me: WARNING: pwd.h not found: the pwd operations is not supported" >&2;}
  11688. fi
  11689. done
  11690. for ac_header in grp.h
  11691. do :
  11692. ac_fn_c_check_header_mongrel "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
  11693. if test "x$ac_cv_header_grp_h" = xyes; then :
  11694. cat >>confdefs.h <<_ACEOF
  11695. #define HAVE_GRP_H 1
  11696. _ACEOF
  11697. else
  11698. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: grp.h not found: the grp operations is not supported" >&5
  11699. $as_echo "$as_me: WARNING: grp.h not found: the grp operations is not supported" >&2;}
  11700. fi
  11701. done
  11702. ################################
  11703. # Check for chroot
  11704. ################################
  11705. for ac_func in chroot
  11706. do :
  11707. ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
  11708. if test "x$ac_cv_func_chroot" = xyes; then :
  11709. cat >>confdefs.h <<_ACEOF
  11710. #define HAVE_CHROOT 1
  11711. _ACEOF
  11712. else
  11713. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: chroot() not found: the choot is not supported" >&5
  11714. $as_echo "$as_me: WARNING: chroot() not found: the choot is not supported" >&2;}
  11715. fi
  11716. done
  11717. ################################
  11718. # Check for dlopen
  11719. ################################
  11720. CLISH_PLUGIN_BUILTIN_LIST=
  11721. CLISH_PLUGIN_BUILTIN_DEFS=
  11722. CLISH_PLUGIN_BUILTIN_LIBS=
  11723. for ac_header in dlfcn.h
  11724. do :
  11725. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  11726. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  11727. cat >>confdefs.h <<_ACEOF
  11728. #define HAVE_DLFCN_H 1
  11729. _ACEOF
  11730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  11731. $as_echo_n "checking for library containing dlopen... " >&6; }
  11732. if ${ac_cv_search_dlopen+:} false; then :
  11733. $as_echo_n "(cached) " >&6
  11734. else
  11735. ac_func_search_save_LIBS=$LIBS
  11736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11737. /* end confdefs.h. */
  11738. /* Override any GCC internal prototype to avoid an error.
  11739. Use char because int might match the return type of a GCC
  11740. builtin and then its argument prototype would still apply. */
  11741. #ifdef __cplusplus
  11742. extern "C"
  11743. #endif
  11744. char dlopen ();
  11745. int
  11746. main ()
  11747. {
  11748. return dlopen ();
  11749. ;
  11750. return 0;
  11751. }
  11752. _ACEOF
  11753. for ac_lib in '' dl dld; do
  11754. if test -z "$ac_lib"; then
  11755. ac_res="none required"
  11756. else
  11757. ac_res=-l$ac_lib
  11758. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  11759. fi
  11760. if ac_fn_c_try_link "$LINENO"; then :
  11761. ac_cv_search_dlopen=$ac_res
  11762. fi
  11763. rm -f core conftest.err conftest.$ac_objext \
  11764. conftest$ac_exeext
  11765. if ${ac_cv_search_dlopen+:} false; then :
  11766. break
  11767. fi
  11768. done
  11769. if ${ac_cv_search_dlopen+:} false; then :
  11770. else
  11771. ac_cv_search_dlopen=no
  11772. fi
  11773. rm conftest.$ac_ext
  11774. LIBS=$ac_func_search_save_LIBS
  11775. fi
  11776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  11777. $as_echo "$ac_cv_search_dlopen" >&6; }
  11778. ac_res=$ac_cv_search_dlopen
  11779. if test "$ac_res" != no; then :
  11780. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  11781. else
  11782. as_fn_error $? "unable to find the dlopen() function" "$LINENO" 5
  11783. fi
  11784. else
  11785. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlfcn.h not found: the dl operations is not supported" >&5
  11786. $as_echo "$as_me: WARNING: dlfcn.h not found: the dl operations is not supported" >&2;}
  11787. CLISH_PLUGIN_BUILTIN_LIBS="$CLISH_PLUGIN_BUILTIN_LIBS clish_plugin_clish.la"
  11788. CLISH_PLUGIN_BUILTIN_DEFS="$CLISH_PLUGIN_BUILTIN_DEFS CLISH_PLUGIN_INIT(clish);"
  11789. CLISH_PLUGIN_BUILTIN_LIST="$CLISH_PLUGIN_BUILTIN_LIST { \"clish\", clish_plugin_clish_init },"
  11790. if test x$use_lua != xno; then
  11791. CLISH_PLUGIN_BUILTIN_LIBS="$CLISH_PLUGIN_BUILTIN_LIBS clish_plugin_lua.la"
  11792. CLISH_PLUGIN_BUILTIN_DEFS="$CLISH_PLUGIN_BUILTIN_DEFS CLISH_PLUGIN_INIT(lua);"
  11793. CLISH_PLUGIN_BUILTIN_LIST="$CLISH_PLUGIN_BUILTIN_LIST { \"lua\", clish_plugin_lua_init },"
  11794. fi
  11795. fi
  11796. done
  11797. #AC_CONFIG_FILES([clish/plugin_builtin.c])
  11798. ################################
  11799. # Variables to install plugins
  11800. ################################
  11801. DBS_SUBDIR=dbs
  11802. PLUGINS_SUBDIR=plugins
  11803. ################################
  11804. # Check for mandatory faux library
  11805. ################################
  11806. # Check whether --with-faux was given.
  11807. if test "${with_faux+set}" = set; then :
  11808. withval=$with_faux; use_faux=$withval
  11809. else
  11810. use_faux=yes
  11811. fi
  11812. if test x$use_faux != xyes; then :
  11813. CPPFLAGS="-I${use_faux} ${CPPFLAGS}"
  11814. LDFLAGS="-L${use_faux}/.libs ${LDFLAGS}"
  11815. fi
  11816. for ac_header in faux/faux.h
  11817. do :
  11818. ac_fn_c_check_header_mongrel "$LINENO" "faux/faux.h" "ac_cv_header_faux_faux_h" "$ac_includes_default"
  11819. if test "x$ac_cv_header_faux_faux_h" = xyes; then :
  11820. cat >>confdefs.h <<_ACEOF
  11821. #define HAVE_FAUX_FAUX_H 1
  11822. _ACEOF
  11823. else
  11824. as_fn_error $? "cannot find <faux/faux.h> header file" "$LINENO" 5
  11825. fi
  11826. done
  11827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing faux_zmalloc" >&5
  11828. $as_echo_n "checking for library containing faux_zmalloc... " >&6; }
  11829. if ${ac_cv_search_faux_zmalloc+:} false; then :
  11830. $as_echo_n "(cached) " >&6
  11831. else
  11832. ac_func_search_save_LIBS=$LIBS
  11833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11834. /* end confdefs.h. */
  11835. /* Override any GCC internal prototype to avoid an error.
  11836. Use char because int might match the return type of a GCC
  11837. builtin and then its argument prototype would still apply. */
  11838. #ifdef __cplusplus
  11839. extern "C"
  11840. #endif
  11841. char faux_zmalloc ();
  11842. int
  11843. main ()
  11844. {
  11845. return faux_zmalloc ();
  11846. ;
  11847. return 0;
  11848. }
  11849. _ACEOF
  11850. for ac_lib in '' faux; do
  11851. if test -z "$ac_lib"; then
  11852. ac_res="none required"
  11853. else
  11854. ac_res=-l$ac_lib
  11855. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  11856. fi
  11857. if ac_fn_c_try_link "$LINENO"; then :
  11858. ac_cv_search_faux_zmalloc=$ac_res
  11859. fi
  11860. rm -f core conftest.err conftest.$ac_objext \
  11861. conftest$ac_exeext
  11862. if ${ac_cv_search_faux_zmalloc+:} false; then :
  11863. break
  11864. fi
  11865. done
  11866. if ${ac_cv_search_faux_zmalloc+:} false; then :
  11867. else
  11868. ac_cv_search_faux_zmalloc=no
  11869. fi
  11870. rm conftest.$ac_ext
  11871. LIBS=$ac_func_search_save_LIBS
  11872. fi
  11873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_faux_zmalloc" >&5
  11874. $as_echo "$ac_cv_search_faux_zmalloc" >&6; }
  11875. ac_res=$ac_cv_search_faux_zmalloc
  11876. if test "$ac_res" != no; then :
  11877. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  11878. else
  11879. as_fn_error $? "cannot find working faux library" "$LINENO" 5
  11880. fi
  11881. ################################
  11882. # Check for the libxml2 library
  11883. ################################
  11884. # Check whether --with-libxml2 was given.
  11885. if test "${with_libxml2+set}" = set; then :
  11886. withval=$with_libxml2; use_libxml2=$withval
  11887. else
  11888. use_libxml2=no
  11889. fi
  11890. if test x$use_libxml2 != xno; then
  11891. WITH_LIBXML2_TRUE=
  11892. WITH_LIBXML2_FALSE='#'
  11893. else
  11894. WITH_LIBXML2_TRUE='#'
  11895. WITH_LIBXML2_FALSE=
  11896. fi
  11897. case x$use_libxml2 in
  11898. xno)
  11899. /bin/true
  11900. ;;
  11901. xyes)
  11902. # I would love to avoid using pkg-config (which may not be available on
  11903. # some compilation environment) but doing so really add a lot of
  11904. # complexity to the system, as the headers don't lie in a standard
  11905. # directory (they lie in a subdirectory of a standard include directory;
  11906. # not the same thing for configure scripts).
  11907. LIBXML2_CFLAGS="`pkg-config libxml-2.0 --cflags`"
  11908. LIBXML2_LDFLAGS="`pkg-config libxml-2.0 --libs-only-L`"
  11909. LIBXML2_LIBS="`pkg-config libxml-2.0 --libs-only-l`"
  11910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDoc in -lxml2" >&5
  11911. $as_echo_n "checking for xmlNewDoc in -lxml2... " >&6; }
  11912. if ${ac_cv_lib_xml2_xmlNewDoc+:} false; then :
  11913. $as_echo_n "(cached) " >&6
  11914. else
  11915. ac_check_lib_save_LIBS=$LIBS
  11916. LIBS="-lxml2 $LIBS"
  11917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11918. /* end confdefs.h. */
  11919. /* Override any GCC internal prototype to avoid an error.
  11920. Use char because int might match the return type of a GCC
  11921. builtin and then its argument prototype would still apply. */
  11922. #ifdef __cplusplus
  11923. extern "C"
  11924. #endif
  11925. char xmlNewDoc ();
  11926. int
  11927. main ()
  11928. {
  11929. return xmlNewDoc ();
  11930. ;
  11931. return 0;
  11932. }
  11933. _ACEOF
  11934. if ac_fn_c_try_link "$LINENO"; then :
  11935. ac_cv_lib_xml2_xmlNewDoc=yes
  11936. else
  11937. ac_cv_lib_xml2_xmlNewDoc=no
  11938. fi
  11939. rm -f core conftest.err conftest.$ac_objext \
  11940. conftest$ac_exeext conftest.$ac_ext
  11941. LIBS=$ac_check_lib_save_LIBS
  11942. fi
  11943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDoc" >&5
  11944. $as_echo "$ac_cv_lib_xml2_xmlNewDoc" >&6; }
  11945. if test "x$ac_cv_lib_xml2_xmlNewDoc" = xyes; then :
  11946. cat >>confdefs.h <<_ACEOF
  11947. #define HAVE_LIBXML2 1
  11948. _ACEOF
  11949. LIBS="-lxml2 $LIBS"
  11950. else
  11951. as_fn_error $? "cannot find libxml2 headers" "$LINENO" 5
  11952. fi
  11953. # the header file is installed in a subdirectory of one of the standard
  11954. # include directory. This might prove to be a problem if the cross-
  11955. # compile environment is not complete enough (i.e. if it misses
  11956. # pkg-config, or if pkg-config returns wrong values). In most cases, the
  11957. # environment is likely to be OK so we will never hit any issue.
  11958. saved_CFLAGS="$CFLAGS"
  11959. CFLAGS="$CFLAGS $LIBXML2_CFLAGS"
  11960. ac_fn_c_check_header_compile "$LINENO" "libxml/tree.h" "ac_cv_header_libxml_tree_h" "/* */
  11961. "
  11962. if test "x$ac_cv_header_libxml_tree_h" = xyes; then :
  11963. else
  11964. as_fn_error $? "cannot find libxml2 headers" "$LINENO" 5
  11965. fi
  11966. CFLAGS="$saved_CFLAGS"
  11967. $as_echo "#define HAVE_LIB_LIBXML2 /**/" >>confdefs.h
  11968. ;;
  11969. *)
  11970. # this is probably broken. We consider that the user supplied path is
  11971. # a non-standard path. But we're not going to check anything.
  11972. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-libxml2=DIR is probably broken, just trying" >&5
  11973. $as_echo "$as_me: WARNING: --with-libxml2=DIR is probably broken, just trying" >&2;}
  11974. LIBXML2_LDFLAGS="-L${use_libxml2}/lib"
  11975. LIBXML2_CFLAGS="-I${use_libxml2}/include/libxml2"
  11976. LIBXML2_LIBS="-lxml2"
  11977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 support" >&5
  11978. $as_echo_n "checking for libxml2 support... " >&6; }
  11979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11980. $as_echo "yes" >&6; }
  11981. { $as_echo "$as_me:${as_lineno-$LINENO}: headers for libxml2 hopefully in ${use_libxml2}/include/libxml2" >&5
  11982. $as_echo "$as_me: headers for libxml2 hopefully in ${use_libxml2}/include/libxml2" >&6;}
  11983. { $as_echo "$as_me:${as_lineno-$LINENO}: library libxml2 hopefully in ${use_libxml2}/lib" >&5
  11984. $as_echo "$as_me: library libxml2 hopefully in ${use_libxml2}/lib" >&6;}
  11985. $as_echo "#define HAVE_LIB_LIBXML2 /**/" >>confdefs.h
  11986. ;;
  11987. esac
  11988. ################################
  11989. # Check for the roxml library
  11990. ################################
  11991. # Check whether --with-roxml was given.
  11992. if test "${with_roxml+set}" = set; then :
  11993. withval=$with_roxml; use_roxml=$withval
  11994. else
  11995. use_roxml=no
  11996. fi
  11997. if test x$use_roxml != xno; then
  11998. WITH_ROXML_TRUE=
  11999. WITH_ROXML_FALSE='#'
  12000. else
  12001. WITH_ROXML_TRUE='#'
  12002. WITH_ROXML_FALSE=
  12003. fi
  12004. case x$use_roxml in
  12005. xno)
  12006. /bin/true
  12007. ;;
  12008. xyes)
  12009. # we choose to NOT rely on pkg-config on this one. We may do it as
  12010. # roxml provides a .pc file but some environment (both cross-compile
  12011. # or native environment) may lack this support. The good thing is that
  12012. # it doesn't add much complexity to the configure.ac file (and we
  12013. # may move these tests to another m4 file later).
  12014. # The header is installed in the standard path
  12015. ac_fn_c_check_header_compile "$LINENO" "roxml.h" "ac_cv_header_roxml_h" "/* */
  12016. "
  12017. if test "x$ac_cv_header_roxml_h" = xyes; then :
  12018. else
  12019. as_fn_error $? "cannot find <roxml.h> header file" "$LINENO" 5
  12020. fi
  12021. # The library is installed in the standard path
  12022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roxml_load_doc in -lroxml" >&5
  12023. $as_echo_n "checking for roxml_load_doc in -lroxml... " >&6; }
  12024. if ${ac_cv_lib_roxml_roxml_load_doc+:} false; then :
  12025. $as_echo_n "(cached) " >&6
  12026. else
  12027. ac_check_lib_save_LIBS=$LIBS
  12028. LIBS="-lroxml $LIBS"
  12029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12030. /* end confdefs.h. */
  12031. /* Override any GCC internal prototype to avoid an error.
  12032. Use char because int might match the return type of a GCC
  12033. builtin and then its argument prototype would still apply. */
  12034. #ifdef __cplusplus
  12035. extern "C"
  12036. #endif
  12037. char roxml_load_doc ();
  12038. int
  12039. main ()
  12040. {
  12041. return roxml_load_doc ();
  12042. ;
  12043. return 0;
  12044. }
  12045. _ACEOF
  12046. if ac_fn_c_try_link "$LINENO"; then :
  12047. ac_cv_lib_roxml_roxml_load_doc=yes
  12048. else
  12049. ac_cv_lib_roxml_roxml_load_doc=no
  12050. fi
  12051. rm -f core conftest.err conftest.$ac_objext \
  12052. conftest$ac_exeext conftest.$ac_ext
  12053. LIBS=$ac_check_lib_save_LIBS
  12054. fi
  12055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roxml_roxml_load_doc" >&5
  12056. $as_echo "$ac_cv_lib_roxml_roxml_load_doc" >&6; }
  12057. if test "x$ac_cv_lib_roxml_roxml_load_doc" = xyes; then :
  12058. cat >>confdefs.h <<_ACEOF
  12059. #define HAVE_LIBROXML 1
  12060. _ACEOF
  12061. LIBS="-lroxml $LIBS"
  12062. else
  12063. as_fn_error $? "cannot find roxml library" "$LINENO" 5
  12064. fi
  12065. ROXML_CFLAGS=""
  12066. ROXML_LDFLAGS=""
  12067. ROXML_LIBS="-lroxml"
  12068. $as_echo "#define HAVE_LIB_ROXML /**/" >>confdefs.h
  12069. ;;
  12070. *)
  12071. # first, we check if we're not looking for an alternate include
  12072. # directory -for example, if the user feeds the script with the
  12073. # option --with-roxml=/usr/local
  12074. # NOTE: we search for include/roxml.h and inc/roxml.h to defeat
  12075. # the caching algorithm of the configure script. If someone knows
  12076. # a better way, please do not hesitate
  12077. saved_CFLAGS="$CFLAGS"
  12078. CFLAGS="$CFLAGS -I${use_roxml}"
  12079. ac_fn_c_check_header_compile "$LINENO" "include/roxml.h" "ac_cv_header_include_roxml_h" "/* */
  12080. "
  12081. if test "x$ac_cv_header_include_roxml_h" = xyes; then :
  12082. roxml_h_found=yes
  12083. else
  12084. roxml_h_found=no
  12085. fi
  12086. if test "x$roxml_h_found" = "xno"; then
  12087. # the directory might be a source directory, so check
  12088. # if the include file is to be found here
  12089. ac_fn_c_check_header_compile "$LINENO" "inc/roxml.h" "ac_cv_header_inc_roxml_h" "/* */
  12090. "
  12091. if test "x$ac_cv_header_inc_roxml_h" = xyes; then :
  12092. roxml_h_found=yes
  12093. else
  12094. roxml_h_found=no
  12095. fi
  12096. if test "x$roxml_h_found" = "xno"; then
  12097. as_fn_error $? "cannot find <roxml.h> header file" "$LINENO" 5
  12098. fi
  12099. ROXML_CFLAGS="-I${use_roxml}/inc"
  12100. { $as_echo "$as_me:${as_lineno-$LINENO}: header file <roxml.h> found in ${use_roxml}/inc" >&5
  12101. $as_echo "$as_me: header file <roxml.h> found in ${use_roxml}/inc" >&6;}
  12102. else
  12103. ROXML_CFLAGS="-I${use_roxml}/include"
  12104. { $as_echo "$as_me:${as_lineno-$LINENO}: header file <roxml.h> found in ${use_roxml}/include" >&5
  12105. $as_echo "$as_me: header file <roxml.h> found in ${use_roxml}/include" >&6;}
  12106. fi
  12107. CFLAGS="$saved_CFLAGS"
  12108. # we're doing both previous checks, but we are trying to find a library
  12109. # now, so the check themselves are a bit different
  12110. # NOTE: we search for roxml_load_doc and roxml_close to defeat
  12111. # the caching algorithm of the configure script. If someone knows
  12112. # a better way, please do not hesitate.
  12113. saved_LDFLAGS="$LDFLAGS"
  12114. LDFLAGS="$LDFLAGS -L${use_roxml}/lib"
  12115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roxml_load_doc in -lroxml" >&5
  12116. $as_echo_n "checking for roxml_load_doc in -lroxml... " >&6; }
  12117. if ${ac_cv_lib_roxml_roxml_load_doc+:} false; then :
  12118. $as_echo_n "(cached) " >&6
  12119. else
  12120. ac_check_lib_save_LIBS=$LIBS
  12121. LIBS="-lroxml $LIBS"
  12122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12123. /* end confdefs.h. */
  12124. /* Override any GCC internal prototype to avoid an error.
  12125. Use char because int might match the return type of a GCC
  12126. builtin and then its argument prototype would still apply. */
  12127. #ifdef __cplusplus
  12128. extern "C"
  12129. #endif
  12130. char roxml_load_doc ();
  12131. int
  12132. main ()
  12133. {
  12134. return roxml_load_doc ();
  12135. ;
  12136. return 0;
  12137. }
  12138. _ACEOF
  12139. if ac_fn_c_try_link "$LINENO"; then :
  12140. ac_cv_lib_roxml_roxml_load_doc=yes
  12141. else
  12142. ac_cv_lib_roxml_roxml_load_doc=no
  12143. fi
  12144. rm -f core conftest.err conftest.$ac_objext \
  12145. conftest$ac_exeext conftest.$ac_ext
  12146. LIBS=$ac_check_lib_save_LIBS
  12147. fi
  12148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roxml_roxml_load_doc" >&5
  12149. $as_echo "$ac_cv_lib_roxml_roxml_load_doc" >&6; }
  12150. if test "x$ac_cv_lib_roxml_roxml_load_doc" = xyes; then :
  12151. roxml_lib_found=yes
  12152. else
  12153. roxml_lib_found=no
  12154. fi
  12155. LDFLAGS="$saved_LDFLAGS"
  12156. if test "x$roxml_lib_found" = "xno"; then
  12157. LDFLAGS="$LDFLAGS -L${use_roxml}"
  12158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roxml_close in -lroxml" >&5
  12159. $as_echo_n "checking for roxml_close in -lroxml... " >&6; }
  12160. if ${ac_cv_lib_roxml_roxml_close+:} false; then :
  12161. $as_echo_n "(cached) " >&6
  12162. else
  12163. ac_check_lib_save_LIBS=$LIBS
  12164. LIBS="-lroxml $LIBS"
  12165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12166. /* end confdefs.h. */
  12167. /* Override any GCC internal prototype to avoid an error.
  12168. Use char because int might match the return type of a GCC
  12169. builtin and then its argument prototype would still apply. */
  12170. #ifdef __cplusplus
  12171. extern "C"
  12172. #endif
  12173. char roxml_close ();
  12174. int
  12175. main ()
  12176. {
  12177. return roxml_close ();
  12178. ;
  12179. return 0;
  12180. }
  12181. _ACEOF
  12182. if ac_fn_c_try_link "$LINENO"; then :
  12183. ac_cv_lib_roxml_roxml_close=yes
  12184. else
  12185. ac_cv_lib_roxml_roxml_close=no
  12186. fi
  12187. rm -f core conftest.err conftest.$ac_objext \
  12188. conftest$ac_exeext conftest.$ac_ext
  12189. LIBS=$ac_check_lib_save_LIBS
  12190. fi
  12191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roxml_roxml_close" >&5
  12192. $as_echo "$ac_cv_lib_roxml_roxml_close" >&6; }
  12193. if test "x$ac_cv_lib_roxml_roxml_close" = xyes; then :
  12194. cat >>confdefs.h <<_ACEOF
  12195. #define HAVE_LIBROXML 1
  12196. _ACEOF
  12197. LIBS="-lroxml $LIBS"
  12198. else
  12199. as_fn_error $? "cannot find roxml library" "$LINENO" 5
  12200. fi
  12201. LDFLAGS=$saved_LDFLAGS
  12202. ROXML_LDFLAGS="-L${use_roxml}"
  12203. ROXML_LIBS="-lroxml"
  12204. { $as_echo "$as_me:${as_lineno-$LINENO}: library roxml found in ${use_roxml}" >&5
  12205. $as_echo "$as_me: library roxml found in ${use_roxml}" >&6;}
  12206. else
  12207. ROXML_LDFLAGS="-L${use_roxml}/lib"
  12208. ROXML_LIBS="-lroxml"
  12209. { $as_echo "$as_me:${as_lineno-$LINENO}: library roxml found in ${use_roxml}/lib" >&5
  12210. $as_echo "$as_me: library roxml found in ${use_roxml}/lib" >&6;}
  12211. fi
  12212. $as_echo "#define HAVE_LIB_ROXML /**/" >>confdefs.h
  12213. ;;
  12214. esac
  12215. ################################
  12216. # Check for the expat library
  12217. ################################
  12218. # Check whether --with-expat was given.
  12219. if test "${with_expat+set}" = set; then :
  12220. withval=$with_expat; use_expat=$withval
  12221. else
  12222. use_expat=no
  12223. fi
  12224. if test x$use_expat != xno; then
  12225. WITH_EXPAT_TRUE=
  12226. WITH_EXPAT_FALSE='#'
  12227. else
  12228. WITH_EXPAT_TRUE='#'
  12229. WITH_EXPAT_FALSE=
  12230. fi
  12231. case x$use_expat in
  12232. xno)
  12233. /bin/true
  12234. ;;
  12235. xyes)
  12236. # we choose to NOT rely on pkg-config on this one. Instead, we
  12237. # check for the library and the header file - that should be
  12238. # enough.
  12239. ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "/* */
  12240. "
  12241. if test "x$ac_cv_header_expat_h" = xyes; then :
  12242. expat_h_found=yes
  12243. else
  12244. expat_h_found=no
  12245. fi
  12246. if test "x$expat_h_found" != "xyes"; then
  12247. ac_fn_c_check_header_compile "$LINENO" "bsdxml.h" "ac_cv_header_bsdxml_h" "/* */
  12248. "
  12249. if test "x$ac_cv_header_bsdxml_h" = xyes; then :
  12250. expat_h_found=yes
  12251. else
  12252. expat_h_found=no
  12253. fi
  12254. if test "x$expat_h_found" != "xyes"; then
  12255. as_fn_error $? "cannot find <expat.h> header file" "$LINENO" 5
  12256. fi
  12257. fi
  12258. EXPAT_CFLAGS=""
  12259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
  12260. $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
  12261. if ${ac_cv_lib_expat_XML_ParserCreate+:} false; then :
  12262. $as_echo_n "(cached) " >&6
  12263. else
  12264. ac_check_lib_save_LIBS=$LIBS
  12265. LIBS="-lexpat $LIBS"
  12266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12267. /* end confdefs.h. */
  12268. /* Override any GCC internal prototype to avoid an error.
  12269. Use char because int might match the return type of a GCC
  12270. builtin and then its argument prototype would still apply. */
  12271. #ifdef __cplusplus
  12272. extern "C"
  12273. #endif
  12274. char XML_ParserCreate ();
  12275. int
  12276. main ()
  12277. {
  12278. return XML_ParserCreate ();
  12279. ;
  12280. return 0;
  12281. }
  12282. _ACEOF
  12283. if ac_fn_c_try_link "$LINENO"; then :
  12284. ac_cv_lib_expat_XML_ParserCreate=yes
  12285. else
  12286. ac_cv_lib_expat_XML_ParserCreate=no
  12287. fi
  12288. rm -f core conftest.err conftest.$ac_objext \
  12289. conftest$ac_exeext conftest.$ac_ext
  12290. LIBS=$ac_check_lib_save_LIBS
  12291. fi
  12292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  12293. $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  12294. if test "x$ac_cv_lib_expat_XML_ParserCreate" = xyes; then :
  12295. expat_lib_found=yes
  12296. else
  12297. expat_lib_found=no
  12298. fi
  12299. if test "x$expat_lib_found" != "xyes"; then
  12300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lbsdxml" >&5
  12301. $as_echo_n "checking for XML_ParserCreate in -lbsdxml... " >&6; }
  12302. if ${ac_cv_lib_bsdxml_XML_ParserCreate+:} false; then :
  12303. $as_echo_n "(cached) " >&6
  12304. else
  12305. ac_check_lib_save_LIBS=$LIBS
  12306. LIBS="-lbsdxml $LIBS"
  12307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12308. /* end confdefs.h. */
  12309. /* Override any GCC internal prototype to avoid an error.
  12310. Use char because int might match the return type of a GCC
  12311. builtin and then its argument prototype would still apply. */
  12312. #ifdef __cplusplus
  12313. extern "C"
  12314. #endif
  12315. char XML_ParserCreate ();
  12316. int
  12317. main ()
  12318. {
  12319. return XML_ParserCreate ();
  12320. ;
  12321. return 0;
  12322. }
  12323. _ACEOF
  12324. if ac_fn_c_try_link "$LINENO"; then :
  12325. ac_cv_lib_bsdxml_XML_ParserCreate=yes
  12326. else
  12327. ac_cv_lib_bsdxml_XML_ParserCreate=no
  12328. fi
  12329. rm -f core conftest.err conftest.$ac_objext \
  12330. conftest$ac_exeext conftest.$ac_ext
  12331. LIBS=$ac_check_lib_save_LIBS
  12332. fi
  12333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsdxml_XML_ParserCreate" >&5
  12334. $as_echo "$ac_cv_lib_bsdxml_XML_ParserCreate" >&6; }
  12335. if test "x$ac_cv_lib_bsdxml_XML_ParserCreate" = xyes; then :
  12336. cat >>confdefs.h <<_ACEOF
  12337. #define HAVE_LIBBSDXML 1
  12338. _ACEOF
  12339. LIBS="-lbsdxml $LIBS"
  12340. else
  12341. as_fn_error $? "cannot find expat library" "$LINENO" 5
  12342. fi
  12343. EXPAT_LIBS="-lbsdxml"
  12344. $as_echo "#define HAVE_LIB_BSDXML /**/" >>confdefs.h
  12345. else
  12346. EXPAT_LIBS="-lexpat"
  12347. fi
  12348. EXPAT_LDFLAGS=""
  12349. $as_echo "#define HAVE_LIB_EXPAT /**/" >>confdefs.h
  12350. ;;
  12351. *)
  12352. # this is probably broken. We consider that the user supplied path is
  12353. # a non-standard path. But we're not going to check anything.
  12354. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-expat=DIR is probably broken, just trying" >&5
  12355. $as_echo "$as_me: WARNING: --with-expat=DIR is probably broken, just trying" >&2;}
  12356. EXPAT_LDFLAGS="-L${use_expat}/lib"
  12357. EXPAT_CFLAGS="-I${use_expat}/include"
  12358. EXPAT_LIBS="-lexpat"
  12359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expat support" >&5
  12360. $as_echo_n "checking for expat support... " >&6; }
  12361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12362. $as_echo "yes" >&6; }
  12363. { $as_echo "$as_me:${as_lineno-$LINENO}: headers for expat hopefully in ${use_expat}/include" >&5
  12364. $as_echo "$as_me: headers for expat hopefully in ${use_expat}/include" >&6;}
  12365. { $as_echo "$as_me:${as_lineno-$LINENO}: library expat hopefully in ${use_expat}/lib" >&5
  12366. $as_echo "$as_me: library expat hopefully in ${use_expat}/lib" >&6;}
  12367. $as_echo "#define HAVE_LIB_EXPAT /**/" >>confdefs.h
  12368. ;;
  12369. esac
  12370. ################################
  12371. # Check for Lua support
  12372. ################################
  12373. # Check whether --with-lua was given.
  12374. if test "${with_lua+set}" = set; then :
  12375. withval=$with_lua; use_lua=$withval
  12376. else
  12377. use_lua=no
  12378. fi
  12379. if test x$use_lua != xno; then
  12380. WITH_LUA_TRUE=
  12381. WITH_LUA_FALSE='#'
  12382. else
  12383. WITH_LUA_TRUE='#'
  12384. WITH_LUA_FALSE=
  12385. fi
  12386. if test x$use_lua != xno; then
  12387. if test x$use_lua != xyes; then
  12388. CPPFLAGS="${CPPFLAGS} -I$use_lua/include"
  12389. LDFLAGS="${LDFLAGS} -L$use_lua/lib"
  12390. fi
  12391. if test x$LUA_VERSION = x; then
  12392. if test "x$LUA" != 'x'; then :
  12393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LUA is a Lua interpreter" >&5
  12394. $as_echo_n "checking if $LUA is a Lua interpreter... " >&6; }
  12395. _ax_lua_factorial=`$LUA 2>/dev/null -e '
  12396. -- a simple factorial
  12397. function fact (n)
  12398. if n == 0 then
  12399. return 1
  12400. else
  12401. return n * fact(n-1)
  12402. end
  12403. end
  12404. print("fact(5) is " .. fact(5))'`
  12405. if test "$_ax_lua_factorial" = 'fact(5) is 120'; then :
  12406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12407. $as_echo "yes" >&6; }
  12408. else
  12409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12410. $as_echo "no" >&6; }
  12411. as_fn_error $? "not a Lua interpreter" "$LINENO" 5
  12412. fi
  12413. _ax_check_text="whether $LUA version >= 5.1"
  12414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $_ax_check_text" >&5
  12415. $as_echo_n "checking $_ax_check_text... " >&6; }
  12416. _ax_lua_good_version=`$LUA -e '
  12417. -- a script to compare versions
  12418. function verstr2num(verstr)
  12419. local _, _, majorver, minorver = string.find(verstr, "^(%d+)%.(%d+)")
  12420. if majorver and minorver then
  12421. return tonumber(majorver) * 100 + tonumber(minorver)
  12422. end
  12423. end
  12424. local minver = verstr2num("5.1")
  12425. local _, _, trimver = string.find(_VERSION, "^Lua (.*)")
  12426. local ver = verstr2num(trimver)
  12427. local maxver = verstr2num("") or 1e9
  12428. if minver <= ver and ver < maxver then
  12429. print("yes")
  12430. else
  12431. print("no")
  12432. end'`
  12433. if test "x$_ax_lua_good_version" = "xyes"; then :
  12434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12435. $as_echo "yes" >&6; }
  12436. else
  12437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12438. $as_echo "no" >&6; }
  12439. as_fn_error $? "version is out of range for specified LUA" "$LINENO" 5
  12440. fi
  12441. ax_display_LUA=$LUA
  12442. else
  12443. _ax_check_text="for a Lua interpreter with version >= 5.1"
  12444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $_ax_check_text" >&5
  12445. $as_echo_n "checking $_ax_check_text... " >&6; }
  12446. if ${ax_cv_pathless_LUA+:} false; then :
  12447. $as_echo_n "(cached) " >&6
  12448. else
  12449. for ax_cv_pathless_LUA in lua lua5.3 lua53 lua5.2 lua52 lua5.1 lua51 lua50 none; do
  12450. test "x$ax_cv_pathless_LUA" = 'xnone' && break
  12451. _ax_lua_factorial=`$ax_cv_pathless_LUA 2>/dev/null -e '
  12452. -- a simple factorial
  12453. function fact (n)
  12454. if n == 0 then
  12455. return 1
  12456. else
  12457. return n * fact(n-1)
  12458. end
  12459. end
  12460. print("fact(5) is " .. fact(5))'`
  12461. if test "$_ax_lua_factorial" = 'fact(5) is 120'; then :
  12462. else
  12463. continue
  12464. fi
  12465. _ax_lua_good_version=`$ax_cv_pathless_LUA -e '
  12466. -- a script to compare versions
  12467. function verstr2num(verstr)
  12468. local _, _, majorver, minorver = string.find(verstr, "^(%d+)%.(%d+)")
  12469. if majorver and minorver then
  12470. return tonumber(majorver) * 100 + tonumber(minorver)
  12471. end
  12472. end
  12473. local minver = verstr2num("5.1")
  12474. local _, _, trimver = string.find(_VERSION, "^Lua (.*)")
  12475. local ver = verstr2num(trimver)
  12476. local maxver = verstr2num("") or 1e9
  12477. if minver <= ver and ver < maxver then
  12478. print("yes")
  12479. else
  12480. print("no")
  12481. end'`
  12482. if test "x$_ax_lua_good_version" = "xyes"; then :
  12483. break
  12484. fi
  12485. done
  12486. fi
  12487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_pathless_LUA" >&5
  12488. $as_echo "$ax_cv_pathless_LUA" >&6; }
  12489. if test "x$ax_cv_pathless_LUA" = 'xnone'; then :
  12490. LUA=':'
  12491. else
  12492. # Extract the first word of "$ax_cv_pathless_LUA", so it can be a program name with args.
  12493. set dummy $ax_cv_pathless_LUA; ac_word=$2
  12494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12495. $as_echo_n "checking for $ac_word... " >&6; }
  12496. if ${ac_cv_path_LUA+:} false; then :
  12497. $as_echo_n "(cached) " >&6
  12498. else
  12499. case $LUA in
  12500. [\\/]* | ?:[\\/]*)
  12501. ac_cv_path_LUA="$LUA" # Let the user override the test with a path.
  12502. ;;
  12503. *)
  12504. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12505. for as_dir in $PATH
  12506. do
  12507. IFS=$as_save_IFS
  12508. test -z "$as_dir" && as_dir=.
  12509. for ac_exec_ext in '' $ac_executable_extensions; do
  12510. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12511. ac_cv_path_LUA="$as_dir/$ac_word$ac_exec_ext"
  12512. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12513. break 2
  12514. fi
  12515. done
  12516. done
  12517. IFS=$as_save_IFS
  12518. ;;
  12519. esac
  12520. fi
  12521. LUA=$ac_cv_path_LUA
  12522. if test -n "$LUA"; then
  12523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LUA" >&5
  12524. $as_echo "$LUA" >&6; }
  12525. else
  12526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12527. $as_echo "no" >&6; }
  12528. fi
  12529. fi
  12530. ax_display_LUA=$ax_cv_pathless_LUA
  12531. fi
  12532. if test "x$LUA" = 'x:'; then :
  12533. as_fn_error $? "cannot find suitable Lua interpreter" "$LINENO" 5
  12534. else
  12535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ax_display_LUA version" >&5
  12536. $as_echo_n "checking for $ax_display_LUA version... " >&6; }
  12537. if ${ax_cv_lua_version+:} false; then :
  12538. $as_echo_n "(cached) " >&6
  12539. else
  12540. ax_cv_lua_version=`$LUA -e '
  12541. -- return a version number in X.Y format
  12542. local _, _, ver = string.find(_VERSION, "^Lua (%d+%.%d+)")
  12543. print(ver)'`
  12544. fi
  12545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lua_version" >&5
  12546. $as_echo "$ax_cv_lua_version" >&6; }
  12547. if test "x$ax_cv_lua_version" = 'x'; then :
  12548. as_fn_error $? "invalid Lua version number" "$LINENO" 5
  12549. fi
  12550. LUA_VERSION=$ax_cv_lua_version
  12551. LUA_SHORT_VERSION=`echo "$LUA_VERSION" | $SED 's|\.||'`
  12552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ax_display_LUA platform" >&5
  12553. $as_echo_n "checking for $ax_display_LUA platform... " >&6; }
  12554. if ${ax_cv_lua_platform+:} false; then :
  12555. $as_echo_n "(cached) " >&6
  12556. else
  12557. ax_cv_lua_platform=`$LUA -e 'print("unknown")'`
  12558. fi
  12559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lua_platform" >&5
  12560. $as_echo "$ax_cv_lua_platform" >&6; }
  12561. LUA_PLATFORM=$ax_cv_lua_platform
  12562. LUA_PREFIX='${prefix}'
  12563. LUA_EXEC_PREFIX='${exec_prefix}'
  12564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ax_display_LUA script directory" >&5
  12565. $as_echo_n "checking for $ax_display_LUA script directory... " >&6; }
  12566. if ${ax_cv_lua_luadir+:} false; then :
  12567. $as_echo_n "(cached) " >&6
  12568. else
  12569. if test "x$prefix" = 'xNONE'; then :
  12570. ax_lua_prefix=$ac_default_prefix
  12571. else
  12572. ax_lua_prefix=$prefix
  12573. fi
  12574. ax_cv_lua_luadir="$LUA_PREFIX/share/lua/$LUA_VERSION"
  12575. ax_lua_prefixed_path=`$LUA -e '
  12576. -- get the path based on search type
  12577. local searchtype = "script"
  12578. local paths = ""
  12579. if searchtype == "script" then
  12580. paths = (package and package.path) or LUA_PATH
  12581. elseif searchtype == "module" then
  12582. paths = (package and package.cpath) or LUA_CPATH
  12583. end
  12584. -- search for the prefix
  12585. local prefix = "'$ax_lua_prefix'"
  12586. local minpath = ""
  12587. local mindepth = 1e9
  12588. string.gsub(paths, "([^;]+)",
  12589. function (path)
  12590. path = string.gsub(path, "%?.*$", "")
  12591. path = string.gsub(path, "/[^/]*$", "")
  12592. if string.find(path, prefix) then
  12593. local depth = string.len(string.gsub(path, "[^/]", ""))
  12594. if depth < mindepth then
  12595. minpath = path
  12596. mindepth = depth
  12597. end
  12598. end
  12599. end)
  12600. print(minpath)'`
  12601. if test "x$ax_lua_prefixed_path" != 'x'; then :
  12602. _ax_strip_prefix=`echo "$ax_lua_prefix" | $SED 's|.|.|g'`
  12603. ax_cv_lua_luadir=`echo "$ax_lua_prefixed_path" | \
  12604. $SED "s|^$_ax_strip_prefix|$LUA_PREFIX|"`
  12605. fi
  12606. fi
  12607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lua_luadir" >&5
  12608. $as_echo "$ax_cv_lua_luadir" >&6; }
  12609. luadir=$ax_cv_lua_luadir
  12610. pkgluadir=\${luadir}/$PACKAGE
  12611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ax_display_LUA module directory" >&5
  12612. $as_echo_n "checking for $ax_display_LUA module directory... " >&6; }
  12613. if ${ax_cv_lua_luaexecdir+:} false; then :
  12614. $as_echo_n "(cached) " >&6
  12615. else
  12616. if test "x$exec_prefix" = 'xNONE'; then :
  12617. ax_lua_exec_prefix=$ax_lua_prefix
  12618. else
  12619. ax_lua_exec_prefix=$exec_prefix
  12620. fi
  12621. ax_cv_lua_luaexecdir="$LUA_EXEC_PREFIX/lib/lua/$LUA_VERSION"
  12622. ax_lua_prefixed_path=`$LUA -e '
  12623. -- get the path based on search type
  12624. local searchtype = "module"
  12625. local paths = ""
  12626. if searchtype == "script" then
  12627. paths = (package and package.path) or LUA_PATH
  12628. elseif searchtype == "module" then
  12629. paths = (package and package.cpath) or LUA_CPATH
  12630. end
  12631. -- search for the prefix
  12632. local prefix = "'$ax_lua_exec_prefix'"
  12633. local minpath = ""
  12634. local mindepth = 1e9
  12635. string.gsub(paths, "([^;]+)",
  12636. function (path)
  12637. path = string.gsub(path, "%?.*$", "")
  12638. path = string.gsub(path, "/[^/]*$", "")
  12639. if string.find(path, prefix) then
  12640. local depth = string.len(string.gsub(path, "[^/]", ""))
  12641. if depth < mindepth then
  12642. minpath = path
  12643. mindepth = depth
  12644. end
  12645. end
  12646. end)
  12647. print(minpath)'`
  12648. if test "x$ax_lua_prefixed_path" != 'x'; then :
  12649. _ax_strip_prefix=`echo "$ax_lua_exec_prefix" | $SED 's|.|.|g'`
  12650. ax_cv_lua_luaexecdir=`echo "$ax_lua_prefixed_path" | \
  12651. $SED "s|^$_ax_strip_prefix|$LUA_EXEC_PREFIX|"`
  12652. fi
  12653. fi
  12654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lua_luaexecdir" >&5
  12655. $as_echo "$ax_cv_lua_luaexecdir" >&6; }
  12656. luaexecdir=$ax_cv_lua_luaexecdir
  12657. pkgluaexecdir=\${luaexecdir}/$PACKAGE
  12658. fi
  12659. fi
  12660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LUA_VERSION is defined" >&5
  12661. $as_echo_n "checking if LUA_VERSION is defined... " >&6; }
  12662. if test "x$LUA_VERSION" != 'x'; then :
  12663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12664. $as_echo "yes" >&6; }
  12665. else
  12666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12667. $as_echo "no" >&6; }
  12668. as_fn_error $? "cannot check Lua headers without knowing LUA_VERSION" "$LINENO" 5
  12669. fi
  12670. LUA_SHORT_VERSION=`echo "$LUA_VERSION" | $SED 's|\.||'`
  12671. _ax_lua_saved_cppflags=$CPPFLAGS
  12672. CPPFLAGS="$CPPFLAGS $LUA_INCLUDE"
  12673. for ac_header in lua.h lualib.h lauxlib.h luaconf.h
  12674. do :
  12675. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12676. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12677. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  12678. cat >>confdefs.h <<_ACEOF
  12679. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12680. _ACEOF
  12681. fi
  12682. done
  12683. CPPFLAGS=$_ax_lua_saved_cppflags
  12684. if test "x$LUA_INCLUDE" = 'x' &&
  12685. test "x$ac_cv_header_lua_h" != 'xyes'; then :
  12686. for _ax_include_path in /usr/include/lua$LUA_VERSION \
  12687. /usr/include/lua-$LUA_VERSION \
  12688. /usr/include/lua/$LUA_VERSION \
  12689. /usr/include/lua$LUA_SHORT_VERSION \
  12690. /usr/local/include/lua$LUA_VERSION \
  12691. /usr/local/include/lua-$LUA_VERSION \
  12692. /usr/local/include/lua/$LUA_VERSION \
  12693. /usr/local/include/lua$LUA_SHORT_VERSION \
  12694. ; do
  12695. test ! -d "$_ax_include_path" && continue
  12696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Lua headers in" >&5
  12697. $as_echo_n "checking for Lua headers in... " >&6; }
  12698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ax_include_path" >&5
  12699. $as_echo "$_ax_include_path" >&6; }
  12700. { ac_cv_header_lua_h=; unset ac_cv_header_lua_h;}
  12701. { ac_cv_header_lualib_h=; unset ac_cv_header_lualib_h;}
  12702. { ac_cv_header_lauxlib_h=; unset ac_cv_header_lauxlib_h;}
  12703. { ac_cv_header_luaconf_h=; unset ac_cv_header_luaconf_h;}
  12704. _ax_lua_saved_cppflags=$CPPFLAGS
  12705. CPPFLAGS="$CPPFLAGS -I$_ax_include_path"
  12706. for ac_header in lua.h lualib.h lauxlib.h luaconf.h
  12707. do :
  12708. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12709. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12710. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  12711. cat >>confdefs.h <<_ACEOF
  12712. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12713. _ACEOF
  12714. fi
  12715. done
  12716. CPPFLAGS=$_ax_lua_saved_cppflags
  12717. if test "x$ac_cv_header_lua_h" = 'xyes'; then :
  12718. LUA_INCLUDE="-I$_ax_include_path"
  12719. break
  12720. fi
  12721. done
  12722. fi
  12723. if test "x$ac_cv_header_lua_h" = 'xyes'; then :
  12724. if test "x$cross_compiling" != 'xyes'; then :
  12725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Lua header version" >&5
  12726. $as_echo_n "checking for Lua header version... " >&6; }
  12727. if ${ax_cv_lua_header_version+:} false; then :
  12728. $as_echo_n "(cached) " >&6
  12729. else
  12730. _ax_lua_saved_cppflags=$CPPFLAGS
  12731. CPPFLAGS="$CPPFLAGS $LUA_INCLUDE"
  12732. if test "$cross_compiling" = yes; then :
  12733. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12734. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12735. as_fn_error $? "cannot run test program while cross compiling
  12736. See \`config.log' for more details" "$LINENO" 5; }
  12737. else
  12738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12739. /* end confdefs.h. */
  12740. #include <lua.h>
  12741. #include <stdlib.h>
  12742. #include <stdio.h>
  12743. int main(int argc, char ** argv)
  12744. {
  12745. if(argc > 1) printf("%s", LUA_VERSION);
  12746. exit(EXIT_SUCCESS);
  12747. }
  12748. _ACEOF
  12749. if ac_fn_c_try_run "$LINENO"; then :
  12750. ax_cv_lua_header_version=`./conftest$EXEEXT p | \
  12751. $SED -n "s|^Lua \([0-9]\{1,\}\.[0-9]\{1,\}\).\{0,\}|\1|p"`
  12752. else
  12753. ax_cv_lua_header_version='unknown'
  12754. fi
  12755. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12756. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12757. fi
  12758. CPPFLAGS=$_ax_lua_saved_cppflags
  12759. fi
  12760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lua_header_version" >&5
  12761. $as_echo "$ax_cv_lua_header_version" >&6; }
  12762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Lua header version matches $LUA_VERSION" >&5
  12763. $as_echo_n "checking if Lua header version matches $LUA_VERSION... " >&6; }
  12764. if test "x$ax_cv_lua_header_version" = "x$LUA_VERSION"; then :
  12765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12766. $as_echo "yes" >&6; }
  12767. ax_header_version_match='yes'
  12768. else
  12769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12770. $as_echo "no" >&6; }
  12771. ax_header_version_match='no'
  12772. fi
  12773. else
  12774. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling so assuming header version number matches" >&5
  12775. $as_echo "$as_me: WARNING: cross compiling so assuming header version number matches" >&2;}
  12776. ax_header_version_match='yes'
  12777. fi
  12778. fi
  12779. if test "x$ax_header_version_match" != 'xyes' &&
  12780. test "x$LUA_INCLUDE" != 'x'; then :
  12781. as_fn_error $? "cannot find headers for specified LUA_INCLUDE" "$LINENO" 5
  12782. fi
  12783. if test "x$ax_header_version_match" = 'xyes'; then :
  12784. else
  12785. as_fn_error $? "cannot find Lua includes" "$LINENO" 5
  12786. fi
  12787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LUA_VERSION is defined" >&5
  12788. $as_echo_n "checking if LUA_VERSION is defined... " >&6; }
  12789. if test "x$LUA_VERSION" != 'x'; then :
  12790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12791. $as_echo "yes" >&6; }
  12792. else
  12793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12794. $as_echo "no" >&6; }
  12795. as_fn_error $? "cannot check Lua libs without knowing LUA_VERSION" "$LINENO" 5
  12796. fi
  12797. if test "x$LUA_LIB" != 'x'; then :
  12798. _ax_lua_saved_libs=$LIBS
  12799. LIBS="$LIBS $LUA_LIB"
  12800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lua_load" >&5
  12801. $as_echo_n "checking for library containing lua_load... " >&6; }
  12802. if ${ac_cv_search_lua_load+:} false; then :
  12803. $as_echo_n "(cached) " >&6
  12804. else
  12805. ac_func_search_save_LIBS=$LIBS
  12806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12807. /* end confdefs.h. */
  12808. /* Override any GCC internal prototype to avoid an error.
  12809. Use char because int might match the return type of a GCC
  12810. builtin and then its argument prototype would still apply. */
  12811. #ifdef __cplusplus
  12812. extern "C"
  12813. #endif
  12814. char lua_load ();
  12815. int
  12816. main ()
  12817. {
  12818. return lua_load ();
  12819. ;
  12820. return 0;
  12821. }
  12822. _ACEOF
  12823. for ac_lib in '' ; do
  12824. if test -z "$ac_lib"; then
  12825. ac_res="none required"
  12826. else
  12827. ac_res=-l$ac_lib
  12828. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12829. fi
  12830. if ac_fn_c_try_link "$LINENO"; then :
  12831. ac_cv_search_lua_load=$ac_res
  12832. fi
  12833. rm -f core conftest.err conftest.$ac_objext \
  12834. conftest$ac_exeext
  12835. if ${ac_cv_search_lua_load+:} false; then :
  12836. break
  12837. fi
  12838. done
  12839. if ${ac_cv_search_lua_load+:} false; then :
  12840. else
  12841. ac_cv_search_lua_load=no
  12842. fi
  12843. rm conftest.$ac_ext
  12844. LIBS=$ac_func_search_save_LIBS
  12845. fi
  12846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lua_load" >&5
  12847. $as_echo "$ac_cv_search_lua_load" >&6; }
  12848. ac_res=$ac_cv_search_lua_load
  12849. if test "$ac_res" != no; then :
  12850. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12851. _ax_found_lua_libs='yes'
  12852. else
  12853. _ax_found_lua_libs='no'
  12854. fi
  12855. LIBS=$_ax_lua_saved_libs
  12856. if test "x$_ax_found_lua_libs" != 'xyes'; then :
  12857. as_fn_error $? "cannot find libs for specified LUA_LIB" "$LINENO" 5
  12858. fi
  12859. else
  12860. _ax_lua_extra_libs=''
  12861. _ax_lua_saved_libs=$LIBS
  12862. LIBS="$LIBS $LUA_LIB"
  12863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exp" >&5
  12864. $as_echo_n "checking for library containing exp... " >&6; }
  12865. if ${ac_cv_search_exp+:} false; then :
  12866. $as_echo_n "(cached) " >&6
  12867. else
  12868. ac_func_search_save_LIBS=$LIBS
  12869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12870. /* end confdefs.h. */
  12871. /* Override any GCC internal prototype to avoid an error.
  12872. Use char because int might match the return type of a GCC
  12873. builtin and then its argument prototype would still apply. */
  12874. #ifdef __cplusplus
  12875. extern "C"
  12876. #endif
  12877. char exp ();
  12878. int
  12879. main ()
  12880. {
  12881. return exp ();
  12882. ;
  12883. return 0;
  12884. }
  12885. _ACEOF
  12886. for ac_lib in '' m; do
  12887. if test -z "$ac_lib"; then
  12888. ac_res="none required"
  12889. else
  12890. ac_res=-l$ac_lib
  12891. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12892. fi
  12893. if ac_fn_c_try_link "$LINENO"; then :
  12894. ac_cv_search_exp=$ac_res
  12895. fi
  12896. rm -f core conftest.err conftest.$ac_objext \
  12897. conftest$ac_exeext
  12898. if ${ac_cv_search_exp+:} false; then :
  12899. break
  12900. fi
  12901. done
  12902. if ${ac_cv_search_exp+:} false; then :
  12903. else
  12904. ac_cv_search_exp=no
  12905. fi
  12906. rm conftest.$ac_ext
  12907. LIBS=$ac_func_search_save_LIBS
  12908. fi
  12909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exp" >&5
  12910. $as_echo "$ac_cv_search_exp" >&6; }
  12911. ac_res=$ac_cv_search_exp
  12912. if test "$ac_res" != no; then :
  12913. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12914. fi
  12915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  12916. $as_echo_n "checking for library containing dlopen... " >&6; }
  12917. if ${ac_cv_search_dlopen+:} false; then :
  12918. $as_echo_n "(cached) " >&6
  12919. else
  12920. ac_func_search_save_LIBS=$LIBS
  12921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12922. /* end confdefs.h. */
  12923. /* Override any GCC internal prototype to avoid an error.
  12924. Use char because int might match the return type of a GCC
  12925. builtin and then its argument prototype would still apply. */
  12926. #ifdef __cplusplus
  12927. extern "C"
  12928. #endif
  12929. char dlopen ();
  12930. int
  12931. main ()
  12932. {
  12933. return dlopen ();
  12934. ;
  12935. return 0;
  12936. }
  12937. _ACEOF
  12938. for ac_lib in '' dl; do
  12939. if test -z "$ac_lib"; then
  12940. ac_res="none required"
  12941. else
  12942. ac_res=-l$ac_lib
  12943. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12944. fi
  12945. if ac_fn_c_try_link "$LINENO"; then :
  12946. ac_cv_search_dlopen=$ac_res
  12947. fi
  12948. rm -f core conftest.err conftest.$ac_objext \
  12949. conftest$ac_exeext
  12950. if ${ac_cv_search_dlopen+:} false; then :
  12951. break
  12952. fi
  12953. done
  12954. if ${ac_cv_search_dlopen+:} false; then :
  12955. else
  12956. ac_cv_search_dlopen=no
  12957. fi
  12958. rm conftest.$ac_ext
  12959. LIBS=$ac_func_search_save_LIBS
  12960. fi
  12961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  12962. $as_echo "$ac_cv_search_dlopen" >&6; }
  12963. ac_res=$ac_cv_search_dlopen
  12964. if test "$ac_res" != no; then :
  12965. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12966. fi
  12967. LIBS=$_ax_lua_saved_libs
  12968. if test "x$ac_cv_search_exp" != 'xno' &&
  12969. test "x$ac_cv_search_exp" != 'xnone required'; then :
  12970. _ax_lua_extra_libs="$_ax_lua_extra_libs $ac_cv_search_exp"
  12971. fi
  12972. if test "x$ac_cv_search_dlopen" != 'xno' &&
  12973. test "x$ac_cv_search_dlopen" != 'xnone required'; then :
  12974. _ax_lua_extra_libs="$_ax_lua_extra_libs $ac_cv_search_dlopen"
  12975. fi
  12976. _ax_lua_saved_libs=$LIBS
  12977. LIBS="$LIBS $LUA_LIB"
  12978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lua_load" >&5
  12979. $as_echo_n "checking for library containing lua_load... " >&6; }
  12980. if ${ac_cv_search_lua_load+:} false; then :
  12981. $as_echo_n "(cached) " >&6
  12982. else
  12983. ac_func_search_save_LIBS=$LIBS
  12984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12985. /* end confdefs.h. */
  12986. /* Override any GCC internal prototype to avoid an error.
  12987. Use char because int might match the return type of a GCC
  12988. builtin and then its argument prototype would still apply. */
  12989. #ifdef __cplusplus
  12990. extern "C"
  12991. #endif
  12992. char lua_load ();
  12993. int
  12994. main ()
  12995. {
  12996. return lua_load ();
  12997. ;
  12998. return 0;
  12999. }
  13000. _ACEOF
  13001. for ac_lib in '' lua$LUA_VERSION \
  13002. lua$LUA_SHORT_VERSION \
  13003. lua-$LUA_VERSION \
  13004. lua-$LUA_SHORT_VERSION \
  13005. lua \
  13006. ; do
  13007. if test -z "$ac_lib"; then
  13008. ac_res="none required"
  13009. else
  13010. ac_res=-l$ac_lib
  13011. LIBS="-l$ac_lib $_ax_lua_extra_libs $ac_func_search_save_LIBS"
  13012. fi
  13013. if ac_fn_c_try_link "$LINENO"; then :
  13014. ac_cv_search_lua_load=$ac_res
  13015. fi
  13016. rm -f core conftest.err conftest.$ac_objext \
  13017. conftest$ac_exeext
  13018. if ${ac_cv_search_lua_load+:} false; then :
  13019. break
  13020. fi
  13021. done
  13022. if ${ac_cv_search_lua_load+:} false; then :
  13023. else
  13024. ac_cv_search_lua_load=no
  13025. fi
  13026. rm conftest.$ac_ext
  13027. LIBS=$ac_func_search_save_LIBS
  13028. fi
  13029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lua_load" >&5
  13030. $as_echo "$ac_cv_search_lua_load" >&6; }
  13031. ac_res=$ac_cv_search_lua_load
  13032. if test "$ac_res" != no; then :
  13033. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13034. _ax_found_lua_libs='yes'
  13035. else
  13036. _ax_found_lua_libs='no'
  13037. fi
  13038. LIBS=$_ax_lua_saved_libs
  13039. if test "x$ac_cv_search_lua_load" != 'xno' &&
  13040. test "x$ac_cv_search_lua_load" != 'xnone required'; then :
  13041. LUA_LIB="$ac_cv_search_lua_load $_ax_lua_extra_libs"
  13042. fi
  13043. fi
  13044. if test "x$_ax_found_lua_libs" = 'xyes'; then :
  13045. else
  13046. as_fn_error $? "cannot find Lua libs" "$LINENO" 5
  13047. fi
  13048. fi
  13049. ac_config_files="$ac_config_files Makefile"
  13050. cat >confcache <<\_ACEOF
  13051. # This file is a shell script that caches the results of configure
  13052. # tests run on this system so they can be shared between configure
  13053. # scripts and configure runs, see configure's option --config-cache.
  13054. # It is not useful on other systems. If it contains results you don't
  13055. # want to keep, you may remove or edit it.
  13056. #
  13057. # config.status only pays attention to the cache file if you give it
  13058. # the --recheck option to rerun configure.
  13059. #
  13060. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13061. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13062. # following values.
  13063. _ACEOF
  13064. # The following way of writing the cache mishandles newlines in values,
  13065. # but we know of no workaround that is simple, portable, and efficient.
  13066. # So, we kill variables containing newlines.
  13067. # Ultrix sh set writes to stderr and can't be redirected directly,
  13068. # and sets the high bit in the cache file unless we assign to the vars.
  13069. (
  13070. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13071. eval ac_val=\$$ac_var
  13072. case $ac_val in #(
  13073. *${as_nl}*)
  13074. case $ac_var in #(
  13075. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13076. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13077. esac
  13078. case $ac_var in #(
  13079. _ | IFS | as_nl) ;; #(
  13080. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13081. *) { eval $ac_var=; unset $ac_var;} ;;
  13082. esac ;;
  13083. esac
  13084. done
  13085. (set) 2>&1 |
  13086. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13087. *${as_nl}ac_space=\ *)
  13088. # `set' does not quote correctly, so add quotes: double-quote
  13089. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13090. sed -n \
  13091. "s/'/'\\\\''/g;
  13092. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13093. ;; #(
  13094. *)
  13095. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13096. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13097. ;;
  13098. esac |
  13099. sort
  13100. ) |
  13101. sed '
  13102. /^ac_cv_env_/b end
  13103. t clear
  13104. :clear
  13105. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13106. t end
  13107. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13108. :end' >>confcache
  13109. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13110. if test -w "$cache_file"; then
  13111. if test "x$cache_file" != "x/dev/null"; then
  13112. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13113. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13114. if test ! -f "$cache_file" || test -h "$cache_file"; then
  13115. cat confcache >"$cache_file"
  13116. else
  13117. case $cache_file in #(
  13118. */* | ?:*)
  13119. mv -f confcache "$cache_file"$$ &&
  13120. mv -f "$cache_file"$$ "$cache_file" ;; #(
  13121. *)
  13122. mv -f confcache "$cache_file" ;;
  13123. esac
  13124. fi
  13125. fi
  13126. else
  13127. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13128. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13129. fi
  13130. fi
  13131. rm -f confcache
  13132. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13133. # Let make expand exec_prefix.
  13134. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13135. DEFS=-DHAVE_CONFIG_H
  13136. ac_libobjs=
  13137. ac_ltlibobjs=
  13138. U=
  13139. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13140. # 1. Remove the extension, and $U if already installed.
  13141. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13142. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13143. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13144. # will be set to the directory where LIBOBJS objects are built.
  13145. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13146. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13147. done
  13148. LIBOBJS=$ac_libobjs
  13149. LTLIBOBJS=$ac_ltlibobjs
  13150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  13151. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  13152. if test -n "$am_sleep_pid"; then
  13153. # Hide warnings about reused PIDs.
  13154. wait $am_sleep_pid 2>/dev/null
  13155. fi
  13156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  13157. $as_echo "done" >&6; }
  13158. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13159. as_fn_error $? "conditional \"AMDEP\" was never defined.
  13160. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13161. fi
  13162. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13163. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  13164. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13165. fi
  13166. if test -n "$EXEEXT"; then
  13167. am__EXEEXT_TRUE=
  13168. am__EXEEXT_FALSE='#'
  13169. else
  13170. am__EXEEXT_TRUE='#'
  13171. am__EXEEXT_FALSE=
  13172. fi
  13173. if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
  13174. as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
  13175. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13176. fi
  13177. if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
  13178. as_fn_error $? "conditional \"DEBUG\" was never defined.
  13179. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13180. fi
  13181. if test -z "${TESTC_TRUE}" && test -z "${TESTC_FALSE}"; then
  13182. as_fn_error $? "conditional \"TESTC\" was never defined.
  13183. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13184. fi
  13185. if test -z "${WITH_LIBXML2_TRUE}" && test -z "${WITH_LIBXML2_FALSE}"; then
  13186. as_fn_error $? "conditional \"WITH_LIBXML2\" was never defined.
  13187. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13188. fi
  13189. if test -z "${WITH_ROXML_TRUE}" && test -z "${WITH_ROXML_FALSE}"; then
  13190. as_fn_error $? "conditional \"WITH_ROXML\" was never defined.
  13191. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13192. fi
  13193. if test -z "${WITH_EXPAT_TRUE}" && test -z "${WITH_EXPAT_FALSE}"; then
  13194. as_fn_error $? "conditional \"WITH_EXPAT\" was never defined.
  13195. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13196. fi
  13197. if test -z "${WITH_LUA_TRUE}" && test -z "${WITH_LUA_FALSE}"; then
  13198. as_fn_error $? "conditional \"WITH_LUA\" was never defined.
  13199. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13200. fi
  13201. : "${CONFIG_STATUS=./config.status}"
  13202. ac_write_fail=0
  13203. ac_clean_files_save=$ac_clean_files
  13204. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13205. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13206. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13207. as_write_fail=0
  13208. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13209. #! $SHELL
  13210. # Generated by $as_me.
  13211. # Run this file to recreate the current configuration.
  13212. # Compiler output produced by configure, useful for debugging
  13213. # configure, is in config.log if it exists.
  13214. debug=false
  13215. ac_cs_recheck=false
  13216. ac_cs_silent=false
  13217. SHELL=\${CONFIG_SHELL-$SHELL}
  13218. export SHELL
  13219. _ASEOF
  13220. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13221. ## -------------------- ##
  13222. ## M4sh Initialization. ##
  13223. ## -------------------- ##
  13224. # Be more Bourne compatible
  13225. DUALCASE=1; export DUALCASE # for MKS sh
  13226. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13227. emulate sh
  13228. NULLCMD=:
  13229. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13230. # is contrary to our usage. Disable this feature.
  13231. alias -g '${1+"$@"}'='"$@"'
  13232. setopt NO_GLOB_SUBST
  13233. else
  13234. case `(set -o) 2>/dev/null` in #(
  13235. *posix*) :
  13236. set -o posix ;; #(
  13237. *) :
  13238. ;;
  13239. esac
  13240. fi
  13241. as_nl='
  13242. '
  13243. export as_nl
  13244. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13245. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13246. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13247. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13248. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13249. # but without wasting forks for bash or zsh.
  13250. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13251. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13252. as_echo='print -r --'
  13253. as_echo_n='print -rn --'
  13254. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13255. as_echo='printf %s\n'
  13256. as_echo_n='printf %s'
  13257. else
  13258. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13259. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13260. as_echo_n='/usr/ucb/echo -n'
  13261. else
  13262. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13263. as_echo_n_body='eval
  13264. arg=$1;
  13265. case $arg in #(
  13266. *"$as_nl"*)
  13267. expr "X$arg" : "X\\(.*\\)$as_nl";
  13268. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13269. esac;
  13270. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13271. '
  13272. export as_echo_n_body
  13273. as_echo_n='sh -c $as_echo_n_body as_echo'
  13274. fi
  13275. export as_echo_body
  13276. as_echo='sh -c $as_echo_body as_echo'
  13277. fi
  13278. # The user is always right.
  13279. if test "${PATH_SEPARATOR+set}" != set; then
  13280. PATH_SEPARATOR=:
  13281. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13282. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13283. PATH_SEPARATOR=';'
  13284. }
  13285. fi
  13286. # IFS
  13287. # We need space, tab and new line, in precisely that order. Quoting is
  13288. # there to prevent editors from complaining about space-tab.
  13289. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13290. # splitting by setting IFS to empty value.)
  13291. IFS=" "" $as_nl"
  13292. # Find who we are. Look in the path if we contain no directory separator.
  13293. as_myself=
  13294. case $0 in #((
  13295. *[\\/]* ) as_myself=$0 ;;
  13296. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13297. for as_dir in $PATH
  13298. do
  13299. IFS=$as_save_IFS
  13300. test -z "$as_dir" && as_dir=.
  13301. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13302. done
  13303. IFS=$as_save_IFS
  13304. ;;
  13305. esac
  13306. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13307. # in which case we are not to be found in the path.
  13308. if test "x$as_myself" = x; then
  13309. as_myself=$0
  13310. fi
  13311. if test ! -f "$as_myself"; then
  13312. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13313. exit 1
  13314. fi
  13315. # Unset variables that we do not need and which cause bugs (e.g. in
  13316. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13317. # suppresses any "Segmentation fault" message there. '((' could
  13318. # trigger a bug in pdksh 5.2.14.
  13319. for as_var in BASH_ENV ENV MAIL MAILPATH
  13320. do eval test x\${$as_var+set} = xset \
  13321. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13322. done
  13323. PS1='$ '
  13324. PS2='> '
  13325. PS4='+ '
  13326. # NLS nuisances.
  13327. LC_ALL=C
  13328. export LC_ALL
  13329. LANGUAGE=C
  13330. export LANGUAGE
  13331. # CDPATH.
  13332. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13333. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  13334. # ----------------------------------------
  13335. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13336. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13337. # script with STATUS, using 1 if that was 0.
  13338. as_fn_error ()
  13339. {
  13340. as_status=$1; test $as_status -eq 0 && as_status=1
  13341. if test "$4"; then
  13342. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13343. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  13344. fi
  13345. $as_echo "$as_me: error: $2" >&2
  13346. as_fn_exit $as_status
  13347. } # as_fn_error
  13348. # as_fn_set_status STATUS
  13349. # -----------------------
  13350. # Set $? to STATUS, without forking.
  13351. as_fn_set_status ()
  13352. {
  13353. return $1
  13354. } # as_fn_set_status
  13355. # as_fn_exit STATUS
  13356. # -----------------
  13357. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13358. as_fn_exit ()
  13359. {
  13360. set +e
  13361. as_fn_set_status $1
  13362. exit $1
  13363. } # as_fn_exit
  13364. # as_fn_unset VAR
  13365. # ---------------
  13366. # Portably unset VAR.
  13367. as_fn_unset ()
  13368. {
  13369. { eval $1=; unset $1;}
  13370. }
  13371. as_unset=as_fn_unset
  13372. # as_fn_append VAR VALUE
  13373. # ----------------------
  13374. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13375. # advantage of any shell optimizations that allow amortized linear growth over
  13376. # repeated appends, instead of the typical quadratic growth present in naive
  13377. # implementations.
  13378. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13379. eval 'as_fn_append ()
  13380. {
  13381. eval $1+=\$2
  13382. }'
  13383. else
  13384. as_fn_append ()
  13385. {
  13386. eval $1=\$$1\$2
  13387. }
  13388. fi # as_fn_append
  13389. # as_fn_arith ARG...
  13390. # ------------------
  13391. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13392. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13393. # must be portable across $(()) and expr.
  13394. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13395. eval 'as_fn_arith ()
  13396. {
  13397. as_val=$(( $* ))
  13398. }'
  13399. else
  13400. as_fn_arith ()
  13401. {
  13402. as_val=`expr "$@" || test $? -eq 1`
  13403. }
  13404. fi # as_fn_arith
  13405. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13406. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13407. as_expr=expr
  13408. else
  13409. as_expr=false
  13410. fi
  13411. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13412. as_basename=basename
  13413. else
  13414. as_basename=false
  13415. fi
  13416. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13417. as_dirname=dirname
  13418. else
  13419. as_dirname=false
  13420. fi
  13421. as_me=`$as_basename -- "$0" ||
  13422. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13423. X"$0" : 'X\(//\)$' \| \
  13424. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13425. $as_echo X/"$0" |
  13426. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13427. s//\1/
  13428. q
  13429. }
  13430. /^X\/\(\/\/\)$/{
  13431. s//\1/
  13432. q
  13433. }
  13434. /^X\/\(\/\).*/{
  13435. s//\1/
  13436. q
  13437. }
  13438. s/.*/./; q'`
  13439. # Avoid depending upon Character Ranges.
  13440. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13441. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13442. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13443. as_cr_digits='0123456789'
  13444. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13445. ECHO_C= ECHO_N= ECHO_T=
  13446. case `echo -n x` in #(((((
  13447. -n*)
  13448. case `echo 'xy\c'` in
  13449. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13450. xy) ECHO_C='\c';;
  13451. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13452. ECHO_T=' ';;
  13453. esac;;
  13454. *)
  13455. ECHO_N='-n';;
  13456. esac
  13457. rm -f conf$$ conf$$.exe conf$$.file
  13458. if test -d conf$$.dir; then
  13459. rm -f conf$$.dir/conf$$.file
  13460. else
  13461. rm -f conf$$.dir
  13462. mkdir conf$$.dir 2>/dev/null
  13463. fi
  13464. if (echo >conf$$.file) 2>/dev/null; then
  13465. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13466. as_ln_s='ln -s'
  13467. # ... but there are two gotchas:
  13468. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13469. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13470. # In both cases, we have to default to `cp -pR'.
  13471. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13472. as_ln_s='cp -pR'
  13473. elif ln conf$$.file conf$$ 2>/dev/null; then
  13474. as_ln_s=ln
  13475. else
  13476. as_ln_s='cp -pR'
  13477. fi
  13478. else
  13479. as_ln_s='cp -pR'
  13480. fi
  13481. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13482. rmdir conf$$.dir 2>/dev/null
  13483. # as_fn_mkdir_p
  13484. # -------------
  13485. # Create "$as_dir" as a directory, including parents if necessary.
  13486. as_fn_mkdir_p ()
  13487. {
  13488. case $as_dir in #(
  13489. -*) as_dir=./$as_dir;;
  13490. esac
  13491. test -d "$as_dir" || eval $as_mkdir_p || {
  13492. as_dirs=
  13493. while :; do
  13494. case $as_dir in #(
  13495. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13496. *) as_qdir=$as_dir;;
  13497. esac
  13498. as_dirs="'$as_qdir' $as_dirs"
  13499. as_dir=`$as_dirname -- "$as_dir" ||
  13500. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13501. X"$as_dir" : 'X\(//\)[^/]' \| \
  13502. X"$as_dir" : 'X\(//\)$' \| \
  13503. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13504. $as_echo X"$as_dir" |
  13505. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13506. s//\1/
  13507. q
  13508. }
  13509. /^X\(\/\/\)[^/].*/{
  13510. s//\1/
  13511. q
  13512. }
  13513. /^X\(\/\/\)$/{
  13514. s//\1/
  13515. q
  13516. }
  13517. /^X\(\/\).*/{
  13518. s//\1/
  13519. q
  13520. }
  13521. s/.*/./; q'`
  13522. test -d "$as_dir" && break
  13523. done
  13524. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13525. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  13526. } # as_fn_mkdir_p
  13527. if mkdir -p . 2>/dev/null; then
  13528. as_mkdir_p='mkdir -p "$as_dir"'
  13529. else
  13530. test -d ./-p && rmdir ./-p
  13531. as_mkdir_p=false
  13532. fi
  13533. # as_fn_executable_p FILE
  13534. # -----------------------
  13535. # Test if FILE is an executable regular file.
  13536. as_fn_executable_p ()
  13537. {
  13538. test -f "$1" && test -x "$1"
  13539. } # as_fn_executable_p
  13540. as_test_x='test -x'
  13541. as_executable_p=as_fn_executable_p
  13542. # Sed expression to map a string onto a valid CPP name.
  13543. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13544. # Sed expression to map a string onto a valid variable name.
  13545. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13546. exec 6>&1
  13547. ## ----------------------------------- ##
  13548. ## Main body of $CONFIG_STATUS script. ##
  13549. ## ----------------------------------- ##
  13550. _ASEOF
  13551. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13552. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13553. # Save the log message, to keep $0 and so on meaningful, and to
  13554. # report actual input values of CONFIG_FILES etc. instead of their
  13555. # values after options handling.
  13556. ac_log="
  13557. This file was extended by klish $as_me 3.0.0, which was
  13558. generated by GNU Autoconf 2.69. Invocation command line was
  13559. CONFIG_FILES = $CONFIG_FILES
  13560. CONFIG_HEADERS = $CONFIG_HEADERS
  13561. CONFIG_LINKS = $CONFIG_LINKS
  13562. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13563. $ $0 $@
  13564. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13565. "
  13566. _ACEOF
  13567. case $ac_config_files in *"
  13568. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13569. esac
  13570. case $ac_config_headers in *"
  13571. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13572. esac
  13573. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13574. # Files that config.status was made for.
  13575. config_files="$ac_config_files"
  13576. config_headers="$ac_config_headers"
  13577. config_commands="$ac_config_commands"
  13578. _ACEOF
  13579. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13580. ac_cs_usage="\
  13581. \`$as_me' instantiates files and other configuration actions
  13582. from templates according to the current configuration. Unless the files
  13583. and actions are specified as TAGs, all are instantiated by default.
  13584. Usage: $0 [OPTION]... [TAG]...
  13585. -h, --help print this help, then exit
  13586. -V, --version print version number and configuration settings, then exit
  13587. --config print configuration, then exit
  13588. -q, --quiet, --silent
  13589. do not print progress messages
  13590. -d, --debug don't remove temporary files
  13591. --recheck update $as_me by reconfiguring in the same conditions
  13592. --file=FILE[:TEMPLATE]
  13593. instantiate the configuration file FILE
  13594. --header=FILE[:TEMPLATE]
  13595. instantiate the configuration header FILE
  13596. Configuration files:
  13597. $config_files
  13598. Configuration headers:
  13599. $config_headers
  13600. Configuration commands:
  13601. $config_commands
  13602. Report bugs to <serj.kalichev at gmail dot com>."
  13603. _ACEOF
  13604. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13605. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  13606. ac_cs_version="\\
  13607. klish config.status 3.0.0
  13608. configured by $0, generated by GNU Autoconf 2.69,
  13609. with options \\"\$ac_cs_config\\"
  13610. Copyright (C) 2012 Free Software Foundation, Inc.
  13611. This config.status script is free software; the Free Software Foundation
  13612. gives unlimited permission to copy, distribute and modify it."
  13613. ac_pwd='$ac_pwd'
  13614. srcdir='$srcdir'
  13615. INSTALL='$INSTALL'
  13616. MKDIR_P='$MKDIR_P'
  13617. AWK='$AWK'
  13618. test -n "\$AWK" || AWK=awk
  13619. _ACEOF
  13620. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13621. # The default lists apply if the user does not specify any file.
  13622. ac_need_defaults=:
  13623. while test $# != 0
  13624. do
  13625. case $1 in
  13626. --*=?*)
  13627. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13628. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13629. ac_shift=:
  13630. ;;
  13631. --*=)
  13632. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13633. ac_optarg=
  13634. ac_shift=:
  13635. ;;
  13636. *)
  13637. ac_option=$1
  13638. ac_optarg=$2
  13639. ac_shift=shift
  13640. ;;
  13641. esac
  13642. case $ac_option in
  13643. # Handling of the options.
  13644. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13645. ac_cs_recheck=: ;;
  13646. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13647. $as_echo "$ac_cs_version"; exit ;;
  13648. --config | --confi | --conf | --con | --co | --c )
  13649. $as_echo "$ac_cs_config"; exit ;;
  13650. --debug | --debu | --deb | --de | --d | -d )
  13651. debug=: ;;
  13652. --file | --fil | --fi | --f )
  13653. $ac_shift
  13654. case $ac_optarg in
  13655. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13656. '') as_fn_error $? "missing file argument" ;;
  13657. esac
  13658. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13659. ac_need_defaults=false;;
  13660. --header | --heade | --head | --hea )
  13661. $ac_shift
  13662. case $ac_optarg in
  13663. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13664. esac
  13665. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13666. ac_need_defaults=false;;
  13667. --he | --h)
  13668. # Conflict between --help and --header
  13669. as_fn_error $? "ambiguous option: \`$1'
  13670. Try \`$0 --help' for more information.";;
  13671. --help | --hel | -h )
  13672. $as_echo "$ac_cs_usage"; exit ;;
  13673. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13674. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13675. ac_cs_silent=: ;;
  13676. # This is an error.
  13677. -*) as_fn_error $? "unrecognized option: \`$1'
  13678. Try \`$0 --help' for more information." ;;
  13679. *) as_fn_append ac_config_targets " $1"
  13680. ac_need_defaults=false ;;
  13681. esac
  13682. shift
  13683. done
  13684. ac_configure_extra_args=
  13685. if $ac_cs_silent; then
  13686. exec 6>/dev/null
  13687. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13688. fi
  13689. _ACEOF
  13690. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13691. if \$ac_cs_recheck; then
  13692. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13693. shift
  13694. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13695. CONFIG_SHELL='$SHELL'
  13696. export CONFIG_SHELL
  13697. exec "\$@"
  13698. fi
  13699. _ACEOF
  13700. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13701. exec 5>>config.log
  13702. {
  13703. echo
  13704. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13705. ## Running $as_me. ##
  13706. _ASBOX
  13707. $as_echo "$ac_log"
  13708. } >&5
  13709. _ACEOF
  13710. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13711. #
  13712. # INIT-COMMANDS
  13713. #
  13714. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13715. # if CDPATH is set.
  13716. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13717. sed_quote_subst='$sed_quote_subst'
  13718. double_quote_subst='$double_quote_subst'
  13719. delay_variable_subst='$delay_variable_subst'
  13720. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  13721. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  13722. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  13723. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  13724. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  13725. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  13726. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  13727. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  13728. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  13729. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  13730. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  13731. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  13732. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  13733. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  13734. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  13735. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  13736. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  13737. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  13738. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  13739. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  13740. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  13741. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  13742. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  13743. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  13744. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  13745. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  13746. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  13747. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  13748. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  13749. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  13750. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  13751. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  13752. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  13753. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  13754. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  13755. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  13756. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  13757. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  13758. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  13759. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  13760. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  13761. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  13762. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  13763. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  13764. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  13765. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  13766. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  13767. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13768. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13769. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  13770. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  13771. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  13772. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  13773. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  13774. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  13775. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  13776. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  13777. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  13778. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  13779. 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"`'
  13780. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  13781. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  13782. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  13783. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  13784. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  13785. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  13786. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  13787. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  13788. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  13789. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  13790. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  13791. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  13792. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  13793. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  13794. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  13795. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  13796. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  13797. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  13798. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  13799. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  13800. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13801. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  13802. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  13803. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  13804. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  13805. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  13806. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  13807. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13808. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  13809. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13810. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  13811. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13812. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  13813. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13814. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13815. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  13816. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  13817. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  13818. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  13819. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  13820. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13821. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  13822. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  13823. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  13824. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  13825. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  13826. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  13827. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  13828. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  13829. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  13830. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  13831. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  13832. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  13833. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  13834. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  13835. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  13836. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13837. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  13838. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  13839. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  13840. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  13841. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  13842. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13843. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13844. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  13845. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  13846. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  13847. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  13848. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  13849. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  13850. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  13851. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  13852. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  13853. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  13854. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  13855. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  13856. LTCC='$LTCC'
  13857. LTCFLAGS='$LTCFLAGS'
  13858. compiler='$compiler_DEFAULT'
  13859. # A function that is used when there is no print builtin or printf.
  13860. func_fallback_echo ()
  13861. {
  13862. eval 'cat <<_LTECHO_EOF
  13863. \$1
  13864. _LTECHO_EOF'
  13865. }
  13866. # Quote evaled strings.
  13867. for var in AS \
  13868. DLLTOOL \
  13869. OBJDUMP \
  13870. SHELL \
  13871. ECHO \
  13872. PATH_SEPARATOR \
  13873. SED \
  13874. GREP \
  13875. EGREP \
  13876. FGREP \
  13877. LD \
  13878. NM \
  13879. LN_S \
  13880. lt_SP2NL \
  13881. lt_NL2SP \
  13882. reload_flag \
  13883. deplibs_check_method \
  13884. file_magic_cmd \
  13885. file_magic_glob \
  13886. want_nocaseglob \
  13887. sharedlib_from_linklib_cmd \
  13888. AR \
  13889. AR_FLAGS \
  13890. archiver_list_spec \
  13891. STRIP \
  13892. RANLIB \
  13893. CC \
  13894. CFLAGS \
  13895. compiler \
  13896. lt_cv_sys_global_symbol_pipe \
  13897. lt_cv_sys_global_symbol_to_cdecl \
  13898. lt_cv_sys_global_symbol_to_import \
  13899. lt_cv_sys_global_symbol_to_c_name_address \
  13900. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13901. lt_cv_nm_interface \
  13902. nm_file_list_spec \
  13903. lt_cv_truncate_bin \
  13904. lt_prog_compiler_no_builtin_flag \
  13905. lt_prog_compiler_pic \
  13906. lt_prog_compiler_wl \
  13907. lt_prog_compiler_static \
  13908. lt_cv_prog_compiler_c_o \
  13909. need_locks \
  13910. MANIFEST_TOOL \
  13911. DSYMUTIL \
  13912. NMEDIT \
  13913. LIPO \
  13914. OTOOL \
  13915. OTOOL64 \
  13916. shrext_cmds \
  13917. export_dynamic_flag_spec \
  13918. whole_archive_flag_spec \
  13919. compiler_needs_object \
  13920. with_gnu_ld \
  13921. allow_undefined_flag \
  13922. no_undefined_flag \
  13923. hardcode_libdir_flag_spec \
  13924. hardcode_libdir_separator \
  13925. exclude_expsyms \
  13926. include_expsyms \
  13927. file_list_spec \
  13928. variables_saved_for_relink \
  13929. libname_spec \
  13930. library_names_spec \
  13931. soname_spec \
  13932. install_override_mode \
  13933. finish_eval \
  13934. old_striplib \
  13935. striplib; do
  13936. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13937. *[\\\\\\\`\\"\\\$]*)
  13938. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  13939. ;;
  13940. *)
  13941. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13942. ;;
  13943. esac
  13944. done
  13945. # Double-quote double-evaled strings.
  13946. for var in reload_cmds \
  13947. old_postinstall_cmds \
  13948. old_postuninstall_cmds \
  13949. old_archive_cmds \
  13950. extract_expsyms_cmds \
  13951. old_archive_from_new_cmds \
  13952. old_archive_from_expsyms_cmds \
  13953. archive_cmds \
  13954. archive_expsym_cmds \
  13955. module_cmds \
  13956. module_expsym_cmds \
  13957. export_symbols_cmds \
  13958. prelink_cmds \
  13959. postlink_cmds \
  13960. postinstall_cmds \
  13961. postuninstall_cmds \
  13962. finish_cmds \
  13963. sys_lib_search_path_spec \
  13964. configure_time_dlsearch_path \
  13965. configure_time_lt_sys_library_path; do
  13966. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13967. *[\\\\\\\`\\"\\\$]*)
  13968. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  13969. ;;
  13970. *)
  13971. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13972. ;;
  13973. esac
  13974. done
  13975. ac_aux_dir='$ac_aux_dir'
  13976. # See if we are running on zsh, and set the options that allow our
  13977. # commands through without removal of \ escapes INIT.
  13978. if test -n "\${ZSH_VERSION+set}"; then
  13979. setopt NO_GLOB_SUBST
  13980. fi
  13981. PACKAGE='$PACKAGE'
  13982. VERSION='$VERSION'
  13983. RM='$RM'
  13984. ofile='$ofile'
  13985. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  13986. _ACEOF
  13987. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13988. # Handling of arguments.
  13989. for ac_config_target in $ac_config_targets
  13990. do
  13991. case $ac_config_target in
  13992. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  13993. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  13994. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13995. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13996. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13997. esac
  13998. done
  13999. # If the user did not use the arguments to specify the items to instantiate,
  14000. # then the envvar interface is used. Set only those that are not.
  14001. # We use the long form for the default assignment because of an extremely
  14002. # bizarre bug on SunOS 4.1.3.
  14003. if $ac_need_defaults; then
  14004. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14005. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14006. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14007. fi
  14008. # Have a temporary directory for convenience. Make it in the build tree
  14009. # simply because there is no reason against having it here, and in addition,
  14010. # creating and moving files from /tmp can sometimes cause problems.
  14011. # Hook for its removal unless debugging.
  14012. # Note that there is a small window in which the directory will not be cleaned:
  14013. # after its creation but before its name has been assigned to `$tmp'.
  14014. $debug ||
  14015. {
  14016. tmp= ac_tmp=
  14017. trap 'exit_status=$?
  14018. : "${ac_tmp:=$tmp}"
  14019. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  14020. ' 0
  14021. trap 'as_fn_exit 1' 1 2 13 15
  14022. }
  14023. # Create a (secure) tmp directory for tmp files.
  14024. {
  14025. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14026. test -d "$tmp"
  14027. } ||
  14028. {
  14029. tmp=./conf$$-$RANDOM
  14030. (umask 077 && mkdir "$tmp")
  14031. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  14032. ac_tmp=$tmp
  14033. # Set up the scripts for CONFIG_FILES section.
  14034. # No need to generate them if there are no CONFIG_FILES.
  14035. # This happens for instance with `./config.status config.h'.
  14036. if test -n "$CONFIG_FILES"; then
  14037. ac_cr=`echo X | tr X '\015'`
  14038. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14039. # But we know of no other shell where ac_cr would be empty at this
  14040. # point, so we can use a bashism as a fallback.
  14041. if test "x$ac_cr" = x; then
  14042. eval ac_cr=\$\'\\r\'
  14043. fi
  14044. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14045. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14046. ac_cs_awk_cr='\\r'
  14047. else
  14048. ac_cs_awk_cr=$ac_cr
  14049. fi
  14050. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  14051. _ACEOF
  14052. {
  14053. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14054. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14055. echo "_ACEOF"
  14056. } >conf$$subs.sh ||
  14057. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14058. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  14059. ac_delim='%!_!# '
  14060. for ac_last_try in false false false false false :; do
  14061. . ./conf$$subs.sh ||
  14062. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14063. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14064. if test $ac_delim_n = $ac_delim_num; then
  14065. break
  14066. elif $ac_last_try; then
  14067. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14068. else
  14069. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14070. fi
  14071. done
  14072. rm -f conf$$subs.sh
  14073. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14074. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  14075. _ACEOF
  14076. sed -n '
  14077. h
  14078. s/^/S["/; s/!.*/"]=/
  14079. p
  14080. g
  14081. s/^[^!]*!//
  14082. :repl
  14083. t repl
  14084. s/'"$ac_delim"'$//
  14085. t delim
  14086. :nl
  14087. h
  14088. s/\(.\{148\}\)..*/\1/
  14089. t more1
  14090. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14091. p
  14092. n
  14093. b repl
  14094. :more1
  14095. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14096. p
  14097. g
  14098. s/.\{148\}//
  14099. t nl
  14100. :delim
  14101. h
  14102. s/\(.\{148\}\)..*/\1/
  14103. t more2
  14104. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14105. p
  14106. b
  14107. :more2
  14108. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14109. p
  14110. g
  14111. s/.\{148\}//
  14112. t delim
  14113. ' <conf$$subs.awk | sed '
  14114. /^[^""]/{
  14115. N
  14116. s/\n//
  14117. }
  14118. ' >>$CONFIG_STATUS || ac_write_fail=1
  14119. rm -f conf$$subs.awk
  14120. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14121. _ACAWK
  14122. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  14123. for (key in S) S_is_set[key] = 1
  14124. FS = ""
  14125. }
  14126. {
  14127. line = $ 0
  14128. nfields = split(line, field, "@")
  14129. substed = 0
  14130. len = length(field[1])
  14131. for (i = 2; i < nfields; i++) {
  14132. key = field[i]
  14133. keylen = length(key)
  14134. if (S_is_set[key]) {
  14135. value = S[key]
  14136. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14137. len += length(value) + length(field[++i])
  14138. substed = 1
  14139. } else
  14140. len += 1 + keylen
  14141. }
  14142. print line
  14143. }
  14144. _ACAWK
  14145. _ACEOF
  14146. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14147. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14148. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14149. else
  14150. cat
  14151. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  14152. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  14153. _ACEOF
  14154. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  14155. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  14156. # trailing colons and then remove the whole line if VPATH becomes empty
  14157. # (actually we leave an empty line to preserve line numbers).
  14158. if test "x$srcdir" = x.; then
  14159. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  14160. h
  14161. s///
  14162. s/^/:/
  14163. s/[ ]*$/:/
  14164. s/:\$(srcdir):/:/g
  14165. s/:\${srcdir}:/:/g
  14166. s/:@srcdir@:/:/g
  14167. s/^:*//
  14168. s/:*$//
  14169. x
  14170. s/\(=[ ]*\).*/\1/
  14171. G
  14172. s/\n//
  14173. s/^[^=]*=[ ]*$//
  14174. }'
  14175. fi
  14176. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14177. fi # test -n "$CONFIG_FILES"
  14178. # Set up the scripts for CONFIG_HEADERS section.
  14179. # No need to generate them if there are no CONFIG_HEADERS.
  14180. # This happens for instance with `./config.status Makefile'.
  14181. if test -n "$CONFIG_HEADERS"; then
  14182. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  14183. BEGIN {
  14184. _ACEOF
  14185. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14186. # here-document in config.status, that substitutes the proper values into
  14187. # config.h.in to produce config.h.
  14188. # Create a delimiter string that does not exist in confdefs.h, to ease
  14189. # handling of long lines.
  14190. ac_delim='%!_!# '
  14191. for ac_last_try in false false :; do
  14192. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  14193. if test -z "$ac_tt"; then
  14194. break
  14195. elif $ac_last_try; then
  14196. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  14197. else
  14198. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14199. fi
  14200. done
  14201. # For the awk script, D is an array of macro values keyed by name,
  14202. # likewise P contains macro parameters if any. Preserve backslash
  14203. # newline sequences.
  14204. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14205. sed -n '
  14206. s/.\{148\}/&'"$ac_delim"'/g
  14207. t rset
  14208. :rset
  14209. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14210. t def
  14211. d
  14212. :def
  14213. s/\\$//
  14214. t bsnl
  14215. s/["\\]/\\&/g
  14216. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14217. D["\1"]=" \3"/p
  14218. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14219. d
  14220. :bsnl
  14221. s/["\\]/\\&/g
  14222. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14223. D["\1"]=" \3\\\\\\n"\\/p
  14224. t cont
  14225. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14226. t cont
  14227. d
  14228. :cont
  14229. n
  14230. s/.\{148\}/&'"$ac_delim"'/g
  14231. t clear
  14232. :clear
  14233. s/\\$//
  14234. t bsnlc
  14235. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14236. d
  14237. :bsnlc
  14238. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14239. b cont
  14240. ' <confdefs.h | sed '
  14241. s/'"$ac_delim"'/"\\\
  14242. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14243. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14244. for (key in D) D_is_set[key] = 1
  14245. FS = ""
  14246. }
  14247. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14248. line = \$ 0
  14249. split(line, arg, " ")
  14250. if (arg[1] == "#") {
  14251. defundef = arg[2]
  14252. mac1 = arg[3]
  14253. } else {
  14254. defundef = substr(arg[1], 2)
  14255. mac1 = arg[2]
  14256. }
  14257. split(mac1, mac2, "(") #)
  14258. macro = mac2[1]
  14259. prefix = substr(line, 1, index(line, defundef) - 1)
  14260. if (D_is_set[macro]) {
  14261. # Preserve the white space surrounding the "#".
  14262. print prefix "define", macro P[macro] D[macro]
  14263. next
  14264. } else {
  14265. # Replace #undef with comments. This is necessary, for example,
  14266. # in the case of _POSIX_SOURCE, which is predefined and required
  14267. # on some systems where configure will not decide to define it.
  14268. if (defundef == "undef") {
  14269. print "/*", prefix defundef, macro, "*/"
  14270. next
  14271. }
  14272. }
  14273. }
  14274. { print }
  14275. _ACAWK
  14276. _ACEOF
  14277. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14278. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  14279. fi # test -n "$CONFIG_HEADERS"
  14280. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14281. shift
  14282. for ac_tag
  14283. do
  14284. case $ac_tag in
  14285. :[FHLC]) ac_mode=$ac_tag; continue;;
  14286. esac
  14287. case $ac_mode$ac_tag in
  14288. :[FHL]*:*);;
  14289. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14290. :[FH]-) ac_tag=-:-;;
  14291. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14292. esac
  14293. ac_save_IFS=$IFS
  14294. IFS=:
  14295. set x $ac_tag
  14296. IFS=$ac_save_IFS
  14297. shift
  14298. ac_file=$1
  14299. shift
  14300. case $ac_mode in
  14301. :L) ac_source=$1;;
  14302. :[FH])
  14303. ac_file_inputs=
  14304. for ac_f
  14305. do
  14306. case $ac_f in
  14307. -) ac_f="$ac_tmp/stdin";;
  14308. *) # Look for the file first in the build tree, then in the source tree
  14309. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14310. # because $ac_f cannot contain `:'.
  14311. test -f "$ac_f" ||
  14312. case $ac_f in
  14313. [\\/$]*) false;;
  14314. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14315. esac ||
  14316. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14317. esac
  14318. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14319. as_fn_append ac_file_inputs " '$ac_f'"
  14320. done
  14321. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14322. # use $as_me), people would be surprised to read:
  14323. # /* config.h. Generated by config.status. */
  14324. configure_input='Generated from '`
  14325. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14326. `' by configure.'
  14327. if test x"$ac_file" != x-; then
  14328. configure_input="$ac_file. $configure_input"
  14329. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14330. $as_echo "$as_me: creating $ac_file" >&6;}
  14331. fi
  14332. # Neutralize special characters interpreted by sed in replacement strings.
  14333. case $configure_input in #(
  14334. *\&* | *\|* | *\\* )
  14335. ac_sed_conf_input=`$as_echo "$configure_input" |
  14336. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14337. *) ac_sed_conf_input=$configure_input;;
  14338. esac
  14339. case $ac_tag in
  14340. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  14341. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  14342. esac
  14343. ;;
  14344. esac
  14345. ac_dir=`$as_dirname -- "$ac_file" ||
  14346. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14347. X"$ac_file" : 'X\(//\)[^/]' \| \
  14348. X"$ac_file" : 'X\(//\)$' \| \
  14349. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14350. $as_echo X"$ac_file" |
  14351. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14352. s//\1/
  14353. q
  14354. }
  14355. /^X\(\/\/\)[^/].*/{
  14356. s//\1/
  14357. q
  14358. }
  14359. /^X\(\/\/\)$/{
  14360. s//\1/
  14361. q
  14362. }
  14363. /^X\(\/\).*/{
  14364. s//\1/
  14365. q
  14366. }
  14367. s/.*/./; q'`
  14368. as_dir="$ac_dir"; as_fn_mkdir_p
  14369. ac_builddir=.
  14370. case "$ac_dir" in
  14371. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14372. *)
  14373. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14374. # A ".." for each directory in $ac_dir_suffix.
  14375. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14376. case $ac_top_builddir_sub in
  14377. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14378. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14379. esac ;;
  14380. esac
  14381. ac_abs_top_builddir=$ac_pwd
  14382. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14383. # for backward compatibility:
  14384. ac_top_builddir=$ac_top_build_prefix
  14385. case $srcdir in
  14386. .) # We are building in place.
  14387. ac_srcdir=.
  14388. ac_top_srcdir=$ac_top_builddir_sub
  14389. ac_abs_top_srcdir=$ac_pwd ;;
  14390. [\\/]* | ?:[\\/]* ) # Absolute name.
  14391. ac_srcdir=$srcdir$ac_dir_suffix;
  14392. ac_top_srcdir=$srcdir
  14393. ac_abs_top_srcdir=$srcdir ;;
  14394. *) # Relative name.
  14395. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14396. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14397. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14398. esac
  14399. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14400. case $ac_mode in
  14401. :F)
  14402. #
  14403. # CONFIG_FILE
  14404. #
  14405. case $INSTALL in
  14406. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14407. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14408. esac
  14409. ac_MKDIR_P=$MKDIR_P
  14410. case $MKDIR_P in
  14411. [\\/$]* | ?:[\\/]* ) ;;
  14412. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14413. esac
  14414. _ACEOF
  14415. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14416. # If the template does not know about datarootdir, expand it.
  14417. # FIXME: This hack should be removed a few years after 2.60.
  14418. ac_datarootdir_hack=; ac_datarootdir_seen=
  14419. ac_sed_dataroot='
  14420. /datarootdir/ {
  14421. p
  14422. q
  14423. }
  14424. /@datadir@/p
  14425. /@docdir@/p
  14426. /@infodir@/p
  14427. /@localedir@/p
  14428. /@mandir@/p'
  14429. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14430. *datarootdir*) ac_datarootdir_seen=yes;;
  14431. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14432. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14433. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14434. _ACEOF
  14435. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14436. ac_datarootdir_hack='
  14437. s&@datadir@&$datadir&g
  14438. s&@docdir@&$docdir&g
  14439. s&@infodir@&$infodir&g
  14440. s&@localedir@&$localedir&g
  14441. s&@mandir@&$mandir&g
  14442. s&\\\${datarootdir}&$datarootdir&g' ;;
  14443. esac
  14444. _ACEOF
  14445. # Neutralize VPATH when `$srcdir' = `.'.
  14446. # Shell code in configure.ac might set extrasub.
  14447. # FIXME: do we really want to maintain this feature?
  14448. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14449. ac_sed_extra="$ac_vpsub
  14450. $extrasub
  14451. _ACEOF
  14452. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14453. :t
  14454. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14455. s|@configure_input@|$ac_sed_conf_input|;t t
  14456. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14457. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14458. s&@srcdir@&$ac_srcdir&;t t
  14459. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14460. s&@top_srcdir@&$ac_top_srcdir&;t t
  14461. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14462. s&@builddir@&$ac_builddir&;t t
  14463. s&@abs_builddir@&$ac_abs_builddir&;t t
  14464. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14465. s&@INSTALL@&$ac_INSTALL&;t t
  14466. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14467. $ac_datarootdir_hack
  14468. "
  14469. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  14470. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14471. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14472. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  14473. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  14474. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  14475. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14476. which seems to be undefined. Please make sure it is defined" >&5
  14477. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14478. which seems to be undefined. Please make sure it is defined" >&2;}
  14479. rm -f "$ac_tmp/stdin"
  14480. case $ac_file in
  14481. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  14482. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  14483. esac \
  14484. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14485. ;;
  14486. :H)
  14487. #
  14488. # CONFIG_HEADER
  14489. #
  14490. if test x"$ac_file" != x-; then
  14491. {
  14492. $as_echo "/* $configure_input */" \
  14493. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  14494. } >"$ac_tmp/config.h" \
  14495. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14496. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  14497. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14498. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14499. else
  14500. rm -f "$ac_file"
  14501. mv "$ac_tmp/config.h" "$ac_file" \
  14502. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14503. fi
  14504. else
  14505. $as_echo "/* $configure_input */" \
  14506. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  14507. || as_fn_error $? "could not create -" "$LINENO" 5
  14508. fi
  14509. # Compute "$ac_file"'s index in $config_headers.
  14510. _am_arg="$ac_file"
  14511. _am_stamp_count=1
  14512. for _am_header in $config_headers :; do
  14513. case $_am_header in
  14514. $_am_arg | $_am_arg:* )
  14515. break ;;
  14516. * )
  14517. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14518. esac
  14519. done
  14520. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14521. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14522. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14523. X"$_am_arg" : 'X\(//\)$' \| \
  14524. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14525. $as_echo X"$_am_arg" |
  14526. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14527. s//\1/
  14528. q
  14529. }
  14530. /^X\(\/\/\)[^/].*/{
  14531. s//\1/
  14532. q
  14533. }
  14534. /^X\(\/\/\)$/{
  14535. s//\1/
  14536. q
  14537. }
  14538. /^X\(\/\).*/{
  14539. s//\1/
  14540. q
  14541. }
  14542. s/.*/./; q'`/stamp-h$_am_stamp_count
  14543. ;;
  14544. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14545. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14546. ;;
  14547. esac
  14548. case $ac_file$ac_mode in
  14549. "libtool":C)
  14550. # See if we are running on zsh, and set the options that allow our
  14551. # commands through without removal of \ escapes.
  14552. if test -n "${ZSH_VERSION+set}"; then
  14553. setopt NO_GLOB_SUBST
  14554. fi
  14555. cfgfile=${ofile}T
  14556. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  14557. $RM "$cfgfile"
  14558. cat <<_LT_EOF >> "$cfgfile"
  14559. #! $SHELL
  14560. # Generated automatically by $as_me ($PACKAGE) $VERSION
  14561. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  14562. # Provide generalized library-building support services.
  14563. # Written by Gordon Matzigkeit, 1996
  14564. # Copyright (C) 2014 Free Software Foundation, Inc.
  14565. # This is free software; see the source for copying conditions. There is NO
  14566. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14567. # GNU Libtool is free software; you can redistribute it and/or modify
  14568. # it under the terms of the GNU General Public License as published by
  14569. # the Free Software Foundation; either version 2 of of the License, or
  14570. # (at your option) any later version.
  14571. #
  14572. # As a special exception to the GNU General Public License, if you
  14573. # distribute this file as part of a program or library that is built
  14574. # using GNU Libtool, you may include this file under the same
  14575. # distribution terms that you use for the rest of that program.
  14576. #
  14577. # GNU Libtool is distributed in the hope that it will be useful, but
  14578. # WITHOUT ANY WARRANTY; without even the implied warranty of
  14579. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14580. # GNU General Public License for more details.
  14581. #
  14582. # You should have received a copy of the GNU General Public License
  14583. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  14584. # The names of the tagged configurations supported by this script.
  14585. available_tags=''
  14586. # Configured defaults for sys_lib_dlsearch_path munging.
  14587. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  14588. # ### BEGIN LIBTOOL CONFIG
  14589. # Assembler program.
  14590. AS=$lt_AS
  14591. # DLL creation program.
  14592. DLLTOOL=$lt_DLLTOOL
  14593. # Object dumper program.
  14594. OBJDUMP=$lt_OBJDUMP
  14595. # Which release of libtool.m4 was used?
  14596. macro_version=$macro_version
  14597. macro_revision=$macro_revision
  14598. # Whether or not to build shared libraries.
  14599. build_libtool_libs=$enable_shared
  14600. # Whether or not to build static libraries.
  14601. build_old_libs=$enable_static
  14602. # What type of objects to build.
  14603. pic_mode=$pic_mode
  14604. # Whether or not to optimize for fast installation.
  14605. fast_install=$enable_fast_install
  14606. # Shared archive member basename,for filename based shared library versioning on AIX.
  14607. shared_archive_member_spec=$shared_archive_member_spec
  14608. # Shell to use when invoking shell scripts.
  14609. SHELL=$lt_SHELL
  14610. # An echo program that protects backslashes.
  14611. ECHO=$lt_ECHO
  14612. # The PATH separator for the build system.
  14613. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  14614. # The host system.
  14615. host_alias=$host_alias
  14616. host=$host
  14617. host_os=$host_os
  14618. # The build system.
  14619. build_alias=$build_alias
  14620. build=$build
  14621. build_os=$build_os
  14622. # A sed program that does not truncate output.
  14623. SED=$lt_SED
  14624. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14625. Xsed="\$SED -e 1s/^X//"
  14626. # A grep program that handles long lines.
  14627. GREP=$lt_GREP
  14628. # An ERE matcher.
  14629. EGREP=$lt_EGREP
  14630. # A literal string matcher.
  14631. FGREP=$lt_FGREP
  14632. # A BSD- or MS-compatible name lister.
  14633. NM=$lt_NM
  14634. # Whether we need soft or hard links.
  14635. LN_S=$lt_LN_S
  14636. # What is the maximum length of a command?
  14637. max_cmd_len=$max_cmd_len
  14638. # Object file suffix (normally "o").
  14639. objext=$ac_objext
  14640. # Executable file suffix (normally "").
  14641. exeext=$exeext
  14642. # whether the shell understands "unset".
  14643. lt_unset=$lt_unset
  14644. # turn spaces into newlines.
  14645. SP2NL=$lt_lt_SP2NL
  14646. # turn newlines into spaces.
  14647. NL2SP=$lt_lt_NL2SP
  14648. # convert \$build file names to \$host format.
  14649. to_host_file_cmd=$lt_cv_to_host_file_cmd
  14650. # convert \$build files to toolchain format.
  14651. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  14652. # Method to check whether dependent libraries are shared objects.
  14653. deplibs_check_method=$lt_deplibs_check_method
  14654. # Command to use when deplibs_check_method = "file_magic".
  14655. file_magic_cmd=$lt_file_magic_cmd
  14656. # How to find potential files when deplibs_check_method = "file_magic".
  14657. file_magic_glob=$lt_file_magic_glob
  14658. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  14659. want_nocaseglob=$lt_want_nocaseglob
  14660. # Command to associate shared and link libraries.
  14661. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  14662. # The archiver.
  14663. AR=$lt_AR
  14664. # Flags to create an archive.
  14665. AR_FLAGS=$lt_AR_FLAGS
  14666. # How to feed a file listing to the archiver.
  14667. archiver_list_spec=$lt_archiver_list_spec
  14668. # A symbol stripping program.
  14669. STRIP=$lt_STRIP
  14670. # Commands used to install an old-style archive.
  14671. RANLIB=$lt_RANLIB
  14672. old_postinstall_cmds=$lt_old_postinstall_cmds
  14673. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14674. # Whether to use a lock for old archive extraction.
  14675. lock_old_archive_extraction=$lock_old_archive_extraction
  14676. # A C compiler.
  14677. LTCC=$lt_CC
  14678. # LTCC compiler flags.
  14679. LTCFLAGS=$lt_CFLAGS
  14680. # Take the output of nm and produce a listing of raw symbols and C names.
  14681. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14682. # Transform the output of nm in a proper C declaration.
  14683. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14684. # Transform the output of nm into a list of symbols to manually relocate.
  14685. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  14686. # Transform the output of nm in a C name address pair.
  14687. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14688. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14689. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14690. # The name lister interface.
  14691. nm_interface=$lt_lt_cv_nm_interface
  14692. # Specify filename containing input files for \$NM.
  14693. nm_file_list_spec=$lt_nm_file_list_spec
  14694. # The root where to search for dependent libraries,and where our libraries should be installed.
  14695. lt_sysroot=$lt_sysroot
  14696. # Command to truncate a binary pipe.
  14697. lt_truncate_bin=$lt_lt_cv_truncate_bin
  14698. # The name of the directory that contains temporary libtool files.
  14699. objdir=$objdir
  14700. # Used to examine libraries when file_magic_cmd begins with "file".
  14701. MAGIC_CMD=$MAGIC_CMD
  14702. # Must we lock files when doing compilation?
  14703. need_locks=$lt_need_locks
  14704. # Manifest tool.
  14705. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  14706. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14707. DSYMUTIL=$lt_DSYMUTIL
  14708. # Tool to change global to local symbols on Mac OS X.
  14709. NMEDIT=$lt_NMEDIT
  14710. # Tool to manipulate fat objects and archives on Mac OS X.
  14711. LIPO=$lt_LIPO
  14712. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14713. OTOOL=$lt_OTOOL
  14714. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14715. OTOOL64=$lt_OTOOL64
  14716. # Old archive suffix (normally "a").
  14717. libext=$libext
  14718. # Shared library suffix (normally ".so").
  14719. shrext_cmds=$lt_shrext_cmds
  14720. # The commands to extract the exported symbol list from a shared archive.
  14721. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14722. # Variables whose values should be saved in libtool wrapper scripts and
  14723. # restored at link time.
  14724. variables_saved_for_relink=$lt_variables_saved_for_relink
  14725. # Do we need the "lib" prefix for modules?
  14726. need_lib_prefix=$need_lib_prefix
  14727. # Do we need a version for libraries?
  14728. need_version=$need_version
  14729. # Library versioning type.
  14730. version_type=$version_type
  14731. # Shared library runtime path variable.
  14732. runpath_var=$runpath_var
  14733. # Shared library path variable.
  14734. shlibpath_var=$shlibpath_var
  14735. # Is shlibpath searched before the hard-coded library search path?
  14736. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14737. # Format of library name prefix.
  14738. libname_spec=$lt_libname_spec
  14739. # List of archive names. First name is the real one, the rest are links.
  14740. # The last name is the one that the linker finds with -lNAME
  14741. library_names_spec=$lt_library_names_spec
  14742. # The coded name of the library, if different from the real name.
  14743. soname_spec=$lt_soname_spec
  14744. # Permission mode override for installation of shared libraries.
  14745. install_override_mode=$lt_install_override_mode
  14746. # Command to use after installation of a shared archive.
  14747. postinstall_cmds=$lt_postinstall_cmds
  14748. # Command to use after uninstallation of a shared archive.
  14749. postuninstall_cmds=$lt_postuninstall_cmds
  14750. # Commands used to finish a libtool library installation in a directory.
  14751. finish_cmds=$lt_finish_cmds
  14752. # As "finish_cmds", except a single script fragment to be evaled but
  14753. # not shown.
  14754. finish_eval=$lt_finish_eval
  14755. # Whether we should hardcode library paths into libraries.
  14756. hardcode_into_libs=$hardcode_into_libs
  14757. # Compile-time system search path for libraries.
  14758. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14759. # Detected run-time system search path for libraries.
  14760. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  14761. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  14762. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  14763. # Whether dlopen is supported.
  14764. dlopen_support=$enable_dlopen
  14765. # Whether dlopen of programs is supported.
  14766. dlopen_self=$enable_dlopen_self
  14767. # Whether dlopen of statically linked programs is supported.
  14768. dlopen_self_static=$enable_dlopen_self_static
  14769. # Commands to strip libraries.
  14770. old_striplib=$lt_old_striplib
  14771. striplib=$lt_striplib
  14772. # The linker used to build libraries.
  14773. LD=$lt_LD
  14774. # How to create reloadable object files.
  14775. reload_flag=$lt_reload_flag
  14776. reload_cmds=$lt_reload_cmds
  14777. # Commands used to build an old-style archive.
  14778. old_archive_cmds=$lt_old_archive_cmds
  14779. # A language specific compiler.
  14780. CC=$lt_compiler
  14781. # Is the compiler the GNU compiler?
  14782. with_gcc=$GCC
  14783. # Compiler flag to turn off builtin functions.
  14784. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14785. # Additional compiler flags for building library objects.
  14786. pic_flag=$lt_lt_prog_compiler_pic
  14787. # How to pass a linker flag through the compiler.
  14788. wl=$lt_lt_prog_compiler_wl
  14789. # Compiler flag to prevent dynamic linking.
  14790. link_static_flag=$lt_lt_prog_compiler_static
  14791. # Does compiler simultaneously support -c and -o options?
  14792. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14793. # Whether or not to add -lc for building shared libraries.
  14794. build_libtool_need_lc=$archive_cmds_need_lc
  14795. # Whether or not to disallow shared libs when runtime libs are static.
  14796. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14797. # Compiler flag to allow reflexive dlopens.
  14798. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14799. # Compiler flag to generate shared objects directly from archives.
  14800. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14801. # Whether the compiler copes with passing no objects directly.
  14802. compiler_needs_object=$lt_compiler_needs_object
  14803. # Create an old-style archive from a shared archive.
  14804. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14805. # Create a temporary old-style archive to link instead of a shared archive.
  14806. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14807. # Commands used to build a shared archive.
  14808. archive_cmds=$lt_archive_cmds
  14809. archive_expsym_cmds=$lt_archive_expsym_cmds
  14810. # Commands used to build a loadable module if different from building
  14811. # a shared archive.
  14812. module_cmds=$lt_module_cmds
  14813. module_expsym_cmds=$lt_module_expsym_cmds
  14814. # Whether we are building with GNU ld or not.
  14815. with_gnu_ld=$lt_with_gnu_ld
  14816. # Flag that allows shared libraries with undefined symbols to be built.
  14817. allow_undefined_flag=$lt_allow_undefined_flag
  14818. # Flag that enforces no undefined symbols.
  14819. no_undefined_flag=$lt_no_undefined_flag
  14820. # Flag to hardcode \$libdir into a binary during linking.
  14821. # This must work even if \$libdir does not exist
  14822. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  14823. # Whether we need a single "-rpath" flag with a separated argument.
  14824. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  14825. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  14826. # DIR into the resulting binary.
  14827. hardcode_direct=$hardcode_direct
  14828. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  14829. # DIR into the resulting binary and the resulting library dependency is
  14830. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  14831. # library is relocated.
  14832. hardcode_direct_absolute=$hardcode_direct_absolute
  14833. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14834. # into the resulting binary.
  14835. hardcode_minus_L=$hardcode_minus_L
  14836. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14837. # into the resulting binary.
  14838. hardcode_shlibpath_var=$hardcode_shlibpath_var
  14839. # Set to "yes" if building a shared library automatically hardcodes DIR
  14840. # into the library and all subsequent libraries and executables linked
  14841. # against it.
  14842. hardcode_automatic=$hardcode_automatic
  14843. # Set to yes if linker adds runtime paths of dependent libraries
  14844. # to runtime path list.
  14845. inherit_rpath=$inherit_rpath
  14846. # Whether libtool must link a program against all its dependency libraries.
  14847. link_all_deplibs=$link_all_deplibs
  14848. # Set to "yes" if exported symbols are required.
  14849. always_export_symbols=$always_export_symbols
  14850. # The commands to list exported symbols.
  14851. export_symbols_cmds=$lt_export_symbols_cmds
  14852. # Symbols that should not be listed in the preloaded symbols.
  14853. exclude_expsyms=$lt_exclude_expsyms
  14854. # Symbols that must always be exported.
  14855. include_expsyms=$lt_include_expsyms
  14856. # Commands necessary for linking programs (against libraries) with templates.
  14857. prelink_cmds=$lt_prelink_cmds
  14858. # Commands necessary for finishing linking programs.
  14859. postlink_cmds=$lt_postlink_cmds
  14860. # Specify filename containing input files.
  14861. file_list_spec=$lt_file_list_spec
  14862. # How to hardcode a shared library path into an executable.
  14863. hardcode_action=$hardcode_action
  14864. # ### END LIBTOOL CONFIG
  14865. _LT_EOF
  14866. cat <<'_LT_EOF' >> "$cfgfile"
  14867. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  14868. # func_munge_path_list VARIABLE PATH
  14869. # -----------------------------------
  14870. # VARIABLE is name of variable containing _space_ separated list of
  14871. # directories to be munged by the contents of PATH, which is string
  14872. # having a format:
  14873. # "DIR[:DIR]:"
  14874. # string "DIR[ DIR]" will be prepended to VARIABLE
  14875. # ":DIR[:DIR]"
  14876. # string "DIR[ DIR]" will be appended to VARIABLE
  14877. # "DIRP[:DIRP]::[DIRA:]DIRA"
  14878. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  14879. # "DIRA[ DIRA]" will be appended to VARIABLE
  14880. # "DIR[:DIR]"
  14881. # VARIABLE will be replaced by "DIR[ DIR]"
  14882. func_munge_path_list ()
  14883. {
  14884. case x$2 in
  14885. x)
  14886. ;;
  14887. *:)
  14888. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  14889. ;;
  14890. x:*)
  14891. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  14892. ;;
  14893. *::*)
  14894. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  14895. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  14896. ;;
  14897. *)
  14898. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  14899. ;;
  14900. esac
  14901. }
  14902. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  14903. func_cc_basename ()
  14904. {
  14905. for cc_temp in $*""; do
  14906. case $cc_temp in
  14907. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14908. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14909. \-*) ;;
  14910. *) break;;
  14911. esac
  14912. done
  14913. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  14914. }
  14915. # ### END FUNCTIONS SHARED WITH CONFIGURE
  14916. _LT_EOF
  14917. case $host_os in
  14918. aix3*)
  14919. cat <<\_LT_EOF >> "$cfgfile"
  14920. # AIX sometimes has problems with the GCC collect2 program. For some
  14921. # reason, if we set the COLLECT_NAMES environment variable, the problems
  14922. # vanish in a puff of smoke.
  14923. if test set != "${COLLECT_NAMES+set}"; then
  14924. COLLECT_NAMES=
  14925. export COLLECT_NAMES
  14926. fi
  14927. _LT_EOF
  14928. ;;
  14929. esac
  14930. ltmain=$ac_aux_dir/ltmain.sh
  14931. # We use sed instead of cat because bash on DJGPP gets confused if
  14932. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  14933. # text mode, it properly converts lines to CR/LF. This bash problem
  14934. # is reportedly fixed, but why not run on old versions too?
  14935. sed '$q' "$ltmain" >> "$cfgfile" \
  14936. || (rm -f "$cfgfile"; exit 1)
  14937. mv -f "$cfgfile" "$ofile" ||
  14938. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  14939. chmod +x "$ofile"
  14940. ;;
  14941. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14942. # Older Autoconf quotes --file arguments for eval, but not when files
  14943. # are listed without --file. Let's play safe and only enable the eval
  14944. # if we detect the quoting.
  14945. # TODO: see whether this extra hack can be removed once we start
  14946. # requiring Autoconf 2.70 or later.
  14947. case $CONFIG_FILES in #(
  14948. *\'*) :
  14949. eval set x "$CONFIG_FILES" ;; #(
  14950. *) :
  14951. set x $CONFIG_FILES ;; #(
  14952. *) :
  14953. ;;
  14954. esac
  14955. shift
  14956. # Used to flag and report bootstrapping failures.
  14957. am_rc=0
  14958. for am_mf
  14959. do
  14960. # Strip MF so we end up with the name of the file.
  14961. am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
  14962. # Check whether this is an Automake generated Makefile which includes
  14963. # dependency-tracking related rules and includes.
  14964. # Grep'ing the whole file directly is not great: AIX grep has a line
  14965. # limit of 2048, but all sed's we know have understand at least 4000.
  14966. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  14967. || continue
  14968. am_dirpart=`$as_dirname -- "$am_mf" ||
  14969. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14970. X"$am_mf" : 'X\(//\)[^/]' \| \
  14971. X"$am_mf" : 'X\(//\)$' \| \
  14972. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  14973. $as_echo X"$am_mf" |
  14974. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14975. s//\1/
  14976. q
  14977. }
  14978. /^X\(\/\/\)[^/].*/{
  14979. s//\1/
  14980. q
  14981. }
  14982. /^X\(\/\/\)$/{
  14983. s//\1/
  14984. q
  14985. }
  14986. /^X\(\/\).*/{
  14987. s//\1/
  14988. q
  14989. }
  14990. s/.*/./; q'`
  14991. am_filepart=`$as_basename -- "$am_mf" ||
  14992. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  14993. X"$am_mf" : 'X\(//\)$' \| \
  14994. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  14995. $as_echo X/"$am_mf" |
  14996. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14997. s//\1/
  14998. q
  14999. }
  15000. /^X\/\(\/\/\)$/{
  15001. s//\1/
  15002. q
  15003. }
  15004. /^X\/\(\/\).*/{
  15005. s//\1/
  15006. q
  15007. }
  15008. s/.*/./; q'`
  15009. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  15010. && sed -e '/# am--include-marker/d' "$am_filepart" \
  15011. | $MAKE -f - am--depfiles" >&5
  15012. (cd "$am_dirpart" \
  15013. && sed -e '/# am--include-marker/d' "$am_filepart" \
  15014. | $MAKE -f - am--depfiles) >&5 2>&5
  15015. ac_status=$?
  15016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15017. (exit $ac_status); } || am_rc=$?
  15018. done
  15019. if test $am_rc -ne 0; then
  15020. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15021. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15022. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  15023. for automatic dependency tracking. Try re-running configure with the
  15024. '--disable-dependency-tracking' option to at least be able to build
  15025. the package (albeit without support for automatic dependency tracking).
  15026. See \`config.log' for more details" "$LINENO" 5; }
  15027. fi
  15028. { am_dirpart=; unset am_dirpart;}
  15029. { am_filepart=; unset am_filepart;}
  15030. { am_mf=; unset am_mf;}
  15031. { am_rc=; unset am_rc;}
  15032. rm -f conftest-deps.mk
  15033. }
  15034. ;;
  15035. esac
  15036. done # for ac_tag
  15037. as_fn_exit 0
  15038. _ACEOF
  15039. ac_clean_files=$ac_clean_files_save
  15040. test $ac_write_fail = 0 ||
  15041. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  15042. # configure is writing to config.log, and then calls config.status.
  15043. # config.status does its own redirection, appending to config.log.
  15044. # Unfortunately, on DOS this fails, as config.log is still kept open
  15045. # by configure, so config.status won't be able to write to it; its
  15046. # output is simply discarded. So we exec the FD to /dev/null,
  15047. # effectively closing config.log, so it can be properly (re)opened and
  15048. # appended to by config.status. When coming back to configure, we
  15049. # need to make the FD available again.
  15050. if test "$no_create" != yes; then
  15051. ac_cs_success=:
  15052. ac_config_status_args=
  15053. test "$silent" = yes &&
  15054. ac_config_status_args="$ac_config_status_args --quiet"
  15055. exec 5>/dev/null
  15056. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15057. exec 5>>config.log
  15058. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15059. # would make configure fail if this is the last instruction.
  15060. $ac_cs_success || as_fn_exit 1
  15061. fi
  15062. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15063. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15064. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15065. fi