configure 380 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.63.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be more Bourne compatible
  13. DUALCASE=1; export DUALCASE # for MKS sh
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. setopt NO_GLOB_SUBST
  21. else
  22. case `(set -o) 2>/dev/null` in
  23. *posix*) set -o posix ;;
  24. esac
  25. fi
  26. # PATH needs CR
  27. # Avoid depending upon Character Ranges.
  28. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  29. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  30. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31. as_cr_digits='0123456789'
  32. as_cr_alnum=$as_cr_Letters$as_cr_digits
  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. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  41. as_echo='printf %s\n'
  42. as_echo_n='printf %s'
  43. else
  44. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  45. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  46. as_echo_n='/usr/ucb/echo -n'
  47. else
  48. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  49. as_echo_n_body='eval
  50. arg=$1;
  51. case $arg in
  52. *"$as_nl"*)
  53. expr "X$arg" : "X\\(.*\\)$as_nl";
  54. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  55. esac;
  56. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  57. '
  58. export as_echo_n_body
  59. as_echo_n='sh -c $as_echo_n_body as_echo'
  60. fi
  61. export as_echo_body
  62. as_echo='sh -c $as_echo_body as_echo'
  63. fi
  64. # The user is always right.
  65. if test "${PATH_SEPARATOR+set}" != set; then
  66. PATH_SEPARATOR=:
  67. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  68. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  69. PATH_SEPARATOR=';'
  70. }
  71. fi
  72. # Support unset when possible.
  73. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  74. as_unset=unset
  75. else
  76. as_unset=false
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. { (exit 1); exit 1; }
  105. fi
  106. # Work around bugs in pre-3.0 UWIN ksh.
  107. for as_var in ENV MAIL MAILPATH
  108. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  109. done
  110. PS1='$ '
  111. PS2='> '
  112. PS4='+ '
  113. # NLS nuisances.
  114. LC_ALL=C
  115. export LC_ALL
  116. LANGUAGE=C
  117. export LANGUAGE
  118. # Required to use basename.
  119. if expr a : '\(a\)' >/dev/null 2>&1 &&
  120. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  121. as_expr=expr
  122. else
  123. as_expr=false
  124. fi
  125. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  126. as_basename=basename
  127. else
  128. as_basename=false
  129. fi
  130. # Name of the executable.
  131. as_me=`$as_basename -- "$0" ||
  132. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  133. X"$0" : 'X\(//\)$' \| \
  134. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  135. $as_echo X/"$0" |
  136. sed '/^.*\/\([^/][^/]*\)\/*$/{
  137. s//\1/
  138. q
  139. }
  140. /^X\/\(\/\/\)$/{
  141. s//\1/
  142. q
  143. }
  144. /^X\/\(\/\).*/{
  145. s//\1/
  146. q
  147. }
  148. s/.*/./; q'`
  149. # CDPATH.
  150. $as_unset CDPATH
  151. if test "x$CONFIG_SHELL" = x; then
  152. if (eval ":") 2>/dev/null; then
  153. as_have_required=yes
  154. else
  155. as_have_required=no
  156. fi
  157. if test $as_have_required = yes && (eval ":
  158. (as_func_return () {
  159. (exit \$1)
  160. }
  161. as_func_success () {
  162. as_func_return 0
  163. }
  164. as_func_failure () {
  165. as_func_return 1
  166. }
  167. as_func_ret_success () {
  168. return 0
  169. }
  170. as_func_ret_failure () {
  171. return 1
  172. }
  173. exitcode=0
  174. if as_func_success; then
  175. :
  176. else
  177. exitcode=1
  178. echo as_func_success failed.
  179. fi
  180. if as_func_failure; then
  181. exitcode=1
  182. echo as_func_failure succeeded.
  183. fi
  184. if as_func_ret_success; then
  185. :
  186. else
  187. exitcode=1
  188. echo as_func_ret_success failed.
  189. fi
  190. if as_func_ret_failure; then
  191. exitcode=1
  192. echo as_func_ret_failure succeeded.
  193. fi
  194. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  195. :
  196. else
  197. exitcode=1
  198. echo positional parameters were not saved.
  199. fi
  200. test \$exitcode = 0) || { (exit 1); exit 1; }
  201. (
  202. as_lineno_1=\$LINENO
  203. as_lineno_2=\$LINENO
  204. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  205. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  206. ") 2> /dev/null; then
  207. :
  208. else
  209. as_candidate_shells=
  210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  211. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  212. do
  213. IFS=$as_save_IFS
  214. test -z "$as_dir" && as_dir=.
  215. case $as_dir in
  216. /*)
  217. for as_base in sh bash ksh sh5; do
  218. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  219. done;;
  220. esac
  221. done
  222. IFS=$as_save_IFS
  223. for as_shell in $as_candidate_shells $SHELL; do
  224. # Try only shells that exist, to save several forks.
  225. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  226. { ("$as_shell") 2> /dev/null <<\_ASEOF
  227. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  228. emulate sh
  229. NULLCMD=:
  230. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  231. # is contrary to our usage. Disable this feature.
  232. alias -g '${1+"$@"}'='"$@"'
  233. setopt NO_GLOB_SUBST
  234. else
  235. case `(set -o) 2>/dev/null` in
  236. *posix*) set -o posix ;;
  237. esac
  238. fi
  239. :
  240. _ASEOF
  241. }; then
  242. CONFIG_SHELL=$as_shell
  243. as_have_required=yes
  244. if { "$as_shell" 2> /dev/null <<\_ASEOF
  245. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  246. emulate sh
  247. NULLCMD=:
  248. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  249. # is contrary to our usage. Disable this feature.
  250. alias -g '${1+"$@"}'='"$@"'
  251. setopt NO_GLOB_SUBST
  252. else
  253. case `(set -o) 2>/dev/null` in
  254. *posix*) set -o posix ;;
  255. esac
  256. fi
  257. :
  258. (as_func_return () {
  259. (exit $1)
  260. }
  261. as_func_success () {
  262. as_func_return 0
  263. }
  264. as_func_failure () {
  265. as_func_return 1
  266. }
  267. as_func_ret_success () {
  268. return 0
  269. }
  270. as_func_ret_failure () {
  271. return 1
  272. }
  273. exitcode=0
  274. if as_func_success; then
  275. :
  276. else
  277. exitcode=1
  278. echo as_func_success failed.
  279. fi
  280. if as_func_failure; then
  281. exitcode=1
  282. echo as_func_failure succeeded.
  283. fi
  284. if as_func_ret_success; then
  285. :
  286. else
  287. exitcode=1
  288. echo as_func_ret_success failed.
  289. fi
  290. if as_func_ret_failure; then
  291. exitcode=1
  292. echo as_func_ret_failure succeeded.
  293. fi
  294. if ( set x; as_func_ret_success y && test x = "$1" ); then
  295. :
  296. else
  297. exitcode=1
  298. echo positional parameters were not saved.
  299. fi
  300. test $exitcode = 0) || { (exit 1); exit 1; }
  301. (
  302. as_lineno_1=$LINENO
  303. as_lineno_2=$LINENO
  304. test "x$as_lineno_1" != "x$as_lineno_2" &&
  305. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  306. _ASEOF
  307. }; then
  308. break
  309. fi
  310. fi
  311. done
  312. if test "x$CONFIG_SHELL" != x; then
  313. for as_var in BASH_ENV ENV
  314. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  315. done
  316. export CONFIG_SHELL
  317. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  318. fi
  319. if test $as_have_required = no; then
  320. echo This script requires a shell more modern than all the
  321. echo shells that I found on your system. Please install a
  322. echo modern shell, or manually run the script under such a
  323. echo shell if you do have one.
  324. { (exit 1); exit 1; }
  325. fi
  326. fi
  327. fi
  328. (eval "as_func_return () {
  329. (exit \$1)
  330. }
  331. as_func_success () {
  332. as_func_return 0
  333. }
  334. as_func_failure () {
  335. as_func_return 1
  336. }
  337. as_func_ret_success () {
  338. return 0
  339. }
  340. as_func_ret_failure () {
  341. return 1
  342. }
  343. exitcode=0
  344. if as_func_success; then
  345. :
  346. else
  347. exitcode=1
  348. echo as_func_success failed.
  349. fi
  350. if as_func_failure; then
  351. exitcode=1
  352. echo as_func_failure succeeded.
  353. fi
  354. if as_func_ret_success; then
  355. :
  356. else
  357. exitcode=1
  358. echo as_func_ret_success failed.
  359. fi
  360. if as_func_ret_failure; then
  361. exitcode=1
  362. echo as_func_ret_failure succeeded.
  363. fi
  364. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  365. :
  366. else
  367. exitcode=1
  368. echo positional parameters were not saved.
  369. fi
  370. test \$exitcode = 0") || {
  371. echo No shell found that supports shell functions.
  372. echo Please tell bug-autoconf@gnu.org about your system,
  373. echo including any error possibly output before this message.
  374. echo This can help us improve future autoconf versions.
  375. echo Configuration will now proceed without shell functions.
  376. }
  377. as_lineno_1=$LINENO
  378. as_lineno_2=$LINENO
  379. test "x$as_lineno_1" != "x$as_lineno_2" &&
  380. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  381. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  382. # uniformly replaced by the line number. The first 'sed' inserts a
  383. # line-number line after each line using $LINENO; the second 'sed'
  384. # does the real work. The second script uses 'N' to pair each
  385. # line-number line with the line containing $LINENO, and appends
  386. # trailing '-' during substitution so that $LINENO is not a special
  387. # case at line end.
  388. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  389. # scripts with optimization help from Paolo Bonzini. Blame Lee
  390. # E. McMahon (1931-1989) for sed's syntax. :-)
  391. sed -n '
  392. p
  393. /[$]LINENO/=
  394. ' <$as_myself |
  395. sed '
  396. s/[$]LINENO.*/&-/
  397. t lineno
  398. b
  399. :lineno
  400. N
  401. :loop
  402. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  403. t loop
  404. s/-\n.*//
  405. ' >$as_me.lineno &&
  406. chmod +x "$as_me.lineno" ||
  407. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  408. { (exit 1); exit 1; }; }
  409. # Don't try to exec as it changes $[0], causing all sort of problems
  410. # (the dirname of $[0] is not the place where we might find the
  411. # original and so on. Autoconf is especially sensitive to this).
  412. . "./$as_me.lineno"
  413. # Exit status is that of the last command.
  414. exit
  415. }
  416. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  417. as_dirname=dirname
  418. else
  419. as_dirname=false
  420. fi
  421. ECHO_C= ECHO_N= ECHO_T=
  422. case `echo -n x` in
  423. -n*)
  424. case `echo 'x\c'` in
  425. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  426. *) ECHO_C='\c';;
  427. esac;;
  428. *)
  429. ECHO_N='-n';;
  430. esac
  431. if expr a : '\(a\)' >/dev/null 2>&1 &&
  432. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  433. as_expr=expr
  434. else
  435. as_expr=false
  436. fi
  437. rm -f conf$$ conf$$.exe conf$$.file
  438. if test -d conf$$.dir; then
  439. rm -f conf$$.dir/conf$$.file
  440. else
  441. rm -f conf$$.dir
  442. mkdir conf$$.dir 2>/dev/null
  443. fi
  444. if (echo >conf$$.file) 2>/dev/null; then
  445. if ln -s conf$$.file conf$$ 2>/dev/null; then
  446. as_ln_s='ln -s'
  447. # ... but there are two gotchas:
  448. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  449. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  450. # In both cases, we have to default to `cp -p'.
  451. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  452. as_ln_s='cp -p'
  453. elif ln conf$$.file conf$$ 2>/dev/null; then
  454. as_ln_s=ln
  455. else
  456. as_ln_s='cp -p'
  457. fi
  458. else
  459. as_ln_s='cp -p'
  460. fi
  461. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  462. rmdir conf$$.dir 2>/dev/null
  463. if mkdir -p . 2>/dev/null; then
  464. as_mkdir_p=:
  465. else
  466. test -d ./-p && rmdir ./-p
  467. as_mkdir_p=false
  468. fi
  469. if test -x / >/dev/null 2>&1; then
  470. as_test_x='test -x'
  471. else
  472. if ls -dL / >/dev/null 2>&1; then
  473. as_ls_L_option=L
  474. else
  475. as_ls_L_option=
  476. fi
  477. as_test_x='
  478. eval sh -c '\''
  479. if test -d "$1"; then
  480. test -d "$1/.";
  481. else
  482. case $1 in
  483. -*)set "./$1";;
  484. esac;
  485. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  486. ???[sx]*):;;*)false;;esac;fi
  487. '\'' sh
  488. '
  489. fi
  490. as_executable_p=$as_test_x
  491. # Sed expression to map a string onto a valid CPP name.
  492. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  493. # Sed expression to map a string onto a valid variable name.
  494. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  495. # Check that we are running under the correct shell.
  496. SHELL=${CONFIG_SHELL-/bin/sh}
  497. case X$lt_ECHO in
  498. X*--fallback-echo)
  499. # Remove one level of quotation (which was required for Make).
  500. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  501. ;;
  502. esac
  503. ECHO=${lt_ECHO-echo}
  504. if test "X$1" = X--no-reexec; then
  505. # Discard the --no-reexec flag, and continue.
  506. shift
  507. elif test "X$1" = X--fallback-echo; then
  508. # Avoid inline document here, it may be left over
  509. :
  510. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  511. # Yippee, $ECHO works!
  512. :
  513. else
  514. # Restart under the correct shell.
  515. exec $SHELL "$0" --no-reexec ${1+"$@"}
  516. fi
  517. if test "X$1" = X--fallback-echo; then
  518. # used as fallback echo
  519. shift
  520. cat <<_LT_EOF
  521. $*
  522. _LT_EOF
  523. exit 0
  524. fi
  525. # The HP-UX ksh and POSIX shell print the target directory to stdout
  526. # if CDPATH is set.
  527. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  528. if test -z "$lt_ECHO"; then
  529. if test "X${echo_test_string+set}" != Xset; then
  530. # find a string as large as possible, as long as the shell can cope with it
  531. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  532. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  533. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  534. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  535. then
  536. break
  537. fi
  538. done
  539. fi
  540. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  541. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  542. test "X$echo_testing_string" = "X$echo_test_string"; then
  543. :
  544. else
  545. # The Solaris, AIX, and Digital Unix default echo programs unquote
  546. # backslashes. This makes it impossible to quote backslashes using
  547. # echo "$something" | sed 's/\\/\\\\/g'
  548. #
  549. # So, first we look for a working echo in the user's PATH.
  550. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  551. for dir in $PATH /usr/ucb; do
  552. IFS="$lt_save_ifs"
  553. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  554. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  555. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  556. test "X$echo_testing_string" = "X$echo_test_string"; then
  557. ECHO="$dir/echo"
  558. break
  559. fi
  560. done
  561. IFS="$lt_save_ifs"
  562. if test "X$ECHO" = Xecho; then
  563. # We didn't find a better echo, so look for alternatives.
  564. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  565. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  566. test "X$echo_testing_string" = "X$echo_test_string"; then
  567. # This shell has a builtin print -r that does the trick.
  568. ECHO='print -r'
  569. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  570. test "X$CONFIG_SHELL" != X/bin/ksh; then
  571. # If we have ksh, try running configure again with it.
  572. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  573. export ORIGINAL_CONFIG_SHELL
  574. CONFIG_SHELL=/bin/ksh
  575. export CONFIG_SHELL
  576. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  577. else
  578. # Try using printf.
  579. ECHO='printf %s\n'
  580. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  581. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  582. test "X$echo_testing_string" = "X$echo_test_string"; then
  583. # Cool, printf works
  584. :
  585. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  586. test "X$echo_testing_string" = 'X\t' &&
  587. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  588. test "X$echo_testing_string" = "X$echo_test_string"; then
  589. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  590. export CONFIG_SHELL
  591. SHELL="$CONFIG_SHELL"
  592. export SHELL
  593. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  594. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  595. test "X$echo_testing_string" = 'X\t' &&
  596. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  597. test "X$echo_testing_string" = "X$echo_test_string"; then
  598. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  599. else
  600. # maybe with a smaller string...
  601. prev=:
  602. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  603. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  604. then
  605. break
  606. fi
  607. prev="$cmd"
  608. done
  609. if test "$prev" != 'sed 50q "$0"'; then
  610. echo_test_string=`eval $prev`
  611. export echo_test_string
  612. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  613. else
  614. # Oops. We lost completely, so just stick with echo.
  615. ECHO=echo
  616. fi
  617. fi
  618. fi
  619. fi
  620. fi
  621. fi
  622. # Copy echo and quote the copy suitably for passing to libtool from
  623. # the Makefile, instead of quoting the original, which is used later.
  624. lt_ECHO=$ECHO
  625. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  626. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  627. fi
  628. exec 7<&0 </dev/null 6>&1
  629. # Name of the host.
  630. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  631. # so uname gets run too.
  632. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  633. #
  634. # Initializations.
  635. #
  636. ac_default_prefix=/usr/local
  637. ac_clean_files=
  638. ac_config_libobj_dir=.
  639. LIBOBJS=
  640. cross_compiling=no
  641. subdirs=
  642. MFLAGS=
  643. MAKEFLAGS=
  644. SHELL=${CONFIG_SHELL-/bin/sh}
  645. # Identity of this package.
  646. PACKAGE_NAME=
  647. PACKAGE_TARNAME=
  648. PACKAGE_VERSION=
  649. PACKAGE_STRING=
  650. PACKAGE_BUGREPORT=
  651. ac_unique_file="lib/localcharset.c"
  652. # Factoring default headers for most tests.
  653. ac_includes_default="\
  654. #include <stdio.h>
  655. #ifdef HAVE_SYS_TYPES_H
  656. # include <sys/types.h>
  657. #endif
  658. #ifdef HAVE_SYS_STAT_H
  659. # include <sys/stat.h>
  660. #endif
  661. #ifdef STDC_HEADERS
  662. # include <stdlib.h>
  663. # include <stddef.h>
  664. #else
  665. # ifdef HAVE_STDLIB_H
  666. # include <stdlib.h>
  667. # endif
  668. #endif
  669. #ifdef HAVE_STRING_H
  670. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  671. # include <memory.h>
  672. # endif
  673. # include <string.h>
  674. #endif
  675. #ifdef HAVE_STRINGS_H
  676. # include <strings.h>
  677. #endif
  678. #ifdef HAVE_INTTYPES_H
  679. # include <inttypes.h>
  680. #endif
  681. #ifdef HAVE_STDINT_H
  682. # include <stdint.h>
  683. #endif
  684. #ifdef HAVE_UNISTD_H
  685. # include <unistd.h>
  686. #endif"
  687. ac_subst_vars='LTLIBOBJS
  688. GLIBC21
  689. HAVE_VISIBILITY
  690. CFLAG_VISIBILITY
  691. OTOOL64
  692. OTOOL
  693. LIPO
  694. NMEDIT
  695. DSYMUTIL
  696. lt_ECHO
  697. RANLIB
  698. STRIP
  699. AR
  700. LN_S
  701. NM
  702. ac_ct_DUMPBIN
  703. DUMPBIN
  704. LD
  705. FGREP
  706. SED
  707. LIBTOOL
  708. OBJDUMP
  709. DLLTOOL
  710. AS
  711. EGREP
  712. GREP
  713. LIBOBJS
  714. RELOCATABLE
  715. host_os
  716. host_vendor
  717. host_cpu
  718. host
  719. build_os
  720. build_vendor
  721. build_cpu
  722. build
  723. INSTALL_DATA
  724. INSTALL_SCRIPT
  725. INSTALL_PROGRAM
  726. CPP
  727. OBJEXT
  728. EXEEXT
  729. ac_ct_CC
  730. CPPFLAGS
  731. LDFLAGS
  732. CFLAGS
  733. CC
  734. VERSION
  735. PACKAGE
  736. SET_MAKE
  737. target_alias
  738. host_alias
  739. build_alias
  740. LIBS
  741. ECHO_T
  742. ECHO_N
  743. ECHO_C
  744. DEFS
  745. mandir
  746. localedir
  747. libdir
  748. psdir
  749. pdfdir
  750. dvidir
  751. htmldir
  752. infodir
  753. docdir
  754. oldincludedir
  755. includedir
  756. localstatedir
  757. sharedstatedir
  758. sysconfdir
  759. datadir
  760. datarootdir
  761. libexecdir
  762. sbindir
  763. bindir
  764. program_transform_name
  765. prefix
  766. exec_prefix
  767. PACKAGE_BUGREPORT
  768. PACKAGE_STRING
  769. PACKAGE_VERSION
  770. PACKAGE_TARNAME
  771. PACKAGE_NAME
  772. PATH_SEPARATOR
  773. SHELL'
  774. ac_subst_files=''
  775. ac_user_opts='
  776. enable_option_checking
  777. enable_relocatable
  778. enable_shared
  779. enable_static
  780. with_pic
  781. enable_fast_install
  782. with_gnu_ld
  783. enable_libtool_lock
  784. '
  785. ac_precious_vars='build_alias
  786. host_alias
  787. target_alias
  788. CC
  789. CFLAGS
  790. LDFLAGS
  791. LIBS
  792. CPPFLAGS
  793. CPP'
  794. # Initialize some variables set by options.
  795. ac_init_help=
  796. ac_init_version=false
  797. ac_unrecognized_opts=
  798. ac_unrecognized_sep=
  799. # The variables have the same names as the options, with
  800. # dashes changed to underlines.
  801. cache_file=/dev/null
  802. exec_prefix=NONE
  803. no_create=
  804. no_recursion=
  805. prefix=NONE
  806. program_prefix=NONE
  807. program_suffix=NONE
  808. program_transform_name=s,x,x,
  809. silent=
  810. site=
  811. srcdir=
  812. verbose=
  813. x_includes=NONE
  814. x_libraries=NONE
  815. # Installation directory options.
  816. # These are left unexpanded so users can "make install exec_prefix=/foo"
  817. # and all the variables that are supposed to be based on exec_prefix
  818. # by default will actually change.
  819. # Use braces instead of parens because sh, perl, etc. also accept them.
  820. # (The list follows the same order as the GNU Coding Standards.)
  821. bindir='${exec_prefix}/bin'
  822. sbindir='${exec_prefix}/sbin'
  823. libexecdir='${exec_prefix}/libexec'
  824. datarootdir='${prefix}/share'
  825. datadir='${datarootdir}'
  826. sysconfdir='${prefix}/etc'
  827. sharedstatedir='${prefix}/com'
  828. localstatedir='${prefix}/var'
  829. includedir='${prefix}/include'
  830. oldincludedir='/usr/include'
  831. docdir='${datarootdir}/doc/${PACKAGE}'
  832. infodir='${datarootdir}/info'
  833. htmldir='${docdir}'
  834. dvidir='${docdir}'
  835. pdfdir='${docdir}'
  836. psdir='${docdir}'
  837. libdir='${exec_prefix}/lib'
  838. localedir='${datarootdir}/locale'
  839. mandir='${datarootdir}/man'
  840. ac_prev=
  841. ac_dashdash=
  842. for ac_option
  843. do
  844. # If the previous option needs an argument, assign it.
  845. if test -n "$ac_prev"; then
  846. eval $ac_prev=\$ac_option
  847. ac_prev=
  848. continue
  849. fi
  850. case $ac_option in
  851. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  852. *) ac_optarg=yes ;;
  853. esac
  854. # Accept the important Cygnus configure options, so we can diagnose typos.
  855. case $ac_dashdash$ac_option in
  856. --)
  857. ac_dashdash=yes ;;
  858. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  859. ac_prev=bindir ;;
  860. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  861. bindir=$ac_optarg ;;
  862. -build | --build | --buil | --bui | --bu)
  863. ac_prev=build_alias ;;
  864. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  865. build_alias=$ac_optarg ;;
  866. -cache-file | --cache-file | --cache-fil | --cache-fi \
  867. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  868. ac_prev=cache_file ;;
  869. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  870. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  871. cache_file=$ac_optarg ;;
  872. --config-cache | -C)
  873. cache_file=config.cache ;;
  874. -datadir | --datadir | --datadi | --datad)
  875. ac_prev=datadir ;;
  876. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  877. datadir=$ac_optarg ;;
  878. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  879. | --dataroo | --dataro | --datar)
  880. ac_prev=datarootdir ;;
  881. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  882. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  883. datarootdir=$ac_optarg ;;
  884. -disable-* | --disable-*)
  885. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  886. # Reject names that are not valid shell variable names.
  887. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  888. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  889. { (exit 1); exit 1; }; }
  890. ac_useropt_orig=$ac_useropt
  891. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  892. case $ac_user_opts in
  893. *"
  894. "enable_$ac_useropt"
  895. "*) ;;
  896. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  897. ac_unrecognized_sep=', ';;
  898. esac
  899. eval enable_$ac_useropt=no ;;
  900. -docdir | --docdir | --docdi | --doc | --do)
  901. ac_prev=docdir ;;
  902. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  903. docdir=$ac_optarg ;;
  904. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  905. ac_prev=dvidir ;;
  906. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  907. dvidir=$ac_optarg ;;
  908. -enable-* | --enable-*)
  909. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  910. # Reject names that are not valid shell variable names.
  911. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  912. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  913. { (exit 1); exit 1; }; }
  914. ac_useropt_orig=$ac_useropt
  915. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  916. case $ac_user_opts in
  917. *"
  918. "enable_$ac_useropt"
  919. "*) ;;
  920. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  921. ac_unrecognized_sep=', ';;
  922. esac
  923. eval enable_$ac_useropt=\$ac_optarg ;;
  924. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  925. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  926. | --exec | --exe | --ex)
  927. ac_prev=exec_prefix ;;
  928. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  929. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  930. | --exec=* | --exe=* | --ex=*)
  931. exec_prefix=$ac_optarg ;;
  932. -gas | --gas | --ga | --g)
  933. # Obsolete; use --with-gas.
  934. with_gas=yes ;;
  935. -help | --help | --hel | --he | -h)
  936. ac_init_help=long ;;
  937. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  938. ac_init_help=recursive ;;
  939. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  940. ac_init_help=short ;;
  941. -host | --host | --hos | --ho)
  942. ac_prev=host_alias ;;
  943. -host=* | --host=* | --hos=* | --ho=*)
  944. host_alias=$ac_optarg ;;
  945. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  946. ac_prev=htmldir ;;
  947. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  948. | --ht=*)
  949. htmldir=$ac_optarg ;;
  950. -includedir | --includedir | --includedi | --included | --include \
  951. | --includ | --inclu | --incl | --inc)
  952. ac_prev=includedir ;;
  953. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  954. | --includ=* | --inclu=* | --incl=* | --inc=*)
  955. includedir=$ac_optarg ;;
  956. -infodir | --infodir | --infodi | --infod | --info | --inf)
  957. ac_prev=infodir ;;
  958. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  959. infodir=$ac_optarg ;;
  960. -libdir | --libdir | --libdi | --libd)
  961. ac_prev=libdir ;;
  962. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  963. libdir=$ac_optarg ;;
  964. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  965. | --libexe | --libex | --libe)
  966. ac_prev=libexecdir ;;
  967. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  968. | --libexe=* | --libex=* | --libe=*)
  969. libexecdir=$ac_optarg ;;
  970. -localedir | --localedir | --localedi | --localed | --locale)
  971. ac_prev=localedir ;;
  972. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  973. localedir=$ac_optarg ;;
  974. -localstatedir | --localstatedir | --localstatedi | --localstated \
  975. | --localstate | --localstat | --localsta | --localst | --locals)
  976. ac_prev=localstatedir ;;
  977. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  978. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  979. localstatedir=$ac_optarg ;;
  980. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  981. ac_prev=mandir ;;
  982. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  983. mandir=$ac_optarg ;;
  984. -nfp | --nfp | --nf)
  985. # Obsolete; use --without-fp.
  986. with_fp=no ;;
  987. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  988. | --no-cr | --no-c | -n)
  989. no_create=yes ;;
  990. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  991. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  992. no_recursion=yes ;;
  993. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  994. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  995. | --oldin | --oldi | --old | --ol | --o)
  996. ac_prev=oldincludedir ;;
  997. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  998. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  999. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1000. oldincludedir=$ac_optarg ;;
  1001. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1002. ac_prev=prefix ;;
  1003. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1004. prefix=$ac_optarg ;;
  1005. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1006. | --program-pre | --program-pr | --program-p)
  1007. ac_prev=program_prefix ;;
  1008. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1009. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1010. program_prefix=$ac_optarg ;;
  1011. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1012. | --program-suf | --program-su | --program-s)
  1013. ac_prev=program_suffix ;;
  1014. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1015. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1016. program_suffix=$ac_optarg ;;
  1017. -program-transform-name | --program-transform-name \
  1018. | --program-transform-nam | --program-transform-na \
  1019. | --program-transform-n | --program-transform- \
  1020. | --program-transform | --program-transfor \
  1021. | --program-transfo | --program-transf \
  1022. | --program-trans | --program-tran \
  1023. | --progr-tra | --program-tr | --program-t)
  1024. ac_prev=program_transform_name ;;
  1025. -program-transform-name=* | --program-transform-name=* \
  1026. | --program-transform-nam=* | --program-transform-na=* \
  1027. | --program-transform-n=* | --program-transform-=* \
  1028. | --program-transform=* | --program-transfor=* \
  1029. | --program-transfo=* | --program-transf=* \
  1030. | --program-trans=* | --program-tran=* \
  1031. | --progr-tra=* | --program-tr=* | --program-t=*)
  1032. program_transform_name=$ac_optarg ;;
  1033. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1034. ac_prev=pdfdir ;;
  1035. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1036. pdfdir=$ac_optarg ;;
  1037. -psdir | --psdir | --psdi | --psd | --ps)
  1038. ac_prev=psdir ;;
  1039. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1040. psdir=$ac_optarg ;;
  1041. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1042. | -silent | --silent | --silen | --sile | --sil)
  1043. silent=yes ;;
  1044. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1045. ac_prev=sbindir ;;
  1046. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1047. | --sbi=* | --sb=*)
  1048. sbindir=$ac_optarg ;;
  1049. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1050. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1051. | --sharedst | --shareds | --shared | --share | --shar \
  1052. | --sha | --sh)
  1053. ac_prev=sharedstatedir ;;
  1054. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1055. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1056. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1057. | --sha=* | --sh=*)
  1058. sharedstatedir=$ac_optarg ;;
  1059. -site | --site | --sit)
  1060. ac_prev=site ;;
  1061. -site=* | --site=* | --sit=*)
  1062. site=$ac_optarg ;;
  1063. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1064. ac_prev=srcdir ;;
  1065. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1066. srcdir=$ac_optarg ;;
  1067. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1068. | --syscon | --sysco | --sysc | --sys | --sy)
  1069. ac_prev=sysconfdir ;;
  1070. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1071. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1072. sysconfdir=$ac_optarg ;;
  1073. -target | --target | --targe | --targ | --tar | --ta | --t)
  1074. ac_prev=target_alias ;;
  1075. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1076. target_alias=$ac_optarg ;;
  1077. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1078. verbose=yes ;;
  1079. -version | --version | --versio | --versi | --vers | -V)
  1080. ac_init_version=: ;;
  1081. -with-* | --with-*)
  1082. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1083. # Reject names that are not valid shell variable names.
  1084. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1085. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1086. { (exit 1); exit 1; }; }
  1087. ac_useropt_orig=$ac_useropt
  1088. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1089. case $ac_user_opts in
  1090. *"
  1091. "with_$ac_useropt"
  1092. "*) ;;
  1093. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1094. ac_unrecognized_sep=', ';;
  1095. esac
  1096. eval with_$ac_useropt=\$ac_optarg ;;
  1097. -without-* | --without-*)
  1098. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1099. # Reject names that are not valid shell variable names.
  1100. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1101. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1102. { (exit 1); exit 1; }; }
  1103. ac_useropt_orig=$ac_useropt
  1104. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1105. case $ac_user_opts in
  1106. *"
  1107. "with_$ac_useropt"
  1108. "*) ;;
  1109. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1110. ac_unrecognized_sep=', ';;
  1111. esac
  1112. eval with_$ac_useropt=no ;;
  1113. --x)
  1114. # Obsolete; use --with-x.
  1115. with_x=yes ;;
  1116. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1117. | --x-incl | --x-inc | --x-in | --x-i)
  1118. ac_prev=x_includes ;;
  1119. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1120. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1121. x_includes=$ac_optarg ;;
  1122. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1123. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1124. ac_prev=x_libraries ;;
  1125. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1126. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1127. x_libraries=$ac_optarg ;;
  1128. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1129. Try \`$0 --help' for more information." >&2
  1130. { (exit 1); exit 1; }; }
  1131. ;;
  1132. *=*)
  1133. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1134. # Reject names that are not valid shell variable names.
  1135. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1136. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1137. { (exit 1); exit 1; }; }
  1138. eval $ac_envvar=\$ac_optarg
  1139. export $ac_envvar ;;
  1140. *)
  1141. # FIXME: should be removed in autoconf 3.0.
  1142. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1143. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1144. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1145. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1146. ;;
  1147. esac
  1148. done
  1149. if test -n "$ac_prev"; then
  1150. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1151. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1152. { (exit 1); exit 1; }; }
  1153. fi
  1154. if test -n "$ac_unrecognized_opts"; then
  1155. case $enable_option_checking in
  1156. no) ;;
  1157. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1158. { (exit 1); exit 1; }; } ;;
  1159. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1160. esac
  1161. fi
  1162. # Check all directory arguments for consistency.
  1163. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1164. datadir sysconfdir sharedstatedir localstatedir includedir \
  1165. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1166. libdir localedir mandir
  1167. do
  1168. eval ac_val=\$$ac_var
  1169. # Remove trailing slashes.
  1170. case $ac_val in
  1171. */ )
  1172. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1173. eval $ac_var=\$ac_val;;
  1174. esac
  1175. # Be sure to have absolute directory names.
  1176. case $ac_val in
  1177. [\\/$]* | ?:[\\/]* ) continue;;
  1178. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1179. esac
  1180. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1181. { (exit 1); exit 1; }; }
  1182. done
  1183. # There might be people who depend on the old broken behavior: `$host'
  1184. # used to hold the argument of --host etc.
  1185. # FIXME: To remove some day.
  1186. build=$build_alias
  1187. host=$host_alias
  1188. target=$target_alias
  1189. # FIXME: To remove some day.
  1190. if test "x$host_alias" != x; then
  1191. if test "x$build_alias" = x; then
  1192. cross_compiling=maybe
  1193. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1194. If a cross compiler is detected then cross compile mode will be used." >&2
  1195. elif test "x$build_alias" != "x$host_alias"; then
  1196. cross_compiling=yes
  1197. fi
  1198. fi
  1199. ac_tool_prefix=
  1200. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1201. test "$silent" = yes && exec 6>/dev/null
  1202. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1203. ac_ls_di=`ls -di .` &&
  1204. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1205. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1206. { (exit 1); exit 1; }; }
  1207. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1208. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1209. { (exit 1); exit 1; }; }
  1210. # Find the source files, if location was not specified.
  1211. if test -z "$srcdir"; then
  1212. ac_srcdir_defaulted=yes
  1213. # Try the directory containing this script, then the parent directory.
  1214. ac_confdir=`$as_dirname -- "$as_myself" ||
  1215. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1216. X"$as_myself" : 'X\(//\)[^/]' \| \
  1217. X"$as_myself" : 'X\(//\)$' \| \
  1218. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1219. $as_echo X"$as_myself" |
  1220. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1221. s//\1/
  1222. q
  1223. }
  1224. /^X\(\/\/\)[^/].*/{
  1225. s//\1/
  1226. q
  1227. }
  1228. /^X\(\/\/\)$/{
  1229. s//\1/
  1230. q
  1231. }
  1232. /^X\(\/\).*/{
  1233. s//\1/
  1234. q
  1235. }
  1236. s/.*/./; q'`
  1237. srcdir=$ac_confdir
  1238. if test ! -r "$srcdir/$ac_unique_file"; then
  1239. srcdir=..
  1240. fi
  1241. else
  1242. ac_srcdir_defaulted=no
  1243. fi
  1244. if test ! -r "$srcdir/$ac_unique_file"; then
  1245. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1246. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1247. { (exit 1); exit 1; }; }
  1248. fi
  1249. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1250. ac_abs_confdir=`(
  1251. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1252. { (exit 1); exit 1; }; }
  1253. pwd)`
  1254. # When building in place, set srcdir=.
  1255. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1256. srcdir=.
  1257. fi
  1258. # Remove unnecessary trailing slashes from srcdir.
  1259. # Double slashes in file names in object file debugging info
  1260. # mess up M-x gdb in Emacs.
  1261. case $srcdir in
  1262. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1263. esac
  1264. for ac_var in $ac_precious_vars; do
  1265. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1266. eval ac_env_${ac_var}_value=\$${ac_var}
  1267. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1268. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1269. done
  1270. #
  1271. # Report the --help message.
  1272. #
  1273. if test "$ac_init_help" = "long"; then
  1274. # Omit some internal or obsolete options to make the list less imposing.
  1275. # This message is too long to be a string in the A/UX 3.1 sh.
  1276. cat <<_ACEOF
  1277. \`configure' configures this package to adapt to many kinds of systems.
  1278. Usage: $0 [OPTION]... [VAR=VALUE]...
  1279. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1280. VAR=VALUE. See below for descriptions of some of the useful variables.
  1281. Defaults for the options are specified in brackets.
  1282. Configuration:
  1283. -h, --help display this help and exit
  1284. --help=short display options specific to this package
  1285. --help=recursive display the short help of all the included packages
  1286. -V, --version display version information and exit
  1287. -q, --quiet, --silent do not print \`checking...' messages
  1288. --cache-file=FILE cache test results in FILE [disabled]
  1289. -C, --config-cache alias for \`--cache-file=config.cache'
  1290. -n, --no-create do not create output files
  1291. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1292. Installation directories:
  1293. --prefix=PREFIX install architecture-independent files in PREFIX
  1294. [$ac_default_prefix]
  1295. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1296. [PREFIX]
  1297. By default, \`make install' will install all the files in
  1298. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1299. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1300. for instance \`--prefix=\$HOME'.
  1301. For better control, use the options below.
  1302. Fine tuning of the installation directories:
  1303. --bindir=DIR user executables [EPREFIX/bin]
  1304. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1305. --libexecdir=DIR program executables [EPREFIX/libexec]
  1306. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1307. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1308. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1309. --libdir=DIR object code libraries [EPREFIX/lib]
  1310. --includedir=DIR C header files [PREFIX/include]
  1311. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1312. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1313. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1314. --infodir=DIR info documentation [DATAROOTDIR/info]
  1315. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1316. --mandir=DIR man documentation [DATAROOTDIR/man]
  1317. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1318. --htmldir=DIR html documentation [DOCDIR]
  1319. --dvidir=DIR dvi documentation [DOCDIR]
  1320. --pdfdir=DIR pdf documentation [DOCDIR]
  1321. --psdir=DIR ps documentation [DOCDIR]
  1322. _ACEOF
  1323. cat <<\_ACEOF
  1324. System types:
  1325. --build=BUILD configure for building on BUILD [guessed]
  1326. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1327. _ACEOF
  1328. fi
  1329. if test -n "$ac_init_help"; then
  1330. cat <<\_ACEOF
  1331. Optional Features:
  1332. --disable-option-checking ignore unrecognized --enable/--with options
  1333. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1334. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1335. --enable-relocatable install a package that can be moved in the filesystem
  1336. --enable-shared[=PKGS] build shared libraries [default=yes]
  1337. --enable-static[=PKGS] build static libraries [default=yes]
  1338. --enable-fast-install[=PKGS]
  1339. optimize for fast installation [default=yes]
  1340. --disable-libtool-lock avoid locking (might break parallel builds)
  1341. Optional Packages:
  1342. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1343. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1344. --with-pic try to use only PIC/non-PIC objects [default=use
  1345. both]
  1346. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1347. Some influential environment variables:
  1348. CC C compiler command
  1349. CFLAGS C compiler flags
  1350. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1351. nonstandard directory <lib dir>
  1352. LIBS libraries to pass to the linker, e.g. -l<library>
  1353. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1354. you have headers in a nonstandard directory <include dir>
  1355. CPP C preprocessor
  1356. Use these variables to override the choices made by `configure' or to help
  1357. it to find libraries and programs with nonstandard names/locations.
  1358. _ACEOF
  1359. ac_status=$?
  1360. fi
  1361. if test "$ac_init_help" = "recursive"; then
  1362. # If there are subdirs, report their specific --help.
  1363. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1364. test -d "$ac_dir" ||
  1365. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1366. continue
  1367. ac_builddir=.
  1368. case "$ac_dir" in
  1369. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1370. *)
  1371. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1372. # A ".." for each directory in $ac_dir_suffix.
  1373. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1374. case $ac_top_builddir_sub in
  1375. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1376. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1377. esac ;;
  1378. esac
  1379. ac_abs_top_builddir=$ac_pwd
  1380. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1381. # for backward compatibility:
  1382. ac_top_builddir=$ac_top_build_prefix
  1383. case $srcdir in
  1384. .) # We are building in place.
  1385. ac_srcdir=.
  1386. ac_top_srcdir=$ac_top_builddir_sub
  1387. ac_abs_top_srcdir=$ac_pwd ;;
  1388. [\\/]* | ?:[\\/]* ) # Absolute name.
  1389. ac_srcdir=$srcdir$ac_dir_suffix;
  1390. ac_top_srcdir=$srcdir
  1391. ac_abs_top_srcdir=$srcdir ;;
  1392. *) # Relative name.
  1393. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1394. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1395. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1396. esac
  1397. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1398. cd "$ac_dir" || { ac_status=$?; continue; }
  1399. # Check for guested configure.
  1400. if test -f "$ac_srcdir/configure.gnu"; then
  1401. echo &&
  1402. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1403. elif test -f "$ac_srcdir/configure"; then
  1404. echo &&
  1405. $SHELL "$ac_srcdir/configure" --help=recursive
  1406. else
  1407. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1408. fi || ac_status=$?
  1409. cd "$ac_pwd" || { ac_status=$?; break; }
  1410. done
  1411. fi
  1412. test -n "$ac_init_help" && exit $ac_status
  1413. if $ac_init_version; then
  1414. cat <<\_ACEOF
  1415. configure
  1416. generated by GNU Autoconf 2.63
  1417. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1418. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1419. This configure script is free software; the Free Software Foundation
  1420. gives unlimited permission to copy, distribute and modify it.
  1421. _ACEOF
  1422. exit
  1423. fi
  1424. cat >config.log <<_ACEOF
  1425. This file contains any messages produced by compilers while
  1426. running configure, to aid debugging if configure makes a mistake.
  1427. It was created by $as_me, which was
  1428. generated by GNU Autoconf 2.63. Invocation command line was
  1429. $ $0 $@
  1430. _ACEOF
  1431. exec 5>>config.log
  1432. {
  1433. cat <<_ASUNAME
  1434. ## --------- ##
  1435. ## Platform. ##
  1436. ## --------- ##
  1437. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1438. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1439. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1440. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1441. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1442. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1443. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1444. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1445. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1446. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1447. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1448. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1449. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1450. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1451. _ASUNAME
  1452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1453. for as_dir in $PATH
  1454. do
  1455. IFS=$as_save_IFS
  1456. test -z "$as_dir" && as_dir=.
  1457. $as_echo "PATH: $as_dir"
  1458. done
  1459. IFS=$as_save_IFS
  1460. } >&5
  1461. cat >&5 <<_ACEOF
  1462. ## ----------- ##
  1463. ## Core tests. ##
  1464. ## ----------- ##
  1465. _ACEOF
  1466. # Keep a trace of the command line.
  1467. # Strip out --no-create and --no-recursion so they do not pile up.
  1468. # Strip out --silent because we don't want to record it for future runs.
  1469. # Also quote any args containing shell meta-characters.
  1470. # Make two passes to allow for proper duplicate-argument suppression.
  1471. ac_configure_args=
  1472. ac_configure_args0=
  1473. ac_configure_args1=
  1474. ac_must_keep_next=false
  1475. for ac_pass in 1 2
  1476. do
  1477. for ac_arg
  1478. do
  1479. case $ac_arg in
  1480. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1481. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1482. | -silent | --silent | --silen | --sile | --sil)
  1483. continue ;;
  1484. *\'*)
  1485. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1486. esac
  1487. case $ac_pass in
  1488. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1489. 2)
  1490. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1491. if test $ac_must_keep_next = true; then
  1492. ac_must_keep_next=false # Got value, back to normal.
  1493. else
  1494. case $ac_arg in
  1495. *=* | --config-cache | -C | -disable-* | --disable-* \
  1496. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1497. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1498. | -with-* | --with-* | -without-* | --without-* | --x)
  1499. case "$ac_configure_args0 " in
  1500. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1501. esac
  1502. ;;
  1503. -* ) ac_must_keep_next=true ;;
  1504. esac
  1505. fi
  1506. ac_configure_args="$ac_configure_args '$ac_arg'"
  1507. ;;
  1508. esac
  1509. done
  1510. done
  1511. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1512. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1513. # When interrupted or exit'd, cleanup temporary files, and complete
  1514. # config.log. We remove comments because anyway the quotes in there
  1515. # would cause problems or look ugly.
  1516. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1517. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1518. trap 'exit_status=$?
  1519. # Save into config.log some information that might help in debugging.
  1520. {
  1521. echo
  1522. cat <<\_ASBOX
  1523. ## ---------------- ##
  1524. ## Cache variables. ##
  1525. ## ---------------- ##
  1526. _ASBOX
  1527. echo
  1528. # The following way of writing the cache mishandles newlines in values,
  1529. (
  1530. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1531. eval ac_val=\$$ac_var
  1532. case $ac_val in #(
  1533. *${as_nl}*)
  1534. case $ac_var in #(
  1535. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1536. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1537. esac
  1538. case $ac_var in #(
  1539. _ | IFS | as_nl) ;; #(
  1540. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1541. *) $as_unset $ac_var ;;
  1542. esac ;;
  1543. esac
  1544. done
  1545. (set) 2>&1 |
  1546. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1547. *${as_nl}ac_space=\ *)
  1548. sed -n \
  1549. "s/'\''/'\''\\\\'\'''\''/g;
  1550. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1551. ;; #(
  1552. *)
  1553. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1554. ;;
  1555. esac |
  1556. sort
  1557. )
  1558. echo
  1559. cat <<\_ASBOX
  1560. ## ----------------- ##
  1561. ## Output variables. ##
  1562. ## ----------------- ##
  1563. _ASBOX
  1564. echo
  1565. for ac_var in $ac_subst_vars
  1566. do
  1567. eval ac_val=\$$ac_var
  1568. case $ac_val in
  1569. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1570. esac
  1571. $as_echo "$ac_var='\''$ac_val'\''"
  1572. done | sort
  1573. echo
  1574. if test -n "$ac_subst_files"; then
  1575. cat <<\_ASBOX
  1576. ## ------------------- ##
  1577. ## File substitutions. ##
  1578. ## ------------------- ##
  1579. _ASBOX
  1580. echo
  1581. for ac_var in $ac_subst_files
  1582. do
  1583. eval ac_val=\$$ac_var
  1584. case $ac_val in
  1585. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1586. esac
  1587. $as_echo "$ac_var='\''$ac_val'\''"
  1588. done | sort
  1589. echo
  1590. fi
  1591. if test -s confdefs.h; then
  1592. cat <<\_ASBOX
  1593. ## ----------- ##
  1594. ## confdefs.h. ##
  1595. ## ----------- ##
  1596. _ASBOX
  1597. echo
  1598. cat confdefs.h
  1599. echo
  1600. fi
  1601. test "$ac_signal" != 0 &&
  1602. $as_echo "$as_me: caught signal $ac_signal"
  1603. $as_echo "$as_me: exit $exit_status"
  1604. } >&5
  1605. rm -f core *.core core.conftest.* &&
  1606. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1607. exit $exit_status
  1608. ' 0
  1609. for ac_signal in 1 2 13 15; do
  1610. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1611. done
  1612. ac_signal=0
  1613. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1614. rm -f -r conftest* confdefs.h
  1615. # Predefined preprocessor variables.
  1616. cat >>confdefs.h <<_ACEOF
  1617. #define PACKAGE_NAME "$PACKAGE_NAME"
  1618. _ACEOF
  1619. cat >>confdefs.h <<_ACEOF
  1620. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1621. _ACEOF
  1622. cat >>confdefs.h <<_ACEOF
  1623. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1624. _ACEOF
  1625. cat >>confdefs.h <<_ACEOF
  1626. #define PACKAGE_STRING "$PACKAGE_STRING"
  1627. _ACEOF
  1628. cat >>confdefs.h <<_ACEOF
  1629. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1630. _ACEOF
  1631. # Let the site file select an alternate cache file if it wants to.
  1632. # Prefer an explicitly selected file to automatically selected ones.
  1633. ac_site_file1=NONE
  1634. ac_site_file2=NONE
  1635. if test -n "$CONFIG_SITE"; then
  1636. ac_site_file1=$CONFIG_SITE
  1637. elif test "x$prefix" != xNONE; then
  1638. ac_site_file1=$prefix/share/config.site
  1639. ac_site_file2=$prefix/etc/config.site
  1640. else
  1641. ac_site_file1=$ac_default_prefix/share/config.site
  1642. ac_site_file2=$ac_default_prefix/etc/config.site
  1643. fi
  1644. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1645. do
  1646. test "x$ac_site_file" = xNONE && continue
  1647. if test -r "$ac_site_file"; then
  1648. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1649. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1650. sed 's/^/| /' "$ac_site_file" >&5
  1651. . "$ac_site_file"
  1652. fi
  1653. done
  1654. if test -r "$cache_file"; then
  1655. # Some versions of bash will fail to source /dev/null (special
  1656. # files actually), so we avoid doing that.
  1657. if test -f "$cache_file"; then
  1658. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1659. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1660. case $cache_file in
  1661. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1662. *) . "./$cache_file";;
  1663. esac
  1664. fi
  1665. else
  1666. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1667. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1668. >$cache_file
  1669. fi
  1670. # Check that the precious variables saved in the cache have kept the same
  1671. # value.
  1672. ac_cache_corrupted=false
  1673. for ac_var in $ac_precious_vars; do
  1674. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1675. eval ac_new_set=\$ac_env_${ac_var}_set
  1676. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1677. eval ac_new_val=\$ac_env_${ac_var}_value
  1678. case $ac_old_set,$ac_new_set in
  1679. set,)
  1680. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1681. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1682. ac_cache_corrupted=: ;;
  1683. ,set)
  1684. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1685. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1686. ac_cache_corrupted=: ;;
  1687. ,);;
  1688. *)
  1689. if test "x$ac_old_val" != "x$ac_new_val"; then
  1690. # differences in whitespace do not lead to failure.
  1691. ac_old_val_w=`echo x $ac_old_val`
  1692. ac_new_val_w=`echo x $ac_new_val`
  1693. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1694. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1695. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1696. ac_cache_corrupted=:
  1697. else
  1698. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1699. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1700. eval $ac_var=\$ac_old_val
  1701. fi
  1702. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  1703. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1704. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  1705. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1706. fi;;
  1707. esac
  1708. # Pass precious variables to config.status.
  1709. if test "$ac_new_set" = set; then
  1710. case $ac_new_val in
  1711. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1712. *) ac_arg=$ac_var=$ac_new_val ;;
  1713. esac
  1714. case " $ac_configure_args " in
  1715. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1716. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1717. esac
  1718. fi
  1719. done
  1720. if $ac_cache_corrupted; then
  1721. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1722. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1723. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1724. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1725. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1726. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1727. { (exit 1); exit 1; }; }
  1728. fi
  1729. ac_ext=c
  1730. ac_cpp='$CPP $CPPFLAGS'
  1731. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1732. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1733. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1734. ac_aux_dir=
  1735. for ac_dir in build-aux "$srcdir"/build-aux; do
  1736. if test -f "$ac_dir/install-sh"; then
  1737. ac_aux_dir=$ac_dir
  1738. ac_install_sh="$ac_aux_dir/install-sh -c"
  1739. break
  1740. elif test -f "$ac_dir/install.sh"; then
  1741. ac_aux_dir=$ac_dir
  1742. ac_install_sh="$ac_aux_dir/install.sh -c"
  1743. break
  1744. elif test -f "$ac_dir/shtool"; then
  1745. ac_aux_dir=$ac_dir
  1746. ac_install_sh="$ac_aux_dir/shtool install -c"
  1747. break
  1748. fi
  1749. done
  1750. if test -z "$ac_aux_dir"; then
  1751. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
  1752. $as_echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
  1753. { (exit 1); exit 1; }; }
  1754. fi
  1755. # These three variables are undocumented and unsupported,
  1756. # and are intended to be withdrawn in a future Autoconf release.
  1757. # They can cause serious problems if a builder's source tree is in a directory
  1758. # whose full name contains unusual characters.
  1759. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1760. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1761. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1762. ac_config_headers="$ac_config_headers config.h"
  1763. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1764. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  1765. set x ${MAKE-make}
  1766. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  1767. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  1768. $as_echo_n "(cached) " >&6
  1769. else
  1770. cat >conftest.make <<\_ACEOF
  1771. SHELL = /bin/sh
  1772. all:
  1773. @echo '@@@%%%=$(MAKE)=@@@%%%'
  1774. _ACEOF
  1775. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1776. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  1777. *@@@%%%=?*=@@@%%%*)
  1778. eval ac_cv_prog_make_${ac_make}_set=yes;;
  1779. *)
  1780. eval ac_cv_prog_make_${ac_make}_set=no;;
  1781. esac
  1782. rm -f conftest.make
  1783. fi
  1784. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  1785. { $as_echo "$as_me:$LINENO: result: yes" >&5
  1786. $as_echo "yes" >&6; }
  1787. SET_MAKE=
  1788. else
  1789. { $as_echo "$as_me:$LINENO: result: no" >&5
  1790. $as_echo "no" >&6; }
  1791. SET_MAKE="MAKE=${MAKE-make}"
  1792. fi
  1793. ac_ext=c
  1794. ac_cpp='$CPP $CPPFLAGS'
  1795. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1796. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1797. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1798. if test -n "$ac_tool_prefix"; then
  1799. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1800. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1801. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1802. $as_echo_n "checking for $ac_word... " >&6; }
  1803. if test "${ac_cv_prog_CC+set}" = set; then
  1804. $as_echo_n "(cached) " >&6
  1805. else
  1806. if test -n "$CC"; then
  1807. ac_cv_prog_CC="$CC" # Let the user override the test.
  1808. else
  1809. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1810. for as_dir in $PATH
  1811. do
  1812. IFS=$as_save_IFS
  1813. test -z "$as_dir" && as_dir=.
  1814. for ac_exec_ext in '' $ac_executable_extensions; do
  1815. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1816. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1817. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1818. break 2
  1819. fi
  1820. done
  1821. done
  1822. IFS=$as_save_IFS
  1823. fi
  1824. fi
  1825. CC=$ac_cv_prog_CC
  1826. if test -n "$CC"; then
  1827. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  1828. $as_echo "$CC" >&6; }
  1829. else
  1830. { $as_echo "$as_me:$LINENO: result: no" >&5
  1831. $as_echo "no" >&6; }
  1832. fi
  1833. fi
  1834. if test -z "$ac_cv_prog_CC"; then
  1835. ac_ct_CC=$CC
  1836. # Extract the first word of "gcc", so it can be a program name with args.
  1837. set dummy gcc; ac_word=$2
  1838. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1839. $as_echo_n "checking for $ac_word... " >&6; }
  1840. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1841. $as_echo_n "(cached) " >&6
  1842. else
  1843. if test -n "$ac_ct_CC"; then
  1844. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1845. else
  1846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1847. for as_dir in $PATH
  1848. do
  1849. IFS=$as_save_IFS
  1850. test -z "$as_dir" && as_dir=.
  1851. for ac_exec_ext in '' $ac_executable_extensions; do
  1852. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1853. ac_cv_prog_ac_ct_CC="gcc"
  1854. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1855. break 2
  1856. fi
  1857. done
  1858. done
  1859. IFS=$as_save_IFS
  1860. fi
  1861. fi
  1862. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1863. if test -n "$ac_ct_CC"; then
  1864. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1865. $as_echo "$ac_ct_CC" >&6; }
  1866. else
  1867. { $as_echo "$as_me:$LINENO: result: no" >&5
  1868. $as_echo "no" >&6; }
  1869. fi
  1870. if test "x$ac_ct_CC" = x; then
  1871. CC=""
  1872. else
  1873. case $cross_compiling:$ac_tool_warned in
  1874. yes:)
  1875. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  1876. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  1877. ac_tool_warned=yes ;;
  1878. esac
  1879. CC=$ac_ct_CC
  1880. fi
  1881. else
  1882. CC="$ac_cv_prog_CC"
  1883. fi
  1884. if test -z "$CC"; then
  1885. if test -n "$ac_tool_prefix"; then
  1886. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1887. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1888. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1889. $as_echo_n "checking for $ac_word... " >&6; }
  1890. if test "${ac_cv_prog_CC+set}" = set; then
  1891. $as_echo_n "(cached) " >&6
  1892. else
  1893. if test -n "$CC"; then
  1894. ac_cv_prog_CC="$CC" # Let the user override the test.
  1895. else
  1896. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1897. for as_dir in $PATH
  1898. do
  1899. IFS=$as_save_IFS
  1900. test -z "$as_dir" && as_dir=.
  1901. for ac_exec_ext in '' $ac_executable_extensions; do
  1902. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1903. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1904. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1905. break 2
  1906. fi
  1907. done
  1908. done
  1909. IFS=$as_save_IFS
  1910. fi
  1911. fi
  1912. CC=$ac_cv_prog_CC
  1913. if test -n "$CC"; then
  1914. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  1915. $as_echo "$CC" >&6; }
  1916. else
  1917. { $as_echo "$as_me:$LINENO: result: no" >&5
  1918. $as_echo "no" >&6; }
  1919. fi
  1920. fi
  1921. fi
  1922. if test -z "$CC"; then
  1923. # Extract the first word of "cc", so it can be a program name with args.
  1924. set dummy cc; ac_word=$2
  1925. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1926. $as_echo_n "checking for $ac_word... " >&6; }
  1927. if test "${ac_cv_prog_CC+set}" = set; then
  1928. $as_echo_n "(cached) " >&6
  1929. else
  1930. if test -n "$CC"; then
  1931. ac_cv_prog_CC="$CC" # Let the user override the test.
  1932. else
  1933. ac_prog_rejected=no
  1934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1935. for as_dir in $PATH
  1936. do
  1937. IFS=$as_save_IFS
  1938. test -z "$as_dir" && as_dir=.
  1939. for ac_exec_ext in '' $ac_executable_extensions; do
  1940. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1941. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1942. ac_prog_rejected=yes
  1943. continue
  1944. fi
  1945. ac_cv_prog_CC="cc"
  1946. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1947. break 2
  1948. fi
  1949. done
  1950. done
  1951. IFS=$as_save_IFS
  1952. if test $ac_prog_rejected = yes; then
  1953. # We found a bogon in the path, so make sure we never use it.
  1954. set dummy $ac_cv_prog_CC
  1955. shift
  1956. if test $# != 0; then
  1957. # We chose a different compiler from the bogus one.
  1958. # However, it has the same basename, so the bogon will be chosen
  1959. # first if we set CC to just the basename; use the full file name.
  1960. shift
  1961. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1962. fi
  1963. fi
  1964. fi
  1965. fi
  1966. CC=$ac_cv_prog_CC
  1967. if test -n "$CC"; then
  1968. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  1969. $as_echo "$CC" >&6; }
  1970. else
  1971. { $as_echo "$as_me:$LINENO: result: no" >&5
  1972. $as_echo "no" >&6; }
  1973. fi
  1974. fi
  1975. if test -z "$CC"; then
  1976. if test -n "$ac_tool_prefix"; then
  1977. for ac_prog in cl.exe
  1978. do
  1979. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1980. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1981. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1982. $as_echo_n "checking for $ac_word... " >&6; }
  1983. if test "${ac_cv_prog_CC+set}" = set; then
  1984. $as_echo_n "(cached) " >&6
  1985. else
  1986. if test -n "$CC"; then
  1987. ac_cv_prog_CC="$CC" # Let the user override the test.
  1988. else
  1989. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1990. for as_dir in $PATH
  1991. do
  1992. IFS=$as_save_IFS
  1993. test -z "$as_dir" && as_dir=.
  1994. for ac_exec_ext in '' $ac_executable_extensions; do
  1995. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1996. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1997. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1998. break 2
  1999. fi
  2000. done
  2001. done
  2002. IFS=$as_save_IFS
  2003. fi
  2004. fi
  2005. CC=$ac_cv_prog_CC
  2006. if test -n "$CC"; then
  2007. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2008. $as_echo "$CC" >&6; }
  2009. else
  2010. { $as_echo "$as_me:$LINENO: result: no" >&5
  2011. $as_echo "no" >&6; }
  2012. fi
  2013. test -n "$CC" && break
  2014. done
  2015. fi
  2016. if test -z "$CC"; then
  2017. ac_ct_CC=$CC
  2018. for ac_prog in cl.exe
  2019. do
  2020. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2021. set dummy $ac_prog; ac_word=$2
  2022. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2023. $as_echo_n "checking for $ac_word... " >&6; }
  2024. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2025. $as_echo_n "(cached) " >&6
  2026. else
  2027. if test -n "$ac_ct_CC"; then
  2028. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2029. else
  2030. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2031. for as_dir in $PATH
  2032. do
  2033. IFS=$as_save_IFS
  2034. test -z "$as_dir" && as_dir=.
  2035. for ac_exec_ext in '' $ac_executable_extensions; do
  2036. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2037. ac_cv_prog_ac_ct_CC="$ac_prog"
  2038. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2039. break 2
  2040. fi
  2041. done
  2042. done
  2043. IFS=$as_save_IFS
  2044. fi
  2045. fi
  2046. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2047. if test -n "$ac_ct_CC"; then
  2048. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2049. $as_echo "$ac_ct_CC" >&6; }
  2050. else
  2051. { $as_echo "$as_me:$LINENO: result: no" >&5
  2052. $as_echo "no" >&6; }
  2053. fi
  2054. test -n "$ac_ct_CC" && break
  2055. done
  2056. if test "x$ac_ct_CC" = x; then
  2057. CC=""
  2058. else
  2059. case $cross_compiling:$ac_tool_warned in
  2060. yes:)
  2061. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2062. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2063. ac_tool_warned=yes ;;
  2064. esac
  2065. CC=$ac_ct_CC
  2066. fi
  2067. fi
  2068. fi
  2069. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2070. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2071. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2072. See \`config.log' for more details." >&5
  2073. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  2074. See \`config.log' for more details." >&2;}
  2075. { (exit 1); exit 1; }; }; }
  2076. # Provide some information about the compiler.
  2077. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  2078. set X $ac_compile
  2079. ac_compiler=$2
  2080. { (ac_try="$ac_compiler --version >&5"
  2081. case "(($ac_try" in
  2082. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2083. *) ac_try_echo=$ac_try;;
  2084. esac
  2085. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2086. $as_echo "$ac_try_echo") >&5
  2087. (eval "$ac_compiler --version >&5") 2>&5
  2088. ac_status=$?
  2089. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2090. (exit $ac_status); }
  2091. { (ac_try="$ac_compiler -v >&5"
  2092. case "(($ac_try" in
  2093. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2094. *) ac_try_echo=$ac_try;;
  2095. esac
  2096. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2097. $as_echo "$ac_try_echo") >&5
  2098. (eval "$ac_compiler -v >&5") 2>&5
  2099. ac_status=$?
  2100. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2101. (exit $ac_status); }
  2102. { (ac_try="$ac_compiler -V >&5"
  2103. case "(($ac_try" in
  2104. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2105. *) ac_try_echo=$ac_try;;
  2106. esac
  2107. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2108. $as_echo "$ac_try_echo") >&5
  2109. (eval "$ac_compiler -V >&5") 2>&5
  2110. ac_status=$?
  2111. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2112. (exit $ac_status); }
  2113. cat >conftest.$ac_ext <<_ACEOF
  2114. /* confdefs.h. */
  2115. _ACEOF
  2116. cat confdefs.h >>conftest.$ac_ext
  2117. cat >>conftest.$ac_ext <<_ACEOF
  2118. /* end confdefs.h. */
  2119. int
  2120. main ()
  2121. {
  2122. ;
  2123. return 0;
  2124. }
  2125. _ACEOF
  2126. ac_clean_files_save=$ac_clean_files
  2127. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2128. # Try to create an executable without -o first, disregard a.out.
  2129. # It will help us diagnose broken compilers, and finding out an intuition
  2130. # of exeext.
  2131. { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2132. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2133. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2134. # The possible output files:
  2135. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2136. ac_rmfiles=
  2137. for ac_file in $ac_files
  2138. do
  2139. case $ac_file in
  2140. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2141. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2142. esac
  2143. done
  2144. rm -f $ac_rmfiles
  2145. if { (ac_try="$ac_link_default"
  2146. case "(($ac_try" in
  2147. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2148. *) ac_try_echo=$ac_try;;
  2149. esac
  2150. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2151. $as_echo "$ac_try_echo") >&5
  2152. (eval "$ac_link_default") 2>&5
  2153. ac_status=$?
  2154. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2155. (exit $ac_status); }; then
  2156. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2157. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2158. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2159. # so that the user can short-circuit this test for compilers unknown to
  2160. # Autoconf.
  2161. for ac_file in $ac_files ''
  2162. do
  2163. test -f "$ac_file" || continue
  2164. case $ac_file in
  2165. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2166. ;;
  2167. [ab].out )
  2168. # We found the default executable, but exeext='' is most
  2169. # certainly right.
  2170. break;;
  2171. *.* )
  2172. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2173. then :; else
  2174. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2175. fi
  2176. # We set ac_cv_exeext here because the later test for it is not
  2177. # safe: cross compilers may not add the suffix if given an `-o'
  2178. # argument, so we may need to know it at that point already.
  2179. # Even if this section looks crufty: it has the advantage of
  2180. # actually working.
  2181. break;;
  2182. * )
  2183. break;;
  2184. esac
  2185. done
  2186. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2187. else
  2188. ac_file=''
  2189. fi
  2190. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2191. $as_echo "$ac_file" >&6; }
  2192. if test -z "$ac_file"; then
  2193. $as_echo "$as_me: failed program was:" >&5
  2194. sed 's/^/| /' conftest.$ac_ext >&5
  2195. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2196. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2197. { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  2198. See \`config.log' for more details." >&5
  2199. $as_echo "$as_me: error: C compiler cannot create executables
  2200. See \`config.log' for more details." >&2;}
  2201. { (exit 77); exit 77; }; }; }
  2202. fi
  2203. ac_exeext=$ac_cv_exeext
  2204. # Check that the compiler produces executables we can run. If not, either
  2205. # the compiler is broken, or we cross compile.
  2206. { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2207. $as_echo_n "checking whether the C compiler works... " >&6; }
  2208. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2209. # If not cross compiling, check that we can run a simple program.
  2210. if test "$cross_compiling" != yes; then
  2211. if { ac_try='./$ac_file'
  2212. { (case "(($ac_try" in
  2213. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2214. *) ac_try_echo=$ac_try;;
  2215. esac
  2216. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2217. $as_echo "$ac_try_echo") >&5
  2218. (eval "$ac_try") 2>&5
  2219. ac_status=$?
  2220. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2221. (exit $ac_status); }; }; then
  2222. cross_compiling=no
  2223. else
  2224. if test "$cross_compiling" = maybe; then
  2225. cross_compiling=yes
  2226. else
  2227. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2228. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2229. { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2230. If you meant to cross compile, use \`--host'.
  2231. See \`config.log' for more details." >&5
  2232. $as_echo "$as_me: error: cannot run C compiled programs.
  2233. If you meant to cross compile, use \`--host'.
  2234. See \`config.log' for more details." >&2;}
  2235. { (exit 1); exit 1; }; }; }
  2236. fi
  2237. fi
  2238. fi
  2239. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2240. $as_echo "yes" >&6; }
  2241. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2242. ac_clean_files=$ac_clean_files_save
  2243. # Check that the compiler produces executables we can run. If not, either
  2244. # the compiler is broken, or we cross compile.
  2245. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2246. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2247. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2248. $as_echo "$cross_compiling" >&6; }
  2249. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2250. $as_echo_n "checking for suffix of executables... " >&6; }
  2251. if { (ac_try="$ac_link"
  2252. case "(($ac_try" in
  2253. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2254. *) ac_try_echo=$ac_try;;
  2255. esac
  2256. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2257. $as_echo "$ac_try_echo") >&5
  2258. (eval "$ac_link") 2>&5
  2259. ac_status=$?
  2260. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2261. (exit $ac_status); }; then
  2262. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2263. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2264. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2265. # `rm'.
  2266. for ac_file in conftest.exe conftest conftest.*; do
  2267. test -f "$ac_file" || continue
  2268. case $ac_file in
  2269. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2270. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2271. break;;
  2272. * ) break;;
  2273. esac
  2274. done
  2275. else
  2276. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2277. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2278. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2279. See \`config.log' for more details." >&5
  2280. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2281. See \`config.log' for more details." >&2;}
  2282. { (exit 1); exit 1; }; }; }
  2283. fi
  2284. rm -f conftest$ac_cv_exeext
  2285. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2286. $as_echo "$ac_cv_exeext" >&6; }
  2287. rm -f conftest.$ac_ext
  2288. EXEEXT=$ac_cv_exeext
  2289. ac_exeext=$EXEEXT
  2290. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2291. $as_echo_n "checking for suffix of object files... " >&6; }
  2292. if test "${ac_cv_objext+set}" = set; then
  2293. $as_echo_n "(cached) " >&6
  2294. else
  2295. cat >conftest.$ac_ext <<_ACEOF
  2296. /* confdefs.h. */
  2297. _ACEOF
  2298. cat confdefs.h >>conftest.$ac_ext
  2299. cat >>conftest.$ac_ext <<_ACEOF
  2300. /* end confdefs.h. */
  2301. int
  2302. main ()
  2303. {
  2304. ;
  2305. return 0;
  2306. }
  2307. _ACEOF
  2308. rm -f conftest.o conftest.obj
  2309. if { (ac_try="$ac_compile"
  2310. case "(($ac_try" in
  2311. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2312. *) ac_try_echo=$ac_try;;
  2313. esac
  2314. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2315. $as_echo "$ac_try_echo") >&5
  2316. (eval "$ac_compile") 2>&5
  2317. ac_status=$?
  2318. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2319. (exit $ac_status); }; then
  2320. for ac_file in conftest.o conftest.obj conftest.*; do
  2321. test -f "$ac_file" || continue;
  2322. case $ac_file in
  2323. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2324. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2325. break;;
  2326. esac
  2327. done
  2328. else
  2329. $as_echo "$as_me: failed program was:" >&5
  2330. sed 's/^/| /' conftest.$ac_ext >&5
  2331. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2332. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2333. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2334. See \`config.log' for more details." >&5
  2335. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2336. See \`config.log' for more details." >&2;}
  2337. { (exit 1); exit 1; }; }; }
  2338. fi
  2339. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2340. fi
  2341. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2342. $as_echo "$ac_cv_objext" >&6; }
  2343. OBJEXT=$ac_cv_objext
  2344. ac_objext=$OBJEXT
  2345. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2346. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2347. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2348. $as_echo_n "(cached) " >&6
  2349. else
  2350. cat >conftest.$ac_ext <<_ACEOF
  2351. /* confdefs.h. */
  2352. _ACEOF
  2353. cat confdefs.h >>conftest.$ac_ext
  2354. cat >>conftest.$ac_ext <<_ACEOF
  2355. /* end confdefs.h. */
  2356. int
  2357. main ()
  2358. {
  2359. #ifndef __GNUC__
  2360. choke me
  2361. #endif
  2362. ;
  2363. return 0;
  2364. }
  2365. _ACEOF
  2366. rm -f conftest.$ac_objext
  2367. if { (ac_try="$ac_compile"
  2368. case "(($ac_try" in
  2369. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2370. *) ac_try_echo=$ac_try;;
  2371. esac
  2372. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2373. $as_echo "$ac_try_echo") >&5
  2374. (eval "$ac_compile") 2>conftest.er1
  2375. ac_status=$?
  2376. grep -v '^ *+' conftest.er1 >conftest.err
  2377. rm -f conftest.er1
  2378. cat conftest.err >&5
  2379. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2380. (exit $ac_status); } && {
  2381. test -z "$ac_c_werror_flag" ||
  2382. test ! -s conftest.err
  2383. } && test -s conftest.$ac_objext; then
  2384. ac_compiler_gnu=yes
  2385. else
  2386. $as_echo "$as_me: failed program was:" >&5
  2387. sed 's/^/| /' conftest.$ac_ext >&5
  2388. ac_compiler_gnu=no
  2389. fi
  2390. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2391. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2392. fi
  2393. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2394. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2395. if test $ac_compiler_gnu = yes; then
  2396. GCC=yes
  2397. else
  2398. GCC=
  2399. fi
  2400. ac_test_CFLAGS=${CFLAGS+set}
  2401. ac_save_CFLAGS=$CFLAGS
  2402. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2403. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2404. if test "${ac_cv_prog_cc_g+set}" = set; then
  2405. $as_echo_n "(cached) " >&6
  2406. else
  2407. ac_save_c_werror_flag=$ac_c_werror_flag
  2408. ac_c_werror_flag=yes
  2409. ac_cv_prog_cc_g=no
  2410. CFLAGS="-g"
  2411. cat >conftest.$ac_ext <<_ACEOF
  2412. /* confdefs.h. */
  2413. _ACEOF
  2414. cat confdefs.h >>conftest.$ac_ext
  2415. cat >>conftest.$ac_ext <<_ACEOF
  2416. /* end confdefs.h. */
  2417. int
  2418. main ()
  2419. {
  2420. ;
  2421. return 0;
  2422. }
  2423. _ACEOF
  2424. rm -f conftest.$ac_objext
  2425. if { (ac_try="$ac_compile"
  2426. case "(($ac_try" in
  2427. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2428. *) ac_try_echo=$ac_try;;
  2429. esac
  2430. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2431. $as_echo "$ac_try_echo") >&5
  2432. (eval "$ac_compile") 2>conftest.er1
  2433. ac_status=$?
  2434. grep -v '^ *+' conftest.er1 >conftest.err
  2435. rm -f conftest.er1
  2436. cat conftest.err >&5
  2437. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2438. (exit $ac_status); } && {
  2439. test -z "$ac_c_werror_flag" ||
  2440. test ! -s conftest.err
  2441. } && test -s conftest.$ac_objext; then
  2442. ac_cv_prog_cc_g=yes
  2443. else
  2444. $as_echo "$as_me: failed program was:" >&5
  2445. sed 's/^/| /' conftest.$ac_ext >&5
  2446. CFLAGS=""
  2447. cat >conftest.$ac_ext <<_ACEOF
  2448. /* confdefs.h. */
  2449. _ACEOF
  2450. cat confdefs.h >>conftest.$ac_ext
  2451. cat >>conftest.$ac_ext <<_ACEOF
  2452. /* end confdefs.h. */
  2453. int
  2454. main ()
  2455. {
  2456. ;
  2457. return 0;
  2458. }
  2459. _ACEOF
  2460. rm -f conftest.$ac_objext
  2461. if { (ac_try="$ac_compile"
  2462. case "(($ac_try" in
  2463. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2464. *) ac_try_echo=$ac_try;;
  2465. esac
  2466. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2467. $as_echo "$ac_try_echo") >&5
  2468. (eval "$ac_compile") 2>conftest.er1
  2469. ac_status=$?
  2470. grep -v '^ *+' conftest.er1 >conftest.err
  2471. rm -f conftest.er1
  2472. cat conftest.err >&5
  2473. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2474. (exit $ac_status); } && {
  2475. test -z "$ac_c_werror_flag" ||
  2476. test ! -s conftest.err
  2477. } && test -s conftest.$ac_objext; then
  2478. :
  2479. else
  2480. $as_echo "$as_me: failed program was:" >&5
  2481. sed 's/^/| /' conftest.$ac_ext >&5
  2482. ac_c_werror_flag=$ac_save_c_werror_flag
  2483. CFLAGS="-g"
  2484. cat >conftest.$ac_ext <<_ACEOF
  2485. /* confdefs.h. */
  2486. _ACEOF
  2487. cat confdefs.h >>conftest.$ac_ext
  2488. cat >>conftest.$ac_ext <<_ACEOF
  2489. /* end confdefs.h. */
  2490. int
  2491. main ()
  2492. {
  2493. ;
  2494. return 0;
  2495. }
  2496. _ACEOF
  2497. rm -f conftest.$ac_objext
  2498. if { (ac_try="$ac_compile"
  2499. case "(($ac_try" in
  2500. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2501. *) ac_try_echo=$ac_try;;
  2502. esac
  2503. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2504. $as_echo "$ac_try_echo") >&5
  2505. (eval "$ac_compile") 2>conftest.er1
  2506. ac_status=$?
  2507. grep -v '^ *+' conftest.er1 >conftest.err
  2508. rm -f conftest.er1
  2509. cat conftest.err >&5
  2510. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2511. (exit $ac_status); } && {
  2512. test -z "$ac_c_werror_flag" ||
  2513. test ! -s conftest.err
  2514. } && test -s conftest.$ac_objext; then
  2515. ac_cv_prog_cc_g=yes
  2516. else
  2517. $as_echo "$as_me: failed program was:" >&5
  2518. sed 's/^/| /' conftest.$ac_ext >&5
  2519. fi
  2520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2521. fi
  2522. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2523. fi
  2524. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2525. ac_c_werror_flag=$ac_save_c_werror_flag
  2526. fi
  2527. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2528. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2529. if test "$ac_test_CFLAGS" = set; then
  2530. CFLAGS=$ac_save_CFLAGS
  2531. elif test $ac_cv_prog_cc_g = yes; then
  2532. if test "$GCC" = yes; then
  2533. CFLAGS="-g -O2"
  2534. else
  2535. CFLAGS="-g"
  2536. fi
  2537. else
  2538. if test "$GCC" = yes; then
  2539. CFLAGS="-O2"
  2540. else
  2541. CFLAGS=
  2542. fi
  2543. fi
  2544. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2545. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2546. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2547. $as_echo_n "(cached) " >&6
  2548. else
  2549. ac_cv_prog_cc_c89=no
  2550. ac_save_CC=$CC
  2551. cat >conftest.$ac_ext <<_ACEOF
  2552. /* confdefs.h. */
  2553. _ACEOF
  2554. cat confdefs.h >>conftest.$ac_ext
  2555. cat >>conftest.$ac_ext <<_ACEOF
  2556. /* end confdefs.h. */
  2557. #include <stdarg.h>
  2558. #include <stdio.h>
  2559. #include <sys/types.h>
  2560. #include <sys/stat.h>
  2561. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2562. struct buf { int x; };
  2563. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2564. static char *e (p, i)
  2565. char **p;
  2566. int i;
  2567. {
  2568. return p[i];
  2569. }
  2570. static char *f (char * (*g) (char **, int), char **p, ...)
  2571. {
  2572. char *s;
  2573. va_list v;
  2574. va_start (v,p);
  2575. s = g (p, va_arg (v,int));
  2576. va_end (v);
  2577. return s;
  2578. }
  2579. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2580. function prototypes and stuff, but not '\xHH' hex character constants.
  2581. These don't provoke an error unfortunately, instead are silently treated
  2582. as 'x'. The following induces an error, until -std is added to get
  2583. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2584. array size at least. It's necessary to write '\x00'==0 to get something
  2585. that's true only with -std. */
  2586. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2587. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2588. inside strings and character constants. */
  2589. #define FOO(x) 'x'
  2590. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2591. int test (int i, double x);
  2592. struct s1 {int (*f) (int a);};
  2593. struct s2 {int (*f) (double a);};
  2594. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2595. int argc;
  2596. char **argv;
  2597. int
  2598. main ()
  2599. {
  2600. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2601. ;
  2602. return 0;
  2603. }
  2604. _ACEOF
  2605. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2606. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2607. do
  2608. CC="$ac_save_CC $ac_arg"
  2609. rm -f conftest.$ac_objext
  2610. if { (ac_try="$ac_compile"
  2611. case "(($ac_try" in
  2612. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2613. *) ac_try_echo=$ac_try;;
  2614. esac
  2615. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2616. $as_echo "$ac_try_echo") >&5
  2617. (eval "$ac_compile") 2>conftest.er1
  2618. ac_status=$?
  2619. grep -v '^ *+' conftest.er1 >conftest.err
  2620. rm -f conftest.er1
  2621. cat conftest.err >&5
  2622. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2623. (exit $ac_status); } && {
  2624. test -z "$ac_c_werror_flag" ||
  2625. test ! -s conftest.err
  2626. } && test -s conftest.$ac_objext; then
  2627. ac_cv_prog_cc_c89=$ac_arg
  2628. else
  2629. $as_echo "$as_me: failed program was:" >&5
  2630. sed 's/^/| /' conftest.$ac_ext >&5
  2631. fi
  2632. rm -f core conftest.err conftest.$ac_objext
  2633. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2634. done
  2635. rm -f conftest.$ac_ext
  2636. CC=$ac_save_CC
  2637. fi
  2638. # AC_CACHE_VAL
  2639. case "x$ac_cv_prog_cc_c89" in
  2640. x)
  2641. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  2642. $as_echo "none needed" >&6; } ;;
  2643. xno)
  2644. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  2645. $as_echo "unsupported" >&6; } ;;
  2646. *)
  2647. CC="$CC $ac_cv_prog_cc_c89"
  2648. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  2649. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2650. esac
  2651. ac_ext=c
  2652. ac_cpp='$CPP $CPPFLAGS'
  2653. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2654. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2655. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2656. ac_ext=c
  2657. ac_cpp='$CPP $CPPFLAGS'
  2658. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2659. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2660. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2661. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2662. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  2663. # On Suns, sometimes $CPP names a directory.
  2664. if test -n "$CPP" && test -d "$CPP"; then
  2665. CPP=
  2666. fi
  2667. if test -z "$CPP"; then
  2668. if test "${ac_cv_prog_CPP+set}" = set; then
  2669. $as_echo_n "(cached) " >&6
  2670. else
  2671. # Double quotes because CPP needs to be expanded
  2672. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2673. do
  2674. ac_preproc_ok=false
  2675. for ac_c_preproc_warn_flag in '' yes
  2676. do
  2677. # Use a header file that comes with gcc, so configuring glibc
  2678. # with a fresh cross-compiler works.
  2679. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2680. # <limits.h> exists even on freestanding compilers.
  2681. # On the NeXT, cc -E runs the code through the compiler's parser,
  2682. # not just through cpp. "Syntax error" is here to catch this case.
  2683. cat >conftest.$ac_ext <<_ACEOF
  2684. /* confdefs.h. */
  2685. _ACEOF
  2686. cat confdefs.h >>conftest.$ac_ext
  2687. cat >>conftest.$ac_ext <<_ACEOF
  2688. /* end confdefs.h. */
  2689. #ifdef __STDC__
  2690. # include <limits.h>
  2691. #else
  2692. # include <assert.h>
  2693. #endif
  2694. Syntax error
  2695. _ACEOF
  2696. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2697. case "(($ac_try" in
  2698. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2699. *) ac_try_echo=$ac_try;;
  2700. esac
  2701. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2702. $as_echo "$ac_try_echo") >&5
  2703. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2704. ac_status=$?
  2705. grep -v '^ *+' conftest.er1 >conftest.err
  2706. rm -f conftest.er1
  2707. cat conftest.err >&5
  2708. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2709. (exit $ac_status); } >/dev/null && {
  2710. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2711. test ! -s conftest.err
  2712. }; then
  2713. :
  2714. else
  2715. $as_echo "$as_me: failed program was:" >&5
  2716. sed 's/^/| /' conftest.$ac_ext >&5
  2717. # Broken: fails on valid input.
  2718. continue
  2719. fi
  2720. rm -f conftest.err conftest.$ac_ext
  2721. # OK, works on sane cases. Now check whether nonexistent headers
  2722. # can be detected and how.
  2723. cat >conftest.$ac_ext <<_ACEOF
  2724. /* confdefs.h. */
  2725. _ACEOF
  2726. cat confdefs.h >>conftest.$ac_ext
  2727. cat >>conftest.$ac_ext <<_ACEOF
  2728. /* end confdefs.h. */
  2729. #include <ac_nonexistent.h>
  2730. _ACEOF
  2731. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2732. case "(($ac_try" in
  2733. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2734. *) ac_try_echo=$ac_try;;
  2735. esac
  2736. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2737. $as_echo "$ac_try_echo") >&5
  2738. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2739. ac_status=$?
  2740. grep -v '^ *+' conftest.er1 >conftest.err
  2741. rm -f conftest.er1
  2742. cat conftest.err >&5
  2743. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2744. (exit $ac_status); } >/dev/null && {
  2745. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2746. test ! -s conftest.err
  2747. }; then
  2748. # Broken: success on invalid input.
  2749. continue
  2750. else
  2751. $as_echo "$as_me: failed program was:" >&5
  2752. sed 's/^/| /' conftest.$ac_ext >&5
  2753. # Passes both tests.
  2754. ac_preproc_ok=:
  2755. break
  2756. fi
  2757. rm -f conftest.err conftest.$ac_ext
  2758. done
  2759. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2760. rm -f conftest.err conftest.$ac_ext
  2761. if $ac_preproc_ok; then
  2762. break
  2763. fi
  2764. done
  2765. ac_cv_prog_CPP=$CPP
  2766. fi
  2767. CPP=$ac_cv_prog_CPP
  2768. else
  2769. ac_cv_prog_CPP=$CPP
  2770. fi
  2771. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  2772. $as_echo "$CPP" >&6; }
  2773. ac_preproc_ok=false
  2774. for ac_c_preproc_warn_flag in '' yes
  2775. do
  2776. # Use a header file that comes with gcc, so configuring glibc
  2777. # with a fresh cross-compiler works.
  2778. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2779. # <limits.h> exists even on freestanding compilers.
  2780. # On the NeXT, cc -E runs the code through the compiler's parser,
  2781. # not just through cpp. "Syntax error" is here to catch this case.
  2782. cat >conftest.$ac_ext <<_ACEOF
  2783. /* confdefs.h. */
  2784. _ACEOF
  2785. cat confdefs.h >>conftest.$ac_ext
  2786. cat >>conftest.$ac_ext <<_ACEOF
  2787. /* end confdefs.h. */
  2788. #ifdef __STDC__
  2789. # include <limits.h>
  2790. #else
  2791. # include <assert.h>
  2792. #endif
  2793. Syntax error
  2794. _ACEOF
  2795. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2796. case "(($ac_try" in
  2797. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2798. *) ac_try_echo=$ac_try;;
  2799. esac
  2800. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2801. $as_echo "$ac_try_echo") >&5
  2802. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2803. ac_status=$?
  2804. grep -v '^ *+' conftest.er1 >conftest.err
  2805. rm -f conftest.er1
  2806. cat conftest.err >&5
  2807. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2808. (exit $ac_status); } >/dev/null && {
  2809. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2810. test ! -s conftest.err
  2811. }; then
  2812. :
  2813. else
  2814. $as_echo "$as_me: failed program was:" >&5
  2815. sed 's/^/| /' conftest.$ac_ext >&5
  2816. # Broken: fails on valid input.
  2817. continue
  2818. fi
  2819. rm -f conftest.err conftest.$ac_ext
  2820. # OK, works on sane cases. Now check whether nonexistent headers
  2821. # can be detected and how.
  2822. cat >conftest.$ac_ext <<_ACEOF
  2823. /* confdefs.h. */
  2824. _ACEOF
  2825. cat confdefs.h >>conftest.$ac_ext
  2826. cat >>conftest.$ac_ext <<_ACEOF
  2827. /* end confdefs.h. */
  2828. #include <ac_nonexistent.h>
  2829. _ACEOF
  2830. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2831. case "(($ac_try" in
  2832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2833. *) ac_try_echo=$ac_try;;
  2834. esac
  2835. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2836. $as_echo "$ac_try_echo") >&5
  2837. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2838. ac_status=$?
  2839. grep -v '^ *+' conftest.er1 >conftest.err
  2840. rm -f conftest.er1
  2841. cat conftest.err >&5
  2842. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2843. (exit $ac_status); } >/dev/null && {
  2844. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2845. test ! -s conftest.err
  2846. }; then
  2847. # Broken: success on invalid input.
  2848. continue
  2849. else
  2850. $as_echo "$as_me: failed program was:" >&5
  2851. sed 's/^/| /' conftest.$ac_ext >&5
  2852. # Passes both tests.
  2853. ac_preproc_ok=:
  2854. break
  2855. fi
  2856. rm -f conftest.err conftest.$ac_ext
  2857. done
  2858. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2859. rm -f conftest.err conftest.$ac_ext
  2860. if $ac_preproc_ok; then
  2861. :
  2862. else
  2863. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2864. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2865. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2866. See \`config.log' for more details." >&5
  2867. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2868. See \`config.log' for more details." >&2;}
  2869. { (exit 1); exit 1; }; }; }
  2870. fi
  2871. ac_ext=c
  2872. ac_cpp='$CPP $CPPFLAGS'
  2873. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2874. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2875. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2876. # Find a good install program. We prefer a C program (faster),
  2877. # so one script is as good as another. But avoid the broken or
  2878. # incompatible versions:
  2879. # SysV /etc/install, /usr/sbin/install
  2880. # SunOS /usr/etc/install
  2881. # IRIX /sbin/install
  2882. # AIX /bin/install
  2883. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2884. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2885. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2886. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2887. # OS/2's system install, which has a completely different semantic
  2888. # ./install, which can be erroneously created by make from ./install.sh.
  2889. # Reject install programs that cannot install multiple files.
  2890. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2891. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2892. if test -z "$INSTALL"; then
  2893. if test "${ac_cv_path_install+set}" = set; then
  2894. $as_echo_n "(cached) " >&6
  2895. else
  2896. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2897. for as_dir in $PATH
  2898. do
  2899. IFS=$as_save_IFS
  2900. test -z "$as_dir" && as_dir=.
  2901. # Account for people who put trailing slashes in PATH elements.
  2902. case $as_dir/ in
  2903. ./ | .// | /cC/* | \
  2904. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2905. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2906. /usr/ucb/* ) ;;
  2907. *)
  2908. # OSF1 and SCO ODT 3.0 have their own names for install.
  2909. # Don't use installbsd from OSF since it installs stuff as root
  2910. # by default.
  2911. for ac_prog in ginstall scoinst install; do
  2912. for ac_exec_ext in '' $ac_executable_extensions; do
  2913. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2914. if test $ac_prog = install &&
  2915. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2916. # AIX install. It has an incompatible calling convention.
  2917. :
  2918. elif test $ac_prog = install &&
  2919. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2920. # program-specific install script used by HP pwplus--don't use.
  2921. :
  2922. else
  2923. rm -rf conftest.one conftest.two conftest.dir
  2924. echo one > conftest.one
  2925. echo two > conftest.two
  2926. mkdir conftest.dir
  2927. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2928. test -s conftest.one && test -s conftest.two &&
  2929. test -s conftest.dir/conftest.one &&
  2930. test -s conftest.dir/conftest.two
  2931. then
  2932. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2933. break 3
  2934. fi
  2935. fi
  2936. fi
  2937. done
  2938. done
  2939. ;;
  2940. esac
  2941. done
  2942. IFS=$as_save_IFS
  2943. rm -rf conftest.one conftest.two conftest.dir
  2944. fi
  2945. if test "${ac_cv_path_install+set}" = set; then
  2946. INSTALL=$ac_cv_path_install
  2947. else
  2948. # As a last resort, use the slow shell script. Don't cache a
  2949. # value for INSTALL within a source directory, because that will
  2950. # break other packages using the cache if that directory is
  2951. # removed, or if the value is a relative name.
  2952. INSTALL=$ac_install_sh
  2953. fi
  2954. fi
  2955. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  2956. $as_echo "$INSTALL" >&6; }
  2957. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2958. # It thinks the first close brace ends the variable substitution.
  2959. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2960. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2961. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2962. # Make sure we can run config.sub.
  2963. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2964. { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  2965. $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  2966. { (exit 1); exit 1; }; }
  2967. { $as_echo "$as_me:$LINENO: checking build system type" >&5
  2968. $as_echo_n "checking build system type... " >&6; }
  2969. if test "${ac_cv_build+set}" = set; then
  2970. $as_echo_n "(cached) " >&6
  2971. else
  2972. ac_build_alias=$build_alias
  2973. test "x$ac_build_alias" = x &&
  2974. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2975. test "x$ac_build_alias" = x &&
  2976. { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  2977. $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  2978. { (exit 1); exit 1; }; }
  2979. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2980. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  2981. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  2982. { (exit 1); exit 1; }; }
  2983. fi
  2984. { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  2985. $as_echo "$ac_cv_build" >&6; }
  2986. case $ac_cv_build in
  2987. *-*-*) ;;
  2988. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  2989. $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  2990. { (exit 1); exit 1; }; };;
  2991. esac
  2992. build=$ac_cv_build
  2993. ac_save_IFS=$IFS; IFS='-'
  2994. set x $ac_cv_build
  2995. shift
  2996. build_cpu=$1
  2997. build_vendor=$2
  2998. shift; shift
  2999. # Remember, the first character of IFS is used to create $*,
  3000. # except with old shells:
  3001. build_os=$*
  3002. IFS=$ac_save_IFS
  3003. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3004. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  3005. $as_echo_n "checking host system type... " >&6; }
  3006. if test "${ac_cv_host+set}" = set; then
  3007. $as_echo_n "(cached) " >&6
  3008. else
  3009. if test "x$host_alias" = x; then
  3010. ac_cv_host=$ac_cv_build
  3011. else
  3012. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3013. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  3014. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  3015. { (exit 1); exit 1; }; }
  3016. fi
  3017. fi
  3018. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  3019. $as_echo "$ac_cv_host" >&6; }
  3020. case $ac_cv_host in
  3021. *-*-*) ;;
  3022. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  3023. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  3024. { (exit 1); exit 1; }; };;
  3025. esac
  3026. host=$ac_cv_host
  3027. ac_save_IFS=$IFS; IFS='-'
  3028. set x $ac_cv_host
  3029. shift
  3030. host_cpu=$1
  3031. host_vendor=$2
  3032. shift; shift
  3033. # Remember, the first character of IFS is used to create $*,
  3034. # except with old shells:
  3035. host_os=$*
  3036. IFS=$ac_save_IFS
  3037. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3038. { $as_echo "$as_me:$LINENO: checking whether to activate relocatable installation" >&5
  3039. $as_echo_n "checking whether to activate relocatable installation... " >&6; }
  3040. # Check whether --enable-relocatable was given.
  3041. if test "${enable_relocatable+set}" = set; then
  3042. enableval=$enable_relocatable; if test "$enableval" != no; then
  3043. RELOCATABLE=yes
  3044. else
  3045. RELOCATABLE=no
  3046. fi
  3047. else
  3048. RELOCATABLE=no
  3049. fi
  3050. { $as_echo "$as_me:$LINENO: result: $RELOCATABLE" >&5
  3051. $as_echo "$RELOCATABLE" >&6; }
  3052. if test "X$prefix" = "XNONE"; then
  3053. reloc_final_prefix="$ac_default_prefix"
  3054. else
  3055. reloc_final_prefix="$prefix"
  3056. fi
  3057. cat >>confdefs.h <<_ACEOF
  3058. #define INSTALLPREFIX "${reloc_final_prefix}"
  3059. _ACEOF
  3060. if test $RELOCATABLE = yes; then
  3061. cat >>confdefs.h <<\_ACEOF
  3062. #define ENABLE_RELOCATABLE 1
  3063. _ACEOF
  3064. fi
  3065. if test $RELOCATABLE = yes; then
  3066. case " $LIBOBJS " in
  3067. *" relocatable.$ac_objext "* ) ;;
  3068. *) LIBOBJS="$LIBOBJS relocatable.$ac_objext"
  3069. ;;
  3070. esac
  3071. fi
  3072. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3073. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3074. if test "${ac_cv_path_GREP+set}" = set; then
  3075. $as_echo_n "(cached) " >&6
  3076. else
  3077. if test -z "$GREP"; then
  3078. ac_path_GREP_found=false
  3079. # Loop through the user's path and test for each of PROGNAME-LIST
  3080. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3081. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3082. do
  3083. IFS=$as_save_IFS
  3084. test -z "$as_dir" && as_dir=.
  3085. for ac_prog in grep ggrep; do
  3086. for ac_exec_ext in '' $ac_executable_extensions; do
  3087. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3088. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3089. # Check for GNU ac_path_GREP and select it if it is found.
  3090. # Check for GNU $ac_path_GREP
  3091. case `"$ac_path_GREP" --version 2>&1` in
  3092. *GNU*)
  3093. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3094. *)
  3095. ac_count=0
  3096. $as_echo_n 0123456789 >"conftest.in"
  3097. while :
  3098. do
  3099. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3100. mv "conftest.tmp" "conftest.in"
  3101. cp "conftest.in" "conftest.nl"
  3102. $as_echo 'GREP' >> "conftest.nl"
  3103. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3104. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3105. ac_count=`expr $ac_count + 1`
  3106. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3107. # Best one so far, save it but keep looking for a better one
  3108. ac_cv_path_GREP="$ac_path_GREP"
  3109. ac_path_GREP_max=$ac_count
  3110. fi
  3111. # 10*(2^10) chars as input seems more than enough
  3112. test $ac_count -gt 10 && break
  3113. done
  3114. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3115. esac
  3116. $ac_path_GREP_found && break 3
  3117. done
  3118. done
  3119. done
  3120. IFS=$as_save_IFS
  3121. if test -z "$ac_cv_path_GREP"; then
  3122. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3123. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3124. { (exit 1); exit 1; }; }
  3125. fi
  3126. else
  3127. ac_cv_path_GREP=$GREP
  3128. fi
  3129. fi
  3130. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3131. $as_echo "$ac_cv_path_GREP" >&6; }
  3132. GREP="$ac_cv_path_GREP"
  3133. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  3134. $as_echo_n "checking for egrep... " >&6; }
  3135. if test "${ac_cv_path_EGREP+set}" = set; then
  3136. $as_echo_n "(cached) " >&6
  3137. else
  3138. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3139. then ac_cv_path_EGREP="$GREP -E"
  3140. else
  3141. if test -z "$EGREP"; then
  3142. ac_path_EGREP_found=false
  3143. # Loop through the user's path and test for each of PROGNAME-LIST
  3144. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3145. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3146. do
  3147. IFS=$as_save_IFS
  3148. test -z "$as_dir" && as_dir=.
  3149. for ac_prog in egrep; do
  3150. for ac_exec_ext in '' $ac_executable_extensions; do
  3151. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3152. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3153. # Check for GNU ac_path_EGREP and select it if it is found.
  3154. # Check for GNU $ac_path_EGREP
  3155. case `"$ac_path_EGREP" --version 2>&1` in
  3156. *GNU*)
  3157. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3158. *)
  3159. ac_count=0
  3160. $as_echo_n 0123456789 >"conftest.in"
  3161. while :
  3162. do
  3163. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3164. mv "conftest.tmp" "conftest.in"
  3165. cp "conftest.in" "conftest.nl"
  3166. $as_echo 'EGREP' >> "conftest.nl"
  3167. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3168. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3169. ac_count=`expr $ac_count + 1`
  3170. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3171. # Best one so far, save it but keep looking for a better one
  3172. ac_cv_path_EGREP="$ac_path_EGREP"
  3173. ac_path_EGREP_max=$ac_count
  3174. fi
  3175. # 10*(2^10) chars as input seems more than enough
  3176. test $ac_count -gt 10 && break
  3177. done
  3178. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3179. esac
  3180. $ac_path_EGREP_found && break 3
  3181. done
  3182. done
  3183. done
  3184. IFS=$as_save_IFS
  3185. if test -z "$ac_cv_path_EGREP"; then
  3186. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3187. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3188. { (exit 1); exit 1; }; }
  3189. fi
  3190. else
  3191. ac_cv_path_EGREP=$EGREP
  3192. fi
  3193. fi
  3194. fi
  3195. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3196. $as_echo "$ac_cv_path_EGREP" >&6; }
  3197. EGREP="$ac_cv_path_EGREP"
  3198. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3199. $as_echo_n "checking for ANSI C header files... " >&6; }
  3200. if test "${ac_cv_header_stdc+set}" = set; then
  3201. $as_echo_n "(cached) " >&6
  3202. else
  3203. cat >conftest.$ac_ext <<_ACEOF
  3204. /* confdefs.h. */
  3205. _ACEOF
  3206. cat confdefs.h >>conftest.$ac_ext
  3207. cat >>conftest.$ac_ext <<_ACEOF
  3208. /* end confdefs.h. */
  3209. #include <stdlib.h>
  3210. #include <stdarg.h>
  3211. #include <string.h>
  3212. #include <float.h>
  3213. int
  3214. main ()
  3215. {
  3216. ;
  3217. return 0;
  3218. }
  3219. _ACEOF
  3220. rm -f conftest.$ac_objext
  3221. if { (ac_try="$ac_compile"
  3222. case "(($ac_try" in
  3223. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3224. *) ac_try_echo=$ac_try;;
  3225. esac
  3226. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3227. $as_echo "$ac_try_echo") >&5
  3228. (eval "$ac_compile") 2>conftest.er1
  3229. ac_status=$?
  3230. grep -v '^ *+' conftest.er1 >conftest.err
  3231. rm -f conftest.er1
  3232. cat conftest.err >&5
  3233. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3234. (exit $ac_status); } && {
  3235. test -z "$ac_c_werror_flag" ||
  3236. test ! -s conftest.err
  3237. } && test -s conftest.$ac_objext; then
  3238. ac_cv_header_stdc=yes
  3239. else
  3240. $as_echo "$as_me: failed program was:" >&5
  3241. sed 's/^/| /' conftest.$ac_ext >&5
  3242. ac_cv_header_stdc=no
  3243. fi
  3244. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3245. if test $ac_cv_header_stdc = yes; then
  3246. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3247. cat >conftest.$ac_ext <<_ACEOF
  3248. /* confdefs.h. */
  3249. _ACEOF
  3250. cat confdefs.h >>conftest.$ac_ext
  3251. cat >>conftest.$ac_ext <<_ACEOF
  3252. /* end confdefs.h. */
  3253. #include <string.h>
  3254. _ACEOF
  3255. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3256. $EGREP "memchr" >/dev/null 2>&1; then
  3257. :
  3258. else
  3259. ac_cv_header_stdc=no
  3260. fi
  3261. rm -f conftest*
  3262. fi
  3263. if test $ac_cv_header_stdc = yes; then
  3264. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3265. cat >conftest.$ac_ext <<_ACEOF
  3266. /* confdefs.h. */
  3267. _ACEOF
  3268. cat confdefs.h >>conftest.$ac_ext
  3269. cat >>conftest.$ac_ext <<_ACEOF
  3270. /* end confdefs.h. */
  3271. #include <stdlib.h>
  3272. _ACEOF
  3273. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3274. $EGREP "free" >/dev/null 2>&1; then
  3275. :
  3276. else
  3277. ac_cv_header_stdc=no
  3278. fi
  3279. rm -f conftest*
  3280. fi
  3281. if test $ac_cv_header_stdc = yes; then
  3282. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3283. if test "$cross_compiling" = yes; then
  3284. :
  3285. else
  3286. cat >conftest.$ac_ext <<_ACEOF
  3287. /* confdefs.h. */
  3288. _ACEOF
  3289. cat confdefs.h >>conftest.$ac_ext
  3290. cat >>conftest.$ac_ext <<_ACEOF
  3291. /* end confdefs.h. */
  3292. #include <ctype.h>
  3293. #include <stdlib.h>
  3294. #if ((' ' & 0x0FF) == 0x020)
  3295. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3296. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3297. #else
  3298. # define ISLOWER(c) \
  3299. (('a' <= (c) && (c) <= 'i') \
  3300. || ('j' <= (c) && (c) <= 'r') \
  3301. || ('s' <= (c) && (c) <= 'z'))
  3302. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3303. #endif
  3304. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3305. int
  3306. main ()
  3307. {
  3308. int i;
  3309. for (i = 0; i < 256; i++)
  3310. if (XOR (islower (i), ISLOWER (i))
  3311. || toupper (i) != TOUPPER (i))
  3312. return 2;
  3313. return 0;
  3314. }
  3315. _ACEOF
  3316. rm -f conftest$ac_exeext
  3317. if { (ac_try="$ac_link"
  3318. case "(($ac_try" in
  3319. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3320. *) ac_try_echo=$ac_try;;
  3321. esac
  3322. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3323. $as_echo "$ac_try_echo") >&5
  3324. (eval "$ac_link") 2>&5
  3325. ac_status=$?
  3326. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3327. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3328. { (case "(($ac_try" in
  3329. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3330. *) ac_try_echo=$ac_try;;
  3331. esac
  3332. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3333. $as_echo "$ac_try_echo") >&5
  3334. (eval "$ac_try") 2>&5
  3335. ac_status=$?
  3336. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3337. (exit $ac_status); }; }; then
  3338. :
  3339. else
  3340. $as_echo "$as_me: program exited with status $ac_status" >&5
  3341. $as_echo "$as_me: failed program was:" >&5
  3342. sed 's/^/| /' conftest.$ac_ext >&5
  3343. ( exit $ac_status )
  3344. ac_cv_header_stdc=no
  3345. fi
  3346. rm -rf conftest.dSYM
  3347. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3348. fi
  3349. fi
  3350. fi
  3351. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3352. $as_echo "$ac_cv_header_stdc" >&6; }
  3353. if test $ac_cv_header_stdc = yes; then
  3354. cat >>confdefs.h <<\_ACEOF
  3355. #define STDC_HEADERS 1
  3356. _ACEOF
  3357. fi
  3358. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3359. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3360. inttypes.h stdint.h unistd.h
  3361. do
  3362. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3363. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  3364. $as_echo_n "checking for $ac_header... " >&6; }
  3365. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3366. $as_echo_n "(cached) " >&6
  3367. else
  3368. cat >conftest.$ac_ext <<_ACEOF
  3369. /* confdefs.h. */
  3370. _ACEOF
  3371. cat confdefs.h >>conftest.$ac_ext
  3372. cat >>conftest.$ac_ext <<_ACEOF
  3373. /* end confdefs.h. */
  3374. $ac_includes_default
  3375. #include <$ac_header>
  3376. _ACEOF
  3377. rm -f conftest.$ac_objext
  3378. if { (ac_try="$ac_compile"
  3379. case "(($ac_try" in
  3380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3381. *) ac_try_echo=$ac_try;;
  3382. esac
  3383. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3384. $as_echo "$ac_try_echo") >&5
  3385. (eval "$ac_compile") 2>conftest.er1
  3386. ac_status=$?
  3387. grep -v '^ *+' conftest.er1 >conftest.err
  3388. rm -f conftest.er1
  3389. cat conftest.err >&5
  3390. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3391. (exit $ac_status); } && {
  3392. test -z "$ac_c_werror_flag" ||
  3393. test ! -s conftest.err
  3394. } && test -s conftest.$ac_objext; then
  3395. eval "$as_ac_Header=yes"
  3396. else
  3397. $as_echo "$as_me: failed program was:" >&5
  3398. sed 's/^/| /' conftest.$ac_ext >&5
  3399. eval "$as_ac_Header=no"
  3400. fi
  3401. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3402. fi
  3403. ac_res=`eval 'as_val=${'$as_ac_Header'}
  3404. $as_echo "$as_val"'`
  3405. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  3406. $as_echo "$ac_res" >&6; }
  3407. as_val=`eval 'as_val=${'$as_ac_Header'}
  3408. $as_echo "$as_val"'`
  3409. if test "x$as_val" = x""yes; then
  3410. cat >>confdefs.h <<_ACEOF
  3411. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3412. _ACEOF
  3413. fi
  3414. done
  3415. if test "${ac_cv_header_minix_config_h+set}" = set; then
  3416. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  3417. $as_echo_n "checking for minix/config.h... " >&6; }
  3418. if test "${ac_cv_header_minix_config_h+set}" = set; then
  3419. $as_echo_n "(cached) " >&6
  3420. fi
  3421. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  3422. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  3423. else
  3424. # Is the header compilable?
  3425. { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  3426. $as_echo_n "checking minix/config.h usability... " >&6; }
  3427. cat >conftest.$ac_ext <<_ACEOF
  3428. /* confdefs.h. */
  3429. _ACEOF
  3430. cat confdefs.h >>conftest.$ac_ext
  3431. cat >>conftest.$ac_ext <<_ACEOF
  3432. /* end confdefs.h. */
  3433. $ac_includes_default
  3434. #include <minix/config.h>
  3435. _ACEOF
  3436. rm -f conftest.$ac_objext
  3437. if { (ac_try="$ac_compile"
  3438. case "(($ac_try" in
  3439. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3440. *) ac_try_echo=$ac_try;;
  3441. esac
  3442. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3443. $as_echo "$ac_try_echo") >&5
  3444. (eval "$ac_compile") 2>conftest.er1
  3445. ac_status=$?
  3446. grep -v '^ *+' conftest.er1 >conftest.err
  3447. rm -f conftest.er1
  3448. cat conftest.err >&5
  3449. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3450. (exit $ac_status); } && {
  3451. test -z "$ac_c_werror_flag" ||
  3452. test ! -s conftest.err
  3453. } && test -s conftest.$ac_objext; then
  3454. ac_header_compiler=yes
  3455. else
  3456. $as_echo "$as_me: failed program was:" >&5
  3457. sed 's/^/| /' conftest.$ac_ext >&5
  3458. ac_header_compiler=no
  3459. fi
  3460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3461. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3462. $as_echo "$ac_header_compiler" >&6; }
  3463. # Is the header present?
  3464. { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  3465. $as_echo_n "checking minix/config.h presence... " >&6; }
  3466. cat >conftest.$ac_ext <<_ACEOF
  3467. /* confdefs.h. */
  3468. _ACEOF
  3469. cat confdefs.h >>conftest.$ac_ext
  3470. cat >>conftest.$ac_ext <<_ACEOF
  3471. /* end confdefs.h. */
  3472. #include <minix/config.h>
  3473. _ACEOF
  3474. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3475. case "(($ac_try" in
  3476. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3477. *) ac_try_echo=$ac_try;;
  3478. esac
  3479. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3480. $as_echo "$ac_try_echo") >&5
  3481. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3482. ac_status=$?
  3483. grep -v '^ *+' conftest.er1 >conftest.err
  3484. rm -f conftest.er1
  3485. cat conftest.err >&5
  3486. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3487. (exit $ac_status); } >/dev/null && {
  3488. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3489. test ! -s conftest.err
  3490. }; then
  3491. ac_header_preproc=yes
  3492. else
  3493. $as_echo "$as_me: failed program was:" >&5
  3494. sed 's/^/| /' conftest.$ac_ext >&5
  3495. ac_header_preproc=no
  3496. fi
  3497. rm -f conftest.err conftest.$ac_ext
  3498. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3499. $as_echo "$ac_header_preproc" >&6; }
  3500. # So? What about this header?
  3501. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3502. yes:no: )
  3503. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  3504. $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3505. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  3506. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  3507. ac_header_preproc=yes
  3508. ;;
  3509. no:yes:* )
  3510. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  3511. $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  3512. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  3513. $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  3514. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  3515. $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  3516. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  3517. $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  3518. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  3519. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  3520. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  3521. $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  3522. ;;
  3523. esac
  3524. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  3525. $as_echo_n "checking for minix/config.h... " >&6; }
  3526. if test "${ac_cv_header_minix_config_h+set}" = set; then
  3527. $as_echo_n "(cached) " >&6
  3528. else
  3529. ac_cv_header_minix_config_h=$ac_header_preproc
  3530. fi
  3531. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  3532. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  3533. fi
  3534. if test "x$ac_cv_header_minix_config_h" = x""yes; then
  3535. MINIX=yes
  3536. else
  3537. MINIX=
  3538. fi
  3539. if test "$MINIX" = yes; then
  3540. cat >>confdefs.h <<\_ACEOF
  3541. #define _POSIX_SOURCE 1
  3542. _ACEOF
  3543. cat >>confdefs.h <<\_ACEOF
  3544. #define _POSIX_1_SOURCE 2
  3545. _ACEOF
  3546. cat >>confdefs.h <<\_ACEOF
  3547. #define _MINIX 1
  3548. _ACEOF
  3549. fi
  3550. { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  3551. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3552. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  3553. $as_echo_n "(cached) " >&6
  3554. else
  3555. cat >conftest.$ac_ext <<_ACEOF
  3556. /* confdefs.h. */
  3557. _ACEOF
  3558. cat confdefs.h >>conftest.$ac_ext
  3559. cat >>conftest.$ac_ext <<_ACEOF
  3560. /* end confdefs.h. */
  3561. # define __EXTENSIONS__ 1
  3562. $ac_includes_default
  3563. int
  3564. main ()
  3565. {
  3566. ;
  3567. return 0;
  3568. }
  3569. _ACEOF
  3570. rm -f conftest.$ac_objext
  3571. if { (ac_try="$ac_compile"
  3572. case "(($ac_try" in
  3573. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3574. *) ac_try_echo=$ac_try;;
  3575. esac
  3576. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3577. $as_echo "$ac_try_echo") >&5
  3578. (eval "$ac_compile") 2>conftest.er1
  3579. ac_status=$?
  3580. grep -v '^ *+' conftest.er1 >conftest.err
  3581. rm -f conftest.er1
  3582. cat conftest.err >&5
  3583. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3584. (exit $ac_status); } && {
  3585. test -z "$ac_c_werror_flag" ||
  3586. test ! -s conftest.err
  3587. } && test -s conftest.$ac_objext; then
  3588. ac_cv_safe_to_define___extensions__=yes
  3589. else
  3590. $as_echo "$as_me: failed program was:" >&5
  3591. sed 's/^/| /' conftest.$ac_ext >&5
  3592. ac_cv_safe_to_define___extensions__=no
  3593. fi
  3594. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3595. fi
  3596. { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  3597. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3598. test $ac_cv_safe_to_define___extensions__ = yes &&
  3599. cat >>confdefs.h <<\_ACEOF
  3600. #define __EXTENSIONS__ 1
  3601. _ACEOF
  3602. cat >>confdefs.h <<\_ACEOF
  3603. #define _ALL_SOURCE 1
  3604. _ACEOF
  3605. cat >>confdefs.h <<\_ACEOF
  3606. #define _GNU_SOURCE 1
  3607. _ACEOF
  3608. cat >>confdefs.h <<\_ACEOF
  3609. #define _POSIX_PTHREAD_SEMANTICS 1
  3610. _ACEOF
  3611. cat >>confdefs.h <<\_ACEOF
  3612. #define _TANDEM_SOURCE 1
  3613. _ACEOF
  3614. case `pwd` in
  3615. *\ * | *\ *)
  3616. { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3617. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3618. esac
  3619. macro_version='2.2.6'
  3620. macro_revision='1.3012'
  3621. ltmain="$ac_aux_dir/ltmain.sh"
  3622. { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3623. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3624. if test "${ac_cv_path_SED+set}" = set; then
  3625. $as_echo_n "(cached) " >&6
  3626. else
  3627. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3628. for ac_i in 1 2 3 4 5 6 7; do
  3629. ac_script="$ac_script$as_nl$ac_script"
  3630. done
  3631. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3632. $as_unset ac_script || ac_script=
  3633. if test -z "$SED"; then
  3634. ac_path_SED_found=false
  3635. # Loop through the user's path and test for each of PROGNAME-LIST
  3636. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3637. for as_dir in $PATH
  3638. do
  3639. IFS=$as_save_IFS
  3640. test -z "$as_dir" && as_dir=.
  3641. for ac_prog in sed gsed; do
  3642. for ac_exec_ext in '' $ac_executable_extensions; do
  3643. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3644. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3645. # Check for GNU ac_path_SED and select it if it is found.
  3646. # Check for GNU $ac_path_SED
  3647. case `"$ac_path_SED" --version 2>&1` in
  3648. *GNU*)
  3649. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3650. *)
  3651. ac_count=0
  3652. $as_echo_n 0123456789 >"conftest.in"
  3653. while :
  3654. do
  3655. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3656. mv "conftest.tmp" "conftest.in"
  3657. cp "conftest.in" "conftest.nl"
  3658. $as_echo '' >> "conftest.nl"
  3659. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3660. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3661. ac_count=`expr $ac_count + 1`
  3662. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3663. # Best one so far, save it but keep looking for a better one
  3664. ac_cv_path_SED="$ac_path_SED"
  3665. ac_path_SED_max=$ac_count
  3666. fi
  3667. # 10*(2^10) chars as input seems more than enough
  3668. test $ac_count -gt 10 && break
  3669. done
  3670. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3671. esac
  3672. $ac_path_SED_found && break 3
  3673. done
  3674. done
  3675. done
  3676. IFS=$as_save_IFS
  3677. if test -z "$ac_cv_path_SED"; then
  3678. { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  3679. $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  3680. { (exit 1); exit 1; }; }
  3681. fi
  3682. else
  3683. ac_cv_path_SED=$SED
  3684. fi
  3685. fi
  3686. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  3687. $as_echo "$ac_cv_path_SED" >&6; }
  3688. SED="$ac_cv_path_SED"
  3689. rm -f conftest.sed
  3690. test -z "$SED" && SED=sed
  3691. Xsed="$SED -e 1s/^X//"
  3692. { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
  3693. $as_echo_n "checking for fgrep... " >&6; }
  3694. if test "${ac_cv_path_FGREP+set}" = set; then
  3695. $as_echo_n "(cached) " >&6
  3696. else
  3697. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3698. then ac_cv_path_FGREP="$GREP -F"
  3699. else
  3700. if test -z "$FGREP"; then
  3701. ac_path_FGREP_found=false
  3702. # Loop through the user's path and test for each of PROGNAME-LIST
  3703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3704. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3705. do
  3706. IFS=$as_save_IFS
  3707. test -z "$as_dir" && as_dir=.
  3708. for ac_prog in fgrep; do
  3709. for ac_exec_ext in '' $ac_executable_extensions; do
  3710. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3711. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  3712. # Check for GNU ac_path_FGREP and select it if it is found.
  3713. # Check for GNU $ac_path_FGREP
  3714. case `"$ac_path_FGREP" --version 2>&1` in
  3715. *GNU*)
  3716. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3717. *)
  3718. ac_count=0
  3719. $as_echo_n 0123456789 >"conftest.in"
  3720. while :
  3721. do
  3722. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3723. mv "conftest.tmp" "conftest.in"
  3724. cp "conftest.in" "conftest.nl"
  3725. $as_echo 'FGREP' >> "conftest.nl"
  3726. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3727. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3728. ac_count=`expr $ac_count + 1`
  3729. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3730. # Best one so far, save it but keep looking for a better one
  3731. ac_cv_path_FGREP="$ac_path_FGREP"
  3732. ac_path_FGREP_max=$ac_count
  3733. fi
  3734. # 10*(2^10) chars as input seems more than enough
  3735. test $ac_count -gt 10 && break
  3736. done
  3737. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3738. esac
  3739. $ac_path_FGREP_found && break 3
  3740. done
  3741. done
  3742. done
  3743. IFS=$as_save_IFS
  3744. if test -z "$ac_cv_path_FGREP"; then
  3745. { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3746. $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3747. { (exit 1); exit 1; }; }
  3748. fi
  3749. else
  3750. ac_cv_path_FGREP=$FGREP
  3751. fi
  3752. fi
  3753. fi
  3754. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
  3755. $as_echo "$ac_cv_path_FGREP" >&6; }
  3756. FGREP="$ac_cv_path_FGREP"
  3757. test -z "$GREP" && GREP=grep
  3758. # Check whether --with-gnu-ld was given.
  3759. if test "${with_gnu_ld+set}" = set; then
  3760. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3761. else
  3762. with_gnu_ld=no
  3763. fi
  3764. ac_prog=ld
  3765. if test "$GCC" = yes; then
  3766. # Check if gcc -print-prog-name=ld gives a path.
  3767. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3768. $as_echo_n "checking for ld used by $CC... " >&6; }
  3769. case $host in
  3770. *-*-mingw*)
  3771. # gcc leaves a trailing carriage return which upsets mingw
  3772. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3773. *)
  3774. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3775. esac
  3776. case $ac_prog in
  3777. # Accept absolute paths.
  3778. [\\/]* | ?:[\\/]*)
  3779. re_direlt='/[^/][^/]*/\.\./'
  3780. # Canonicalize the pathname of ld
  3781. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3782. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3783. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3784. done
  3785. test -z "$LD" && LD="$ac_prog"
  3786. ;;
  3787. "")
  3788. # If it fails, then pretend we aren't using GCC.
  3789. ac_prog=ld
  3790. ;;
  3791. *)
  3792. # If it is relative, then search for the first ld in PATH.
  3793. with_gnu_ld=unknown
  3794. ;;
  3795. esac
  3796. elif test "$with_gnu_ld" = yes; then
  3797. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  3798. $as_echo_n "checking for GNU ld... " >&6; }
  3799. else
  3800. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3801. $as_echo_n "checking for non-GNU ld... " >&6; }
  3802. fi
  3803. if test "${lt_cv_path_LD+set}" = set; then
  3804. $as_echo_n "(cached) " >&6
  3805. else
  3806. if test -z "$LD"; then
  3807. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3808. for ac_dir in $PATH; do
  3809. IFS="$lt_save_ifs"
  3810. test -z "$ac_dir" && ac_dir=.
  3811. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3812. lt_cv_path_LD="$ac_dir/$ac_prog"
  3813. # Check to see if the program is GNU ld. I'd rather use --version,
  3814. # but apparently some variants of GNU ld only accept -v.
  3815. # Break only if it was the GNU/non-GNU ld that we prefer.
  3816. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3817. *GNU* | *'with BFD'*)
  3818. test "$with_gnu_ld" != no && break
  3819. ;;
  3820. *)
  3821. test "$with_gnu_ld" != yes && break
  3822. ;;
  3823. esac
  3824. fi
  3825. done
  3826. IFS="$lt_save_ifs"
  3827. else
  3828. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3829. fi
  3830. fi
  3831. LD="$lt_cv_path_LD"
  3832. if test -n "$LD"; then
  3833. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  3834. $as_echo "$LD" >&6; }
  3835. else
  3836. { $as_echo "$as_me:$LINENO: result: no" >&5
  3837. $as_echo "no" >&6; }
  3838. fi
  3839. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3840. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3841. { (exit 1); exit 1; }; }
  3842. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3843. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3844. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3845. $as_echo_n "(cached) " >&6
  3846. else
  3847. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3848. case `$LD -v 2>&1 </dev/null` in
  3849. *GNU* | *'with BFD'*)
  3850. lt_cv_prog_gnu_ld=yes
  3851. ;;
  3852. *)
  3853. lt_cv_prog_gnu_ld=no
  3854. ;;
  3855. esac
  3856. fi
  3857. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3858. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3859. with_gnu_ld=$lt_cv_prog_gnu_ld
  3860. { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
  3861. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3862. if test "${lt_cv_path_NM+set}" = set; then
  3863. $as_echo_n "(cached) " >&6
  3864. else
  3865. if test -n "$NM"; then
  3866. # Let the user override the test.
  3867. lt_cv_path_NM="$NM"
  3868. else
  3869. lt_nm_to_check="${ac_tool_prefix}nm"
  3870. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3871. lt_nm_to_check="$lt_nm_to_check nm"
  3872. fi
  3873. for lt_tmp_nm in $lt_nm_to_check; do
  3874. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3875. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3876. IFS="$lt_save_ifs"
  3877. test -z "$ac_dir" && ac_dir=.
  3878. tmp_nm="$ac_dir/$lt_tmp_nm"
  3879. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3880. # Check to see if the nm accepts a BSD-compat flag.
  3881. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3882. # nm: unknown option "B" ignored
  3883. # Tru64's nm complains that /dev/null is an invalid object file
  3884. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3885. */dev/null* | *'Invalid file or object type'*)
  3886. lt_cv_path_NM="$tmp_nm -B"
  3887. break
  3888. ;;
  3889. *)
  3890. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3891. */dev/null*)
  3892. lt_cv_path_NM="$tmp_nm -p"
  3893. break
  3894. ;;
  3895. *)
  3896. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3897. continue # so that we can try to find one that supports BSD flags
  3898. ;;
  3899. esac
  3900. ;;
  3901. esac
  3902. fi
  3903. done
  3904. IFS="$lt_save_ifs"
  3905. done
  3906. : ${lt_cv_path_NM=no}
  3907. fi
  3908. fi
  3909. { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3910. $as_echo "$lt_cv_path_NM" >&6; }
  3911. if test "$lt_cv_path_NM" != "no"; then
  3912. NM="$lt_cv_path_NM"
  3913. else
  3914. # Didn't find any BSD compatible name lister, look for dumpbin.
  3915. if test -n "$ac_tool_prefix"; then
  3916. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  3917. do
  3918. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3919. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3920. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3921. $as_echo_n "checking for $ac_word... " >&6; }
  3922. if test "${ac_cv_prog_DUMPBIN+set}" = set; then
  3923. $as_echo_n "(cached) " >&6
  3924. else
  3925. if test -n "$DUMPBIN"; then
  3926. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3927. else
  3928. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3929. for as_dir in $PATH
  3930. do
  3931. IFS=$as_save_IFS
  3932. test -z "$as_dir" && as_dir=.
  3933. for ac_exec_ext in '' $ac_executable_extensions; do
  3934. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3935. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3936. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3937. break 2
  3938. fi
  3939. done
  3940. done
  3941. IFS=$as_save_IFS
  3942. fi
  3943. fi
  3944. DUMPBIN=$ac_cv_prog_DUMPBIN
  3945. if test -n "$DUMPBIN"; then
  3946. { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
  3947. $as_echo "$DUMPBIN" >&6; }
  3948. else
  3949. { $as_echo "$as_me:$LINENO: result: no" >&5
  3950. $as_echo "no" >&6; }
  3951. fi
  3952. test -n "$DUMPBIN" && break
  3953. done
  3954. fi
  3955. if test -z "$DUMPBIN"; then
  3956. ac_ct_DUMPBIN=$DUMPBIN
  3957. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  3958. do
  3959. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3960. set dummy $ac_prog; ac_word=$2
  3961. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3962. $as_echo_n "checking for $ac_word... " >&6; }
  3963. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
  3964. $as_echo_n "(cached) " >&6
  3965. else
  3966. if test -n "$ac_ct_DUMPBIN"; then
  3967. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3968. else
  3969. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3970. for as_dir in $PATH
  3971. do
  3972. IFS=$as_save_IFS
  3973. test -z "$as_dir" && as_dir=.
  3974. for ac_exec_ext in '' $ac_executable_extensions; do
  3975. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3976. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3977. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3978. break 2
  3979. fi
  3980. done
  3981. done
  3982. IFS=$as_save_IFS
  3983. fi
  3984. fi
  3985. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3986. if test -n "$ac_ct_DUMPBIN"; then
  3987. { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
  3988. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3989. else
  3990. { $as_echo "$as_me:$LINENO: result: no" >&5
  3991. $as_echo "no" >&6; }
  3992. fi
  3993. test -n "$ac_ct_DUMPBIN" && break
  3994. done
  3995. if test "x$ac_ct_DUMPBIN" = x; then
  3996. DUMPBIN=":"
  3997. else
  3998. case $cross_compiling:$ac_tool_warned in
  3999. yes:)
  4000. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4001. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4002. ac_tool_warned=yes ;;
  4003. esac
  4004. DUMPBIN=$ac_ct_DUMPBIN
  4005. fi
  4006. fi
  4007. if test "$DUMPBIN" != ":"; then
  4008. NM="$DUMPBIN"
  4009. fi
  4010. fi
  4011. test -z "$NM" && NM=nm
  4012. { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
  4013. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4014. if test "${lt_cv_nm_interface+set}" = set; then
  4015. $as_echo_n "(cached) " >&6
  4016. else
  4017. lt_cv_nm_interface="BSD nm"
  4018. echo "int some_variable = 0;" > conftest.$ac_ext
  4019. (eval echo "\"\$as_me:4557: $ac_compile\"" >&5)
  4020. (eval "$ac_compile" 2>conftest.err)
  4021. cat conftest.err >&5
  4022. (eval echo "\"\$as_me:4560: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4023. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4024. cat conftest.err >&5
  4025. (eval echo "\"\$as_me:4563: output\"" >&5)
  4026. cat conftest.out >&5
  4027. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4028. lt_cv_nm_interface="MS dumpbin"
  4029. fi
  4030. rm -f conftest*
  4031. fi
  4032. { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
  4033. $as_echo "$lt_cv_nm_interface" >&6; }
  4034. { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  4035. $as_echo_n "checking whether ln -s works... " >&6; }
  4036. LN_S=$as_ln_s
  4037. if test "$LN_S" = "ln -s"; then
  4038. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4039. $as_echo "yes" >&6; }
  4040. else
  4041. { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  4042. $as_echo "no, using $LN_S" >&6; }
  4043. fi
  4044. # find the maximum length of command line arguments
  4045. { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  4046. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4047. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  4048. $as_echo_n "(cached) " >&6
  4049. else
  4050. i=0
  4051. teststring="ABCD"
  4052. case $build_os in
  4053. msdosdjgpp*)
  4054. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4055. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4056. # during glob expansion). Even if it were fixed, the result of this
  4057. # check would be larger than it should be.
  4058. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4059. ;;
  4060. gnu*)
  4061. # Under GNU Hurd, this test is not required because there is
  4062. # no limit to the length of command line arguments.
  4063. # Libtool will interpret -1 as no limit whatsoever
  4064. lt_cv_sys_max_cmd_len=-1;
  4065. ;;
  4066. cygwin* | mingw* | cegcc*)
  4067. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4068. # about 5 minutes as the teststring grows exponentially.
  4069. # Worse, since 9x/ME are not pre-emptively multitasking,
  4070. # you end up with a "frozen" computer, even though with patience
  4071. # the test eventually succeeds (with a max line length of 256k).
  4072. # Instead, let's just punt: use the minimum linelength reported by
  4073. # all of the supported platforms: 8192 (on NT/2K/XP).
  4074. lt_cv_sys_max_cmd_len=8192;
  4075. ;;
  4076. amigaos*)
  4077. # On AmigaOS with pdksh, this test takes hours, literally.
  4078. # So we just punt and use a minimum line length of 8192.
  4079. lt_cv_sys_max_cmd_len=8192;
  4080. ;;
  4081. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4082. # This has been around since 386BSD, at least. Likely further.
  4083. if test -x /sbin/sysctl; then
  4084. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4085. elif test -x /usr/sbin/sysctl; then
  4086. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4087. else
  4088. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4089. fi
  4090. # And add a safety zone
  4091. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4092. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4093. ;;
  4094. interix*)
  4095. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4096. lt_cv_sys_max_cmd_len=196608
  4097. ;;
  4098. osf*)
  4099. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4100. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4101. # nice to cause kernel panics so lets avoid the loop below.
  4102. # First set a reasonable default.
  4103. lt_cv_sys_max_cmd_len=16384
  4104. #
  4105. if test -x /sbin/sysconfig; then
  4106. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4107. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4108. esac
  4109. fi
  4110. ;;
  4111. sco3.2v5*)
  4112. lt_cv_sys_max_cmd_len=102400
  4113. ;;
  4114. sysv5* | sco5v6* | sysv4.2uw2*)
  4115. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4116. if test -n "$kargmax"; then
  4117. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4118. else
  4119. lt_cv_sys_max_cmd_len=32768
  4120. fi
  4121. ;;
  4122. *)
  4123. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4124. if test -n "$lt_cv_sys_max_cmd_len"; then
  4125. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4126. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4127. else
  4128. # Make teststring a little bigger before we do anything with it.
  4129. # a 1K string should be a reasonable start.
  4130. for i in 1 2 3 4 5 6 7 8 ; do
  4131. teststring=$teststring$teststring
  4132. done
  4133. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4134. # If test is not a shell built-in, we'll probably end up computing a
  4135. # maximum length that is only half of the actual maximum length, but
  4136. # we can't tell.
  4137. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  4138. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  4139. test $i != 17 # 1/2 MB should be enough
  4140. do
  4141. i=`expr $i + 1`
  4142. teststring=$teststring$teststring
  4143. done
  4144. # Only check the string length outside the loop.
  4145. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4146. teststring=
  4147. # Add a significant safety factor because C++ compilers can tack on
  4148. # massive amounts of additional arguments before passing them to the
  4149. # linker. It appears as though 1/2 is a usable value.
  4150. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4151. fi
  4152. ;;
  4153. esac
  4154. fi
  4155. if test -n $lt_cv_sys_max_cmd_len ; then
  4156. { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  4157. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4158. else
  4159. { $as_echo "$as_me:$LINENO: result: none" >&5
  4160. $as_echo "none" >&6; }
  4161. fi
  4162. max_cmd_len=$lt_cv_sys_max_cmd_len
  4163. : ${CP="cp -f"}
  4164. : ${MV="mv -f"}
  4165. : ${RM="rm -f"}
  4166. { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
  4167. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4168. # Try some XSI features
  4169. xsi_shell=no
  4170. ( _lt_dummy="a/b/c"
  4171. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4172. = c,a/b,, \
  4173. && eval 'test $(( 1 + 1 )) -eq 2 \
  4174. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4175. && xsi_shell=yes
  4176. { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
  4177. $as_echo "$xsi_shell" >&6; }
  4178. { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
  4179. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4180. lt_shell_append=no
  4181. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4182. >/dev/null 2>&1 \
  4183. && lt_shell_append=yes
  4184. { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
  4185. $as_echo "$lt_shell_append" >&6; }
  4186. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4187. lt_unset=unset
  4188. else
  4189. lt_unset=false
  4190. fi
  4191. # test EBCDIC or ASCII
  4192. case `echo X|tr X '\101'` in
  4193. A) # ASCII based system
  4194. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4195. lt_SP2NL='tr \040 \012'
  4196. lt_NL2SP='tr \015\012 \040\040'
  4197. ;;
  4198. *) # EBCDIC based system
  4199. lt_SP2NL='tr \100 \n'
  4200. lt_NL2SP='tr \r\n \100\100'
  4201. ;;
  4202. esac
  4203. { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  4204. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4205. if test "${lt_cv_ld_reload_flag+set}" = set; then
  4206. $as_echo_n "(cached) " >&6
  4207. else
  4208. lt_cv_ld_reload_flag='-r'
  4209. fi
  4210. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  4211. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4212. reload_flag=$lt_cv_ld_reload_flag
  4213. case $reload_flag in
  4214. "" | " "*) ;;
  4215. *) reload_flag=" $reload_flag" ;;
  4216. esac
  4217. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4218. case $host_os in
  4219. darwin*)
  4220. if test "$GCC" = yes; then
  4221. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4222. else
  4223. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4224. fi
  4225. ;;
  4226. esac
  4227. if test -n "$ac_tool_prefix"; then
  4228. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4229. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4230. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4231. $as_echo_n "checking for $ac_word... " >&6; }
  4232. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  4233. $as_echo_n "(cached) " >&6
  4234. else
  4235. if test -n "$OBJDUMP"; then
  4236. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4237. else
  4238. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4239. for as_dir in $PATH
  4240. do
  4241. IFS=$as_save_IFS
  4242. test -z "$as_dir" && as_dir=.
  4243. for ac_exec_ext in '' $ac_executable_extensions; do
  4244. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4245. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4246. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4247. break 2
  4248. fi
  4249. done
  4250. done
  4251. IFS=$as_save_IFS
  4252. fi
  4253. fi
  4254. OBJDUMP=$ac_cv_prog_OBJDUMP
  4255. if test -n "$OBJDUMP"; then
  4256. { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  4257. $as_echo "$OBJDUMP" >&6; }
  4258. else
  4259. { $as_echo "$as_me:$LINENO: result: no" >&5
  4260. $as_echo "no" >&6; }
  4261. fi
  4262. fi
  4263. if test -z "$ac_cv_prog_OBJDUMP"; then
  4264. ac_ct_OBJDUMP=$OBJDUMP
  4265. # Extract the first word of "objdump", so it can be a program name with args.
  4266. set dummy objdump; ac_word=$2
  4267. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4268. $as_echo_n "checking for $ac_word... " >&6; }
  4269. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  4270. $as_echo_n "(cached) " >&6
  4271. else
  4272. if test -n "$ac_ct_OBJDUMP"; then
  4273. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4274. else
  4275. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4276. for as_dir in $PATH
  4277. do
  4278. IFS=$as_save_IFS
  4279. test -z "$as_dir" && as_dir=.
  4280. for ac_exec_ext in '' $ac_executable_extensions; do
  4281. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4282. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4283. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4284. break 2
  4285. fi
  4286. done
  4287. done
  4288. IFS=$as_save_IFS
  4289. fi
  4290. fi
  4291. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4292. if test -n "$ac_ct_OBJDUMP"; then
  4293. { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  4294. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4295. else
  4296. { $as_echo "$as_me:$LINENO: result: no" >&5
  4297. $as_echo "no" >&6; }
  4298. fi
  4299. if test "x$ac_ct_OBJDUMP" = x; then
  4300. OBJDUMP="false"
  4301. else
  4302. case $cross_compiling:$ac_tool_warned in
  4303. yes:)
  4304. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4305. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4306. ac_tool_warned=yes ;;
  4307. esac
  4308. OBJDUMP=$ac_ct_OBJDUMP
  4309. fi
  4310. else
  4311. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4312. fi
  4313. test -z "$OBJDUMP" && OBJDUMP=objdump
  4314. { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  4315. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4316. if test "${lt_cv_deplibs_check_method+set}" = set; then
  4317. $as_echo_n "(cached) " >&6
  4318. else
  4319. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4320. lt_cv_file_magic_test_file=
  4321. lt_cv_deplibs_check_method='unknown'
  4322. # Need to set the preceding variable on all platforms that support
  4323. # interlibrary dependencies.
  4324. # 'none' -- dependencies not supported.
  4325. # `unknown' -- same as none, but documents that we really don't know.
  4326. # 'pass_all' -- all dependencies passed with no checks.
  4327. # 'test_compile' -- check by making test program.
  4328. # 'file_magic [[regex]]' -- check by looking for files in library path
  4329. # which responds to the $file_magic_cmd with a given extended regex.
  4330. # If you have `file' or equivalent on your system and you're not sure
  4331. # whether `pass_all' will *always* work, you probably want this one.
  4332. case $host_os in
  4333. aix[4-9]*)
  4334. lt_cv_deplibs_check_method=pass_all
  4335. ;;
  4336. beos*)
  4337. lt_cv_deplibs_check_method=pass_all
  4338. ;;
  4339. bsdi[45]*)
  4340. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4341. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4342. lt_cv_file_magic_test_file=/shlib/libc.so
  4343. ;;
  4344. cygwin*)
  4345. # func_win32_libid is a shell function defined in ltmain.sh
  4346. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4347. lt_cv_file_magic_cmd='func_win32_libid'
  4348. ;;
  4349. mingw* | pw32*)
  4350. # Base MSYS/MinGW do not provide the 'file' command needed by
  4351. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4352. # unless we find 'file', for example because we are cross-compiling.
  4353. if ( file / ) >/dev/null 2>&1; then
  4354. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4355. lt_cv_file_magic_cmd='func_win32_libid'
  4356. else
  4357. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4358. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4359. fi
  4360. ;;
  4361. cegcc)
  4362. # use the weaker test based on 'objdump'. See mingw*.
  4363. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4364. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4365. ;;
  4366. darwin* | rhapsody*)
  4367. lt_cv_deplibs_check_method=pass_all
  4368. ;;
  4369. freebsd* | dragonfly*)
  4370. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4371. case $host_cpu in
  4372. i*86 )
  4373. # Not sure whether the presence of OpenBSD here was a mistake.
  4374. # Let's accept both of them until this is cleared up.
  4375. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4376. lt_cv_file_magic_cmd=/usr/bin/file
  4377. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4378. ;;
  4379. esac
  4380. else
  4381. lt_cv_deplibs_check_method=pass_all
  4382. fi
  4383. ;;
  4384. gnu*)
  4385. lt_cv_deplibs_check_method=pass_all
  4386. ;;
  4387. hpux10.20* | hpux11*)
  4388. lt_cv_file_magic_cmd=/usr/bin/file
  4389. case $host_cpu in
  4390. ia64*)
  4391. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4392. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4393. ;;
  4394. hppa*64*)
  4395. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  4396. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4397. ;;
  4398. *)
  4399. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4400. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4401. ;;
  4402. esac
  4403. ;;
  4404. interix[3-9]*)
  4405. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4406. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4407. ;;
  4408. irix5* | irix6* | nonstopux*)
  4409. case $LD in
  4410. *-32|*"-32 ") libmagic=32-bit;;
  4411. *-n32|*"-n32 ") libmagic=N32;;
  4412. *-64|*"-64 ") libmagic=64-bit;;
  4413. *) libmagic=never-match;;
  4414. esac
  4415. lt_cv_deplibs_check_method=pass_all
  4416. ;;
  4417. # This must be Linux ELF.
  4418. linux* | k*bsd*-gnu)
  4419. lt_cv_deplibs_check_method=pass_all
  4420. ;;
  4421. netbsd*)
  4422. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4423. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4424. else
  4425. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4426. fi
  4427. ;;
  4428. newos6*)
  4429. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4430. lt_cv_file_magic_cmd=/usr/bin/file
  4431. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4432. ;;
  4433. *nto* | *qnx*)
  4434. lt_cv_deplibs_check_method=pass_all
  4435. ;;
  4436. openbsd*)
  4437. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4438. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4439. else
  4440. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4441. fi
  4442. ;;
  4443. osf3* | osf4* | osf5*)
  4444. lt_cv_deplibs_check_method=pass_all
  4445. ;;
  4446. rdos*)
  4447. lt_cv_deplibs_check_method=pass_all
  4448. ;;
  4449. solaris*)
  4450. lt_cv_deplibs_check_method=pass_all
  4451. ;;
  4452. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4453. lt_cv_deplibs_check_method=pass_all
  4454. ;;
  4455. sysv4 | sysv4.3*)
  4456. case $host_vendor in
  4457. motorola)
  4458. 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]'
  4459. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4460. ;;
  4461. ncr)
  4462. lt_cv_deplibs_check_method=pass_all
  4463. ;;
  4464. sequent)
  4465. lt_cv_file_magic_cmd='/bin/file'
  4466. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4467. ;;
  4468. sni)
  4469. lt_cv_file_magic_cmd='/bin/file'
  4470. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4471. lt_cv_file_magic_test_file=/lib/libc.so
  4472. ;;
  4473. siemens)
  4474. lt_cv_deplibs_check_method=pass_all
  4475. ;;
  4476. pc)
  4477. lt_cv_deplibs_check_method=pass_all
  4478. ;;
  4479. esac
  4480. ;;
  4481. tpf*)
  4482. lt_cv_deplibs_check_method=pass_all
  4483. ;;
  4484. esac
  4485. fi
  4486. { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  4487. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4488. file_magic_cmd=$lt_cv_file_magic_cmd
  4489. deplibs_check_method=$lt_cv_deplibs_check_method
  4490. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4491. if test -n "$ac_tool_prefix"; then
  4492. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4493. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4494. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4495. $as_echo_n "checking for $ac_word... " >&6; }
  4496. if test "${ac_cv_prog_AR+set}" = set; then
  4497. $as_echo_n "(cached) " >&6
  4498. else
  4499. if test -n "$AR"; then
  4500. ac_cv_prog_AR="$AR" # Let the user override the test.
  4501. else
  4502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4503. for as_dir in $PATH
  4504. do
  4505. IFS=$as_save_IFS
  4506. test -z "$as_dir" && as_dir=.
  4507. for ac_exec_ext in '' $ac_executable_extensions; do
  4508. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4509. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4510. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4511. break 2
  4512. fi
  4513. done
  4514. done
  4515. IFS=$as_save_IFS
  4516. fi
  4517. fi
  4518. AR=$ac_cv_prog_AR
  4519. if test -n "$AR"; then
  4520. { $as_echo "$as_me:$LINENO: result: $AR" >&5
  4521. $as_echo "$AR" >&6; }
  4522. else
  4523. { $as_echo "$as_me:$LINENO: result: no" >&5
  4524. $as_echo "no" >&6; }
  4525. fi
  4526. fi
  4527. if test -z "$ac_cv_prog_AR"; then
  4528. ac_ct_AR=$AR
  4529. # Extract the first word of "ar", so it can be a program name with args.
  4530. set dummy ar; ac_word=$2
  4531. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4532. $as_echo_n "checking for $ac_word... " >&6; }
  4533. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  4534. $as_echo_n "(cached) " >&6
  4535. else
  4536. if test -n "$ac_ct_AR"; then
  4537. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4538. else
  4539. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4540. for as_dir in $PATH
  4541. do
  4542. IFS=$as_save_IFS
  4543. test -z "$as_dir" && as_dir=.
  4544. for ac_exec_ext in '' $ac_executable_extensions; do
  4545. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4546. ac_cv_prog_ac_ct_AR="ar"
  4547. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4548. break 2
  4549. fi
  4550. done
  4551. done
  4552. IFS=$as_save_IFS
  4553. fi
  4554. fi
  4555. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4556. if test -n "$ac_ct_AR"; then
  4557. { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  4558. $as_echo "$ac_ct_AR" >&6; }
  4559. else
  4560. { $as_echo "$as_me:$LINENO: result: no" >&5
  4561. $as_echo "no" >&6; }
  4562. fi
  4563. if test "x$ac_ct_AR" = x; then
  4564. AR="false"
  4565. else
  4566. case $cross_compiling:$ac_tool_warned in
  4567. yes:)
  4568. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4569. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4570. ac_tool_warned=yes ;;
  4571. esac
  4572. AR=$ac_ct_AR
  4573. fi
  4574. else
  4575. AR="$ac_cv_prog_AR"
  4576. fi
  4577. test -z "$AR" && AR=ar
  4578. test -z "$AR_FLAGS" && AR_FLAGS=cru
  4579. if test -n "$ac_tool_prefix"; then
  4580. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4581. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4582. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4583. $as_echo_n "checking for $ac_word... " >&6; }
  4584. if test "${ac_cv_prog_STRIP+set}" = set; then
  4585. $as_echo_n "(cached) " >&6
  4586. else
  4587. if test -n "$STRIP"; then
  4588. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4589. else
  4590. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4591. for as_dir in $PATH
  4592. do
  4593. IFS=$as_save_IFS
  4594. test -z "$as_dir" && as_dir=.
  4595. for ac_exec_ext in '' $ac_executable_extensions; do
  4596. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4597. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4598. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4599. break 2
  4600. fi
  4601. done
  4602. done
  4603. IFS=$as_save_IFS
  4604. fi
  4605. fi
  4606. STRIP=$ac_cv_prog_STRIP
  4607. if test -n "$STRIP"; then
  4608. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  4609. $as_echo "$STRIP" >&6; }
  4610. else
  4611. { $as_echo "$as_me:$LINENO: result: no" >&5
  4612. $as_echo "no" >&6; }
  4613. fi
  4614. fi
  4615. if test -z "$ac_cv_prog_STRIP"; then
  4616. ac_ct_STRIP=$STRIP
  4617. # Extract the first word of "strip", so it can be a program name with args.
  4618. set dummy strip; ac_word=$2
  4619. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4620. $as_echo_n "checking for $ac_word... " >&6; }
  4621. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  4622. $as_echo_n "(cached) " >&6
  4623. else
  4624. if test -n "$ac_ct_STRIP"; then
  4625. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4626. else
  4627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4628. for as_dir in $PATH
  4629. do
  4630. IFS=$as_save_IFS
  4631. test -z "$as_dir" && as_dir=.
  4632. for ac_exec_ext in '' $ac_executable_extensions; do
  4633. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4634. ac_cv_prog_ac_ct_STRIP="strip"
  4635. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4636. break 2
  4637. fi
  4638. done
  4639. done
  4640. IFS=$as_save_IFS
  4641. fi
  4642. fi
  4643. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4644. if test -n "$ac_ct_STRIP"; then
  4645. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  4646. $as_echo "$ac_ct_STRIP" >&6; }
  4647. else
  4648. { $as_echo "$as_me:$LINENO: result: no" >&5
  4649. $as_echo "no" >&6; }
  4650. fi
  4651. if test "x$ac_ct_STRIP" = x; then
  4652. STRIP=":"
  4653. else
  4654. case $cross_compiling:$ac_tool_warned in
  4655. yes:)
  4656. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4657. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4658. ac_tool_warned=yes ;;
  4659. esac
  4660. STRIP=$ac_ct_STRIP
  4661. fi
  4662. else
  4663. STRIP="$ac_cv_prog_STRIP"
  4664. fi
  4665. test -z "$STRIP" && STRIP=:
  4666. if test -n "$ac_tool_prefix"; then
  4667. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4668. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4669. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4670. $as_echo_n "checking for $ac_word... " >&6; }
  4671. if test "${ac_cv_prog_RANLIB+set}" = set; then
  4672. $as_echo_n "(cached) " >&6
  4673. else
  4674. if test -n "$RANLIB"; then
  4675. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4676. else
  4677. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4678. for as_dir in $PATH
  4679. do
  4680. IFS=$as_save_IFS
  4681. test -z "$as_dir" && as_dir=.
  4682. for ac_exec_ext in '' $ac_executable_extensions; do
  4683. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4684. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4685. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4686. break 2
  4687. fi
  4688. done
  4689. done
  4690. IFS=$as_save_IFS
  4691. fi
  4692. fi
  4693. RANLIB=$ac_cv_prog_RANLIB
  4694. if test -n "$RANLIB"; then
  4695. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  4696. $as_echo "$RANLIB" >&6; }
  4697. else
  4698. { $as_echo "$as_me:$LINENO: result: no" >&5
  4699. $as_echo "no" >&6; }
  4700. fi
  4701. fi
  4702. if test -z "$ac_cv_prog_RANLIB"; then
  4703. ac_ct_RANLIB=$RANLIB
  4704. # Extract the first word of "ranlib", so it can be a program name with args.
  4705. set dummy ranlib; ac_word=$2
  4706. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4707. $as_echo_n "checking for $ac_word... " >&6; }
  4708. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4709. $as_echo_n "(cached) " >&6
  4710. else
  4711. if test -n "$ac_ct_RANLIB"; then
  4712. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4713. else
  4714. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4715. for as_dir in $PATH
  4716. do
  4717. IFS=$as_save_IFS
  4718. test -z "$as_dir" && as_dir=.
  4719. for ac_exec_ext in '' $ac_executable_extensions; do
  4720. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4721. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4722. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4723. break 2
  4724. fi
  4725. done
  4726. done
  4727. IFS=$as_save_IFS
  4728. fi
  4729. fi
  4730. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4731. if test -n "$ac_ct_RANLIB"; then
  4732. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4733. $as_echo "$ac_ct_RANLIB" >&6; }
  4734. else
  4735. { $as_echo "$as_me:$LINENO: result: no" >&5
  4736. $as_echo "no" >&6; }
  4737. fi
  4738. if test "x$ac_ct_RANLIB" = x; then
  4739. RANLIB=":"
  4740. else
  4741. case $cross_compiling:$ac_tool_warned in
  4742. yes:)
  4743. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4744. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4745. ac_tool_warned=yes ;;
  4746. esac
  4747. RANLIB=$ac_ct_RANLIB
  4748. fi
  4749. else
  4750. RANLIB="$ac_cv_prog_RANLIB"
  4751. fi
  4752. test -z "$RANLIB" && RANLIB=:
  4753. # Determine commands to create old-style static archives.
  4754. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4755. old_postinstall_cmds='chmod 644 $oldlib'
  4756. old_postuninstall_cmds=
  4757. if test -n "$RANLIB"; then
  4758. case $host_os in
  4759. openbsd*)
  4760. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  4761. ;;
  4762. *)
  4763. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  4764. ;;
  4765. esac
  4766. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  4767. fi
  4768. # If no C compiler was specified, use CC.
  4769. LTCC=${LTCC-"$CC"}
  4770. # If no C compiler flags were specified, use CFLAGS.
  4771. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4772. # Allow CC to be a program name with arguments.
  4773. compiler=$CC
  4774. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4775. { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  4776. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4777. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  4778. $as_echo_n "(cached) " >&6
  4779. else
  4780. # These are sane defaults that work on at least a few old systems.
  4781. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4782. # Character class describing NM global symbol codes.
  4783. symcode='[BCDEGRST]'
  4784. # Regexp to match symbols that can be accessed directly from C.
  4785. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4786. # Define system-specific variables.
  4787. case $host_os in
  4788. aix*)
  4789. symcode='[BCDT]'
  4790. ;;
  4791. cygwin* | mingw* | pw32* | cegcc*)
  4792. symcode='[ABCDGISTW]'
  4793. ;;
  4794. hpux*)
  4795. if test "$host_cpu" = ia64; then
  4796. symcode='[ABCDEGRST]'
  4797. fi
  4798. ;;
  4799. irix* | nonstopux*)
  4800. symcode='[BCDEGRST]'
  4801. ;;
  4802. osf*)
  4803. symcode='[BCDEGQRST]'
  4804. ;;
  4805. solaris*)
  4806. symcode='[BDRT]'
  4807. ;;
  4808. sco3.2v5*)
  4809. symcode='[DT]'
  4810. ;;
  4811. sysv4.2uw2*)
  4812. symcode='[DT]'
  4813. ;;
  4814. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4815. symcode='[ABDT]'
  4816. ;;
  4817. sysv4)
  4818. symcode='[DFNSTU]'
  4819. ;;
  4820. esac
  4821. # If we're using GNU nm, then use its standard symbol codes.
  4822. case `$NM -V 2>&1` in
  4823. *GNU* | *'with BFD'*)
  4824. symcode='[ABCDGIRSTW]' ;;
  4825. esac
  4826. # Transform an extracted symbol line into a proper C declaration.
  4827. # Some systems (esp. on ia64) link data and code symbols differently,
  4828. # so use this general approach.
  4829. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4830. # Transform an extracted symbol line into symbol name and symbol address
  4831. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4832. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  4833. # Handle CRLF in mingw tool chain
  4834. opt_cr=
  4835. case $build_os in
  4836. mingw*)
  4837. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4838. ;;
  4839. esac
  4840. # Try without a prefix underscore, then with it.
  4841. for ac_symprfx in "" "_"; do
  4842. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4843. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4844. # Write the raw and C identifiers.
  4845. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4846. # Fake it for dumpbin and say T for any non-static function
  4847. # and D for any global variable.
  4848. # Also find C++ and __fastcall symbols from MSVC++,
  4849. # which start with @ or ?.
  4850. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4851. " {last_section=section; section=\$ 3};"\
  4852. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4853. " \$ 0!~/External *\|/{next};"\
  4854. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4855. " {if(hide[section]) next};"\
  4856. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4857. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4858. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  4859. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  4860. " ' prfx=^$ac_symprfx"
  4861. else
  4862. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4863. fi
  4864. # Check to see that the pipe works correctly.
  4865. pipe_works=no
  4866. rm -f conftest*
  4867. cat > conftest.$ac_ext <<_LT_EOF
  4868. #ifdef __cplusplus
  4869. extern "C" {
  4870. #endif
  4871. char nm_test_var;
  4872. void nm_test_func(void);
  4873. void nm_test_func(void){}
  4874. #ifdef __cplusplus
  4875. }
  4876. #endif
  4877. int main(){nm_test_var='a';nm_test_func();return(0);}
  4878. _LT_EOF
  4879. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4880. (eval $ac_compile) 2>&5
  4881. ac_status=$?
  4882. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4883. (exit $ac_status); }; then
  4884. # Now try to grab the symbols.
  4885. nlist=conftest.nm
  4886. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  4887. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  4888. ac_status=$?
  4889. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4890. (exit $ac_status); } && test -s "$nlist"; then
  4891. # Try sorting and uniquifying the output.
  4892. if sort "$nlist" | uniq > "$nlist"T; then
  4893. mv -f "$nlist"T "$nlist"
  4894. else
  4895. rm -f "$nlist"T
  4896. fi
  4897. # Make sure that we snagged all the symbols we need.
  4898. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  4899. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  4900. cat <<_LT_EOF > conftest.$ac_ext
  4901. #ifdef __cplusplus
  4902. extern "C" {
  4903. #endif
  4904. _LT_EOF
  4905. # Now generate the symbol file.
  4906. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  4907. cat <<_LT_EOF >> conftest.$ac_ext
  4908. /* The mapping between symbol names and symbols. */
  4909. const struct {
  4910. const char *name;
  4911. void *address;
  4912. }
  4913. lt__PROGRAM__LTX_preloaded_symbols[] =
  4914. {
  4915. { "@PROGRAM@", (void *) 0 },
  4916. _LT_EOF
  4917. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  4918. cat <<\_LT_EOF >> conftest.$ac_ext
  4919. {0, (void *) 0}
  4920. };
  4921. /* This works around a problem in FreeBSD linker */
  4922. #ifdef FREEBSD_WORKAROUND
  4923. static const void *lt_preloaded_setup() {
  4924. return lt__PROGRAM__LTX_preloaded_symbols;
  4925. }
  4926. #endif
  4927. #ifdef __cplusplus
  4928. }
  4929. #endif
  4930. _LT_EOF
  4931. # Now try linking the two files.
  4932. mv conftest.$ac_objext conftstm.$ac_objext
  4933. lt_save_LIBS="$LIBS"
  4934. lt_save_CFLAGS="$CFLAGS"
  4935. LIBS="conftstm.$ac_objext"
  4936. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  4937. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4938. (eval $ac_link) 2>&5
  4939. ac_status=$?
  4940. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4941. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  4942. pipe_works=yes
  4943. fi
  4944. LIBS="$lt_save_LIBS"
  4945. CFLAGS="$lt_save_CFLAGS"
  4946. else
  4947. echo "cannot find nm_test_func in $nlist" >&5
  4948. fi
  4949. else
  4950. echo "cannot find nm_test_var in $nlist" >&5
  4951. fi
  4952. else
  4953. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  4954. fi
  4955. else
  4956. echo "$progname: failed program was:" >&5
  4957. cat conftest.$ac_ext >&5
  4958. fi
  4959. rm -rf conftest* conftst*
  4960. # Do not use the global_symbol_pipe unless it works.
  4961. if test "$pipe_works" = yes; then
  4962. break
  4963. else
  4964. lt_cv_sys_global_symbol_pipe=
  4965. fi
  4966. done
  4967. fi
  4968. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  4969. lt_cv_sys_global_symbol_to_cdecl=
  4970. fi
  4971. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  4972. { $as_echo "$as_me:$LINENO: result: failed" >&5
  4973. $as_echo "failed" >&6; }
  4974. else
  4975. { $as_echo "$as_me:$LINENO: result: ok" >&5
  4976. $as_echo "ok" >&6; }
  4977. fi
  4978. # Check whether --enable-libtool-lock was given.
  4979. if test "${enable_libtool_lock+set}" = set; then
  4980. enableval=$enable_libtool_lock;
  4981. fi
  4982. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4983. # Some flags need to be propagated to the compiler or linker for good
  4984. # libtool support.
  4985. case $host in
  4986. ia64-*-hpux*)
  4987. # Find out which ABI we are using.
  4988. echo 'int i;' > conftest.$ac_ext
  4989. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4990. (eval $ac_compile) 2>&5
  4991. ac_status=$?
  4992. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4993. (exit $ac_status); }; then
  4994. case `/usr/bin/file conftest.$ac_objext` in
  4995. *ELF-32*)
  4996. HPUX_IA64_MODE="32"
  4997. ;;
  4998. *ELF-64*)
  4999. HPUX_IA64_MODE="64"
  5000. ;;
  5001. esac
  5002. fi
  5003. rm -rf conftest*
  5004. ;;
  5005. *-*-irix6*)
  5006. # Find out which ABI we are using.
  5007. echo '#line 5765 "configure"' > conftest.$ac_ext
  5008. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5009. (eval $ac_compile) 2>&5
  5010. ac_status=$?
  5011. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5012. (exit $ac_status); }; then
  5013. if test "$lt_cv_prog_gnu_ld" = yes; then
  5014. case `/usr/bin/file conftest.$ac_objext` in
  5015. *32-bit*)
  5016. LD="${LD-ld} -melf32bsmip"
  5017. ;;
  5018. *N32*)
  5019. LD="${LD-ld} -melf32bmipn32"
  5020. ;;
  5021. *64-bit*)
  5022. LD="${LD-ld} -melf64bmip"
  5023. ;;
  5024. esac
  5025. else
  5026. case `/usr/bin/file conftest.$ac_objext` in
  5027. *32-bit*)
  5028. LD="${LD-ld} -32"
  5029. ;;
  5030. *N32*)
  5031. LD="${LD-ld} -n32"
  5032. ;;
  5033. *64-bit*)
  5034. LD="${LD-ld} -64"
  5035. ;;
  5036. esac
  5037. fi
  5038. fi
  5039. rm -rf conftest*
  5040. ;;
  5041. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5042. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5043. # Find out which ABI we are using.
  5044. echo 'int i;' > conftest.$ac_ext
  5045. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5046. (eval $ac_compile) 2>&5
  5047. ac_status=$?
  5048. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5049. (exit $ac_status); }; then
  5050. case `/usr/bin/file conftest.o` in
  5051. *32-bit*)
  5052. case $host in
  5053. x86_64-*kfreebsd*-gnu)
  5054. LD="${LD-ld} -m elf_i386_fbsd"
  5055. ;;
  5056. x86_64-*linux*)
  5057. LD="${LD-ld} -m elf_i386"
  5058. ;;
  5059. ppc64-*linux*|powerpc64-*linux*)
  5060. LD="${LD-ld} -m elf32ppclinux"
  5061. ;;
  5062. s390x-*linux*)
  5063. LD="${LD-ld} -m elf_s390"
  5064. ;;
  5065. sparc64-*linux*)
  5066. LD="${LD-ld} -m elf32_sparc"
  5067. ;;
  5068. esac
  5069. ;;
  5070. *64-bit*)
  5071. case $host in
  5072. x86_64-*kfreebsd*-gnu)
  5073. LD="${LD-ld} -m elf_x86_64_fbsd"
  5074. ;;
  5075. x86_64-*linux*)
  5076. LD="${LD-ld} -m elf_x86_64"
  5077. ;;
  5078. ppc*-*linux*|powerpc*-*linux*)
  5079. LD="${LD-ld} -m elf64ppc"
  5080. ;;
  5081. s390*-*linux*|s390*-*tpf*)
  5082. LD="${LD-ld} -m elf64_s390"
  5083. ;;
  5084. sparc*-*linux*)
  5085. LD="${LD-ld} -m elf64_sparc"
  5086. ;;
  5087. esac
  5088. ;;
  5089. esac
  5090. fi
  5091. rm -rf conftest*
  5092. ;;
  5093. *-*-sco3.2v5*)
  5094. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5095. SAVE_CFLAGS="$CFLAGS"
  5096. CFLAGS="$CFLAGS -belf"
  5097. { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  5098. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5099. if test "${lt_cv_cc_needs_belf+set}" = set; then
  5100. $as_echo_n "(cached) " >&6
  5101. else
  5102. ac_ext=c
  5103. ac_cpp='$CPP $CPPFLAGS'
  5104. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5105. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5106. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5107. cat >conftest.$ac_ext <<_ACEOF
  5108. /* confdefs.h. */
  5109. _ACEOF
  5110. cat confdefs.h >>conftest.$ac_ext
  5111. cat >>conftest.$ac_ext <<_ACEOF
  5112. /* end confdefs.h. */
  5113. int
  5114. main ()
  5115. {
  5116. ;
  5117. return 0;
  5118. }
  5119. _ACEOF
  5120. rm -f conftest.$ac_objext conftest$ac_exeext
  5121. if { (ac_try="$ac_link"
  5122. case "(($ac_try" in
  5123. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5124. *) ac_try_echo=$ac_try;;
  5125. esac
  5126. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5127. $as_echo "$ac_try_echo") >&5
  5128. (eval "$ac_link") 2>conftest.er1
  5129. ac_status=$?
  5130. grep -v '^ *+' conftest.er1 >conftest.err
  5131. rm -f conftest.er1
  5132. cat conftest.err >&5
  5133. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5134. (exit $ac_status); } && {
  5135. test -z "$ac_c_werror_flag" ||
  5136. test ! -s conftest.err
  5137. } && test -s conftest$ac_exeext && {
  5138. test "$cross_compiling" = yes ||
  5139. $as_test_x conftest$ac_exeext
  5140. }; then
  5141. lt_cv_cc_needs_belf=yes
  5142. else
  5143. $as_echo "$as_me: failed program was:" >&5
  5144. sed 's/^/| /' conftest.$ac_ext >&5
  5145. lt_cv_cc_needs_belf=no
  5146. fi
  5147. rm -rf conftest.dSYM
  5148. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5149. conftest$ac_exeext conftest.$ac_ext
  5150. ac_ext=c
  5151. ac_cpp='$CPP $CPPFLAGS'
  5152. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5153. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5154. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5155. fi
  5156. { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  5157. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5158. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5159. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5160. CFLAGS="$SAVE_CFLAGS"
  5161. fi
  5162. ;;
  5163. sparc*-*solaris*)
  5164. # Find out which ABI we are using.
  5165. echo 'int i;' > conftest.$ac_ext
  5166. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5167. (eval $ac_compile) 2>&5
  5168. ac_status=$?
  5169. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5170. (exit $ac_status); }; then
  5171. case `/usr/bin/file conftest.o` in
  5172. *64-bit*)
  5173. case $lt_cv_prog_gnu_ld in
  5174. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5175. *)
  5176. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5177. LD="${LD-ld} -64"
  5178. fi
  5179. ;;
  5180. esac
  5181. ;;
  5182. esac
  5183. fi
  5184. rm -rf conftest*
  5185. ;;
  5186. esac
  5187. need_locks="$enable_libtool_lock"
  5188. case $host_os in
  5189. rhapsody* | darwin*)
  5190. if test -n "$ac_tool_prefix"; then
  5191. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5192. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5193. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5194. $as_echo_n "checking for $ac_word... " >&6; }
  5195. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  5196. $as_echo_n "(cached) " >&6
  5197. else
  5198. if test -n "$DSYMUTIL"; then
  5199. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5200. else
  5201. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5202. for as_dir in $PATH
  5203. do
  5204. IFS=$as_save_IFS
  5205. test -z "$as_dir" && as_dir=.
  5206. for ac_exec_ext in '' $ac_executable_extensions; do
  5207. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5208. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5209. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5210. break 2
  5211. fi
  5212. done
  5213. done
  5214. IFS=$as_save_IFS
  5215. fi
  5216. fi
  5217. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5218. if test -n "$DSYMUTIL"; then
  5219. { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  5220. $as_echo "$DSYMUTIL" >&6; }
  5221. else
  5222. { $as_echo "$as_me:$LINENO: result: no" >&5
  5223. $as_echo "no" >&6; }
  5224. fi
  5225. fi
  5226. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5227. ac_ct_DSYMUTIL=$DSYMUTIL
  5228. # Extract the first word of "dsymutil", so it can be a program name with args.
  5229. set dummy dsymutil; ac_word=$2
  5230. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5231. $as_echo_n "checking for $ac_word... " >&6; }
  5232. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  5233. $as_echo_n "(cached) " >&6
  5234. else
  5235. if test -n "$ac_ct_DSYMUTIL"; then
  5236. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5237. else
  5238. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5239. for as_dir in $PATH
  5240. do
  5241. IFS=$as_save_IFS
  5242. test -z "$as_dir" && as_dir=.
  5243. for ac_exec_ext in '' $ac_executable_extensions; do
  5244. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5245. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5246. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5247. break 2
  5248. fi
  5249. done
  5250. done
  5251. IFS=$as_save_IFS
  5252. fi
  5253. fi
  5254. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5255. if test -n "$ac_ct_DSYMUTIL"; then
  5256. { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  5257. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5258. else
  5259. { $as_echo "$as_me:$LINENO: result: no" >&5
  5260. $as_echo "no" >&6; }
  5261. fi
  5262. if test "x$ac_ct_DSYMUTIL" = x; then
  5263. DSYMUTIL=":"
  5264. else
  5265. case $cross_compiling:$ac_tool_warned in
  5266. yes:)
  5267. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5268. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5269. ac_tool_warned=yes ;;
  5270. esac
  5271. DSYMUTIL=$ac_ct_DSYMUTIL
  5272. fi
  5273. else
  5274. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5275. fi
  5276. if test -n "$ac_tool_prefix"; then
  5277. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5278. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5279. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5280. $as_echo_n "checking for $ac_word... " >&6; }
  5281. if test "${ac_cv_prog_NMEDIT+set}" = set; then
  5282. $as_echo_n "(cached) " >&6
  5283. else
  5284. if test -n "$NMEDIT"; then
  5285. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5286. else
  5287. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5288. for as_dir in $PATH
  5289. do
  5290. IFS=$as_save_IFS
  5291. test -z "$as_dir" && as_dir=.
  5292. for ac_exec_ext in '' $ac_executable_extensions; do
  5293. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5294. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5295. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5296. break 2
  5297. fi
  5298. done
  5299. done
  5300. IFS=$as_save_IFS
  5301. fi
  5302. fi
  5303. NMEDIT=$ac_cv_prog_NMEDIT
  5304. if test -n "$NMEDIT"; then
  5305. { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
  5306. $as_echo "$NMEDIT" >&6; }
  5307. else
  5308. { $as_echo "$as_me:$LINENO: result: no" >&5
  5309. $as_echo "no" >&6; }
  5310. fi
  5311. fi
  5312. if test -z "$ac_cv_prog_NMEDIT"; then
  5313. ac_ct_NMEDIT=$NMEDIT
  5314. # Extract the first word of "nmedit", so it can be a program name with args.
  5315. set dummy nmedit; ac_word=$2
  5316. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5317. $as_echo_n "checking for $ac_word... " >&6; }
  5318. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  5319. $as_echo_n "(cached) " >&6
  5320. else
  5321. if test -n "$ac_ct_NMEDIT"; then
  5322. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5323. else
  5324. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5325. for as_dir in $PATH
  5326. do
  5327. IFS=$as_save_IFS
  5328. test -z "$as_dir" && as_dir=.
  5329. for ac_exec_ext in '' $ac_executable_extensions; do
  5330. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5331. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5332. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5333. break 2
  5334. fi
  5335. done
  5336. done
  5337. IFS=$as_save_IFS
  5338. fi
  5339. fi
  5340. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5341. if test -n "$ac_ct_NMEDIT"; then
  5342. { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  5343. $as_echo "$ac_ct_NMEDIT" >&6; }
  5344. else
  5345. { $as_echo "$as_me:$LINENO: result: no" >&5
  5346. $as_echo "no" >&6; }
  5347. fi
  5348. if test "x$ac_ct_NMEDIT" = x; then
  5349. NMEDIT=":"
  5350. else
  5351. case $cross_compiling:$ac_tool_warned in
  5352. yes:)
  5353. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5354. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5355. ac_tool_warned=yes ;;
  5356. esac
  5357. NMEDIT=$ac_ct_NMEDIT
  5358. fi
  5359. else
  5360. NMEDIT="$ac_cv_prog_NMEDIT"
  5361. fi
  5362. if test -n "$ac_tool_prefix"; then
  5363. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5364. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5365. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5366. $as_echo_n "checking for $ac_word... " >&6; }
  5367. if test "${ac_cv_prog_LIPO+set}" = set; then
  5368. $as_echo_n "(cached) " >&6
  5369. else
  5370. if test -n "$LIPO"; then
  5371. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5372. else
  5373. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5374. for as_dir in $PATH
  5375. do
  5376. IFS=$as_save_IFS
  5377. test -z "$as_dir" && as_dir=.
  5378. for ac_exec_ext in '' $ac_executable_extensions; do
  5379. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5380. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5381. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5382. break 2
  5383. fi
  5384. done
  5385. done
  5386. IFS=$as_save_IFS
  5387. fi
  5388. fi
  5389. LIPO=$ac_cv_prog_LIPO
  5390. if test -n "$LIPO"; then
  5391. { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
  5392. $as_echo "$LIPO" >&6; }
  5393. else
  5394. { $as_echo "$as_me:$LINENO: result: no" >&5
  5395. $as_echo "no" >&6; }
  5396. fi
  5397. fi
  5398. if test -z "$ac_cv_prog_LIPO"; then
  5399. ac_ct_LIPO=$LIPO
  5400. # Extract the first word of "lipo", so it can be a program name with args.
  5401. set dummy lipo; ac_word=$2
  5402. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5403. $as_echo_n "checking for $ac_word... " >&6; }
  5404. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
  5405. $as_echo_n "(cached) " >&6
  5406. else
  5407. if test -n "$ac_ct_LIPO"; then
  5408. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5409. else
  5410. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5411. for as_dir in $PATH
  5412. do
  5413. IFS=$as_save_IFS
  5414. test -z "$as_dir" && as_dir=.
  5415. for ac_exec_ext in '' $ac_executable_extensions; do
  5416. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5417. ac_cv_prog_ac_ct_LIPO="lipo"
  5418. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5419. break 2
  5420. fi
  5421. done
  5422. done
  5423. IFS=$as_save_IFS
  5424. fi
  5425. fi
  5426. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5427. if test -n "$ac_ct_LIPO"; then
  5428. { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
  5429. $as_echo "$ac_ct_LIPO" >&6; }
  5430. else
  5431. { $as_echo "$as_me:$LINENO: result: no" >&5
  5432. $as_echo "no" >&6; }
  5433. fi
  5434. if test "x$ac_ct_LIPO" = x; then
  5435. LIPO=":"
  5436. else
  5437. case $cross_compiling:$ac_tool_warned in
  5438. yes:)
  5439. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5440. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5441. ac_tool_warned=yes ;;
  5442. esac
  5443. LIPO=$ac_ct_LIPO
  5444. fi
  5445. else
  5446. LIPO="$ac_cv_prog_LIPO"
  5447. fi
  5448. if test -n "$ac_tool_prefix"; then
  5449. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5450. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5451. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5452. $as_echo_n "checking for $ac_word... " >&6; }
  5453. if test "${ac_cv_prog_OTOOL+set}" = set; then
  5454. $as_echo_n "(cached) " >&6
  5455. else
  5456. if test -n "$OTOOL"; then
  5457. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5458. else
  5459. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5460. for as_dir in $PATH
  5461. do
  5462. IFS=$as_save_IFS
  5463. test -z "$as_dir" && as_dir=.
  5464. for ac_exec_ext in '' $ac_executable_extensions; do
  5465. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5466. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5467. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5468. break 2
  5469. fi
  5470. done
  5471. done
  5472. IFS=$as_save_IFS
  5473. fi
  5474. fi
  5475. OTOOL=$ac_cv_prog_OTOOL
  5476. if test -n "$OTOOL"; then
  5477. { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
  5478. $as_echo "$OTOOL" >&6; }
  5479. else
  5480. { $as_echo "$as_me:$LINENO: result: no" >&5
  5481. $as_echo "no" >&6; }
  5482. fi
  5483. fi
  5484. if test -z "$ac_cv_prog_OTOOL"; then
  5485. ac_ct_OTOOL=$OTOOL
  5486. # Extract the first word of "otool", so it can be a program name with args.
  5487. set dummy otool; ac_word=$2
  5488. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5489. $as_echo_n "checking for $ac_word... " >&6; }
  5490. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
  5491. $as_echo_n "(cached) " >&6
  5492. else
  5493. if test -n "$ac_ct_OTOOL"; then
  5494. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5495. else
  5496. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5497. for as_dir in $PATH
  5498. do
  5499. IFS=$as_save_IFS
  5500. test -z "$as_dir" && as_dir=.
  5501. for ac_exec_ext in '' $ac_executable_extensions; do
  5502. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5503. ac_cv_prog_ac_ct_OTOOL="otool"
  5504. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5505. break 2
  5506. fi
  5507. done
  5508. done
  5509. IFS=$as_save_IFS
  5510. fi
  5511. fi
  5512. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5513. if test -n "$ac_ct_OTOOL"; then
  5514. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
  5515. $as_echo "$ac_ct_OTOOL" >&6; }
  5516. else
  5517. { $as_echo "$as_me:$LINENO: result: no" >&5
  5518. $as_echo "no" >&6; }
  5519. fi
  5520. if test "x$ac_ct_OTOOL" = x; then
  5521. OTOOL=":"
  5522. else
  5523. case $cross_compiling:$ac_tool_warned in
  5524. yes:)
  5525. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5526. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5527. ac_tool_warned=yes ;;
  5528. esac
  5529. OTOOL=$ac_ct_OTOOL
  5530. fi
  5531. else
  5532. OTOOL="$ac_cv_prog_OTOOL"
  5533. fi
  5534. if test -n "$ac_tool_prefix"; then
  5535. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5536. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5537. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5538. $as_echo_n "checking for $ac_word... " >&6; }
  5539. if test "${ac_cv_prog_OTOOL64+set}" = set; then
  5540. $as_echo_n "(cached) " >&6
  5541. else
  5542. if test -n "$OTOOL64"; then
  5543. ac_cv_prog_OTOOL64="$OTOOL64" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5552. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5553. $as_echo "$as_me:$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. OTOOL64=$ac_cv_prog_OTOOL64
  5562. if test -n "$OTOOL64"; then
  5563. { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
  5564. $as_echo "$OTOOL64" >&6; }
  5565. else
  5566. { $as_echo "$as_me:$LINENO: result: no" >&5
  5567. $as_echo "no" >&6; }
  5568. fi
  5569. fi
  5570. if test -z "$ac_cv_prog_OTOOL64"; then
  5571. ac_ct_OTOOL64=$OTOOL64
  5572. # Extract the first word of "otool64", so it can be a program name with args.
  5573. set dummy otool64; ac_word=$2
  5574. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5575. $as_echo_n "checking for $ac_word... " >&6; }
  5576. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
  5577. $as_echo_n "(cached) " >&6
  5578. else
  5579. if test -n "$ac_ct_OTOOL64"; then
  5580. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5581. else
  5582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5583. for as_dir in $PATH
  5584. do
  5585. IFS=$as_save_IFS
  5586. test -z "$as_dir" && as_dir=.
  5587. for ac_exec_ext in '' $ac_executable_extensions; do
  5588. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5589. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5590. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5591. break 2
  5592. fi
  5593. done
  5594. done
  5595. IFS=$as_save_IFS
  5596. fi
  5597. fi
  5598. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5599. if test -n "$ac_ct_OTOOL64"; then
  5600. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
  5601. $as_echo "$ac_ct_OTOOL64" >&6; }
  5602. else
  5603. { $as_echo "$as_me:$LINENO: result: no" >&5
  5604. $as_echo "no" >&6; }
  5605. fi
  5606. if test "x$ac_ct_OTOOL64" = x; then
  5607. OTOOL64=":"
  5608. else
  5609. case $cross_compiling:$ac_tool_warned in
  5610. yes:)
  5611. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5612. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5613. ac_tool_warned=yes ;;
  5614. esac
  5615. OTOOL64=$ac_ct_OTOOL64
  5616. fi
  5617. else
  5618. OTOOL64="$ac_cv_prog_OTOOL64"
  5619. fi
  5620. { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  5621. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5622. if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  5623. $as_echo_n "(cached) " >&6
  5624. else
  5625. lt_cv_apple_cc_single_mod=no
  5626. if test -z "${LT_MULTI_MODULE}"; then
  5627. # By default we will add the -single_module flag. You can override
  5628. # by either setting the environment variable LT_MULTI_MODULE
  5629. # non-empty at configure time, or by adding -multi_module to the
  5630. # link flags.
  5631. rm -rf libconftest.dylib*
  5632. echo "int foo(void){return 1;}" > conftest.c
  5633. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5634. -dynamiclib -Wl,-single_module conftest.c" >&5
  5635. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5636. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5637. _lt_result=$?
  5638. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  5639. lt_cv_apple_cc_single_mod=yes
  5640. else
  5641. cat conftest.err >&5
  5642. fi
  5643. rm -rf libconftest.dylib*
  5644. rm -f conftest.*
  5645. fi
  5646. fi
  5647. { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  5648. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5649. { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  5650. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5651. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  5652. $as_echo_n "(cached) " >&6
  5653. else
  5654. lt_cv_ld_exported_symbols_list=no
  5655. save_LDFLAGS=$LDFLAGS
  5656. echo "_main" > conftest.sym
  5657. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5658. cat >conftest.$ac_ext <<_ACEOF
  5659. /* confdefs.h. */
  5660. _ACEOF
  5661. cat confdefs.h >>conftest.$ac_ext
  5662. cat >>conftest.$ac_ext <<_ACEOF
  5663. /* end confdefs.h. */
  5664. int
  5665. main ()
  5666. {
  5667. ;
  5668. return 0;
  5669. }
  5670. _ACEOF
  5671. rm -f conftest.$ac_objext conftest$ac_exeext
  5672. if { (ac_try="$ac_link"
  5673. case "(($ac_try" in
  5674. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5675. *) ac_try_echo=$ac_try;;
  5676. esac
  5677. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5678. $as_echo "$ac_try_echo") >&5
  5679. (eval "$ac_link") 2>conftest.er1
  5680. ac_status=$?
  5681. grep -v '^ *+' conftest.er1 >conftest.err
  5682. rm -f conftest.er1
  5683. cat conftest.err >&5
  5684. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5685. (exit $ac_status); } && {
  5686. test -z "$ac_c_werror_flag" ||
  5687. test ! -s conftest.err
  5688. } && test -s conftest$ac_exeext && {
  5689. test "$cross_compiling" = yes ||
  5690. $as_test_x conftest$ac_exeext
  5691. }; then
  5692. lt_cv_ld_exported_symbols_list=yes
  5693. else
  5694. $as_echo "$as_me: failed program was:" >&5
  5695. sed 's/^/| /' conftest.$ac_ext >&5
  5696. lt_cv_ld_exported_symbols_list=no
  5697. fi
  5698. rm -rf conftest.dSYM
  5699. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5700. conftest$ac_exeext conftest.$ac_ext
  5701. LDFLAGS="$save_LDFLAGS"
  5702. fi
  5703. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  5704. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5705. case $host_os in
  5706. rhapsody* | darwin1.[012])
  5707. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5708. darwin1.*)
  5709. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5710. darwin*) # darwin 5.x on
  5711. # if running on 10.5 or later, the deployment target defaults
  5712. # to the OS version, if on x86, and 10.4, the deployment
  5713. # target defaults to 10.4. Don't you love it?
  5714. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5715. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5716. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5717. 10.[012]*)
  5718. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5719. 10.*)
  5720. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5721. esac
  5722. ;;
  5723. esac
  5724. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  5725. _lt_dar_single_mod='$single_module'
  5726. fi
  5727. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  5728. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  5729. else
  5730. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5731. fi
  5732. if test "$DSYMUTIL" != ":"; then
  5733. _lt_dsymutil='~$DSYMUTIL $lib || :'
  5734. else
  5735. _lt_dsymutil=
  5736. fi
  5737. ;;
  5738. esac
  5739. for ac_header in dlfcn.h
  5740. do
  5741. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5742. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5743. $as_echo_n "checking for $ac_header... " >&6; }
  5744. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5745. $as_echo_n "(cached) " >&6
  5746. else
  5747. cat >conftest.$ac_ext <<_ACEOF
  5748. /* confdefs.h. */
  5749. _ACEOF
  5750. cat confdefs.h >>conftest.$ac_ext
  5751. cat >>conftest.$ac_ext <<_ACEOF
  5752. /* end confdefs.h. */
  5753. $ac_includes_default
  5754. #include <$ac_header>
  5755. _ACEOF
  5756. rm -f conftest.$ac_objext
  5757. if { (ac_try="$ac_compile"
  5758. case "(($ac_try" in
  5759. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5760. *) ac_try_echo=$ac_try;;
  5761. esac
  5762. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5763. $as_echo "$ac_try_echo") >&5
  5764. (eval "$ac_compile") 2>conftest.er1
  5765. ac_status=$?
  5766. grep -v '^ *+' conftest.er1 >conftest.err
  5767. rm -f conftest.er1
  5768. cat conftest.err >&5
  5769. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5770. (exit $ac_status); } && {
  5771. test -z "$ac_c_werror_flag" ||
  5772. test ! -s conftest.err
  5773. } && test -s conftest.$ac_objext; then
  5774. eval "$as_ac_Header=yes"
  5775. else
  5776. $as_echo "$as_me: failed program was:" >&5
  5777. sed 's/^/| /' conftest.$ac_ext >&5
  5778. eval "$as_ac_Header=no"
  5779. fi
  5780. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5781. fi
  5782. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5783. $as_echo "$as_val"'`
  5784. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5785. $as_echo "$ac_res" >&6; }
  5786. as_val=`eval 'as_val=${'$as_ac_Header'}
  5787. $as_echo "$as_val"'`
  5788. if test "x$as_val" = x""yes; then
  5789. cat >>confdefs.h <<_ACEOF
  5790. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5791. _ACEOF
  5792. fi
  5793. done
  5794. # Set options
  5795. enable_win32_dll=yes
  5796. case $host in
  5797. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  5798. if test -n "$ac_tool_prefix"; then
  5799. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  5800. set dummy ${ac_tool_prefix}as; ac_word=$2
  5801. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5802. $as_echo_n "checking for $ac_word... " >&6; }
  5803. if test "${ac_cv_prog_AS+set}" = set; then
  5804. $as_echo_n "(cached) " >&6
  5805. else
  5806. if test -n "$AS"; then
  5807. ac_cv_prog_AS="$AS" # Let the user override the test.
  5808. else
  5809. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5810. for as_dir in $PATH
  5811. do
  5812. IFS=$as_save_IFS
  5813. test -z "$as_dir" && as_dir=.
  5814. for ac_exec_ext in '' $ac_executable_extensions; do
  5815. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5816. ac_cv_prog_AS="${ac_tool_prefix}as"
  5817. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5818. break 2
  5819. fi
  5820. done
  5821. done
  5822. IFS=$as_save_IFS
  5823. fi
  5824. fi
  5825. AS=$ac_cv_prog_AS
  5826. if test -n "$AS"; then
  5827. { $as_echo "$as_me:$LINENO: result: $AS" >&5
  5828. $as_echo "$AS" >&6; }
  5829. else
  5830. { $as_echo "$as_me:$LINENO: result: no" >&5
  5831. $as_echo "no" >&6; }
  5832. fi
  5833. fi
  5834. if test -z "$ac_cv_prog_AS"; then
  5835. ac_ct_AS=$AS
  5836. # Extract the first word of "as", so it can be a program name with args.
  5837. set dummy as; ac_word=$2
  5838. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5839. $as_echo_n "checking for $ac_word... " >&6; }
  5840. if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
  5841. $as_echo_n "(cached) " >&6
  5842. else
  5843. if test -n "$ac_ct_AS"; then
  5844. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  5845. else
  5846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5847. for as_dir in $PATH
  5848. do
  5849. IFS=$as_save_IFS
  5850. test -z "$as_dir" && as_dir=.
  5851. for ac_exec_ext in '' $ac_executable_extensions; do
  5852. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5853. ac_cv_prog_ac_ct_AS="as"
  5854. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5855. break 2
  5856. fi
  5857. done
  5858. done
  5859. IFS=$as_save_IFS
  5860. fi
  5861. fi
  5862. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  5863. if test -n "$ac_ct_AS"; then
  5864. { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
  5865. $as_echo "$ac_ct_AS" >&6; }
  5866. else
  5867. { $as_echo "$as_me:$LINENO: result: no" >&5
  5868. $as_echo "no" >&6; }
  5869. fi
  5870. if test "x$ac_ct_AS" = x; then
  5871. AS="false"
  5872. else
  5873. case $cross_compiling:$ac_tool_warned in
  5874. yes:)
  5875. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5876. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5877. ac_tool_warned=yes ;;
  5878. esac
  5879. AS=$ac_ct_AS
  5880. fi
  5881. else
  5882. AS="$ac_cv_prog_AS"
  5883. fi
  5884. if test -n "$ac_tool_prefix"; then
  5885. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5886. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5887. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5888. $as_echo_n "checking for $ac_word... " >&6; }
  5889. if test "${ac_cv_prog_DLLTOOL+set}" = set; then
  5890. $as_echo_n "(cached) " >&6
  5891. else
  5892. if test -n "$DLLTOOL"; then
  5893. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5894. else
  5895. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5896. for as_dir in $PATH
  5897. do
  5898. IFS=$as_save_IFS
  5899. test -z "$as_dir" && as_dir=.
  5900. for ac_exec_ext in '' $ac_executable_extensions; do
  5901. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5902. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5903. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5904. break 2
  5905. fi
  5906. done
  5907. done
  5908. IFS=$as_save_IFS
  5909. fi
  5910. fi
  5911. DLLTOOL=$ac_cv_prog_DLLTOOL
  5912. if test -n "$DLLTOOL"; then
  5913. { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
  5914. $as_echo "$DLLTOOL" >&6; }
  5915. else
  5916. { $as_echo "$as_me:$LINENO: result: no" >&5
  5917. $as_echo "no" >&6; }
  5918. fi
  5919. fi
  5920. if test -z "$ac_cv_prog_DLLTOOL"; then
  5921. ac_ct_DLLTOOL=$DLLTOOL
  5922. # Extract the first word of "dlltool", so it can be a program name with args.
  5923. set dummy dlltool; ac_word=$2
  5924. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5925. $as_echo_n "checking for $ac_word... " >&6; }
  5926. if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
  5927. $as_echo_n "(cached) " >&6
  5928. else
  5929. if test -n "$ac_ct_DLLTOOL"; then
  5930. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5931. else
  5932. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5933. for as_dir in $PATH
  5934. do
  5935. IFS=$as_save_IFS
  5936. test -z "$as_dir" && as_dir=.
  5937. for ac_exec_ext in '' $ac_executable_extensions; do
  5938. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5939. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5940. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5941. break 2
  5942. fi
  5943. done
  5944. done
  5945. IFS=$as_save_IFS
  5946. fi
  5947. fi
  5948. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5949. if test -n "$ac_ct_DLLTOOL"; then
  5950. { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
  5951. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5952. else
  5953. { $as_echo "$as_me:$LINENO: result: no" >&5
  5954. $as_echo "no" >&6; }
  5955. fi
  5956. if test "x$ac_ct_DLLTOOL" = x; then
  5957. DLLTOOL="false"
  5958. else
  5959. case $cross_compiling:$ac_tool_warned in
  5960. yes:)
  5961. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5962. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5963. ac_tool_warned=yes ;;
  5964. esac
  5965. DLLTOOL=$ac_ct_DLLTOOL
  5966. fi
  5967. else
  5968. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5969. fi
  5970. if test -n "$ac_tool_prefix"; then
  5971. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5972. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5973. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5974. $as_echo_n "checking for $ac_word... " >&6; }
  5975. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  5976. $as_echo_n "(cached) " >&6
  5977. else
  5978. if test -n "$OBJDUMP"; then
  5979. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5980. else
  5981. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5982. for as_dir in $PATH
  5983. do
  5984. IFS=$as_save_IFS
  5985. test -z "$as_dir" && as_dir=.
  5986. for ac_exec_ext in '' $ac_executable_extensions; do
  5987. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5988. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5989. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5990. break 2
  5991. fi
  5992. done
  5993. done
  5994. IFS=$as_save_IFS
  5995. fi
  5996. fi
  5997. OBJDUMP=$ac_cv_prog_OBJDUMP
  5998. if test -n "$OBJDUMP"; then
  5999. { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  6000. $as_echo "$OBJDUMP" >&6; }
  6001. else
  6002. { $as_echo "$as_me:$LINENO: result: no" >&5
  6003. $as_echo "no" >&6; }
  6004. fi
  6005. fi
  6006. if test -z "$ac_cv_prog_OBJDUMP"; then
  6007. ac_ct_OBJDUMP=$OBJDUMP
  6008. # Extract the first word of "objdump", so it can be a program name with args.
  6009. set dummy objdump; ac_word=$2
  6010. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6011. $as_echo_n "checking for $ac_word... " >&6; }
  6012. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  6013. $as_echo_n "(cached) " >&6
  6014. else
  6015. if test -n "$ac_ct_OBJDUMP"; then
  6016. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6017. else
  6018. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6019. for as_dir in $PATH
  6020. do
  6021. IFS=$as_save_IFS
  6022. test -z "$as_dir" && as_dir=.
  6023. for ac_exec_ext in '' $ac_executable_extensions; do
  6024. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6025. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6026. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6027. break 2
  6028. fi
  6029. done
  6030. done
  6031. IFS=$as_save_IFS
  6032. fi
  6033. fi
  6034. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6035. if test -n "$ac_ct_OBJDUMP"; then
  6036. { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  6037. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6038. else
  6039. { $as_echo "$as_me:$LINENO: result: no" >&5
  6040. $as_echo "no" >&6; }
  6041. fi
  6042. if test "x$ac_ct_OBJDUMP" = x; then
  6043. OBJDUMP="false"
  6044. else
  6045. case $cross_compiling:$ac_tool_warned in
  6046. yes:)
  6047. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6048. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6049. ac_tool_warned=yes ;;
  6050. esac
  6051. OBJDUMP=$ac_ct_OBJDUMP
  6052. fi
  6053. else
  6054. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6055. fi
  6056. ;;
  6057. esac
  6058. test -z "$AS" && AS=as
  6059. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6060. test -z "$OBJDUMP" && OBJDUMP=objdump
  6061. enable_dlopen=no
  6062. # Check whether --enable-shared was given.
  6063. if test "${enable_shared+set}" = set; then
  6064. enableval=$enable_shared; p=${PACKAGE-default}
  6065. case $enableval in
  6066. yes) enable_shared=yes ;;
  6067. no) enable_shared=no ;;
  6068. *)
  6069. enable_shared=no
  6070. # Look at the argument we got. We use all the common list separators.
  6071. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6072. for pkg in $enableval; do
  6073. IFS="$lt_save_ifs"
  6074. if test "X$pkg" = "X$p"; then
  6075. enable_shared=yes
  6076. fi
  6077. done
  6078. IFS="$lt_save_ifs"
  6079. ;;
  6080. esac
  6081. else
  6082. enable_shared=yes
  6083. fi
  6084. # Check whether --enable-static was given.
  6085. if test "${enable_static+set}" = set; then
  6086. enableval=$enable_static; p=${PACKAGE-default}
  6087. case $enableval in
  6088. yes) enable_static=yes ;;
  6089. no) enable_static=no ;;
  6090. *)
  6091. enable_static=no
  6092. # Look at the argument we got. We use all the common list separators.
  6093. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6094. for pkg in $enableval; do
  6095. IFS="$lt_save_ifs"
  6096. if test "X$pkg" = "X$p"; then
  6097. enable_static=yes
  6098. fi
  6099. done
  6100. IFS="$lt_save_ifs"
  6101. ;;
  6102. esac
  6103. else
  6104. enable_static=yes
  6105. fi
  6106. # Check whether --with-pic was given.
  6107. if test "${with_pic+set}" = set; then
  6108. withval=$with_pic; pic_mode="$withval"
  6109. else
  6110. pic_mode=default
  6111. fi
  6112. test -z "$pic_mode" && pic_mode=default
  6113. # Check whether --enable-fast-install was given.
  6114. if test "${enable_fast_install+set}" = set; then
  6115. enableval=$enable_fast_install; p=${PACKAGE-default}
  6116. case $enableval in
  6117. yes) enable_fast_install=yes ;;
  6118. no) enable_fast_install=no ;;
  6119. *)
  6120. enable_fast_install=no
  6121. # Look at the argument we got. We use all the common list separators.
  6122. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6123. for pkg in $enableval; do
  6124. IFS="$lt_save_ifs"
  6125. if test "X$pkg" = "X$p"; then
  6126. enable_fast_install=yes
  6127. fi
  6128. done
  6129. IFS="$lt_save_ifs"
  6130. ;;
  6131. esac
  6132. else
  6133. enable_fast_install=yes
  6134. fi
  6135. # This can be used to rebuild libtool when needed
  6136. LIBTOOL_DEPS="$ltmain"
  6137. # Always use our own libtool.
  6138. LIBTOOL="${CONFIG_SHELL-$SHELL} "'$(top_builddir)/libtool'
  6139. test -z "$LN_S" && LN_S="ln -s"
  6140. if test -n "${ZSH_VERSION+set}" ; then
  6141. setopt NO_GLOB_SUBST
  6142. fi
  6143. { $as_echo "$as_me:$LINENO: checking for objdir" >&5
  6144. $as_echo_n "checking for objdir... " >&6; }
  6145. if test "${lt_cv_objdir+set}" = set; then
  6146. $as_echo_n "(cached) " >&6
  6147. else
  6148. rm -f .libs 2>/dev/null
  6149. mkdir .libs 2>/dev/null
  6150. if test -d .libs; then
  6151. lt_cv_objdir=.libs
  6152. else
  6153. # MS-DOS does not allow filenames that begin with a dot.
  6154. lt_cv_objdir=_libs
  6155. fi
  6156. rmdir .libs 2>/dev/null
  6157. fi
  6158. { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  6159. $as_echo "$lt_cv_objdir" >&6; }
  6160. objdir=$lt_cv_objdir
  6161. cat >>confdefs.h <<_ACEOF
  6162. #define LT_OBJDIR "$lt_cv_objdir/"
  6163. _ACEOF
  6164. case $host_os in
  6165. aix3*)
  6166. # AIX sometimes has problems with the GCC collect2 program. For some
  6167. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6168. # vanish in a puff of smoke.
  6169. if test "X${COLLECT_NAMES+set}" != Xset; then
  6170. COLLECT_NAMES=
  6171. export COLLECT_NAMES
  6172. fi
  6173. ;;
  6174. esac
  6175. # Sed substitution that helps us do robust quoting. It backslashifies
  6176. # metacharacters that are still active within double-quoted strings.
  6177. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  6178. # Same as above, but do not quote variable references.
  6179. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  6180. # Sed substitution to delay expansion of an escaped shell variable in a
  6181. # double_quote_subst'ed string.
  6182. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6183. # Sed substitution to delay expansion of an escaped single quote.
  6184. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  6185. # Sed substitution to avoid accidental globbing in evaled expressions
  6186. no_glob_subst='s/\*/\\\*/g'
  6187. # Global variables:
  6188. ofile=libtool
  6189. can_build_shared=yes
  6190. # All known linkers require a `.a' archive for static linking (except MSVC,
  6191. # which needs '.lib').
  6192. libext=a
  6193. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6194. old_CC="$CC"
  6195. old_CFLAGS="$CFLAGS"
  6196. # Set sane defaults for various variables
  6197. test -z "$CC" && CC=cc
  6198. test -z "$LTCC" && LTCC=$CC
  6199. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6200. test -z "$LD" && LD=ld
  6201. test -z "$ac_objext" && ac_objext=o
  6202. for cc_temp in $compiler""; do
  6203. case $cc_temp in
  6204. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6205. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6206. \-*) ;;
  6207. *) break;;
  6208. esac
  6209. done
  6210. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6211. # Only perform the check for file, if the check method requires it
  6212. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6213. case $deplibs_check_method in
  6214. file_magic*)
  6215. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6216. { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  6217. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6218. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6219. $as_echo_n "(cached) " >&6
  6220. else
  6221. case $MAGIC_CMD in
  6222. [\\/*] | ?:[\\/]*)
  6223. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6224. ;;
  6225. *)
  6226. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6227. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6228. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6229. for ac_dir in $ac_dummy; do
  6230. IFS="$lt_save_ifs"
  6231. test -z "$ac_dir" && ac_dir=.
  6232. if test -f $ac_dir/${ac_tool_prefix}file; then
  6233. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6234. if test -n "$file_magic_test_file"; then
  6235. case $deplibs_check_method in
  6236. "file_magic "*)
  6237. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6238. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6239. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6240. $EGREP "$file_magic_regex" > /dev/null; then
  6241. :
  6242. else
  6243. cat <<_LT_EOF 1>&2
  6244. *** Warning: the command libtool uses to detect shared libraries,
  6245. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6246. *** The result is that libtool may fail to recognize shared libraries
  6247. *** as such. This will affect the creation of libtool libraries that
  6248. *** depend on shared libraries, but programs linked with such libtool
  6249. *** libraries will work regardless of this problem. Nevertheless, you
  6250. *** may want to report the problem to your system manager and/or to
  6251. *** bug-libtool@gnu.org
  6252. _LT_EOF
  6253. fi ;;
  6254. esac
  6255. fi
  6256. break
  6257. fi
  6258. done
  6259. IFS="$lt_save_ifs"
  6260. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6261. ;;
  6262. esac
  6263. fi
  6264. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6265. if test -n "$MAGIC_CMD"; then
  6266. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6267. $as_echo "$MAGIC_CMD" >&6; }
  6268. else
  6269. { $as_echo "$as_me:$LINENO: result: no" >&5
  6270. $as_echo "no" >&6; }
  6271. fi
  6272. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6273. if test -n "$ac_tool_prefix"; then
  6274. { $as_echo "$as_me:$LINENO: checking for file" >&5
  6275. $as_echo_n "checking for file... " >&6; }
  6276. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6277. $as_echo_n "(cached) " >&6
  6278. else
  6279. case $MAGIC_CMD in
  6280. [\\/*] | ?:[\\/]*)
  6281. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6282. ;;
  6283. *)
  6284. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6285. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6286. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6287. for ac_dir in $ac_dummy; do
  6288. IFS="$lt_save_ifs"
  6289. test -z "$ac_dir" && ac_dir=.
  6290. if test -f $ac_dir/file; then
  6291. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6292. if test -n "$file_magic_test_file"; then
  6293. case $deplibs_check_method in
  6294. "file_magic "*)
  6295. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6296. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6297. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6298. $EGREP "$file_magic_regex" > /dev/null; then
  6299. :
  6300. else
  6301. cat <<_LT_EOF 1>&2
  6302. *** Warning: the command libtool uses to detect shared libraries,
  6303. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6304. *** The result is that libtool may fail to recognize shared libraries
  6305. *** as such. This will affect the creation of libtool libraries that
  6306. *** depend on shared libraries, but programs linked with such libtool
  6307. *** libraries will work regardless of this problem. Nevertheless, you
  6308. *** may want to report the problem to your system manager and/or to
  6309. *** bug-libtool@gnu.org
  6310. _LT_EOF
  6311. fi ;;
  6312. esac
  6313. fi
  6314. break
  6315. fi
  6316. done
  6317. IFS="$lt_save_ifs"
  6318. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6319. ;;
  6320. esac
  6321. fi
  6322. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6323. if test -n "$MAGIC_CMD"; then
  6324. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6325. $as_echo "$MAGIC_CMD" >&6; }
  6326. else
  6327. { $as_echo "$as_me:$LINENO: result: no" >&5
  6328. $as_echo "no" >&6; }
  6329. fi
  6330. else
  6331. MAGIC_CMD=:
  6332. fi
  6333. fi
  6334. fi
  6335. ;;
  6336. esac
  6337. # Use C for the default configuration in the libtool script
  6338. lt_save_CC="$CC"
  6339. ac_ext=c
  6340. ac_cpp='$CPP $CPPFLAGS'
  6341. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6342. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6343. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6344. # Source file extension for C test sources.
  6345. ac_ext=c
  6346. # Object file extension for compiled C test sources.
  6347. objext=o
  6348. objext=$objext
  6349. # Code to be used in simple compile tests
  6350. lt_simple_compile_test_code="int some_variable = 0;"
  6351. # Code to be used in simple link tests
  6352. lt_simple_link_test_code='int main(){return(0);}'
  6353. # If no C compiler was specified, use CC.
  6354. LTCC=${LTCC-"$CC"}
  6355. # If no C compiler flags were specified, use CFLAGS.
  6356. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6357. # Allow CC to be a program name with arguments.
  6358. compiler=$CC
  6359. # Save the default compiler, since it gets overwritten when the other
  6360. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6361. compiler_DEFAULT=$CC
  6362. # save warnings/boilerplate of simple test code
  6363. ac_outfile=conftest.$ac_objext
  6364. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6365. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6366. _lt_compiler_boilerplate=`cat conftest.err`
  6367. $RM conftest*
  6368. ac_outfile=conftest.$ac_objext
  6369. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6370. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6371. _lt_linker_boilerplate=`cat conftest.err`
  6372. $RM -r conftest*
  6373. ## CAVEAT EMPTOR:
  6374. ## There is no encapsulation within the following macros, do not change
  6375. ## the running order or otherwise move them around unless you know exactly
  6376. ## what you are doing...
  6377. if test -n "$compiler"; then
  6378. lt_prog_compiler_no_builtin_flag=
  6379. if test "$GCC" = yes; then
  6380. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6381. { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6382. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6383. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  6384. $as_echo_n "(cached) " >&6
  6385. else
  6386. lt_cv_prog_compiler_rtti_exceptions=no
  6387. ac_outfile=conftest.$ac_objext
  6388. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6389. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6390. # Insert the option either (1) after the last *FLAGS variable, or
  6391. # (2) before a word containing "conftest.", or (3) at the end.
  6392. # Note that $ac_compile itself does not contain backslashes and begins
  6393. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6394. # The option is referenced via a variable to avoid confusing sed.
  6395. lt_compile=`echo "$ac_compile" | $SED \
  6396. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6397. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6398. -e 's:$: $lt_compiler_flag:'`
  6399. (eval echo "\"\$as_me:7432: $lt_compile\"" >&5)
  6400. (eval "$lt_compile" 2>conftest.err)
  6401. ac_status=$?
  6402. cat conftest.err >&5
  6403. echo "$as_me:7436: \$? = $ac_status" >&5
  6404. if (exit $ac_status) && test -s "$ac_outfile"; then
  6405. # The compiler can only warn and ignore the option if not recognized
  6406. # So say no if there are warnings other than the usual output.
  6407. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6408. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6409. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6410. lt_cv_prog_compiler_rtti_exceptions=yes
  6411. fi
  6412. fi
  6413. $RM conftest*
  6414. fi
  6415. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6416. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6417. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6418. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6419. else
  6420. :
  6421. fi
  6422. fi
  6423. lt_prog_compiler_wl=
  6424. lt_prog_compiler_pic=
  6425. lt_prog_compiler_static=
  6426. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  6427. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6428. if test "$GCC" = yes; then
  6429. lt_prog_compiler_wl='-Wl,'
  6430. lt_prog_compiler_static='-static'
  6431. case $host_os in
  6432. aix*)
  6433. # All AIX code is PIC.
  6434. if test "$host_cpu" = ia64; then
  6435. # AIX 5 now supports IA64 processor
  6436. lt_prog_compiler_static='-Bstatic'
  6437. fi
  6438. ;;
  6439. amigaos*)
  6440. case $host_cpu in
  6441. powerpc)
  6442. # see comment about AmigaOS4 .so support
  6443. lt_prog_compiler_pic='-fPIC'
  6444. ;;
  6445. m68k)
  6446. # FIXME: we need at least 68020 code to build shared libraries, but
  6447. # adding the `-m68020' flag to GCC prevents building anything better,
  6448. # like `-m68040'.
  6449. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6450. ;;
  6451. esac
  6452. ;;
  6453. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6454. # PIC is the default for these OSes.
  6455. ;;
  6456. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6457. # This hack is so that the source file can tell whether it is being
  6458. # built for inclusion in a dll (and should export symbols for example).
  6459. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6460. # (--disable-auto-import) libraries
  6461. lt_prog_compiler_pic='-DDLL_EXPORT'
  6462. ;;
  6463. darwin* | rhapsody*)
  6464. # PIC is the default on this platform
  6465. # Common symbols not allowed in MH_DYLIB files
  6466. lt_prog_compiler_pic='-fno-common'
  6467. ;;
  6468. hpux*)
  6469. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6470. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6471. # sets the default TLS model and affects inlining.
  6472. case $host_cpu in
  6473. hppa*64*)
  6474. # +Z the default
  6475. ;;
  6476. *)
  6477. lt_prog_compiler_pic='-fPIC'
  6478. ;;
  6479. esac
  6480. ;;
  6481. interix[3-9]*)
  6482. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6483. # Instead, we relocate shared libraries at runtime.
  6484. ;;
  6485. msdosdjgpp*)
  6486. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6487. # on systems that don't support them.
  6488. lt_prog_compiler_can_build_shared=no
  6489. enable_shared=no
  6490. ;;
  6491. *nto* | *qnx*)
  6492. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6493. # it will coredump.
  6494. lt_prog_compiler_pic='-fPIC -shared'
  6495. ;;
  6496. sysv4*MP*)
  6497. if test -d /usr/nec; then
  6498. lt_prog_compiler_pic=-Kconform_pic
  6499. fi
  6500. ;;
  6501. *)
  6502. lt_prog_compiler_pic='-fPIC'
  6503. ;;
  6504. esac
  6505. else
  6506. # PORTME Check for flag to pass linker flags through the system compiler.
  6507. case $host_os in
  6508. aix*)
  6509. lt_prog_compiler_wl='-Wl,'
  6510. if test "$host_cpu" = ia64; then
  6511. # AIX 5 now supports IA64 processor
  6512. lt_prog_compiler_static='-Bstatic'
  6513. else
  6514. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6515. fi
  6516. ;;
  6517. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6518. # This hack is so that the source file can tell whether it is being
  6519. # built for inclusion in a dll (and should export symbols for example).
  6520. lt_prog_compiler_pic='-DDLL_EXPORT'
  6521. ;;
  6522. hpux9* | hpux10* | hpux11*)
  6523. lt_prog_compiler_wl='-Wl,'
  6524. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6525. # not for PA HP-UX.
  6526. case $host_cpu in
  6527. hppa*64*|ia64*)
  6528. # +Z the default
  6529. ;;
  6530. *)
  6531. lt_prog_compiler_pic='+Z'
  6532. ;;
  6533. esac
  6534. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6535. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6536. ;;
  6537. irix5* | irix6* | nonstopux*)
  6538. lt_prog_compiler_wl='-Wl,'
  6539. # PIC (with -KPIC) is the default.
  6540. lt_prog_compiler_static='-non_shared'
  6541. ;;
  6542. linux* | k*bsd*-gnu)
  6543. case $cc_basename in
  6544. # old Intel for x86_64 which still supported -KPIC.
  6545. ecc*)
  6546. lt_prog_compiler_wl='-Wl,'
  6547. lt_prog_compiler_pic='-KPIC'
  6548. lt_prog_compiler_static='-static'
  6549. ;;
  6550. # icc used to be incompatible with GCC.
  6551. # ICC 10 doesn't accept -KPIC any more.
  6552. icc* | ifort*)
  6553. lt_prog_compiler_wl='-Wl,'
  6554. lt_prog_compiler_pic='-fPIC'
  6555. lt_prog_compiler_static='-static'
  6556. ;;
  6557. # Lahey Fortran 8.1.
  6558. lf95*)
  6559. lt_prog_compiler_wl='-Wl,'
  6560. lt_prog_compiler_pic='--shared'
  6561. lt_prog_compiler_static='--static'
  6562. ;;
  6563. pgcc* | pgf77* | pgf90* | pgf95*)
  6564. # Portland Group compilers (*not* the Pentium gcc compiler,
  6565. # which looks to be a dead project)
  6566. lt_prog_compiler_wl='-Wl,'
  6567. lt_prog_compiler_pic='-fpic'
  6568. lt_prog_compiler_static='-Bstatic'
  6569. ;;
  6570. ccc*)
  6571. lt_prog_compiler_wl='-Wl,'
  6572. # All Alpha code is PIC.
  6573. lt_prog_compiler_static='-non_shared'
  6574. ;;
  6575. xl*)
  6576. # IBM XL C 8.0/Fortran 10.1 on PPC
  6577. lt_prog_compiler_wl='-Wl,'
  6578. lt_prog_compiler_pic='-qpic'
  6579. lt_prog_compiler_static='-qstaticlink'
  6580. ;;
  6581. *)
  6582. case `$CC -V 2>&1 | sed 5q` in
  6583. *Sun\ C*)
  6584. # Sun C 5.9
  6585. lt_prog_compiler_pic='-KPIC'
  6586. lt_prog_compiler_static='-Bstatic'
  6587. lt_prog_compiler_wl='-Wl,'
  6588. ;;
  6589. *Sun\ F*)
  6590. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6591. lt_prog_compiler_pic='-KPIC'
  6592. lt_prog_compiler_static='-Bstatic'
  6593. lt_prog_compiler_wl=''
  6594. ;;
  6595. esac
  6596. ;;
  6597. esac
  6598. ;;
  6599. newsos6)
  6600. lt_prog_compiler_pic='-KPIC'
  6601. lt_prog_compiler_static='-Bstatic'
  6602. ;;
  6603. *nto* | *qnx*)
  6604. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6605. # it will coredump.
  6606. lt_prog_compiler_pic='-fPIC -shared'
  6607. ;;
  6608. osf3* | osf4* | osf5*)
  6609. lt_prog_compiler_wl='-Wl,'
  6610. # All OSF/1 code is PIC.
  6611. lt_prog_compiler_static='-non_shared'
  6612. ;;
  6613. rdos*)
  6614. lt_prog_compiler_static='-non_shared'
  6615. ;;
  6616. solaris*)
  6617. lt_prog_compiler_pic='-KPIC'
  6618. lt_prog_compiler_static='-Bstatic'
  6619. case $cc_basename in
  6620. f77* | f90* | f95*)
  6621. lt_prog_compiler_wl='-Qoption ld ';;
  6622. *)
  6623. lt_prog_compiler_wl='-Wl,';;
  6624. esac
  6625. ;;
  6626. sunos4*)
  6627. lt_prog_compiler_wl='-Qoption ld '
  6628. lt_prog_compiler_pic='-PIC'
  6629. lt_prog_compiler_static='-Bstatic'
  6630. ;;
  6631. sysv4 | sysv4.2uw2* | sysv4.3*)
  6632. lt_prog_compiler_wl='-Wl,'
  6633. lt_prog_compiler_pic='-KPIC'
  6634. lt_prog_compiler_static='-Bstatic'
  6635. ;;
  6636. sysv4*MP*)
  6637. if test -d /usr/nec ;then
  6638. lt_prog_compiler_pic='-Kconform_pic'
  6639. lt_prog_compiler_static='-Bstatic'
  6640. fi
  6641. ;;
  6642. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6643. lt_prog_compiler_wl='-Wl,'
  6644. lt_prog_compiler_pic='-KPIC'
  6645. lt_prog_compiler_static='-Bstatic'
  6646. ;;
  6647. unicos*)
  6648. lt_prog_compiler_wl='-Wl,'
  6649. lt_prog_compiler_can_build_shared=no
  6650. ;;
  6651. uts4*)
  6652. lt_prog_compiler_pic='-pic'
  6653. lt_prog_compiler_static='-Bstatic'
  6654. ;;
  6655. *)
  6656. lt_prog_compiler_can_build_shared=no
  6657. ;;
  6658. esac
  6659. fi
  6660. case $host_os in
  6661. # For platforms which do not support PIC, -DPIC is meaningless:
  6662. *djgpp*)
  6663. lt_prog_compiler_pic=
  6664. ;;
  6665. *)
  6666. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6667. ;;
  6668. esac
  6669. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6670. $as_echo "$lt_prog_compiler_pic" >&6; }
  6671. #
  6672. # Check to make sure the PIC flag actually works.
  6673. #
  6674. if test -n "$lt_prog_compiler_pic"; then
  6675. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6676. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  6677. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  6678. $as_echo_n "(cached) " >&6
  6679. else
  6680. lt_cv_prog_compiler_pic_works=no
  6681. ac_outfile=conftest.$ac_objext
  6682. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6683. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6684. # Insert the option either (1) after the last *FLAGS variable, or
  6685. # (2) before a word containing "conftest.", or (3) at the end.
  6686. # Note that $ac_compile itself does not contain backslashes and begins
  6687. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6688. # The option is referenced via a variable to avoid confusing sed.
  6689. lt_compile=`echo "$ac_compile" | $SED \
  6690. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6691. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6692. -e 's:$: $lt_compiler_flag:'`
  6693. (eval echo "\"\$as_me:7771: $lt_compile\"" >&5)
  6694. (eval "$lt_compile" 2>conftest.err)
  6695. ac_status=$?
  6696. cat conftest.err >&5
  6697. echo "$as_me:7775: \$? = $ac_status" >&5
  6698. if (exit $ac_status) && test -s "$ac_outfile"; then
  6699. # The compiler can only warn and ignore the option if not recognized
  6700. # So say no if there are warnings other than the usual output.
  6701. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6702. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6703. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6704. lt_cv_prog_compiler_pic_works=yes
  6705. fi
  6706. fi
  6707. $RM conftest*
  6708. fi
  6709. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  6710. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  6711. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  6712. case $lt_prog_compiler_pic in
  6713. "" | " "*) ;;
  6714. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6715. esac
  6716. else
  6717. lt_prog_compiler_pic=
  6718. lt_prog_compiler_can_build_shared=no
  6719. fi
  6720. fi
  6721. #
  6722. # Check to make sure the static flag actually works.
  6723. #
  6724. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6725. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6726. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  6727. if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  6728. $as_echo_n "(cached) " >&6
  6729. else
  6730. lt_cv_prog_compiler_static_works=no
  6731. save_LDFLAGS="$LDFLAGS"
  6732. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6733. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  6734. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6735. # The linker can only warn and ignore the option if not recognized
  6736. # So say no if there are warnings
  6737. if test -s conftest.err; then
  6738. # Append any errors to the config.log.
  6739. cat conftest.err 1>&5
  6740. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6741. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6742. if diff conftest.exp conftest.er2 >/dev/null; then
  6743. lt_cv_prog_compiler_static_works=yes
  6744. fi
  6745. else
  6746. lt_cv_prog_compiler_static_works=yes
  6747. fi
  6748. fi
  6749. $RM -r conftest*
  6750. LDFLAGS="$save_LDFLAGS"
  6751. fi
  6752. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  6753. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  6754. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  6755. :
  6756. else
  6757. lt_prog_compiler_static=
  6758. fi
  6759. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6760. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6761. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6762. $as_echo_n "(cached) " >&6
  6763. else
  6764. lt_cv_prog_compiler_c_o=no
  6765. $RM -r conftest 2>/dev/null
  6766. mkdir conftest
  6767. cd conftest
  6768. mkdir out
  6769. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6770. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6771. # Insert the option either (1) after the last *FLAGS variable, or
  6772. # (2) before a word containing "conftest.", or (3) at the end.
  6773. # Note that $ac_compile itself does not contain backslashes and begins
  6774. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6775. lt_compile=`echo "$ac_compile" | $SED \
  6776. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6777. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6778. -e 's:$: $lt_compiler_flag:'`
  6779. (eval echo "\"\$as_me:7876: $lt_compile\"" >&5)
  6780. (eval "$lt_compile" 2>out/conftest.err)
  6781. ac_status=$?
  6782. cat out/conftest.err >&5
  6783. echo "$as_me:7880: \$? = $ac_status" >&5
  6784. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6785. then
  6786. # The compiler can only warn and ignore the option if not recognized
  6787. # So say no if there are warnings
  6788. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6789. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6790. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6791. lt_cv_prog_compiler_c_o=yes
  6792. fi
  6793. fi
  6794. chmod u+w . 2>&5
  6795. $RM conftest*
  6796. # SGI C++ compiler will create directory out/ii_files/ for
  6797. # template instantiation
  6798. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6799. $RM out/* && rmdir out
  6800. cd ..
  6801. $RM -r conftest
  6802. $RM conftest*
  6803. fi
  6804. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6805. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  6806. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6807. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6808. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6809. $as_echo_n "(cached) " >&6
  6810. else
  6811. lt_cv_prog_compiler_c_o=no
  6812. $RM -r conftest 2>/dev/null
  6813. mkdir conftest
  6814. cd conftest
  6815. mkdir out
  6816. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6817. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6818. # Insert the option either (1) after the last *FLAGS variable, or
  6819. # (2) before a word containing "conftest.", or (3) at the end.
  6820. # Note that $ac_compile itself does not contain backslashes and begins
  6821. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6822. lt_compile=`echo "$ac_compile" | $SED \
  6823. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6824. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6825. -e 's:$: $lt_compiler_flag:'`
  6826. (eval echo "\"\$as_me:7931: $lt_compile\"" >&5)
  6827. (eval "$lt_compile" 2>out/conftest.err)
  6828. ac_status=$?
  6829. cat out/conftest.err >&5
  6830. echo "$as_me:7935: \$? = $ac_status" >&5
  6831. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6832. then
  6833. # The compiler can only warn and ignore the option if not recognized
  6834. # So say no if there are warnings
  6835. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6836. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6837. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6838. lt_cv_prog_compiler_c_o=yes
  6839. fi
  6840. fi
  6841. chmod u+w . 2>&5
  6842. $RM conftest*
  6843. # SGI C++ compiler will create directory out/ii_files/ for
  6844. # template instantiation
  6845. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6846. $RM out/* && rmdir out
  6847. cd ..
  6848. $RM -r conftest
  6849. $RM conftest*
  6850. fi
  6851. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6852. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  6853. hard_links="nottested"
  6854. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6855. # do not overwrite the value of need_locks provided by the user
  6856. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6857. $as_echo_n "checking if we can lock with hard links... " >&6; }
  6858. hard_links=yes
  6859. $RM conftest*
  6860. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6861. touch conftest.a
  6862. ln conftest.a conftest.b 2>&5 || hard_links=no
  6863. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6864. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  6865. $as_echo "$hard_links" >&6; }
  6866. if test "$hard_links" = no; then
  6867. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6868. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6869. need_locks=warn
  6870. fi
  6871. else
  6872. need_locks=no
  6873. fi
  6874. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6875. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  6876. runpath_var=
  6877. allow_undefined_flag=
  6878. always_export_symbols=no
  6879. archive_cmds=
  6880. archive_expsym_cmds=
  6881. compiler_needs_object=no
  6882. enable_shared_with_static_runtimes=no
  6883. export_dynamic_flag_spec=
  6884. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6885. hardcode_automatic=no
  6886. hardcode_direct=no
  6887. hardcode_direct_absolute=no
  6888. hardcode_libdir_flag_spec=
  6889. hardcode_libdir_flag_spec_ld=
  6890. hardcode_libdir_separator=
  6891. hardcode_minus_L=no
  6892. hardcode_shlibpath_var=unsupported
  6893. inherit_rpath=no
  6894. link_all_deplibs=unknown
  6895. module_cmds=
  6896. module_expsym_cmds=
  6897. old_archive_from_new_cmds=
  6898. old_archive_from_expsyms_cmds=
  6899. thread_safe_flag_spec=
  6900. whole_archive_flag_spec=
  6901. # include_expsyms should be a list of space-separated symbols to be *always*
  6902. # included in the symbol list
  6903. include_expsyms=
  6904. # exclude_expsyms can be an extended regexp of symbols to exclude
  6905. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6906. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6907. # as well as any symbol that contains `d'.
  6908. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  6909. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6910. # platforms (ab)use it in PIC code, but their linkers get confused if
  6911. # the symbol is explicitly referenced. Since portable code cannot
  6912. # rely on this symbol name, it's probably fine to never include it in
  6913. # preloaded symbol tables.
  6914. # Exclude shared library initialization/finalization symbols.
  6915. extract_expsyms_cmds=
  6916. case $host_os in
  6917. cygwin* | mingw* | pw32* | cegcc*)
  6918. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6919. # When not using gcc, we currently assume that we are using
  6920. # Microsoft Visual C++.
  6921. if test "$GCC" != yes; then
  6922. with_gnu_ld=no
  6923. fi
  6924. ;;
  6925. interix*)
  6926. # we just hope/assume this is gcc and not c89 (= MSVC++)
  6927. with_gnu_ld=yes
  6928. ;;
  6929. openbsd*)
  6930. with_gnu_ld=no
  6931. ;;
  6932. esac
  6933. ld_shlibs=yes
  6934. if test "$with_gnu_ld" = yes; then
  6935. # If archive_cmds runs LD, not CC, wlarc should be empty
  6936. wlarc='${wl}'
  6937. # Set some defaults for GNU ld with shared library support. These
  6938. # are reset later if shared libraries are not supported. Putting them
  6939. # here allows them to be overridden if necessary.
  6940. runpath_var=LD_RUN_PATH
  6941. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6942. export_dynamic_flag_spec='${wl}--export-dynamic'
  6943. # ancient GNU ld didn't support --whole-archive et. al.
  6944. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  6945. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6946. else
  6947. whole_archive_flag_spec=
  6948. fi
  6949. supports_anon_versioning=no
  6950. case `$LD -v 2>&1` in
  6951. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6952. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6953. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6954. *\ 2.11.*) ;; # other 2.11 versions
  6955. *) supports_anon_versioning=yes ;;
  6956. esac
  6957. # See if GNU ld supports shared libraries.
  6958. case $host_os in
  6959. aix[3-9]*)
  6960. # On AIX/PPC, the GNU linker is very broken
  6961. if test "$host_cpu" != ia64; then
  6962. ld_shlibs=no
  6963. cat <<_LT_EOF 1>&2
  6964. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6965. *** to be unable to reliably create shared libraries on AIX.
  6966. *** Therefore, libtool is disabling shared libraries support. If you
  6967. *** really care for shared libraries, you may want to modify your PATH
  6968. *** so that a non-GNU linker is found, and then restart.
  6969. _LT_EOF
  6970. fi
  6971. ;;
  6972. amigaos*)
  6973. case $host_cpu in
  6974. powerpc)
  6975. # see comment about AmigaOS4 .so support
  6976. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6977. archive_expsym_cmds=''
  6978. ;;
  6979. m68k)
  6980. 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)'
  6981. hardcode_libdir_flag_spec='-L$libdir'
  6982. hardcode_minus_L=yes
  6983. ;;
  6984. esac
  6985. ;;
  6986. beos*)
  6987. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6988. allow_undefined_flag=unsupported
  6989. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  6990. # support --undefined. This deserves some investigation. FIXME
  6991. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6992. else
  6993. ld_shlibs=no
  6994. fi
  6995. ;;
  6996. cygwin* | mingw* | pw32* | cegcc*)
  6997. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  6998. # as there is no search path for DLLs.
  6999. hardcode_libdir_flag_spec='-L$libdir'
  7000. allow_undefined_flag=unsupported
  7001. always_export_symbols=no
  7002. enable_shared_with_static_runtimes=yes
  7003. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7004. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7005. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7006. # If the export-symbols file already is a .def file (1st line
  7007. # is EXPORTS), use it as is; otherwise, prepend...
  7008. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7009. cp $export_symbols $output_objdir/$soname.def;
  7010. else
  7011. echo EXPORTS > $output_objdir/$soname.def;
  7012. cat $export_symbols >> $output_objdir/$soname.def;
  7013. fi~
  7014. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7015. else
  7016. ld_shlibs=no
  7017. fi
  7018. ;;
  7019. interix[3-9]*)
  7020. hardcode_direct=no
  7021. hardcode_shlibpath_var=no
  7022. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7023. export_dynamic_flag_spec='${wl}-E'
  7024. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7025. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7026. # default) and relocated if they conflict, which is a slow very memory
  7027. # consuming and fragmenting process. To avoid this, we pick a random,
  7028. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7029. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7030. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7031. 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'
  7032. ;;
  7033. gnu* | linux* | tpf* | k*bsd*-gnu)
  7034. tmp_diet=no
  7035. if test "$host_os" = linux-dietlibc; then
  7036. case $cc_basename in
  7037. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7038. esac
  7039. fi
  7040. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7041. && test "$tmp_diet" = no
  7042. then
  7043. tmp_addflag=
  7044. tmp_sharedflag='-shared'
  7045. case $cc_basename,$host_cpu in
  7046. pgcc*) # Portland Group C compiler
  7047. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7048. tmp_addflag=' $pic_flag'
  7049. ;;
  7050. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7051. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7052. tmp_addflag=' $pic_flag -Mnomain' ;;
  7053. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7054. tmp_addflag=' -i_dynamic' ;;
  7055. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7056. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7057. ifc* | ifort*) # Intel Fortran compiler
  7058. tmp_addflag=' -nofor_main' ;;
  7059. lf95*) # Lahey Fortran 8.1
  7060. whole_archive_flag_spec=
  7061. tmp_sharedflag='--shared' ;;
  7062. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7063. tmp_sharedflag='-qmkshrobj'
  7064. tmp_addflag= ;;
  7065. esac
  7066. case `$CC -V 2>&1 | sed 5q` in
  7067. *Sun\ C*) # Sun C 5.9
  7068. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7069. compiler_needs_object=yes
  7070. tmp_sharedflag='-G' ;;
  7071. *Sun\ F*) # Sun Fortran 8.3
  7072. tmp_sharedflag='-G' ;;
  7073. esac
  7074. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7075. if test "x$supports_anon_versioning" = xyes; then
  7076. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7077. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7078. echo "local: *; };" >> $output_objdir/$libname.ver~
  7079. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7080. fi
  7081. case $cc_basename in
  7082. xlf*)
  7083. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7084. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7085. hardcode_libdir_flag_spec=
  7086. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7087. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7088. if test "x$supports_anon_versioning" = xyes; then
  7089. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7090. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7091. echo "local: *; };" >> $output_objdir/$libname.ver~
  7092. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7093. fi
  7094. ;;
  7095. esac
  7096. else
  7097. ld_shlibs=no
  7098. fi
  7099. ;;
  7100. netbsd*)
  7101. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7102. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7103. wlarc=
  7104. else
  7105. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7106. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7107. fi
  7108. ;;
  7109. solaris*)
  7110. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7111. ld_shlibs=no
  7112. cat <<_LT_EOF 1>&2
  7113. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7114. *** create shared libraries on Solaris systems. Therefore, libtool
  7115. *** is disabling shared libraries support. We urge you to upgrade GNU
  7116. *** binutils to release 2.9.1 or newer. Another option is to modify
  7117. *** your PATH or compiler configuration so that the native linker is
  7118. *** used, and then restart.
  7119. _LT_EOF
  7120. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7121. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7122. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7123. else
  7124. ld_shlibs=no
  7125. fi
  7126. ;;
  7127. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7128. case `$LD -v 2>&1` in
  7129. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7130. ld_shlibs=no
  7131. cat <<_LT_EOF 1>&2
  7132. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7133. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7134. *** is disabling shared libraries support. We urge you to upgrade GNU
  7135. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7136. *** your PATH or compiler configuration so that the native linker is
  7137. *** used, and then restart.
  7138. _LT_EOF
  7139. ;;
  7140. *)
  7141. # For security reasons, it is highly recommended that you always
  7142. # use absolute paths for naming shared libraries, and exclude the
  7143. # DT_RUNPATH tag from executables and libraries. But doing so
  7144. # requires that you compile everything twice, which is a pain.
  7145. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7146. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7147. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7148. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7149. else
  7150. ld_shlibs=no
  7151. fi
  7152. ;;
  7153. esac
  7154. ;;
  7155. sunos4*)
  7156. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7157. wlarc=
  7158. hardcode_direct=yes
  7159. hardcode_shlibpath_var=no
  7160. ;;
  7161. *)
  7162. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7163. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7164. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7165. else
  7166. ld_shlibs=no
  7167. fi
  7168. ;;
  7169. esac
  7170. if test "$ld_shlibs" = no; then
  7171. runpath_var=
  7172. hardcode_libdir_flag_spec=
  7173. export_dynamic_flag_spec=
  7174. whole_archive_flag_spec=
  7175. fi
  7176. else
  7177. # PORTME fill in a description of your system's linker (not GNU ld)
  7178. case $host_os in
  7179. aix3*)
  7180. allow_undefined_flag=unsupported
  7181. always_export_symbols=yes
  7182. 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'
  7183. # Note: this linker hardcodes the directories in LIBPATH if there
  7184. # are no directories specified by -L.
  7185. hardcode_minus_L=yes
  7186. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7187. # Neither direct hardcoding nor static linking is supported with a
  7188. # broken collect2.
  7189. hardcode_direct=unsupported
  7190. fi
  7191. ;;
  7192. aix[4-9]*)
  7193. if test "$host_cpu" = ia64; then
  7194. # On IA64, the linker does run time linking by default, so we don't
  7195. # have to do anything special.
  7196. aix_use_runtimelinking=no
  7197. exp_sym_flag='-Bexport'
  7198. no_entry_flag=""
  7199. else
  7200. # If we're using GNU nm, then we don't want the "-C" option.
  7201. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7202. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7203. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7204. else
  7205. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7206. fi
  7207. aix_use_runtimelinking=no
  7208. # Test if we are trying to use run time linking or normal
  7209. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7210. # need to do runtime linking.
  7211. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7212. for ld_flag in $LDFLAGS; do
  7213. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7214. aix_use_runtimelinking=yes
  7215. break
  7216. fi
  7217. done
  7218. ;;
  7219. esac
  7220. exp_sym_flag='-bexport'
  7221. no_entry_flag='-bnoentry'
  7222. fi
  7223. # When large executables or shared objects are built, AIX ld can
  7224. # have problems creating the table of contents. If linking a library
  7225. # or program results in "error TOC overflow" add -mminimal-toc to
  7226. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7227. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7228. archive_cmds=''
  7229. hardcode_direct=yes
  7230. hardcode_direct_absolute=yes
  7231. hardcode_libdir_separator=':'
  7232. link_all_deplibs=yes
  7233. file_list_spec='${wl}-f,'
  7234. if test "$GCC" = yes; then
  7235. case $host_os in aix4.[012]|aix4.[012].*)
  7236. # We only want to do this on AIX 4.2 and lower, the check
  7237. # below for broken collect2 doesn't work under 4.3+
  7238. collect2name=`${CC} -print-prog-name=collect2`
  7239. if test -f "$collect2name" &&
  7240. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7241. then
  7242. # We have reworked collect2
  7243. :
  7244. else
  7245. # We have old collect2
  7246. hardcode_direct=unsupported
  7247. # It fails to find uninstalled libraries when the uninstalled
  7248. # path is not listed in the libpath. Setting hardcode_minus_L
  7249. # to unsupported forces relinking
  7250. hardcode_minus_L=yes
  7251. hardcode_libdir_flag_spec='-L$libdir'
  7252. hardcode_libdir_separator=
  7253. fi
  7254. ;;
  7255. esac
  7256. shared_flag='-shared'
  7257. if test "$aix_use_runtimelinking" = yes; then
  7258. shared_flag="$shared_flag "'${wl}-G'
  7259. fi
  7260. else
  7261. # not using gcc
  7262. if test "$host_cpu" = ia64; then
  7263. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7264. # chokes on -Wl,-G. The following line is correct:
  7265. shared_flag='-G'
  7266. else
  7267. if test "$aix_use_runtimelinking" = yes; then
  7268. shared_flag='${wl}-G'
  7269. else
  7270. shared_flag='${wl}-bM:SRE'
  7271. fi
  7272. fi
  7273. fi
  7274. export_dynamic_flag_spec='${wl}-bexpall'
  7275. # It seems that -bexpall does not export symbols beginning with
  7276. # underscore (_), so it is better to generate a list of symbols to export.
  7277. always_export_symbols=yes
  7278. if test "$aix_use_runtimelinking" = yes; then
  7279. # Warning - without using the other runtime loading flags (-brtl),
  7280. # -berok will link without error, but may produce a broken library.
  7281. allow_undefined_flag='-berok'
  7282. # Determine the default libpath from the value encoded in an
  7283. # empty executable.
  7284. cat >conftest.$ac_ext <<_ACEOF
  7285. /* confdefs.h. */
  7286. _ACEOF
  7287. cat confdefs.h >>conftest.$ac_ext
  7288. cat >>conftest.$ac_ext <<_ACEOF
  7289. /* end confdefs.h. */
  7290. int
  7291. main ()
  7292. {
  7293. ;
  7294. return 0;
  7295. }
  7296. _ACEOF
  7297. rm -f conftest.$ac_objext conftest$ac_exeext
  7298. if { (ac_try="$ac_link"
  7299. case "(($ac_try" in
  7300. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7301. *) ac_try_echo=$ac_try;;
  7302. esac
  7303. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7304. $as_echo "$ac_try_echo") >&5
  7305. (eval "$ac_link") 2>conftest.er1
  7306. ac_status=$?
  7307. grep -v '^ *+' conftest.er1 >conftest.err
  7308. rm -f conftest.er1
  7309. cat conftest.err >&5
  7310. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7311. (exit $ac_status); } && {
  7312. test -z "$ac_c_werror_flag" ||
  7313. test ! -s conftest.err
  7314. } && test -s conftest$ac_exeext && {
  7315. test "$cross_compiling" = yes ||
  7316. $as_test_x conftest$ac_exeext
  7317. }; then
  7318. lt_aix_libpath_sed='
  7319. /Import File Strings/,/^$/ {
  7320. /^0/ {
  7321. s/^0 *\(.*\)$/\1/
  7322. p
  7323. }
  7324. }'
  7325. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7326. # Check for a 64-bit object if we didn't find anything.
  7327. if test -z "$aix_libpath"; then
  7328. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7329. fi
  7330. else
  7331. $as_echo "$as_me: failed program was:" >&5
  7332. sed 's/^/| /' conftest.$ac_ext >&5
  7333. fi
  7334. rm -rf conftest.dSYM
  7335. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7336. conftest$ac_exeext conftest.$ac_ext
  7337. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7338. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7339. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7340. else
  7341. if test "$host_cpu" = ia64; then
  7342. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7343. allow_undefined_flag="-z nodefs"
  7344. 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"
  7345. else
  7346. # Determine the default libpath from the value encoded in an
  7347. # empty executable.
  7348. cat >conftest.$ac_ext <<_ACEOF
  7349. /* confdefs.h. */
  7350. _ACEOF
  7351. cat confdefs.h >>conftest.$ac_ext
  7352. cat >>conftest.$ac_ext <<_ACEOF
  7353. /* end confdefs.h. */
  7354. int
  7355. main ()
  7356. {
  7357. ;
  7358. return 0;
  7359. }
  7360. _ACEOF
  7361. rm -f conftest.$ac_objext conftest$ac_exeext
  7362. if { (ac_try="$ac_link"
  7363. case "(($ac_try" in
  7364. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7365. *) ac_try_echo=$ac_try;;
  7366. esac
  7367. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7368. $as_echo "$ac_try_echo") >&5
  7369. (eval "$ac_link") 2>conftest.er1
  7370. ac_status=$?
  7371. grep -v '^ *+' conftest.er1 >conftest.err
  7372. rm -f conftest.er1
  7373. cat conftest.err >&5
  7374. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7375. (exit $ac_status); } && {
  7376. test -z "$ac_c_werror_flag" ||
  7377. test ! -s conftest.err
  7378. } && test -s conftest$ac_exeext && {
  7379. test "$cross_compiling" = yes ||
  7380. $as_test_x conftest$ac_exeext
  7381. }; then
  7382. lt_aix_libpath_sed='
  7383. /Import File Strings/,/^$/ {
  7384. /^0/ {
  7385. s/^0 *\(.*\)$/\1/
  7386. p
  7387. }
  7388. }'
  7389. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7390. # Check for a 64-bit object if we didn't find anything.
  7391. if test -z "$aix_libpath"; then
  7392. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7393. fi
  7394. else
  7395. $as_echo "$as_me: failed program was:" >&5
  7396. sed 's/^/| /' conftest.$ac_ext >&5
  7397. fi
  7398. rm -rf conftest.dSYM
  7399. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7400. conftest$ac_exeext conftest.$ac_ext
  7401. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7402. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7403. # Warning - without using the other run time loading flags,
  7404. # -berok will link without error, but may produce a broken library.
  7405. no_undefined_flag=' ${wl}-bernotok'
  7406. allow_undefined_flag=' ${wl}-berok'
  7407. # Exported symbols can be pulled into shared objects from archives
  7408. whole_archive_flag_spec='$convenience'
  7409. archive_cmds_need_lc=yes
  7410. # This is similar to how AIX traditionally builds its shared libraries.
  7411. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  7412. fi
  7413. fi
  7414. ;;
  7415. amigaos*)
  7416. case $host_cpu in
  7417. powerpc)
  7418. # see comment about AmigaOS4 .so support
  7419. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7420. archive_expsym_cmds=''
  7421. ;;
  7422. m68k)
  7423. 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)'
  7424. hardcode_libdir_flag_spec='-L$libdir'
  7425. hardcode_minus_L=yes
  7426. ;;
  7427. esac
  7428. ;;
  7429. bsdi[45]*)
  7430. export_dynamic_flag_spec=-rdynamic
  7431. ;;
  7432. cygwin* | mingw* | pw32* | cegcc*)
  7433. # When not using gcc, we currently assume that we are using
  7434. # Microsoft Visual C++.
  7435. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7436. # no search path for DLLs.
  7437. hardcode_libdir_flag_spec=' '
  7438. allow_undefined_flag=unsupported
  7439. # Tell ltmain to make .lib files, not .a files.
  7440. libext=lib
  7441. # Tell ltmain to make .dll files, not .so files.
  7442. shrext_cmds=".dll"
  7443. # FIXME: Setting linknames here is a bad hack.
  7444. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7445. # The linker will automatically build a .lib file if we build a DLL.
  7446. old_archive_from_new_cmds='true'
  7447. # FIXME: Should let the user specify the lib program.
  7448. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7449. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7450. enable_shared_with_static_runtimes=yes
  7451. ;;
  7452. darwin* | rhapsody*)
  7453. archive_cmds_need_lc=no
  7454. hardcode_direct=no
  7455. hardcode_automatic=yes
  7456. hardcode_shlibpath_var=unsupported
  7457. whole_archive_flag_spec=''
  7458. link_all_deplibs=yes
  7459. allow_undefined_flag="$_lt_dar_allow_undefined"
  7460. case $cc_basename in
  7461. ifort*) _lt_dar_can_shared=yes ;;
  7462. *) _lt_dar_can_shared=$GCC ;;
  7463. esac
  7464. if test "$_lt_dar_can_shared" = "yes"; then
  7465. output_verbose_link_cmd=echo
  7466. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7467. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7468. 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}"
  7469. 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}"
  7470. else
  7471. ld_shlibs=no
  7472. fi
  7473. ;;
  7474. dgux*)
  7475. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7476. hardcode_libdir_flag_spec='-L$libdir'
  7477. hardcode_shlibpath_var=no
  7478. ;;
  7479. freebsd1*)
  7480. ld_shlibs=no
  7481. ;;
  7482. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7483. # support. Future versions do this automatically, but an explicit c++rt0.o
  7484. # does not break anything, and helps significantly (at the cost of a little
  7485. # extra space).
  7486. freebsd2.2*)
  7487. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7488. hardcode_libdir_flag_spec='-R$libdir'
  7489. hardcode_direct=yes
  7490. hardcode_shlibpath_var=no
  7491. ;;
  7492. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7493. freebsd2*)
  7494. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7495. hardcode_direct=yes
  7496. hardcode_minus_L=yes
  7497. hardcode_shlibpath_var=no
  7498. ;;
  7499. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7500. freebsd* | dragonfly*)
  7501. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7502. hardcode_libdir_flag_spec='-R$libdir'
  7503. hardcode_direct=yes
  7504. hardcode_shlibpath_var=no
  7505. ;;
  7506. hpux9*)
  7507. if test "$GCC" = yes; then
  7508. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7509. else
  7510. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7511. fi
  7512. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7513. hardcode_libdir_separator=:
  7514. hardcode_direct=yes
  7515. # hardcode_minus_L: Not really in the search PATH,
  7516. # but as the default location of the library.
  7517. hardcode_minus_L=yes
  7518. export_dynamic_flag_spec='${wl}-E'
  7519. ;;
  7520. hpux10*)
  7521. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7522. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7523. else
  7524. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7525. fi
  7526. if test "$with_gnu_ld" = no; then
  7527. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7528. hardcode_libdir_flag_spec_ld='+b $libdir'
  7529. hardcode_libdir_separator=:
  7530. hardcode_direct=yes
  7531. hardcode_direct_absolute=yes
  7532. export_dynamic_flag_spec='${wl}-E'
  7533. # hardcode_minus_L: Not really in the search PATH,
  7534. # but as the default location of the library.
  7535. hardcode_minus_L=yes
  7536. fi
  7537. ;;
  7538. hpux11*)
  7539. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7540. case $host_cpu in
  7541. hppa*64*)
  7542. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7543. ;;
  7544. ia64*)
  7545. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7546. ;;
  7547. *)
  7548. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7549. ;;
  7550. esac
  7551. else
  7552. case $host_cpu in
  7553. hppa*64*)
  7554. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7555. ;;
  7556. ia64*)
  7557. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7558. ;;
  7559. *)
  7560. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7561. ;;
  7562. esac
  7563. fi
  7564. if test "$with_gnu_ld" = no; then
  7565. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7566. hardcode_libdir_separator=:
  7567. case $host_cpu in
  7568. hppa*64*|ia64*)
  7569. hardcode_direct=no
  7570. hardcode_shlibpath_var=no
  7571. ;;
  7572. *)
  7573. hardcode_direct=yes
  7574. hardcode_direct_absolute=yes
  7575. export_dynamic_flag_spec='${wl}-E'
  7576. # hardcode_minus_L: Not really in the search PATH,
  7577. # but as the default location of the library.
  7578. hardcode_minus_L=yes
  7579. ;;
  7580. esac
  7581. fi
  7582. ;;
  7583. irix5* | irix6* | nonstopux*)
  7584. if test "$GCC" = yes; then
  7585. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7586. # Try to use the -exported_symbol ld option, if it does not
  7587. # work, assume that -exports_file does not work either and
  7588. # implicitly export all symbols.
  7589. save_LDFLAGS="$LDFLAGS"
  7590. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7591. cat >conftest.$ac_ext <<_ACEOF
  7592. int foo(void) {}
  7593. _ACEOF
  7594. rm -f conftest.$ac_objext conftest$ac_exeext
  7595. if { (ac_try="$ac_link"
  7596. case "(($ac_try" in
  7597. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7598. *) ac_try_echo=$ac_try;;
  7599. esac
  7600. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7601. $as_echo "$ac_try_echo") >&5
  7602. (eval "$ac_link") 2>conftest.er1
  7603. ac_status=$?
  7604. grep -v '^ *+' conftest.er1 >conftest.err
  7605. rm -f conftest.er1
  7606. cat conftest.err >&5
  7607. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7608. (exit $ac_status); } && {
  7609. test -z "$ac_c_werror_flag" ||
  7610. test ! -s conftest.err
  7611. } && test -s conftest$ac_exeext && {
  7612. test "$cross_compiling" = yes ||
  7613. $as_test_x conftest$ac_exeext
  7614. }; then
  7615. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  7616. else
  7617. $as_echo "$as_me: failed program was:" >&5
  7618. sed 's/^/| /' conftest.$ac_ext >&5
  7619. fi
  7620. rm -rf conftest.dSYM
  7621. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7622. conftest$ac_exeext conftest.$ac_ext
  7623. LDFLAGS="$save_LDFLAGS"
  7624. else
  7625. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7626. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  7627. fi
  7628. archive_cmds_need_lc='no'
  7629. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7630. hardcode_libdir_separator=:
  7631. inherit_rpath=yes
  7632. link_all_deplibs=yes
  7633. ;;
  7634. netbsd*)
  7635. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7636. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7637. else
  7638. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7639. fi
  7640. hardcode_libdir_flag_spec='-R$libdir'
  7641. hardcode_direct=yes
  7642. hardcode_shlibpath_var=no
  7643. ;;
  7644. newsos6)
  7645. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7646. hardcode_direct=yes
  7647. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7648. hardcode_libdir_separator=:
  7649. hardcode_shlibpath_var=no
  7650. ;;
  7651. *nto* | *qnx*)
  7652. ;;
  7653. openbsd*)
  7654. if test -f /usr/libexec/ld.so; then
  7655. hardcode_direct=yes
  7656. hardcode_shlibpath_var=no
  7657. hardcode_direct_absolute=yes
  7658. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7659. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7660. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7661. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7662. export_dynamic_flag_spec='${wl}-E'
  7663. else
  7664. case $host_os in
  7665. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7666. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7667. hardcode_libdir_flag_spec='-R$libdir'
  7668. ;;
  7669. *)
  7670. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7671. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7672. ;;
  7673. esac
  7674. fi
  7675. else
  7676. ld_shlibs=no
  7677. fi
  7678. ;;
  7679. os2*)
  7680. hardcode_libdir_flag_spec='-L$libdir'
  7681. hardcode_minus_L=yes
  7682. allow_undefined_flag=unsupported
  7683. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  7684. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7685. ;;
  7686. osf3*)
  7687. if test "$GCC" = yes; then
  7688. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7689. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7690. else
  7691. allow_undefined_flag=' -expect_unresolved \*'
  7692. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7693. fi
  7694. archive_cmds_need_lc='no'
  7695. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7696. hardcode_libdir_separator=:
  7697. ;;
  7698. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7699. if test "$GCC" = yes; then
  7700. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7701. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7702. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7703. else
  7704. allow_undefined_flag=' -expect_unresolved \*'
  7705. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7706. 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~
  7707. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  7708. # Both c and cxx compiler support -rpath directly
  7709. hardcode_libdir_flag_spec='-rpath $libdir'
  7710. fi
  7711. archive_cmds_need_lc='no'
  7712. hardcode_libdir_separator=:
  7713. ;;
  7714. solaris*)
  7715. no_undefined_flag=' -z defs'
  7716. if test "$GCC" = yes; then
  7717. wlarc='${wl}'
  7718. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7719. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7720. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7721. else
  7722. case `$CC -V 2>&1` in
  7723. *"Compilers 5.0"*)
  7724. wlarc=''
  7725. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7726. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7727. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  7728. ;;
  7729. *)
  7730. wlarc='${wl}'
  7731. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7732. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7733. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7734. ;;
  7735. esac
  7736. fi
  7737. hardcode_libdir_flag_spec='-R$libdir'
  7738. hardcode_shlibpath_var=no
  7739. case $host_os in
  7740. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7741. *)
  7742. # The compiler driver will combine and reorder linker options,
  7743. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7744. # but is careful enough not to reorder.
  7745. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7746. if test "$GCC" = yes; then
  7747. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7748. else
  7749. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  7750. fi
  7751. ;;
  7752. esac
  7753. link_all_deplibs=yes
  7754. ;;
  7755. sunos4*)
  7756. if test "x$host_vendor" = xsequent; then
  7757. # Use $CC to link under sequent, because it throws in some extra .o
  7758. # files that make .init and .fini sections work.
  7759. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7760. else
  7761. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7762. fi
  7763. hardcode_libdir_flag_spec='-L$libdir'
  7764. hardcode_direct=yes
  7765. hardcode_minus_L=yes
  7766. hardcode_shlibpath_var=no
  7767. ;;
  7768. sysv4)
  7769. case $host_vendor in
  7770. sni)
  7771. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7772. hardcode_direct=yes # is this really true???
  7773. ;;
  7774. siemens)
  7775. ## LD is ld it makes a PLAMLIB
  7776. ## CC just makes a GrossModule.
  7777. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7778. reload_cmds='$CC -r -o $output$reload_objs'
  7779. hardcode_direct=no
  7780. ;;
  7781. motorola)
  7782. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7783. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7784. ;;
  7785. esac
  7786. runpath_var='LD_RUN_PATH'
  7787. hardcode_shlibpath_var=no
  7788. ;;
  7789. sysv4.3*)
  7790. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7791. hardcode_shlibpath_var=no
  7792. export_dynamic_flag_spec='-Bexport'
  7793. ;;
  7794. sysv4*MP*)
  7795. if test -d /usr/nec; then
  7796. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7797. hardcode_shlibpath_var=no
  7798. runpath_var=LD_RUN_PATH
  7799. hardcode_runpath_var=yes
  7800. ld_shlibs=yes
  7801. fi
  7802. ;;
  7803. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  7804. no_undefined_flag='${wl}-z,text'
  7805. archive_cmds_need_lc=no
  7806. hardcode_shlibpath_var=no
  7807. runpath_var='LD_RUN_PATH'
  7808. if test "$GCC" = yes; then
  7809. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7810. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7811. else
  7812. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7813. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7814. fi
  7815. ;;
  7816. sysv5* | sco3.2v5* | sco5v6*)
  7817. # Note: We can NOT use -z defs as we might desire, because we do not
  7818. # link with -lc, and that would cause any symbols used from libc to
  7819. # always be unresolved, which means just about no library would
  7820. # ever link correctly. If we're not using GNU ld we use -z text
  7821. # though, which does catch some bad symbols but isn't as heavy-handed
  7822. # as -z defs.
  7823. no_undefined_flag='${wl}-z,text'
  7824. allow_undefined_flag='${wl}-z,nodefs'
  7825. archive_cmds_need_lc=no
  7826. hardcode_shlibpath_var=no
  7827. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  7828. hardcode_libdir_separator=':'
  7829. link_all_deplibs=yes
  7830. export_dynamic_flag_spec='${wl}-Bexport'
  7831. runpath_var='LD_RUN_PATH'
  7832. if test "$GCC" = yes; then
  7833. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7834. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7835. else
  7836. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7837. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7838. fi
  7839. ;;
  7840. uts4*)
  7841. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7842. hardcode_libdir_flag_spec='-L$libdir'
  7843. hardcode_shlibpath_var=no
  7844. ;;
  7845. *)
  7846. ld_shlibs=no
  7847. ;;
  7848. esac
  7849. if test x$host_vendor = xsni; then
  7850. case $host in
  7851. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  7852. export_dynamic_flag_spec='${wl}-Blargedynsym'
  7853. ;;
  7854. esac
  7855. fi
  7856. fi
  7857. { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7858. $as_echo "$ld_shlibs" >&6; }
  7859. test "$ld_shlibs" = no && can_build_shared=no
  7860. with_gnu_ld=$with_gnu_ld
  7861. #
  7862. # Do we need to explicitly link libc?
  7863. #
  7864. case "x$archive_cmds_need_lc" in
  7865. x|xyes)
  7866. # Assume -lc should be added
  7867. archive_cmds_need_lc=yes
  7868. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7869. case $archive_cmds in
  7870. *'~'*)
  7871. # FIXME: we may have to deal with multi-command sequences.
  7872. ;;
  7873. '$CC '*)
  7874. # Test whether the compiler implicitly links with -lc since on some
  7875. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7876. # to ld, don't add -lc before -lgcc.
  7877. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7878. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  7879. $RM conftest*
  7880. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7881. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7882. (eval $ac_compile) 2>&5
  7883. ac_status=$?
  7884. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7885. (exit $ac_status); } 2>conftest.err; then
  7886. soname=conftest
  7887. lib=conftest
  7888. libobjs=conftest.$ac_objext
  7889. deplibs=
  7890. wl=$lt_prog_compiler_wl
  7891. pic_flag=$lt_prog_compiler_pic
  7892. compiler_flags=-v
  7893. linker_flags=-v
  7894. verstring=
  7895. output_objdir=.
  7896. libname=conftest
  7897. lt_save_allow_undefined_flag=$allow_undefined_flag
  7898. allow_undefined_flag=
  7899. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7900. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7901. ac_status=$?
  7902. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7903. (exit $ac_status); }
  7904. then
  7905. archive_cmds_need_lc=no
  7906. else
  7907. archive_cmds_need_lc=yes
  7908. fi
  7909. allow_undefined_flag=$lt_save_allow_undefined_flag
  7910. else
  7911. cat conftest.err 1>&5
  7912. fi
  7913. $RM conftest*
  7914. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  7915. $as_echo "$archive_cmds_need_lc" >&6; }
  7916. ;;
  7917. esac
  7918. fi
  7919. ;;
  7920. esac
  7921. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  7922. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  7923. if test "$GCC" = yes; then
  7924. case $host_os in
  7925. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  7926. *) lt_awk_arg="/^libraries:/" ;;
  7927. esac
  7928. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7929. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  7930. # if the path contains ";" then we assume it to be the separator
  7931. # otherwise default to the standard path separator (i.e. ":") - it is
  7932. # assumed that no part of a normal pathname contains ";" but that should
  7933. # okay in the real world where ";" in dirpaths is itself problematic.
  7934. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  7935. else
  7936. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7937. fi
  7938. # Ok, now we have the path, separated by spaces, we can step through it
  7939. # and add multilib dir if necessary.
  7940. lt_tmp_lt_search_path_spec=
  7941. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  7942. for lt_sys_path in $lt_search_path_spec; do
  7943. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  7944. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  7945. else
  7946. test -d "$lt_sys_path" && \
  7947. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  7948. fi
  7949. done
  7950. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  7951. BEGIN {RS=" "; FS="/|\n";} {
  7952. lt_foo="";
  7953. lt_count=0;
  7954. for (lt_i = NF; lt_i > 0; lt_i--) {
  7955. if ($lt_i != "" && $lt_i != ".") {
  7956. if ($lt_i == "..") {
  7957. lt_count++;
  7958. } else {
  7959. if (lt_count == 0) {
  7960. lt_foo="/" $lt_i lt_foo;
  7961. } else {
  7962. lt_count--;
  7963. }
  7964. }
  7965. }
  7966. }
  7967. if (lt_foo != "") { lt_freq[lt_foo]++; }
  7968. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  7969. }'`
  7970. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  7971. else
  7972. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7973. fi
  7974. library_names_spec=
  7975. libname_spec='lib$name'
  7976. soname_spec=
  7977. shrext_cmds=".so"
  7978. postinstall_cmds=
  7979. postuninstall_cmds=
  7980. finish_cmds=
  7981. finish_eval=
  7982. shlibpath_var=
  7983. shlibpath_overrides_runpath=unknown
  7984. version_type=none
  7985. dynamic_linker="$host_os ld.so"
  7986. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7987. need_lib_prefix=unknown
  7988. hardcode_into_libs=no
  7989. # when you set need_version to no, make sure it does not cause -set_version
  7990. # flags to be left without arguments
  7991. need_version=unknown
  7992. case $host_os in
  7993. aix3*)
  7994. version_type=linux
  7995. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7996. shlibpath_var=LIBPATH
  7997. # AIX 3 has no versioning support, so we append a major version to the name.
  7998. soname_spec='${libname}${release}${shared_ext}$major'
  7999. ;;
  8000. aix[4-9]*)
  8001. version_type=linux
  8002. need_lib_prefix=no
  8003. need_version=no
  8004. hardcode_into_libs=yes
  8005. if test "$host_cpu" = ia64; then
  8006. # AIX 5 supports IA64
  8007. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8008. shlibpath_var=LD_LIBRARY_PATH
  8009. else
  8010. # With GCC up to 2.95.x, collect2 would create an import file
  8011. # for dependence libraries. The import file would start with
  8012. # the line `#! .'. This would cause the generated library to
  8013. # depend on `.', always an invalid library. This was fixed in
  8014. # development snapshots of GCC prior to 3.0.
  8015. case $host_os in
  8016. aix4 | aix4.[01] | aix4.[01].*)
  8017. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8018. echo ' yes '
  8019. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8020. :
  8021. else
  8022. can_build_shared=no
  8023. fi
  8024. ;;
  8025. esac
  8026. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8027. # soname into executable. Probably we can add versioning support to
  8028. # collect2, so additional links can be useful in future.
  8029. if test "$aix_use_runtimelinking" = yes; then
  8030. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8031. # instead of lib<name>.a to let people know that these are not
  8032. # typical AIX shared libraries.
  8033. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8034. else
  8035. # We preserve .a as extension for shared libraries through AIX4.2
  8036. # and later when we are not doing run time linking.
  8037. library_names_spec='${libname}${release}.a $libname.a'
  8038. soname_spec='${libname}${release}${shared_ext}$major'
  8039. fi
  8040. shlibpath_var=LIBPATH
  8041. fi
  8042. ;;
  8043. amigaos*)
  8044. case $host_cpu in
  8045. powerpc)
  8046. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8047. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8048. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8049. ;;
  8050. m68k)
  8051. library_names_spec='$libname.ixlibrary $libname.a'
  8052. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8053. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  8054. ;;
  8055. esac
  8056. ;;
  8057. beos*)
  8058. library_names_spec='${libname}${shared_ext}'
  8059. dynamic_linker="$host_os ld.so"
  8060. shlibpath_var=LIBRARY_PATH
  8061. ;;
  8062. bsdi[45]*)
  8063. version_type=linux
  8064. need_version=no
  8065. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8066. soname_spec='${libname}${release}${shared_ext}$major'
  8067. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8068. shlibpath_var=LD_LIBRARY_PATH
  8069. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8070. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8071. # the default ld.so.conf also contains /usr/contrib/lib and
  8072. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8073. # libtool to hard-code these into programs
  8074. ;;
  8075. cygwin* | mingw* | pw32* | cegcc*)
  8076. version_type=windows
  8077. shrext_cmds=".dll"
  8078. need_version=no
  8079. need_lib_prefix=no
  8080. case $GCC,$host_os in
  8081. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8082. library_names_spec='$libname.dll.a'
  8083. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8084. postinstall_cmds='base_file=`basename \${file}`~
  8085. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8086. dldir=$destdir/`dirname \$dlpath`~
  8087. test -d \$dldir || mkdir -p \$dldir~
  8088. $install_prog $dir/$dlname \$dldir/$dlname~
  8089. chmod a+x \$dldir/$dlname~
  8090. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8091. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8092. fi'
  8093. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8094. dlpath=$dir/\$dldll~
  8095. $RM \$dlpath'
  8096. shlibpath_overrides_runpath=yes
  8097. case $host_os in
  8098. cygwin*)
  8099. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8100. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8101. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8102. ;;
  8103. mingw* | cegcc*)
  8104. # MinGW DLLs use traditional 'lib' prefix
  8105. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8106. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8107. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8108. # It is most probably a Windows format PATH printed by
  8109. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8110. # path with ; separators, and with drive letters. We can handle the
  8111. # drive letters (cygwin fileutils understands them), so leave them,
  8112. # especially as we might pass files found there to a mingw objdump,
  8113. # which wouldn't understand a cygwinified path. Ahh.
  8114. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8115. else
  8116. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8117. fi
  8118. ;;
  8119. pw32*)
  8120. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8121. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8122. ;;
  8123. esac
  8124. ;;
  8125. *)
  8126. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8127. ;;
  8128. esac
  8129. dynamic_linker='Win32 ld.exe'
  8130. # FIXME: first we should search . and the directory the executable is in
  8131. shlibpath_var=PATH
  8132. ;;
  8133. darwin* | rhapsody*)
  8134. dynamic_linker="$host_os dyld"
  8135. version_type=darwin
  8136. need_lib_prefix=no
  8137. need_version=no
  8138. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8139. soname_spec='${libname}${release}${major}$shared_ext'
  8140. shlibpath_overrides_runpath=yes
  8141. shlibpath_var=DYLD_LIBRARY_PATH
  8142. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8143. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8144. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8145. ;;
  8146. dgux*)
  8147. version_type=linux
  8148. need_lib_prefix=no
  8149. need_version=no
  8150. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8151. soname_spec='${libname}${release}${shared_ext}$major'
  8152. shlibpath_var=LD_LIBRARY_PATH
  8153. ;;
  8154. freebsd1*)
  8155. dynamic_linker=no
  8156. ;;
  8157. freebsd* | dragonfly*)
  8158. # DragonFly does not have aout. When/if they implement a new
  8159. # versioning mechanism, adjust this.
  8160. if test -x /usr/bin/objformat; then
  8161. objformat=`/usr/bin/objformat`
  8162. else
  8163. case $host_os in
  8164. freebsd[123]*) objformat=aout ;;
  8165. *) objformat=elf ;;
  8166. esac
  8167. fi
  8168. version_type=freebsd-$objformat
  8169. case $version_type in
  8170. freebsd-elf*)
  8171. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8172. need_version=no
  8173. need_lib_prefix=no
  8174. ;;
  8175. freebsd-*)
  8176. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8177. need_version=yes
  8178. ;;
  8179. esac
  8180. shlibpath_var=LD_LIBRARY_PATH
  8181. case $host_os in
  8182. freebsd2*)
  8183. shlibpath_overrides_runpath=yes
  8184. ;;
  8185. freebsd3.[01]* | freebsdelf3.[01]*)
  8186. shlibpath_overrides_runpath=yes
  8187. hardcode_into_libs=yes
  8188. ;;
  8189. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8190. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8191. shlibpath_overrides_runpath=no
  8192. hardcode_into_libs=yes
  8193. ;;
  8194. *) # from 4.6 on, and DragonFly
  8195. shlibpath_overrides_runpath=yes
  8196. hardcode_into_libs=yes
  8197. ;;
  8198. esac
  8199. ;;
  8200. gnu*)
  8201. version_type=linux
  8202. need_lib_prefix=no
  8203. need_version=no
  8204. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8205. soname_spec='${libname}${release}${shared_ext}$major'
  8206. shlibpath_var=LD_LIBRARY_PATH
  8207. hardcode_into_libs=yes
  8208. ;;
  8209. hpux9* | hpux10* | hpux11*)
  8210. # Give a soname corresponding to the major version so that dld.sl refuses to
  8211. # link against other versions.
  8212. version_type=sunos
  8213. need_lib_prefix=no
  8214. need_version=no
  8215. case $host_cpu in
  8216. ia64*)
  8217. shrext_cmds='.so'
  8218. hardcode_into_libs=yes
  8219. dynamic_linker="$host_os dld.so"
  8220. shlibpath_var=LD_LIBRARY_PATH
  8221. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8222. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8223. soname_spec='${libname}${release}${shared_ext}$major'
  8224. if test "X$HPUX_IA64_MODE" = X32; then
  8225. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8226. else
  8227. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8228. fi
  8229. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8230. ;;
  8231. hppa*64*)
  8232. shrext_cmds='.sl'
  8233. hardcode_into_libs=yes
  8234. dynamic_linker="$host_os dld.sl"
  8235. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8236. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8237. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8238. soname_spec='${libname}${release}${shared_ext}$major'
  8239. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8240. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8241. ;;
  8242. *)
  8243. shrext_cmds='.sl'
  8244. dynamic_linker="$host_os dld.sl"
  8245. shlibpath_var=SHLIB_PATH
  8246. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8247. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8248. soname_spec='${libname}${release}${shared_ext}$major'
  8249. ;;
  8250. esac
  8251. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8252. postinstall_cmds='chmod 555 $lib'
  8253. ;;
  8254. interix[3-9]*)
  8255. version_type=linux
  8256. need_lib_prefix=no
  8257. need_version=no
  8258. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8259. soname_spec='${libname}${release}${shared_ext}$major'
  8260. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8261. shlibpath_var=LD_LIBRARY_PATH
  8262. shlibpath_overrides_runpath=no
  8263. hardcode_into_libs=yes
  8264. ;;
  8265. irix5* | irix6* | nonstopux*)
  8266. case $host_os in
  8267. nonstopux*) version_type=nonstopux ;;
  8268. *)
  8269. if test "$lt_cv_prog_gnu_ld" = yes; then
  8270. version_type=linux
  8271. else
  8272. version_type=irix
  8273. fi ;;
  8274. esac
  8275. need_lib_prefix=no
  8276. need_version=no
  8277. soname_spec='${libname}${release}${shared_ext}$major'
  8278. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8279. case $host_os in
  8280. irix5* | nonstopux*)
  8281. libsuff= shlibsuff=
  8282. ;;
  8283. *)
  8284. case $LD in # libtool.m4 will add one of these switches to LD
  8285. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8286. libsuff= shlibsuff= libmagic=32-bit;;
  8287. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8288. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8289. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8290. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8291. *) libsuff= shlibsuff= libmagic=never-match;;
  8292. esac
  8293. ;;
  8294. esac
  8295. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8296. shlibpath_overrides_runpath=no
  8297. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8298. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8299. hardcode_into_libs=yes
  8300. ;;
  8301. # No shared lib support for Linux oldld, aout, or coff.
  8302. linux*oldld* | linux*aout* | linux*coff*)
  8303. dynamic_linker=no
  8304. ;;
  8305. # This must be Linux ELF.
  8306. linux* | k*bsd*-gnu)
  8307. version_type=linux
  8308. need_lib_prefix=no
  8309. need_version=no
  8310. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8311. soname_spec='${libname}${release}${shared_ext}$major'
  8312. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8313. shlibpath_var=LD_LIBRARY_PATH
  8314. shlibpath_overrides_runpath=no
  8315. # Some binutils ld are patched to set DT_RUNPATH
  8316. save_LDFLAGS=$LDFLAGS
  8317. save_libdir=$libdir
  8318. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8319. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8320. cat >conftest.$ac_ext <<_ACEOF
  8321. /* confdefs.h. */
  8322. _ACEOF
  8323. cat confdefs.h >>conftest.$ac_ext
  8324. cat >>conftest.$ac_ext <<_ACEOF
  8325. /* end confdefs.h. */
  8326. int
  8327. main ()
  8328. {
  8329. ;
  8330. return 0;
  8331. }
  8332. _ACEOF
  8333. rm -f conftest.$ac_objext conftest$ac_exeext
  8334. if { (ac_try="$ac_link"
  8335. case "(($ac_try" in
  8336. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8337. *) ac_try_echo=$ac_try;;
  8338. esac
  8339. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8340. $as_echo "$ac_try_echo") >&5
  8341. (eval "$ac_link") 2>conftest.er1
  8342. ac_status=$?
  8343. grep -v '^ *+' conftest.er1 >conftest.err
  8344. rm -f conftest.er1
  8345. cat conftest.err >&5
  8346. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8347. (exit $ac_status); } && {
  8348. test -z "$ac_c_werror_flag" ||
  8349. test ! -s conftest.err
  8350. } && test -s conftest$ac_exeext && {
  8351. test "$cross_compiling" = yes ||
  8352. $as_test_x conftest$ac_exeext
  8353. }; then
  8354. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  8355. shlibpath_overrides_runpath=yes
  8356. fi
  8357. else
  8358. $as_echo "$as_me: failed program was:" >&5
  8359. sed 's/^/| /' conftest.$ac_ext >&5
  8360. fi
  8361. rm -rf conftest.dSYM
  8362. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8363. conftest$ac_exeext conftest.$ac_ext
  8364. LDFLAGS=$save_LDFLAGS
  8365. libdir=$save_libdir
  8366. # This implies no fast_install, which is unacceptable.
  8367. # Some rework will be needed to allow for fast_install
  8368. # before this can be enabled.
  8369. hardcode_into_libs=yes
  8370. # Append ld.so.conf contents to the search path
  8371. if test -f /etc/ld.so.conf; then
  8372. 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;/^$/d' | tr '\n' ' '`
  8373. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8374. fi
  8375. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8376. # powerpc, because MkLinux only supported shared libraries with the
  8377. # GNU dynamic linker. Since this was broken with cross compilers,
  8378. # most powerpc-linux boxes support dynamic linking these days and
  8379. # people can always --disable-shared, the test was removed, and we
  8380. # assume the GNU/Linux dynamic linker is in use.
  8381. dynamic_linker='GNU/Linux ld.so'
  8382. ;;
  8383. netbsd*)
  8384. version_type=sunos
  8385. need_lib_prefix=no
  8386. need_version=no
  8387. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8388. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8389. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8390. dynamic_linker='NetBSD (a.out) ld.so'
  8391. else
  8392. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8393. soname_spec='${libname}${release}${shared_ext}$major'
  8394. dynamic_linker='NetBSD ld.elf_so'
  8395. fi
  8396. shlibpath_var=LD_LIBRARY_PATH
  8397. shlibpath_overrides_runpath=yes
  8398. hardcode_into_libs=yes
  8399. ;;
  8400. newsos6)
  8401. version_type=linux
  8402. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8403. shlibpath_var=LD_LIBRARY_PATH
  8404. shlibpath_overrides_runpath=yes
  8405. ;;
  8406. *nto* | *qnx*)
  8407. version_type=qnx
  8408. need_lib_prefix=no
  8409. need_version=no
  8410. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8411. soname_spec='${libname}${release}${shared_ext}$major'
  8412. shlibpath_var=LD_LIBRARY_PATH
  8413. shlibpath_overrides_runpath=no
  8414. hardcode_into_libs=yes
  8415. dynamic_linker='ldqnx.so'
  8416. ;;
  8417. openbsd*)
  8418. version_type=sunos
  8419. sys_lib_dlsearch_path_spec="/usr/lib"
  8420. need_lib_prefix=no
  8421. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8422. case $host_os in
  8423. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8424. *) need_version=no ;;
  8425. esac
  8426. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8427. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8428. shlibpath_var=LD_LIBRARY_PATH
  8429. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8430. case $host_os in
  8431. openbsd2.[89] | openbsd2.[89].*)
  8432. shlibpath_overrides_runpath=no
  8433. ;;
  8434. *)
  8435. shlibpath_overrides_runpath=yes
  8436. ;;
  8437. esac
  8438. else
  8439. shlibpath_overrides_runpath=yes
  8440. fi
  8441. ;;
  8442. os2*)
  8443. libname_spec='$name'
  8444. shrext_cmds=".dll"
  8445. need_lib_prefix=no
  8446. library_names_spec='$libname${shared_ext} $libname.a'
  8447. dynamic_linker='OS/2 ld.exe'
  8448. shlibpath_var=LIBPATH
  8449. ;;
  8450. osf3* | osf4* | osf5*)
  8451. version_type=osf
  8452. need_lib_prefix=no
  8453. need_version=no
  8454. soname_spec='${libname}${release}${shared_ext}$major'
  8455. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8456. shlibpath_var=LD_LIBRARY_PATH
  8457. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8458. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8459. ;;
  8460. rdos*)
  8461. dynamic_linker=no
  8462. ;;
  8463. solaris*)
  8464. version_type=linux
  8465. need_lib_prefix=no
  8466. need_version=no
  8467. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8468. soname_spec='${libname}${release}${shared_ext}$major'
  8469. shlibpath_var=LD_LIBRARY_PATH
  8470. shlibpath_overrides_runpath=yes
  8471. hardcode_into_libs=yes
  8472. # ldd complains unless libraries are executable
  8473. postinstall_cmds='chmod +x $lib'
  8474. ;;
  8475. sunos4*)
  8476. version_type=sunos
  8477. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8478. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8479. shlibpath_var=LD_LIBRARY_PATH
  8480. shlibpath_overrides_runpath=yes
  8481. if test "$with_gnu_ld" = yes; then
  8482. need_lib_prefix=no
  8483. fi
  8484. need_version=yes
  8485. ;;
  8486. sysv4 | sysv4.3*)
  8487. version_type=linux
  8488. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8489. soname_spec='${libname}${release}${shared_ext}$major'
  8490. shlibpath_var=LD_LIBRARY_PATH
  8491. case $host_vendor in
  8492. sni)
  8493. shlibpath_overrides_runpath=no
  8494. need_lib_prefix=no
  8495. runpath_var=LD_RUN_PATH
  8496. ;;
  8497. siemens)
  8498. need_lib_prefix=no
  8499. ;;
  8500. motorola)
  8501. need_lib_prefix=no
  8502. need_version=no
  8503. shlibpath_overrides_runpath=no
  8504. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8505. ;;
  8506. esac
  8507. ;;
  8508. sysv4*MP*)
  8509. if test -d /usr/nec ;then
  8510. version_type=linux
  8511. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8512. soname_spec='$libname${shared_ext}.$major'
  8513. shlibpath_var=LD_LIBRARY_PATH
  8514. fi
  8515. ;;
  8516. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8517. version_type=freebsd-elf
  8518. need_lib_prefix=no
  8519. need_version=no
  8520. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8521. soname_spec='${libname}${release}${shared_ext}$major'
  8522. shlibpath_var=LD_LIBRARY_PATH
  8523. shlibpath_overrides_runpath=yes
  8524. hardcode_into_libs=yes
  8525. if test "$with_gnu_ld" = yes; then
  8526. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8527. else
  8528. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8529. case $host_os in
  8530. sco3.2v5*)
  8531. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8532. ;;
  8533. esac
  8534. fi
  8535. sys_lib_dlsearch_path_spec='/usr/lib'
  8536. ;;
  8537. tpf*)
  8538. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8539. version_type=linux
  8540. need_lib_prefix=no
  8541. need_version=no
  8542. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8543. shlibpath_var=LD_LIBRARY_PATH
  8544. shlibpath_overrides_runpath=no
  8545. hardcode_into_libs=yes
  8546. ;;
  8547. uts4*)
  8548. version_type=linux
  8549. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8550. soname_spec='${libname}${release}${shared_ext}$major'
  8551. shlibpath_var=LD_LIBRARY_PATH
  8552. ;;
  8553. *)
  8554. dynamic_linker=no
  8555. ;;
  8556. esac
  8557. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8558. $as_echo "$dynamic_linker" >&6; }
  8559. test "$dynamic_linker" = no && can_build_shared=no
  8560. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8561. if test "$GCC" = yes; then
  8562. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8563. fi
  8564. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8565. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8566. fi
  8567. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8568. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8569. fi
  8570. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8571. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8572. hardcode_action=
  8573. if test -n "$hardcode_libdir_flag_spec" ||
  8574. test -n "$runpath_var" ||
  8575. test "X$hardcode_automatic" = "Xyes" ; then
  8576. # We can hardcode non-existent directories.
  8577. if test "$hardcode_direct" != no &&
  8578. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8579. # have to relink, otherwise we might link with an installed library
  8580. # when we should be linking with a yet-to-be-installed one
  8581. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8582. test "$hardcode_minus_L" != no; then
  8583. # Linking always hardcodes the temporary library directory.
  8584. hardcode_action=relink
  8585. else
  8586. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8587. hardcode_action=immediate
  8588. fi
  8589. else
  8590. # We cannot hardcode anything, or else we can only hardcode existing
  8591. # directories.
  8592. hardcode_action=unsupported
  8593. fi
  8594. { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8595. $as_echo "$hardcode_action" >&6; }
  8596. if test "$hardcode_action" = relink ||
  8597. test "$inherit_rpath" = yes; then
  8598. # Fast installation is not supported
  8599. enable_fast_install=no
  8600. elif test "$shlibpath_overrides_runpath" = yes ||
  8601. test "$enable_shared" = no; then
  8602. # Fast installation is not necessary
  8603. enable_fast_install=needless
  8604. fi
  8605. if test "x$enable_dlopen" != xyes; then
  8606. enable_dlopen=unknown
  8607. enable_dlopen_self=unknown
  8608. enable_dlopen_self_static=unknown
  8609. else
  8610. lt_cv_dlopen=no
  8611. lt_cv_dlopen_libs=
  8612. case $host_os in
  8613. beos*)
  8614. lt_cv_dlopen="load_add_on"
  8615. lt_cv_dlopen_libs=
  8616. lt_cv_dlopen_self=yes
  8617. ;;
  8618. mingw* | pw32* | cegcc*)
  8619. lt_cv_dlopen="LoadLibrary"
  8620. lt_cv_dlopen_libs=
  8621. ;;
  8622. cygwin*)
  8623. lt_cv_dlopen="dlopen"
  8624. lt_cv_dlopen_libs=
  8625. ;;
  8626. darwin*)
  8627. # if libdl is installed we need to link against it
  8628. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8629. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8630. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8631. $as_echo_n "(cached) " >&6
  8632. else
  8633. ac_check_lib_save_LIBS=$LIBS
  8634. LIBS="-ldl $LIBS"
  8635. cat >conftest.$ac_ext <<_ACEOF
  8636. /* confdefs.h. */
  8637. _ACEOF
  8638. cat confdefs.h >>conftest.$ac_ext
  8639. cat >>conftest.$ac_ext <<_ACEOF
  8640. /* end confdefs.h. */
  8641. /* Override any GCC internal prototype to avoid an error.
  8642. Use char because int might match the return type of a GCC
  8643. builtin and then its argument prototype would still apply. */
  8644. #ifdef __cplusplus
  8645. extern "C"
  8646. #endif
  8647. char dlopen ();
  8648. int
  8649. main ()
  8650. {
  8651. return dlopen ();
  8652. ;
  8653. return 0;
  8654. }
  8655. _ACEOF
  8656. rm -f conftest.$ac_objext conftest$ac_exeext
  8657. if { (ac_try="$ac_link"
  8658. case "(($ac_try" in
  8659. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8660. *) ac_try_echo=$ac_try;;
  8661. esac
  8662. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8663. $as_echo "$ac_try_echo") >&5
  8664. (eval "$ac_link") 2>conftest.er1
  8665. ac_status=$?
  8666. grep -v '^ *+' conftest.er1 >conftest.err
  8667. rm -f conftest.er1
  8668. cat conftest.err >&5
  8669. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8670. (exit $ac_status); } && {
  8671. test -z "$ac_c_werror_flag" ||
  8672. test ! -s conftest.err
  8673. } && test -s conftest$ac_exeext && {
  8674. test "$cross_compiling" = yes ||
  8675. $as_test_x conftest$ac_exeext
  8676. }; then
  8677. ac_cv_lib_dl_dlopen=yes
  8678. else
  8679. $as_echo "$as_me: failed program was:" >&5
  8680. sed 's/^/| /' conftest.$ac_ext >&5
  8681. ac_cv_lib_dl_dlopen=no
  8682. fi
  8683. rm -rf conftest.dSYM
  8684. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8685. conftest$ac_exeext conftest.$ac_ext
  8686. LIBS=$ac_check_lib_save_LIBS
  8687. fi
  8688. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8689. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8690. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  8691. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8692. else
  8693. lt_cv_dlopen="dyld"
  8694. lt_cv_dlopen_libs=
  8695. lt_cv_dlopen_self=yes
  8696. fi
  8697. ;;
  8698. *)
  8699. { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
  8700. $as_echo_n "checking for shl_load... " >&6; }
  8701. if test "${ac_cv_func_shl_load+set}" = set; then
  8702. $as_echo_n "(cached) " >&6
  8703. else
  8704. cat >conftest.$ac_ext <<_ACEOF
  8705. /* confdefs.h. */
  8706. _ACEOF
  8707. cat confdefs.h >>conftest.$ac_ext
  8708. cat >>conftest.$ac_ext <<_ACEOF
  8709. /* end confdefs.h. */
  8710. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  8711. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8712. #define shl_load innocuous_shl_load
  8713. /* System header to define __stub macros and hopefully few prototypes,
  8714. which can conflict with char shl_load (); below.
  8715. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8716. <limits.h> exists even on freestanding compilers. */
  8717. #ifdef __STDC__
  8718. # include <limits.h>
  8719. #else
  8720. # include <assert.h>
  8721. #endif
  8722. #undef shl_load
  8723. /* Override any GCC internal prototype to avoid an error.
  8724. Use char because int might match the return type of a GCC
  8725. builtin and then its argument prototype would still apply. */
  8726. #ifdef __cplusplus
  8727. extern "C"
  8728. #endif
  8729. char shl_load ();
  8730. /* The GNU C library defines this for functions which it implements
  8731. to always fail with ENOSYS. Some functions are actually named
  8732. something starting with __ and the normal name is an alias. */
  8733. #if defined __stub_shl_load || defined __stub___shl_load
  8734. choke me
  8735. #endif
  8736. int
  8737. main ()
  8738. {
  8739. return shl_load ();
  8740. ;
  8741. return 0;
  8742. }
  8743. _ACEOF
  8744. rm -f conftest.$ac_objext conftest$ac_exeext
  8745. if { (ac_try="$ac_link"
  8746. case "(($ac_try" in
  8747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8748. *) ac_try_echo=$ac_try;;
  8749. esac
  8750. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8751. $as_echo "$ac_try_echo") >&5
  8752. (eval "$ac_link") 2>conftest.er1
  8753. ac_status=$?
  8754. grep -v '^ *+' conftest.er1 >conftest.err
  8755. rm -f conftest.er1
  8756. cat conftest.err >&5
  8757. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8758. (exit $ac_status); } && {
  8759. test -z "$ac_c_werror_flag" ||
  8760. test ! -s conftest.err
  8761. } && test -s conftest$ac_exeext && {
  8762. test "$cross_compiling" = yes ||
  8763. $as_test_x conftest$ac_exeext
  8764. }; then
  8765. ac_cv_func_shl_load=yes
  8766. else
  8767. $as_echo "$as_me: failed program was:" >&5
  8768. sed 's/^/| /' conftest.$ac_ext >&5
  8769. ac_cv_func_shl_load=no
  8770. fi
  8771. rm -rf conftest.dSYM
  8772. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8773. conftest$ac_exeext conftest.$ac_ext
  8774. fi
  8775. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8776. $as_echo "$ac_cv_func_shl_load" >&6; }
  8777. if test "x$ac_cv_func_shl_load" = x""yes; then
  8778. lt_cv_dlopen="shl_load"
  8779. else
  8780. { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8781. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  8782. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8783. $as_echo_n "(cached) " >&6
  8784. else
  8785. ac_check_lib_save_LIBS=$LIBS
  8786. LIBS="-ldld $LIBS"
  8787. cat >conftest.$ac_ext <<_ACEOF
  8788. /* confdefs.h. */
  8789. _ACEOF
  8790. cat confdefs.h >>conftest.$ac_ext
  8791. cat >>conftest.$ac_ext <<_ACEOF
  8792. /* end confdefs.h. */
  8793. /* Override any GCC internal prototype to avoid an error.
  8794. Use char because int might match the return type of a GCC
  8795. builtin and then its argument prototype would still apply. */
  8796. #ifdef __cplusplus
  8797. extern "C"
  8798. #endif
  8799. char shl_load ();
  8800. int
  8801. main ()
  8802. {
  8803. return shl_load ();
  8804. ;
  8805. return 0;
  8806. }
  8807. _ACEOF
  8808. rm -f conftest.$ac_objext conftest$ac_exeext
  8809. if { (ac_try="$ac_link"
  8810. case "(($ac_try" in
  8811. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8812. *) ac_try_echo=$ac_try;;
  8813. esac
  8814. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8815. $as_echo "$ac_try_echo") >&5
  8816. (eval "$ac_link") 2>conftest.er1
  8817. ac_status=$?
  8818. grep -v '^ *+' conftest.er1 >conftest.err
  8819. rm -f conftest.er1
  8820. cat conftest.err >&5
  8821. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8822. (exit $ac_status); } && {
  8823. test -z "$ac_c_werror_flag" ||
  8824. test ! -s conftest.err
  8825. } && test -s conftest$ac_exeext && {
  8826. test "$cross_compiling" = yes ||
  8827. $as_test_x conftest$ac_exeext
  8828. }; then
  8829. ac_cv_lib_dld_shl_load=yes
  8830. else
  8831. $as_echo "$as_me: failed program was:" >&5
  8832. sed 's/^/| /' conftest.$ac_ext >&5
  8833. ac_cv_lib_dld_shl_load=no
  8834. fi
  8835. rm -rf conftest.dSYM
  8836. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8837. conftest$ac_exeext conftest.$ac_ext
  8838. LIBS=$ac_check_lib_save_LIBS
  8839. fi
  8840. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8841. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  8842. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
  8843. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  8844. else
  8845. { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
  8846. $as_echo_n "checking for dlopen... " >&6; }
  8847. if test "${ac_cv_func_dlopen+set}" = set; then
  8848. $as_echo_n "(cached) " >&6
  8849. else
  8850. cat >conftest.$ac_ext <<_ACEOF
  8851. /* confdefs.h. */
  8852. _ACEOF
  8853. cat confdefs.h >>conftest.$ac_ext
  8854. cat >>conftest.$ac_ext <<_ACEOF
  8855. /* end confdefs.h. */
  8856. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8857. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8858. #define dlopen innocuous_dlopen
  8859. /* System header to define __stub macros and hopefully few prototypes,
  8860. which can conflict with char dlopen (); below.
  8861. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8862. <limits.h> exists even on freestanding compilers. */
  8863. #ifdef __STDC__
  8864. # include <limits.h>
  8865. #else
  8866. # include <assert.h>
  8867. #endif
  8868. #undef dlopen
  8869. /* Override any GCC internal prototype to avoid an error.
  8870. Use char because int might match the return type of a GCC
  8871. builtin and then its argument prototype would still apply. */
  8872. #ifdef __cplusplus
  8873. extern "C"
  8874. #endif
  8875. char dlopen ();
  8876. /* The GNU C library defines this for functions which it implements
  8877. to always fail with ENOSYS. Some functions are actually named
  8878. something starting with __ and the normal name is an alias. */
  8879. #if defined __stub_dlopen || defined __stub___dlopen
  8880. choke me
  8881. #endif
  8882. int
  8883. main ()
  8884. {
  8885. return dlopen ();
  8886. ;
  8887. return 0;
  8888. }
  8889. _ACEOF
  8890. rm -f conftest.$ac_objext conftest$ac_exeext
  8891. if { (ac_try="$ac_link"
  8892. case "(($ac_try" in
  8893. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8894. *) ac_try_echo=$ac_try;;
  8895. esac
  8896. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8897. $as_echo "$ac_try_echo") >&5
  8898. (eval "$ac_link") 2>conftest.er1
  8899. ac_status=$?
  8900. grep -v '^ *+' conftest.er1 >conftest.err
  8901. rm -f conftest.er1
  8902. cat conftest.err >&5
  8903. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8904. (exit $ac_status); } && {
  8905. test -z "$ac_c_werror_flag" ||
  8906. test ! -s conftest.err
  8907. } && test -s conftest$ac_exeext && {
  8908. test "$cross_compiling" = yes ||
  8909. $as_test_x conftest$ac_exeext
  8910. }; then
  8911. ac_cv_func_dlopen=yes
  8912. else
  8913. $as_echo "$as_me: failed program was:" >&5
  8914. sed 's/^/| /' conftest.$ac_ext >&5
  8915. ac_cv_func_dlopen=no
  8916. fi
  8917. rm -rf conftest.dSYM
  8918. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8919. conftest$ac_exeext conftest.$ac_ext
  8920. fi
  8921. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8922. $as_echo "$ac_cv_func_dlopen" >&6; }
  8923. if test "x$ac_cv_func_dlopen" = x""yes; then
  8924. lt_cv_dlopen="dlopen"
  8925. else
  8926. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8927. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8928. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8929. $as_echo_n "(cached) " >&6
  8930. else
  8931. ac_check_lib_save_LIBS=$LIBS
  8932. LIBS="-ldl $LIBS"
  8933. cat >conftest.$ac_ext <<_ACEOF
  8934. /* confdefs.h. */
  8935. _ACEOF
  8936. cat confdefs.h >>conftest.$ac_ext
  8937. cat >>conftest.$ac_ext <<_ACEOF
  8938. /* end confdefs.h. */
  8939. /* Override any GCC internal prototype to avoid an error.
  8940. Use char because int might match the return type of a GCC
  8941. builtin and then its argument prototype would still apply. */
  8942. #ifdef __cplusplus
  8943. extern "C"
  8944. #endif
  8945. char dlopen ();
  8946. int
  8947. main ()
  8948. {
  8949. return dlopen ();
  8950. ;
  8951. return 0;
  8952. }
  8953. _ACEOF
  8954. rm -f conftest.$ac_objext conftest$ac_exeext
  8955. if { (ac_try="$ac_link"
  8956. case "(($ac_try" in
  8957. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8958. *) ac_try_echo=$ac_try;;
  8959. esac
  8960. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8961. $as_echo "$ac_try_echo") >&5
  8962. (eval "$ac_link") 2>conftest.er1
  8963. ac_status=$?
  8964. grep -v '^ *+' conftest.er1 >conftest.err
  8965. rm -f conftest.er1
  8966. cat conftest.err >&5
  8967. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8968. (exit $ac_status); } && {
  8969. test -z "$ac_c_werror_flag" ||
  8970. test ! -s conftest.err
  8971. } && test -s conftest$ac_exeext && {
  8972. test "$cross_compiling" = yes ||
  8973. $as_test_x conftest$ac_exeext
  8974. }; then
  8975. ac_cv_lib_dl_dlopen=yes
  8976. else
  8977. $as_echo "$as_me: failed program was:" >&5
  8978. sed 's/^/| /' conftest.$ac_ext >&5
  8979. ac_cv_lib_dl_dlopen=no
  8980. fi
  8981. rm -rf conftest.dSYM
  8982. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8983. conftest$ac_exeext conftest.$ac_ext
  8984. LIBS=$ac_check_lib_save_LIBS
  8985. fi
  8986. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8987. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8988. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  8989. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8990. else
  8991. { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  8992. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  8993. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  8994. $as_echo_n "(cached) " >&6
  8995. else
  8996. ac_check_lib_save_LIBS=$LIBS
  8997. LIBS="-lsvld $LIBS"
  8998. cat >conftest.$ac_ext <<_ACEOF
  8999. /* confdefs.h. */
  9000. _ACEOF
  9001. cat confdefs.h >>conftest.$ac_ext
  9002. cat >>conftest.$ac_ext <<_ACEOF
  9003. /* end confdefs.h. */
  9004. /* Override any GCC internal prototype to avoid an error.
  9005. Use char because int might match the return type of a GCC
  9006. builtin and then its argument prototype would still apply. */
  9007. #ifdef __cplusplus
  9008. extern "C"
  9009. #endif
  9010. char dlopen ();
  9011. int
  9012. main ()
  9013. {
  9014. return dlopen ();
  9015. ;
  9016. return 0;
  9017. }
  9018. _ACEOF
  9019. rm -f conftest.$ac_objext conftest$ac_exeext
  9020. if { (ac_try="$ac_link"
  9021. case "(($ac_try" in
  9022. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9023. *) ac_try_echo=$ac_try;;
  9024. esac
  9025. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9026. $as_echo "$ac_try_echo") >&5
  9027. (eval "$ac_link") 2>conftest.er1
  9028. ac_status=$?
  9029. grep -v '^ *+' conftest.er1 >conftest.err
  9030. rm -f conftest.er1
  9031. cat conftest.err >&5
  9032. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9033. (exit $ac_status); } && {
  9034. test -z "$ac_c_werror_flag" ||
  9035. test ! -s conftest.err
  9036. } && test -s conftest$ac_exeext && {
  9037. test "$cross_compiling" = yes ||
  9038. $as_test_x conftest$ac_exeext
  9039. }; then
  9040. ac_cv_lib_svld_dlopen=yes
  9041. else
  9042. $as_echo "$as_me: failed program was:" >&5
  9043. sed 's/^/| /' conftest.$ac_ext >&5
  9044. ac_cv_lib_svld_dlopen=no
  9045. fi
  9046. rm -rf conftest.dSYM
  9047. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9048. conftest$ac_exeext conftest.$ac_ext
  9049. LIBS=$ac_check_lib_save_LIBS
  9050. fi
  9051. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  9052. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9053. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
  9054. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9055. else
  9056. { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  9057. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9058. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  9059. $as_echo_n "(cached) " >&6
  9060. else
  9061. ac_check_lib_save_LIBS=$LIBS
  9062. LIBS="-ldld $LIBS"
  9063. cat >conftest.$ac_ext <<_ACEOF
  9064. /* confdefs.h. */
  9065. _ACEOF
  9066. cat confdefs.h >>conftest.$ac_ext
  9067. cat >>conftest.$ac_ext <<_ACEOF
  9068. /* end confdefs.h. */
  9069. /* Override any GCC internal prototype to avoid an error.
  9070. Use char because int might match the return type of a GCC
  9071. builtin and then its argument prototype would still apply. */
  9072. #ifdef __cplusplus
  9073. extern "C"
  9074. #endif
  9075. char dld_link ();
  9076. int
  9077. main ()
  9078. {
  9079. return dld_link ();
  9080. ;
  9081. return 0;
  9082. }
  9083. _ACEOF
  9084. rm -f conftest.$ac_objext conftest$ac_exeext
  9085. if { (ac_try="$ac_link"
  9086. case "(($ac_try" in
  9087. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9088. *) ac_try_echo=$ac_try;;
  9089. esac
  9090. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9091. $as_echo "$ac_try_echo") >&5
  9092. (eval "$ac_link") 2>conftest.er1
  9093. ac_status=$?
  9094. grep -v '^ *+' conftest.er1 >conftest.err
  9095. rm -f conftest.er1
  9096. cat conftest.err >&5
  9097. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9098. (exit $ac_status); } && {
  9099. test -z "$ac_c_werror_flag" ||
  9100. test ! -s conftest.err
  9101. } && test -s conftest$ac_exeext && {
  9102. test "$cross_compiling" = yes ||
  9103. $as_test_x conftest$ac_exeext
  9104. }; then
  9105. ac_cv_lib_dld_dld_link=yes
  9106. else
  9107. $as_echo "$as_me: failed program was:" >&5
  9108. sed 's/^/| /' conftest.$ac_ext >&5
  9109. ac_cv_lib_dld_dld_link=no
  9110. fi
  9111. rm -rf conftest.dSYM
  9112. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9113. conftest$ac_exeext conftest.$ac_ext
  9114. LIBS=$ac_check_lib_save_LIBS
  9115. fi
  9116. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  9117. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9118. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
  9119. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9120. fi
  9121. fi
  9122. fi
  9123. fi
  9124. fi
  9125. fi
  9126. ;;
  9127. esac
  9128. if test "x$lt_cv_dlopen" != xno; then
  9129. enable_dlopen=yes
  9130. else
  9131. enable_dlopen=no
  9132. fi
  9133. case $lt_cv_dlopen in
  9134. dlopen)
  9135. save_CPPFLAGS="$CPPFLAGS"
  9136. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9137. save_LDFLAGS="$LDFLAGS"
  9138. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9139. save_LIBS="$LIBS"
  9140. LIBS="$lt_cv_dlopen_libs $LIBS"
  9141. { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  9142. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9143. if test "${lt_cv_dlopen_self+set}" = set; then
  9144. $as_echo_n "(cached) " >&6
  9145. else
  9146. if test "$cross_compiling" = yes; then :
  9147. lt_cv_dlopen_self=cross
  9148. else
  9149. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9150. lt_status=$lt_dlunknown
  9151. cat > conftest.$ac_ext <<_LT_EOF
  9152. #line 10731 "configure"
  9153. #include "confdefs.h"
  9154. #if HAVE_DLFCN_H
  9155. #include <dlfcn.h>
  9156. #endif
  9157. #include <stdio.h>
  9158. #ifdef RTLD_GLOBAL
  9159. # define LT_DLGLOBAL RTLD_GLOBAL
  9160. #else
  9161. # ifdef DL_GLOBAL
  9162. # define LT_DLGLOBAL DL_GLOBAL
  9163. # else
  9164. # define LT_DLGLOBAL 0
  9165. # endif
  9166. #endif
  9167. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9168. find out it does not work in some platform. */
  9169. #ifndef LT_DLLAZY_OR_NOW
  9170. # ifdef RTLD_LAZY
  9171. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9172. # else
  9173. # ifdef DL_LAZY
  9174. # define LT_DLLAZY_OR_NOW DL_LAZY
  9175. # else
  9176. # ifdef RTLD_NOW
  9177. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9178. # else
  9179. # ifdef DL_NOW
  9180. # define LT_DLLAZY_OR_NOW DL_NOW
  9181. # else
  9182. # define LT_DLLAZY_OR_NOW 0
  9183. # endif
  9184. # endif
  9185. # endif
  9186. # endif
  9187. #endif
  9188. void fnord() { int i=42;}
  9189. int main ()
  9190. {
  9191. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9192. int status = $lt_dlunknown;
  9193. if (self)
  9194. {
  9195. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9196. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9197. /* dlclose (self); */
  9198. }
  9199. else
  9200. puts (dlerror ());
  9201. return status;
  9202. }
  9203. _LT_EOF
  9204. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9205. (eval $ac_link) 2>&5
  9206. ac_status=$?
  9207. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9208. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9209. (./conftest; exit; ) >&5 2>/dev/null
  9210. lt_status=$?
  9211. case x$lt_status in
  9212. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9213. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9214. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9215. esac
  9216. else :
  9217. # compilation failed
  9218. lt_cv_dlopen_self=no
  9219. fi
  9220. fi
  9221. rm -fr conftest*
  9222. fi
  9223. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  9224. $as_echo "$lt_cv_dlopen_self" >&6; }
  9225. if test "x$lt_cv_dlopen_self" = xyes; then
  9226. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9227. { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  9228. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9229. if test "${lt_cv_dlopen_self_static+set}" = set; then
  9230. $as_echo_n "(cached) " >&6
  9231. else
  9232. if test "$cross_compiling" = yes; then :
  9233. lt_cv_dlopen_self_static=cross
  9234. else
  9235. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9236. lt_status=$lt_dlunknown
  9237. cat > conftest.$ac_ext <<_LT_EOF
  9238. #line 10827 "configure"
  9239. #include "confdefs.h"
  9240. #if HAVE_DLFCN_H
  9241. #include <dlfcn.h>
  9242. #endif
  9243. #include <stdio.h>
  9244. #ifdef RTLD_GLOBAL
  9245. # define LT_DLGLOBAL RTLD_GLOBAL
  9246. #else
  9247. # ifdef DL_GLOBAL
  9248. # define LT_DLGLOBAL DL_GLOBAL
  9249. # else
  9250. # define LT_DLGLOBAL 0
  9251. # endif
  9252. #endif
  9253. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9254. find out it does not work in some platform. */
  9255. #ifndef LT_DLLAZY_OR_NOW
  9256. # ifdef RTLD_LAZY
  9257. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9258. # else
  9259. # ifdef DL_LAZY
  9260. # define LT_DLLAZY_OR_NOW DL_LAZY
  9261. # else
  9262. # ifdef RTLD_NOW
  9263. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9264. # else
  9265. # ifdef DL_NOW
  9266. # define LT_DLLAZY_OR_NOW DL_NOW
  9267. # else
  9268. # define LT_DLLAZY_OR_NOW 0
  9269. # endif
  9270. # endif
  9271. # endif
  9272. # endif
  9273. #endif
  9274. void fnord() { int i=42;}
  9275. int main ()
  9276. {
  9277. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9278. int status = $lt_dlunknown;
  9279. if (self)
  9280. {
  9281. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9282. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9283. /* dlclose (self); */
  9284. }
  9285. else
  9286. puts (dlerror ());
  9287. return status;
  9288. }
  9289. _LT_EOF
  9290. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9291. (eval $ac_link) 2>&5
  9292. ac_status=$?
  9293. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9294. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9295. (./conftest; exit; ) >&5 2>/dev/null
  9296. lt_status=$?
  9297. case x$lt_status in
  9298. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9299. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9300. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9301. esac
  9302. else :
  9303. # compilation failed
  9304. lt_cv_dlopen_self_static=no
  9305. fi
  9306. fi
  9307. rm -fr conftest*
  9308. fi
  9309. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  9310. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9311. fi
  9312. CPPFLAGS="$save_CPPFLAGS"
  9313. LDFLAGS="$save_LDFLAGS"
  9314. LIBS="$save_LIBS"
  9315. ;;
  9316. esac
  9317. case $lt_cv_dlopen_self in
  9318. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9319. *) enable_dlopen_self=unknown ;;
  9320. esac
  9321. case $lt_cv_dlopen_self_static in
  9322. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9323. *) enable_dlopen_self_static=unknown ;;
  9324. esac
  9325. fi
  9326. striplib=
  9327. old_striplib=
  9328. { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  9329. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9330. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9331. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9332. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9333. { $as_echo "$as_me:$LINENO: result: yes" >&5
  9334. $as_echo "yes" >&6; }
  9335. else
  9336. # FIXME - insert some real tests, host_os isn't really good enough
  9337. case $host_os in
  9338. darwin*)
  9339. if test -n "$STRIP" ; then
  9340. striplib="$STRIP -x"
  9341. old_striplib="$STRIP -S"
  9342. { $as_echo "$as_me:$LINENO: result: yes" >&5
  9343. $as_echo "yes" >&6; }
  9344. else
  9345. { $as_echo "$as_me:$LINENO: result: no" >&5
  9346. $as_echo "no" >&6; }
  9347. fi
  9348. ;;
  9349. *)
  9350. { $as_echo "$as_me:$LINENO: result: no" >&5
  9351. $as_echo "no" >&6; }
  9352. ;;
  9353. esac
  9354. fi
  9355. # Report which library types will actually be built
  9356. { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  9357. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9358. { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  9359. $as_echo "$can_build_shared" >&6; }
  9360. { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  9361. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9362. test "$can_build_shared" = "no" && enable_shared=no
  9363. # On AIX, shared libraries and static libraries use the same namespace, and
  9364. # are all built from PIC.
  9365. case $host_os in
  9366. aix3*)
  9367. test "$enable_shared" = yes && enable_static=no
  9368. if test -n "$RANLIB"; then
  9369. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9370. postinstall_cmds='$RANLIB $lib'
  9371. fi
  9372. ;;
  9373. aix[4-9]*)
  9374. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9375. test "$enable_shared" = yes && enable_static=no
  9376. fi
  9377. ;;
  9378. esac
  9379. { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  9380. $as_echo "$enable_shared" >&6; }
  9381. { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  9382. $as_echo_n "checking whether to build static libraries... " >&6; }
  9383. # Make sure either enable_shared or enable_static is yes.
  9384. test "$enable_shared" = yes || enable_static=yes
  9385. { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  9386. $as_echo "$enable_static" >&6; }
  9387. fi
  9388. ac_ext=c
  9389. ac_cpp='$CPP $CPPFLAGS'
  9390. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9391. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9392. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9393. CC="$lt_save_CC"
  9394. ac_config_commands="$ac_config_commands libtool"
  9395. # Only expand once:
  9396. CFLAG_VISIBILITY=
  9397. HAVE_VISIBILITY=0
  9398. if test -n "$GCC"; then
  9399. { $as_echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
  9400. $as_echo_n "checking for simple visibility declarations... " >&6; }
  9401. if test "${gl_cv_cc_visibility+set}" = set; then
  9402. $as_echo_n "(cached) " >&6
  9403. else
  9404. gl_save_CFLAGS="$CFLAGS"
  9405. CFLAGS="$CFLAGS -fvisibility=hidden"
  9406. cat >conftest.$ac_ext <<_ACEOF
  9407. /* confdefs.h. */
  9408. _ACEOF
  9409. cat confdefs.h >>conftest.$ac_ext
  9410. cat >>conftest.$ac_ext <<_ACEOF
  9411. /* end confdefs.h. */
  9412. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  9413. extern __attribute__((__visibility__("default"))) int exportedvar;
  9414. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  9415. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  9416. int
  9417. main ()
  9418. {
  9419. ;
  9420. return 0;
  9421. }
  9422. _ACEOF
  9423. rm -f conftest.$ac_objext
  9424. if { (ac_try="$ac_compile"
  9425. case "(($ac_try" in
  9426. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9427. *) ac_try_echo=$ac_try;;
  9428. esac
  9429. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9430. $as_echo "$ac_try_echo") >&5
  9431. (eval "$ac_compile") 2>conftest.er1
  9432. ac_status=$?
  9433. grep -v '^ *+' conftest.er1 >conftest.err
  9434. rm -f conftest.er1
  9435. cat conftest.err >&5
  9436. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9437. (exit $ac_status); } && {
  9438. test -z "$ac_c_werror_flag" ||
  9439. test ! -s conftest.err
  9440. } && test -s conftest.$ac_objext; then
  9441. gl_cv_cc_visibility=yes
  9442. else
  9443. $as_echo "$as_me: failed program was:" >&5
  9444. sed 's/^/| /' conftest.$ac_ext >&5
  9445. gl_cv_cc_visibility=no
  9446. fi
  9447. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9448. CFLAGS="$gl_save_CFLAGS"
  9449. fi
  9450. { $as_echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
  9451. $as_echo "$gl_cv_cc_visibility" >&6; }
  9452. if test $gl_cv_cc_visibility = yes; then
  9453. CFLAG_VISIBILITY="-fvisibility=hidden"
  9454. HAVE_VISIBILITY=1
  9455. fi
  9456. fi
  9457. cat >>confdefs.h <<_ACEOF
  9458. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  9459. _ACEOF
  9460. { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  9461. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  9462. if test "${am_cv_langinfo_codeset+set}" = set; then
  9463. $as_echo_n "(cached) " >&6
  9464. else
  9465. cat >conftest.$ac_ext <<_ACEOF
  9466. /* confdefs.h. */
  9467. _ACEOF
  9468. cat confdefs.h >>conftest.$ac_ext
  9469. cat >>conftest.$ac_ext <<_ACEOF
  9470. /* end confdefs.h. */
  9471. #include <langinfo.h>
  9472. int
  9473. main ()
  9474. {
  9475. char* cs = nl_langinfo(CODESET);
  9476. ;
  9477. return 0;
  9478. }
  9479. _ACEOF
  9480. rm -f conftest.$ac_objext conftest$ac_exeext
  9481. if { (ac_try="$ac_link"
  9482. case "(($ac_try" in
  9483. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9484. *) ac_try_echo=$ac_try;;
  9485. esac
  9486. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9487. $as_echo "$ac_try_echo") >&5
  9488. (eval "$ac_link") 2>conftest.er1
  9489. ac_status=$?
  9490. grep -v '^ *+' conftest.er1 >conftest.err
  9491. rm -f conftest.er1
  9492. cat conftest.err >&5
  9493. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9494. (exit $ac_status); } && {
  9495. test -z "$ac_c_werror_flag" ||
  9496. test ! -s conftest.err
  9497. } && test -s conftest$ac_exeext && {
  9498. test "$cross_compiling" = yes ||
  9499. $as_test_x conftest$ac_exeext
  9500. }; then
  9501. am_cv_langinfo_codeset=yes
  9502. else
  9503. $as_echo "$as_me: failed program was:" >&5
  9504. sed 's/^/| /' conftest.$ac_ext >&5
  9505. am_cv_langinfo_codeset=no
  9506. fi
  9507. rm -rf conftest.dSYM
  9508. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9509. conftest$ac_exeext conftest.$ac_ext
  9510. fi
  9511. { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  9512. $as_echo "$am_cv_langinfo_codeset" >&6; }
  9513. if test $am_cv_langinfo_codeset = yes; then
  9514. cat >>confdefs.h <<\_ACEOF
  9515. #define HAVE_LANGINFO_CODESET 1
  9516. _ACEOF
  9517. fi
  9518. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  9519. $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
  9520. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  9521. $as_echo_n "(cached) " >&6
  9522. else
  9523. cat >conftest.$ac_ext <<_ACEOF
  9524. /* confdefs.h. */
  9525. _ACEOF
  9526. cat confdefs.h >>conftest.$ac_ext
  9527. cat >>conftest.$ac_ext <<_ACEOF
  9528. /* end confdefs.h. */
  9529. #include <features.h>
  9530. #ifdef __GNU_LIBRARY__
  9531. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  9532. Lucky GNU user
  9533. #endif
  9534. #endif
  9535. _ACEOF
  9536. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9537. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  9538. ac_cv_gnu_library_2_1=yes
  9539. else
  9540. ac_cv_gnu_library_2_1=no
  9541. fi
  9542. rm -f conftest*
  9543. fi
  9544. { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  9545. $as_echo "$ac_cv_gnu_library_2_1" >&6; }
  9546. GLIBC21="$ac_cv_gnu_library_2_1"
  9547. for ac_func in setlocale
  9548. do
  9549. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9550. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  9551. $as_echo_n "checking for $ac_func... " >&6; }
  9552. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9553. $as_echo_n "(cached) " >&6
  9554. else
  9555. cat >conftest.$ac_ext <<_ACEOF
  9556. /* confdefs.h. */
  9557. _ACEOF
  9558. cat confdefs.h >>conftest.$ac_ext
  9559. cat >>conftest.$ac_ext <<_ACEOF
  9560. /* end confdefs.h. */
  9561. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9562. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9563. #define $ac_func innocuous_$ac_func
  9564. /* System header to define __stub macros and hopefully few prototypes,
  9565. which can conflict with char $ac_func (); below.
  9566. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9567. <limits.h> exists even on freestanding compilers. */
  9568. #ifdef __STDC__
  9569. # include <limits.h>
  9570. #else
  9571. # include <assert.h>
  9572. #endif
  9573. #undef $ac_func
  9574. /* Override any GCC internal prototype to avoid an error.
  9575. Use char because int might match the return type of a GCC
  9576. builtin and then its argument prototype would still apply. */
  9577. #ifdef __cplusplus
  9578. extern "C"
  9579. #endif
  9580. char $ac_func ();
  9581. /* The GNU C library defines this for functions which it implements
  9582. to always fail with ENOSYS. Some functions are actually named
  9583. something starting with __ and the normal name is an alias. */
  9584. #if defined __stub_$ac_func || defined __stub___$ac_func
  9585. choke me
  9586. #endif
  9587. int
  9588. main ()
  9589. {
  9590. return $ac_func ();
  9591. ;
  9592. return 0;
  9593. }
  9594. _ACEOF
  9595. rm -f conftest.$ac_objext conftest$ac_exeext
  9596. if { (ac_try="$ac_link"
  9597. case "(($ac_try" in
  9598. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9599. *) ac_try_echo=$ac_try;;
  9600. esac
  9601. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9602. $as_echo "$ac_try_echo") >&5
  9603. (eval "$ac_link") 2>conftest.er1
  9604. ac_status=$?
  9605. grep -v '^ *+' conftest.er1 >conftest.err
  9606. rm -f conftest.er1
  9607. cat conftest.err >&5
  9608. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9609. (exit $ac_status); } && {
  9610. test -z "$ac_c_werror_flag" ||
  9611. test ! -s conftest.err
  9612. } && test -s conftest$ac_exeext && {
  9613. test "$cross_compiling" = yes ||
  9614. $as_test_x conftest$ac_exeext
  9615. }; then
  9616. eval "$as_ac_var=yes"
  9617. else
  9618. $as_echo "$as_me: failed program was:" >&5
  9619. sed 's/^/| /' conftest.$ac_ext >&5
  9620. eval "$as_ac_var=no"
  9621. fi
  9622. rm -rf conftest.dSYM
  9623. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9624. conftest$ac_exeext conftest.$ac_ext
  9625. fi
  9626. ac_res=`eval 'as_val=${'$as_ac_var'}
  9627. $as_echo "$as_val"'`
  9628. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9629. $as_echo "$ac_res" >&6; }
  9630. as_val=`eval 'as_val=${'$as_ac_var'}
  9631. $as_echo "$as_val"'`
  9632. if test "x$as_val" = x""yes; then
  9633. cat >>confdefs.h <<_ACEOF
  9634. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9635. _ACEOF
  9636. fi
  9637. done
  9638. ac_config_files="$ac_config_files Makefile"
  9639. ac_config_files="$ac_config_files lib/Makefile"
  9640. ac_config_files="$ac_config_files include/localcharset.h:include/localcharset.h.build.in"
  9641. ac_config_files="$ac_config_files include/localcharset.h.inst:include/localcharset.h.in"
  9642. cat >confcache <<\_ACEOF
  9643. # This file is a shell script that caches the results of configure
  9644. # tests run on this system so they can be shared between configure
  9645. # scripts and configure runs, see configure's option --config-cache.
  9646. # It is not useful on other systems. If it contains results you don't
  9647. # want to keep, you may remove or edit it.
  9648. #
  9649. # config.status only pays attention to the cache file if you give it
  9650. # the --recheck option to rerun configure.
  9651. #
  9652. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9653. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9654. # following values.
  9655. _ACEOF
  9656. # The following way of writing the cache mishandles newlines in values,
  9657. # but we know of no workaround that is simple, portable, and efficient.
  9658. # So, we kill variables containing newlines.
  9659. # Ultrix sh set writes to stderr and can't be redirected directly,
  9660. # and sets the high bit in the cache file unless we assign to the vars.
  9661. (
  9662. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9663. eval ac_val=\$$ac_var
  9664. case $ac_val in #(
  9665. *${as_nl}*)
  9666. case $ac_var in #(
  9667. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  9668. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  9669. esac
  9670. case $ac_var in #(
  9671. _ | IFS | as_nl) ;; #(
  9672. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  9673. *) $as_unset $ac_var ;;
  9674. esac ;;
  9675. esac
  9676. done
  9677. (set) 2>&1 |
  9678. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9679. *${as_nl}ac_space=\ *)
  9680. # `set' does not quote correctly, so add quotes (double-quote
  9681. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9682. sed -n \
  9683. "s/'/'\\\\''/g;
  9684. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9685. ;; #(
  9686. *)
  9687. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9688. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9689. ;;
  9690. esac |
  9691. sort
  9692. ) |
  9693. sed '
  9694. /^ac_cv_env_/b end
  9695. t clear
  9696. :clear
  9697. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9698. t end
  9699. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9700. :end' >>confcache
  9701. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9702. if test -w "$cache_file"; then
  9703. test "x$cache_file" != "x/dev/null" &&
  9704. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  9705. $as_echo "$as_me: updating cache $cache_file" >&6;}
  9706. cat confcache >$cache_file
  9707. else
  9708. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  9709. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  9710. fi
  9711. fi
  9712. rm -f confcache
  9713. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9714. # Let make expand exec_prefix.
  9715. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9716. DEFS=-DHAVE_CONFIG_H
  9717. ac_libobjs=
  9718. ac_ltlibobjs=
  9719. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9720. # 1. Remove the extension, and $U if already installed.
  9721. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  9722. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  9723. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  9724. # will be set to the directory where LIBOBJS objects are built.
  9725. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  9726. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  9727. done
  9728. LIBOBJS=$ac_libobjs
  9729. LTLIBOBJS=$ac_ltlibobjs
  9730. : ${CONFIG_STATUS=./config.status}
  9731. ac_write_fail=0
  9732. ac_clean_files_save=$ac_clean_files
  9733. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9734. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  9735. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9736. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9737. #! $SHELL
  9738. # Generated by $as_me.
  9739. # Run this file to recreate the current configuration.
  9740. # Compiler output produced by configure, useful for debugging
  9741. # configure, is in config.log if it exists.
  9742. debug=false
  9743. ac_cs_recheck=false
  9744. ac_cs_silent=false
  9745. SHELL=\${CONFIG_SHELL-$SHELL}
  9746. _ACEOF
  9747. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9748. ## --------------------- ##
  9749. ## M4sh Initialization. ##
  9750. ## --------------------- ##
  9751. # Be more Bourne compatible
  9752. DUALCASE=1; export DUALCASE # for MKS sh
  9753. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  9754. emulate sh
  9755. NULLCMD=:
  9756. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  9757. # is contrary to our usage. Disable this feature.
  9758. alias -g '${1+"$@"}'='"$@"'
  9759. setopt NO_GLOB_SUBST
  9760. else
  9761. case `(set -o) 2>/dev/null` in
  9762. *posix*) set -o posix ;;
  9763. esac
  9764. fi
  9765. # PATH needs CR
  9766. # Avoid depending upon Character Ranges.
  9767. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9768. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9769. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9770. as_cr_digits='0123456789'
  9771. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9772. as_nl='
  9773. '
  9774. export as_nl
  9775. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  9776. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  9777. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  9778. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  9779. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  9780. as_echo='printf %s\n'
  9781. as_echo_n='printf %s'
  9782. else
  9783. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  9784. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  9785. as_echo_n='/usr/ucb/echo -n'
  9786. else
  9787. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  9788. as_echo_n_body='eval
  9789. arg=$1;
  9790. case $arg in
  9791. *"$as_nl"*)
  9792. expr "X$arg" : "X\\(.*\\)$as_nl";
  9793. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  9794. esac;
  9795. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  9796. '
  9797. export as_echo_n_body
  9798. as_echo_n='sh -c $as_echo_n_body as_echo'
  9799. fi
  9800. export as_echo_body
  9801. as_echo='sh -c $as_echo_body as_echo'
  9802. fi
  9803. # The user is always right.
  9804. if test "${PATH_SEPARATOR+set}" != set; then
  9805. PATH_SEPARATOR=:
  9806. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  9807. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  9808. PATH_SEPARATOR=';'
  9809. }
  9810. fi
  9811. # Support unset when possible.
  9812. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  9813. as_unset=unset
  9814. else
  9815. as_unset=false
  9816. fi
  9817. # IFS
  9818. # We need space, tab and new line, in precisely that order. Quoting is
  9819. # there to prevent editors from complaining about space-tab.
  9820. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  9821. # splitting by setting IFS to empty value.)
  9822. IFS=" "" $as_nl"
  9823. # Find who we are. Look in the path if we contain no directory separator.
  9824. case $0 in
  9825. *[\\/]* ) as_myself=$0 ;;
  9826. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9827. for as_dir in $PATH
  9828. do
  9829. IFS=$as_save_IFS
  9830. test -z "$as_dir" && as_dir=.
  9831. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9832. done
  9833. IFS=$as_save_IFS
  9834. ;;
  9835. esac
  9836. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9837. # in which case we are not to be found in the path.
  9838. if test "x$as_myself" = x; then
  9839. as_myself=$0
  9840. fi
  9841. if test ! -f "$as_myself"; then
  9842. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  9843. { (exit 1); exit 1; }
  9844. fi
  9845. # Work around bugs in pre-3.0 UWIN ksh.
  9846. for as_var in ENV MAIL MAILPATH
  9847. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  9848. done
  9849. PS1='$ '
  9850. PS2='> '
  9851. PS4='+ '
  9852. # NLS nuisances.
  9853. LC_ALL=C
  9854. export LC_ALL
  9855. LANGUAGE=C
  9856. export LANGUAGE
  9857. # Required to use basename.
  9858. if expr a : '\(a\)' >/dev/null 2>&1 &&
  9859. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  9860. as_expr=expr
  9861. else
  9862. as_expr=false
  9863. fi
  9864. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  9865. as_basename=basename
  9866. else
  9867. as_basename=false
  9868. fi
  9869. # Name of the executable.
  9870. as_me=`$as_basename -- "$0" ||
  9871. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9872. X"$0" : 'X\(//\)$' \| \
  9873. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  9874. $as_echo X/"$0" |
  9875. sed '/^.*\/\([^/][^/]*\)\/*$/{
  9876. s//\1/
  9877. q
  9878. }
  9879. /^X\/\(\/\/\)$/{
  9880. s//\1/
  9881. q
  9882. }
  9883. /^X\/\(\/\).*/{
  9884. s//\1/
  9885. q
  9886. }
  9887. s/.*/./; q'`
  9888. # CDPATH.
  9889. $as_unset CDPATH
  9890. as_lineno_1=$LINENO
  9891. as_lineno_2=$LINENO
  9892. test "x$as_lineno_1" != "x$as_lineno_2" &&
  9893. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  9894. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  9895. # uniformly replaced by the line number. The first 'sed' inserts a
  9896. # line-number line after each line using $LINENO; the second 'sed'
  9897. # does the real work. The second script uses 'N' to pair each
  9898. # line-number line with the line containing $LINENO, and appends
  9899. # trailing '-' during substitution so that $LINENO is not a special
  9900. # case at line end.
  9901. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  9902. # scripts with optimization help from Paolo Bonzini. Blame Lee
  9903. # E. McMahon (1931-1989) for sed's syntax. :-)
  9904. sed -n '
  9905. p
  9906. /[$]LINENO/=
  9907. ' <$as_myself |
  9908. sed '
  9909. s/[$]LINENO.*/&-/
  9910. t lineno
  9911. b
  9912. :lineno
  9913. N
  9914. :loop
  9915. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  9916. t loop
  9917. s/-\n.*//
  9918. ' >$as_me.lineno &&
  9919. chmod +x "$as_me.lineno" ||
  9920. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  9921. { (exit 1); exit 1; }; }
  9922. # Don't try to exec as it changes $[0], causing all sort of problems
  9923. # (the dirname of $[0] is not the place where we might find the
  9924. # original and so on. Autoconf is especially sensitive to this).
  9925. . "./$as_me.lineno"
  9926. # Exit status is that of the last command.
  9927. exit
  9928. }
  9929. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  9930. as_dirname=dirname
  9931. else
  9932. as_dirname=false
  9933. fi
  9934. ECHO_C= ECHO_N= ECHO_T=
  9935. case `echo -n x` in
  9936. -n*)
  9937. case `echo 'x\c'` in
  9938. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  9939. *) ECHO_C='\c';;
  9940. esac;;
  9941. *)
  9942. ECHO_N='-n';;
  9943. esac
  9944. if expr a : '\(a\)' >/dev/null 2>&1 &&
  9945. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  9946. as_expr=expr
  9947. else
  9948. as_expr=false
  9949. fi
  9950. rm -f conf$$ conf$$.exe conf$$.file
  9951. if test -d conf$$.dir; then
  9952. rm -f conf$$.dir/conf$$.file
  9953. else
  9954. rm -f conf$$.dir
  9955. mkdir conf$$.dir 2>/dev/null
  9956. fi
  9957. if (echo >conf$$.file) 2>/dev/null; then
  9958. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9959. as_ln_s='ln -s'
  9960. # ... but there are two gotchas:
  9961. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  9962. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  9963. # In both cases, we have to default to `cp -p'.
  9964. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  9965. as_ln_s='cp -p'
  9966. elif ln conf$$.file conf$$ 2>/dev/null; then
  9967. as_ln_s=ln
  9968. else
  9969. as_ln_s='cp -p'
  9970. fi
  9971. else
  9972. as_ln_s='cp -p'
  9973. fi
  9974. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  9975. rmdir conf$$.dir 2>/dev/null
  9976. if mkdir -p . 2>/dev/null; then
  9977. as_mkdir_p=:
  9978. else
  9979. test -d ./-p && rmdir ./-p
  9980. as_mkdir_p=false
  9981. fi
  9982. if test -x / >/dev/null 2>&1; then
  9983. as_test_x='test -x'
  9984. else
  9985. if ls -dL / >/dev/null 2>&1; then
  9986. as_ls_L_option=L
  9987. else
  9988. as_ls_L_option=
  9989. fi
  9990. as_test_x='
  9991. eval sh -c '\''
  9992. if test -d "$1"; then
  9993. test -d "$1/.";
  9994. else
  9995. case $1 in
  9996. -*)set "./$1";;
  9997. esac;
  9998. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  9999. ???[sx]*):;;*)false;;esac;fi
  10000. '\'' sh
  10001. '
  10002. fi
  10003. as_executable_p=$as_test_x
  10004. # Sed expression to map a string onto a valid CPP name.
  10005. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10006. # Sed expression to map a string onto a valid variable name.
  10007. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10008. exec 6>&1
  10009. # Save the log message, to keep $[0] and so on meaningful, and to
  10010. # report actual input values of CONFIG_FILES etc. instead of their
  10011. # values after options handling.
  10012. ac_log="
  10013. This file was extended by $as_me, which was
  10014. generated by GNU Autoconf 2.63. Invocation command line was
  10015. CONFIG_FILES = $CONFIG_FILES
  10016. CONFIG_HEADERS = $CONFIG_HEADERS
  10017. CONFIG_LINKS = $CONFIG_LINKS
  10018. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10019. $ $0 $@
  10020. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  10021. "
  10022. _ACEOF
  10023. case $ac_config_files in *"
  10024. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  10025. esac
  10026. case $ac_config_headers in *"
  10027. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  10028. esac
  10029. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10030. # Files that config.status was made for.
  10031. config_files="$ac_config_files"
  10032. config_headers="$ac_config_headers"
  10033. config_commands="$ac_config_commands"
  10034. _ACEOF
  10035. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10036. ac_cs_usage="\
  10037. \`$as_me' instantiates files from templates according to the
  10038. current configuration.
  10039. Usage: $0 [OPTION]... [FILE]...
  10040. -h, --help print this help, then exit
  10041. -V, --version print version number and configuration settings, then exit
  10042. -q, --quiet, --silent
  10043. do not print progress messages
  10044. -d, --debug don't remove temporary files
  10045. --recheck update $as_me by reconfiguring in the same conditions
  10046. --file=FILE[:TEMPLATE]
  10047. instantiate the configuration file FILE
  10048. --header=FILE[:TEMPLATE]
  10049. instantiate the configuration header FILE
  10050. Configuration files:
  10051. $config_files
  10052. Configuration headers:
  10053. $config_headers
  10054. Configuration commands:
  10055. $config_commands
  10056. Report bugs to <bug-autoconf@gnu.org>."
  10057. _ACEOF
  10058. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10059. ac_cs_version="\\
  10060. config.status
  10061. configured by $0, generated by GNU Autoconf 2.63,
  10062. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  10063. Copyright (C) 2008 Free Software Foundation, Inc.
  10064. This config.status script is free software; the Free Software Foundation
  10065. gives unlimited permission to copy, distribute and modify it."
  10066. ac_pwd='$ac_pwd'
  10067. srcdir='$srcdir'
  10068. INSTALL='$INSTALL'
  10069. test -n "\$AWK" || AWK=awk
  10070. _ACEOF
  10071. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10072. # The default lists apply if the user does not specify any file.
  10073. ac_need_defaults=:
  10074. while test $# != 0
  10075. do
  10076. case $1 in
  10077. --*=*)
  10078. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10079. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  10080. ac_shift=:
  10081. ;;
  10082. *)
  10083. ac_option=$1
  10084. ac_optarg=$2
  10085. ac_shift=shift
  10086. ;;
  10087. esac
  10088. case $ac_option in
  10089. # Handling of the options.
  10090. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10091. ac_cs_recheck=: ;;
  10092. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  10093. $as_echo "$ac_cs_version"; exit ;;
  10094. --debug | --debu | --deb | --de | --d | -d )
  10095. debug=: ;;
  10096. --file | --fil | --fi | --f )
  10097. $ac_shift
  10098. case $ac_optarg in
  10099. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10100. esac
  10101. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  10102. ac_need_defaults=false;;
  10103. --header | --heade | --head | --hea )
  10104. $ac_shift
  10105. case $ac_optarg in
  10106. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10107. esac
  10108. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  10109. ac_need_defaults=false;;
  10110. --he | --h)
  10111. # Conflict between --help and --header
  10112. { $as_echo "$as_me: error: ambiguous option: $1
  10113. Try \`$0 --help' for more information." >&2
  10114. { (exit 1); exit 1; }; };;
  10115. --help | --hel | -h )
  10116. $as_echo "$ac_cs_usage"; exit ;;
  10117. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10118. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10119. ac_cs_silent=: ;;
  10120. # This is an error.
  10121. -*) { $as_echo "$as_me: error: unrecognized option: $1
  10122. Try \`$0 --help' for more information." >&2
  10123. { (exit 1); exit 1; }; } ;;
  10124. *) ac_config_targets="$ac_config_targets $1"
  10125. ac_need_defaults=false ;;
  10126. esac
  10127. shift
  10128. done
  10129. ac_configure_extra_args=
  10130. if $ac_cs_silent; then
  10131. exec 6>/dev/null
  10132. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10133. fi
  10134. _ACEOF
  10135. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10136. if \$ac_cs_recheck; then
  10137. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10138. shift
  10139. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  10140. CONFIG_SHELL='$SHELL'
  10141. export CONFIG_SHELL
  10142. exec "\$@"
  10143. fi
  10144. _ACEOF
  10145. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10146. exec 5>>config.log
  10147. {
  10148. echo
  10149. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10150. ## Running $as_me. ##
  10151. _ASBOX
  10152. $as_echo "$ac_log"
  10153. } >&5
  10154. _ACEOF
  10155. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10156. #
  10157. # INIT-COMMANDS
  10158. #
  10159. # The HP-UX ksh and POSIX shell print the target directory to stdout
  10160. # if CDPATH is set.
  10161. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10162. sed_quote_subst='$sed_quote_subst'
  10163. double_quote_subst='$double_quote_subst'
  10164. delay_variable_subst='$delay_variable_subst'
  10165. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  10166. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  10167. AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
  10168. DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  10169. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  10170. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  10171. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  10172. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  10173. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  10174. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  10175. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  10176. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  10177. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  10178. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  10179. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  10180. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  10181. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  10182. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  10183. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  10184. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  10185. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  10186. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  10187. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  10188. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  10189. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  10190. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  10191. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  10192. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  10193. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  10194. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  10195. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10196. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  10197. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  10198. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  10199. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  10200. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  10201. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  10202. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10203. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10204. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10205. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  10206. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  10207. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  10208. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  10209. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  10210. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  10211. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  10212. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  10213. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  10214. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  10215. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  10216. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  10217. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  10218. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  10219. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  10220. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  10221. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  10222. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  10223. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  10224. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  10225. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  10226. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  10227. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  10228. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  10229. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10230. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10231. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  10232. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  10233. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10234. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10235. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  10236. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10237. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10238. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10239. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10240. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10241. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10242. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  10243. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  10244. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  10245. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10246. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  10247. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  10248. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  10249. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  10250. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  10251. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  10252. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  10253. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  10254. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  10255. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  10256. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  10257. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10258. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  10259. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  10260. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10261. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10262. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  10263. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  10264. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  10265. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  10266. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  10267. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  10268. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  10269. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10270. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10271. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10272. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10273. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10274. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10275. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  10276. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  10277. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10278. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10279. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  10280. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  10281. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  10282. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  10283. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  10284. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  10285. LTCC='$LTCC'
  10286. LTCFLAGS='$LTCFLAGS'
  10287. compiler='$compiler_DEFAULT'
  10288. # Quote evaled strings.
  10289. for var in SED \
  10290. GREP \
  10291. EGREP \
  10292. FGREP \
  10293. LD \
  10294. NM \
  10295. LN_S \
  10296. lt_SP2NL \
  10297. lt_NL2SP \
  10298. reload_flag \
  10299. deplibs_check_method \
  10300. file_magic_cmd \
  10301. AR \
  10302. AR_FLAGS \
  10303. STRIP \
  10304. RANLIB \
  10305. CC \
  10306. CFLAGS \
  10307. compiler \
  10308. lt_cv_sys_global_symbol_pipe \
  10309. lt_cv_sys_global_symbol_to_cdecl \
  10310. lt_cv_sys_global_symbol_to_c_name_address \
  10311. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  10312. SHELL \
  10313. ECHO \
  10314. lt_prog_compiler_no_builtin_flag \
  10315. lt_prog_compiler_wl \
  10316. lt_prog_compiler_pic \
  10317. lt_prog_compiler_static \
  10318. lt_cv_prog_compiler_c_o \
  10319. need_locks \
  10320. DSYMUTIL \
  10321. NMEDIT \
  10322. LIPO \
  10323. OTOOL \
  10324. OTOOL64 \
  10325. shrext_cmds \
  10326. export_dynamic_flag_spec \
  10327. whole_archive_flag_spec \
  10328. compiler_needs_object \
  10329. with_gnu_ld \
  10330. allow_undefined_flag \
  10331. no_undefined_flag \
  10332. hardcode_libdir_flag_spec \
  10333. hardcode_libdir_flag_spec_ld \
  10334. hardcode_libdir_separator \
  10335. fix_srcfile_path \
  10336. exclude_expsyms \
  10337. include_expsyms \
  10338. file_list_spec \
  10339. variables_saved_for_relink \
  10340. libname_spec \
  10341. library_names_spec \
  10342. soname_spec \
  10343. finish_eval \
  10344. old_striplib \
  10345. striplib; do
  10346. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  10347. *[\\\\\\\`\\"\\\$]*)
  10348. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  10349. ;;
  10350. *)
  10351. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10352. ;;
  10353. esac
  10354. done
  10355. # Double-quote double-evaled strings.
  10356. for var in reload_cmds \
  10357. old_postinstall_cmds \
  10358. old_postuninstall_cmds \
  10359. old_archive_cmds \
  10360. extract_expsyms_cmds \
  10361. old_archive_from_new_cmds \
  10362. old_archive_from_expsyms_cmds \
  10363. archive_cmds \
  10364. archive_expsym_cmds \
  10365. module_cmds \
  10366. module_expsym_cmds \
  10367. export_symbols_cmds \
  10368. prelink_cmds \
  10369. postinstall_cmds \
  10370. postuninstall_cmds \
  10371. finish_cmds \
  10372. sys_lib_search_path_spec \
  10373. sys_lib_dlsearch_path_spec; do
  10374. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  10375. *[\\\\\\\`\\"\\\$]*)
  10376. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  10377. ;;
  10378. *)
  10379. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10380. ;;
  10381. esac
  10382. done
  10383. # Fix-up fallback echo if it was mangled by the above quoting rules.
  10384. case \$lt_ECHO in
  10385. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  10386. ;;
  10387. esac
  10388. ac_aux_dir='$ac_aux_dir'
  10389. xsi_shell='$xsi_shell'
  10390. lt_shell_append='$lt_shell_append'
  10391. # See if we are running on zsh, and set the options which allow our
  10392. # commands through without removal of \ escapes INIT.
  10393. if test -n "\${ZSH_VERSION+set}" ; then
  10394. setopt NO_GLOB_SUBST
  10395. fi
  10396. PACKAGE='$PACKAGE'
  10397. VERSION='$VERSION'
  10398. TIMESTAMP='$TIMESTAMP'
  10399. RM='$RM'
  10400. ofile='$ofile'
  10401. _ACEOF
  10402. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10403. # Handling of arguments.
  10404. for ac_config_target in $ac_config_targets
  10405. do
  10406. case $ac_config_target in
  10407. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  10408. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  10409. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10410. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  10411. "include/localcharset.h") CONFIG_FILES="$CONFIG_FILES include/localcharset.h:include/localcharset.h.build.in" ;;
  10412. "include/localcharset.h.inst") CONFIG_FILES="$CONFIG_FILES include/localcharset.h.inst:include/localcharset.h.in" ;;
  10413. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  10414. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  10415. { (exit 1); exit 1; }; };;
  10416. esac
  10417. done
  10418. # If the user did not use the arguments to specify the items to instantiate,
  10419. # then the envvar interface is used. Set only those that are not.
  10420. # We use the long form for the default assignment because of an extremely
  10421. # bizarre bug on SunOS 4.1.3.
  10422. if $ac_need_defaults; then
  10423. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10424. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  10425. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10426. fi
  10427. # Have a temporary directory for convenience. Make it in the build tree
  10428. # simply because there is no reason against having it here, and in addition,
  10429. # creating and moving files from /tmp can sometimes cause problems.
  10430. # Hook for its removal unless debugging.
  10431. # Note that there is a small window in which the directory will not be cleaned:
  10432. # after its creation but before its name has been assigned to `$tmp'.
  10433. $debug ||
  10434. {
  10435. tmp=
  10436. trap 'exit_status=$?
  10437. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  10438. ' 0
  10439. trap '{ (exit 1); exit 1; }' 1 2 13 15
  10440. }
  10441. # Create a (secure) tmp directory for tmp files.
  10442. {
  10443. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  10444. test -n "$tmp" && test -d "$tmp"
  10445. } ||
  10446. {
  10447. tmp=./conf$$-$RANDOM
  10448. (umask 077 && mkdir "$tmp")
  10449. } ||
  10450. {
  10451. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  10452. { (exit 1); exit 1; }
  10453. }
  10454. # Set up the scripts for CONFIG_FILES section.
  10455. # No need to generate them if there are no CONFIG_FILES.
  10456. # This happens for instance with `./config.status config.h'.
  10457. if test -n "$CONFIG_FILES"; then
  10458. ac_cr=' '
  10459. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  10460. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  10461. ac_cs_awk_cr='\\r'
  10462. else
  10463. ac_cs_awk_cr=$ac_cr
  10464. fi
  10465. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  10466. _ACEOF
  10467. {
  10468. echo "cat >conf$$subs.awk <<_ACEOF" &&
  10469. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  10470. echo "_ACEOF"
  10471. } >conf$$subs.sh ||
  10472. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  10473. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  10474. { (exit 1); exit 1; }; }
  10475. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  10476. ac_delim='%!_!# '
  10477. for ac_last_try in false false false false false :; do
  10478. . ./conf$$subs.sh ||
  10479. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  10480. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  10481. { (exit 1); exit 1; }; }
  10482. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  10483. if test $ac_delim_n = $ac_delim_num; then
  10484. break
  10485. elif $ac_last_try; then
  10486. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  10487. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  10488. { (exit 1); exit 1; }; }
  10489. else
  10490. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10491. fi
  10492. done
  10493. rm -f conf$$subs.sh
  10494. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10495. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  10496. _ACEOF
  10497. sed -n '
  10498. h
  10499. s/^/S["/; s/!.*/"]=/
  10500. p
  10501. g
  10502. s/^[^!]*!//
  10503. :repl
  10504. t repl
  10505. s/'"$ac_delim"'$//
  10506. t delim
  10507. :nl
  10508. h
  10509. s/\(.\{148\}\).*/\1/
  10510. t more1
  10511. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  10512. p
  10513. n
  10514. b repl
  10515. :more1
  10516. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10517. p
  10518. g
  10519. s/.\{148\}//
  10520. t nl
  10521. :delim
  10522. h
  10523. s/\(.\{148\}\).*/\1/
  10524. t more2
  10525. s/["\\]/\\&/g; s/^/"/; s/$/"/
  10526. p
  10527. b
  10528. :more2
  10529. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10530. p
  10531. g
  10532. s/.\{148\}//
  10533. t delim
  10534. ' <conf$$subs.awk | sed '
  10535. /^[^""]/{
  10536. N
  10537. s/\n//
  10538. }
  10539. ' >>$CONFIG_STATUS || ac_write_fail=1
  10540. rm -f conf$$subs.awk
  10541. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10542. _ACAWK
  10543. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  10544. for (key in S) S_is_set[key] = 1
  10545. FS = ""
  10546. }
  10547. {
  10548. line = $ 0
  10549. nfields = split(line, field, "@")
  10550. substed = 0
  10551. len = length(field[1])
  10552. for (i = 2; i < nfields; i++) {
  10553. key = field[i]
  10554. keylen = length(key)
  10555. if (S_is_set[key]) {
  10556. value = S[key]
  10557. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  10558. len += length(value) + length(field[++i])
  10559. substed = 1
  10560. } else
  10561. len += 1 + keylen
  10562. }
  10563. print line
  10564. }
  10565. _ACAWK
  10566. _ACEOF
  10567. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10568. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  10569. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  10570. else
  10571. cat
  10572. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  10573. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  10574. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  10575. { (exit 1); exit 1; }; }
  10576. _ACEOF
  10577. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  10578. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  10579. # trailing colons and then remove the whole line if VPATH becomes empty
  10580. # (actually we leave an empty line to preserve line numbers).
  10581. if test "x$srcdir" = x.; then
  10582. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10583. s/:*\$(srcdir):*/:/
  10584. s/:*\${srcdir}:*/:/
  10585. s/:*@srcdir@:*/:/
  10586. s/^\([^=]*=[ ]*\):*/\1/
  10587. s/:*$//
  10588. s/^[^=]*=[ ]*$//
  10589. }'
  10590. fi
  10591. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10592. fi # test -n "$CONFIG_FILES"
  10593. # Set up the scripts for CONFIG_HEADERS section.
  10594. # No need to generate them if there are no CONFIG_HEADERS.
  10595. # This happens for instance with `./config.status Makefile'.
  10596. if test -n "$CONFIG_HEADERS"; then
  10597. cat >"$tmp/defines.awk" <<\_ACAWK ||
  10598. BEGIN {
  10599. _ACEOF
  10600. # Transform confdefs.h into an awk script `defines.awk', embedded as
  10601. # here-document in config.status, that substitutes the proper values into
  10602. # config.h.in to produce config.h.
  10603. # Create a delimiter string that does not exist in confdefs.h, to ease
  10604. # handling of long lines.
  10605. ac_delim='%!_!# '
  10606. for ac_last_try in false false :; do
  10607. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  10608. if test -z "$ac_t"; then
  10609. break
  10610. elif $ac_last_try; then
  10611. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  10612. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  10613. { (exit 1); exit 1; }; }
  10614. else
  10615. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10616. fi
  10617. done
  10618. # For the awk script, D is an array of macro values keyed by name,
  10619. # likewise P contains macro parameters if any. Preserve backslash
  10620. # newline sequences.
  10621. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  10622. sed -n '
  10623. s/.\{148\}/&'"$ac_delim"'/g
  10624. t rset
  10625. :rset
  10626. s/^[ ]*#[ ]*define[ ][ ]*/ /
  10627. t def
  10628. d
  10629. :def
  10630. s/\\$//
  10631. t bsnl
  10632. s/["\\]/\\&/g
  10633. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10634. D["\1"]=" \3"/p
  10635. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  10636. d
  10637. :bsnl
  10638. s/["\\]/\\&/g
  10639. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10640. D["\1"]=" \3\\\\\\n"\\/p
  10641. t cont
  10642. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  10643. t cont
  10644. d
  10645. :cont
  10646. n
  10647. s/.\{148\}/&'"$ac_delim"'/g
  10648. t clear
  10649. :clear
  10650. s/\\$//
  10651. t bsnlc
  10652. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  10653. d
  10654. :bsnlc
  10655. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  10656. b cont
  10657. ' <confdefs.h | sed '
  10658. s/'"$ac_delim"'/"\\\
  10659. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  10660. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10661. for (key in D) D_is_set[key] = 1
  10662. FS = ""
  10663. }
  10664. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  10665. line = \$ 0
  10666. split(line, arg, " ")
  10667. if (arg[1] == "#") {
  10668. defundef = arg[2]
  10669. mac1 = arg[3]
  10670. } else {
  10671. defundef = substr(arg[1], 2)
  10672. mac1 = arg[2]
  10673. }
  10674. split(mac1, mac2, "(") #)
  10675. macro = mac2[1]
  10676. prefix = substr(line, 1, index(line, defundef) - 1)
  10677. if (D_is_set[macro]) {
  10678. # Preserve the white space surrounding the "#".
  10679. print prefix "define", macro P[macro] D[macro]
  10680. next
  10681. } else {
  10682. # Replace #undef with comments. This is necessary, for example,
  10683. # in the case of _POSIX_SOURCE, which is predefined and required
  10684. # on some systems where configure will not decide to define it.
  10685. if (defundef == "undef") {
  10686. print "/*", prefix defundef, macro, "*/"
  10687. next
  10688. }
  10689. }
  10690. }
  10691. { print }
  10692. _ACAWK
  10693. _ACEOF
  10694. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10695. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  10696. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  10697. { (exit 1); exit 1; }; }
  10698. fi # test -n "$CONFIG_HEADERS"
  10699. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  10700. shift
  10701. for ac_tag
  10702. do
  10703. case $ac_tag in
  10704. :[FHLC]) ac_mode=$ac_tag; continue;;
  10705. esac
  10706. case $ac_mode$ac_tag in
  10707. :[FHL]*:*);;
  10708. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  10709. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  10710. { (exit 1); exit 1; }; };;
  10711. :[FH]-) ac_tag=-:-;;
  10712. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  10713. esac
  10714. ac_save_IFS=$IFS
  10715. IFS=:
  10716. set x $ac_tag
  10717. IFS=$ac_save_IFS
  10718. shift
  10719. ac_file=$1
  10720. shift
  10721. case $ac_mode in
  10722. :L) ac_source=$1;;
  10723. :[FH])
  10724. ac_file_inputs=
  10725. for ac_f
  10726. do
  10727. case $ac_f in
  10728. -) ac_f="$tmp/stdin";;
  10729. *) # Look for the file first in the build tree, then in the source tree
  10730. # (if the path is not absolute). The absolute path cannot be DOS-style,
  10731. # because $ac_f cannot contain `:'.
  10732. test -f "$ac_f" ||
  10733. case $ac_f in
  10734. [\\/$]*) false;;
  10735. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  10736. esac ||
  10737. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  10738. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  10739. { (exit 1); exit 1; }; };;
  10740. esac
  10741. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  10742. ac_file_inputs="$ac_file_inputs '$ac_f'"
  10743. done
  10744. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10745. # use $as_me), people would be surprised to read:
  10746. # /* config.h. Generated by config.status. */
  10747. configure_input='Generated from '`
  10748. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  10749. `' by configure.'
  10750. if test x"$ac_file" != x-; then
  10751. configure_input="$ac_file. $configure_input"
  10752. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  10753. $as_echo "$as_me: creating $ac_file" >&6;}
  10754. fi
  10755. # Neutralize special characters interpreted by sed in replacement strings.
  10756. case $configure_input in #(
  10757. *\&* | *\|* | *\\* )
  10758. ac_sed_conf_input=`$as_echo "$configure_input" |
  10759. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  10760. *) ac_sed_conf_input=$configure_input;;
  10761. esac
  10762. case $ac_tag in
  10763. *:-:* | *:-) cat >"$tmp/stdin" \
  10764. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  10765. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  10766. { (exit 1); exit 1; }; } ;;
  10767. esac
  10768. ;;
  10769. esac
  10770. ac_dir=`$as_dirname -- "$ac_file" ||
  10771. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10772. X"$ac_file" : 'X\(//\)[^/]' \| \
  10773. X"$ac_file" : 'X\(//\)$' \| \
  10774. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  10775. $as_echo X"$ac_file" |
  10776. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10777. s//\1/
  10778. q
  10779. }
  10780. /^X\(\/\/\)[^/].*/{
  10781. s//\1/
  10782. q
  10783. }
  10784. /^X\(\/\/\)$/{
  10785. s//\1/
  10786. q
  10787. }
  10788. /^X\(\/\).*/{
  10789. s//\1/
  10790. q
  10791. }
  10792. s/.*/./; q'`
  10793. { as_dir="$ac_dir"
  10794. case $as_dir in #(
  10795. -*) as_dir=./$as_dir;;
  10796. esac
  10797. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  10798. as_dirs=
  10799. while :; do
  10800. case $as_dir in #(
  10801. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10802. *) as_qdir=$as_dir;;
  10803. esac
  10804. as_dirs="'$as_qdir' $as_dirs"
  10805. as_dir=`$as_dirname -- "$as_dir" ||
  10806. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10807. X"$as_dir" : 'X\(//\)[^/]' \| \
  10808. X"$as_dir" : 'X\(//\)$' \| \
  10809. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10810. $as_echo X"$as_dir" |
  10811. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10812. s//\1/
  10813. q
  10814. }
  10815. /^X\(\/\/\)[^/].*/{
  10816. s//\1/
  10817. q
  10818. }
  10819. /^X\(\/\/\)$/{
  10820. s//\1/
  10821. q
  10822. }
  10823. /^X\(\/\).*/{
  10824. s//\1/
  10825. q
  10826. }
  10827. s/.*/./; q'`
  10828. test -d "$as_dir" && break
  10829. done
  10830. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10831. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  10832. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  10833. { (exit 1); exit 1; }; }; }
  10834. ac_builddir=.
  10835. case "$ac_dir" in
  10836. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10837. *)
  10838. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  10839. # A ".." for each directory in $ac_dir_suffix.
  10840. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  10841. case $ac_top_builddir_sub in
  10842. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10843. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  10844. esac ;;
  10845. esac
  10846. ac_abs_top_builddir=$ac_pwd
  10847. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  10848. # for backward compatibility:
  10849. ac_top_builddir=$ac_top_build_prefix
  10850. case $srcdir in
  10851. .) # We are building in place.
  10852. ac_srcdir=.
  10853. ac_top_srcdir=$ac_top_builddir_sub
  10854. ac_abs_top_srcdir=$ac_pwd ;;
  10855. [\\/]* | ?:[\\/]* ) # Absolute name.
  10856. ac_srcdir=$srcdir$ac_dir_suffix;
  10857. ac_top_srcdir=$srcdir
  10858. ac_abs_top_srcdir=$srcdir ;;
  10859. *) # Relative name.
  10860. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  10861. ac_top_srcdir=$ac_top_build_prefix$srcdir
  10862. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  10863. esac
  10864. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  10865. case $ac_mode in
  10866. :F)
  10867. #
  10868. # CONFIG_FILE
  10869. #
  10870. case $INSTALL in
  10871. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  10872. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  10873. esac
  10874. _ACEOF
  10875. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10876. # If the template does not know about datarootdir, expand it.
  10877. # FIXME: This hack should be removed a few years after 2.60.
  10878. ac_datarootdir_hack=; ac_datarootdir_seen=
  10879. ac_sed_dataroot='
  10880. /datarootdir/ {
  10881. p
  10882. q
  10883. }
  10884. /@datadir@/p
  10885. /@docdir@/p
  10886. /@infodir@/p
  10887. /@localedir@/p
  10888. /@mandir@/p
  10889. '
  10890. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  10891. *datarootdir*) ac_datarootdir_seen=yes;;
  10892. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  10893. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  10894. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  10895. _ACEOF
  10896. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10897. ac_datarootdir_hack='
  10898. s&@datadir@&$datadir&g
  10899. s&@docdir@&$docdir&g
  10900. s&@infodir@&$infodir&g
  10901. s&@localedir@&$localedir&g
  10902. s&@mandir@&$mandir&g
  10903. s&\\\${datarootdir}&$datarootdir&g' ;;
  10904. esac
  10905. _ACEOF
  10906. # Neutralize VPATH when `$srcdir' = `.'.
  10907. # Shell code in configure.ac might set extrasub.
  10908. # FIXME: do we really want to maintain this feature?
  10909. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10910. ac_sed_extra="$ac_vpsub
  10911. $extrasub
  10912. _ACEOF
  10913. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10914. :t
  10915. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10916. s|@configure_input@|$ac_sed_conf_input|;t t
  10917. s&@top_builddir@&$ac_top_builddir_sub&;t t
  10918. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  10919. s&@srcdir@&$ac_srcdir&;t t
  10920. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  10921. s&@top_srcdir@&$ac_top_srcdir&;t t
  10922. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  10923. s&@builddir@&$ac_builddir&;t t
  10924. s&@abs_builddir@&$ac_abs_builddir&;t t
  10925. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  10926. s&@INSTALL@&$ac_INSTALL&;t t
  10927. $ac_datarootdir_hack
  10928. "
  10929. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  10930. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  10931. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  10932. { (exit 1); exit 1; }; }
  10933. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  10934. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  10935. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  10936. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10937. which seems to be undefined. Please make sure it is defined." >&5
  10938. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10939. which seems to be undefined. Please make sure it is defined." >&2;}
  10940. rm -f "$tmp/stdin"
  10941. case $ac_file in
  10942. -) cat "$tmp/out" && rm -f "$tmp/out";;
  10943. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  10944. esac \
  10945. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  10946. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  10947. { (exit 1); exit 1; }; }
  10948. ;;
  10949. :H)
  10950. #
  10951. # CONFIG_HEADER
  10952. #
  10953. if test x"$ac_file" != x-; then
  10954. {
  10955. $as_echo "/* $configure_input */" \
  10956. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  10957. } >"$tmp/config.h" \
  10958. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  10959. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  10960. { (exit 1); exit 1; }; }
  10961. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  10962. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  10963. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  10964. else
  10965. rm -f "$ac_file"
  10966. mv "$tmp/config.h" "$ac_file" \
  10967. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  10968. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  10969. { (exit 1); exit 1; }; }
  10970. fi
  10971. else
  10972. $as_echo "/* $configure_input */" \
  10973. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  10974. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  10975. $as_echo "$as_me: error: could not create -" >&2;}
  10976. { (exit 1); exit 1; }; }
  10977. fi
  10978. ;;
  10979. :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  10980. $as_echo "$as_me: executing $ac_file commands" >&6;}
  10981. ;;
  10982. esac
  10983. case $ac_file$ac_mode in
  10984. "libtool":C)
  10985. # See if we are running on zsh, and set the options which allow our
  10986. # commands through without removal of \ escapes.
  10987. if test -n "${ZSH_VERSION+set}" ; then
  10988. setopt NO_GLOB_SUBST
  10989. fi
  10990. cfgfile="${ofile}T"
  10991. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  10992. $RM "$cfgfile"
  10993. cat <<_LT_EOF >> "$cfgfile"
  10994. #! $SHELL
  10995. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  10996. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  10997. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  10998. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  10999. #
  11000. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  11001. # 2006, 2007, 2008 Free Software Foundation, Inc.
  11002. # Written by Gordon Matzigkeit, 1996
  11003. #
  11004. # This file is part of GNU Libtool.
  11005. #
  11006. # GNU Libtool is free software; you can redistribute it and/or
  11007. # modify it under the terms of the GNU General Public License as
  11008. # published by the Free Software Foundation; either version 2 of
  11009. # the License, or (at your option) any later version.
  11010. #
  11011. # As a special exception to the GNU General Public License,
  11012. # if you distribute this file as part of a program or library that
  11013. # is built using GNU Libtool, you may include this file under the
  11014. # same distribution terms that you use for the rest of that program.
  11015. #
  11016. # GNU Libtool is distributed in the hope that it will be useful,
  11017. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11018. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11019. # GNU General Public License for more details.
  11020. #
  11021. # You should have received a copy of the GNU General Public License
  11022. # along with GNU Libtool; see the file COPYING. If not, a copy
  11023. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  11024. # obtained by writing to the Free Software Foundation, Inc.,
  11025. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11026. # The names of the tagged configurations supported by this script.
  11027. available_tags=""
  11028. # ### BEGIN LIBTOOL CONFIG
  11029. # Which release of libtool.m4 was used?
  11030. macro_version=$macro_version
  11031. macro_revision=$macro_revision
  11032. # Assembler program.
  11033. AS=$AS
  11034. # DLL creation program.
  11035. DLLTOOL=$DLLTOOL
  11036. # Object dumper program.
  11037. OBJDUMP=$OBJDUMP
  11038. # Whether or not to build shared libraries.
  11039. build_libtool_libs=$enable_shared
  11040. # Whether or not to build static libraries.
  11041. build_old_libs=$enable_static
  11042. # What type of objects to build.
  11043. pic_mode=$pic_mode
  11044. # Whether or not to optimize for fast installation.
  11045. fast_install=$enable_fast_install
  11046. # The host system.
  11047. host_alias=$host_alias
  11048. host=$host
  11049. host_os=$host_os
  11050. # The build system.
  11051. build_alias=$build_alias
  11052. build=$build
  11053. build_os=$build_os
  11054. # A sed program that does not truncate output.
  11055. SED=$lt_SED
  11056. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  11057. Xsed="\$SED -e 1s/^X//"
  11058. # A grep program that handles long lines.
  11059. GREP=$lt_GREP
  11060. # An ERE matcher.
  11061. EGREP=$lt_EGREP
  11062. # A literal string matcher.
  11063. FGREP=$lt_FGREP
  11064. # A BSD- or MS-compatible name lister.
  11065. NM=$lt_NM
  11066. # Whether we need soft or hard links.
  11067. LN_S=$lt_LN_S
  11068. # What is the maximum length of a command?
  11069. max_cmd_len=$max_cmd_len
  11070. # Object file suffix (normally "o").
  11071. objext=$ac_objext
  11072. # Executable file suffix (normally "").
  11073. exeext=$exeext
  11074. # whether the shell understands "unset".
  11075. lt_unset=$lt_unset
  11076. # turn spaces into newlines.
  11077. SP2NL=$lt_lt_SP2NL
  11078. # turn newlines into spaces.
  11079. NL2SP=$lt_lt_NL2SP
  11080. # How to create reloadable object files.
  11081. reload_flag=$lt_reload_flag
  11082. reload_cmds=$lt_reload_cmds
  11083. # Method to check whether dependent libraries are shared objects.
  11084. deplibs_check_method=$lt_deplibs_check_method
  11085. # Command to use when deplibs_check_method == "file_magic".
  11086. file_magic_cmd=$lt_file_magic_cmd
  11087. # The archiver.
  11088. AR=$lt_AR
  11089. AR_FLAGS=$lt_AR_FLAGS
  11090. # A symbol stripping program.
  11091. STRIP=$lt_STRIP
  11092. # Commands used to install an old-style archive.
  11093. RANLIB=$lt_RANLIB
  11094. old_postinstall_cmds=$lt_old_postinstall_cmds
  11095. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11096. # A C compiler.
  11097. LTCC=$lt_CC
  11098. # LTCC compiler flags.
  11099. LTCFLAGS=$lt_CFLAGS
  11100. # Take the output of nm and produce a listing of raw symbols and C names.
  11101. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11102. # Transform the output of nm in a proper C declaration.
  11103. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11104. # Transform the output of nm in a C name address pair.
  11105. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11106. # Transform the output of nm in a C name address pair when lib prefix is needed.
  11107. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  11108. # The name of the directory that contains temporary libtool files.
  11109. objdir=$objdir
  11110. # Shell to use when invoking shell scripts.
  11111. SHELL=$lt_SHELL
  11112. # An echo program that does not interpret backslashes.
  11113. ECHO=$lt_ECHO
  11114. # Used to examine libraries when file_magic_cmd begins with "file".
  11115. MAGIC_CMD=$MAGIC_CMD
  11116. # Must we lock files when doing compilation?
  11117. need_locks=$lt_need_locks
  11118. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  11119. DSYMUTIL=$lt_DSYMUTIL
  11120. # Tool to change global to local symbols on Mac OS X.
  11121. NMEDIT=$lt_NMEDIT
  11122. # Tool to manipulate fat objects and archives on Mac OS X.
  11123. LIPO=$lt_LIPO
  11124. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  11125. OTOOL=$lt_OTOOL
  11126. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  11127. OTOOL64=$lt_OTOOL64
  11128. # Old archive suffix (normally "a").
  11129. libext=$libext
  11130. # Shared library suffix (normally ".so").
  11131. shrext_cmds=$lt_shrext_cmds
  11132. # The commands to extract the exported symbol list from a shared archive.
  11133. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11134. # Variables whose values should be saved in libtool wrapper scripts and
  11135. # restored at link time.
  11136. variables_saved_for_relink=$lt_variables_saved_for_relink
  11137. # Do we need the "lib" prefix for modules?
  11138. need_lib_prefix=$need_lib_prefix
  11139. # Do we need a version for libraries?
  11140. need_version=$need_version
  11141. # Library versioning type.
  11142. version_type=$version_type
  11143. # Shared library runtime path variable.
  11144. runpath_var=$runpath_var
  11145. # Shared library path variable.
  11146. shlibpath_var=$shlibpath_var
  11147. # Is shlibpath searched before the hard-coded library search path?
  11148. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11149. # Format of library name prefix.
  11150. libname_spec=$lt_libname_spec
  11151. # List of archive names. First name is the real one, the rest are links.
  11152. # The last name is the one that the linker finds with -lNAME
  11153. library_names_spec=$lt_library_names_spec
  11154. # The coded name of the library, if different from the real name.
  11155. soname_spec=$lt_soname_spec
  11156. # Command to use after installation of a shared archive.
  11157. postinstall_cmds=$lt_postinstall_cmds
  11158. # Command to use after uninstallation of a shared archive.
  11159. postuninstall_cmds=$lt_postuninstall_cmds
  11160. # Commands used to finish a libtool library installation in a directory.
  11161. finish_cmds=$lt_finish_cmds
  11162. # As "finish_cmds", except a single script fragment to be evaled but
  11163. # not shown.
  11164. finish_eval=$lt_finish_eval
  11165. # Whether we should hardcode library paths into libraries.
  11166. hardcode_into_libs=$hardcode_into_libs
  11167. # Compile-time system search path for libraries.
  11168. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11169. # Run-time system search path for libraries.
  11170. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11171. # Whether dlopen is supported.
  11172. dlopen_support=$enable_dlopen
  11173. # Whether dlopen of programs is supported.
  11174. dlopen_self=$enable_dlopen_self
  11175. # Whether dlopen of statically linked programs is supported.
  11176. dlopen_self_static=$enable_dlopen_self_static
  11177. # Commands to strip libraries.
  11178. old_striplib=$lt_old_striplib
  11179. striplib=$lt_striplib
  11180. # The linker used to build libraries.
  11181. LD=$lt_LD
  11182. # Commands used to build an old-style archive.
  11183. old_archive_cmds=$lt_old_archive_cmds
  11184. # A language specific compiler.
  11185. CC=$lt_compiler
  11186. # Is the compiler the GNU compiler?
  11187. with_gcc=$GCC
  11188. # Compiler flag to turn off builtin functions.
  11189. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  11190. # How to pass a linker flag through the compiler.
  11191. wl=$lt_lt_prog_compiler_wl
  11192. # Additional compiler flags for building library objects.
  11193. pic_flag=$lt_lt_prog_compiler_pic
  11194. # Compiler flag to prevent dynamic linking.
  11195. link_static_flag=$lt_lt_prog_compiler_static
  11196. # Does compiler simultaneously support -c and -o options?
  11197. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  11198. # Whether or not to add -lc for building shared libraries.
  11199. build_libtool_need_lc=$archive_cmds_need_lc
  11200. # Whether or not to disallow shared libs when runtime libs are static.
  11201. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  11202. # Compiler flag to allow reflexive dlopens.
  11203. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  11204. # Compiler flag to generate shared objects directly from archives.
  11205. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  11206. # Whether the compiler copes with passing no objects directly.
  11207. compiler_needs_object=$lt_compiler_needs_object
  11208. # Create an old-style archive from a shared archive.
  11209. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  11210. # Create a temporary old-style archive to link instead of a shared archive.
  11211. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  11212. # Commands used to build a shared archive.
  11213. archive_cmds=$lt_archive_cmds
  11214. archive_expsym_cmds=$lt_archive_expsym_cmds
  11215. # Commands used to build a loadable module if different from building
  11216. # a shared archive.
  11217. module_cmds=$lt_module_cmds
  11218. module_expsym_cmds=$lt_module_expsym_cmds
  11219. # Whether we are building with GNU ld or not.
  11220. with_gnu_ld=$lt_with_gnu_ld
  11221. # Flag that allows shared libraries with undefined symbols to be built.
  11222. allow_undefined_flag=$lt_allow_undefined_flag
  11223. # Flag that enforces no undefined symbols.
  11224. no_undefined_flag=$lt_no_undefined_flag
  11225. # Flag to hardcode \$libdir into a binary during linking.
  11226. # This must work even if \$libdir does not exist
  11227. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  11228. # If ld is used when linking, flag to hardcode \$libdir into a binary
  11229. # during linking. This must work even if \$libdir does not exist.
  11230. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  11231. # Whether we need a single "-rpath" flag with a separated argument.
  11232. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  11233. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11234. # DIR into the resulting binary.
  11235. hardcode_direct=$hardcode_direct
  11236. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11237. # DIR into the resulting binary and the resulting library dependency is
  11238. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  11239. # library is relocated.
  11240. hardcode_direct_absolute=$hardcode_direct_absolute
  11241. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  11242. # into the resulting binary.
  11243. hardcode_minus_L=$hardcode_minus_L
  11244. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  11245. # into the resulting binary.
  11246. hardcode_shlibpath_var=$hardcode_shlibpath_var
  11247. # Set to "yes" if building a shared library automatically hardcodes DIR
  11248. # into the library and all subsequent libraries and executables linked
  11249. # against it.
  11250. hardcode_automatic=$hardcode_automatic
  11251. # Set to yes if linker adds runtime paths of dependent libraries
  11252. # to runtime path list.
  11253. inherit_rpath=$inherit_rpath
  11254. # Whether libtool must link a program against all its dependency libraries.
  11255. link_all_deplibs=$link_all_deplibs
  11256. # Fix the shell variable \$srcfile for the compiler.
  11257. fix_srcfile_path=$lt_fix_srcfile_path
  11258. # Set to "yes" if exported symbols are required.
  11259. always_export_symbols=$always_export_symbols
  11260. # The commands to list exported symbols.
  11261. export_symbols_cmds=$lt_export_symbols_cmds
  11262. # Symbols that should not be listed in the preloaded symbols.
  11263. exclude_expsyms=$lt_exclude_expsyms
  11264. # Symbols that must always be exported.
  11265. include_expsyms=$lt_include_expsyms
  11266. # Commands necessary for linking programs (against libraries) with templates.
  11267. prelink_cmds=$lt_prelink_cmds
  11268. # Specify filename containing input files.
  11269. file_list_spec=$lt_file_list_spec
  11270. # How to hardcode a shared library path into an executable.
  11271. hardcode_action=$hardcode_action
  11272. # ### END LIBTOOL CONFIG
  11273. _LT_EOF
  11274. case $host_os in
  11275. aix3*)
  11276. cat <<\_LT_EOF >> "$cfgfile"
  11277. # AIX sometimes has problems with the GCC collect2 program. For some
  11278. # reason, if we set the COLLECT_NAMES environment variable, the problems
  11279. # vanish in a puff of smoke.
  11280. if test "X${COLLECT_NAMES+set}" != Xset; then
  11281. COLLECT_NAMES=
  11282. export COLLECT_NAMES
  11283. fi
  11284. _LT_EOF
  11285. ;;
  11286. esac
  11287. ltmain="$ac_aux_dir/ltmain.sh"
  11288. # We use sed instead of cat because bash on DJGPP gets confused if
  11289. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  11290. # text mode, it properly converts lines to CR/LF. This bash problem
  11291. # is reportedly fixed, but why not run on old versions too?
  11292. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  11293. || (rm -f "$cfgfile"; exit 1)
  11294. case $xsi_shell in
  11295. yes)
  11296. cat << \_LT_EOF >> "$cfgfile"
  11297. # func_dirname file append nondir_replacement
  11298. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11299. # otherwise set result to NONDIR_REPLACEMENT.
  11300. func_dirname ()
  11301. {
  11302. case ${1} in
  11303. */*) func_dirname_result="${1%/*}${2}" ;;
  11304. * ) func_dirname_result="${3}" ;;
  11305. esac
  11306. }
  11307. # func_basename file
  11308. func_basename ()
  11309. {
  11310. func_basename_result="${1##*/}"
  11311. }
  11312. # func_dirname_and_basename file append nondir_replacement
  11313. # perform func_basename and func_dirname in a single function
  11314. # call:
  11315. # dirname: Compute the dirname of FILE. If nonempty,
  11316. # add APPEND to the result, otherwise set result
  11317. # to NONDIR_REPLACEMENT.
  11318. # value returned in "$func_dirname_result"
  11319. # basename: Compute filename of FILE.
  11320. # value retuned in "$func_basename_result"
  11321. # Implementation must be kept synchronized with func_dirname
  11322. # and func_basename. For efficiency, we do not delegate to
  11323. # those functions but instead duplicate the functionality here.
  11324. func_dirname_and_basename ()
  11325. {
  11326. case ${1} in
  11327. */*) func_dirname_result="${1%/*}${2}" ;;
  11328. * ) func_dirname_result="${3}" ;;
  11329. esac
  11330. func_basename_result="${1##*/}"
  11331. }
  11332. # func_stripname prefix suffix name
  11333. # strip PREFIX and SUFFIX off of NAME.
  11334. # PREFIX and SUFFIX must not contain globbing or regex special
  11335. # characters, hashes, percent signs, but SUFFIX may contain a leading
  11336. # dot (in which case that matches only a dot).
  11337. func_stripname ()
  11338. {
  11339. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  11340. # positional parameters, so assign one to ordinary parameter first.
  11341. func_stripname_result=${3}
  11342. func_stripname_result=${func_stripname_result#"${1}"}
  11343. func_stripname_result=${func_stripname_result%"${2}"}
  11344. }
  11345. # func_opt_split
  11346. func_opt_split ()
  11347. {
  11348. func_opt_split_opt=${1%%=*}
  11349. func_opt_split_arg=${1#*=}
  11350. }
  11351. # func_lo2o object
  11352. func_lo2o ()
  11353. {
  11354. case ${1} in
  11355. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  11356. *) func_lo2o_result=${1} ;;
  11357. esac
  11358. }
  11359. # func_xform libobj-or-source
  11360. func_xform ()
  11361. {
  11362. func_xform_result=${1%.*}.lo
  11363. }
  11364. # func_arith arithmetic-term...
  11365. func_arith ()
  11366. {
  11367. func_arith_result=$(( $* ))
  11368. }
  11369. # func_len string
  11370. # STRING may not start with a hyphen.
  11371. func_len ()
  11372. {
  11373. func_len_result=${#1}
  11374. }
  11375. _LT_EOF
  11376. ;;
  11377. *) # Bourne compatible functions.
  11378. cat << \_LT_EOF >> "$cfgfile"
  11379. # func_dirname file append nondir_replacement
  11380. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11381. # otherwise set result to NONDIR_REPLACEMENT.
  11382. func_dirname ()
  11383. {
  11384. # Extract subdirectory from the argument.
  11385. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  11386. if test "X$func_dirname_result" = "X${1}"; then
  11387. func_dirname_result="${3}"
  11388. else
  11389. func_dirname_result="$func_dirname_result${2}"
  11390. fi
  11391. }
  11392. # func_basename file
  11393. func_basename ()
  11394. {
  11395. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  11396. }
  11397. # func_stripname prefix suffix name
  11398. # strip PREFIX and SUFFIX off of NAME.
  11399. # PREFIX and SUFFIX must not contain globbing or regex special
  11400. # characters, hashes, percent signs, but SUFFIX may contain a leading
  11401. # dot (in which case that matches only a dot).
  11402. # func_strip_suffix prefix name
  11403. func_stripname ()
  11404. {
  11405. case ${2} in
  11406. .*) func_stripname_result=`$ECHO "X${3}" \
  11407. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  11408. *) func_stripname_result=`$ECHO "X${3}" \
  11409. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  11410. esac
  11411. }
  11412. # sed scripts:
  11413. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  11414. my_sed_long_arg='1s/^-[^=]*=//'
  11415. # func_opt_split
  11416. func_opt_split ()
  11417. {
  11418. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  11419. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  11420. }
  11421. # func_lo2o object
  11422. func_lo2o ()
  11423. {
  11424. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  11425. }
  11426. # func_xform libobj-or-source
  11427. func_xform ()
  11428. {
  11429. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  11430. }
  11431. # func_arith arithmetic-term...
  11432. func_arith ()
  11433. {
  11434. func_arith_result=`expr "$@"`
  11435. }
  11436. # func_len string
  11437. # STRING may not start with a hyphen.
  11438. func_len ()
  11439. {
  11440. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  11441. }
  11442. _LT_EOF
  11443. esac
  11444. case $lt_shell_append in
  11445. yes)
  11446. cat << \_LT_EOF >> "$cfgfile"
  11447. # func_append var value
  11448. # Append VALUE to the end of shell variable VAR.
  11449. func_append ()
  11450. {
  11451. eval "$1+=\$2"
  11452. }
  11453. _LT_EOF
  11454. ;;
  11455. *)
  11456. cat << \_LT_EOF >> "$cfgfile"
  11457. # func_append var value
  11458. # Append VALUE to the end of shell variable VAR.
  11459. func_append ()
  11460. {
  11461. eval "$1=\$$1\$2"
  11462. }
  11463. _LT_EOF
  11464. ;;
  11465. esac
  11466. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  11467. || (rm -f "$cfgfile"; exit 1)
  11468. mv -f "$cfgfile" "$ofile" ||
  11469. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  11470. chmod +x "$ofile"
  11471. ;;
  11472. esac
  11473. done # for ac_tag
  11474. { (exit 0); exit 0; }
  11475. _ACEOF
  11476. chmod +x $CONFIG_STATUS
  11477. ac_clean_files=$ac_clean_files_save
  11478. test $ac_write_fail = 0 ||
  11479. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  11480. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  11481. { (exit 1); exit 1; }; }
  11482. # configure is writing to config.log, and then calls config.status.
  11483. # config.status does its own redirection, appending to config.log.
  11484. # Unfortunately, on DOS this fails, as config.log is still kept open
  11485. # by configure, so config.status won't be able to write to it; its
  11486. # output is simply discarded. So we exec the FD to /dev/null,
  11487. # effectively closing config.log, so it can be properly (re)opened and
  11488. # appended to by config.status. When coming back to configure, we
  11489. # need to make the FD available again.
  11490. if test "$no_create" != yes; then
  11491. ac_cs_success=:
  11492. ac_config_status_args=
  11493. test "$silent" = yes &&
  11494. ac_config_status_args="$ac_config_status_args --quiet"
  11495. exec 5>/dev/null
  11496. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11497. exec 5>>config.log
  11498. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11499. # would make configure fail if this is the last instruction.
  11500. $ac_cs_success || { (exit 1); exit 1; }
  11501. fi
  11502. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  11503. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  11504. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  11505. fi