output.2 549 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648
  1. @%:@! /bin/sh
  2. @%:@ Guess values for system-dependent variables and create Makefiles.
  3. @%:@ Generated by GNU Autoconf 2.68 for cgminer 4.3.5-scrypt.2.
  4. @%:@
  5. @%:@ Report bugs to <kernel@kolivas.org>.
  6. @%:@
  7. @%:@
  8. @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. @%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  10. @%:@ Foundation, Inc.
  11. @%:@
  12. @%:@
  13. @%:@ This configure script is free software; the Free Software Foundation
  14. @%:@ gives unlimited permission to copy, distribute and modify it.
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else
  28. case `(set -o) 2>/dev/null` in @%:@(
  29. *posix*) :
  30. set -o posix ;; @%:@(
  31. *) :
  32. ;;
  33. esac
  34. fi
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. # Prefer a ksh shell builtin over an external printf program on Solaris,
  43. # but without wasting forks for bash or zsh.
  44. if test -z "$BASH_VERSION$ZSH_VERSION" \
  45. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='print -r --'
  47. as_echo_n='print -rn --'
  48. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='printf %s\n'
  50. as_echo_n='printf %s'
  51. else
  52. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  53. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54. as_echo_n='/usr/ucb/echo -n'
  55. else
  56. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57. as_echo_n_body='eval
  58. arg=$1;
  59. case $arg in @%:@(
  60. *"$as_nl"*)
  61. expr "X$arg" : "X\\(.*\\)$as_nl";
  62. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  63. esac;
  64. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65. '
  66. export as_echo_n_body
  67. as_echo_n='sh -c $as_echo_n_body as_echo'
  68. fi
  69. export as_echo_body
  70. as_echo='sh -c $as_echo_body as_echo'
  71. fi
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. as_myself=
  88. case $0 in @%:@((
  89. *[\\/]* ) as_myself=$0 ;;
  90. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  91. for as_dir in $PATH
  92. do
  93. IFS=$as_save_IFS
  94. test -z "$as_dir" && as_dir=.
  95. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  96. done
  97. IFS=$as_save_IFS
  98. ;;
  99. esac
  100. # We did not find ourselves, most probably we were run as `sh COMMAND'
  101. # in which case we are not to be found in the path.
  102. if test "x$as_myself" = x; then
  103. as_myself=$0
  104. fi
  105. if test ! -f "$as_myself"; then
  106. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  107. exit 1
  108. fi
  109. # Unset variables that we do not need and which cause bugs (e.g. in
  110. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  111. # suppresses any "Segmentation fault" message there. '((' could
  112. # trigger a bug in pdksh 5.2.14.
  113. for as_var in BASH_ENV ENV MAIL MAILPATH
  114. do eval test x\${$as_var+set} = xset \
  115. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  116. done
  117. PS1='$ '
  118. PS2='> '
  119. PS4='+ '
  120. # NLS nuisances.
  121. LC_ALL=C
  122. export LC_ALL
  123. LANGUAGE=C
  124. export LANGUAGE
  125. # CDPATH.
  126. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else
  136. case \`(set -o) 2>/dev/null\` in @%:@(
  137. *posix*) :
  138. set -o posix ;; @%:@(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  155. else
  156. exitcode=1; echo positional parameters were not saved.
  157. fi
  158. test x\$exitcode = x0 || exit 1"
  159. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  160. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  161. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  162. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  163. test \$(( 1 + 1 )) = 2 || exit 1
  164. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  165. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  166. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  167. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  168. PATH=/empty FPATH=/empty; export PATH FPATH
  169. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  170. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  171. if (eval "$as_required") 2>/dev/null; then :
  172. as_have_required=yes
  173. else
  174. as_have_required=no
  175. fi
  176. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  177. else
  178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  179. as_found=false
  180. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  181. do
  182. IFS=$as_save_IFS
  183. test -z "$as_dir" && as_dir=.
  184. as_found=:
  185. case $as_dir in @%:@(
  186. /*)
  187. for as_base in sh bash ksh sh5; do
  188. # Try only shells that exist, to save several forks.
  189. as_shell=$as_dir/$as_base
  190. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  191. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  192. CONFIG_SHELL=$as_shell as_have_required=yes
  193. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  194. break 2
  195. fi
  196. fi
  197. done;;
  198. esac
  199. as_found=false
  200. done
  201. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  202. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  203. CONFIG_SHELL=$SHELL as_have_required=yes
  204. fi; }
  205. IFS=$as_save_IFS
  206. if test "x$CONFIG_SHELL" != x; then :
  207. # We cannot yet assume a decent shell, so we have to provide a
  208. # neutralization value for shells without unset; and this also
  209. # works around shells that cannot unset nonexistent variables.
  210. # Preserve -v and -x to the replacement shell.
  211. BASH_ENV=/dev/null
  212. ENV=/dev/null
  213. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  214. export CONFIG_SHELL
  215. case $- in @%:@ ((((
  216. *v*x* | *x*v* ) as_opts=-vx ;;
  217. *v* ) as_opts=-v ;;
  218. *x* ) as_opts=-x ;;
  219. * ) as_opts= ;;
  220. esac
  221. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  222. fi
  223. if test x$as_have_required = xno; then :
  224. $as_echo "$0: This script requires a shell more modern than all"
  225. $as_echo "$0: the shells that I found on your system."
  226. if test x${ZSH_VERSION+set} = xset ; then
  227. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  228. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  229. else
  230. $as_echo "$0: Please tell bug-autoconf@gnu.org and kernel@kolivas.org
  231. $0: about your system, including any error possibly output
  232. $0: before this message. Then install a modern shell, or
  233. $0: manually run the script under such a shell if you do
  234. $0: have one."
  235. fi
  236. exit 1
  237. fi
  238. fi
  239. fi
  240. SHELL=${CONFIG_SHELL-/bin/sh}
  241. export SHELL
  242. # Unset more variables known to interfere with behavior of common tools.
  243. CLICOLOR_FORCE= GREP_OPTIONS=
  244. unset CLICOLOR_FORCE GREP_OPTIONS
  245. ## --------------------- ##
  246. ## M4sh Shell Functions. ##
  247. ## --------------------- ##
  248. @%:@ as_fn_unset VAR
  249. @%:@ ---------------
  250. @%:@ Portably unset VAR.
  251. as_fn_unset ()
  252. {
  253. { eval $1=; unset $1;}
  254. }
  255. as_unset=as_fn_unset
  256. @%:@ as_fn_set_status STATUS
  257. @%:@ -----------------------
  258. @%:@ Set @S|@? to STATUS, without forking.
  259. as_fn_set_status ()
  260. {
  261. return $1
  262. } @%:@ as_fn_set_status
  263. @%:@ as_fn_exit STATUS
  264. @%:@ -----------------
  265. @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  266. as_fn_exit ()
  267. {
  268. set +e
  269. as_fn_set_status $1
  270. exit $1
  271. } @%:@ as_fn_exit
  272. @%:@ as_fn_mkdir_p
  273. @%:@ -------------
  274. @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
  275. as_fn_mkdir_p ()
  276. {
  277. case $as_dir in #(
  278. -*) as_dir=./$as_dir;;
  279. esac
  280. test -d "$as_dir" || eval $as_mkdir_p || {
  281. as_dirs=
  282. while :; do
  283. case $as_dir in #(
  284. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  285. *) as_qdir=$as_dir;;
  286. esac
  287. as_dirs="'$as_qdir' $as_dirs"
  288. as_dir=`$as_dirname -- "$as_dir" ||
  289. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  290. X"$as_dir" : 'X\(//\)[^/]' \| \
  291. X"$as_dir" : 'X\(//\)$' \| \
  292. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  293. $as_echo X"$as_dir" |
  294. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  295. s//\1/
  296. q
  297. }
  298. /^X\(\/\/\)[^/].*/{
  299. s//\1/
  300. q
  301. }
  302. /^X\(\/\/\)$/{
  303. s//\1/
  304. q
  305. }
  306. /^X\(\/\).*/{
  307. s//\1/
  308. q
  309. }
  310. s/.*/./; q'`
  311. test -d "$as_dir" && break
  312. done
  313. test -z "$as_dirs" || eval "mkdir $as_dirs"
  314. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  315. } @%:@ as_fn_mkdir_p
  316. @%:@ as_fn_append VAR VALUE
  317. @%:@ ----------------------
  318. @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
  319. @%:@ advantage of any shell optimizations that allow amortized linear growth over
  320. @%:@ repeated appends, instead of the typical quadratic growth present in naive
  321. @%:@ implementations.
  322. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  323. eval 'as_fn_append ()
  324. {
  325. eval $1+=\$2
  326. }'
  327. else
  328. as_fn_append ()
  329. {
  330. eval $1=\$$1\$2
  331. }
  332. fi # as_fn_append
  333. @%:@ as_fn_arith ARG...
  334. @%:@ ------------------
  335. @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
  336. @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
  337. @%:@ must be portable across @S|@(()) and expr.
  338. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  339. eval 'as_fn_arith ()
  340. {
  341. as_val=$(( $* ))
  342. }'
  343. else
  344. as_fn_arith ()
  345. {
  346. as_val=`expr "$@" || test $? -eq 1`
  347. }
  348. fi # as_fn_arith
  349. @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
  350. @%:@ ----------------------------------------
  351. @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  352. @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  353. @%:@ script with STATUS, using 1 if that was 0.
  354. as_fn_error ()
  355. {
  356. as_status=$1; test $as_status -eq 0 && as_status=1
  357. if test "$4"; then
  358. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  359. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  360. fi
  361. $as_echo "$as_me: error: $2" >&2
  362. as_fn_exit $as_status
  363. } @%:@ as_fn_error
  364. if expr a : '\(a\)' >/dev/null 2>&1 &&
  365. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  366. as_expr=expr
  367. else
  368. as_expr=false
  369. fi
  370. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  371. as_basename=basename
  372. else
  373. as_basename=false
  374. fi
  375. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  376. as_dirname=dirname
  377. else
  378. as_dirname=false
  379. fi
  380. as_me=`$as_basename -- "$0" ||
  381. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  382. X"$0" : 'X\(//\)$' \| \
  383. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  384. $as_echo X/"$0" |
  385. sed '/^.*\/\([^/][^/]*\)\/*$/{
  386. s//\1/
  387. q
  388. }
  389. /^X\/\(\/\/\)$/{
  390. s//\1/
  391. q
  392. }
  393. /^X\/\(\/\).*/{
  394. s//\1/
  395. q
  396. }
  397. s/.*/./; q'`
  398. # Avoid depending upon Character Ranges.
  399. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  400. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  401. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  402. as_cr_digits='0123456789'
  403. as_cr_alnum=$as_cr_Letters$as_cr_digits
  404. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  405. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  406. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  407. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  408. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  409. sed -n '
  410. p
  411. /[$]LINENO/=
  412. ' <$as_myself |
  413. sed '
  414. s/[$]LINENO.*/&-/
  415. t lineno
  416. b
  417. :lineno
  418. N
  419. :loop
  420. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  421. t loop
  422. s/-\n.*//
  423. ' >$as_me.lineno &&
  424. chmod +x "$as_me.lineno" ||
  425. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  426. # Don't try to exec as it changes $[0], causing all sort of problems
  427. # (the dirname of $[0] is not the place where we might find the
  428. # original and so on. Autoconf is especially sensitive to this).
  429. . "./$as_me.lineno"
  430. # Exit status is that of the last command.
  431. exit
  432. }
  433. ECHO_C= ECHO_N= ECHO_T=
  434. case `echo -n x` in @%:@(((((
  435. -n*)
  436. case `echo 'xy\c'` in
  437. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  438. xy) ECHO_C='\c';;
  439. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  440. ECHO_T=' ';;
  441. esac;;
  442. *)
  443. ECHO_N='-n';;
  444. esac
  445. rm -f conf$$ conf$$.exe conf$$.file
  446. if test -d conf$$.dir; then
  447. rm -f conf$$.dir/conf$$.file
  448. else
  449. rm -f conf$$.dir
  450. mkdir conf$$.dir 2>/dev/null
  451. fi
  452. if (echo >conf$$.file) 2>/dev/null; then
  453. if ln -s conf$$.file conf$$ 2>/dev/null; then
  454. as_ln_s='ln -s'
  455. # ... but there are two gotchas:
  456. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  457. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  458. # In both cases, we have to default to `cp -p'.
  459. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  460. as_ln_s='cp -p'
  461. elif ln conf$$.file conf$$ 2>/dev/null; then
  462. as_ln_s=ln
  463. else
  464. as_ln_s='cp -p'
  465. fi
  466. else
  467. as_ln_s='cp -p'
  468. fi
  469. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  470. rmdir conf$$.dir 2>/dev/null
  471. if mkdir -p . 2>/dev/null; then
  472. as_mkdir_p='mkdir -p "$as_dir"'
  473. else
  474. test -d ./-p && rmdir ./-p
  475. as_mkdir_p=false
  476. fi
  477. if test -x / >/dev/null 2>&1; then
  478. as_test_x='test -x'
  479. else
  480. if ls -dL / >/dev/null 2>&1; then
  481. as_ls_L_option=L
  482. else
  483. as_ls_L_option=
  484. fi
  485. as_test_x='
  486. eval sh -c '\''
  487. if test -d "$1"; then
  488. test -d "$1/.";
  489. else
  490. case $1 in @%:@(
  491. -*)set "./$1";;
  492. esac;
  493. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
  494. ???[sx]*):;;*)false;;esac;fi
  495. '\'' sh
  496. '
  497. fi
  498. as_executable_p=$as_test_x
  499. # Sed expression to map a string onto a valid CPP name.
  500. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  501. # Sed expression to map a string onto a valid variable name.
  502. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  503. SHELL=${CONFIG_SHELL-/bin/sh}
  504. test -n "$DJDIR" || exec 7<&0 </dev/null
  505. exec 6>&1
  506. # Name of the host.
  507. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  508. # so uname gets run too.
  509. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  510. #
  511. # Initializations.
  512. #
  513. ac_default_prefix=/usr/local
  514. ac_clean_files=
  515. ac_config_libobj_dir=.
  516. LIB@&t@OBJS=
  517. cross_compiling=no
  518. subdirs=
  519. MFLAGS=
  520. MAKEFLAGS=
  521. # Identity of this package.
  522. PACKAGE_NAME='cgminer'
  523. PACKAGE_TARNAME='cgminer'
  524. PACKAGE_VERSION='4.3.5-scrypt.2'
  525. PACKAGE_STRING='cgminer 4.3.5-scrypt.2'
  526. PACKAGE_BUGREPORT='kernel@kolivas.org'
  527. PACKAGE_URL=''
  528. ac_unique_file="cgminer.c"
  529. # Factoring default headers for most tests.
  530. ac_includes_default="\
  531. #include <stdio.h>
  532. #ifdef HAVE_SYS_TYPES_H
  533. # include <sys/types.h>
  534. #endif
  535. #ifdef HAVE_SYS_STAT_H
  536. # include <sys/stat.h>
  537. #endif
  538. #ifdef STDC_HEADERS
  539. # include <stdlib.h>
  540. # include <stddef.h>
  541. #else
  542. # ifdef HAVE_STDLIB_H
  543. # include <stdlib.h>
  544. # endif
  545. #endif
  546. #ifdef HAVE_STRING_H
  547. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  548. # include <memory.h>
  549. # endif
  550. # include <string.h>
  551. #endif
  552. #ifdef HAVE_STRINGS_H
  553. # include <strings.h>
  554. #endif
  555. #ifdef HAVE_INTTYPES_H
  556. # include <inttypes.h>
  557. #endif
  558. #ifdef HAVE_STDINT_H
  559. # include <stdint.h>
  560. #endif
  561. #ifdef HAVE_UNISTD_H
  562. # include <unistd.h>
  563. #endif"
  564. gl_header_list=
  565. gl_func_list=
  566. enable_option_checking=no
  567. ac_subst_vars='gltests_LTLIBOBJS
  568. gltests_LIBOBJS
  569. gl_LTLIBOBJS
  570. gl_LIBOBJS
  571. am__EXEEXT_FALSE
  572. am__EXEEXT_TRUE
  573. LTLIBOBJS
  574. LIB@&t@OBJS
  575. RT_LIBS
  576. MATH_LIBS
  577. MM_LIBS
  578. WS2_LIBS
  579. PDCURSES_LIBS
  580. NCURSES_LIBS
  581. PTHREAD_LIBS
  582. DLOPEN_FLAGS
  583. PTHREAD_FLAGS
  584. JANSSON_LIBS
  585. LIBCURL_LIBS
  586. LIBUDEV_LIBS
  587. LIBUSB_CFLAGS
  588. LIBUSB_LIBS
  589. WANT_STATIC_LIBUSB_FALSE
  590. WANT_STATIC_LIBUSB_TRUE
  591. subdirs
  592. HAVE_x86_64_FALSE
  593. HAVE_x86_64_TRUE
  594. HAVE_WINDOWS_FALSE
  595. HAVE_WINDOWS_TRUE
  596. HAVE_CURSES_FALSE
  597. HAVE_CURSES_TRUE
  598. WANT_LIBBITFURY_FALSE
  599. WANT_LIBBITFURY_TRUE
  600. WANT_USBUTILS_FALSE
  601. WANT_USBUTILS_TRUE
  602. NEED_FPGAUTILS_FALSE
  603. NEED_FPGAUTILS_TRUE
  604. HAS_LKETC_FALSE
  605. HAS_LKETC_TRUE
  606. HAS_ZEUS_FALSE
  607. HAS_ZEUS_TRUE
  608. HAS_GRIDSEED_FALSE
  609. HAS_GRIDSEED_TRUE
  610. HAS_SPONDOOLIES_FALSE
  611. HAS_SPONDOOLIES_TRUE
  612. HAS_MODMINER_FALSE
  613. HAS_MODMINER_TRUE
  614. HAS_MINION_FALSE
  615. HAS_MINION_TRUE
  616. HAS_AVALON2_FALSE
  617. HAS_AVALON2_TRUE
  618. HAS_KNC_FALSE
  619. HAS_KNC_TRUE
  620. HAS_KLONDIKE_FALSE
  621. HAS_KLONDIKE_TRUE
  622. HAS_ICARUS_FALSE
  623. HAS_ICARUS_TRUE
  624. HAS_HASHFAST_FALSE
  625. HAS_HASHFAST_TRUE
  626. HAS_DRILLBIT_FALSE
  627. HAS_DRILLBIT_TRUE
  628. HAS_BITMINE_A1_FALSE
  629. HAS_BITMINE_A1_TRUE
  630. HAS_COINTERRA_FALSE
  631. HAS_COINTERRA_TRUE
  632. HAS_BITFURY_FALSE
  633. HAS_BITFURY_TRUE
  634. HAS_BITFORCE_FALSE
  635. HAS_BITFORCE_TRUE
  636. HAS_BFLSC_FALSE
  637. HAS_BFLSC_TRUE
  638. HAS_BAB_FALSE
  639. HAS_BAB_TRUE
  640. HAS_AVALON_FALSE
  641. HAS_AVALON_TRUE
  642. HAS_ANT_S2_FALSE
  643. HAS_ANT_S2_TRUE
  644. HAS_ANT_S1_FALSE
  645. HAS_ANT_S1_TRUE
  646. HAS_SCRYPT_FALSE
  647. HAS_SCRYPT_TRUE
  648. ALLOCA
  649. LIBGNU_LTLIBDEPS
  650. LIBGNU_LIBDEPS
  651. gltests_WITNESS
  652. NEXT_AS_FIRST_DIRECTIVE_STRING_H
  653. NEXT_STRING_H
  654. GL_GENERATE_STDINT_H_FALSE
  655. GL_GENERATE_STDINT_H_TRUE
  656. STDINT_H
  657. WINT_T_SUFFIX
  658. WCHAR_T_SUFFIX
  659. SIG_ATOMIC_T_SUFFIX
  660. SIZE_T_SUFFIX
  661. PTRDIFF_T_SUFFIX
  662. HAVE_SIGNED_WINT_T
  663. HAVE_SIGNED_WCHAR_T
  664. HAVE_SIGNED_SIG_ATOMIC_T
  665. BITSIZEOF_WINT_T
  666. BITSIZEOF_WCHAR_T
  667. BITSIZEOF_SIG_ATOMIC_T
  668. BITSIZEOF_SIZE_T
  669. BITSIZEOF_PTRDIFF_T
  670. HAVE_SYS_BITYPES_H
  671. HAVE_SYS_INTTYPES_H
  672. HAVE_STDINT_H
  673. NEXT_AS_FIRST_DIRECTIVE_STDINT_H
  674. NEXT_STDINT_H
  675. HAVE_SYS_TYPES_H
  676. HAVE_INTTYPES_H
  677. HAVE_WCHAR_H
  678. HAVE_UNSIGNED_LONG_LONG_INT
  679. HAVE_LONG_LONG_INT
  680. NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
  681. NEXT_STDDEF_H
  682. GL_GENERATE_STDDEF_H_FALSE
  683. GL_GENERATE_STDDEF_H_TRUE
  684. STDDEF_H
  685. HAVE_WCHAR_T
  686. REPLACE_NULL
  687. NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
  688. NEXT_SIGNAL_H
  689. PRAGMA_COLUMNS
  690. PRAGMA_SYSTEM_HEADER
  691. INCLUDE_NEXT_AS_FIRST_DIRECTIVE
  692. INCLUDE_NEXT
  693. HAVE_SIGHANDLER_T
  694. HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
  695. HAVE_STRUCT_SIGACTION_SA_SIGACTION
  696. HAVE_SIGACTION
  697. HAVE_SIGINFO_T
  698. HAVE_SIGSET_T
  699. HAVE_POSIX_SIGNALBLOCKING
  700. GNULIB_SIGACTION
  701. GNULIB_SIGPROCMASK
  702. GNULIB_SIGNAL_H_SIGPIPE
  703. APPLE_UNIVERSAL_BUILD
  704. UNDEFINE_STRTOK_R
  705. REPLACE_STRTOK_R
  706. REPLACE_STRSIGNAL
  707. REPLACE_STRNLEN
  708. REPLACE_STRNDUP
  709. REPLACE_STRNCAT
  710. REPLACE_STRERROR_R
  711. REPLACE_STRERROR
  712. REPLACE_STRCHRNUL
  713. REPLACE_STRCASESTR
  714. REPLACE_STRSTR
  715. REPLACE_STRDUP
  716. REPLACE_STPNCPY
  717. REPLACE_MEMMEM
  718. REPLACE_MEMCHR
  719. HAVE_STRVERSCMP
  720. HAVE_DECL_STRSIGNAL
  721. HAVE_DECL_STRERROR_R
  722. HAVE_DECL_STRTOK_R
  723. HAVE_STRCASESTR
  724. HAVE_STRSEP
  725. HAVE_STRPBRK
  726. HAVE_DECL_STRNLEN
  727. HAVE_DECL_STRNDUP
  728. HAVE_DECL_STRDUP
  729. HAVE_STRCHRNUL
  730. HAVE_STPNCPY
  731. HAVE_STPCPY
  732. HAVE_RAWMEMCHR
  733. HAVE_DECL_MEMRCHR
  734. HAVE_MEMPCPY
  735. HAVE_DECL_MEMMEM
  736. HAVE_MEMCHR
  737. HAVE_MBSLEN
  738. GNULIB_STRVERSCMP
  739. GNULIB_STRSIGNAL
  740. GNULIB_STRERROR_R
  741. GNULIB_STRERROR
  742. GNULIB_MBSTOK_R
  743. GNULIB_MBSSEP
  744. GNULIB_MBSSPN
  745. GNULIB_MBSPBRK
  746. GNULIB_MBSCSPN
  747. GNULIB_MBSCASESTR
  748. GNULIB_MBSPCASECMP
  749. GNULIB_MBSNCASECMP
  750. GNULIB_MBSCASECMP
  751. GNULIB_MBSSTR
  752. GNULIB_MBSRCHR
  753. GNULIB_MBSCHR
  754. GNULIB_MBSNLEN
  755. GNULIB_MBSLEN
  756. GNULIB_STRTOK_R
  757. GNULIB_STRCASESTR
  758. GNULIB_STRSTR
  759. GNULIB_STRSEP
  760. GNULIB_STRPBRK
  761. GNULIB_STRNLEN
  762. GNULIB_STRNDUP
  763. GNULIB_STRNCAT
  764. GNULIB_STRDUP
  765. GNULIB_STRCHRNUL
  766. GNULIB_STPNCPY
  767. GNULIB_STPCPY
  768. GNULIB_RAWMEMCHR
  769. GNULIB_MEMRCHR
  770. GNULIB_MEMPCPY
  771. GNULIB_MEMMEM
  772. GNULIB_MEMCHR
  773. GL_COND_LIBTOOL_FALSE
  774. GL_COND_LIBTOOL_TRUE
  775. OTOOL64
  776. OTOOL
  777. LIPO
  778. NMEDIT
  779. DSYMUTIL
  780. MANIFEST_TOOL
  781. ac_ct_AR
  782. AR
  783. DLLTOOL
  784. OBJDUMP
  785. LN_S
  786. NM
  787. ac_ct_DUMPBIN
  788. DUMPBIN
  789. LD
  790. FGREP
  791. SED
  792. LIBTOOL
  793. RANLIB
  794. MAINT
  795. MAINTAINER_MODE_FALSE
  796. MAINTAINER_MODE_TRUE
  797. VMAJ
  798. release_info
  799. version_info
  800. EGREP
  801. GREP
  802. CPP
  803. am__fastdepCC_FALSE
  804. am__fastdepCC_TRUE
  805. CCDEPMODE
  806. AMDEPBACKSLASH
  807. AMDEP_FALSE
  808. AMDEP_TRUE
  809. am__quote
  810. am__include
  811. DEPDIR
  812. OBJEXT
  813. EXEEXT
  814. ac_ct_CC
  815. CPPFLAGS
  816. LDFLAGS
  817. CFLAGS
  818. CC
  819. AM_BACKSLASH
  820. AM_DEFAULT_VERBOSITY
  821. am__untar
  822. am__tar
  823. AMTAR
  824. am__leading_dot
  825. SET_MAKE
  826. AWK
  827. mkdir_p
  828. MKDIR_P
  829. INSTALL_STRIP_PROGRAM
  830. STRIP
  831. install_sh
  832. MAKEINFO
  833. AUTOHEADER
  834. AUTOMAKE
  835. AUTOCONF
  836. ACLOCAL
  837. VERSION
  838. PACKAGE
  839. CYGPATH_W
  840. am__isrc
  841. INSTALL_DATA
  842. INSTALL_SCRIPT
  843. INSTALL_PROGRAM
  844. target_os
  845. target_vendor
  846. target_cpu
  847. target
  848. host_os
  849. host_vendor
  850. host_cpu
  851. host
  852. build_os
  853. build_vendor
  854. build_cpu
  855. build
  856. target_alias
  857. host_alias
  858. build_alias
  859. LIBS
  860. ECHO_T
  861. ECHO_N
  862. ECHO_C
  863. DEFS
  864. mandir
  865. localedir
  866. libdir
  867. psdir
  868. pdfdir
  869. dvidir
  870. htmldir
  871. infodir
  872. docdir
  873. oldincludedir
  874. includedir
  875. localstatedir
  876. sharedstatedir
  877. sysconfdir
  878. datadir
  879. datarootdir
  880. libexecdir
  881. sbindir
  882. bindir
  883. program_transform_name
  884. prefix
  885. exec_prefix
  886. PACKAGE_URL
  887. PACKAGE_BUGREPORT
  888. PACKAGE_STRING
  889. PACKAGE_VERSION
  890. PACKAGE_TARNAME
  891. PACKAGE_NAME
  892. PATH_SEPARATOR
  893. SHELL'
  894. ac_subst_files=''
  895. ac_user_opts='
  896. enable_option_checking
  897. enable_silent_rules
  898. enable_dependency_tracking
  899. enable_maintainer_mode
  900. enable_shared
  901. enable_static
  902. with_pic
  903. enable_fast_install
  904. with_gnu_ld
  905. with_sysroot
  906. enable_libtool_lock
  907. enable_scrypt
  908. enable_ants1
  909. enable_ants2
  910. enable_avalon
  911. enable_bab
  912. enable_bflsc
  913. enable_bitforce
  914. enable_bitfury
  915. enable_cointerra
  916. enable_bitmine_A1
  917. enable_drillbit
  918. enable_hashfast
  919. enable_icarus
  920. enable_klondike
  921. enable_knc
  922. enable_avalon2
  923. enable_minion
  924. enable_modminer
  925. enable_spondoolies
  926. enable_gridseed
  927. enable_zeus
  928. enable_lketc
  929. with_curses
  930. with_system_libusb
  931. enable_libcurl
  932. '
  933. ac_precious_vars='build_alias
  934. host_alias
  935. target_alias
  936. CC
  937. CFLAGS
  938. LDFLAGS
  939. LIBS
  940. CPPFLAGS
  941. CPP'
  942. ac_subdirs_all='compat/libusb-1.0
  943. compat/jansson-2.5'
  944. # Initialize some variables set by options.
  945. ac_init_help=
  946. ac_init_version=false
  947. ac_unrecognized_opts=
  948. ac_unrecognized_sep=
  949. # The variables have the same names as the options, with
  950. # dashes changed to underlines.
  951. cache_file=/dev/null
  952. exec_prefix=NONE
  953. no_create=
  954. no_recursion=
  955. prefix=NONE
  956. program_prefix=NONE
  957. program_suffix=NONE
  958. program_transform_name=s,x,x,
  959. silent=
  960. site=
  961. srcdir=
  962. verbose=
  963. x_includes=NONE
  964. x_libraries=NONE
  965. # Installation directory options.
  966. # These are left unexpanded so users can "make install exec_prefix=/foo"
  967. # and all the variables that are supposed to be based on exec_prefix
  968. # by default will actually change.
  969. # Use braces instead of parens because sh, perl, etc. also accept them.
  970. # (The list follows the same order as the GNU Coding Standards.)
  971. bindir='${exec_prefix}/bin'
  972. sbindir='${exec_prefix}/sbin'
  973. libexecdir='${exec_prefix}/libexec'
  974. datarootdir='${prefix}/share'
  975. datadir='${datarootdir}'
  976. sysconfdir='${prefix}/etc'
  977. sharedstatedir='${prefix}/com'
  978. localstatedir='${prefix}/var'
  979. includedir='${prefix}/include'
  980. oldincludedir='/usr/include'
  981. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  982. infodir='${datarootdir}/info'
  983. htmldir='${docdir}'
  984. dvidir='${docdir}'
  985. pdfdir='${docdir}'
  986. psdir='${docdir}'
  987. libdir='${exec_prefix}/lib'
  988. localedir='${datarootdir}/locale'
  989. mandir='${datarootdir}/man'
  990. ac_prev=
  991. ac_dashdash=
  992. for ac_option
  993. do
  994. # If the previous option needs an argument, assign it.
  995. if test -n "$ac_prev"; then
  996. eval $ac_prev=\$ac_option
  997. ac_prev=
  998. continue
  999. fi
  1000. case $ac_option in
  1001. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1002. *=) ac_optarg= ;;
  1003. *) ac_optarg=yes ;;
  1004. esac
  1005. # Accept the important Cygnus configure options, so we can diagnose typos.
  1006. case $ac_dashdash$ac_option in
  1007. --)
  1008. ac_dashdash=yes ;;
  1009. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1010. ac_prev=bindir ;;
  1011. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1012. bindir=$ac_optarg ;;
  1013. -build | --build | --buil | --bui | --bu)
  1014. ac_prev=build_alias ;;
  1015. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1016. build_alias=$ac_optarg ;;
  1017. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1018. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1019. ac_prev=cache_file ;;
  1020. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1021. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1022. cache_file=$ac_optarg ;;
  1023. --config-cache | -C)
  1024. cache_file=config.cache ;;
  1025. -datadir | --datadir | --datadi | --datad)
  1026. ac_prev=datadir ;;
  1027. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1028. datadir=$ac_optarg ;;
  1029. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1030. | --dataroo | --dataro | --datar)
  1031. ac_prev=datarootdir ;;
  1032. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1033. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1034. datarootdir=$ac_optarg ;;
  1035. -disable-* | --disable-*)
  1036. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1037. # Reject names that are not valid shell variable names.
  1038. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1039. as_fn_error $? "invalid feature name: $ac_useropt"
  1040. ac_useropt_orig=$ac_useropt
  1041. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1042. case $ac_user_opts in
  1043. *"
  1044. "enable_$ac_useropt"
  1045. "*) ;;
  1046. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1047. ac_unrecognized_sep=', ';;
  1048. esac
  1049. eval enable_$ac_useropt=no ;;
  1050. -docdir | --docdir | --docdi | --doc | --do)
  1051. ac_prev=docdir ;;
  1052. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1053. docdir=$ac_optarg ;;
  1054. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1055. ac_prev=dvidir ;;
  1056. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1057. dvidir=$ac_optarg ;;
  1058. -enable-* | --enable-*)
  1059. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1060. # Reject names that are not valid shell variable names.
  1061. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1062. as_fn_error $? "invalid feature name: $ac_useropt"
  1063. ac_useropt_orig=$ac_useropt
  1064. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1065. case $ac_user_opts in
  1066. *"
  1067. "enable_$ac_useropt"
  1068. "*) ;;
  1069. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1070. ac_unrecognized_sep=', ';;
  1071. esac
  1072. eval enable_$ac_useropt=\$ac_optarg ;;
  1073. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1074. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1075. | --exec | --exe | --ex)
  1076. ac_prev=exec_prefix ;;
  1077. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1078. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1079. | --exec=* | --exe=* | --ex=*)
  1080. exec_prefix=$ac_optarg ;;
  1081. -gas | --gas | --ga | --g)
  1082. # Obsolete; use --with-gas.
  1083. with_gas=yes ;;
  1084. -help | --help | --hel | --he | -h)
  1085. ac_init_help=long ;;
  1086. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1087. ac_init_help=recursive ;;
  1088. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1089. ac_init_help=short ;;
  1090. -host | --host | --hos | --ho)
  1091. ac_prev=host_alias ;;
  1092. -host=* | --host=* | --hos=* | --ho=*)
  1093. host_alias=$ac_optarg ;;
  1094. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1095. ac_prev=htmldir ;;
  1096. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1097. | --ht=*)
  1098. htmldir=$ac_optarg ;;
  1099. -includedir | --includedir | --includedi | --included | --include \
  1100. | --includ | --inclu | --incl | --inc)
  1101. ac_prev=includedir ;;
  1102. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1103. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1104. includedir=$ac_optarg ;;
  1105. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1106. ac_prev=infodir ;;
  1107. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1108. infodir=$ac_optarg ;;
  1109. -libdir | --libdir | --libdi | --libd)
  1110. ac_prev=libdir ;;
  1111. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1112. libdir=$ac_optarg ;;
  1113. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1114. | --libexe | --libex | --libe)
  1115. ac_prev=libexecdir ;;
  1116. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1117. | --libexe=* | --libex=* | --libe=*)
  1118. libexecdir=$ac_optarg ;;
  1119. -localedir | --localedir | --localedi | --localed | --locale)
  1120. ac_prev=localedir ;;
  1121. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1122. localedir=$ac_optarg ;;
  1123. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1124. | --localstate | --localstat | --localsta | --localst | --locals)
  1125. ac_prev=localstatedir ;;
  1126. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1127. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1128. localstatedir=$ac_optarg ;;
  1129. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1130. ac_prev=mandir ;;
  1131. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1132. mandir=$ac_optarg ;;
  1133. -nfp | --nfp | --nf)
  1134. # Obsolete; use --without-fp.
  1135. with_fp=no ;;
  1136. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1137. | --no-cr | --no-c | -n)
  1138. no_create=yes ;;
  1139. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1140. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1141. no_recursion=yes ;;
  1142. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1143. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1144. | --oldin | --oldi | --old | --ol | --o)
  1145. ac_prev=oldincludedir ;;
  1146. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1147. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1148. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1149. oldincludedir=$ac_optarg ;;
  1150. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1151. ac_prev=prefix ;;
  1152. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1153. prefix=$ac_optarg ;;
  1154. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1155. | --program-pre | --program-pr | --program-p)
  1156. ac_prev=program_prefix ;;
  1157. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1158. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1159. program_prefix=$ac_optarg ;;
  1160. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1161. | --program-suf | --program-su | --program-s)
  1162. ac_prev=program_suffix ;;
  1163. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1164. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1165. program_suffix=$ac_optarg ;;
  1166. -program-transform-name | --program-transform-name \
  1167. | --program-transform-nam | --program-transform-na \
  1168. | --program-transform-n | --program-transform- \
  1169. | --program-transform | --program-transfor \
  1170. | --program-transfo | --program-transf \
  1171. | --program-trans | --program-tran \
  1172. | --progr-tra | --program-tr | --program-t)
  1173. ac_prev=program_transform_name ;;
  1174. -program-transform-name=* | --program-transform-name=* \
  1175. | --program-transform-nam=* | --program-transform-na=* \
  1176. | --program-transform-n=* | --program-transform-=* \
  1177. | --program-transform=* | --program-transfor=* \
  1178. | --program-transfo=* | --program-transf=* \
  1179. | --program-trans=* | --program-tran=* \
  1180. | --progr-tra=* | --program-tr=* | --program-t=*)
  1181. program_transform_name=$ac_optarg ;;
  1182. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1183. ac_prev=pdfdir ;;
  1184. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1185. pdfdir=$ac_optarg ;;
  1186. -psdir | --psdir | --psdi | --psd | --ps)
  1187. ac_prev=psdir ;;
  1188. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1189. psdir=$ac_optarg ;;
  1190. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1191. | -silent | --silent | --silen | --sile | --sil)
  1192. silent=yes ;;
  1193. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1194. ac_prev=sbindir ;;
  1195. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1196. | --sbi=* | --sb=*)
  1197. sbindir=$ac_optarg ;;
  1198. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1199. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1200. | --sharedst | --shareds | --shared | --share | --shar \
  1201. | --sha | --sh)
  1202. ac_prev=sharedstatedir ;;
  1203. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1204. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1205. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1206. | --sha=* | --sh=*)
  1207. sharedstatedir=$ac_optarg ;;
  1208. -site | --site | --sit)
  1209. ac_prev=site ;;
  1210. -site=* | --site=* | --sit=*)
  1211. site=$ac_optarg ;;
  1212. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1213. ac_prev=srcdir ;;
  1214. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1215. srcdir=$ac_optarg ;;
  1216. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1217. | --syscon | --sysco | --sysc | --sys | --sy)
  1218. ac_prev=sysconfdir ;;
  1219. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1220. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1221. sysconfdir=$ac_optarg ;;
  1222. -target | --target | --targe | --targ | --tar | --ta | --t)
  1223. ac_prev=target_alias ;;
  1224. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1225. target_alias=$ac_optarg ;;
  1226. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1227. verbose=yes ;;
  1228. -version | --version | --versio | --versi | --vers | -V)
  1229. ac_init_version=: ;;
  1230. -with-* | --with-*)
  1231. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1232. # Reject names that are not valid shell variable names.
  1233. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1234. as_fn_error $? "invalid package name: $ac_useropt"
  1235. ac_useropt_orig=$ac_useropt
  1236. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1237. case $ac_user_opts in
  1238. *"
  1239. "with_$ac_useropt"
  1240. "*) ;;
  1241. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1242. ac_unrecognized_sep=', ';;
  1243. esac
  1244. eval with_$ac_useropt=\$ac_optarg ;;
  1245. -without-* | --without-*)
  1246. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1247. # Reject names that are not valid shell variable names.
  1248. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1249. as_fn_error $? "invalid package name: $ac_useropt"
  1250. ac_useropt_orig=$ac_useropt
  1251. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1252. case $ac_user_opts in
  1253. *"
  1254. "with_$ac_useropt"
  1255. "*) ;;
  1256. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1257. ac_unrecognized_sep=', ';;
  1258. esac
  1259. eval with_$ac_useropt=no ;;
  1260. --x)
  1261. # Obsolete; use --with-x.
  1262. with_x=yes ;;
  1263. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1264. | --x-incl | --x-inc | --x-in | --x-i)
  1265. ac_prev=x_includes ;;
  1266. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1267. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1268. x_includes=$ac_optarg ;;
  1269. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1270. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1271. ac_prev=x_libraries ;;
  1272. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1273. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1274. x_libraries=$ac_optarg ;;
  1275. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1276. Try \`$0 --help' for more information"
  1277. ;;
  1278. *=*)
  1279. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1280. # Reject names that are not valid shell variable names.
  1281. case $ac_envvar in #(
  1282. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1283. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1284. esac
  1285. eval $ac_envvar=\$ac_optarg
  1286. export $ac_envvar ;;
  1287. *)
  1288. # FIXME: should be removed in autoconf 3.0.
  1289. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1290. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1291. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1292. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1293. ;;
  1294. esac
  1295. done
  1296. if test -n "$ac_prev"; then
  1297. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1298. as_fn_error $? "missing argument to $ac_option"
  1299. fi
  1300. if test -n "$ac_unrecognized_opts"; then
  1301. case $enable_option_checking in
  1302. no) ;;
  1303. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1304. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1305. esac
  1306. fi
  1307. # Check all directory arguments for consistency.
  1308. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1309. datadir sysconfdir sharedstatedir localstatedir includedir \
  1310. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1311. libdir localedir mandir
  1312. do
  1313. eval ac_val=\$$ac_var
  1314. # Remove trailing slashes.
  1315. case $ac_val in
  1316. */ )
  1317. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1318. eval $ac_var=\$ac_val;;
  1319. esac
  1320. # Be sure to have absolute directory names.
  1321. case $ac_val in
  1322. [\\/$]* | ?:[\\/]* ) continue;;
  1323. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1324. esac
  1325. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1326. done
  1327. # There might be people who depend on the old broken behavior: `$host'
  1328. # used to hold the argument of --host etc.
  1329. # FIXME: To remove some day.
  1330. build=$build_alias
  1331. host=$host_alias
  1332. target=$target_alias
  1333. # FIXME: To remove some day.
  1334. if test "x$host_alias" != x; then
  1335. if test "x$build_alias" = x; then
  1336. cross_compiling=maybe
  1337. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1338. If a cross compiler is detected then cross compile mode will be used" >&2
  1339. elif test "x$build_alias" != "x$host_alias"; then
  1340. cross_compiling=yes
  1341. fi
  1342. fi
  1343. ac_tool_prefix=
  1344. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1345. test "$silent" = yes && exec 6>/dev/null
  1346. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1347. ac_ls_di=`ls -di .` &&
  1348. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1349. as_fn_error $? "working directory cannot be determined"
  1350. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1351. as_fn_error $? "pwd does not report name of working directory"
  1352. # Find the source files, if location was not specified.
  1353. if test -z "$srcdir"; then
  1354. ac_srcdir_defaulted=yes
  1355. # Try the directory containing this script, then the parent directory.
  1356. ac_confdir=`$as_dirname -- "$as_myself" ||
  1357. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1358. X"$as_myself" : 'X\(//\)[^/]' \| \
  1359. X"$as_myself" : 'X\(//\)$' \| \
  1360. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1361. $as_echo X"$as_myself" |
  1362. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1363. s//\1/
  1364. q
  1365. }
  1366. /^X\(\/\/\)[^/].*/{
  1367. s//\1/
  1368. q
  1369. }
  1370. /^X\(\/\/\)$/{
  1371. s//\1/
  1372. q
  1373. }
  1374. /^X\(\/\).*/{
  1375. s//\1/
  1376. q
  1377. }
  1378. s/.*/./; q'`
  1379. srcdir=$ac_confdir
  1380. if test ! -r "$srcdir/$ac_unique_file"; then
  1381. srcdir=..
  1382. fi
  1383. else
  1384. ac_srcdir_defaulted=no
  1385. fi
  1386. if test ! -r "$srcdir/$ac_unique_file"; then
  1387. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1388. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1389. fi
  1390. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1391. ac_abs_confdir=`(
  1392. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1393. pwd)`
  1394. # When building in place, set srcdir=.
  1395. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1396. srcdir=.
  1397. fi
  1398. # Remove unnecessary trailing slashes from srcdir.
  1399. # Double slashes in file names in object file debugging info
  1400. # mess up M-x gdb in Emacs.
  1401. case $srcdir in
  1402. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1403. esac
  1404. for ac_var in $ac_precious_vars; do
  1405. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1406. eval ac_env_${ac_var}_value=\$${ac_var}
  1407. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1408. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1409. done
  1410. #
  1411. # Report the --help message.
  1412. #
  1413. if test "$ac_init_help" = "long"; then
  1414. # Omit some internal or obsolete options to make the list less imposing.
  1415. # This message is too long to be a string in the A/UX 3.1 sh.
  1416. cat <<_ACEOF
  1417. \`configure' configures cgminer 4.3.5-scrypt.2 to adapt to many kinds of systems.
  1418. Usage: $0 [OPTION]... [VAR=VALUE]...
  1419. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1420. VAR=VALUE. See below for descriptions of some of the useful variables.
  1421. Defaults for the options are specified in brackets.
  1422. Configuration:
  1423. -h, --help display this help and exit
  1424. --help=short display options specific to this package
  1425. --help=recursive display the short help of all the included packages
  1426. -V, --version display version information and exit
  1427. -q, --quiet, --silent do not print \`checking ...' messages
  1428. --cache-file=FILE cache test results in FILE [disabled]
  1429. -C, --config-cache alias for \`--cache-file=config.cache'
  1430. -n, --no-create do not create output files
  1431. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1432. Installation directories:
  1433. --prefix=PREFIX install architecture-independent files in PREFIX
  1434. @<:@@S|@ac_default_prefix@:>@
  1435. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1436. @<:@PREFIX@:>@
  1437. By default, \`make install' will install all the files in
  1438. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1439. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1440. for instance \`--prefix=\$HOME'.
  1441. For better control, use the options below.
  1442. Fine tuning of the installation directories:
  1443. --bindir=DIR user executables [EPREFIX/bin]
  1444. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1445. --libexecdir=DIR program executables [EPREFIX/libexec]
  1446. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1447. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1448. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1449. --libdir=DIR object code libraries [EPREFIX/lib]
  1450. --includedir=DIR C header files [PREFIX/include]
  1451. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1452. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1453. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1454. --infodir=DIR info documentation [DATAROOTDIR/info]
  1455. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1456. --mandir=DIR man documentation [DATAROOTDIR/man]
  1457. --docdir=DIR documentation root @<:@DATAROOTDIR/doc/cgminer@:>@
  1458. --htmldir=DIR html documentation [DOCDIR]
  1459. --dvidir=DIR dvi documentation [DOCDIR]
  1460. --pdfdir=DIR pdf documentation [DOCDIR]
  1461. --psdir=DIR ps documentation [DOCDIR]
  1462. _ACEOF
  1463. cat <<\_ACEOF
  1464. Program names:
  1465. --program-prefix=PREFIX prepend PREFIX to installed program names
  1466. --program-suffix=SUFFIX append SUFFIX to installed program names
  1467. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1468. System types:
  1469. --build=BUILD configure for building on BUILD [guessed]
  1470. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1471. --target=TARGET configure for building compilers for TARGET [HOST]
  1472. _ACEOF
  1473. fi
  1474. if test -n "$ac_init_help"; then
  1475. case $ac_init_help in
  1476. short | recursive ) echo "Configuration of cgminer 4.3.5-scrypt.2:";;
  1477. esac
  1478. cat <<\_ACEOF
  1479. Optional Features:
  1480. --disable-option-checking ignore unrecognized --enable/--with options
  1481. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1482. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1483. --enable-silent-rules less verbose build output (undo: `make V=1')
  1484. --disable-silent-rules verbose build output (undo: `make V=0')
  1485. --disable-dependency-tracking speeds up one-time build
  1486. --enable-dependency-tracking do not reject slow dependency extractors
  1487. --enable-maintainer-mode enable make rules and dependencies not useful
  1488. (and sometimes confusing) to the casual installer
  1489. --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=no@:>@
  1490. --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
  1491. --enable-fast-install@<:@=PKGS@:>@
  1492. optimize for fast installation @<:@default=yes@:>@
  1493. --disable-libtool-lock avoid locking (might break parallel builds)
  1494. --enable-scrypt Compile support for scrypt mining (default disabled)
  1495. --enable-ants1 Compile support for Antminer S1 Bitmain (default
  1496. disabled)
  1497. --enable-ants2 Compile support for Antminer S2 Bitmain (default
  1498. disabled)
  1499. --enable-avalon Compile support for Avalon (default disabled)
  1500. --enable-bab Compile support for BlackArrow Bitfury (default
  1501. disabled)
  1502. --enable-bflsc Compile support for BFL ASICs (default disabled)
  1503. --enable-bitforce Compile support for BitForce FPGAs (default
  1504. disabled)
  1505. --enable-bitfury Compile support for BitFury ASICs (default disabled)
  1506. --enable-cointerra Compile support for Cointerra ASICs (default
  1507. disabled)
  1508. --enable-bitmine_A1 Compile support for Bitmine.ch A1 ASICs (default
  1509. disabled)
  1510. --enable-drillbit Compile support for Drillbit BitFury ASICs (default
  1511. disabled)
  1512. --enable-hashfast Compile support for Hashfast (default disabled)
  1513. --enable-icarus Compile support for Icarus (default disabled)
  1514. --enable-klondike Compile support for Klondike (default disabled)
  1515. --enable-knc Compile support for KnC miners (default disabled)
  1516. --enable-avalon2 Compile support for Avalon2 (default disabled)
  1517. --enable-minion Compile support for Minion BlackArrow ASIC (default
  1518. disabled)
  1519. --enable-modminer Compile support for ModMiner FPGAs(default disabled)
  1520. --enable-spondoolies Compile support for Spondoolies (default disabled)
  1521. --enable-gridseed Compile support for GridSeed (default disabled)
  1522. --enable-zeus Compile support for Zeusminer (default disabled)
  1523. --enable-lketc Compile support for Zeusminer (default disabled)
  1524. --disable-libcurl Disable building with libcurl for getwork and GBT
  1525. support
  1526. Optional Packages:
  1527. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1528. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1529. --with-pic try to use only PIC/non-PIC objects @<:@default=use
  1530. both@:>@
  1531. --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
  1532. --with-sysroot=DIR Search for dependent libraries within DIR
  1533. (or the compiler's sysroot if not specified).
  1534. --without-curses Compile support for curses TUI (default enabled)
  1535. --with-system-libusb Compile against dynamic system libusb (default use
  1536. included static libusb)
  1537. Some influential environment variables:
  1538. CC C compiler command
  1539. CFLAGS C compiler flags
  1540. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1541. nonstandard directory <lib dir>
  1542. LIBS libraries to pass to the linker, e.g. -l<library>
  1543. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1544. you have headers in a nonstandard directory <include dir>
  1545. CPP C preprocessor
  1546. Use these variables to override the choices made by `configure' or to help
  1547. it to find libraries and programs with nonstandard names/locations.
  1548. Report bugs to <kernel@kolivas.org>.
  1549. _ACEOF
  1550. ac_status=$?
  1551. fi
  1552. if test "$ac_init_help" = "recursive"; then
  1553. # If there are subdirs, report their specific --help.
  1554. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1555. test -d "$ac_dir" ||
  1556. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1557. continue
  1558. ac_builddir=.
  1559. case "$ac_dir" in
  1560. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1561. *)
  1562. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1563. # A ".." for each directory in $ac_dir_suffix.
  1564. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1565. case $ac_top_builddir_sub in
  1566. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1567. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1568. esac ;;
  1569. esac
  1570. ac_abs_top_builddir=$ac_pwd
  1571. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1572. # for backward compatibility:
  1573. ac_top_builddir=$ac_top_build_prefix
  1574. case $srcdir in
  1575. .) # We are building in place.
  1576. ac_srcdir=.
  1577. ac_top_srcdir=$ac_top_builddir_sub
  1578. ac_abs_top_srcdir=$ac_pwd ;;
  1579. [\\/]* | ?:[\\/]* ) # Absolute name.
  1580. ac_srcdir=$srcdir$ac_dir_suffix;
  1581. ac_top_srcdir=$srcdir
  1582. ac_abs_top_srcdir=$srcdir ;;
  1583. *) # Relative name.
  1584. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1585. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1586. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1587. esac
  1588. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1589. cd "$ac_dir" || { ac_status=$?; continue; }
  1590. # Check for guested configure.
  1591. if test -f "$ac_srcdir/configure.gnu"; then
  1592. echo &&
  1593. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1594. elif test -f "$ac_srcdir/configure"; then
  1595. echo &&
  1596. $SHELL "$ac_srcdir/configure" --help=recursive
  1597. else
  1598. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1599. fi || ac_status=$?
  1600. cd "$ac_pwd" || { ac_status=$?; break; }
  1601. done
  1602. fi
  1603. test -n "$ac_init_help" && exit $ac_status
  1604. if $ac_init_version; then
  1605. cat <<\_ACEOF
  1606. cgminer configure 4.3.5-scrypt.2
  1607. generated by GNU Autoconf 2.68
  1608. Copyright (C) 2010 Free Software Foundation, Inc.
  1609. This configure script is free software; the Free Software Foundation
  1610. gives unlimited permission to copy, distribute and modify it.
  1611. _ACEOF
  1612. exit
  1613. fi
  1614. ## ------------------------ ##
  1615. ## Autoconf initialization. ##
  1616. ## ------------------------ ##
  1617. @%:@ ac_fn_c_try_compile LINENO
  1618. @%:@ --------------------------
  1619. @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
  1620. ac_fn_c_try_compile ()
  1621. {
  1622. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1623. rm -f conftest.$ac_objext
  1624. if { { ac_try="$ac_compile"
  1625. case "(($ac_try" in
  1626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1627. *) ac_try_echo=$ac_try;;
  1628. esac
  1629. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1630. $as_echo "$ac_try_echo"; } >&5
  1631. (eval "$ac_compile") 2>conftest.err
  1632. ac_status=$?
  1633. if test -s conftest.err; then
  1634. grep -v '^ *+' conftest.err >conftest.er1
  1635. cat conftest.er1 >&5
  1636. mv -f conftest.er1 conftest.err
  1637. fi
  1638. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1639. test $ac_status = 0; } && {
  1640. test -z "$ac_c_werror_flag" ||
  1641. test ! -s conftest.err
  1642. } && test -s conftest.$ac_objext; then :
  1643. ac_retval=0
  1644. else
  1645. $as_echo "$as_me: failed program was:" >&5
  1646. sed 's/^/| /' conftest.$ac_ext >&5
  1647. ac_retval=1
  1648. fi
  1649. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1650. as_fn_set_status $ac_retval
  1651. } @%:@ ac_fn_c_try_compile
  1652. @%:@ ac_fn_c_try_cpp LINENO
  1653. @%:@ ----------------------
  1654. @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
  1655. ac_fn_c_try_cpp ()
  1656. {
  1657. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1658. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1659. case "(($ac_try" in
  1660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1661. *) ac_try_echo=$ac_try;;
  1662. esac
  1663. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1664. $as_echo "$ac_try_echo"; } >&5
  1665. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1666. ac_status=$?
  1667. if test -s conftest.err; then
  1668. grep -v '^ *+' conftest.err >conftest.er1
  1669. cat conftest.er1 >&5
  1670. mv -f conftest.er1 conftest.err
  1671. fi
  1672. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1673. test $ac_status = 0; } > conftest.i && {
  1674. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1675. test ! -s conftest.err
  1676. }; then :
  1677. ac_retval=0
  1678. else
  1679. $as_echo "$as_me: failed program was:" >&5
  1680. sed 's/^/| /' conftest.$ac_ext >&5
  1681. ac_retval=1
  1682. fi
  1683. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1684. as_fn_set_status $ac_retval
  1685. } @%:@ ac_fn_c_try_cpp
  1686. @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1687. @%:@ -------------------------------------------------------
  1688. @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1689. @%:@ the include files in INCLUDES and setting the cache variable VAR
  1690. @%:@ accordingly.
  1691. ac_fn_c_check_header_mongrel ()
  1692. {
  1693. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1694. if eval \${$3+:} false; then :
  1695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1696. $as_echo_n "checking for $2... " >&6; }
  1697. if eval \${$3+:} false; then :
  1698. $as_echo_n "(cached) " >&6
  1699. fi
  1700. eval ac_res=\$$3
  1701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1702. $as_echo "$ac_res" >&6; }
  1703. else
  1704. # Is the header compilable?
  1705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1706. $as_echo_n "checking $2 usability... " >&6; }
  1707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1708. /* end confdefs.h. */
  1709. $4
  1710. @%:@include <$2>
  1711. _ACEOF
  1712. if ac_fn_c_try_compile "$LINENO"; then :
  1713. ac_header_compiler=yes
  1714. else
  1715. ac_header_compiler=no
  1716. fi
  1717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1719. $as_echo "$ac_header_compiler" >&6; }
  1720. # Is the header present?
  1721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1722. $as_echo_n "checking $2 presence... " >&6; }
  1723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1724. /* end confdefs.h. */
  1725. @%:@include <$2>
  1726. _ACEOF
  1727. if ac_fn_c_try_cpp "$LINENO"; then :
  1728. ac_header_preproc=yes
  1729. else
  1730. ac_header_preproc=no
  1731. fi
  1732. rm -f conftest.err conftest.i conftest.$ac_ext
  1733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1734. $as_echo "$ac_header_preproc" >&6; }
  1735. # So? What about this header?
  1736. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1737. yes:no: )
  1738. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1739. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1740. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1741. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1742. ;;
  1743. no:yes:* )
  1744. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1745. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1746. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1747. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1748. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1749. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1750. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1751. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1752. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1753. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1754. ( $as_echo "## --------------------------------- ##
  1755. ## Report this to kernel@kolivas.org ##
  1756. ## --------------------------------- ##"
  1757. ) | sed "s/^/$as_me: WARNING: /" >&2
  1758. ;;
  1759. esac
  1760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1761. $as_echo_n "checking for $2... " >&6; }
  1762. if eval \${$3+:} false; then :
  1763. $as_echo_n "(cached) " >&6
  1764. else
  1765. eval "$3=\$ac_header_compiler"
  1766. fi
  1767. eval ac_res=\$$3
  1768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1769. $as_echo "$ac_res" >&6; }
  1770. fi
  1771. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1772. } @%:@ ac_fn_c_check_header_mongrel
  1773. @%:@ ac_fn_c_try_run LINENO
  1774. @%:@ ----------------------
  1775. @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
  1776. @%:@ that executables *can* be run.
  1777. ac_fn_c_try_run ()
  1778. {
  1779. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1780. if { { ac_try="$ac_link"
  1781. case "(($ac_try" in
  1782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1783. *) ac_try_echo=$ac_try;;
  1784. esac
  1785. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1786. $as_echo "$ac_try_echo"; } >&5
  1787. (eval "$ac_link") 2>&5
  1788. ac_status=$?
  1789. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1790. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1791. { { case "(($ac_try" in
  1792. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1793. *) ac_try_echo=$ac_try;;
  1794. esac
  1795. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1796. $as_echo "$ac_try_echo"; } >&5
  1797. (eval "$ac_try") 2>&5
  1798. ac_status=$?
  1799. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1800. test $ac_status = 0; }; }; then :
  1801. ac_retval=0
  1802. else
  1803. $as_echo "$as_me: program exited with status $ac_status" >&5
  1804. $as_echo "$as_me: failed program was:" >&5
  1805. sed 's/^/| /' conftest.$ac_ext >&5
  1806. ac_retval=$ac_status
  1807. fi
  1808. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1809. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1810. as_fn_set_status $ac_retval
  1811. } @%:@ ac_fn_c_try_run
  1812. @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1813. @%:@ -------------------------------------------------------
  1814. @%:@ Tests whether HEADER exists and can be compiled using the include files in
  1815. @%:@ INCLUDES, setting the cache variable VAR accordingly.
  1816. ac_fn_c_check_header_compile ()
  1817. {
  1818. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1820. $as_echo_n "checking for $2... " >&6; }
  1821. if eval \${$3+:} false; then :
  1822. $as_echo_n "(cached) " >&6
  1823. else
  1824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1825. /* end confdefs.h. */
  1826. $4
  1827. @%:@include <$2>
  1828. _ACEOF
  1829. if ac_fn_c_try_compile "$LINENO"; then :
  1830. eval "$3=yes"
  1831. else
  1832. eval "$3=no"
  1833. fi
  1834. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1835. fi
  1836. eval ac_res=\$$3
  1837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1838. $as_echo "$ac_res" >&6; }
  1839. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1840. } @%:@ ac_fn_c_check_header_compile
  1841. @%:@ ac_fn_c_try_link LINENO
  1842. @%:@ -----------------------
  1843. @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
  1844. ac_fn_c_try_link ()
  1845. {
  1846. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1847. rm -f conftest.$ac_objext conftest$ac_exeext
  1848. if { { ac_try="$ac_link"
  1849. case "(($ac_try" in
  1850. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1851. *) ac_try_echo=$ac_try;;
  1852. esac
  1853. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1854. $as_echo "$ac_try_echo"; } >&5
  1855. (eval "$ac_link") 2>conftest.err
  1856. ac_status=$?
  1857. if test -s conftest.err; then
  1858. grep -v '^ *+' conftest.err >conftest.er1
  1859. cat conftest.er1 >&5
  1860. mv -f conftest.er1 conftest.err
  1861. fi
  1862. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1863. test $ac_status = 0; } && {
  1864. test -z "$ac_c_werror_flag" ||
  1865. test ! -s conftest.err
  1866. } && test -s conftest$ac_exeext && {
  1867. test "$cross_compiling" = yes ||
  1868. $as_test_x conftest$ac_exeext
  1869. }; then :
  1870. ac_retval=0
  1871. else
  1872. $as_echo "$as_me: failed program was:" >&5
  1873. sed 's/^/| /' conftest.$ac_ext >&5
  1874. ac_retval=1
  1875. fi
  1876. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1877. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1878. # interfere with the next link command; also delete a directory that is
  1879. # left behind by Apple's compiler. We do this before executing the actions.
  1880. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1881. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1882. as_fn_set_status $ac_retval
  1883. } @%:@ ac_fn_c_try_link
  1884. @%:@ ac_fn_c_check_func LINENO FUNC VAR
  1885. @%:@ ----------------------------------
  1886. @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
  1887. ac_fn_c_check_func ()
  1888. {
  1889. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1891. $as_echo_n "checking for $2... " >&6; }
  1892. if eval \${$3+:} false; then :
  1893. $as_echo_n "(cached) " >&6
  1894. else
  1895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1896. /* end confdefs.h. */
  1897. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1898. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1899. #define $2 innocuous_$2
  1900. /* System header to define __stub macros and hopefully few prototypes,
  1901. which can conflict with char $2 (); below.
  1902. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1903. <limits.h> exists even on freestanding compilers. */
  1904. #ifdef __STDC__
  1905. # include <limits.h>
  1906. #else
  1907. # include <assert.h>
  1908. #endif
  1909. #undef $2
  1910. /* Override any GCC internal prototype to avoid an error.
  1911. Use char because int might match the return type of a GCC
  1912. builtin and then its argument prototype would still apply. */
  1913. #ifdef __cplusplus
  1914. extern "C"
  1915. #endif
  1916. char $2 ();
  1917. /* The GNU C library defines this for functions which it implements
  1918. to always fail with ENOSYS. Some functions are actually named
  1919. something starting with __ and the normal name is an alias. */
  1920. #if defined __stub_$2 || defined __stub___$2
  1921. choke me
  1922. #endif
  1923. int
  1924. main ()
  1925. {
  1926. return $2 ();
  1927. ;
  1928. return 0;
  1929. }
  1930. _ACEOF
  1931. if ac_fn_c_try_link "$LINENO"; then :
  1932. eval "$3=yes"
  1933. else
  1934. eval "$3=no"
  1935. fi
  1936. rm -f core conftest.err conftest.$ac_objext \
  1937. conftest$ac_exeext conftest.$ac_ext
  1938. fi
  1939. eval ac_res=\$$3
  1940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1941. $as_echo "$ac_res" >&6; }
  1942. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1943. } @%:@ ac_fn_c_check_func
  1944. @%:@ ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1945. @%:@ ---------------------------------------------
  1946. @%:@ Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1947. @%:@ accordingly.
  1948. ac_fn_c_check_decl ()
  1949. {
  1950. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1951. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1952. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1954. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1955. if eval \${$3+:} false; then :
  1956. $as_echo_n "(cached) " >&6
  1957. else
  1958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1959. /* end confdefs.h. */
  1960. $4
  1961. int
  1962. main ()
  1963. {
  1964. @%:@ifndef $as_decl_name
  1965. @%:@ifdef __cplusplus
  1966. (void) $as_decl_use;
  1967. @%:@else
  1968. (void) $as_decl_name;
  1969. @%:@endif
  1970. @%:@endif
  1971. ;
  1972. return 0;
  1973. }
  1974. _ACEOF
  1975. if ac_fn_c_try_compile "$LINENO"; then :
  1976. eval "$3=yes"
  1977. else
  1978. eval "$3=no"
  1979. fi
  1980. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1981. fi
  1982. eval ac_res=\$$3
  1983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1984. $as_echo "$ac_res" >&6; }
  1985. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1986. } @%:@ ac_fn_c_check_decl
  1987. @%:@ ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1988. @%:@ ----------------------------------------------------
  1989. @%:@ Tries to find if the field MEMBER exists in type AGGR, after including
  1990. @%:@ INCLUDES, setting cache variable VAR accordingly.
  1991. ac_fn_c_check_member ()
  1992. {
  1993. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1995. $as_echo_n "checking for $2.$3... " >&6; }
  1996. if eval \${$4+:} false; then :
  1997. $as_echo_n "(cached) " >&6
  1998. else
  1999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2000. /* end confdefs.h. */
  2001. $5
  2002. int
  2003. main ()
  2004. {
  2005. static $2 ac_aggr;
  2006. if (ac_aggr.$3)
  2007. return 0;
  2008. ;
  2009. return 0;
  2010. }
  2011. _ACEOF
  2012. if ac_fn_c_try_compile "$LINENO"; then :
  2013. eval "$4=yes"
  2014. else
  2015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2016. /* end confdefs.h. */
  2017. $5
  2018. int
  2019. main ()
  2020. {
  2021. static $2 ac_aggr;
  2022. if (sizeof ac_aggr.$3)
  2023. return 0;
  2024. ;
  2025. return 0;
  2026. }
  2027. _ACEOF
  2028. if ac_fn_c_try_compile "$LINENO"; then :
  2029. eval "$4=yes"
  2030. else
  2031. eval "$4=no"
  2032. fi
  2033. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2034. fi
  2035. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2036. fi
  2037. eval ac_res=\$$4
  2038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2039. $as_echo "$ac_res" >&6; }
  2040. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2041. } @%:@ ac_fn_c_check_member
  2042. @%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2043. @%:@ -------------------------------------------
  2044. @%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
  2045. @%:@ variable VAR accordingly.
  2046. ac_fn_c_check_type ()
  2047. {
  2048. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2050. $as_echo_n "checking for $2... " >&6; }
  2051. if eval \${$3+:} false; then :
  2052. $as_echo_n "(cached) " >&6
  2053. else
  2054. eval "$3=no"
  2055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2056. /* end confdefs.h. */
  2057. $4
  2058. int
  2059. main ()
  2060. {
  2061. if (sizeof ($2))
  2062. return 0;
  2063. ;
  2064. return 0;
  2065. }
  2066. _ACEOF
  2067. if ac_fn_c_try_compile "$LINENO"; then :
  2068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2069. /* end confdefs.h. */
  2070. $4
  2071. int
  2072. main ()
  2073. {
  2074. if (sizeof (($2)))
  2075. return 0;
  2076. ;
  2077. return 0;
  2078. }
  2079. _ACEOF
  2080. if ac_fn_c_try_compile "$LINENO"; then :
  2081. else
  2082. eval "$3=yes"
  2083. fi
  2084. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2085. fi
  2086. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2087. fi
  2088. eval ac_res=\$$3
  2089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2090. $as_echo "$ac_res" >&6; }
  2091. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2092. } @%:@ ac_fn_c_check_type
  2093. @%:@ ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2094. @%:@ --------------------------------------------
  2095. @%:@ Tries to find the compile-time value of EXPR in a program that includes
  2096. @%:@ INCLUDES, setting VAR accordingly. Returns whether the value could be
  2097. @%:@ computed
  2098. ac_fn_c_compute_int ()
  2099. {
  2100. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2101. if test "$cross_compiling" = yes; then
  2102. # Depending upon the size, compute the lo and hi bounds.
  2103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2104. /* end confdefs.h. */
  2105. $4
  2106. int
  2107. main ()
  2108. {
  2109. static int test_array @<:@1 - 2 * !(($2) >= 0)@:>@;
  2110. test_array @<:@0@:>@ = 0
  2111. ;
  2112. return 0;
  2113. }
  2114. _ACEOF
  2115. if ac_fn_c_try_compile "$LINENO"; then :
  2116. ac_lo=0 ac_mid=0
  2117. while :; do
  2118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2119. /* end confdefs.h. */
  2120. $4
  2121. int
  2122. main ()
  2123. {
  2124. static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
  2125. test_array @<:@0@:>@ = 0
  2126. ;
  2127. return 0;
  2128. }
  2129. _ACEOF
  2130. if ac_fn_c_try_compile "$LINENO"; then :
  2131. ac_hi=$ac_mid; break
  2132. else
  2133. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2134. if test $ac_lo -le $ac_mid; then
  2135. ac_lo= ac_hi=
  2136. break
  2137. fi
  2138. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2139. fi
  2140. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2141. done
  2142. else
  2143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2144. /* end confdefs.h. */
  2145. $4
  2146. int
  2147. main ()
  2148. {
  2149. static int test_array @<:@1 - 2 * !(($2) < 0)@:>@;
  2150. test_array @<:@0@:>@ = 0
  2151. ;
  2152. return 0;
  2153. }
  2154. _ACEOF
  2155. if ac_fn_c_try_compile "$LINENO"; then :
  2156. ac_hi=-1 ac_mid=-1
  2157. while :; do
  2158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2159. /* end confdefs.h. */
  2160. $4
  2161. int
  2162. main ()
  2163. {
  2164. static int test_array @<:@1 - 2 * !(($2) >= $ac_mid)@:>@;
  2165. test_array @<:@0@:>@ = 0
  2166. ;
  2167. return 0;
  2168. }
  2169. _ACEOF
  2170. if ac_fn_c_try_compile "$LINENO"; then :
  2171. ac_lo=$ac_mid; break
  2172. else
  2173. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2174. if test $ac_mid -le $ac_hi; then
  2175. ac_lo= ac_hi=
  2176. break
  2177. fi
  2178. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2179. fi
  2180. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2181. done
  2182. else
  2183. ac_lo= ac_hi=
  2184. fi
  2185. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2186. fi
  2187. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2188. # Binary search between lo and hi bounds.
  2189. while test "x$ac_lo" != "x$ac_hi"; do
  2190. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2192. /* end confdefs.h. */
  2193. $4
  2194. int
  2195. main ()
  2196. {
  2197. static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
  2198. test_array @<:@0@:>@ = 0
  2199. ;
  2200. return 0;
  2201. }
  2202. _ACEOF
  2203. if ac_fn_c_try_compile "$LINENO"; then :
  2204. ac_hi=$ac_mid
  2205. else
  2206. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2207. fi
  2208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2209. done
  2210. case $ac_lo in @%:@((
  2211. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2212. '') ac_retval=1 ;;
  2213. esac
  2214. else
  2215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2216. /* end confdefs.h. */
  2217. $4
  2218. static long int longval () { return $2; }
  2219. static unsigned long int ulongval () { return $2; }
  2220. @%:@include <stdio.h>
  2221. @%:@include <stdlib.h>
  2222. int
  2223. main ()
  2224. {
  2225. FILE *f = fopen ("conftest.val", "w");
  2226. if (! f)
  2227. return 1;
  2228. if (($2) < 0)
  2229. {
  2230. long int i = longval ();
  2231. if (i != ($2))
  2232. return 1;
  2233. fprintf (f, "%ld", i);
  2234. }
  2235. else
  2236. {
  2237. unsigned long int i = ulongval ();
  2238. if (i != ($2))
  2239. return 1;
  2240. fprintf (f, "%lu", i);
  2241. }
  2242. /* Do not output a trailing newline, as this causes \r\n confusion
  2243. on some platforms. */
  2244. return ferror (f) || fclose (f) != 0;
  2245. ;
  2246. return 0;
  2247. }
  2248. _ACEOF
  2249. if ac_fn_c_try_run "$LINENO"; then :
  2250. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2251. else
  2252. ac_retval=1
  2253. fi
  2254. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2255. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2256. rm -f conftest.val
  2257. fi
  2258. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2259. as_fn_set_status $ac_retval
  2260. } @%:@ ac_fn_c_compute_int
  2261. cat >config.log <<_ACEOF
  2262. This file contains any messages produced by compilers while
  2263. running configure, to aid debugging if configure makes a mistake.
  2264. It was created by cgminer $as_me 4.3.5-scrypt.2, which was
  2265. generated by GNU Autoconf 2.68. Invocation command line was
  2266. $ $0 $@
  2267. _ACEOF
  2268. exec 5>>config.log
  2269. {
  2270. cat <<_ASUNAME
  2271. ## --------- ##
  2272. ## Platform. ##
  2273. ## --------- ##
  2274. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2275. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2276. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2277. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2278. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2279. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2280. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2281. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2282. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2283. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2284. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2285. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2286. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2287. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2288. _ASUNAME
  2289. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2290. for as_dir in $PATH
  2291. do
  2292. IFS=$as_save_IFS
  2293. test -z "$as_dir" && as_dir=.
  2294. $as_echo "PATH: $as_dir"
  2295. done
  2296. IFS=$as_save_IFS
  2297. } >&5
  2298. cat >&5 <<_ACEOF
  2299. ## ----------- ##
  2300. ## Core tests. ##
  2301. ## ----------- ##
  2302. _ACEOF
  2303. # Keep a trace of the command line.
  2304. # Strip out --no-create and --no-recursion so they do not pile up.
  2305. # Strip out --silent because we don't want to record it for future runs.
  2306. # Also quote any args containing shell meta-characters.
  2307. # Make two passes to allow for proper duplicate-argument suppression.
  2308. ac_configure_args=
  2309. ac_configure_args0=
  2310. ac_configure_args1=
  2311. ac_must_keep_next=false
  2312. for ac_pass in 1 2
  2313. do
  2314. for ac_arg
  2315. do
  2316. case $ac_arg in
  2317. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2318. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2319. | -silent | --silent | --silen | --sile | --sil)
  2320. continue ;;
  2321. *\'*)
  2322. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2323. esac
  2324. case $ac_pass in
  2325. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2326. 2)
  2327. as_fn_append ac_configure_args1 " '$ac_arg'"
  2328. if test $ac_must_keep_next = true; then
  2329. ac_must_keep_next=false # Got value, back to normal.
  2330. else
  2331. case $ac_arg in
  2332. *=* | --config-cache | -C | -disable-* | --disable-* \
  2333. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2334. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2335. | -with-* | --with-* | -without-* | --without-* | --x)
  2336. case "$ac_configure_args0 " in
  2337. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2338. esac
  2339. ;;
  2340. -* ) ac_must_keep_next=true ;;
  2341. esac
  2342. fi
  2343. as_fn_append ac_configure_args " '$ac_arg'"
  2344. ;;
  2345. esac
  2346. done
  2347. done
  2348. { ac_configure_args0=; unset ac_configure_args0;}
  2349. { ac_configure_args1=; unset ac_configure_args1;}
  2350. # When interrupted or exit'd, cleanup temporary files, and complete
  2351. # config.log. We remove comments because anyway the quotes in there
  2352. # would cause problems or look ugly.
  2353. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2354. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2355. trap 'exit_status=$?
  2356. # Save into config.log some information that might help in debugging.
  2357. {
  2358. echo
  2359. $as_echo "## ---------------- ##
  2360. ## Cache variables. ##
  2361. ## ---------------- ##"
  2362. echo
  2363. # The following way of writing the cache mishandles newlines in values,
  2364. (
  2365. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2366. eval ac_val=\$$ac_var
  2367. case $ac_val in #(
  2368. *${as_nl}*)
  2369. case $ac_var in #(
  2370. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2371. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2372. esac
  2373. case $ac_var in #(
  2374. _ | IFS | as_nl) ;; #(
  2375. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2376. *) { eval $ac_var=; unset $ac_var;} ;;
  2377. esac ;;
  2378. esac
  2379. done
  2380. (set) 2>&1 |
  2381. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2382. *${as_nl}ac_space=\ *)
  2383. sed -n \
  2384. "s/'\''/'\''\\\\'\'''\''/g;
  2385. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2386. ;; #(
  2387. *)
  2388. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2389. ;;
  2390. esac |
  2391. sort
  2392. )
  2393. echo
  2394. $as_echo "## ----------------- ##
  2395. ## Output variables. ##
  2396. ## ----------------- ##"
  2397. echo
  2398. for ac_var in $ac_subst_vars
  2399. do
  2400. eval ac_val=\$$ac_var
  2401. case $ac_val in
  2402. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2403. esac
  2404. $as_echo "$ac_var='\''$ac_val'\''"
  2405. done | sort
  2406. echo
  2407. if test -n "$ac_subst_files"; then
  2408. $as_echo "## ------------------- ##
  2409. ## File substitutions. ##
  2410. ## ------------------- ##"
  2411. echo
  2412. for ac_var in $ac_subst_files
  2413. do
  2414. eval ac_val=\$$ac_var
  2415. case $ac_val in
  2416. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2417. esac
  2418. $as_echo "$ac_var='\''$ac_val'\''"
  2419. done | sort
  2420. echo
  2421. fi
  2422. if test -s confdefs.h; then
  2423. $as_echo "## ----------- ##
  2424. ## confdefs.h. ##
  2425. ## ----------- ##"
  2426. echo
  2427. cat confdefs.h
  2428. echo
  2429. fi
  2430. test "$ac_signal" != 0 &&
  2431. $as_echo "$as_me: caught signal $ac_signal"
  2432. $as_echo "$as_me: exit $exit_status"
  2433. } >&5
  2434. rm -f core *.core core.conftest.* &&
  2435. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2436. exit $exit_status
  2437. ' 0
  2438. for ac_signal in 1 2 13 15; do
  2439. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2440. done
  2441. ac_signal=0
  2442. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2443. rm -f -r conftest* confdefs.h
  2444. $as_echo "/* confdefs.h */" > confdefs.h
  2445. # Predefined preprocessor variables.
  2446. cat >>confdefs.h <<_ACEOF
  2447. @%:@define PACKAGE_NAME "$PACKAGE_NAME"
  2448. _ACEOF
  2449. cat >>confdefs.h <<_ACEOF
  2450. @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2451. _ACEOF
  2452. cat >>confdefs.h <<_ACEOF
  2453. @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
  2454. _ACEOF
  2455. cat >>confdefs.h <<_ACEOF
  2456. @%:@define PACKAGE_STRING "$PACKAGE_STRING"
  2457. _ACEOF
  2458. cat >>confdefs.h <<_ACEOF
  2459. @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2460. _ACEOF
  2461. cat >>confdefs.h <<_ACEOF
  2462. @%:@define PACKAGE_URL "$PACKAGE_URL"
  2463. _ACEOF
  2464. # Let the site file select an alternate cache file if it wants to.
  2465. # Prefer an explicitly selected file to automatically selected ones.
  2466. ac_site_file1=NONE
  2467. ac_site_file2=NONE
  2468. if test -n "$CONFIG_SITE"; then
  2469. # We do not want a PATH search for config.site.
  2470. case $CONFIG_SITE in @%:@((
  2471. -*) ac_site_file1=./$CONFIG_SITE;;
  2472. */*) ac_site_file1=$CONFIG_SITE;;
  2473. *) ac_site_file1=./$CONFIG_SITE;;
  2474. esac
  2475. elif test "x$prefix" != xNONE; then
  2476. ac_site_file1=$prefix/share/config.site
  2477. ac_site_file2=$prefix/etc/config.site
  2478. else
  2479. ac_site_file1=$ac_default_prefix/share/config.site
  2480. ac_site_file2=$ac_default_prefix/etc/config.site
  2481. fi
  2482. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2483. do
  2484. test "x$ac_site_file" = xNONE && continue
  2485. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2486. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2487. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2488. sed 's/^/| /' "$ac_site_file" >&5
  2489. . "$ac_site_file" \
  2490. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2491. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2492. as_fn_error $? "failed to load site script $ac_site_file
  2493. See \`config.log' for more details" "$LINENO" 5 ; }
  2494. fi
  2495. done
  2496. if test -r "$cache_file"; then
  2497. # Some versions of bash will fail to source /dev/null (special files
  2498. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2499. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2500. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2501. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2502. case $cache_file in
  2503. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2504. *) . "./$cache_file";;
  2505. esac
  2506. fi
  2507. else
  2508. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2509. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2510. >$cache_file
  2511. fi
  2512. gl_header_list="$gl_header_list sys/mman.h"
  2513. gl_func_list="$gl_func_list mprotect"
  2514. gl_func_list="$gl_func_list sigaction"
  2515. gl_func_list="$gl_func_list sigaltstack"
  2516. gl_func_list="$gl_func_list siginterrupt"
  2517. gl_header_list="$gl_header_list wchar.h"
  2518. gl_header_list="$gl_header_list stdint.h"
  2519. # Check that the precious variables saved in the cache have kept the same
  2520. # value.
  2521. ac_cache_corrupted=false
  2522. for ac_var in $ac_precious_vars; do
  2523. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2524. eval ac_new_set=\$ac_env_${ac_var}_set
  2525. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2526. eval ac_new_val=\$ac_env_${ac_var}_value
  2527. case $ac_old_set,$ac_new_set in
  2528. set,)
  2529. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2530. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2531. ac_cache_corrupted=: ;;
  2532. ,set)
  2533. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2534. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2535. ac_cache_corrupted=: ;;
  2536. ,);;
  2537. *)
  2538. if test "x$ac_old_val" != "x$ac_new_val"; then
  2539. # differences in whitespace do not lead to failure.
  2540. ac_old_val_w=`echo x $ac_old_val`
  2541. ac_new_val_w=`echo x $ac_new_val`
  2542. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2543. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2544. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2545. ac_cache_corrupted=:
  2546. else
  2547. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2548. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2549. eval $ac_var=\$ac_old_val
  2550. fi
  2551. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2552. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2553. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2554. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2555. fi;;
  2556. esac
  2557. # Pass precious variables to config.status.
  2558. if test "$ac_new_set" = set; then
  2559. case $ac_new_val in
  2560. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2561. *) ac_arg=$ac_var=$ac_new_val ;;
  2562. esac
  2563. case " $ac_configure_args " in
  2564. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2565. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2566. esac
  2567. fi
  2568. done
  2569. if $ac_cache_corrupted; then
  2570. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2571. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2572. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2573. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2574. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2575. fi
  2576. ## -------------------- ##
  2577. ## Main body of script. ##
  2578. ## -------------------- ##
  2579. ac_ext=c
  2580. ac_cpp='$CPP $CPPFLAGS'
  2581. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2582. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2583. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2584. ac_aux_dir=
  2585. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2586. if test -f "$ac_dir/install-sh"; then
  2587. ac_aux_dir=$ac_dir
  2588. ac_install_sh="$ac_aux_dir/install-sh -c"
  2589. break
  2590. elif test -f "$ac_dir/install.sh"; then
  2591. ac_aux_dir=$ac_dir
  2592. ac_install_sh="$ac_aux_dir/install.sh -c"
  2593. break
  2594. elif test -f "$ac_dir/shtool"; then
  2595. ac_aux_dir=$ac_dir
  2596. ac_install_sh="$ac_aux_dir/shtool install -c"
  2597. break
  2598. fi
  2599. done
  2600. if test -z "$ac_aux_dir"; then
  2601. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2602. fi
  2603. # These three variables are undocumented and unsupported,
  2604. # and are intended to be withdrawn in a future Autoconf release.
  2605. # They can cause serious problems if a builder's source tree is in a directory
  2606. # whose full name contains unusual characters.
  2607. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2608. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2609. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2610. # Make sure we can run config.sub.
  2611. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2612. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2614. $as_echo_n "checking build system type... " >&6; }
  2615. if ${ac_cv_build+:} false; then :
  2616. $as_echo_n "(cached) " >&6
  2617. else
  2618. ac_build_alias=$build_alias
  2619. test "x$ac_build_alias" = x &&
  2620. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2621. test "x$ac_build_alias" = x &&
  2622. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2623. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2624. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2625. fi
  2626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2627. $as_echo "$ac_cv_build" >&6; }
  2628. case $ac_cv_build in
  2629. *-*-*) ;;
  2630. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
  2631. esac
  2632. build=$ac_cv_build
  2633. ac_save_IFS=$IFS; IFS='-'
  2634. set x $ac_cv_build
  2635. shift
  2636. build_cpu=$1
  2637. build_vendor=$2
  2638. shift; shift
  2639. # Remember, the first character of IFS is used to create $*,
  2640. # except with old shells:
  2641. build_os=$*
  2642. IFS=$ac_save_IFS
  2643. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2645. $as_echo_n "checking host system type... " >&6; }
  2646. if ${ac_cv_host+:} false; then :
  2647. $as_echo_n "(cached) " >&6
  2648. else
  2649. if test "x$host_alias" = x; then
  2650. ac_cv_host=$ac_cv_build
  2651. else
  2652. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2653. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2654. fi
  2655. fi
  2656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2657. $as_echo "$ac_cv_host" >&6; }
  2658. case $ac_cv_host in
  2659. *-*-*) ;;
  2660. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
  2661. esac
  2662. host=$ac_cv_host
  2663. ac_save_IFS=$IFS; IFS='-'
  2664. set x $ac_cv_host
  2665. shift
  2666. host_cpu=$1
  2667. host_vendor=$2
  2668. shift; shift
  2669. # Remember, the first character of IFS is used to create $*,
  2670. # except with old shells:
  2671. host_os=$*
  2672. IFS=$ac_save_IFS
  2673. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2675. $as_echo_n "checking target system type... " >&6; }
  2676. if ${ac_cv_target+:} false; then :
  2677. $as_echo_n "(cached) " >&6
  2678. else
  2679. if test "x$target_alias" = x; then
  2680. ac_cv_target=$ac_cv_host
  2681. else
  2682. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2683. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2684. fi
  2685. fi
  2686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2687. $as_echo "$ac_cv_target" >&6; }
  2688. case $ac_cv_target in
  2689. *-*-*) ;;
  2690. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
  2691. esac
  2692. target=$ac_cv_target
  2693. ac_save_IFS=$IFS; IFS='-'
  2694. set x $ac_cv_target
  2695. shift
  2696. target_cpu=$1
  2697. target_vendor=$2
  2698. shift; shift
  2699. # Remember, the first character of IFS is used to create $*,
  2700. # except with old shells:
  2701. target_os=$*
  2702. IFS=$ac_save_IFS
  2703. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2704. # The aliases save the names the user supplied, while $host etc.
  2705. # will get canonicalized.
  2706. test -n "$target_alias" &&
  2707. test "$program_prefix$program_suffix$program_transform_name" = \
  2708. NONENONEs,x,x, &&
  2709. program_prefix=${target_alias}-
  2710. ac_config_headers="$ac_config_headers config.h"
  2711. am__api_version='1.11'
  2712. # Find a good install program. We prefer a C program (faster),
  2713. # so one script is as good as another. But avoid the broken or
  2714. # incompatible versions:
  2715. # SysV /etc/install, /usr/sbin/install
  2716. # SunOS /usr/etc/install
  2717. # IRIX /sbin/install
  2718. # AIX /bin/install
  2719. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2720. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2721. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2722. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2723. # OS/2's system install, which has a completely different semantic
  2724. # ./install, which can be erroneously created by make from ./install.sh.
  2725. # Reject install programs that cannot install multiple files.
  2726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2727. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2728. if test -z "$INSTALL"; then
  2729. if ${ac_cv_path_install+:} false; then :
  2730. $as_echo_n "(cached) " >&6
  2731. else
  2732. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2733. for as_dir in $PATH
  2734. do
  2735. IFS=$as_save_IFS
  2736. test -z "$as_dir" && as_dir=.
  2737. # Account for people who put trailing slashes in PATH elements.
  2738. case $as_dir/ in @%:@((
  2739. ./ | .// | /[cC]/* | \
  2740. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2741. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2742. /usr/ucb/* ) ;;
  2743. *)
  2744. # OSF1 and SCO ODT 3.0 have their own names for install.
  2745. # Don't use installbsd from OSF since it installs stuff as root
  2746. # by default.
  2747. for ac_prog in ginstall scoinst install; do
  2748. for ac_exec_ext in '' $ac_executable_extensions; do
  2749. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2750. if test $ac_prog = install &&
  2751. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2752. # AIX install. It has an incompatible calling convention.
  2753. :
  2754. elif test $ac_prog = install &&
  2755. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2756. # program-specific install script used by HP pwplus--don't use.
  2757. :
  2758. else
  2759. rm -rf conftest.one conftest.two conftest.dir
  2760. echo one > conftest.one
  2761. echo two > conftest.two
  2762. mkdir conftest.dir
  2763. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2764. test -s conftest.one && test -s conftest.two &&
  2765. test -s conftest.dir/conftest.one &&
  2766. test -s conftest.dir/conftest.two
  2767. then
  2768. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2769. break 3
  2770. fi
  2771. fi
  2772. fi
  2773. done
  2774. done
  2775. ;;
  2776. esac
  2777. done
  2778. IFS=$as_save_IFS
  2779. rm -rf conftest.one conftest.two conftest.dir
  2780. fi
  2781. if test "${ac_cv_path_install+set}" = set; then
  2782. INSTALL=$ac_cv_path_install
  2783. else
  2784. # As a last resort, use the slow shell script. Don't cache a
  2785. # value for INSTALL within a source directory, because that will
  2786. # break other packages using the cache if that directory is
  2787. # removed, or if the value is a relative name.
  2788. INSTALL=$ac_install_sh
  2789. fi
  2790. fi
  2791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2792. $as_echo "$INSTALL" >&6; }
  2793. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2794. # It thinks the first close brace ends the variable substitution.
  2795. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2796. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2797. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2799. $as_echo_n "checking whether build environment is sane... " >&6; }
  2800. # Just in case
  2801. sleep 1
  2802. echo timestamp > conftest.file
  2803. # Reject unsafe characters in $srcdir or the absolute working directory
  2804. # name. Accept space and tab only in the latter.
  2805. am_lf='
  2806. '
  2807. case `pwd` in
  2808. *[\\\"\#\$\&\'\`$am_lf]*)
  2809. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
  2810. esac
  2811. case $srcdir in
  2812. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2813. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
  2814. esac
  2815. # Do `set' in a subshell so we don't clobber the current shell's
  2816. # arguments. Must try -L first in case configure is actually a
  2817. # symlink; some systems play weird games with the mod time of symlinks
  2818. # (eg FreeBSD returns the mod time of the symlink's containing
  2819. # directory).
  2820. if (
  2821. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2822. if test "$*" = "X"; then
  2823. # -L didn't work.
  2824. set X `ls -t "$srcdir/configure" conftest.file`
  2825. fi
  2826. rm -f conftest.file
  2827. if test "$*" != "X $srcdir/configure conftest.file" \
  2828. && test "$*" != "X conftest.file $srcdir/configure"; then
  2829. # If neither matched, then we have a broken ls. This can happen
  2830. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2831. # broken ls alias from the environment. This has actually
  2832. # happened. Such a system could not be considered "sane".
  2833. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2834. alias in your environment" "$LINENO" 5
  2835. fi
  2836. test "$2" = conftest.file
  2837. )
  2838. then
  2839. # Ok.
  2840. :
  2841. else
  2842. as_fn_error $? "newly created file is older than distributed files!
  2843. Check your system clock" "$LINENO" 5
  2844. fi
  2845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2846. $as_echo "yes" >&6; }
  2847. test "$program_prefix" != NONE &&
  2848. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2849. # Use a double $ so make ignores it.
  2850. test "$program_suffix" != NONE &&
  2851. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2852. # Double any \ or $.
  2853. # By default was `s,x,x', remove it if useless.
  2854. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2855. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2856. # expand $ac_aux_dir to an absolute path
  2857. am_aux_dir=`cd $ac_aux_dir && pwd`
  2858. if test x"${MISSING+set}" != xset; then
  2859. case $am_aux_dir in
  2860. *\ * | *\ *)
  2861. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2862. *)
  2863. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2864. esac
  2865. fi
  2866. # Use eval to expand $SHELL
  2867. if eval "$MISSING --run true"; then
  2868. am_missing_run="$MISSING --run "
  2869. else
  2870. am_missing_run=
  2871. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2872. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2873. fi
  2874. if test x"${install_sh}" != xset; then
  2875. case $am_aux_dir in
  2876. *\ * | *\ *)
  2877. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2878. *)
  2879. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2880. esac
  2881. fi
  2882. # Installed binaries are usually stripped using `strip' when the user
  2883. # run `make install-strip'. However `strip' might not be the right
  2884. # tool to use in cross-compilation environments, therefore Automake
  2885. # will honor the `STRIP' environment variable to overrule this program.
  2886. if test "$cross_compiling" != no; then
  2887. if test -n "$ac_tool_prefix"; then
  2888. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2889. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2891. $as_echo_n "checking for $ac_word... " >&6; }
  2892. if ${ac_cv_prog_STRIP+:} false; then :
  2893. $as_echo_n "(cached) " >&6
  2894. else
  2895. if test -n "$STRIP"; then
  2896. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2897. else
  2898. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2899. for as_dir in $PATH
  2900. do
  2901. IFS=$as_save_IFS
  2902. test -z "$as_dir" && as_dir=.
  2903. for ac_exec_ext in '' $ac_executable_extensions; do
  2904. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2905. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2906. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2907. break 2
  2908. fi
  2909. done
  2910. done
  2911. IFS=$as_save_IFS
  2912. fi
  2913. fi
  2914. STRIP=$ac_cv_prog_STRIP
  2915. if test -n "$STRIP"; then
  2916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2917. $as_echo "$STRIP" >&6; }
  2918. else
  2919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2920. $as_echo "no" >&6; }
  2921. fi
  2922. fi
  2923. if test -z "$ac_cv_prog_STRIP"; then
  2924. ac_ct_STRIP=$STRIP
  2925. # Extract the first word of "strip", so it can be a program name with args.
  2926. set dummy strip; ac_word=$2
  2927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2928. $as_echo_n "checking for $ac_word... " >&6; }
  2929. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2930. $as_echo_n "(cached) " >&6
  2931. else
  2932. if test -n "$ac_ct_STRIP"; then
  2933. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2934. else
  2935. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2936. for as_dir in $PATH
  2937. do
  2938. IFS=$as_save_IFS
  2939. test -z "$as_dir" && as_dir=.
  2940. for ac_exec_ext in '' $ac_executable_extensions; do
  2941. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2942. ac_cv_prog_ac_ct_STRIP="strip"
  2943. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2944. break 2
  2945. fi
  2946. done
  2947. done
  2948. IFS=$as_save_IFS
  2949. fi
  2950. fi
  2951. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2952. if test -n "$ac_ct_STRIP"; then
  2953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2954. $as_echo "$ac_ct_STRIP" >&6; }
  2955. else
  2956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2957. $as_echo "no" >&6; }
  2958. fi
  2959. if test "x$ac_ct_STRIP" = x; then
  2960. STRIP=":"
  2961. else
  2962. case $cross_compiling:$ac_tool_warned in
  2963. yes:)
  2964. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2965. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2966. ac_tool_warned=yes ;;
  2967. esac
  2968. STRIP=$ac_ct_STRIP
  2969. fi
  2970. else
  2971. STRIP="$ac_cv_prog_STRIP"
  2972. fi
  2973. fi
  2974. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2976. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2977. if test -z "$MKDIR_P"; then
  2978. if ${ac_cv_path_mkdir+:} false; then :
  2979. $as_echo_n "(cached) " >&6
  2980. else
  2981. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2982. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2983. do
  2984. IFS=$as_save_IFS
  2985. test -z "$as_dir" && as_dir=.
  2986. for ac_prog in mkdir gmkdir; do
  2987. for ac_exec_ext in '' $ac_executable_extensions; do
  2988. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2989. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2990. 'mkdir (GNU coreutils) '* | \
  2991. 'mkdir (coreutils) '* | \
  2992. 'mkdir (fileutils) '4.1*)
  2993. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2994. break 3;;
  2995. esac
  2996. done
  2997. done
  2998. done
  2999. IFS=$as_save_IFS
  3000. fi
  3001. test -d ./--version && rmdir ./--version
  3002. if test "${ac_cv_path_mkdir+set}" = set; then
  3003. MKDIR_P="$ac_cv_path_mkdir -p"
  3004. else
  3005. # As a last resort, use the slow shell script. Don't cache a
  3006. # value for MKDIR_P within a source directory, because that will
  3007. # break other packages using the cache if that directory is
  3008. # removed, or if the value is a relative name.
  3009. MKDIR_P="$ac_install_sh -d"
  3010. fi
  3011. fi
  3012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3013. $as_echo "$MKDIR_P" >&6; }
  3014. mkdir_p="$MKDIR_P"
  3015. case $mkdir_p in
  3016. [\\/$]* | ?:[\\/]*) ;;
  3017. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  3018. esac
  3019. for ac_prog in gawk mawk nawk awk
  3020. do
  3021. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3022. set dummy $ac_prog; ac_word=$2
  3023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3024. $as_echo_n "checking for $ac_word... " >&6; }
  3025. if ${ac_cv_prog_AWK+:} false; then :
  3026. $as_echo_n "(cached) " >&6
  3027. else
  3028. if test -n "$AWK"; then
  3029. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3030. else
  3031. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3032. for as_dir in $PATH
  3033. do
  3034. IFS=$as_save_IFS
  3035. test -z "$as_dir" && as_dir=.
  3036. for ac_exec_ext in '' $ac_executable_extensions; do
  3037. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3038. ac_cv_prog_AWK="$ac_prog"
  3039. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3040. break 2
  3041. fi
  3042. done
  3043. done
  3044. IFS=$as_save_IFS
  3045. fi
  3046. fi
  3047. AWK=$ac_cv_prog_AWK
  3048. if test -n "$AWK"; then
  3049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3050. $as_echo "$AWK" >&6; }
  3051. else
  3052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3053. $as_echo "no" >&6; }
  3054. fi
  3055. test -n "$AWK" && break
  3056. done
  3057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3058. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3059. set x ${MAKE-make}
  3060. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3061. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3062. $as_echo_n "(cached) " >&6
  3063. else
  3064. cat >conftest.make <<\_ACEOF
  3065. SHELL = /bin/sh
  3066. all:
  3067. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3068. _ACEOF
  3069. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3070. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3071. *@@@%%%=?*=@@@%%%*)
  3072. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3073. *)
  3074. eval ac_cv_prog_make_${ac_make}_set=no;;
  3075. esac
  3076. rm -f conftest.make
  3077. fi
  3078. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3080. $as_echo "yes" >&6; }
  3081. SET_MAKE=
  3082. else
  3083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3084. $as_echo "no" >&6; }
  3085. SET_MAKE="MAKE=${MAKE-make}"
  3086. fi
  3087. rm -rf .tst 2>/dev/null
  3088. mkdir .tst 2>/dev/null
  3089. if test -d .tst; then
  3090. am__leading_dot=.
  3091. else
  3092. am__leading_dot=_
  3093. fi
  3094. rmdir .tst 2>/dev/null
  3095. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3096. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3097. # is not polluted with repeated "-I."
  3098. am__isrc=' -I$(srcdir)'
  3099. # test to see if srcdir already configured
  3100. if test -f $srcdir/config.status; then
  3101. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3102. fi
  3103. fi
  3104. # test whether we have cygpath
  3105. if test -z "$CYGPATH_W"; then
  3106. if (cygpath --version) >/dev/null 2>/dev/null; then
  3107. CYGPATH_W='cygpath -w'
  3108. else
  3109. CYGPATH_W=echo
  3110. fi
  3111. fi
  3112. # Define the identity of the package.
  3113. PACKAGE='cgminer'
  3114. VERSION='4.3.5-scrypt.2'
  3115. cat >>confdefs.h <<_ACEOF
  3116. @%:@define PACKAGE "$PACKAGE"
  3117. _ACEOF
  3118. cat >>confdefs.h <<_ACEOF
  3119. @%:@define VERSION "$VERSION"
  3120. _ACEOF
  3121. # Some tools Automake needs.
  3122. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3123. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3124. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3125. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3126. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3127. # We need awk for the "check" target. The system "awk" is bad on
  3128. # some platforms.
  3129. # Always define AMTAR for backward compatibility.
  3130. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3131. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3132. @%:@ Check whether --enable-silent-rules was given.
  3133. if test "${enable_silent_rules+set}" = set; then :
  3134. enableval=$enable_silent_rules;
  3135. fi
  3136. case $enable_silent_rules in
  3137. yes) AM_DEFAULT_VERBOSITY=0;;
  3138. no) AM_DEFAULT_VERBOSITY=1;;
  3139. *) AM_DEFAULT_VERBOSITY=0;;
  3140. esac
  3141. AM_BACKSLASH='\'
  3142. DEPDIR="${am__leading_dot}deps"
  3143. ac_config_commands="$ac_config_commands depfiles"
  3144. am_make=${MAKE-make}
  3145. cat > confinc << 'END'
  3146. am__doit:
  3147. @echo this is the am__doit target
  3148. .PHONY: am__doit
  3149. END
  3150. # If we don't find an include directive, just comment out the code.
  3151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3152. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3153. am__include="#"
  3154. am__quote=
  3155. _am_result=none
  3156. # First try GNU make style include.
  3157. echo "include confinc" > confmf
  3158. # Ignore all kinds of additional output from `make'.
  3159. case `$am_make -s -f confmf 2> /dev/null` in #(
  3160. *the\ am__doit\ target*)
  3161. am__include=include
  3162. am__quote=
  3163. _am_result=GNU
  3164. ;;
  3165. esac
  3166. # Now try BSD make style include.
  3167. if test "$am__include" = "#"; then
  3168. echo '.include "confinc"' > confmf
  3169. case `$am_make -s -f confmf 2> /dev/null` in #(
  3170. *the\ am__doit\ target*)
  3171. am__include=.include
  3172. am__quote="\""
  3173. _am_result=BSD
  3174. ;;
  3175. esac
  3176. fi
  3177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3178. $as_echo "$_am_result" >&6; }
  3179. rm -f confinc confmf
  3180. @%:@ Check whether --enable-dependency-tracking was given.
  3181. if test "${enable_dependency_tracking+set}" = set; then :
  3182. enableval=$enable_dependency_tracking;
  3183. fi
  3184. if test "x$enable_dependency_tracking" != xno; then
  3185. am_depcomp="$ac_aux_dir/depcomp"
  3186. AMDEPBACKSLASH='\'
  3187. fi
  3188. if test "x$enable_dependency_tracking" != xno; then
  3189. AMDEP_TRUE=
  3190. AMDEP_FALSE='#'
  3191. else
  3192. AMDEP_TRUE='#'
  3193. AMDEP_FALSE=
  3194. fi
  3195. ac_ext=c
  3196. ac_cpp='$CPP $CPPFLAGS'
  3197. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3198. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3199. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3200. if test -n "$ac_tool_prefix"; then
  3201. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3202. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3204. $as_echo_n "checking for $ac_word... " >&6; }
  3205. if ${ac_cv_prog_CC+:} false; then :
  3206. $as_echo_n "(cached) " >&6
  3207. else
  3208. if test -n "$CC"; then
  3209. ac_cv_prog_CC="$CC" # Let the user override the test.
  3210. else
  3211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3212. for as_dir in $PATH
  3213. do
  3214. IFS=$as_save_IFS
  3215. test -z "$as_dir" && as_dir=.
  3216. for ac_exec_ext in '' $ac_executable_extensions; do
  3217. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3218. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3219. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3220. break 2
  3221. fi
  3222. done
  3223. done
  3224. IFS=$as_save_IFS
  3225. fi
  3226. fi
  3227. CC=$ac_cv_prog_CC
  3228. if test -n "$CC"; then
  3229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3230. $as_echo "$CC" >&6; }
  3231. else
  3232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3233. $as_echo "no" >&6; }
  3234. fi
  3235. fi
  3236. if test -z "$ac_cv_prog_CC"; then
  3237. ac_ct_CC=$CC
  3238. # Extract the first word of "gcc", so it can be a program name with args.
  3239. set dummy gcc; ac_word=$2
  3240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3241. $as_echo_n "checking for $ac_word... " >&6; }
  3242. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3243. $as_echo_n "(cached) " >&6
  3244. else
  3245. if test -n "$ac_ct_CC"; then
  3246. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3247. else
  3248. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3249. for as_dir in $PATH
  3250. do
  3251. IFS=$as_save_IFS
  3252. test -z "$as_dir" && as_dir=.
  3253. for ac_exec_ext in '' $ac_executable_extensions; do
  3254. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3255. ac_cv_prog_ac_ct_CC="gcc"
  3256. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3257. break 2
  3258. fi
  3259. done
  3260. done
  3261. IFS=$as_save_IFS
  3262. fi
  3263. fi
  3264. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3265. if test -n "$ac_ct_CC"; then
  3266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3267. $as_echo "$ac_ct_CC" >&6; }
  3268. else
  3269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3270. $as_echo "no" >&6; }
  3271. fi
  3272. if test "x$ac_ct_CC" = x; then
  3273. CC=""
  3274. else
  3275. case $cross_compiling:$ac_tool_warned in
  3276. yes:)
  3277. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3278. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3279. ac_tool_warned=yes ;;
  3280. esac
  3281. CC=$ac_ct_CC
  3282. fi
  3283. else
  3284. CC="$ac_cv_prog_CC"
  3285. fi
  3286. if test -z "$CC"; then
  3287. if test -n "$ac_tool_prefix"; then
  3288. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3289. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3291. $as_echo_n "checking for $ac_word... " >&6; }
  3292. if ${ac_cv_prog_CC+:} false; then :
  3293. $as_echo_n "(cached) " >&6
  3294. else
  3295. if test -n "$CC"; then
  3296. ac_cv_prog_CC="$CC" # Let the user override the test.
  3297. else
  3298. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3299. for as_dir in $PATH
  3300. do
  3301. IFS=$as_save_IFS
  3302. test -z "$as_dir" && as_dir=.
  3303. for ac_exec_ext in '' $ac_executable_extensions; do
  3304. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3305. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3306. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3307. break 2
  3308. fi
  3309. done
  3310. done
  3311. IFS=$as_save_IFS
  3312. fi
  3313. fi
  3314. CC=$ac_cv_prog_CC
  3315. if test -n "$CC"; then
  3316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3317. $as_echo "$CC" >&6; }
  3318. else
  3319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3320. $as_echo "no" >&6; }
  3321. fi
  3322. fi
  3323. fi
  3324. if test -z "$CC"; then
  3325. # Extract the first word of "cc", so it can be a program name with args.
  3326. set dummy cc; ac_word=$2
  3327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3328. $as_echo_n "checking for $ac_word... " >&6; }
  3329. if ${ac_cv_prog_CC+:} false; then :
  3330. $as_echo_n "(cached) " >&6
  3331. else
  3332. if test -n "$CC"; then
  3333. ac_cv_prog_CC="$CC" # Let the user override the test.
  3334. else
  3335. ac_prog_rejected=no
  3336. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3337. for as_dir in $PATH
  3338. do
  3339. IFS=$as_save_IFS
  3340. test -z "$as_dir" && as_dir=.
  3341. for ac_exec_ext in '' $ac_executable_extensions; do
  3342. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3343. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3344. ac_prog_rejected=yes
  3345. continue
  3346. fi
  3347. ac_cv_prog_CC="cc"
  3348. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3349. break 2
  3350. fi
  3351. done
  3352. done
  3353. IFS=$as_save_IFS
  3354. if test $ac_prog_rejected = yes; then
  3355. # We found a bogon in the path, so make sure we never use it.
  3356. set dummy $ac_cv_prog_CC
  3357. shift
  3358. if test $@%:@ != 0; then
  3359. # We chose a different compiler from the bogus one.
  3360. # However, it has the same basename, so the bogon will be chosen
  3361. # first if we set CC to just the basename; use the full file name.
  3362. shift
  3363. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3364. fi
  3365. fi
  3366. fi
  3367. fi
  3368. CC=$ac_cv_prog_CC
  3369. if test -n "$CC"; then
  3370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3371. $as_echo "$CC" >&6; }
  3372. else
  3373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3374. $as_echo "no" >&6; }
  3375. fi
  3376. fi
  3377. if test -z "$CC"; then
  3378. if test -n "$ac_tool_prefix"; then
  3379. for ac_prog in cl.exe
  3380. do
  3381. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3382. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3384. $as_echo_n "checking for $ac_word... " >&6; }
  3385. if ${ac_cv_prog_CC+:} false; then :
  3386. $as_echo_n "(cached) " >&6
  3387. else
  3388. if test -n "$CC"; then
  3389. ac_cv_prog_CC="$CC" # Let the user override the test.
  3390. else
  3391. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3392. for as_dir in $PATH
  3393. do
  3394. IFS=$as_save_IFS
  3395. test -z "$as_dir" && as_dir=.
  3396. for ac_exec_ext in '' $ac_executable_extensions; do
  3397. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3398. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3399. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3400. break 2
  3401. fi
  3402. done
  3403. done
  3404. IFS=$as_save_IFS
  3405. fi
  3406. fi
  3407. CC=$ac_cv_prog_CC
  3408. if test -n "$CC"; then
  3409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3410. $as_echo "$CC" >&6; }
  3411. else
  3412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3413. $as_echo "no" >&6; }
  3414. fi
  3415. test -n "$CC" && break
  3416. done
  3417. fi
  3418. if test -z "$CC"; then
  3419. ac_ct_CC=$CC
  3420. for ac_prog in cl.exe
  3421. do
  3422. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3423. set dummy $ac_prog; ac_word=$2
  3424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3425. $as_echo_n "checking for $ac_word... " >&6; }
  3426. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3427. $as_echo_n "(cached) " >&6
  3428. else
  3429. if test -n "$ac_ct_CC"; then
  3430. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3431. else
  3432. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3433. for as_dir in $PATH
  3434. do
  3435. IFS=$as_save_IFS
  3436. test -z "$as_dir" && as_dir=.
  3437. for ac_exec_ext in '' $ac_executable_extensions; do
  3438. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3439. ac_cv_prog_ac_ct_CC="$ac_prog"
  3440. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3441. break 2
  3442. fi
  3443. done
  3444. done
  3445. IFS=$as_save_IFS
  3446. fi
  3447. fi
  3448. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3449. if test -n "$ac_ct_CC"; then
  3450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3451. $as_echo "$ac_ct_CC" >&6; }
  3452. else
  3453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3454. $as_echo "no" >&6; }
  3455. fi
  3456. test -n "$ac_ct_CC" && break
  3457. done
  3458. if test "x$ac_ct_CC" = x; then
  3459. CC=""
  3460. else
  3461. case $cross_compiling:$ac_tool_warned in
  3462. yes:)
  3463. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3464. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3465. ac_tool_warned=yes ;;
  3466. esac
  3467. CC=$ac_ct_CC
  3468. fi
  3469. fi
  3470. fi
  3471. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3472. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3473. as_fn_error $? "no acceptable C compiler found in \$PATH
  3474. See \`config.log' for more details" "$LINENO" 5 ; }
  3475. # Provide some information about the compiler.
  3476. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3477. set X $ac_compile
  3478. ac_compiler=$2
  3479. for ac_option in --version -v -V -qversion; do
  3480. { { ac_try="$ac_compiler $ac_option >&5"
  3481. case "(($ac_try" in
  3482. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3483. *) ac_try_echo=$ac_try;;
  3484. esac
  3485. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3486. $as_echo "$ac_try_echo"; } >&5
  3487. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3488. ac_status=$?
  3489. if test -s conftest.err; then
  3490. sed '10a\
  3491. ... rest of stderr output deleted ...
  3492. 10q' conftest.err >conftest.er1
  3493. cat conftest.er1 >&5
  3494. fi
  3495. rm -f conftest.er1 conftest.err
  3496. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3497. test $ac_status = 0; }
  3498. done
  3499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3500. /* end confdefs.h. */
  3501. int
  3502. main ()
  3503. {
  3504. ;
  3505. return 0;
  3506. }
  3507. _ACEOF
  3508. ac_clean_files_save=$ac_clean_files
  3509. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3510. # Try to create an executable without -o first, disregard a.out.
  3511. # It will help us diagnose broken compilers, and finding out an intuition
  3512. # of exeext.
  3513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3514. $as_echo_n "checking whether the C compiler works... " >&6; }
  3515. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3516. # The possible output files:
  3517. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3518. ac_rmfiles=
  3519. for ac_file in $ac_files
  3520. do
  3521. case $ac_file in
  3522. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3523. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3524. esac
  3525. done
  3526. rm -f $ac_rmfiles
  3527. if { { ac_try="$ac_link_default"
  3528. case "(($ac_try" in
  3529. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3530. *) ac_try_echo=$ac_try;;
  3531. esac
  3532. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3533. $as_echo "$ac_try_echo"; } >&5
  3534. (eval "$ac_link_default") 2>&5
  3535. ac_status=$?
  3536. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3537. test $ac_status = 0; }; then :
  3538. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3539. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3540. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3541. # so that the user can short-circuit this test for compilers unknown to
  3542. # Autoconf.
  3543. for ac_file in $ac_files ''
  3544. do
  3545. test -f "$ac_file" || continue
  3546. case $ac_file in
  3547. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3548. ;;
  3549. [ab].out )
  3550. # We found the default executable, but exeext='' is most
  3551. # certainly right.
  3552. break;;
  3553. *.* )
  3554. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3555. then :; else
  3556. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3557. fi
  3558. # We set ac_cv_exeext here because the later test for it is not
  3559. # safe: cross compilers may not add the suffix if given an `-o'
  3560. # argument, so we may need to know it at that point already.
  3561. # Even if this section looks crufty: it has the advantage of
  3562. # actually working.
  3563. break;;
  3564. * )
  3565. break;;
  3566. esac
  3567. done
  3568. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3569. else
  3570. ac_file=''
  3571. fi
  3572. if test -z "$ac_file"; then :
  3573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3574. $as_echo "no" >&6; }
  3575. $as_echo "$as_me: failed program was:" >&5
  3576. sed 's/^/| /' conftest.$ac_ext >&5
  3577. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3578. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3579. as_fn_error 77 "C compiler cannot create executables
  3580. See \`config.log' for more details" "$LINENO" 5 ; }
  3581. else
  3582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3583. $as_echo "yes" >&6; }
  3584. fi
  3585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3586. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3588. $as_echo "$ac_file" >&6; }
  3589. ac_exeext=$ac_cv_exeext
  3590. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3591. ac_clean_files=$ac_clean_files_save
  3592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3593. $as_echo_n "checking for suffix of executables... " >&6; }
  3594. if { { ac_try="$ac_link"
  3595. case "(($ac_try" in
  3596. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3597. *) ac_try_echo=$ac_try;;
  3598. esac
  3599. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3600. $as_echo "$ac_try_echo"; } >&5
  3601. (eval "$ac_link") 2>&5
  3602. ac_status=$?
  3603. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3604. test $ac_status = 0; }; then :
  3605. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3606. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3607. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3608. # `rm'.
  3609. for ac_file in conftest.exe conftest conftest.*; do
  3610. test -f "$ac_file" || continue
  3611. case $ac_file in
  3612. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3613. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3614. break;;
  3615. * ) break;;
  3616. esac
  3617. done
  3618. else
  3619. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3620. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3621. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3622. See \`config.log' for more details" "$LINENO" 5 ; }
  3623. fi
  3624. rm -f conftest conftest$ac_cv_exeext
  3625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3626. $as_echo "$ac_cv_exeext" >&6; }
  3627. rm -f conftest.$ac_ext
  3628. EXEEXT=$ac_cv_exeext
  3629. ac_exeext=$EXEEXT
  3630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3631. /* end confdefs.h. */
  3632. @%:@include <stdio.h>
  3633. int
  3634. main ()
  3635. {
  3636. FILE *f = fopen ("conftest.out", "w");
  3637. return ferror (f) || fclose (f) != 0;
  3638. ;
  3639. return 0;
  3640. }
  3641. _ACEOF
  3642. ac_clean_files="$ac_clean_files conftest.out"
  3643. # Check that the compiler produces executables we can run. If not, either
  3644. # the compiler is broken, or we cross compile.
  3645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3646. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3647. if test "$cross_compiling" != yes; then
  3648. { { ac_try="$ac_link"
  3649. case "(($ac_try" in
  3650. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3651. *) ac_try_echo=$ac_try;;
  3652. esac
  3653. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3654. $as_echo "$ac_try_echo"; } >&5
  3655. (eval "$ac_link") 2>&5
  3656. ac_status=$?
  3657. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3658. test $ac_status = 0; }
  3659. if { ac_try='./conftest$ac_cv_exeext'
  3660. { { case "(($ac_try" in
  3661. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3662. *) ac_try_echo=$ac_try;;
  3663. esac
  3664. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3665. $as_echo "$ac_try_echo"; } >&5
  3666. (eval "$ac_try") 2>&5
  3667. ac_status=$?
  3668. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3669. test $ac_status = 0; }; }; then
  3670. cross_compiling=no
  3671. else
  3672. if test "$cross_compiling" = maybe; then
  3673. cross_compiling=yes
  3674. else
  3675. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3676. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3677. as_fn_error $? "cannot run C compiled programs.
  3678. If you meant to cross compile, use \`--host'.
  3679. See \`config.log' for more details" "$LINENO" 5 ; }
  3680. fi
  3681. fi
  3682. fi
  3683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3684. $as_echo "$cross_compiling" >&6; }
  3685. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3686. ac_clean_files=$ac_clean_files_save
  3687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3688. $as_echo_n "checking for suffix of object files... " >&6; }
  3689. if ${ac_cv_objext+:} false; then :
  3690. $as_echo_n "(cached) " >&6
  3691. else
  3692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3693. /* end confdefs.h. */
  3694. int
  3695. main ()
  3696. {
  3697. ;
  3698. return 0;
  3699. }
  3700. _ACEOF
  3701. rm -f conftest.o conftest.obj
  3702. if { { ac_try="$ac_compile"
  3703. case "(($ac_try" in
  3704. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3705. *) ac_try_echo=$ac_try;;
  3706. esac
  3707. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3708. $as_echo "$ac_try_echo"; } >&5
  3709. (eval "$ac_compile") 2>&5
  3710. ac_status=$?
  3711. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3712. test $ac_status = 0; }; then :
  3713. for ac_file in conftest.o conftest.obj conftest.*; do
  3714. test -f "$ac_file" || continue;
  3715. case $ac_file in
  3716. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3717. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3718. break;;
  3719. esac
  3720. done
  3721. else
  3722. $as_echo "$as_me: failed program was:" >&5
  3723. sed 's/^/| /' conftest.$ac_ext >&5
  3724. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3725. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3726. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3727. See \`config.log' for more details" "$LINENO" 5 ; }
  3728. fi
  3729. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3730. fi
  3731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3732. $as_echo "$ac_cv_objext" >&6; }
  3733. OBJEXT=$ac_cv_objext
  3734. ac_objext=$OBJEXT
  3735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3736. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3737. if ${ac_cv_c_compiler_gnu+:} false; then :
  3738. $as_echo_n "(cached) " >&6
  3739. else
  3740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3741. /* end confdefs.h. */
  3742. int
  3743. main ()
  3744. {
  3745. #ifndef __GNUC__
  3746. choke me
  3747. #endif
  3748. ;
  3749. return 0;
  3750. }
  3751. _ACEOF
  3752. if ac_fn_c_try_compile "$LINENO"; then :
  3753. ac_compiler_gnu=yes
  3754. else
  3755. ac_compiler_gnu=no
  3756. fi
  3757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3758. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3759. fi
  3760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3761. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3762. if test $ac_compiler_gnu = yes; then
  3763. GCC=yes
  3764. else
  3765. GCC=
  3766. fi
  3767. ac_test_CFLAGS=${CFLAGS+set}
  3768. ac_save_CFLAGS=$CFLAGS
  3769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3770. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3771. if ${ac_cv_prog_cc_g+:} false; then :
  3772. $as_echo_n "(cached) " >&6
  3773. else
  3774. ac_save_c_werror_flag=$ac_c_werror_flag
  3775. ac_c_werror_flag=yes
  3776. ac_cv_prog_cc_g=no
  3777. CFLAGS="-g"
  3778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3779. /* end confdefs.h. */
  3780. int
  3781. main ()
  3782. {
  3783. ;
  3784. return 0;
  3785. }
  3786. _ACEOF
  3787. if ac_fn_c_try_compile "$LINENO"; then :
  3788. ac_cv_prog_cc_g=yes
  3789. else
  3790. CFLAGS=""
  3791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3792. /* end confdefs.h. */
  3793. int
  3794. main ()
  3795. {
  3796. ;
  3797. return 0;
  3798. }
  3799. _ACEOF
  3800. if ac_fn_c_try_compile "$LINENO"; then :
  3801. else
  3802. ac_c_werror_flag=$ac_save_c_werror_flag
  3803. CFLAGS="-g"
  3804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3805. /* end confdefs.h. */
  3806. int
  3807. main ()
  3808. {
  3809. ;
  3810. return 0;
  3811. }
  3812. _ACEOF
  3813. if ac_fn_c_try_compile "$LINENO"; then :
  3814. ac_cv_prog_cc_g=yes
  3815. fi
  3816. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3817. fi
  3818. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3819. fi
  3820. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3821. ac_c_werror_flag=$ac_save_c_werror_flag
  3822. fi
  3823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3824. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3825. if test "$ac_test_CFLAGS" = set; then
  3826. CFLAGS=$ac_save_CFLAGS
  3827. elif test $ac_cv_prog_cc_g = yes; then
  3828. if test "$GCC" = yes; then
  3829. CFLAGS="-g -O2"
  3830. else
  3831. CFLAGS="-g"
  3832. fi
  3833. else
  3834. if test "$GCC" = yes; then
  3835. CFLAGS="-O2"
  3836. else
  3837. CFLAGS=
  3838. fi
  3839. fi
  3840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3841. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3842. if ${ac_cv_prog_cc_c89+:} false; then :
  3843. $as_echo_n "(cached) " >&6
  3844. else
  3845. ac_cv_prog_cc_c89=no
  3846. ac_save_CC=$CC
  3847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3848. /* end confdefs.h. */
  3849. #include <stdarg.h>
  3850. #include <stdio.h>
  3851. #include <sys/types.h>
  3852. #include <sys/stat.h>
  3853. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3854. struct buf { int x; };
  3855. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3856. static char *e (p, i)
  3857. char **p;
  3858. int i;
  3859. {
  3860. return p[i];
  3861. }
  3862. static char *f (char * (*g) (char **, int), char **p, ...)
  3863. {
  3864. char *s;
  3865. va_list v;
  3866. va_start (v,p);
  3867. s = g (p, va_arg (v,int));
  3868. va_end (v);
  3869. return s;
  3870. }
  3871. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3872. function prototypes and stuff, but not '\xHH' hex character constants.
  3873. These don't provoke an error unfortunately, instead are silently treated
  3874. as 'x'. The following induces an error, until -std is added to get
  3875. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3876. array size at least. It's necessary to write '\x00'==0 to get something
  3877. that's true only with -std. */
  3878. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3879. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3880. inside strings and character constants. */
  3881. #define FOO(x) 'x'
  3882. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3883. int test (int i, double x);
  3884. struct s1 {int (*f) (int a);};
  3885. struct s2 {int (*f) (double a);};
  3886. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3887. int argc;
  3888. char **argv;
  3889. int
  3890. main ()
  3891. {
  3892. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3893. ;
  3894. return 0;
  3895. }
  3896. _ACEOF
  3897. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3898. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3899. do
  3900. CC="$ac_save_CC $ac_arg"
  3901. if ac_fn_c_try_compile "$LINENO"; then :
  3902. ac_cv_prog_cc_c89=$ac_arg
  3903. fi
  3904. rm -f core conftest.err conftest.$ac_objext
  3905. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3906. done
  3907. rm -f conftest.$ac_ext
  3908. CC=$ac_save_CC
  3909. fi
  3910. # AC_CACHE_VAL
  3911. case "x$ac_cv_prog_cc_c89" in
  3912. x)
  3913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3914. $as_echo "none needed" >&6; } ;;
  3915. xno)
  3916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3917. $as_echo "unsupported" >&6; } ;;
  3918. *)
  3919. CC="$CC $ac_cv_prog_cc_c89"
  3920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3921. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3922. esac
  3923. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3924. fi
  3925. ac_ext=c
  3926. ac_cpp='$CPP $CPPFLAGS'
  3927. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3928. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3929. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3930. depcc="$CC" am_compiler_list=
  3931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3932. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3933. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3934. $as_echo_n "(cached) " >&6
  3935. else
  3936. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3937. # We make a subdir and do the tests there. Otherwise we can end up
  3938. # making bogus files that we don't know about and never remove. For
  3939. # instance it was reported that on HP-UX the gcc test will end up
  3940. # making a dummy file named `D' -- because `-MD' means `put the output
  3941. # in D'.
  3942. mkdir conftest.dir
  3943. # Copy depcomp to subdir because otherwise we won't find it if we're
  3944. # using a relative directory.
  3945. cp "$am_depcomp" conftest.dir
  3946. cd conftest.dir
  3947. # We will build objects and dependencies in a subdirectory because
  3948. # it helps to detect inapplicable dependency modes. For instance
  3949. # both Tru64's cc and ICC support -MD to output dependencies as a
  3950. # side effect of compilation, but ICC will put the dependencies in
  3951. # the current directory while Tru64 will put them in the object
  3952. # directory.
  3953. mkdir sub
  3954. am_cv_CC_dependencies_compiler_type=none
  3955. if test "$am_compiler_list" = ""; then
  3956. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3957. fi
  3958. am__universal=false
  3959. case " $depcc " in #(
  3960. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3961. esac
  3962. for depmode in $am_compiler_list; do
  3963. # Setup a source with many dependencies, because some compilers
  3964. # like to wrap large dependency lists on column 80 (with \), and
  3965. # we should not choose a depcomp mode which is confused by this.
  3966. #
  3967. # We need to recreate these files for each test, as the compiler may
  3968. # overwrite some of them when testing with obscure command lines.
  3969. # This happens at least with the AIX C compiler.
  3970. : > sub/conftest.c
  3971. for i in 1 2 3 4 5 6; do
  3972. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3973. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3974. # Solaris 8's {/usr,}/bin/sh.
  3975. touch sub/conftst$i.h
  3976. done
  3977. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3978. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3979. # mode. It turns out that the SunPro C++ compiler does not properly
  3980. # handle `-M -o', and we need to detect this. Also, some Intel
  3981. # versions had trouble with output in subdirs
  3982. am__obj=sub/conftest.${OBJEXT-o}
  3983. am__minus_obj="-o $am__obj"
  3984. case $depmode in
  3985. gcc)
  3986. # This depmode causes a compiler race in universal mode.
  3987. test "$am__universal" = false || continue
  3988. ;;
  3989. nosideeffect)
  3990. # after this tag, mechanisms are not by side-effect, so they'll
  3991. # only be used when explicitly requested
  3992. if test "x$enable_dependency_tracking" = xyes; then
  3993. continue
  3994. else
  3995. break
  3996. fi
  3997. ;;
  3998. msvisualcpp | msvcmsys)
  3999. # This compiler won't grok `-c -o', but also, the minuso test has
  4000. # not run yet. These depmodes are late enough in the game, and
  4001. # so weak that their functioning should not be impacted.
  4002. am__obj=conftest.${OBJEXT-o}
  4003. am__minus_obj=
  4004. ;;
  4005. none) break ;;
  4006. esac
  4007. if depmode=$depmode \
  4008. source=sub/conftest.c object=$am__obj \
  4009. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4010. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4011. >/dev/null 2>conftest.err &&
  4012. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4013. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4014. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4015. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4016. # icc doesn't choke on unknown options, it will just issue warnings
  4017. # or remarks (even with -Werror). So we grep stderr for any message
  4018. # that says an option was ignored or not supported.
  4019. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4020. # icc: Command line warning: ignoring option '-M'; no argument required
  4021. # The diagnosis changed in icc 8.0:
  4022. # icc: Command line remark: option '-MP' not supported
  4023. if (grep 'ignoring option' conftest.err ||
  4024. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4025. am_cv_CC_dependencies_compiler_type=$depmode
  4026. break
  4027. fi
  4028. fi
  4029. done
  4030. cd ..
  4031. rm -rf conftest.dir
  4032. else
  4033. am_cv_CC_dependencies_compiler_type=none
  4034. fi
  4035. fi
  4036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4037. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4038. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4039. if
  4040. test "x$enable_dependency_tracking" != xno \
  4041. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4042. am__fastdepCC_TRUE=
  4043. am__fastdepCC_FALSE='#'
  4044. else
  4045. am__fastdepCC_TRUE='#'
  4046. am__fastdepCC_FALSE=
  4047. fi
  4048. ac_ext=c
  4049. ac_cpp='$CPP $CPPFLAGS'
  4050. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4051. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4052. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4054. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4055. # On Suns, sometimes $CPP names a directory.
  4056. if test -n "$CPP" && test -d "$CPP"; then
  4057. CPP=
  4058. fi
  4059. if test -z "$CPP"; then
  4060. if ${ac_cv_prog_CPP+:} false; then :
  4061. $as_echo_n "(cached) " >&6
  4062. else
  4063. # Double quotes because CPP needs to be expanded
  4064. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4065. do
  4066. ac_preproc_ok=false
  4067. for ac_c_preproc_warn_flag in '' yes
  4068. do
  4069. # Use a header file that comes with gcc, so configuring glibc
  4070. # with a fresh cross-compiler works.
  4071. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4072. # <limits.h> exists even on freestanding compilers.
  4073. # On the NeXT, cc -E runs the code through the compiler's parser,
  4074. # not just through cpp. "Syntax error" is here to catch this case.
  4075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4076. /* end confdefs.h. */
  4077. @%:@ifdef __STDC__
  4078. @%:@ include <limits.h>
  4079. @%:@else
  4080. @%:@ include <assert.h>
  4081. @%:@endif
  4082. Syntax error
  4083. _ACEOF
  4084. if ac_fn_c_try_cpp "$LINENO"; then :
  4085. else
  4086. # Broken: fails on valid input.
  4087. continue
  4088. fi
  4089. rm -f conftest.err conftest.i conftest.$ac_ext
  4090. # OK, works on sane cases. Now check whether nonexistent headers
  4091. # can be detected and how.
  4092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4093. /* end confdefs.h. */
  4094. @%:@include <ac_nonexistent.h>
  4095. _ACEOF
  4096. if ac_fn_c_try_cpp "$LINENO"; then :
  4097. # Broken: success on invalid input.
  4098. continue
  4099. else
  4100. # Passes both tests.
  4101. ac_preproc_ok=:
  4102. break
  4103. fi
  4104. rm -f conftest.err conftest.i conftest.$ac_ext
  4105. done
  4106. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4107. rm -f conftest.i conftest.err conftest.$ac_ext
  4108. if $ac_preproc_ok; then :
  4109. break
  4110. fi
  4111. done
  4112. ac_cv_prog_CPP=$CPP
  4113. fi
  4114. CPP=$ac_cv_prog_CPP
  4115. else
  4116. ac_cv_prog_CPP=$CPP
  4117. fi
  4118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4119. $as_echo "$CPP" >&6; }
  4120. ac_preproc_ok=false
  4121. for ac_c_preproc_warn_flag in '' yes
  4122. do
  4123. # Use a header file that comes with gcc, so configuring glibc
  4124. # with a fresh cross-compiler works.
  4125. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4126. # <limits.h> exists even on freestanding compilers.
  4127. # On the NeXT, cc -E runs the code through the compiler's parser,
  4128. # not just through cpp. "Syntax error" is here to catch this case.
  4129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4130. /* end confdefs.h. */
  4131. @%:@ifdef __STDC__
  4132. @%:@ include <limits.h>
  4133. @%:@else
  4134. @%:@ include <assert.h>
  4135. @%:@endif
  4136. Syntax error
  4137. _ACEOF
  4138. if ac_fn_c_try_cpp "$LINENO"; then :
  4139. else
  4140. # Broken: fails on valid input.
  4141. continue
  4142. fi
  4143. rm -f conftest.err conftest.i conftest.$ac_ext
  4144. # OK, works on sane cases. Now check whether nonexistent headers
  4145. # can be detected and how.
  4146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4147. /* end confdefs.h. */
  4148. @%:@include <ac_nonexistent.h>
  4149. _ACEOF
  4150. if ac_fn_c_try_cpp "$LINENO"; then :
  4151. # Broken: success on invalid input.
  4152. continue
  4153. else
  4154. # Passes both tests.
  4155. ac_preproc_ok=:
  4156. break
  4157. fi
  4158. rm -f conftest.err conftest.i conftest.$ac_ext
  4159. done
  4160. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4161. rm -f conftest.i conftest.err conftest.$ac_ext
  4162. if $ac_preproc_ok; then :
  4163. else
  4164. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4165. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4166. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4167. See \`config.log' for more details" "$LINENO" 5 ; }
  4168. fi
  4169. ac_ext=c
  4170. ac_cpp='$CPP $CPPFLAGS'
  4171. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4172. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4173. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4175. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4176. if ${ac_cv_path_GREP+:} false; then :
  4177. $as_echo_n "(cached) " >&6
  4178. else
  4179. if test -z "$GREP"; then
  4180. ac_path_GREP_found=false
  4181. # Loop through the user's path and test for each of PROGNAME-LIST
  4182. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4183. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4184. do
  4185. IFS=$as_save_IFS
  4186. test -z "$as_dir" && as_dir=.
  4187. for ac_prog in grep ggrep; do
  4188. for ac_exec_ext in '' $ac_executable_extensions; do
  4189. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4190. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4191. # Check for GNU ac_path_GREP and select it if it is found.
  4192. # Check for GNU $ac_path_GREP
  4193. case `"$ac_path_GREP" --version 2>&1` in
  4194. *GNU*)
  4195. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4196. *)
  4197. ac_count=0
  4198. $as_echo_n 0123456789 >"conftest.in"
  4199. while :
  4200. do
  4201. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4202. mv "conftest.tmp" "conftest.in"
  4203. cp "conftest.in" "conftest.nl"
  4204. $as_echo 'GREP' >> "conftest.nl"
  4205. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4206. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4207. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4208. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4209. # Best one so far, save it but keep looking for a better one
  4210. ac_cv_path_GREP="$ac_path_GREP"
  4211. ac_path_GREP_max=$ac_count
  4212. fi
  4213. # 10*(2^10) chars as input seems more than enough
  4214. test $ac_count -gt 10 && break
  4215. done
  4216. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4217. esac
  4218. $ac_path_GREP_found && break 3
  4219. done
  4220. done
  4221. done
  4222. IFS=$as_save_IFS
  4223. if test -z "$ac_cv_path_GREP"; then
  4224. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4225. fi
  4226. else
  4227. ac_cv_path_GREP=$GREP
  4228. fi
  4229. fi
  4230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4231. $as_echo "$ac_cv_path_GREP" >&6; }
  4232. GREP="$ac_cv_path_GREP"
  4233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4234. $as_echo_n "checking for egrep... " >&6; }
  4235. if ${ac_cv_path_EGREP+:} false; then :
  4236. $as_echo_n "(cached) " >&6
  4237. else
  4238. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4239. then ac_cv_path_EGREP="$GREP -E"
  4240. else
  4241. if test -z "$EGREP"; then
  4242. ac_path_EGREP_found=false
  4243. # Loop through the user's path and test for each of PROGNAME-LIST
  4244. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4245. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4246. do
  4247. IFS=$as_save_IFS
  4248. test -z "$as_dir" && as_dir=.
  4249. for ac_prog in egrep; do
  4250. for ac_exec_ext in '' $ac_executable_extensions; do
  4251. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4252. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4253. # Check for GNU ac_path_EGREP and select it if it is found.
  4254. # Check for GNU $ac_path_EGREP
  4255. case `"$ac_path_EGREP" --version 2>&1` in
  4256. *GNU*)
  4257. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4258. *)
  4259. ac_count=0
  4260. $as_echo_n 0123456789 >"conftest.in"
  4261. while :
  4262. do
  4263. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4264. mv "conftest.tmp" "conftest.in"
  4265. cp "conftest.in" "conftest.nl"
  4266. $as_echo 'EGREP' >> "conftest.nl"
  4267. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4268. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4269. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4270. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4271. # Best one so far, save it but keep looking for a better one
  4272. ac_cv_path_EGREP="$ac_path_EGREP"
  4273. ac_path_EGREP_max=$ac_count
  4274. fi
  4275. # 10*(2^10) chars as input seems more than enough
  4276. test $ac_count -gt 10 && break
  4277. done
  4278. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4279. esac
  4280. $ac_path_EGREP_found && break 3
  4281. done
  4282. done
  4283. done
  4284. IFS=$as_save_IFS
  4285. if test -z "$ac_cv_path_EGREP"; then
  4286. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4287. fi
  4288. else
  4289. ac_cv_path_EGREP=$EGREP
  4290. fi
  4291. fi
  4292. fi
  4293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4294. $as_echo "$ac_cv_path_EGREP" >&6; }
  4295. EGREP="$ac_cv_path_EGREP"
  4296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4297. $as_echo_n "checking for ANSI C header files... " >&6; }
  4298. if ${ac_cv_header_stdc+:} false; then :
  4299. $as_echo_n "(cached) " >&6
  4300. else
  4301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4302. /* end confdefs.h. */
  4303. #include <stdlib.h>
  4304. #include <stdarg.h>
  4305. #include <string.h>
  4306. #include <float.h>
  4307. int
  4308. main ()
  4309. {
  4310. ;
  4311. return 0;
  4312. }
  4313. _ACEOF
  4314. if ac_fn_c_try_compile "$LINENO"; then :
  4315. ac_cv_header_stdc=yes
  4316. else
  4317. ac_cv_header_stdc=no
  4318. fi
  4319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4320. if test $ac_cv_header_stdc = yes; then
  4321. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4323. /* end confdefs.h. */
  4324. #include <string.h>
  4325. _ACEOF
  4326. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4327. $EGREP "memchr" >/dev/null 2>&1; then :
  4328. else
  4329. ac_cv_header_stdc=no
  4330. fi
  4331. rm -f conftest*
  4332. fi
  4333. if test $ac_cv_header_stdc = yes; then
  4334. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4336. /* end confdefs.h. */
  4337. #include <stdlib.h>
  4338. _ACEOF
  4339. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4340. $EGREP "free" >/dev/null 2>&1; then :
  4341. else
  4342. ac_cv_header_stdc=no
  4343. fi
  4344. rm -f conftest*
  4345. fi
  4346. if test $ac_cv_header_stdc = yes; then
  4347. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4348. if test "$cross_compiling" = yes; then :
  4349. :
  4350. else
  4351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4352. /* end confdefs.h. */
  4353. #include <ctype.h>
  4354. #include <stdlib.h>
  4355. #if ((' ' & 0x0FF) == 0x020)
  4356. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4357. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4358. #else
  4359. # define ISLOWER(c) \
  4360. (('a' <= (c) && (c) <= 'i') \
  4361. || ('j' <= (c) && (c) <= 'r') \
  4362. || ('s' <= (c) && (c) <= 'z'))
  4363. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4364. #endif
  4365. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4366. int
  4367. main ()
  4368. {
  4369. int i;
  4370. for (i = 0; i < 256; i++)
  4371. if (XOR (islower (i), ISLOWER (i))
  4372. || toupper (i) != TOUPPER (i))
  4373. return 2;
  4374. return 0;
  4375. }
  4376. _ACEOF
  4377. if ac_fn_c_try_run "$LINENO"; then :
  4378. else
  4379. ac_cv_header_stdc=no
  4380. fi
  4381. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4382. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4383. fi
  4384. fi
  4385. fi
  4386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4387. $as_echo "$ac_cv_header_stdc" >&6; }
  4388. if test $ac_cv_header_stdc = yes; then
  4389. $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
  4390. fi
  4391. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4392. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4393. inttypes.h stdint.h unistd.h
  4394. do :
  4395. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4396. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4397. "
  4398. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4399. cat >>confdefs.h <<_ACEOF
  4400. @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4401. _ACEOF
  4402. fi
  4403. done
  4404. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4405. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4406. MINIX=yes
  4407. else
  4408. MINIX=
  4409. fi
  4410. if test "$MINIX" = yes; then
  4411. $as_echo "@%:@define _POSIX_SOURCE 1" >>confdefs.h
  4412. $as_echo "@%:@define _POSIX_1_SOURCE 2" >>confdefs.h
  4413. $as_echo "@%:@define _MINIX 1" >>confdefs.h
  4414. fi
  4415. case "$host_os" in
  4416. hpux*)
  4417. $as_echo "@%:@define _XOPEN_SOURCE 500" >>confdefs.h
  4418. ;;
  4419. esac
  4420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4421. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4422. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4423. $as_echo_n "(cached) " >&6
  4424. else
  4425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4426. /* end confdefs.h. */
  4427. # define __EXTENSIONS__ 1
  4428. $ac_includes_default
  4429. int
  4430. main ()
  4431. {
  4432. ;
  4433. return 0;
  4434. }
  4435. _ACEOF
  4436. if ac_fn_c_try_compile "$LINENO"; then :
  4437. ac_cv_safe_to_define___extensions__=yes
  4438. else
  4439. ac_cv_safe_to_define___extensions__=no
  4440. fi
  4441. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4442. fi
  4443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4444. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4445. test $ac_cv_safe_to_define___extensions__ = yes &&
  4446. $as_echo "@%:@define __EXTENSIONS__ 1" >>confdefs.h
  4447. $as_echo "@%:@define _ALL_SOURCE 1" >>confdefs.h
  4448. $as_echo "@%:@define _GNU_SOURCE 1" >>confdefs.h
  4449. $as_echo "@%:@define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4450. $as_echo "@%:@define _TANDEM_SOURCE 1" >>confdefs.h
  4451. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  4452. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  4453. cat >>confdefs.h <<_ACEOF
  4454. @%:@define CGMINER_MAJOR_VERSION 4
  4455. _ACEOF
  4456. cat >>confdefs.h <<_ACEOF
  4457. @%:@define CGMINER_MINOR_VERSION 3
  4458. _ACEOF
  4459. cat >>confdefs.h <<_ACEOF
  4460. @%:@define CGMINER_MINOR_SUBVERSION 5
  4461. _ACEOF
  4462. version_info="7:5:3"
  4463. release_info=""
  4464. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  4465. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  4466. VMAJ=4
  4467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  4468. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  4469. @%:@ Check whether --enable-maintainer-mode was given.
  4470. if test "${enable_maintainer_mode+set}" = set; then :
  4471. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  4472. else
  4473. USE_MAINTAINER_MODE=no
  4474. fi
  4475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  4476. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  4477. if test $USE_MAINTAINER_MODE = yes; then
  4478. MAINTAINER_MODE_TRUE=
  4479. MAINTAINER_MODE_FALSE='#'
  4480. else
  4481. MAINTAINER_MODE_TRUE='#'
  4482. MAINTAINER_MODE_FALSE=
  4483. fi
  4484. MAINT=$MAINTAINER_MODE_TRUE
  4485. ac_ext=c
  4486. ac_cpp='$CPP $CPPFLAGS'
  4487. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4488. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4489. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4490. if test -n "$ac_tool_prefix"; then
  4491. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4492. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4494. $as_echo_n "checking for $ac_word... " >&6; }
  4495. if ${ac_cv_prog_CC+:} false; then :
  4496. $as_echo_n "(cached) " >&6
  4497. else
  4498. if test -n "$CC"; then
  4499. ac_cv_prog_CC="$CC" # Let the user override the test.
  4500. else
  4501. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4502. for as_dir in $PATH
  4503. do
  4504. IFS=$as_save_IFS
  4505. test -z "$as_dir" && as_dir=.
  4506. for ac_exec_ext in '' $ac_executable_extensions; do
  4507. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4508. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4509. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4510. break 2
  4511. fi
  4512. done
  4513. done
  4514. IFS=$as_save_IFS
  4515. fi
  4516. fi
  4517. CC=$ac_cv_prog_CC
  4518. if test -n "$CC"; then
  4519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4520. $as_echo "$CC" >&6; }
  4521. else
  4522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4523. $as_echo "no" >&6; }
  4524. fi
  4525. fi
  4526. if test -z "$ac_cv_prog_CC"; then
  4527. ac_ct_CC=$CC
  4528. # Extract the first word of "gcc", so it can be a program name with args.
  4529. set dummy gcc; ac_word=$2
  4530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4531. $as_echo_n "checking for $ac_word... " >&6; }
  4532. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4533. $as_echo_n "(cached) " >&6
  4534. else
  4535. if test -n "$ac_ct_CC"; then
  4536. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4537. else
  4538. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4539. for as_dir in $PATH
  4540. do
  4541. IFS=$as_save_IFS
  4542. test -z "$as_dir" && as_dir=.
  4543. for ac_exec_ext in '' $ac_executable_extensions; do
  4544. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4545. ac_cv_prog_ac_ct_CC="gcc"
  4546. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4547. break 2
  4548. fi
  4549. done
  4550. done
  4551. IFS=$as_save_IFS
  4552. fi
  4553. fi
  4554. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4555. if test -n "$ac_ct_CC"; then
  4556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4557. $as_echo "$ac_ct_CC" >&6; }
  4558. else
  4559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4560. $as_echo "no" >&6; }
  4561. fi
  4562. if test "x$ac_ct_CC" = x; then
  4563. CC=""
  4564. else
  4565. case $cross_compiling:$ac_tool_warned in
  4566. yes:)
  4567. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4568. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4569. ac_tool_warned=yes ;;
  4570. esac
  4571. CC=$ac_ct_CC
  4572. fi
  4573. else
  4574. CC="$ac_cv_prog_CC"
  4575. fi
  4576. if test -z "$CC"; then
  4577. if test -n "$ac_tool_prefix"; then
  4578. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4579. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4581. $as_echo_n "checking for $ac_word... " >&6; }
  4582. if ${ac_cv_prog_CC+:} false; then :
  4583. $as_echo_n "(cached) " >&6
  4584. else
  4585. if test -n "$CC"; then
  4586. ac_cv_prog_CC="$CC" # Let the user override the test.
  4587. else
  4588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4589. for as_dir in $PATH
  4590. do
  4591. IFS=$as_save_IFS
  4592. test -z "$as_dir" && as_dir=.
  4593. for ac_exec_ext in '' $ac_executable_extensions; do
  4594. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4595. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4596. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4597. break 2
  4598. fi
  4599. done
  4600. done
  4601. IFS=$as_save_IFS
  4602. fi
  4603. fi
  4604. CC=$ac_cv_prog_CC
  4605. if test -n "$CC"; then
  4606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4607. $as_echo "$CC" >&6; }
  4608. else
  4609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4610. $as_echo "no" >&6; }
  4611. fi
  4612. fi
  4613. fi
  4614. if test -z "$CC"; then
  4615. # Extract the first word of "cc", so it can be a program name with args.
  4616. set dummy cc; ac_word=$2
  4617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4618. $as_echo_n "checking for $ac_word... " >&6; }
  4619. if ${ac_cv_prog_CC+:} false; then :
  4620. $as_echo_n "(cached) " >&6
  4621. else
  4622. if test -n "$CC"; then
  4623. ac_cv_prog_CC="$CC" # Let the user override the test.
  4624. else
  4625. ac_prog_rejected=no
  4626. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4627. for as_dir in $PATH
  4628. do
  4629. IFS=$as_save_IFS
  4630. test -z "$as_dir" && as_dir=.
  4631. for ac_exec_ext in '' $ac_executable_extensions; do
  4632. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4633. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4634. ac_prog_rejected=yes
  4635. continue
  4636. fi
  4637. ac_cv_prog_CC="cc"
  4638. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4639. break 2
  4640. fi
  4641. done
  4642. done
  4643. IFS=$as_save_IFS
  4644. if test $ac_prog_rejected = yes; then
  4645. # We found a bogon in the path, so make sure we never use it.
  4646. set dummy $ac_cv_prog_CC
  4647. shift
  4648. if test $@%:@ != 0; then
  4649. # We chose a different compiler from the bogus one.
  4650. # However, it has the same basename, so the bogon will be chosen
  4651. # first if we set CC to just the basename; use the full file name.
  4652. shift
  4653. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4654. fi
  4655. fi
  4656. fi
  4657. fi
  4658. CC=$ac_cv_prog_CC
  4659. if test -n "$CC"; then
  4660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4661. $as_echo "$CC" >&6; }
  4662. else
  4663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4664. $as_echo "no" >&6; }
  4665. fi
  4666. fi
  4667. if test -z "$CC"; then
  4668. if test -n "$ac_tool_prefix"; then
  4669. for ac_prog in cl.exe
  4670. do
  4671. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4672. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4674. $as_echo_n "checking for $ac_word... " >&6; }
  4675. if ${ac_cv_prog_CC+:} false; then :
  4676. $as_echo_n "(cached) " >&6
  4677. else
  4678. if test -n "$CC"; then
  4679. ac_cv_prog_CC="$CC" # Let the user override the test.
  4680. else
  4681. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4682. for as_dir in $PATH
  4683. do
  4684. IFS=$as_save_IFS
  4685. test -z "$as_dir" && as_dir=.
  4686. for ac_exec_ext in '' $ac_executable_extensions; do
  4687. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4688. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4689. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4690. break 2
  4691. fi
  4692. done
  4693. done
  4694. IFS=$as_save_IFS
  4695. fi
  4696. fi
  4697. CC=$ac_cv_prog_CC
  4698. if test -n "$CC"; then
  4699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4700. $as_echo "$CC" >&6; }
  4701. else
  4702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4703. $as_echo "no" >&6; }
  4704. fi
  4705. test -n "$CC" && break
  4706. done
  4707. fi
  4708. if test -z "$CC"; then
  4709. ac_ct_CC=$CC
  4710. for ac_prog in cl.exe
  4711. do
  4712. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4713. set dummy $ac_prog; ac_word=$2
  4714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4715. $as_echo_n "checking for $ac_word... " >&6; }
  4716. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4717. $as_echo_n "(cached) " >&6
  4718. else
  4719. if test -n "$ac_ct_CC"; then
  4720. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4721. else
  4722. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4723. for as_dir in $PATH
  4724. do
  4725. IFS=$as_save_IFS
  4726. test -z "$as_dir" && as_dir=.
  4727. for ac_exec_ext in '' $ac_executable_extensions; do
  4728. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4729. ac_cv_prog_ac_ct_CC="$ac_prog"
  4730. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4731. break 2
  4732. fi
  4733. done
  4734. done
  4735. IFS=$as_save_IFS
  4736. fi
  4737. fi
  4738. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4739. if test -n "$ac_ct_CC"; then
  4740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4741. $as_echo "$ac_ct_CC" >&6; }
  4742. else
  4743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4744. $as_echo "no" >&6; }
  4745. fi
  4746. test -n "$ac_ct_CC" && break
  4747. done
  4748. if test "x$ac_ct_CC" = x; then
  4749. CC=""
  4750. else
  4751. case $cross_compiling:$ac_tool_warned in
  4752. yes:)
  4753. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4754. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4755. ac_tool_warned=yes ;;
  4756. esac
  4757. CC=$ac_ct_CC
  4758. fi
  4759. fi
  4760. fi
  4761. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4762. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4763. as_fn_error $? "no acceptable C compiler found in \$PATH
  4764. See \`config.log' for more details" "$LINENO" 5 ; }
  4765. # Provide some information about the compiler.
  4766. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4767. set X $ac_compile
  4768. ac_compiler=$2
  4769. for ac_option in --version -v -V -qversion; do
  4770. { { ac_try="$ac_compiler $ac_option >&5"
  4771. case "(($ac_try" in
  4772. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4773. *) ac_try_echo=$ac_try;;
  4774. esac
  4775. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4776. $as_echo "$ac_try_echo"; } >&5
  4777. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4778. ac_status=$?
  4779. if test -s conftest.err; then
  4780. sed '10a\
  4781. ... rest of stderr output deleted ...
  4782. 10q' conftest.err >conftest.er1
  4783. cat conftest.er1 >&5
  4784. fi
  4785. rm -f conftest.er1 conftest.err
  4786. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4787. test $ac_status = 0; }
  4788. done
  4789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4790. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4791. if ${ac_cv_c_compiler_gnu+:} false; then :
  4792. $as_echo_n "(cached) " >&6
  4793. else
  4794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4795. /* end confdefs.h. */
  4796. int
  4797. main ()
  4798. {
  4799. #ifndef __GNUC__
  4800. choke me
  4801. #endif
  4802. ;
  4803. return 0;
  4804. }
  4805. _ACEOF
  4806. if ac_fn_c_try_compile "$LINENO"; then :
  4807. ac_compiler_gnu=yes
  4808. else
  4809. ac_compiler_gnu=no
  4810. fi
  4811. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4812. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4813. fi
  4814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4815. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4816. if test $ac_compiler_gnu = yes; then
  4817. GCC=yes
  4818. else
  4819. GCC=
  4820. fi
  4821. ac_test_CFLAGS=${CFLAGS+set}
  4822. ac_save_CFLAGS=$CFLAGS
  4823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4824. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4825. if ${ac_cv_prog_cc_g+:} false; then :
  4826. $as_echo_n "(cached) " >&6
  4827. else
  4828. ac_save_c_werror_flag=$ac_c_werror_flag
  4829. ac_c_werror_flag=yes
  4830. ac_cv_prog_cc_g=no
  4831. CFLAGS="-g"
  4832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4833. /* end confdefs.h. */
  4834. int
  4835. main ()
  4836. {
  4837. ;
  4838. return 0;
  4839. }
  4840. _ACEOF
  4841. if ac_fn_c_try_compile "$LINENO"; then :
  4842. ac_cv_prog_cc_g=yes
  4843. else
  4844. CFLAGS=""
  4845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4846. /* end confdefs.h. */
  4847. int
  4848. main ()
  4849. {
  4850. ;
  4851. return 0;
  4852. }
  4853. _ACEOF
  4854. if ac_fn_c_try_compile "$LINENO"; then :
  4855. else
  4856. ac_c_werror_flag=$ac_save_c_werror_flag
  4857. CFLAGS="-g"
  4858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4859. /* end confdefs.h. */
  4860. int
  4861. main ()
  4862. {
  4863. ;
  4864. return 0;
  4865. }
  4866. _ACEOF
  4867. if ac_fn_c_try_compile "$LINENO"; then :
  4868. ac_cv_prog_cc_g=yes
  4869. fi
  4870. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4871. fi
  4872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4873. fi
  4874. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4875. ac_c_werror_flag=$ac_save_c_werror_flag
  4876. fi
  4877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4878. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4879. if test "$ac_test_CFLAGS" = set; then
  4880. CFLAGS=$ac_save_CFLAGS
  4881. elif test $ac_cv_prog_cc_g = yes; then
  4882. if test "$GCC" = yes; then
  4883. CFLAGS="-g -O2"
  4884. else
  4885. CFLAGS="-g"
  4886. fi
  4887. else
  4888. if test "$GCC" = yes; then
  4889. CFLAGS="-O2"
  4890. else
  4891. CFLAGS=
  4892. fi
  4893. fi
  4894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4895. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4896. if ${ac_cv_prog_cc_c89+:} false; then :
  4897. $as_echo_n "(cached) " >&6
  4898. else
  4899. ac_cv_prog_cc_c89=no
  4900. ac_save_CC=$CC
  4901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4902. /* end confdefs.h. */
  4903. #include <stdarg.h>
  4904. #include <stdio.h>
  4905. #include <sys/types.h>
  4906. #include <sys/stat.h>
  4907. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4908. struct buf { int x; };
  4909. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4910. static char *e (p, i)
  4911. char **p;
  4912. int i;
  4913. {
  4914. return p[i];
  4915. }
  4916. static char *f (char * (*g) (char **, int), char **p, ...)
  4917. {
  4918. char *s;
  4919. va_list v;
  4920. va_start (v,p);
  4921. s = g (p, va_arg (v,int));
  4922. va_end (v);
  4923. return s;
  4924. }
  4925. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4926. function prototypes and stuff, but not '\xHH' hex character constants.
  4927. These don't provoke an error unfortunately, instead are silently treated
  4928. as 'x'. The following induces an error, until -std is added to get
  4929. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4930. array size at least. It's necessary to write '\x00'==0 to get something
  4931. that's true only with -std. */
  4932. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4933. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4934. inside strings and character constants. */
  4935. #define FOO(x) 'x'
  4936. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4937. int test (int i, double x);
  4938. struct s1 {int (*f) (int a);};
  4939. struct s2 {int (*f) (double a);};
  4940. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4941. int argc;
  4942. char **argv;
  4943. int
  4944. main ()
  4945. {
  4946. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4947. ;
  4948. return 0;
  4949. }
  4950. _ACEOF
  4951. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4952. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4953. do
  4954. CC="$ac_save_CC $ac_arg"
  4955. if ac_fn_c_try_compile "$LINENO"; then :
  4956. ac_cv_prog_cc_c89=$ac_arg
  4957. fi
  4958. rm -f core conftest.err conftest.$ac_objext
  4959. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4960. done
  4961. rm -f conftest.$ac_ext
  4962. CC=$ac_save_CC
  4963. fi
  4964. # AC_CACHE_VAL
  4965. case "x$ac_cv_prog_cc_c89" in
  4966. x)
  4967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4968. $as_echo "none needed" >&6; } ;;
  4969. xno)
  4970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4971. $as_echo "unsupported" >&6; } ;;
  4972. *)
  4973. CC="$CC $ac_cv_prog_cc_c89"
  4974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4975. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4976. esac
  4977. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4978. fi
  4979. ac_ext=c
  4980. ac_cpp='$CPP $CPPFLAGS'
  4981. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4982. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4983. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4984. depcc="$CC" am_compiler_list=
  4985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4986. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4987. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4988. $as_echo_n "(cached) " >&6
  4989. else
  4990. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4991. # We make a subdir and do the tests there. Otherwise we can end up
  4992. # making bogus files that we don't know about and never remove. For
  4993. # instance it was reported that on HP-UX the gcc test will end up
  4994. # making a dummy file named `D' -- because `-MD' means `put the output
  4995. # in D'.
  4996. mkdir conftest.dir
  4997. # Copy depcomp to subdir because otherwise we won't find it if we're
  4998. # using a relative directory.
  4999. cp "$am_depcomp" conftest.dir
  5000. cd conftest.dir
  5001. # We will build objects and dependencies in a subdirectory because
  5002. # it helps to detect inapplicable dependency modes. For instance
  5003. # both Tru64's cc and ICC support -MD to output dependencies as a
  5004. # side effect of compilation, but ICC will put the dependencies in
  5005. # the current directory while Tru64 will put them in the object
  5006. # directory.
  5007. mkdir sub
  5008. am_cv_CC_dependencies_compiler_type=none
  5009. if test "$am_compiler_list" = ""; then
  5010. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5011. fi
  5012. am__universal=false
  5013. case " $depcc " in #(
  5014. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  5015. esac
  5016. for depmode in $am_compiler_list; do
  5017. # Setup a source with many dependencies, because some compilers
  5018. # like to wrap large dependency lists on column 80 (with \), and
  5019. # we should not choose a depcomp mode which is confused by this.
  5020. #
  5021. # We need to recreate these files for each test, as the compiler may
  5022. # overwrite some of them when testing with obscure command lines.
  5023. # This happens at least with the AIX C compiler.
  5024. : > sub/conftest.c
  5025. for i in 1 2 3 4 5 6; do
  5026. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5027. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5028. # Solaris 8's {/usr,}/bin/sh.
  5029. touch sub/conftst$i.h
  5030. done
  5031. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5032. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5033. # mode. It turns out that the SunPro C++ compiler does not properly
  5034. # handle `-M -o', and we need to detect this. Also, some Intel
  5035. # versions had trouble with output in subdirs
  5036. am__obj=sub/conftest.${OBJEXT-o}
  5037. am__minus_obj="-o $am__obj"
  5038. case $depmode in
  5039. gcc)
  5040. # This depmode causes a compiler race in universal mode.
  5041. test "$am__universal" = false || continue
  5042. ;;
  5043. nosideeffect)
  5044. # after this tag, mechanisms are not by side-effect, so they'll
  5045. # only be used when explicitly requested
  5046. if test "x$enable_dependency_tracking" = xyes; then
  5047. continue
  5048. else
  5049. break
  5050. fi
  5051. ;;
  5052. msvisualcpp | msvcmsys)
  5053. # This compiler won't grok `-c -o', but also, the minuso test has
  5054. # not run yet. These depmodes are late enough in the game, and
  5055. # so weak that their functioning should not be impacted.
  5056. am__obj=conftest.${OBJEXT-o}
  5057. am__minus_obj=
  5058. ;;
  5059. none) break ;;
  5060. esac
  5061. if depmode=$depmode \
  5062. source=sub/conftest.c object=$am__obj \
  5063. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5064. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  5065. >/dev/null 2>conftest.err &&
  5066. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5067. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5068. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5069. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5070. # icc doesn't choke on unknown options, it will just issue warnings
  5071. # or remarks (even with -Werror). So we grep stderr for any message
  5072. # that says an option was ignored or not supported.
  5073. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5074. # icc: Command line warning: ignoring option '-M'; no argument required
  5075. # The diagnosis changed in icc 8.0:
  5076. # icc: Command line remark: option '-MP' not supported
  5077. if (grep 'ignoring option' conftest.err ||
  5078. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5079. am_cv_CC_dependencies_compiler_type=$depmode
  5080. break
  5081. fi
  5082. fi
  5083. done
  5084. cd ..
  5085. rm -rf conftest.dir
  5086. else
  5087. am_cv_CC_dependencies_compiler_type=none
  5088. fi
  5089. fi
  5090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  5091. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  5092. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5093. if
  5094. test "x$enable_dependency_tracking" != xno \
  5095. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5096. am__fastdepCC_TRUE=
  5097. am__fastdepCC_FALSE='#'
  5098. else
  5099. am__fastdepCC_TRUE='#'
  5100. am__fastdepCC_FALSE=
  5101. fi
  5102. if test -n "$ac_tool_prefix"; then
  5103. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5104. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5106. $as_echo_n "checking for $ac_word... " >&6; }
  5107. if ${ac_cv_prog_RANLIB+:} false; then :
  5108. $as_echo_n "(cached) " >&6
  5109. else
  5110. if test -n "$RANLIB"; then
  5111. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5112. else
  5113. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5114. for as_dir in $PATH
  5115. do
  5116. IFS=$as_save_IFS
  5117. test -z "$as_dir" && as_dir=.
  5118. for ac_exec_ext in '' $ac_executable_extensions; do
  5119. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5120. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5121. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5122. break 2
  5123. fi
  5124. done
  5125. done
  5126. IFS=$as_save_IFS
  5127. fi
  5128. fi
  5129. RANLIB=$ac_cv_prog_RANLIB
  5130. if test -n "$RANLIB"; then
  5131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5132. $as_echo "$RANLIB" >&6; }
  5133. else
  5134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5135. $as_echo "no" >&6; }
  5136. fi
  5137. fi
  5138. if test -z "$ac_cv_prog_RANLIB"; then
  5139. ac_ct_RANLIB=$RANLIB
  5140. # Extract the first word of "ranlib", so it can be a program name with args.
  5141. set dummy ranlib; ac_word=$2
  5142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5143. $as_echo_n "checking for $ac_word... " >&6; }
  5144. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5145. $as_echo_n "(cached) " >&6
  5146. else
  5147. if test -n "$ac_ct_RANLIB"; then
  5148. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5149. else
  5150. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5151. for as_dir in $PATH
  5152. do
  5153. IFS=$as_save_IFS
  5154. test -z "$as_dir" && as_dir=.
  5155. for ac_exec_ext in '' $ac_executable_extensions; do
  5156. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5157. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5158. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5159. break 2
  5160. fi
  5161. done
  5162. done
  5163. IFS=$as_save_IFS
  5164. fi
  5165. fi
  5166. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5167. if test -n "$ac_ct_RANLIB"; then
  5168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5169. $as_echo "$ac_ct_RANLIB" >&6; }
  5170. else
  5171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5172. $as_echo "no" >&6; }
  5173. fi
  5174. if test "x$ac_ct_RANLIB" = x; then
  5175. RANLIB=":"
  5176. else
  5177. case $cross_compiling:$ac_tool_warned in
  5178. yes:)
  5179. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5180. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5181. ac_tool_warned=yes ;;
  5182. esac
  5183. RANLIB=$ac_ct_RANLIB
  5184. fi
  5185. else
  5186. RANLIB="$ac_cv_prog_RANLIB"
  5187. fi
  5188. # Code from module arg-nonnull:
  5189. # Code from module c++defs:
  5190. # Code from module extensions:
  5191. # Code from module include_next:
  5192. # Code from module memchr:
  5193. # Code from module memmem:
  5194. # Code from module memmem-simple:
  5195. # Code from module multiarch:
  5196. # Code from module sigaction:
  5197. # Code from module signal:
  5198. # Code from module sigprocmask:
  5199. # Code from module stddef:
  5200. # Code from module stdint:
  5201. # Code from module string:
  5202. # Code from module warn-on-use:
  5203. if test $ac_cv_c_compiler_gnu = yes; then
  5204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  5205. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  5206. if ${ac_cv_prog_gcc_traditional+:} false; then :
  5207. $as_echo_n "(cached) " >&6
  5208. else
  5209. ac_pattern="Autoconf.*'x'"
  5210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5211. /* end confdefs.h. */
  5212. #include <sgtty.h>
  5213. Autoconf TIOCGETP
  5214. _ACEOF
  5215. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5216. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  5217. ac_cv_prog_gcc_traditional=yes
  5218. else
  5219. ac_cv_prog_gcc_traditional=no
  5220. fi
  5221. rm -f conftest*
  5222. if test $ac_cv_prog_gcc_traditional = no; then
  5223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5224. /* end confdefs.h. */
  5225. #include <termio.h>
  5226. Autoconf TCGETA
  5227. _ACEOF
  5228. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5229. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  5230. ac_cv_prog_gcc_traditional=yes
  5231. fi
  5232. rm -f conftest*
  5233. fi
  5234. fi
  5235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  5236. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  5237. if test $ac_cv_prog_gcc_traditional = yes; then
  5238. CC="$CC -traditional"
  5239. fi
  5240. fi
  5241. if test "x$CC" != xcc; then
  5242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  5243. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  5244. else
  5245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  5246. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  5247. fi
  5248. set dummy $CC; ac_cc=`$as_echo "$2" |
  5249. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  5250. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  5251. $as_echo_n "(cached) " >&6
  5252. else
  5253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5254. /* end confdefs.h. */
  5255. int
  5256. main ()
  5257. {
  5258. ;
  5259. return 0;
  5260. }
  5261. _ACEOF
  5262. # Make sure it works both with $CC and with simple cc.
  5263. # We do the test twice because some compilers refuse to overwrite an
  5264. # existing .o file with -o, though they will create one.
  5265. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  5266. rm -f conftest2.*
  5267. if { { case "(($ac_try" in
  5268. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5269. *) ac_try_echo=$ac_try;;
  5270. esac
  5271. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5272. $as_echo "$ac_try_echo"; } >&5
  5273. (eval "$ac_try") 2>&5
  5274. ac_status=$?
  5275. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5276. test $ac_status = 0; } &&
  5277. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  5278. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5279. *) ac_try_echo=$ac_try;;
  5280. esac
  5281. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5282. $as_echo "$ac_try_echo"; } >&5
  5283. (eval "$ac_try") 2>&5
  5284. ac_status=$?
  5285. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5286. test $ac_status = 0; };
  5287. then
  5288. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  5289. if test "x$CC" != xcc; then
  5290. # Test first that cc exists at all.
  5291. if { ac_try='cc -c conftest.$ac_ext >&5'
  5292. { { case "(($ac_try" in
  5293. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5294. *) ac_try_echo=$ac_try;;
  5295. esac
  5296. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5297. $as_echo "$ac_try_echo"; } >&5
  5298. (eval "$ac_try") 2>&5
  5299. ac_status=$?
  5300. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5301. test $ac_status = 0; }; }; then
  5302. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  5303. rm -f conftest2.*
  5304. if { { case "(($ac_try" in
  5305. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5306. *) ac_try_echo=$ac_try;;
  5307. esac
  5308. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5309. $as_echo "$ac_try_echo"; } >&5
  5310. (eval "$ac_try") 2>&5
  5311. ac_status=$?
  5312. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5313. test $ac_status = 0; } &&
  5314. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  5315. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5316. *) ac_try_echo=$ac_try;;
  5317. esac
  5318. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5319. $as_echo "$ac_try_echo"; } >&5
  5320. (eval "$ac_try") 2>&5
  5321. ac_status=$?
  5322. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5323. test $ac_status = 0; };
  5324. then
  5325. # cc works too.
  5326. :
  5327. else
  5328. # cc exists but doesn't like -o.
  5329. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  5330. fi
  5331. fi
  5332. fi
  5333. else
  5334. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  5335. fi
  5336. rm -f core conftest*
  5337. fi
  5338. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  5339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5340. $as_echo "yes" >&6; }
  5341. else
  5342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5343. $as_echo "no" >&6; }
  5344. $as_echo "@%:@define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  5345. fi
  5346. # FIXME: we rely on the cache variable name because
  5347. # there is no other way.
  5348. set dummy $CC
  5349. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  5350. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  5351. if test "$am_t" != yes; then
  5352. # Losing compiler, so override with the script.
  5353. # FIXME: It is wrong to rewrite CC.
  5354. # But if we don't then we get into trouble of one sort or another.
  5355. # A longer-term fix would be to have automake use am__CC in this case,
  5356. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  5357. CC="$am_aux_dir/compile $CC"
  5358. fi
  5359. case `pwd` in
  5360. *\ * | *\ *)
  5361. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  5362. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  5363. esac
  5364. macro_version='2.4'
  5365. macro_revision='1.3294'
  5366. ltmain="$ac_aux_dir/ltmain.sh"
  5367. # Backslashify metacharacters that are still active within
  5368. # double-quoted strings.
  5369. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  5370. # Same as above, but do not quote variable references.
  5371. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  5372. # Sed substitution to delay expansion of an escaped shell variable in a
  5373. # double_quote_subst'ed string.
  5374. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5375. # Sed substitution to delay expansion of an escaped single quote.
  5376. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  5377. # Sed substitution to avoid accidental globbing in evaled expressions
  5378. no_glob_subst='s/\*/\\\*/g'
  5379. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5380. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  5381. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  5382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  5383. $as_echo_n "checking how to print strings... " >&6; }
  5384. # Test print first, because it will be a builtin if present.
  5385. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  5386. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  5387. ECHO='print -r --'
  5388. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  5389. ECHO='printf %s\n'
  5390. else
  5391. # Use this function as a fallback that always works.
  5392. func_fallback_echo ()
  5393. {
  5394. eval 'cat <<_LTECHO_EOF
  5395. $1
  5396. _LTECHO_EOF'
  5397. }
  5398. ECHO='func_fallback_echo'
  5399. fi
  5400. # func_echo_all arg...
  5401. # Invoke $ECHO with all args, space-separated.
  5402. func_echo_all ()
  5403. {
  5404. $ECHO ""
  5405. }
  5406. case "$ECHO" in
  5407. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  5408. $as_echo "printf" >&6; } ;;
  5409. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  5410. $as_echo "print -r" >&6; } ;;
  5411. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  5412. $as_echo "cat" >&6; } ;;
  5413. esac
  5414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5415. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5416. if ${ac_cv_path_SED+:} false; then :
  5417. $as_echo_n "(cached) " >&6
  5418. else
  5419. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5420. for ac_i in 1 2 3 4 5 6 7; do
  5421. ac_script="$ac_script$as_nl$ac_script"
  5422. done
  5423. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5424. { ac_script=; unset ac_script;}
  5425. if test -z "$SED"; then
  5426. ac_path_SED_found=false
  5427. # Loop through the user's path and test for each of PROGNAME-LIST
  5428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5429. for as_dir in $PATH
  5430. do
  5431. IFS=$as_save_IFS
  5432. test -z "$as_dir" && as_dir=.
  5433. for ac_prog in sed gsed; do
  5434. for ac_exec_ext in '' $ac_executable_extensions; do
  5435. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5436. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  5437. # Check for GNU ac_path_SED and select it if it is found.
  5438. # Check for GNU $ac_path_SED
  5439. case `"$ac_path_SED" --version 2>&1` in
  5440. *GNU*)
  5441. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5442. *)
  5443. ac_count=0
  5444. $as_echo_n 0123456789 >"conftest.in"
  5445. while :
  5446. do
  5447. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5448. mv "conftest.tmp" "conftest.in"
  5449. cp "conftest.in" "conftest.nl"
  5450. $as_echo '' >> "conftest.nl"
  5451. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5452. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5453. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5454. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5455. # Best one so far, save it but keep looking for a better one
  5456. ac_cv_path_SED="$ac_path_SED"
  5457. ac_path_SED_max=$ac_count
  5458. fi
  5459. # 10*(2^10) chars as input seems more than enough
  5460. test $ac_count -gt 10 && break
  5461. done
  5462. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5463. esac
  5464. $ac_path_SED_found && break 3
  5465. done
  5466. done
  5467. done
  5468. IFS=$as_save_IFS
  5469. if test -z "$ac_cv_path_SED"; then
  5470. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5471. fi
  5472. else
  5473. ac_cv_path_SED=$SED
  5474. fi
  5475. fi
  5476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5477. $as_echo "$ac_cv_path_SED" >&6; }
  5478. SED="$ac_cv_path_SED"
  5479. rm -f conftest.sed
  5480. test -z "$SED" && SED=sed
  5481. Xsed="$SED -e 1s/^X//"
  5482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5483. $as_echo_n "checking for fgrep... " >&6; }
  5484. if ${ac_cv_path_FGREP+:} false; then :
  5485. $as_echo_n "(cached) " >&6
  5486. else
  5487. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5488. then ac_cv_path_FGREP="$GREP -F"
  5489. else
  5490. if test -z "$FGREP"; then
  5491. ac_path_FGREP_found=false
  5492. # Loop through the user's path and test for each of PROGNAME-LIST
  5493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5494. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5495. do
  5496. IFS=$as_save_IFS
  5497. test -z "$as_dir" && as_dir=.
  5498. for ac_prog in fgrep; do
  5499. for ac_exec_ext in '' $ac_executable_extensions; do
  5500. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5501. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  5502. # Check for GNU ac_path_FGREP and select it if it is found.
  5503. # Check for GNU $ac_path_FGREP
  5504. case `"$ac_path_FGREP" --version 2>&1` in
  5505. *GNU*)
  5506. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5507. *)
  5508. ac_count=0
  5509. $as_echo_n 0123456789 >"conftest.in"
  5510. while :
  5511. do
  5512. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5513. mv "conftest.tmp" "conftest.in"
  5514. cp "conftest.in" "conftest.nl"
  5515. $as_echo 'FGREP' >> "conftest.nl"
  5516. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5517. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5518. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5519. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5520. # Best one so far, save it but keep looking for a better one
  5521. ac_cv_path_FGREP="$ac_path_FGREP"
  5522. ac_path_FGREP_max=$ac_count
  5523. fi
  5524. # 10*(2^10) chars as input seems more than enough
  5525. test $ac_count -gt 10 && break
  5526. done
  5527. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5528. esac
  5529. $ac_path_FGREP_found && break 3
  5530. done
  5531. done
  5532. done
  5533. IFS=$as_save_IFS
  5534. if test -z "$ac_cv_path_FGREP"; then
  5535. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5536. fi
  5537. else
  5538. ac_cv_path_FGREP=$FGREP
  5539. fi
  5540. fi
  5541. fi
  5542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5543. $as_echo "$ac_cv_path_FGREP" >&6; }
  5544. FGREP="$ac_cv_path_FGREP"
  5545. test -z "$GREP" && GREP=grep
  5546. @%:@ Check whether --with-gnu-ld was given.
  5547. if test "${with_gnu_ld+set}" = set; then :
  5548. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5549. else
  5550. with_gnu_ld=no
  5551. fi
  5552. ac_prog=ld
  5553. if test "$GCC" = yes; then
  5554. # Check if gcc -print-prog-name=ld gives a path.
  5555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5556. $as_echo_n "checking for ld used by $CC... " >&6; }
  5557. case $host in
  5558. *-*-mingw*)
  5559. # gcc leaves a trailing carriage return which upsets mingw
  5560. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5561. *)
  5562. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5563. esac
  5564. case $ac_prog in
  5565. # Accept absolute paths.
  5566. [\\/]* | ?:[\\/]*)
  5567. re_direlt='/[^/][^/]*/\.\./'
  5568. # Canonicalize the pathname of ld
  5569. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5570. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5571. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5572. done
  5573. test -z "$LD" && LD="$ac_prog"
  5574. ;;
  5575. "")
  5576. # If it fails, then pretend we aren't using GCC.
  5577. ac_prog=ld
  5578. ;;
  5579. *)
  5580. # If it is relative, then search for the first ld in PATH.
  5581. with_gnu_ld=unknown
  5582. ;;
  5583. esac
  5584. elif test "$with_gnu_ld" = yes; then
  5585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5586. $as_echo_n "checking for GNU ld... " >&6; }
  5587. else
  5588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5589. $as_echo_n "checking for non-GNU ld... " >&6; }
  5590. fi
  5591. if ${lt_cv_path_LD+:} false; then :
  5592. $as_echo_n "(cached) " >&6
  5593. else
  5594. if test -z "$LD"; then
  5595. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5596. for ac_dir in $PATH; do
  5597. IFS="$lt_save_ifs"
  5598. test -z "$ac_dir" && ac_dir=.
  5599. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5600. lt_cv_path_LD="$ac_dir/$ac_prog"
  5601. # Check to see if the program is GNU ld. I'd rather use --version,
  5602. # but apparently some variants of GNU ld only accept -v.
  5603. # Break only if it was the GNU/non-GNU ld that we prefer.
  5604. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5605. *GNU* | *'with BFD'*)
  5606. test "$with_gnu_ld" != no && break
  5607. ;;
  5608. *)
  5609. test "$with_gnu_ld" != yes && break
  5610. ;;
  5611. esac
  5612. fi
  5613. done
  5614. IFS="$lt_save_ifs"
  5615. else
  5616. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5617. fi
  5618. fi
  5619. LD="$lt_cv_path_LD"
  5620. if test -n "$LD"; then
  5621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5622. $as_echo "$LD" >&6; }
  5623. else
  5624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5625. $as_echo "no" >&6; }
  5626. fi
  5627. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5629. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5630. if ${lt_cv_prog_gnu_ld+:} false; then :
  5631. $as_echo_n "(cached) " >&6
  5632. else
  5633. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5634. case `$LD -v 2>&1 </dev/null` in
  5635. *GNU* | *'with BFD'*)
  5636. lt_cv_prog_gnu_ld=yes
  5637. ;;
  5638. *)
  5639. lt_cv_prog_gnu_ld=no
  5640. ;;
  5641. esac
  5642. fi
  5643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5644. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5645. with_gnu_ld=$lt_cv_prog_gnu_ld
  5646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5647. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5648. if ${lt_cv_path_NM+:} false; then :
  5649. $as_echo_n "(cached) " >&6
  5650. else
  5651. if test -n "$NM"; then
  5652. # Let the user override the test.
  5653. lt_cv_path_NM="$NM"
  5654. else
  5655. lt_nm_to_check="${ac_tool_prefix}nm"
  5656. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5657. lt_nm_to_check="$lt_nm_to_check nm"
  5658. fi
  5659. for lt_tmp_nm in $lt_nm_to_check; do
  5660. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5661. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5662. IFS="$lt_save_ifs"
  5663. test -z "$ac_dir" && ac_dir=.
  5664. tmp_nm="$ac_dir/$lt_tmp_nm"
  5665. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5666. # Check to see if the nm accepts a BSD-compat flag.
  5667. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5668. # nm: unknown option "B" ignored
  5669. # Tru64's nm complains that /dev/null is an invalid object file
  5670. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5671. */dev/null* | *'Invalid file or object type'*)
  5672. lt_cv_path_NM="$tmp_nm -B"
  5673. break
  5674. ;;
  5675. *)
  5676. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5677. */dev/null*)
  5678. lt_cv_path_NM="$tmp_nm -p"
  5679. break
  5680. ;;
  5681. *)
  5682. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5683. continue # so that we can try to find one that supports BSD flags
  5684. ;;
  5685. esac
  5686. ;;
  5687. esac
  5688. fi
  5689. done
  5690. IFS="$lt_save_ifs"
  5691. done
  5692. : ${lt_cv_path_NM=no}
  5693. fi
  5694. fi
  5695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5696. $as_echo "$lt_cv_path_NM" >&6; }
  5697. if test "$lt_cv_path_NM" != "no"; then
  5698. NM="$lt_cv_path_NM"
  5699. else
  5700. # Didn't find any BSD compatible name lister, look for dumpbin.
  5701. if test -n "$DUMPBIN"; then :
  5702. # Let the user override the test.
  5703. else
  5704. if test -n "$ac_tool_prefix"; then
  5705. for ac_prog in dumpbin "link -dump"
  5706. do
  5707. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5708. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5710. $as_echo_n "checking for $ac_word... " >&6; }
  5711. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5712. $as_echo_n "(cached) " >&6
  5713. else
  5714. if test -n "$DUMPBIN"; then
  5715. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5716. else
  5717. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5718. for as_dir in $PATH
  5719. do
  5720. IFS=$as_save_IFS
  5721. test -z "$as_dir" && as_dir=.
  5722. for ac_exec_ext in '' $ac_executable_extensions; do
  5723. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5724. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5725. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5726. break 2
  5727. fi
  5728. done
  5729. done
  5730. IFS=$as_save_IFS
  5731. fi
  5732. fi
  5733. DUMPBIN=$ac_cv_prog_DUMPBIN
  5734. if test -n "$DUMPBIN"; then
  5735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5736. $as_echo "$DUMPBIN" >&6; }
  5737. else
  5738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5739. $as_echo "no" >&6; }
  5740. fi
  5741. test -n "$DUMPBIN" && break
  5742. done
  5743. fi
  5744. if test -z "$DUMPBIN"; then
  5745. ac_ct_DUMPBIN=$DUMPBIN
  5746. for ac_prog in dumpbin "link -dump"
  5747. do
  5748. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5749. set dummy $ac_prog; ac_word=$2
  5750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5751. $as_echo_n "checking for $ac_word... " >&6; }
  5752. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5753. $as_echo_n "(cached) " >&6
  5754. else
  5755. if test -n "$ac_ct_DUMPBIN"; then
  5756. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5757. else
  5758. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5759. for as_dir in $PATH
  5760. do
  5761. IFS=$as_save_IFS
  5762. test -z "$as_dir" && as_dir=.
  5763. for ac_exec_ext in '' $ac_executable_extensions; do
  5764. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5765. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5766. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5767. break 2
  5768. fi
  5769. done
  5770. done
  5771. IFS=$as_save_IFS
  5772. fi
  5773. fi
  5774. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5775. if test -n "$ac_ct_DUMPBIN"; then
  5776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5777. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5778. else
  5779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5780. $as_echo "no" >&6; }
  5781. fi
  5782. test -n "$ac_ct_DUMPBIN" && break
  5783. done
  5784. if test "x$ac_ct_DUMPBIN" = x; then
  5785. DUMPBIN=":"
  5786. else
  5787. case $cross_compiling:$ac_tool_warned in
  5788. yes:)
  5789. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5790. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5791. ac_tool_warned=yes ;;
  5792. esac
  5793. DUMPBIN=$ac_ct_DUMPBIN
  5794. fi
  5795. fi
  5796. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5797. *COFF*)
  5798. DUMPBIN="$DUMPBIN -symbols"
  5799. ;;
  5800. *)
  5801. DUMPBIN=:
  5802. ;;
  5803. esac
  5804. fi
  5805. if test "$DUMPBIN" != ":"; then
  5806. NM="$DUMPBIN"
  5807. fi
  5808. fi
  5809. test -z "$NM" && NM=nm
  5810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5811. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5812. if ${lt_cv_nm_interface+:} false; then :
  5813. $as_echo_n "(cached) " >&6
  5814. else
  5815. lt_cv_nm_interface="BSD nm"
  5816. echo "int some_variable = 0;" > conftest.$ac_ext
  5817. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5818. (eval "$ac_compile" 2>conftest.err)
  5819. cat conftest.err >&5
  5820. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5821. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5822. cat conftest.err >&5
  5823. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5824. cat conftest.out >&5
  5825. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5826. lt_cv_nm_interface="MS dumpbin"
  5827. fi
  5828. rm -f conftest*
  5829. fi
  5830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5831. $as_echo "$lt_cv_nm_interface" >&6; }
  5832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5833. $as_echo_n "checking whether ln -s works... " >&6; }
  5834. LN_S=$as_ln_s
  5835. if test "$LN_S" = "ln -s"; then
  5836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5837. $as_echo "yes" >&6; }
  5838. else
  5839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5840. $as_echo "no, using $LN_S" >&6; }
  5841. fi
  5842. # find the maximum length of command line arguments
  5843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5844. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5845. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5846. $as_echo_n "(cached) " >&6
  5847. else
  5848. i=0
  5849. teststring="ABCD"
  5850. case $build_os in
  5851. msdosdjgpp*)
  5852. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5853. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5854. # during glob expansion). Even if it were fixed, the result of this
  5855. # check would be larger than it should be.
  5856. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5857. ;;
  5858. gnu*)
  5859. # Under GNU Hurd, this test is not required because there is
  5860. # no limit to the length of command line arguments.
  5861. # Libtool will interpret -1 as no limit whatsoever
  5862. lt_cv_sys_max_cmd_len=-1;
  5863. ;;
  5864. cygwin* | mingw* | cegcc*)
  5865. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5866. # about 5 minutes as the teststring grows exponentially.
  5867. # Worse, since 9x/ME are not pre-emptively multitasking,
  5868. # you end up with a "frozen" computer, even though with patience
  5869. # the test eventually succeeds (with a max line length of 256k).
  5870. # Instead, let's just punt: use the minimum linelength reported by
  5871. # all of the supported platforms: 8192 (on NT/2K/XP).
  5872. lt_cv_sys_max_cmd_len=8192;
  5873. ;;
  5874. mint*)
  5875. # On MiNT this can take a long time and run out of memory.
  5876. lt_cv_sys_max_cmd_len=8192;
  5877. ;;
  5878. amigaos*)
  5879. # On AmigaOS with pdksh, this test takes hours, literally.
  5880. # So we just punt and use a minimum line length of 8192.
  5881. lt_cv_sys_max_cmd_len=8192;
  5882. ;;
  5883. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5884. # This has been around since 386BSD, at least. Likely further.
  5885. if test -x /sbin/sysctl; then
  5886. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5887. elif test -x /usr/sbin/sysctl; then
  5888. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5889. else
  5890. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5891. fi
  5892. # And add a safety zone
  5893. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5894. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5895. ;;
  5896. interix*)
  5897. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5898. lt_cv_sys_max_cmd_len=196608
  5899. ;;
  5900. osf*)
  5901. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5902. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5903. # nice to cause kernel panics so lets avoid the loop below.
  5904. # First set a reasonable default.
  5905. lt_cv_sys_max_cmd_len=16384
  5906. #
  5907. if test -x /sbin/sysconfig; then
  5908. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5909. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5910. esac
  5911. fi
  5912. ;;
  5913. sco3.2v5*)
  5914. lt_cv_sys_max_cmd_len=102400
  5915. ;;
  5916. sysv5* | sco5v6* | sysv4.2uw2*)
  5917. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5918. if test -n "$kargmax"; then
  5919. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5920. else
  5921. lt_cv_sys_max_cmd_len=32768
  5922. fi
  5923. ;;
  5924. *)
  5925. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5926. if test -n "$lt_cv_sys_max_cmd_len"; then
  5927. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5928. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5929. else
  5930. # Make teststring a little bigger before we do anything with it.
  5931. # a 1K string should be a reasonable start.
  5932. for i in 1 2 3 4 5 6 7 8 ; do
  5933. teststring=$teststring$teststring
  5934. done
  5935. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5936. # If test is not a shell built-in, we'll probably end up computing a
  5937. # maximum length that is only half of the actual maximum length, but
  5938. # we can't tell.
  5939. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5940. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5941. test $i != 17 # 1/2 MB should be enough
  5942. do
  5943. i=`expr $i + 1`
  5944. teststring=$teststring$teststring
  5945. done
  5946. # Only check the string length outside the loop.
  5947. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5948. teststring=
  5949. # Add a significant safety factor because C++ compilers can tack on
  5950. # massive amounts of additional arguments before passing them to the
  5951. # linker. It appears as though 1/2 is a usable value.
  5952. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5953. fi
  5954. ;;
  5955. esac
  5956. fi
  5957. if test -n $lt_cv_sys_max_cmd_len ; then
  5958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5959. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5960. else
  5961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5962. $as_echo "none" >&6; }
  5963. fi
  5964. max_cmd_len=$lt_cv_sys_max_cmd_len
  5965. : ${CP="cp -f"}
  5966. : ${MV="mv -f"}
  5967. : ${RM="rm -f"}
  5968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5969. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5970. # Try some XSI features
  5971. xsi_shell=no
  5972. ( _lt_dummy="a/b/c"
  5973. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5974. = c,a/b,b/c, \
  5975. && eval 'test $(( 1 + 1 )) -eq 2 \
  5976. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5977. && xsi_shell=yes
  5978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5979. $as_echo "$xsi_shell" >&6; }
  5980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5981. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5982. lt_shell_append=no
  5983. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5984. >/dev/null 2>&1 \
  5985. && lt_shell_append=yes
  5986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5987. $as_echo "$lt_shell_append" >&6; }
  5988. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5989. lt_unset=unset
  5990. else
  5991. lt_unset=false
  5992. fi
  5993. # test EBCDIC or ASCII
  5994. case `echo X|tr X '\101'` in
  5995. A) # ASCII based system
  5996. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5997. lt_SP2NL='tr \040 \012'
  5998. lt_NL2SP='tr \015\012 \040\040'
  5999. ;;
  6000. *) # EBCDIC based system
  6001. lt_SP2NL='tr \100 \n'
  6002. lt_NL2SP='tr \r\n \100\100'
  6003. ;;
  6004. esac
  6005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  6006. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  6007. if ${lt_cv_to_host_file_cmd+:} false; then :
  6008. $as_echo_n "(cached) " >&6
  6009. else
  6010. case $host in
  6011. *-*-mingw* )
  6012. case $build in
  6013. *-*-mingw* ) # actually msys
  6014. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  6015. ;;
  6016. *-*-cygwin* )
  6017. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  6018. ;;
  6019. * ) # otherwise, assume *nix
  6020. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  6021. ;;
  6022. esac
  6023. ;;
  6024. *-*-cygwin* )
  6025. case $build in
  6026. *-*-mingw* ) # actually msys
  6027. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  6028. ;;
  6029. *-*-cygwin* )
  6030. lt_cv_to_host_file_cmd=func_convert_file_noop
  6031. ;;
  6032. * ) # otherwise, assume *nix
  6033. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  6034. ;;
  6035. esac
  6036. ;;
  6037. * ) # unhandled hosts (and "normal" native builds)
  6038. lt_cv_to_host_file_cmd=func_convert_file_noop
  6039. ;;
  6040. esac
  6041. fi
  6042. to_host_file_cmd=$lt_cv_to_host_file_cmd
  6043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  6044. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  6045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  6046. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  6047. if ${lt_cv_to_tool_file_cmd+:} false; then :
  6048. $as_echo_n "(cached) " >&6
  6049. else
  6050. #assume ordinary cross tools, or native build.
  6051. lt_cv_to_tool_file_cmd=func_convert_file_noop
  6052. case $host in
  6053. *-*-mingw* )
  6054. case $build in
  6055. *-*-mingw* ) # actually msys
  6056. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  6057. ;;
  6058. esac
  6059. ;;
  6060. esac
  6061. fi
  6062. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  6063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  6064. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  6065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  6066. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  6067. if ${lt_cv_ld_reload_flag+:} false; then :
  6068. $as_echo_n "(cached) " >&6
  6069. else
  6070. lt_cv_ld_reload_flag='-r'
  6071. fi
  6072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  6073. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  6074. reload_flag=$lt_cv_ld_reload_flag
  6075. case $reload_flag in
  6076. "" | " "*) ;;
  6077. *) reload_flag=" $reload_flag" ;;
  6078. esac
  6079. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6080. case $host_os in
  6081. cygwin* | mingw* | pw32* | cegcc*)
  6082. if test "$GCC" != yes; then
  6083. reload_cmds=false
  6084. fi
  6085. ;;
  6086. darwin*)
  6087. if test "$GCC" = yes; then
  6088. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  6089. else
  6090. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6091. fi
  6092. ;;
  6093. esac
  6094. if test -n "$ac_tool_prefix"; then
  6095. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6096. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6098. $as_echo_n "checking for $ac_word... " >&6; }
  6099. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6100. $as_echo_n "(cached) " >&6
  6101. else
  6102. if test -n "$OBJDUMP"; then
  6103. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6104. else
  6105. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6106. for as_dir in $PATH
  6107. do
  6108. IFS=$as_save_IFS
  6109. test -z "$as_dir" && as_dir=.
  6110. for ac_exec_ext in '' $ac_executable_extensions; do
  6111. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6112. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6113. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6114. break 2
  6115. fi
  6116. done
  6117. done
  6118. IFS=$as_save_IFS
  6119. fi
  6120. fi
  6121. OBJDUMP=$ac_cv_prog_OBJDUMP
  6122. if test -n "$OBJDUMP"; then
  6123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6124. $as_echo "$OBJDUMP" >&6; }
  6125. else
  6126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6127. $as_echo "no" >&6; }
  6128. fi
  6129. fi
  6130. if test -z "$ac_cv_prog_OBJDUMP"; then
  6131. ac_ct_OBJDUMP=$OBJDUMP
  6132. # Extract the first word of "objdump", so it can be a program name with args.
  6133. set dummy objdump; ac_word=$2
  6134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6135. $as_echo_n "checking for $ac_word... " >&6; }
  6136. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6137. $as_echo_n "(cached) " >&6
  6138. else
  6139. if test -n "$ac_ct_OBJDUMP"; then
  6140. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6141. else
  6142. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6143. for as_dir in $PATH
  6144. do
  6145. IFS=$as_save_IFS
  6146. test -z "$as_dir" && as_dir=.
  6147. for ac_exec_ext in '' $ac_executable_extensions; do
  6148. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6149. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6150. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6151. break 2
  6152. fi
  6153. done
  6154. done
  6155. IFS=$as_save_IFS
  6156. fi
  6157. fi
  6158. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6159. if test -n "$ac_ct_OBJDUMP"; then
  6160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6161. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6162. else
  6163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6164. $as_echo "no" >&6; }
  6165. fi
  6166. if test "x$ac_ct_OBJDUMP" = x; then
  6167. OBJDUMP="false"
  6168. else
  6169. case $cross_compiling:$ac_tool_warned in
  6170. yes:)
  6171. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6172. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6173. ac_tool_warned=yes ;;
  6174. esac
  6175. OBJDUMP=$ac_ct_OBJDUMP
  6176. fi
  6177. else
  6178. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6179. fi
  6180. test -z "$OBJDUMP" && OBJDUMP=objdump
  6181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  6182. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  6183. if ${lt_cv_deplibs_check_method+:} false; then :
  6184. $as_echo_n "(cached) " >&6
  6185. else
  6186. lt_cv_file_magic_cmd='$MAGIC_CMD'
  6187. lt_cv_file_magic_test_file=
  6188. lt_cv_deplibs_check_method='unknown'
  6189. # Need to set the preceding variable on all platforms that support
  6190. # interlibrary dependencies.
  6191. # 'none' -- dependencies not supported.
  6192. # `unknown' -- same as none, but documents that we really don't know.
  6193. # 'pass_all' -- all dependencies passed with no checks.
  6194. # 'test_compile' -- check by making test program.
  6195. # 'file_magic [[regex]]' -- check by looking for files in library path
  6196. # which responds to the $file_magic_cmd with a given extended regex.
  6197. # If you have `file' or equivalent on your system and you're not sure
  6198. # whether `pass_all' will *always* work, you probably want this one.
  6199. case $host_os in
  6200. aix[4-9]*)
  6201. lt_cv_deplibs_check_method=pass_all
  6202. ;;
  6203. beos*)
  6204. lt_cv_deplibs_check_method=pass_all
  6205. ;;
  6206. bsdi[45]*)
  6207. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  6208. lt_cv_file_magic_cmd='/usr/bin/file -L'
  6209. lt_cv_file_magic_test_file=/shlib/libc.so
  6210. ;;
  6211. cygwin*)
  6212. # func_win32_libid is a shell function defined in ltmain.sh
  6213. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6214. lt_cv_file_magic_cmd='func_win32_libid'
  6215. ;;
  6216. mingw* | pw32*)
  6217. # Base MSYS/MinGW do not provide the 'file' command needed by
  6218. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  6219. # unless we find 'file', for example because we are cross-compiling.
  6220. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  6221. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  6222. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6223. lt_cv_file_magic_cmd='func_win32_libid'
  6224. else
  6225. # Keep this pattern in sync with the one in func_win32_libid.
  6226. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  6227. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6228. fi
  6229. ;;
  6230. cegcc*)
  6231. # use the weaker test based on 'objdump'. See mingw*.
  6232. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  6233. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6234. ;;
  6235. darwin* | rhapsody*)
  6236. lt_cv_deplibs_check_method=pass_all
  6237. ;;
  6238. freebsd* | dragonfly*)
  6239. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6240. case $host_cpu in
  6241. i*86 )
  6242. # Not sure whether the presence of OpenBSD here was a mistake.
  6243. # Let's accept both of them until this is cleared up.
  6244. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  6245. lt_cv_file_magic_cmd=/usr/bin/file
  6246. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  6247. ;;
  6248. esac
  6249. else
  6250. lt_cv_deplibs_check_method=pass_all
  6251. fi
  6252. ;;
  6253. gnu*)
  6254. lt_cv_deplibs_check_method=pass_all
  6255. ;;
  6256. haiku*)
  6257. lt_cv_deplibs_check_method=pass_all
  6258. ;;
  6259. hpux10.20* | hpux11*)
  6260. lt_cv_file_magic_cmd=/usr/bin/file
  6261. case $host_cpu in
  6262. ia64*)
  6263. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  6264. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6265. ;;
  6266. hppa*64*)
  6267. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  6268. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6269. ;;
  6270. *)
  6271. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  6272. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6273. ;;
  6274. esac
  6275. ;;
  6276. interix[3-9]*)
  6277. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6278. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  6279. ;;
  6280. irix5* | irix6* | nonstopux*)
  6281. case $LD in
  6282. *-32|*"-32 ") libmagic=32-bit;;
  6283. *-n32|*"-n32 ") libmagic=N32;;
  6284. *-64|*"-64 ") libmagic=64-bit;;
  6285. *) libmagic=never-match;;
  6286. esac
  6287. lt_cv_deplibs_check_method=pass_all
  6288. ;;
  6289. # This must be Linux ELF.
  6290. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6291. lt_cv_deplibs_check_method=pass_all
  6292. ;;
  6293. netbsd*)
  6294. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6295. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6296. else
  6297. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6298. fi
  6299. ;;
  6300. newos6*)
  6301. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6302. lt_cv_file_magic_cmd=/usr/bin/file
  6303. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6304. ;;
  6305. *nto* | *qnx*)
  6306. lt_cv_deplibs_check_method=pass_all
  6307. ;;
  6308. openbsd*)
  6309. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6310. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6311. else
  6312. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6313. fi
  6314. ;;
  6315. osf3* | osf4* | osf5*)
  6316. lt_cv_deplibs_check_method=pass_all
  6317. ;;
  6318. rdos*)
  6319. lt_cv_deplibs_check_method=pass_all
  6320. ;;
  6321. solaris*)
  6322. lt_cv_deplibs_check_method=pass_all
  6323. ;;
  6324. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6325. lt_cv_deplibs_check_method=pass_all
  6326. ;;
  6327. sysv4 | sysv4.3*)
  6328. case $host_vendor in
  6329. motorola)
  6330. 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]'
  6331. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6332. ;;
  6333. ncr)
  6334. lt_cv_deplibs_check_method=pass_all
  6335. ;;
  6336. sequent)
  6337. lt_cv_file_magic_cmd='/bin/file'
  6338. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6339. ;;
  6340. sni)
  6341. lt_cv_file_magic_cmd='/bin/file'
  6342. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6343. lt_cv_file_magic_test_file=/lib/libc.so
  6344. ;;
  6345. siemens)
  6346. lt_cv_deplibs_check_method=pass_all
  6347. ;;
  6348. pc)
  6349. lt_cv_deplibs_check_method=pass_all
  6350. ;;
  6351. esac
  6352. ;;
  6353. tpf*)
  6354. lt_cv_deplibs_check_method=pass_all
  6355. ;;
  6356. esac
  6357. fi
  6358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6359. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  6360. file_magic_glob=
  6361. want_nocaseglob=no
  6362. if test "$build" = "$host"; then
  6363. case $host_os in
  6364. mingw* | pw32*)
  6365. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  6366. want_nocaseglob=yes
  6367. else
  6368. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  6369. fi
  6370. ;;
  6371. esac
  6372. fi
  6373. file_magic_cmd=$lt_cv_file_magic_cmd
  6374. deplibs_check_method=$lt_cv_deplibs_check_method
  6375. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6376. if test -n "$ac_tool_prefix"; then
  6377. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6378. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6380. $as_echo_n "checking for $ac_word... " >&6; }
  6381. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6382. $as_echo_n "(cached) " >&6
  6383. else
  6384. if test -n "$DLLTOOL"; then
  6385. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6386. else
  6387. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6388. for as_dir in $PATH
  6389. do
  6390. IFS=$as_save_IFS
  6391. test -z "$as_dir" && as_dir=.
  6392. for ac_exec_ext in '' $ac_executable_extensions; do
  6393. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6394. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6395. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6396. break 2
  6397. fi
  6398. done
  6399. done
  6400. IFS=$as_save_IFS
  6401. fi
  6402. fi
  6403. DLLTOOL=$ac_cv_prog_DLLTOOL
  6404. if test -n "$DLLTOOL"; then
  6405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6406. $as_echo "$DLLTOOL" >&6; }
  6407. else
  6408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6409. $as_echo "no" >&6; }
  6410. fi
  6411. fi
  6412. if test -z "$ac_cv_prog_DLLTOOL"; then
  6413. ac_ct_DLLTOOL=$DLLTOOL
  6414. # Extract the first word of "dlltool", so it can be a program name with args.
  6415. set dummy dlltool; ac_word=$2
  6416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6417. $as_echo_n "checking for $ac_word... " >&6; }
  6418. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6419. $as_echo_n "(cached) " >&6
  6420. else
  6421. if test -n "$ac_ct_DLLTOOL"; then
  6422. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6423. else
  6424. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6425. for as_dir in $PATH
  6426. do
  6427. IFS=$as_save_IFS
  6428. test -z "$as_dir" && as_dir=.
  6429. for ac_exec_ext in '' $ac_executable_extensions; do
  6430. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6431. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6432. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6433. break 2
  6434. fi
  6435. done
  6436. done
  6437. IFS=$as_save_IFS
  6438. fi
  6439. fi
  6440. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6441. if test -n "$ac_ct_DLLTOOL"; then
  6442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6443. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6444. else
  6445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6446. $as_echo "no" >&6; }
  6447. fi
  6448. if test "x$ac_ct_DLLTOOL" = x; then
  6449. DLLTOOL="false"
  6450. else
  6451. case $cross_compiling:$ac_tool_warned in
  6452. yes:)
  6453. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6454. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6455. ac_tool_warned=yes ;;
  6456. esac
  6457. DLLTOOL=$ac_ct_DLLTOOL
  6458. fi
  6459. else
  6460. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6461. fi
  6462. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  6464. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  6465. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  6466. $as_echo_n "(cached) " >&6
  6467. else
  6468. lt_cv_sharedlib_from_linklib_cmd='unknown'
  6469. case $host_os in
  6470. cygwin* | mingw* | pw32* | cegcc*)
  6471. # two different shell functions defined in ltmain.sh
  6472. # decide which to use based on capabilities of $DLLTOOL
  6473. case `$DLLTOOL --help 2>&1` in
  6474. *--identify-strict*)
  6475. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  6476. ;;
  6477. *)
  6478. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6479. ;;
  6480. esac
  6481. ;;
  6482. *)
  6483. # fallback: assume linklib IS sharedlib
  6484. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  6485. ;;
  6486. esac
  6487. fi
  6488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6489. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6490. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6491. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6492. if test -n "$ac_tool_prefix"; then
  6493. for ac_prog in ar
  6494. do
  6495. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6496. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6498. $as_echo_n "checking for $ac_word... " >&6; }
  6499. if ${ac_cv_prog_AR+:} false; then :
  6500. $as_echo_n "(cached) " >&6
  6501. else
  6502. if test -n "$AR"; then
  6503. ac_cv_prog_AR="$AR" # Let the user override the test.
  6504. else
  6505. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6506. for as_dir in $PATH
  6507. do
  6508. IFS=$as_save_IFS
  6509. test -z "$as_dir" && as_dir=.
  6510. for ac_exec_ext in '' $ac_executable_extensions; do
  6511. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6512. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6513. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6514. break 2
  6515. fi
  6516. done
  6517. done
  6518. IFS=$as_save_IFS
  6519. fi
  6520. fi
  6521. AR=$ac_cv_prog_AR
  6522. if test -n "$AR"; then
  6523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6524. $as_echo "$AR" >&6; }
  6525. else
  6526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6527. $as_echo "no" >&6; }
  6528. fi
  6529. test -n "$AR" && break
  6530. done
  6531. fi
  6532. if test -z "$AR"; then
  6533. ac_ct_AR=$AR
  6534. for ac_prog in ar
  6535. do
  6536. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6537. set dummy $ac_prog; ac_word=$2
  6538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6539. $as_echo_n "checking for $ac_word... " >&6; }
  6540. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6541. $as_echo_n "(cached) " >&6
  6542. else
  6543. if test -n "$ac_ct_AR"; then
  6544. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6545. else
  6546. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6547. for as_dir in $PATH
  6548. do
  6549. IFS=$as_save_IFS
  6550. test -z "$as_dir" && as_dir=.
  6551. for ac_exec_ext in '' $ac_executable_extensions; do
  6552. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6553. ac_cv_prog_ac_ct_AR="$ac_prog"
  6554. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6555. break 2
  6556. fi
  6557. done
  6558. done
  6559. IFS=$as_save_IFS
  6560. fi
  6561. fi
  6562. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6563. if test -n "$ac_ct_AR"; then
  6564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6565. $as_echo "$ac_ct_AR" >&6; }
  6566. else
  6567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6568. $as_echo "no" >&6; }
  6569. fi
  6570. test -n "$ac_ct_AR" && break
  6571. done
  6572. if test "x$ac_ct_AR" = x; then
  6573. AR="false"
  6574. else
  6575. case $cross_compiling:$ac_tool_warned in
  6576. yes:)
  6577. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6578. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6579. ac_tool_warned=yes ;;
  6580. esac
  6581. AR=$ac_ct_AR
  6582. fi
  6583. fi
  6584. : ${AR=ar}
  6585. : ${AR_FLAGS=cru}
  6586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6587. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6588. if ${lt_cv_ar_at_file+:} false; then :
  6589. $as_echo_n "(cached) " >&6
  6590. else
  6591. lt_cv_ar_at_file=no
  6592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6593. /* end confdefs.h. */
  6594. int
  6595. main ()
  6596. {
  6597. ;
  6598. return 0;
  6599. }
  6600. _ACEOF
  6601. if ac_fn_c_try_compile "$LINENO"; then :
  6602. echo conftest.$ac_objext > conftest.lst
  6603. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6604. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6605. (eval $lt_ar_try) 2>&5
  6606. ac_status=$?
  6607. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6608. test $ac_status = 0; }
  6609. if test "$ac_status" -eq 0; then
  6610. # Ensure the archiver fails upon bogus file names.
  6611. rm -f conftest.$ac_objext libconftest.a
  6612. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6613. (eval $lt_ar_try) 2>&5
  6614. ac_status=$?
  6615. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6616. test $ac_status = 0; }
  6617. if test "$ac_status" -ne 0; then
  6618. lt_cv_ar_at_file=@
  6619. fi
  6620. fi
  6621. rm -f conftest.* libconftest.a
  6622. fi
  6623. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6624. fi
  6625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6626. $as_echo "$lt_cv_ar_at_file" >&6; }
  6627. if test "x$lt_cv_ar_at_file" = xno; then
  6628. archiver_list_spec=
  6629. else
  6630. archiver_list_spec=$lt_cv_ar_at_file
  6631. fi
  6632. if test -n "$ac_tool_prefix"; then
  6633. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6634. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6636. $as_echo_n "checking for $ac_word... " >&6; }
  6637. if ${ac_cv_prog_STRIP+:} false; then :
  6638. $as_echo_n "(cached) " >&6
  6639. else
  6640. if test -n "$STRIP"; then
  6641. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6642. else
  6643. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6644. for as_dir in $PATH
  6645. do
  6646. IFS=$as_save_IFS
  6647. test -z "$as_dir" && as_dir=.
  6648. for ac_exec_ext in '' $ac_executable_extensions; do
  6649. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6650. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6651. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6652. break 2
  6653. fi
  6654. done
  6655. done
  6656. IFS=$as_save_IFS
  6657. fi
  6658. fi
  6659. STRIP=$ac_cv_prog_STRIP
  6660. if test -n "$STRIP"; then
  6661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6662. $as_echo "$STRIP" >&6; }
  6663. else
  6664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6665. $as_echo "no" >&6; }
  6666. fi
  6667. fi
  6668. if test -z "$ac_cv_prog_STRIP"; then
  6669. ac_ct_STRIP=$STRIP
  6670. # Extract the first word of "strip", so it can be a program name with args.
  6671. set dummy strip; ac_word=$2
  6672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6673. $as_echo_n "checking for $ac_word... " >&6; }
  6674. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6675. $as_echo_n "(cached) " >&6
  6676. else
  6677. if test -n "$ac_ct_STRIP"; then
  6678. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6679. else
  6680. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6681. for as_dir in $PATH
  6682. do
  6683. IFS=$as_save_IFS
  6684. test -z "$as_dir" && as_dir=.
  6685. for ac_exec_ext in '' $ac_executable_extensions; do
  6686. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6687. ac_cv_prog_ac_ct_STRIP="strip"
  6688. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6689. break 2
  6690. fi
  6691. done
  6692. done
  6693. IFS=$as_save_IFS
  6694. fi
  6695. fi
  6696. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6697. if test -n "$ac_ct_STRIP"; then
  6698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6699. $as_echo "$ac_ct_STRIP" >&6; }
  6700. else
  6701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6702. $as_echo "no" >&6; }
  6703. fi
  6704. if test "x$ac_ct_STRIP" = x; then
  6705. STRIP=":"
  6706. else
  6707. case $cross_compiling:$ac_tool_warned in
  6708. yes:)
  6709. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6710. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6711. ac_tool_warned=yes ;;
  6712. esac
  6713. STRIP=$ac_ct_STRIP
  6714. fi
  6715. else
  6716. STRIP="$ac_cv_prog_STRIP"
  6717. fi
  6718. test -z "$STRIP" && STRIP=:
  6719. if test -n "$ac_tool_prefix"; then
  6720. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6721. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6723. $as_echo_n "checking for $ac_word... " >&6; }
  6724. if ${ac_cv_prog_RANLIB+:} false; then :
  6725. $as_echo_n "(cached) " >&6
  6726. else
  6727. if test -n "$RANLIB"; then
  6728. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6729. else
  6730. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6731. for as_dir in $PATH
  6732. do
  6733. IFS=$as_save_IFS
  6734. test -z "$as_dir" && as_dir=.
  6735. for ac_exec_ext in '' $ac_executable_extensions; do
  6736. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6737. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6738. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6739. break 2
  6740. fi
  6741. done
  6742. done
  6743. IFS=$as_save_IFS
  6744. fi
  6745. fi
  6746. RANLIB=$ac_cv_prog_RANLIB
  6747. if test -n "$RANLIB"; then
  6748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6749. $as_echo "$RANLIB" >&6; }
  6750. else
  6751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6752. $as_echo "no" >&6; }
  6753. fi
  6754. fi
  6755. if test -z "$ac_cv_prog_RANLIB"; then
  6756. ac_ct_RANLIB=$RANLIB
  6757. # Extract the first word of "ranlib", so it can be a program name with args.
  6758. set dummy ranlib; ac_word=$2
  6759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6760. $as_echo_n "checking for $ac_word... " >&6; }
  6761. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6762. $as_echo_n "(cached) " >&6
  6763. else
  6764. if test -n "$ac_ct_RANLIB"; then
  6765. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6766. else
  6767. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6768. for as_dir in $PATH
  6769. do
  6770. IFS=$as_save_IFS
  6771. test -z "$as_dir" && as_dir=.
  6772. for ac_exec_ext in '' $ac_executable_extensions; do
  6773. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6774. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6775. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6776. break 2
  6777. fi
  6778. done
  6779. done
  6780. IFS=$as_save_IFS
  6781. fi
  6782. fi
  6783. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6784. if test -n "$ac_ct_RANLIB"; then
  6785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6786. $as_echo "$ac_ct_RANLIB" >&6; }
  6787. else
  6788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6789. $as_echo "no" >&6; }
  6790. fi
  6791. if test "x$ac_ct_RANLIB" = x; then
  6792. RANLIB=":"
  6793. else
  6794. case $cross_compiling:$ac_tool_warned in
  6795. yes:)
  6796. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6797. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6798. ac_tool_warned=yes ;;
  6799. esac
  6800. RANLIB=$ac_ct_RANLIB
  6801. fi
  6802. else
  6803. RANLIB="$ac_cv_prog_RANLIB"
  6804. fi
  6805. test -z "$RANLIB" && RANLIB=:
  6806. # Determine commands to create old-style static archives.
  6807. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6808. old_postinstall_cmds='chmod 644 $oldlib'
  6809. old_postuninstall_cmds=
  6810. if test -n "$RANLIB"; then
  6811. case $host_os in
  6812. openbsd*)
  6813. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6814. ;;
  6815. *)
  6816. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6817. ;;
  6818. esac
  6819. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6820. fi
  6821. case $host_os in
  6822. darwin*)
  6823. lock_old_archive_extraction=yes ;;
  6824. *)
  6825. lock_old_archive_extraction=no ;;
  6826. esac
  6827. # If no C compiler was specified, use CC.
  6828. LTCC=${LTCC-"$CC"}
  6829. # If no C compiler flags were specified, use CFLAGS.
  6830. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6831. # Allow CC to be a program name with arguments.
  6832. compiler=$CC
  6833. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6835. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6836. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6837. $as_echo_n "(cached) " >&6
  6838. else
  6839. # These are sane defaults that work on at least a few old systems.
  6840. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6841. # Character class describing NM global symbol codes.
  6842. symcode='[BCDEGRST]'
  6843. # Regexp to match symbols that can be accessed directly from C.
  6844. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6845. # Define system-specific variables.
  6846. case $host_os in
  6847. aix*)
  6848. symcode='[BCDT]'
  6849. ;;
  6850. cygwin* | mingw* | pw32* | cegcc*)
  6851. symcode='[ABCDGISTW]'
  6852. ;;
  6853. hpux*)
  6854. if test "$host_cpu" = ia64; then
  6855. symcode='[ABCDEGRST]'
  6856. fi
  6857. ;;
  6858. irix* | nonstopux*)
  6859. symcode='[BCDEGRST]'
  6860. ;;
  6861. osf*)
  6862. symcode='[BCDEGQRST]'
  6863. ;;
  6864. solaris*)
  6865. symcode='[BDRT]'
  6866. ;;
  6867. sco3.2v5*)
  6868. symcode='[DT]'
  6869. ;;
  6870. sysv4.2uw2*)
  6871. symcode='[DT]'
  6872. ;;
  6873. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6874. symcode='[ABDT]'
  6875. ;;
  6876. sysv4)
  6877. symcode='[DFNSTU]'
  6878. ;;
  6879. esac
  6880. # If we're using GNU nm, then use its standard symbol codes.
  6881. case `$NM -V 2>&1` in
  6882. *GNU* | *'with BFD'*)
  6883. symcode='[ABCDGIRSTW]' ;;
  6884. esac
  6885. # Transform an extracted symbol line into a proper C declaration.
  6886. # Some systems (esp. on ia64) link data and code symbols differently,
  6887. # so use this general approach.
  6888. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6889. # Transform an extracted symbol line into symbol name and symbol address
  6890. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6891. 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'"
  6892. # Handle CRLF in mingw tool chain
  6893. opt_cr=
  6894. case $build_os in
  6895. mingw*)
  6896. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6897. ;;
  6898. esac
  6899. # Try without a prefix underscore, then with it.
  6900. for ac_symprfx in "" "_"; do
  6901. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6902. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6903. # Write the raw and C identifiers.
  6904. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6905. # Fake it for dumpbin and say T for any non-static function
  6906. # and D for any global variable.
  6907. # Also find C++ and __fastcall symbols from MSVC++,
  6908. # which start with @ or ?.
  6909. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6910. " {last_section=section; section=\$ 3};"\
  6911. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6912. " \$ 0!~/External *\|/{next};"\
  6913. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6914. " {if(hide[section]) next};"\
  6915. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6916. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6917. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6918. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6919. " ' prfx=^$ac_symprfx"
  6920. else
  6921. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6922. fi
  6923. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6924. # Check to see that the pipe works correctly.
  6925. pipe_works=no
  6926. rm -f conftest*
  6927. cat > conftest.$ac_ext <<_LT_EOF
  6928. #ifdef __cplusplus
  6929. extern "C" {
  6930. #endif
  6931. char nm_test_var;
  6932. void nm_test_func(void);
  6933. void nm_test_func(void){}
  6934. #ifdef __cplusplus
  6935. }
  6936. #endif
  6937. int main(){nm_test_var='a';nm_test_func();return(0);}
  6938. _LT_EOF
  6939. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6940. (eval $ac_compile) 2>&5
  6941. ac_status=$?
  6942. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6943. test $ac_status = 0; }; then
  6944. # Now try to grab the symbols.
  6945. nlist=conftest.nm
  6946. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6947. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6948. ac_status=$?
  6949. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6950. test $ac_status = 0; } && test -s "$nlist"; then
  6951. # Try sorting and uniquifying the output.
  6952. if sort "$nlist" | uniq > "$nlist"T; then
  6953. mv -f "$nlist"T "$nlist"
  6954. else
  6955. rm -f "$nlist"T
  6956. fi
  6957. # Make sure that we snagged all the symbols we need.
  6958. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6959. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6960. cat <<_LT_EOF > conftest.$ac_ext
  6961. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6962. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6963. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6964. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6965. # define LT@&t@_DLSYM_CONST
  6966. #elif defined(__osf__)
  6967. /* This system does not cope well with relocations in const data. */
  6968. # define LT@&t@_DLSYM_CONST
  6969. #else
  6970. # define LT@&t@_DLSYM_CONST const
  6971. #endif
  6972. #ifdef __cplusplus
  6973. extern "C" {
  6974. #endif
  6975. _LT_EOF
  6976. # Now generate the symbol file.
  6977. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6978. cat <<_LT_EOF >> conftest.$ac_ext
  6979. /* The mapping between symbol names and symbols. */
  6980. LT@&t@_DLSYM_CONST struct {
  6981. const char *name;
  6982. void *address;
  6983. }
  6984. lt__PROGRAM__LTX_preloaded_symbols[] =
  6985. {
  6986. { "@PROGRAM@", (void *) 0 },
  6987. _LT_EOF
  6988. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6989. cat <<\_LT_EOF >> conftest.$ac_ext
  6990. {0, (void *) 0}
  6991. };
  6992. /* This works around a problem in FreeBSD linker */
  6993. #ifdef FREEBSD_WORKAROUND
  6994. static const void *lt_preloaded_setup() {
  6995. return lt__PROGRAM__LTX_preloaded_symbols;
  6996. }
  6997. #endif
  6998. #ifdef __cplusplus
  6999. }
  7000. #endif
  7001. _LT_EOF
  7002. # Now try linking the two files.
  7003. mv conftest.$ac_objext conftstm.$ac_objext
  7004. lt_globsym_save_LIBS=$LIBS
  7005. lt_globsym_save_CFLAGS=$CFLAGS
  7006. LIBS="conftstm.$ac_objext"
  7007. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  7008. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  7009. (eval $ac_link) 2>&5
  7010. ac_status=$?
  7011. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7012. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  7013. pipe_works=yes
  7014. fi
  7015. LIBS=$lt_globsym_save_LIBS
  7016. CFLAGS=$lt_globsym_save_CFLAGS
  7017. else
  7018. echo "cannot find nm_test_func in $nlist" >&5
  7019. fi
  7020. else
  7021. echo "cannot find nm_test_var in $nlist" >&5
  7022. fi
  7023. else
  7024. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  7025. fi
  7026. else
  7027. echo "$progname: failed program was:" >&5
  7028. cat conftest.$ac_ext >&5
  7029. fi
  7030. rm -rf conftest* conftst*
  7031. # Do not use the global_symbol_pipe unless it works.
  7032. if test "$pipe_works" = yes; then
  7033. break
  7034. else
  7035. lt_cv_sys_global_symbol_pipe=
  7036. fi
  7037. done
  7038. fi
  7039. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  7040. lt_cv_sys_global_symbol_to_cdecl=
  7041. fi
  7042. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  7043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  7044. $as_echo "failed" >&6; }
  7045. else
  7046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  7047. $as_echo "ok" >&6; }
  7048. fi
  7049. # Response file support.
  7050. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7051. nm_file_list_spec='@'
  7052. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  7053. nm_file_list_spec='@'
  7054. fi
  7055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  7056. $as_echo_n "checking for sysroot... " >&6; }
  7057. @%:@ Check whether --with-sysroot was given.
  7058. if test "${with_sysroot+set}" = set; then :
  7059. withval=$with_sysroot;
  7060. else
  7061. with_sysroot=no
  7062. fi
  7063. lt_sysroot=
  7064. case ${with_sysroot} in #(
  7065. yes)
  7066. if test "$GCC" = yes; then
  7067. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  7068. fi
  7069. ;; #(
  7070. /*)
  7071. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  7072. ;; #(
  7073. no|'')
  7074. ;; #(
  7075. *)
  7076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  7077. $as_echo "${with_sysroot}" >&6; }
  7078. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  7079. ;;
  7080. esac
  7081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  7082. $as_echo "${lt_sysroot:-no}" >&6; }
  7083. @%:@ Check whether --enable-libtool-lock was given.
  7084. if test "${enable_libtool_lock+set}" = set; then :
  7085. enableval=$enable_libtool_lock;
  7086. fi
  7087. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  7088. # Some flags need to be propagated to the compiler or linker for good
  7089. # libtool support.
  7090. case $host in
  7091. ia64-*-hpux*)
  7092. # Find out which ABI we are using.
  7093. echo 'int i;' > conftest.$ac_ext
  7094. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7095. (eval $ac_compile) 2>&5
  7096. ac_status=$?
  7097. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7098. test $ac_status = 0; }; then
  7099. case `/usr/bin/file conftest.$ac_objext` in
  7100. *ELF-32*)
  7101. HPUX_IA64_MODE="32"
  7102. ;;
  7103. *ELF-64*)
  7104. HPUX_IA64_MODE="64"
  7105. ;;
  7106. esac
  7107. fi
  7108. rm -rf conftest*
  7109. ;;
  7110. *-*-irix6*)
  7111. # Find out which ABI we are using.
  7112. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7113. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7114. (eval $ac_compile) 2>&5
  7115. ac_status=$?
  7116. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7117. test $ac_status = 0; }; then
  7118. if test "$lt_cv_prog_gnu_ld" = yes; then
  7119. case `/usr/bin/file conftest.$ac_objext` in
  7120. *32-bit*)
  7121. LD="${LD-ld} -melf32bsmip"
  7122. ;;
  7123. *N32*)
  7124. LD="${LD-ld} -melf32bmipn32"
  7125. ;;
  7126. *64-bit*)
  7127. LD="${LD-ld} -melf64bmip"
  7128. ;;
  7129. esac
  7130. else
  7131. case `/usr/bin/file conftest.$ac_objext` in
  7132. *32-bit*)
  7133. LD="${LD-ld} -32"
  7134. ;;
  7135. *N32*)
  7136. LD="${LD-ld} -n32"
  7137. ;;
  7138. *64-bit*)
  7139. LD="${LD-ld} -64"
  7140. ;;
  7141. esac
  7142. fi
  7143. fi
  7144. rm -rf conftest*
  7145. ;;
  7146. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  7147. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  7148. # Find out which ABI we are using.
  7149. echo 'int i;' > conftest.$ac_ext
  7150. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7151. (eval $ac_compile) 2>&5
  7152. ac_status=$?
  7153. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7154. test $ac_status = 0; }; then
  7155. case `/usr/bin/file conftest.o` in
  7156. *32-bit*)
  7157. case $host in
  7158. x86_64-*kfreebsd*-gnu)
  7159. LD="${LD-ld} -m elf_i386_fbsd"
  7160. ;;
  7161. x86_64-*linux*)
  7162. LD="${LD-ld} -m elf_i386"
  7163. ;;
  7164. ppc64-*linux*|powerpc64-*linux*)
  7165. LD="${LD-ld} -m elf32ppclinux"
  7166. ;;
  7167. s390x-*linux*)
  7168. LD="${LD-ld} -m elf_s390"
  7169. ;;
  7170. sparc64-*linux*)
  7171. LD="${LD-ld} -m elf32_sparc"
  7172. ;;
  7173. esac
  7174. ;;
  7175. *64-bit*)
  7176. case $host in
  7177. x86_64-*kfreebsd*-gnu)
  7178. LD="${LD-ld} -m elf_x86_64_fbsd"
  7179. ;;
  7180. x86_64-*linux*)
  7181. LD="${LD-ld} -m elf_x86_64"
  7182. ;;
  7183. ppc*-*linux*|powerpc*-*linux*)
  7184. LD="${LD-ld} -m elf64ppc"
  7185. ;;
  7186. s390*-*linux*|s390*-*tpf*)
  7187. LD="${LD-ld} -m elf64_s390"
  7188. ;;
  7189. sparc*-*linux*)
  7190. LD="${LD-ld} -m elf64_sparc"
  7191. ;;
  7192. esac
  7193. ;;
  7194. esac
  7195. fi
  7196. rm -rf conftest*
  7197. ;;
  7198. *-*-sco3.2v5*)
  7199. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7200. SAVE_CFLAGS="$CFLAGS"
  7201. CFLAGS="$CFLAGS -belf"
  7202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  7203. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  7204. if ${lt_cv_cc_needs_belf+:} false; then :
  7205. $as_echo_n "(cached) " >&6
  7206. else
  7207. ac_ext=c
  7208. ac_cpp='$CPP $CPPFLAGS'
  7209. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7210. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7211. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7213. /* end confdefs.h. */
  7214. int
  7215. main ()
  7216. {
  7217. ;
  7218. return 0;
  7219. }
  7220. _ACEOF
  7221. if ac_fn_c_try_link "$LINENO"; then :
  7222. lt_cv_cc_needs_belf=yes
  7223. else
  7224. lt_cv_cc_needs_belf=no
  7225. fi
  7226. rm -f core conftest.err conftest.$ac_objext \
  7227. conftest$ac_exeext conftest.$ac_ext
  7228. ac_ext=c
  7229. ac_cpp='$CPP $CPPFLAGS'
  7230. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7231. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7232. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7233. fi
  7234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7235. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  7236. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  7237. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7238. CFLAGS="$SAVE_CFLAGS"
  7239. fi
  7240. ;;
  7241. sparc*-*solaris*)
  7242. # Find out which ABI we are using.
  7243. echo 'int i;' > conftest.$ac_ext
  7244. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7245. (eval $ac_compile) 2>&5
  7246. ac_status=$?
  7247. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7248. test $ac_status = 0; }; then
  7249. case `/usr/bin/file conftest.o` in
  7250. *64-bit*)
  7251. case $lt_cv_prog_gnu_ld in
  7252. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  7253. *)
  7254. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7255. LD="${LD-ld} -64"
  7256. fi
  7257. ;;
  7258. esac
  7259. ;;
  7260. esac
  7261. fi
  7262. rm -rf conftest*
  7263. ;;
  7264. esac
  7265. need_locks="$enable_libtool_lock"
  7266. if test -n "$ac_tool_prefix"; then
  7267. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  7268. set dummy ${ac_tool_prefix}mt; ac_word=$2
  7269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7270. $as_echo_n "checking for $ac_word... " >&6; }
  7271. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  7272. $as_echo_n "(cached) " >&6
  7273. else
  7274. if test -n "$MANIFEST_TOOL"; then
  7275. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  7276. else
  7277. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7278. for as_dir in $PATH
  7279. do
  7280. IFS=$as_save_IFS
  7281. test -z "$as_dir" && as_dir=.
  7282. for ac_exec_ext in '' $ac_executable_extensions; do
  7283. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7284. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  7285. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7286. break 2
  7287. fi
  7288. done
  7289. done
  7290. IFS=$as_save_IFS
  7291. fi
  7292. fi
  7293. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  7294. if test -n "$MANIFEST_TOOL"; then
  7295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  7296. $as_echo "$MANIFEST_TOOL" >&6; }
  7297. else
  7298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7299. $as_echo "no" >&6; }
  7300. fi
  7301. fi
  7302. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  7303. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  7304. # Extract the first word of "mt", so it can be a program name with args.
  7305. set dummy mt; ac_word=$2
  7306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7307. $as_echo_n "checking for $ac_word... " >&6; }
  7308. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  7309. $as_echo_n "(cached) " >&6
  7310. else
  7311. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7312. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  7313. else
  7314. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7315. for as_dir in $PATH
  7316. do
  7317. IFS=$as_save_IFS
  7318. test -z "$as_dir" && as_dir=.
  7319. for ac_exec_ext in '' $ac_executable_extensions; do
  7320. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7321. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  7322. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7323. break 2
  7324. fi
  7325. done
  7326. done
  7327. IFS=$as_save_IFS
  7328. fi
  7329. fi
  7330. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  7331. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  7333. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  7334. else
  7335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7336. $as_echo "no" >&6; }
  7337. fi
  7338. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  7339. MANIFEST_TOOL=":"
  7340. else
  7341. case $cross_compiling:$ac_tool_warned in
  7342. yes:)
  7343. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7344. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7345. ac_tool_warned=yes ;;
  7346. esac
  7347. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  7348. fi
  7349. else
  7350. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  7351. fi
  7352. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  7353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  7354. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  7355. if ${lt_cv_path_mainfest_tool+:} false; then :
  7356. $as_echo_n "(cached) " >&6
  7357. else
  7358. lt_cv_path_mainfest_tool=no
  7359. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  7360. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  7361. cat conftest.err >&5
  7362. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  7363. lt_cv_path_mainfest_tool=yes
  7364. fi
  7365. rm -f conftest*
  7366. fi
  7367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  7368. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  7369. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  7370. MANIFEST_TOOL=:
  7371. fi
  7372. case $host_os in
  7373. rhapsody* | darwin*)
  7374. if test -n "$ac_tool_prefix"; then
  7375. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7376. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7378. $as_echo_n "checking for $ac_word... " >&6; }
  7379. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  7380. $as_echo_n "(cached) " >&6
  7381. else
  7382. if test -n "$DSYMUTIL"; then
  7383. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7384. else
  7385. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7386. for as_dir in $PATH
  7387. do
  7388. IFS=$as_save_IFS
  7389. test -z "$as_dir" && as_dir=.
  7390. for ac_exec_ext in '' $ac_executable_extensions; do
  7391. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7392. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7393. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7394. break 2
  7395. fi
  7396. done
  7397. done
  7398. IFS=$as_save_IFS
  7399. fi
  7400. fi
  7401. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7402. if test -n "$DSYMUTIL"; then
  7403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7404. $as_echo "$DSYMUTIL" >&6; }
  7405. else
  7406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7407. $as_echo "no" >&6; }
  7408. fi
  7409. fi
  7410. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7411. ac_ct_DSYMUTIL=$DSYMUTIL
  7412. # Extract the first word of "dsymutil", so it can be a program name with args.
  7413. set dummy dsymutil; ac_word=$2
  7414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7415. $as_echo_n "checking for $ac_word... " >&6; }
  7416. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  7417. $as_echo_n "(cached) " >&6
  7418. else
  7419. if test -n "$ac_ct_DSYMUTIL"; then
  7420. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7421. else
  7422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7423. for as_dir in $PATH
  7424. do
  7425. IFS=$as_save_IFS
  7426. test -z "$as_dir" && as_dir=.
  7427. for ac_exec_ext in '' $ac_executable_extensions; do
  7428. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7429. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7430. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7431. break 2
  7432. fi
  7433. done
  7434. done
  7435. IFS=$as_save_IFS
  7436. fi
  7437. fi
  7438. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7439. if test -n "$ac_ct_DSYMUTIL"; then
  7440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7441. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7442. else
  7443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7444. $as_echo "no" >&6; }
  7445. fi
  7446. if test "x$ac_ct_DSYMUTIL" = x; then
  7447. DSYMUTIL=":"
  7448. else
  7449. case $cross_compiling:$ac_tool_warned in
  7450. yes:)
  7451. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7452. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7453. ac_tool_warned=yes ;;
  7454. esac
  7455. DSYMUTIL=$ac_ct_DSYMUTIL
  7456. fi
  7457. else
  7458. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7459. fi
  7460. if test -n "$ac_tool_prefix"; then
  7461. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7462. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7464. $as_echo_n "checking for $ac_word... " >&6; }
  7465. if ${ac_cv_prog_NMEDIT+:} false; then :
  7466. $as_echo_n "(cached) " >&6
  7467. else
  7468. if test -n "$NMEDIT"; then
  7469. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7470. else
  7471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7472. for as_dir in $PATH
  7473. do
  7474. IFS=$as_save_IFS
  7475. test -z "$as_dir" && as_dir=.
  7476. for ac_exec_ext in '' $ac_executable_extensions; do
  7477. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7478. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7479. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7480. break 2
  7481. fi
  7482. done
  7483. done
  7484. IFS=$as_save_IFS
  7485. fi
  7486. fi
  7487. NMEDIT=$ac_cv_prog_NMEDIT
  7488. if test -n "$NMEDIT"; then
  7489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7490. $as_echo "$NMEDIT" >&6; }
  7491. else
  7492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7493. $as_echo "no" >&6; }
  7494. fi
  7495. fi
  7496. if test -z "$ac_cv_prog_NMEDIT"; then
  7497. ac_ct_NMEDIT=$NMEDIT
  7498. # Extract the first word of "nmedit", so it can be a program name with args.
  7499. set dummy nmedit; ac_word=$2
  7500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7501. $as_echo_n "checking for $ac_word... " >&6; }
  7502. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7503. $as_echo_n "(cached) " >&6
  7504. else
  7505. if test -n "$ac_ct_NMEDIT"; then
  7506. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7507. else
  7508. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7509. for as_dir in $PATH
  7510. do
  7511. IFS=$as_save_IFS
  7512. test -z "$as_dir" && as_dir=.
  7513. for ac_exec_ext in '' $ac_executable_extensions; do
  7514. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7515. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7516. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7517. break 2
  7518. fi
  7519. done
  7520. done
  7521. IFS=$as_save_IFS
  7522. fi
  7523. fi
  7524. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7525. if test -n "$ac_ct_NMEDIT"; then
  7526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7527. $as_echo "$ac_ct_NMEDIT" >&6; }
  7528. else
  7529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7530. $as_echo "no" >&6; }
  7531. fi
  7532. if test "x$ac_ct_NMEDIT" = x; then
  7533. NMEDIT=":"
  7534. else
  7535. case $cross_compiling:$ac_tool_warned in
  7536. yes:)
  7537. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7538. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7539. ac_tool_warned=yes ;;
  7540. esac
  7541. NMEDIT=$ac_ct_NMEDIT
  7542. fi
  7543. else
  7544. NMEDIT="$ac_cv_prog_NMEDIT"
  7545. fi
  7546. if test -n "$ac_tool_prefix"; then
  7547. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7548. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7550. $as_echo_n "checking for $ac_word... " >&6; }
  7551. if ${ac_cv_prog_LIPO+:} false; then :
  7552. $as_echo_n "(cached) " >&6
  7553. else
  7554. if test -n "$LIPO"; then
  7555. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7556. else
  7557. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7558. for as_dir in $PATH
  7559. do
  7560. IFS=$as_save_IFS
  7561. test -z "$as_dir" && as_dir=.
  7562. for ac_exec_ext in '' $ac_executable_extensions; do
  7563. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7564. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7565. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7566. break 2
  7567. fi
  7568. done
  7569. done
  7570. IFS=$as_save_IFS
  7571. fi
  7572. fi
  7573. LIPO=$ac_cv_prog_LIPO
  7574. if test -n "$LIPO"; then
  7575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7576. $as_echo "$LIPO" >&6; }
  7577. else
  7578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7579. $as_echo "no" >&6; }
  7580. fi
  7581. fi
  7582. if test -z "$ac_cv_prog_LIPO"; then
  7583. ac_ct_LIPO=$LIPO
  7584. # Extract the first word of "lipo", so it can be a program name with args.
  7585. set dummy lipo; ac_word=$2
  7586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7587. $as_echo_n "checking for $ac_word... " >&6; }
  7588. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7589. $as_echo_n "(cached) " >&6
  7590. else
  7591. if test -n "$ac_ct_LIPO"; then
  7592. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7593. else
  7594. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7595. for as_dir in $PATH
  7596. do
  7597. IFS=$as_save_IFS
  7598. test -z "$as_dir" && as_dir=.
  7599. for ac_exec_ext in '' $ac_executable_extensions; do
  7600. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7601. ac_cv_prog_ac_ct_LIPO="lipo"
  7602. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7603. break 2
  7604. fi
  7605. done
  7606. done
  7607. IFS=$as_save_IFS
  7608. fi
  7609. fi
  7610. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7611. if test -n "$ac_ct_LIPO"; then
  7612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7613. $as_echo "$ac_ct_LIPO" >&6; }
  7614. else
  7615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7616. $as_echo "no" >&6; }
  7617. fi
  7618. if test "x$ac_ct_LIPO" = x; then
  7619. LIPO=":"
  7620. else
  7621. case $cross_compiling:$ac_tool_warned in
  7622. yes:)
  7623. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7624. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7625. ac_tool_warned=yes ;;
  7626. esac
  7627. LIPO=$ac_ct_LIPO
  7628. fi
  7629. else
  7630. LIPO="$ac_cv_prog_LIPO"
  7631. fi
  7632. if test -n "$ac_tool_prefix"; then
  7633. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7634. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7636. $as_echo_n "checking for $ac_word... " >&6; }
  7637. if ${ac_cv_prog_OTOOL+:} false; then :
  7638. $as_echo_n "(cached) " >&6
  7639. else
  7640. if test -n "$OTOOL"; then
  7641. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7642. else
  7643. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7644. for as_dir in $PATH
  7645. do
  7646. IFS=$as_save_IFS
  7647. test -z "$as_dir" && as_dir=.
  7648. for ac_exec_ext in '' $ac_executable_extensions; do
  7649. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7650. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7651. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7652. break 2
  7653. fi
  7654. done
  7655. done
  7656. IFS=$as_save_IFS
  7657. fi
  7658. fi
  7659. OTOOL=$ac_cv_prog_OTOOL
  7660. if test -n "$OTOOL"; then
  7661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7662. $as_echo "$OTOOL" >&6; }
  7663. else
  7664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7665. $as_echo "no" >&6; }
  7666. fi
  7667. fi
  7668. if test -z "$ac_cv_prog_OTOOL"; then
  7669. ac_ct_OTOOL=$OTOOL
  7670. # Extract the first word of "otool", so it can be a program name with args.
  7671. set dummy otool; ac_word=$2
  7672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7673. $as_echo_n "checking for $ac_word... " >&6; }
  7674. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7675. $as_echo_n "(cached) " >&6
  7676. else
  7677. if test -n "$ac_ct_OTOOL"; then
  7678. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7679. else
  7680. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7681. for as_dir in $PATH
  7682. do
  7683. IFS=$as_save_IFS
  7684. test -z "$as_dir" && as_dir=.
  7685. for ac_exec_ext in '' $ac_executable_extensions; do
  7686. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7687. ac_cv_prog_ac_ct_OTOOL="otool"
  7688. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7689. break 2
  7690. fi
  7691. done
  7692. done
  7693. IFS=$as_save_IFS
  7694. fi
  7695. fi
  7696. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7697. if test -n "$ac_ct_OTOOL"; then
  7698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7699. $as_echo "$ac_ct_OTOOL" >&6; }
  7700. else
  7701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7702. $as_echo "no" >&6; }
  7703. fi
  7704. if test "x$ac_ct_OTOOL" = x; then
  7705. OTOOL=":"
  7706. else
  7707. case $cross_compiling:$ac_tool_warned in
  7708. yes:)
  7709. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7710. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7711. ac_tool_warned=yes ;;
  7712. esac
  7713. OTOOL=$ac_ct_OTOOL
  7714. fi
  7715. else
  7716. OTOOL="$ac_cv_prog_OTOOL"
  7717. fi
  7718. if test -n "$ac_tool_prefix"; then
  7719. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7720. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7722. $as_echo_n "checking for $ac_word... " >&6; }
  7723. if ${ac_cv_prog_OTOOL64+:} false; then :
  7724. $as_echo_n "(cached) " >&6
  7725. else
  7726. if test -n "$OTOOL64"; then
  7727. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7728. else
  7729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7730. for as_dir in $PATH
  7731. do
  7732. IFS=$as_save_IFS
  7733. test -z "$as_dir" && as_dir=.
  7734. for ac_exec_ext in '' $ac_executable_extensions; do
  7735. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7736. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7737. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7738. break 2
  7739. fi
  7740. done
  7741. done
  7742. IFS=$as_save_IFS
  7743. fi
  7744. fi
  7745. OTOOL64=$ac_cv_prog_OTOOL64
  7746. if test -n "$OTOOL64"; then
  7747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7748. $as_echo "$OTOOL64" >&6; }
  7749. else
  7750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7751. $as_echo "no" >&6; }
  7752. fi
  7753. fi
  7754. if test -z "$ac_cv_prog_OTOOL64"; then
  7755. ac_ct_OTOOL64=$OTOOL64
  7756. # Extract the first word of "otool64", so it can be a program name with args.
  7757. set dummy otool64; ac_word=$2
  7758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7759. $as_echo_n "checking for $ac_word... " >&6; }
  7760. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7761. $as_echo_n "(cached) " >&6
  7762. else
  7763. if test -n "$ac_ct_OTOOL64"; then
  7764. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7765. else
  7766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7767. for as_dir in $PATH
  7768. do
  7769. IFS=$as_save_IFS
  7770. test -z "$as_dir" && as_dir=.
  7771. for ac_exec_ext in '' $ac_executable_extensions; do
  7772. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7773. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7774. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7775. break 2
  7776. fi
  7777. done
  7778. done
  7779. IFS=$as_save_IFS
  7780. fi
  7781. fi
  7782. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7783. if test -n "$ac_ct_OTOOL64"; then
  7784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7785. $as_echo "$ac_ct_OTOOL64" >&6; }
  7786. else
  7787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7788. $as_echo "no" >&6; }
  7789. fi
  7790. if test "x$ac_ct_OTOOL64" = x; then
  7791. OTOOL64=":"
  7792. else
  7793. case $cross_compiling:$ac_tool_warned in
  7794. yes:)
  7795. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7796. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7797. ac_tool_warned=yes ;;
  7798. esac
  7799. OTOOL64=$ac_ct_OTOOL64
  7800. fi
  7801. else
  7802. OTOOL64="$ac_cv_prog_OTOOL64"
  7803. fi
  7804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7805. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7806. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7807. $as_echo_n "(cached) " >&6
  7808. else
  7809. lt_cv_apple_cc_single_mod=no
  7810. if test -z "${LT_MULTI_MODULE}"; then
  7811. # By default we will add the -single_module flag. You can override
  7812. # by either setting the environment variable LT_MULTI_MODULE
  7813. # non-empty at configure time, or by adding -multi_module to the
  7814. # link flags.
  7815. rm -rf libconftest.dylib*
  7816. echo "int foo(void){return 1;}" > conftest.c
  7817. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7818. -dynamiclib -Wl,-single_module conftest.c" >&5
  7819. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7820. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7821. _lt_result=$?
  7822. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  7823. lt_cv_apple_cc_single_mod=yes
  7824. else
  7825. cat conftest.err >&5
  7826. fi
  7827. rm -rf libconftest.dylib*
  7828. rm -f conftest.*
  7829. fi
  7830. fi
  7831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7832. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7834. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7835. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7836. $as_echo_n "(cached) " >&6
  7837. else
  7838. lt_cv_ld_exported_symbols_list=no
  7839. save_LDFLAGS=$LDFLAGS
  7840. echo "_main" > conftest.sym
  7841. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7843. /* end confdefs.h. */
  7844. int
  7845. main ()
  7846. {
  7847. ;
  7848. return 0;
  7849. }
  7850. _ACEOF
  7851. if ac_fn_c_try_link "$LINENO"; then :
  7852. lt_cv_ld_exported_symbols_list=yes
  7853. else
  7854. lt_cv_ld_exported_symbols_list=no
  7855. fi
  7856. rm -f core conftest.err conftest.$ac_objext \
  7857. conftest$ac_exeext conftest.$ac_ext
  7858. LDFLAGS="$save_LDFLAGS"
  7859. fi
  7860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7861. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7863. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7864. if ${lt_cv_ld_force_load+:} false; then :
  7865. $as_echo_n "(cached) " >&6
  7866. else
  7867. lt_cv_ld_force_load=no
  7868. cat > conftest.c << _LT_EOF
  7869. int forced_loaded() { return 2;}
  7870. _LT_EOF
  7871. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7872. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7873. echo "$AR cru libconftest.a conftest.o" >&5
  7874. $AR cru libconftest.a conftest.o 2>&5
  7875. echo "$RANLIB libconftest.a" >&5
  7876. $RANLIB libconftest.a 2>&5
  7877. cat > conftest.c << _LT_EOF
  7878. int main() { return 0;}
  7879. _LT_EOF
  7880. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7881. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7882. _lt_result=$?
  7883. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  7884. lt_cv_ld_force_load=yes
  7885. else
  7886. cat conftest.err >&5
  7887. fi
  7888. rm -f conftest.err libconftest.a conftest conftest.c
  7889. rm -rf conftest.dSYM
  7890. fi
  7891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7892. $as_echo "$lt_cv_ld_force_load" >&6; }
  7893. case $host_os in
  7894. rhapsody* | darwin1.[012])
  7895. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7896. darwin1.*)
  7897. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7898. darwin*) # darwin 5.x on
  7899. # if running on 10.5 or later, the deployment target defaults
  7900. # to the OS version, if on x86, and 10.4, the deployment
  7901. # target defaults to 10.4. Don't you love it?
  7902. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7903. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7904. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7905. 10.[012]*)
  7906. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7907. 10.*)
  7908. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7909. esac
  7910. ;;
  7911. esac
  7912. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7913. _lt_dar_single_mod='$single_module'
  7914. fi
  7915. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7916. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7917. else
  7918. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7919. fi
  7920. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7921. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7922. else
  7923. _lt_dsymutil=
  7924. fi
  7925. ;;
  7926. esac
  7927. for ac_header in dlfcn.h
  7928. do :
  7929. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7930. "
  7931. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7932. cat >>confdefs.h <<_ACEOF
  7933. @%:@define HAVE_DLFCN_H 1
  7934. _ACEOF
  7935. fi
  7936. done
  7937. # Set options
  7938. @%:@ Check whether --enable-shared was given.
  7939. if test "${enable_shared+set}" = set; then :
  7940. enableval=$enable_shared; p=${PACKAGE-default}
  7941. case $enableval in
  7942. yes) enable_shared=yes ;;
  7943. no) enable_shared=no ;;
  7944. *)
  7945. enable_shared=no
  7946. # Look at the argument we got. We use all the common list separators.
  7947. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7948. for pkg in $enableval; do
  7949. IFS="$lt_save_ifs"
  7950. if test "X$pkg" = "X$p"; then
  7951. enable_shared=yes
  7952. fi
  7953. done
  7954. IFS="$lt_save_ifs"
  7955. ;;
  7956. esac
  7957. else
  7958. enable_shared=no
  7959. fi
  7960. enable_dlopen=no
  7961. enable_win32_dll=no
  7962. @%:@ Check whether --enable-static was given.
  7963. if test "${enable_static+set}" = set; then :
  7964. enableval=$enable_static; p=${PACKAGE-default}
  7965. case $enableval in
  7966. yes) enable_static=yes ;;
  7967. no) enable_static=no ;;
  7968. *)
  7969. enable_static=no
  7970. # Look at the argument we got. We use all the common list separators.
  7971. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7972. for pkg in $enableval; do
  7973. IFS="$lt_save_ifs"
  7974. if test "X$pkg" = "X$p"; then
  7975. enable_static=yes
  7976. fi
  7977. done
  7978. IFS="$lt_save_ifs"
  7979. ;;
  7980. esac
  7981. else
  7982. enable_static=yes
  7983. fi
  7984. @%:@ Check whether --with-pic was given.
  7985. if test "${with_pic+set}" = set; then :
  7986. withval=$with_pic; pic_mode="$withval"
  7987. else
  7988. pic_mode=default
  7989. fi
  7990. test -z "$pic_mode" && pic_mode=default
  7991. @%:@ Check whether --enable-fast-install was given.
  7992. if test "${enable_fast_install+set}" = set; then :
  7993. enableval=$enable_fast_install; p=${PACKAGE-default}
  7994. case $enableval in
  7995. yes) enable_fast_install=yes ;;
  7996. no) enable_fast_install=no ;;
  7997. *)
  7998. enable_fast_install=no
  7999. # Look at the argument we got. We use all the common list separators.
  8000. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8001. for pkg in $enableval; do
  8002. IFS="$lt_save_ifs"
  8003. if test "X$pkg" = "X$p"; then
  8004. enable_fast_install=yes
  8005. fi
  8006. done
  8007. IFS="$lt_save_ifs"
  8008. ;;
  8009. esac
  8010. else
  8011. enable_fast_install=yes
  8012. fi
  8013. # This can be used to rebuild libtool when needed
  8014. LIBTOOL_DEPS="$ltmain"
  8015. # Always use our own libtool.
  8016. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  8017. test -z "$LN_S" && LN_S="ln -s"
  8018. if test -n "${ZSH_VERSION+set}" ; then
  8019. setopt NO_GLOB_SUBST
  8020. fi
  8021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  8022. $as_echo_n "checking for objdir... " >&6; }
  8023. if ${lt_cv_objdir+:} false; then :
  8024. $as_echo_n "(cached) " >&6
  8025. else
  8026. rm -f .libs 2>/dev/null
  8027. mkdir .libs 2>/dev/null
  8028. if test -d .libs; then
  8029. lt_cv_objdir=.libs
  8030. else
  8031. # MS-DOS does not allow filenames that begin with a dot.
  8032. lt_cv_objdir=_libs
  8033. fi
  8034. rmdir .libs 2>/dev/null
  8035. fi
  8036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  8037. $as_echo "$lt_cv_objdir" >&6; }
  8038. objdir=$lt_cv_objdir
  8039. cat >>confdefs.h <<_ACEOF
  8040. @%:@define LT_OBJDIR "$lt_cv_objdir/"
  8041. _ACEOF
  8042. case $host_os in
  8043. aix3*)
  8044. # AIX sometimes has problems with the GCC collect2 program. For some
  8045. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8046. # vanish in a puff of smoke.
  8047. if test "X${COLLECT_NAMES+set}" != Xset; then
  8048. COLLECT_NAMES=
  8049. export COLLECT_NAMES
  8050. fi
  8051. ;;
  8052. esac
  8053. # Global variables:
  8054. ofile=libtool
  8055. can_build_shared=yes
  8056. # All known linkers require a `.a' archive for static linking (except MSVC,
  8057. # which needs '.lib').
  8058. libext=a
  8059. with_gnu_ld="$lt_cv_prog_gnu_ld"
  8060. old_CC="$CC"
  8061. old_CFLAGS="$CFLAGS"
  8062. # Set sane defaults for various variables
  8063. test -z "$CC" && CC=cc
  8064. test -z "$LTCC" && LTCC=$CC
  8065. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8066. test -z "$LD" && LD=ld
  8067. test -z "$ac_objext" && ac_objext=o
  8068. for cc_temp in $compiler""; do
  8069. case $cc_temp in
  8070. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8071. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8072. \-*) ;;
  8073. *) break;;
  8074. esac
  8075. done
  8076. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  8077. # Only perform the check for file, if the check method requires it
  8078. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8079. case $deplibs_check_method in
  8080. file_magic*)
  8081. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8083. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  8084. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8085. $as_echo_n "(cached) " >&6
  8086. else
  8087. case $MAGIC_CMD in
  8088. [\\/*] | ?:[\\/]*)
  8089. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8090. ;;
  8091. *)
  8092. lt_save_MAGIC_CMD="$MAGIC_CMD"
  8093. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8094. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8095. for ac_dir in $ac_dummy; do
  8096. IFS="$lt_save_ifs"
  8097. test -z "$ac_dir" && ac_dir=.
  8098. if test -f $ac_dir/${ac_tool_prefix}file; then
  8099. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  8100. if test -n "$file_magic_test_file"; then
  8101. case $deplibs_check_method in
  8102. "file_magic "*)
  8103. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8104. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8105. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8106. $EGREP "$file_magic_regex" > /dev/null; then
  8107. :
  8108. else
  8109. cat <<_LT_EOF 1>&2
  8110. *** Warning: the command libtool uses to detect shared libraries,
  8111. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8112. *** The result is that libtool may fail to recognize shared libraries
  8113. *** as such. This will affect the creation of libtool libraries that
  8114. *** depend on shared libraries, but programs linked with such libtool
  8115. *** libraries will work regardless of this problem. Nevertheless, you
  8116. *** may want to report the problem to your system manager and/or to
  8117. *** bug-libtool@gnu.org
  8118. _LT_EOF
  8119. fi ;;
  8120. esac
  8121. fi
  8122. break
  8123. fi
  8124. done
  8125. IFS="$lt_save_ifs"
  8126. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8127. ;;
  8128. esac
  8129. fi
  8130. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8131. if test -n "$MAGIC_CMD"; then
  8132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8133. $as_echo "$MAGIC_CMD" >&6; }
  8134. else
  8135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8136. $as_echo "no" >&6; }
  8137. fi
  8138. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8139. if test -n "$ac_tool_prefix"; then
  8140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8141. $as_echo_n "checking for file... " >&6; }
  8142. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8143. $as_echo_n "(cached) " >&6
  8144. else
  8145. case $MAGIC_CMD in
  8146. [\\/*] | ?:[\\/]*)
  8147. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8148. ;;
  8149. *)
  8150. lt_save_MAGIC_CMD="$MAGIC_CMD"
  8151. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8152. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8153. for ac_dir in $ac_dummy; do
  8154. IFS="$lt_save_ifs"
  8155. test -z "$ac_dir" && ac_dir=.
  8156. if test -f $ac_dir/file; then
  8157. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  8158. if test -n "$file_magic_test_file"; then
  8159. case $deplibs_check_method in
  8160. "file_magic "*)
  8161. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8162. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8163. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8164. $EGREP "$file_magic_regex" > /dev/null; then
  8165. :
  8166. else
  8167. cat <<_LT_EOF 1>&2
  8168. *** Warning: the command libtool uses to detect shared libraries,
  8169. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8170. *** The result is that libtool may fail to recognize shared libraries
  8171. *** as such. This will affect the creation of libtool libraries that
  8172. *** depend on shared libraries, but programs linked with such libtool
  8173. *** libraries will work regardless of this problem. Nevertheless, you
  8174. *** may want to report the problem to your system manager and/or to
  8175. *** bug-libtool@gnu.org
  8176. _LT_EOF
  8177. fi ;;
  8178. esac
  8179. fi
  8180. break
  8181. fi
  8182. done
  8183. IFS="$lt_save_ifs"
  8184. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8185. ;;
  8186. esac
  8187. fi
  8188. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8189. if test -n "$MAGIC_CMD"; then
  8190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8191. $as_echo "$MAGIC_CMD" >&6; }
  8192. else
  8193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8194. $as_echo "no" >&6; }
  8195. fi
  8196. else
  8197. MAGIC_CMD=:
  8198. fi
  8199. fi
  8200. fi
  8201. ;;
  8202. esac
  8203. # Use C for the default configuration in the libtool script
  8204. lt_save_CC="$CC"
  8205. ac_ext=c
  8206. ac_cpp='$CPP $CPPFLAGS'
  8207. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8208. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8209. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8210. # Source file extension for C test sources.
  8211. ac_ext=c
  8212. # Object file extension for compiled C test sources.
  8213. objext=o
  8214. objext=$objext
  8215. # Code to be used in simple compile tests
  8216. lt_simple_compile_test_code="int some_variable = 0;"
  8217. # Code to be used in simple link tests
  8218. lt_simple_link_test_code='int main(){return(0);}'
  8219. # If no C compiler was specified, use CC.
  8220. LTCC=${LTCC-"$CC"}
  8221. # If no C compiler flags were specified, use CFLAGS.
  8222. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8223. # Allow CC to be a program name with arguments.
  8224. compiler=$CC
  8225. # Save the default compiler, since it gets overwritten when the other
  8226. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8227. compiler_DEFAULT=$CC
  8228. # save warnings/boilerplate of simple test code
  8229. ac_outfile=conftest.$ac_objext
  8230. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8231. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8232. _lt_compiler_boilerplate=`cat conftest.err`
  8233. $RM conftest*
  8234. ac_outfile=conftest.$ac_objext
  8235. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8236. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8237. _lt_linker_boilerplate=`cat conftest.err`
  8238. $RM -r conftest*
  8239. ## CAVEAT EMPTOR:
  8240. ## There is no encapsulation within the following macros, do not change
  8241. ## the running order or otherwise move them around unless you know exactly
  8242. ## what you are doing...
  8243. if test -n "$compiler"; then
  8244. lt_prog_compiler_no_builtin_flag=
  8245. if test "$GCC" = yes; then
  8246. case $cc_basename in
  8247. nvcc*)
  8248. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8249. *)
  8250. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8251. esac
  8252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8253. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8254. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8255. $as_echo_n "(cached) " >&6
  8256. else
  8257. lt_cv_prog_compiler_rtti_exceptions=no
  8258. ac_outfile=conftest.$ac_objext
  8259. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8260. lt_compiler_flag="-fno-rtti -fno-exceptions"
  8261. # Insert the option either (1) after the last *FLAGS variable, or
  8262. # (2) before a word containing "conftest.", or (3) at the end.
  8263. # Note that $ac_compile itself does not contain backslashes and begins
  8264. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8265. # The option is referenced via a variable to avoid confusing sed.
  8266. lt_compile=`echo "$ac_compile" | $SED \
  8267. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8268. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8269. -e 's:$: $lt_compiler_flag:'`
  8270. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8271. (eval "$lt_compile" 2>conftest.err)
  8272. ac_status=$?
  8273. cat conftest.err >&5
  8274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8275. if (exit $ac_status) && test -s "$ac_outfile"; then
  8276. # The compiler can only warn and ignore the option if not recognized
  8277. # So say no if there are warnings other than the usual output.
  8278. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8279. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8280. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8281. lt_cv_prog_compiler_rtti_exceptions=yes
  8282. fi
  8283. fi
  8284. $RM conftest*
  8285. fi
  8286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8287. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8288. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  8289. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8290. else
  8291. :
  8292. fi
  8293. fi
  8294. lt_prog_compiler_wl=
  8295. lt_prog_compiler_pic=
  8296. lt_prog_compiler_static=
  8297. if test "$GCC" = yes; then
  8298. lt_prog_compiler_wl='-Wl,'
  8299. lt_prog_compiler_static='-static'
  8300. case $host_os in
  8301. aix*)
  8302. # All AIX code is PIC.
  8303. if test "$host_cpu" = ia64; then
  8304. # AIX 5 now supports IA64 processor
  8305. lt_prog_compiler_static='-Bstatic'
  8306. fi
  8307. ;;
  8308. amigaos*)
  8309. case $host_cpu in
  8310. powerpc)
  8311. # see comment about AmigaOS4 .so support
  8312. lt_prog_compiler_pic='-fPIC'
  8313. ;;
  8314. m68k)
  8315. # FIXME: we need at least 68020 code to build shared libraries, but
  8316. # adding the `-m68020' flag to GCC prevents building anything better,
  8317. # like `-m68040'.
  8318. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8319. ;;
  8320. esac
  8321. ;;
  8322. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8323. # PIC is the default for these OSes.
  8324. ;;
  8325. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8326. # This hack is so that the source file can tell whether it is being
  8327. # built for inclusion in a dll (and should export symbols for example).
  8328. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8329. # (--disable-auto-import) libraries
  8330. lt_prog_compiler_pic='-DDLL_EXPORT'
  8331. ;;
  8332. darwin* | rhapsody*)
  8333. # PIC is the default on this platform
  8334. # Common symbols not allowed in MH_DYLIB files
  8335. lt_prog_compiler_pic='-fno-common'
  8336. ;;
  8337. haiku*)
  8338. # PIC is the default for Haiku.
  8339. # The "-static" flag exists, but is broken.
  8340. lt_prog_compiler_static=
  8341. ;;
  8342. hpux*)
  8343. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8344. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8345. # sets the default TLS model and affects inlining.
  8346. case $host_cpu in
  8347. hppa*64*)
  8348. # +Z the default
  8349. ;;
  8350. *)
  8351. lt_prog_compiler_pic='-fPIC'
  8352. ;;
  8353. esac
  8354. ;;
  8355. interix[3-9]*)
  8356. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8357. # Instead, we relocate shared libraries at runtime.
  8358. ;;
  8359. msdosdjgpp*)
  8360. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8361. # on systems that don't support them.
  8362. lt_prog_compiler_can_build_shared=no
  8363. enable_shared=no
  8364. ;;
  8365. *nto* | *qnx*)
  8366. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8367. # it will coredump.
  8368. lt_prog_compiler_pic='-fPIC -shared'
  8369. ;;
  8370. sysv4*MP*)
  8371. if test -d /usr/nec; then
  8372. lt_prog_compiler_pic=-Kconform_pic
  8373. fi
  8374. ;;
  8375. *)
  8376. lt_prog_compiler_pic='-fPIC'
  8377. ;;
  8378. esac
  8379. case $cc_basename in
  8380. nvcc*) # Cuda Compiler Driver 2.2
  8381. lt_prog_compiler_wl='-Xlinker '
  8382. lt_prog_compiler_pic='-Xcompiler -fPIC'
  8383. ;;
  8384. esac
  8385. else
  8386. # PORTME Check for flag to pass linker flags through the system compiler.
  8387. case $host_os in
  8388. aix*)
  8389. lt_prog_compiler_wl='-Wl,'
  8390. if test "$host_cpu" = ia64; then
  8391. # AIX 5 now supports IA64 processor
  8392. lt_prog_compiler_static='-Bstatic'
  8393. else
  8394. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8395. fi
  8396. ;;
  8397. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8398. # This hack is so that the source file can tell whether it is being
  8399. # built for inclusion in a dll (and should export symbols for example).
  8400. lt_prog_compiler_pic='-DDLL_EXPORT'
  8401. ;;
  8402. hpux9* | hpux10* | hpux11*)
  8403. lt_prog_compiler_wl='-Wl,'
  8404. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8405. # not for PA HP-UX.
  8406. case $host_cpu in
  8407. hppa*64*|ia64*)
  8408. # +Z the default
  8409. ;;
  8410. *)
  8411. lt_prog_compiler_pic='+Z'
  8412. ;;
  8413. esac
  8414. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8415. lt_prog_compiler_static='${wl}-a ${wl}archive'
  8416. ;;
  8417. irix5* | irix6* | nonstopux*)
  8418. lt_prog_compiler_wl='-Wl,'
  8419. # PIC (with -KPIC) is the default.
  8420. lt_prog_compiler_static='-non_shared'
  8421. ;;
  8422. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8423. case $cc_basename in
  8424. # old Intel for x86_64 which still supported -KPIC.
  8425. ecc*)
  8426. lt_prog_compiler_wl='-Wl,'
  8427. lt_prog_compiler_pic='-KPIC'
  8428. lt_prog_compiler_static='-static'
  8429. ;;
  8430. # icc used to be incompatible with GCC.
  8431. # ICC 10 doesn't accept -KPIC any more.
  8432. icc* | ifort*)
  8433. lt_prog_compiler_wl='-Wl,'
  8434. lt_prog_compiler_pic='-fPIC'
  8435. lt_prog_compiler_static='-static'
  8436. ;;
  8437. # Lahey Fortran 8.1.
  8438. lf95*)
  8439. lt_prog_compiler_wl='-Wl,'
  8440. lt_prog_compiler_pic='--shared'
  8441. lt_prog_compiler_static='--static'
  8442. ;;
  8443. nagfor*)
  8444. # NAG Fortran compiler
  8445. lt_prog_compiler_wl='-Wl,-Wl,,'
  8446. lt_prog_compiler_pic='-PIC'
  8447. lt_prog_compiler_static='-Bstatic'
  8448. ;;
  8449. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8450. # Portland Group compilers (*not* the Pentium gcc compiler,
  8451. # which looks to be a dead project)
  8452. lt_prog_compiler_wl='-Wl,'
  8453. lt_prog_compiler_pic='-fpic'
  8454. lt_prog_compiler_static='-Bstatic'
  8455. ;;
  8456. ccc*)
  8457. lt_prog_compiler_wl='-Wl,'
  8458. # All Alpha code is PIC.
  8459. lt_prog_compiler_static='-non_shared'
  8460. ;;
  8461. xl* | bgxl* | bgf* | mpixl*)
  8462. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8463. lt_prog_compiler_wl='-Wl,'
  8464. lt_prog_compiler_pic='-qpic'
  8465. lt_prog_compiler_static='-qstaticlink'
  8466. ;;
  8467. *)
  8468. case `$CC -V 2>&1 | sed 5q` in
  8469. *Sun\ F* | *Sun*Fortran*)
  8470. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8471. lt_prog_compiler_pic='-KPIC'
  8472. lt_prog_compiler_static='-Bstatic'
  8473. lt_prog_compiler_wl=''
  8474. ;;
  8475. *Sun\ C*)
  8476. # Sun C 5.9
  8477. lt_prog_compiler_pic='-KPIC'
  8478. lt_prog_compiler_static='-Bstatic'
  8479. lt_prog_compiler_wl='-Wl,'
  8480. ;;
  8481. esac
  8482. ;;
  8483. esac
  8484. ;;
  8485. newsos6)
  8486. lt_prog_compiler_pic='-KPIC'
  8487. lt_prog_compiler_static='-Bstatic'
  8488. ;;
  8489. *nto* | *qnx*)
  8490. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8491. # it will coredump.
  8492. lt_prog_compiler_pic='-fPIC -shared'
  8493. ;;
  8494. osf3* | osf4* | osf5*)
  8495. lt_prog_compiler_wl='-Wl,'
  8496. # All OSF/1 code is PIC.
  8497. lt_prog_compiler_static='-non_shared'
  8498. ;;
  8499. rdos*)
  8500. lt_prog_compiler_static='-non_shared'
  8501. ;;
  8502. solaris*)
  8503. lt_prog_compiler_pic='-KPIC'
  8504. lt_prog_compiler_static='-Bstatic'
  8505. case $cc_basename in
  8506. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8507. lt_prog_compiler_wl='-Qoption ld ';;
  8508. *)
  8509. lt_prog_compiler_wl='-Wl,';;
  8510. esac
  8511. ;;
  8512. sunos4*)
  8513. lt_prog_compiler_wl='-Qoption ld '
  8514. lt_prog_compiler_pic='-PIC'
  8515. lt_prog_compiler_static='-Bstatic'
  8516. ;;
  8517. sysv4 | sysv4.2uw2* | sysv4.3*)
  8518. lt_prog_compiler_wl='-Wl,'
  8519. lt_prog_compiler_pic='-KPIC'
  8520. lt_prog_compiler_static='-Bstatic'
  8521. ;;
  8522. sysv4*MP*)
  8523. if test -d /usr/nec ;then
  8524. lt_prog_compiler_pic='-Kconform_pic'
  8525. lt_prog_compiler_static='-Bstatic'
  8526. fi
  8527. ;;
  8528. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8529. lt_prog_compiler_wl='-Wl,'
  8530. lt_prog_compiler_pic='-KPIC'
  8531. lt_prog_compiler_static='-Bstatic'
  8532. ;;
  8533. unicos*)
  8534. lt_prog_compiler_wl='-Wl,'
  8535. lt_prog_compiler_can_build_shared=no
  8536. ;;
  8537. uts4*)
  8538. lt_prog_compiler_pic='-pic'
  8539. lt_prog_compiler_static='-Bstatic'
  8540. ;;
  8541. *)
  8542. lt_prog_compiler_can_build_shared=no
  8543. ;;
  8544. esac
  8545. fi
  8546. case $host_os in
  8547. # For platforms which do not support PIC, -DPIC is meaningless:
  8548. *djgpp*)
  8549. lt_prog_compiler_pic=
  8550. ;;
  8551. *)
  8552. lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
  8553. ;;
  8554. esac
  8555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8556. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8557. if ${lt_cv_prog_compiler_pic+:} false; then :
  8558. $as_echo_n "(cached) " >&6
  8559. else
  8560. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8561. fi
  8562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8563. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8564. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8565. #
  8566. # Check to make sure the PIC flag actually works.
  8567. #
  8568. if test -n "$lt_prog_compiler_pic"; then
  8569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8570. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8571. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8572. $as_echo_n "(cached) " >&6
  8573. else
  8574. lt_cv_prog_compiler_pic_works=no
  8575. ac_outfile=conftest.$ac_objext
  8576. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8577. lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
  8578. # Insert the option either (1) after the last *FLAGS variable, or
  8579. # (2) before a word containing "conftest.", or (3) at the end.
  8580. # Note that $ac_compile itself does not contain backslashes and begins
  8581. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8582. # The option is referenced via a variable to avoid confusing sed.
  8583. lt_compile=`echo "$ac_compile" | $SED \
  8584. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8585. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8586. -e 's:$: $lt_compiler_flag:'`
  8587. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8588. (eval "$lt_compile" 2>conftest.err)
  8589. ac_status=$?
  8590. cat conftest.err >&5
  8591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8592. if (exit $ac_status) && test -s "$ac_outfile"; then
  8593. # The compiler can only warn and ignore the option if not recognized
  8594. # So say no if there are warnings other than the usual output.
  8595. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8596. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8597. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8598. lt_cv_prog_compiler_pic_works=yes
  8599. fi
  8600. fi
  8601. $RM conftest*
  8602. fi
  8603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8604. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8605. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8606. case $lt_prog_compiler_pic in
  8607. "" | " "*) ;;
  8608. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8609. esac
  8610. else
  8611. lt_prog_compiler_pic=
  8612. lt_prog_compiler_can_build_shared=no
  8613. fi
  8614. fi
  8615. #
  8616. # Check to make sure the static flag actually works.
  8617. #
  8618. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8620. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8621. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8622. $as_echo_n "(cached) " >&6
  8623. else
  8624. lt_cv_prog_compiler_static_works=no
  8625. save_LDFLAGS="$LDFLAGS"
  8626. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8627. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8628. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8629. # The linker can only warn and ignore the option if not recognized
  8630. # So say no if there are warnings
  8631. if test -s conftest.err; then
  8632. # Append any errors to the config.log.
  8633. cat conftest.err 1>&5
  8634. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8635. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8636. if diff conftest.exp conftest.er2 >/dev/null; then
  8637. lt_cv_prog_compiler_static_works=yes
  8638. fi
  8639. else
  8640. lt_cv_prog_compiler_static_works=yes
  8641. fi
  8642. fi
  8643. $RM -r conftest*
  8644. LDFLAGS="$save_LDFLAGS"
  8645. fi
  8646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8647. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8648. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8649. :
  8650. else
  8651. lt_prog_compiler_static=
  8652. fi
  8653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8654. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8655. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8656. $as_echo_n "(cached) " >&6
  8657. else
  8658. lt_cv_prog_compiler_c_o=no
  8659. $RM -r conftest 2>/dev/null
  8660. mkdir conftest
  8661. cd conftest
  8662. mkdir out
  8663. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8664. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8665. # Insert the option either (1) after the last *FLAGS variable, or
  8666. # (2) before a word containing "conftest.", or (3) at the end.
  8667. # Note that $ac_compile itself does not contain backslashes and begins
  8668. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8669. lt_compile=`echo "$ac_compile" | $SED \
  8670. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8671. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8672. -e 's:$: $lt_compiler_flag:'`
  8673. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8674. (eval "$lt_compile" 2>out/conftest.err)
  8675. ac_status=$?
  8676. cat out/conftest.err >&5
  8677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8678. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8679. then
  8680. # The compiler can only warn and ignore the option if not recognized
  8681. # So say no if there are warnings
  8682. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8683. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8684. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8685. lt_cv_prog_compiler_c_o=yes
  8686. fi
  8687. fi
  8688. chmod u+w . 2>&5
  8689. $RM conftest*
  8690. # SGI C++ compiler will create directory out/ii_files/ for
  8691. # template instantiation
  8692. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8693. $RM out/* && rmdir out
  8694. cd ..
  8695. $RM -r conftest
  8696. $RM conftest*
  8697. fi
  8698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8699. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8701. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8702. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8703. $as_echo_n "(cached) " >&6
  8704. else
  8705. lt_cv_prog_compiler_c_o=no
  8706. $RM -r conftest 2>/dev/null
  8707. mkdir conftest
  8708. cd conftest
  8709. mkdir out
  8710. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8711. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8712. # Insert the option either (1) after the last *FLAGS variable, or
  8713. # (2) before a word containing "conftest.", or (3) at the end.
  8714. # Note that $ac_compile itself does not contain backslashes and begins
  8715. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8716. lt_compile=`echo "$ac_compile" | $SED \
  8717. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8718. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8719. -e 's:$: $lt_compiler_flag:'`
  8720. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8721. (eval "$lt_compile" 2>out/conftest.err)
  8722. ac_status=$?
  8723. cat out/conftest.err >&5
  8724. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8725. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8726. then
  8727. # The compiler can only warn and ignore the option if not recognized
  8728. # So say no if there are warnings
  8729. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8730. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8731. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8732. lt_cv_prog_compiler_c_o=yes
  8733. fi
  8734. fi
  8735. chmod u+w . 2>&5
  8736. $RM conftest*
  8737. # SGI C++ compiler will create directory out/ii_files/ for
  8738. # template instantiation
  8739. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8740. $RM out/* && rmdir out
  8741. cd ..
  8742. $RM -r conftest
  8743. $RM conftest*
  8744. fi
  8745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8746. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8747. hard_links="nottested"
  8748. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8749. # do not overwrite the value of need_locks provided by the user
  8750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8751. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8752. hard_links=yes
  8753. $RM conftest*
  8754. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8755. touch conftest.a
  8756. ln conftest.a conftest.b 2>&5 || hard_links=no
  8757. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8759. $as_echo "$hard_links" >&6; }
  8760. if test "$hard_links" = no; then
  8761. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8762. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8763. need_locks=warn
  8764. fi
  8765. else
  8766. need_locks=no
  8767. fi
  8768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8769. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8770. runpath_var=
  8771. allow_undefined_flag=
  8772. always_export_symbols=no
  8773. archive_cmds=
  8774. archive_expsym_cmds=
  8775. compiler_needs_object=no
  8776. enable_shared_with_static_runtimes=no
  8777. export_dynamic_flag_spec=
  8778. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8779. hardcode_automatic=no
  8780. hardcode_direct=no
  8781. hardcode_direct_absolute=no
  8782. hardcode_libdir_flag_spec=
  8783. hardcode_libdir_flag_spec_ld=
  8784. hardcode_libdir_separator=
  8785. hardcode_minus_L=no
  8786. hardcode_shlibpath_var=unsupported
  8787. inherit_rpath=no
  8788. link_all_deplibs=unknown
  8789. module_cmds=
  8790. module_expsym_cmds=
  8791. old_archive_from_new_cmds=
  8792. old_archive_from_expsyms_cmds=
  8793. thread_safe_flag_spec=
  8794. whole_archive_flag_spec=
  8795. # include_expsyms should be a list of space-separated symbols to be *always*
  8796. # included in the symbol list
  8797. include_expsyms=
  8798. # exclude_expsyms can be an extended regexp of symbols to exclude
  8799. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8800. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8801. # as well as any symbol that contains `d'.
  8802. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8803. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8804. # platforms (ab)use it in PIC code, but their linkers get confused if
  8805. # the symbol is explicitly referenced. Since portable code cannot
  8806. # rely on this symbol name, it's probably fine to never include it in
  8807. # preloaded symbol tables.
  8808. # Exclude shared library initialization/finalization symbols.
  8809. extract_expsyms_cmds=
  8810. case $host_os in
  8811. cygwin* | mingw* | pw32* | cegcc*)
  8812. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8813. # When not using gcc, we currently assume that we are using
  8814. # Microsoft Visual C++.
  8815. if test "$GCC" != yes; then
  8816. with_gnu_ld=no
  8817. fi
  8818. ;;
  8819. interix*)
  8820. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8821. with_gnu_ld=yes
  8822. ;;
  8823. openbsd*)
  8824. with_gnu_ld=no
  8825. ;;
  8826. esac
  8827. ld_shlibs=yes
  8828. # On some targets, GNU ld is compatible enough with the native linker
  8829. # that we're better off using the native interface for both.
  8830. lt_use_gnu_ld_interface=no
  8831. if test "$with_gnu_ld" = yes; then
  8832. case $host_os in
  8833. aix*)
  8834. # The AIX port of GNU ld has always aspired to compatibility
  8835. # with the native linker. However, as the warning in the GNU ld
  8836. # block says, versions before 2.19.5* couldn't really create working
  8837. # shared libraries, regardless of the interface used.
  8838. case `$LD -v 2>&1` in
  8839. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8840. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8841. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8842. *)
  8843. lt_use_gnu_ld_interface=yes
  8844. ;;
  8845. esac
  8846. ;;
  8847. *)
  8848. lt_use_gnu_ld_interface=yes
  8849. ;;
  8850. esac
  8851. fi
  8852. if test "$lt_use_gnu_ld_interface" = yes; then
  8853. # If archive_cmds runs LD, not CC, wlarc should be empty
  8854. wlarc='${wl}'
  8855. # Set some defaults for GNU ld with shared library support. These
  8856. # are reset later if shared libraries are not supported. Putting them
  8857. # here allows them to be overridden if necessary.
  8858. runpath_var=LD_RUN_PATH
  8859. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8860. export_dynamic_flag_spec='${wl}--export-dynamic'
  8861. # ancient GNU ld didn't support --whole-archive et. al.
  8862. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8863. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8864. else
  8865. whole_archive_flag_spec=
  8866. fi
  8867. supports_anon_versioning=no
  8868. case `$LD -v 2>&1` in
  8869. *GNU\ gold*) supports_anon_versioning=yes ;;
  8870. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8871. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8872. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8873. *\ 2.11.*) ;; # other 2.11 versions
  8874. *) supports_anon_versioning=yes ;;
  8875. esac
  8876. # See if GNU ld supports shared libraries.
  8877. case $host_os in
  8878. aix[3-9]*)
  8879. # On AIX/PPC, the GNU linker is very broken
  8880. if test "$host_cpu" != ia64; then
  8881. ld_shlibs=no
  8882. cat <<_LT_EOF 1>&2
  8883. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8884. *** to be unable to reliably create shared libraries on AIX.
  8885. *** Therefore, libtool is disabling shared libraries support. If you
  8886. *** really care for shared libraries, you may want to install binutils
  8887. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8888. *** You will then need to restart the configuration process.
  8889. _LT_EOF
  8890. fi
  8891. ;;
  8892. amigaos*)
  8893. case $host_cpu in
  8894. powerpc)
  8895. # see comment about AmigaOS4 .so support
  8896. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8897. archive_expsym_cmds=''
  8898. ;;
  8899. m68k)
  8900. 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)'
  8901. hardcode_libdir_flag_spec='-L$libdir'
  8902. hardcode_minus_L=yes
  8903. ;;
  8904. esac
  8905. ;;
  8906. beos*)
  8907. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8908. allow_undefined_flag=unsupported
  8909. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8910. # support --undefined. This deserves some investigation. FIXME
  8911. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8912. else
  8913. ld_shlibs=no
  8914. fi
  8915. ;;
  8916. cygwin* | mingw* | pw32* | cegcc*)
  8917. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8918. # as there is no search path for DLLs.
  8919. hardcode_libdir_flag_spec='-L$libdir'
  8920. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8921. allow_undefined_flag=unsupported
  8922. always_export_symbols=no
  8923. enable_shared_with_static_runtimes=yes
  8924. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  8925. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8926. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8927. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8928. # If the export-symbols file already is a .def file (1st line
  8929. # is EXPORTS), use it as is; otherwise, prepend...
  8930. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8931. cp $export_symbols $output_objdir/$soname.def;
  8932. else
  8933. echo EXPORTS > $output_objdir/$soname.def;
  8934. cat $export_symbols >> $output_objdir/$soname.def;
  8935. fi~
  8936. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8937. else
  8938. ld_shlibs=no
  8939. fi
  8940. ;;
  8941. haiku*)
  8942. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8943. link_all_deplibs=yes
  8944. ;;
  8945. interix[3-9]*)
  8946. hardcode_direct=no
  8947. hardcode_shlibpath_var=no
  8948. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8949. export_dynamic_flag_spec='${wl}-E'
  8950. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8951. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8952. # default) and relocated if they conflict, which is a slow very memory
  8953. # consuming and fragmenting process. To avoid this, we pick a random,
  8954. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8955. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8956. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8957. 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'
  8958. ;;
  8959. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8960. tmp_diet=no
  8961. if test "$host_os" = linux-dietlibc; then
  8962. case $cc_basename in
  8963. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8964. esac
  8965. fi
  8966. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8967. && test "$tmp_diet" = no
  8968. then
  8969. tmp_addflag=' $pic_flag'
  8970. tmp_sharedflag='-shared'
  8971. case $cc_basename,$host_cpu in
  8972. pgcc*) # Portland Group C compiler
  8973. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8974. tmp_addflag=' $pic_flag'
  8975. ;;
  8976. pgf77* | pgf90* | pgf95* | pgfortran*)
  8977. # Portland Group f77 and f90 compilers
  8978. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8979. tmp_addflag=' $pic_flag -Mnomain' ;;
  8980. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8981. tmp_addflag=' -i_dynamic' ;;
  8982. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8983. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8984. ifc* | ifort*) # Intel Fortran compiler
  8985. tmp_addflag=' -nofor_main' ;;
  8986. lf95*) # Lahey Fortran 8.1
  8987. whole_archive_flag_spec=
  8988. tmp_sharedflag='--shared' ;;
  8989. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8990. tmp_sharedflag='-qmkshrobj'
  8991. tmp_addflag= ;;
  8992. nvcc*) # Cuda Compiler Driver 2.2
  8993. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8994. compiler_needs_object=yes
  8995. ;;
  8996. esac
  8997. case `$CC -V 2>&1 | sed 5q` in
  8998. *Sun\ C*) # Sun C 5.9
  8999. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  9000. compiler_needs_object=yes
  9001. tmp_sharedflag='-G' ;;
  9002. *Sun\ F*) # Sun Fortran 8.3
  9003. tmp_sharedflag='-G' ;;
  9004. esac
  9005. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9006. if test "x$supports_anon_versioning" = xyes; then
  9007. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9008. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9009. echo "local: *; };" >> $output_objdir/$libname.ver~
  9010. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  9011. fi
  9012. case $cc_basename in
  9013. xlf* | bgf* | bgxlf* | mpixlf*)
  9014. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9015. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9016. hardcode_libdir_flag_spec=
  9017. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  9018. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9019. if test "x$supports_anon_versioning" = xyes; then
  9020. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9021. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9022. echo "local: *; };" >> $output_objdir/$libname.ver~
  9023. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9024. fi
  9025. ;;
  9026. esac
  9027. else
  9028. ld_shlibs=no
  9029. fi
  9030. ;;
  9031. netbsd*)
  9032. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9033. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9034. wlarc=
  9035. else
  9036. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9037. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9038. fi
  9039. ;;
  9040. solaris*)
  9041. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9042. ld_shlibs=no
  9043. cat <<_LT_EOF 1>&2
  9044. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9045. *** create shared libraries on Solaris systems. Therefore, libtool
  9046. *** is disabling shared libraries support. We urge you to upgrade GNU
  9047. *** binutils to release 2.9.1 or newer. Another option is to modify
  9048. *** your PATH or compiler configuration so that the native linker is
  9049. *** used, and then restart.
  9050. _LT_EOF
  9051. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9052. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9053. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9054. else
  9055. ld_shlibs=no
  9056. fi
  9057. ;;
  9058. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9059. case `$LD -v 2>&1` in
  9060. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9061. ld_shlibs=no
  9062. cat <<_LT_EOF 1>&2
  9063. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  9064. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9065. *** is disabling shared libraries support. We urge you to upgrade GNU
  9066. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9067. *** your PATH or compiler configuration so that the native linker is
  9068. *** used, and then restart.
  9069. _LT_EOF
  9070. ;;
  9071. *)
  9072. # For security reasons, it is highly recommended that you always
  9073. # use absolute paths for naming shared libraries, and exclude the
  9074. # DT_RUNPATH tag from executables and libraries. But doing so
  9075. # requires that you compile everything twice, which is a pain.
  9076. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9077. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9078. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9079. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9080. else
  9081. ld_shlibs=no
  9082. fi
  9083. ;;
  9084. esac
  9085. ;;
  9086. sunos4*)
  9087. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9088. wlarc=
  9089. hardcode_direct=yes
  9090. hardcode_shlibpath_var=no
  9091. ;;
  9092. *)
  9093. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9094. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9095. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9096. else
  9097. ld_shlibs=no
  9098. fi
  9099. ;;
  9100. esac
  9101. if test "$ld_shlibs" = no; then
  9102. runpath_var=
  9103. hardcode_libdir_flag_spec=
  9104. export_dynamic_flag_spec=
  9105. whole_archive_flag_spec=
  9106. fi
  9107. else
  9108. # PORTME fill in a description of your system's linker (not GNU ld)
  9109. case $host_os in
  9110. aix3*)
  9111. allow_undefined_flag=unsupported
  9112. always_export_symbols=yes
  9113. 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'
  9114. # Note: this linker hardcodes the directories in LIBPATH if there
  9115. # are no directories specified by -L.
  9116. hardcode_minus_L=yes
  9117. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  9118. # Neither direct hardcoding nor static linking is supported with a
  9119. # broken collect2.
  9120. hardcode_direct=unsupported
  9121. fi
  9122. ;;
  9123. aix[4-9]*)
  9124. if test "$host_cpu" = ia64; then
  9125. # On IA64, the linker does run time linking by default, so we don't
  9126. # have to do anything special.
  9127. aix_use_runtimelinking=no
  9128. exp_sym_flag='-Bexport'
  9129. no_entry_flag=""
  9130. else
  9131. # If we're using GNU nm, then we don't want the "-C" option.
  9132. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9133. # Also, AIX nm treats weak defined symbols like other global
  9134. # defined symbols, whereas GNU nm marks them as "W".
  9135. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9136. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  9137. else
  9138. 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'
  9139. fi
  9140. aix_use_runtimelinking=no
  9141. # Test if we are trying to use run time linking or normal
  9142. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9143. # need to do runtime linking.
  9144. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9145. for ld_flag in $LDFLAGS; do
  9146. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  9147. aix_use_runtimelinking=yes
  9148. break
  9149. fi
  9150. done
  9151. ;;
  9152. esac
  9153. exp_sym_flag='-bexport'
  9154. no_entry_flag='-bnoentry'
  9155. fi
  9156. # When large executables or shared objects are built, AIX ld can
  9157. # have problems creating the table of contents. If linking a library
  9158. # or program results in "error TOC overflow" add -mminimal-toc to
  9159. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9160. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9161. archive_cmds=''
  9162. hardcode_direct=yes
  9163. hardcode_direct_absolute=yes
  9164. hardcode_libdir_separator=':'
  9165. link_all_deplibs=yes
  9166. file_list_spec='${wl}-f,'
  9167. if test "$GCC" = yes; then
  9168. case $host_os in aix4.[012]|aix4.[012].*)
  9169. # We only want to do this on AIX 4.2 and lower, the check
  9170. # below for broken collect2 doesn't work under 4.3+
  9171. collect2name=`${CC} -print-prog-name=collect2`
  9172. if test -f "$collect2name" &&
  9173. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9174. then
  9175. # We have reworked collect2
  9176. :
  9177. else
  9178. # We have old collect2
  9179. hardcode_direct=unsupported
  9180. # It fails to find uninstalled libraries when the uninstalled
  9181. # path is not listed in the libpath. Setting hardcode_minus_L
  9182. # to unsupported forces relinking
  9183. hardcode_minus_L=yes
  9184. hardcode_libdir_flag_spec='-L$libdir'
  9185. hardcode_libdir_separator=
  9186. fi
  9187. ;;
  9188. esac
  9189. shared_flag='-shared'
  9190. if test "$aix_use_runtimelinking" = yes; then
  9191. shared_flag="$shared_flag "'${wl}-G'
  9192. fi
  9193. else
  9194. # not using gcc
  9195. if test "$host_cpu" = ia64; then
  9196. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9197. # chokes on -Wl,-G. The following line is correct:
  9198. shared_flag='-G'
  9199. else
  9200. if test "$aix_use_runtimelinking" = yes; then
  9201. shared_flag='${wl}-G'
  9202. else
  9203. shared_flag='${wl}-bM:SRE'
  9204. fi
  9205. fi
  9206. fi
  9207. export_dynamic_flag_spec='${wl}-bexpall'
  9208. # It seems that -bexpall does not export symbols beginning with
  9209. # underscore (_), so it is better to generate a list of symbols to export.
  9210. always_export_symbols=yes
  9211. if test "$aix_use_runtimelinking" = yes; then
  9212. # Warning - without using the other runtime loading flags (-brtl),
  9213. # -berok will link without error, but may produce a broken library.
  9214. allow_undefined_flag='-berok'
  9215. # Determine the default libpath from the value encoded in an
  9216. # empty executable.
  9217. if test "${lt_cv_aix_libpath+set}" = set; then
  9218. aix_libpath=$lt_cv_aix_libpath
  9219. else
  9220. if ${lt_cv_aix_libpath_+:} false; then :
  9221. $as_echo_n "(cached) " >&6
  9222. else
  9223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9224. /* end confdefs.h. */
  9225. int
  9226. main ()
  9227. {
  9228. ;
  9229. return 0;
  9230. }
  9231. _ACEOF
  9232. if ac_fn_c_try_link "$LINENO"; then :
  9233. lt_aix_libpath_sed='
  9234. /Import File Strings/,/^$/ {
  9235. /^0/ {
  9236. s/^0 *\([^ ]*\) *$/\1/
  9237. p
  9238. }
  9239. }'
  9240. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9241. # Check for a 64-bit object if we didn't find anything.
  9242. if test -z "$lt_cv_aix_libpath_"; then
  9243. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9244. fi
  9245. fi
  9246. rm -f core conftest.err conftest.$ac_objext \
  9247. conftest$ac_exeext conftest.$ac_ext
  9248. if test -z "$lt_cv_aix_libpath_"; then
  9249. lt_cv_aix_libpath_="/usr/lib:/lib"
  9250. fi
  9251. fi
  9252. aix_libpath=$lt_cv_aix_libpath_
  9253. fi
  9254. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9255. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  9256. else
  9257. if test "$host_cpu" = ia64; then
  9258. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  9259. allow_undefined_flag="-z nodefs"
  9260. 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"
  9261. else
  9262. # Determine the default libpath from the value encoded in an
  9263. # empty executable.
  9264. if test "${lt_cv_aix_libpath+set}" = set; then
  9265. aix_libpath=$lt_cv_aix_libpath
  9266. else
  9267. if ${lt_cv_aix_libpath_+:} false; then :
  9268. $as_echo_n "(cached) " >&6
  9269. else
  9270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9271. /* end confdefs.h. */
  9272. int
  9273. main ()
  9274. {
  9275. ;
  9276. return 0;
  9277. }
  9278. _ACEOF
  9279. if ac_fn_c_try_link "$LINENO"; then :
  9280. lt_aix_libpath_sed='
  9281. /Import File Strings/,/^$/ {
  9282. /^0/ {
  9283. s/^0 *\([^ ]*\) *$/\1/
  9284. p
  9285. }
  9286. }'
  9287. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9288. # Check for a 64-bit object if we didn't find anything.
  9289. if test -z "$lt_cv_aix_libpath_"; then
  9290. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9291. fi
  9292. fi
  9293. rm -f core conftest.err conftest.$ac_objext \
  9294. conftest$ac_exeext conftest.$ac_ext
  9295. if test -z "$lt_cv_aix_libpath_"; then
  9296. lt_cv_aix_libpath_="/usr/lib:/lib"
  9297. fi
  9298. fi
  9299. aix_libpath=$lt_cv_aix_libpath_
  9300. fi
  9301. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9302. # Warning - without using the other run time loading flags,
  9303. # -berok will link without error, but may produce a broken library.
  9304. no_undefined_flag=' ${wl}-bernotok'
  9305. allow_undefined_flag=' ${wl}-berok'
  9306. if test "$with_gnu_ld" = yes; then
  9307. # We only use this code for GNU lds that support --whole-archive.
  9308. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9309. else
  9310. # Exported symbols can be pulled into shared objects from archives
  9311. whole_archive_flag_spec='$convenience'
  9312. fi
  9313. archive_cmds_need_lc=yes
  9314. # This is similar to how AIX traditionally builds its shared libraries.
  9315. 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'
  9316. fi
  9317. fi
  9318. ;;
  9319. amigaos*)
  9320. case $host_cpu in
  9321. powerpc)
  9322. # see comment about AmigaOS4 .so support
  9323. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9324. archive_expsym_cmds=''
  9325. ;;
  9326. m68k)
  9327. 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)'
  9328. hardcode_libdir_flag_spec='-L$libdir'
  9329. hardcode_minus_L=yes
  9330. ;;
  9331. esac
  9332. ;;
  9333. bsdi[45]*)
  9334. export_dynamic_flag_spec=-rdynamic
  9335. ;;
  9336. cygwin* | mingw* | pw32* | cegcc*)
  9337. # When not using gcc, we currently assume that we are using
  9338. # Microsoft Visual C++.
  9339. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9340. # no search path for DLLs.
  9341. case $cc_basename in
  9342. cl*)
  9343. # Native MSVC
  9344. hardcode_libdir_flag_spec=' '
  9345. allow_undefined_flag=unsupported
  9346. always_export_symbols=yes
  9347. file_list_spec='@'
  9348. # Tell ltmain to make .lib files, not .a files.
  9349. libext=lib
  9350. # Tell ltmain to make .dll files, not .so files.
  9351. shrext_cmds=".dll"
  9352. # FIXME: Setting linknames here is a bad hack.
  9353. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  9354. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9355. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  9356. else
  9357. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  9358. fi~
  9359. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9360. linknames='
  9361. # The linker will not automatically build a static lib if we build a DLL.
  9362. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9363. enable_shared_with_static_runtimes=yes
  9364. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9365. # Don't use ranlib
  9366. old_postinstall_cmds='chmod 644 $oldlib'
  9367. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9368. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9369. case $lt_outputfile in
  9370. *.exe|*.EXE) ;;
  9371. *)
  9372. lt_outputfile="$lt_outputfile.exe"
  9373. lt_tool_outputfile="$lt_tool_outputfile.exe"
  9374. ;;
  9375. esac~
  9376. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  9377. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9378. $RM "$lt_outputfile.manifest";
  9379. fi'
  9380. ;;
  9381. *)
  9382. # Assume MSVC wrapper
  9383. hardcode_libdir_flag_spec=' '
  9384. allow_undefined_flag=unsupported
  9385. # Tell ltmain to make .lib files, not .a files.
  9386. libext=lib
  9387. # Tell ltmain to make .dll files, not .so files.
  9388. shrext_cmds=".dll"
  9389. # FIXME: Setting linknames here is a bad hack.
  9390. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9391. # The linker will automatically build a .lib file if we build a DLL.
  9392. old_archive_from_new_cmds='true'
  9393. # FIXME: Should let the user specify the lib program.
  9394. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9395. enable_shared_with_static_runtimes=yes
  9396. ;;
  9397. esac
  9398. ;;
  9399. darwin* | rhapsody*)
  9400. archive_cmds_need_lc=no
  9401. hardcode_direct=no
  9402. hardcode_automatic=yes
  9403. hardcode_shlibpath_var=unsupported
  9404. if test "$lt_cv_ld_force_load" = "yes"; then
  9405. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  9406. else
  9407. whole_archive_flag_spec=''
  9408. fi
  9409. link_all_deplibs=yes
  9410. allow_undefined_flag="$_lt_dar_allow_undefined"
  9411. case $cc_basename in
  9412. ifort*) _lt_dar_can_shared=yes ;;
  9413. *) _lt_dar_can_shared=$GCC ;;
  9414. esac
  9415. if test "$_lt_dar_can_shared" = "yes"; then
  9416. output_verbose_link_cmd=func_echo_all
  9417. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9418. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9419. 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}"
  9420. 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}"
  9421. else
  9422. ld_shlibs=no
  9423. fi
  9424. ;;
  9425. dgux*)
  9426. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9427. hardcode_libdir_flag_spec='-L$libdir'
  9428. hardcode_shlibpath_var=no
  9429. ;;
  9430. freebsd1*)
  9431. ld_shlibs=no
  9432. ;;
  9433. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9434. # support. Future versions do this automatically, but an explicit c++rt0.o
  9435. # does not break anything, and helps significantly (at the cost of a little
  9436. # extra space).
  9437. freebsd2.2*)
  9438. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9439. hardcode_libdir_flag_spec='-R$libdir'
  9440. hardcode_direct=yes
  9441. hardcode_shlibpath_var=no
  9442. ;;
  9443. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9444. freebsd2*)
  9445. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9446. hardcode_direct=yes
  9447. hardcode_minus_L=yes
  9448. hardcode_shlibpath_var=no
  9449. ;;
  9450. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9451. freebsd* | dragonfly*)
  9452. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9453. hardcode_libdir_flag_spec='-R$libdir'
  9454. hardcode_direct=yes
  9455. hardcode_shlibpath_var=no
  9456. ;;
  9457. hpux9*)
  9458. if test "$GCC" = yes; then
  9459. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9460. else
  9461. 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'
  9462. fi
  9463. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9464. hardcode_libdir_separator=:
  9465. hardcode_direct=yes
  9466. # hardcode_minus_L: Not really in the search PATH,
  9467. # but as the default location of the library.
  9468. hardcode_minus_L=yes
  9469. export_dynamic_flag_spec='${wl}-E'
  9470. ;;
  9471. hpux10*)
  9472. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9473. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9474. else
  9475. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9476. fi
  9477. if test "$with_gnu_ld" = no; then
  9478. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9479. hardcode_libdir_flag_spec_ld='+b $libdir'
  9480. hardcode_libdir_separator=:
  9481. hardcode_direct=yes
  9482. hardcode_direct_absolute=yes
  9483. export_dynamic_flag_spec='${wl}-E'
  9484. # hardcode_minus_L: Not really in the search PATH,
  9485. # but as the default location of the library.
  9486. hardcode_minus_L=yes
  9487. fi
  9488. ;;
  9489. hpux11*)
  9490. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9491. case $host_cpu in
  9492. hppa*64*)
  9493. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9494. ;;
  9495. ia64*)
  9496. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9497. ;;
  9498. *)
  9499. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9500. ;;
  9501. esac
  9502. else
  9503. case $host_cpu in
  9504. hppa*64*)
  9505. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9506. ;;
  9507. ia64*)
  9508. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9509. ;;
  9510. *)
  9511. # Older versions of the 11.00 compiler do not understand -b yet
  9512. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9514. $as_echo_n "checking if $CC understands -b... " >&6; }
  9515. if ${lt_cv_prog_compiler__b+:} false; then :
  9516. $as_echo_n "(cached) " >&6
  9517. else
  9518. lt_cv_prog_compiler__b=no
  9519. save_LDFLAGS="$LDFLAGS"
  9520. LDFLAGS="$LDFLAGS -b"
  9521. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9522. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9523. # The linker can only warn and ignore the option if not recognized
  9524. # So say no if there are warnings
  9525. if test -s conftest.err; then
  9526. # Append any errors to the config.log.
  9527. cat conftest.err 1>&5
  9528. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9529. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9530. if diff conftest.exp conftest.er2 >/dev/null; then
  9531. lt_cv_prog_compiler__b=yes
  9532. fi
  9533. else
  9534. lt_cv_prog_compiler__b=yes
  9535. fi
  9536. fi
  9537. $RM -r conftest*
  9538. LDFLAGS="$save_LDFLAGS"
  9539. fi
  9540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9541. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9542. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9543. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9544. else
  9545. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9546. fi
  9547. ;;
  9548. esac
  9549. fi
  9550. if test "$with_gnu_ld" = no; then
  9551. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9552. hardcode_libdir_separator=:
  9553. case $host_cpu in
  9554. hppa*64*|ia64*)
  9555. hardcode_direct=no
  9556. hardcode_shlibpath_var=no
  9557. ;;
  9558. *)
  9559. hardcode_direct=yes
  9560. hardcode_direct_absolute=yes
  9561. export_dynamic_flag_spec='${wl}-E'
  9562. # hardcode_minus_L: Not really in the search PATH,
  9563. # but as the default location of the library.
  9564. hardcode_minus_L=yes
  9565. ;;
  9566. esac
  9567. fi
  9568. ;;
  9569. irix5* | irix6* | nonstopux*)
  9570. if test "$GCC" = yes; then
  9571. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9572. # Try to use the -exported_symbol ld option, if it does not
  9573. # work, assume that -exports_file does not work either and
  9574. # implicitly export all symbols.
  9575. # This should be the same for all languages, so no per-tag cache variable.
  9576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9577. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9578. if ${lt_cv_irix_exported_symbol+:} false; then :
  9579. $as_echo_n "(cached) " >&6
  9580. else
  9581. save_LDFLAGS="$LDFLAGS"
  9582. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9584. /* end confdefs.h. */
  9585. int foo (void) { return 0; }
  9586. _ACEOF
  9587. if ac_fn_c_try_link "$LINENO"; then :
  9588. lt_cv_irix_exported_symbol=yes
  9589. else
  9590. lt_cv_irix_exported_symbol=no
  9591. fi
  9592. rm -f core conftest.err conftest.$ac_objext \
  9593. conftest$ac_exeext conftest.$ac_ext
  9594. LDFLAGS="$save_LDFLAGS"
  9595. fi
  9596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9597. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9598. if test "$lt_cv_irix_exported_symbol" = yes; then
  9599. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  9600. fi
  9601. else
  9602. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  9603. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  9604. fi
  9605. archive_cmds_need_lc='no'
  9606. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9607. hardcode_libdir_separator=:
  9608. inherit_rpath=yes
  9609. link_all_deplibs=yes
  9610. ;;
  9611. netbsd*)
  9612. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9613. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9614. else
  9615. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9616. fi
  9617. hardcode_libdir_flag_spec='-R$libdir'
  9618. hardcode_direct=yes
  9619. hardcode_shlibpath_var=no
  9620. ;;
  9621. newsos6)
  9622. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9623. hardcode_direct=yes
  9624. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9625. hardcode_libdir_separator=:
  9626. hardcode_shlibpath_var=no
  9627. ;;
  9628. *nto* | *qnx*)
  9629. ;;
  9630. openbsd*)
  9631. if test -f /usr/libexec/ld.so; then
  9632. hardcode_direct=yes
  9633. hardcode_shlibpath_var=no
  9634. hardcode_direct_absolute=yes
  9635. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9636. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9637. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9638. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9639. export_dynamic_flag_spec='${wl}-E'
  9640. else
  9641. case $host_os in
  9642. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9643. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9644. hardcode_libdir_flag_spec='-R$libdir'
  9645. ;;
  9646. *)
  9647. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9648. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9649. ;;
  9650. esac
  9651. fi
  9652. else
  9653. ld_shlibs=no
  9654. fi
  9655. ;;
  9656. os2*)
  9657. hardcode_libdir_flag_spec='-L$libdir'
  9658. hardcode_minus_L=yes
  9659. allow_undefined_flag=unsupported
  9660. 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'
  9661. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9662. ;;
  9663. osf3*)
  9664. if test "$GCC" = yes; then
  9665. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9666. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9667. else
  9668. allow_undefined_flag=' -expect_unresolved \*'
  9669. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  9670. fi
  9671. archive_cmds_need_lc='no'
  9672. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9673. hardcode_libdir_separator=:
  9674. ;;
  9675. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9676. if test "$GCC" = yes; then
  9677. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9678. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9679. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9680. else
  9681. allow_undefined_flag=' -expect_unresolved \*'
  9682. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  9683. 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~
  9684. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  9685. # Both c and cxx compiler support -rpath directly
  9686. hardcode_libdir_flag_spec='-rpath $libdir'
  9687. fi
  9688. archive_cmds_need_lc='no'
  9689. hardcode_libdir_separator=:
  9690. ;;
  9691. solaris*)
  9692. no_undefined_flag=' -z defs'
  9693. if test "$GCC" = yes; then
  9694. wlarc='${wl}'
  9695. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9696. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9697. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9698. else
  9699. case `$CC -V 2>&1` in
  9700. *"Compilers 5.0"*)
  9701. wlarc=''
  9702. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9703. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9704. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9705. ;;
  9706. *)
  9707. wlarc='${wl}'
  9708. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9709. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9710. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9711. ;;
  9712. esac
  9713. fi
  9714. hardcode_libdir_flag_spec='-R$libdir'
  9715. hardcode_shlibpath_var=no
  9716. case $host_os in
  9717. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9718. *)
  9719. # The compiler driver will combine and reorder linker options,
  9720. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9721. # but is careful enough not to reorder.
  9722. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9723. if test "$GCC" = yes; then
  9724. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9725. else
  9726. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9727. fi
  9728. ;;
  9729. esac
  9730. link_all_deplibs=yes
  9731. ;;
  9732. sunos4*)
  9733. if test "x$host_vendor" = xsequent; then
  9734. # Use $CC to link under sequent, because it throws in some extra .o
  9735. # files that make .init and .fini sections work.
  9736. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9737. else
  9738. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9739. fi
  9740. hardcode_libdir_flag_spec='-L$libdir'
  9741. hardcode_direct=yes
  9742. hardcode_minus_L=yes
  9743. hardcode_shlibpath_var=no
  9744. ;;
  9745. sysv4)
  9746. case $host_vendor in
  9747. sni)
  9748. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9749. hardcode_direct=yes # is this really true???
  9750. ;;
  9751. siemens)
  9752. ## LD is ld it makes a PLAMLIB
  9753. ## CC just makes a GrossModule.
  9754. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9755. reload_cmds='$CC -r -o $output$reload_objs'
  9756. hardcode_direct=no
  9757. ;;
  9758. motorola)
  9759. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9760. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9761. ;;
  9762. esac
  9763. runpath_var='LD_RUN_PATH'
  9764. hardcode_shlibpath_var=no
  9765. ;;
  9766. sysv4.3*)
  9767. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9768. hardcode_shlibpath_var=no
  9769. export_dynamic_flag_spec='-Bexport'
  9770. ;;
  9771. sysv4*MP*)
  9772. if test -d /usr/nec; then
  9773. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9774. hardcode_shlibpath_var=no
  9775. runpath_var=LD_RUN_PATH
  9776. hardcode_runpath_var=yes
  9777. ld_shlibs=yes
  9778. fi
  9779. ;;
  9780. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9781. no_undefined_flag='${wl}-z,text'
  9782. archive_cmds_need_lc=no
  9783. hardcode_shlibpath_var=no
  9784. runpath_var='LD_RUN_PATH'
  9785. if test "$GCC" = yes; then
  9786. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9787. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9788. else
  9789. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9790. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9791. fi
  9792. ;;
  9793. sysv5* | sco3.2v5* | sco5v6*)
  9794. # Note: We can NOT use -z defs as we might desire, because we do not
  9795. # link with -lc, and that would cause any symbols used from libc to
  9796. # always be unresolved, which means just about no library would
  9797. # ever link correctly. If we're not using GNU ld we use -z text
  9798. # though, which does catch some bad symbols but isn't as heavy-handed
  9799. # as -z defs.
  9800. no_undefined_flag='${wl}-z,text'
  9801. allow_undefined_flag='${wl}-z,nodefs'
  9802. archive_cmds_need_lc=no
  9803. hardcode_shlibpath_var=no
  9804. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9805. hardcode_libdir_separator=':'
  9806. link_all_deplibs=yes
  9807. export_dynamic_flag_spec='${wl}-Bexport'
  9808. runpath_var='LD_RUN_PATH'
  9809. if test "$GCC" = yes; then
  9810. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9811. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9812. else
  9813. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9814. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9815. fi
  9816. ;;
  9817. uts4*)
  9818. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9819. hardcode_libdir_flag_spec='-L$libdir'
  9820. hardcode_shlibpath_var=no
  9821. ;;
  9822. *)
  9823. ld_shlibs=no
  9824. ;;
  9825. esac
  9826. if test x$host_vendor = xsni; then
  9827. case $host in
  9828. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9829. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9830. ;;
  9831. esac
  9832. fi
  9833. fi
  9834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9835. $as_echo "$ld_shlibs" >&6; }
  9836. test "$ld_shlibs" = no && can_build_shared=no
  9837. with_gnu_ld=$with_gnu_ld
  9838. #
  9839. # Do we need to explicitly link libc?
  9840. #
  9841. case "x$archive_cmds_need_lc" in
  9842. x|xyes)
  9843. # Assume -lc should be added
  9844. archive_cmds_need_lc=yes
  9845. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9846. case $archive_cmds in
  9847. *'~'*)
  9848. # FIXME: we may have to deal with multi-command sequences.
  9849. ;;
  9850. '$CC '*)
  9851. # Test whether the compiler implicitly links with -lc since on some
  9852. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9853. # to ld, don't add -lc before -lgcc.
  9854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9855. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9856. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9857. $as_echo_n "(cached) " >&6
  9858. else
  9859. $RM conftest*
  9860. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9861. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9862. (eval $ac_compile) 2>&5
  9863. ac_status=$?
  9864. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9865. test $ac_status = 0; } 2>conftest.err; then
  9866. soname=conftest
  9867. lib=conftest
  9868. libobjs=conftest.$ac_objext
  9869. deplibs=
  9870. wl=$lt_prog_compiler_wl
  9871. pic_flag=$lt_prog_compiler_pic
  9872. compiler_flags=-v
  9873. linker_flags=-v
  9874. verstring=
  9875. output_objdir=.
  9876. libname=conftest
  9877. lt_save_allow_undefined_flag=$allow_undefined_flag
  9878. allow_undefined_flag=
  9879. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9880. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9881. ac_status=$?
  9882. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9883. test $ac_status = 0; }
  9884. then
  9885. lt_cv_archive_cmds_need_lc=no
  9886. else
  9887. lt_cv_archive_cmds_need_lc=yes
  9888. fi
  9889. allow_undefined_flag=$lt_save_allow_undefined_flag
  9890. else
  9891. cat conftest.err 1>&5
  9892. fi
  9893. $RM conftest*
  9894. fi
  9895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9896. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9897. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9898. ;;
  9899. esac
  9900. fi
  9901. ;;
  9902. esac
  9903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9904. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9905. if test "$GCC" = yes; then
  9906. case $host_os in
  9907. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9908. *) lt_awk_arg="/^libraries:/" ;;
  9909. esac
  9910. case $host_os in
  9911. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9912. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9913. esac
  9914. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9915. case $lt_search_path_spec in
  9916. *\;*)
  9917. # if the path contains ";" then we assume it to be the separator
  9918. # otherwise default to the standard path separator (i.e. ":") - it is
  9919. # assumed that no part of a normal pathname contains ";" but that should
  9920. # okay in the real world where ";" in dirpaths is itself problematic.
  9921. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9922. ;;
  9923. *)
  9924. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9925. ;;
  9926. esac
  9927. # Ok, now we have the path, separated by spaces, we can step through it
  9928. # and add multilib dir if necessary.
  9929. lt_tmp_lt_search_path_spec=
  9930. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9931. for lt_sys_path in $lt_search_path_spec; do
  9932. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9933. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9934. else
  9935. test -d "$lt_sys_path" && \
  9936. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9937. fi
  9938. done
  9939. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9940. BEGIN {RS=" "; FS="/|\n";} {
  9941. lt_foo="";
  9942. lt_count=0;
  9943. for (lt_i = NF; lt_i > 0; lt_i--) {
  9944. if ($lt_i != "" && $lt_i != ".") {
  9945. if ($lt_i == "..") {
  9946. lt_count++;
  9947. } else {
  9948. if (lt_count == 0) {
  9949. lt_foo="/" $lt_i lt_foo;
  9950. } else {
  9951. lt_count--;
  9952. }
  9953. }
  9954. }
  9955. }
  9956. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9957. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9958. }'`
  9959. # AWK program above erroneously prepends '/' to C:/dos/paths
  9960. # for these hosts.
  9961. case $host_os in
  9962. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9963. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9964. esac
  9965. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9966. else
  9967. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9968. fi
  9969. library_names_spec=
  9970. libname_spec='lib$name'
  9971. soname_spec=
  9972. shrext_cmds=".so"
  9973. postinstall_cmds=
  9974. postuninstall_cmds=
  9975. finish_cmds=
  9976. finish_eval=
  9977. shlibpath_var=
  9978. shlibpath_overrides_runpath=unknown
  9979. version_type=none
  9980. dynamic_linker="$host_os ld.so"
  9981. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9982. need_lib_prefix=unknown
  9983. hardcode_into_libs=no
  9984. # when you set need_version to no, make sure it does not cause -set_version
  9985. # flags to be left without arguments
  9986. need_version=unknown
  9987. case $host_os in
  9988. aix3*)
  9989. version_type=linux
  9990. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9991. shlibpath_var=LIBPATH
  9992. # AIX 3 has no versioning support, so we append a major version to the name.
  9993. soname_spec='${libname}${release}${shared_ext}$major'
  9994. ;;
  9995. aix[4-9]*)
  9996. version_type=linux
  9997. need_lib_prefix=no
  9998. need_version=no
  9999. hardcode_into_libs=yes
  10000. if test "$host_cpu" = ia64; then
  10001. # AIX 5 supports IA64
  10002. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  10003. shlibpath_var=LD_LIBRARY_PATH
  10004. else
  10005. # With GCC up to 2.95.x, collect2 would create an import file
  10006. # for dependence libraries. The import file would start with
  10007. # the line `#! .'. This would cause the generated library to
  10008. # depend on `.', always an invalid library. This was fixed in
  10009. # development snapshots of GCC prior to 3.0.
  10010. case $host_os in
  10011. aix4 | aix4.[01] | aix4.[01].*)
  10012. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10013. echo ' yes '
  10014. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  10015. :
  10016. else
  10017. can_build_shared=no
  10018. fi
  10019. ;;
  10020. esac
  10021. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  10022. # soname into executable. Probably we can add versioning support to
  10023. # collect2, so additional links can be useful in future.
  10024. if test "$aix_use_runtimelinking" = yes; then
  10025. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10026. # instead of lib<name>.a to let people know that these are not
  10027. # typical AIX shared libraries.
  10028. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10029. else
  10030. # We preserve .a as extension for shared libraries through AIX4.2
  10031. # and later when we are not doing run time linking.
  10032. library_names_spec='${libname}${release}.a $libname.a'
  10033. soname_spec='${libname}${release}${shared_ext}$major'
  10034. fi
  10035. shlibpath_var=LIBPATH
  10036. fi
  10037. ;;
  10038. amigaos*)
  10039. case $host_cpu in
  10040. powerpc)
  10041. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10042. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10043. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10044. ;;
  10045. m68k)
  10046. library_names_spec='$libname.ixlibrary $libname.a'
  10047. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10048. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  10049. ;;
  10050. esac
  10051. ;;
  10052. beos*)
  10053. library_names_spec='${libname}${shared_ext}'
  10054. dynamic_linker="$host_os ld.so"
  10055. shlibpath_var=LIBRARY_PATH
  10056. ;;
  10057. bsdi[45]*)
  10058. version_type=linux
  10059. need_version=no
  10060. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10061. soname_spec='${libname}${release}${shared_ext}$major'
  10062. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10063. shlibpath_var=LD_LIBRARY_PATH
  10064. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10065. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10066. # the default ld.so.conf also contains /usr/contrib/lib and
  10067. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10068. # libtool to hard-code these into programs
  10069. ;;
  10070. cygwin* | mingw* | pw32* | cegcc*)
  10071. version_type=windows
  10072. shrext_cmds=".dll"
  10073. need_version=no
  10074. need_lib_prefix=no
  10075. case $GCC,$cc_basename in
  10076. yes,*)
  10077. # gcc
  10078. library_names_spec='$libname.dll.a'
  10079. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10080. postinstall_cmds='base_file=`basename \${file}`~
  10081. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  10082. dldir=$destdir/`dirname \$dlpath`~
  10083. test -d \$dldir || mkdir -p \$dldir~
  10084. $install_prog $dir/$dlname \$dldir/$dlname~
  10085. chmod a+x \$dldir/$dlname~
  10086. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10087. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10088. fi'
  10089. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10090. dlpath=$dir/\$dldll~
  10091. $RM \$dlpath'
  10092. shlibpath_overrides_runpath=yes
  10093. case $host_os in
  10094. cygwin*)
  10095. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10096. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10097. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10098. ;;
  10099. mingw* | cegcc*)
  10100. # MinGW DLLs use traditional 'lib' prefix
  10101. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10102. ;;
  10103. pw32*)
  10104. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10105. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10106. ;;
  10107. esac
  10108. dynamic_linker='Win32 ld.exe'
  10109. ;;
  10110. *,cl*)
  10111. # Native MSVC
  10112. libname_spec='$name'
  10113. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10114. library_names_spec='${libname}.dll.lib'
  10115. case $build_os in
  10116. mingw*)
  10117. sys_lib_search_path_spec=
  10118. lt_save_ifs=$IFS
  10119. IFS=';'
  10120. for lt_path in $LIB
  10121. do
  10122. IFS=$lt_save_ifs
  10123. # Let DOS variable expansion print the short 8.3 style file name.
  10124. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10125. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10126. done
  10127. IFS=$lt_save_ifs
  10128. # Convert to MSYS style.
  10129. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10130. ;;
  10131. cygwin*)
  10132. # Convert to unix form, then to dos form, then back to unix form
  10133. # but this time dos style (no spaces!) so that the unix form looks
  10134. # like /cygdrive/c/PROGRA~1:/cygdr...
  10135. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10136. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10137. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10138. ;;
  10139. *)
  10140. sys_lib_search_path_spec="$LIB"
  10141. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10142. # It is most probably a Windows format PATH.
  10143. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10144. else
  10145. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10146. fi
  10147. # FIXME: find the short name or the path components, as spaces are
  10148. # common. (e.g. "Program Files" -> "PROGRA~1")
  10149. ;;
  10150. esac
  10151. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10152. postinstall_cmds='base_file=`basename \${file}`~
  10153. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  10154. dldir=$destdir/`dirname \$dlpath`~
  10155. test -d \$dldir || mkdir -p \$dldir~
  10156. $install_prog $dir/$dlname \$dldir/$dlname'
  10157. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10158. dlpath=$dir/\$dldll~
  10159. $RM \$dlpath'
  10160. shlibpath_overrides_runpath=yes
  10161. dynamic_linker='Win32 link.exe'
  10162. ;;
  10163. *)
  10164. # Assume MSVC wrapper
  10165. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  10166. dynamic_linker='Win32 ld.exe'
  10167. ;;
  10168. esac
  10169. # FIXME: first we should search . and the directory the executable is in
  10170. shlibpath_var=PATH
  10171. ;;
  10172. darwin* | rhapsody*)
  10173. dynamic_linker="$host_os dyld"
  10174. version_type=darwin
  10175. need_lib_prefix=no
  10176. need_version=no
  10177. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  10178. soname_spec='${libname}${release}${major}$shared_ext'
  10179. shlibpath_overrides_runpath=yes
  10180. shlibpath_var=DYLD_LIBRARY_PATH
  10181. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10182. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10183. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10184. ;;
  10185. dgux*)
  10186. version_type=linux
  10187. need_lib_prefix=no
  10188. need_version=no
  10189. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  10190. soname_spec='${libname}${release}${shared_ext}$major'
  10191. shlibpath_var=LD_LIBRARY_PATH
  10192. ;;
  10193. freebsd1*)
  10194. dynamic_linker=no
  10195. ;;
  10196. freebsd* | dragonfly*)
  10197. # DragonFly does not have aout. When/if they implement a new
  10198. # versioning mechanism, adjust this.
  10199. if test -x /usr/bin/objformat; then
  10200. objformat=`/usr/bin/objformat`
  10201. else
  10202. case $host_os in
  10203. freebsd[123]*) objformat=aout ;;
  10204. *) objformat=elf ;;
  10205. esac
  10206. fi
  10207. version_type=freebsd-$objformat
  10208. case $version_type in
  10209. freebsd-elf*)
  10210. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10211. need_version=no
  10212. need_lib_prefix=no
  10213. ;;
  10214. freebsd-*)
  10215. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  10216. need_version=yes
  10217. ;;
  10218. esac
  10219. shlibpath_var=LD_LIBRARY_PATH
  10220. case $host_os in
  10221. freebsd2*)
  10222. shlibpath_overrides_runpath=yes
  10223. ;;
  10224. freebsd3.[01]* | freebsdelf3.[01]*)
  10225. shlibpath_overrides_runpath=yes
  10226. hardcode_into_libs=yes
  10227. ;;
  10228. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10229. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10230. shlibpath_overrides_runpath=no
  10231. hardcode_into_libs=yes
  10232. ;;
  10233. *) # from 4.6 on, and DragonFly
  10234. shlibpath_overrides_runpath=yes
  10235. hardcode_into_libs=yes
  10236. ;;
  10237. esac
  10238. ;;
  10239. gnu*)
  10240. version_type=linux
  10241. need_lib_prefix=no
  10242. need_version=no
  10243. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10244. soname_spec='${libname}${release}${shared_ext}$major'
  10245. shlibpath_var=LD_LIBRARY_PATH
  10246. hardcode_into_libs=yes
  10247. ;;
  10248. haiku*)
  10249. version_type=linux
  10250. need_lib_prefix=no
  10251. need_version=no
  10252. dynamic_linker="$host_os runtime_loader"
  10253. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10254. soname_spec='${libname}${release}${shared_ext}$major'
  10255. shlibpath_var=LIBRARY_PATH
  10256. shlibpath_overrides_runpath=yes
  10257. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10258. hardcode_into_libs=yes
  10259. ;;
  10260. hpux9* | hpux10* | hpux11*)
  10261. # Give a soname corresponding to the major version so that dld.sl refuses to
  10262. # link against other versions.
  10263. version_type=sunos
  10264. need_lib_prefix=no
  10265. need_version=no
  10266. case $host_cpu in
  10267. ia64*)
  10268. shrext_cmds='.so'
  10269. hardcode_into_libs=yes
  10270. dynamic_linker="$host_os dld.so"
  10271. shlibpath_var=LD_LIBRARY_PATH
  10272. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10273. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10274. soname_spec='${libname}${release}${shared_ext}$major'
  10275. if test "X$HPUX_IA64_MODE" = X32; then
  10276. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10277. else
  10278. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10279. fi
  10280. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10281. ;;
  10282. hppa*64*)
  10283. shrext_cmds='.sl'
  10284. hardcode_into_libs=yes
  10285. dynamic_linker="$host_os dld.sl"
  10286. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10287. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10288. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10289. soname_spec='${libname}${release}${shared_ext}$major'
  10290. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10291. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10292. ;;
  10293. *)
  10294. shrext_cmds='.sl'
  10295. dynamic_linker="$host_os dld.sl"
  10296. shlibpath_var=SHLIB_PATH
  10297. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10298. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10299. soname_spec='${libname}${release}${shared_ext}$major'
  10300. ;;
  10301. esac
  10302. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10303. postinstall_cmds='chmod 555 $lib'
  10304. # or fails outright, so override atomically:
  10305. install_override_mode=555
  10306. ;;
  10307. interix[3-9]*)
  10308. version_type=linux
  10309. need_lib_prefix=no
  10310. need_version=no
  10311. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10312. soname_spec='${libname}${release}${shared_ext}$major'
  10313. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10314. shlibpath_var=LD_LIBRARY_PATH
  10315. shlibpath_overrides_runpath=no
  10316. hardcode_into_libs=yes
  10317. ;;
  10318. irix5* | irix6* | nonstopux*)
  10319. case $host_os in
  10320. nonstopux*) version_type=nonstopux ;;
  10321. *)
  10322. if test "$lt_cv_prog_gnu_ld" = yes; then
  10323. version_type=linux
  10324. else
  10325. version_type=irix
  10326. fi ;;
  10327. esac
  10328. need_lib_prefix=no
  10329. need_version=no
  10330. soname_spec='${libname}${release}${shared_ext}$major'
  10331. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10332. case $host_os in
  10333. irix5* | nonstopux*)
  10334. libsuff= shlibsuff=
  10335. ;;
  10336. *)
  10337. case $LD in # libtool.m4 will add one of these switches to LD
  10338. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10339. libsuff= shlibsuff= libmagic=32-bit;;
  10340. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10341. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10342. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10343. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10344. *) libsuff= shlibsuff= libmagic=never-match;;
  10345. esac
  10346. ;;
  10347. esac
  10348. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10349. shlibpath_overrides_runpath=no
  10350. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10351. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10352. hardcode_into_libs=yes
  10353. ;;
  10354. # No shared lib support for Linux oldld, aout, or coff.
  10355. linux*oldld* | linux*aout* | linux*coff*)
  10356. dynamic_linker=no
  10357. ;;
  10358. # This must be Linux ELF.
  10359. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10360. version_type=linux
  10361. need_lib_prefix=no
  10362. need_version=no
  10363. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10364. soname_spec='${libname}${release}${shared_ext}$major'
  10365. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10366. shlibpath_var=LD_LIBRARY_PATH
  10367. shlibpath_overrides_runpath=no
  10368. # Some binutils ld are patched to set DT_RUNPATH
  10369. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10370. $as_echo_n "(cached) " >&6
  10371. else
  10372. lt_cv_shlibpath_overrides_runpath=no
  10373. save_LDFLAGS=$LDFLAGS
  10374. save_libdir=$libdir
  10375. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10376. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10378. /* end confdefs.h. */
  10379. int
  10380. main ()
  10381. {
  10382. ;
  10383. return 0;
  10384. }
  10385. _ACEOF
  10386. if ac_fn_c_try_link "$LINENO"; then :
  10387. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10388. lt_cv_shlibpath_overrides_runpath=yes
  10389. fi
  10390. fi
  10391. rm -f core conftest.err conftest.$ac_objext \
  10392. conftest$ac_exeext conftest.$ac_ext
  10393. LDFLAGS=$save_LDFLAGS
  10394. libdir=$save_libdir
  10395. fi
  10396. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10397. # This implies no fast_install, which is unacceptable.
  10398. # Some rework will be needed to allow for fast_install
  10399. # before this can be enabled.
  10400. hardcode_into_libs=yes
  10401. # Append ld.so.conf contents to the search path
  10402. if test -f /etc/ld.so.conf; then
  10403. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  10404. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10405. fi
  10406. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10407. # powerpc, because MkLinux only supported shared libraries with the
  10408. # GNU dynamic linker. Since this was broken with cross compilers,
  10409. # most powerpc-linux boxes support dynamic linking these days and
  10410. # people can always --disable-shared, the test was removed, and we
  10411. # assume the GNU/Linux dynamic linker is in use.
  10412. dynamic_linker='GNU/Linux ld.so'
  10413. ;;
  10414. netbsd*)
  10415. version_type=sunos
  10416. need_lib_prefix=no
  10417. need_version=no
  10418. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10419. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10420. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10421. dynamic_linker='NetBSD (a.out) ld.so'
  10422. else
  10423. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10424. soname_spec='${libname}${release}${shared_ext}$major'
  10425. dynamic_linker='NetBSD ld.elf_so'
  10426. fi
  10427. shlibpath_var=LD_LIBRARY_PATH
  10428. shlibpath_overrides_runpath=yes
  10429. hardcode_into_libs=yes
  10430. ;;
  10431. newsos6)
  10432. version_type=linux
  10433. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10434. shlibpath_var=LD_LIBRARY_PATH
  10435. shlibpath_overrides_runpath=yes
  10436. ;;
  10437. *nto* | *qnx*)
  10438. version_type=qnx
  10439. need_lib_prefix=no
  10440. need_version=no
  10441. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10442. soname_spec='${libname}${release}${shared_ext}$major'
  10443. shlibpath_var=LD_LIBRARY_PATH
  10444. shlibpath_overrides_runpath=no
  10445. hardcode_into_libs=yes
  10446. dynamic_linker='ldqnx.so'
  10447. ;;
  10448. openbsd*)
  10449. version_type=sunos
  10450. sys_lib_dlsearch_path_spec="/usr/lib"
  10451. need_lib_prefix=no
  10452. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10453. case $host_os in
  10454. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10455. *) need_version=no ;;
  10456. esac
  10457. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10458. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10459. shlibpath_var=LD_LIBRARY_PATH
  10460. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10461. case $host_os in
  10462. openbsd2.[89] | openbsd2.[89].*)
  10463. shlibpath_overrides_runpath=no
  10464. ;;
  10465. *)
  10466. shlibpath_overrides_runpath=yes
  10467. ;;
  10468. esac
  10469. else
  10470. shlibpath_overrides_runpath=yes
  10471. fi
  10472. ;;
  10473. os2*)
  10474. libname_spec='$name'
  10475. shrext_cmds=".dll"
  10476. need_lib_prefix=no
  10477. library_names_spec='$libname${shared_ext} $libname.a'
  10478. dynamic_linker='OS/2 ld.exe'
  10479. shlibpath_var=LIBPATH
  10480. ;;
  10481. osf3* | osf4* | osf5*)
  10482. version_type=osf
  10483. need_lib_prefix=no
  10484. need_version=no
  10485. soname_spec='${libname}${release}${shared_ext}$major'
  10486. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10487. shlibpath_var=LD_LIBRARY_PATH
  10488. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10489. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10490. ;;
  10491. rdos*)
  10492. dynamic_linker=no
  10493. ;;
  10494. solaris*)
  10495. version_type=linux
  10496. need_lib_prefix=no
  10497. need_version=no
  10498. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10499. soname_spec='${libname}${release}${shared_ext}$major'
  10500. shlibpath_var=LD_LIBRARY_PATH
  10501. shlibpath_overrides_runpath=yes
  10502. hardcode_into_libs=yes
  10503. # ldd complains unless libraries are executable
  10504. postinstall_cmds='chmod +x $lib'
  10505. ;;
  10506. sunos4*)
  10507. version_type=sunos
  10508. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10509. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10510. shlibpath_var=LD_LIBRARY_PATH
  10511. shlibpath_overrides_runpath=yes
  10512. if test "$with_gnu_ld" = yes; then
  10513. need_lib_prefix=no
  10514. fi
  10515. need_version=yes
  10516. ;;
  10517. sysv4 | sysv4.3*)
  10518. version_type=linux
  10519. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10520. soname_spec='${libname}${release}${shared_ext}$major'
  10521. shlibpath_var=LD_LIBRARY_PATH
  10522. case $host_vendor in
  10523. sni)
  10524. shlibpath_overrides_runpath=no
  10525. need_lib_prefix=no
  10526. runpath_var=LD_RUN_PATH
  10527. ;;
  10528. siemens)
  10529. need_lib_prefix=no
  10530. ;;
  10531. motorola)
  10532. need_lib_prefix=no
  10533. need_version=no
  10534. shlibpath_overrides_runpath=no
  10535. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10536. ;;
  10537. esac
  10538. ;;
  10539. sysv4*MP*)
  10540. if test -d /usr/nec ;then
  10541. version_type=linux
  10542. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10543. soname_spec='$libname${shared_ext}.$major'
  10544. shlibpath_var=LD_LIBRARY_PATH
  10545. fi
  10546. ;;
  10547. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10548. version_type=freebsd-elf
  10549. need_lib_prefix=no
  10550. need_version=no
  10551. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10552. soname_spec='${libname}${release}${shared_ext}$major'
  10553. shlibpath_var=LD_LIBRARY_PATH
  10554. shlibpath_overrides_runpath=yes
  10555. hardcode_into_libs=yes
  10556. if test "$with_gnu_ld" = yes; then
  10557. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10558. else
  10559. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10560. case $host_os in
  10561. sco3.2v5*)
  10562. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10563. ;;
  10564. esac
  10565. fi
  10566. sys_lib_dlsearch_path_spec='/usr/lib'
  10567. ;;
  10568. tpf*)
  10569. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10570. version_type=linux
  10571. need_lib_prefix=no
  10572. need_version=no
  10573. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10574. shlibpath_var=LD_LIBRARY_PATH
  10575. shlibpath_overrides_runpath=no
  10576. hardcode_into_libs=yes
  10577. ;;
  10578. uts4*)
  10579. version_type=linux
  10580. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10581. soname_spec='${libname}${release}${shared_ext}$major'
  10582. shlibpath_var=LD_LIBRARY_PATH
  10583. ;;
  10584. *)
  10585. dynamic_linker=no
  10586. ;;
  10587. esac
  10588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10589. $as_echo "$dynamic_linker" >&6; }
  10590. test "$dynamic_linker" = no && can_build_shared=no
  10591. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10592. if test "$GCC" = yes; then
  10593. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10594. fi
  10595. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10596. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10597. fi
  10598. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10599. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10600. fi
  10601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10602. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10603. hardcode_action=
  10604. if test -n "$hardcode_libdir_flag_spec" ||
  10605. test -n "$runpath_var" ||
  10606. test "X$hardcode_automatic" = "Xyes" ; then
  10607. # We can hardcode non-existent directories.
  10608. if test "$hardcode_direct" != no &&
  10609. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10610. # have to relink, otherwise we might link with an installed library
  10611. # when we should be linking with a yet-to-be-installed one
  10612. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10613. test "$hardcode_minus_L" != no; then
  10614. # Linking always hardcodes the temporary library directory.
  10615. hardcode_action=relink
  10616. else
  10617. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10618. hardcode_action=immediate
  10619. fi
  10620. else
  10621. # We cannot hardcode anything, or else we can only hardcode existing
  10622. # directories.
  10623. hardcode_action=unsupported
  10624. fi
  10625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10626. $as_echo "$hardcode_action" >&6; }
  10627. if test "$hardcode_action" = relink ||
  10628. test "$inherit_rpath" = yes; then
  10629. # Fast installation is not supported
  10630. enable_fast_install=no
  10631. elif test "$shlibpath_overrides_runpath" = yes ||
  10632. test "$enable_shared" = no; then
  10633. # Fast installation is not necessary
  10634. enable_fast_install=needless
  10635. fi
  10636. if test "x$enable_dlopen" != xyes; then
  10637. enable_dlopen=unknown
  10638. enable_dlopen_self=unknown
  10639. enable_dlopen_self_static=unknown
  10640. else
  10641. lt_cv_dlopen=no
  10642. lt_cv_dlopen_libs=
  10643. case $host_os in
  10644. beos*)
  10645. lt_cv_dlopen="load_add_on"
  10646. lt_cv_dlopen_libs=
  10647. lt_cv_dlopen_self=yes
  10648. ;;
  10649. mingw* | pw32* | cegcc*)
  10650. lt_cv_dlopen="LoadLibrary"
  10651. lt_cv_dlopen_libs=
  10652. ;;
  10653. cygwin*)
  10654. lt_cv_dlopen="dlopen"
  10655. lt_cv_dlopen_libs=
  10656. ;;
  10657. darwin*)
  10658. # if libdl is installed we need to link against it
  10659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10660. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10661. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10662. $as_echo_n "(cached) " >&6
  10663. else
  10664. ac_check_lib_save_LIBS=$LIBS
  10665. LIBS="-ldl $LIBS"
  10666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10667. /* end confdefs.h. */
  10668. /* Override any GCC internal prototype to avoid an error.
  10669. Use char because int might match the return type of a GCC
  10670. builtin and then its argument prototype would still apply. */
  10671. #ifdef __cplusplus
  10672. extern "C"
  10673. #endif
  10674. char dlopen ();
  10675. int
  10676. main ()
  10677. {
  10678. return dlopen ();
  10679. ;
  10680. return 0;
  10681. }
  10682. _ACEOF
  10683. if ac_fn_c_try_link "$LINENO"; then :
  10684. ac_cv_lib_dl_dlopen=yes
  10685. else
  10686. ac_cv_lib_dl_dlopen=no
  10687. fi
  10688. rm -f core conftest.err conftest.$ac_objext \
  10689. conftest$ac_exeext conftest.$ac_ext
  10690. LIBS=$ac_check_lib_save_LIBS
  10691. fi
  10692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10693. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10694. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10695. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10696. else
  10697. lt_cv_dlopen="dyld"
  10698. lt_cv_dlopen_libs=
  10699. lt_cv_dlopen_self=yes
  10700. fi
  10701. ;;
  10702. *)
  10703. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10704. if test "x$ac_cv_func_shl_load" = xyes; then :
  10705. lt_cv_dlopen="shl_load"
  10706. else
  10707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10708. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10709. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10710. $as_echo_n "(cached) " >&6
  10711. else
  10712. ac_check_lib_save_LIBS=$LIBS
  10713. LIBS="-ldld $LIBS"
  10714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10715. /* end confdefs.h. */
  10716. /* Override any GCC internal prototype to avoid an error.
  10717. Use char because int might match the return type of a GCC
  10718. builtin and then its argument prototype would still apply. */
  10719. #ifdef __cplusplus
  10720. extern "C"
  10721. #endif
  10722. char shl_load ();
  10723. int
  10724. main ()
  10725. {
  10726. return shl_load ();
  10727. ;
  10728. return 0;
  10729. }
  10730. _ACEOF
  10731. if ac_fn_c_try_link "$LINENO"; then :
  10732. ac_cv_lib_dld_shl_load=yes
  10733. else
  10734. ac_cv_lib_dld_shl_load=no
  10735. fi
  10736. rm -f core conftest.err conftest.$ac_objext \
  10737. conftest$ac_exeext conftest.$ac_ext
  10738. LIBS=$ac_check_lib_save_LIBS
  10739. fi
  10740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10741. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10742. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10743. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10744. else
  10745. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10746. if test "x$ac_cv_func_dlopen" = xyes; then :
  10747. lt_cv_dlopen="dlopen"
  10748. else
  10749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10750. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10751. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10752. $as_echo_n "(cached) " >&6
  10753. else
  10754. ac_check_lib_save_LIBS=$LIBS
  10755. LIBS="-ldl $LIBS"
  10756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10757. /* end confdefs.h. */
  10758. /* Override any GCC internal prototype to avoid an error.
  10759. Use char because int might match the return type of a GCC
  10760. builtin and then its argument prototype would still apply. */
  10761. #ifdef __cplusplus
  10762. extern "C"
  10763. #endif
  10764. char dlopen ();
  10765. int
  10766. main ()
  10767. {
  10768. return dlopen ();
  10769. ;
  10770. return 0;
  10771. }
  10772. _ACEOF
  10773. if ac_fn_c_try_link "$LINENO"; then :
  10774. ac_cv_lib_dl_dlopen=yes
  10775. else
  10776. ac_cv_lib_dl_dlopen=no
  10777. fi
  10778. rm -f core conftest.err conftest.$ac_objext \
  10779. conftest$ac_exeext conftest.$ac_ext
  10780. LIBS=$ac_check_lib_save_LIBS
  10781. fi
  10782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10783. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10784. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10785. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10786. else
  10787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10788. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10789. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10790. $as_echo_n "(cached) " >&6
  10791. else
  10792. ac_check_lib_save_LIBS=$LIBS
  10793. LIBS="-lsvld $LIBS"
  10794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10795. /* end confdefs.h. */
  10796. /* Override any GCC internal prototype to avoid an error.
  10797. Use char because int might match the return type of a GCC
  10798. builtin and then its argument prototype would still apply. */
  10799. #ifdef __cplusplus
  10800. extern "C"
  10801. #endif
  10802. char dlopen ();
  10803. int
  10804. main ()
  10805. {
  10806. return dlopen ();
  10807. ;
  10808. return 0;
  10809. }
  10810. _ACEOF
  10811. if ac_fn_c_try_link "$LINENO"; then :
  10812. ac_cv_lib_svld_dlopen=yes
  10813. else
  10814. ac_cv_lib_svld_dlopen=no
  10815. fi
  10816. rm -f core conftest.err conftest.$ac_objext \
  10817. conftest$ac_exeext conftest.$ac_ext
  10818. LIBS=$ac_check_lib_save_LIBS
  10819. fi
  10820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10821. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10822. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10823. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10824. else
  10825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10826. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10827. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10828. $as_echo_n "(cached) " >&6
  10829. else
  10830. ac_check_lib_save_LIBS=$LIBS
  10831. LIBS="-ldld $LIBS"
  10832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10833. /* end confdefs.h. */
  10834. /* Override any GCC internal prototype to avoid an error.
  10835. Use char because int might match the return type of a GCC
  10836. builtin and then its argument prototype would still apply. */
  10837. #ifdef __cplusplus
  10838. extern "C"
  10839. #endif
  10840. char dld_link ();
  10841. int
  10842. main ()
  10843. {
  10844. return dld_link ();
  10845. ;
  10846. return 0;
  10847. }
  10848. _ACEOF
  10849. if ac_fn_c_try_link "$LINENO"; then :
  10850. ac_cv_lib_dld_dld_link=yes
  10851. else
  10852. ac_cv_lib_dld_dld_link=no
  10853. fi
  10854. rm -f core conftest.err conftest.$ac_objext \
  10855. conftest$ac_exeext conftest.$ac_ext
  10856. LIBS=$ac_check_lib_save_LIBS
  10857. fi
  10858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10859. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10860. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10861. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10862. fi
  10863. fi
  10864. fi
  10865. fi
  10866. fi
  10867. fi
  10868. ;;
  10869. esac
  10870. if test "x$lt_cv_dlopen" != xno; then
  10871. enable_dlopen=yes
  10872. else
  10873. enable_dlopen=no
  10874. fi
  10875. case $lt_cv_dlopen in
  10876. dlopen)
  10877. save_CPPFLAGS="$CPPFLAGS"
  10878. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10879. save_LDFLAGS="$LDFLAGS"
  10880. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10881. save_LIBS="$LIBS"
  10882. LIBS="$lt_cv_dlopen_libs $LIBS"
  10883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10884. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10885. if ${lt_cv_dlopen_self+:} false; then :
  10886. $as_echo_n "(cached) " >&6
  10887. else
  10888. if test "$cross_compiling" = yes; then :
  10889. lt_cv_dlopen_self=cross
  10890. else
  10891. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10892. lt_status=$lt_dlunknown
  10893. cat > conftest.$ac_ext <<_LT_EOF
  10894. #line $LINENO "configure"
  10895. #include "confdefs.h"
  10896. #if HAVE_DLFCN_H
  10897. #include <dlfcn.h>
  10898. #endif
  10899. #include <stdio.h>
  10900. #ifdef RTLD_GLOBAL
  10901. # define LT_DLGLOBAL RTLD_GLOBAL
  10902. #else
  10903. # ifdef DL_GLOBAL
  10904. # define LT_DLGLOBAL DL_GLOBAL
  10905. # else
  10906. # define LT_DLGLOBAL 0
  10907. # endif
  10908. #endif
  10909. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10910. find out it does not work in some platform. */
  10911. #ifndef LT_DLLAZY_OR_NOW
  10912. # ifdef RTLD_LAZY
  10913. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10914. # else
  10915. # ifdef DL_LAZY
  10916. # define LT_DLLAZY_OR_NOW DL_LAZY
  10917. # else
  10918. # ifdef RTLD_NOW
  10919. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10920. # else
  10921. # ifdef DL_NOW
  10922. # define LT_DLLAZY_OR_NOW DL_NOW
  10923. # else
  10924. # define LT_DLLAZY_OR_NOW 0
  10925. # endif
  10926. # endif
  10927. # endif
  10928. # endif
  10929. #endif
  10930. /* When -fvisbility=hidden is used, assume the code has been annotated
  10931. correspondingly for the symbols needed. */
  10932. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10933. int fnord () __attribute__((visibility("default")));
  10934. #endif
  10935. int fnord () { return 42; }
  10936. int main ()
  10937. {
  10938. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10939. int status = $lt_dlunknown;
  10940. if (self)
  10941. {
  10942. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10943. else
  10944. {
  10945. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10946. else puts (dlerror ());
  10947. }
  10948. /* dlclose (self); */
  10949. }
  10950. else
  10951. puts (dlerror ());
  10952. return status;
  10953. }
  10954. _LT_EOF
  10955. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10956. (eval $ac_link) 2>&5
  10957. ac_status=$?
  10958. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10959. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10960. (./conftest; exit; ) >&5 2>/dev/null
  10961. lt_status=$?
  10962. case x$lt_status in
  10963. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10964. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10965. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10966. esac
  10967. else :
  10968. # compilation failed
  10969. lt_cv_dlopen_self=no
  10970. fi
  10971. fi
  10972. rm -fr conftest*
  10973. fi
  10974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10975. $as_echo "$lt_cv_dlopen_self" >&6; }
  10976. if test "x$lt_cv_dlopen_self" = xyes; then
  10977. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10979. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10980. if ${lt_cv_dlopen_self_static+:} false; then :
  10981. $as_echo_n "(cached) " >&6
  10982. else
  10983. if test "$cross_compiling" = yes; then :
  10984. lt_cv_dlopen_self_static=cross
  10985. else
  10986. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10987. lt_status=$lt_dlunknown
  10988. cat > conftest.$ac_ext <<_LT_EOF
  10989. #line $LINENO "configure"
  10990. #include "confdefs.h"
  10991. #if HAVE_DLFCN_H
  10992. #include <dlfcn.h>
  10993. #endif
  10994. #include <stdio.h>
  10995. #ifdef RTLD_GLOBAL
  10996. # define LT_DLGLOBAL RTLD_GLOBAL
  10997. #else
  10998. # ifdef DL_GLOBAL
  10999. # define LT_DLGLOBAL DL_GLOBAL
  11000. # else
  11001. # define LT_DLGLOBAL 0
  11002. # endif
  11003. #endif
  11004. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11005. find out it does not work in some platform. */
  11006. #ifndef LT_DLLAZY_OR_NOW
  11007. # ifdef RTLD_LAZY
  11008. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11009. # else
  11010. # ifdef DL_LAZY
  11011. # define LT_DLLAZY_OR_NOW DL_LAZY
  11012. # else
  11013. # ifdef RTLD_NOW
  11014. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11015. # else
  11016. # ifdef DL_NOW
  11017. # define LT_DLLAZY_OR_NOW DL_NOW
  11018. # else
  11019. # define LT_DLLAZY_OR_NOW 0
  11020. # endif
  11021. # endif
  11022. # endif
  11023. # endif
  11024. #endif
  11025. /* When -fvisbility=hidden is used, assume the code has been annotated
  11026. correspondingly for the symbols needed. */
  11027. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11028. int fnord () __attribute__((visibility("default")));
  11029. #endif
  11030. int fnord () { return 42; }
  11031. int main ()
  11032. {
  11033. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11034. int status = $lt_dlunknown;
  11035. if (self)
  11036. {
  11037. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11038. else
  11039. {
  11040. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11041. else puts (dlerror ());
  11042. }
  11043. /* dlclose (self); */
  11044. }
  11045. else
  11046. puts (dlerror ());
  11047. return status;
  11048. }
  11049. _LT_EOF
  11050. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11051. (eval $ac_link) 2>&5
  11052. ac_status=$?
  11053. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11054. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  11055. (./conftest; exit; ) >&5 2>/dev/null
  11056. lt_status=$?
  11057. case x$lt_status in
  11058. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11059. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11060. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11061. esac
  11062. else :
  11063. # compilation failed
  11064. lt_cv_dlopen_self_static=no
  11065. fi
  11066. fi
  11067. rm -fr conftest*
  11068. fi
  11069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11070. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11071. fi
  11072. CPPFLAGS="$save_CPPFLAGS"
  11073. LDFLAGS="$save_LDFLAGS"
  11074. LIBS="$save_LIBS"
  11075. ;;
  11076. esac
  11077. case $lt_cv_dlopen_self in
  11078. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11079. *) enable_dlopen_self=unknown ;;
  11080. esac
  11081. case $lt_cv_dlopen_self_static in
  11082. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11083. *) enable_dlopen_self_static=unknown ;;
  11084. esac
  11085. fi
  11086. striplib=
  11087. old_striplib=
  11088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11089. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11090. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11091. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11092. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11094. $as_echo "yes" >&6; }
  11095. else
  11096. # FIXME - insert some real tests, host_os isn't really good enough
  11097. case $host_os in
  11098. darwin*)
  11099. if test -n "$STRIP" ; then
  11100. striplib="$STRIP -x"
  11101. old_striplib="$STRIP -S"
  11102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11103. $as_echo "yes" >&6; }
  11104. else
  11105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11106. $as_echo "no" >&6; }
  11107. fi
  11108. ;;
  11109. *)
  11110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11111. $as_echo "no" >&6; }
  11112. ;;
  11113. esac
  11114. fi
  11115. # Report which library types will actually be built
  11116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11117. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11119. $as_echo "$can_build_shared" >&6; }
  11120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11121. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11122. test "$can_build_shared" = "no" && enable_shared=no
  11123. # On AIX, shared libraries and static libraries use the same namespace, and
  11124. # are all built from PIC.
  11125. case $host_os in
  11126. aix3*)
  11127. test "$enable_shared" = yes && enable_static=no
  11128. if test -n "$RANLIB"; then
  11129. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11130. postinstall_cmds='$RANLIB $lib'
  11131. fi
  11132. ;;
  11133. aix[4-9]*)
  11134. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11135. test "$enable_shared" = yes && enable_static=no
  11136. fi
  11137. ;;
  11138. esac
  11139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11140. $as_echo "$enable_shared" >&6; }
  11141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11142. $as_echo_n "checking whether to build static libraries... " >&6; }
  11143. # Make sure either enable_shared or enable_static is yes.
  11144. test "$enable_shared" = yes || enable_static=yes
  11145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11146. $as_echo "$enable_static" >&6; }
  11147. fi
  11148. ac_ext=c
  11149. ac_cpp='$CPP $CPPFLAGS'
  11150. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11151. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11152. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11153. CC="$lt_save_CC"
  11154. ac_config_commands="$ac_config_commands libtool"
  11155. # Only expand once:
  11156. LIBC_FATAL_STDERR_=1
  11157. export LIBC_FATAL_STDERR_
  11158. for ac_header in $gl_header_list
  11159. do :
  11160. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11161. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11162. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11163. cat >>confdefs.h <<_ACEOF
  11164. @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11165. _ACEOF
  11166. fi
  11167. done
  11168. for ac_func in $gl_func_list
  11169. do :
  11170. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11171. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11172. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11173. cat >>confdefs.h <<_ACEOF
  11174. @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11175. _ACEOF
  11176. fi
  11177. done
  11178. GNULIB_MEMCHR=0;
  11179. GNULIB_MEMMEM=0;
  11180. GNULIB_MEMPCPY=0;
  11181. GNULIB_MEMRCHR=0;
  11182. GNULIB_RAWMEMCHR=0;
  11183. GNULIB_STPCPY=0;
  11184. GNULIB_STPNCPY=0;
  11185. GNULIB_STRCHRNUL=0;
  11186. GNULIB_STRDUP=0;
  11187. GNULIB_STRNCAT=0;
  11188. GNULIB_STRNDUP=0;
  11189. GNULIB_STRNLEN=0;
  11190. GNULIB_STRPBRK=0;
  11191. GNULIB_STRSEP=0;
  11192. GNULIB_STRSTR=0;
  11193. GNULIB_STRCASESTR=0;
  11194. GNULIB_STRTOK_R=0;
  11195. GNULIB_MBSLEN=0;
  11196. GNULIB_MBSNLEN=0;
  11197. GNULIB_MBSCHR=0;
  11198. GNULIB_MBSRCHR=0;
  11199. GNULIB_MBSSTR=0;
  11200. GNULIB_MBSCASECMP=0;
  11201. GNULIB_MBSNCASECMP=0;
  11202. GNULIB_MBSPCASECMP=0;
  11203. GNULIB_MBSCASESTR=0;
  11204. GNULIB_MBSCSPN=0;
  11205. GNULIB_MBSPBRK=0;
  11206. GNULIB_MBSSPN=0;
  11207. GNULIB_MBSSEP=0;
  11208. GNULIB_MBSTOK_R=0;
  11209. GNULIB_STRERROR=0;
  11210. GNULIB_STRERROR_R=0;
  11211. GNULIB_STRSIGNAL=0;
  11212. GNULIB_STRVERSCMP=0;
  11213. HAVE_MBSLEN=0;
  11214. HAVE_MEMCHR=1;
  11215. HAVE_DECL_MEMMEM=1;
  11216. HAVE_MEMPCPY=1;
  11217. HAVE_DECL_MEMRCHR=1;
  11218. HAVE_RAWMEMCHR=1;
  11219. HAVE_STPCPY=1;
  11220. HAVE_STPNCPY=1;
  11221. HAVE_STRCHRNUL=1;
  11222. HAVE_DECL_STRDUP=1;
  11223. HAVE_DECL_STRNDUP=1;
  11224. HAVE_DECL_STRNLEN=1;
  11225. HAVE_STRPBRK=1;
  11226. HAVE_STRSEP=1;
  11227. HAVE_STRCASESTR=1;
  11228. HAVE_DECL_STRTOK_R=1;
  11229. HAVE_DECL_STRERROR_R=1;
  11230. HAVE_DECL_STRSIGNAL=1;
  11231. HAVE_STRVERSCMP=1;
  11232. REPLACE_MEMCHR=0;
  11233. REPLACE_MEMMEM=0;
  11234. REPLACE_STPNCPY=0;
  11235. REPLACE_STRDUP=0;
  11236. REPLACE_STRSTR=0;
  11237. REPLACE_STRCASESTR=0;
  11238. REPLACE_STRCHRNUL=0;
  11239. REPLACE_STRERROR=0;
  11240. REPLACE_STRERROR_R=0;
  11241. REPLACE_STRNCAT=0;
  11242. REPLACE_STRNDUP=0;
  11243. REPLACE_STRNLEN=0;
  11244. REPLACE_STRSIGNAL=0;
  11245. REPLACE_STRTOK_R=0;
  11246. UNDEFINE_STRTOK_R=0;
  11247. # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
  11248. # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
  11249. # irrelevant for anonymous mappings.
  11250. ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
  11251. if test "x$ac_cv_func_mmap" = xyes; then :
  11252. gl_have_mmap=yes
  11253. else
  11254. gl_have_mmap=no
  11255. fi
  11256. # Try to allow MAP_ANONYMOUS.
  11257. gl_have_mmap_anonymous=no
  11258. if test $gl_have_mmap = yes; then
  11259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
  11260. $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
  11261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11262. /* end confdefs.h. */
  11263. #include <sys/mman.h>
  11264. #ifdef MAP_ANONYMOUS
  11265. I cant identify this map.
  11266. #endif
  11267. _ACEOF
  11268. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11269. $EGREP "I cant identify this map." >/dev/null 2>&1; then :
  11270. gl_have_mmap_anonymous=yes
  11271. fi
  11272. rm -f conftest*
  11273. if test $gl_have_mmap_anonymous != yes; then
  11274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11275. /* end confdefs.h. */
  11276. #include <sys/mman.h>
  11277. #ifdef MAP_ANON
  11278. I cant identify this map.
  11279. #endif
  11280. _ACEOF
  11281. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11282. $EGREP "I cant identify this map." >/dev/null 2>&1; then :
  11283. $as_echo "@%:@define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
  11284. gl_have_mmap_anonymous=yes
  11285. fi
  11286. rm -f conftest*
  11287. fi
  11288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
  11289. $as_echo "$gl_have_mmap_anonymous" >&6; }
  11290. if test $gl_have_mmap_anonymous = yes; then
  11291. $as_echo "@%:@define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
  11292. fi
  11293. fi
  11294. :
  11295. :
  11296. if test $HAVE_MEMCHR = 1; then
  11297. # Detect platform-specific bugs in some versions of glibc:
  11298. # memchr should not dereference anything with length 0
  11299. # http://bugzilla.redhat.com/499689
  11300. # memchr should not dereference overestimated length after a match
  11301. # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
  11302. # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
  11303. # Assume that memchr works on platforms that lack mprotect.
  11304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
  11305. $as_echo_n "checking whether memchr works... " >&6; }
  11306. if ${gl_cv_func_memchr_works+:} false; then :
  11307. $as_echo_n "(cached) " >&6
  11308. else
  11309. if test "$cross_compiling" = yes; then :
  11310. gl_cv_func_memchr_works="guessing no"
  11311. else
  11312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11313. /* end confdefs.h. */
  11314. #include <string.h>
  11315. #if HAVE_SYS_MMAN_H
  11316. # include <fcntl.h>
  11317. # include <unistd.h>
  11318. # include <sys/types.h>
  11319. # include <sys/mman.h>
  11320. # ifndef MAP_FILE
  11321. # define MAP_FILE 0
  11322. # endif
  11323. #endif
  11324. int
  11325. main ()
  11326. {
  11327. int result = 0;
  11328. char *fence = NULL;
  11329. #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
  11330. # if HAVE_MAP_ANONYMOUS
  11331. const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
  11332. const int fd = -1;
  11333. # else /* !HAVE_MAP_ANONYMOUS */
  11334. const int flags = MAP_FILE | MAP_PRIVATE;
  11335. int fd = open ("/dev/zero", O_RDONLY, 0666);
  11336. if (fd >= 0)
  11337. # endif
  11338. {
  11339. int pagesize = getpagesize ();
  11340. char *two_pages =
  11341. (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
  11342. flags, fd, 0);
  11343. if (two_pages != (char *)(-1)
  11344. && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
  11345. fence = two_pages + pagesize;
  11346. }
  11347. #endif
  11348. if (fence)
  11349. {
  11350. if (memchr (fence, 0, 0))
  11351. result |= 1;
  11352. strcpy (fence - 9, "12345678");
  11353. if (memchr (fence - 9, 0, 79) != fence - 1)
  11354. result |= 2;
  11355. if (memchr (fence - 1, 0, 3) != fence - 1)
  11356. result |= 4;
  11357. }
  11358. return result;
  11359. ;
  11360. return 0;
  11361. }
  11362. _ACEOF
  11363. if ac_fn_c_try_run "$LINENO"; then :
  11364. gl_cv_func_memchr_works=yes
  11365. else
  11366. gl_cv_func_memchr_works=no
  11367. fi
  11368. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11369. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11370. fi
  11371. fi
  11372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
  11373. $as_echo "$gl_cv_func_memchr_works" >&6; }
  11374. if test "$gl_cv_func_memchr_works" != yes; then
  11375. REPLACE_MEMCHR=1
  11376. fi
  11377. fi
  11378. ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
  11379. if test "x$ac_cv_have_decl_memmem" = xyes; then :
  11380. ac_have_decl=1
  11381. else
  11382. ac_have_decl=0
  11383. fi
  11384. cat >>confdefs.h <<_ACEOF
  11385. @%:@define HAVE_DECL_MEMMEM $ac_have_decl
  11386. _ACEOF
  11387. for ac_func in memmem
  11388. do :
  11389. ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
  11390. if test "x$ac_cv_func_memmem" = xyes; then :
  11391. cat >>confdefs.h <<_ACEOF
  11392. @%:@define HAVE_MEMMEM 1
  11393. _ACEOF
  11394. fi
  11395. done
  11396. if test $ac_cv_func_memmem = yes; then
  11397. HAVE_MEMMEM=1
  11398. else
  11399. HAVE_MEMMEM=0
  11400. fi
  11401. :
  11402. if test $ac_cv_have_decl_memmem = no; then
  11403. HAVE_DECL_MEMMEM=0
  11404. else
  11405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
  11406. $as_echo_n "checking whether memmem works... " >&6; }
  11407. if ${gl_cv_func_memmem_works_always+:} false; then :
  11408. $as_echo_n "(cached) " >&6
  11409. else
  11410. if test "$cross_compiling" = yes; then :
  11411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11412. /* end confdefs.h. */
  11413. #ifdef __GNU_LIBRARY__
  11414. #include <features.h>
  11415. #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
  11416. || __GLIBC_MINOR__ > 12)) \
  11417. || (__GLIBC__ > 2)) \
  11418. || defined __UCLIBC__
  11419. Lucky user
  11420. #endif
  11421. #elif defined __CYGWIN__
  11422. #include <cygwin/version.h>
  11423. #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
  11424. Lucky user
  11425. #endif
  11426. #else
  11427. Lucky user
  11428. #endif
  11429. _ACEOF
  11430. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11431. $EGREP "Lucky user" >/dev/null 2>&1; then :
  11432. gl_cv_func_memmem_works_always=yes
  11433. else
  11434. gl_cv_func_memmem_works_always="guessing no"
  11435. fi
  11436. rm -f conftest*
  11437. else
  11438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11439. /* end confdefs.h. */
  11440. #include <string.h> /* for memmem */
  11441. #define P "_EF_BF_BD"
  11442. #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
  11443. #define NEEDLE P P P P P
  11444. int
  11445. main ()
  11446. {
  11447. int result = 0;
  11448. if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
  11449. result |= 1;
  11450. /* Check for empty needle behavior. */
  11451. {
  11452. const char *haystack = "AAA";
  11453. if (memmem (haystack, 3, NULL, 0) != haystack)
  11454. result |= 2;
  11455. }
  11456. return result;
  11457. ;
  11458. return 0;
  11459. }
  11460. _ACEOF
  11461. if ac_fn_c_try_run "$LINENO"; then :
  11462. gl_cv_func_memmem_works_always=yes
  11463. else
  11464. gl_cv_func_memmem_works_always=no
  11465. fi
  11466. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11467. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11468. fi
  11469. fi
  11470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
  11471. $as_echo "$gl_cv_func_memmem_works_always" >&6; }
  11472. if test "$gl_cv_func_memmem_works_always" != yes; then
  11473. REPLACE_MEMMEM=1
  11474. fi
  11475. fi
  11476. :
  11477. gl_cv_c_multiarch=no
  11478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11479. /* end confdefs.h. */
  11480. #ifndef __APPLE_CC__
  11481. not a universal capable compiler
  11482. #endif
  11483. typedef int dummy;
  11484. _ACEOF
  11485. if ac_fn_c_try_compile "$LINENO"; then :
  11486. arch=
  11487. prev=
  11488. for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
  11489. if test -n "$prev"; then
  11490. case $word in
  11491. i?86 | x86_64 | ppc | ppc64)
  11492. if test -z "$arch" || test "$arch" = "$word"; then
  11493. arch="$word"
  11494. else
  11495. gl_cv_c_multiarch=yes
  11496. fi
  11497. ;;
  11498. esac
  11499. prev=
  11500. else
  11501. if test "x$word" = "x-arch"; then
  11502. prev=arch
  11503. fi
  11504. fi
  11505. done
  11506. fi
  11507. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11508. if test $gl_cv_c_multiarch = yes; then
  11509. APPLE_UNIVERSAL_BUILD=1
  11510. else
  11511. APPLE_UNIVERSAL_BUILD=0
  11512. fi
  11513. GNULIB_SIGNAL_H_SIGPIPE=0;
  11514. GNULIB_SIGPROCMASK=0;
  11515. GNULIB_SIGACTION=0;
  11516. HAVE_POSIX_SIGNALBLOCKING=1;
  11517. HAVE_SIGSET_T=1;
  11518. HAVE_SIGINFO_T=1;
  11519. HAVE_SIGACTION=1;
  11520. HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
  11521. HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
  11522. HAVE_SIGHANDLER_T=1;
  11523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
  11524. $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
  11525. if ${ac_cv_c_restrict+:} false; then :
  11526. $as_echo_n "(cached) " >&6
  11527. else
  11528. ac_cv_c_restrict=no
  11529. # The order here caters to the fact that C++ does not require restrict.
  11530. for ac_kw in __restrict __restrict__ _Restrict restrict; do
  11531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11532. /* end confdefs.h. */
  11533. typedef int * int_ptr;
  11534. int foo (int_ptr $ac_kw ip) {
  11535. return ip[0];
  11536. }
  11537. int
  11538. main ()
  11539. {
  11540. int s[1];
  11541. int * $ac_kw t = s;
  11542. t[0] = 0;
  11543. return foo(t)
  11544. ;
  11545. return 0;
  11546. }
  11547. _ACEOF
  11548. if ac_fn_c_try_compile "$LINENO"; then :
  11549. ac_cv_c_restrict=$ac_kw
  11550. fi
  11551. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11552. test "$ac_cv_c_restrict" != no && break
  11553. done
  11554. fi
  11555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
  11556. $as_echo "$ac_cv_c_restrict" >&6; }
  11557. case $ac_cv_c_restrict in
  11558. restrict) ;;
  11559. no) $as_echo "@%:@define restrict /**/" >>confdefs.h
  11560. ;;
  11561. *) cat >>confdefs.h <<_ACEOF
  11562. @%:@define restrict $ac_cv_c_restrict
  11563. _ACEOF
  11564. ;;
  11565. esac
  11566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  11567. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  11568. if ${ac_cv_type_uid_t+:} false; then :
  11569. $as_echo_n "(cached) " >&6
  11570. else
  11571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11572. /* end confdefs.h. */
  11573. #include <sys/types.h>
  11574. _ACEOF
  11575. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11576. $EGREP "uid_t" >/dev/null 2>&1; then :
  11577. ac_cv_type_uid_t=yes
  11578. else
  11579. ac_cv_type_uid_t=no
  11580. fi
  11581. rm -f conftest*
  11582. fi
  11583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  11584. $as_echo "$ac_cv_type_uid_t" >&6; }
  11585. if test $ac_cv_type_uid_t = no; then
  11586. $as_echo "@%:@define uid_t int" >>confdefs.h
  11587. $as_echo "@%:@define gid_t int" >>confdefs.h
  11588. fi
  11589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  11590. $as_echo_n "checking for inline... " >&6; }
  11591. if ${ac_cv_c_inline+:} false; then :
  11592. $as_echo_n "(cached) " >&6
  11593. else
  11594. ac_cv_c_inline=no
  11595. for ac_kw in inline __inline__ __inline; do
  11596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11597. /* end confdefs.h. */
  11598. #ifndef __cplusplus
  11599. typedef int foo_t;
  11600. static $ac_kw foo_t static_foo () {return 0; }
  11601. $ac_kw foo_t foo () {return 0; }
  11602. #endif
  11603. _ACEOF
  11604. if ac_fn_c_try_compile "$LINENO"; then :
  11605. ac_cv_c_inline=$ac_kw
  11606. fi
  11607. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11608. test "$ac_cv_c_inline" != no && break
  11609. done
  11610. fi
  11611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  11612. $as_echo "$ac_cv_c_inline" >&6; }
  11613. case $ac_cv_c_inline in
  11614. inline | yes) ;;
  11615. *)
  11616. case $ac_cv_c_inline in
  11617. no) ac_val=;;
  11618. *) ac_val=$ac_cv_c_inline;;
  11619. esac
  11620. cat >>confdefs.h <<_ACEOF
  11621. #ifndef __cplusplus
  11622. #define inline $ac_val
  11623. #endif
  11624. _ACEOF
  11625. ;;
  11626. esac
  11627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
  11628. $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
  11629. if ${gl_cv_have_include_next+:} false; then :
  11630. $as_echo_n "(cached) " >&6
  11631. else
  11632. rm -rf conftestd1a conftestd1b conftestd2
  11633. mkdir conftestd1a conftestd1b conftestd2
  11634. cat <<EOF > conftestd1a/conftest.h
  11635. #define DEFINED_IN_CONFTESTD1
  11636. #include_next <conftest.h>
  11637. #ifdef DEFINED_IN_CONFTESTD2
  11638. int foo;
  11639. #else
  11640. #error "include_next doesn't work"
  11641. #endif
  11642. EOF
  11643. cat <<EOF > conftestd1b/conftest.h
  11644. #define DEFINED_IN_CONFTESTD1
  11645. #include <stdio.h>
  11646. #include_next <conftest.h>
  11647. #ifdef DEFINED_IN_CONFTESTD2
  11648. int foo;
  11649. #else
  11650. #error "include_next doesn't work"
  11651. #endif
  11652. EOF
  11653. cat <<EOF > conftestd2/conftest.h
  11654. #ifndef DEFINED_IN_CONFTESTD1
  11655. #error "include_next test doesn't work"
  11656. #endif
  11657. #define DEFINED_IN_CONFTESTD2
  11658. EOF
  11659. gl_save_CPPFLAGS="$CPPFLAGS"
  11660. CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
  11661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11662. /* end confdefs.h. */
  11663. #include <conftest.h>
  11664. _ACEOF
  11665. if ac_fn_c_try_compile "$LINENO"; then :
  11666. gl_cv_have_include_next=yes
  11667. else
  11668. CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
  11669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11670. /* end confdefs.h. */
  11671. #include <conftest.h>
  11672. _ACEOF
  11673. if ac_fn_c_try_compile "$LINENO"; then :
  11674. gl_cv_have_include_next=buggy
  11675. else
  11676. gl_cv_have_include_next=no
  11677. fi
  11678. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11679. fi
  11680. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11681. CPPFLAGS="$gl_save_CPPFLAGS"
  11682. rm -rf conftestd1a conftestd1b conftestd2
  11683. fi
  11684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
  11685. $as_echo "$gl_cv_have_include_next" >&6; }
  11686. PRAGMA_SYSTEM_HEADER=
  11687. if test $gl_cv_have_include_next = yes; then
  11688. INCLUDE_NEXT=include_next
  11689. INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
  11690. if test -n "$GCC"; then
  11691. PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
  11692. fi
  11693. else
  11694. if test $gl_cv_have_include_next = buggy; then
  11695. INCLUDE_NEXT=include
  11696. INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
  11697. else
  11698. INCLUDE_NEXT=include
  11699. INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
  11700. fi
  11701. fi
  11702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
  11703. $as_echo_n "checking whether system header files limit the line length... " >&6; }
  11704. if ${gl_cv_pragma_columns+:} false; then :
  11705. $as_echo_n "(cached) " >&6
  11706. else
  11707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11708. /* end confdefs.h. */
  11709. #ifdef __TANDEM
  11710. choke me
  11711. #endif
  11712. _ACEOF
  11713. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11714. $EGREP "choke me" >/dev/null 2>&1; then :
  11715. gl_cv_pragma_columns=yes
  11716. else
  11717. gl_cv_pragma_columns=no
  11718. fi
  11719. rm -f conftest*
  11720. fi
  11721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
  11722. $as_echo "$gl_cv_pragma_columns" >&6; }
  11723. if test $gl_cv_pragma_columns = yes; then
  11724. PRAGMA_COLUMNS="#pragma COLUMNS 10000"
  11725. else
  11726. PRAGMA_COLUMNS=
  11727. fi
  11728. REPLACE_NULL=0;
  11729. HAVE_WCHAR_T=1;
  11730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
  11731. $as_echo_n "checking for wchar_t... " >&6; }
  11732. if ${gt_cv_c_wchar_t+:} false; then :
  11733. $as_echo_n "(cached) " >&6
  11734. else
  11735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11736. /* end confdefs.h. */
  11737. #include <stddef.h>
  11738. wchar_t foo = (wchar_t)'\0';
  11739. int
  11740. main ()
  11741. {
  11742. ;
  11743. return 0;
  11744. }
  11745. _ACEOF
  11746. if ac_fn_c_try_compile "$LINENO"; then :
  11747. gt_cv_c_wchar_t=yes
  11748. else
  11749. gt_cv_c_wchar_t=no
  11750. fi
  11751. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11752. fi
  11753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
  11754. $as_echo "$gt_cv_c_wchar_t" >&6; }
  11755. if test $gt_cv_c_wchar_t = yes; then
  11756. $as_echo "@%:@define HAVE_WCHAR_T 1" >>confdefs.h
  11757. fi
  11758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  11759. $as_echo_n "checking for unsigned long long int... " >&6; }
  11760. if ${ac_cv_type_unsigned_long_long_int+:} false; then :
  11761. $as_echo_n "(cached) " >&6
  11762. else
  11763. ac_cv_type_unsigned_long_long_int=yes
  11764. if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  11765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11766. /* end confdefs.h. */
  11767. /* For now, do not test the preprocessor; as of 2007 there are too many
  11768. implementations with broken preprocessors. Perhaps this can
  11769. be revisited in 2012. In the meantime, code should not expect
  11770. #if to work with literals wider than 32 bits. */
  11771. /* Test literals. */
  11772. long long int ll = 9223372036854775807ll;
  11773. long long int nll = -9223372036854775807LL;
  11774. unsigned long long int ull = 18446744073709551615ULL;
  11775. /* Test constant expressions. */
  11776. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  11777. ? 1 : -1)];
  11778. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  11779. ? 1 : -1)];
  11780. int i = 63;
  11781. int
  11782. main ()
  11783. {
  11784. /* Test availability of runtime routines for shift and division. */
  11785. long long int llmax = 9223372036854775807ll;
  11786. unsigned long long int ullmax = 18446744073709551615ull;
  11787. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  11788. | (llmax / ll) | (llmax % ll)
  11789. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  11790. | (ullmax / ull) | (ullmax % ull));
  11791. ;
  11792. return 0;
  11793. }
  11794. _ACEOF
  11795. if ac_fn_c_try_link "$LINENO"; then :
  11796. else
  11797. ac_cv_type_unsigned_long_long_int=no
  11798. fi
  11799. rm -f core conftest.err conftest.$ac_objext \
  11800. conftest$ac_exeext conftest.$ac_ext
  11801. fi
  11802. fi
  11803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  11804. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  11805. if test $ac_cv_type_unsigned_long_long_int = yes; then
  11806. $as_echo "@%:@define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
  11807. fi
  11808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  11809. $as_echo_n "checking for long long int... " >&6; }
  11810. if ${ac_cv_type_long_long_int+:} false; then :
  11811. $as_echo_n "(cached) " >&6
  11812. else
  11813. ac_cv_type_long_long_int=yes
  11814. if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  11815. ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
  11816. if test $ac_cv_type_long_long_int = yes; then
  11817. if test "$cross_compiling" = yes; then :
  11818. :
  11819. else
  11820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11821. /* end confdefs.h. */
  11822. @%:@include <limits.h>
  11823. @%:@ifndef LLONG_MAX
  11824. @%:@ define HALF \
  11825. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  11826. @%:@ define LLONG_MAX (HALF - 1 + HALF)
  11827. @%:@endif
  11828. int
  11829. main ()
  11830. {
  11831. long long int n = 1;
  11832. int i;
  11833. for (i = 0; ; i++)
  11834. {
  11835. long long int m = n << i;
  11836. if (m >> i != n)
  11837. return 1;
  11838. if (LLONG_MAX / 2 < m)
  11839. break;
  11840. }
  11841. return 0;
  11842. ;
  11843. return 0;
  11844. }
  11845. _ACEOF
  11846. if ac_fn_c_try_run "$LINENO"; then :
  11847. else
  11848. ac_cv_type_long_long_int=no
  11849. fi
  11850. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11851. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11852. fi
  11853. fi
  11854. fi
  11855. fi
  11856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  11857. $as_echo "$ac_cv_type_long_long_int" >&6; }
  11858. if test $ac_cv_type_long_long_int = yes; then
  11859. $as_echo "@%:@define HAVE_LONG_LONG_INT 1" >>confdefs.h
  11860. fi
  11861. if test $ac_cv_type_long_long_int = yes; then
  11862. HAVE_LONG_LONG_INT=1
  11863. else
  11864. HAVE_LONG_LONG_INT=0
  11865. fi
  11866. if test $ac_cv_type_unsigned_long_long_int = yes; then
  11867. HAVE_UNSIGNED_LONG_LONG_INT=1
  11868. else
  11869. HAVE_UNSIGNED_LONG_LONG_INT=0
  11870. fi
  11871. :
  11872. if test $ac_cv_header_wchar_h = yes; then
  11873. HAVE_WCHAR_H=1
  11874. else
  11875. HAVE_WCHAR_H=0
  11876. fi
  11877. if test $ac_cv_header_inttypes_h = yes; then
  11878. HAVE_INTTYPES_H=1
  11879. else
  11880. HAVE_INTTYPES_H=0
  11881. fi
  11882. if test $ac_cv_header_sys_types_h = yes; then
  11883. HAVE_SYS_TYPES_H=1
  11884. else
  11885. HAVE_SYS_TYPES_H=0
  11886. fi
  11887. :
  11888. if test $gl_cv_have_include_next = yes; then
  11889. gl_cv_next_stdint_h='<'stdint.h'>'
  11890. else
  11891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
  11892. $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
  11893. if ${gl_cv_next_stdint_h+:} false; then :
  11894. $as_echo_n "(cached) " >&6
  11895. else
  11896. if test $ac_cv_header_stdint_h = yes; then
  11897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11898. /* end confdefs.h. */
  11899. #include <stdint.h>
  11900. _ACEOF
  11901. case "$host_os" in
  11902. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  11903. *) gl_absname_cpp="$ac_cpp" ;;
  11904. esac
  11905. gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  11906. sed -n '\#/stdint.h#{
  11907. s#.*"\(.*/stdint.h\)".*#\1#
  11908. s#^/[^/]#//&#
  11909. p
  11910. q
  11911. }'`'"'
  11912. else
  11913. gl_cv_next_stdint_h='<'stdint.h'>'
  11914. fi
  11915. fi
  11916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
  11917. $as_echo "$gl_cv_next_stdint_h" >&6; }
  11918. fi
  11919. NEXT_STDINT_H=$gl_cv_next_stdint_h
  11920. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  11921. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  11922. gl_next_as_first_directive='<'stdint.h'>'
  11923. else
  11924. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  11925. gl_next_as_first_directive=$gl_cv_next_stdint_h
  11926. fi
  11927. NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
  11928. if test $ac_cv_header_stdint_h = yes; then
  11929. HAVE_STDINT_H=1
  11930. else
  11931. HAVE_STDINT_H=0
  11932. fi
  11933. if test $ac_cv_header_stdint_h = yes; then
  11934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
  11935. $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
  11936. if ${gl_cv_header_working_stdint_h+:} false; then :
  11937. $as_echo_n "(cached) " >&6
  11938. else
  11939. gl_cv_header_working_stdint_h=no
  11940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11941. /* end confdefs.h. */
  11942. #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
  11943. #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
  11944. #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
  11945. #include <stdint.h>
  11946. /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
  11947. #if !(defined WCHAR_MIN && defined WCHAR_MAX)
  11948. #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
  11949. #endif
  11950. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  11951. included before <wchar.h>. */
  11952. #include <stddef.h>
  11953. #include <signal.h>
  11954. #if HAVE_WCHAR_H
  11955. # include <stdio.h>
  11956. # include <time.h>
  11957. # include <wchar.h>
  11958. #endif
  11959. #ifdef INT8_MAX
  11960. int8_t a1 = INT8_MAX;
  11961. int8_t a1min = INT8_MIN;
  11962. #endif
  11963. #ifdef INT16_MAX
  11964. int16_t a2 = INT16_MAX;
  11965. int16_t a2min = INT16_MIN;
  11966. #endif
  11967. #ifdef INT32_MAX
  11968. int32_t a3 = INT32_MAX;
  11969. int32_t a3min = INT32_MIN;
  11970. #endif
  11971. #ifdef INT64_MAX
  11972. int64_t a4 = INT64_MAX;
  11973. int64_t a4min = INT64_MIN;
  11974. #endif
  11975. #ifdef UINT8_MAX
  11976. uint8_t b1 = UINT8_MAX;
  11977. #else
  11978. typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
  11979. #endif
  11980. #ifdef UINT16_MAX
  11981. uint16_t b2 = UINT16_MAX;
  11982. #endif
  11983. #ifdef UINT32_MAX
  11984. uint32_t b3 = UINT32_MAX;
  11985. #endif
  11986. #ifdef UINT64_MAX
  11987. uint64_t b4 = UINT64_MAX;
  11988. #endif
  11989. int_least8_t c1 = INT8_C (0x7f);
  11990. int_least8_t c1max = INT_LEAST8_MAX;
  11991. int_least8_t c1min = INT_LEAST8_MIN;
  11992. int_least16_t c2 = INT16_C (0x7fff);
  11993. int_least16_t c2max = INT_LEAST16_MAX;
  11994. int_least16_t c2min = INT_LEAST16_MIN;
  11995. int_least32_t c3 = INT32_C (0x7fffffff);
  11996. int_least32_t c3max = INT_LEAST32_MAX;
  11997. int_least32_t c3min = INT_LEAST32_MIN;
  11998. int_least64_t c4 = INT64_C (0x7fffffffffffffff);
  11999. int_least64_t c4max = INT_LEAST64_MAX;
  12000. int_least64_t c4min = INT_LEAST64_MIN;
  12001. uint_least8_t d1 = UINT8_C (0xff);
  12002. uint_least8_t d1max = UINT_LEAST8_MAX;
  12003. uint_least16_t d2 = UINT16_C (0xffff);
  12004. uint_least16_t d2max = UINT_LEAST16_MAX;
  12005. uint_least32_t d3 = UINT32_C (0xffffffff);
  12006. uint_least32_t d3max = UINT_LEAST32_MAX;
  12007. uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
  12008. uint_least64_t d4max = UINT_LEAST64_MAX;
  12009. int_fast8_t e1 = INT_FAST8_MAX;
  12010. int_fast8_t e1min = INT_FAST8_MIN;
  12011. int_fast16_t e2 = INT_FAST16_MAX;
  12012. int_fast16_t e2min = INT_FAST16_MIN;
  12013. int_fast32_t e3 = INT_FAST32_MAX;
  12014. int_fast32_t e3min = INT_FAST32_MIN;
  12015. int_fast64_t e4 = INT_FAST64_MAX;
  12016. int_fast64_t e4min = INT_FAST64_MIN;
  12017. uint_fast8_t f1 = UINT_FAST8_MAX;
  12018. uint_fast16_t f2 = UINT_FAST16_MAX;
  12019. uint_fast32_t f3 = UINT_FAST32_MAX;
  12020. uint_fast64_t f4 = UINT_FAST64_MAX;
  12021. #ifdef INTPTR_MAX
  12022. intptr_t g = INTPTR_MAX;
  12023. intptr_t gmin = INTPTR_MIN;
  12024. #endif
  12025. #ifdef UINTPTR_MAX
  12026. uintptr_t h = UINTPTR_MAX;
  12027. #endif
  12028. intmax_t i = INTMAX_MAX;
  12029. uintmax_t j = UINTMAX_MAX;
  12030. #include <limits.h> /* for CHAR_BIT */
  12031. #define TYPE_MINIMUM(t) \
  12032. ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
  12033. #define TYPE_MAXIMUM(t) \
  12034. ((t) ((t) 0 < (t) -1 \
  12035. ? (t) -1 \
  12036. : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
  12037. struct s {
  12038. int check_PTRDIFF:
  12039. PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
  12040. && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
  12041. ? 1 : -1;
  12042. /* Detect bug in FreeBSD 6.0 / ia64. */
  12043. int check_SIG_ATOMIC:
  12044. SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
  12045. && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
  12046. ? 1 : -1;
  12047. int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
  12048. int check_WCHAR:
  12049. WCHAR_MIN == TYPE_MINIMUM (wchar_t)
  12050. && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
  12051. ? 1 : -1;
  12052. /* Detect bug in mingw. */
  12053. int check_WINT:
  12054. WINT_MIN == TYPE_MINIMUM (wint_t)
  12055. && WINT_MAX == TYPE_MAXIMUM (wint_t)
  12056. ? 1 : -1;
  12057. /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
  12058. int check_UINT8_C:
  12059. (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
  12060. int check_UINT16_C:
  12061. (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
  12062. /* Detect bugs in OpenBSD 3.9 stdint.h. */
  12063. #ifdef UINT8_MAX
  12064. int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
  12065. #endif
  12066. #ifdef UINT16_MAX
  12067. int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
  12068. #endif
  12069. #ifdef UINT32_MAX
  12070. int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
  12071. #endif
  12072. #ifdef UINT64_MAX
  12073. int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
  12074. #endif
  12075. int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
  12076. int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
  12077. int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
  12078. int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
  12079. int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
  12080. int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
  12081. int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
  12082. int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
  12083. int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
  12084. int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
  12085. int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
  12086. };
  12087. int
  12088. main ()
  12089. {
  12090. ;
  12091. return 0;
  12092. }
  12093. _ACEOF
  12094. if ac_fn_c_try_compile "$LINENO"; then :
  12095. if test "$cross_compiling" = yes; then :
  12096. gl_cv_header_working_stdint_h=yes
  12097. else
  12098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12099. /* end confdefs.h. */
  12100. #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
  12101. #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
  12102. #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
  12103. #include <stdint.h>
  12104. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  12105. included before <wchar.h>. */
  12106. #include <stddef.h>
  12107. #include <signal.h>
  12108. #if HAVE_WCHAR_H
  12109. # include <stdio.h>
  12110. # include <time.h>
  12111. # include <wchar.h>
  12112. #endif
  12113. #include <stdio.h>
  12114. #include <string.h>
  12115. #define MVAL(macro) MVAL1(macro)
  12116. #define MVAL1(expression) #expression
  12117. static const char *macro_values[] =
  12118. {
  12119. #ifdef INT8_MAX
  12120. MVAL (INT8_MAX),
  12121. #endif
  12122. #ifdef INT16_MAX
  12123. MVAL (INT16_MAX),
  12124. #endif
  12125. #ifdef INT32_MAX
  12126. MVAL (INT32_MAX),
  12127. #endif
  12128. #ifdef INT64_MAX
  12129. MVAL (INT64_MAX),
  12130. #endif
  12131. #ifdef UINT8_MAX
  12132. MVAL (UINT8_MAX),
  12133. #endif
  12134. #ifdef UINT16_MAX
  12135. MVAL (UINT16_MAX),
  12136. #endif
  12137. #ifdef UINT32_MAX
  12138. MVAL (UINT32_MAX),
  12139. #endif
  12140. #ifdef UINT64_MAX
  12141. MVAL (UINT64_MAX),
  12142. #endif
  12143. NULL
  12144. };
  12145. int
  12146. main ()
  12147. {
  12148. const char **mv;
  12149. for (mv = macro_values; *mv != NULL; mv++)
  12150. {
  12151. const char *value = *mv;
  12152. /* Test whether it looks like a cast expression. */
  12153. if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
  12154. || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
  12155. || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
  12156. || strncmp (value, "((int)"/*)*/, 6) == 0
  12157. || strncmp (value, "((signed short)"/*)*/, 15) == 0
  12158. || strncmp (value, "((signed char)"/*)*/, 14) == 0)
  12159. return mv - macro_values + 1;
  12160. }
  12161. return 0;
  12162. ;
  12163. return 0;
  12164. }
  12165. _ACEOF
  12166. if ac_fn_c_try_run "$LINENO"; then :
  12167. gl_cv_header_working_stdint_h=yes
  12168. fi
  12169. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12170. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12171. fi
  12172. fi
  12173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12174. fi
  12175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
  12176. $as_echo "$gl_cv_header_working_stdint_h" >&6; }
  12177. fi
  12178. if test "$gl_cv_header_working_stdint_h" = yes; then
  12179. STDINT_H=
  12180. else
  12181. for ac_header in sys/inttypes.h sys/bitypes.h
  12182. do :
  12183. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12184. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12185. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  12186. cat >>confdefs.h <<_ACEOF
  12187. @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12188. _ACEOF
  12189. fi
  12190. done
  12191. if test $ac_cv_header_sys_inttypes_h = yes; then
  12192. HAVE_SYS_INTTYPES_H=1
  12193. else
  12194. HAVE_SYS_INTTYPES_H=0
  12195. fi
  12196. if test $ac_cv_header_sys_bitypes_h = yes; then
  12197. HAVE_SYS_BITYPES_H=1
  12198. else
  12199. HAVE_SYS_BITYPES_H=0
  12200. fi
  12201. if test $APPLE_UNIVERSAL_BUILD = 0; then
  12202. for gltype in ptrdiff_t size_t ; do
  12203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
  12204. $as_echo_n "checking for bit size of $gltype... " >&6; }
  12205. if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
  12206. $as_echo_n "(cached) " >&6
  12207. else
  12208. if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
  12209. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  12210. included before <wchar.h>. */
  12211. #include <stddef.h>
  12212. #include <signal.h>
  12213. #if HAVE_WCHAR_H
  12214. # include <stdio.h>
  12215. # include <time.h>
  12216. # include <wchar.h>
  12217. #endif
  12218. #include <limits.h>"; then :
  12219. else
  12220. result=unknown
  12221. fi
  12222. eval gl_cv_bitsizeof_${gltype}=\$result
  12223. fi
  12224. eval ac_res=\$gl_cv_bitsizeof_${gltype}
  12225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12226. $as_echo "$ac_res" >&6; }
  12227. eval result=\$gl_cv_bitsizeof_${gltype}
  12228. if test $result = unknown; then
  12229. result=0
  12230. fi
  12231. GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  12232. cat >>confdefs.h <<_ACEOF
  12233. @%:@define BITSIZEOF_${GLTYPE} $result
  12234. _ACEOF
  12235. eval BITSIZEOF_${GLTYPE}=\$result
  12236. done
  12237. fi
  12238. for gltype in sig_atomic_t wchar_t wint_t ; do
  12239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
  12240. $as_echo_n "checking for bit size of $gltype... " >&6; }
  12241. if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
  12242. $as_echo_n "(cached) " >&6
  12243. else
  12244. if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
  12245. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  12246. included before <wchar.h>. */
  12247. #include <stddef.h>
  12248. #include <signal.h>
  12249. #if HAVE_WCHAR_H
  12250. # include <stdio.h>
  12251. # include <time.h>
  12252. # include <wchar.h>
  12253. #endif
  12254. #include <limits.h>"; then :
  12255. else
  12256. result=unknown
  12257. fi
  12258. eval gl_cv_bitsizeof_${gltype}=\$result
  12259. fi
  12260. eval ac_res=\$gl_cv_bitsizeof_${gltype}
  12261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12262. $as_echo "$ac_res" >&6; }
  12263. eval result=\$gl_cv_bitsizeof_${gltype}
  12264. if test $result = unknown; then
  12265. result=0
  12266. fi
  12267. GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  12268. cat >>confdefs.h <<_ACEOF
  12269. @%:@define BITSIZEOF_${GLTYPE} $result
  12270. _ACEOF
  12271. eval BITSIZEOF_${GLTYPE}=\$result
  12272. done
  12273. for gltype in sig_atomic_t wchar_t wint_t ; do
  12274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
  12275. $as_echo_n "checking whether $gltype is signed... " >&6; }
  12276. if eval \${gl_cv_type_${gltype}_signed+:} false; then :
  12277. $as_echo_n "(cached) " >&6
  12278. else
  12279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12280. /* end confdefs.h. */
  12281. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  12282. included before <wchar.h>. */
  12283. #include <stddef.h>
  12284. #include <signal.h>
  12285. #if HAVE_WCHAR_H
  12286. # include <stdio.h>
  12287. # include <time.h>
  12288. # include <wchar.h>
  12289. #endif
  12290. int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
  12291. int
  12292. main ()
  12293. {
  12294. ;
  12295. return 0;
  12296. }
  12297. _ACEOF
  12298. if ac_fn_c_try_compile "$LINENO"; then :
  12299. result=yes
  12300. else
  12301. result=no
  12302. fi
  12303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12304. eval gl_cv_type_${gltype}_signed=\$result
  12305. fi
  12306. eval ac_res=\$gl_cv_type_${gltype}_signed
  12307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12308. $as_echo "$ac_res" >&6; }
  12309. eval result=\$gl_cv_type_${gltype}_signed
  12310. GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  12311. if test "$result" = yes; then
  12312. cat >>confdefs.h <<_ACEOF
  12313. @%:@define HAVE_SIGNED_${GLTYPE} 1
  12314. _ACEOF
  12315. eval HAVE_SIGNED_${GLTYPE}=1
  12316. else
  12317. eval HAVE_SIGNED_${GLTYPE}=0
  12318. fi
  12319. done
  12320. gl_cv_type_ptrdiff_t_signed=yes
  12321. gl_cv_type_size_t_signed=no
  12322. if test $APPLE_UNIVERSAL_BUILD = 0; then
  12323. for gltype in ptrdiff_t size_t ; do
  12324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
  12325. $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
  12326. if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
  12327. $as_echo_n "(cached) " >&6
  12328. else
  12329. eval gl_cv_type_${gltype}_suffix=no
  12330. eval result=\$gl_cv_type_${gltype}_signed
  12331. if test "$result" = yes; then
  12332. glsufu=
  12333. else
  12334. glsufu=u
  12335. fi
  12336. for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
  12337. case $glsuf in
  12338. '') gltype1='int';;
  12339. l) gltype1='long int';;
  12340. ll) gltype1='long long int';;
  12341. i64) gltype1='__int64';;
  12342. u) gltype1='unsigned int';;
  12343. ul) gltype1='unsigned long int';;
  12344. ull) gltype1='unsigned long long int';;
  12345. ui64)gltype1='unsigned __int64';;
  12346. esac
  12347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12348. /* end confdefs.h. */
  12349. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  12350. included before <wchar.h>. */
  12351. #include <stddef.h>
  12352. #include <signal.h>
  12353. #if HAVE_WCHAR_H
  12354. # include <stdio.h>
  12355. # include <time.h>
  12356. # include <wchar.h>
  12357. #endif
  12358. extern $gltype foo;
  12359. extern $gltype1 foo;
  12360. int
  12361. main ()
  12362. {
  12363. ;
  12364. return 0;
  12365. }
  12366. _ACEOF
  12367. if ac_fn_c_try_compile "$LINENO"; then :
  12368. eval gl_cv_type_${gltype}_suffix=\$glsuf
  12369. fi
  12370. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12371. eval result=\$gl_cv_type_${gltype}_suffix
  12372. test "$result" != no && break
  12373. done
  12374. fi
  12375. eval ac_res=\$gl_cv_type_${gltype}_suffix
  12376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12377. $as_echo "$ac_res" >&6; }
  12378. GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  12379. eval result=\$gl_cv_type_${gltype}_suffix
  12380. test "$result" = no && result=
  12381. eval ${GLTYPE}_SUFFIX=\$result
  12382. cat >>confdefs.h <<_ACEOF
  12383. @%:@define ${GLTYPE}_SUFFIX $result
  12384. _ACEOF
  12385. done
  12386. fi
  12387. for gltype in sig_atomic_t wchar_t wint_t ; do
  12388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
  12389. $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
  12390. if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
  12391. $as_echo_n "(cached) " >&6
  12392. else
  12393. eval gl_cv_type_${gltype}_suffix=no
  12394. eval result=\$gl_cv_type_${gltype}_signed
  12395. if test "$result" = yes; then
  12396. glsufu=
  12397. else
  12398. glsufu=u
  12399. fi
  12400. for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
  12401. case $glsuf in
  12402. '') gltype1='int';;
  12403. l) gltype1='long int';;
  12404. ll) gltype1='long long int';;
  12405. i64) gltype1='__int64';;
  12406. u) gltype1='unsigned int';;
  12407. ul) gltype1='unsigned long int';;
  12408. ull) gltype1='unsigned long long int';;
  12409. ui64)gltype1='unsigned __int64';;
  12410. esac
  12411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12412. /* end confdefs.h. */
  12413. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  12414. included before <wchar.h>. */
  12415. #include <stddef.h>
  12416. #include <signal.h>
  12417. #if HAVE_WCHAR_H
  12418. # include <stdio.h>
  12419. # include <time.h>
  12420. # include <wchar.h>
  12421. #endif
  12422. extern $gltype foo;
  12423. extern $gltype1 foo;
  12424. int
  12425. main ()
  12426. {
  12427. ;
  12428. return 0;
  12429. }
  12430. _ACEOF
  12431. if ac_fn_c_try_compile "$LINENO"; then :
  12432. eval gl_cv_type_${gltype}_suffix=\$glsuf
  12433. fi
  12434. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12435. eval result=\$gl_cv_type_${gltype}_suffix
  12436. test "$result" != no && break
  12437. done
  12438. fi
  12439. eval ac_res=\$gl_cv_type_${gltype}_suffix
  12440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12441. $as_echo "$ac_res" >&6; }
  12442. GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  12443. eval result=\$gl_cv_type_${gltype}_suffix
  12444. test "$result" = no && result=
  12445. eval ${GLTYPE}_SUFFIX=\$result
  12446. cat >>confdefs.h <<_ACEOF
  12447. @%:@define ${GLTYPE}_SUFFIX $result
  12448. _ACEOF
  12449. done
  12450. STDINT_H=stdint.h
  12451. fi
  12452. if test -n "$STDINT_H"; then
  12453. GL_GENERATE_STDINT_H_TRUE=
  12454. GL_GENERATE_STDINT_H_FALSE='#'
  12455. else
  12456. GL_GENERATE_STDINT_H_TRUE='#'
  12457. GL_GENERATE_STDINT_H_FALSE=
  12458. fi
  12459. if test $gl_cv_have_include_next = yes; then
  12460. gl_cv_next_string_h='<'string.h'>'
  12461. else
  12462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
  12463. $as_echo_n "checking absolute name of <string.h>... " >&6; }
  12464. if ${gl_cv_next_string_h+:} false; then :
  12465. $as_echo_n "(cached) " >&6
  12466. else
  12467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12468. /* end confdefs.h. */
  12469. #include <string.h>
  12470. _ACEOF
  12471. case "$host_os" in
  12472. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  12473. *) gl_absname_cpp="$ac_cpp" ;;
  12474. esac
  12475. gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  12476. sed -n '\#/string.h#{
  12477. s#.*"\(.*/string.h\)".*#\1#
  12478. s#^/[^/]#//&#
  12479. p
  12480. q
  12481. }'`'"'
  12482. fi
  12483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
  12484. $as_echo "$gl_cv_next_string_h" >&6; }
  12485. fi
  12486. NEXT_STRING_H=$gl_cv_next_string_h
  12487. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  12488. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  12489. gl_next_as_first_directive='<'string.h'>'
  12490. else
  12491. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  12492. gl_next_as_first_directive=$gl_cv_next_string_h
  12493. fi
  12494. NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
  12495. for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strerror_r strsignal strverscmp; do
  12496. as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  12497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  12498. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  12499. if eval \${$as_gl_Symbol+:} false; then :
  12500. $as_echo_n "(cached) " >&6
  12501. else
  12502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12503. /* end confdefs.h. */
  12504. #include <string.h>
  12505. int
  12506. main ()
  12507. {
  12508. @%:@undef $gl_func
  12509. (void) $gl_func;
  12510. ;
  12511. return 0;
  12512. }
  12513. _ACEOF
  12514. if ac_fn_c_try_compile "$LINENO"; then :
  12515. eval "$as_gl_Symbol=yes"
  12516. else
  12517. eval "$as_gl_Symbol=no"
  12518. fi
  12519. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12520. fi
  12521. eval ac_res=\$$as_gl_Symbol
  12522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12523. $as_echo "$ac_res" >&6; }
  12524. if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
  12525. cat >>confdefs.h <<_ACEOF
  12526. @%:@define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  12527. _ACEOF
  12528. eval ac_cv_have_decl_$gl_func=yes
  12529. fi
  12530. done
  12531. if false; then
  12532. GL_COND_LIBTOOL_TRUE=
  12533. GL_COND_LIBTOOL_FALSE='#'
  12534. else
  12535. GL_COND_LIBTOOL_TRUE='#'
  12536. GL_COND_LIBTOOL_FALSE=
  12537. fi
  12538. gl_cond_libtool=false
  12539. gl_libdeps=
  12540. gl_ltlibdeps=
  12541. gl_m4_base='m4'
  12542. gl_source_base='lib'
  12543. if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
  12544. gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
  12545. for ac_header in bp-sym.h
  12546. do :
  12547. ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
  12548. if test "x$ac_cv_header_bp_sym_h" = xyes; then :
  12549. cat >>confdefs.h <<_ACEOF
  12550. @%:@define HAVE_BP_SYM_H 1
  12551. _ACEOF
  12552. fi
  12553. done
  12554. fi
  12555. GNULIB_MEMCHR=1
  12556. $as_echo "@%:@define GNULIB_TEST_MEMCHR 1" >>confdefs.h
  12557. if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
  12558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
  12559. $as_echo_n "checking whether memmem works in linear time... " >&6; }
  12560. if ${gl_cv_func_memmem_works_fast+:} false; then :
  12561. $as_echo_n "(cached) " >&6
  12562. else
  12563. if test "$cross_compiling" = yes; then :
  12564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12565. /* end confdefs.h. */
  12566. #include <features.h>
  12567. #ifdef __GNU_LIBRARY__
  12568. #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
  12569. && !defined __UCLIBC__
  12570. Lucky user
  12571. #endif
  12572. #endif
  12573. #ifdef __CYGWIN__
  12574. #include <cygwin/version.h>
  12575. #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
  12576. Lucky user
  12577. #endif
  12578. #endif
  12579. _ACEOF
  12580. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12581. $EGREP "Lucky user" >/dev/null 2>&1; then :
  12582. gl_cv_func_memmem_works_fast=yes
  12583. else
  12584. gl_cv_func_memmem_works_fast="guessing no"
  12585. fi
  12586. rm -f conftest*
  12587. else
  12588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12589. /* end confdefs.h. */
  12590. #include <signal.h> /* for signal */
  12591. #include <string.h> /* for memmem */
  12592. #include <stdlib.h> /* for malloc */
  12593. #include <unistd.h> /* for alarm */
  12594. static void quit (int sig) { exit (sig + 128); }
  12595. int
  12596. main ()
  12597. {
  12598. int result = 0;
  12599. size_t m = 1000000;
  12600. char *haystack = (char *) malloc (2 * m + 1);
  12601. char *needle = (char *) malloc (m + 1);
  12602. /* Failure to compile this test due to missing alarm is okay,
  12603. since all such platforms (mingw) also lack memmem. */
  12604. signal (SIGALRM, quit);
  12605. alarm (5);
  12606. /* Check for quadratic performance. */
  12607. if (haystack && needle)
  12608. {
  12609. memset (haystack, 'A', 2 * m);
  12610. haystack[2 * m] = 'B';
  12611. memset (needle, 'A', m);
  12612. needle[m] = 'B';
  12613. if (!memmem (haystack, 2 * m + 1, needle, m + 1))
  12614. result |= 1;
  12615. }
  12616. return result;
  12617. ;
  12618. return 0;
  12619. }
  12620. _ACEOF
  12621. if ac_fn_c_try_run "$LINENO"; then :
  12622. gl_cv_func_memmem_works_fast=yes
  12623. else
  12624. gl_cv_func_memmem_works_fast=no
  12625. fi
  12626. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12627. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12628. fi
  12629. fi
  12630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
  12631. $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
  12632. if test "$gl_cv_func_memmem_works_fast" != yes; then
  12633. REPLACE_MEMMEM=1
  12634. fi
  12635. fi
  12636. if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
  12637. gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
  12638. fi
  12639. for ac_func in memmem
  12640. do :
  12641. ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
  12642. if test "x$ac_cv_func_memmem" = xyes; then :
  12643. cat >>confdefs.h <<_ACEOF
  12644. @%:@define HAVE_MEMMEM 1
  12645. _ACEOF
  12646. fi
  12647. done
  12648. if test $ac_cv_func_memmem = yes; then
  12649. HAVE_MEMMEM=1
  12650. else
  12651. HAVE_MEMMEM=0
  12652. fi
  12653. :
  12654. if test $ac_cv_have_decl_memmem = no; then
  12655. HAVE_DECL_MEMMEM=0
  12656. else
  12657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
  12658. $as_echo_n "checking whether memmem works... " >&6; }
  12659. if ${gl_cv_func_memmem_works_always+:} false; then :
  12660. $as_echo_n "(cached) " >&6
  12661. else
  12662. if test "$cross_compiling" = yes; then :
  12663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12664. /* end confdefs.h. */
  12665. #ifdef __GNU_LIBRARY__
  12666. #include <features.h>
  12667. #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
  12668. || __GLIBC_MINOR__ > 12)) \
  12669. || (__GLIBC__ > 2)) \
  12670. || defined __UCLIBC__
  12671. Lucky user
  12672. #endif
  12673. #elif defined __CYGWIN__
  12674. #include <cygwin/version.h>
  12675. #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
  12676. Lucky user
  12677. #endif
  12678. #else
  12679. Lucky user
  12680. #endif
  12681. _ACEOF
  12682. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12683. $EGREP "Lucky user" >/dev/null 2>&1; then :
  12684. gl_cv_func_memmem_works_always=yes
  12685. else
  12686. gl_cv_func_memmem_works_always="guessing no"
  12687. fi
  12688. rm -f conftest*
  12689. else
  12690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12691. /* end confdefs.h. */
  12692. #include <string.h> /* for memmem */
  12693. #define P "_EF_BF_BD"
  12694. #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
  12695. #define NEEDLE P P P P P
  12696. int
  12697. main ()
  12698. {
  12699. int result = 0;
  12700. if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
  12701. result |= 1;
  12702. /* Check for empty needle behavior. */
  12703. {
  12704. const char *haystack = "AAA";
  12705. if (memmem (haystack, 3, NULL, 0) != haystack)
  12706. result |= 2;
  12707. }
  12708. return result;
  12709. ;
  12710. return 0;
  12711. }
  12712. _ACEOF
  12713. if ac_fn_c_try_run "$LINENO"; then :
  12714. gl_cv_func_memmem_works_always=yes
  12715. else
  12716. gl_cv_func_memmem_works_always=no
  12717. fi
  12718. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12719. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12720. fi
  12721. fi
  12722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
  12723. $as_echo "$gl_cv_func_memmem_works_always" >&6; }
  12724. if test "$gl_cv_func_memmem_works_always" != yes; then
  12725. REPLACE_MEMMEM=1
  12726. fi
  12727. fi
  12728. :
  12729. if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
  12730. gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
  12731. fi
  12732. GNULIB_MEMMEM=1
  12733. $as_echo "@%:@define GNULIB_TEST_MEMMEM 1" >>confdefs.h
  12734. :
  12735. if test $ac_cv_func_sigaction = yes; then
  12736. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  12737. "
  12738. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  12739. cat >>confdefs.h <<_ACEOF
  12740. @%:@define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
  12741. _ACEOF
  12742. fi
  12743. if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
  12744. HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
  12745. fi
  12746. else
  12747. HAVE_SIGACTION=0
  12748. fi
  12749. if test $HAVE_SIGACTION = 0; then
  12750. gl_LIBOBJS="$gl_LIBOBJS sigaction.$ac_objext"
  12751. :
  12752. ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "
  12753. #include <signal.h>
  12754. "
  12755. if test "x$ac_cv_type_siginfo_t" = xyes; then :
  12756. cat >>confdefs.h <<_ACEOF
  12757. @%:@define HAVE_SIGINFO_T 1
  12758. _ACEOF
  12759. fi
  12760. if test $ac_cv_type_siginfo_t = no; then
  12761. HAVE_SIGINFO_T=0
  12762. fi
  12763. fi
  12764. GNULIB_SIGACTION=1
  12765. $as_echo "@%:@define GNULIB_TEST_SIGACTION 1" >>confdefs.h
  12766. if test $gl_cv_have_include_next = yes; then
  12767. gl_cv_next_signal_h='<'signal.h'>'
  12768. else
  12769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
  12770. $as_echo_n "checking absolute name of <signal.h>... " >&6; }
  12771. if ${gl_cv_next_signal_h+:} false; then :
  12772. $as_echo_n "(cached) " >&6
  12773. else
  12774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12775. /* end confdefs.h. */
  12776. #include <signal.h>
  12777. _ACEOF
  12778. case "$host_os" in
  12779. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  12780. *) gl_absname_cpp="$ac_cpp" ;;
  12781. esac
  12782. gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  12783. sed -n '\#/signal.h#{
  12784. s#.*"\(.*/signal.h\)".*#\1#
  12785. s#^/[^/]#//&#
  12786. p
  12787. q
  12788. }'`'"'
  12789. fi
  12790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
  12791. $as_echo "$gl_cv_next_signal_h" >&6; }
  12792. fi
  12793. NEXT_SIGNAL_H=$gl_cv_next_signal_h
  12794. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  12795. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  12796. gl_next_as_first_directive='<'signal.h'>'
  12797. else
  12798. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  12799. gl_next_as_first_directive=$gl_cv_next_signal_h
  12800. fi
  12801. NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
  12802. # AIX declares sig_atomic_t to already include volatile, and C89 compilers
  12803. # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
  12804. ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
  12805. #include <signal.h>
  12806. "
  12807. if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
  12808. else
  12809. HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
  12810. fi
  12811. ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
  12812. #include <signal.h>
  12813. "
  12814. if test "x$ac_cv_type_sighandler_t" = xyes; then :
  12815. else
  12816. HAVE_SIGHANDLER_T=0
  12817. fi
  12818. for gl_func in sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do
  12819. as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  12820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  12821. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  12822. if eval \${$as_gl_Symbol+:} false; then :
  12823. $as_echo_n "(cached) " >&6
  12824. else
  12825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12826. /* end confdefs.h. */
  12827. #include <signal.h>
  12828. int
  12829. main ()
  12830. {
  12831. @%:@undef $gl_func
  12832. (void) $gl_func;
  12833. ;
  12834. return 0;
  12835. }
  12836. _ACEOF
  12837. if ac_fn_c_try_compile "$LINENO"; then :
  12838. eval "$as_gl_Symbol=yes"
  12839. else
  12840. eval "$as_gl_Symbol=no"
  12841. fi
  12842. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12843. fi
  12844. eval ac_res=\$$as_gl_Symbol
  12845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12846. $as_echo "$ac_res" >&6; }
  12847. if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
  12848. cat >>confdefs.h <<_ACEOF
  12849. @%:@define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  12850. _ACEOF
  12851. eval ac_cv_have_decl_$gl_func=yes
  12852. fi
  12853. done
  12854. signals_not_posix=
  12855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12856. /* end confdefs.h. */
  12857. #include <signal.h>
  12858. _ACEOF
  12859. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12860. $EGREP "sigset_t" >/dev/null 2>&1; then :
  12861. else
  12862. signals_not_posix=1
  12863. fi
  12864. rm -f conftest*
  12865. if test -z "$signals_not_posix"; then
  12866. ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
  12867. if test "x$ac_cv_func_sigprocmask" = xyes; then :
  12868. gl_cv_func_sigprocmask=1
  12869. fi
  12870. fi
  12871. if test -z "$gl_cv_func_sigprocmask"; then
  12872. HAVE_POSIX_SIGNALBLOCKING=0
  12873. fi
  12874. if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
  12875. gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
  12876. ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <signal.h>
  12877. /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
  12878. #include <sys/types.h>
  12879. "
  12880. if test "x$ac_cv_type_sigset_t" = xyes; then :
  12881. cat >>confdefs.h <<_ACEOF
  12882. @%:@define HAVE_SIGSET_T 1
  12883. _ACEOF
  12884. gl_cv_type_sigset_t=yes
  12885. else
  12886. gl_cv_type_sigset_t=no
  12887. fi
  12888. if test $gl_cv_type_sigset_t != yes; then
  12889. HAVE_SIGSET_T=0
  12890. fi
  12891. fi
  12892. GNULIB_SIGPROCMASK=1
  12893. $as_echo "@%:@define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
  12894. STDDEF_H=
  12895. if test $gt_cv_c_wchar_t = no; then
  12896. HAVE_WCHAR_T=0
  12897. STDDEF_H=stddef.h
  12898. fi
  12899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
  12900. $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
  12901. if ${gl_cv_decl_null_works+:} false; then :
  12902. $as_echo_n "(cached) " >&6
  12903. else
  12904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12905. /* end confdefs.h. */
  12906. #include <stddef.h>
  12907. int test[2 * (sizeof NULL == sizeof (void *)) -1];
  12908. int
  12909. main ()
  12910. {
  12911. ;
  12912. return 0;
  12913. }
  12914. _ACEOF
  12915. if ac_fn_c_try_compile "$LINENO"; then :
  12916. gl_cv_decl_null_works=yes
  12917. else
  12918. gl_cv_decl_null_works=no
  12919. fi
  12920. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12921. fi
  12922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
  12923. $as_echo "$gl_cv_decl_null_works" >&6; }
  12924. if test $gl_cv_decl_null_works = no; then
  12925. REPLACE_NULL=1
  12926. STDDEF_H=stddef.h
  12927. fi
  12928. if test -n "$STDDEF_H"; then
  12929. GL_GENERATE_STDDEF_H_TRUE=
  12930. GL_GENERATE_STDDEF_H_FALSE='#'
  12931. else
  12932. GL_GENERATE_STDDEF_H_TRUE='#'
  12933. GL_GENERATE_STDDEF_H_FALSE=
  12934. fi
  12935. if test -n "$STDDEF_H"; then
  12936. if test $gl_cv_have_include_next = yes; then
  12937. gl_cv_next_stddef_h='<'stddef.h'>'
  12938. else
  12939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
  12940. $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
  12941. if ${gl_cv_next_stddef_h+:} false; then :
  12942. $as_echo_n "(cached) " >&6
  12943. else
  12944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12945. /* end confdefs.h. */
  12946. #include <stddef.h>
  12947. _ACEOF
  12948. case "$host_os" in
  12949. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  12950. *) gl_absname_cpp="$ac_cpp" ;;
  12951. esac
  12952. gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  12953. sed -n '\#/stddef.h#{
  12954. s#.*"\(.*/stddef.h\)".*#\1#
  12955. s#^/[^/]#//&#
  12956. p
  12957. q
  12958. }'`'"'
  12959. fi
  12960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
  12961. $as_echo "$gl_cv_next_stddef_h" >&6; }
  12962. fi
  12963. NEXT_STDDEF_H=$gl_cv_next_stddef_h
  12964. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  12965. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  12966. gl_next_as_first_directive='<'stddef.h'>'
  12967. else
  12968. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  12969. gl_next_as_first_directive=$gl_cv_next_stddef_h
  12970. fi
  12971. NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
  12972. fi
  12973. # End of code from modules
  12974. gltests_libdeps=
  12975. gltests_ltlibdeps=
  12976. gl_source_base='tests'
  12977. gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
  12978. gl_module_indicator_condition=$gltests_WITNESS
  12979. LIBGNU_LIBDEPS="$gl_libdeps"
  12980. LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
  12981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  12982. $as_echo_n "checking for ANSI C header files... " >&6; }
  12983. if ${ac_cv_header_stdc+:} false; then :
  12984. $as_echo_n "(cached) " >&6
  12985. else
  12986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12987. /* end confdefs.h. */
  12988. #include <stdlib.h>
  12989. #include <stdarg.h>
  12990. #include <string.h>
  12991. #include <float.h>
  12992. int
  12993. main ()
  12994. {
  12995. ;
  12996. return 0;
  12997. }
  12998. _ACEOF
  12999. if ac_fn_c_try_compile "$LINENO"; then :
  13000. ac_cv_header_stdc=yes
  13001. else
  13002. ac_cv_header_stdc=no
  13003. fi
  13004. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13005. if test $ac_cv_header_stdc = yes; then
  13006. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13008. /* end confdefs.h. */
  13009. #include <string.h>
  13010. _ACEOF
  13011. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13012. $EGREP "memchr" >/dev/null 2>&1; then :
  13013. else
  13014. ac_cv_header_stdc=no
  13015. fi
  13016. rm -f conftest*
  13017. fi
  13018. if test $ac_cv_header_stdc = yes; then
  13019. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13021. /* end confdefs.h. */
  13022. #include <stdlib.h>
  13023. _ACEOF
  13024. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13025. $EGREP "free" >/dev/null 2>&1; then :
  13026. else
  13027. ac_cv_header_stdc=no
  13028. fi
  13029. rm -f conftest*
  13030. fi
  13031. if test $ac_cv_header_stdc = yes; then
  13032. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13033. if test "$cross_compiling" = yes; then :
  13034. :
  13035. else
  13036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13037. /* end confdefs.h. */
  13038. #include <ctype.h>
  13039. #include <stdlib.h>
  13040. #if ((' ' & 0x0FF) == 0x020)
  13041. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13042. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13043. #else
  13044. # define ISLOWER(c) \
  13045. (('a' <= (c) && (c) <= 'i') \
  13046. || ('j' <= (c) && (c) <= 'r') \
  13047. || ('s' <= (c) && (c) <= 'z'))
  13048. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13049. #endif
  13050. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13051. int
  13052. main ()
  13053. {
  13054. int i;
  13055. for (i = 0; i < 256; i++)
  13056. if (XOR (islower (i), ISLOWER (i))
  13057. || toupper (i) != TOUPPER (i))
  13058. return 2;
  13059. return 0;
  13060. }
  13061. _ACEOF
  13062. if ac_fn_c_try_run "$LINENO"; then :
  13063. else
  13064. ac_cv_header_stdc=no
  13065. fi
  13066. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13067. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13068. fi
  13069. fi
  13070. fi
  13071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13072. $as_echo "$ac_cv_header_stdc" >&6; }
  13073. if test $ac_cv_header_stdc = yes; then
  13074. $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
  13075. fi
  13076. for ac_header in syslog.h
  13077. do :
  13078. ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
  13079. if test "x$ac_cv_header_syslog_h" = xyes; then :
  13080. cat >>confdefs.h <<_ACEOF
  13081. @%:@define HAVE_SYSLOG_H 1
  13082. _ACEOF
  13083. fi
  13084. done
  13085. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13086. if test "x$ac_cv_type_size_t" = xyes; then :
  13087. else
  13088. cat >>confdefs.h <<_ACEOF
  13089. @%:@define size_t unsigned int
  13090. _ACEOF
  13091. fi
  13092. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  13093. # for constant arguments. Useless!
  13094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  13095. $as_echo_n "checking for working alloca.h... " >&6; }
  13096. if ${ac_cv_working_alloca_h+:} false; then :
  13097. $as_echo_n "(cached) " >&6
  13098. else
  13099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13100. /* end confdefs.h. */
  13101. @%:@include <alloca.h>
  13102. int
  13103. main ()
  13104. {
  13105. char *p = (char *) alloca (2 * sizeof (int));
  13106. if (p) return 0;
  13107. ;
  13108. return 0;
  13109. }
  13110. _ACEOF
  13111. if ac_fn_c_try_link "$LINENO"; then :
  13112. ac_cv_working_alloca_h=yes
  13113. else
  13114. ac_cv_working_alloca_h=no
  13115. fi
  13116. rm -f core conftest.err conftest.$ac_objext \
  13117. conftest$ac_exeext conftest.$ac_ext
  13118. fi
  13119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  13120. $as_echo "$ac_cv_working_alloca_h" >&6; }
  13121. if test $ac_cv_working_alloca_h = yes; then
  13122. $as_echo "@%:@define HAVE_ALLOCA_H 1" >>confdefs.h
  13123. fi
  13124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  13125. $as_echo_n "checking for alloca... " >&6; }
  13126. if ${ac_cv_func_alloca_works+:} false; then :
  13127. $as_echo_n "(cached) " >&6
  13128. else
  13129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13130. /* end confdefs.h. */
  13131. #ifdef __GNUC__
  13132. # define alloca __builtin_alloca
  13133. #else
  13134. # ifdef _MSC_VER
  13135. # include <malloc.h>
  13136. # define alloca _alloca
  13137. # else
  13138. # ifdef HAVE_ALLOCA_H
  13139. # include <alloca.h>
  13140. # else
  13141. # ifdef _AIX
  13142. #pragma alloca
  13143. # else
  13144. # ifndef alloca /* predefined by HP cc +Olibcalls */
  13145. void *alloca (size_t);
  13146. # endif
  13147. # endif
  13148. # endif
  13149. # endif
  13150. #endif
  13151. int
  13152. main ()
  13153. {
  13154. char *p = (char *) alloca (1);
  13155. if (p) return 0;
  13156. ;
  13157. return 0;
  13158. }
  13159. _ACEOF
  13160. if ac_fn_c_try_link "$LINENO"; then :
  13161. ac_cv_func_alloca_works=yes
  13162. else
  13163. ac_cv_func_alloca_works=no
  13164. fi
  13165. rm -f core conftest.err conftest.$ac_objext \
  13166. conftest$ac_exeext conftest.$ac_ext
  13167. fi
  13168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  13169. $as_echo "$ac_cv_func_alloca_works" >&6; }
  13170. if test $ac_cv_func_alloca_works = yes; then
  13171. $as_echo "@%:@define HAVE_ALLOCA 1" >>confdefs.h
  13172. else
  13173. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  13174. # that cause trouble. Some versions do not even contain alloca or
  13175. # contain a buggy version. If you still want to use their alloca,
  13176. # use ar to extract alloca.o from them instead of compiling alloca.c.
  13177. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  13178. $as_echo "@%:@define C_ALLOCA 1" >>confdefs.h
  13179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  13180. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  13181. if ${ac_cv_os_cray+:} false; then :
  13182. $as_echo_n "(cached) " >&6
  13183. else
  13184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13185. /* end confdefs.h. */
  13186. #if defined CRAY && ! defined CRAY2
  13187. webecray
  13188. #else
  13189. wenotbecray
  13190. #endif
  13191. _ACEOF
  13192. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13193. $EGREP "webecray" >/dev/null 2>&1; then :
  13194. ac_cv_os_cray=yes
  13195. else
  13196. ac_cv_os_cray=no
  13197. fi
  13198. rm -f conftest*
  13199. fi
  13200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  13201. $as_echo "$ac_cv_os_cray" >&6; }
  13202. if test $ac_cv_os_cray = yes; then
  13203. for ac_func in _getb67 GETB67 getb67; do
  13204. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13205. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13206. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13207. cat >>confdefs.h <<_ACEOF
  13208. @%:@define CRAY_STACKSEG_END $ac_func
  13209. _ACEOF
  13210. break
  13211. fi
  13212. done
  13213. fi
  13214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  13215. $as_echo_n "checking stack direction for C alloca... " >&6; }
  13216. if ${ac_cv_c_stack_direction+:} false; then :
  13217. $as_echo_n "(cached) " >&6
  13218. else
  13219. if test "$cross_compiling" = yes; then :
  13220. ac_cv_c_stack_direction=0
  13221. else
  13222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13223. /* end confdefs.h. */
  13224. $ac_includes_default
  13225. int
  13226. find_stack_direction ()
  13227. {
  13228. static char *addr = 0;
  13229. auto char dummy;
  13230. if (addr == 0)
  13231. {
  13232. addr = &dummy;
  13233. return find_stack_direction ();
  13234. }
  13235. else
  13236. return (&dummy > addr) ? 1 : -1;
  13237. }
  13238. int
  13239. main ()
  13240. {
  13241. return find_stack_direction () < 0;
  13242. }
  13243. _ACEOF
  13244. if ac_fn_c_try_run "$LINENO"; then :
  13245. ac_cv_c_stack_direction=1
  13246. else
  13247. ac_cv_c_stack_direction=-1
  13248. fi
  13249. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13250. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13251. fi
  13252. fi
  13253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  13254. $as_echo "$ac_cv_c_stack_direction" >&6; }
  13255. cat >>confdefs.h <<_ACEOF
  13256. @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
  13257. _ACEOF
  13258. fi
  13259. have_win32=false
  13260. PTHREAD_FLAGS="-lpthread"
  13261. DLOPEN_FLAGS="-ldl"
  13262. WS2_LIBS=""
  13263. MM_LIBS=""
  13264. MATH_LIBS="-lm"
  13265. RT_LIBS="-lrt"
  13266. case $target in
  13267. amd64-*)
  13268. have_x86_64=true
  13269. ;;
  13270. x86_64-*)
  13271. have_x86_64=true
  13272. ;;
  13273. *)
  13274. have_x86_64=false
  13275. ;;
  13276. esac
  13277. case $target in
  13278. *-*-linux-gnu*)
  13279. have_linux=true
  13280. ;;
  13281. *-*-mingw*)
  13282. have_win32=true
  13283. PTHREAD_FLAGS=""
  13284. DLOPEN_FLAGS=""
  13285. WS2_LIBS="-lws2_32"
  13286. MM_LIBS="-lwinmm"
  13287. RT_LIBS=""
  13288. $as_echo "@%:@define _WIN32_WINNT 0x0501" >>confdefs.h
  13289. ;;
  13290. powerpc-*-darwin*)
  13291. have_darwin=true
  13292. CFLAGS="$CFLAGS -faltivec"
  13293. PTHREAD_FLAGS=""
  13294. RT_LIBS=""
  13295. ;;
  13296. *-*-darwin*)
  13297. have_darwin=true
  13298. PTHREAD_FLAGS=""
  13299. RT_LIBS=""
  13300. ;;
  13301. esac
  13302. has_winpthread=false
  13303. if test "x$have_win32" = xtrue; then
  13304. has_winpthread=true
  13305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lwinpthread" >&5
  13306. $as_echo_n "checking for nanosleep in -lwinpthread... " >&6; }
  13307. if ${ac_cv_lib_winpthread_nanosleep+:} false; then :
  13308. $as_echo_n "(cached) " >&6
  13309. else
  13310. ac_check_lib_save_LIBS=$LIBS
  13311. LIBS="-lwinpthread $LIBS"
  13312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13313. /* end confdefs.h. */
  13314. /* Override any GCC internal prototype to avoid an error.
  13315. Use char because int might match the return type of a GCC
  13316. builtin and then its argument prototype would still apply. */
  13317. #ifdef __cplusplus
  13318. extern "C"
  13319. #endif
  13320. char nanosleep ();
  13321. int
  13322. main ()
  13323. {
  13324. return nanosleep ();
  13325. ;
  13326. return 0;
  13327. }
  13328. _ACEOF
  13329. if ac_fn_c_try_link "$LINENO"; then :
  13330. ac_cv_lib_winpthread_nanosleep=yes
  13331. else
  13332. ac_cv_lib_winpthread_nanosleep=no
  13333. fi
  13334. rm -f core conftest.err conftest.$ac_objext \
  13335. conftest$ac_exeext conftest.$ac_ext
  13336. LIBS=$ac_check_lib_save_LIBS
  13337. fi
  13338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_winpthread_nanosleep" >&5
  13339. $as_echo "$ac_cv_lib_winpthread_nanosleep" >&6; }
  13340. if test "x$ac_cv_lib_winpthread_nanosleep" = xyes; then :
  13341. cat >>confdefs.h <<_ACEOF
  13342. @%:@define HAVE_LIBWINPTHREAD 1
  13343. _ACEOF
  13344. LIBS="-lwinpthread $LIBS"
  13345. else
  13346. has_winpthread=false
  13347. fi
  13348. PTHREAD_LIBS=-lwinpthread
  13349. fi
  13350. if test "x$has_winpthread" != xtrue; then
  13351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  13352. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  13353. if ${ac_cv_lib_pthread_pthread_create+:} false; then :
  13354. $as_echo_n "(cached) " >&6
  13355. else
  13356. ac_check_lib_save_LIBS=$LIBS
  13357. LIBS="-lpthread $LIBS"
  13358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13359. /* end confdefs.h. */
  13360. /* Override any GCC internal prototype to avoid an error.
  13361. Use char because int might match the return type of a GCC
  13362. builtin and then its argument prototype would still apply. */
  13363. #ifdef __cplusplus
  13364. extern "C"
  13365. #endif
  13366. char pthread_create ();
  13367. int
  13368. main ()
  13369. {
  13370. return pthread_create ();
  13371. ;
  13372. return 0;
  13373. }
  13374. _ACEOF
  13375. if ac_fn_c_try_link "$LINENO"; then :
  13376. ac_cv_lib_pthread_pthread_create=yes
  13377. else
  13378. ac_cv_lib_pthread_pthread_create=no
  13379. fi
  13380. rm -f core conftest.err conftest.$ac_objext \
  13381. conftest$ac_exeext conftest.$ac_ext
  13382. LIBS=$ac_check_lib_save_LIBS
  13383. fi
  13384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  13385. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  13386. if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
  13387. cat >>confdefs.h <<_ACEOF
  13388. @%:@define HAVE_LIBPTHREAD 1
  13389. _ACEOF
  13390. LIBS="-lpthread $LIBS"
  13391. else
  13392. as_fn_error $? "Could not find pthread library - please install libpthread" "$LINENO" 5
  13393. fi
  13394. PTHREAD_LIBS=-lpthread
  13395. fi
  13396. scrypt="no"
  13397. @%:@ Check whether --enable-scrypt was given.
  13398. if test "${enable_scrypt+set}" = set; then :
  13399. enableval=$enable_scrypt; scrypt=$enableval
  13400. fi
  13401. if test "x$scrypt" = xyes; then
  13402. $as_echo "@%:@define USE_SCRYPT 1" >>confdefs.h
  13403. fi
  13404. if test x$scrypt = xyes; then
  13405. HAS_SCRYPT_TRUE=
  13406. HAS_SCRYPT_FALSE='#'
  13407. else
  13408. HAS_SCRYPT_TRUE='#'
  13409. HAS_SCRYPT_FALSE=
  13410. fi
  13411. ants1="no"
  13412. @%:@ Check whether --enable-ants1 was given.
  13413. if test "${enable_ants1+set}" = set; then :
  13414. enableval=$enable_ants1; ants1=$enableval
  13415. fi
  13416. if test "x$ants1" = xyes; then
  13417. $as_echo "@%:@define USE_ANT_S1 1" >>confdefs.h
  13418. fi
  13419. if test x$ants1 = xyes; then
  13420. HAS_ANT_S1_TRUE=
  13421. HAS_ANT_S1_FALSE='#'
  13422. else
  13423. HAS_ANT_S1_TRUE='#'
  13424. HAS_ANT_S1_FALSE=
  13425. fi
  13426. ants2="no"
  13427. @%:@ Check whether --enable-ants2 was given.
  13428. if test "${enable_ants2+set}" = set; then :
  13429. enableval=$enable_ants2; ants2=$enableval
  13430. fi
  13431. if test "x$ants2" = xyes; then
  13432. $as_echo "@%:@define USE_ANT_S2 1" >>confdefs.h
  13433. fi
  13434. if test x$ants2 = xyes; then
  13435. HAS_ANT_S2_TRUE=
  13436. HAS_ANT_S2_FALSE='#'
  13437. else
  13438. HAS_ANT_S2_TRUE='#'
  13439. HAS_ANT_S2_FALSE=
  13440. fi
  13441. if test "x$ants1$ants2" = xyesyes; then
  13442. as_fn_error $? "Only one of --enable-ants1 and --enable-ants2 allowed" "$LINENO" 5
  13443. fi
  13444. avalon="no"
  13445. @%:@ Check whether --enable-avalon was given.
  13446. if test "${enable_avalon+set}" = set; then :
  13447. enableval=$enable_avalon; avalon=$enableval
  13448. fi
  13449. if test "x$avalon" = xyes; then
  13450. $as_echo "@%:@define USE_AVALON 1" >>confdefs.h
  13451. fi
  13452. if test x$avalon = xyes; then
  13453. HAS_AVALON_TRUE=
  13454. HAS_AVALON_FALSE='#'
  13455. else
  13456. HAS_AVALON_TRUE='#'
  13457. HAS_AVALON_FALSE=
  13458. fi
  13459. bab="no"
  13460. @%:@ Check whether --enable-bab was given.
  13461. if test "${enable_bab+set}" = set; then :
  13462. enableval=$enable_bab; bab=$enableval
  13463. fi
  13464. if test "x$bab" = xyes; then
  13465. $as_echo "@%:@define USE_BAB 1" >>confdefs.h
  13466. fi
  13467. if test x$bab = xyes; then
  13468. HAS_BAB_TRUE=
  13469. HAS_BAB_FALSE='#'
  13470. else
  13471. HAS_BAB_TRUE='#'
  13472. HAS_BAB_FALSE=
  13473. fi
  13474. bflsc="no"
  13475. @%:@ Check whether --enable-bflsc was given.
  13476. if test "${enable_bflsc+set}" = set; then :
  13477. enableval=$enable_bflsc; bflsc=$enableval
  13478. fi
  13479. if test "x$bflsc" = xyes; then
  13480. $as_echo "@%:@define USE_BFLSC 1" >>confdefs.h
  13481. fi
  13482. if test x$bflsc = xyes; then
  13483. HAS_BFLSC_TRUE=
  13484. HAS_BFLSC_FALSE='#'
  13485. else
  13486. HAS_BFLSC_TRUE='#'
  13487. HAS_BFLSC_FALSE=
  13488. fi
  13489. bitforce="no"
  13490. @%:@ Check whether --enable-bitforce was given.
  13491. if test "${enable_bitforce+set}" = set; then :
  13492. enableval=$enable_bitforce; bitforce=$enableval
  13493. fi
  13494. if test "x$bitforce" = xyes; then
  13495. $as_echo "@%:@define USE_BITFORCE 1" >>confdefs.h
  13496. fi
  13497. if test x$bitforce = xyes; then
  13498. HAS_BITFORCE_TRUE=
  13499. HAS_BITFORCE_FALSE='#'
  13500. else
  13501. HAS_BITFORCE_TRUE='#'
  13502. HAS_BITFORCE_FALSE=
  13503. fi
  13504. bitfury="no"
  13505. @%:@ Check whether --enable-bitfury was given.
  13506. if test "${enable_bitfury+set}" = set; then :
  13507. enableval=$enable_bitfury; bitfury=$enableval
  13508. fi
  13509. if test "x$bitfury" = xyes; then
  13510. $as_echo "@%:@define USE_BITFURY 1" >>confdefs.h
  13511. fi
  13512. if test x$bitfury = xyes; then
  13513. HAS_BITFURY_TRUE=
  13514. HAS_BITFURY_FALSE='#'
  13515. else
  13516. HAS_BITFURY_TRUE='#'
  13517. HAS_BITFURY_FALSE=
  13518. fi
  13519. cointerra="no"
  13520. @%:@ Check whether --enable-cointerra was given.
  13521. if test "${enable_cointerra+set}" = set; then :
  13522. enableval=$enable_cointerra; cointerra=$enableval
  13523. fi
  13524. if test "x$cointerra" = xyes; then
  13525. $as_echo "@%:@define USE_COINTERRA 1" >>confdefs.h
  13526. fi
  13527. if test x$cointerra = xyes; then
  13528. HAS_COINTERRA_TRUE=
  13529. HAS_COINTERRA_FALSE='#'
  13530. else
  13531. HAS_COINTERRA_TRUE='#'
  13532. HAS_COINTERRA_FALSE=
  13533. fi
  13534. bitmine_A1="no"
  13535. @%:@ Check whether --enable-bitmine_A1 was given.
  13536. if test "${enable_bitmine_A1+set}" = set; then :
  13537. enableval=$enable_bitmine_A1; bitmine_A1=$enableval
  13538. fi
  13539. if test "x$bitmine_A1" = xyes; then
  13540. $as_echo "@%:@define USE_BITMINE_A1 1" >>confdefs.h
  13541. fi
  13542. if test x$bitmine_A1 = xyes; then
  13543. HAS_BITMINE_A1_TRUE=
  13544. HAS_BITMINE_A1_FALSE='#'
  13545. else
  13546. HAS_BITMINE_A1_TRUE='#'
  13547. HAS_BITMINE_A1_FALSE=
  13548. fi
  13549. drillbit="no"
  13550. @%:@ Check whether --enable-drillbit was given.
  13551. if test "${enable_drillbit+set}" = set; then :
  13552. enableval=$enable_drillbit; drillbit=$enableval
  13553. fi
  13554. if test "x$drillbit" = xyes; then
  13555. $as_echo "@%:@define USE_DRILLBIT 1" >>confdefs.h
  13556. fi
  13557. if test x$drillbit = xyes; then
  13558. HAS_DRILLBIT_TRUE=
  13559. HAS_DRILLBIT_FALSE='#'
  13560. else
  13561. HAS_DRILLBIT_TRUE='#'
  13562. HAS_DRILLBIT_FALSE=
  13563. fi
  13564. hashfast="no"
  13565. @%:@ Check whether --enable-hashfast was given.
  13566. if test "${enable_hashfast+set}" = set; then :
  13567. enableval=$enable_hashfast; hashfast=$enableval
  13568. fi
  13569. if test "x$hashfast" = xyes; then
  13570. $as_echo "@%:@define USE_HASHFAST 1" >>confdefs.h
  13571. fi
  13572. if test x$hashfast = xyes; then
  13573. HAS_HASHFAST_TRUE=
  13574. HAS_HASHFAST_FALSE='#'
  13575. else
  13576. HAS_HASHFAST_TRUE='#'
  13577. HAS_HASHFAST_FALSE=
  13578. fi
  13579. icarus="no"
  13580. @%:@ Check whether --enable-icarus was given.
  13581. if test "${enable_icarus+set}" = set; then :
  13582. enableval=$enable_icarus; icarus=$enableval
  13583. fi
  13584. if test "x$icarus" = xyes; then
  13585. $as_echo "@%:@define USE_ICARUS 1" >>confdefs.h
  13586. fi
  13587. if test x$icarus = xyes; then
  13588. HAS_ICARUS_TRUE=
  13589. HAS_ICARUS_FALSE='#'
  13590. else
  13591. HAS_ICARUS_TRUE='#'
  13592. HAS_ICARUS_FALSE=
  13593. fi
  13594. klondike="no"
  13595. @%:@ Check whether --enable-klondike was given.
  13596. if test "${enable_klondike+set}" = set; then :
  13597. enableval=$enable_klondike; klondike=$enableval
  13598. fi
  13599. if test "x$klondike" = xyes; then
  13600. $as_echo "@%:@define USE_KLONDIKE 1" >>confdefs.h
  13601. fi
  13602. if test x$klondike = xyes; then
  13603. HAS_KLONDIKE_TRUE=
  13604. HAS_KLONDIKE_FALSE='#'
  13605. else
  13606. HAS_KLONDIKE_TRUE='#'
  13607. HAS_KLONDIKE_FALSE=
  13608. fi
  13609. knc="no"
  13610. @%:@ Check whether --enable-knc was given.
  13611. if test "${enable_knc+set}" = set; then :
  13612. enableval=$enable_knc; knc=$enableval
  13613. fi
  13614. if test "x$knc" = xyes; then
  13615. $as_echo "@%:@define USE_KNC 1" >>confdefs.h
  13616. fi
  13617. if test x$knc = xyes; then
  13618. HAS_KNC_TRUE=
  13619. HAS_KNC_FALSE='#'
  13620. else
  13621. HAS_KNC_TRUE='#'
  13622. HAS_KNC_FALSE=
  13623. fi
  13624. avalon2="no"
  13625. @%:@ Check whether --enable-avalon2 was given.
  13626. if test "${enable_avalon2+set}" = set; then :
  13627. enableval=$enable_avalon2; avalon2=$enableval
  13628. fi
  13629. if test "x$avalon2" = xyes; then
  13630. $as_echo "@%:@define USE_FPGA_SERIAL 1" >>confdefs.h
  13631. $as_echo "@%:@define USE_AVALON2 1" >>confdefs.h
  13632. fi
  13633. if test x$avalon2 = xyes; then
  13634. HAS_AVALON2_TRUE=
  13635. HAS_AVALON2_FALSE='#'
  13636. else
  13637. HAS_AVALON2_TRUE='#'
  13638. HAS_AVALON2_FALSE=
  13639. fi
  13640. minion="no"
  13641. @%:@ Check whether --enable-minion was given.
  13642. if test "${enable_minion+set}" = set; then :
  13643. enableval=$enable_minion; minion=$enableval
  13644. fi
  13645. if test "x$minion" = xyes; then
  13646. $as_echo "@%:@define USE_MINION 1" >>confdefs.h
  13647. fi
  13648. if test x$minion = xyes; then
  13649. HAS_MINION_TRUE=
  13650. HAS_MINION_FALSE='#'
  13651. else
  13652. HAS_MINION_TRUE='#'
  13653. HAS_MINION_FALSE=
  13654. fi
  13655. modminer="no"
  13656. @%:@ Check whether --enable-modminer was given.
  13657. if test "${enable_modminer+set}" = set; then :
  13658. enableval=$enable_modminer; modminer=$enableval
  13659. fi
  13660. if test "x$modminer" = xyes; then
  13661. $as_echo "@%:@define USE_MODMINER 1" >>confdefs.h
  13662. fi
  13663. if test x$modminer = xyes; then
  13664. HAS_MODMINER_TRUE=
  13665. HAS_MODMINER_FALSE='#'
  13666. else
  13667. HAS_MODMINER_TRUE='#'
  13668. HAS_MODMINER_FALSE=
  13669. fi
  13670. spondoolies="no"
  13671. @%:@ Check whether --enable-spondoolies was given.
  13672. if test "${enable_spondoolies+set}" = set; then :
  13673. enableval=$enable_spondoolies; spondoolies=$enableval
  13674. fi
  13675. if test "x$spondoolies" = xyes; then
  13676. $as_echo "@%:@define USE_SPONDOOLIES 1" >>confdefs.h
  13677. fi
  13678. if test x$spondoolies = xyes; then
  13679. HAS_SPONDOOLIES_TRUE=
  13680. HAS_SPONDOOLIES_FALSE='#'
  13681. else
  13682. HAS_SPONDOOLIES_TRUE='#'
  13683. HAS_SPONDOOLIES_FALSE=
  13684. fi
  13685. gridseed="no"
  13686. @%:@ Check whether --enable-gridseed was given.
  13687. if test "${enable_gridseed+set}" = set; then :
  13688. enableval=$enable_gridseed; gridseed=$enableval
  13689. fi
  13690. if test "x$gridseed" = xyes; then
  13691. $as_echo "@%:@define USE_FPGA_SERIAL 1" >>confdefs.h
  13692. $as_echo "@%:@define USE_GRIDSEED 1" >>confdefs.h
  13693. fi
  13694. if test x$gridseed = xyes; then
  13695. HAS_GRIDSEED_TRUE=
  13696. HAS_GRIDSEED_FALSE='#'
  13697. else
  13698. HAS_GRIDSEED_TRUE='#'
  13699. HAS_GRIDSEED_FALSE=
  13700. fi
  13701. zeus="no"
  13702. @%:@ Check whether --enable-zeus was given.
  13703. if test "${enable_zeus+set}" = set; then :
  13704. enableval=$enable_zeus; zeus=$enableval
  13705. fi
  13706. if test "x$zeus" = xyes; then
  13707. $as_echo "@%:@define USE_FPGA_SERIAL 1" >>confdefs.h
  13708. $as_echo "@%:@define USE_ZEUS 1" >>confdefs.h
  13709. fi
  13710. if test x$zeus = xyes; then
  13711. HAS_ZEUS_TRUE=
  13712. HAS_ZEUS_FALSE='#'
  13713. else
  13714. HAS_ZEUS_TRUE='#'
  13715. HAS_ZEUS_FALSE=
  13716. fi
  13717. lketc="no"
  13718. @%:@ Check whether --enable-lketc was given.
  13719. if test "${enable_lketc+set}" = set; then :
  13720. enableval=$enable_lketc; lketc=$enableval
  13721. fi
  13722. if test "x$lketc" = xyes; then
  13723. $as_echo "@%:@define USE_FPGA_SERIAL 1" >>confdefs.h
  13724. $as_echo "@%:@define USE_LKETC 1" >>confdefs.h
  13725. fi
  13726. if test x$lketc = xyes; then
  13727. HAS_LKETC_TRUE=
  13728. HAS_LKETC_FALSE='#'
  13729. else
  13730. HAS_LKETC_TRUE='#'
  13731. HAS_LKETC_FALSE=
  13732. fi
  13733. curses="auto"
  13734. @%:@ Check whether --with-curses was given.
  13735. if test "${with_curses+set}" = set; then :
  13736. withval=$with_curses; curses=$withval
  13737. fi
  13738. if test "x$curses" = "xno"; then
  13739. cursesmsg='User specified --without-curses. TUI support DISABLED'
  13740. else
  13741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing addstr" >&5
  13742. $as_echo_n "checking for library containing addstr... " >&6; }
  13743. if ${ac_cv_search_addstr+:} false; then :
  13744. $as_echo_n "(cached) " >&6
  13745. else
  13746. ac_func_search_save_LIBS=$LIBS
  13747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13748. /* end confdefs.h. */
  13749. /* Override any GCC internal prototype to avoid an error.
  13750. Use char because int might match the return type of a GCC
  13751. builtin and then its argument prototype would still apply. */
  13752. #ifdef __cplusplus
  13753. extern "C"
  13754. #endif
  13755. char addstr ();
  13756. int
  13757. main ()
  13758. {
  13759. return addstr ();
  13760. ;
  13761. return 0;
  13762. }
  13763. _ACEOF
  13764. for ac_lib in '' ncurses pdcurses; do
  13765. if test -z "$ac_lib"; then
  13766. ac_res="none required"
  13767. else
  13768. ac_res=-l$ac_lib
  13769. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13770. fi
  13771. if ac_fn_c_try_link "$LINENO"; then :
  13772. ac_cv_search_addstr=$ac_res
  13773. fi
  13774. rm -f core conftest.err conftest.$ac_objext \
  13775. conftest$ac_exeext
  13776. if ${ac_cv_search_addstr+:} false; then :
  13777. break
  13778. fi
  13779. done
  13780. if ${ac_cv_search_addstr+:} false; then :
  13781. else
  13782. ac_cv_search_addstr=no
  13783. fi
  13784. rm conftest.$ac_ext
  13785. LIBS=$ac_func_search_save_LIBS
  13786. fi
  13787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_addstr" >&5
  13788. $as_echo "$ac_cv_search_addstr" >&6; }
  13789. ac_res=$ac_cv_search_addstr
  13790. if test "$ac_res" != no; then :
  13791. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13792. curses=yes
  13793. cursesmsg="FOUND: ${ac_cv_search_addstr}"
  13794. $as_echo "@%:@define HAVE_CURSES 1" >>confdefs.h
  13795. else
  13796. if test "x$curses" = "xyes"; then
  13797. as_fn_error $? "Could not find curses library - please install libncurses-dev or pdcurses-dev (or configure --without-curses)" "$LINENO" 5
  13798. else
  13799. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find curses library - if you want a TUI, install libncurses-dev or pdcurses-dev" >&5
  13800. $as_echo "$as_me: WARNING: Could not find curses library - if you want a TUI, install libncurses-dev or pdcurses-dev" >&2;}
  13801. curses=no
  13802. cursesmsg='NOT FOUND. TUI support DISABLED'
  13803. fi
  13804. fi
  13805. fi
  13806. if test x$avalon$bitforce$bitfury$modminer$bflsc$icarus$hashfast$klondike$drillbit$cointerra$ants1$ants2$gridseed$zeus$lketc != xnonononononononononononononono; then
  13807. want_usbutils=true
  13808. else
  13809. want_usbutils=false
  13810. fi
  13811. if test x$bitfury != xno; then
  13812. want_libbitfury=true
  13813. else
  13814. want_libbitfury=false
  13815. fi
  13816. if test x$gridseed$zeus$lketc != xnonono; then
  13817. want_libudev=true
  13818. else
  13819. want_libudev=false
  13820. fi
  13821. if test x$avalon2$modminer$gridseed$zeus$lketc != xnonononono; then
  13822. NEED_FPGAUTILS_TRUE=
  13823. NEED_FPGAUTILS_FALSE='#'
  13824. else
  13825. NEED_FPGAUTILS_TRUE='#'
  13826. NEED_FPGAUTILS_FALSE=
  13827. fi
  13828. if test x$want_usbutils != xfalse; then
  13829. WANT_USBUTILS_TRUE=
  13830. WANT_USBUTILS_FALSE='#'
  13831. else
  13832. WANT_USBUTILS_TRUE='#'
  13833. WANT_USBUTILS_FALSE=
  13834. fi
  13835. if test x$want_libbitfury != xfalse; then
  13836. WANT_LIBBITFURY_TRUE=
  13837. WANT_LIBBITFURY_FALSE='#'
  13838. else
  13839. WANT_LIBBITFURY_TRUE='#'
  13840. WANT_LIBBITFURY_FALSE=
  13841. fi
  13842. if test x$curses = xyes; then
  13843. HAVE_CURSES_TRUE=
  13844. HAVE_CURSES_FALSE='#'
  13845. else
  13846. HAVE_CURSES_TRUE='#'
  13847. HAVE_CURSES_FALSE=
  13848. fi
  13849. if test x$have_win32 = xtrue; then
  13850. HAVE_WINDOWS_TRUE=
  13851. HAVE_WINDOWS_FALSE='#'
  13852. else
  13853. HAVE_WINDOWS_TRUE='#'
  13854. HAVE_WINDOWS_FALSE=
  13855. fi
  13856. if test x$have_x86_64 = xtrue; then
  13857. HAVE_x86_64_TRUE=
  13858. HAVE_x86_64_FALSE='#'
  13859. else
  13860. HAVE_x86_64_TRUE='#'
  13861. HAVE_x86_64_FALSE=
  13862. fi
  13863. if test "x$want_usbutils" != xfalse; then
  13864. dlibusb="no"
  13865. $as_echo "@%:@define USE_USBUTILS 1" >>confdefs.h
  13866. @%:@ Check whether --with-system-libusb was given.
  13867. if test "${with_system_libusb+set}" = set; then :
  13868. withval=$with_system_libusb; dlibusb=$withval
  13869. fi
  13870. if test "x$dlibusb" != xno; then
  13871. case $target in
  13872. *-*-freebsd*)
  13873. LIBUSB_LIBS="-lusb"
  13874. LIBUSB_CFLAGS=""
  13875. $as_echo "@%:@define HAVE_LIBUSB 1" >>confdefs.h
  13876. ;;
  13877. *)
  13878. PKG_CHECK_MODULES(LIBUSB, libusb-1.0, AC_DEFINE(HAVE_LIBUSB, 1, [Define if you have libusb-1.0]), AC_MSG_ERROR([Could not find usb library - please install libusb-1.0]))
  13879. ;;
  13880. esac
  13881. else
  13882. subdirs="$subdirs compat/libusb-1.0"
  13883. LIBUSB_LIBS="compat/libusb-1.0/libusb/.libs/libusb-1.0.a"
  13884. if test "x$have_linux" = "xtrue"; then
  13885. LIBUSB_LIBS+=" -ludev"
  13886. fi
  13887. if test "x$have_darwin" = "xtrue"; then
  13888. LIBUSB_LIBS+=" -lobjc"
  13889. LDFLAGS+=" -framework CoreFoundation -framework IOKit"
  13890. fi
  13891. fi
  13892. else
  13893. LIBUSB_LIBS=""
  13894. fi
  13895. if test "x$want_libudev" != xfalse; then
  13896. if test "x$have_linux" = "xtrue"; then
  13897. $as_echo "@%:@define HAVE_LIBUDEV 1" >>confdefs.h
  13898. LIBUDEV_LIBS="-ludev"
  13899. fi
  13900. else
  13901. LIBUDEV_LIBS=""
  13902. fi
  13903. if test x$dlibusb = xno; then
  13904. WANT_STATIC_LIBUSB_TRUE=
  13905. WANT_STATIC_LIBUSB_FALSE='#'
  13906. else
  13907. WANT_STATIC_LIBUSB_TRUE='#'
  13908. WANT_STATIC_LIBUSB_FALSE=
  13909. fi
  13910. subdirs="$subdirs compat/jansson-2.5"
  13911. JANSSON_LIBS="compat/jansson-2.5/src/.libs/libjansson.a"
  13912. PKG_PROG_PKG_CONFIG()
  13913. if test "x$have_cgminer_sdk" = "xtrue"; then
  13914. if test "x$have_x86_64" = xtrue; then
  13915. ARCH_DIR=x86_64
  13916. else
  13917. ARCH_DIR=x86
  13918. fi
  13919. PKG_CONFIG="${PKG_CONFIG:-pkg-config} --define-variable=arch=$ARCH_DIR --define-variable=target=$target --define-variable=cgminersdkdir=$CGMINER_SDK"
  13920. PKG_CONFIG_PATH="$CGMINER_SDK/lib/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}"
  13921. fi
  13922. @%:@ Check whether --enable-libcurl was given.
  13923. if test "${enable_libcurl+set}" = set; then :
  13924. enableval=$enable_libcurl; libcurl=$enableval
  13925. fi
  13926. if test "x$libcurl" != xno; then
  13927. if test "x$have_win32" != xtrue; then
  13928. PKG_CHECK_MODULES(LIBCURL, libcurl >= 7.25.0, AC_DEFINE([CURL_HAS_KEEPALIVE], [1], [Defined if version of curl supports keepalive.]),
  13929. PKG_CHECK_MODULES([LIBCURL], [libcurl >= 7.18.2], ,[AC_MSG_ERROR([Missing required libcurl dev >= 7.18.2])]))
  13930. else
  13931. PKG_CHECK_MODULES(LIBCURL, libcurl >= 7.25.0, ,AC_MSG_ERROR([Missing required libcurl dev >= 7.25.0]))
  13932. $as_echo "@%:@define CURL_HAS_KEEPALIVE 1" >>confdefs.h
  13933. fi
  13934. $as_echo "@%:@define HAVE_LIBCURL 1" >>confdefs.h
  13935. else
  13936. LIBCURL_LIBS=""
  13937. fi
  13938. #check execv signature
  13939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13940. /* end confdefs.h. */
  13941. #include <process.h>
  13942. int execv(const char*, const char*const*);
  13943. _ACEOF
  13944. if ac_fn_c_try_compile "$LINENO"; then :
  13945. $as_echo "@%:@define EXECV_2ND_ARG_TYPE const char* const*" >>confdefs.h
  13946. else
  13947. $as_echo "@%:@define EXECV_2ND_ARG_TYPE char* const*" >>confdefs.h
  13948. fi
  13949. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13950. # All the configuration checks. Regrettably, the __attribute__ checks will
  13951. # give false positives on old GCCs, since they just cause warnings. But that's
  13952. # fairly harmless.
  13953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13954. /* end confdefs.h. */
  13955. static void __attribute__((cold)) cleanup(void) { }
  13956. _ACEOF
  13957. if ac_fn_c_try_compile "$LINENO"; then :
  13958. $as_echo "@%:@define HAVE_ATTRIBUTE_COLD 1" >>confdefs.h
  13959. fi
  13960. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13962. /* end confdefs.h. */
  13963. static void __attribute__((const)) cleanup(void) { }
  13964. _ACEOF
  13965. if ac_fn_c_try_compile "$LINENO"; then :
  13966. $as_echo "@%:@define HAVE_ATTRIBUTE_CONST 1" >>confdefs.h
  13967. fi
  13968. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13970. /* end confdefs.h. */
  13971. static void __attribute__((noreturn)) cleanup(void) { exit(1); }
  13972. _ACEOF
  13973. if ac_fn_c_try_compile "$LINENO"; then :
  13974. $as_echo "@%:@define HAVE_ATTRIBUTE_NORETURN 1" >>confdefs.h
  13975. fi
  13976. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13978. /* end confdefs.h. */
  13979. static void __attribute__((format(__printf__, 1, 2))) cleanup(const char *fmt, ...) { }
  13980. _ACEOF
  13981. if ac_fn_c_try_compile "$LINENO"; then :
  13982. $as_echo "@%:@define HAVE_ATTRIBUTE_PRINTF 1" >>confdefs.h
  13983. fi
  13984. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13986. /* end confdefs.h. */
  13987. static void __attribute__((unused)) cleanup(void) { }
  13988. _ACEOF
  13989. if ac_fn_c_try_compile "$LINENO"; then :
  13990. $as_echo "@%:@define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h
  13991. fi
  13992. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13994. /* end confdefs.h. */
  13995. static void __attribute__((used)) cleanup(void) { }
  13996. _ACEOF
  13997. if ac_fn_c_try_compile "$LINENO"; then :
  13998. $as_echo "@%:@define HAVE_ATTRIBUTE_USED 1" >>confdefs.h
  13999. fi
  14000. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14002. /* end confdefs.h. */
  14003. int main(void) { return __builtin_constant_p(1) ? 0 : 1; }
  14004. _ACEOF
  14005. if ac_fn_c_try_link "$LINENO"; then :
  14006. $as_echo "@%:@define HAVE_BUILTIN_CONSTANT_P 1" >>confdefs.h
  14007. fi
  14008. rm -f core conftest.err conftest.$ac_objext \
  14009. conftest$ac_exeext conftest.$ac_ext
  14010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14011. /* end confdefs.h. */
  14012. int main(void) { return __builtin_types_compatible_p(char *, int) ? 1 : 0; }
  14013. _ACEOF
  14014. if ac_fn_c_try_link "$LINENO"; then :
  14015. $as_echo "@%:@define HAVE_BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h
  14016. fi
  14017. rm -f core conftest.err conftest.$ac_objext \
  14018. conftest$ac_exeext conftest.$ac_ext
  14019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14020. /* end confdefs.h. */
  14021. static int __attribute__((warn_unused_result)) func(int x) { return x; }
  14022. _ACEOF
  14023. if ac_fn_c_try_compile "$LINENO"; then :
  14024. $as_echo "@%:@define HAVE_WARN_UNUSED_RESULT 1" >>confdefs.h
  14025. fi
  14026. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14027. if test "x$prefix" = xNONE; then
  14028. prefix=/usr/local
  14029. fi
  14030. cat >>confdefs.h <<_ACEOF
  14031. @%:@define CGMINER_PREFIX "$prefix/bin"
  14032. _ACEOF
  14033. ac_config_files="$ac_config_files Makefile compat/Makefile ccan/Makefile lib/Makefile "
  14034. cat >confcache <<\_ACEOF
  14035. # This file is a shell script that caches the results of configure
  14036. # tests run on this system so they can be shared between configure
  14037. # scripts and configure runs, see configure's option --config-cache.
  14038. # It is not useful on other systems. If it contains results you don't
  14039. # want to keep, you may remove or edit it.
  14040. #
  14041. # config.status only pays attention to the cache file if you give it
  14042. # the --recheck option to rerun configure.
  14043. #
  14044. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14045. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14046. # following values.
  14047. _ACEOF
  14048. # The following way of writing the cache mishandles newlines in values,
  14049. # but we know of no workaround that is simple, portable, and efficient.
  14050. # So, we kill variables containing newlines.
  14051. # Ultrix sh set writes to stderr and can't be redirected directly,
  14052. # and sets the high bit in the cache file unless we assign to the vars.
  14053. (
  14054. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14055. eval ac_val=\$$ac_var
  14056. case $ac_val in #(
  14057. *${as_nl}*)
  14058. case $ac_var in #(
  14059. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14060. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14061. esac
  14062. case $ac_var in #(
  14063. _ | IFS | as_nl) ;; #(
  14064. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14065. *) { eval $ac_var=; unset $ac_var;} ;;
  14066. esac ;;
  14067. esac
  14068. done
  14069. (set) 2>&1 |
  14070. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14071. *${as_nl}ac_space=\ *)
  14072. # `set' does not quote correctly, so add quotes: double-quote
  14073. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14074. sed -n \
  14075. "s/'/'\\\\''/g;
  14076. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14077. ;; #(
  14078. *)
  14079. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14080. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14081. ;;
  14082. esac |
  14083. sort
  14084. ) |
  14085. sed '
  14086. /^ac_cv_env_/b end
  14087. t clear
  14088. :clear
  14089. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14090. t end
  14091. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14092. :end' >>confcache
  14093. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14094. if test -w "$cache_file"; then
  14095. if test "x$cache_file" != "x/dev/null"; then
  14096. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14097. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14098. if test ! -f "$cache_file" || test -h "$cache_file"; then
  14099. cat confcache >"$cache_file"
  14100. else
  14101. case $cache_file in #(
  14102. */* | ?:*)
  14103. mv -f confcache "$cache_file"$$ &&
  14104. mv -f "$cache_file"$$ "$cache_file" ;; #(
  14105. *)
  14106. mv -f confcache "$cache_file" ;;
  14107. esac
  14108. fi
  14109. fi
  14110. else
  14111. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14112. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14113. fi
  14114. fi
  14115. rm -f confcache
  14116. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14117. # Let make expand exec_prefix.
  14118. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14119. DEFS=-DHAVE_CONFIG_H
  14120. ac_libobjs=
  14121. ac_ltlibobjs=
  14122. U=
  14123. for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
  14124. # 1. Remove the extension, and $U if already installed.
  14125. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14126. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14127. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14128. # will be set to the directory where LIBOBJS objects are built.
  14129. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14130. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14131. done
  14132. LIB@&t@OBJS=$ac_libobjs
  14133. LTLIBOBJS=$ac_ltlibobjs
  14134. if test -n "$EXEEXT"; then
  14135. am__EXEEXT_TRUE=
  14136. am__EXEEXT_FALSE='#'
  14137. else
  14138. am__EXEEXT_TRUE='#'
  14139. am__EXEEXT_FALSE=
  14140. fi
  14141. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14142. as_fn_error $? "conditional \"AMDEP\" was never defined.
  14143. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14144. fi
  14145. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14146. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14147. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14148. fi
  14149. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  14150. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  14151. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14152. fi
  14153. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14154. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14155. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14156. fi
  14157. if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
  14158. as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
  14159. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14160. fi
  14161. if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
  14162. as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
  14163. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14164. fi
  14165. if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
  14166. as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
  14167. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14168. fi
  14169. gl_libobjs=
  14170. gl_ltlibobjs=
  14171. if test -n "$gl_LIBOBJS"; then
  14172. # Remove the extension.
  14173. sed_drop_objext='s/\.o$//;s/\.obj$//'
  14174. for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
  14175. gl_libobjs="$gl_libobjs $i.$ac_objext"
  14176. gl_ltlibobjs="$gl_ltlibobjs $i.lo"
  14177. done
  14178. fi
  14179. gl_LIBOBJS=$gl_libobjs
  14180. gl_LTLIBOBJS=$gl_ltlibobjs
  14181. gltests_libobjs=
  14182. gltests_ltlibobjs=
  14183. if test -n "$gltests_LIBOBJS"; then
  14184. # Remove the extension.
  14185. sed_drop_objext='s/\.o$//;s/\.obj$//'
  14186. for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
  14187. gltests_libobjs="$gltests_libobjs $i.$ac_objext"
  14188. gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
  14189. done
  14190. fi
  14191. gltests_LIBOBJS=$gltests_libobjs
  14192. gltests_LTLIBOBJS=$gltests_ltlibobjs
  14193. if test -z "${HAS_SCRYPT_TRUE}" && test -z "${HAS_SCRYPT_FALSE}"; then
  14194. as_fn_error $? "conditional \"HAS_SCRYPT\" was never defined.
  14195. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14196. fi
  14197. if test -z "${HAS_ANT_S1_TRUE}" && test -z "${HAS_ANT_S1_FALSE}"; then
  14198. as_fn_error $? "conditional \"HAS_ANT_S1\" was never defined.
  14199. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14200. fi
  14201. if test -z "${HAS_ANT_S2_TRUE}" && test -z "${HAS_ANT_S2_FALSE}"; then
  14202. as_fn_error $? "conditional \"HAS_ANT_S2\" was never defined.
  14203. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14204. fi
  14205. if test -z "${HAS_AVALON_TRUE}" && test -z "${HAS_AVALON_FALSE}"; then
  14206. as_fn_error $? "conditional \"HAS_AVALON\" was never defined.
  14207. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14208. fi
  14209. if test -z "${HAS_BAB_TRUE}" && test -z "${HAS_BAB_FALSE}"; then
  14210. as_fn_error $? "conditional \"HAS_BAB\" was never defined.
  14211. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14212. fi
  14213. if test -z "${HAS_BFLSC_TRUE}" && test -z "${HAS_BFLSC_FALSE}"; then
  14214. as_fn_error $? "conditional \"HAS_BFLSC\" was never defined.
  14215. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14216. fi
  14217. if test -z "${HAS_BITFORCE_TRUE}" && test -z "${HAS_BITFORCE_FALSE}"; then
  14218. as_fn_error $? "conditional \"HAS_BITFORCE\" was never defined.
  14219. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14220. fi
  14221. if test -z "${HAS_BITFURY_TRUE}" && test -z "${HAS_BITFURY_FALSE}"; then
  14222. as_fn_error $? "conditional \"HAS_BITFURY\" was never defined.
  14223. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14224. fi
  14225. if test -z "${HAS_COINTERRA_TRUE}" && test -z "${HAS_COINTERRA_FALSE}"; then
  14226. as_fn_error $? "conditional \"HAS_COINTERRA\" was never defined.
  14227. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14228. fi
  14229. if test -z "${HAS_BITMINE_A1_TRUE}" && test -z "${HAS_BITMINE_A1_FALSE}"; then
  14230. as_fn_error $? "conditional \"HAS_BITMINE_A1\" was never defined.
  14231. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14232. fi
  14233. if test -z "${HAS_DRILLBIT_TRUE}" && test -z "${HAS_DRILLBIT_FALSE}"; then
  14234. as_fn_error $? "conditional \"HAS_DRILLBIT\" was never defined.
  14235. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14236. fi
  14237. if test -z "${HAS_HASHFAST_TRUE}" && test -z "${HAS_HASHFAST_FALSE}"; then
  14238. as_fn_error $? "conditional \"HAS_HASHFAST\" was never defined.
  14239. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14240. fi
  14241. if test -z "${HAS_ICARUS_TRUE}" && test -z "${HAS_ICARUS_FALSE}"; then
  14242. as_fn_error $? "conditional \"HAS_ICARUS\" was never defined.
  14243. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14244. fi
  14245. if test -z "${HAS_KLONDIKE_TRUE}" && test -z "${HAS_KLONDIKE_FALSE}"; then
  14246. as_fn_error $? "conditional \"HAS_KLONDIKE\" was never defined.
  14247. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14248. fi
  14249. if test -z "${HAS_KNC_TRUE}" && test -z "${HAS_KNC_FALSE}"; then
  14250. as_fn_error $? "conditional \"HAS_KNC\" was never defined.
  14251. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14252. fi
  14253. if test -z "${HAS_AVALON2_TRUE}" && test -z "${HAS_AVALON2_FALSE}"; then
  14254. as_fn_error $? "conditional \"HAS_AVALON2\" was never defined.
  14255. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14256. fi
  14257. if test -z "${HAS_MINION_TRUE}" && test -z "${HAS_MINION_FALSE}"; then
  14258. as_fn_error $? "conditional \"HAS_MINION\" was never defined.
  14259. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14260. fi
  14261. if test -z "${HAS_MODMINER_TRUE}" && test -z "${HAS_MODMINER_FALSE}"; then
  14262. as_fn_error $? "conditional \"HAS_MODMINER\" was never defined.
  14263. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14264. fi
  14265. if test -z "${HAS_SPONDOOLIES_TRUE}" && test -z "${HAS_SPONDOOLIES_FALSE}"; then
  14266. as_fn_error $? "conditional \"HAS_SPONDOOLIES\" was never defined.
  14267. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14268. fi
  14269. if test -z "${HAS_GRIDSEED_TRUE}" && test -z "${HAS_GRIDSEED_FALSE}"; then
  14270. as_fn_error $? "conditional \"HAS_GRIDSEED\" was never defined.
  14271. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14272. fi
  14273. if test -z "${HAS_ZEUS_TRUE}" && test -z "${HAS_ZEUS_FALSE}"; then
  14274. as_fn_error $? "conditional \"HAS_ZEUS\" was never defined.
  14275. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14276. fi
  14277. if test -z "${HAS_LKETC_TRUE}" && test -z "${HAS_LKETC_FALSE}"; then
  14278. as_fn_error $? "conditional \"HAS_LKETC\" was never defined.
  14279. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14280. fi
  14281. if test -z "${NEED_FPGAUTILS_TRUE}" && test -z "${NEED_FPGAUTILS_FALSE}"; then
  14282. as_fn_error $? "conditional \"NEED_FPGAUTILS\" was never defined.
  14283. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14284. fi
  14285. if test -z "${WANT_USBUTILS_TRUE}" && test -z "${WANT_USBUTILS_FALSE}"; then
  14286. as_fn_error $? "conditional \"WANT_USBUTILS\" was never defined.
  14287. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14288. fi
  14289. if test -z "${WANT_LIBBITFURY_TRUE}" && test -z "${WANT_LIBBITFURY_FALSE}"; then
  14290. as_fn_error $? "conditional \"WANT_LIBBITFURY\" was never defined.
  14291. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14292. fi
  14293. if test -z "${HAVE_CURSES_TRUE}" && test -z "${HAVE_CURSES_FALSE}"; then
  14294. as_fn_error $? "conditional \"HAVE_CURSES\" was never defined.
  14295. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14296. fi
  14297. if test -z "${HAVE_WINDOWS_TRUE}" && test -z "${HAVE_WINDOWS_FALSE}"; then
  14298. as_fn_error $? "conditional \"HAVE_WINDOWS\" was never defined.
  14299. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14300. fi
  14301. if test -z "${HAVE_x86_64_TRUE}" && test -z "${HAVE_x86_64_FALSE}"; then
  14302. as_fn_error $? "conditional \"HAVE_x86_64\" was never defined.
  14303. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14304. fi
  14305. if test -z "${WANT_STATIC_LIBUSB_TRUE}" && test -z "${WANT_STATIC_LIBUSB_FALSE}"; then
  14306. as_fn_error $? "conditional \"WANT_STATIC_LIBUSB\" was never defined.
  14307. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14308. fi
  14309. : "${CONFIG_STATUS=./config.status}"
  14310. ac_write_fail=0
  14311. ac_clean_files_save=$ac_clean_files
  14312. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14313. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14314. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14315. as_write_fail=0
  14316. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14317. #! $SHELL
  14318. # Generated by $as_me.
  14319. # Run this file to recreate the current configuration.
  14320. # Compiler output produced by configure, useful for debugging
  14321. # configure, is in config.log if it exists.
  14322. debug=false
  14323. ac_cs_recheck=false
  14324. ac_cs_silent=false
  14325. SHELL=\${CONFIG_SHELL-$SHELL}
  14326. export SHELL
  14327. _ASEOF
  14328. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14329. ## -------------------- ##
  14330. ## M4sh Initialization. ##
  14331. ## -------------------- ##
  14332. # Be more Bourne compatible
  14333. DUALCASE=1; export DUALCASE # for MKS sh
  14334. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14335. emulate sh
  14336. NULLCMD=:
  14337. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14338. # is contrary to our usage. Disable this feature.
  14339. alias -g '${1+"$@"}'='"$@"'
  14340. setopt NO_GLOB_SUBST
  14341. else
  14342. case `(set -o) 2>/dev/null` in @%:@(
  14343. *posix*) :
  14344. set -o posix ;; @%:@(
  14345. *) :
  14346. ;;
  14347. esac
  14348. fi
  14349. as_nl='
  14350. '
  14351. export as_nl
  14352. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14353. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14354. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14355. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14356. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14357. # but without wasting forks for bash or zsh.
  14358. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14359. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14360. as_echo='print -r --'
  14361. as_echo_n='print -rn --'
  14362. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14363. as_echo='printf %s\n'
  14364. as_echo_n='printf %s'
  14365. else
  14366. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14367. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14368. as_echo_n='/usr/ucb/echo -n'
  14369. else
  14370. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14371. as_echo_n_body='eval
  14372. arg=$1;
  14373. case $arg in @%:@(
  14374. *"$as_nl"*)
  14375. expr "X$arg" : "X\\(.*\\)$as_nl";
  14376. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14377. esac;
  14378. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14379. '
  14380. export as_echo_n_body
  14381. as_echo_n='sh -c $as_echo_n_body as_echo'
  14382. fi
  14383. export as_echo_body
  14384. as_echo='sh -c $as_echo_body as_echo'
  14385. fi
  14386. # The user is always right.
  14387. if test "${PATH_SEPARATOR+set}" != set; then
  14388. PATH_SEPARATOR=:
  14389. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14390. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14391. PATH_SEPARATOR=';'
  14392. }
  14393. fi
  14394. # IFS
  14395. # We need space, tab and new line, in precisely that order. Quoting is
  14396. # there to prevent editors from complaining about space-tab.
  14397. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14398. # splitting by setting IFS to empty value.)
  14399. IFS=" "" $as_nl"
  14400. # Find who we are. Look in the path if we contain no directory separator.
  14401. as_myself=
  14402. case $0 in @%:@((
  14403. *[\\/]* ) as_myself=$0 ;;
  14404. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14405. for as_dir in $PATH
  14406. do
  14407. IFS=$as_save_IFS
  14408. test -z "$as_dir" && as_dir=.
  14409. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14410. done
  14411. IFS=$as_save_IFS
  14412. ;;
  14413. esac
  14414. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14415. # in which case we are not to be found in the path.
  14416. if test "x$as_myself" = x; then
  14417. as_myself=$0
  14418. fi
  14419. if test ! -f "$as_myself"; then
  14420. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14421. exit 1
  14422. fi
  14423. # Unset variables that we do not need and which cause bugs (e.g. in
  14424. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14425. # suppresses any "Segmentation fault" message there. '((' could
  14426. # trigger a bug in pdksh 5.2.14.
  14427. for as_var in BASH_ENV ENV MAIL MAILPATH
  14428. do eval test x\${$as_var+set} = xset \
  14429. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14430. done
  14431. PS1='$ '
  14432. PS2='> '
  14433. PS4='+ '
  14434. # NLS nuisances.
  14435. LC_ALL=C
  14436. export LC_ALL
  14437. LANGUAGE=C
  14438. export LANGUAGE
  14439. # CDPATH.
  14440. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14441. @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
  14442. @%:@ ----------------------------------------
  14443. @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14444. @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14445. @%:@ script with STATUS, using 1 if that was 0.
  14446. as_fn_error ()
  14447. {
  14448. as_status=$1; test $as_status -eq 0 && as_status=1
  14449. if test "$4"; then
  14450. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14451. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14452. fi
  14453. $as_echo "$as_me: error: $2" >&2
  14454. as_fn_exit $as_status
  14455. } @%:@ as_fn_error
  14456. @%:@ as_fn_set_status STATUS
  14457. @%:@ -----------------------
  14458. @%:@ Set @S|@? to STATUS, without forking.
  14459. as_fn_set_status ()
  14460. {
  14461. return $1
  14462. } @%:@ as_fn_set_status
  14463. @%:@ as_fn_exit STATUS
  14464. @%:@ -----------------
  14465. @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14466. as_fn_exit ()
  14467. {
  14468. set +e
  14469. as_fn_set_status $1
  14470. exit $1
  14471. } @%:@ as_fn_exit
  14472. @%:@ as_fn_unset VAR
  14473. @%:@ ---------------
  14474. @%:@ Portably unset VAR.
  14475. as_fn_unset ()
  14476. {
  14477. { eval $1=; unset $1;}
  14478. }
  14479. as_unset=as_fn_unset
  14480. @%:@ as_fn_append VAR VALUE
  14481. @%:@ ----------------------
  14482. @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
  14483. @%:@ advantage of any shell optimizations that allow amortized linear growth over
  14484. @%:@ repeated appends, instead of the typical quadratic growth present in naive
  14485. @%:@ implementations.
  14486. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14487. eval 'as_fn_append ()
  14488. {
  14489. eval $1+=\$2
  14490. }'
  14491. else
  14492. as_fn_append ()
  14493. {
  14494. eval $1=\$$1\$2
  14495. }
  14496. fi # as_fn_append
  14497. @%:@ as_fn_arith ARG...
  14498. @%:@ ------------------
  14499. @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
  14500. @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
  14501. @%:@ must be portable across @S|@(()) and expr.
  14502. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14503. eval 'as_fn_arith ()
  14504. {
  14505. as_val=$(( $* ))
  14506. }'
  14507. else
  14508. as_fn_arith ()
  14509. {
  14510. as_val=`expr "$@" || test $? -eq 1`
  14511. }
  14512. fi # as_fn_arith
  14513. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14514. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14515. as_expr=expr
  14516. else
  14517. as_expr=false
  14518. fi
  14519. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14520. as_basename=basename
  14521. else
  14522. as_basename=false
  14523. fi
  14524. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14525. as_dirname=dirname
  14526. else
  14527. as_dirname=false
  14528. fi
  14529. as_me=`$as_basename -- "$0" ||
  14530. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14531. X"$0" : 'X\(//\)$' \| \
  14532. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14533. $as_echo X/"$0" |
  14534. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14535. s//\1/
  14536. q
  14537. }
  14538. /^X\/\(\/\/\)$/{
  14539. s//\1/
  14540. q
  14541. }
  14542. /^X\/\(\/\).*/{
  14543. s//\1/
  14544. q
  14545. }
  14546. s/.*/./; q'`
  14547. # Avoid depending upon Character Ranges.
  14548. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14549. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14550. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14551. as_cr_digits='0123456789'
  14552. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14553. ECHO_C= ECHO_N= ECHO_T=
  14554. case `echo -n x` in @%:@(((((
  14555. -n*)
  14556. case `echo 'xy\c'` in
  14557. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14558. xy) ECHO_C='\c';;
  14559. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14560. ECHO_T=' ';;
  14561. esac;;
  14562. *)
  14563. ECHO_N='-n';;
  14564. esac
  14565. rm -f conf$$ conf$$.exe conf$$.file
  14566. if test -d conf$$.dir; then
  14567. rm -f conf$$.dir/conf$$.file
  14568. else
  14569. rm -f conf$$.dir
  14570. mkdir conf$$.dir 2>/dev/null
  14571. fi
  14572. if (echo >conf$$.file) 2>/dev/null; then
  14573. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14574. as_ln_s='ln -s'
  14575. # ... but there are two gotchas:
  14576. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14577. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14578. # In both cases, we have to default to `cp -p'.
  14579. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14580. as_ln_s='cp -p'
  14581. elif ln conf$$.file conf$$ 2>/dev/null; then
  14582. as_ln_s=ln
  14583. else
  14584. as_ln_s='cp -p'
  14585. fi
  14586. else
  14587. as_ln_s='cp -p'
  14588. fi
  14589. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14590. rmdir conf$$.dir 2>/dev/null
  14591. @%:@ as_fn_mkdir_p
  14592. @%:@ -------------
  14593. @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
  14594. as_fn_mkdir_p ()
  14595. {
  14596. case $as_dir in #(
  14597. -*) as_dir=./$as_dir;;
  14598. esac
  14599. test -d "$as_dir" || eval $as_mkdir_p || {
  14600. as_dirs=
  14601. while :; do
  14602. case $as_dir in #(
  14603. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14604. *) as_qdir=$as_dir;;
  14605. esac
  14606. as_dirs="'$as_qdir' $as_dirs"
  14607. as_dir=`$as_dirname -- "$as_dir" ||
  14608. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14609. X"$as_dir" : 'X\(//\)[^/]' \| \
  14610. X"$as_dir" : 'X\(//\)$' \| \
  14611. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14612. $as_echo X"$as_dir" |
  14613. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14614. s//\1/
  14615. q
  14616. }
  14617. /^X\(\/\/\)[^/].*/{
  14618. s//\1/
  14619. q
  14620. }
  14621. /^X\(\/\/\)$/{
  14622. s//\1/
  14623. q
  14624. }
  14625. /^X\(\/\).*/{
  14626. s//\1/
  14627. q
  14628. }
  14629. s/.*/./; q'`
  14630. test -d "$as_dir" && break
  14631. done
  14632. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14633. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14634. } @%:@ as_fn_mkdir_p
  14635. if mkdir -p . 2>/dev/null; then
  14636. as_mkdir_p='mkdir -p "$as_dir"'
  14637. else
  14638. test -d ./-p && rmdir ./-p
  14639. as_mkdir_p=false
  14640. fi
  14641. if test -x / >/dev/null 2>&1; then
  14642. as_test_x='test -x'
  14643. else
  14644. if ls -dL / >/dev/null 2>&1; then
  14645. as_ls_L_option=L
  14646. else
  14647. as_ls_L_option=
  14648. fi
  14649. as_test_x='
  14650. eval sh -c '\''
  14651. if test -d "$1"; then
  14652. test -d "$1/.";
  14653. else
  14654. case $1 in @%:@(
  14655. -*)set "./$1";;
  14656. esac;
  14657. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
  14658. ???[sx]*):;;*)false;;esac;fi
  14659. '\'' sh
  14660. '
  14661. fi
  14662. as_executable_p=$as_test_x
  14663. # Sed expression to map a string onto a valid CPP name.
  14664. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14665. # Sed expression to map a string onto a valid variable name.
  14666. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14667. exec 6>&1
  14668. ## ----------------------------------- ##
  14669. ## Main body of $CONFIG_STATUS script. ##
  14670. ## ----------------------------------- ##
  14671. _ASEOF
  14672. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14673. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14674. # Save the log message, to keep $0 and so on meaningful, and to
  14675. # report actual input values of CONFIG_FILES etc. instead of their
  14676. # values after options handling.
  14677. ac_log="
  14678. This file was extended by cgminer $as_me 4.3.5-scrypt.2, which was
  14679. generated by GNU Autoconf 2.68. Invocation command line was
  14680. CONFIG_FILES = $CONFIG_FILES
  14681. CONFIG_HEADERS = $CONFIG_HEADERS
  14682. CONFIG_LINKS = $CONFIG_LINKS
  14683. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14684. $ $0 $@
  14685. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14686. "
  14687. _ACEOF
  14688. case $ac_config_files in *"
  14689. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14690. esac
  14691. case $ac_config_headers in *"
  14692. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14693. esac
  14694. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14695. # Files that config.status was made for.
  14696. config_files="$ac_config_files"
  14697. config_headers="$ac_config_headers"
  14698. config_commands="$ac_config_commands"
  14699. _ACEOF
  14700. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14701. ac_cs_usage="\
  14702. \`$as_me' instantiates files and other configuration actions
  14703. from templates according to the current configuration. Unless the files
  14704. and actions are specified as TAGs, all are instantiated by default.
  14705. Usage: $0 [OPTION]... [TAG]...
  14706. -h, --help print this help, then exit
  14707. -V, --version print version number and configuration settings, then exit
  14708. --config print configuration, then exit
  14709. -q, --quiet, --silent
  14710. do not print progress messages
  14711. -d, --debug don't remove temporary files
  14712. --recheck update $as_me by reconfiguring in the same conditions
  14713. --file=FILE[:TEMPLATE]
  14714. instantiate the configuration file FILE
  14715. --header=FILE[:TEMPLATE]
  14716. instantiate the configuration header FILE
  14717. Configuration files:
  14718. $config_files
  14719. Configuration headers:
  14720. $config_headers
  14721. Configuration commands:
  14722. $config_commands
  14723. Report bugs to <kernel@kolivas.org>."
  14724. _ACEOF
  14725. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14726. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14727. ac_cs_version="\\
  14728. cgminer config.status 4.3.5-scrypt.2
  14729. configured by $0, generated by GNU Autoconf 2.68,
  14730. with options \\"\$ac_cs_config\\"
  14731. Copyright (C) 2010 Free Software Foundation, Inc.
  14732. This config.status script is free software; the Free Software Foundation
  14733. gives unlimited permission to copy, distribute and modify it."
  14734. ac_pwd='$ac_pwd'
  14735. srcdir='$srcdir'
  14736. INSTALL='$INSTALL'
  14737. MKDIR_P='$MKDIR_P'
  14738. AWK='$AWK'
  14739. test -n "\$AWK" || AWK=awk
  14740. _ACEOF
  14741. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14742. # The default lists apply if the user does not specify any file.
  14743. ac_need_defaults=:
  14744. while test $# != 0
  14745. do
  14746. case $1 in
  14747. --*=?*)
  14748. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14749. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14750. ac_shift=:
  14751. ;;
  14752. --*=)
  14753. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14754. ac_optarg=
  14755. ac_shift=:
  14756. ;;
  14757. *)
  14758. ac_option=$1
  14759. ac_optarg=$2
  14760. ac_shift=shift
  14761. ;;
  14762. esac
  14763. case $ac_option in
  14764. # Handling of the options.
  14765. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14766. ac_cs_recheck=: ;;
  14767. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14768. $as_echo "$ac_cs_version"; exit ;;
  14769. --config | --confi | --conf | --con | --co | --c )
  14770. $as_echo "$ac_cs_config"; exit ;;
  14771. --debug | --debu | --deb | --de | --d | -d )
  14772. debug=: ;;
  14773. --file | --fil | --fi | --f )
  14774. $ac_shift
  14775. case $ac_optarg in
  14776. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14777. '') as_fn_error $? "missing file argument" ;;
  14778. esac
  14779. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14780. ac_need_defaults=false;;
  14781. --header | --heade | --head | --hea )
  14782. $ac_shift
  14783. case $ac_optarg in
  14784. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14785. esac
  14786. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14787. ac_need_defaults=false;;
  14788. --he | --h)
  14789. # Conflict between --help and --header
  14790. as_fn_error $? "ambiguous option: \`$1'
  14791. Try \`$0 --help' for more information.";;
  14792. --help | --hel | -h )
  14793. $as_echo "$ac_cs_usage"; exit ;;
  14794. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14795. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14796. ac_cs_silent=: ;;
  14797. # This is an error.
  14798. -*) as_fn_error $? "unrecognized option: \`$1'
  14799. Try \`$0 --help' for more information." ;;
  14800. *) as_fn_append ac_config_targets " $1"
  14801. ac_need_defaults=false ;;
  14802. esac
  14803. shift
  14804. done
  14805. ac_configure_extra_args=
  14806. if $ac_cs_silent; then
  14807. exec 6>/dev/null
  14808. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14809. fi
  14810. _ACEOF
  14811. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14812. if \$ac_cs_recheck; then
  14813. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14814. shift
  14815. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14816. CONFIG_SHELL='$SHELL'
  14817. export CONFIG_SHELL
  14818. exec "\$@"
  14819. fi
  14820. _ACEOF
  14821. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14822. exec 5>>config.log
  14823. {
  14824. echo
  14825. sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
  14826. @%:@@%:@ Running $as_me. @%:@@%:@
  14827. _ASBOX
  14828. $as_echo "$ac_log"
  14829. } >&5
  14830. _ACEOF
  14831. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14832. #
  14833. # INIT-COMMANDS
  14834. #
  14835. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14836. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14837. # if CDPATH is set.
  14838. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14839. sed_quote_subst='$sed_quote_subst'
  14840. double_quote_subst='$double_quote_subst'
  14841. delay_variable_subst='$delay_variable_subst'
  14842. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14843. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14844. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14845. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14846. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14847. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14848. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14849. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14850. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14851. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14852. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14853. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14854. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14855. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14856. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14857. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14858. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14859. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14860. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  14861. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  14862. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  14863. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  14864. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  14865. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  14866. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  14867. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  14868. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  14869. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  14870. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  14871. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  14872. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  14873. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  14874. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  14875. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  14876. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  14877. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  14878. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  14879. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  14880. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  14881. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  14882. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  14883. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  14884. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  14885. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  14886. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14887. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14888. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  14889. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  14890. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  14891. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  14892. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  14893. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  14894. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  14895. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  14896. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  14897. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  14898. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  14899. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  14900. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  14901. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  14902. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  14903. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  14904. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  14905. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  14906. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  14907. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  14908. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  14909. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  14910. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  14911. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  14912. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  14913. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  14914. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  14915. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  14916. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14917. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  14918. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  14919. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  14920. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  14921. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  14922. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  14923. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14924. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  14925. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14926. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  14927. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14928. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  14929. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14930. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14931. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  14932. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  14933. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  14934. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  14935. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  14936. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  14937. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14938. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  14939. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  14940. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  14941. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  14942. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  14943. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  14944. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  14945. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  14946. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  14947. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  14948. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  14949. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  14950. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  14951. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  14952. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  14953. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14954. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  14955. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  14956. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  14957. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  14958. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  14959. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14960. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14961. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  14962. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  14963. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  14964. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  14965. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  14966. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  14967. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  14968. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  14969. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  14970. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  14971. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  14972. LTCC='$LTCC'
  14973. LTCFLAGS='$LTCFLAGS'
  14974. compiler='$compiler_DEFAULT'
  14975. # A function that is used when there is no print builtin or printf.
  14976. func_fallback_echo ()
  14977. {
  14978. eval 'cat <<_LTECHO_EOF
  14979. \$1
  14980. _LTECHO_EOF'
  14981. }
  14982. # Quote evaled strings.
  14983. for var in SHELL \
  14984. ECHO \
  14985. SED \
  14986. GREP \
  14987. EGREP \
  14988. FGREP \
  14989. LD \
  14990. NM \
  14991. LN_S \
  14992. lt_SP2NL \
  14993. lt_NL2SP \
  14994. reload_flag \
  14995. OBJDUMP \
  14996. deplibs_check_method \
  14997. file_magic_cmd \
  14998. file_magic_glob \
  14999. want_nocaseglob \
  15000. DLLTOOL \
  15001. sharedlib_from_linklib_cmd \
  15002. AR \
  15003. AR_FLAGS \
  15004. archiver_list_spec \
  15005. STRIP \
  15006. RANLIB \
  15007. CC \
  15008. CFLAGS \
  15009. compiler \
  15010. lt_cv_sys_global_symbol_pipe \
  15011. lt_cv_sys_global_symbol_to_cdecl \
  15012. lt_cv_sys_global_symbol_to_c_name_address \
  15013. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15014. nm_file_list_spec \
  15015. lt_prog_compiler_no_builtin_flag \
  15016. lt_prog_compiler_pic \
  15017. lt_prog_compiler_wl \
  15018. lt_prog_compiler_static \
  15019. lt_cv_prog_compiler_c_o \
  15020. need_locks \
  15021. MANIFEST_TOOL \
  15022. DSYMUTIL \
  15023. NMEDIT \
  15024. LIPO \
  15025. OTOOL \
  15026. OTOOL64 \
  15027. shrext_cmds \
  15028. export_dynamic_flag_spec \
  15029. whole_archive_flag_spec \
  15030. compiler_needs_object \
  15031. with_gnu_ld \
  15032. allow_undefined_flag \
  15033. no_undefined_flag \
  15034. hardcode_libdir_flag_spec \
  15035. hardcode_libdir_flag_spec_ld \
  15036. hardcode_libdir_separator \
  15037. exclude_expsyms \
  15038. include_expsyms \
  15039. file_list_spec \
  15040. variables_saved_for_relink \
  15041. libname_spec \
  15042. library_names_spec \
  15043. soname_spec \
  15044. install_override_mode \
  15045. finish_eval \
  15046. old_striplib \
  15047. striplib; do
  15048. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15049. *[\\\\\\\`\\"\\\$]*)
  15050. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  15051. ;;
  15052. *)
  15053. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15054. ;;
  15055. esac
  15056. done
  15057. # Double-quote double-evaled strings.
  15058. for var in reload_cmds \
  15059. old_postinstall_cmds \
  15060. old_postuninstall_cmds \
  15061. old_archive_cmds \
  15062. extract_expsyms_cmds \
  15063. old_archive_from_new_cmds \
  15064. old_archive_from_expsyms_cmds \
  15065. archive_cmds \
  15066. archive_expsym_cmds \
  15067. module_cmds \
  15068. module_expsym_cmds \
  15069. export_symbols_cmds \
  15070. prelink_cmds \
  15071. postlink_cmds \
  15072. postinstall_cmds \
  15073. postuninstall_cmds \
  15074. finish_cmds \
  15075. sys_lib_search_path_spec \
  15076. sys_lib_dlsearch_path_spec; do
  15077. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15078. *[\\\\\\\`\\"\\\$]*)
  15079. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  15080. ;;
  15081. *)
  15082. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15083. ;;
  15084. esac
  15085. done
  15086. ac_aux_dir='$ac_aux_dir'
  15087. xsi_shell='$xsi_shell'
  15088. lt_shell_append='$lt_shell_append'
  15089. # See if we are running on zsh, and set the options which allow our
  15090. # commands through without removal of \ escapes INIT.
  15091. if test -n "\${ZSH_VERSION+set}" ; then
  15092. setopt NO_GLOB_SUBST
  15093. fi
  15094. PACKAGE='$PACKAGE'
  15095. VERSION='$VERSION'
  15096. TIMESTAMP='$TIMESTAMP'
  15097. RM='$RM'
  15098. ofile='$ofile'
  15099. _ACEOF
  15100. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15101. # Handling of arguments.
  15102. for ac_config_target in $ac_config_targets
  15103. do
  15104. case $ac_config_target in
  15105. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  15106. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15107. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15108. " ") CONFIG_FILES="$CONFIG_FILES " ;;
  15109. "Makefile ") CONFIG_FILES="$CONFIG_FILES Makefile " ;;
  15110. "compat/Makefile ") CONFIG_FILES="$CONFIG_FILES compat/Makefile " ;;
  15111. "ccan/Makefile ") CONFIG_FILES="$CONFIG_FILES ccan/Makefile " ;;
  15112. "lib/Makefile ") CONFIG_FILES="$CONFIG_FILES lib/Makefile " ;;
  15113. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
  15114. esac
  15115. done
  15116. # If the user did not use the arguments to specify the items to instantiate,
  15117. # then the envvar interface is used. Set only those that are not.
  15118. # We use the long form for the default assignment because of an extremely
  15119. # bizarre bug on SunOS 4.1.3.
  15120. if $ac_need_defaults; then
  15121. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15122. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  15123. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15124. fi
  15125. # Have a temporary directory for convenience. Make it in the build tree
  15126. # simply because there is no reason against having it here, and in addition,
  15127. # creating and moving files from /tmp can sometimes cause problems.
  15128. # Hook for its removal unless debugging.
  15129. # Note that there is a small window in which the directory will not be cleaned:
  15130. # after its creation but before its name has been assigned to `$tmp'.
  15131. $debug ||
  15132. {
  15133. tmp= ac_tmp=
  15134. trap 'exit_status=$?
  15135. : "${ac_tmp:=$tmp}"
  15136. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  15137. ' 0
  15138. trap 'as_fn_exit 1' 1 2 13 15
  15139. }
  15140. # Create a (secure) tmp directory for tmp files.
  15141. {
  15142. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15143. test -d "$tmp"
  15144. } ||
  15145. {
  15146. tmp=./conf$$-$RANDOM
  15147. (umask 077 && mkdir "$tmp")
  15148. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15149. ac_tmp=$tmp
  15150. # Set up the scripts for CONFIG_FILES section.
  15151. # No need to generate them if there are no CONFIG_FILES.
  15152. # This happens for instance with `./config.status config.h'.
  15153. if test -n "$CONFIG_FILES"; then
  15154. ac_cr=`echo X | tr X '\015'`
  15155. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15156. # But we know of no other shell where ac_cr would be empty at this
  15157. # point, so we can use a bashism as a fallback.
  15158. if test "x$ac_cr" = x; then
  15159. eval ac_cr=\$\'\\r\'
  15160. fi
  15161. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15162. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15163. ac_cs_awk_cr='\\r'
  15164. else
  15165. ac_cs_awk_cr=$ac_cr
  15166. fi
  15167. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  15168. _ACEOF
  15169. {
  15170. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15171. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15172. echo "_ACEOF"
  15173. } >conf$$subs.sh ||
  15174. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15175. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15176. ac_delim='%!_!# '
  15177. for ac_last_try in false false false false false :; do
  15178. . ./conf$$subs.sh ||
  15179. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15180. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15181. if test $ac_delim_n = $ac_delim_num; then
  15182. break
  15183. elif $ac_last_try; then
  15184. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15185. else
  15186. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15187. fi
  15188. done
  15189. rm -f conf$$subs.sh
  15190. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15191. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  15192. _ACEOF
  15193. sed -n '
  15194. h
  15195. s/^/S["/; s/!.*/"]=/
  15196. p
  15197. g
  15198. s/^[^!]*!//
  15199. :repl
  15200. t repl
  15201. s/'"$ac_delim"'$//
  15202. t delim
  15203. :nl
  15204. h
  15205. s/\(.\{148\}\)..*/\1/
  15206. t more1
  15207. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15208. p
  15209. n
  15210. b repl
  15211. :more1
  15212. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15213. p
  15214. g
  15215. s/.\{148\}//
  15216. t nl
  15217. :delim
  15218. h
  15219. s/\(.\{148\}\)..*/\1/
  15220. t more2
  15221. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15222. p
  15223. b
  15224. :more2
  15225. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15226. p
  15227. g
  15228. s/.\{148\}//
  15229. t delim
  15230. ' <conf$$subs.awk | sed '
  15231. /^[^""]/{
  15232. N
  15233. s/\n//
  15234. }
  15235. ' >>$CONFIG_STATUS || ac_write_fail=1
  15236. rm -f conf$$subs.awk
  15237. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15238. _ACAWK
  15239. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  15240. for (key in S) S_is_set[key] = 1
  15241. FS = ""
  15242. }
  15243. {
  15244. line = $ 0
  15245. nfields = split(line, field, "@")
  15246. substed = 0
  15247. len = length(field[1])
  15248. for (i = 2; i < nfields; i++) {
  15249. key = field[i]
  15250. keylen = length(key)
  15251. if (S_is_set[key]) {
  15252. value = S[key]
  15253. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15254. len += length(value) + length(field[++i])
  15255. substed = 1
  15256. } else
  15257. len += 1 + keylen
  15258. }
  15259. print line
  15260. }
  15261. _ACAWK
  15262. _ACEOF
  15263. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15264. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15265. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15266. else
  15267. cat
  15268. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  15269. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15270. _ACEOF
  15271. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15272. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15273. # trailing colons and then remove the whole line if VPATH becomes empty
  15274. # (actually we leave an empty line to preserve line numbers).
  15275. if test "x$srcdir" = x.; then
  15276. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  15277. h
  15278. s///
  15279. s/^/:/
  15280. s/[ ]*$/:/
  15281. s/:\$(srcdir):/:/g
  15282. s/:\${srcdir}:/:/g
  15283. s/:@srcdir@:/:/g
  15284. s/^:*//
  15285. s/:*$//
  15286. x
  15287. s/\(=[ ]*\).*/\1/
  15288. G
  15289. s/\n//
  15290. s/^[^=]*=[ ]*$//
  15291. }'
  15292. fi
  15293. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15294. fi # test -n "$CONFIG_FILES"
  15295. # Set up the scripts for CONFIG_HEADERS section.
  15296. # No need to generate them if there are no CONFIG_HEADERS.
  15297. # This happens for instance with `./config.status Makefile'.
  15298. if test -n "$CONFIG_HEADERS"; then
  15299. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  15300. BEGIN {
  15301. _ACEOF
  15302. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15303. # here-document in config.status, that substitutes the proper values into
  15304. # config.h.in to produce config.h.
  15305. # Create a delimiter string that does not exist in confdefs.h, to ease
  15306. # handling of long lines.
  15307. ac_delim='%!_!# '
  15308. for ac_last_try in false false :; do
  15309. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  15310. if test -z "$ac_tt"; then
  15311. break
  15312. elif $ac_last_try; then
  15313. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  15314. else
  15315. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15316. fi
  15317. done
  15318. # For the awk script, D is an array of macro values keyed by name,
  15319. # likewise P contains macro parameters if any. Preserve backslash
  15320. # newline sequences.
  15321. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15322. sed -n '
  15323. s/.\{148\}/&'"$ac_delim"'/g
  15324. t rset
  15325. :rset
  15326. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15327. t def
  15328. d
  15329. :def
  15330. s/\\$//
  15331. t bsnl
  15332. s/["\\]/\\&/g
  15333. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15334. D["\1"]=" \3"/p
  15335. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15336. d
  15337. :bsnl
  15338. s/["\\]/\\&/g
  15339. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15340. D["\1"]=" \3\\\\\\n"\\/p
  15341. t cont
  15342. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15343. t cont
  15344. d
  15345. :cont
  15346. n
  15347. s/.\{148\}/&'"$ac_delim"'/g
  15348. t clear
  15349. :clear
  15350. s/\\$//
  15351. t bsnlc
  15352. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15353. d
  15354. :bsnlc
  15355. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15356. b cont
  15357. ' <confdefs.h | sed '
  15358. s/'"$ac_delim"'/"\\\
  15359. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15360. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15361. for (key in D) D_is_set[key] = 1
  15362. FS = ""
  15363. }
  15364. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15365. line = \$ 0
  15366. split(line, arg, " ")
  15367. if (arg[1] == "#") {
  15368. defundef = arg[2]
  15369. mac1 = arg[3]
  15370. } else {
  15371. defundef = substr(arg[1], 2)
  15372. mac1 = arg[2]
  15373. }
  15374. split(mac1, mac2, "(") #)
  15375. macro = mac2[1]
  15376. prefix = substr(line, 1, index(line, defundef) - 1)
  15377. if (D_is_set[macro]) {
  15378. # Preserve the white space surrounding the "#".
  15379. print prefix "define", macro P[macro] D[macro]
  15380. next
  15381. } else {
  15382. # Replace #undef with comments. This is necessary, for example,
  15383. # in the case of _POSIX_SOURCE, which is predefined and required
  15384. # on some systems where configure will not decide to define it.
  15385. if (defundef == "undef") {
  15386. print "/*", prefix defundef, macro, "*/"
  15387. next
  15388. }
  15389. }
  15390. }
  15391. { print }
  15392. _ACAWK
  15393. _ACEOF
  15394. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15395. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15396. fi # test -n "$CONFIG_HEADERS"
  15397. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15398. shift
  15399. for ac_tag
  15400. do
  15401. case $ac_tag in
  15402. :[FHLC]) ac_mode=$ac_tag; continue;;
  15403. esac
  15404. case $ac_mode$ac_tag in
  15405. :[FHL]*:*);;
  15406. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
  15407. :[FH]-) ac_tag=-:-;;
  15408. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15409. esac
  15410. ac_save_IFS=$IFS
  15411. IFS=:
  15412. set x $ac_tag
  15413. IFS=$ac_save_IFS
  15414. shift
  15415. ac_file=$1
  15416. shift
  15417. case $ac_mode in
  15418. :L) ac_source=$1;;
  15419. :[FH])
  15420. ac_file_inputs=
  15421. for ac_f
  15422. do
  15423. case $ac_f in
  15424. -) ac_f="$ac_tmp/stdin";;
  15425. *) # Look for the file first in the build tree, then in the source tree
  15426. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15427. # because $ac_f cannot contain `:'.
  15428. test -f "$ac_f" ||
  15429. case $ac_f in
  15430. [\\/$]*) false;;
  15431. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15432. esac ||
  15433. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
  15434. esac
  15435. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15436. as_fn_append ac_file_inputs " '$ac_f'"
  15437. done
  15438. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15439. # use $as_me), people would be surprised to read:
  15440. # /* config.h. Generated by config.status. */
  15441. configure_input='Generated from '`
  15442. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15443. `' by configure.'
  15444. if test x"$ac_file" != x-; then
  15445. configure_input="$ac_file. $configure_input"
  15446. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15447. $as_echo "$as_me: creating $ac_file" >&6;}
  15448. fi
  15449. # Neutralize special characters interpreted by sed in replacement strings.
  15450. case $configure_input in #(
  15451. *\&* | *\|* | *\\* )
  15452. ac_sed_conf_input=`$as_echo "$configure_input" |
  15453. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15454. *) ac_sed_conf_input=$configure_input;;
  15455. esac
  15456. case $ac_tag in
  15457. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  15458. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  15459. esac
  15460. ;;
  15461. esac
  15462. ac_dir=`$as_dirname -- "$ac_file" ||
  15463. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15464. X"$ac_file" : 'X\(//\)[^/]' \| \
  15465. X"$ac_file" : 'X\(//\)$' \| \
  15466. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15467. $as_echo X"$ac_file" |
  15468. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15469. s//\1/
  15470. q
  15471. }
  15472. /^X\(\/\/\)[^/].*/{
  15473. s//\1/
  15474. q
  15475. }
  15476. /^X\(\/\/\)$/{
  15477. s//\1/
  15478. q
  15479. }
  15480. /^X\(\/\).*/{
  15481. s//\1/
  15482. q
  15483. }
  15484. s/.*/./; q'`
  15485. as_dir="$ac_dir"; as_fn_mkdir_p
  15486. ac_builddir=.
  15487. case "$ac_dir" in
  15488. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15489. *)
  15490. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15491. # A ".." for each directory in $ac_dir_suffix.
  15492. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15493. case $ac_top_builddir_sub in
  15494. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15495. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15496. esac ;;
  15497. esac
  15498. ac_abs_top_builddir=$ac_pwd
  15499. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15500. # for backward compatibility:
  15501. ac_top_builddir=$ac_top_build_prefix
  15502. case $srcdir in
  15503. .) # We are building in place.
  15504. ac_srcdir=.
  15505. ac_top_srcdir=$ac_top_builddir_sub
  15506. ac_abs_top_srcdir=$ac_pwd ;;
  15507. [\\/]* | ?:[\\/]* ) # Absolute name.
  15508. ac_srcdir=$srcdir$ac_dir_suffix;
  15509. ac_top_srcdir=$srcdir
  15510. ac_abs_top_srcdir=$srcdir ;;
  15511. *) # Relative name.
  15512. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15513. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15514. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15515. esac
  15516. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15517. case $ac_mode in
  15518. :F)
  15519. #
  15520. # CONFIG_FILE
  15521. #
  15522. case $INSTALL in
  15523. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15524. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15525. esac
  15526. ac_MKDIR_P=$MKDIR_P
  15527. case $MKDIR_P in
  15528. [\\/$]* | ?:[\\/]* ) ;;
  15529. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15530. esac
  15531. _ACEOF
  15532. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15533. # If the template does not know about datarootdir, expand it.
  15534. # FIXME: This hack should be removed a few years after 2.60.
  15535. ac_datarootdir_hack=; ac_datarootdir_seen=
  15536. ac_sed_dataroot='
  15537. /datarootdir/ {
  15538. p
  15539. q
  15540. }
  15541. /@datadir@/p
  15542. /@docdir@/p
  15543. /@infodir@/p
  15544. /@localedir@/p
  15545. /@mandir@/p'
  15546. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15547. *datarootdir*) ac_datarootdir_seen=yes;;
  15548. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15549. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15550. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15551. _ACEOF
  15552. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15553. ac_datarootdir_hack='
  15554. s&@datadir@&$datadir&g
  15555. s&@docdir@&$docdir&g
  15556. s&@infodir@&$infodir&g
  15557. s&@localedir@&$localedir&g
  15558. s&@mandir@&$mandir&g
  15559. s&\\\${datarootdir}&$datarootdir&g' ;;
  15560. esac
  15561. _ACEOF
  15562. # Neutralize VPATH when `$srcdir' = `.'.
  15563. # Shell code in configure.ac might set extrasub.
  15564. # FIXME: do we really want to maintain this feature?
  15565. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15566. ac_sed_extra="$ac_vpsub
  15567. $extrasub
  15568. _ACEOF
  15569. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15570. :t
  15571. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15572. s|@configure_input@|$ac_sed_conf_input|;t t
  15573. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15574. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15575. s&@srcdir@&$ac_srcdir&;t t
  15576. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15577. s&@top_srcdir@&$ac_top_srcdir&;t t
  15578. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15579. s&@builddir@&$ac_builddir&;t t
  15580. s&@abs_builddir@&$ac_abs_builddir&;t t
  15581. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15582. s&@INSTALL@&$ac_INSTALL&;t t
  15583. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15584. $ac_datarootdir_hack
  15585. "
  15586. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  15587. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15588. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15589. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  15590. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  15591. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  15592. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15593. which seems to be undefined. Please make sure it is defined" >&5
  15594. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15595. which seems to be undefined. Please make sure it is defined" >&2;}
  15596. rm -f "$ac_tmp/stdin"
  15597. case $ac_file in
  15598. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  15599. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  15600. esac \
  15601. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15602. ;;
  15603. :H)
  15604. #
  15605. # CONFIG_HEADER
  15606. #
  15607. if test x"$ac_file" != x-; then
  15608. {
  15609. $as_echo "/* $configure_input */" \
  15610. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  15611. } >"$ac_tmp/config.h" \
  15612. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15613. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  15614. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  15615. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  15616. else
  15617. rm -f "$ac_file"
  15618. mv "$ac_tmp/config.h" "$ac_file" \
  15619. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15620. fi
  15621. else
  15622. $as_echo "/* $configure_input */" \
  15623. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  15624. || as_fn_error $? "could not create -" "$LINENO" 5
  15625. fi
  15626. # Compute "$ac_file"'s index in $config_headers.
  15627. _am_arg="$ac_file"
  15628. _am_stamp_count=1
  15629. for _am_header in $config_headers :; do
  15630. case $_am_header in
  15631. $_am_arg | $_am_arg:* )
  15632. break ;;
  15633. * )
  15634. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  15635. esac
  15636. done
  15637. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  15638. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15639. X"$_am_arg" : 'X\(//\)[^/]' \| \
  15640. X"$_am_arg" : 'X\(//\)$' \| \
  15641. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  15642. $as_echo X"$_am_arg" |
  15643. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15644. s//\1/
  15645. q
  15646. }
  15647. /^X\(\/\/\)[^/].*/{
  15648. s//\1/
  15649. q
  15650. }
  15651. /^X\(\/\/\)$/{
  15652. s//\1/
  15653. q
  15654. }
  15655. /^X\(\/\).*/{
  15656. s//\1/
  15657. q
  15658. }
  15659. s/.*/./; q'`/stamp-h$_am_stamp_count
  15660. ;;
  15661. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15662. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15663. ;;
  15664. esac
  15665. case $ac_file$ac_mode in
  15666. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15667. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  15668. # are listed without --file. Let's play safe and only enable the eval
  15669. # if we detect the quoting.
  15670. case $CONFIG_FILES in
  15671. *\'*) eval set x "$CONFIG_FILES" ;;
  15672. *) set x $CONFIG_FILES ;;
  15673. esac
  15674. shift
  15675. for mf
  15676. do
  15677. # Strip MF so we end up with the name of the file.
  15678. mf=`echo "$mf" | sed -e 's/:.*$//'`
  15679. # Check whether this is an Automake generated Makefile or not.
  15680. # We used to match only the files named `Makefile.in', but
  15681. # some people rename them; so instead we look at the file content.
  15682. # Grep'ing the first line is not enough: some people post-process
  15683. # each Makefile.in and add a new line on top of each file to say so.
  15684. # Grep'ing the whole file is not good either: AIX grep has a line
  15685. # limit of 2048, but all sed's we know have understand at least 4000.
  15686. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  15687. dirpart=`$as_dirname -- "$mf" ||
  15688. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15689. X"$mf" : 'X\(//\)[^/]' \| \
  15690. X"$mf" : 'X\(//\)$' \| \
  15691. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  15692. $as_echo X"$mf" |
  15693. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15694. s//\1/
  15695. q
  15696. }
  15697. /^X\(\/\/\)[^/].*/{
  15698. s//\1/
  15699. q
  15700. }
  15701. /^X\(\/\/\)$/{
  15702. s//\1/
  15703. q
  15704. }
  15705. /^X\(\/\).*/{
  15706. s//\1/
  15707. q
  15708. }
  15709. s/.*/./; q'`
  15710. else
  15711. continue
  15712. fi
  15713. # Extract the definition of DEPDIR, am__include, and am__quote
  15714. # from the Makefile without running `make'.
  15715. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15716. test -z "$DEPDIR" && continue
  15717. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15718. test -z "am__include" && continue
  15719. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15720. # When using ansi2knr, U may be empty or an underscore; expand it
  15721. U=`sed -n 's/^U = //p' < "$mf"`
  15722. # Find all dependency output files, they are included files with
  15723. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15724. # simplest approach to changing $(DEPDIR) to its actual value in the
  15725. # expansion.
  15726. for file in `sed -n "
  15727. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15728. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  15729. # Make sure the directory exists.
  15730. test -f "$dirpart/$file" && continue
  15731. fdir=`$as_dirname -- "$file" ||
  15732. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15733. X"$file" : 'X\(//\)[^/]' \| \
  15734. X"$file" : 'X\(//\)$' \| \
  15735. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15736. $as_echo X"$file" |
  15737. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15738. s//\1/
  15739. q
  15740. }
  15741. /^X\(\/\/\)[^/].*/{
  15742. s//\1/
  15743. q
  15744. }
  15745. /^X\(\/\/\)$/{
  15746. s//\1/
  15747. q
  15748. }
  15749. /^X\(\/\).*/{
  15750. s//\1/
  15751. q
  15752. }
  15753. s/.*/./; q'`
  15754. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  15755. # echo "creating $dirpart/$file"
  15756. echo '# dummy' > "$dirpart/$file"
  15757. done
  15758. done
  15759. }
  15760. ;;
  15761. "libtool":C)
  15762. # See if we are running on zsh, and set the options which allow our
  15763. # commands through without removal of \ escapes.
  15764. if test -n "${ZSH_VERSION+set}" ; then
  15765. setopt NO_GLOB_SUBST
  15766. fi
  15767. cfgfile="${ofile}T"
  15768. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15769. $RM "$cfgfile"
  15770. cat <<_LT_EOF >> "$cfgfile"
  15771. #! $SHELL
  15772. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15773. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15774. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15775. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15776. #
  15777. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15778. # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
  15779. # Inc.
  15780. # Written by Gordon Matzigkeit, 1996
  15781. #
  15782. # This file is part of GNU Libtool.
  15783. #
  15784. # GNU Libtool is free software; you can redistribute it and/or
  15785. # modify it under the terms of the GNU General Public License as
  15786. # published by the Free Software Foundation; either version 2 of
  15787. # the License, or (at your option) any later version.
  15788. #
  15789. # As a special exception to the GNU General Public License,
  15790. # if you distribute this file as part of a program or library that
  15791. # is built using GNU Libtool, you may include this file under the
  15792. # same distribution terms that you use for the rest of that program.
  15793. #
  15794. # GNU Libtool is distributed in the hope that it will be useful,
  15795. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15796. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15797. # GNU General Public License for more details.
  15798. #
  15799. # You should have received a copy of the GNU General Public License
  15800. # along with GNU Libtool; see the file COPYING. If not, a copy
  15801. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15802. # obtained by writing to the Free Software Foundation, Inc.,
  15803. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15804. # The names of the tagged configurations supported by this script.
  15805. available_tags=""
  15806. # ### BEGIN LIBTOOL CONFIG
  15807. # Which release of libtool.m4 was used?
  15808. macro_version=$macro_version
  15809. macro_revision=$macro_revision
  15810. # Whether or not to build shared libraries.
  15811. build_libtool_libs=$enable_shared
  15812. # Whether or not to build static libraries.
  15813. build_old_libs=$enable_static
  15814. # What type of objects to build.
  15815. pic_mode=$pic_mode
  15816. # Whether or not to optimize for fast installation.
  15817. fast_install=$enable_fast_install
  15818. # Shell to use when invoking shell scripts.
  15819. SHELL=$lt_SHELL
  15820. # An echo program that protects backslashes.
  15821. ECHO=$lt_ECHO
  15822. # The host system.
  15823. host_alias=$host_alias
  15824. host=$host
  15825. host_os=$host_os
  15826. # The build system.
  15827. build_alias=$build_alias
  15828. build=$build
  15829. build_os=$build_os
  15830. # A sed program that does not truncate output.
  15831. SED=$lt_SED
  15832. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15833. Xsed="\$SED -e 1s/^X//"
  15834. # A grep program that handles long lines.
  15835. GREP=$lt_GREP
  15836. # An ERE matcher.
  15837. EGREP=$lt_EGREP
  15838. # A literal string matcher.
  15839. FGREP=$lt_FGREP
  15840. # A BSD- or MS-compatible name lister.
  15841. NM=$lt_NM
  15842. # Whether we need soft or hard links.
  15843. LN_S=$lt_LN_S
  15844. # What is the maximum length of a command?
  15845. max_cmd_len=$max_cmd_len
  15846. # Object file suffix (normally "o").
  15847. objext=$ac_objext
  15848. # Executable file suffix (normally "").
  15849. exeext=$exeext
  15850. # whether the shell understands "unset".
  15851. lt_unset=$lt_unset
  15852. # turn spaces into newlines.
  15853. SP2NL=$lt_lt_SP2NL
  15854. # turn newlines into spaces.
  15855. NL2SP=$lt_lt_NL2SP
  15856. # convert \$build file names to \$host format.
  15857. to_host_file_cmd=$lt_cv_to_host_file_cmd
  15858. # convert \$build files to toolchain format.
  15859. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  15860. # An object symbol dumper.
  15861. OBJDUMP=$lt_OBJDUMP
  15862. # Method to check whether dependent libraries are shared objects.
  15863. deplibs_check_method=$lt_deplibs_check_method
  15864. # Command to use when deplibs_check_method = "file_magic".
  15865. file_magic_cmd=$lt_file_magic_cmd
  15866. # How to find potential files when deplibs_check_method = "file_magic".
  15867. file_magic_glob=$lt_file_magic_glob
  15868. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  15869. want_nocaseglob=$lt_want_nocaseglob
  15870. # DLL creation program.
  15871. DLLTOOL=$lt_DLLTOOL
  15872. # Command to associate shared and link libraries.
  15873. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  15874. # The archiver.
  15875. AR=$lt_AR
  15876. # Flags to create an archive.
  15877. AR_FLAGS=$lt_AR_FLAGS
  15878. # How to feed a file listing to the archiver.
  15879. archiver_list_spec=$lt_archiver_list_spec
  15880. # A symbol stripping program.
  15881. STRIP=$lt_STRIP
  15882. # Commands used to install an old-style archive.
  15883. RANLIB=$lt_RANLIB
  15884. old_postinstall_cmds=$lt_old_postinstall_cmds
  15885. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15886. # Whether to use a lock for old archive extraction.
  15887. lock_old_archive_extraction=$lock_old_archive_extraction
  15888. # A C compiler.
  15889. LTCC=$lt_CC
  15890. # LTCC compiler flags.
  15891. LTCFLAGS=$lt_CFLAGS
  15892. # Take the output of nm and produce a listing of raw symbols and C names.
  15893. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15894. # Transform the output of nm in a proper C declaration.
  15895. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15896. # Transform the output of nm in a C name address pair.
  15897. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15898. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15899. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15900. # Specify filename containing input files for \$NM.
  15901. nm_file_list_spec=$lt_nm_file_list_spec
  15902. # The root where to search for dependent libraries,and in which our libraries should be installed.
  15903. lt_sysroot=$lt_sysroot
  15904. # The name of the directory that contains temporary libtool files.
  15905. objdir=$objdir
  15906. # Used to examine libraries when file_magic_cmd begins with "file".
  15907. MAGIC_CMD=$MAGIC_CMD
  15908. # Must we lock files when doing compilation?
  15909. need_locks=$lt_need_locks
  15910. # Manifest tool.
  15911. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  15912. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15913. DSYMUTIL=$lt_DSYMUTIL
  15914. # Tool to change global to local symbols on Mac OS X.
  15915. NMEDIT=$lt_NMEDIT
  15916. # Tool to manipulate fat objects and archives on Mac OS X.
  15917. LIPO=$lt_LIPO
  15918. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15919. OTOOL=$lt_OTOOL
  15920. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15921. OTOOL64=$lt_OTOOL64
  15922. # Old archive suffix (normally "a").
  15923. libext=$libext
  15924. # Shared library suffix (normally ".so").
  15925. shrext_cmds=$lt_shrext_cmds
  15926. # The commands to extract the exported symbol list from a shared archive.
  15927. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15928. # Variables whose values should be saved in libtool wrapper scripts and
  15929. # restored at link time.
  15930. variables_saved_for_relink=$lt_variables_saved_for_relink
  15931. # Do we need the "lib" prefix for modules?
  15932. need_lib_prefix=$need_lib_prefix
  15933. # Do we need a version for libraries?
  15934. need_version=$need_version
  15935. # Library versioning type.
  15936. version_type=$version_type
  15937. # Shared library runtime path variable.
  15938. runpath_var=$runpath_var
  15939. # Shared library path variable.
  15940. shlibpath_var=$shlibpath_var
  15941. # Is shlibpath searched before the hard-coded library search path?
  15942. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15943. # Format of library name prefix.
  15944. libname_spec=$lt_libname_spec
  15945. # List of archive names. First name is the real one, the rest are links.
  15946. # The last name is the one that the linker finds with -lNAME
  15947. library_names_spec=$lt_library_names_spec
  15948. # The coded name of the library, if different from the real name.
  15949. soname_spec=$lt_soname_spec
  15950. # Permission mode override for installation of shared libraries.
  15951. install_override_mode=$lt_install_override_mode
  15952. # Command to use after installation of a shared archive.
  15953. postinstall_cmds=$lt_postinstall_cmds
  15954. # Command to use after uninstallation of a shared archive.
  15955. postuninstall_cmds=$lt_postuninstall_cmds
  15956. # Commands used to finish a libtool library installation in a directory.
  15957. finish_cmds=$lt_finish_cmds
  15958. # As "finish_cmds", except a single script fragment to be evaled but
  15959. # not shown.
  15960. finish_eval=$lt_finish_eval
  15961. # Whether we should hardcode library paths into libraries.
  15962. hardcode_into_libs=$hardcode_into_libs
  15963. # Compile-time system search path for libraries.
  15964. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15965. # Run-time system search path for libraries.
  15966. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15967. # Whether dlopen is supported.
  15968. dlopen_support=$enable_dlopen
  15969. # Whether dlopen of programs is supported.
  15970. dlopen_self=$enable_dlopen_self
  15971. # Whether dlopen of statically linked programs is supported.
  15972. dlopen_self_static=$enable_dlopen_self_static
  15973. # Commands to strip libraries.
  15974. old_striplib=$lt_old_striplib
  15975. striplib=$lt_striplib
  15976. # The linker used to build libraries.
  15977. LD=$lt_LD
  15978. # How to create reloadable object files.
  15979. reload_flag=$lt_reload_flag
  15980. reload_cmds=$lt_reload_cmds
  15981. # Commands used to build an old-style archive.
  15982. old_archive_cmds=$lt_old_archive_cmds
  15983. # A language specific compiler.
  15984. CC=$lt_compiler
  15985. # Is the compiler the GNU compiler?
  15986. with_gcc=$GCC
  15987. # Compiler flag to turn off builtin functions.
  15988. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15989. # Additional compiler flags for building library objects.
  15990. pic_flag=$lt_lt_prog_compiler_pic
  15991. # How to pass a linker flag through the compiler.
  15992. wl=$lt_lt_prog_compiler_wl
  15993. # Compiler flag to prevent dynamic linking.
  15994. link_static_flag=$lt_lt_prog_compiler_static
  15995. # Does compiler simultaneously support -c and -o options?
  15996. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15997. # Whether or not to add -lc for building shared libraries.
  15998. build_libtool_need_lc=$archive_cmds_need_lc
  15999. # Whether or not to disallow shared libs when runtime libs are static.
  16000. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16001. # Compiler flag to allow reflexive dlopens.
  16002. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16003. # Compiler flag to generate shared objects directly from archives.
  16004. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16005. # Whether the compiler copes with passing no objects directly.
  16006. compiler_needs_object=$lt_compiler_needs_object
  16007. # Create an old-style archive from a shared archive.
  16008. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16009. # Create a temporary old-style archive to link instead of a shared archive.
  16010. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16011. # Commands used to build a shared archive.
  16012. archive_cmds=$lt_archive_cmds
  16013. archive_expsym_cmds=$lt_archive_expsym_cmds
  16014. # Commands used to build a loadable module if different from building
  16015. # a shared archive.
  16016. module_cmds=$lt_module_cmds
  16017. module_expsym_cmds=$lt_module_expsym_cmds
  16018. # Whether we are building with GNU ld or not.
  16019. with_gnu_ld=$lt_with_gnu_ld
  16020. # Flag that allows shared libraries with undefined symbols to be built.
  16021. allow_undefined_flag=$lt_allow_undefined_flag
  16022. # Flag that enforces no undefined symbols.
  16023. no_undefined_flag=$lt_no_undefined_flag
  16024. # Flag to hardcode \$libdir into a binary during linking.
  16025. # This must work even if \$libdir does not exist
  16026. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16027. # If ld is used when linking, flag to hardcode \$libdir into a binary
  16028. # during linking. This must work even if \$libdir does not exist.
  16029. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  16030. # Whether we need a single "-rpath" flag with a separated argument.
  16031. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16032. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16033. # DIR into the resulting binary.
  16034. hardcode_direct=$hardcode_direct
  16035. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16036. # DIR into the resulting binary and the resulting library dependency is
  16037. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16038. # library is relocated.
  16039. hardcode_direct_absolute=$hardcode_direct_absolute
  16040. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16041. # into the resulting binary.
  16042. hardcode_minus_L=$hardcode_minus_L
  16043. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16044. # into the resulting binary.
  16045. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16046. # Set to "yes" if building a shared library automatically hardcodes DIR
  16047. # into the library and all subsequent libraries and executables linked
  16048. # against it.
  16049. hardcode_automatic=$hardcode_automatic
  16050. # Set to yes if linker adds runtime paths of dependent libraries
  16051. # to runtime path list.
  16052. inherit_rpath=$inherit_rpath
  16053. # Whether libtool must link a program against all its dependency libraries.
  16054. link_all_deplibs=$link_all_deplibs
  16055. # Set to "yes" if exported symbols are required.
  16056. always_export_symbols=$always_export_symbols
  16057. # The commands to list exported symbols.
  16058. export_symbols_cmds=$lt_export_symbols_cmds
  16059. # Symbols that should not be listed in the preloaded symbols.
  16060. exclude_expsyms=$lt_exclude_expsyms
  16061. # Symbols that must always be exported.
  16062. include_expsyms=$lt_include_expsyms
  16063. # Commands necessary for linking programs (against libraries) with templates.
  16064. prelink_cmds=$lt_prelink_cmds
  16065. # Commands necessary for finishing linking programs.
  16066. postlink_cmds=$lt_postlink_cmds
  16067. # Specify filename containing input files.
  16068. file_list_spec=$lt_file_list_spec
  16069. # How to hardcode a shared library path into an executable.
  16070. hardcode_action=$hardcode_action
  16071. # ### END LIBTOOL CONFIG
  16072. _LT_EOF
  16073. case $host_os in
  16074. aix3*)
  16075. cat <<\_LT_EOF >> "$cfgfile"
  16076. # AIX sometimes has problems with the GCC collect2 program. For some
  16077. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16078. # vanish in a puff of smoke.
  16079. if test "X${COLLECT_NAMES+set}" != Xset; then
  16080. COLLECT_NAMES=
  16081. export COLLECT_NAMES
  16082. fi
  16083. _LT_EOF
  16084. ;;
  16085. esac
  16086. ltmain="$ac_aux_dir/ltmain.sh"
  16087. # We use sed instead of cat because bash on DJGPP gets confused if
  16088. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16089. # text mode, it properly converts lines to CR/LF. This bash problem
  16090. # is reportedly fixed, but why not run on old versions too?
  16091. sed '$q' "$ltmain" >> "$cfgfile" \
  16092. || (rm -f "$cfgfile"; exit 1)
  16093. if test x"$xsi_shell" = xyes; then
  16094. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  16095. func_dirname ()\
  16096. {\
  16097. \ case ${1} in\
  16098. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  16099. \ * ) func_dirname_result="${3}" ;;\
  16100. \ esac\
  16101. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  16102. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16103. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16104. test 0 -eq $? || _lt_function_replace_fail=:
  16105. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  16106. func_basename ()\
  16107. {\
  16108. \ func_basename_result="${1##*/}"\
  16109. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16110. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16111. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16112. test 0 -eq $? || _lt_function_replace_fail=:
  16113. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  16114. func_dirname_and_basename ()\
  16115. {\
  16116. \ case ${1} in\
  16117. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  16118. \ * ) func_dirname_result="${3}" ;;\
  16119. \ esac\
  16120. \ func_basename_result="${1##*/}"\
  16121. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16122. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16123. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16124. test 0 -eq $? || _lt_function_replace_fail=:
  16125. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  16126. func_stripname ()\
  16127. {\
  16128. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  16129. \ # positional parameters, so assign one to ordinary parameter first.\
  16130. \ func_stripname_result=${3}\
  16131. \ func_stripname_result=${func_stripname_result#"${1}"}\
  16132. \ func_stripname_result=${func_stripname_result%"${2}"}\
  16133. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  16134. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16135. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16136. test 0 -eq $? || _lt_function_replace_fail=:
  16137. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  16138. func_split_long_opt ()\
  16139. {\
  16140. \ func_split_long_opt_name=${1%%=*}\
  16141. \ func_split_long_opt_arg=${1#*=}\
  16142. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16143. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16144. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16145. test 0 -eq $? || _lt_function_replace_fail=:
  16146. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  16147. func_split_short_opt ()\
  16148. {\
  16149. \ func_split_short_opt_arg=${1#??}\
  16150. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  16151. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16152. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16153. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16154. test 0 -eq $? || _lt_function_replace_fail=:
  16155. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  16156. func_lo2o ()\
  16157. {\
  16158. \ case ${1} in\
  16159. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  16160. \ *) func_lo2o_result=${1} ;;\
  16161. \ esac\
  16162. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  16163. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16164. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16165. test 0 -eq $? || _lt_function_replace_fail=:
  16166. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  16167. func_xform ()\
  16168. {\
  16169. func_xform_result=${1%.*}.lo\
  16170. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  16171. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16172. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16173. test 0 -eq $? || _lt_function_replace_fail=:
  16174. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  16175. func_arith ()\
  16176. {\
  16177. func_arith_result=$(( $* ))\
  16178. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  16179. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16180. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16181. test 0 -eq $? || _lt_function_replace_fail=:
  16182. sed -e '/^func_len ()$/,/^} # func_len /c\
  16183. func_len ()\
  16184. {\
  16185. func_len_result=${#1}\
  16186. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  16187. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16188. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16189. test 0 -eq $? || _lt_function_replace_fail=:
  16190. fi
  16191. if test x"$lt_shell_append" = xyes; then
  16192. sed -e '/^func_append ()$/,/^} # func_append /c\
  16193. func_append ()\
  16194. {\
  16195. eval "${1}+=\\${2}"\
  16196. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  16197. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16198. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16199. test 0 -eq $? || _lt_function_replace_fail=:
  16200. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  16201. func_append_quoted ()\
  16202. {\
  16203. \ func_quote_for_eval "${2}"\
  16204. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  16205. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  16206. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16207. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16208. test 0 -eq $? || _lt_function_replace_fail=:
  16209. # Save a `func_append' function call where possible by direct use of '+='
  16210. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  16211. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16212. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16213. test 0 -eq $? || _lt_function_replace_fail=:
  16214. else
  16215. # Save a `func_append' function call even when '+=' is not available
  16216. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  16217. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16218. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16219. test 0 -eq $? || _lt_function_replace_fail=:
  16220. fi
  16221. if test x"$_lt_function_replace_fail" = x":"; then
  16222. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  16223. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  16224. fi
  16225. mv -f "$cfgfile" "$ofile" ||
  16226. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16227. chmod +x "$ofile"
  16228. ;;
  16229. esac
  16230. done # for ac_tag
  16231. as_fn_exit 0
  16232. _ACEOF
  16233. ac_clean_files=$ac_clean_files_save
  16234. test $ac_write_fail = 0 ||
  16235. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16236. # configure is writing to config.log, and then calls config.status.
  16237. # config.status does its own redirection, appending to config.log.
  16238. # Unfortunately, on DOS this fails, as config.log is still kept open
  16239. # by configure, so config.status won't be able to write to it; its
  16240. # output is simply discarded. So we exec the FD to /dev/null,
  16241. # effectively closing config.log, so it can be properly (re)opened and
  16242. # appended to by config.status. When coming back to configure, we
  16243. # need to make the FD available again.
  16244. if test "$no_create" != yes; then
  16245. ac_cs_success=:
  16246. ac_config_status_args=
  16247. test "$silent" = yes &&
  16248. ac_config_status_args="$ac_config_status_args --quiet"
  16249. exec 5>/dev/null
  16250. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16251. exec 5>>config.log
  16252. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16253. # would make configure fail if this is the last instruction.
  16254. $ac_cs_success || as_fn_exit 1
  16255. fi
  16256. #
  16257. # CONFIG_SUBDIRS section.
  16258. #
  16259. if test "$no_recursion" != yes; then
  16260. # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  16261. # so they do not pile up.
  16262. ac_sub_configure_args=
  16263. ac_prev=
  16264. eval "set x $ac_configure_args"
  16265. shift
  16266. for ac_arg
  16267. do
  16268. if test -n "$ac_prev"; then
  16269. ac_prev=
  16270. continue
  16271. fi
  16272. case $ac_arg in
  16273. -cache-file | --cache-file | --cache-fil | --cache-fi \
  16274. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  16275. ac_prev=cache_file ;;
  16276. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  16277. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  16278. | --c=*)
  16279. ;;
  16280. --config-cache | -C)
  16281. ;;
  16282. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  16283. ac_prev=srcdir ;;
  16284. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  16285. ;;
  16286. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  16287. ac_prev=prefix ;;
  16288. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  16289. ;;
  16290. --disable-option-checking)
  16291. ;;
  16292. *)
  16293. case $ac_arg in
  16294. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16295. esac
  16296. as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  16297. esac
  16298. done
  16299. # Always prepend --prefix to ensure using the same prefix
  16300. # in subdir configurations.
  16301. ac_arg="--prefix=$prefix"
  16302. case $ac_arg in
  16303. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16304. esac
  16305. ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  16306. # Pass --silent
  16307. if test "$silent" = yes; then
  16308. ac_sub_configure_args="--silent $ac_sub_configure_args"
  16309. fi
  16310. # Always prepend --disable-option-checking to silence warnings, since
  16311. # different subdirs can have different --enable and --with options.
  16312. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
  16313. ac_popdir=`pwd`
  16314. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  16315. # Do not complain, so a configure script can configure whichever
  16316. # parts of a large source tree are present.
  16317. test -d "$srcdir/$ac_dir" || continue
  16318. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  16319. $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  16320. $as_echo "$ac_msg" >&6
  16321. as_dir="$ac_dir"; as_fn_mkdir_p
  16322. ac_builddir=.
  16323. case "$ac_dir" in
  16324. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16325. *)
  16326. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16327. # A ".." for each directory in $ac_dir_suffix.
  16328. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16329. case $ac_top_builddir_sub in
  16330. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16331. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16332. esac ;;
  16333. esac
  16334. ac_abs_top_builddir=$ac_pwd
  16335. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  16336. # for backward compatibility:
  16337. ac_top_builddir=$ac_top_build_prefix
  16338. case $srcdir in
  16339. .) # We are building in place.
  16340. ac_srcdir=.
  16341. ac_top_srcdir=$ac_top_builddir_sub
  16342. ac_abs_top_srcdir=$ac_pwd ;;
  16343. [\\/]* | ?:[\\/]* ) # Absolute name.
  16344. ac_srcdir=$srcdir$ac_dir_suffix;
  16345. ac_top_srcdir=$srcdir
  16346. ac_abs_top_srcdir=$srcdir ;;
  16347. *) # Relative name.
  16348. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  16349. ac_top_srcdir=$ac_top_build_prefix$srcdir
  16350. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  16351. esac
  16352. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16353. cd "$ac_dir"
  16354. # Check for guested configure; otherwise get Cygnus style configure.
  16355. if test -f "$ac_srcdir/configure.gnu"; then
  16356. ac_sub_configure=$ac_srcdir/configure.gnu
  16357. elif test -f "$ac_srcdir/configure"; then
  16358. ac_sub_configure=$ac_srcdir/configure
  16359. elif test -f "$ac_srcdir/configure.in"; then
  16360. # This should be Cygnus configure.
  16361. ac_sub_configure=$ac_aux_dir/configure
  16362. else
  16363. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
  16364. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  16365. ac_sub_configure=
  16366. fi
  16367. # The recursion is here.
  16368. if test -n "$ac_sub_configure"; then
  16369. # Make the cache file name correct relative to the subdirectory.
  16370. case $cache_file in
  16371. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  16372. *) # Relative name.
  16373. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  16374. esac
  16375. { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
  16376. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  16377. # The eval makes quoting arguments work.
  16378. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  16379. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  16380. as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
  16381. fi
  16382. cd "$ac_popdir"
  16383. done
  16384. fi
  16385. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16386. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16387. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16388. fi
  16389. echo
  16390. echo
  16391. echo
  16392. echo "------------------------------------------------------------------------"
  16393. echo "$PACKAGE $VERSION"
  16394. echo "------------------------------------------------------------------------"
  16395. echo
  16396. echo
  16397. echo "Configuration Options Summary:"
  16398. echo
  16399. if test "x$libcurl" != xno; then
  16400. echo " libcurl(GBT+getwork).: Enabled: $LIBCURL_LIBS"
  16401. else
  16402. echo " libcurl(GBT+getwork).: Disabled"
  16403. fi
  16404. echo " curses.TUI...........: $cursesmsg"
  16405. if test "x$scrypt" != xno; then
  16406. echo " scrypt...............: Enabled"
  16407. else
  16408. echo " scrypt...............: Disabled"
  16409. fi
  16410. echo
  16411. if test "x$ants1" = xyes; then
  16412. echo " Antminer.S1.Bitmain..: Enabled"
  16413. else
  16414. echo " Antminer.S1.Bitmain..: Disabled"
  16415. fi
  16416. if test "x$ants2" = xyes; then
  16417. echo " Antminer.S2.Bitmain..: Enabled"
  16418. else
  16419. echo " Antminer.S2.Bitmain..: Disabled"
  16420. fi
  16421. if test "x$avalon" = xyes; then
  16422. echo " Avalon.ASICs.........: Enabled"
  16423. else
  16424. echo " Avalon.ASICs.........: Disabled"
  16425. fi
  16426. if test "x$avalon2" = xyes; then
  16427. echo " Avalon2.ASICs........: Enabled"
  16428. else
  16429. echo " Avalon2.ASICs........: Disabled"
  16430. fi
  16431. if test "x$minion" = xyes; then
  16432. echo " BlackArrowMinion.ASIC: Enabled"
  16433. else
  16434. echo " BlackArrowMinion.ASIC: Disabled"
  16435. fi
  16436. if test "x$bab" = xyes; then
  16437. echo " BlackArrow.ASICs.....: Enabled"
  16438. else
  16439. echo " BlackArrow.ASICs.....: Disabled"
  16440. fi
  16441. if test "x$bflsc" = xyes; then
  16442. echo " BFL.ASICs............: Enabled"
  16443. else
  16444. echo " BFL.ASICs............: Disabled"
  16445. fi
  16446. if test "x$bitforce" = xyes; then
  16447. echo " BitForce.FPGAs.......: Enabled"
  16448. else
  16449. echo " BitForce.FPGAs.......: Disabled"
  16450. fi
  16451. if test "x$bitfury" = xyes; then
  16452. echo " BitFury.ASICs........: Enabled"
  16453. else
  16454. echo " BitFury.ASICs........: Disabled"
  16455. fi
  16456. if test "x$cointerra" = xyes; then
  16457. echo " Cointerra.ASICs......: Enabled"
  16458. else
  16459. echo " Cointerra.ASICs......: Disabled"
  16460. fi
  16461. if test "x$spondoolies" = xyes; then
  16462. echo " Spondoolies.ASICs....: Enabled"
  16463. else
  16464. echo " Spondoolies.ASICs....: Disabled"
  16465. fi
  16466. if test "x$bitmine_A1" = xyes; then
  16467. echo " Bitmine-A1.ASICs.....: Enabled"
  16468. else
  16469. echo " Bitmine-A1.ASICs.....: Disabled"
  16470. fi
  16471. if test "x$drillbit" = xyes; then
  16472. echo " Drillbit.BitFury.....: Enabled"
  16473. else
  16474. echo " Drillbit.BitFury.....: Disabled"
  16475. fi
  16476. if test "x$hashfast" = xyes; then
  16477. echo " Hashfast.ASICs.......: Enabled"
  16478. else
  16479. echo " Hashfast.ASICs.......: Disabled"
  16480. fi
  16481. if test "x$icarus" = xyes; then
  16482. echo " Icarus.ASICs/FPGAs...: Enabled"
  16483. else
  16484. echo " Icarus.ASICs/FPGAs...: Disabled"
  16485. fi
  16486. if test "x$klondike" = xyes; then
  16487. echo " Klondike.ASICs.......: Enabled"
  16488. else
  16489. echo " Klondike.ASICs.......: Disabled"
  16490. fi
  16491. if test "x$knc" = xyes; then
  16492. echo " KnC.ASICs............: Enabled"
  16493. else
  16494. echo " KnC.ASICs............: Disabled"
  16495. fi
  16496. if test "x$modminer" = xyes; then
  16497. echo " ModMiner.FPGAs.......: Enabled"
  16498. else
  16499. echo " ModMiner.FPGAs.......: Disabled"
  16500. fi
  16501. if test "x$gridseed" = xyes; then
  16502. echo " GridSeed.ASICs.......: Enabled"
  16503. else
  16504. echo " GridSeed.ASICs.......: Disabled"
  16505. fi
  16506. if test "x$zeus" = xyes; then
  16507. echo " Zeus.ASICs...........: Enabled"
  16508. else
  16509. echo " Zeus.ASICs...........: Disabled"
  16510. fi
  16511. if test "x$lketc" = xyes; then
  16512. echo " Lketc.ASICs..........: Enabled"
  16513. else
  16514. echo " Lketc.ASICs..........: Disabled"
  16515. fi
  16516. if test "x$avalon$avalon2$bab$bflsc$bitforce$bitfury$hashfast$icarus$klondike$knc$modminer$drillbit$minion$cointerra$bitmine_A1$ants1$ants2$spondoolies$gridseed$zeus$lketc" = xnonononononononononononononononononononono; then
  16517. as_fn_error $? "No mining configured in" "$LINENO" 5
  16518. fi
  16519. echo
  16520. echo "Compilation............: make (or gmake)"
  16521. echo " CPPFLAGS.............: $CPPFLAGS"
  16522. echo " CFLAGS...............: $CFLAGS"
  16523. echo " LDFLAGS..............: $LDFLAGS $PTHREAD_FLAGS"
  16524. echo " LDADD................: $DLOPEN_FLAGS $LIBCURL_LIBS $JANSSON_LIBS $PTHREAD_LIBS $NCURSES_LIBS $PDCURSES_LIBS $WS2_LIBS $MATH_LIBS $LIBUSB_LIBS $LIBUDEV_LIBS $RT_LIBS"
  16525. echo
  16526. echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
  16527. echo " prefix...............: $prefix"
  16528. echo
  16529. if test "x$want_usbutils$dlibusb" = xyesyes; then
  16530. echo "*** SYSTEM LIBUSB BEING ADDED - NOT RECOMMENDED UNLESS YOU ARE UNABLE TO COMPILE THE INCLUDED LIBUSB ***"
  16531. echo
  16532. fi