output.1 568 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263
  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. LIBCURL_CFLAGS
  587. LIBUDEV_LIBS
  588. WANT_STATIC_LIBUSB_FALSE
  589. WANT_STATIC_LIBUSB_TRUE
  590. subdirs
  591. LIBUSB_LIBS
  592. LIBUSB_CFLAGS
  593. PKG_CONFIG_LIBDIR
  594. PKG_CONFIG_PATH
  595. PKG_CONFIG
  596. HAVE_x86_64_FALSE
  597. HAVE_x86_64_TRUE
  598. HAVE_WINDOWS_FALSE
  599. HAVE_WINDOWS_TRUE
  600. HAVE_CURSES_FALSE
  601. HAVE_CURSES_TRUE
  602. WANT_LIBBITFURY_FALSE
  603. WANT_LIBBITFURY_TRUE
  604. WANT_USBUTILS_FALSE
  605. WANT_USBUTILS_TRUE
  606. NEED_FPGAUTILS_FALSE
  607. NEED_FPGAUTILS_TRUE
  608. HAS_LKETC_FALSE
  609. HAS_LKETC_TRUE
  610. HAS_ZEUS_FALSE
  611. HAS_ZEUS_TRUE
  612. HAS_GRIDSEED_FALSE
  613. HAS_GRIDSEED_TRUE
  614. HAS_SPONDOOLIES_FALSE
  615. HAS_SPONDOOLIES_TRUE
  616. HAS_MODMINER_FALSE
  617. HAS_MODMINER_TRUE
  618. HAS_MINION_FALSE
  619. HAS_MINION_TRUE
  620. HAS_AVALON2_FALSE
  621. HAS_AVALON2_TRUE
  622. HAS_KNC_FALSE
  623. HAS_KNC_TRUE
  624. HAS_KLONDIKE_FALSE
  625. HAS_KLONDIKE_TRUE
  626. HAS_ICARUS_FALSE
  627. HAS_ICARUS_TRUE
  628. HAS_HASHFAST_FALSE
  629. HAS_HASHFAST_TRUE
  630. HAS_DRILLBIT_FALSE
  631. HAS_DRILLBIT_TRUE
  632. HAS_BITMINE_A1_FALSE
  633. HAS_BITMINE_A1_TRUE
  634. HAS_COINTERRA_FALSE
  635. HAS_COINTERRA_TRUE
  636. HAS_BITFURY_FALSE
  637. HAS_BITFURY_TRUE
  638. HAS_BITFORCE_FALSE
  639. HAS_BITFORCE_TRUE
  640. HAS_BFLSC_FALSE
  641. HAS_BFLSC_TRUE
  642. HAS_BAB_FALSE
  643. HAS_BAB_TRUE
  644. HAS_AVALON_FALSE
  645. HAS_AVALON_TRUE
  646. HAS_ANT_S2_FALSE
  647. HAS_ANT_S2_TRUE
  648. HAS_ANT_S1_FALSE
  649. HAS_ANT_S1_TRUE
  650. HAS_SCRYPT_FALSE
  651. HAS_SCRYPT_TRUE
  652. ALLOCA
  653. LIBGNU_LTLIBDEPS
  654. LIBGNU_LIBDEPS
  655. gltests_WITNESS
  656. NEXT_AS_FIRST_DIRECTIVE_STRING_H
  657. NEXT_STRING_H
  658. GL_GENERATE_STDINT_H_FALSE
  659. GL_GENERATE_STDINT_H_TRUE
  660. STDINT_H
  661. WINT_T_SUFFIX
  662. WCHAR_T_SUFFIX
  663. SIG_ATOMIC_T_SUFFIX
  664. SIZE_T_SUFFIX
  665. PTRDIFF_T_SUFFIX
  666. HAVE_SIGNED_WINT_T
  667. HAVE_SIGNED_WCHAR_T
  668. HAVE_SIGNED_SIG_ATOMIC_T
  669. BITSIZEOF_WINT_T
  670. BITSIZEOF_WCHAR_T
  671. BITSIZEOF_SIG_ATOMIC_T
  672. BITSIZEOF_SIZE_T
  673. BITSIZEOF_PTRDIFF_T
  674. HAVE_SYS_BITYPES_H
  675. HAVE_SYS_INTTYPES_H
  676. HAVE_STDINT_H
  677. NEXT_AS_FIRST_DIRECTIVE_STDINT_H
  678. NEXT_STDINT_H
  679. HAVE_SYS_TYPES_H
  680. HAVE_INTTYPES_H
  681. HAVE_WCHAR_H
  682. HAVE_UNSIGNED_LONG_LONG_INT
  683. HAVE_LONG_LONG_INT
  684. NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
  685. NEXT_STDDEF_H
  686. GL_GENERATE_STDDEF_H_FALSE
  687. GL_GENERATE_STDDEF_H_TRUE
  688. STDDEF_H
  689. HAVE_WCHAR_T
  690. REPLACE_NULL
  691. NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
  692. NEXT_SIGNAL_H
  693. PRAGMA_COLUMNS
  694. PRAGMA_SYSTEM_HEADER
  695. INCLUDE_NEXT_AS_FIRST_DIRECTIVE
  696. INCLUDE_NEXT
  697. HAVE_SIGHANDLER_T
  698. HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
  699. HAVE_STRUCT_SIGACTION_SA_SIGACTION
  700. HAVE_SIGACTION
  701. HAVE_SIGINFO_T
  702. HAVE_SIGSET_T
  703. HAVE_POSIX_SIGNALBLOCKING
  704. GNULIB_SIGACTION
  705. GNULIB_SIGPROCMASK
  706. GNULIB_SIGNAL_H_SIGPIPE
  707. APPLE_UNIVERSAL_BUILD
  708. UNDEFINE_STRTOK_R
  709. REPLACE_STRTOK_R
  710. REPLACE_STRSIGNAL
  711. REPLACE_STRNLEN
  712. REPLACE_STRNDUP
  713. REPLACE_STRNCAT
  714. REPLACE_STRERROR_R
  715. REPLACE_STRERROR
  716. REPLACE_STRCHRNUL
  717. REPLACE_STRCASESTR
  718. REPLACE_STRSTR
  719. REPLACE_STRDUP
  720. REPLACE_STPNCPY
  721. REPLACE_MEMMEM
  722. REPLACE_MEMCHR
  723. HAVE_STRVERSCMP
  724. HAVE_DECL_STRSIGNAL
  725. HAVE_DECL_STRERROR_R
  726. HAVE_DECL_STRTOK_R
  727. HAVE_STRCASESTR
  728. HAVE_STRSEP
  729. HAVE_STRPBRK
  730. HAVE_DECL_STRNLEN
  731. HAVE_DECL_STRNDUP
  732. HAVE_DECL_STRDUP
  733. HAVE_STRCHRNUL
  734. HAVE_STPNCPY
  735. HAVE_STPCPY
  736. HAVE_RAWMEMCHR
  737. HAVE_DECL_MEMRCHR
  738. HAVE_MEMPCPY
  739. HAVE_DECL_MEMMEM
  740. HAVE_MEMCHR
  741. HAVE_MBSLEN
  742. GNULIB_STRVERSCMP
  743. GNULIB_STRSIGNAL
  744. GNULIB_STRERROR_R
  745. GNULIB_STRERROR
  746. GNULIB_MBSTOK_R
  747. GNULIB_MBSSEP
  748. GNULIB_MBSSPN
  749. GNULIB_MBSPBRK
  750. GNULIB_MBSCSPN
  751. GNULIB_MBSCASESTR
  752. GNULIB_MBSPCASECMP
  753. GNULIB_MBSNCASECMP
  754. GNULIB_MBSCASECMP
  755. GNULIB_MBSSTR
  756. GNULIB_MBSRCHR
  757. GNULIB_MBSCHR
  758. GNULIB_MBSNLEN
  759. GNULIB_MBSLEN
  760. GNULIB_STRTOK_R
  761. GNULIB_STRCASESTR
  762. GNULIB_STRSTR
  763. GNULIB_STRSEP
  764. GNULIB_STRPBRK
  765. GNULIB_STRNLEN
  766. GNULIB_STRNDUP
  767. GNULIB_STRNCAT
  768. GNULIB_STRDUP
  769. GNULIB_STRCHRNUL
  770. GNULIB_STPNCPY
  771. GNULIB_STPCPY
  772. GNULIB_RAWMEMCHR
  773. GNULIB_MEMRCHR
  774. GNULIB_MEMPCPY
  775. GNULIB_MEMMEM
  776. GNULIB_MEMCHR
  777. GL_COND_LIBTOOL_FALSE
  778. GL_COND_LIBTOOL_TRUE
  779. OTOOL64
  780. OTOOL
  781. LIPO
  782. NMEDIT
  783. DSYMUTIL
  784. MANIFEST_TOOL
  785. ac_ct_AR
  786. AR
  787. DLLTOOL
  788. OBJDUMP
  789. LN_S
  790. NM
  791. ac_ct_DUMPBIN
  792. DUMPBIN
  793. LD
  794. FGREP
  795. SED
  796. LIBTOOL
  797. RANLIB
  798. MAINT
  799. MAINTAINER_MODE_FALSE
  800. MAINTAINER_MODE_TRUE
  801. VMAJ
  802. release_info
  803. version_info
  804. EGREP
  805. GREP
  806. CPP
  807. am__fastdepCC_FALSE
  808. am__fastdepCC_TRUE
  809. CCDEPMODE
  810. AMDEPBACKSLASH
  811. AMDEP_FALSE
  812. AMDEP_TRUE
  813. am__quote
  814. am__include
  815. DEPDIR
  816. OBJEXT
  817. EXEEXT
  818. ac_ct_CC
  819. CPPFLAGS
  820. LDFLAGS
  821. CFLAGS
  822. CC
  823. AM_BACKSLASH
  824. AM_DEFAULT_VERBOSITY
  825. am__untar
  826. am__tar
  827. AMTAR
  828. am__leading_dot
  829. SET_MAKE
  830. AWK
  831. mkdir_p
  832. MKDIR_P
  833. INSTALL_STRIP_PROGRAM
  834. STRIP
  835. install_sh
  836. MAKEINFO
  837. AUTOHEADER
  838. AUTOMAKE
  839. AUTOCONF
  840. ACLOCAL
  841. VERSION
  842. PACKAGE
  843. CYGPATH_W
  844. am__isrc
  845. INSTALL_DATA
  846. INSTALL_SCRIPT
  847. INSTALL_PROGRAM
  848. target_os
  849. target_vendor
  850. target_cpu
  851. target
  852. host_os
  853. host_vendor
  854. host_cpu
  855. host
  856. build_os
  857. build_vendor
  858. build_cpu
  859. build
  860. target_alias
  861. host_alias
  862. build_alias
  863. LIBS
  864. ECHO_T
  865. ECHO_N
  866. ECHO_C
  867. DEFS
  868. mandir
  869. localedir
  870. libdir
  871. psdir
  872. pdfdir
  873. dvidir
  874. htmldir
  875. infodir
  876. docdir
  877. oldincludedir
  878. includedir
  879. localstatedir
  880. sharedstatedir
  881. sysconfdir
  882. datadir
  883. datarootdir
  884. libexecdir
  885. sbindir
  886. bindir
  887. program_transform_name
  888. prefix
  889. exec_prefix
  890. PACKAGE_URL
  891. PACKAGE_BUGREPORT
  892. PACKAGE_STRING
  893. PACKAGE_VERSION
  894. PACKAGE_TARNAME
  895. PACKAGE_NAME
  896. PATH_SEPARATOR
  897. SHELL'
  898. ac_subst_files=''
  899. ac_user_opts='
  900. enable_option_checking
  901. enable_silent_rules
  902. enable_dependency_tracking
  903. enable_maintainer_mode
  904. enable_shared
  905. enable_static
  906. with_pic
  907. enable_fast_install
  908. with_gnu_ld
  909. with_sysroot
  910. enable_libtool_lock
  911. enable_scrypt
  912. enable_ants1
  913. enable_ants2
  914. enable_avalon
  915. enable_bab
  916. enable_bflsc
  917. enable_bitforce
  918. enable_bitfury
  919. enable_cointerra
  920. enable_bitmine_A1
  921. enable_drillbit
  922. enable_hashfast
  923. enable_icarus
  924. enable_klondike
  925. enable_knc
  926. enable_avalon2
  927. enable_minion
  928. enable_modminer
  929. enable_spondoolies
  930. enable_gridseed
  931. enable_zeus
  932. enable_lketc
  933. with_curses
  934. with_system_libusb
  935. enable_libcurl
  936. '
  937. ac_precious_vars='build_alias
  938. host_alias
  939. target_alias
  940. CC
  941. CFLAGS
  942. LDFLAGS
  943. LIBS
  944. CPPFLAGS
  945. CPP
  946. PKG_CONFIG
  947. PKG_CONFIG_PATH
  948. PKG_CONFIG_LIBDIR
  949. LIBUSB_CFLAGS
  950. LIBUSB_LIBS
  951. LIBCURL_CFLAGS
  952. LIBCURL_LIBS'
  953. ac_subdirs_all='compat/libusb-1.0
  954. compat/jansson-2.5'
  955. # Initialize some variables set by options.
  956. ac_init_help=
  957. ac_init_version=false
  958. ac_unrecognized_opts=
  959. ac_unrecognized_sep=
  960. # The variables have the same names as the options, with
  961. # dashes changed to underlines.
  962. cache_file=/dev/null
  963. exec_prefix=NONE
  964. no_create=
  965. no_recursion=
  966. prefix=NONE
  967. program_prefix=NONE
  968. program_suffix=NONE
  969. program_transform_name=s,x,x,
  970. silent=
  971. site=
  972. srcdir=
  973. verbose=
  974. x_includes=NONE
  975. x_libraries=NONE
  976. # Installation directory options.
  977. # These are left unexpanded so users can "make install exec_prefix=/foo"
  978. # and all the variables that are supposed to be based on exec_prefix
  979. # by default will actually change.
  980. # Use braces instead of parens because sh, perl, etc. also accept them.
  981. # (The list follows the same order as the GNU Coding Standards.)
  982. bindir='${exec_prefix}/bin'
  983. sbindir='${exec_prefix}/sbin'
  984. libexecdir='${exec_prefix}/libexec'
  985. datarootdir='${prefix}/share'
  986. datadir='${datarootdir}'
  987. sysconfdir='${prefix}/etc'
  988. sharedstatedir='${prefix}/com'
  989. localstatedir='${prefix}/var'
  990. includedir='${prefix}/include'
  991. oldincludedir='/usr/include'
  992. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  993. infodir='${datarootdir}/info'
  994. htmldir='${docdir}'
  995. dvidir='${docdir}'
  996. pdfdir='${docdir}'
  997. psdir='${docdir}'
  998. libdir='${exec_prefix}/lib'
  999. localedir='${datarootdir}/locale'
  1000. mandir='${datarootdir}/man'
  1001. ac_prev=
  1002. ac_dashdash=
  1003. for ac_option
  1004. do
  1005. # If the previous option needs an argument, assign it.
  1006. if test -n "$ac_prev"; then
  1007. eval $ac_prev=\$ac_option
  1008. ac_prev=
  1009. continue
  1010. fi
  1011. case $ac_option in
  1012. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1013. *=) ac_optarg= ;;
  1014. *) ac_optarg=yes ;;
  1015. esac
  1016. # Accept the important Cygnus configure options, so we can diagnose typos.
  1017. case $ac_dashdash$ac_option in
  1018. --)
  1019. ac_dashdash=yes ;;
  1020. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1021. ac_prev=bindir ;;
  1022. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1023. bindir=$ac_optarg ;;
  1024. -build | --build | --buil | --bui | --bu)
  1025. ac_prev=build_alias ;;
  1026. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1027. build_alias=$ac_optarg ;;
  1028. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1029. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1030. ac_prev=cache_file ;;
  1031. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1032. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1033. cache_file=$ac_optarg ;;
  1034. --config-cache | -C)
  1035. cache_file=config.cache ;;
  1036. -datadir | --datadir | --datadi | --datad)
  1037. ac_prev=datadir ;;
  1038. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1039. datadir=$ac_optarg ;;
  1040. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1041. | --dataroo | --dataro | --datar)
  1042. ac_prev=datarootdir ;;
  1043. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1044. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1045. datarootdir=$ac_optarg ;;
  1046. -disable-* | --disable-*)
  1047. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1048. # Reject names that are not valid shell variable names.
  1049. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1050. as_fn_error $? "invalid feature name: $ac_useropt"
  1051. ac_useropt_orig=$ac_useropt
  1052. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1053. case $ac_user_opts in
  1054. *"
  1055. "enable_$ac_useropt"
  1056. "*) ;;
  1057. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1058. ac_unrecognized_sep=', ';;
  1059. esac
  1060. eval enable_$ac_useropt=no ;;
  1061. -docdir | --docdir | --docdi | --doc | --do)
  1062. ac_prev=docdir ;;
  1063. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1064. docdir=$ac_optarg ;;
  1065. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1066. ac_prev=dvidir ;;
  1067. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1068. dvidir=$ac_optarg ;;
  1069. -enable-* | --enable-*)
  1070. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1071. # Reject names that are not valid shell variable names.
  1072. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1073. as_fn_error $? "invalid feature name: $ac_useropt"
  1074. ac_useropt_orig=$ac_useropt
  1075. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1076. case $ac_user_opts in
  1077. *"
  1078. "enable_$ac_useropt"
  1079. "*) ;;
  1080. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1081. ac_unrecognized_sep=', ';;
  1082. esac
  1083. eval enable_$ac_useropt=\$ac_optarg ;;
  1084. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1085. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1086. | --exec | --exe | --ex)
  1087. ac_prev=exec_prefix ;;
  1088. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1089. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1090. | --exec=* | --exe=* | --ex=*)
  1091. exec_prefix=$ac_optarg ;;
  1092. -gas | --gas | --ga | --g)
  1093. # Obsolete; use --with-gas.
  1094. with_gas=yes ;;
  1095. -help | --help | --hel | --he | -h)
  1096. ac_init_help=long ;;
  1097. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1098. ac_init_help=recursive ;;
  1099. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1100. ac_init_help=short ;;
  1101. -host | --host | --hos | --ho)
  1102. ac_prev=host_alias ;;
  1103. -host=* | --host=* | --hos=* | --ho=*)
  1104. host_alias=$ac_optarg ;;
  1105. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1106. ac_prev=htmldir ;;
  1107. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1108. | --ht=*)
  1109. htmldir=$ac_optarg ;;
  1110. -includedir | --includedir | --includedi | --included | --include \
  1111. | --includ | --inclu | --incl | --inc)
  1112. ac_prev=includedir ;;
  1113. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1114. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1115. includedir=$ac_optarg ;;
  1116. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1117. ac_prev=infodir ;;
  1118. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1119. infodir=$ac_optarg ;;
  1120. -libdir | --libdir | --libdi | --libd)
  1121. ac_prev=libdir ;;
  1122. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1123. libdir=$ac_optarg ;;
  1124. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1125. | --libexe | --libex | --libe)
  1126. ac_prev=libexecdir ;;
  1127. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1128. | --libexe=* | --libex=* | --libe=*)
  1129. libexecdir=$ac_optarg ;;
  1130. -localedir | --localedir | --localedi | --localed | --locale)
  1131. ac_prev=localedir ;;
  1132. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1133. localedir=$ac_optarg ;;
  1134. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1135. | --localstate | --localstat | --localsta | --localst | --locals)
  1136. ac_prev=localstatedir ;;
  1137. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1138. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1139. localstatedir=$ac_optarg ;;
  1140. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1141. ac_prev=mandir ;;
  1142. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1143. mandir=$ac_optarg ;;
  1144. -nfp | --nfp | --nf)
  1145. # Obsolete; use --without-fp.
  1146. with_fp=no ;;
  1147. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1148. | --no-cr | --no-c | -n)
  1149. no_create=yes ;;
  1150. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1151. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1152. no_recursion=yes ;;
  1153. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1154. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1155. | --oldin | --oldi | --old | --ol | --o)
  1156. ac_prev=oldincludedir ;;
  1157. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1158. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1159. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1160. oldincludedir=$ac_optarg ;;
  1161. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1162. ac_prev=prefix ;;
  1163. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1164. prefix=$ac_optarg ;;
  1165. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1166. | --program-pre | --program-pr | --program-p)
  1167. ac_prev=program_prefix ;;
  1168. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1169. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1170. program_prefix=$ac_optarg ;;
  1171. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1172. | --program-suf | --program-su | --program-s)
  1173. ac_prev=program_suffix ;;
  1174. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1175. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1176. program_suffix=$ac_optarg ;;
  1177. -program-transform-name | --program-transform-name \
  1178. | --program-transform-nam | --program-transform-na \
  1179. | --program-transform-n | --program-transform- \
  1180. | --program-transform | --program-transfor \
  1181. | --program-transfo | --program-transf \
  1182. | --program-trans | --program-tran \
  1183. | --progr-tra | --program-tr | --program-t)
  1184. ac_prev=program_transform_name ;;
  1185. -program-transform-name=* | --program-transform-name=* \
  1186. | --program-transform-nam=* | --program-transform-na=* \
  1187. | --program-transform-n=* | --program-transform-=* \
  1188. | --program-transform=* | --program-transfor=* \
  1189. | --program-transfo=* | --program-transf=* \
  1190. | --program-trans=* | --program-tran=* \
  1191. | --progr-tra=* | --program-tr=* | --program-t=*)
  1192. program_transform_name=$ac_optarg ;;
  1193. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1194. ac_prev=pdfdir ;;
  1195. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1196. pdfdir=$ac_optarg ;;
  1197. -psdir | --psdir | --psdi | --psd | --ps)
  1198. ac_prev=psdir ;;
  1199. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1200. psdir=$ac_optarg ;;
  1201. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1202. | -silent | --silent | --silen | --sile | --sil)
  1203. silent=yes ;;
  1204. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1205. ac_prev=sbindir ;;
  1206. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1207. | --sbi=* | --sb=*)
  1208. sbindir=$ac_optarg ;;
  1209. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1210. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1211. | --sharedst | --shareds | --shared | --share | --shar \
  1212. | --sha | --sh)
  1213. ac_prev=sharedstatedir ;;
  1214. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1215. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1216. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1217. | --sha=* | --sh=*)
  1218. sharedstatedir=$ac_optarg ;;
  1219. -site | --site | --sit)
  1220. ac_prev=site ;;
  1221. -site=* | --site=* | --sit=*)
  1222. site=$ac_optarg ;;
  1223. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1224. ac_prev=srcdir ;;
  1225. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1226. srcdir=$ac_optarg ;;
  1227. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1228. | --syscon | --sysco | --sysc | --sys | --sy)
  1229. ac_prev=sysconfdir ;;
  1230. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1231. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1232. sysconfdir=$ac_optarg ;;
  1233. -target | --target | --targe | --targ | --tar | --ta | --t)
  1234. ac_prev=target_alias ;;
  1235. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1236. target_alias=$ac_optarg ;;
  1237. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1238. verbose=yes ;;
  1239. -version | --version | --versio | --versi | --vers | -V)
  1240. ac_init_version=: ;;
  1241. -with-* | --with-*)
  1242. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1243. # Reject names that are not valid shell variable names.
  1244. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1245. as_fn_error $? "invalid package name: $ac_useropt"
  1246. ac_useropt_orig=$ac_useropt
  1247. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1248. case $ac_user_opts in
  1249. *"
  1250. "with_$ac_useropt"
  1251. "*) ;;
  1252. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1253. ac_unrecognized_sep=', ';;
  1254. esac
  1255. eval with_$ac_useropt=\$ac_optarg ;;
  1256. -without-* | --without-*)
  1257. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1258. # Reject names that are not valid shell variable names.
  1259. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1260. as_fn_error $? "invalid package name: $ac_useropt"
  1261. ac_useropt_orig=$ac_useropt
  1262. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1263. case $ac_user_opts in
  1264. *"
  1265. "with_$ac_useropt"
  1266. "*) ;;
  1267. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1268. ac_unrecognized_sep=', ';;
  1269. esac
  1270. eval with_$ac_useropt=no ;;
  1271. --x)
  1272. # Obsolete; use --with-x.
  1273. with_x=yes ;;
  1274. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1275. | --x-incl | --x-inc | --x-in | --x-i)
  1276. ac_prev=x_includes ;;
  1277. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1278. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1279. x_includes=$ac_optarg ;;
  1280. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1281. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1282. ac_prev=x_libraries ;;
  1283. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1284. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1285. x_libraries=$ac_optarg ;;
  1286. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1287. Try \`$0 --help' for more information"
  1288. ;;
  1289. *=*)
  1290. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1291. # Reject names that are not valid shell variable names.
  1292. case $ac_envvar in #(
  1293. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1294. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1295. esac
  1296. eval $ac_envvar=\$ac_optarg
  1297. export $ac_envvar ;;
  1298. *)
  1299. # FIXME: should be removed in autoconf 3.0.
  1300. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1301. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1302. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1303. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1304. ;;
  1305. esac
  1306. done
  1307. if test -n "$ac_prev"; then
  1308. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1309. as_fn_error $? "missing argument to $ac_option"
  1310. fi
  1311. if test -n "$ac_unrecognized_opts"; then
  1312. case $enable_option_checking in
  1313. no) ;;
  1314. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1315. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1316. esac
  1317. fi
  1318. # Check all directory arguments for consistency.
  1319. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1320. datadir sysconfdir sharedstatedir localstatedir includedir \
  1321. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1322. libdir localedir mandir
  1323. do
  1324. eval ac_val=\$$ac_var
  1325. # Remove trailing slashes.
  1326. case $ac_val in
  1327. */ )
  1328. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1329. eval $ac_var=\$ac_val;;
  1330. esac
  1331. # Be sure to have absolute directory names.
  1332. case $ac_val in
  1333. [\\/$]* | ?:[\\/]* ) continue;;
  1334. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1335. esac
  1336. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1337. done
  1338. # There might be people who depend on the old broken behavior: `$host'
  1339. # used to hold the argument of --host etc.
  1340. # FIXME: To remove some day.
  1341. build=$build_alias
  1342. host=$host_alias
  1343. target=$target_alias
  1344. # FIXME: To remove some day.
  1345. if test "x$host_alias" != x; then
  1346. if test "x$build_alias" = x; then
  1347. cross_compiling=maybe
  1348. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1349. If a cross compiler is detected then cross compile mode will be used" >&2
  1350. elif test "x$build_alias" != "x$host_alias"; then
  1351. cross_compiling=yes
  1352. fi
  1353. fi
  1354. ac_tool_prefix=
  1355. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1356. test "$silent" = yes && exec 6>/dev/null
  1357. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1358. ac_ls_di=`ls -di .` &&
  1359. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1360. as_fn_error $? "working directory cannot be determined"
  1361. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1362. as_fn_error $? "pwd does not report name of working directory"
  1363. # Find the source files, if location was not specified.
  1364. if test -z "$srcdir"; then
  1365. ac_srcdir_defaulted=yes
  1366. # Try the directory containing this script, then the parent directory.
  1367. ac_confdir=`$as_dirname -- "$as_myself" ||
  1368. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1369. X"$as_myself" : 'X\(//\)[^/]' \| \
  1370. X"$as_myself" : 'X\(//\)$' \| \
  1371. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1372. $as_echo X"$as_myself" |
  1373. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1374. s//\1/
  1375. q
  1376. }
  1377. /^X\(\/\/\)[^/].*/{
  1378. s//\1/
  1379. q
  1380. }
  1381. /^X\(\/\/\)$/{
  1382. s//\1/
  1383. q
  1384. }
  1385. /^X\(\/\).*/{
  1386. s//\1/
  1387. q
  1388. }
  1389. s/.*/./; q'`
  1390. srcdir=$ac_confdir
  1391. if test ! -r "$srcdir/$ac_unique_file"; then
  1392. srcdir=..
  1393. fi
  1394. else
  1395. ac_srcdir_defaulted=no
  1396. fi
  1397. if test ! -r "$srcdir/$ac_unique_file"; then
  1398. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1399. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1400. fi
  1401. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1402. ac_abs_confdir=`(
  1403. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1404. pwd)`
  1405. # When building in place, set srcdir=.
  1406. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1407. srcdir=.
  1408. fi
  1409. # Remove unnecessary trailing slashes from srcdir.
  1410. # Double slashes in file names in object file debugging info
  1411. # mess up M-x gdb in Emacs.
  1412. case $srcdir in
  1413. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1414. esac
  1415. for ac_var in $ac_precious_vars; do
  1416. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1417. eval ac_env_${ac_var}_value=\$${ac_var}
  1418. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1419. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1420. done
  1421. #
  1422. # Report the --help message.
  1423. #
  1424. if test "$ac_init_help" = "long"; then
  1425. # Omit some internal or obsolete options to make the list less imposing.
  1426. # This message is too long to be a string in the A/UX 3.1 sh.
  1427. cat <<_ACEOF
  1428. \`configure' configures cgminer 4.3.5-scrypt.2 to adapt to many kinds of systems.
  1429. Usage: $0 [OPTION]... [VAR=VALUE]...
  1430. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1431. VAR=VALUE. See below for descriptions of some of the useful variables.
  1432. Defaults for the options are specified in brackets.
  1433. Configuration:
  1434. -h, --help display this help and exit
  1435. --help=short display options specific to this package
  1436. --help=recursive display the short help of all the included packages
  1437. -V, --version display version information and exit
  1438. -q, --quiet, --silent do not print \`checking ...' messages
  1439. --cache-file=FILE cache test results in FILE [disabled]
  1440. -C, --config-cache alias for \`--cache-file=config.cache'
  1441. -n, --no-create do not create output files
  1442. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1443. Installation directories:
  1444. --prefix=PREFIX install architecture-independent files in PREFIX
  1445. @<:@@S|@ac_default_prefix@:>@
  1446. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1447. @<:@PREFIX@:>@
  1448. By default, \`make install' will install all the files in
  1449. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1450. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1451. for instance \`--prefix=\$HOME'.
  1452. For better control, use the options below.
  1453. Fine tuning of the installation directories:
  1454. --bindir=DIR user executables [EPREFIX/bin]
  1455. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1456. --libexecdir=DIR program executables [EPREFIX/libexec]
  1457. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1458. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1459. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1460. --libdir=DIR object code libraries [EPREFIX/lib]
  1461. --includedir=DIR C header files [PREFIX/include]
  1462. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1463. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1464. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1465. --infodir=DIR info documentation [DATAROOTDIR/info]
  1466. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1467. --mandir=DIR man documentation [DATAROOTDIR/man]
  1468. --docdir=DIR documentation root @<:@DATAROOTDIR/doc/cgminer@:>@
  1469. --htmldir=DIR html documentation [DOCDIR]
  1470. --dvidir=DIR dvi documentation [DOCDIR]
  1471. --pdfdir=DIR pdf documentation [DOCDIR]
  1472. --psdir=DIR ps documentation [DOCDIR]
  1473. _ACEOF
  1474. cat <<\_ACEOF
  1475. Program names:
  1476. --program-prefix=PREFIX prepend PREFIX to installed program names
  1477. --program-suffix=SUFFIX append SUFFIX to installed program names
  1478. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1479. System types:
  1480. --build=BUILD configure for building on BUILD [guessed]
  1481. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1482. --target=TARGET configure for building compilers for TARGET [HOST]
  1483. _ACEOF
  1484. fi
  1485. if test -n "$ac_init_help"; then
  1486. case $ac_init_help in
  1487. short | recursive ) echo "Configuration of cgminer 4.3.5-scrypt.2:";;
  1488. esac
  1489. cat <<\_ACEOF
  1490. Optional Features:
  1491. --disable-option-checking ignore unrecognized --enable/--with options
  1492. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1493. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1494. --enable-silent-rules less verbose build output (undo: `make V=1')
  1495. --disable-silent-rules verbose build output (undo: `make V=0')
  1496. --disable-dependency-tracking speeds up one-time build
  1497. --enable-dependency-tracking do not reject slow dependency extractors
  1498. --enable-maintainer-mode enable make rules and dependencies not useful
  1499. (and sometimes confusing) to the casual installer
  1500. --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=no@:>@
  1501. --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
  1502. --enable-fast-install@<:@=PKGS@:>@
  1503. optimize for fast installation @<:@default=yes@:>@
  1504. --disable-libtool-lock avoid locking (might break parallel builds)
  1505. --enable-scrypt Compile support for scrypt mining (default disabled)
  1506. --enable-ants1 Compile support for Antminer S1 Bitmain (default
  1507. disabled)
  1508. --enable-ants2 Compile support for Antminer S2 Bitmain (default
  1509. disabled)
  1510. --enable-avalon Compile support for Avalon (default disabled)
  1511. --enable-bab Compile support for BlackArrow Bitfury (default
  1512. disabled)
  1513. --enable-bflsc Compile support for BFL ASICs (default disabled)
  1514. --enable-bitforce Compile support for BitForce FPGAs (default
  1515. disabled)
  1516. --enable-bitfury Compile support for BitFury ASICs (default disabled)
  1517. --enable-cointerra Compile support for Cointerra ASICs (default
  1518. disabled)
  1519. --enable-bitmine_A1 Compile support for Bitmine.ch A1 ASICs (default
  1520. disabled)
  1521. --enable-drillbit Compile support for Drillbit BitFury ASICs (default
  1522. disabled)
  1523. --enable-hashfast Compile support for Hashfast (default disabled)
  1524. --enable-icarus Compile support for Icarus (default disabled)
  1525. --enable-klondike Compile support for Klondike (default disabled)
  1526. --enable-knc Compile support for KnC miners (default disabled)
  1527. --enable-avalon2 Compile support for Avalon2 (default disabled)
  1528. --enable-minion Compile support for Minion BlackArrow ASIC (default
  1529. disabled)
  1530. --enable-modminer Compile support for ModMiner FPGAs(default disabled)
  1531. --enable-spondoolies Compile support for Spondoolies (default disabled)
  1532. --enable-gridseed Compile support for GridSeed (default disabled)
  1533. --enable-zeus Compile support for Zeusminer (default disabled)
  1534. --enable-lketc Compile support for Zeusminer (default disabled)
  1535. --disable-libcurl Disable building with libcurl for getwork and GBT
  1536. support
  1537. Optional Packages:
  1538. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1539. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1540. --with-pic try to use only PIC/non-PIC objects @<:@default=use
  1541. both@:>@
  1542. --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
  1543. --with-sysroot=DIR Search for dependent libraries within DIR
  1544. (or the compiler's sysroot if not specified).
  1545. --without-curses Compile support for curses TUI (default enabled)
  1546. --with-system-libusb Compile against dynamic system libusb (default use
  1547. included static libusb)
  1548. Some influential environment variables:
  1549. CC C compiler command
  1550. CFLAGS C compiler flags
  1551. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1552. nonstandard directory <lib dir>
  1553. LIBS libraries to pass to the linker, e.g. -l<library>
  1554. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1555. you have headers in a nonstandard directory <include dir>
  1556. CPP C preprocessor
  1557. PKG_CONFIG path to pkg-config utility
  1558. PKG_CONFIG_PATH
  1559. directories to add to pkg-config's search path
  1560. PKG_CONFIG_LIBDIR
  1561. path overriding pkg-config's built-in search path
  1562. LIBUSB_CFLAGS
  1563. C compiler flags for LIBUSB, overriding pkg-config
  1564. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1565. LIBCURL_CFLAGS
  1566. C compiler flags for LIBCURL, overriding pkg-config
  1567. LIBCURL_LIBS
  1568. linker flags for LIBCURL, overriding pkg-config
  1569. Use these variables to override the choices made by `configure' or to help
  1570. it to find libraries and programs with nonstandard names/locations.
  1571. Report bugs to <kernel@kolivas.org>.
  1572. _ACEOF
  1573. ac_status=$?
  1574. fi
  1575. if test "$ac_init_help" = "recursive"; then
  1576. # If there are subdirs, report their specific --help.
  1577. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1578. test -d "$ac_dir" ||
  1579. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1580. continue
  1581. ac_builddir=.
  1582. case "$ac_dir" in
  1583. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1584. *)
  1585. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1586. # A ".." for each directory in $ac_dir_suffix.
  1587. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1588. case $ac_top_builddir_sub in
  1589. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1590. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1591. esac ;;
  1592. esac
  1593. ac_abs_top_builddir=$ac_pwd
  1594. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1595. # for backward compatibility:
  1596. ac_top_builddir=$ac_top_build_prefix
  1597. case $srcdir in
  1598. .) # We are building in place.
  1599. ac_srcdir=.
  1600. ac_top_srcdir=$ac_top_builddir_sub
  1601. ac_abs_top_srcdir=$ac_pwd ;;
  1602. [\\/]* | ?:[\\/]* ) # Absolute name.
  1603. ac_srcdir=$srcdir$ac_dir_suffix;
  1604. ac_top_srcdir=$srcdir
  1605. ac_abs_top_srcdir=$srcdir ;;
  1606. *) # Relative name.
  1607. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1608. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1609. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1610. esac
  1611. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1612. cd "$ac_dir" || { ac_status=$?; continue; }
  1613. # Check for guested configure.
  1614. if test -f "$ac_srcdir/configure.gnu"; then
  1615. echo &&
  1616. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1617. elif test -f "$ac_srcdir/configure"; then
  1618. echo &&
  1619. $SHELL "$ac_srcdir/configure" --help=recursive
  1620. else
  1621. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1622. fi || ac_status=$?
  1623. cd "$ac_pwd" || { ac_status=$?; break; }
  1624. done
  1625. fi
  1626. test -n "$ac_init_help" && exit $ac_status
  1627. if $ac_init_version; then
  1628. cat <<\_ACEOF
  1629. cgminer configure 4.3.5-scrypt.2
  1630. generated by GNU Autoconf 2.68
  1631. Copyright (C) 2010 Free Software Foundation, Inc.
  1632. This configure script is free software; the Free Software Foundation
  1633. gives unlimited permission to copy, distribute and modify it.
  1634. _ACEOF
  1635. exit
  1636. fi
  1637. ## ------------------------ ##
  1638. ## Autoconf initialization. ##
  1639. ## ------------------------ ##
  1640. @%:@ ac_fn_c_try_compile LINENO
  1641. @%:@ --------------------------
  1642. @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
  1643. ac_fn_c_try_compile ()
  1644. {
  1645. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1646. rm -f conftest.$ac_objext
  1647. if { { ac_try="$ac_compile"
  1648. case "(($ac_try" in
  1649. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1650. *) ac_try_echo=$ac_try;;
  1651. esac
  1652. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1653. $as_echo "$ac_try_echo"; } >&5
  1654. (eval "$ac_compile") 2>conftest.err
  1655. ac_status=$?
  1656. if test -s conftest.err; then
  1657. grep -v '^ *+' conftest.err >conftest.er1
  1658. cat conftest.er1 >&5
  1659. mv -f conftest.er1 conftest.err
  1660. fi
  1661. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1662. test $ac_status = 0; } && {
  1663. test -z "$ac_c_werror_flag" ||
  1664. test ! -s conftest.err
  1665. } && test -s conftest.$ac_objext; then :
  1666. ac_retval=0
  1667. else
  1668. $as_echo "$as_me: failed program was:" >&5
  1669. sed 's/^/| /' conftest.$ac_ext >&5
  1670. ac_retval=1
  1671. fi
  1672. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1673. as_fn_set_status $ac_retval
  1674. } @%:@ ac_fn_c_try_compile
  1675. @%:@ ac_fn_c_try_cpp LINENO
  1676. @%:@ ----------------------
  1677. @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
  1678. ac_fn_c_try_cpp ()
  1679. {
  1680. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1681. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1682. case "(($ac_try" in
  1683. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1684. *) ac_try_echo=$ac_try;;
  1685. esac
  1686. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1687. $as_echo "$ac_try_echo"; } >&5
  1688. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1689. ac_status=$?
  1690. if test -s conftest.err; then
  1691. grep -v '^ *+' conftest.err >conftest.er1
  1692. cat conftest.er1 >&5
  1693. mv -f conftest.er1 conftest.err
  1694. fi
  1695. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1696. test $ac_status = 0; } > conftest.i && {
  1697. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1698. test ! -s conftest.err
  1699. }; then :
  1700. ac_retval=0
  1701. else
  1702. $as_echo "$as_me: failed program was:" >&5
  1703. sed 's/^/| /' conftest.$ac_ext >&5
  1704. ac_retval=1
  1705. fi
  1706. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1707. as_fn_set_status $ac_retval
  1708. } @%:@ ac_fn_c_try_cpp
  1709. @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1710. @%:@ -------------------------------------------------------
  1711. @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1712. @%:@ the include files in INCLUDES and setting the cache variable VAR
  1713. @%:@ accordingly.
  1714. ac_fn_c_check_header_mongrel ()
  1715. {
  1716. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1717. if eval \${$3+:} false; then :
  1718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1719. $as_echo_n "checking for $2... " >&6; }
  1720. if eval \${$3+:} false; then :
  1721. $as_echo_n "(cached) " >&6
  1722. fi
  1723. eval ac_res=\$$3
  1724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1725. $as_echo "$ac_res" >&6; }
  1726. else
  1727. # Is the header compilable?
  1728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1729. $as_echo_n "checking $2 usability... " >&6; }
  1730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1731. /* end confdefs.h. */
  1732. $4
  1733. @%:@include <$2>
  1734. _ACEOF
  1735. if ac_fn_c_try_compile "$LINENO"; then :
  1736. ac_header_compiler=yes
  1737. else
  1738. ac_header_compiler=no
  1739. fi
  1740. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1742. $as_echo "$ac_header_compiler" >&6; }
  1743. # Is the header present?
  1744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1745. $as_echo_n "checking $2 presence... " >&6; }
  1746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1747. /* end confdefs.h. */
  1748. @%:@include <$2>
  1749. _ACEOF
  1750. if ac_fn_c_try_cpp "$LINENO"; then :
  1751. ac_header_preproc=yes
  1752. else
  1753. ac_header_preproc=no
  1754. fi
  1755. rm -f conftest.err conftest.i conftest.$ac_ext
  1756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1757. $as_echo "$ac_header_preproc" >&6; }
  1758. # So? What about this header?
  1759. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1760. yes:no: )
  1761. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1762. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1763. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1764. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1765. ;;
  1766. no:yes:* )
  1767. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1768. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1769. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1770. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1771. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1772. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1773. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1774. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1775. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1776. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1777. ( $as_echo "## --------------------------------- ##
  1778. ## Report this to kernel@kolivas.org ##
  1779. ## --------------------------------- ##"
  1780. ) | sed "s/^/$as_me: WARNING: /" >&2
  1781. ;;
  1782. esac
  1783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1784. $as_echo_n "checking for $2... " >&6; }
  1785. if eval \${$3+:} false; then :
  1786. $as_echo_n "(cached) " >&6
  1787. else
  1788. eval "$3=\$ac_header_compiler"
  1789. fi
  1790. eval ac_res=\$$3
  1791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1792. $as_echo "$ac_res" >&6; }
  1793. fi
  1794. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1795. } @%:@ ac_fn_c_check_header_mongrel
  1796. @%:@ ac_fn_c_try_run LINENO
  1797. @%:@ ----------------------
  1798. @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
  1799. @%:@ that executables *can* be run.
  1800. ac_fn_c_try_run ()
  1801. {
  1802. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1803. if { { ac_try="$ac_link"
  1804. case "(($ac_try" in
  1805. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1806. *) ac_try_echo=$ac_try;;
  1807. esac
  1808. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1809. $as_echo "$ac_try_echo"; } >&5
  1810. (eval "$ac_link") 2>&5
  1811. ac_status=$?
  1812. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1813. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1814. { { case "(($ac_try" in
  1815. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1816. *) ac_try_echo=$ac_try;;
  1817. esac
  1818. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1819. $as_echo "$ac_try_echo"; } >&5
  1820. (eval "$ac_try") 2>&5
  1821. ac_status=$?
  1822. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1823. test $ac_status = 0; }; }; then :
  1824. ac_retval=0
  1825. else
  1826. $as_echo "$as_me: program exited with status $ac_status" >&5
  1827. $as_echo "$as_me: failed program was:" >&5
  1828. sed 's/^/| /' conftest.$ac_ext >&5
  1829. ac_retval=$ac_status
  1830. fi
  1831. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1832. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1833. as_fn_set_status $ac_retval
  1834. } @%:@ ac_fn_c_try_run
  1835. @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1836. @%:@ -------------------------------------------------------
  1837. @%:@ Tests whether HEADER exists and can be compiled using the include files in
  1838. @%:@ INCLUDES, setting the cache variable VAR accordingly.
  1839. ac_fn_c_check_header_compile ()
  1840. {
  1841. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1843. $as_echo_n "checking for $2... " >&6; }
  1844. if eval \${$3+:} false; then :
  1845. $as_echo_n "(cached) " >&6
  1846. else
  1847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1848. /* end confdefs.h. */
  1849. $4
  1850. @%:@include <$2>
  1851. _ACEOF
  1852. if ac_fn_c_try_compile "$LINENO"; then :
  1853. eval "$3=yes"
  1854. else
  1855. eval "$3=no"
  1856. fi
  1857. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1858. fi
  1859. eval ac_res=\$$3
  1860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1861. $as_echo "$ac_res" >&6; }
  1862. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1863. } @%:@ ac_fn_c_check_header_compile
  1864. @%:@ ac_fn_c_try_link LINENO
  1865. @%:@ -----------------------
  1866. @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
  1867. ac_fn_c_try_link ()
  1868. {
  1869. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1870. rm -f conftest.$ac_objext conftest$ac_exeext
  1871. if { { ac_try="$ac_link"
  1872. case "(($ac_try" in
  1873. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1874. *) ac_try_echo=$ac_try;;
  1875. esac
  1876. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1877. $as_echo "$ac_try_echo"; } >&5
  1878. (eval "$ac_link") 2>conftest.err
  1879. ac_status=$?
  1880. if test -s conftest.err; then
  1881. grep -v '^ *+' conftest.err >conftest.er1
  1882. cat conftest.er1 >&5
  1883. mv -f conftest.er1 conftest.err
  1884. fi
  1885. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1886. test $ac_status = 0; } && {
  1887. test -z "$ac_c_werror_flag" ||
  1888. test ! -s conftest.err
  1889. } && test -s conftest$ac_exeext && {
  1890. test "$cross_compiling" = yes ||
  1891. $as_test_x conftest$ac_exeext
  1892. }; then :
  1893. ac_retval=0
  1894. else
  1895. $as_echo "$as_me: failed program was:" >&5
  1896. sed 's/^/| /' conftest.$ac_ext >&5
  1897. ac_retval=1
  1898. fi
  1899. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1900. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1901. # interfere with the next link command; also delete a directory that is
  1902. # left behind by Apple's compiler. We do this before executing the actions.
  1903. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1904. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1905. as_fn_set_status $ac_retval
  1906. } @%:@ ac_fn_c_try_link
  1907. @%:@ ac_fn_c_check_func LINENO FUNC VAR
  1908. @%:@ ----------------------------------
  1909. @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
  1910. ac_fn_c_check_func ()
  1911. {
  1912. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1914. $as_echo_n "checking for $2... " >&6; }
  1915. if eval \${$3+:} false; then :
  1916. $as_echo_n "(cached) " >&6
  1917. else
  1918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1919. /* end confdefs.h. */
  1920. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1921. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1922. #define $2 innocuous_$2
  1923. /* System header to define __stub macros and hopefully few prototypes,
  1924. which can conflict with char $2 (); below.
  1925. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1926. <limits.h> exists even on freestanding compilers. */
  1927. #ifdef __STDC__
  1928. # include <limits.h>
  1929. #else
  1930. # include <assert.h>
  1931. #endif
  1932. #undef $2
  1933. /* Override any GCC internal prototype to avoid an error.
  1934. Use char because int might match the return type of a GCC
  1935. builtin and then its argument prototype would still apply. */
  1936. #ifdef __cplusplus
  1937. extern "C"
  1938. #endif
  1939. char $2 ();
  1940. /* The GNU C library defines this for functions which it implements
  1941. to always fail with ENOSYS. Some functions are actually named
  1942. something starting with __ and the normal name is an alias. */
  1943. #if defined __stub_$2 || defined __stub___$2
  1944. choke me
  1945. #endif
  1946. int
  1947. main ()
  1948. {
  1949. return $2 ();
  1950. ;
  1951. return 0;
  1952. }
  1953. _ACEOF
  1954. if ac_fn_c_try_link "$LINENO"; then :
  1955. eval "$3=yes"
  1956. else
  1957. eval "$3=no"
  1958. fi
  1959. rm -f core conftest.err conftest.$ac_objext \
  1960. conftest$ac_exeext conftest.$ac_ext
  1961. fi
  1962. eval ac_res=\$$3
  1963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1964. $as_echo "$ac_res" >&6; }
  1965. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1966. } @%:@ ac_fn_c_check_func
  1967. @%:@ ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1968. @%:@ ---------------------------------------------
  1969. @%:@ Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1970. @%:@ accordingly.
  1971. ac_fn_c_check_decl ()
  1972. {
  1973. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1974. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1975. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1977. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1978. if eval \${$3+:} false; then :
  1979. $as_echo_n "(cached) " >&6
  1980. else
  1981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1982. /* end confdefs.h. */
  1983. $4
  1984. int
  1985. main ()
  1986. {
  1987. @%:@ifndef $as_decl_name
  1988. @%:@ifdef __cplusplus
  1989. (void) $as_decl_use;
  1990. @%:@else
  1991. (void) $as_decl_name;
  1992. @%:@endif
  1993. @%:@endif
  1994. ;
  1995. return 0;
  1996. }
  1997. _ACEOF
  1998. if ac_fn_c_try_compile "$LINENO"; then :
  1999. eval "$3=yes"
  2000. else
  2001. eval "$3=no"
  2002. fi
  2003. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2004. fi
  2005. eval ac_res=\$$3
  2006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2007. $as_echo "$ac_res" >&6; }
  2008. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2009. } @%:@ ac_fn_c_check_decl
  2010. @%:@ ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2011. @%:@ ----------------------------------------------------
  2012. @%:@ Tries to find if the field MEMBER exists in type AGGR, after including
  2013. @%:@ INCLUDES, setting cache variable VAR accordingly.
  2014. ac_fn_c_check_member ()
  2015. {
  2016. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2018. $as_echo_n "checking for $2.$3... " >&6; }
  2019. if eval \${$4+:} false; then :
  2020. $as_echo_n "(cached) " >&6
  2021. else
  2022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2023. /* end confdefs.h. */
  2024. $5
  2025. int
  2026. main ()
  2027. {
  2028. static $2 ac_aggr;
  2029. if (ac_aggr.$3)
  2030. return 0;
  2031. ;
  2032. return 0;
  2033. }
  2034. _ACEOF
  2035. if ac_fn_c_try_compile "$LINENO"; then :
  2036. eval "$4=yes"
  2037. else
  2038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2039. /* end confdefs.h. */
  2040. $5
  2041. int
  2042. main ()
  2043. {
  2044. static $2 ac_aggr;
  2045. if (sizeof ac_aggr.$3)
  2046. return 0;
  2047. ;
  2048. return 0;
  2049. }
  2050. _ACEOF
  2051. if ac_fn_c_try_compile "$LINENO"; then :
  2052. eval "$4=yes"
  2053. else
  2054. eval "$4=no"
  2055. fi
  2056. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2057. fi
  2058. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2059. fi
  2060. eval ac_res=\$$4
  2061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2062. $as_echo "$ac_res" >&6; }
  2063. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2064. } @%:@ ac_fn_c_check_member
  2065. @%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2066. @%:@ -------------------------------------------
  2067. @%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
  2068. @%:@ variable VAR accordingly.
  2069. ac_fn_c_check_type ()
  2070. {
  2071. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2073. $as_echo_n "checking for $2... " >&6; }
  2074. if eval \${$3+:} false; then :
  2075. $as_echo_n "(cached) " >&6
  2076. else
  2077. eval "$3=no"
  2078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2079. /* end confdefs.h. */
  2080. $4
  2081. int
  2082. main ()
  2083. {
  2084. if (sizeof ($2))
  2085. return 0;
  2086. ;
  2087. return 0;
  2088. }
  2089. _ACEOF
  2090. if ac_fn_c_try_compile "$LINENO"; then :
  2091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2092. /* end confdefs.h. */
  2093. $4
  2094. int
  2095. main ()
  2096. {
  2097. if (sizeof (($2)))
  2098. return 0;
  2099. ;
  2100. return 0;
  2101. }
  2102. _ACEOF
  2103. if ac_fn_c_try_compile "$LINENO"; then :
  2104. else
  2105. eval "$3=yes"
  2106. fi
  2107. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2108. fi
  2109. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2110. fi
  2111. eval ac_res=\$$3
  2112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2113. $as_echo "$ac_res" >&6; }
  2114. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2115. } @%:@ ac_fn_c_check_type
  2116. @%:@ ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2117. @%:@ --------------------------------------------
  2118. @%:@ Tries to find the compile-time value of EXPR in a program that includes
  2119. @%:@ INCLUDES, setting VAR accordingly. Returns whether the value could be
  2120. @%:@ computed
  2121. ac_fn_c_compute_int ()
  2122. {
  2123. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2124. if test "$cross_compiling" = yes; then
  2125. # Depending upon the size, compute the lo and hi bounds.
  2126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2127. /* end confdefs.h. */
  2128. $4
  2129. int
  2130. main ()
  2131. {
  2132. static int test_array @<:@1 - 2 * !(($2) >= 0)@:>@;
  2133. test_array @<:@0@:>@ = 0
  2134. ;
  2135. return 0;
  2136. }
  2137. _ACEOF
  2138. if ac_fn_c_try_compile "$LINENO"; then :
  2139. ac_lo=0 ac_mid=0
  2140. while :; do
  2141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2142. /* end confdefs.h. */
  2143. $4
  2144. int
  2145. main ()
  2146. {
  2147. static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
  2148. test_array @<:@0@:>@ = 0
  2149. ;
  2150. return 0;
  2151. }
  2152. _ACEOF
  2153. if ac_fn_c_try_compile "$LINENO"; then :
  2154. ac_hi=$ac_mid; break
  2155. else
  2156. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2157. if test $ac_lo -le $ac_mid; then
  2158. ac_lo= ac_hi=
  2159. break
  2160. fi
  2161. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2162. fi
  2163. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2164. done
  2165. else
  2166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2167. /* end confdefs.h. */
  2168. $4
  2169. int
  2170. main ()
  2171. {
  2172. static int test_array @<:@1 - 2 * !(($2) < 0)@:>@;
  2173. test_array @<:@0@:>@ = 0
  2174. ;
  2175. return 0;
  2176. }
  2177. _ACEOF
  2178. if ac_fn_c_try_compile "$LINENO"; then :
  2179. ac_hi=-1 ac_mid=-1
  2180. while :; do
  2181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2182. /* end confdefs.h. */
  2183. $4
  2184. int
  2185. main ()
  2186. {
  2187. static int test_array @<:@1 - 2 * !(($2) >= $ac_mid)@:>@;
  2188. test_array @<:@0@:>@ = 0
  2189. ;
  2190. return 0;
  2191. }
  2192. _ACEOF
  2193. if ac_fn_c_try_compile "$LINENO"; then :
  2194. ac_lo=$ac_mid; break
  2195. else
  2196. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2197. if test $ac_mid -le $ac_hi; then
  2198. ac_lo= ac_hi=
  2199. break
  2200. fi
  2201. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2202. fi
  2203. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2204. done
  2205. else
  2206. ac_lo= ac_hi=
  2207. fi
  2208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2209. fi
  2210. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2211. # Binary search between lo and hi bounds.
  2212. while test "x$ac_lo" != "x$ac_hi"; do
  2213. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2215. /* end confdefs.h. */
  2216. $4
  2217. int
  2218. main ()
  2219. {
  2220. static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
  2221. test_array @<:@0@:>@ = 0
  2222. ;
  2223. return 0;
  2224. }
  2225. _ACEOF
  2226. if ac_fn_c_try_compile "$LINENO"; then :
  2227. ac_hi=$ac_mid
  2228. else
  2229. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2230. fi
  2231. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2232. done
  2233. case $ac_lo in @%:@((
  2234. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2235. '') ac_retval=1 ;;
  2236. esac
  2237. else
  2238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2239. /* end confdefs.h. */
  2240. $4
  2241. static long int longval () { return $2; }
  2242. static unsigned long int ulongval () { return $2; }
  2243. @%:@include <stdio.h>
  2244. @%:@include <stdlib.h>
  2245. int
  2246. main ()
  2247. {
  2248. FILE *f = fopen ("conftest.val", "w");
  2249. if (! f)
  2250. return 1;
  2251. if (($2) < 0)
  2252. {
  2253. long int i = longval ();
  2254. if (i != ($2))
  2255. return 1;
  2256. fprintf (f, "%ld", i);
  2257. }
  2258. else
  2259. {
  2260. unsigned long int i = ulongval ();
  2261. if (i != ($2))
  2262. return 1;
  2263. fprintf (f, "%lu", i);
  2264. }
  2265. /* Do not output a trailing newline, as this causes \r\n confusion
  2266. on some platforms. */
  2267. return ferror (f) || fclose (f) != 0;
  2268. ;
  2269. return 0;
  2270. }
  2271. _ACEOF
  2272. if ac_fn_c_try_run "$LINENO"; then :
  2273. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2274. else
  2275. ac_retval=1
  2276. fi
  2277. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2278. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2279. rm -f conftest.val
  2280. fi
  2281. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2282. as_fn_set_status $ac_retval
  2283. } @%:@ ac_fn_c_compute_int
  2284. cat >config.log <<_ACEOF
  2285. This file contains any messages produced by compilers while
  2286. running configure, to aid debugging if configure makes a mistake.
  2287. It was created by cgminer $as_me 4.3.5-scrypt.2, which was
  2288. generated by GNU Autoconf 2.68. Invocation command line was
  2289. $ $0 $@
  2290. _ACEOF
  2291. exec 5>>config.log
  2292. {
  2293. cat <<_ASUNAME
  2294. ## --------- ##
  2295. ## Platform. ##
  2296. ## --------- ##
  2297. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2298. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2299. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2300. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2301. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2302. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2303. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2304. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2305. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2306. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2307. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2308. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2309. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2310. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2311. _ASUNAME
  2312. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2313. for as_dir in $PATH
  2314. do
  2315. IFS=$as_save_IFS
  2316. test -z "$as_dir" && as_dir=.
  2317. $as_echo "PATH: $as_dir"
  2318. done
  2319. IFS=$as_save_IFS
  2320. } >&5
  2321. cat >&5 <<_ACEOF
  2322. ## ----------- ##
  2323. ## Core tests. ##
  2324. ## ----------- ##
  2325. _ACEOF
  2326. # Keep a trace of the command line.
  2327. # Strip out --no-create and --no-recursion so they do not pile up.
  2328. # Strip out --silent because we don't want to record it for future runs.
  2329. # Also quote any args containing shell meta-characters.
  2330. # Make two passes to allow for proper duplicate-argument suppression.
  2331. ac_configure_args=
  2332. ac_configure_args0=
  2333. ac_configure_args1=
  2334. ac_must_keep_next=false
  2335. for ac_pass in 1 2
  2336. do
  2337. for ac_arg
  2338. do
  2339. case $ac_arg in
  2340. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2341. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2342. | -silent | --silent | --silen | --sile | --sil)
  2343. continue ;;
  2344. *\'*)
  2345. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2346. esac
  2347. case $ac_pass in
  2348. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2349. 2)
  2350. as_fn_append ac_configure_args1 " '$ac_arg'"
  2351. if test $ac_must_keep_next = true; then
  2352. ac_must_keep_next=false # Got value, back to normal.
  2353. else
  2354. case $ac_arg in
  2355. *=* | --config-cache | -C | -disable-* | --disable-* \
  2356. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2357. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2358. | -with-* | --with-* | -without-* | --without-* | --x)
  2359. case "$ac_configure_args0 " in
  2360. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2361. esac
  2362. ;;
  2363. -* ) ac_must_keep_next=true ;;
  2364. esac
  2365. fi
  2366. as_fn_append ac_configure_args " '$ac_arg'"
  2367. ;;
  2368. esac
  2369. done
  2370. done
  2371. { ac_configure_args0=; unset ac_configure_args0;}
  2372. { ac_configure_args1=; unset ac_configure_args1;}
  2373. # When interrupted or exit'd, cleanup temporary files, and complete
  2374. # config.log. We remove comments because anyway the quotes in there
  2375. # would cause problems or look ugly.
  2376. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2377. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2378. trap 'exit_status=$?
  2379. # Save into config.log some information that might help in debugging.
  2380. {
  2381. echo
  2382. $as_echo "## ---------------- ##
  2383. ## Cache variables. ##
  2384. ## ---------------- ##"
  2385. echo
  2386. # The following way of writing the cache mishandles newlines in values,
  2387. (
  2388. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2389. eval ac_val=\$$ac_var
  2390. case $ac_val in #(
  2391. *${as_nl}*)
  2392. case $ac_var in #(
  2393. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2394. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2395. esac
  2396. case $ac_var in #(
  2397. _ | IFS | as_nl) ;; #(
  2398. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2399. *) { eval $ac_var=; unset $ac_var;} ;;
  2400. esac ;;
  2401. esac
  2402. done
  2403. (set) 2>&1 |
  2404. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2405. *${as_nl}ac_space=\ *)
  2406. sed -n \
  2407. "s/'\''/'\''\\\\'\'''\''/g;
  2408. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2409. ;; #(
  2410. *)
  2411. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2412. ;;
  2413. esac |
  2414. sort
  2415. )
  2416. echo
  2417. $as_echo "## ----------------- ##
  2418. ## Output variables. ##
  2419. ## ----------------- ##"
  2420. echo
  2421. for ac_var in $ac_subst_vars
  2422. do
  2423. eval ac_val=\$$ac_var
  2424. case $ac_val in
  2425. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2426. esac
  2427. $as_echo "$ac_var='\''$ac_val'\''"
  2428. done | sort
  2429. echo
  2430. if test -n "$ac_subst_files"; then
  2431. $as_echo "## ------------------- ##
  2432. ## File substitutions. ##
  2433. ## ------------------- ##"
  2434. echo
  2435. for ac_var in $ac_subst_files
  2436. do
  2437. eval ac_val=\$$ac_var
  2438. case $ac_val in
  2439. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2440. esac
  2441. $as_echo "$ac_var='\''$ac_val'\''"
  2442. done | sort
  2443. echo
  2444. fi
  2445. if test -s confdefs.h; then
  2446. $as_echo "## ----------- ##
  2447. ## confdefs.h. ##
  2448. ## ----------- ##"
  2449. echo
  2450. cat confdefs.h
  2451. echo
  2452. fi
  2453. test "$ac_signal" != 0 &&
  2454. $as_echo "$as_me: caught signal $ac_signal"
  2455. $as_echo "$as_me: exit $exit_status"
  2456. } >&5
  2457. rm -f core *.core core.conftest.* &&
  2458. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2459. exit $exit_status
  2460. ' 0
  2461. for ac_signal in 1 2 13 15; do
  2462. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2463. done
  2464. ac_signal=0
  2465. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2466. rm -f -r conftest* confdefs.h
  2467. $as_echo "/* confdefs.h */" > confdefs.h
  2468. # Predefined preprocessor variables.
  2469. cat >>confdefs.h <<_ACEOF
  2470. @%:@define PACKAGE_NAME "$PACKAGE_NAME"
  2471. _ACEOF
  2472. cat >>confdefs.h <<_ACEOF
  2473. @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2474. _ACEOF
  2475. cat >>confdefs.h <<_ACEOF
  2476. @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
  2477. _ACEOF
  2478. cat >>confdefs.h <<_ACEOF
  2479. @%:@define PACKAGE_STRING "$PACKAGE_STRING"
  2480. _ACEOF
  2481. cat >>confdefs.h <<_ACEOF
  2482. @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2483. _ACEOF
  2484. cat >>confdefs.h <<_ACEOF
  2485. @%:@define PACKAGE_URL "$PACKAGE_URL"
  2486. _ACEOF
  2487. # Let the site file select an alternate cache file if it wants to.
  2488. # Prefer an explicitly selected file to automatically selected ones.
  2489. ac_site_file1=NONE
  2490. ac_site_file2=NONE
  2491. if test -n "$CONFIG_SITE"; then
  2492. # We do not want a PATH search for config.site.
  2493. case $CONFIG_SITE in @%:@((
  2494. -*) ac_site_file1=./$CONFIG_SITE;;
  2495. */*) ac_site_file1=$CONFIG_SITE;;
  2496. *) ac_site_file1=./$CONFIG_SITE;;
  2497. esac
  2498. elif test "x$prefix" != xNONE; then
  2499. ac_site_file1=$prefix/share/config.site
  2500. ac_site_file2=$prefix/etc/config.site
  2501. else
  2502. ac_site_file1=$ac_default_prefix/share/config.site
  2503. ac_site_file2=$ac_default_prefix/etc/config.site
  2504. fi
  2505. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2506. do
  2507. test "x$ac_site_file" = xNONE && continue
  2508. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2509. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2510. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2511. sed 's/^/| /' "$ac_site_file" >&5
  2512. . "$ac_site_file" \
  2513. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2514. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2515. as_fn_error $? "failed to load site script $ac_site_file
  2516. See \`config.log' for more details" "$LINENO" 5 ; }
  2517. fi
  2518. done
  2519. if test -r "$cache_file"; then
  2520. # Some versions of bash will fail to source /dev/null (special files
  2521. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2522. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2523. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2524. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2525. case $cache_file in
  2526. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2527. *) . "./$cache_file";;
  2528. esac
  2529. fi
  2530. else
  2531. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2532. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2533. >$cache_file
  2534. fi
  2535. gl_header_list="$gl_header_list sys/mman.h"
  2536. gl_func_list="$gl_func_list mprotect"
  2537. gl_func_list="$gl_func_list sigaction"
  2538. gl_func_list="$gl_func_list sigaltstack"
  2539. gl_func_list="$gl_func_list siginterrupt"
  2540. gl_header_list="$gl_header_list wchar.h"
  2541. gl_header_list="$gl_header_list stdint.h"
  2542. # Check that the precious variables saved in the cache have kept the same
  2543. # value.
  2544. ac_cache_corrupted=false
  2545. for ac_var in $ac_precious_vars; do
  2546. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2547. eval ac_new_set=\$ac_env_${ac_var}_set
  2548. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2549. eval ac_new_val=\$ac_env_${ac_var}_value
  2550. case $ac_old_set,$ac_new_set in
  2551. set,)
  2552. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2553. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2554. ac_cache_corrupted=: ;;
  2555. ,set)
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2557. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2558. ac_cache_corrupted=: ;;
  2559. ,);;
  2560. *)
  2561. if test "x$ac_old_val" != "x$ac_new_val"; then
  2562. # differences in whitespace do not lead to failure.
  2563. ac_old_val_w=`echo x $ac_old_val`
  2564. ac_new_val_w=`echo x $ac_new_val`
  2565. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2566. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2567. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2568. ac_cache_corrupted=:
  2569. else
  2570. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2571. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2572. eval $ac_var=\$ac_old_val
  2573. fi
  2574. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2575. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2576. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2577. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2578. fi;;
  2579. esac
  2580. # Pass precious variables to config.status.
  2581. if test "$ac_new_set" = set; then
  2582. case $ac_new_val in
  2583. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2584. *) ac_arg=$ac_var=$ac_new_val ;;
  2585. esac
  2586. case " $ac_configure_args " in
  2587. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2588. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2589. esac
  2590. fi
  2591. done
  2592. if $ac_cache_corrupted; then
  2593. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2594. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2595. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2596. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2597. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2598. fi
  2599. ## -------------------- ##
  2600. ## Main body of script. ##
  2601. ## -------------------- ##
  2602. ac_ext=c
  2603. ac_cpp='$CPP $CPPFLAGS'
  2604. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2605. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2606. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2607. ac_aux_dir=
  2608. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2609. if test -f "$ac_dir/install-sh"; then
  2610. ac_aux_dir=$ac_dir
  2611. ac_install_sh="$ac_aux_dir/install-sh -c"
  2612. break
  2613. elif test -f "$ac_dir/install.sh"; then
  2614. ac_aux_dir=$ac_dir
  2615. ac_install_sh="$ac_aux_dir/install.sh -c"
  2616. break
  2617. elif test -f "$ac_dir/shtool"; then
  2618. ac_aux_dir=$ac_dir
  2619. ac_install_sh="$ac_aux_dir/shtool install -c"
  2620. break
  2621. fi
  2622. done
  2623. if test -z "$ac_aux_dir"; then
  2624. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2625. fi
  2626. # These three variables are undocumented and unsupported,
  2627. # and are intended to be withdrawn in a future Autoconf release.
  2628. # They can cause serious problems if a builder's source tree is in a directory
  2629. # whose full name contains unusual characters.
  2630. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2631. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2632. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2633. # Make sure we can run config.sub.
  2634. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2635. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2637. $as_echo_n "checking build system type... " >&6; }
  2638. if ${ac_cv_build+:} false; then :
  2639. $as_echo_n "(cached) " >&6
  2640. else
  2641. ac_build_alias=$build_alias
  2642. test "x$ac_build_alias" = x &&
  2643. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2644. test "x$ac_build_alias" = x &&
  2645. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2646. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2647. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2648. fi
  2649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2650. $as_echo "$ac_cv_build" >&6; }
  2651. case $ac_cv_build in
  2652. *-*-*) ;;
  2653. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
  2654. esac
  2655. build=$ac_cv_build
  2656. ac_save_IFS=$IFS; IFS='-'
  2657. set x $ac_cv_build
  2658. shift
  2659. build_cpu=$1
  2660. build_vendor=$2
  2661. shift; shift
  2662. # Remember, the first character of IFS is used to create $*,
  2663. # except with old shells:
  2664. build_os=$*
  2665. IFS=$ac_save_IFS
  2666. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2668. $as_echo_n "checking host system type... " >&6; }
  2669. if ${ac_cv_host+:} false; then :
  2670. $as_echo_n "(cached) " >&6
  2671. else
  2672. if test "x$host_alias" = x; then
  2673. ac_cv_host=$ac_cv_build
  2674. else
  2675. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2676. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2677. fi
  2678. fi
  2679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2680. $as_echo "$ac_cv_host" >&6; }
  2681. case $ac_cv_host in
  2682. *-*-*) ;;
  2683. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
  2684. esac
  2685. host=$ac_cv_host
  2686. ac_save_IFS=$IFS; IFS='-'
  2687. set x $ac_cv_host
  2688. shift
  2689. host_cpu=$1
  2690. host_vendor=$2
  2691. shift; shift
  2692. # Remember, the first character of IFS is used to create $*,
  2693. # except with old shells:
  2694. host_os=$*
  2695. IFS=$ac_save_IFS
  2696. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2698. $as_echo_n "checking target system type... " >&6; }
  2699. if ${ac_cv_target+:} false; then :
  2700. $as_echo_n "(cached) " >&6
  2701. else
  2702. if test "x$target_alias" = x; then
  2703. ac_cv_target=$ac_cv_host
  2704. else
  2705. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2706. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2707. fi
  2708. fi
  2709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2710. $as_echo "$ac_cv_target" >&6; }
  2711. case $ac_cv_target in
  2712. *-*-*) ;;
  2713. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
  2714. esac
  2715. target=$ac_cv_target
  2716. ac_save_IFS=$IFS; IFS='-'
  2717. set x $ac_cv_target
  2718. shift
  2719. target_cpu=$1
  2720. target_vendor=$2
  2721. shift; shift
  2722. # Remember, the first character of IFS is used to create $*,
  2723. # except with old shells:
  2724. target_os=$*
  2725. IFS=$ac_save_IFS
  2726. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2727. # The aliases save the names the user supplied, while $host etc.
  2728. # will get canonicalized.
  2729. test -n "$target_alias" &&
  2730. test "$program_prefix$program_suffix$program_transform_name" = \
  2731. NONENONEs,x,x, &&
  2732. program_prefix=${target_alias}-
  2733. ac_config_headers="$ac_config_headers config.h"
  2734. am__api_version='1.11'
  2735. # Find a good install program. We prefer a C program (faster),
  2736. # so one script is as good as another. But avoid the broken or
  2737. # incompatible versions:
  2738. # SysV /etc/install, /usr/sbin/install
  2739. # SunOS /usr/etc/install
  2740. # IRIX /sbin/install
  2741. # AIX /bin/install
  2742. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2743. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2744. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2745. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2746. # OS/2's system install, which has a completely different semantic
  2747. # ./install, which can be erroneously created by make from ./install.sh.
  2748. # Reject install programs that cannot install multiple files.
  2749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2750. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2751. if test -z "$INSTALL"; then
  2752. if ${ac_cv_path_install+:} false; then :
  2753. $as_echo_n "(cached) " >&6
  2754. else
  2755. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2756. for as_dir in $PATH
  2757. do
  2758. IFS=$as_save_IFS
  2759. test -z "$as_dir" && as_dir=.
  2760. # Account for people who put trailing slashes in PATH elements.
  2761. case $as_dir/ in @%:@((
  2762. ./ | .// | /[cC]/* | \
  2763. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2764. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2765. /usr/ucb/* ) ;;
  2766. *)
  2767. # OSF1 and SCO ODT 3.0 have their own names for install.
  2768. # Don't use installbsd from OSF since it installs stuff as root
  2769. # by default.
  2770. for ac_prog in ginstall scoinst install; do
  2771. for ac_exec_ext in '' $ac_executable_extensions; do
  2772. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2773. if test $ac_prog = install &&
  2774. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2775. # AIX install. It has an incompatible calling convention.
  2776. :
  2777. elif test $ac_prog = install &&
  2778. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2779. # program-specific install script used by HP pwplus--don't use.
  2780. :
  2781. else
  2782. rm -rf conftest.one conftest.two conftest.dir
  2783. echo one > conftest.one
  2784. echo two > conftest.two
  2785. mkdir conftest.dir
  2786. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2787. test -s conftest.one && test -s conftest.two &&
  2788. test -s conftest.dir/conftest.one &&
  2789. test -s conftest.dir/conftest.two
  2790. then
  2791. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2792. break 3
  2793. fi
  2794. fi
  2795. fi
  2796. done
  2797. done
  2798. ;;
  2799. esac
  2800. done
  2801. IFS=$as_save_IFS
  2802. rm -rf conftest.one conftest.two conftest.dir
  2803. fi
  2804. if test "${ac_cv_path_install+set}" = set; then
  2805. INSTALL=$ac_cv_path_install
  2806. else
  2807. # As a last resort, use the slow shell script. Don't cache a
  2808. # value for INSTALL within a source directory, because that will
  2809. # break other packages using the cache if that directory is
  2810. # removed, or if the value is a relative name.
  2811. INSTALL=$ac_install_sh
  2812. fi
  2813. fi
  2814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2815. $as_echo "$INSTALL" >&6; }
  2816. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2817. # It thinks the first close brace ends the variable substitution.
  2818. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2819. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2820. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2822. $as_echo_n "checking whether build environment is sane... " >&6; }
  2823. # Just in case
  2824. sleep 1
  2825. echo timestamp > conftest.file
  2826. # Reject unsafe characters in $srcdir or the absolute working directory
  2827. # name. Accept space and tab only in the latter.
  2828. am_lf='
  2829. '
  2830. case `pwd` in
  2831. *[\\\"\#\$\&\'\`$am_lf]*)
  2832. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
  2833. esac
  2834. case $srcdir in
  2835. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2836. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
  2837. esac
  2838. # Do `set' in a subshell so we don't clobber the current shell's
  2839. # arguments. Must try -L first in case configure is actually a
  2840. # symlink; some systems play weird games with the mod time of symlinks
  2841. # (eg FreeBSD returns the mod time of the symlink's containing
  2842. # directory).
  2843. if (
  2844. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2845. if test "$*" = "X"; then
  2846. # -L didn't work.
  2847. set X `ls -t "$srcdir/configure" conftest.file`
  2848. fi
  2849. rm -f conftest.file
  2850. if test "$*" != "X $srcdir/configure conftest.file" \
  2851. && test "$*" != "X conftest.file $srcdir/configure"; then
  2852. # If neither matched, then we have a broken ls. This can happen
  2853. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2854. # broken ls alias from the environment. This has actually
  2855. # happened. Such a system could not be considered "sane".
  2856. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2857. alias in your environment" "$LINENO" 5
  2858. fi
  2859. test "$2" = conftest.file
  2860. )
  2861. then
  2862. # Ok.
  2863. :
  2864. else
  2865. as_fn_error $? "newly created file is older than distributed files!
  2866. Check your system clock" "$LINENO" 5
  2867. fi
  2868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2869. $as_echo "yes" >&6; }
  2870. test "$program_prefix" != NONE &&
  2871. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2872. # Use a double $ so make ignores it.
  2873. test "$program_suffix" != NONE &&
  2874. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2875. # Double any \ or $.
  2876. # By default was `s,x,x', remove it if useless.
  2877. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2878. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2879. # expand $ac_aux_dir to an absolute path
  2880. am_aux_dir=`cd $ac_aux_dir && pwd`
  2881. if test x"${MISSING+set}" != xset; then
  2882. case $am_aux_dir in
  2883. *\ * | *\ *)
  2884. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2885. *)
  2886. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2887. esac
  2888. fi
  2889. # Use eval to expand $SHELL
  2890. if eval "$MISSING --run true"; then
  2891. am_missing_run="$MISSING --run "
  2892. else
  2893. am_missing_run=
  2894. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2895. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2896. fi
  2897. if test x"${install_sh}" != xset; then
  2898. case $am_aux_dir in
  2899. *\ * | *\ *)
  2900. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2901. *)
  2902. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2903. esac
  2904. fi
  2905. # Installed binaries are usually stripped using `strip' when the user
  2906. # run `make install-strip'. However `strip' might not be the right
  2907. # tool to use in cross-compilation environments, therefore Automake
  2908. # will honor the `STRIP' environment variable to overrule this program.
  2909. if test "$cross_compiling" != no; then
  2910. if test -n "$ac_tool_prefix"; then
  2911. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2912. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2914. $as_echo_n "checking for $ac_word... " >&6; }
  2915. if ${ac_cv_prog_STRIP+:} false; then :
  2916. $as_echo_n "(cached) " >&6
  2917. else
  2918. if test -n "$STRIP"; then
  2919. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2920. else
  2921. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2922. for as_dir in $PATH
  2923. do
  2924. IFS=$as_save_IFS
  2925. test -z "$as_dir" && as_dir=.
  2926. for ac_exec_ext in '' $ac_executable_extensions; do
  2927. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2928. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2929. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2930. break 2
  2931. fi
  2932. done
  2933. done
  2934. IFS=$as_save_IFS
  2935. fi
  2936. fi
  2937. STRIP=$ac_cv_prog_STRIP
  2938. if test -n "$STRIP"; then
  2939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2940. $as_echo "$STRIP" >&6; }
  2941. else
  2942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2943. $as_echo "no" >&6; }
  2944. fi
  2945. fi
  2946. if test -z "$ac_cv_prog_STRIP"; then
  2947. ac_ct_STRIP=$STRIP
  2948. # Extract the first word of "strip", so it can be a program name with args.
  2949. set dummy strip; ac_word=$2
  2950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2951. $as_echo_n "checking for $ac_word... " >&6; }
  2952. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2953. $as_echo_n "(cached) " >&6
  2954. else
  2955. if test -n "$ac_ct_STRIP"; then
  2956. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2957. else
  2958. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2959. for as_dir in $PATH
  2960. do
  2961. IFS=$as_save_IFS
  2962. test -z "$as_dir" && as_dir=.
  2963. for ac_exec_ext in '' $ac_executable_extensions; do
  2964. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2965. ac_cv_prog_ac_ct_STRIP="strip"
  2966. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2967. break 2
  2968. fi
  2969. done
  2970. done
  2971. IFS=$as_save_IFS
  2972. fi
  2973. fi
  2974. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2975. if test -n "$ac_ct_STRIP"; then
  2976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2977. $as_echo "$ac_ct_STRIP" >&6; }
  2978. else
  2979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2980. $as_echo "no" >&6; }
  2981. fi
  2982. if test "x$ac_ct_STRIP" = x; then
  2983. STRIP=":"
  2984. else
  2985. case $cross_compiling:$ac_tool_warned in
  2986. yes:)
  2987. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2988. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2989. ac_tool_warned=yes ;;
  2990. esac
  2991. STRIP=$ac_ct_STRIP
  2992. fi
  2993. else
  2994. STRIP="$ac_cv_prog_STRIP"
  2995. fi
  2996. fi
  2997. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2999. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3000. if test -z "$MKDIR_P"; then
  3001. if ${ac_cv_path_mkdir+:} false; then :
  3002. $as_echo_n "(cached) " >&6
  3003. else
  3004. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3005. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3006. do
  3007. IFS=$as_save_IFS
  3008. test -z "$as_dir" && as_dir=.
  3009. for ac_prog in mkdir gmkdir; do
  3010. for ac_exec_ext in '' $ac_executable_extensions; do
  3011. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  3012. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3013. 'mkdir (GNU coreutils) '* | \
  3014. 'mkdir (coreutils) '* | \
  3015. 'mkdir (fileutils) '4.1*)
  3016. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3017. break 3;;
  3018. esac
  3019. done
  3020. done
  3021. done
  3022. IFS=$as_save_IFS
  3023. fi
  3024. test -d ./--version && rmdir ./--version
  3025. if test "${ac_cv_path_mkdir+set}" = set; then
  3026. MKDIR_P="$ac_cv_path_mkdir -p"
  3027. else
  3028. # As a last resort, use the slow shell script. Don't cache a
  3029. # value for MKDIR_P within a source directory, because that will
  3030. # break other packages using the cache if that directory is
  3031. # removed, or if the value is a relative name.
  3032. MKDIR_P="$ac_install_sh -d"
  3033. fi
  3034. fi
  3035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3036. $as_echo "$MKDIR_P" >&6; }
  3037. mkdir_p="$MKDIR_P"
  3038. case $mkdir_p in
  3039. [\\/$]* | ?:[\\/]*) ;;
  3040. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  3041. esac
  3042. for ac_prog in gawk mawk nawk awk
  3043. do
  3044. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3045. set dummy $ac_prog; ac_word=$2
  3046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3047. $as_echo_n "checking for $ac_word... " >&6; }
  3048. if ${ac_cv_prog_AWK+:} false; then :
  3049. $as_echo_n "(cached) " >&6
  3050. else
  3051. if test -n "$AWK"; then
  3052. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3053. else
  3054. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3055. for as_dir in $PATH
  3056. do
  3057. IFS=$as_save_IFS
  3058. test -z "$as_dir" && as_dir=.
  3059. for ac_exec_ext in '' $ac_executable_extensions; do
  3060. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3061. ac_cv_prog_AWK="$ac_prog"
  3062. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3063. break 2
  3064. fi
  3065. done
  3066. done
  3067. IFS=$as_save_IFS
  3068. fi
  3069. fi
  3070. AWK=$ac_cv_prog_AWK
  3071. if test -n "$AWK"; then
  3072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3073. $as_echo "$AWK" >&6; }
  3074. else
  3075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3076. $as_echo "no" >&6; }
  3077. fi
  3078. test -n "$AWK" && break
  3079. done
  3080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3081. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3082. set x ${MAKE-make}
  3083. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3084. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3085. $as_echo_n "(cached) " >&6
  3086. else
  3087. cat >conftest.make <<\_ACEOF
  3088. SHELL = /bin/sh
  3089. all:
  3090. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3091. _ACEOF
  3092. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3093. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3094. *@@@%%%=?*=@@@%%%*)
  3095. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3096. *)
  3097. eval ac_cv_prog_make_${ac_make}_set=no;;
  3098. esac
  3099. rm -f conftest.make
  3100. fi
  3101. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3103. $as_echo "yes" >&6; }
  3104. SET_MAKE=
  3105. else
  3106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3107. $as_echo "no" >&6; }
  3108. SET_MAKE="MAKE=${MAKE-make}"
  3109. fi
  3110. rm -rf .tst 2>/dev/null
  3111. mkdir .tst 2>/dev/null
  3112. if test -d .tst; then
  3113. am__leading_dot=.
  3114. else
  3115. am__leading_dot=_
  3116. fi
  3117. rmdir .tst 2>/dev/null
  3118. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3119. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3120. # is not polluted with repeated "-I."
  3121. am__isrc=' -I$(srcdir)'
  3122. # test to see if srcdir already configured
  3123. if test -f $srcdir/config.status; then
  3124. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3125. fi
  3126. fi
  3127. # test whether we have cygpath
  3128. if test -z "$CYGPATH_W"; then
  3129. if (cygpath --version) >/dev/null 2>/dev/null; then
  3130. CYGPATH_W='cygpath -w'
  3131. else
  3132. CYGPATH_W=echo
  3133. fi
  3134. fi
  3135. # Define the identity of the package.
  3136. PACKAGE='cgminer'
  3137. VERSION='4.3.5-scrypt.2'
  3138. cat >>confdefs.h <<_ACEOF
  3139. @%:@define PACKAGE "$PACKAGE"
  3140. _ACEOF
  3141. cat >>confdefs.h <<_ACEOF
  3142. @%:@define VERSION "$VERSION"
  3143. _ACEOF
  3144. # Some tools Automake needs.
  3145. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3146. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3147. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3148. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3149. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3150. # We need awk for the "check" target. The system "awk" is bad on
  3151. # some platforms.
  3152. # Always define AMTAR for backward compatibility.
  3153. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3154. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3155. @%:@ Check whether --enable-silent-rules was given.
  3156. if test "${enable_silent_rules+set}" = set; then :
  3157. enableval=$enable_silent_rules;
  3158. fi
  3159. case $enable_silent_rules in
  3160. yes) AM_DEFAULT_VERBOSITY=0;;
  3161. no) AM_DEFAULT_VERBOSITY=1;;
  3162. *) AM_DEFAULT_VERBOSITY=0;;
  3163. esac
  3164. AM_BACKSLASH='\'
  3165. DEPDIR="${am__leading_dot}deps"
  3166. ac_config_commands="$ac_config_commands depfiles"
  3167. am_make=${MAKE-make}
  3168. cat > confinc << 'END'
  3169. am__doit:
  3170. @echo this is the am__doit target
  3171. .PHONY: am__doit
  3172. END
  3173. # If we don't find an include directive, just comment out the code.
  3174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3175. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3176. am__include="#"
  3177. am__quote=
  3178. _am_result=none
  3179. # First try GNU make style include.
  3180. echo "include confinc" > confmf
  3181. # Ignore all kinds of additional output from `make'.
  3182. case `$am_make -s -f confmf 2> /dev/null` in #(
  3183. *the\ am__doit\ target*)
  3184. am__include=include
  3185. am__quote=
  3186. _am_result=GNU
  3187. ;;
  3188. esac
  3189. # Now try BSD make style include.
  3190. if test "$am__include" = "#"; then
  3191. echo '.include "confinc"' > confmf
  3192. case `$am_make -s -f confmf 2> /dev/null` in #(
  3193. *the\ am__doit\ target*)
  3194. am__include=.include
  3195. am__quote="\""
  3196. _am_result=BSD
  3197. ;;
  3198. esac
  3199. fi
  3200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3201. $as_echo "$_am_result" >&6; }
  3202. rm -f confinc confmf
  3203. @%:@ Check whether --enable-dependency-tracking was given.
  3204. if test "${enable_dependency_tracking+set}" = set; then :
  3205. enableval=$enable_dependency_tracking;
  3206. fi
  3207. if test "x$enable_dependency_tracking" != xno; then
  3208. am_depcomp="$ac_aux_dir/depcomp"
  3209. AMDEPBACKSLASH='\'
  3210. fi
  3211. if test "x$enable_dependency_tracking" != xno; then
  3212. AMDEP_TRUE=
  3213. AMDEP_FALSE='#'
  3214. else
  3215. AMDEP_TRUE='#'
  3216. AMDEP_FALSE=
  3217. fi
  3218. ac_ext=c
  3219. ac_cpp='$CPP $CPPFLAGS'
  3220. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3221. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3222. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3223. if test -n "$ac_tool_prefix"; then
  3224. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3225. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3227. $as_echo_n "checking for $ac_word... " >&6; }
  3228. if ${ac_cv_prog_CC+:} false; then :
  3229. $as_echo_n "(cached) " >&6
  3230. else
  3231. if test -n "$CC"; then
  3232. ac_cv_prog_CC="$CC" # Let the user override the test.
  3233. else
  3234. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3235. for as_dir in $PATH
  3236. do
  3237. IFS=$as_save_IFS
  3238. test -z "$as_dir" && as_dir=.
  3239. for ac_exec_ext in '' $ac_executable_extensions; do
  3240. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3241. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3242. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3243. break 2
  3244. fi
  3245. done
  3246. done
  3247. IFS=$as_save_IFS
  3248. fi
  3249. fi
  3250. CC=$ac_cv_prog_CC
  3251. if test -n "$CC"; then
  3252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3253. $as_echo "$CC" >&6; }
  3254. else
  3255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3256. $as_echo "no" >&6; }
  3257. fi
  3258. fi
  3259. if test -z "$ac_cv_prog_CC"; then
  3260. ac_ct_CC=$CC
  3261. # Extract the first word of "gcc", so it can be a program name with args.
  3262. set dummy gcc; ac_word=$2
  3263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3264. $as_echo_n "checking for $ac_word... " >&6; }
  3265. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3266. $as_echo_n "(cached) " >&6
  3267. else
  3268. if test -n "$ac_ct_CC"; then
  3269. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3270. else
  3271. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3272. for as_dir in $PATH
  3273. do
  3274. IFS=$as_save_IFS
  3275. test -z "$as_dir" && as_dir=.
  3276. for ac_exec_ext in '' $ac_executable_extensions; do
  3277. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3278. ac_cv_prog_ac_ct_CC="gcc"
  3279. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3280. break 2
  3281. fi
  3282. done
  3283. done
  3284. IFS=$as_save_IFS
  3285. fi
  3286. fi
  3287. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3288. if test -n "$ac_ct_CC"; then
  3289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3290. $as_echo "$ac_ct_CC" >&6; }
  3291. else
  3292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3293. $as_echo "no" >&6; }
  3294. fi
  3295. if test "x$ac_ct_CC" = x; then
  3296. CC=""
  3297. else
  3298. case $cross_compiling:$ac_tool_warned in
  3299. yes:)
  3300. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3301. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3302. ac_tool_warned=yes ;;
  3303. esac
  3304. CC=$ac_ct_CC
  3305. fi
  3306. else
  3307. CC="$ac_cv_prog_CC"
  3308. fi
  3309. if test -z "$CC"; then
  3310. if test -n "$ac_tool_prefix"; then
  3311. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3312. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3314. $as_echo_n "checking for $ac_word... " >&6; }
  3315. if ${ac_cv_prog_CC+:} false; then :
  3316. $as_echo_n "(cached) " >&6
  3317. else
  3318. if test -n "$CC"; then
  3319. ac_cv_prog_CC="$CC" # Let the user override the test.
  3320. else
  3321. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3322. for as_dir in $PATH
  3323. do
  3324. IFS=$as_save_IFS
  3325. test -z "$as_dir" && as_dir=.
  3326. for ac_exec_ext in '' $ac_executable_extensions; do
  3327. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3328. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3329. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3330. break 2
  3331. fi
  3332. done
  3333. done
  3334. IFS=$as_save_IFS
  3335. fi
  3336. fi
  3337. CC=$ac_cv_prog_CC
  3338. if test -n "$CC"; then
  3339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3340. $as_echo "$CC" >&6; }
  3341. else
  3342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3343. $as_echo "no" >&6; }
  3344. fi
  3345. fi
  3346. fi
  3347. if test -z "$CC"; then
  3348. # Extract the first word of "cc", so it can be a program name with args.
  3349. set dummy cc; ac_word=$2
  3350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3351. $as_echo_n "checking for $ac_word... " >&6; }
  3352. if ${ac_cv_prog_CC+:} false; then :
  3353. $as_echo_n "(cached) " >&6
  3354. else
  3355. if test -n "$CC"; then
  3356. ac_cv_prog_CC="$CC" # Let the user override the test.
  3357. else
  3358. ac_prog_rejected=no
  3359. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3360. for as_dir in $PATH
  3361. do
  3362. IFS=$as_save_IFS
  3363. test -z "$as_dir" && as_dir=.
  3364. for ac_exec_ext in '' $ac_executable_extensions; do
  3365. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3366. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3367. ac_prog_rejected=yes
  3368. continue
  3369. fi
  3370. ac_cv_prog_CC="cc"
  3371. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3372. break 2
  3373. fi
  3374. done
  3375. done
  3376. IFS=$as_save_IFS
  3377. if test $ac_prog_rejected = yes; then
  3378. # We found a bogon in the path, so make sure we never use it.
  3379. set dummy $ac_cv_prog_CC
  3380. shift
  3381. if test $@%:@ != 0; then
  3382. # We chose a different compiler from the bogus one.
  3383. # However, it has the same basename, so the bogon will be chosen
  3384. # first if we set CC to just the basename; use the full file name.
  3385. shift
  3386. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3387. fi
  3388. fi
  3389. fi
  3390. fi
  3391. CC=$ac_cv_prog_CC
  3392. if test -n "$CC"; then
  3393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3394. $as_echo "$CC" >&6; }
  3395. else
  3396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3397. $as_echo "no" >&6; }
  3398. fi
  3399. fi
  3400. if test -z "$CC"; then
  3401. if test -n "$ac_tool_prefix"; then
  3402. for ac_prog in cl.exe
  3403. do
  3404. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3405. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3407. $as_echo_n "checking for $ac_word... " >&6; }
  3408. if ${ac_cv_prog_CC+:} false; then :
  3409. $as_echo_n "(cached) " >&6
  3410. else
  3411. if test -n "$CC"; then
  3412. ac_cv_prog_CC="$CC" # Let the user override the test.
  3413. else
  3414. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3415. for as_dir in $PATH
  3416. do
  3417. IFS=$as_save_IFS
  3418. test -z "$as_dir" && as_dir=.
  3419. for ac_exec_ext in '' $ac_executable_extensions; do
  3420. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3421. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3422. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3423. break 2
  3424. fi
  3425. done
  3426. done
  3427. IFS=$as_save_IFS
  3428. fi
  3429. fi
  3430. CC=$ac_cv_prog_CC
  3431. if test -n "$CC"; then
  3432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3433. $as_echo "$CC" >&6; }
  3434. else
  3435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3436. $as_echo "no" >&6; }
  3437. fi
  3438. test -n "$CC" && break
  3439. done
  3440. fi
  3441. if test -z "$CC"; then
  3442. ac_ct_CC=$CC
  3443. for ac_prog in cl.exe
  3444. do
  3445. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3446. set dummy $ac_prog; ac_word=$2
  3447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3448. $as_echo_n "checking for $ac_word... " >&6; }
  3449. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3450. $as_echo_n "(cached) " >&6
  3451. else
  3452. if test -n "$ac_ct_CC"; then
  3453. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3454. else
  3455. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3456. for as_dir in $PATH
  3457. do
  3458. IFS=$as_save_IFS
  3459. test -z "$as_dir" && as_dir=.
  3460. for ac_exec_ext in '' $ac_executable_extensions; do
  3461. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3462. ac_cv_prog_ac_ct_CC="$ac_prog"
  3463. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3464. break 2
  3465. fi
  3466. done
  3467. done
  3468. IFS=$as_save_IFS
  3469. fi
  3470. fi
  3471. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3472. if test -n "$ac_ct_CC"; then
  3473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3474. $as_echo "$ac_ct_CC" >&6; }
  3475. else
  3476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3477. $as_echo "no" >&6; }
  3478. fi
  3479. test -n "$ac_ct_CC" && break
  3480. done
  3481. if test "x$ac_ct_CC" = x; then
  3482. CC=""
  3483. else
  3484. case $cross_compiling:$ac_tool_warned in
  3485. yes:)
  3486. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3487. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3488. ac_tool_warned=yes ;;
  3489. esac
  3490. CC=$ac_ct_CC
  3491. fi
  3492. fi
  3493. fi
  3494. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3495. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3496. as_fn_error $? "no acceptable C compiler found in \$PATH
  3497. See \`config.log' for more details" "$LINENO" 5 ; }
  3498. # Provide some information about the compiler.
  3499. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3500. set X $ac_compile
  3501. ac_compiler=$2
  3502. for ac_option in --version -v -V -qversion; do
  3503. { { ac_try="$ac_compiler $ac_option >&5"
  3504. case "(($ac_try" in
  3505. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3506. *) ac_try_echo=$ac_try;;
  3507. esac
  3508. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3509. $as_echo "$ac_try_echo"; } >&5
  3510. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3511. ac_status=$?
  3512. if test -s conftest.err; then
  3513. sed '10a\
  3514. ... rest of stderr output deleted ...
  3515. 10q' conftest.err >conftest.er1
  3516. cat conftest.er1 >&5
  3517. fi
  3518. rm -f conftest.er1 conftest.err
  3519. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3520. test $ac_status = 0; }
  3521. done
  3522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3523. /* end confdefs.h. */
  3524. int
  3525. main ()
  3526. {
  3527. ;
  3528. return 0;
  3529. }
  3530. _ACEOF
  3531. ac_clean_files_save=$ac_clean_files
  3532. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3533. # Try to create an executable without -o first, disregard a.out.
  3534. # It will help us diagnose broken compilers, and finding out an intuition
  3535. # of exeext.
  3536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3537. $as_echo_n "checking whether the C compiler works... " >&6; }
  3538. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3539. # The possible output files:
  3540. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3541. ac_rmfiles=
  3542. for ac_file in $ac_files
  3543. do
  3544. case $ac_file in
  3545. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3546. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3547. esac
  3548. done
  3549. rm -f $ac_rmfiles
  3550. if { { ac_try="$ac_link_default"
  3551. case "(($ac_try" in
  3552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3553. *) ac_try_echo=$ac_try;;
  3554. esac
  3555. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3556. $as_echo "$ac_try_echo"; } >&5
  3557. (eval "$ac_link_default") 2>&5
  3558. ac_status=$?
  3559. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3560. test $ac_status = 0; }; then :
  3561. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3562. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3563. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3564. # so that the user can short-circuit this test for compilers unknown to
  3565. # Autoconf.
  3566. for ac_file in $ac_files ''
  3567. do
  3568. test -f "$ac_file" || continue
  3569. case $ac_file in
  3570. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3571. ;;
  3572. [ab].out )
  3573. # We found the default executable, but exeext='' is most
  3574. # certainly right.
  3575. break;;
  3576. *.* )
  3577. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3578. then :; else
  3579. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3580. fi
  3581. # We set ac_cv_exeext here because the later test for it is not
  3582. # safe: cross compilers may not add the suffix if given an `-o'
  3583. # argument, so we may need to know it at that point already.
  3584. # Even if this section looks crufty: it has the advantage of
  3585. # actually working.
  3586. break;;
  3587. * )
  3588. break;;
  3589. esac
  3590. done
  3591. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3592. else
  3593. ac_file=''
  3594. fi
  3595. if test -z "$ac_file"; then :
  3596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3597. $as_echo "no" >&6; }
  3598. $as_echo "$as_me: failed program was:" >&5
  3599. sed 's/^/| /' conftest.$ac_ext >&5
  3600. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3601. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3602. as_fn_error 77 "C compiler cannot create executables
  3603. See \`config.log' for more details" "$LINENO" 5 ; }
  3604. else
  3605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3606. $as_echo "yes" >&6; }
  3607. fi
  3608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3609. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3611. $as_echo "$ac_file" >&6; }
  3612. ac_exeext=$ac_cv_exeext
  3613. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3614. ac_clean_files=$ac_clean_files_save
  3615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3616. $as_echo_n "checking for suffix of executables... " >&6; }
  3617. if { { ac_try="$ac_link"
  3618. case "(($ac_try" in
  3619. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3620. *) ac_try_echo=$ac_try;;
  3621. esac
  3622. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3623. $as_echo "$ac_try_echo"; } >&5
  3624. (eval "$ac_link") 2>&5
  3625. ac_status=$?
  3626. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3627. test $ac_status = 0; }; then :
  3628. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3629. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3630. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3631. # `rm'.
  3632. for ac_file in conftest.exe conftest conftest.*; do
  3633. test -f "$ac_file" || continue
  3634. case $ac_file in
  3635. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3636. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3637. break;;
  3638. * ) break;;
  3639. esac
  3640. done
  3641. else
  3642. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3643. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3644. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3645. See \`config.log' for more details" "$LINENO" 5 ; }
  3646. fi
  3647. rm -f conftest conftest$ac_cv_exeext
  3648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3649. $as_echo "$ac_cv_exeext" >&6; }
  3650. rm -f conftest.$ac_ext
  3651. EXEEXT=$ac_cv_exeext
  3652. ac_exeext=$EXEEXT
  3653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3654. /* end confdefs.h. */
  3655. @%:@include <stdio.h>
  3656. int
  3657. main ()
  3658. {
  3659. FILE *f = fopen ("conftest.out", "w");
  3660. return ferror (f) || fclose (f) != 0;
  3661. ;
  3662. return 0;
  3663. }
  3664. _ACEOF
  3665. ac_clean_files="$ac_clean_files conftest.out"
  3666. # Check that the compiler produces executables we can run. If not, either
  3667. # the compiler is broken, or we cross compile.
  3668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3669. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3670. if test "$cross_compiling" != yes; then
  3671. { { ac_try="$ac_link"
  3672. case "(($ac_try" in
  3673. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3674. *) ac_try_echo=$ac_try;;
  3675. esac
  3676. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3677. $as_echo "$ac_try_echo"; } >&5
  3678. (eval "$ac_link") 2>&5
  3679. ac_status=$?
  3680. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3681. test $ac_status = 0; }
  3682. if { ac_try='./conftest$ac_cv_exeext'
  3683. { { case "(($ac_try" in
  3684. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3685. *) ac_try_echo=$ac_try;;
  3686. esac
  3687. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3688. $as_echo "$ac_try_echo"; } >&5
  3689. (eval "$ac_try") 2>&5
  3690. ac_status=$?
  3691. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3692. test $ac_status = 0; }; }; then
  3693. cross_compiling=no
  3694. else
  3695. if test "$cross_compiling" = maybe; then
  3696. cross_compiling=yes
  3697. else
  3698. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3699. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3700. as_fn_error $? "cannot run C compiled programs.
  3701. If you meant to cross compile, use \`--host'.
  3702. See \`config.log' for more details" "$LINENO" 5 ; }
  3703. fi
  3704. fi
  3705. fi
  3706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3707. $as_echo "$cross_compiling" >&6; }
  3708. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3709. ac_clean_files=$ac_clean_files_save
  3710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3711. $as_echo_n "checking for suffix of object files... " >&6; }
  3712. if ${ac_cv_objext+:} false; then :
  3713. $as_echo_n "(cached) " >&6
  3714. else
  3715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3716. /* end confdefs.h. */
  3717. int
  3718. main ()
  3719. {
  3720. ;
  3721. return 0;
  3722. }
  3723. _ACEOF
  3724. rm -f conftest.o conftest.obj
  3725. if { { ac_try="$ac_compile"
  3726. case "(($ac_try" in
  3727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3728. *) ac_try_echo=$ac_try;;
  3729. esac
  3730. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3731. $as_echo "$ac_try_echo"; } >&5
  3732. (eval "$ac_compile") 2>&5
  3733. ac_status=$?
  3734. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3735. test $ac_status = 0; }; then :
  3736. for ac_file in conftest.o conftest.obj conftest.*; do
  3737. test -f "$ac_file" || continue;
  3738. case $ac_file in
  3739. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3740. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3741. break;;
  3742. esac
  3743. done
  3744. else
  3745. $as_echo "$as_me: failed program was:" >&5
  3746. sed 's/^/| /' conftest.$ac_ext >&5
  3747. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3748. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3749. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3750. See \`config.log' for more details" "$LINENO" 5 ; }
  3751. fi
  3752. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3753. fi
  3754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3755. $as_echo "$ac_cv_objext" >&6; }
  3756. OBJEXT=$ac_cv_objext
  3757. ac_objext=$OBJEXT
  3758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3759. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3760. if ${ac_cv_c_compiler_gnu+:} false; then :
  3761. $as_echo_n "(cached) " >&6
  3762. else
  3763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3764. /* end confdefs.h. */
  3765. int
  3766. main ()
  3767. {
  3768. #ifndef __GNUC__
  3769. choke me
  3770. #endif
  3771. ;
  3772. return 0;
  3773. }
  3774. _ACEOF
  3775. if ac_fn_c_try_compile "$LINENO"; then :
  3776. ac_compiler_gnu=yes
  3777. else
  3778. ac_compiler_gnu=no
  3779. fi
  3780. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3781. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3782. fi
  3783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3784. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3785. if test $ac_compiler_gnu = yes; then
  3786. GCC=yes
  3787. else
  3788. GCC=
  3789. fi
  3790. ac_test_CFLAGS=${CFLAGS+set}
  3791. ac_save_CFLAGS=$CFLAGS
  3792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3793. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3794. if ${ac_cv_prog_cc_g+:} false; then :
  3795. $as_echo_n "(cached) " >&6
  3796. else
  3797. ac_save_c_werror_flag=$ac_c_werror_flag
  3798. ac_c_werror_flag=yes
  3799. ac_cv_prog_cc_g=no
  3800. CFLAGS="-g"
  3801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3802. /* end confdefs.h. */
  3803. int
  3804. main ()
  3805. {
  3806. ;
  3807. return 0;
  3808. }
  3809. _ACEOF
  3810. if ac_fn_c_try_compile "$LINENO"; then :
  3811. ac_cv_prog_cc_g=yes
  3812. else
  3813. CFLAGS=""
  3814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3815. /* end confdefs.h. */
  3816. int
  3817. main ()
  3818. {
  3819. ;
  3820. return 0;
  3821. }
  3822. _ACEOF
  3823. if ac_fn_c_try_compile "$LINENO"; then :
  3824. else
  3825. ac_c_werror_flag=$ac_save_c_werror_flag
  3826. CFLAGS="-g"
  3827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3828. /* end confdefs.h. */
  3829. int
  3830. main ()
  3831. {
  3832. ;
  3833. return 0;
  3834. }
  3835. _ACEOF
  3836. if ac_fn_c_try_compile "$LINENO"; then :
  3837. ac_cv_prog_cc_g=yes
  3838. fi
  3839. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3840. fi
  3841. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3842. fi
  3843. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3844. ac_c_werror_flag=$ac_save_c_werror_flag
  3845. fi
  3846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3847. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3848. if test "$ac_test_CFLAGS" = set; then
  3849. CFLAGS=$ac_save_CFLAGS
  3850. elif test $ac_cv_prog_cc_g = yes; then
  3851. if test "$GCC" = yes; then
  3852. CFLAGS="-g -O2"
  3853. else
  3854. CFLAGS="-g"
  3855. fi
  3856. else
  3857. if test "$GCC" = yes; then
  3858. CFLAGS="-O2"
  3859. else
  3860. CFLAGS=
  3861. fi
  3862. fi
  3863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3864. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3865. if ${ac_cv_prog_cc_c89+:} false; then :
  3866. $as_echo_n "(cached) " >&6
  3867. else
  3868. ac_cv_prog_cc_c89=no
  3869. ac_save_CC=$CC
  3870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3871. /* end confdefs.h. */
  3872. #include <stdarg.h>
  3873. #include <stdio.h>
  3874. #include <sys/types.h>
  3875. #include <sys/stat.h>
  3876. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3877. struct buf { int x; };
  3878. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3879. static char *e (p, i)
  3880. char **p;
  3881. int i;
  3882. {
  3883. return p[i];
  3884. }
  3885. static char *f (char * (*g) (char **, int), char **p, ...)
  3886. {
  3887. char *s;
  3888. va_list v;
  3889. va_start (v,p);
  3890. s = g (p, va_arg (v,int));
  3891. va_end (v);
  3892. return s;
  3893. }
  3894. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3895. function prototypes and stuff, but not '\xHH' hex character constants.
  3896. These don't provoke an error unfortunately, instead are silently treated
  3897. as 'x'. The following induces an error, until -std is added to get
  3898. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3899. array size at least. It's necessary to write '\x00'==0 to get something
  3900. that's true only with -std. */
  3901. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3902. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3903. inside strings and character constants. */
  3904. #define FOO(x) 'x'
  3905. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3906. int test (int i, double x);
  3907. struct s1 {int (*f) (int a);};
  3908. struct s2 {int (*f) (double a);};
  3909. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3910. int argc;
  3911. char **argv;
  3912. int
  3913. main ()
  3914. {
  3915. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3916. ;
  3917. return 0;
  3918. }
  3919. _ACEOF
  3920. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3921. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3922. do
  3923. CC="$ac_save_CC $ac_arg"
  3924. if ac_fn_c_try_compile "$LINENO"; then :
  3925. ac_cv_prog_cc_c89=$ac_arg
  3926. fi
  3927. rm -f core conftest.err conftest.$ac_objext
  3928. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3929. done
  3930. rm -f conftest.$ac_ext
  3931. CC=$ac_save_CC
  3932. fi
  3933. # AC_CACHE_VAL
  3934. case "x$ac_cv_prog_cc_c89" in
  3935. x)
  3936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3937. $as_echo "none needed" >&6; } ;;
  3938. xno)
  3939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3940. $as_echo "unsupported" >&6; } ;;
  3941. *)
  3942. CC="$CC $ac_cv_prog_cc_c89"
  3943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3944. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3945. esac
  3946. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3947. fi
  3948. ac_ext=c
  3949. ac_cpp='$CPP $CPPFLAGS'
  3950. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3951. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3952. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3953. depcc="$CC" am_compiler_list=
  3954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3955. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3956. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3957. $as_echo_n "(cached) " >&6
  3958. else
  3959. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3960. # We make a subdir and do the tests there. Otherwise we can end up
  3961. # making bogus files that we don't know about and never remove. For
  3962. # instance it was reported that on HP-UX the gcc test will end up
  3963. # making a dummy file named `D' -- because `-MD' means `put the output
  3964. # in D'.
  3965. mkdir conftest.dir
  3966. # Copy depcomp to subdir because otherwise we won't find it if we're
  3967. # using a relative directory.
  3968. cp "$am_depcomp" conftest.dir
  3969. cd conftest.dir
  3970. # We will build objects and dependencies in a subdirectory because
  3971. # it helps to detect inapplicable dependency modes. For instance
  3972. # both Tru64's cc and ICC support -MD to output dependencies as a
  3973. # side effect of compilation, but ICC will put the dependencies in
  3974. # the current directory while Tru64 will put them in the object
  3975. # directory.
  3976. mkdir sub
  3977. am_cv_CC_dependencies_compiler_type=none
  3978. if test "$am_compiler_list" = ""; then
  3979. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3980. fi
  3981. am__universal=false
  3982. case " $depcc " in #(
  3983. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3984. esac
  3985. for depmode in $am_compiler_list; do
  3986. # Setup a source with many dependencies, because some compilers
  3987. # like to wrap large dependency lists on column 80 (with \), and
  3988. # we should not choose a depcomp mode which is confused by this.
  3989. #
  3990. # We need to recreate these files for each test, as the compiler may
  3991. # overwrite some of them when testing with obscure command lines.
  3992. # This happens at least with the AIX C compiler.
  3993. : > sub/conftest.c
  3994. for i in 1 2 3 4 5 6; do
  3995. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3996. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3997. # Solaris 8's {/usr,}/bin/sh.
  3998. touch sub/conftst$i.h
  3999. done
  4000. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4001. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4002. # mode. It turns out that the SunPro C++ compiler does not properly
  4003. # handle `-M -o', and we need to detect this. Also, some Intel
  4004. # versions had trouble with output in subdirs
  4005. am__obj=sub/conftest.${OBJEXT-o}
  4006. am__minus_obj="-o $am__obj"
  4007. case $depmode in
  4008. gcc)
  4009. # This depmode causes a compiler race in universal mode.
  4010. test "$am__universal" = false || continue
  4011. ;;
  4012. nosideeffect)
  4013. # after this tag, mechanisms are not by side-effect, so they'll
  4014. # only be used when explicitly requested
  4015. if test "x$enable_dependency_tracking" = xyes; then
  4016. continue
  4017. else
  4018. break
  4019. fi
  4020. ;;
  4021. msvisualcpp | msvcmsys)
  4022. # This compiler won't grok `-c -o', but also, the minuso test has
  4023. # not run yet. These depmodes are late enough in the game, and
  4024. # so weak that their functioning should not be impacted.
  4025. am__obj=conftest.${OBJEXT-o}
  4026. am__minus_obj=
  4027. ;;
  4028. none) break ;;
  4029. esac
  4030. if depmode=$depmode \
  4031. source=sub/conftest.c object=$am__obj \
  4032. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4033. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4034. >/dev/null 2>conftest.err &&
  4035. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4036. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4037. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4038. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4039. # icc doesn't choke on unknown options, it will just issue warnings
  4040. # or remarks (even with -Werror). So we grep stderr for any message
  4041. # that says an option was ignored or not supported.
  4042. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4043. # icc: Command line warning: ignoring option '-M'; no argument required
  4044. # The diagnosis changed in icc 8.0:
  4045. # icc: Command line remark: option '-MP' not supported
  4046. if (grep 'ignoring option' conftest.err ||
  4047. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4048. am_cv_CC_dependencies_compiler_type=$depmode
  4049. break
  4050. fi
  4051. fi
  4052. done
  4053. cd ..
  4054. rm -rf conftest.dir
  4055. else
  4056. am_cv_CC_dependencies_compiler_type=none
  4057. fi
  4058. fi
  4059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4060. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4061. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4062. if
  4063. test "x$enable_dependency_tracking" != xno \
  4064. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4065. am__fastdepCC_TRUE=
  4066. am__fastdepCC_FALSE='#'
  4067. else
  4068. am__fastdepCC_TRUE='#'
  4069. am__fastdepCC_FALSE=
  4070. fi
  4071. ac_ext=c
  4072. ac_cpp='$CPP $CPPFLAGS'
  4073. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4074. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4075. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4077. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4078. # On Suns, sometimes $CPP names a directory.
  4079. if test -n "$CPP" && test -d "$CPP"; then
  4080. CPP=
  4081. fi
  4082. if test -z "$CPP"; then
  4083. if ${ac_cv_prog_CPP+:} false; then :
  4084. $as_echo_n "(cached) " >&6
  4085. else
  4086. # Double quotes because CPP needs to be expanded
  4087. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4088. do
  4089. ac_preproc_ok=false
  4090. for ac_c_preproc_warn_flag in '' yes
  4091. do
  4092. # Use a header file that comes with gcc, so configuring glibc
  4093. # with a fresh cross-compiler works.
  4094. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4095. # <limits.h> exists even on freestanding compilers.
  4096. # On the NeXT, cc -E runs the code through the compiler's parser,
  4097. # not just through cpp. "Syntax error" is here to catch this case.
  4098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4099. /* end confdefs.h. */
  4100. @%:@ifdef __STDC__
  4101. @%:@ include <limits.h>
  4102. @%:@else
  4103. @%:@ include <assert.h>
  4104. @%:@endif
  4105. Syntax error
  4106. _ACEOF
  4107. if ac_fn_c_try_cpp "$LINENO"; then :
  4108. else
  4109. # Broken: fails on valid input.
  4110. continue
  4111. fi
  4112. rm -f conftest.err conftest.i conftest.$ac_ext
  4113. # OK, works on sane cases. Now check whether nonexistent headers
  4114. # can be detected and how.
  4115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4116. /* end confdefs.h. */
  4117. @%:@include <ac_nonexistent.h>
  4118. _ACEOF
  4119. if ac_fn_c_try_cpp "$LINENO"; then :
  4120. # Broken: success on invalid input.
  4121. continue
  4122. else
  4123. # Passes both tests.
  4124. ac_preproc_ok=:
  4125. break
  4126. fi
  4127. rm -f conftest.err conftest.i conftest.$ac_ext
  4128. done
  4129. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4130. rm -f conftest.i conftest.err conftest.$ac_ext
  4131. if $ac_preproc_ok; then :
  4132. break
  4133. fi
  4134. done
  4135. ac_cv_prog_CPP=$CPP
  4136. fi
  4137. CPP=$ac_cv_prog_CPP
  4138. else
  4139. ac_cv_prog_CPP=$CPP
  4140. fi
  4141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4142. $as_echo "$CPP" >&6; }
  4143. ac_preproc_ok=false
  4144. for ac_c_preproc_warn_flag in '' yes
  4145. do
  4146. # Use a header file that comes with gcc, so configuring glibc
  4147. # with a fresh cross-compiler works.
  4148. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4149. # <limits.h> exists even on freestanding compilers.
  4150. # On the NeXT, cc -E runs the code through the compiler's parser,
  4151. # not just through cpp. "Syntax error" is here to catch this case.
  4152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4153. /* end confdefs.h. */
  4154. @%:@ifdef __STDC__
  4155. @%:@ include <limits.h>
  4156. @%:@else
  4157. @%:@ include <assert.h>
  4158. @%:@endif
  4159. Syntax error
  4160. _ACEOF
  4161. if ac_fn_c_try_cpp "$LINENO"; then :
  4162. else
  4163. # Broken: fails on valid input.
  4164. continue
  4165. fi
  4166. rm -f conftest.err conftest.i conftest.$ac_ext
  4167. # OK, works on sane cases. Now check whether nonexistent headers
  4168. # can be detected and how.
  4169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4170. /* end confdefs.h. */
  4171. @%:@include <ac_nonexistent.h>
  4172. _ACEOF
  4173. if ac_fn_c_try_cpp "$LINENO"; then :
  4174. # Broken: success on invalid input.
  4175. continue
  4176. else
  4177. # Passes both tests.
  4178. ac_preproc_ok=:
  4179. break
  4180. fi
  4181. rm -f conftest.err conftest.i conftest.$ac_ext
  4182. done
  4183. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4184. rm -f conftest.i conftest.err conftest.$ac_ext
  4185. if $ac_preproc_ok; then :
  4186. else
  4187. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4188. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4189. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4190. See \`config.log' for more details" "$LINENO" 5 ; }
  4191. fi
  4192. ac_ext=c
  4193. ac_cpp='$CPP $CPPFLAGS'
  4194. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4195. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4196. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4198. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4199. if ${ac_cv_path_GREP+:} false; then :
  4200. $as_echo_n "(cached) " >&6
  4201. else
  4202. if test -z "$GREP"; then
  4203. ac_path_GREP_found=false
  4204. # Loop through the user's path and test for each of PROGNAME-LIST
  4205. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4206. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4207. do
  4208. IFS=$as_save_IFS
  4209. test -z "$as_dir" && as_dir=.
  4210. for ac_prog in grep ggrep; do
  4211. for ac_exec_ext in '' $ac_executable_extensions; do
  4212. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4213. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4214. # Check for GNU ac_path_GREP and select it if it is found.
  4215. # Check for GNU $ac_path_GREP
  4216. case `"$ac_path_GREP" --version 2>&1` in
  4217. *GNU*)
  4218. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4219. *)
  4220. ac_count=0
  4221. $as_echo_n 0123456789 >"conftest.in"
  4222. while :
  4223. do
  4224. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4225. mv "conftest.tmp" "conftest.in"
  4226. cp "conftest.in" "conftest.nl"
  4227. $as_echo 'GREP' >> "conftest.nl"
  4228. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4229. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4230. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4231. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4232. # Best one so far, save it but keep looking for a better one
  4233. ac_cv_path_GREP="$ac_path_GREP"
  4234. ac_path_GREP_max=$ac_count
  4235. fi
  4236. # 10*(2^10) chars as input seems more than enough
  4237. test $ac_count -gt 10 && break
  4238. done
  4239. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4240. esac
  4241. $ac_path_GREP_found && break 3
  4242. done
  4243. done
  4244. done
  4245. IFS=$as_save_IFS
  4246. if test -z "$ac_cv_path_GREP"; then
  4247. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4248. fi
  4249. else
  4250. ac_cv_path_GREP=$GREP
  4251. fi
  4252. fi
  4253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4254. $as_echo "$ac_cv_path_GREP" >&6; }
  4255. GREP="$ac_cv_path_GREP"
  4256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4257. $as_echo_n "checking for egrep... " >&6; }
  4258. if ${ac_cv_path_EGREP+:} false; then :
  4259. $as_echo_n "(cached) " >&6
  4260. else
  4261. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4262. then ac_cv_path_EGREP="$GREP -E"
  4263. else
  4264. if test -z "$EGREP"; then
  4265. ac_path_EGREP_found=false
  4266. # Loop through the user's path and test for each of PROGNAME-LIST
  4267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4268. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4269. do
  4270. IFS=$as_save_IFS
  4271. test -z "$as_dir" && as_dir=.
  4272. for ac_prog in egrep; do
  4273. for ac_exec_ext in '' $ac_executable_extensions; do
  4274. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4275. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4276. # Check for GNU ac_path_EGREP and select it if it is found.
  4277. # Check for GNU $ac_path_EGREP
  4278. case `"$ac_path_EGREP" --version 2>&1` in
  4279. *GNU*)
  4280. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4281. *)
  4282. ac_count=0
  4283. $as_echo_n 0123456789 >"conftest.in"
  4284. while :
  4285. do
  4286. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4287. mv "conftest.tmp" "conftest.in"
  4288. cp "conftest.in" "conftest.nl"
  4289. $as_echo 'EGREP' >> "conftest.nl"
  4290. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4291. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4292. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4293. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4294. # Best one so far, save it but keep looking for a better one
  4295. ac_cv_path_EGREP="$ac_path_EGREP"
  4296. ac_path_EGREP_max=$ac_count
  4297. fi
  4298. # 10*(2^10) chars as input seems more than enough
  4299. test $ac_count -gt 10 && break
  4300. done
  4301. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4302. esac
  4303. $ac_path_EGREP_found && break 3
  4304. done
  4305. done
  4306. done
  4307. IFS=$as_save_IFS
  4308. if test -z "$ac_cv_path_EGREP"; then
  4309. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4310. fi
  4311. else
  4312. ac_cv_path_EGREP=$EGREP
  4313. fi
  4314. fi
  4315. fi
  4316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4317. $as_echo "$ac_cv_path_EGREP" >&6; }
  4318. EGREP="$ac_cv_path_EGREP"
  4319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4320. $as_echo_n "checking for ANSI C header files... " >&6; }
  4321. if ${ac_cv_header_stdc+:} false; then :
  4322. $as_echo_n "(cached) " >&6
  4323. else
  4324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4325. /* end confdefs.h. */
  4326. #include <stdlib.h>
  4327. #include <stdarg.h>
  4328. #include <string.h>
  4329. #include <float.h>
  4330. int
  4331. main ()
  4332. {
  4333. ;
  4334. return 0;
  4335. }
  4336. _ACEOF
  4337. if ac_fn_c_try_compile "$LINENO"; then :
  4338. ac_cv_header_stdc=yes
  4339. else
  4340. ac_cv_header_stdc=no
  4341. fi
  4342. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4343. if test $ac_cv_header_stdc = yes; then
  4344. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4346. /* end confdefs.h. */
  4347. #include <string.h>
  4348. _ACEOF
  4349. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4350. $EGREP "memchr" >/dev/null 2>&1; then :
  4351. else
  4352. ac_cv_header_stdc=no
  4353. fi
  4354. rm -f conftest*
  4355. fi
  4356. if test $ac_cv_header_stdc = yes; then
  4357. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4359. /* end confdefs.h. */
  4360. #include <stdlib.h>
  4361. _ACEOF
  4362. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4363. $EGREP "free" >/dev/null 2>&1; then :
  4364. else
  4365. ac_cv_header_stdc=no
  4366. fi
  4367. rm -f conftest*
  4368. fi
  4369. if test $ac_cv_header_stdc = yes; then
  4370. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4371. if test "$cross_compiling" = yes; then :
  4372. :
  4373. else
  4374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4375. /* end confdefs.h. */
  4376. #include <ctype.h>
  4377. #include <stdlib.h>
  4378. #if ((' ' & 0x0FF) == 0x020)
  4379. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4380. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4381. #else
  4382. # define ISLOWER(c) \
  4383. (('a' <= (c) && (c) <= 'i') \
  4384. || ('j' <= (c) && (c) <= 'r') \
  4385. || ('s' <= (c) && (c) <= 'z'))
  4386. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4387. #endif
  4388. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4389. int
  4390. main ()
  4391. {
  4392. int i;
  4393. for (i = 0; i < 256; i++)
  4394. if (XOR (islower (i), ISLOWER (i))
  4395. || toupper (i) != TOUPPER (i))
  4396. return 2;
  4397. return 0;
  4398. }
  4399. _ACEOF
  4400. if ac_fn_c_try_run "$LINENO"; then :
  4401. else
  4402. ac_cv_header_stdc=no
  4403. fi
  4404. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4405. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4406. fi
  4407. fi
  4408. fi
  4409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4410. $as_echo "$ac_cv_header_stdc" >&6; }
  4411. if test $ac_cv_header_stdc = yes; then
  4412. $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
  4413. fi
  4414. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4415. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4416. inttypes.h stdint.h unistd.h
  4417. do :
  4418. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4419. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4420. "
  4421. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4422. cat >>confdefs.h <<_ACEOF
  4423. @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4424. _ACEOF
  4425. fi
  4426. done
  4427. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4428. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4429. MINIX=yes
  4430. else
  4431. MINIX=
  4432. fi
  4433. if test "$MINIX" = yes; then
  4434. $as_echo "@%:@define _POSIX_SOURCE 1" >>confdefs.h
  4435. $as_echo "@%:@define _POSIX_1_SOURCE 2" >>confdefs.h
  4436. $as_echo "@%:@define _MINIX 1" >>confdefs.h
  4437. fi
  4438. case "$host_os" in
  4439. hpux*)
  4440. $as_echo "@%:@define _XOPEN_SOURCE 500" >>confdefs.h
  4441. ;;
  4442. esac
  4443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4444. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4445. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4446. $as_echo_n "(cached) " >&6
  4447. else
  4448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4449. /* end confdefs.h. */
  4450. # define __EXTENSIONS__ 1
  4451. $ac_includes_default
  4452. int
  4453. main ()
  4454. {
  4455. ;
  4456. return 0;
  4457. }
  4458. _ACEOF
  4459. if ac_fn_c_try_compile "$LINENO"; then :
  4460. ac_cv_safe_to_define___extensions__=yes
  4461. else
  4462. ac_cv_safe_to_define___extensions__=no
  4463. fi
  4464. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4465. fi
  4466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4467. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4468. test $ac_cv_safe_to_define___extensions__ = yes &&
  4469. $as_echo "@%:@define __EXTENSIONS__ 1" >>confdefs.h
  4470. $as_echo "@%:@define _ALL_SOURCE 1" >>confdefs.h
  4471. $as_echo "@%:@define _GNU_SOURCE 1" >>confdefs.h
  4472. $as_echo "@%:@define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4473. $as_echo "@%:@define _TANDEM_SOURCE 1" >>confdefs.h
  4474. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  4475. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  4476. cat >>confdefs.h <<_ACEOF
  4477. @%:@define CGMINER_MAJOR_VERSION 4
  4478. _ACEOF
  4479. cat >>confdefs.h <<_ACEOF
  4480. @%:@define CGMINER_MINOR_VERSION 3
  4481. _ACEOF
  4482. cat >>confdefs.h <<_ACEOF
  4483. @%:@define CGMINER_MINOR_SUBVERSION 5
  4484. _ACEOF
  4485. version_info="7:5:3"
  4486. release_info=""
  4487. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  4488. ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
  4489. VMAJ=4
  4490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  4491. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  4492. @%:@ Check whether --enable-maintainer-mode was given.
  4493. if test "${enable_maintainer_mode+set}" = set; then :
  4494. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  4495. else
  4496. USE_MAINTAINER_MODE=no
  4497. fi
  4498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  4499. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  4500. if test $USE_MAINTAINER_MODE = yes; then
  4501. MAINTAINER_MODE_TRUE=
  4502. MAINTAINER_MODE_FALSE='#'
  4503. else
  4504. MAINTAINER_MODE_TRUE='#'
  4505. MAINTAINER_MODE_FALSE=
  4506. fi
  4507. MAINT=$MAINTAINER_MODE_TRUE
  4508. ac_ext=c
  4509. ac_cpp='$CPP $CPPFLAGS'
  4510. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4511. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4512. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4513. if test -n "$ac_tool_prefix"; then
  4514. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4515. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4517. $as_echo_n "checking for $ac_word... " >&6; }
  4518. if ${ac_cv_prog_CC+:} false; then :
  4519. $as_echo_n "(cached) " >&6
  4520. else
  4521. if test -n "$CC"; then
  4522. ac_cv_prog_CC="$CC" # Let the user override the test.
  4523. else
  4524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4525. for as_dir in $PATH
  4526. do
  4527. IFS=$as_save_IFS
  4528. test -z "$as_dir" && as_dir=.
  4529. for ac_exec_ext in '' $ac_executable_extensions; do
  4530. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4531. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4532. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4533. break 2
  4534. fi
  4535. done
  4536. done
  4537. IFS=$as_save_IFS
  4538. fi
  4539. fi
  4540. CC=$ac_cv_prog_CC
  4541. if test -n "$CC"; then
  4542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4543. $as_echo "$CC" >&6; }
  4544. else
  4545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4546. $as_echo "no" >&6; }
  4547. fi
  4548. fi
  4549. if test -z "$ac_cv_prog_CC"; then
  4550. ac_ct_CC=$CC
  4551. # Extract the first word of "gcc", so it can be a program name with args.
  4552. set dummy gcc; ac_word=$2
  4553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4554. $as_echo_n "checking for $ac_word... " >&6; }
  4555. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4556. $as_echo_n "(cached) " >&6
  4557. else
  4558. if test -n "$ac_ct_CC"; then
  4559. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4560. else
  4561. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4562. for as_dir in $PATH
  4563. do
  4564. IFS=$as_save_IFS
  4565. test -z "$as_dir" && as_dir=.
  4566. for ac_exec_ext in '' $ac_executable_extensions; do
  4567. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4568. ac_cv_prog_ac_ct_CC="gcc"
  4569. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4570. break 2
  4571. fi
  4572. done
  4573. done
  4574. IFS=$as_save_IFS
  4575. fi
  4576. fi
  4577. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4578. if test -n "$ac_ct_CC"; then
  4579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4580. $as_echo "$ac_ct_CC" >&6; }
  4581. else
  4582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4583. $as_echo "no" >&6; }
  4584. fi
  4585. if test "x$ac_ct_CC" = x; then
  4586. CC=""
  4587. else
  4588. case $cross_compiling:$ac_tool_warned in
  4589. yes:)
  4590. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4591. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4592. ac_tool_warned=yes ;;
  4593. esac
  4594. CC=$ac_ct_CC
  4595. fi
  4596. else
  4597. CC="$ac_cv_prog_CC"
  4598. fi
  4599. if test -z "$CC"; then
  4600. if test -n "$ac_tool_prefix"; then
  4601. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4602. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4604. $as_echo_n "checking for $ac_word... " >&6; }
  4605. if ${ac_cv_prog_CC+:} false; then :
  4606. $as_echo_n "(cached) " >&6
  4607. else
  4608. if test -n "$CC"; then
  4609. ac_cv_prog_CC="$CC" # Let the user override the test.
  4610. else
  4611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4612. for as_dir in $PATH
  4613. do
  4614. IFS=$as_save_IFS
  4615. test -z "$as_dir" && as_dir=.
  4616. for ac_exec_ext in '' $ac_executable_extensions; do
  4617. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4618. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4619. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4620. break 2
  4621. fi
  4622. done
  4623. done
  4624. IFS=$as_save_IFS
  4625. fi
  4626. fi
  4627. CC=$ac_cv_prog_CC
  4628. if test -n "$CC"; then
  4629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4630. $as_echo "$CC" >&6; }
  4631. else
  4632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4633. $as_echo "no" >&6; }
  4634. fi
  4635. fi
  4636. fi
  4637. if test -z "$CC"; then
  4638. # Extract the first word of "cc", so it can be a program name with args.
  4639. set dummy cc; ac_word=$2
  4640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4641. $as_echo_n "checking for $ac_word... " >&6; }
  4642. if ${ac_cv_prog_CC+:} false; then :
  4643. $as_echo_n "(cached) " >&6
  4644. else
  4645. if test -n "$CC"; then
  4646. ac_cv_prog_CC="$CC" # Let the user override the test.
  4647. else
  4648. ac_prog_rejected=no
  4649. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4650. for as_dir in $PATH
  4651. do
  4652. IFS=$as_save_IFS
  4653. test -z "$as_dir" && as_dir=.
  4654. for ac_exec_ext in '' $ac_executable_extensions; do
  4655. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4656. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4657. ac_prog_rejected=yes
  4658. continue
  4659. fi
  4660. ac_cv_prog_CC="cc"
  4661. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4662. break 2
  4663. fi
  4664. done
  4665. done
  4666. IFS=$as_save_IFS
  4667. if test $ac_prog_rejected = yes; then
  4668. # We found a bogon in the path, so make sure we never use it.
  4669. set dummy $ac_cv_prog_CC
  4670. shift
  4671. if test $@%:@ != 0; then
  4672. # We chose a different compiler from the bogus one.
  4673. # However, it has the same basename, so the bogon will be chosen
  4674. # first if we set CC to just the basename; use the full file name.
  4675. shift
  4676. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4677. fi
  4678. fi
  4679. fi
  4680. fi
  4681. CC=$ac_cv_prog_CC
  4682. if test -n "$CC"; then
  4683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4684. $as_echo "$CC" >&6; }
  4685. else
  4686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4687. $as_echo "no" >&6; }
  4688. fi
  4689. fi
  4690. if test -z "$CC"; then
  4691. if test -n "$ac_tool_prefix"; then
  4692. for ac_prog in cl.exe
  4693. do
  4694. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4695. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4697. $as_echo_n "checking for $ac_word... " >&6; }
  4698. if ${ac_cv_prog_CC+:} false; then :
  4699. $as_echo_n "(cached) " >&6
  4700. else
  4701. if test -n "$CC"; then
  4702. ac_cv_prog_CC="$CC" # Let the user override the test.
  4703. else
  4704. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4705. for as_dir in $PATH
  4706. do
  4707. IFS=$as_save_IFS
  4708. test -z "$as_dir" && as_dir=.
  4709. for ac_exec_ext in '' $ac_executable_extensions; do
  4710. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4711. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4712. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4713. break 2
  4714. fi
  4715. done
  4716. done
  4717. IFS=$as_save_IFS
  4718. fi
  4719. fi
  4720. CC=$ac_cv_prog_CC
  4721. if test -n "$CC"; then
  4722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4723. $as_echo "$CC" >&6; }
  4724. else
  4725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4726. $as_echo "no" >&6; }
  4727. fi
  4728. test -n "$CC" && break
  4729. done
  4730. fi
  4731. if test -z "$CC"; then
  4732. ac_ct_CC=$CC
  4733. for ac_prog in cl.exe
  4734. do
  4735. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4736. set dummy $ac_prog; ac_word=$2
  4737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4738. $as_echo_n "checking for $ac_word... " >&6; }
  4739. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4740. $as_echo_n "(cached) " >&6
  4741. else
  4742. if test -n "$ac_ct_CC"; then
  4743. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4744. else
  4745. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4746. for as_dir in $PATH
  4747. do
  4748. IFS=$as_save_IFS
  4749. test -z "$as_dir" && as_dir=.
  4750. for ac_exec_ext in '' $ac_executable_extensions; do
  4751. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4752. ac_cv_prog_ac_ct_CC="$ac_prog"
  4753. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4754. break 2
  4755. fi
  4756. done
  4757. done
  4758. IFS=$as_save_IFS
  4759. fi
  4760. fi
  4761. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4762. if test -n "$ac_ct_CC"; then
  4763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4764. $as_echo "$ac_ct_CC" >&6; }
  4765. else
  4766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4767. $as_echo "no" >&6; }
  4768. fi
  4769. test -n "$ac_ct_CC" && break
  4770. done
  4771. if test "x$ac_ct_CC" = x; then
  4772. CC=""
  4773. else
  4774. case $cross_compiling:$ac_tool_warned in
  4775. yes:)
  4776. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4777. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4778. ac_tool_warned=yes ;;
  4779. esac
  4780. CC=$ac_ct_CC
  4781. fi
  4782. fi
  4783. fi
  4784. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4785. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4786. as_fn_error $? "no acceptable C compiler found in \$PATH
  4787. See \`config.log' for more details" "$LINENO" 5 ; }
  4788. # Provide some information about the compiler.
  4789. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4790. set X $ac_compile
  4791. ac_compiler=$2
  4792. for ac_option in --version -v -V -qversion; do
  4793. { { ac_try="$ac_compiler $ac_option >&5"
  4794. case "(($ac_try" in
  4795. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4796. *) ac_try_echo=$ac_try;;
  4797. esac
  4798. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4799. $as_echo "$ac_try_echo"; } >&5
  4800. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4801. ac_status=$?
  4802. if test -s conftest.err; then
  4803. sed '10a\
  4804. ... rest of stderr output deleted ...
  4805. 10q' conftest.err >conftest.er1
  4806. cat conftest.er1 >&5
  4807. fi
  4808. rm -f conftest.er1 conftest.err
  4809. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4810. test $ac_status = 0; }
  4811. done
  4812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4813. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4814. if ${ac_cv_c_compiler_gnu+:} false; then :
  4815. $as_echo_n "(cached) " >&6
  4816. else
  4817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4818. /* end confdefs.h. */
  4819. int
  4820. main ()
  4821. {
  4822. #ifndef __GNUC__
  4823. choke me
  4824. #endif
  4825. ;
  4826. return 0;
  4827. }
  4828. _ACEOF
  4829. if ac_fn_c_try_compile "$LINENO"; then :
  4830. ac_compiler_gnu=yes
  4831. else
  4832. ac_compiler_gnu=no
  4833. fi
  4834. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4835. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4836. fi
  4837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4838. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4839. if test $ac_compiler_gnu = yes; then
  4840. GCC=yes
  4841. else
  4842. GCC=
  4843. fi
  4844. ac_test_CFLAGS=${CFLAGS+set}
  4845. ac_save_CFLAGS=$CFLAGS
  4846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4847. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4848. if ${ac_cv_prog_cc_g+:} false; then :
  4849. $as_echo_n "(cached) " >&6
  4850. else
  4851. ac_save_c_werror_flag=$ac_c_werror_flag
  4852. ac_c_werror_flag=yes
  4853. ac_cv_prog_cc_g=no
  4854. CFLAGS="-g"
  4855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4856. /* end confdefs.h. */
  4857. int
  4858. main ()
  4859. {
  4860. ;
  4861. return 0;
  4862. }
  4863. _ACEOF
  4864. if ac_fn_c_try_compile "$LINENO"; then :
  4865. ac_cv_prog_cc_g=yes
  4866. else
  4867. CFLAGS=""
  4868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4869. /* end confdefs.h. */
  4870. int
  4871. main ()
  4872. {
  4873. ;
  4874. return 0;
  4875. }
  4876. _ACEOF
  4877. if ac_fn_c_try_compile "$LINENO"; then :
  4878. else
  4879. ac_c_werror_flag=$ac_save_c_werror_flag
  4880. CFLAGS="-g"
  4881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4882. /* end confdefs.h. */
  4883. int
  4884. main ()
  4885. {
  4886. ;
  4887. return 0;
  4888. }
  4889. _ACEOF
  4890. if ac_fn_c_try_compile "$LINENO"; then :
  4891. ac_cv_prog_cc_g=yes
  4892. fi
  4893. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4894. fi
  4895. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4896. fi
  4897. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4898. ac_c_werror_flag=$ac_save_c_werror_flag
  4899. fi
  4900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4901. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4902. if test "$ac_test_CFLAGS" = set; then
  4903. CFLAGS=$ac_save_CFLAGS
  4904. elif test $ac_cv_prog_cc_g = yes; then
  4905. if test "$GCC" = yes; then
  4906. CFLAGS="-g -O2"
  4907. else
  4908. CFLAGS="-g"
  4909. fi
  4910. else
  4911. if test "$GCC" = yes; then
  4912. CFLAGS="-O2"
  4913. else
  4914. CFLAGS=
  4915. fi
  4916. fi
  4917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4918. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4919. if ${ac_cv_prog_cc_c89+:} false; then :
  4920. $as_echo_n "(cached) " >&6
  4921. else
  4922. ac_cv_prog_cc_c89=no
  4923. ac_save_CC=$CC
  4924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4925. /* end confdefs.h. */
  4926. #include <stdarg.h>
  4927. #include <stdio.h>
  4928. #include <sys/types.h>
  4929. #include <sys/stat.h>
  4930. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4931. struct buf { int x; };
  4932. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4933. static char *e (p, i)
  4934. char **p;
  4935. int i;
  4936. {
  4937. return p[i];
  4938. }
  4939. static char *f (char * (*g) (char **, int), char **p, ...)
  4940. {
  4941. char *s;
  4942. va_list v;
  4943. va_start (v,p);
  4944. s = g (p, va_arg (v,int));
  4945. va_end (v);
  4946. return s;
  4947. }
  4948. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4949. function prototypes and stuff, but not '\xHH' hex character constants.
  4950. These don't provoke an error unfortunately, instead are silently treated
  4951. as 'x'. The following induces an error, until -std is added to get
  4952. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4953. array size at least. It's necessary to write '\x00'==0 to get something
  4954. that's true only with -std. */
  4955. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4956. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4957. inside strings and character constants. */
  4958. #define FOO(x) 'x'
  4959. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4960. int test (int i, double x);
  4961. struct s1 {int (*f) (int a);};
  4962. struct s2 {int (*f) (double a);};
  4963. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4964. int argc;
  4965. char **argv;
  4966. int
  4967. main ()
  4968. {
  4969. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4970. ;
  4971. return 0;
  4972. }
  4973. _ACEOF
  4974. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4975. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4976. do
  4977. CC="$ac_save_CC $ac_arg"
  4978. if ac_fn_c_try_compile "$LINENO"; then :
  4979. ac_cv_prog_cc_c89=$ac_arg
  4980. fi
  4981. rm -f core conftest.err conftest.$ac_objext
  4982. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4983. done
  4984. rm -f conftest.$ac_ext
  4985. CC=$ac_save_CC
  4986. fi
  4987. # AC_CACHE_VAL
  4988. case "x$ac_cv_prog_cc_c89" in
  4989. x)
  4990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4991. $as_echo "none needed" >&6; } ;;
  4992. xno)
  4993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4994. $as_echo "unsupported" >&6; } ;;
  4995. *)
  4996. CC="$CC $ac_cv_prog_cc_c89"
  4997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4998. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4999. esac
  5000. if test "x$ac_cv_prog_cc_c89" != xno; then :
  5001. fi
  5002. ac_ext=c
  5003. ac_cpp='$CPP $CPPFLAGS'
  5004. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5005. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5006. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5007. depcc="$CC" am_compiler_list=
  5008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  5009. $as_echo_n "checking dependency style of $depcc... " >&6; }
  5010. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  5011. $as_echo_n "(cached) " >&6
  5012. else
  5013. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5014. # We make a subdir and do the tests there. Otherwise we can end up
  5015. # making bogus files that we don't know about and never remove. For
  5016. # instance it was reported that on HP-UX the gcc test will end up
  5017. # making a dummy file named `D' -- because `-MD' means `put the output
  5018. # in D'.
  5019. mkdir conftest.dir
  5020. # Copy depcomp to subdir because otherwise we won't find it if we're
  5021. # using a relative directory.
  5022. cp "$am_depcomp" conftest.dir
  5023. cd conftest.dir
  5024. # We will build objects and dependencies in a subdirectory because
  5025. # it helps to detect inapplicable dependency modes. For instance
  5026. # both Tru64's cc and ICC support -MD to output dependencies as a
  5027. # side effect of compilation, but ICC will put the dependencies in
  5028. # the current directory while Tru64 will put them in the object
  5029. # directory.
  5030. mkdir sub
  5031. am_cv_CC_dependencies_compiler_type=none
  5032. if test "$am_compiler_list" = ""; then
  5033. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5034. fi
  5035. am__universal=false
  5036. case " $depcc " in #(
  5037. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  5038. esac
  5039. for depmode in $am_compiler_list; do
  5040. # Setup a source with many dependencies, because some compilers
  5041. # like to wrap large dependency lists on column 80 (with \), and
  5042. # we should not choose a depcomp mode which is confused by this.
  5043. #
  5044. # We need to recreate these files for each test, as the compiler may
  5045. # overwrite some of them when testing with obscure command lines.
  5046. # This happens at least with the AIX C compiler.
  5047. : > sub/conftest.c
  5048. for i in 1 2 3 4 5 6; do
  5049. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5050. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5051. # Solaris 8's {/usr,}/bin/sh.
  5052. touch sub/conftst$i.h
  5053. done
  5054. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5055. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5056. # mode. It turns out that the SunPro C++ compiler does not properly
  5057. # handle `-M -o', and we need to detect this. Also, some Intel
  5058. # versions had trouble with output in subdirs
  5059. am__obj=sub/conftest.${OBJEXT-o}
  5060. am__minus_obj="-o $am__obj"
  5061. case $depmode in
  5062. gcc)
  5063. # This depmode causes a compiler race in universal mode.
  5064. test "$am__universal" = false || continue
  5065. ;;
  5066. nosideeffect)
  5067. # after this tag, mechanisms are not by side-effect, so they'll
  5068. # only be used when explicitly requested
  5069. if test "x$enable_dependency_tracking" = xyes; then
  5070. continue
  5071. else
  5072. break
  5073. fi
  5074. ;;
  5075. msvisualcpp | msvcmsys)
  5076. # This compiler won't grok `-c -o', but also, the minuso test has
  5077. # not run yet. These depmodes are late enough in the game, and
  5078. # so weak that their functioning should not be impacted.
  5079. am__obj=conftest.${OBJEXT-o}
  5080. am__minus_obj=
  5081. ;;
  5082. none) break ;;
  5083. esac
  5084. if depmode=$depmode \
  5085. source=sub/conftest.c object=$am__obj \
  5086. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5087. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  5088. >/dev/null 2>conftest.err &&
  5089. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5090. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5091. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5092. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5093. # icc doesn't choke on unknown options, it will just issue warnings
  5094. # or remarks (even with -Werror). So we grep stderr for any message
  5095. # that says an option was ignored or not supported.
  5096. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5097. # icc: Command line warning: ignoring option '-M'; no argument required
  5098. # The diagnosis changed in icc 8.0:
  5099. # icc: Command line remark: option '-MP' not supported
  5100. if (grep 'ignoring option' conftest.err ||
  5101. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5102. am_cv_CC_dependencies_compiler_type=$depmode
  5103. break
  5104. fi
  5105. fi
  5106. done
  5107. cd ..
  5108. rm -rf conftest.dir
  5109. else
  5110. am_cv_CC_dependencies_compiler_type=none
  5111. fi
  5112. fi
  5113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  5114. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  5115. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5116. if
  5117. test "x$enable_dependency_tracking" != xno \
  5118. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5119. am__fastdepCC_TRUE=
  5120. am__fastdepCC_FALSE='#'
  5121. else
  5122. am__fastdepCC_TRUE='#'
  5123. am__fastdepCC_FALSE=
  5124. fi
  5125. if test -n "$ac_tool_prefix"; then
  5126. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5127. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5129. $as_echo_n "checking for $ac_word... " >&6; }
  5130. if ${ac_cv_prog_RANLIB+:} false; then :
  5131. $as_echo_n "(cached) " >&6
  5132. else
  5133. if test -n "$RANLIB"; then
  5134. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5135. else
  5136. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5137. for as_dir in $PATH
  5138. do
  5139. IFS=$as_save_IFS
  5140. test -z "$as_dir" && as_dir=.
  5141. for ac_exec_ext in '' $ac_executable_extensions; do
  5142. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5143. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5144. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5145. break 2
  5146. fi
  5147. done
  5148. done
  5149. IFS=$as_save_IFS
  5150. fi
  5151. fi
  5152. RANLIB=$ac_cv_prog_RANLIB
  5153. if test -n "$RANLIB"; then
  5154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5155. $as_echo "$RANLIB" >&6; }
  5156. else
  5157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5158. $as_echo "no" >&6; }
  5159. fi
  5160. fi
  5161. if test -z "$ac_cv_prog_RANLIB"; then
  5162. ac_ct_RANLIB=$RANLIB
  5163. # Extract the first word of "ranlib", so it can be a program name with args.
  5164. set dummy ranlib; ac_word=$2
  5165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5166. $as_echo_n "checking for $ac_word... " >&6; }
  5167. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5168. $as_echo_n "(cached) " >&6
  5169. else
  5170. if test -n "$ac_ct_RANLIB"; then
  5171. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5172. else
  5173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5174. for as_dir in $PATH
  5175. do
  5176. IFS=$as_save_IFS
  5177. test -z "$as_dir" && as_dir=.
  5178. for ac_exec_ext in '' $ac_executable_extensions; do
  5179. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5180. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5181. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5182. break 2
  5183. fi
  5184. done
  5185. done
  5186. IFS=$as_save_IFS
  5187. fi
  5188. fi
  5189. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5190. if test -n "$ac_ct_RANLIB"; then
  5191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5192. $as_echo "$ac_ct_RANLIB" >&6; }
  5193. else
  5194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5195. $as_echo "no" >&6; }
  5196. fi
  5197. if test "x$ac_ct_RANLIB" = x; then
  5198. RANLIB=":"
  5199. else
  5200. case $cross_compiling:$ac_tool_warned in
  5201. yes:)
  5202. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5203. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5204. ac_tool_warned=yes ;;
  5205. esac
  5206. RANLIB=$ac_ct_RANLIB
  5207. fi
  5208. else
  5209. RANLIB="$ac_cv_prog_RANLIB"
  5210. fi
  5211. # Code from module arg-nonnull:
  5212. # Code from module c++defs:
  5213. # Code from module extensions:
  5214. # Code from module include_next:
  5215. # Code from module memchr:
  5216. # Code from module memmem:
  5217. # Code from module memmem-simple:
  5218. # Code from module multiarch:
  5219. # Code from module sigaction:
  5220. # Code from module signal:
  5221. # Code from module sigprocmask:
  5222. # Code from module stddef:
  5223. # Code from module stdint:
  5224. # Code from module string:
  5225. # Code from module warn-on-use:
  5226. if test $ac_cv_c_compiler_gnu = yes; then
  5227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  5228. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  5229. if ${ac_cv_prog_gcc_traditional+:} false; then :
  5230. $as_echo_n "(cached) " >&6
  5231. else
  5232. ac_pattern="Autoconf.*'x'"
  5233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5234. /* end confdefs.h. */
  5235. #include <sgtty.h>
  5236. Autoconf TIOCGETP
  5237. _ACEOF
  5238. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5239. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  5240. ac_cv_prog_gcc_traditional=yes
  5241. else
  5242. ac_cv_prog_gcc_traditional=no
  5243. fi
  5244. rm -f conftest*
  5245. if test $ac_cv_prog_gcc_traditional = no; then
  5246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5247. /* end confdefs.h. */
  5248. #include <termio.h>
  5249. Autoconf TCGETA
  5250. _ACEOF
  5251. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5252. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  5253. ac_cv_prog_gcc_traditional=yes
  5254. fi
  5255. rm -f conftest*
  5256. fi
  5257. fi
  5258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  5259. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  5260. if test $ac_cv_prog_gcc_traditional = yes; then
  5261. CC="$CC -traditional"
  5262. fi
  5263. fi
  5264. if test "x$CC" != xcc; then
  5265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  5266. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  5267. else
  5268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  5269. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  5270. fi
  5271. set dummy $CC; ac_cc=`$as_echo "$2" |
  5272. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  5273. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  5274. $as_echo_n "(cached) " >&6
  5275. else
  5276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5277. /* end confdefs.h. */
  5278. int
  5279. main ()
  5280. {
  5281. ;
  5282. return 0;
  5283. }
  5284. _ACEOF
  5285. # Make sure it works both with $CC and with simple cc.
  5286. # We do the test twice because some compilers refuse to overwrite an
  5287. # existing .o file with -o, though they will create one.
  5288. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  5289. rm -f conftest2.*
  5290. if { { case "(($ac_try" in
  5291. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5292. *) ac_try_echo=$ac_try;;
  5293. esac
  5294. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5295. $as_echo "$ac_try_echo"; } >&5
  5296. (eval "$ac_try") 2>&5
  5297. ac_status=$?
  5298. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5299. test $ac_status = 0; } &&
  5300. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  5301. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5302. *) ac_try_echo=$ac_try;;
  5303. esac
  5304. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5305. $as_echo "$ac_try_echo"; } >&5
  5306. (eval "$ac_try") 2>&5
  5307. ac_status=$?
  5308. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5309. test $ac_status = 0; };
  5310. then
  5311. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  5312. if test "x$CC" != xcc; then
  5313. # Test first that cc exists at all.
  5314. if { ac_try='cc -c conftest.$ac_ext >&5'
  5315. { { case "(($ac_try" in
  5316. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5317. *) ac_try_echo=$ac_try;;
  5318. esac
  5319. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5320. $as_echo "$ac_try_echo"; } >&5
  5321. (eval "$ac_try") 2>&5
  5322. ac_status=$?
  5323. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5324. test $ac_status = 0; }; }; then
  5325. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  5326. rm -f conftest2.*
  5327. if { { case "(($ac_try" in
  5328. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5329. *) ac_try_echo=$ac_try;;
  5330. esac
  5331. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5332. $as_echo "$ac_try_echo"; } >&5
  5333. (eval "$ac_try") 2>&5
  5334. ac_status=$?
  5335. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5336. test $ac_status = 0; } &&
  5337. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  5338. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5339. *) ac_try_echo=$ac_try;;
  5340. esac
  5341. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5342. $as_echo "$ac_try_echo"; } >&5
  5343. (eval "$ac_try") 2>&5
  5344. ac_status=$?
  5345. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5346. test $ac_status = 0; };
  5347. then
  5348. # cc works too.
  5349. :
  5350. else
  5351. # cc exists but doesn't like -o.
  5352. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  5353. fi
  5354. fi
  5355. fi
  5356. else
  5357. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  5358. fi
  5359. rm -f core conftest*
  5360. fi
  5361. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  5362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5363. $as_echo "yes" >&6; }
  5364. else
  5365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5366. $as_echo "no" >&6; }
  5367. $as_echo "@%:@define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  5368. fi
  5369. # FIXME: we rely on the cache variable name because
  5370. # there is no other way.
  5371. set dummy $CC
  5372. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  5373. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  5374. if test "$am_t" != yes; then
  5375. # Losing compiler, so override with the script.
  5376. # FIXME: It is wrong to rewrite CC.
  5377. # But if we don't then we get into trouble of one sort or another.
  5378. # A longer-term fix would be to have automake use am__CC in this case,
  5379. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  5380. CC="$am_aux_dir/compile $CC"
  5381. fi
  5382. case `pwd` in
  5383. *\ * | *\ *)
  5384. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  5385. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  5386. esac
  5387. macro_version='2.4'
  5388. macro_revision='1.3294'
  5389. ltmain="$ac_aux_dir/ltmain.sh"
  5390. # Backslashify metacharacters that are still active within
  5391. # double-quoted strings.
  5392. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  5393. # Same as above, but do not quote variable references.
  5394. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  5395. # Sed substitution to delay expansion of an escaped shell variable in a
  5396. # double_quote_subst'ed string.
  5397. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5398. # Sed substitution to delay expansion of an escaped single quote.
  5399. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  5400. # Sed substitution to avoid accidental globbing in evaled expressions
  5401. no_glob_subst='s/\*/\\\*/g'
  5402. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5403. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  5404. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  5405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  5406. $as_echo_n "checking how to print strings... " >&6; }
  5407. # Test print first, because it will be a builtin if present.
  5408. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  5409. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  5410. ECHO='print -r --'
  5411. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  5412. ECHO='printf %s\n'
  5413. else
  5414. # Use this function as a fallback that always works.
  5415. func_fallback_echo ()
  5416. {
  5417. eval 'cat <<_LTECHO_EOF
  5418. $1
  5419. _LTECHO_EOF'
  5420. }
  5421. ECHO='func_fallback_echo'
  5422. fi
  5423. # func_echo_all arg...
  5424. # Invoke $ECHO with all args, space-separated.
  5425. func_echo_all ()
  5426. {
  5427. $ECHO ""
  5428. }
  5429. case "$ECHO" in
  5430. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  5431. $as_echo "printf" >&6; } ;;
  5432. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  5433. $as_echo "print -r" >&6; } ;;
  5434. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  5435. $as_echo "cat" >&6; } ;;
  5436. esac
  5437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5438. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5439. if ${ac_cv_path_SED+:} false; then :
  5440. $as_echo_n "(cached) " >&6
  5441. else
  5442. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5443. for ac_i in 1 2 3 4 5 6 7; do
  5444. ac_script="$ac_script$as_nl$ac_script"
  5445. done
  5446. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5447. { ac_script=; unset ac_script;}
  5448. if test -z "$SED"; then
  5449. ac_path_SED_found=false
  5450. # Loop through the user's path and test for each of PROGNAME-LIST
  5451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5452. for as_dir in $PATH
  5453. do
  5454. IFS=$as_save_IFS
  5455. test -z "$as_dir" && as_dir=.
  5456. for ac_prog in sed gsed; do
  5457. for ac_exec_ext in '' $ac_executable_extensions; do
  5458. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5459. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  5460. # Check for GNU ac_path_SED and select it if it is found.
  5461. # Check for GNU $ac_path_SED
  5462. case `"$ac_path_SED" --version 2>&1` in
  5463. *GNU*)
  5464. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5465. *)
  5466. ac_count=0
  5467. $as_echo_n 0123456789 >"conftest.in"
  5468. while :
  5469. do
  5470. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5471. mv "conftest.tmp" "conftest.in"
  5472. cp "conftest.in" "conftest.nl"
  5473. $as_echo '' >> "conftest.nl"
  5474. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5475. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5476. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5477. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5478. # Best one so far, save it but keep looking for a better one
  5479. ac_cv_path_SED="$ac_path_SED"
  5480. ac_path_SED_max=$ac_count
  5481. fi
  5482. # 10*(2^10) chars as input seems more than enough
  5483. test $ac_count -gt 10 && break
  5484. done
  5485. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5486. esac
  5487. $ac_path_SED_found && break 3
  5488. done
  5489. done
  5490. done
  5491. IFS=$as_save_IFS
  5492. if test -z "$ac_cv_path_SED"; then
  5493. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5494. fi
  5495. else
  5496. ac_cv_path_SED=$SED
  5497. fi
  5498. fi
  5499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5500. $as_echo "$ac_cv_path_SED" >&6; }
  5501. SED="$ac_cv_path_SED"
  5502. rm -f conftest.sed
  5503. test -z "$SED" && SED=sed
  5504. Xsed="$SED -e 1s/^X//"
  5505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5506. $as_echo_n "checking for fgrep... " >&6; }
  5507. if ${ac_cv_path_FGREP+:} false; then :
  5508. $as_echo_n "(cached) " >&6
  5509. else
  5510. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5511. then ac_cv_path_FGREP="$GREP -F"
  5512. else
  5513. if test -z "$FGREP"; then
  5514. ac_path_FGREP_found=false
  5515. # Loop through the user's path and test for each of PROGNAME-LIST
  5516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5517. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5518. do
  5519. IFS=$as_save_IFS
  5520. test -z "$as_dir" && as_dir=.
  5521. for ac_prog in fgrep; do
  5522. for ac_exec_ext in '' $ac_executable_extensions; do
  5523. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5524. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  5525. # Check for GNU ac_path_FGREP and select it if it is found.
  5526. # Check for GNU $ac_path_FGREP
  5527. case `"$ac_path_FGREP" --version 2>&1` in
  5528. *GNU*)
  5529. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5530. *)
  5531. ac_count=0
  5532. $as_echo_n 0123456789 >"conftest.in"
  5533. while :
  5534. do
  5535. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5536. mv "conftest.tmp" "conftest.in"
  5537. cp "conftest.in" "conftest.nl"
  5538. $as_echo 'FGREP' >> "conftest.nl"
  5539. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5540. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5541. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5542. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5543. # Best one so far, save it but keep looking for a better one
  5544. ac_cv_path_FGREP="$ac_path_FGREP"
  5545. ac_path_FGREP_max=$ac_count
  5546. fi
  5547. # 10*(2^10) chars as input seems more than enough
  5548. test $ac_count -gt 10 && break
  5549. done
  5550. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5551. esac
  5552. $ac_path_FGREP_found && break 3
  5553. done
  5554. done
  5555. done
  5556. IFS=$as_save_IFS
  5557. if test -z "$ac_cv_path_FGREP"; then
  5558. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5559. fi
  5560. else
  5561. ac_cv_path_FGREP=$FGREP
  5562. fi
  5563. fi
  5564. fi
  5565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5566. $as_echo "$ac_cv_path_FGREP" >&6; }
  5567. FGREP="$ac_cv_path_FGREP"
  5568. test -z "$GREP" && GREP=grep
  5569. @%:@ Check whether --with-gnu-ld was given.
  5570. if test "${with_gnu_ld+set}" = set; then :
  5571. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5572. else
  5573. with_gnu_ld=no
  5574. fi
  5575. ac_prog=ld
  5576. if test "$GCC" = yes; then
  5577. # Check if gcc -print-prog-name=ld gives a path.
  5578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5579. $as_echo_n "checking for ld used by $CC... " >&6; }
  5580. case $host in
  5581. *-*-mingw*)
  5582. # gcc leaves a trailing carriage return which upsets mingw
  5583. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5584. *)
  5585. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5586. esac
  5587. case $ac_prog in
  5588. # Accept absolute paths.
  5589. [\\/]* | ?:[\\/]*)
  5590. re_direlt='/[^/][^/]*/\.\./'
  5591. # Canonicalize the pathname of ld
  5592. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5593. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5594. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5595. done
  5596. test -z "$LD" && LD="$ac_prog"
  5597. ;;
  5598. "")
  5599. # If it fails, then pretend we aren't using GCC.
  5600. ac_prog=ld
  5601. ;;
  5602. *)
  5603. # If it is relative, then search for the first ld in PATH.
  5604. with_gnu_ld=unknown
  5605. ;;
  5606. esac
  5607. elif test "$with_gnu_ld" = yes; then
  5608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5609. $as_echo_n "checking for GNU ld... " >&6; }
  5610. else
  5611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5612. $as_echo_n "checking for non-GNU ld... " >&6; }
  5613. fi
  5614. if ${lt_cv_path_LD+:} false; then :
  5615. $as_echo_n "(cached) " >&6
  5616. else
  5617. if test -z "$LD"; then
  5618. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5619. for ac_dir in $PATH; do
  5620. IFS="$lt_save_ifs"
  5621. test -z "$ac_dir" && ac_dir=.
  5622. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5623. lt_cv_path_LD="$ac_dir/$ac_prog"
  5624. # Check to see if the program is GNU ld. I'd rather use --version,
  5625. # but apparently some variants of GNU ld only accept -v.
  5626. # Break only if it was the GNU/non-GNU ld that we prefer.
  5627. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5628. *GNU* | *'with BFD'*)
  5629. test "$with_gnu_ld" != no && break
  5630. ;;
  5631. *)
  5632. test "$with_gnu_ld" != yes && break
  5633. ;;
  5634. esac
  5635. fi
  5636. done
  5637. IFS="$lt_save_ifs"
  5638. else
  5639. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5640. fi
  5641. fi
  5642. LD="$lt_cv_path_LD"
  5643. if test -n "$LD"; then
  5644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5645. $as_echo "$LD" >&6; }
  5646. else
  5647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5648. $as_echo "no" >&6; }
  5649. fi
  5650. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5652. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5653. if ${lt_cv_prog_gnu_ld+:} false; then :
  5654. $as_echo_n "(cached) " >&6
  5655. else
  5656. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5657. case `$LD -v 2>&1 </dev/null` in
  5658. *GNU* | *'with BFD'*)
  5659. lt_cv_prog_gnu_ld=yes
  5660. ;;
  5661. *)
  5662. lt_cv_prog_gnu_ld=no
  5663. ;;
  5664. esac
  5665. fi
  5666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5667. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5668. with_gnu_ld=$lt_cv_prog_gnu_ld
  5669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5670. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5671. if ${lt_cv_path_NM+:} false; then :
  5672. $as_echo_n "(cached) " >&6
  5673. else
  5674. if test -n "$NM"; then
  5675. # Let the user override the test.
  5676. lt_cv_path_NM="$NM"
  5677. else
  5678. lt_nm_to_check="${ac_tool_prefix}nm"
  5679. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5680. lt_nm_to_check="$lt_nm_to_check nm"
  5681. fi
  5682. for lt_tmp_nm in $lt_nm_to_check; do
  5683. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5684. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5685. IFS="$lt_save_ifs"
  5686. test -z "$ac_dir" && ac_dir=.
  5687. tmp_nm="$ac_dir/$lt_tmp_nm"
  5688. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5689. # Check to see if the nm accepts a BSD-compat flag.
  5690. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5691. # nm: unknown option "B" ignored
  5692. # Tru64's nm complains that /dev/null is an invalid object file
  5693. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5694. */dev/null* | *'Invalid file or object type'*)
  5695. lt_cv_path_NM="$tmp_nm -B"
  5696. break
  5697. ;;
  5698. *)
  5699. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5700. */dev/null*)
  5701. lt_cv_path_NM="$tmp_nm -p"
  5702. break
  5703. ;;
  5704. *)
  5705. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5706. continue # so that we can try to find one that supports BSD flags
  5707. ;;
  5708. esac
  5709. ;;
  5710. esac
  5711. fi
  5712. done
  5713. IFS="$lt_save_ifs"
  5714. done
  5715. : ${lt_cv_path_NM=no}
  5716. fi
  5717. fi
  5718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5719. $as_echo "$lt_cv_path_NM" >&6; }
  5720. if test "$lt_cv_path_NM" != "no"; then
  5721. NM="$lt_cv_path_NM"
  5722. else
  5723. # Didn't find any BSD compatible name lister, look for dumpbin.
  5724. if test -n "$DUMPBIN"; then :
  5725. # Let the user override the test.
  5726. else
  5727. if test -n "$ac_tool_prefix"; then
  5728. for ac_prog in dumpbin "link -dump"
  5729. do
  5730. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5731. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5733. $as_echo_n "checking for $ac_word... " >&6; }
  5734. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5735. $as_echo_n "(cached) " >&6
  5736. else
  5737. if test -n "$DUMPBIN"; then
  5738. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5739. else
  5740. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5741. for as_dir in $PATH
  5742. do
  5743. IFS=$as_save_IFS
  5744. test -z "$as_dir" && as_dir=.
  5745. for ac_exec_ext in '' $ac_executable_extensions; do
  5746. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5747. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5748. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5749. break 2
  5750. fi
  5751. done
  5752. done
  5753. IFS=$as_save_IFS
  5754. fi
  5755. fi
  5756. DUMPBIN=$ac_cv_prog_DUMPBIN
  5757. if test -n "$DUMPBIN"; then
  5758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5759. $as_echo "$DUMPBIN" >&6; }
  5760. else
  5761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5762. $as_echo "no" >&6; }
  5763. fi
  5764. test -n "$DUMPBIN" && break
  5765. done
  5766. fi
  5767. if test -z "$DUMPBIN"; then
  5768. ac_ct_DUMPBIN=$DUMPBIN
  5769. for ac_prog in dumpbin "link -dump"
  5770. do
  5771. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5772. set dummy $ac_prog; ac_word=$2
  5773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5774. $as_echo_n "checking for $ac_word... " >&6; }
  5775. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5776. $as_echo_n "(cached) " >&6
  5777. else
  5778. if test -n "$ac_ct_DUMPBIN"; then
  5779. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5780. else
  5781. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5782. for as_dir in $PATH
  5783. do
  5784. IFS=$as_save_IFS
  5785. test -z "$as_dir" && as_dir=.
  5786. for ac_exec_ext in '' $ac_executable_extensions; do
  5787. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5788. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5789. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5790. break 2
  5791. fi
  5792. done
  5793. done
  5794. IFS=$as_save_IFS
  5795. fi
  5796. fi
  5797. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5798. if test -n "$ac_ct_DUMPBIN"; then
  5799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5800. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5801. else
  5802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5803. $as_echo "no" >&6; }
  5804. fi
  5805. test -n "$ac_ct_DUMPBIN" && break
  5806. done
  5807. if test "x$ac_ct_DUMPBIN" = x; then
  5808. DUMPBIN=":"
  5809. else
  5810. case $cross_compiling:$ac_tool_warned in
  5811. yes:)
  5812. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5813. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5814. ac_tool_warned=yes ;;
  5815. esac
  5816. DUMPBIN=$ac_ct_DUMPBIN
  5817. fi
  5818. fi
  5819. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5820. *COFF*)
  5821. DUMPBIN="$DUMPBIN -symbols"
  5822. ;;
  5823. *)
  5824. DUMPBIN=:
  5825. ;;
  5826. esac
  5827. fi
  5828. if test "$DUMPBIN" != ":"; then
  5829. NM="$DUMPBIN"
  5830. fi
  5831. fi
  5832. test -z "$NM" && NM=nm
  5833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5834. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5835. if ${lt_cv_nm_interface+:} false; then :
  5836. $as_echo_n "(cached) " >&6
  5837. else
  5838. lt_cv_nm_interface="BSD nm"
  5839. echo "int some_variable = 0;" > conftest.$ac_ext
  5840. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5841. (eval "$ac_compile" 2>conftest.err)
  5842. cat conftest.err >&5
  5843. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5844. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5845. cat conftest.err >&5
  5846. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5847. cat conftest.out >&5
  5848. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5849. lt_cv_nm_interface="MS dumpbin"
  5850. fi
  5851. rm -f conftest*
  5852. fi
  5853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5854. $as_echo "$lt_cv_nm_interface" >&6; }
  5855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5856. $as_echo_n "checking whether ln -s works... " >&6; }
  5857. LN_S=$as_ln_s
  5858. if test "$LN_S" = "ln -s"; then
  5859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5860. $as_echo "yes" >&6; }
  5861. else
  5862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5863. $as_echo "no, using $LN_S" >&6; }
  5864. fi
  5865. # find the maximum length of command line arguments
  5866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5867. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5868. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5869. $as_echo_n "(cached) " >&6
  5870. else
  5871. i=0
  5872. teststring="ABCD"
  5873. case $build_os in
  5874. msdosdjgpp*)
  5875. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5876. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5877. # during glob expansion). Even if it were fixed, the result of this
  5878. # check would be larger than it should be.
  5879. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5880. ;;
  5881. gnu*)
  5882. # Under GNU Hurd, this test is not required because there is
  5883. # no limit to the length of command line arguments.
  5884. # Libtool will interpret -1 as no limit whatsoever
  5885. lt_cv_sys_max_cmd_len=-1;
  5886. ;;
  5887. cygwin* | mingw* | cegcc*)
  5888. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5889. # about 5 minutes as the teststring grows exponentially.
  5890. # Worse, since 9x/ME are not pre-emptively multitasking,
  5891. # you end up with a "frozen" computer, even though with patience
  5892. # the test eventually succeeds (with a max line length of 256k).
  5893. # Instead, let's just punt: use the minimum linelength reported by
  5894. # all of the supported platforms: 8192 (on NT/2K/XP).
  5895. lt_cv_sys_max_cmd_len=8192;
  5896. ;;
  5897. mint*)
  5898. # On MiNT this can take a long time and run out of memory.
  5899. lt_cv_sys_max_cmd_len=8192;
  5900. ;;
  5901. amigaos*)
  5902. # On AmigaOS with pdksh, this test takes hours, literally.
  5903. # So we just punt and use a minimum line length of 8192.
  5904. lt_cv_sys_max_cmd_len=8192;
  5905. ;;
  5906. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5907. # This has been around since 386BSD, at least. Likely further.
  5908. if test -x /sbin/sysctl; then
  5909. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5910. elif test -x /usr/sbin/sysctl; then
  5911. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5912. else
  5913. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5914. fi
  5915. # And add a safety zone
  5916. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5917. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5918. ;;
  5919. interix*)
  5920. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5921. lt_cv_sys_max_cmd_len=196608
  5922. ;;
  5923. osf*)
  5924. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5925. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5926. # nice to cause kernel panics so lets avoid the loop below.
  5927. # First set a reasonable default.
  5928. lt_cv_sys_max_cmd_len=16384
  5929. #
  5930. if test -x /sbin/sysconfig; then
  5931. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5932. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5933. esac
  5934. fi
  5935. ;;
  5936. sco3.2v5*)
  5937. lt_cv_sys_max_cmd_len=102400
  5938. ;;
  5939. sysv5* | sco5v6* | sysv4.2uw2*)
  5940. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5941. if test -n "$kargmax"; then
  5942. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5943. else
  5944. lt_cv_sys_max_cmd_len=32768
  5945. fi
  5946. ;;
  5947. *)
  5948. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5949. if test -n "$lt_cv_sys_max_cmd_len"; then
  5950. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5951. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5952. else
  5953. # Make teststring a little bigger before we do anything with it.
  5954. # a 1K string should be a reasonable start.
  5955. for i in 1 2 3 4 5 6 7 8 ; do
  5956. teststring=$teststring$teststring
  5957. done
  5958. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5959. # If test is not a shell built-in, we'll probably end up computing a
  5960. # maximum length that is only half of the actual maximum length, but
  5961. # we can't tell.
  5962. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5963. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5964. test $i != 17 # 1/2 MB should be enough
  5965. do
  5966. i=`expr $i + 1`
  5967. teststring=$teststring$teststring
  5968. done
  5969. # Only check the string length outside the loop.
  5970. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5971. teststring=
  5972. # Add a significant safety factor because C++ compilers can tack on
  5973. # massive amounts of additional arguments before passing them to the
  5974. # linker. It appears as though 1/2 is a usable value.
  5975. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5976. fi
  5977. ;;
  5978. esac
  5979. fi
  5980. if test -n $lt_cv_sys_max_cmd_len ; then
  5981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5982. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5983. else
  5984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5985. $as_echo "none" >&6; }
  5986. fi
  5987. max_cmd_len=$lt_cv_sys_max_cmd_len
  5988. : ${CP="cp -f"}
  5989. : ${MV="mv -f"}
  5990. : ${RM="rm -f"}
  5991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5992. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5993. # Try some XSI features
  5994. xsi_shell=no
  5995. ( _lt_dummy="a/b/c"
  5996. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5997. = c,a/b,b/c, \
  5998. && eval 'test $(( 1 + 1 )) -eq 2 \
  5999. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  6000. && xsi_shell=yes
  6001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  6002. $as_echo "$xsi_shell" >&6; }
  6003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  6004. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  6005. lt_shell_append=no
  6006. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  6007. >/dev/null 2>&1 \
  6008. && lt_shell_append=yes
  6009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  6010. $as_echo "$lt_shell_append" >&6; }
  6011. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  6012. lt_unset=unset
  6013. else
  6014. lt_unset=false
  6015. fi
  6016. # test EBCDIC or ASCII
  6017. case `echo X|tr X '\101'` in
  6018. A) # ASCII based system
  6019. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  6020. lt_SP2NL='tr \040 \012'
  6021. lt_NL2SP='tr \015\012 \040\040'
  6022. ;;
  6023. *) # EBCDIC based system
  6024. lt_SP2NL='tr \100 \n'
  6025. lt_NL2SP='tr \r\n \100\100'
  6026. ;;
  6027. esac
  6028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  6029. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  6030. if ${lt_cv_to_host_file_cmd+:} false; then :
  6031. $as_echo_n "(cached) " >&6
  6032. else
  6033. case $host in
  6034. *-*-mingw* )
  6035. case $build in
  6036. *-*-mingw* ) # actually msys
  6037. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  6038. ;;
  6039. *-*-cygwin* )
  6040. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  6041. ;;
  6042. * ) # otherwise, assume *nix
  6043. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  6044. ;;
  6045. esac
  6046. ;;
  6047. *-*-cygwin* )
  6048. case $build in
  6049. *-*-mingw* ) # actually msys
  6050. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  6051. ;;
  6052. *-*-cygwin* )
  6053. lt_cv_to_host_file_cmd=func_convert_file_noop
  6054. ;;
  6055. * ) # otherwise, assume *nix
  6056. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  6057. ;;
  6058. esac
  6059. ;;
  6060. * ) # unhandled hosts (and "normal" native builds)
  6061. lt_cv_to_host_file_cmd=func_convert_file_noop
  6062. ;;
  6063. esac
  6064. fi
  6065. to_host_file_cmd=$lt_cv_to_host_file_cmd
  6066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  6067. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  6068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  6069. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  6070. if ${lt_cv_to_tool_file_cmd+:} false; then :
  6071. $as_echo_n "(cached) " >&6
  6072. else
  6073. #assume ordinary cross tools, or native build.
  6074. lt_cv_to_tool_file_cmd=func_convert_file_noop
  6075. case $host in
  6076. *-*-mingw* )
  6077. case $build in
  6078. *-*-mingw* ) # actually msys
  6079. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  6080. ;;
  6081. esac
  6082. ;;
  6083. esac
  6084. fi
  6085. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  6086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  6087. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  6088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  6089. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  6090. if ${lt_cv_ld_reload_flag+:} false; then :
  6091. $as_echo_n "(cached) " >&6
  6092. else
  6093. lt_cv_ld_reload_flag='-r'
  6094. fi
  6095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  6096. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  6097. reload_flag=$lt_cv_ld_reload_flag
  6098. case $reload_flag in
  6099. "" | " "*) ;;
  6100. *) reload_flag=" $reload_flag" ;;
  6101. esac
  6102. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6103. case $host_os in
  6104. cygwin* | mingw* | pw32* | cegcc*)
  6105. if test "$GCC" != yes; then
  6106. reload_cmds=false
  6107. fi
  6108. ;;
  6109. darwin*)
  6110. if test "$GCC" = yes; then
  6111. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  6112. else
  6113. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6114. fi
  6115. ;;
  6116. esac
  6117. if test -n "$ac_tool_prefix"; then
  6118. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6119. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6121. $as_echo_n "checking for $ac_word... " >&6; }
  6122. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6123. $as_echo_n "(cached) " >&6
  6124. else
  6125. if test -n "$OBJDUMP"; then
  6126. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6127. else
  6128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6129. for as_dir in $PATH
  6130. do
  6131. IFS=$as_save_IFS
  6132. test -z "$as_dir" && as_dir=.
  6133. for ac_exec_ext in '' $ac_executable_extensions; do
  6134. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6135. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6136. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6137. break 2
  6138. fi
  6139. done
  6140. done
  6141. IFS=$as_save_IFS
  6142. fi
  6143. fi
  6144. OBJDUMP=$ac_cv_prog_OBJDUMP
  6145. if test -n "$OBJDUMP"; then
  6146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6147. $as_echo "$OBJDUMP" >&6; }
  6148. else
  6149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6150. $as_echo "no" >&6; }
  6151. fi
  6152. fi
  6153. if test -z "$ac_cv_prog_OBJDUMP"; then
  6154. ac_ct_OBJDUMP=$OBJDUMP
  6155. # Extract the first word of "objdump", so it can be a program name with args.
  6156. set dummy objdump; ac_word=$2
  6157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6158. $as_echo_n "checking for $ac_word... " >&6; }
  6159. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6160. $as_echo_n "(cached) " >&6
  6161. else
  6162. if test -n "$ac_ct_OBJDUMP"; then
  6163. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6164. else
  6165. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6166. for as_dir in $PATH
  6167. do
  6168. IFS=$as_save_IFS
  6169. test -z "$as_dir" && as_dir=.
  6170. for ac_exec_ext in '' $ac_executable_extensions; do
  6171. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6172. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6173. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6174. break 2
  6175. fi
  6176. done
  6177. done
  6178. IFS=$as_save_IFS
  6179. fi
  6180. fi
  6181. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6182. if test -n "$ac_ct_OBJDUMP"; then
  6183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6184. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6185. else
  6186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6187. $as_echo "no" >&6; }
  6188. fi
  6189. if test "x$ac_ct_OBJDUMP" = x; then
  6190. OBJDUMP="false"
  6191. else
  6192. case $cross_compiling:$ac_tool_warned in
  6193. yes:)
  6194. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6195. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6196. ac_tool_warned=yes ;;
  6197. esac
  6198. OBJDUMP=$ac_ct_OBJDUMP
  6199. fi
  6200. else
  6201. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6202. fi
  6203. test -z "$OBJDUMP" && OBJDUMP=objdump
  6204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  6205. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  6206. if ${lt_cv_deplibs_check_method+:} false; then :
  6207. $as_echo_n "(cached) " >&6
  6208. else
  6209. lt_cv_file_magic_cmd='$MAGIC_CMD'
  6210. lt_cv_file_magic_test_file=
  6211. lt_cv_deplibs_check_method='unknown'
  6212. # Need to set the preceding variable on all platforms that support
  6213. # interlibrary dependencies.
  6214. # 'none' -- dependencies not supported.
  6215. # `unknown' -- same as none, but documents that we really don't know.
  6216. # 'pass_all' -- all dependencies passed with no checks.
  6217. # 'test_compile' -- check by making test program.
  6218. # 'file_magic [[regex]]' -- check by looking for files in library path
  6219. # which responds to the $file_magic_cmd with a given extended regex.
  6220. # If you have `file' or equivalent on your system and you're not sure
  6221. # whether `pass_all' will *always* work, you probably want this one.
  6222. case $host_os in
  6223. aix[4-9]*)
  6224. lt_cv_deplibs_check_method=pass_all
  6225. ;;
  6226. beos*)
  6227. lt_cv_deplibs_check_method=pass_all
  6228. ;;
  6229. bsdi[45]*)
  6230. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  6231. lt_cv_file_magic_cmd='/usr/bin/file -L'
  6232. lt_cv_file_magic_test_file=/shlib/libc.so
  6233. ;;
  6234. cygwin*)
  6235. # func_win32_libid is a shell function defined in ltmain.sh
  6236. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6237. lt_cv_file_magic_cmd='func_win32_libid'
  6238. ;;
  6239. mingw* | pw32*)
  6240. # Base MSYS/MinGW do not provide the 'file' command needed by
  6241. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  6242. # unless we find 'file', for example because we are cross-compiling.
  6243. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  6244. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  6245. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6246. lt_cv_file_magic_cmd='func_win32_libid'
  6247. else
  6248. # Keep this pattern in sync with the one in func_win32_libid.
  6249. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  6250. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6251. fi
  6252. ;;
  6253. cegcc*)
  6254. # use the weaker test based on 'objdump'. See mingw*.
  6255. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  6256. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6257. ;;
  6258. darwin* | rhapsody*)
  6259. lt_cv_deplibs_check_method=pass_all
  6260. ;;
  6261. freebsd* | dragonfly*)
  6262. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6263. case $host_cpu in
  6264. i*86 )
  6265. # Not sure whether the presence of OpenBSD here was a mistake.
  6266. # Let's accept both of them until this is cleared up.
  6267. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  6268. lt_cv_file_magic_cmd=/usr/bin/file
  6269. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  6270. ;;
  6271. esac
  6272. else
  6273. lt_cv_deplibs_check_method=pass_all
  6274. fi
  6275. ;;
  6276. gnu*)
  6277. lt_cv_deplibs_check_method=pass_all
  6278. ;;
  6279. haiku*)
  6280. lt_cv_deplibs_check_method=pass_all
  6281. ;;
  6282. hpux10.20* | hpux11*)
  6283. lt_cv_file_magic_cmd=/usr/bin/file
  6284. case $host_cpu in
  6285. ia64*)
  6286. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  6287. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6288. ;;
  6289. hppa*64*)
  6290. 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]'
  6291. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6292. ;;
  6293. *)
  6294. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  6295. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6296. ;;
  6297. esac
  6298. ;;
  6299. interix[3-9]*)
  6300. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6301. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  6302. ;;
  6303. irix5* | irix6* | nonstopux*)
  6304. case $LD in
  6305. *-32|*"-32 ") libmagic=32-bit;;
  6306. *-n32|*"-n32 ") libmagic=N32;;
  6307. *-64|*"-64 ") libmagic=64-bit;;
  6308. *) libmagic=never-match;;
  6309. esac
  6310. lt_cv_deplibs_check_method=pass_all
  6311. ;;
  6312. # This must be Linux ELF.
  6313. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6314. lt_cv_deplibs_check_method=pass_all
  6315. ;;
  6316. netbsd*)
  6317. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6318. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6319. else
  6320. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6321. fi
  6322. ;;
  6323. newos6*)
  6324. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6325. lt_cv_file_magic_cmd=/usr/bin/file
  6326. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6327. ;;
  6328. *nto* | *qnx*)
  6329. lt_cv_deplibs_check_method=pass_all
  6330. ;;
  6331. openbsd*)
  6332. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6333. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6334. else
  6335. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6336. fi
  6337. ;;
  6338. osf3* | osf4* | osf5*)
  6339. lt_cv_deplibs_check_method=pass_all
  6340. ;;
  6341. rdos*)
  6342. lt_cv_deplibs_check_method=pass_all
  6343. ;;
  6344. solaris*)
  6345. lt_cv_deplibs_check_method=pass_all
  6346. ;;
  6347. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6348. lt_cv_deplibs_check_method=pass_all
  6349. ;;
  6350. sysv4 | sysv4.3*)
  6351. case $host_vendor in
  6352. motorola)
  6353. 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]'
  6354. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6355. ;;
  6356. ncr)
  6357. lt_cv_deplibs_check_method=pass_all
  6358. ;;
  6359. sequent)
  6360. lt_cv_file_magic_cmd='/bin/file'
  6361. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6362. ;;
  6363. sni)
  6364. lt_cv_file_magic_cmd='/bin/file'
  6365. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6366. lt_cv_file_magic_test_file=/lib/libc.so
  6367. ;;
  6368. siemens)
  6369. lt_cv_deplibs_check_method=pass_all
  6370. ;;
  6371. pc)
  6372. lt_cv_deplibs_check_method=pass_all
  6373. ;;
  6374. esac
  6375. ;;
  6376. tpf*)
  6377. lt_cv_deplibs_check_method=pass_all
  6378. ;;
  6379. esac
  6380. fi
  6381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6382. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  6383. file_magic_glob=
  6384. want_nocaseglob=no
  6385. if test "$build" = "$host"; then
  6386. case $host_os in
  6387. mingw* | pw32*)
  6388. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  6389. want_nocaseglob=yes
  6390. else
  6391. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  6392. fi
  6393. ;;
  6394. esac
  6395. fi
  6396. file_magic_cmd=$lt_cv_file_magic_cmd
  6397. deplibs_check_method=$lt_cv_deplibs_check_method
  6398. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6399. if test -n "$ac_tool_prefix"; then
  6400. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6401. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6403. $as_echo_n "checking for $ac_word... " >&6; }
  6404. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6405. $as_echo_n "(cached) " >&6
  6406. else
  6407. if test -n "$DLLTOOL"; then
  6408. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6409. else
  6410. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6411. for as_dir in $PATH
  6412. do
  6413. IFS=$as_save_IFS
  6414. test -z "$as_dir" && as_dir=.
  6415. for ac_exec_ext in '' $ac_executable_extensions; do
  6416. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6417. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6418. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6419. break 2
  6420. fi
  6421. done
  6422. done
  6423. IFS=$as_save_IFS
  6424. fi
  6425. fi
  6426. DLLTOOL=$ac_cv_prog_DLLTOOL
  6427. if test -n "$DLLTOOL"; then
  6428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6429. $as_echo "$DLLTOOL" >&6; }
  6430. else
  6431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6432. $as_echo "no" >&6; }
  6433. fi
  6434. fi
  6435. if test -z "$ac_cv_prog_DLLTOOL"; then
  6436. ac_ct_DLLTOOL=$DLLTOOL
  6437. # Extract the first word of "dlltool", so it can be a program name with args.
  6438. set dummy dlltool; ac_word=$2
  6439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6440. $as_echo_n "checking for $ac_word... " >&6; }
  6441. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6442. $as_echo_n "(cached) " >&6
  6443. else
  6444. if test -n "$ac_ct_DLLTOOL"; then
  6445. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6446. else
  6447. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6448. for as_dir in $PATH
  6449. do
  6450. IFS=$as_save_IFS
  6451. test -z "$as_dir" && as_dir=.
  6452. for ac_exec_ext in '' $ac_executable_extensions; do
  6453. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6454. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6455. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6456. break 2
  6457. fi
  6458. done
  6459. done
  6460. IFS=$as_save_IFS
  6461. fi
  6462. fi
  6463. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6464. if test -n "$ac_ct_DLLTOOL"; then
  6465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6466. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6467. else
  6468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6469. $as_echo "no" >&6; }
  6470. fi
  6471. if test "x$ac_ct_DLLTOOL" = x; then
  6472. DLLTOOL="false"
  6473. else
  6474. case $cross_compiling:$ac_tool_warned in
  6475. yes:)
  6476. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6477. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6478. ac_tool_warned=yes ;;
  6479. esac
  6480. DLLTOOL=$ac_ct_DLLTOOL
  6481. fi
  6482. else
  6483. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6484. fi
  6485. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  6487. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  6488. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  6489. $as_echo_n "(cached) " >&6
  6490. else
  6491. lt_cv_sharedlib_from_linklib_cmd='unknown'
  6492. case $host_os in
  6493. cygwin* | mingw* | pw32* | cegcc*)
  6494. # two different shell functions defined in ltmain.sh
  6495. # decide which to use based on capabilities of $DLLTOOL
  6496. case `$DLLTOOL --help 2>&1` in
  6497. *--identify-strict*)
  6498. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  6499. ;;
  6500. *)
  6501. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6502. ;;
  6503. esac
  6504. ;;
  6505. *)
  6506. # fallback: assume linklib IS sharedlib
  6507. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  6508. ;;
  6509. esac
  6510. fi
  6511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6512. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6513. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6514. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6515. if test -n "$ac_tool_prefix"; then
  6516. for ac_prog in ar
  6517. do
  6518. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6519. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6521. $as_echo_n "checking for $ac_word... " >&6; }
  6522. if ${ac_cv_prog_AR+:} false; then :
  6523. $as_echo_n "(cached) " >&6
  6524. else
  6525. if test -n "$AR"; then
  6526. ac_cv_prog_AR="$AR" # Let the user override the test.
  6527. else
  6528. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6529. for as_dir in $PATH
  6530. do
  6531. IFS=$as_save_IFS
  6532. test -z "$as_dir" && as_dir=.
  6533. for ac_exec_ext in '' $ac_executable_extensions; do
  6534. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6535. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6536. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6537. break 2
  6538. fi
  6539. done
  6540. done
  6541. IFS=$as_save_IFS
  6542. fi
  6543. fi
  6544. AR=$ac_cv_prog_AR
  6545. if test -n "$AR"; then
  6546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6547. $as_echo "$AR" >&6; }
  6548. else
  6549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6550. $as_echo "no" >&6; }
  6551. fi
  6552. test -n "$AR" && break
  6553. done
  6554. fi
  6555. if test -z "$AR"; then
  6556. ac_ct_AR=$AR
  6557. for ac_prog in ar
  6558. do
  6559. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6560. set dummy $ac_prog; ac_word=$2
  6561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6562. $as_echo_n "checking for $ac_word... " >&6; }
  6563. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6564. $as_echo_n "(cached) " >&6
  6565. else
  6566. if test -n "$ac_ct_AR"; then
  6567. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6568. else
  6569. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6570. for as_dir in $PATH
  6571. do
  6572. IFS=$as_save_IFS
  6573. test -z "$as_dir" && as_dir=.
  6574. for ac_exec_ext in '' $ac_executable_extensions; do
  6575. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6576. ac_cv_prog_ac_ct_AR="$ac_prog"
  6577. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6578. break 2
  6579. fi
  6580. done
  6581. done
  6582. IFS=$as_save_IFS
  6583. fi
  6584. fi
  6585. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6586. if test -n "$ac_ct_AR"; then
  6587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6588. $as_echo "$ac_ct_AR" >&6; }
  6589. else
  6590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6591. $as_echo "no" >&6; }
  6592. fi
  6593. test -n "$ac_ct_AR" && break
  6594. done
  6595. if test "x$ac_ct_AR" = x; then
  6596. AR="false"
  6597. else
  6598. case $cross_compiling:$ac_tool_warned in
  6599. yes:)
  6600. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6601. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6602. ac_tool_warned=yes ;;
  6603. esac
  6604. AR=$ac_ct_AR
  6605. fi
  6606. fi
  6607. : ${AR=ar}
  6608. : ${AR_FLAGS=cru}
  6609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6610. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6611. if ${lt_cv_ar_at_file+:} false; then :
  6612. $as_echo_n "(cached) " >&6
  6613. else
  6614. lt_cv_ar_at_file=no
  6615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6616. /* end confdefs.h. */
  6617. int
  6618. main ()
  6619. {
  6620. ;
  6621. return 0;
  6622. }
  6623. _ACEOF
  6624. if ac_fn_c_try_compile "$LINENO"; then :
  6625. echo conftest.$ac_objext > conftest.lst
  6626. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6627. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6628. (eval $lt_ar_try) 2>&5
  6629. ac_status=$?
  6630. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6631. test $ac_status = 0; }
  6632. if test "$ac_status" -eq 0; then
  6633. # Ensure the archiver fails upon bogus file names.
  6634. rm -f conftest.$ac_objext libconftest.a
  6635. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6636. (eval $lt_ar_try) 2>&5
  6637. ac_status=$?
  6638. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6639. test $ac_status = 0; }
  6640. if test "$ac_status" -ne 0; then
  6641. lt_cv_ar_at_file=@
  6642. fi
  6643. fi
  6644. rm -f conftest.* libconftest.a
  6645. fi
  6646. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6647. fi
  6648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6649. $as_echo "$lt_cv_ar_at_file" >&6; }
  6650. if test "x$lt_cv_ar_at_file" = xno; then
  6651. archiver_list_spec=
  6652. else
  6653. archiver_list_spec=$lt_cv_ar_at_file
  6654. fi
  6655. if test -n "$ac_tool_prefix"; then
  6656. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6657. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6659. $as_echo_n "checking for $ac_word... " >&6; }
  6660. if ${ac_cv_prog_STRIP+:} false; then :
  6661. $as_echo_n "(cached) " >&6
  6662. else
  6663. if test -n "$STRIP"; then
  6664. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6665. else
  6666. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6667. for as_dir in $PATH
  6668. do
  6669. IFS=$as_save_IFS
  6670. test -z "$as_dir" && as_dir=.
  6671. for ac_exec_ext in '' $ac_executable_extensions; do
  6672. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6673. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6674. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6675. break 2
  6676. fi
  6677. done
  6678. done
  6679. IFS=$as_save_IFS
  6680. fi
  6681. fi
  6682. STRIP=$ac_cv_prog_STRIP
  6683. if test -n "$STRIP"; then
  6684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6685. $as_echo "$STRIP" >&6; }
  6686. else
  6687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6688. $as_echo "no" >&6; }
  6689. fi
  6690. fi
  6691. if test -z "$ac_cv_prog_STRIP"; then
  6692. ac_ct_STRIP=$STRIP
  6693. # Extract the first word of "strip", so it can be a program name with args.
  6694. set dummy strip; ac_word=$2
  6695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6696. $as_echo_n "checking for $ac_word... " >&6; }
  6697. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6698. $as_echo_n "(cached) " >&6
  6699. else
  6700. if test -n "$ac_ct_STRIP"; then
  6701. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6702. else
  6703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6704. for as_dir in $PATH
  6705. do
  6706. IFS=$as_save_IFS
  6707. test -z "$as_dir" && as_dir=.
  6708. for ac_exec_ext in '' $ac_executable_extensions; do
  6709. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6710. ac_cv_prog_ac_ct_STRIP="strip"
  6711. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6712. break 2
  6713. fi
  6714. done
  6715. done
  6716. IFS=$as_save_IFS
  6717. fi
  6718. fi
  6719. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6720. if test -n "$ac_ct_STRIP"; then
  6721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6722. $as_echo "$ac_ct_STRIP" >&6; }
  6723. else
  6724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6725. $as_echo "no" >&6; }
  6726. fi
  6727. if test "x$ac_ct_STRIP" = x; then
  6728. STRIP=":"
  6729. else
  6730. case $cross_compiling:$ac_tool_warned in
  6731. yes:)
  6732. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6733. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6734. ac_tool_warned=yes ;;
  6735. esac
  6736. STRIP=$ac_ct_STRIP
  6737. fi
  6738. else
  6739. STRIP="$ac_cv_prog_STRIP"
  6740. fi
  6741. test -z "$STRIP" && STRIP=:
  6742. if test -n "$ac_tool_prefix"; then
  6743. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6744. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6746. $as_echo_n "checking for $ac_word... " >&6; }
  6747. if ${ac_cv_prog_RANLIB+:} false; then :
  6748. $as_echo_n "(cached) " >&6
  6749. else
  6750. if test -n "$RANLIB"; then
  6751. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6752. else
  6753. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6754. for as_dir in $PATH
  6755. do
  6756. IFS=$as_save_IFS
  6757. test -z "$as_dir" && as_dir=.
  6758. for ac_exec_ext in '' $ac_executable_extensions; do
  6759. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6760. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6761. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6762. break 2
  6763. fi
  6764. done
  6765. done
  6766. IFS=$as_save_IFS
  6767. fi
  6768. fi
  6769. RANLIB=$ac_cv_prog_RANLIB
  6770. if test -n "$RANLIB"; then
  6771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6772. $as_echo "$RANLIB" >&6; }
  6773. else
  6774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6775. $as_echo "no" >&6; }
  6776. fi
  6777. fi
  6778. if test -z "$ac_cv_prog_RANLIB"; then
  6779. ac_ct_RANLIB=$RANLIB
  6780. # Extract the first word of "ranlib", so it can be a program name with args.
  6781. set dummy ranlib; ac_word=$2
  6782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6783. $as_echo_n "checking for $ac_word... " >&6; }
  6784. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6785. $as_echo_n "(cached) " >&6
  6786. else
  6787. if test -n "$ac_ct_RANLIB"; then
  6788. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6789. else
  6790. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6791. for as_dir in $PATH
  6792. do
  6793. IFS=$as_save_IFS
  6794. test -z "$as_dir" && as_dir=.
  6795. for ac_exec_ext in '' $ac_executable_extensions; do
  6796. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6797. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6798. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6799. break 2
  6800. fi
  6801. done
  6802. done
  6803. IFS=$as_save_IFS
  6804. fi
  6805. fi
  6806. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6807. if test -n "$ac_ct_RANLIB"; then
  6808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6809. $as_echo "$ac_ct_RANLIB" >&6; }
  6810. else
  6811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6812. $as_echo "no" >&6; }
  6813. fi
  6814. if test "x$ac_ct_RANLIB" = x; then
  6815. RANLIB=":"
  6816. else
  6817. case $cross_compiling:$ac_tool_warned in
  6818. yes:)
  6819. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6820. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6821. ac_tool_warned=yes ;;
  6822. esac
  6823. RANLIB=$ac_ct_RANLIB
  6824. fi
  6825. else
  6826. RANLIB="$ac_cv_prog_RANLIB"
  6827. fi
  6828. test -z "$RANLIB" && RANLIB=:
  6829. # Determine commands to create old-style static archives.
  6830. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6831. old_postinstall_cmds='chmod 644 $oldlib'
  6832. old_postuninstall_cmds=
  6833. if test -n "$RANLIB"; then
  6834. case $host_os in
  6835. openbsd*)
  6836. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6837. ;;
  6838. *)
  6839. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6840. ;;
  6841. esac
  6842. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6843. fi
  6844. case $host_os in
  6845. darwin*)
  6846. lock_old_archive_extraction=yes ;;
  6847. *)
  6848. lock_old_archive_extraction=no ;;
  6849. esac
  6850. # If no C compiler was specified, use CC.
  6851. LTCC=${LTCC-"$CC"}
  6852. # If no C compiler flags were specified, use CFLAGS.
  6853. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6854. # Allow CC to be a program name with arguments.
  6855. compiler=$CC
  6856. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6858. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6859. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6860. $as_echo_n "(cached) " >&6
  6861. else
  6862. # These are sane defaults that work on at least a few old systems.
  6863. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6864. # Character class describing NM global symbol codes.
  6865. symcode='[BCDEGRST]'
  6866. # Regexp to match symbols that can be accessed directly from C.
  6867. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6868. # Define system-specific variables.
  6869. case $host_os in
  6870. aix*)
  6871. symcode='[BCDT]'
  6872. ;;
  6873. cygwin* | mingw* | pw32* | cegcc*)
  6874. symcode='[ABCDGISTW]'
  6875. ;;
  6876. hpux*)
  6877. if test "$host_cpu" = ia64; then
  6878. symcode='[ABCDEGRST]'
  6879. fi
  6880. ;;
  6881. irix* | nonstopux*)
  6882. symcode='[BCDEGRST]'
  6883. ;;
  6884. osf*)
  6885. symcode='[BCDEGQRST]'
  6886. ;;
  6887. solaris*)
  6888. symcode='[BDRT]'
  6889. ;;
  6890. sco3.2v5*)
  6891. symcode='[DT]'
  6892. ;;
  6893. sysv4.2uw2*)
  6894. symcode='[DT]'
  6895. ;;
  6896. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6897. symcode='[ABDT]'
  6898. ;;
  6899. sysv4)
  6900. symcode='[DFNSTU]'
  6901. ;;
  6902. esac
  6903. # If we're using GNU nm, then use its standard symbol codes.
  6904. case `$NM -V 2>&1` in
  6905. *GNU* | *'with BFD'*)
  6906. symcode='[ABCDGIRSTW]' ;;
  6907. esac
  6908. # Transform an extracted symbol line into a proper C declaration.
  6909. # Some systems (esp. on ia64) link data and code symbols differently,
  6910. # so use this general approach.
  6911. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6912. # Transform an extracted symbol line into symbol name and symbol address
  6913. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6914. 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'"
  6915. # Handle CRLF in mingw tool chain
  6916. opt_cr=
  6917. case $build_os in
  6918. mingw*)
  6919. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6920. ;;
  6921. esac
  6922. # Try without a prefix underscore, then with it.
  6923. for ac_symprfx in "" "_"; do
  6924. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6925. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6926. # Write the raw and C identifiers.
  6927. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6928. # Fake it for dumpbin and say T for any non-static function
  6929. # and D for any global variable.
  6930. # Also find C++ and __fastcall symbols from MSVC++,
  6931. # which start with @ or ?.
  6932. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6933. " {last_section=section; section=\$ 3};"\
  6934. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6935. " \$ 0!~/External *\|/{next};"\
  6936. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6937. " {if(hide[section]) next};"\
  6938. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6939. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6940. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6941. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6942. " ' prfx=^$ac_symprfx"
  6943. else
  6944. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6945. fi
  6946. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6947. # Check to see that the pipe works correctly.
  6948. pipe_works=no
  6949. rm -f conftest*
  6950. cat > conftest.$ac_ext <<_LT_EOF
  6951. #ifdef __cplusplus
  6952. extern "C" {
  6953. #endif
  6954. char nm_test_var;
  6955. void nm_test_func(void);
  6956. void nm_test_func(void){}
  6957. #ifdef __cplusplus
  6958. }
  6959. #endif
  6960. int main(){nm_test_var='a';nm_test_func();return(0);}
  6961. _LT_EOF
  6962. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6963. (eval $ac_compile) 2>&5
  6964. ac_status=$?
  6965. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6966. test $ac_status = 0; }; then
  6967. # Now try to grab the symbols.
  6968. nlist=conftest.nm
  6969. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6970. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6971. ac_status=$?
  6972. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6973. test $ac_status = 0; } && test -s "$nlist"; then
  6974. # Try sorting and uniquifying the output.
  6975. if sort "$nlist" | uniq > "$nlist"T; then
  6976. mv -f "$nlist"T "$nlist"
  6977. else
  6978. rm -f "$nlist"T
  6979. fi
  6980. # Make sure that we snagged all the symbols we need.
  6981. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6982. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6983. cat <<_LT_EOF > conftest.$ac_ext
  6984. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6985. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6986. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6987. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6988. # define LT@&t@_DLSYM_CONST
  6989. #elif defined(__osf__)
  6990. /* This system does not cope well with relocations in const data. */
  6991. # define LT@&t@_DLSYM_CONST
  6992. #else
  6993. # define LT@&t@_DLSYM_CONST const
  6994. #endif
  6995. #ifdef __cplusplus
  6996. extern "C" {
  6997. #endif
  6998. _LT_EOF
  6999. # Now generate the symbol file.
  7000. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  7001. cat <<_LT_EOF >> conftest.$ac_ext
  7002. /* The mapping between symbol names and symbols. */
  7003. LT@&t@_DLSYM_CONST struct {
  7004. const char *name;
  7005. void *address;
  7006. }
  7007. lt__PROGRAM__LTX_preloaded_symbols[] =
  7008. {
  7009. { "@PROGRAM@", (void *) 0 },
  7010. _LT_EOF
  7011. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  7012. cat <<\_LT_EOF >> conftest.$ac_ext
  7013. {0, (void *) 0}
  7014. };
  7015. /* This works around a problem in FreeBSD linker */
  7016. #ifdef FREEBSD_WORKAROUND
  7017. static const void *lt_preloaded_setup() {
  7018. return lt__PROGRAM__LTX_preloaded_symbols;
  7019. }
  7020. #endif
  7021. #ifdef __cplusplus
  7022. }
  7023. #endif
  7024. _LT_EOF
  7025. # Now try linking the two files.
  7026. mv conftest.$ac_objext conftstm.$ac_objext
  7027. lt_globsym_save_LIBS=$LIBS
  7028. lt_globsym_save_CFLAGS=$CFLAGS
  7029. LIBS="conftstm.$ac_objext"
  7030. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  7031. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  7032. (eval $ac_link) 2>&5
  7033. ac_status=$?
  7034. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7035. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  7036. pipe_works=yes
  7037. fi
  7038. LIBS=$lt_globsym_save_LIBS
  7039. CFLAGS=$lt_globsym_save_CFLAGS
  7040. else
  7041. echo "cannot find nm_test_func in $nlist" >&5
  7042. fi
  7043. else
  7044. echo "cannot find nm_test_var in $nlist" >&5
  7045. fi
  7046. else
  7047. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  7048. fi
  7049. else
  7050. echo "$progname: failed program was:" >&5
  7051. cat conftest.$ac_ext >&5
  7052. fi
  7053. rm -rf conftest* conftst*
  7054. # Do not use the global_symbol_pipe unless it works.
  7055. if test "$pipe_works" = yes; then
  7056. break
  7057. else
  7058. lt_cv_sys_global_symbol_pipe=
  7059. fi
  7060. done
  7061. fi
  7062. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  7063. lt_cv_sys_global_symbol_to_cdecl=
  7064. fi
  7065. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  7066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  7067. $as_echo "failed" >&6; }
  7068. else
  7069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  7070. $as_echo "ok" >&6; }
  7071. fi
  7072. # Response file support.
  7073. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7074. nm_file_list_spec='@'
  7075. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  7076. nm_file_list_spec='@'
  7077. fi
  7078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  7079. $as_echo_n "checking for sysroot... " >&6; }
  7080. @%:@ Check whether --with-sysroot was given.
  7081. if test "${with_sysroot+set}" = set; then :
  7082. withval=$with_sysroot;
  7083. else
  7084. with_sysroot=no
  7085. fi
  7086. lt_sysroot=
  7087. case ${with_sysroot} in #(
  7088. yes)
  7089. if test "$GCC" = yes; then
  7090. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  7091. fi
  7092. ;; #(
  7093. /*)
  7094. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  7095. ;; #(
  7096. no|'')
  7097. ;; #(
  7098. *)
  7099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  7100. $as_echo "${with_sysroot}" >&6; }
  7101. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  7102. ;;
  7103. esac
  7104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  7105. $as_echo "${lt_sysroot:-no}" >&6; }
  7106. @%:@ Check whether --enable-libtool-lock was given.
  7107. if test "${enable_libtool_lock+set}" = set; then :
  7108. enableval=$enable_libtool_lock;
  7109. fi
  7110. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  7111. # Some flags need to be propagated to the compiler or linker for good
  7112. # libtool support.
  7113. case $host in
  7114. ia64-*-hpux*)
  7115. # Find out which ABI we are using.
  7116. echo 'int i;' > conftest.$ac_ext
  7117. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7118. (eval $ac_compile) 2>&5
  7119. ac_status=$?
  7120. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7121. test $ac_status = 0; }; then
  7122. case `/usr/bin/file conftest.$ac_objext` in
  7123. *ELF-32*)
  7124. HPUX_IA64_MODE="32"
  7125. ;;
  7126. *ELF-64*)
  7127. HPUX_IA64_MODE="64"
  7128. ;;
  7129. esac
  7130. fi
  7131. rm -rf conftest*
  7132. ;;
  7133. *-*-irix6*)
  7134. # Find out which ABI we are using.
  7135. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7136. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7137. (eval $ac_compile) 2>&5
  7138. ac_status=$?
  7139. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7140. test $ac_status = 0; }; then
  7141. if test "$lt_cv_prog_gnu_ld" = yes; then
  7142. case `/usr/bin/file conftest.$ac_objext` in
  7143. *32-bit*)
  7144. LD="${LD-ld} -melf32bsmip"
  7145. ;;
  7146. *N32*)
  7147. LD="${LD-ld} -melf32bmipn32"
  7148. ;;
  7149. *64-bit*)
  7150. LD="${LD-ld} -melf64bmip"
  7151. ;;
  7152. esac
  7153. else
  7154. case `/usr/bin/file conftest.$ac_objext` in
  7155. *32-bit*)
  7156. LD="${LD-ld} -32"
  7157. ;;
  7158. *N32*)
  7159. LD="${LD-ld} -n32"
  7160. ;;
  7161. *64-bit*)
  7162. LD="${LD-ld} -64"
  7163. ;;
  7164. esac
  7165. fi
  7166. fi
  7167. rm -rf conftest*
  7168. ;;
  7169. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  7170. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  7171. # Find out which ABI we are using.
  7172. echo 'int i;' > conftest.$ac_ext
  7173. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7174. (eval $ac_compile) 2>&5
  7175. ac_status=$?
  7176. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7177. test $ac_status = 0; }; then
  7178. case `/usr/bin/file conftest.o` in
  7179. *32-bit*)
  7180. case $host in
  7181. x86_64-*kfreebsd*-gnu)
  7182. LD="${LD-ld} -m elf_i386_fbsd"
  7183. ;;
  7184. x86_64-*linux*)
  7185. LD="${LD-ld} -m elf_i386"
  7186. ;;
  7187. ppc64-*linux*|powerpc64-*linux*)
  7188. LD="${LD-ld} -m elf32ppclinux"
  7189. ;;
  7190. s390x-*linux*)
  7191. LD="${LD-ld} -m elf_s390"
  7192. ;;
  7193. sparc64-*linux*)
  7194. LD="${LD-ld} -m elf32_sparc"
  7195. ;;
  7196. esac
  7197. ;;
  7198. *64-bit*)
  7199. case $host in
  7200. x86_64-*kfreebsd*-gnu)
  7201. LD="${LD-ld} -m elf_x86_64_fbsd"
  7202. ;;
  7203. x86_64-*linux*)
  7204. LD="${LD-ld} -m elf_x86_64"
  7205. ;;
  7206. ppc*-*linux*|powerpc*-*linux*)
  7207. LD="${LD-ld} -m elf64ppc"
  7208. ;;
  7209. s390*-*linux*|s390*-*tpf*)
  7210. LD="${LD-ld} -m elf64_s390"
  7211. ;;
  7212. sparc*-*linux*)
  7213. LD="${LD-ld} -m elf64_sparc"
  7214. ;;
  7215. esac
  7216. ;;
  7217. esac
  7218. fi
  7219. rm -rf conftest*
  7220. ;;
  7221. *-*-sco3.2v5*)
  7222. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7223. SAVE_CFLAGS="$CFLAGS"
  7224. CFLAGS="$CFLAGS -belf"
  7225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  7226. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  7227. if ${lt_cv_cc_needs_belf+:} false; then :
  7228. $as_echo_n "(cached) " >&6
  7229. else
  7230. ac_ext=c
  7231. ac_cpp='$CPP $CPPFLAGS'
  7232. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7233. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7234. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7236. /* end confdefs.h. */
  7237. int
  7238. main ()
  7239. {
  7240. ;
  7241. return 0;
  7242. }
  7243. _ACEOF
  7244. if ac_fn_c_try_link "$LINENO"; then :
  7245. lt_cv_cc_needs_belf=yes
  7246. else
  7247. lt_cv_cc_needs_belf=no
  7248. fi
  7249. rm -f core conftest.err conftest.$ac_objext \
  7250. conftest$ac_exeext conftest.$ac_ext
  7251. ac_ext=c
  7252. ac_cpp='$CPP $CPPFLAGS'
  7253. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7254. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7255. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7256. fi
  7257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7258. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  7259. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  7260. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7261. CFLAGS="$SAVE_CFLAGS"
  7262. fi
  7263. ;;
  7264. sparc*-*solaris*)
  7265. # Find out which ABI we are using.
  7266. echo 'int i;' > conftest.$ac_ext
  7267. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7268. (eval $ac_compile) 2>&5
  7269. ac_status=$?
  7270. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7271. test $ac_status = 0; }; then
  7272. case `/usr/bin/file conftest.o` in
  7273. *64-bit*)
  7274. case $lt_cv_prog_gnu_ld in
  7275. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  7276. *)
  7277. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7278. LD="${LD-ld} -64"
  7279. fi
  7280. ;;
  7281. esac
  7282. ;;
  7283. esac
  7284. fi
  7285. rm -rf conftest*
  7286. ;;
  7287. esac
  7288. need_locks="$enable_libtool_lock"
  7289. if test -n "$ac_tool_prefix"; then
  7290. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  7291. set dummy ${ac_tool_prefix}mt; ac_word=$2
  7292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7293. $as_echo_n "checking for $ac_word... " >&6; }
  7294. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  7295. $as_echo_n "(cached) " >&6
  7296. else
  7297. if test -n "$MANIFEST_TOOL"; then
  7298. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  7299. else
  7300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7301. for as_dir in $PATH
  7302. do
  7303. IFS=$as_save_IFS
  7304. test -z "$as_dir" && as_dir=.
  7305. for ac_exec_ext in '' $ac_executable_extensions; do
  7306. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7307. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  7308. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7309. break 2
  7310. fi
  7311. done
  7312. done
  7313. IFS=$as_save_IFS
  7314. fi
  7315. fi
  7316. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  7317. if test -n "$MANIFEST_TOOL"; then
  7318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  7319. $as_echo "$MANIFEST_TOOL" >&6; }
  7320. else
  7321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7322. $as_echo "no" >&6; }
  7323. fi
  7324. fi
  7325. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  7326. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  7327. # Extract the first word of "mt", so it can be a program name with args.
  7328. set dummy mt; ac_word=$2
  7329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7330. $as_echo_n "checking for $ac_word... " >&6; }
  7331. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  7332. $as_echo_n "(cached) " >&6
  7333. else
  7334. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7335. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  7336. else
  7337. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7338. for as_dir in $PATH
  7339. do
  7340. IFS=$as_save_IFS
  7341. test -z "$as_dir" && as_dir=.
  7342. for ac_exec_ext in '' $ac_executable_extensions; do
  7343. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7344. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  7345. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7346. break 2
  7347. fi
  7348. done
  7349. done
  7350. IFS=$as_save_IFS
  7351. fi
  7352. fi
  7353. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  7354. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  7356. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  7357. else
  7358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7359. $as_echo "no" >&6; }
  7360. fi
  7361. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  7362. MANIFEST_TOOL=":"
  7363. else
  7364. case $cross_compiling:$ac_tool_warned in
  7365. yes:)
  7366. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7367. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7368. ac_tool_warned=yes ;;
  7369. esac
  7370. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  7371. fi
  7372. else
  7373. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  7374. fi
  7375. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  7376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  7377. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  7378. if ${lt_cv_path_mainfest_tool+:} false; then :
  7379. $as_echo_n "(cached) " >&6
  7380. else
  7381. lt_cv_path_mainfest_tool=no
  7382. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  7383. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  7384. cat conftest.err >&5
  7385. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  7386. lt_cv_path_mainfest_tool=yes
  7387. fi
  7388. rm -f conftest*
  7389. fi
  7390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  7391. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  7392. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  7393. MANIFEST_TOOL=:
  7394. fi
  7395. case $host_os in
  7396. rhapsody* | darwin*)
  7397. if test -n "$ac_tool_prefix"; then
  7398. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7399. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7401. $as_echo_n "checking for $ac_word... " >&6; }
  7402. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  7403. $as_echo_n "(cached) " >&6
  7404. else
  7405. if test -n "$DSYMUTIL"; then
  7406. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7407. else
  7408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7409. for as_dir in $PATH
  7410. do
  7411. IFS=$as_save_IFS
  7412. test -z "$as_dir" && as_dir=.
  7413. for ac_exec_ext in '' $ac_executable_extensions; do
  7414. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7415. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7416. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7417. break 2
  7418. fi
  7419. done
  7420. done
  7421. IFS=$as_save_IFS
  7422. fi
  7423. fi
  7424. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7425. if test -n "$DSYMUTIL"; then
  7426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7427. $as_echo "$DSYMUTIL" >&6; }
  7428. else
  7429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7430. $as_echo "no" >&6; }
  7431. fi
  7432. fi
  7433. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7434. ac_ct_DSYMUTIL=$DSYMUTIL
  7435. # Extract the first word of "dsymutil", so it can be a program name with args.
  7436. set dummy dsymutil; ac_word=$2
  7437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7438. $as_echo_n "checking for $ac_word... " >&6; }
  7439. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  7440. $as_echo_n "(cached) " >&6
  7441. else
  7442. if test -n "$ac_ct_DSYMUTIL"; then
  7443. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7444. else
  7445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7446. for as_dir in $PATH
  7447. do
  7448. IFS=$as_save_IFS
  7449. test -z "$as_dir" && as_dir=.
  7450. for ac_exec_ext in '' $ac_executable_extensions; do
  7451. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7452. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7453. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7454. break 2
  7455. fi
  7456. done
  7457. done
  7458. IFS=$as_save_IFS
  7459. fi
  7460. fi
  7461. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7462. if test -n "$ac_ct_DSYMUTIL"; then
  7463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7464. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7465. else
  7466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7467. $as_echo "no" >&6; }
  7468. fi
  7469. if test "x$ac_ct_DSYMUTIL" = x; then
  7470. DSYMUTIL=":"
  7471. else
  7472. case $cross_compiling:$ac_tool_warned in
  7473. yes:)
  7474. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7475. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7476. ac_tool_warned=yes ;;
  7477. esac
  7478. DSYMUTIL=$ac_ct_DSYMUTIL
  7479. fi
  7480. else
  7481. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7482. fi
  7483. if test -n "$ac_tool_prefix"; then
  7484. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7485. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7487. $as_echo_n "checking for $ac_word... " >&6; }
  7488. if ${ac_cv_prog_NMEDIT+:} false; then :
  7489. $as_echo_n "(cached) " >&6
  7490. else
  7491. if test -n "$NMEDIT"; then
  7492. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7493. else
  7494. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7495. for as_dir in $PATH
  7496. do
  7497. IFS=$as_save_IFS
  7498. test -z "$as_dir" && as_dir=.
  7499. for ac_exec_ext in '' $ac_executable_extensions; do
  7500. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7501. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7502. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7503. break 2
  7504. fi
  7505. done
  7506. done
  7507. IFS=$as_save_IFS
  7508. fi
  7509. fi
  7510. NMEDIT=$ac_cv_prog_NMEDIT
  7511. if test -n "$NMEDIT"; then
  7512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7513. $as_echo "$NMEDIT" >&6; }
  7514. else
  7515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7516. $as_echo "no" >&6; }
  7517. fi
  7518. fi
  7519. if test -z "$ac_cv_prog_NMEDIT"; then
  7520. ac_ct_NMEDIT=$NMEDIT
  7521. # Extract the first word of "nmedit", so it can be a program name with args.
  7522. set dummy nmedit; ac_word=$2
  7523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7524. $as_echo_n "checking for $ac_word... " >&6; }
  7525. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7526. $as_echo_n "(cached) " >&6
  7527. else
  7528. if test -n "$ac_ct_NMEDIT"; then
  7529. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7530. else
  7531. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7532. for as_dir in $PATH
  7533. do
  7534. IFS=$as_save_IFS
  7535. test -z "$as_dir" && as_dir=.
  7536. for ac_exec_ext in '' $ac_executable_extensions; do
  7537. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7538. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7539. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7540. break 2
  7541. fi
  7542. done
  7543. done
  7544. IFS=$as_save_IFS
  7545. fi
  7546. fi
  7547. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7548. if test -n "$ac_ct_NMEDIT"; then
  7549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7550. $as_echo "$ac_ct_NMEDIT" >&6; }
  7551. else
  7552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7553. $as_echo "no" >&6; }
  7554. fi
  7555. if test "x$ac_ct_NMEDIT" = x; then
  7556. NMEDIT=":"
  7557. else
  7558. case $cross_compiling:$ac_tool_warned in
  7559. yes:)
  7560. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7561. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7562. ac_tool_warned=yes ;;
  7563. esac
  7564. NMEDIT=$ac_ct_NMEDIT
  7565. fi
  7566. else
  7567. NMEDIT="$ac_cv_prog_NMEDIT"
  7568. fi
  7569. if test -n "$ac_tool_prefix"; then
  7570. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7571. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7573. $as_echo_n "checking for $ac_word... " >&6; }
  7574. if ${ac_cv_prog_LIPO+:} false; then :
  7575. $as_echo_n "(cached) " >&6
  7576. else
  7577. if test -n "$LIPO"; then
  7578. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7579. else
  7580. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7581. for as_dir in $PATH
  7582. do
  7583. IFS=$as_save_IFS
  7584. test -z "$as_dir" && as_dir=.
  7585. for ac_exec_ext in '' $ac_executable_extensions; do
  7586. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7587. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7588. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7589. break 2
  7590. fi
  7591. done
  7592. done
  7593. IFS=$as_save_IFS
  7594. fi
  7595. fi
  7596. LIPO=$ac_cv_prog_LIPO
  7597. if test -n "$LIPO"; then
  7598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7599. $as_echo "$LIPO" >&6; }
  7600. else
  7601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7602. $as_echo "no" >&6; }
  7603. fi
  7604. fi
  7605. if test -z "$ac_cv_prog_LIPO"; then
  7606. ac_ct_LIPO=$LIPO
  7607. # Extract the first word of "lipo", so it can be a program name with args.
  7608. set dummy lipo; ac_word=$2
  7609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7610. $as_echo_n "checking for $ac_word... " >&6; }
  7611. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7612. $as_echo_n "(cached) " >&6
  7613. else
  7614. if test -n "$ac_ct_LIPO"; then
  7615. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7616. else
  7617. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7618. for as_dir in $PATH
  7619. do
  7620. IFS=$as_save_IFS
  7621. test -z "$as_dir" && as_dir=.
  7622. for ac_exec_ext in '' $ac_executable_extensions; do
  7623. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7624. ac_cv_prog_ac_ct_LIPO="lipo"
  7625. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7626. break 2
  7627. fi
  7628. done
  7629. done
  7630. IFS=$as_save_IFS
  7631. fi
  7632. fi
  7633. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7634. if test -n "$ac_ct_LIPO"; then
  7635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7636. $as_echo "$ac_ct_LIPO" >&6; }
  7637. else
  7638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7639. $as_echo "no" >&6; }
  7640. fi
  7641. if test "x$ac_ct_LIPO" = x; then
  7642. LIPO=":"
  7643. else
  7644. case $cross_compiling:$ac_tool_warned in
  7645. yes:)
  7646. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7647. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7648. ac_tool_warned=yes ;;
  7649. esac
  7650. LIPO=$ac_ct_LIPO
  7651. fi
  7652. else
  7653. LIPO="$ac_cv_prog_LIPO"
  7654. fi
  7655. if test -n "$ac_tool_prefix"; then
  7656. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7657. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7659. $as_echo_n "checking for $ac_word... " >&6; }
  7660. if ${ac_cv_prog_OTOOL+:} false; then :
  7661. $as_echo_n "(cached) " >&6
  7662. else
  7663. if test -n "$OTOOL"; then
  7664. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7665. else
  7666. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7667. for as_dir in $PATH
  7668. do
  7669. IFS=$as_save_IFS
  7670. test -z "$as_dir" && as_dir=.
  7671. for ac_exec_ext in '' $ac_executable_extensions; do
  7672. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7673. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7674. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7675. break 2
  7676. fi
  7677. done
  7678. done
  7679. IFS=$as_save_IFS
  7680. fi
  7681. fi
  7682. OTOOL=$ac_cv_prog_OTOOL
  7683. if test -n "$OTOOL"; then
  7684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7685. $as_echo "$OTOOL" >&6; }
  7686. else
  7687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7688. $as_echo "no" >&6; }
  7689. fi
  7690. fi
  7691. if test -z "$ac_cv_prog_OTOOL"; then
  7692. ac_ct_OTOOL=$OTOOL
  7693. # Extract the first word of "otool", so it can be a program name with args.
  7694. set dummy otool; ac_word=$2
  7695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7696. $as_echo_n "checking for $ac_word... " >&6; }
  7697. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7698. $as_echo_n "(cached) " >&6
  7699. else
  7700. if test -n "$ac_ct_OTOOL"; then
  7701. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7702. else
  7703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7704. for as_dir in $PATH
  7705. do
  7706. IFS=$as_save_IFS
  7707. test -z "$as_dir" && as_dir=.
  7708. for ac_exec_ext in '' $ac_executable_extensions; do
  7709. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7710. ac_cv_prog_ac_ct_OTOOL="otool"
  7711. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7712. break 2
  7713. fi
  7714. done
  7715. done
  7716. IFS=$as_save_IFS
  7717. fi
  7718. fi
  7719. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7720. if test -n "$ac_ct_OTOOL"; then
  7721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7722. $as_echo "$ac_ct_OTOOL" >&6; }
  7723. else
  7724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7725. $as_echo "no" >&6; }
  7726. fi
  7727. if test "x$ac_ct_OTOOL" = x; then
  7728. OTOOL=":"
  7729. else
  7730. case $cross_compiling:$ac_tool_warned in
  7731. yes:)
  7732. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7733. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7734. ac_tool_warned=yes ;;
  7735. esac
  7736. OTOOL=$ac_ct_OTOOL
  7737. fi
  7738. else
  7739. OTOOL="$ac_cv_prog_OTOOL"
  7740. fi
  7741. if test -n "$ac_tool_prefix"; then
  7742. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7743. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7745. $as_echo_n "checking for $ac_word... " >&6; }
  7746. if ${ac_cv_prog_OTOOL64+:} false; then :
  7747. $as_echo_n "(cached) " >&6
  7748. else
  7749. if test -n "$OTOOL64"; then
  7750. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7751. else
  7752. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7753. for as_dir in $PATH
  7754. do
  7755. IFS=$as_save_IFS
  7756. test -z "$as_dir" && as_dir=.
  7757. for ac_exec_ext in '' $ac_executable_extensions; do
  7758. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7759. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7760. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7761. break 2
  7762. fi
  7763. done
  7764. done
  7765. IFS=$as_save_IFS
  7766. fi
  7767. fi
  7768. OTOOL64=$ac_cv_prog_OTOOL64
  7769. if test -n "$OTOOL64"; then
  7770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7771. $as_echo "$OTOOL64" >&6; }
  7772. else
  7773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7774. $as_echo "no" >&6; }
  7775. fi
  7776. fi
  7777. if test -z "$ac_cv_prog_OTOOL64"; then
  7778. ac_ct_OTOOL64=$OTOOL64
  7779. # Extract the first word of "otool64", so it can be a program name with args.
  7780. set dummy otool64; ac_word=$2
  7781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7782. $as_echo_n "checking for $ac_word... " >&6; }
  7783. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7784. $as_echo_n "(cached) " >&6
  7785. else
  7786. if test -n "$ac_ct_OTOOL64"; then
  7787. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7788. else
  7789. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7790. for as_dir in $PATH
  7791. do
  7792. IFS=$as_save_IFS
  7793. test -z "$as_dir" && as_dir=.
  7794. for ac_exec_ext in '' $ac_executable_extensions; do
  7795. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7796. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7797. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7798. break 2
  7799. fi
  7800. done
  7801. done
  7802. IFS=$as_save_IFS
  7803. fi
  7804. fi
  7805. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7806. if test -n "$ac_ct_OTOOL64"; then
  7807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7808. $as_echo "$ac_ct_OTOOL64" >&6; }
  7809. else
  7810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7811. $as_echo "no" >&6; }
  7812. fi
  7813. if test "x$ac_ct_OTOOL64" = x; then
  7814. OTOOL64=":"
  7815. else
  7816. case $cross_compiling:$ac_tool_warned in
  7817. yes:)
  7818. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7819. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7820. ac_tool_warned=yes ;;
  7821. esac
  7822. OTOOL64=$ac_ct_OTOOL64
  7823. fi
  7824. else
  7825. OTOOL64="$ac_cv_prog_OTOOL64"
  7826. fi
  7827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7828. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7829. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7830. $as_echo_n "(cached) " >&6
  7831. else
  7832. lt_cv_apple_cc_single_mod=no
  7833. if test -z "${LT_MULTI_MODULE}"; then
  7834. # By default we will add the -single_module flag. You can override
  7835. # by either setting the environment variable LT_MULTI_MODULE
  7836. # non-empty at configure time, or by adding -multi_module to the
  7837. # link flags.
  7838. rm -rf libconftest.dylib*
  7839. echo "int foo(void){return 1;}" > conftest.c
  7840. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7841. -dynamiclib -Wl,-single_module conftest.c" >&5
  7842. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7843. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7844. _lt_result=$?
  7845. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  7846. lt_cv_apple_cc_single_mod=yes
  7847. else
  7848. cat conftest.err >&5
  7849. fi
  7850. rm -rf libconftest.dylib*
  7851. rm -f conftest.*
  7852. fi
  7853. fi
  7854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7855. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7857. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7858. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7859. $as_echo_n "(cached) " >&6
  7860. else
  7861. lt_cv_ld_exported_symbols_list=no
  7862. save_LDFLAGS=$LDFLAGS
  7863. echo "_main" > conftest.sym
  7864. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7866. /* end confdefs.h. */
  7867. int
  7868. main ()
  7869. {
  7870. ;
  7871. return 0;
  7872. }
  7873. _ACEOF
  7874. if ac_fn_c_try_link "$LINENO"; then :
  7875. lt_cv_ld_exported_symbols_list=yes
  7876. else
  7877. lt_cv_ld_exported_symbols_list=no
  7878. fi
  7879. rm -f core conftest.err conftest.$ac_objext \
  7880. conftest$ac_exeext conftest.$ac_ext
  7881. LDFLAGS="$save_LDFLAGS"
  7882. fi
  7883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7884. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7886. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7887. if ${lt_cv_ld_force_load+:} false; then :
  7888. $as_echo_n "(cached) " >&6
  7889. else
  7890. lt_cv_ld_force_load=no
  7891. cat > conftest.c << _LT_EOF
  7892. int forced_loaded() { return 2;}
  7893. _LT_EOF
  7894. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7895. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7896. echo "$AR cru libconftest.a conftest.o" >&5
  7897. $AR cru libconftest.a conftest.o 2>&5
  7898. echo "$RANLIB libconftest.a" >&5
  7899. $RANLIB libconftest.a 2>&5
  7900. cat > conftest.c << _LT_EOF
  7901. int main() { return 0;}
  7902. _LT_EOF
  7903. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7904. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7905. _lt_result=$?
  7906. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  7907. lt_cv_ld_force_load=yes
  7908. else
  7909. cat conftest.err >&5
  7910. fi
  7911. rm -f conftest.err libconftest.a conftest conftest.c
  7912. rm -rf conftest.dSYM
  7913. fi
  7914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7915. $as_echo "$lt_cv_ld_force_load" >&6; }
  7916. case $host_os in
  7917. rhapsody* | darwin1.[012])
  7918. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7919. darwin1.*)
  7920. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7921. darwin*) # darwin 5.x on
  7922. # if running on 10.5 or later, the deployment target defaults
  7923. # to the OS version, if on x86, and 10.4, the deployment
  7924. # target defaults to 10.4. Don't you love it?
  7925. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7926. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7927. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7928. 10.[012]*)
  7929. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7930. 10.*)
  7931. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7932. esac
  7933. ;;
  7934. esac
  7935. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7936. _lt_dar_single_mod='$single_module'
  7937. fi
  7938. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7939. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7940. else
  7941. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7942. fi
  7943. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7944. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7945. else
  7946. _lt_dsymutil=
  7947. fi
  7948. ;;
  7949. esac
  7950. for ac_header in dlfcn.h
  7951. do :
  7952. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7953. "
  7954. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7955. cat >>confdefs.h <<_ACEOF
  7956. @%:@define HAVE_DLFCN_H 1
  7957. _ACEOF
  7958. fi
  7959. done
  7960. # Set options
  7961. @%:@ Check whether --enable-shared was given.
  7962. if test "${enable_shared+set}" = set; then :
  7963. enableval=$enable_shared; p=${PACKAGE-default}
  7964. case $enableval in
  7965. yes) enable_shared=yes ;;
  7966. no) enable_shared=no ;;
  7967. *)
  7968. enable_shared=no
  7969. # Look at the argument we got. We use all the common list separators.
  7970. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7971. for pkg in $enableval; do
  7972. IFS="$lt_save_ifs"
  7973. if test "X$pkg" = "X$p"; then
  7974. enable_shared=yes
  7975. fi
  7976. done
  7977. IFS="$lt_save_ifs"
  7978. ;;
  7979. esac
  7980. else
  7981. enable_shared=no
  7982. fi
  7983. enable_dlopen=no
  7984. enable_win32_dll=no
  7985. @%:@ Check whether --enable-static was given.
  7986. if test "${enable_static+set}" = set; then :
  7987. enableval=$enable_static; p=${PACKAGE-default}
  7988. case $enableval in
  7989. yes) enable_static=yes ;;
  7990. no) enable_static=no ;;
  7991. *)
  7992. enable_static=no
  7993. # Look at the argument we got. We use all the common list separators.
  7994. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7995. for pkg in $enableval; do
  7996. IFS="$lt_save_ifs"
  7997. if test "X$pkg" = "X$p"; then
  7998. enable_static=yes
  7999. fi
  8000. done
  8001. IFS="$lt_save_ifs"
  8002. ;;
  8003. esac
  8004. else
  8005. enable_static=yes
  8006. fi
  8007. @%:@ Check whether --with-pic was given.
  8008. if test "${with_pic+set}" = set; then :
  8009. withval=$with_pic; pic_mode="$withval"
  8010. else
  8011. pic_mode=default
  8012. fi
  8013. test -z "$pic_mode" && pic_mode=default
  8014. @%:@ Check whether --enable-fast-install was given.
  8015. if test "${enable_fast_install+set}" = set; then :
  8016. enableval=$enable_fast_install; p=${PACKAGE-default}
  8017. case $enableval in
  8018. yes) enable_fast_install=yes ;;
  8019. no) enable_fast_install=no ;;
  8020. *)
  8021. enable_fast_install=no
  8022. # Look at the argument we got. We use all the common list separators.
  8023. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8024. for pkg in $enableval; do
  8025. IFS="$lt_save_ifs"
  8026. if test "X$pkg" = "X$p"; then
  8027. enable_fast_install=yes
  8028. fi
  8029. done
  8030. IFS="$lt_save_ifs"
  8031. ;;
  8032. esac
  8033. else
  8034. enable_fast_install=yes
  8035. fi
  8036. # This can be used to rebuild libtool when needed
  8037. LIBTOOL_DEPS="$ltmain"
  8038. # Always use our own libtool.
  8039. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  8040. test -z "$LN_S" && LN_S="ln -s"
  8041. if test -n "${ZSH_VERSION+set}" ; then
  8042. setopt NO_GLOB_SUBST
  8043. fi
  8044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  8045. $as_echo_n "checking for objdir... " >&6; }
  8046. if ${lt_cv_objdir+:} false; then :
  8047. $as_echo_n "(cached) " >&6
  8048. else
  8049. rm -f .libs 2>/dev/null
  8050. mkdir .libs 2>/dev/null
  8051. if test -d .libs; then
  8052. lt_cv_objdir=.libs
  8053. else
  8054. # MS-DOS does not allow filenames that begin with a dot.
  8055. lt_cv_objdir=_libs
  8056. fi
  8057. rmdir .libs 2>/dev/null
  8058. fi
  8059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  8060. $as_echo "$lt_cv_objdir" >&6; }
  8061. objdir=$lt_cv_objdir
  8062. cat >>confdefs.h <<_ACEOF
  8063. @%:@define LT_OBJDIR "$lt_cv_objdir/"
  8064. _ACEOF
  8065. case $host_os in
  8066. aix3*)
  8067. # AIX sometimes has problems with the GCC collect2 program. For some
  8068. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8069. # vanish in a puff of smoke.
  8070. if test "X${COLLECT_NAMES+set}" != Xset; then
  8071. COLLECT_NAMES=
  8072. export COLLECT_NAMES
  8073. fi
  8074. ;;
  8075. esac
  8076. # Global variables:
  8077. ofile=libtool
  8078. can_build_shared=yes
  8079. # All known linkers require a `.a' archive for static linking (except MSVC,
  8080. # which needs '.lib').
  8081. libext=a
  8082. with_gnu_ld="$lt_cv_prog_gnu_ld"
  8083. old_CC="$CC"
  8084. old_CFLAGS="$CFLAGS"
  8085. # Set sane defaults for various variables
  8086. test -z "$CC" && CC=cc
  8087. test -z "$LTCC" && LTCC=$CC
  8088. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8089. test -z "$LD" && LD=ld
  8090. test -z "$ac_objext" && ac_objext=o
  8091. for cc_temp in $compiler""; do
  8092. case $cc_temp in
  8093. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8094. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8095. \-*) ;;
  8096. *) break;;
  8097. esac
  8098. done
  8099. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  8100. # Only perform the check for file, if the check method requires it
  8101. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8102. case $deplibs_check_method in
  8103. file_magic*)
  8104. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8106. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  8107. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8108. $as_echo_n "(cached) " >&6
  8109. else
  8110. case $MAGIC_CMD in
  8111. [\\/*] | ?:[\\/]*)
  8112. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8113. ;;
  8114. *)
  8115. lt_save_MAGIC_CMD="$MAGIC_CMD"
  8116. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8117. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8118. for ac_dir in $ac_dummy; do
  8119. IFS="$lt_save_ifs"
  8120. test -z "$ac_dir" && ac_dir=.
  8121. if test -f $ac_dir/${ac_tool_prefix}file; then
  8122. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  8123. if test -n "$file_magic_test_file"; then
  8124. case $deplibs_check_method in
  8125. "file_magic "*)
  8126. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8127. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8128. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8129. $EGREP "$file_magic_regex" > /dev/null; then
  8130. :
  8131. else
  8132. cat <<_LT_EOF 1>&2
  8133. *** Warning: the command libtool uses to detect shared libraries,
  8134. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8135. *** The result is that libtool may fail to recognize shared libraries
  8136. *** as such. This will affect the creation of libtool libraries that
  8137. *** depend on shared libraries, but programs linked with such libtool
  8138. *** libraries will work regardless of this problem. Nevertheless, you
  8139. *** may want to report the problem to your system manager and/or to
  8140. *** bug-libtool@gnu.org
  8141. _LT_EOF
  8142. fi ;;
  8143. esac
  8144. fi
  8145. break
  8146. fi
  8147. done
  8148. IFS="$lt_save_ifs"
  8149. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8150. ;;
  8151. esac
  8152. fi
  8153. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8154. if test -n "$MAGIC_CMD"; then
  8155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8156. $as_echo "$MAGIC_CMD" >&6; }
  8157. else
  8158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8159. $as_echo "no" >&6; }
  8160. fi
  8161. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8162. if test -n "$ac_tool_prefix"; then
  8163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8164. $as_echo_n "checking for file... " >&6; }
  8165. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8166. $as_echo_n "(cached) " >&6
  8167. else
  8168. case $MAGIC_CMD in
  8169. [\\/*] | ?:[\\/]*)
  8170. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8171. ;;
  8172. *)
  8173. lt_save_MAGIC_CMD="$MAGIC_CMD"
  8174. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8175. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8176. for ac_dir in $ac_dummy; do
  8177. IFS="$lt_save_ifs"
  8178. test -z "$ac_dir" && ac_dir=.
  8179. if test -f $ac_dir/file; then
  8180. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  8181. if test -n "$file_magic_test_file"; then
  8182. case $deplibs_check_method in
  8183. "file_magic "*)
  8184. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8185. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8186. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8187. $EGREP "$file_magic_regex" > /dev/null; then
  8188. :
  8189. else
  8190. cat <<_LT_EOF 1>&2
  8191. *** Warning: the command libtool uses to detect shared libraries,
  8192. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8193. *** The result is that libtool may fail to recognize shared libraries
  8194. *** as such. This will affect the creation of libtool libraries that
  8195. *** depend on shared libraries, but programs linked with such libtool
  8196. *** libraries will work regardless of this problem. Nevertheless, you
  8197. *** may want to report the problem to your system manager and/or to
  8198. *** bug-libtool@gnu.org
  8199. _LT_EOF
  8200. fi ;;
  8201. esac
  8202. fi
  8203. break
  8204. fi
  8205. done
  8206. IFS="$lt_save_ifs"
  8207. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8208. ;;
  8209. esac
  8210. fi
  8211. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8212. if test -n "$MAGIC_CMD"; then
  8213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8214. $as_echo "$MAGIC_CMD" >&6; }
  8215. else
  8216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8217. $as_echo "no" >&6; }
  8218. fi
  8219. else
  8220. MAGIC_CMD=:
  8221. fi
  8222. fi
  8223. fi
  8224. ;;
  8225. esac
  8226. # Use C for the default configuration in the libtool script
  8227. lt_save_CC="$CC"
  8228. ac_ext=c
  8229. ac_cpp='$CPP $CPPFLAGS'
  8230. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8231. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8232. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8233. # Source file extension for C test sources.
  8234. ac_ext=c
  8235. # Object file extension for compiled C test sources.
  8236. objext=o
  8237. objext=$objext
  8238. # Code to be used in simple compile tests
  8239. lt_simple_compile_test_code="int some_variable = 0;"
  8240. # Code to be used in simple link tests
  8241. lt_simple_link_test_code='int main(){return(0);}'
  8242. # If no C compiler was specified, use CC.
  8243. LTCC=${LTCC-"$CC"}
  8244. # If no C compiler flags were specified, use CFLAGS.
  8245. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8246. # Allow CC to be a program name with arguments.
  8247. compiler=$CC
  8248. # Save the default compiler, since it gets overwritten when the other
  8249. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8250. compiler_DEFAULT=$CC
  8251. # save warnings/boilerplate of simple test code
  8252. ac_outfile=conftest.$ac_objext
  8253. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8254. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8255. _lt_compiler_boilerplate=`cat conftest.err`
  8256. $RM conftest*
  8257. ac_outfile=conftest.$ac_objext
  8258. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8259. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8260. _lt_linker_boilerplate=`cat conftest.err`
  8261. $RM -r conftest*
  8262. ## CAVEAT EMPTOR:
  8263. ## There is no encapsulation within the following macros, do not change
  8264. ## the running order or otherwise move them around unless you know exactly
  8265. ## what you are doing...
  8266. if test -n "$compiler"; then
  8267. lt_prog_compiler_no_builtin_flag=
  8268. if test "$GCC" = yes; then
  8269. case $cc_basename in
  8270. nvcc*)
  8271. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8272. *)
  8273. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8274. esac
  8275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8276. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8277. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8278. $as_echo_n "(cached) " >&6
  8279. else
  8280. lt_cv_prog_compiler_rtti_exceptions=no
  8281. ac_outfile=conftest.$ac_objext
  8282. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8283. lt_compiler_flag="-fno-rtti -fno-exceptions"
  8284. # Insert the option either (1) after the last *FLAGS variable, or
  8285. # (2) before a word containing "conftest.", or (3) at the end.
  8286. # Note that $ac_compile itself does not contain backslashes and begins
  8287. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8288. # The option is referenced via a variable to avoid confusing sed.
  8289. lt_compile=`echo "$ac_compile" | $SED \
  8290. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8291. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8292. -e 's:$: $lt_compiler_flag:'`
  8293. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8294. (eval "$lt_compile" 2>conftest.err)
  8295. ac_status=$?
  8296. cat conftest.err >&5
  8297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8298. if (exit $ac_status) && test -s "$ac_outfile"; then
  8299. # The compiler can only warn and ignore the option if not recognized
  8300. # So say no if there are warnings other than the usual output.
  8301. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8302. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8303. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8304. lt_cv_prog_compiler_rtti_exceptions=yes
  8305. fi
  8306. fi
  8307. $RM conftest*
  8308. fi
  8309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8310. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8311. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  8312. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8313. else
  8314. :
  8315. fi
  8316. fi
  8317. lt_prog_compiler_wl=
  8318. lt_prog_compiler_pic=
  8319. lt_prog_compiler_static=
  8320. if test "$GCC" = yes; then
  8321. lt_prog_compiler_wl='-Wl,'
  8322. lt_prog_compiler_static='-static'
  8323. case $host_os in
  8324. aix*)
  8325. # All AIX code is PIC.
  8326. if test "$host_cpu" = ia64; then
  8327. # AIX 5 now supports IA64 processor
  8328. lt_prog_compiler_static='-Bstatic'
  8329. fi
  8330. ;;
  8331. amigaos*)
  8332. case $host_cpu in
  8333. powerpc)
  8334. # see comment about AmigaOS4 .so support
  8335. lt_prog_compiler_pic='-fPIC'
  8336. ;;
  8337. m68k)
  8338. # FIXME: we need at least 68020 code to build shared libraries, but
  8339. # adding the `-m68020' flag to GCC prevents building anything better,
  8340. # like `-m68040'.
  8341. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8342. ;;
  8343. esac
  8344. ;;
  8345. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8346. # PIC is the default for these OSes.
  8347. ;;
  8348. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8349. # This hack is so that the source file can tell whether it is being
  8350. # built for inclusion in a dll (and should export symbols for example).
  8351. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8352. # (--disable-auto-import) libraries
  8353. lt_prog_compiler_pic='-DDLL_EXPORT'
  8354. ;;
  8355. darwin* | rhapsody*)
  8356. # PIC is the default on this platform
  8357. # Common symbols not allowed in MH_DYLIB files
  8358. lt_prog_compiler_pic='-fno-common'
  8359. ;;
  8360. haiku*)
  8361. # PIC is the default for Haiku.
  8362. # The "-static" flag exists, but is broken.
  8363. lt_prog_compiler_static=
  8364. ;;
  8365. hpux*)
  8366. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8367. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8368. # sets the default TLS model and affects inlining.
  8369. case $host_cpu in
  8370. hppa*64*)
  8371. # +Z the default
  8372. ;;
  8373. *)
  8374. lt_prog_compiler_pic='-fPIC'
  8375. ;;
  8376. esac
  8377. ;;
  8378. interix[3-9]*)
  8379. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8380. # Instead, we relocate shared libraries at runtime.
  8381. ;;
  8382. msdosdjgpp*)
  8383. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8384. # on systems that don't support them.
  8385. lt_prog_compiler_can_build_shared=no
  8386. enable_shared=no
  8387. ;;
  8388. *nto* | *qnx*)
  8389. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8390. # it will coredump.
  8391. lt_prog_compiler_pic='-fPIC -shared'
  8392. ;;
  8393. sysv4*MP*)
  8394. if test -d /usr/nec; then
  8395. lt_prog_compiler_pic=-Kconform_pic
  8396. fi
  8397. ;;
  8398. *)
  8399. lt_prog_compiler_pic='-fPIC'
  8400. ;;
  8401. esac
  8402. case $cc_basename in
  8403. nvcc*) # Cuda Compiler Driver 2.2
  8404. lt_prog_compiler_wl='-Xlinker '
  8405. lt_prog_compiler_pic='-Xcompiler -fPIC'
  8406. ;;
  8407. esac
  8408. else
  8409. # PORTME Check for flag to pass linker flags through the system compiler.
  8410. case $host_os in
  8411. aix*)
  8412. lt_prog_compiler_wl='-Wl,'
  8413. if test "$host_cpu" = ia64; then
  8414. # AIX 5 now supports IA64 processor
  8415. lt_prog_compiler_static='-Bstatic'
  8416. else
  8417. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8418. fi
  8419. ;;
  8420. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8421. # This hack is so that the source file can tell whether it is being
  8422. # built for inclusion in a dll (and should export symbols for example).
  8423. lt_prog_compiler_pic='-DDLL_EXPORT'
  8424. ;;
  8425. hpux9* | hpux10* | hpux11*)
  8426. lt_prog_compiler_wl='-Wl,'
  8427. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8428. # not for PA HP-UX.
  8429. case $host_cpu in
  8430. hppa*64*|ia64*)
  8431. # +Z the default
  8432. ;;
  8433. *)
  8434. lt_prog_compiler_pic='+Z'
  8435. ;;
  8436. esac
  8437. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8438. lt_prog_compiler_static='${wl}-a ${wl}archive'
  8439. ;;
  8440. irix5* | irix6* | nonstopux*)
  8441. lt_prog_compiler_wl='-Wl,'
  8442. # PIC (with -KPIC) is the default.
  8443. lt_prog_compiler_static='-non_shared'
  8444. ;;
  8445. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8446. case $cc_basename in
  8447. # old Intel for x86_64 which still supported -KPIC.
  8448. ecc*)
  8449. lt_prog_compiler_wl='-Wl,'
  8450. lt_prog_compiler_pic='-KPIC'
  8451. lt_prog_compiler_static='-static'
  8452. ;;
  8453. # icc used to be incompatible with GCC.
  8454. # ICC 10 doesn't accept -KPIC any more.
  8455. icc* | ifort*)
  8456. lt_prog_compiler_wl='-Wl,'
  8457. lt_prog_compiler_pic='-fPIC'
  8458. lt_prog_compiler_static='-static'
  8459. ;;
  8460. # Lahey Fortran 8.1.
  8461. lf95*)
  8462. lt_prog_compiler_wl='-Wl,'
  8463. lt_prog_compiler_pic='--shared'
  8464. lt_prog_compiler_static='--static'
  8465. ;;
  8466. nagfor*)
  8467. # NAG Fortran compiler
  8468. lt_prog_compiler_wl='-Wl,-Wl,,'
  8469. lt_prog_compiler_pic='-PIC'
  8470. lt_prog_compiler_static='-Bstatic'
  8471. ;;
  8472. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8473. # Portland Group compilers (*not* the Pentium gcc compiler,
  8474. # which looks to be a dead project)
  8475. lt_prog_compiler_wl='-Wl,'
  8476. lt_prog_compiler_pic='-fpic'
  8477. lt_prog_compiler_static='-Bstatic'
  8478. ;;
  8479. ccc*)
  8480. lt_prog_compiler_wl='-Wl,'
  8481. # All Alpha code is PIC.
  8482. lt_prog_compiler_static='-non_shared'
  8483. ;;
  8484. xl* | bgxl* | bgf* | mpixl*)
  8485. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8486. lt_prog_compiler_wl='-Wl,'
  8487. lt_prog_compiler_pic='-qpic'
  8488. lt_prog_compiler_static='-qstaticlink'
  8489. ;;
  8490. *)
  8491. case `$CC -V 2>&1 | sed 5q` in
  8492. *Sun\ F* | *Sun*Fortran*)
  8493. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8494. lt_prog_compiler_pic='-KPIC'
  8495. lt_prog_compiler_static='-Bstatic'
  8496. lt_prog_compiler_wl=''
  8497. ;;
  8498. *Sun\ C*)
  8499. # Sun C 5.9
  8500. lt_prog_compiler_pic='-KPIC'
  8501. lt_prog_compiler_static='-Bstatic'
  8502. lt_prog_compiler_wl='-Wl,'
  8503. ;;
  8504. esac
  8505. ;;
  8506. esac
  8507. ;;
  8508. newsos6)
  8509. lt_prog_compiler_pic='-KPIC'
  8510. lt_prog_compiler_static='-Bstatic'
  8511. ;;
  8512. *nto* | *qnx*)
  8513. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8514. # it will coredump.
  8515. lt_prog_compiler_pic='-fPIC -shared'
  8516. ;;
  8517. osf3* | osf4* | osf5*)
  8518. lt_prog_compiler_wl='-Wl,'
  8519. # All OSF/1 code is PIC.
  8520. lt_prog_compiler_static='-non_shared'
  8521. ;;
  8522. rdos*)
  8523. lt_prog_compiler_static='-non_shared'
  8524. ;;
  8525. solaris*)
  8526. lt_prog_compiler_pic='-KPIC'
  8527. lt_prog_compiler_static='-Bstatic'
  8528. case $cc_basename in
  8529. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8530. lt_prog_compiler_wl='-Qoption ld ';;
  8531. *)
  8532. lt_prog_compiler_wl='-Wl,';;
  8533. esac
  8534. ;;
  8535. sunos4*)
  8536. lt_prog_compiler_wl='-Qoption ld '
  8537. lt_prog_compiler_pic='-PIC'
  8538. lt_prog_compiler_static='-Bstatic'
  8539. ;;
  8540. sysv4 | sysv4.2uw2* | sysv4.3*)
  8541. lt_prog_compiler_wl='-Wl,'
  8542. lt_prog_compiler_pic='-KPIC'
  8543. lt_prog_compiler_static='-Bstatic'
  8544. ;;
  8545. sysv4*MP*)
  8546. if test -d /usr/nec ;then
  8547. lt_prog_compiler_pic='-Kconform_pic'
  8548. lt_prog_compiler_static='-Bstatic'
  8549. fi
  8550. ;;
  8551. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8552. lt_prog_compiler_wl='-Wl,'
  8553. lt_prog_compiler_pic='-KPIC'
  8554. lt_prog_compiler_static='-Bstatic'
  8555. ;;
  8556. unicos*)
  8557. lt_prog_compiler_wl='-Wl,'
  8558. lt_prog_compiler_can_build_shared=no
  8559. ;;
  8560. uts4*)
  8561. lt_prog_compiler_pic='-pic'
  8562. lt_prog_compiler_static='-Bstatic'
  8563. ;;
  8564. *)
  8565. lt_prog_compiler_can_build_shared=no
  8566. ;;
  8567. esac
  8568. fi
  8569. case $host_os in
  8570. # For platforms which do not support PIC, -DPIC is meaningless:
  8571. *djgpp*)
  8572. lt_prog_compiler_pic=
  8573. ;;
  8574. *)
  8575. lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
  8576. ;;
  8577. esac
  8578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8579. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8580. if ${lt_cv_prog_compiler_pic+:} false; then :
  8581. $as_echo_n "(cached) " >&6
  8582. else
  8583. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8584. fi
  8585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8586. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8587. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8588. #
  8589. # Check to make sure the PIC flag actually works.
  8590. #
  8591. if test -n "$lt_prog_compiler_pic"; then
  8592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8593. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8594. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8595. $as_echo_n "(cached) " >&6
  8596. else
  8597. lt_cv_prog_compiler_pic_works=no
  8598. ac_outfile=conftest.$ac_objext
  8599. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8600. lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
  8601. # Insert the option either (1) after the last *FLAGS variable, or
  8602. # (2) before a word containing "conftest.", or (3) at the end.
  8603. # Note that $ac_compile itself does not contain backslashes and begins
  8604. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8605. # The option is referenced via a variable to avoid confusing sed.
  8606. lt_compile=`echo "$ac_compile" | $SED \
  8607. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8608. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8609. -e 's:$: $lt_compiler_flag:'`
  8610. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8611. (eval "$lt_compile" 2>conftest.err)
  8612. ac_status=$?
  8613. cat conftest.err >&5
  8614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8615. if (exit $ac_status) && test -s "$ac_outfile"; then
  8616. # The compiler can only warn and ignore the option if not recognized
  8617. # So say no if there are warnings other than the usual output.
  8618. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8619. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8620. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8621. lt_cv_prog_compiler_pic_works=yes
  8622. fi
  8623. fi
  8624. $RM conftest*
  8625. fi
  8626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8627. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8628. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8629. case $lt_prog_compiler_pic in
  8630. "" | " "*) ;;
  8631. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8632. esac
  8633. else
  8634. lt_prog_compiler_pic=
  8635. lt_prog_compiler_can_build_shared=no
  8636. fi
  8637. fi
  8638. #
  8639. # Check to make sure the static flag actually works.
  8640. #
  8641. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8643. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8644. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8645. $as_echo_n "(cached) " >&6
  8646. else
  8647. lt_cv_prog_compiler_static_works=no
  8648. save_LDFLAGS="$LDFLAGS"
  8649. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8650. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8651. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8652. # The linker can only warn and ignore the option if not recognized
  8653. # So say no if there are warnings
  8654. if test -s conftest.err; then
  8655. # Append any errors to the config.log.
  8656. cat conftest.err 1>&5
  8657. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8658. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8659. if diff conftest.exp conftest.er2 >/dev/null; then
  8660. lt_cv_prog_compiler_static_works=yes
  8661. fi
  8662. else
  8663. lt_cv_prog_compiler_static_works=yes
  8664. fi
  8665. fi
  8666. $RM -r conftest*
  8667. LDFLAGS="$save_LDFLAGS"
  8668. fi
  8669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8670. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8671. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8672. :
  8673. else
  8674. lt_prog_compiler_static=
  8675. fi
  8676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8677. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8678. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8679. $as_echo_n "(cached) " >&6
  8680. else
  8681. lt_cv_prog_compiler_c_o=no
  8682. $RM -r conftest 2>/dev/null
  8683. mkdir conftest
  8684. cd conftest
  8685. mkdir out
  8686. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8687. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8688. # Insert the option either (1) after the last *FLAGS variable, or
  8689. # (2) before a word containing "conftest.", or (3) at the end.
  8690. # Note that $ac_compile itself does not contain backslashes and begins
  8691. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8692. lt_compile=`echo "$ac_compile" | $SED \
  8693. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8694. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8695. -e 's:$: $lt_compiler_flag:'`
  8696. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8697. (eval "$lt_compile" 2>out/conftest.err)
  8698. ac_status=$?
  8699. cat out/conftest.err >&5
  8700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8701. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8702. then
  8703. # The compiler can only warn and ignore the option if not recognized
  8704. # So say no if there are warnings
  8705. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8706. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8707. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8708. lt_cv_prog_compiler_c_o=yes
  8709. fi
  8710. fi
  8711. chmod u+w . 2>&5
  8712. $RM conftest*
  8713. # SGI C++ compiler will create directory out/ii_files/ for
  8714. # template instantiation
  8715. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8716. $RM out/* && rmdir out
  8717. cd ..
  8718. $RM -r conftest
  8719. $RM conftest*
  8720. fi
  8721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8722. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8724. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8725. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8726. $as_echo_n "(cached) " >&6
  8727. else
  8728. lt_cv_prog_compiler_c_o=no
  8729. $RM -r conftest 2>/dev/null
  8730. mkdir conftest
  8731. cd conftest
  8732. mkdir out
  8733. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8734. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8735. # Insert the option either (1) after the last *FLAGS variable, or
  8736. # (2) before a word containing "conftest.", or (3) at the end.
  8737. # Note that $ac_compile itself does not contain backslashes and begins
  8738. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8739. lt_compile=`echo "$ac_compile" | $SED \
  8740. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8741. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8742. -e 's:$: $lt_compiler_flag:'`
  8743. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8744. (eval "$lt_compile" 2>out/conftest.err)
  8745. ac_status=$?
  8746. cat out/conftest.err >&5
  8747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8748. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8749. then
  8750. # The compiler can only warn and ignore the option if not recognized
  8751. # So say no if there are warnings
  8752. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8753. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8754. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8755. lt_cv_prog_compiler_c_o=yes
  8756. fi
  8757. fi
  8758. chmod u+w . 2>&5
  8759. $RM conftest*
  8760. # SGI C++ compiler will create directory out/ii_files/ for
  8761. # template instantiation
  8762. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8763. $RM out/* && rmdir out
  8764. cd ..
  8765. $RM -r conftest
  8766. $RM conftest*
  8767. fi
  8768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8769. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8770. hard_links="nottested"
  8771. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8772. # do not overwrite the value of need_locks provided by the user
  8773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8774. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8775. hard_links=yes
  8776. $RM conftest*
  8777. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8778. touch conftest.a
  8779. ln conftest.a conftest.b 2>&5 || hard_links=no
  8780. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8782. $as_echo "$hard_links" >&6; }
  8783. if test "$hard_links" = no; then
  8784. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8785. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8786. need_locks=warn
  8787. fi
  8788. else
  8789. need_locks=no
  8790. fi
  8791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8792. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8793. runpath_var=
  8794. allow_undefined_flag=
  8795. always_export_symbols=no
  8796. archive_cmds=
  8797. archive_expsym_cmds=
  8798. compiler_needs_object=no
  8799. enable_shared_with_static_runtimes=no
  8800. export_dynamic_flag_spec=
  8801. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8802. hardcode_automatic=no
  8803. hardcode_direct=no
  8804. hardcode_direct_absolute=no
  8805. hardcode_libdir_flag_spec=
  8806. hardcode_libdir_flag_spec_ld=
  8807. hardcode_libdir_separator=
  8808. hardcode_minus_L=no
  8809. hardcode_shlibpath_var=unsupported
  8810. inherit_rpath=no
  8811. link_all_deplibs=unknown
  8812. module_cmds=
  8813. module_expsym_cmds=
  8814. old_archive_from_new_cmds=
  8815. old_archive_from_expsyms_cmds=
  8816. thread_safe_flag_spec=
  8817. whole_archive_flag_spec=
  8818. # include_expsyms should be a list of space-separated symbols to be *always*
  8819. # included in the symbol list
  8820. include_expsyms=
  8821. # exclude_expsyms can be an extended regexp of symbols to exclude
  8822. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8823. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8824. # as well as any symbol that contains `d'.
  8825. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8826. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8827. # platforms (ab)use it in PIC code, but their linkers get confused if
  8828. # the symbol is explicitly referenced. Since portable code cannot
  8829. # rely on this symbol name, it's probably fine to never include it in
  8830. # preloaded symbol tables.
  8831. # Exclude shared library initialization/finalization symbols.
  8832. extract_expsyms_cmds=
  8833. case $host_os in
  8834. cygwin* | mingw* | pw32* | cegcc*)
  8835. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8836. # When not using gcc, we currently assume that we are using
  8837. # Microsoft Visual C++.
  8838. if test "$GCC" != yes; then
  8839. with_gnu_ld=no
  8840. fi
  8841. ;;
  8842. interix*)
  8843. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8844. with_gnu_ld=yes
  8845. ;;
  8846. openbsd*)
  8847. with_gnu_ld=no
  8848. ;;
  8849. esac
  8850. ld_shlibs=yes
  8851. # On some targets, GNU ld is compatible enough with the native linker
  8852. # that we're better off using the native interface for both.
  8853. lt_use_gnu_ld_interface=no
  8854. if test "$with_gnu_ld" = yes; then
  8855. case $host_os in
  8856. aix*)
  8857. # The AIX port of GNU ld has always aspired to compatibility
  8858. # with the native linker. However, as the warning in the GNU ld
  8859. # block says, versions before 2.19.5* couldn't really create working
  8860. # shared libraries, regardless of the interface used.
  8861. case `$LD -v 2>&1` in
  8862. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8863. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8864. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8865. *)
  8866. lt_use_gnu_ld_interface=yes
  8867. ;;
  8868. esac
  8869. ;;
  8870. *)
  8871. lt_use_gnu_ld_interface=yes
  8872. ;;
  8873. esac
  8874. fi
  8875. if test "$lt_use_gnu_ld_interface" = yes; then
  8876. # If archive_cmds runs LD, not CC, wlarc should be empty
  8877. wlarc='${wl}'
  8878. # Set some defaults for GNU ld with shared library support. These
  8879. # are reset later if shared libraries are not supported. Putting them
  8880. # here allows them to be overridden if necessary.
  8881. runpath_var=LD_RUN_PATH
  8882. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8883. export_dynamic_flag_spec='${wl}--export-dynamic'
  8884. # ancient GNU ld didn't support --whole-archive et. al.
  8885. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8886. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8887. else
  8888. whole_archive_flag_spec=
  8889. fi
  8890. supports_anon_versioning=no
  8891. case `$LD -v 2>&1` in
  8892. *GNU\ gold*) supports_anon_versioning=yes ;;
  8893. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8894. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8895. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8896. *\ 2.11.*) ;; # other 2.11 versions
  8897. *) supports_anon_versioning=yes ;;
  8898. esac
  8899. # See if GNU ld supports shared libraries.
  8900. case $host_os in
  8901. aix[3-9]*)
  8902. # On AIX/PPC, the GNU linker is very broken
  8903. if test "$host_cpu" != ia64; then
  8904. ld_shlibs=no
  8905. cat <<_LT_EOF 1>&2
  8906. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8907. *** to be unable to reliably create shared libraries on AIX.
  8908. *** Therefore, libtool is disabling shared libraries support. If you
  8909. *** really care for shared libraries, you may want to install binutils
  8910. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8911. *** You will then need to restart the configuration process.
  8912. _LT_EOF
  8913. fi
  8914. ;;
  8915. amigaos*)
  8916. case $host_cpu in
  8917. powerpc)
  8918. # see comment about AmigaOS4 .so support
  8919. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8920. archive_expsym_cmds=''
  8921. ;;
  8922. m68k)
  8923. 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)'
  8924. hardcode_libdir_flag_spec='-L$libdir'
  8925. hardcode_minus_L=yes
  8926. ;;
  8927. esac
  8928. ;;
  8929. beos*)
  8930. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8931. allow_undefined_flag=unsupported
  8932. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8933. # support --undefined. This deserves some investigation. FIXME
  8934. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8935. else
  8936. ld_shlibs=no
  8937. fi
  8938. ;;
  8939. cygwin* | mingw* | pw32* | cegcc*)
  8940. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8941. # as there is no search path for DLLs.
  8942. hardcode_libdir_flag_spec='-L$libdir'
  8943. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8944. allow_undefined_flag=unsupported
  8945. always_export_symbols=no
  8946. enable_shared_with_static_runtimes=yes
  8947. 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'
  8948. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8949. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8950. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8951. # If the export-symbols file already is a .def file (1st line
  8952. # is EXPORTS), use it as is; otherwise, prepend...
  8953. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8954. cp $export_symbols $output_objdir/$soname.def;
  8955. else
  8956. echo EXPORTS > $output_objdir/$soname.def;
  8957. cat $export_symbols >> $output_objdir/$soname.def;
  8958. fi~
  8959. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8960. else
  8961. ld_shlibs=no
  8962. fi
  8963. ;;
  8964. haiku*)
  8965. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8966. link_all_deplibs=yes
  8967. ;;
  8968. interix[3-9]*)
  8969. hardcode_direct=no
  8970. hardcode_shlibpath_var=no
  8971. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8972. export_dynamic_flag_spec='${wl}-E'
  8973. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8974. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8975. # default) and relocated if they conflict, which is a slow very memory
  8976. # consuming and fragmenting process. To avoid this, we pick a random,
  8977. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8978. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8979. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8980. 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'
  8981. ;;
  8982. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8983. tmp_diet=no
  8984. if test "$host_os" = linux-dietlibc; then
  8985. case $cc_basename in
  8986. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8987. esac
  8988. fi
  8989. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8990. && test "$tmp_diet" = no
  8991. then
  8992. tmp_addflag=' $pic_flag'
  8993. tmp_sharedflag='-shared'
  8994. case $cc_basename,$host_cpu in
  8995. pgcc*) # Portland Group C compiler
  8996. 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'
  8997. tmp_addflag=' $pic_flag'
  8998. ;;
  8999. pgf77* | pgf90* | pgf95* | pgfortran*)
  9000. # Portland Group f77 and f90 compilers
  9001. 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'
  9002. tmp_addflag=' $pic_flag -Mnomain' ;;
  9003. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  9004. tmp_addflag=' -i_dynamic' ;;
  9005. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  9006. tmp_addflag=' -i_dynamic -nofor_main' ;;
  9007. ifc* | ifort*) # Intel Fortran compiler
  9008. tmp_addflag=' -nofor_main' ;;
  9009. lf95*) # Lahey Fortran 8.1
  9010. whole_archive_flag_spec=
  9011. tmp_sharedflag='--shared' ;;
  9012. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9013. tmp_sharedflag='-qmkshrobj'
  9014. tmp_addflag= ;;
  9015. nvcc*) # Cuda Compiler Driver 2.2
  9016. 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'
  9017. compiler_needs_object=yes
  9018. ;;
  9019. esac
  9020. case `$CC -V 2>&1 | sed 5q` in
  9021. *Sun\ C*) # Sun C 5.9
  9022. 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'
  9023. compiler_needs_object=yes
  9024. tmp_sharedflag='-G' ;;
  9025. *Sun\ F*) # Sun Fortran 8.3
  9026. tmp_sharedflag='-G' ;;
  9027. esac
  9028. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9029. if test "x$supports_anon_versioning" = xyes; then
  9030. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9031. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9032. echo "local: *; };" >> $output_objdir/$libname.ver~
  9033. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  9034. fi
  9035. case $cc_basename in
  9036. xlf* | bgf* | bgxlf* | mpixlf*)
  9037. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9038. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9039. hardcode_libdir_flag_spec=
  9040. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  9041. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9042. if test "x$supports_anon_versioning" = xyes; then
  9043. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9044. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9045. echo "local: *; };" >> $output_objdir/$libname.ver~
  9046. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9047. fi
  9048. ;;
  9049. esac
  9050. else
  9051. ld_shlibs=no
  9052. fi
  9053. ;;
  9054. netbsd*)
  9055. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9056. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9057. wlarc=
  9058. else
  9059. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9060. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9061. fi
  9062. ;;
  9063. solaris*)
  9064. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9065. ld_shlibs=no
  9066. cat <<_LT_EOF 1>&2
  9067. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9068. *** create shared libraries on Solaris systems. Therefore, libtool
  9069. *** is disabling shared libraries support. We urge you to upgrade GNU
  9070. *** binutils to release 2.9.1 or newer. Another option is to modify
  9071. *** your PATH or compiler configuration so that the native linker is
  9072. *** used, and then restart.
  9073. _LT_EOF
  9074. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9075. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9076. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9077. else
  9078. ld_shlibs=no
  9079. fi
  9080. ;;
  9081. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9082. case `$LD -v 2>&1` in
  9083. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9084. ld_shlibs=no
  9085. cat <<_LT_EOF 1>&2
  9086. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  9087. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9088. *** is disabling shared libraries support. We urge you to upgrade GNU
  9089. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9090. *** your PATH or compiler configuration so that the native linker is
  9091. *** used, and then restart.
  9092. _LT_EOF
  9093. ;;
  9094. *)
  9095. # For security reasons, it is highly recommended that you always
  9096. # use absolute paths for naming shared libraries, and exclude the
  9097. # DT_RUNPATH tag from executables and libraries. But doing so
  9098. # requires that you compile everything twice, which is a pain.
  9099. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9100. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9101. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9102. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9103. else
  9104. ld_shlibs=no
  9105. fi
  9106. ;;
  9107. esac
  9108. ;;
  9109. sunos4*)
  9110. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9111. wlarc=
  9112. hardcode_direct=yes
  9113. hardcode_shlibpath_var=no
  9114. ;;
  9115. *)
  9116. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9117. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9118. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9119. else
  9120. ld_shlibs=no
  9121. fi
  9122. ;;
  9123. esac
  9124. if test "$ld_shlibs" = no; then
  9125. runpath_var=
  9126. hardcode_libdir_flag_spec=
  9127. export_dynamic_flag_spec=
  9128. whole_archive_flag_spec=
  9129. fi
  9130. else
  9131. # PORTME fill in a description of your system's linker (not GNU ld)
  9132. case $host_os in
  9133. aix3*)
  9134. allow_undefined_flag=unsupported
  9135. always_export_symbols=yes
  9136. 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'
  9137. # Note: this linker hardcodes the directories in LIBPATH if there
  9138. # are no directories specified by -L.
  9139. hardcode_minus_L=yes
  9140. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  9141. # Neither direct hardcoding nor static linking is supported with a
  9142. # broken collect2.
  9143. hardcode_direct=unsupported
  9144. fi
  9145. ;;
  9146. aix[4-9]*)
  9147. if test "$host_cpu" = ia64; then
  9148. # On IA64, the linker does run time linking by default, so we don't
  9149. # have to do anything special.
  9150. aix_use_runtimelinking=no
  9151. exp_sym_flag='-Bexport'
  9152. no_entry_flag=""
  9153. else
  9154. # If we're using GNU nm, then we don't want the "-C" option.
  9155. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9156. # Also, AIX nm treats weak defined symbols like other global
  9157. # defined symbols, whereas GNU nm marks them as "W".
  9158. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9159. 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'
  9160. else
  9161. 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'
  9162. fi
  9163. aix_use_runtimelinking=no
  9164. # Test if we are trying to use run time linking or normal
  9165. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9166. # need to do runtime linking.
  9167. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9168. for ld_flag in $LDFLAGS; do
  9169. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  9170. aix_use_runtimelinking=yes
  9171. break
  9172. fi
  9173. done
  9174. ;;
  9175. esac
  9176. exp_sym_flag='-bexport'
  9177. no_entry_flag='-bnoentry'
  9178. fi
  9179. # When large executables or shared objects are built, AIX ld can
  9180. # have problems creating the table of contents. If linking a library
  9181. # or program results in "error TOC overflow" add -mminimal-toc to
  9182. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9183. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9184. archive_cmds=''
  9185. hardcode_direct=yes
  9186. hardcode_direct_absolute=yes
  9187. hardcode_libdir_separator=':'
  9188. link_all_deplibs=yes
  9189. file_list_spec='${wl}-f,'
  9190. if test "$GCC" = yes; then
  9191. case $host_os in aix4.[012]|aix4.[012].*)
  9192. # We only want to do this on AIX 4.2 and lower, the check
  9193. # below for broken collect2 doesn't work under 4.3+
  9194. collect2name=`${CC} -print-prog-name=collect2`
  9195. if test -f "$collect2name" &&
  9196. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9197. then
  9198. # We have reworked collect2
  9199. :
  9200. else
  9201. # We have old collect2
  9202. hardcode_direct=unsupported
  9203. # It fails to find uninstalled libraries when the uninstalled
  9204. # path is not listed in the libpath. Setting hardcode_minus_L
  9205. # to unsupported forces relinking
  9206. hardcode_minus_L=yes
  9207. hardcode_libdir_flag_spec='-L$libdir'
  9208. hardcode_libdir_separator=
  9209. fi
  9210. ;;
  9211. esac
  9212. shared_flag='-shared'
  9213. if test "$aix_use_runtimelinking" = yes; then
  9214. shared_flag="$shared_flag "'${wl}-G'
  9215. fi
  9216. else
  9217. # not using gcc
  9218. if test "$host_cpu" = ia64; then
  9219. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9220. # chokes on -Wl,-G. The following line is correct:
  9221. shared_flag='-G'
  9222. else
  9223. if test "$aix_use_runtimelinking" = yes; then
  9224. shared_flag='${wl}-G'
  9225. else
  9226. shared_flag='${wl}-bM:SRE'
  9227. fi
  9228. fi
  9229. fi
  9230. export_dynamic_flag_spec='${wl}-bexpall'
  9231. # It seems that -bexpall does not export symbols beginning with
  9232. # underscore (_), so it is better to generate a list of symbols to export.
  9233. always_export_symbols=yes
  9234. if test "$aix_use_runtimelinking" = yes; then
  9235. # Warning - without using the other runtime loading flags (-brtl),
  9236. # -berok will link without error, but may produce a broken library.
  9237. allow_undefined_flag='-berok'
  9238. # Determine the default libpath from the value encoded in an
  9239. # empty executable.
  9240. if test "${lt_cv_aix_libpath+set}" = set; then
  9241. aix_libpath=$lt_cv_aix_libpath
  9242. else
  9243. if ${lt_cv_aix_libpath_+:} false; then :
  9244. $as_echo_n "(cached) " >&6
  9245. else
  9246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9247. /* end confdefs.h. */
  9248. int
  9249. main ()
  9250. {
  9251. ;
  9252. return 0;
  9253. }
  9254. _ACEOF
  9255. if ac_fn_c_try_link "$LINENO"; then :
  9256. lt_aix_libpath_sed='
  9257. /Import File Strings/,/^$/ {
  9258. /^0/ {
  9259. s/^0 *\([^ ]*\) *$/\1/
  9260. p
  9261. }
  9262. }'
  9263. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9264. # Check for a 64-bit object if we didn't find anything.
  9265. if test -z "$lt_cv_aix_libpath_"; then
  9266. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9267. fi
  9268. fi
  9269. rm -f core conftest.err conftest.$ac_objext \
  9270. conftest$ac_exeext conftest.$ac_ext
  9271. if test -z "$lt_cv_aix_libpath_"; then
  9272. lt_cv_aix_libpath_="/usr/lib:/lib"
  9273. fi
  9274. fi
  9275. aix_libpath=$lt_cv_aix_libpath_
  9276. fi
  9277. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9278. 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"
  9279. else
  9280. if test "$host_cpu" = ia64; then
  9281. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  9282. allow_undefined_flag="-z nodefs"
  9283. 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"
  9284. else
  9285. # Determine the default libpath from the value encoded in an
  9286. # empty executable.
  9287. if test "${lt_cv_aix_libpath+set}" = set; then
  9288. aix_libpath=$lt_cv_aix_libpath
  9289. else
  9290. if ${lt_cv_aix_libpath_+:} false; then :
  9291. $as_echo_n "(cached) " >&6
  9292. else
  9293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9294. /* end confdefs.h. */
  9295. int
  9296. main ()
  9297. {
  9298. ;
  9299. return 0;
  9300. }
  9301. _ACEOF
  9302. if ac_fn_c_try_link "$LINENO"; then :
  9303. lt_aix_libpath_sed='
  9304. /Import File Strings/,/^$/ {
  9305. /^0/ {
  9306. s/^0 *\([^ ]*\) *$/\1/
  9307. p
  9308. }
  9309. }'
  9310. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9311. # Check for a 64-bit object if we didn't find anything.
  9312. if test -z "$lt_cv_aix_libpath_"; then
  9313. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9314. fi
  9315. fi
  9316. rm -f core conftest.err conftest.$ac_objext \
  9317. conftest$ac_exeext conftest.$ac_ext
  9318. if test -z "$lt_cv_aix_libpath_"; then
  9319. lt_cv_aix_libpath_="/usr/lib:/lib"
  9320. fi
  9321. fi
  9322. aix_libpath=$lt_cv_aix_libpath_
  9323. fi
  9324. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9325. # Warning - without using the other run time loading flags,
  9326. # -berok will link without error, but may produce a broken library.
  9327. no_undefined_flag=' ${wl}-bernotok'
  9328. allow_undefined_flag=' ${wl}-berok'
  9329. if test "$with_gnu_ld" = yes; then
  9330. # We only use this code for GNU lds that support --whole-archive.
  9331. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9332. else
  9333. # Exported symbols can be pulled into shared objects from archives
  9334. whole_archive_flag_spec='$convenience'
  9335. fi
  9336. archive_cmds_need_lc=yes
  9337. # This is similar to how AIX traditionally builds its shared libraries.
  9338. 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'
  9339. fi
  9340. fi
  9341. ;;
  9342. amigaos*)
  9343. case $host_cpu in
  9344. powerpc)
  9345. # see comment about AmigaOS4 .so support
  9346. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9347. archive_expsym_cmds=''
  9348. ;;
  9349. m68k)
  9350. 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)'
  9351. hardcode_libdir_flag_spec='-L$libdir'
  9352. hardcode_minus_L=yes
  9353. ;;
  9354. esac
  9355. ;;
  9356. bsdi[45]*)
  9357. export_dynamic_flag_spec=-rdynamic
  9358. ;;
  9359. cygwin* | mingw* | pw32* | cegcc*)
  9360. # When not using gcc, we currently assume that we are using
  9361. # Microsoft Visual C++.
  9362. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9363. # no search path for DLLs.
  9364. case $cc_basename in
  9365. cl*)
  9366. # Native MSVC
  9367. hardcode_libdir_flag_spec=' '
  9368. allow_undefined_flag=unsupported
  9369. always_export_symbols=yes
  9370. file_list_spec='@'
  9371. # Tell ltmain to make .lib files, not .a files.
  9372. libext=lib
  9373. # Tell ltmain to make .dll files, not .so files.
  9374. shrext_cmds=".dll"
  9375. # FIXME: Setting linknames here is a bad hack.
  9376. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  9377. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9378. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  9379. else
  9380. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  9381. fi~
  9382. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9383. linknames='
  9384. # The linker will not automatically build a static lib if we build a DLL.
  9385. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9386. enable_shared_with_static_runtimes=yes
  9387. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9388. # Don't use ranlib
  9389. old_postinstall_cmds='chmod 644 $oldlib'
  9390. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9391. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9392. case $lt_outputfile in
  9393. *.exe|*.EXE) ;;
  9394. *)
  9395. lt_outputfile="$lt_outputfile.exe"
  9396. lt_tool_outputfile="$lt_tool_outputfile.exe"
  9397. ;;
  9398. esac~
  9399. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  9400. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9401. $RM "$lt_outputfile.manifest";
  9402. fi'
  9403. ;;
  9404. *)
  9405. # Assume MSVC wrapper
  9406. hardcode_libdir_flag_spec=' '
  9407. allow_undefined_flag=unsupported
  9408. # Tell ltmain to make .lib files, not .a files.
  9409. libext=lib
  9410. # Tell ltmain to make .dll files, not .so files.
  9411. shrext_cmds=".dll"
  9412. # FIXME: Setting linknames here is a bad hack.
  9413. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9414. # The linker will automatically build a .lib file if we build a DLL.
  9415. old_archive_from_new_cmds='true'
  9416. # FIXME: Should let the user specify the lib program.
  9417. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9418. enable_shared_with_static_runtimes=yes
  9419. ;;
  9420. esac
  9421. ;;
  9422. darwin* | rhapsody*)
  9423. archive_cmds_need_lc=no
  9424. hardcode_direct=no
  9425. hardcode_automatic=yes
  9426. hardcode_shlibpath_var=unsupported
  9427. if test "$lt_cv_ld_force_load" = "yes"; then
  9428. 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\"`'
  9429. else
  9430. whole_archive_flag_spec=''
  9431. fi
  9432. link_all_deplibs=yes
  9433. allow_undefined_flag="$_lt_dar_allow_undefined"
  9434. case $cc_basename in
  9435. ifort*) _lt_dar_can_shared=yes ;;
  9436. *) _lt_dar_can_shared=$GCC ;;
  9437. esac
  9438. if test "$_lt_dar_can_shared" = "yes"; then
  9439. output_verbose_link_cmd=func_echo_all
  9440. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9441. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9442. 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}"
  9443. 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}"
  9444. else
  9445. ld_shlibs=no
  9446. fi
  9447. ;;
  9448. dgux*)
  9449. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9450. hardcode_libdir_flag_spec='-L$libdir'
  9451. hardcode_shlibpath_var=no
  9452. ;;
  9453. freebsd1*)
  9454. ld_shlibs=no
  9455. ;;
  9456. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9457. # support. Future versions do this automatically, but an explicit c++rt0.o
  9458. # does not break anything, and helps significantly (at the cost of a little
  9459. # extra space).
  9460. freebsd2.2*)
  9461. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9462. hardcode_libdir_flag_spec='-R$libdir'
  9463. hardcode_direct=yes
  9464. hardcode_shlibpath_var=no
  9465. ;;
  9466. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9467. freebsd2*)
  9468. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9469. hardcode_direct=yes
  9470. hardcode_minus_L=yes
  9471. hardcode_shlibpath_var=no
  9472. ;;
  9473. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9474. freebsd* | dragonfly*)
  9475. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9476. hardcode_libdir_flag_spec='-R$libdir'
  9477. hardcode_direct=yes
  9478. hardcode_shlibpath_var=no
  9479. ;;
  9480. hpux9*)
  9481. if test "$GCC" = yes; then
  9482. 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'
  9483. else
  9484. 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'
  9485. fi
  9486. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9487. hardcode_libdir_separator=:
  9488. hardcode_direct=yes
  9489. # hardcode_minus_L: Not really in the search PATH,
  9490. # but as the default location of the library.
  9491. hardcode_minus_L=yes
  9492. export_dynamic_flag_spec='${wl}-E'
  9493. ;;
  9494. hpux10*)
  9495. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9496. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9497. else
  9498. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9499. fi
  9500. if test "$with_gnu_ld" = no; then
  9501. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9502. hardcode_libdir_flag_spec_ld='+b $libdir'
  9503. hardcode_libdir_separator=:
  9504. hardcode_direct=yes
  9505. hardcode_direct_absolute=yes
  9506. export_dynamic_flag_spec='${wl}-E'
  9507. # hardcode_minus_L: Not really in the search PATH,
  9508. # but as the default location of the library.
  9509. hardcode_minus_L=yes
  9510. fi
  9511. ;;
  9512. hpux11*)
  9513. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9514. case $host_cpu in
  9515. hppa*64*)
  9516. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9517. ;;
  9518. ia64*)
  9519. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9520. ;;
  9521. *)
  9522. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9523. ;;
  9524. esac
  9525. else
  9526. case $host_cpu in
  9527. hppa*64*)
  9528. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9529. ;;
  9530. ia64*)
  9531. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9532. ;;
  9533. *)
  9534. # Older versions of the 11.00 compiler do not understand -b yet
  9535. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9537. $as_echo_n "checking if $CC understands -b... " >&6; }
  9538. if ${lt_cv_prog_compiler__b+:} false; then :
  9539. $as_echo_n "(cached) " >&6
  9540. else
  9541. lt_cv_prog_compiler__b=no
  9542. save_LDFLAGS="$LDFLAGS"
  9543. LDFLAGS="$LDFLAGS -b"
  9544. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9545. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9546. # The linker can only warn and ignore the option if not recognized
  9547. # So say no if there are warnings
  9548. if test -s conftest.err; then
  9549. # Append any errors to the config.log.
  9550. cat conftest.err 1>&5
  9551. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9552. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9553. if diff conftest.exp conftest.er2 >/dev/null; then
  9554. lt_cv_prog_compiler__b=yes
  9555. fi
  9556. else
  9557. lt_cv_prog_compiler__b=yes
  9558. fi
  9559. fi
  9560. $RM -r conftest*
  9561. LDFLAGS="$save_LDFLAGS"
  9562. fi
  9563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9564. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9565. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9566. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9567. else
  9568. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9569. fi
  9570. ;;
  9571. esac
  9572. fi
  9573. if test "$with_gnu_ld" = no; then
  9574. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9575. hardcode_libdir_separator=:
  9576. case $host_cpu in
  9577. hppa*64*|ia64*)
  9578. hardcode_direct=no
  9579. hardcode_shlibpath_var=no
  9580. ;;
  9581. *)
  9582. hardcode_direct=yes
  9583. hardcode_direct_absolute=yes
  9584. export_dynamic_flag_spec='${wl}-E'
  9585. # hardcode_minus_L: Not really in the search PATH,
  9586. # but as the default location of the library.
  9587. hardcode_minus_L=yes
  9588. ;;
  9589. esac
  9590. fi
  9591. ;;
  9592. irix5* | irix6* | nonstopux*)
  9593. if test "$GCC" = yes; then
  9594. 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'
  9595. # Try to use the -exported_symbol ld option, if it does not
  9596. # work, assume that -exports_file does not work either and
  9597. # implicitly export all symbols.
  9598. # This should be the same for all languages, so no per-tag cache variable.
  9599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9600. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9601. if ${lt_cv_irix_exported_symbol+:} false; then :
  9602. $as_echo_n "(cached) " >&6
  9603. else
  9604. save_LDFLAGS="$LDFLAGS"
  9605. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9607. /* end confdefs.h. */
  9608. int foo (void) { return 0; }
  9609. _ACEOF
  9610. if ac_fn_c_try_link "$LINENO"; then :
  9611. lt_cv_irix_exported_symbol=yes
  9612. else
  9613. lt_cv_irix_exported_symbol=no
  9614. fi
  9615. rm -f core conftest.err conftest.$ac_objext \
  9616. conftest$ac_exeext conftest.$ac_ext
  9617. LDFLAGS="$save_LDFLAGS"
  9618. fi
  9619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9620. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9621. if test "$lt_cv_irix_exported_symbol" = yes; then
  9622. 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'
  9623. fi
  9624. else
  9625. 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'
  9626. 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'
  9627. fi
  9628. archive_cmds_need_lc='no'
  9629. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9630. hardcode_libdir_separator=:
  9631. inherit_rpath=yes
  9632. link_all_deplibs=yes
  9633. ;;
  9634. netbsd*)
  9635. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9636. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9637. else
  9638. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9639. fi
  9640. hardcode_libdir_flag_spec='-R$libdir'
  9641. hardcode_direct=yes
  9642. hardcode_shlibpath_var=no
  9643. ;;
  9644. newsos6)
  9645. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9646. hardcode_direct=yes
  9647. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9648. hardcode_libdir_separator=:
  9649. hardcode_shlibpath_var=no
  9650. ;;
  9651. *nto* | *qnx*)
  9652. ;;
  9653. openbsd*)
  9654. if test -f /usr/libexec/ld.so; then
  9655. hardcode_direct=yes
  9656. hardcode_shlibpath_var=no
  9657. hardcode_direct_absolute=yes
  9658. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9659. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9660. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9661. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9662. export_dynamic_flag_spec='${wl}-E'
  9663. else
  9664. case $host_os in
  9665. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9666. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9667. hardcode_libdir_flag_spec='-R$libdir'
  9668. ;;
  9669. *)
  9670. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9671. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9672. ;;
  9673. esac
  9674. fi
  9675. else
  9676. ld_shlibs=no
  9677. fi
  9678. ;;
  9679. os2*)
  9680. hardcode_libdir_flag_spec='-L$libdir'
  9681. hardcode_minus_L=yes
  9682. allow_undefined_flag=unsupported
  9683. 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'
  9684. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9685. ;;
  9686. osf3*)
  9687. if test "$GCC" = yes; then
  9688. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9689. 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'
  9690. else
  9691. allow_undefined_flag=' -expect_unresolved \*'
  9692. 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'
  9693. fi
  9694. archive_cmds_need_lc='no'
  9695. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9696. hardcode_libdir_separator=:
  9697. ;;
  9698. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9699. if test "$GCC" = yes; then
  9700. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9701. 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'
  9702. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9703. else
  9704. allow_undefined_flag=' -expect_unresolved \*'
  9705. 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'
  9706. 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~
  9707. $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'
  9708. # Both c and cxx compiler support -rpath directly
  9709. hardcode_libdir_flag_spec='-rpath $libdir'
  9710. fi
  9711. archive_cmds_need_lc='no'
  9712. hardcode_libdir_separator=:
  9713. ;;
  9714. solaris*)
  9715. no_undefined_flag=' -z defs'
  9716. if test "$GCC" = yes; then
  9717. wlarc='${wl}'
  9718. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9719. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9720. $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'
  9721. else
  9722. case `$CC -V 2>&1` in
  9723. *"Compilers 5.0"*)
  9724. wlarc=''
  9725. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9726. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9727. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9728. ;;
  9729. *)
  9730. wlarc='${wl}'
  9731. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9732. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9733. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9734. ;;
  9735. esac
  9736. fi
  9737. hardcode_libdir_flag_spec='-R$libdir'
  9738. hardcode_shlibpath_var=no
  9739. case $host_os in
  9740. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9741. *)
  9742. # The compiler driver will combine and reorder linker options,
  9743. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9744. # but is careful enough not to reorder.
  9745. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9746. if test "$GCC" = yes; then
  9747. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9748. else
  9749. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9750. fi
  9751. ;;
  9752. esac
  9753. link_all_deplibs=yes
  9754. ;;
  9755. sunos4*)
  9756. if test "x$host_vendor" = xsequent; then
  9757. # Use $CC to link under sequent, because it throws in some extra .o
  9758. # files that make .init and .fini sections work.
  9759. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9760. else
  9761. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9762. fi
  9763. hardcode_libdir_flag_spec='-L$libdir'
  9764. hardcode_direct=yes
  9765. hardcode_minus_L=yes
  9766. hardcode_shlibpath_var=no
  9767. ;;
  9768. sysv4)
  9769. case $host_vendor in
  9770. sni)
  9771. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9772. hardcode_direct=yes # is this really true???
  9773. ;;
  9774. siemens)
  9775. ## LD is ld it makes a PLAMLIB
  9776. ## CC just makes a GrossModule.
  9777. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9778. reload_cmds='$CC -r -o $output$reload_objs'
  9779. hardcode_direct=no
  9780. ;;
  9781. motorola)
  9782. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9783. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9784. ;;
  9785. esac
  9786. runpath_var='LD_RUN_PATH'
  9787. hardcode_shlibpath_var=no
  9788. ;;
  9789. sysv4.3*)
  9790. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9791. hardcode_shlibpath_var=no
  9792. export_dynamic_flag_spec='-Bexport'
  9793. ;;
  9794. sysv4*MP*)
  9795. if test -d /usr/nec; then
  9796. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9797. hardcode_shlibpath_var=no
  9798. runpath_var=LD_RUN_PATH
  9799. hardcode_runpath_var=yes
  9800. ld_shlibs=yes
  9801. fi
  9802. ;;
  9803. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9804. no_undefined_flag='${wl}-z,text'
  9805. archive_cmds_need_lc=no
  9806. hardcode_shlibpath_var=no
  9807. runpath_var='LD_RUN_PATH'
  9808. if test "$GCC" = yes; then
  9809. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9810. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9811. else
  9812. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9813. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9814. fi
  9815. ;;
  9816. sysv5* | sco3.2v5* | sco5v6*)
  9817. # Note: We can NOT use -z defs as we might desire, because we do not
  9818. # link with -lc, and that would cause any symbols used from libc to
  9819. # always be unresolved, which means just about no library would
  9820. # ever link correctly. If we're not using GNU ld we use -z text
  9821. # though, which does catch some bad symbols but isn't as heavy-handed
  9822. # as -z defs.
  9823. no_undefined_flag='${wl}-z,text'
  9824. allow_undefined_flag='${wl}-z,nodefs'
  9825. archive_cmds_need_lc=no
  9826. hardcode_shlibpath_var=no
  9827. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9828. hardcode_libdir_separator=':'
  9829. link_all_deplibs=yes
  9830. export_dynamic_flag_spec='${wl}-Bexport'
  9831. runpath_var='LD_RUN_PATH'
  9832. if test "$GCC" = yes; then
  9833. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9834. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9835. else
  9836. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9837. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9838. fi
  9839. ;;
  9840. uts4*)
  9841. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9842. hardcode_libdir_flag_spec='-L$libdir'
  9843. hardcode_shlibpath_var=no
  9844. ;;
  9845. *)
  9846. ld_shlibs=no
  9847. ;;
  9848. esac
  9849. if test x$host_vendor = xsni; then
  9850. case $host in
  9851. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9852. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9853. ;;
  9854. esac
  9855. fi
  9856. fi
  9857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9858. $as_echo "$ld_shlibs" >&6; }
  9859. test "$ld_shlibs" = no && can_build_shared=no
  9860. with_gnu_ld=$with_gnu_ld
  9861. #
  9862. # Do we need to explicitly link libc?
  9863. #
  9864. case "x$archive_cmds_need_lc" in
  9865. x|xyes)
  9866. # Assume -lc should be added
  9867. archive_cmds_need_lc=yes
  9868. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9869. case $archive_cmds in
  9870. *'~'*)
  9871. # FIXME: we may have to deal with multi-command sequences.
  9872. ;;
  9873. '$CC '*)
  9874. # Test whether the compiler implicitly links with -lc since on some
  9875. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9876. # to ld, don't add -lc before -lgcc.
  9877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9878. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9879. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9880. $as_echo_n "(cached) " >&6
  9881. else
  9882. $RM conftest*
  9883. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9884. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9885. (eval $ac_compile) 2>&5
  9886. ac_status=$?
  9887. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9888. test $ac_status = 0; } 2>conftest.err; then
  9889. soname=conftest
  9890. lib=conftest
  9891. libobjs=conftest.$ac_objext
  9892. deplibs=
  9893. wl=$lt_prog_compiler_wl
  9894. pic_flag=$lt_prog_compiler_pic
  9895. compiler_flags=-v
  9896. linker_flags=-v
  9897. verstring=
  9898. output_objdir=.
  9899. libname=conftest
  9900. lt_save_allow_undefined_flag=$allow_undefined_flag
  9901. allow_undefined_flag=
  9902. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9903. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9904. ac_status=$?
  9905. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9906. test $ac_status = 0; }
  9907. then
  9908. lt_cv_archive_cmds_need_lc=no
  9909. else
  9910. lt_cv_archive_cmds_need_lc=yes
  9911. fi
  9912. allow_undefined_flag=$lt_save_allow_undefined_flag
  9913. else
  9914. cat conftest.err 1>&5
  9915. fi
  9916. $RM conftest*
  9917. fi
  9918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9919. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9920. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9921. ;;
  9922. esac
  9923. fi
  9924. ;;
  9925. esac
  9926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9927. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9928. if test "$GCC" = yes; then
  9929. case $host_os in
  9930. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9931. *) lt_awk_arg="/^libraries:/" ;;
  9932. esac
  9933. case $host_os in
  9934. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9935. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9936. esac
  9937. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9938. case $lt_search_path_spec in
  9939. *\;*)
  9940. # if the path contains ";" then we assume it to be the separator
  9941. # otherwise default to the standard path separator (i.e. ":") - it is
  9942. # assumed that no part of a normal pathname contains ";" but that should
  9943. # okay in the real world where ";" in dirpaths is itself problematic.
  9944. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9945. ;;
  9946. *)
  9947. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9948. ;;
  9949. esac
  9950. # Ok, now we have the path, separated by spaces, we can step through it
  9951. # and add multilib dir if necessary.
  9952. lt_tmp_lt_search_path_spec=
  9953. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9954. for lt_sys_path in $lt_search_path_spec; do
  9955. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9956. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9957. else
  9958. test -d "$lt_sys_path" && \
  9959. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9960. fi
  9961. done
  9962. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9963. BEGIN {RS=" "; FS="/|\n";} {
  9964. lt_foo="";
  9965. lt_count=0;
  9966. for (lt_i = NF; lt_i > 0; lt_i--) {
  9967. if ($lt_i != "" && $lt_i != ".") {
  9968. if ($lt_i == "..") {
  9969. lt_count++;
  9970. } else {
  9971. if (lt_count == 0) {
  9972. lt_foo="/" $lt_i lt_foo;
  9973. } else {
  9974. lt_count--;
  9975. }
  9976. }
  9977. }
  9978. }
  9979. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9980. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9981. }'`
  9982. # AWK program above erroneously prepends '/' to C:/dos/paths
  9983. # for these hosts.
  9984. case $host_os in
  9985. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9986. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9987. esac
  9988. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9989. else
  9990. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9991. fi
  9992. library_names_spec=
  9993. libname_spec='lib$name'
  9994. soname_spec=
  9995. shrext_cmds=".so"
  9996. postinstall_cmds=
  9997. postuninstall_cmds=
  9998. finish_cmds=
  9999. finish_eval=
  10000. shlibpath_var=
  10001. shlibpath_overrides_runpath=unknown
  10002. version_type=none
  10003. dynamic_linker="$host_os ld.so"
  10004. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10005. need_lib_prefix=unknown
  10006. hardcode_into_libs=no
  10007. # when you set need_version to no, make sure it does not cause -set_version
  10008. # flags to be left without arguments
  10009. need_version=unknown
  10010. case $host_os in
  10011. aix3*)
  10012. version_type=linux
  10013. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  10014. shlibpath_var=LIBPATH
  10015. # AIX 3 has no versioning support, so we append a major version to the name.
  10016. soname_spec='${libname}${release}${shared_ext}$major'
  10017. ;;
  10018. aix[4-9]*)
  10019. version_type=linux
  10020. need_lib_prefix=no
  10021. need_version=no
  10022. hardcode_into_libs=yes
  10023. if test "$host_cpu" = ia64; then
  10024. # AIX 5 supports IA64
  10025. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  10026. shlibpath_var=LD_LIBRARY_PATH
  10027. else
  10028. # With GCC up to 2.95.x, collect2 would create an import file
  10029. # for dependence libraries. The import file would start with
  10030. # the line `#! .'. This would cause the generated library to
  10031. # depend on `.', always an invalid library. This was fixed in
  10032. # development snapshots of GCC prior to 3.0.
  10033. case $host_os in
  10034. aix4 | aix4.[01] | aix4.[01].*)
  10035. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10036. echo ' yes '
  10037. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  10038. :
  10039. else
  10040. can_build_shared=no
  10041. fi
  10042. ;;
  10043. esac
  10044. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  10045. # soname into executable. Probably we can add versioning support to
  10046. # collect2, so additional links can be useful in future.
  10047. if test "$aix_use_runtimelinking" = yes; then
  10048. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10049. # instead of lib<name>.a to let people know that these are not
  10050. # typical AIX shared libraries.
  10051. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10052. else
  10053. # We preserve .a as extension for shared libraries through AIX4.2
  10054. # and later when we are not doing run time linking.
  10055. library_names_spec='${libname}${release}.a $libname.a'
  10056. soname_spec='${libname}${release}${shared_ext}$major'
  10057. fi
  10058. shlibpath_var=LIBPATH
  10059. fi
  10060. ;;
  10061. amigaos*)
  10062. case $host_cpu in
  10063. powerpc)
  10064. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10065. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10066. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10067. ;;
  10068. m68k)
  10069. library_names_spec='$libname.ixlibrary $libname.a'
  10070. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10071. 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'
  10072. ;;
  10073. esac
  10074. ;;
  10075. beos*)
  10076. library_names_spec='${libname}${shared_ext}'
  10077. dynamic_linker="$host_os ld.so"
  10078. shlibpath_var=LIBRARY_PATH
  10079. ;;
  10080. bsdi[45]*)
  10081. version_type=linux
  10082. need_version=no
  10083. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10084. soname_spec='${libname}${release}${shared_ext}$major'
  10085. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10086. shlibpath_var=LD_LIBRARY_PATH
  10087. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10088. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10089. # the default ld.so.conf also contains /usr/contrib/lib and
  10090. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10091. # libtool to hard-code these into programs
  10092. ;;
  10093. cygwin* | mingw* | pw32* | cegcc*)
  10094. version_type=windows
  10095. shrext_cmds=".dll"
  10096. need_version=no
  10097. need_lib_prefix=no
  10098. case $GCC,$cc_basename in
  10099. yes,*)
  10100. # gcc
  10101. library_names_spec='$libname.dll.a'
  10102. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10103. postinstall_cmds='base_file=`basename \${file}`~
  10104. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  10105. dldir=$destdir/`dirname \$dlpath`~
  10106. test -d \$dldir || mkdir -p \$dldir~
  10107. $install_prog $dir/$dlname \$dldir/$dlname~
  10108. chmod a+x \$dldir/$dlname~
  10109. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10110. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10111. fi'
  10112. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10113. dlpath=$dir/\$dldll~
  10114. $RM \$dlpath'
  10115. shlibpath_overrides_runpath=yes
  10116. case $host_os in
  10117. cygwin*)
  10118. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10119. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10120. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10121. ;;
  10122. mingw* | cegcc*)
  10123. # MinGW DLLs use traditional 'lib' prefix
  10124. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10125. ;;
  10126. pw32*)
  10127. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10128. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10129. ;;
  10130. esac
  10131. dynamic_linker='Win32 ld.exe'
  10132. ;;
  10133. *,cl*)
  10134. # Native MSVC
  10135. libname_spec='$name'
  10136. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10137. library_names_spec='${libname}.dll.lib'
  10138. case $build_os in
  10139. mingw*)
  10140. sys_lib_search_path_spec=
  10141. lt_save_ifs=$IFS
  10142. IFS=';'
  10143. for lt_path in $LIB
  10144. do
  10145. IFS=$lt_save_ifs
  10146. # Let DOS variable expansion print the short 8.3 style file name.
  10147. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10148. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10149. done
  10150. IFS=$lt_save_ifs
  10151. # Convert to MSYS style.
  10152. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10153. ;;
  10154. cygwin*)
  10155. # Convert to unix form, then to dos form, then back to unix form
  10156. # but this time dos style (no spaces!) so that the unix form looks
  10157. # like /cygdrive/c/PROGRA~1:/cygdr...
  10158. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10159. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10160. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10161. ;;
  10162. *)
  10163. sys_lib_search_path_spec="$LIB"
  10164. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10165. # It is most probably a Windows format PATH.
  10166. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10167. else
  10168. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10169. fi
  10170. # FIXME: find the short name or the path components, as spaces are
  10171. # common. (e.g. "Program Files" -> "PROGRA~1")
  10172. ;;
  10173. esac
  10174. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10175. postinstall_cmds='base_file=`basename \${file}`~
  10176. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  10177. dldir=$destdir/`dirname \$dlpath`~
  10178. test -d \$dldir || mkdir -p \$dldir~
  10179. $install_prog $dir/$dlname \$dldir/$dlname'
  10180. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10181. dlpath=$dir/\$dldll~
  10182. $RM \$dlpath'
  10183. shlibpath_overrides_runpath=yes
  10184. dynamic_linker='Win32 link.exe'
  10185. ;;
  10186. *)
  10187. # Assume MSVC wrapper
  10188. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  10189. dynamic_linker='Win32 ld.exe'
  10190. ;;
  10191. esac
  10192. # FIXME: first we should search . and the directory the executable is in
  10193. shlibpath_var=PATH
  10194. ;;
  10195. darwin* | rhapsody*)
  10196. dynamic_linker="$host_os dyld"
  10197. version_type=darwin
  10198. need_lib_prefix=no
  10199. need_version=no
  10200. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  10201. soname_spec='${libname}${release}${major}$shared_ext'
  10202. shlibpath_overrides_runpath=yes
  10203. shlibpath_var=DYLD_LIBRARY_PATH
  10204. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10205. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10206. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10207. ;;
  10208. dgux*)
  10209. version_type=linux
  10210. need_lib_prefix=no
  10211. need_version=no
  10212. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  10213. soname_spec='${libname}${release}${shared_ext}$major'
  10214. shlibpath_var=LD_LIBRARY_PATH
  10215. ;;
  10216. freebsd1*)
  10217. dynamic_linker=no
  10218. ;;
  10219. freebsd* | dragonfly*)
  10220. # DragonFly does not have aout. When/if they implement a new
  10221. # versioning mechanism, adjust this.
  10222. if test -x /usr/bin/objformat; then
  10223. objformat=`/usr/bin/objformat`
  10224. else
  10225. case $host_os in
  10226. freebsd[123]*) objformat=aout ;;
  10227. *) objformat=elf ;;
  10228. esac
  10229. fi
  10230. version_type=freebsd-$objformat
  10231. case $version_type in
  10232. freebsd-elf*)
  10233. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10234. need_version=no
  10235. need_lib_prefix=no
  10236. ;;
  10237. freebsd-*)
  10238. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  10239. need_version=yes
  10240. ;;
  10241. esac
  10242. shlibpath_var=LD_LIBRARY_PATH
  10243. case $host_os in
  10244. freebsd2*)
  10245. shlibpath_overrides_runpath=yes
  10246. ;;
  10247. freebsd3.[01]* | freebsdelf3.[01]*)
  10248. shlibpath_overrides_runpath=yes
  10249. hardcode_into_libs=yes
  10250. ;;
  10251. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10252. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10253. shlibpath_overrides_runpath=no
  10254. hardcode_into_libs=yes
  10255. ;;
  10256. *) # from 4.6 on, and DragonFly
  10257. shlibpath_overrides_runpath=yes
  10258. hardcode_into_libs=yes
  10259. ;;
  10260. esac
  10261. ;;
  10262. gnu*)
  10263. version_type=linux
  10264. need_lib_prefix=no
  10265. need_version=no
  10266. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10267. soname_spec='${libname}${release}${shared_ext}$major'
  10268. shlibpath_var=LD_LIBRARY_PATH
  10269. hardcode_into_libs=yes
  10270. ;;
  10271. haiku*)
  10272. version_type=linux
  10273. need_lib_prefix=no
  10274. need_version=no
  10275. dynamic_linker="$host_os runtime_loader"
  10276. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10277. soname_spec='${libname}${release}${shared_ext}$major'
  10278. shlibpath_var=LIBRARY_PATH
  10279. shlibpath_overrides_runpath=yes
  10280. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10281. hardcode_into_libs=yes
  10282. ;;
  10283. hpux9* | hpux10* | hpux11*)
  10284. # Give a soname corresponding to the major version so that dld.sl refuses to
  10285. # link against other versions.
  10286. version_type=sunos
  10287. need_lib_prefix=no
  10288. need_version=no
  10289. case $host_cpu in
  10290. ia64*)
  10291. shrext_cmds='.so'
  10292. hardcode_into_libs=yes
  10293. dynamic_linker="$host_os dld.so"
  10294. shlibpath_var=LD_LIBRARY_PATH
  10295. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10296. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10297. soname_spec='${libname}${release}${shared_ext}$major'
  10298. if test "X$HPUX_IA64_MODE" = X32; then
  10299. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10300. else
  10301. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10302. fi
  10303. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10304. ;;
  10305. hppa*64*)
  10306. shrext_cmds='.sl'
  10307. hardcode_into_libs=yes
  10308. dynamic_linker="$host_os dld.sl"
  10309. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10310. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  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. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10314. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10315. ;;
  10316. *)
  10317. shrext_cmds='.sl'
  10318. dynamic_linker="$host_os dld.sl"
  10319. shlibpath_var=SHLIB_PATH
  10320. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10321. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10322. soname_spec='${libname}${release}${shared_ext}$major'
  10323. ;;
  10324. esac
  10325. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10326. postinstall_cmds='chmod 555 $lib'
  10327. # or fails outright, so override atomically:
  10328. install_override_mode=555
  10329. ;;
  10330. interix[3-9]*)
  10331. version_type=linux
  10332. need_lib_prefix=no
  10333. need_version=no
  10334. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10335. soname_spec='${libname}${release}${shared_ext}$major'
  10336. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10337. shlibpath_var=LD_LIBRARY_PATH
  10338. shlibpath_overrides_runpath=no
  10339. hardcode_into_libs=yes
  10340. ;;
  10341. irix5* | irix6* | nonstopux*)
  10342. case $host_os in
  10343. nonstopux*) version_type=nonstopux ;;
  10344. *)
  10345. if test "$lt_cv_prog_gnu_ld" = yes; then
  10346. version_type=linux
  10347. else
  10348. version_type=irix
  10349. fi ;;
  10350. esac
  10351. need_lib_prefix=no
  10352. need_version=no
  10353. soname_spec='${libname}${release}${shared_ext}$major'
  10354. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10355. case $host_os in
  10356. irix5* | nonstopux*)
  10357. libsuff= shlibsuff=
  10358. ;;
  10359. *)
  10360. case $LD in # libtool.m4 will add one of these switches to LD
  10361. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10362. libsuff= shlibsuff= libmagic=32-bit;;
  10363. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10364. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10365. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10366. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10367. *) libsuff= shlibsuff= libmagic=never-match;;
  10368. esac
  10369. ;;
  10370. esac
  10371. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10372. shlibpath_overrides_runpath=no
  10373. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10374. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10375. hardcode_into_libs=yes
  10376. ;;
  10377. # No shared lib support for Linux oldld, aout, or coff.
  10378. linux*oldld* | linux*aout* | linux*coff*)
  10379. dynamic_linker=no
  10380. ;;
  10381. # This must be Linux ELF.
  10382. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10383. version_type=linux
  10384. need_lib_prefix=no
  10385. need_version=no
  10386. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10387. soname_spec='${libname}${release}${shared_ext}$major'
  10388. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10389. shlibpath_var=LD_LIBRARY_PATH
  10390. shlibpath_overrides_runpath=no
  10391. # Some binutils ld are patched to set DT_RUNPATH
  10392. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10393. $as_echo_n "(cached) " >&6
  10394. else
  10395. lt_cv_shlibpath_overrides_runpath=no
  10396. save_LDFLAGS=$LDFLAGS
  10397. save_libdir=$libdir
  10398. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10399. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10401. /* end confdefs.h. */
  10402. int
  10403. main ()
  10404. {
  10405. ;
  10406. return 0;
  10407. }
  10408. _ACEOF
  10409. if ac_fn_c_try_link "$LINENO"; then :
  10410. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10411. lt_cv_shlibpath_overrides_runpath=yes
  10412. fi
  10413. fi
  10414. rm -f core conftest.err conftest.$ac_objext \
  10415. conftest$ac_exeext conftest.$ac_ext
  10416. LDFLAGS=$save_LDFLAGS
  10417. libdir=$save_libdir
  10418. fi
  10419. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10420. # This implies no fast_install, which is unacceptable.
  10421. # Some rework will be needed to allow for fast_install
  10422. # before this can be enabled.
  10423. hardcode_into_libs=yes
  10424. # Append ld.so.conf contents to the search path
  10425. if test -f /etc/ld.so.conf; then
  10426. 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' ' '`
  10427. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10428. fi
  10429. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10430. # powerpc, because MkLinux only supported shared libraries with the
  10431. # GNU dynamic linker. Since this was broken with cross compilers,
  10432. # most powerpc-linux boxes support dynamic linking these days and
  10433. # people can always --disable-shared, the test was removed, and we
  10434. # assume the GNU/Linux dynamic linker is in use.
  10435. dynamic_linker='GNU/Linux ld.so'
  10436. ;;
  10437. netbsd*)
  10438. version_type=sunos
  10439. need_lib_prefix=no
  10440. need_version=no
  10441. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10442. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10443. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10444. dynamic_linker='NetBSD (a.out) ld.so'
  10445. else
  10446. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10447. soname_spec='${libname}${release}${shared_ext}$major'
  10448. dynamic_linker='NetBSD ld.elf_so'
  10449. fi
  10450. shlibpath_var=LD_LIBRARY_PATH
  10451. shlibpath_overrides_runpath=yes
  10452. hardcode_into_libs=yes
  10453. ;;
  10454. newsos6)
  10455. version_type=linux
  10456. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10457. shlibpath_var=LD_LIBRARY_PATH
  10458. shlibpath_overrides_runpath=yes
  10459. ;;
  10460. *nto* | *qnx*)
  10461. version_type=qnx
  10462. need_lib_prefix=no
  10463. need_version=no
  10464. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10465. soname_spec='${libname}${release}${shared_ext}$major'
  10466. shlibpath_var=LD_LIBRARY_PATH
  10467. shlibpath_overrides_runpath=no
  10468. hardcode_into_libs=yes
  10469. dynamic_linker='ldqnx.so'
  10470. ;;
  10471. openbsd*)
  10472. version_type=sunos
  10473. sys_lib_dlsearch_path_spec="/usr/lib"
  10474. need_lib_prefix=no
  10475. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10476. case $host_os in
  10477. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10478. *) need_version=no ;;
  10479. esac
  10480. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10481. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10482. shlibpath_var=LD_LIBRARY_PATH
  10483. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10484. case $host_os in
  10485. openbsd2.[89] | openbsd2.[89].*)
  10486. shlibpath_overrides_runpath=no
  10487. ;;
  10488. *)
  10489. shlibpath_overrides_runpath=yes
  10490. ;;
  10491. esac
  10492. else
  10493. shlibpath_overrides_runpath=yes
  10494. fi
  10495. ;;
  10496. os2*)
  10497. libname_spec='$name'
  10498. shrext_cmds=".dll"
  10499. need_lib_prefix=no
  10500. library_names_spec='$libname${shared_ext} $libname.a'
  10501. dynamic_linker='OS/2 ld.exe'
  10502. shlibpath_var=LIBPATH
  10503. ;;
  10504. osf3* | osf4* | osf5*)
  10505. version_type=osf
  10506. need_lib_prefix=no
  10507. need_version=no
  10508. soname_spec='${libname}${release}${shared_ext}$major'
  10509. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10510. shlibpath_var=LD_LIBRARY_PATH
  10511. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10512. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10513. ;;
  10514. rdos*)
  10515. dynamic_linker=no
  10516. ;;
  10517. solaris*)
  10518. version_type=linux
  10519. need_lib_prefix=no
  10520. need_version=no
  10521. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10522. soname_spec='${libname}${release}${shared_ext}$major'
  10523. shlibpath_var=LD_LIBRARY_PATH
  10524. shlibpath_overrides_runpath=yes
  10525. hardcode_into_libs=yes
  10526. # ldd complains unless libraries are executable
  10527. postinstall_cmds='chmod +x $lib'
  10528. ;;
  10529. sunos4*)
  10530. version_type=sunos
  10531. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10532. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10533. shlibpath_var=LD_LIBRARY_PATH
  10534. shlibpath_overrides_runpath=yes
  10535. if test "$with_gnu_ld" = yes; then
  10536. need_lib_prefix=no
  10537. fi
  10538. need_version=yes
  10539. ;;
  10540. sysv4 | sysv4.3*)
  10541. version_type=linux
  10542. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10543. soname_spec='${libname}${release}${shared_ext}$major'
  10544. shlibpath_var=LD_LIBRARY_PATH
  10545. case $host_vendor in
  10546. sni)
  10547. shlibpath_overrides_runpath=no
  10548. need_lib_prefix=no
  10549. runpath_var=LD_RUN_PATH
  10550. ;;
  10551. siemens)
  10552. need_lib_prefix=no
  10553. ;;
  10554. motorola)
  10555. need_lib_prefix=no
  10556. need_version=no
  10557. shlibpath_overrides_runpath=no
  10558. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10559. ;;
  10560. esac
  10561. ;;
  10562. sysv4*MP*)
  10563. if test -d /usr/nec ;then
  10564. version_type=linux
  10565. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10566. soname_spec='$libname${shared_ext}.$major'
  10567. shlibpath_var=LD_LIBRARY_PATH
  10568. fi
  10569. ;;
  10570. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10571. version_type=freebsd-elf
  10572. need_lib_prefix=no
  10573. need_version=no
  10574. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10575. soname_spec='${libname}${release}${shared_ext}$major'
  10576. shlibpath_var=LD_LIBRARY_PATH
  10577. shlibpath_overrides_runpath=yes
  10578. hardcode_into_libs=yes
  10579. if test "$with_gnu_ld" = yes; then
  10580. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10581. else
  10582. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10583. case $host_os in
  10584. sco3.2v5*)
  10585. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10586. ;;
  10587. esac
  10588. fi
  10589. sys_lib_dlsearch_path_spec='/usr/lib'
  10590. ;;
  10591. tpf*)
  10592. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10593. version_type=linux
  10594. need_lib_prefix=no
  10595. need_version=no
  10596. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10597. shlibpath_var=LD_LIBRARY_PATH
  10598. shlibpath_overrides_runpath=no
  10599. hardcode_into_libs=yes
  10600. ;;
  10601. uts4*)
  10602. version_type=linux
  10603. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10604. soname_spec='${libname}${release}${shared_ext}$major'
  10605. shlibpath_var=LD_LIBRARY_PATH
  10606. ;;
  10607. *)
  10608. dynamic_linker=no
  10609. ;;
  10610. esac
  10611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10612. $as_echo "$dynamic_linker" >&6; }
  10613. test "$dynamic_linker" = no && can_build_shared=no
  10614. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10615. if test "$GCC" = yes; then
  10616. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10617. fi
  10618. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10619. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10620. fi
  10621. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10622. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10623. fi
  10624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10625. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10626. hardcode_action=
  10627. if test -n "$hardcode_libdir_flag_spec" ||
  10628. test -n "$runpath_var" ||
  10629. test "X$hardcode_automatic" = "Xyes" ; then
  10630. # We can hardcode non-existent directories.
  10631. if test "$hardcode_direct" != no &&
  10632. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10633. # have to relink, otherwise we might link with an installed library
  10634. # when we should be linking with a yet-to-be-installed one
  10635. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10636. test "$hardcode_minus_L" != no; then
  10637. # Linking always hardcodes the temporary library directory.
  10638. hardcode_action=relink
  10639. else
  10640. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10641. hardcode_action=immediate
  10642. fi
  10643. else
  10644. # We cannot hardcode anything, or else we can only hardcode existing
  10645. # directories.
  10646. hardcode_action=unsupported
  10647. fi
  10648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10649. $as_echo "$hardcode_action" >&6; }
  10650. if test "$hardcode_action" = relink ||
  10651. test "$inherit_rpath" = yes; then
  10652. # Fast installation is not supported
  10653. enable_fast_install=no
  10654. elif test "$shlibpath_overrides_runpath" = yes ||
  10655. test "$enable_shared" = no; then
  10656. # Fast installation is not necessary
  10657. enable_fast_install=needless
  10658. fi
  10659. if test "x$enable_dlopen" != xyes; then
  10660. enable_dlopen=unknown
  10661. enable_dlopen_self=unknown
  10662. enable_dlopen_self_static=unknown
  10663. else
  10664. lt_cv_dlopen=no
  10665. lt_cv_dlopen_libs=
  10666. case $host_os in
  10667. beos*)
  10668. lt_cv_dlopen="load_add_on"
  10669. lt_cv_dlopen_libs=
  10670. lt_cv_dlopen_self=yes
  10671. ;;
  10672. mingw* | pw32* | cegcc*)
  10673. lt_cv_dlopen="LoadLibrary"
  10674. lt_cv_dlopen_libs=
  10675. ;;
  10676. cygwin*)
  10677. lt_cv_dlopen="dlopen"
  10678. lt_cv_dlopen_libs=
  10679. ;;
  10680. darwin*)
  10681. # if libdl is installed we need to link against it
  10682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10683. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10684. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10685. $as_echo_n "(cached) " >&6
  10686. else
  10687. ac_check_lib_save_LIBS=$LIBS
  10688. LIBS="-ldl $LIBS"
  10689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10690. /* end confdefs.h. */
  10691. /* Override any GCC internal prototype to avoid an error.
  10692. Use char because int might match the return type of a GCC
  10693. builtin and then its argument prototype would still apply. */
  10694. #ifdef __cplusplus
  10695. extern "C"
  10696. #endif
  10697. char dlopen ();
  10698. int
  10699. main ()
  10700. {
  10701. return dlopen ();
  10702. ;
  10703. return 0;
  10704. }
  10705. _ACEOF
  10706. if ac_fn_c_try_link "$LINENO"; then :
  10707. ac_cv_lib_dl_dlopen=yes
  10708. else
  10709. ac_cv_lib_dl_dlopen=no
  10710. fi
  10711. rm -f core conftest.err conftest.$ac_objext \
  10712. conftest$ac_exeext conftest.$ac_ext
  10713. LIBS=$ac_check_lib_save_LIBS
  10714. fi
  10715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10716. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10717. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10718. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10719. else
  10720. lt_cv_dlopen="dyld"
  10721. lt_cv_dlopen_libs=
  10722. lt_cv_dlopen_self=yes
  10723. fi
  10724. ;;
  10725. *)
  10726. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10727. if test "x$ac_cv_func_shl_load" = xyes; then :
  10728. lt_cv_dlopen="shl_load"
  10729. else
  10730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10731. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10732. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10733. $as_echo_n "(cached) " >&6
  10734. else
  10735. ac_check_lib_save_LIBS=$LIBS
  10736. LIBS="-ldld $LIBS"
  10737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10738. /* end confdefs.h. */
  10739. /* Override any GCC internal prototype to avoid an error.
  10740. Use char because int might match the return type of a GCC
  10741. builtin and then its argument prototype would still apply. */
  10742. #ifdef __cplusplus
  10743. extern "C"
  10744. #endif
  10745. char shl_load ();
  10746. int
  10747. main ()
  10748. {
  10749. return shl_load ();
  10750. ;
  10751. return 0;
  10752. }
  10753. _ACEOF
  10754. if ac_fn_c_try_link "$LINENO"; then :
  10755. ac_cv_lib_dld_shl_load=yes
  10756. else
  10757. ac_cv_lib_dld_shl_load=no
  10758. fi
  10759. rm -f core conftest.err conftest.$ac_objext \
  10760. conftest$ac_exeext conftest.$ac_ext
  10761. LIBS=$ac_check_lib_save_LIBS
  10762. fi
  10763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10764. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10765. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10766. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10767. else
  10768. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10769. if test "x$ac_cv_func_dlopen" = xyes; then :
  10770. lt_cv_dlopen="dlopen"
  10771. else
  10772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10773. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10774. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10775. $as_echo_n "(cached) " >&6
  10776. else
  10777. ac_check_lib_save_LIBS=$LIBS
  10778. LIBS="-ldl $LIBS"
  10779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10780. /* end confdefs.h. */
  10781. /* Override any GCC internal prototype to avoid an error.
  10782. Use char because int might match the return type of a GCC
  10783. builtin and then its argument prototype would still apply. */
  10784. #ifdef __cplusplus
  10785. extern "C"
  10786. #endif
  10787. char dlopen ();
  10788. int
  10789. main ()
  10790. {
  10791. return dlopen ();
  10792. ;
  10793. return 0;
  10794. }
  10795. _ACEOF
  10796. if ac_fn_c_try_link "$LINENO"; then :
  10797. ac_cv_lib_dl_dlopen=yes
  10798. else
  10799. ac_cv_lib_dl_dlopen=no
  10800. fi
  10801. rm -f core conftest.err conftest.$ac_objext \
  10802. conftest$ac_exeext conftest.$ac_ext
  10803. LIBS=$ac_check_lib_save_LIBS
  10804. fi
  10805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10806. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10807. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10808. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10809. else
  10810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10811. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10812. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10813. $as_echo_n "(cached) " >&6
  10814. else
  10815. ac_check_lib_save_LIBS=$LIBS
  10816. LIBS="-lsvld $LIBS"
  10817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10818. /* end confdefs.h. */
  10819. /* Override any GCC internal prototype to avoid an error.
  10820. Use char because int might match the return type of a GCC
  10821. builtin and then its argument prototype would still apply. */
  10822. #ifdef __cplusplus
  10823. extern "C"
  10824. #endif
  10825. char dlopen ();
  10826. int
  10827. main ()
  10828. {
  10829. return dlopen ();
  10830. ;
  10831. return 0;
  10832. }
  10833. _ACEOF
  10834. if ac_fn_c_try_link "$LINENO"; then :
  10835. ac_cv_lib_svld_dlopen=yes
  10836. else
  10837. ac_cv_lib_svld_dlopen=no
  10838. fi
  10839. rm -f core conftest.err conftest.$ac_objext \
  10840. conftest$ac_exeext conftest.$ac_ext
  10841. LIBS=$ac_check_lib_save_LIBS
  10842. fi
  10843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10844. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10845. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10846. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10847. else
  10848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10849. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10850. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10851. $as_echo_n "(cached) " >&6
  10852. else
  10853. ac_check_lib_save_LIBS=$LIBS
  10854. LIBS="-ldld $LIBS"
  10855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10856. /* end confdefs.h. */
  10857. /* Override any GCC internal prototype to avoid an error.
  10858. Use char because int might match the return type of a GCC
  10859. builtin and then its argument prototype would still apply. */
  10860. #ifdef __cplusplus
  10861. extern "C"
  10862. #endif
  10863. char dld_link ();
  10864. int
  10865. main ()
  10866. {
  10867. return dld_link ();
  10868. ;
  10869. return 0;
  10870. }
  10871. _ACEOF
  10872. if ac_fn_c_try_link "$LINENO"; then :
  10873. ac_cv_lib_dld_dld_link=yes
  10874. else
  10875. ac_cv_lib_dld_dld_link=no
  10876. fi
  10877. rm -f core conftest.err conftest.$ac_objext \
  10878. conftest$ac_exeext conftest.$ac_ext
  10879. LIBS=$ac_check_lib_save_LIBS
  10880. fi
  10881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10882. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10883. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10884. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10885. fi
  10886. fi
  10887. fi
  10888. fi
  10889. fi
  10890. fi
  10891. ;;
  10892. esac
  10893. if test "x$lt_cv_dlopen" != xno; then
  10894. enable_dlopen=yes
  10895. else
  10896. enable_dlopen=no
  10897. fi
  10898. case $lt_cv_dlopen in
  10899. dlopen)
  10900. save_CPPFLAGS="$CPPFLAGS"
  10901. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10902. save_LDFLAGS="$LDFLAGS"
  10903. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10904. save_LIBS="$LIBS"
  10905. LIBS="$lt_cv_dlopen_libs $LIBS"
  10906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10907. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10908. if ${lt_cv_dlopen_self+:} false; then :
  10909. $as_echo_n "(cached) " >&6
  10910. else
  10911. if test "$cross_compiling" = yes; then :
  10912. lt_cv_dlopen_self=cross
  10913. else
  10914. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10915. lt_status=$lt_dlunknown
  10916. cat > conftest.$ac_ext <<_LT_EOF
  10917. #line $LINENO "configure"
  10918. #include "confdefs.h"
  10919. #if HAVE_DLFCN_H
  10920. #include <dlfcn.h>
  10921. #endif
  10922. #include <stdio.h>
  10923. #ifdef RTLD_GLOBAL
  10924. # define LT_DLGLOBAL RTLD_GLOBAL
  10925. #else
  10926. # ifdef DL_GLOBAL
  10927. # define LT_DLGLOBAL DL_GLOBAL
  10928. # else
  10929. # define LT_DLGLOBAL 0
  10930. # endif
  10931. #endif
  10932. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10933. find out it does not work in some platform. */
  10934. #ifndef LT_DLLAZY_OR_NOW
  10935. # ifdef RTLD_LAZY
  10936. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10937. # else
  10938. # ifdef DL_LAZY
  10939. # define LT_DLLAZY_OR_NOW DL_LAZY
  10940. # else
  10941. # ifdef RTLD_NOW
  10942. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10943. # else
  10944. # ifdef DL_NOW
  10945. # define LT_DLLAZY_OR_NOW DL_NOW
  10946. # else
  10947. # define LT_DLLAZY_OR_NOW 0
  10948. # endif
  10949. # endif
  10950. # endif
  10951. # endif
  10952. #endif
  10953. /* When -fvisbility=hidden is used, assume the code has been annotated
  10954. correspondingly for the symbols needed. */
  10955. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10956. int fnord () __attribute__((visibility("default")));
  10957. #endif
  10958. int fnord () { return 42; }
  10959. int main ()
  10960. {
  10961. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10962. int status = $lt_dlunknown;
  10963. if (self)
  10964. {
  10965. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10966. else
  10967. {
  10968. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10969. else puts (dlerror ());
  10970. }
  10971. /* dlclose (self); */
  10972. }
  10973. else
  10974. puts (dlerror ());
  10975. return status;
  10976. }
  10977. _LT_EOF
  10978. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10979. (eval $ac_link) 2>&5
  10980. ac_status=$?
  10981. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10982. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10983. (./conftest; exit; ) >&5 2>/dev/null
  10984. lt_status=$?
  10985. case x$lt_status in
  10986. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10987. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10988. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10989. esac
  10990. else :
  10991. # compilation failed
  10992. lt_cv_dlopen_self=no
  10993. fi
  10994. fi
  10995. rm -fr conftest*
  10996. fi
  10997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10998. $as_echo "$lt_cv_dlopen_self" >&6; }
  10999. if test "x$lt_cv_dlopen_self" = xyes; then
  11000. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11002. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  11003. if ${lt_cv_dlopen_self_static+:} false; then :
  11004. $as_echo_n "(cached) " >&6
  11005. else
  11006. if test "$cross_compiling" = yes; then :
  11007. lt_cv_dlopen_self_static=cross
  11008. else
  11009. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11010. lt_status=$lt_dlunknown
  11011. cat > conftest.$ac_ext <<_LT_EOF
  11012. #line $LINENO "configure"
  11013. #include "confdefs.h"
  11014. #if HAVE_DLFCN_H
  11015. #include <dlfcn.h>
  11016. #endif
  11017. #include <stdio.h>
  11018. #ifdef RTLD_GLOBAL
  11019. # define LT_DLGLOBAL RTLD_GLOBAL
  11020. #else
  11021. # ifdef DL_GLOBAL
  11022. # define LT_DLGLOBAL DL_GLOBAL
  11023. # else
  11024. # define LT_DLGLOBAL 0
  11025. # endif
  11026. #endif
  11027. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11028. find out it does not work in some platform. */
  11029. #ifndef LT_DLLAZY_OR_NOW
  11030. # ifdef RTLD_LAZY
  11031. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11032. # else
  11033. # ifdef DL_LAZY
  11034. # define LT_DLLAZY_OR_NOW DL_LAZY
  11035. # else
  11036. # ifdef RTLD_NOW
  11037. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11038. # else
  11039. # ifdef DL_NOW
  11040. # define LT_DLLAZY_OR_NOW DL_NOW
  11041. # else
  11042. # define LT_DLLAZY_OR_NOW 0
  11043. # endif
  11044. # endif
  11045. # endif
  11046. # endif
  11047. #endif
  11048. /* When -fvisbility=hidden is used, assume the code has been annotated
  11049. correspondingly for the symbols needed. */
  11050. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11051. int fnord () __attribute__((visibility("default")));
  11052. #endif
  11053. int fnord () { return 42; }
  11054. int main ()
  11055. {
  11056. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11057. int status = $lt_dlunknown;
  11058. if (self)
  11059. {
  11060. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11061. else
  11062. {
  11063. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11064. else puts (dlerror ());
  11065. }
  11066. /* dlclose (self); */
  11067. }
  11068. else
  11069. puts (dlerror ());
  11070. return status;
  11071. }
  11072. _LT_EOF
  11073. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11074. (eval $ac_link) 2>&5
  11075. ac_status=$?
  11076. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11077. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  11078. (./conftest; exit; ) >&5 2>/dev/null
  11079. lt_status=$?
  11080. case x$lt_status in
  11081. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11082. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11083. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11084. esac
  11085. else :
  11086. # compilation failed
  11087. lt_cv_dlopen_self_static=no
  11088. fi
  11089. fi
  11090. rm -fr conftest*
  11091. fi
  11092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11093. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11094. fi
  11095. CPPFLAGS="$save_CPPFLAGS"
  11096. LDFLAGS="$save_LDFLAGS"
  11097. LIBS="$save_LIBS"
  11098. ;;
  11099. esac
  11100. case $lt_cv_dlopen_self in
  11101. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11102. *) enable_dlopen_self=unknown ;;
  11103. esac
  11104. case $lt_cv_dlopen_self_static in
  11105. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11106. *) enable_dlopen_self_static=unknown ;;
  11107. esac
  11108. fi
  11109. striplib=
  11110. old_striplib=
  11111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11112. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11113. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11114. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11115. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11117. $as_echo "yes" >&6; }
  11118. else
  11119. # FIXME - insert some real tests, host_os isn't really good enough
  11120. case $host_os in
  11121. darwin*)
  11122. if test -n "$STRIP" ; then
  11123. striplib="$STRIP -x"
  11124. old_striplib="$STRIP -S"
  11125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11126. $as_echo "yes" >&6; }
  11127. else
  11128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11129. $as_echo "no" >&6; }
  11130. fi
  11131. ;;
  11132. *)
  11133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11134. $as_echo "no" >&6; }
  11135. ;;
  11136. esac
  11137. fi
  11138. # Report which library types will actually be built
  11139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11140. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11142. $as_echo "$can_build_shared" >&6; }
  11143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11144. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11145. test "$can_build_shared" = "no" && enable_shared=no
  11146. # On AIX, shared libraries and static libraries use the same namespace, and
  11147. # are all built from PIC.
  11148. case $host_os in
  11149. aix3*)
  11150. test "$enable_shared" = yes && enable_static=no
  11151. if test -n "$RANLIB"; then
  11152. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11153. postinstall_cmds='$RANLIB $lib'
  11154. fi
  11155. ;;
  11156. aix[4-9]*)
  11157. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11158. test "$enable_shared" = yes && enable_static=no
  11159. fi
  11160. ;;
  11161. esac
  11162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11163. $as_echo "$enable_shared" >&6; }
  11164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11165. $as_echo_n "checking whether to build static libraries... " >&6; }
  11166. # Make sure either enable_shared or enable_static is yes.
  11167. test "$enable_shared" = yes || enable_static=yes
  11168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11169. $as_echo "$enable_static" >&6; }
  11170. fi
  11171. ac_ext=c
  11172. ac_cpp='$CPP $CPPFLAGS'
  11173. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11174. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11175. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11176. CC="$lt_save_CC"
  11177. ac_config_commands="$ac_config_commands libtool"
  11178. # Only expand once:
  11179. LIBC_FATAL_STDERR_=1
  11180. export LIBC_FATAL_STDERR_
  11181. for ac_header in $gl_header_list
  11182. do :
  11183. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11184. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11185. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11186. cat >>confdefs.h <<_ACEOF
  11187. @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11188. _ACEOF
  11189. fi
  11190. done
  11191. for ac_func in $gl_func_list
  11192. do :
  11193. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11194. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11195. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11196. cat >>confdefs.h <<_ACEOF
  11197. @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11198. _ACEOF
  11199. fi
  11200. done
  11201. GNULIB_MEMCHR=0;
  11202. GNULIB_MEMMEM=0;
  11203. GNULIB_MEMPCPY=0;
  11204. GNULIB_MEMRCHR=0;
  11205. GNULIB_RAWMEMCHR=0;
  11206. GNULIB_STPCPY=0;
  11207. GNULIB_STPNCPY=0;
  11208. GNULIB_STRCHRNUL=0;
  11209. GNULIB_STRDUP=0;
  11210. GNULIB_STRNCAT=0;
  11211. GNULIB_STRNDUP=0;
  11212. GNULIB_STRNLEN=0;
  11213. GNULIB_STRPBRK=0;
  11214. GNULIB_STRSEP=0;
  11215. GNULIB_STRSTR=0;
  11216. GNULIB_STRCASESTR=0;
  11217. GNULIB_STRTOK_R=0;
  11218. GNULIB_MBSLEN=0;
  11219. GNULIB_MBSNLEN=0;
  11220. GNULIB_MBSCHR=0;
  11221. GNULIB_MBSRCHR=0;
  11222. GNULIB_MBSSTR=0;
  11223. GNULIB_MBSCASECMP=0;
  11224. GNULIB_MBSNCASECMP=0;
  11225. GNULIB_MBSPCASECMP=0;
  11226. GNULIB_MBSCASESTR=0;
  11227. GNULIB_MBSCSPN=0;
  11228. GNULIB_MBSPBRK=0;
  11229. GNULIB_MBSSPN=0;
  11230. GNULIB_MBSSEP=0;
  11231. GNULIB_MBSTOK_R=0;
  11232. GNULIB_STRERROR=0;
  11233. GNULIB_STRERROR_R=0;
  11234. GNULIB_STRSIGNAL=0;
  11235. GNULIB_STRVERSCMP=0;
  11236. HAVE_MBSLEN=0;
  11237. HAVE_MEMCHR=1;
  11238. HAVE_DECL_MEMMEM=1;
  11239. HAVE_MEMPCPY=1;
  11240. HAVE_DECL_MEMRCHR=1;
  11241. HAVE_RAWMEMCHR=1;
  11242. HAVE_STPCPY=1;
  11243. HAVE_STPNCPY=1;
  11244. HAVE_STRCHRNUL=1;
  11245. HAVE_DECL_STRDUP=1;
  11246. HAVE_DECL_STRNDUP=1;
  11247. HAVE_DECL_STRNLEN=1;
  11248. HAVE_STRPBRK=1;
  11249. HAVE_STRSEP=1;
  11250. HAVE_STRCASESTR=1;
  11251. HAVE_DECL_STRTOK_R=1;
  11252. HAVE_DECL_STRERROR_R=1;
  11253. HAVE_DECL_STRSIGNAL=1;
  11254. HAVE_STRVERSCMP=1;
  11255. REPLACE_MEMCHR=0;
  11256. REPLACE_MEMMEM=0;
  11257. REPLACE_STPNCPY=0;
  11258. REPLACE_STRDUP=0;
  11259. REPLACE_STRSTR=0;
  11260. REPLACE_STRCASESTR=0;
  11261. REPLACE_STRCHRNUL=0;
  11262. REPLACE_STRERROR=0;
  11263. REPLACE_STRERROR_R=0;
  11264. REPLACE_STRNCAT=0;
  11265. REPLACE_STRNDUP=0;
  11266. REPLACE_STRNLEN=0;
  11267. REPLACE_STRSIGNAL=0;
  11268. REPLACE_STRTOK_R=0;
  11269. UNDEFINE_STRTOK_R=0;
  11270. # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
  11271. # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
  11272. # irrelevant for anonymous mappings.
  11273. ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
  11274. if test "x$ac_cv_func_mmap" = xyes; then :
  11275. gl_have_mmap=yes
  11276. else
  11277. gl_have_mmap=no
  11278. fi
  11279. # Try to allow MAP_ANONYMOUS.
  11280. gl_have_mmap_anonymous=no
  11281. if test $gl_have_mmap = yes; then
  11282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
  11283. $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
  11284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11285. /* end confdefs.h. */
  11286. #include <sys/mman.h>
  11287. #ifdef MAP_ANONYMOUS
  11288. I cant identify this map.
  11289. #endif
  11290. _ACEOF
  11291. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11292. $EGREP "I cant identify this map." >/dev/null 2>&1; then :
  11293. gl_have_mmap_anonymous=yes
  11294. fi
  11295. rm -f conftest*
  11296. if test $gl_have_mmap_anonymous != yes; then
  11297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11298. /* end confdefs.h. */
  11299. #include <sys/mman.h>
  11300. #ifdef MAP_ANON
  11301. I cant identify this map.
  11302. #endif
  11303. _ACEOF
  11304. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11305. $EGREP "I cant identify this map." >/dev/null 2>&1; then :
  11306. $as_echo "@%:@define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
  11307. gl_have_mmap_anonymous=yes
  11308. fi
  11309. rm -f conftest*
  11310. fi
  11311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
  11312. $as_echo "$gl_have_mmap_anonymous" >&6; }
  11313. if test $gl_have_mmap_anonymous = yes; then
  11314. $as_echo "@%:@define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
  11315. fi
  11316. fi
  11317. :
  11318. :
  11319. if test $HAVE_MEMCHR = 1; then
  11320. # Detect platform-specific bugs in some versions of glibc:
  11321. # memchr should not dereference anything with length 0
  11322. # http://bugzilla.redhat.com/499689
  11323. # memchr should not dereference overestimated length after a match
  11324. # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
  11325. # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
  11326. # Assume that memchr works on platforms that lack mprotect.
  11327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
  11328. $as_echo_n "checking whether memchr works... " >&6; }
  11329. if ${gl_cv_func_memchr_works+:} false; then :
  11330. $as_echo_n "(cached) " >&6
  11331. else
  11332. if test "$cross_compiling" = yes; then :
  11333. gl_cv_func_memchr_works="guessing no"
  11334. else
  11335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11336. /* end confdefs.h. */
  11337. #include <string.h>
  11338. #if HAVE_SYS_MMAN_H
  11339. # include <fcntl.h>
  11340. # include <unistd.h>
  11341. # include <sys/types.h>
  11342. # include <sys/mman.h>
  11343. # ifndef MAP_FILE
  11344. # define MAP_FILE 0
  11345. # endif
  11346. #endif
  11347. int
  11348. main ()
  11349. {
  11350. int result = 0;
  11351. char *fence = NULL;
  11352. #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
  11353. # if HAVE_MAP_ANONYMOUS
  11354. const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
  11355. const int fd = -1;
  11356. # else /* !HAVE_MAP_ANONYMOUS */
  11357. const int flags = MAP_FILE | MAP_PRIVATE;
  11358. int fd = open ("/dev/zero", O_RDONLY, 0666);
  11359. if (fd >= 0)
  11360. # endif
  11361. {
  11362. int pagesize = getpagesize ();
  11363. char *two_pages =
  11364. (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
  11365. flags, fd, 0);
  11366. if (two_pages != (char *)(-1)
  11367. && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
  11368. fence = two_pages + pagesize;
  11369. }
  11370. #endif
  11371. if (fence)
  11372. {
  11373. if (memchr (fence, 0, 0))
  11374. result |= 1;
  11375. strcpy (fence - 9, "12345678");
  11376. if (memchr (fence - 9, 0, 79) != fence - 1)
  11377. result |= 2;
  11378. if (memchr (fence - 1, 0, 3) != fence - 1)
  11379. result |= 4;
  11380. }
  11381. return result;
  11382. ;
  11383. return 0;
  11384. }
  11385. _ACEOF
  11386. if ac_fn_c_try_run "$LINENO"; then :
  11387. gl_cv_func_memchr_works=yes
  11388. else
  11389. gl_cv_func_memchr_works=no
  11390. fi
  11391. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11392. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11393. fi
  11394. fi
  11395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
  11396. $as_echo "$gl_cv_func_memchr_works" >&6; }
  11397. if test "$gl_cv_func_memchr_works" != yes; then
  11398. REPLACE_MEMCHR=1
  11399. fi
  11400. fi
  11401. ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
  11402. if test "x$ac_cv_have_decl_memmem" = xyes; then :
  11403. ac_have_decl=1
  11404. else
  11405. ac_have_decl=0
  11406. fi
  11407. cat >>confdefs.h <<_ACEOF
  11408. @%:@define HAVE_DECL_MEMMEM $ac_have_decl
  11409. _ACEOF
  11410. for ac_func in memmem
  11411. do :
  11412. ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
  11413. if test "x$ac_cv_func_memmem" = xyes; then :
  11414. cat >>confdefs.h <<_ACEOF
  11415. @%:@define HAVE_MEMMEM 1
  11416. _ACEOF
  11417. fi
  11418. done
  11419. if test $ac_cv_func_memmem = yes; then
  11420. HAVE_MEMMEM=1
  11421. else
  11422. HAVE_MEMMEM=0
  11423. fi
  11424. :
  11425. if test $ac_cv_have_decl_memmem = no; then
  11426. HAVE_DECL_MEMMEM=0
  11427. else
  11428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
  11429. $as_echo_n "checking whether memmem works... " >&6; }
  11430. if ${gl_cv_func_memmem_works_always+:} false; then :
  11431. $as_echo_n "(cached) " >&6
  11432. else
  11433. if test "$cross_compiling" = yes; then :
  11434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11435. /* end confdefs.h. */
  11436. #ifdef __GNU_LIBRARY__
  11437. #include <features.h>
  11438. #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
  11439. || __GLIBC_MINOR__ > 12)) \
  11440. || (__GLIBC__ > 2)) \
  11441. || defined __UCLIBC__
  11442. Lucky user
  11443. #endif
  11444. #elif defined __CYGWIN__
  11445. #include <cygwin/version.h>
  11446. #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
  11447. Lucky user
  11448. #endif
  11449. #else
  11450. Lucky user
  11451. #endif
  11452. _ACEOF
  11453. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11454. $EGREP "Lucky user" >/dev/null 2>&1; then :
  11455. gl_cv_func_memmem_works_always=yes
  11456. else
  11457. gl_cv_func_memmem_works_always="guessing no"
  11458. fi
  11459. rm -f conftest*
  11460. else
  11461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11462. /* end confdefs.h. */
  11463. #include <string.h> /* for memmem */
  11464. #define P "_EF_BF_BD"
  11465. #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
  11466. #define NEEDLE P P P P P
  11467. int
  11468. main ()
  11469. {
  11470. int result = 0;
  11471. if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
  11472. result |= 1;
  11473. /* Check for empty needle behavior. */
  11474. {
  11475. const char *haystack = "AAA";
  11476. if (memmem (haystack, 3, NULL, 0) != haystack)
  11477. result |= 2;
  11478. }
  11479. return result;
  11480. ;
  11481. return 0;
  11482. }
  11483. _ACEOF
  11484. if ac_fn_c_try_run "$LINENO"; then :
  11485. gl_cv_func_memmem_works_always=yes
  11486. else
  11487. gl_cv_func_memmem_works_always=no
  11488. fi
  11489. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11490. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11491. fi
  11492. fi
  11493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
  11494. $as_echo "$gl_cv_func_memmem_works_always" >&6; }
  11495. if test "$gl_cv_func_memmem_works_always" != yes; then
  11496. REPLACE_MEMMEM=1
  11497. fi
  11498. fi
  11499. :
  11500. gl_cv_c_multiarch=no
  11501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11502. /* end confdefs.h. */
  11503. #ifndef __APPLE_CC__
  11504. not a universal capable compiler
  11505. #endif
  11506. typedef int dummy;
  11507. _ACEOF
  11508. if ac_fn_c_try_compile "$LINENO"; then :
  11509. arch=
  11510. prev=
  11511. for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
  11512. if test -n "$prev"; then
  11513. case $word in
  11514. i?86 | x86_64 | ppc | ppc64)
  11515. if test -z "$arch" || test "$arch" = "$word"; then
  11516. arch="$word"
  11517. else
  11518. gl_cv_c_multiarch=yes
  11519. fi
  11520. ;;
  11521. esac
  11522. prev=
  11523. else
  11524. if test "x$word" = "x-arch"; then
  11525. prev=arch
  11526. fi
  11527. fi
  11528. done
  11529. fi
  11530. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11531. if test $gl_cv_c_multiarch = yes; then
  11532. APPLE_UNIVERSAL_BUILD=1
  11533. else
  11534. APPLE_UNIVERSAL_BUILD=0
  11535. fi
  11536. GNULIB_SIGNAL_H_SIGPIPE=0;
  11537. GNULIB_SIGPROCMASK=0;
  11538. GNULIB_SIGACTION=0;
  11539. HAVE_POSIX_SIGNALBLOCKING=1;
  11540. HAVE_SIGSET_T=1;
  11541. HAVE_SIGINFO_T=1;
  11542. HAVE_SIGACTION=1;
  11543. HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
  11544. HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
  11545. HAVE_SIGHANDLER_T=1;
  11546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
  11547. $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
  11548. if ${ac_cv_c_restrict+:} false; then :
  11549. $as_echo_n "(cached) " >&6
  11550. else
  11551. ac_cv_c_restrict=no
  11552. # The order here caters to the fact that C++ does not require restrict.
  11553. for ac_kw in __restrict __restrict__ _Restrict restrict; do
  11554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11555. /* end confdefs.h. */
  11556. typedef int * int_ptr;
  11557. int foo (int_ptr $ac_kw ip) {
  11558. return ip[0];
  11559. }
  11560. int
  11561. main ()
  11562. {
  11563. int s[1];
  11564. int * $ac_kw t = s;
  11565. t[0] = 0;
  11566. return foo(t)
  11567. ;
  11568. return 0;
  11569. }
  11570. _ACEOF
  11571. if ac_fn_c_try_compile "$LINENO"; then :
  11572. ac_cv_c_restrict=$ac_kw
  11573. fi
  11574. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11575. test "$ac_cv_c_restrict" != no && break
  11576. done
  11577. fi
  11578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
  11579. $as_echo "$ac_cv_c_restrict" >&6; }
  11580. case $ac_cv_c_restrict in
  11581. restrict) ;;
  11582. no) $as_echo "@%:@define restrict /**/" >>confdefs.h
  11583. ;;
  11584. *) cat >>confdefs.h <<_ACEOF
  11585. @%:@define restrict $ac_cv_c_restrict
  11586. _ACEOF
  11587. ;;
  11588. esac
  11589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  11590. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  11591. if ${ac_cv_type_uid_t+:} false; then :
  11592. $as_echo_n "(cached) " >&6
  11593. else
  11594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11595. /* end confdefs.h. */
  11596. #include <sys/types.h>
  11597. _ACEOF
  11598. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11599. $EGREP "uid_t" >/dev/null 2>&1; then :
  11600. ac_cv_type_uid_t=yes
  11601. else
  11602. ac_cv_type_uid_t=no
  11603. fi
  11604. rm -f conftest*
  11605. fi
  11606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  11607. $as_echo "$ac_cv_type_uid_t" >&6; }
  11608. if test $ac_cv_type_uid_t = no; then
  11609. $as_echo "@%:@define uid_t int" >>confdefs.h
  11610. $as_echo "@%:@define gid_t int" >>confdefs.h
  11611. fi
  11612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  11613. $as_echo_n "checking for inline... " >&6; }
  11614. if ${ac_cv_c_inline+:} false; then :
  11615. $as_echo_n "(cached) " >&6
  11616. else
  11617. ac_cv_c_inline=no
  11618. for ac_kw in inline __inline__ __inline; do
  11619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11620. /* end confdefs.h. */
  11621. #ifndef __cplusplus
  11622. typedef int foo_t;
  11623. static $ac_kw foo_t static_foo () {return 0; }
  11624. $ac_kw foo_t foo () {return 0; }
  11625. #endif
  11626. _ACEOF
  11627. if ac_fn_c_try_compile "$LINENO"; then :
  11628. ac_cv_c_inline=$ac_kw
  11629. fi
  11630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11631. test "$ac_cv_c_inline" != no && break
  11632. done
  11633. fi
  11634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  11635. $as_echo "$ac_cv_c_inline" >&6; }
  11636. case $ac_cv_c_inline in
  11637. inline | yes) ;;
  11638. *)
  11639. case $ac_cv_c_inline in
  11640. no) ac_val=;;
  11641. *) ac_val=$ac_cv_c_inline;;
  11642. esac
  11643. cat >>confdefs.h <<_ACEOF
  11644. #ifndef __cplusplus
  11645. #define inline $ac_val
  11646. #endif
  11647. _ACEOF
  11648. ;;
  11649. esac
  11650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
  11651. $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
  11652. if ${gl_cv_have_include_next+:} false; then :
  11653. $as_echo_n "(cached) " >&6
  11654. else
  11655. rm -rf conftestd1a conftestd1b conftestd2
  11656. mkdir conftestd1a conftestd1b conftestd2
  11657. cat <<EOF > conftestd1a/conftest.h
  11658. #define DEFINED_IN_CONFTESTD1
  11659. #include_next <conftest.h>
  11660. #ifdef DEFINED_IN_CONFTESTD2
  11661. int foo;
  11662. #else
  11663. #error "include_next doesn't work"
  11664. #endif
  11665. EOF
  11666. cat <<EOF > conftestd1b/conftest.h
  11667. #define DEFINED_IN_CONFTESTD1
  11668. #include <stdio.h>
  11669. #include_next <conftest.h>
  11670. #ifdef DEFINED_IN_CONFTESTD2
  11671. int foo;
  11672. #else
  11673. #error "include_next doesn't work"
  11674. #endif
  11675. EOF
  11676. cat <<EOF > conftestd2/conftest.h
  11677. #ifndef DEFINED_IN_CONFTESTD1
  11678. #error "include_next test doesn't work"
  11679. #endif
  11680. #define DEFINED_IN_CONFTESTD2
  11681. EOF
  11682. gl_save_CPPFLAGS="$CPPFLAGS"
  11683. CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
  11684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11685. /* end confdefs.h. */
  11686. #include <conftest.h>
  11687. _ACEOF
  11688. if ac_fn_c_try_compile "$LINENO"; then :
  11689. gl_cv_have_include_next=yes
  11690. else
  11691. CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
  11692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11693. /* end confdefs.h. */
  11694. #include <conftest.h>
  11695. _ACEOF
  11696. if ac_fn_c_try_compile "$LINENO"; then :
  11697. gl_cv_have_include_next=buggy
  11698. else
  11699. gl_cv_have_include_next=no
  11700. fi
  11701. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11702. fi
  11703. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11704. CPPFLAGS="$gl_save_CPPFLAGS"
  11705. rm -rf conftestd1a conftestd1b conftestd2
  11706. fi
  11707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
  11708. $as_echo "$gl_cv_have_include_next" >&6; }
  11709. PRAGMA_SYSTEM_HEADER=
  11710. if test $gl_cv_have_include_next = yes; then
  11711. INCLUDE_NEXT=include_next
  11712. INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
  11713. if test -n "$GCC"; then
  11714. PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
  11715. fi
  11716. else
  11717. if test $gl_cv_have_include_next = buggy; then
  11718. INCLUDE_NEXT=include
  11719. INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
  11720. else
  11721. INCLUDE_NEXT=include
  11722. INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
  11723. fi
  11724. fi
  11725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
  11726. $as_echo_n "checking whether system header files limit the line length... " >&6; }
  11727. if ${gl_cv_pragma_columns+:} false; then :
  11728. $as_echo_n "(cached) " >&6
  11729. else
  11730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11731. /* end confdefs.h. */
  11732. #ifdef __TANDEM
  11733. choke me
  11734. #endif
  11735. _ACEOF
  11736. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11737. $EGREP "choke me" >/dev/null 2>&1; then :
  11738. gl_cv_pragma_columns=yes
  11739. else
  11740. gl_cv_pragma_columns=no
  11741. fi
  11742. rm -f conftest*
  11743. fi
  11744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
  11745. $as_echo "$gl_cv_pragma_columns" >&6; }
  11746. if test $gl_cv_pragma_columns = yes; then
  11747. PRAGMA_COLUMNS="#pragma COLUMNS 10000"
  11748. else
  11749. PRAGMA_COLUMNS=
  11750. fi
  11751. REPLACE_NULL=0;
  11752. HAVE_WCHAR_T=1;
  11753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
  11754. $as_echo_n "checking for wchar_t... " >&6; }
  11755. if ${gt_cv_c_wchar_t+:} false; then :
  11756. $as_echo_n "(cached) " >&6
  11757. else
  11758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11759. /* end confdefs.h. */
  11760. #include <stddef.h>
  11761. wchar_t foo = (wchar_t)'\0';
  11762. int
  11763. main ()
  11764. {
  11765. ;
  11766. return 0;
  11767. }
  11768. _ACEOF
  11769. if ac_fn_c_try_compile "$LINENO"; then :
  11770. gt_cv_c_wchar_t=yes
  11771. else
  11772. gt_cv_c_wchar_t=no
  11773. fi
  11774. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11775. fi
  11776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
  11777. $as_echo "$gt_cv_c_wchar_t" >&6; }
  11778. if test $gt_cv_c_wchar_t = yes; then
  11779. $as_echo "@%:@define HAVE_WCHAR_T 1" >>confdefs.h
  11780. fi
  11781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  11782. $as_echo_n "checking for unsigned long long int... " >&6; }
  11783. if ${ac_cv_type_unsigned_long_long_int+:} false; then :
  11784. $as_echo_n "(cached) " >&6
  11785. else
  11786. ac_cv_type_unsigned_long_long_int=yes
  11787. if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  11788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11789. /* end confdefs.h. */
  11790. /* For now, do not test the preprocessor; as of 2007 there are too many
  11791. implementations with broken preprocessors. Perhaps this can
  11792. be revisited in 2012. In the meantime, code should not expect
  11793. #if to work with literals wider than 32 bits. */
  11794. /* Test literals. */
  11795. long long int ll = 9223372036854775807ll;
  11796. long long int nll = -9223372036854775807LL;
  11797. unsigned long long int ull = 18446744073709551615ULL;
  11798. /* Test constant expressions. */
  11799. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  11800. ? 1 : -1)];
  11801. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  11802. ? 1 : -1)];
  11803. int i = 63;
  11804. int
  11805. main ()
  11806. {
  11807. /* Test availability of runtime routines for shift and division. */
  11808. long long int llmax = 9223372036854775807ll;
  11809. unsigned long long int ullmax = 18446744073709551615ull;
  11810. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  11811. | (llmax / ll) | (llmax % ll)
  11812. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  11813. | (ullmax / ull) | (ullmax % ull));
  11814. ;
  11815. return 0;
  11816. }
  11817. _ACEOF
  11818. if ac_fn_c_try_link "$LINENO"; then :
  11819. else
  11820. ac_cv_type_unsigned_long_long_int=no
  11821. fi
  11822. rm -f core conftest.err conftest.$ac_objext \
  11823. conftest$ac_exeext conftest.$ac_ext
  11824. fi
  11825. fi
  11826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  11827. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  11828. if test $ac_cv_type_unsigned_long_long_int = yes; then
  11829. $as_echo "@%:@define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
  11830. fi
  11831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  11832. $as_echo_n "checking for long long int... " >&6; }
  11833. if ${ac_cv_type_long_long_int+:} false; then :
  11834. $as_echo_n "(cached) " >&6
  11835. else
  11836. ac_cv_type_long_long_int=yes
  11837. if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  11838. ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
  11839. if test $ac_cv_type_long_long_int = yes; then
  11840. if test "$cross_compiling" = yes; then :
  11841. :
  11842. else
  11843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11844. /* end confdefs.h. */
  11845. @%:@include <limits.h>
  11846. @%:@ifndef LLONG_MAX
  11847. @%:@ define HALF \
  11848. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  11849. @%:@ define LLONG_MAX (HALF - 1 + HALF)
  11850. @%:@endif
  11851. int
  11852. main ()
  11853. {
  11854. long long int n = 1;
  11855. int i;
  11856. for (i = 0; ; i++)
  11857. {
  11858. long long int m = n << i;
  11859. if (m >> i != n)
  11860. return 1;
  11861. if (LLONG_MAX / 2 < m)
  11862. break;
  11863. }
  11864. return 0;
  11865. ;
  11866. return 0;
  11867. }
  11868. _ACEOF
  11869. if ac_fn_c_try_run "$LINENO"; then :
  11870. else
  11871. ac_cv_type_long_long_int=no
  11872. fi
  11873. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11874. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11875. fi
  11876. fi
  11877. fi
  11878. fi
  11879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  11880. $as_echo "$ac_cv_type_long_long_int" >&6; }
  11881. if test $ac_cv_type_long_long_int = yes; then
  11882. $as_echo "@%:@define HAVE_LONG_LONG_INT 1" >>confdefs.h
  11883. fi
  11884. if test $ac_cv_type_long_long_int = yes; then
  11885. HAVE_LONG_LONG_INT=1
  11886. else
  11887. HAVE_LONG_LONG_INT=0
  11888. fi
  11889. if test $ac_cv_type_unsigned_long_long_int = yes; then
  11890. HAVE_UNSIGNED_LONG_LONG_INT=1
  11891. else
  11892. HAVE_UNSIGNED_LONG_LONG_INT=0
  11893. fi
  11894. :
  11895. if test $ac_cv_header_wchar_h = yes; then
  11896. HAVE_WCHAR_H=1
  11897. else
  11898. HAVE_WCHAR_H=0
  11899. fi
  11900. if test $ac_cv_header_inttypes_h = yes; then
  11901. HAVE_INTTYPES_H=1
  11902. else
  11903. HAVE_INTTYPES_H=0
  11904. fi
  11905. if test $ac_cv_header_sys_types_h = yes; then
  11906. HAVE_SYS_TYPES_H=1
  11907. else
  11908. HAVE_SYS_TYPES_H=0
  11909. fi
  11910. :
  11911. if test $gl_cv_have_include_next = yes; then
  11912. gl_cv_next_stdint_h='<'stdint.h'>'
  11913. else
  11914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
  11915. $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
  11916. if ${gl_cv_next_stdint_h+:} false; then :
  11917. $as_echo_n "(cached) " >&6
  11918. else
  11919. if test $ac_cv_header_stdint_h = yes; then
  11920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11921. /* end confdefs.h. */
  11922. #include <stdint.h>
  11923. _ACEOF
  11924. case "$host_os" in
  11925. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  11926. *) gl_absname_cpp="$ac_cpp" ;;
  11927. esac
  11928. gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  11929. sed -n '\#/stdint.h#{
  11930. s#.*"\(.*/stdint.h\)".*#\1#
  11931. s#^/[^/]#//&#
  11932. p
  11933. q
  11934. }'`'"'
  11935. else
  11936. gl_cv_next_stdint_h='<'stdint.h'>'
  11937. fi
  11938. fi
  11939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
  11940. $as_echo "$gl_cv_next_stdint_h" >&6; }
  11941. fi
  11942. NEXT_STDINT_H=$gl_cv_next_stdint_h
  11943. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  11944. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  11945. gl_next_as_first_directive='<'stdint.h'>'
  11946. else
  11947. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  11948. gl_next_as_first_directive=$gl_cv_next_stdint_h
  11949. fi
  11950. NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
  11951. if test $ac_cv_header_stdint_h = yes; then
  11952. HAVE_STDINT_H=1
  11953. else
  11954. HAVE_STDINT_H=0
  11955. fi
  11956. if test $ac_cv_header_stdint_h = yes; then
  11957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
  11958. $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
  11959. if ${gl_cv_header_working_stdint_h+:} false; then :
  11960. $as_echo_n "(cached) " >&6
  11961. else
  11962. gl_cv_header_working_stdint_h=no
  11963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11964. /* end confdefs.h. */
  11965. #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
  11966. #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
  11967. #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
  11968. #include <stdint.h>
  11969. /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
  11970. #if !(defined WCHAR_MIN && defined WCHAR_MAX)
  11971. #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
  11972. #endif
  11973. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  11974. included before <wchar.h>. */
  11975. #include <stddef.h>
  11976. #include <signal.h>
  11977. #if HAVE_WCHAR_H
  11978. # include <stdio.h>
  11979. # include <time.h>
  11980. # include <wchar.h>
  11981. #endif
  11982. #ifdef INT8_MAX
  11983. int8_t a1 = INT8_MAX;
  11984. int8_t a1min = INT8_MIN;
  11985. #endif
  11986. #ifdef INT16_MAX
  11987. int16_t a2 = INT16_MAX;
  11988. int16_t a2min = INT16_MIN;
  11989. #endif
  11990. #ifdef INT32_MAX
  11991. int32_t a3 = INT32_MAX;
  11992. int32_t a3min = INT32_MIN;
  11993. #endif
  11994. #ifdef INT64_MAX
  11995. int64_t a4 = INT64_MAX;
  11996. int64_t a4min = INT64_MIN;
  11997. #endif
  11998. #ifdef UINT8_MAX
  11999. uint8_t b1 = UINT8_MAX;
  12000. #else
  12001. typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
  12002. #endif
  12003. #ifdef UINT16_MAX
  12004. uint16_t b2 = UINT16_MAX;
  12005. #endif
  12006. #ifdef UINT32_MAX
  12007. uint32_t b3 = UINT32_MAX;
  12008. #endif
  12009. #ifdef UINT64_MAX
  12010. uint64_t b4 = UINT64_MAX;
  12011. #endif
  12012. int_least8_t c1 = INT8_C (0x7f);
  12013. int_least8_t c1max = INT_LEAST8_MAX;
  12014. int_least8_t c1min = INT_LEAST8_MIN;
  12015. int_least16_t c2 = INT16_C (0x7fff);
  12016. int_least16_t c2max = INT_LEAST16_MAX;
  12017. int_least16_t c2min = INT_LEAST16_MIN;
  12018. int_least32_t c3 = INT32_C (0x7fffffff);
  12019. int_least32_t c3max = INT_LEAST32_MAX;
  12020. int_least32_t c3min = INT_LEAST32_MIN;
  12021. int_least64_t c4 = INT64_C (0x7fffffffffffffff);
  12022. int_least64_t c4max = INT_LEAST64_MAX;
  12023. int_least64_t c4min = INT_LEAST64_MIN;
  12024. uint_least8_t d1 = UINT8_C (0xff);
  12025. uint_least8_t d1max = UINT_LEAST8_MAX;
  12026. uint_least16_t d2 = UINT16_C (0xffff);
  12027. uint_least16_t d2max = UINT_LEAST16_MAX;
  12028. uint_least32_t d3 = UINT32_C (0xffffffff);
  12029. uint_least32_t d3max = UINT_LEAST32_MAX;
  12030. uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
  12031. uint_least64_t d4max = UINT_LEAST64_MAX;
  12032. int_fast8_t e1 = INT_FAST8_MAX;
  12033. int_fast8_t e1min = INT_FAST8_MIN;
  12034. int_fast16_t e2 = INT_FAST16_MAX;
  12035. int_fast16_t e2min = INT_FAST16_MIN;
  12036. int_fast32_t e3 = INT_FAST32_MAX;
  12037. int_fast32_t e3min = INT_FAST32_MIN;
  12038. int_fast64_t e4 = INT_FAST64_MAX;
  12039. int_fast64_t e4min = INT_FAST64_MIN;
  12040. uint_fast8_t f1 = UINT_FAST8_MAX;
  12041. uint_fast16_t f2 = UINT_FAST16_MAX;
  12042. uint_fast32_t f3 = UINT_FAST32_MAX;
  12043. uint_fast64_t f4 = UINT_FAST64_MAX;
  12044. #ifdef INTPTR_MAX
  12045. intptr_t g = INTPTR_MAX;
  12046. intptr_t gmin = INTPTR_MIN;
  12047. #endif
  12048. #ifdef UINTPTR_MAX
  12049. uintptr_t h = UINTPTR_MAX;
  12050. #endif
  12051. intmax_t i = INTMAX_MAX;
  12052. uintmax_t j = UINTMAX_MAX;
  12053. #include <limits.h> /* for CHAR_BIT */
  12054. #define TYPE_MINIMUM(t) \
  12055. ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
  12056. #define TYPE_MAXIMUM(t) \
  12057. ((t) ((t) 0 < (t) -1 \
  12058. ? (t) -1 \
  12059. : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
  12060. struct s {
  12061. int check_PTRDIFF:
  12062. PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
  12063. && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
  12064. ? 1 : -1;
  12065. /* Detect bug in FreeBSD 6.0 / ia64. */
  12066. int check_SIG_ATOMIC:
  12067. SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
  12068. && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
  12069. ? 1 : -1;
  12070. int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
  12071. int check_WCHAR:
  12072. WCHAR_MIN == TYPE_MINIMUM (wchar_t)
  12073. && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
  12074. ? 1 : -1;
  12075. /* Detect bug in mingw. */
  12076. int check_WINT:
  12077. WINT_MIN == TYPE_MINIMUM (wint_t)
  12078. && WINT_MAX == TYPE_MAXIMUM (wint_t)
  12079. ? 1 : -1;
  12080. /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
  12081. int check_UINT8_C:
  12082. (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
  12083. int check_UINT16_C:
  12084. (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
  12085. /* Detect bugs in OpenBSD 3.9 stdint.h. */
  12086. #ifdef UINT8_MAX
  12087. int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
  12088. #endif
  12089. #ifdef UINT16_MAX
  12090. int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
  12091. #endif
  12092. #ifdef UINT32_MAX
  12093. int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
  12094. #endif
  12095. #ifdef UINT64_MAX
  12096. int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
  12097. #endif
  12098. int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
  12099. int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
  12100. int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
  12101. int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
  12102. int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
  12103. int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
  12104. int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
  12105. int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
  12106. int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
  12107. int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
  12108. int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
  12109. };
  12110. int
  12111. main ()
  12112. {
  12113. ;
  12114. return 0;
  12115. }
  12116. _ACEOF
  12117. if ac_fn_c_try_compile "$LINENO"; then :
  12118. if test "$cross_compiling" = yes; then :
  12119. gl_cv_header_working_stdint_h=yes
  12120. else
  12121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12122. /* end confdefs.h. */
  12123. #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
  12124. #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
  12125. #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
  12126. #include <stdint.h>
  12127. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  12128. included before <wchar.h>. */
  12129. #include <stddef.h>
  12130. #include <signal.h>
  12131. #if HAVE_WCHAR_H
  12132. # include <stdio.h>
  12133. # include <time.h>
  12134. # include <wchar.h>
  12135. #endif
  12136. #include <stdio.h>
  12137. #include <string.h>
  12138. #define MVAL(macro) MVAL1(macro)
  12139. #define MVAL1(expression) #expression
  12140. static const char *macro_values[] =
  12141. {
  12142. #ifdef INT8_MAX
  12143. MVAL (INT8_MAX),
  12144. #endif
  12145. #ifdef INT16_MAX
  12146. MVAL (INT16_MAX),
  12147. #endif
  12148. #ifdef INT32_MAX
  12149. MVAL (INT32_MAX),
  12150. #endif
  12151. #ifdef INT64_MAX
  12152. MVAL (INT64_MAX),
  12153. #endif
  12154. #ifdef UINT8_MAX
  12155. MVAL (UINT8_MAX),
  12156. #endif
  12157. #ifdef UINT16_MAX
  12158. MVAL (UINT16_MAX),
  12159. #endif
  12160. #ifdef UINT32_MAX
  12161. MVAL (UINT32_MAX),
  12162. #endif
  12163. #ifdef UINT64_MAX
  12164. MVAL (UINT64_MAX),
  12165. #endif
  12166. NULL
  12167. };
  12168. int
  12169. main ()
  12170. {
  12171. const char **mv;
  12172. for (mv = macro_values; *mv != NULL; mv++)
  12173. {
  12174. const char *value = *mv;
  12175. /* Test whether it looks like a cast expression. */
  12176. if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
  12177. || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
  12178. || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
  12179. || strncmp (value, "((int)"/*)*/, 6) == 0
  12180. || strncmp (value, "((signed short)"/*)*/, 15) == 0
  12181. || strncmp (value, "((signed char)"/*)*/, 14) == 0)
  12182. return mv - macro_values + 1;
  12183. }
  12184. return 0;
  12185. ;
  12186. return 0;
  12187. }
  12188. _ACEOF
  12189. if ac_fn_c_try_run "$LINENO"; then :
  12190. gl_cv_header_working_stdint_h=yes
  12191. fi
  12192. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12193. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12194. fi
  12195. fi
  12196. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12197. fi
  12198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
  12199. $as_echo "$gl_cv_header_working_stdint_h" >&6; }
  12200. fi
  12201. if test "$gl_cv_header_working_stdint_h" = yes; then
  12202. STDINT_H=
  12203. else
  12204. for ac_header in sys/inttypes.h sys/bitypes.h
  12205. do :
  12206. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12207. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12208. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  12209. cat >>confdefs.h <<_ACEOF
  12210. @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12211. _ACEOF
  12212. fi
  12213. done
  12214. if test $ac_cv_header_sys_inttypes_h = yes; then
  12215. HAVE_SYS_INTTYPES_H=1
  12216. else
  12217. HAVE_SYS_INTTYPES_H=0
  12218. fi
  12219. if test $ac_cv_header_sys_bitypes_h = yes; then
  12220. HAVE_SYS_BITYPES_H=1
  12221. else
  12222. HAVE_SYS_BITYPES_H=0
  12223. fi
  12224. if test $APPLE_UNIVERSAL_BUILD = 0; then
  12225. for gltype in ptrdiff_t size_t ; do
  12226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
  12227. $as_echo_n "checking for bit size of $gltype... " >&6; }
  12228. if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
  12229. $as_echo_n "(cached) " >&6
  12230. else
  12231. if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
  12232. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  12233. included before <wchar.h>. */
  12234. #include <stddef.h>
  12235. #include <signal.h>
  12236. #if HAVE_WCHAR_H
  12237. # include <stdio.h>
  12238. # include <time.h>
  12239. # include <wchar.h>
  12240. #endif
  12241. #include <limits.h>"; then :
  12242. else
  12243. result=unknown
  12244. fi
  12245. eval gl_cv_bitsizeof_${gltype}=\$result
  12246. fi
  12247. eval ac_res=\$gl_cv_bitsizeof_${gltype}
  12248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12249. $as_echo "$ac_res" >&6; }
  12250. eval result=\$gl_cv_bitsizeof_${gltype}
  12251. if test $result = unknown; then
  12252. result=0
  12253. fi
  12254. GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  12255. cat >>confdefs.h <<_ACEOF
  12256. @%:@define BITSIZEOF_${GLTYPE} $result
  12257. _ACEOF
  12258. eval BITSIZEOF_${GLTYPE}=\$result
  12259. done
  12260. fi
  12261. for gltype in sig_atomic_t wchar_t wint_t ; do
  12262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
  12263. $as_echo_n "checking for bit size of $gltype... " >&6; }
  12264. if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
  12265. $as_echo_n "(cached) " >&6
  12266. else
  12267. if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
  12268. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  12269. included before <wchar.h>. */
  12270. #include <stddef.h>
  12271. #include <signal.h>
  12272. #if HAVE_WCHAR_H
  12273. # include <stdio.h>
  12274. # include <time.h>
  12275. # include <wchar.h>
  12276. #endif
  12277. #include <limits.h>"; then :
  12278. else
  12279. result=unknown
  12280. fi
  12281. eval gl_cv_bitsizeof_${gltype}=\$result
  12282. fi
  12283. eval ac_res=\$gl_cv_bitsizeof_${gltype}
  12284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12285. $as_echo "$ac_res" >&6; }
  12286. eval result=\$gl_cv_bitsizeof_${gltype}
  12287. if test $result = unknown; then
  12288. result=0
  12289. fi
  12290. GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  12291. cat >>confdefs.h <<_ACEOF
  12292. @%:@define BITSIZEOF_${GLTYPE} $result
  12293. _ACEOF
  12294. eval BITSIZEOF_${GLTYPE}=\$result
  12295. done
  12296. for gltype in sig_atomic_t wchar_t wint_t ; do
  12297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
  12298. $as_echo_n "checking whether $gltype is signed... " >&6; }
  12299. if eval \${gl_cv_type_${gltype}_signed+:} false; then :
  12300. $as_echo_n "(cached) " >&6
  12301. else
  12302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12303. /* end confdefs.h. */
  12304. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  12305. included before <wchar.h>. */
  12306. #include <stddef.h>
  12307. #include <signal.h>
  12308. #if HAVE_WCHAR_H
  12309. # include <stdio.h>
  12310. # include <time.h>
  12311. # include <wchar.h>
  12312. #endif
  12313. int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
  12314. int
  12315. main ()
  12316. {
  12317. ;
  12318. return 0;
  12319. }
  12320. _ACEOF
  12321. if ac_fn_c_try_compile "$LINENO"; then :
  12322. result=yes
  12323. else
  12324. result=no
  12325. fi
  12326. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12327. eval gl_cv_type_${gltype}_signed=\$result
  12328. fi
  12329. eval ac_res=\$gl_cv_type_${gltype}_signed
  12330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12331. $as_echo "$ac_res" >&6; }
  12332. eval result=\$gl_cv_type_${gltype}_signed
  12333. GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  12334. if test "$result" = yes; then
  12335. cat >>confdefs.h <<_ACEOF
  12336. @%:@define HAVE_SIGNED_${GLTYPE} 1
  12337. _ACEOF
  12338. eval HAVE_SIGNED_${GLTYPE}=1
  12339. else
  12340. eval HAVE_SIGNED_${GLTYPE}=0
  12341. fi
  12342. done
  12343. gl_cv_type_ptrdiff_t_signed=yes
  12344. gl_cv_type_size_t_signed=no
  12345. if test $APPLE_UNIVERSAL_BUILD = 0; then
  12346. for gltype in ptrdiff_t size_t ; do
  12347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
  12348. $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
  12349. if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
  12350. $as_echo_n "(cached) " >&6
  12351. else
  12352. eval gl_cv_type_${gltype}_suffix=no
  12353. eval result=\$gl_cv_type_${gltype}_signed
  12354. if test "$result" = yes; then
  12355. glsufu=
  12356. else
  12357. glsufu=u
  12358. fi
  12359. for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
  12360. case $glsuf in
  12361. '') gltype1='int';;
  12362. l) gltype1='long int';;
  12363. ll) gltype1='long long int';;
  12364. i64) gltype1='__int64';;
  12365. u) gltype1='unsigned int';;
  12366. ul) gltype1='unsigned long int';;
  12367. ull) gltype1='unsigned long long int';;
  12368. ui64)gltype1='unsigned __int64';;
  12369. esac
  12370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12371. /* end confdefs.h. */
  12372. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  12373. included before <wchar.h>. */
  12374. #include <stddef.h>
  12375. #include <signal.h>
  12376. #if HAVE_WCHAR_H
  12377. # include <stdio.h>
  12378. # include <time.h>
  12379. # include <wchar.h>
  12380. #endif
  12381. extern $gltype foo;
  12382. extern $gltype1 foo;
  12383. int
  12384. main ()
  12385. {
  12386. ;
  12387. return 0;
  12388. }
  12389. _ACEOF
  12390. if ac_fn_c_try_compile "$LINENO"; then :
  12391. eval gl_cv_type_${gltype}_suffix=\$glsuf
  12392. fi
  12393. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12394. eval result=\$gl_cv_type_${gltype}_suffix
  12395. test "$result" != no && break
  12396. done
  12397. fi
  12398. eval ac_res=\$gl_cv_type_${gltype}_suffix
  12399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12400. $as_echo "$ac_res" >&6; }
  12401. GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  12402. eval result=\$gl_cv_type_${gltype}_suffix
  12403. test "$result" = no && result=
  12404. eval ${GLTYPE}_SUFFIX=\$result
  12405. cat >>confdefs.h <<_ACEOF
  12406. @%:@define ${GLTYPE}_SUFFIX $result
  12407. _ACEOF
  12408. done
  12409. fi
  12410. for gltype in sig_atomic_t wchar_t wint_t ; do
  12411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
  12412. $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
  12413. if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
  12414. $as_echo_n "(cached) " >&6
  12415. else
  12416. eval gl_cv_type_${gltype}_suffix=no
  12417. eval result=\$gl_cv_type_${gltype}_signed
  12418. if test "$result" = yes; then
  12419. glsufu=
  12420. else
  12421. glsufu=u
  12422. fi
  12423. for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
  12424. case $glsuf in
  12425. '') gltype1='int';;
  12426. l) gltype1='long int';;
  12427. ll) gltype1='long long int';;
  12428. i64) gltype1='__int64';;
  12429. u) gltype1='unsigned int';;
  12430. ul) gltype1='unsigned long int';;
  12431. ull) gltype1='unsigned long long int';;
  12432. ui64)gltype1='unsigned __int64';;
  12433. esac
  12434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12435. /* end confdefs.h. */
  12436. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  12437. included before <wchar.h>. */
  12438. #include <stddef.h>
  12439. #include <signal.h>
  12440. #if HAVE_WCHAR_H
  12441. # include <stdio.h>
  12442. # include <time.h>
  12443. # include <wchar.h>
  12444. #endif
  12445. extern $gltype foo;
  12446. extern $gltype1 foo;
  12447. int
  12448. main ()
  12449. {
  12450. ;
  12451. return 0;
  12452. }
  12453. _ACEOF
  12454. if ac_fn_c_try_compile "$LINENO"; then :
  12455. eval gl_cv_type_${gltype}_suffix=\$glsuf
  12456. fi
  12457. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12458. eval result=\$gl_cv_type_${gltype}_suffix
  12459. test "$result" != no && break
  12460. done
  12461. fi
  12462. eval ac_res=\$gl_cv_type_${gltype}_suffix
  12463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12464. $as_echo "$ac_res" >&6; }
  12465. GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  12466. eval result=\$gl_cv_type_${gltype}_suffix
  12467. test "$result" = no && result=
  12468. eval ${GLTYPE}_SUFFIX=\$result
  12469. cat >>confdefs.h <<_ACEOF
  12470. @%:@define ${GLTYPE}_SUFFIX $result
  12471. _ACEOF
  12472. done
  12473. STDINT_H=stdint.h
  12474. fi
  12475. if test -n "$STDINT_H"; then
  12476. GL_GENERATE_STDINT_H_TRUE=
  12477. GL_GENERATE_STDINT_H_FALSE='#'
  12478. else
  12479. GL_GENERATE_STDINT_H_TRUE='#'
  12480. GL_GENERATE_STDINT_H_FALSE=
  12481. fi
  12482. if test $gl_cv_have_include_next = yes; then
  12483. gl_cv_next_string_h='<'string.h'>'
  12484. else
  12485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
  12486. $as_echo_n "checking absolute name of <string.h>... " >&6; }
  12487. if ${gl_cv_next_string_h+:} false; then :
  12488. $as_echo_n "(cached) " >&6
  12489. else
  12490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12491. /* end confdefs.h. */
  12492. #include <string.h>
  12493. _ACEOF
  12494. case "$host_os" in
  12495. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  12496. *) gl_absname_cpp="$ac_cpp" ;;
  12497. esac
  12498. gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  12499. sed -n '\#/string.h#{
  12500. s#.*"\(.*/string.h\)".*#\1#
  12501. s#^/[^/]#//&#
  12502. p
  12503. q
  12504. }'`'"'
  12505. fi
  12506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
  12507. $as_echo "$gl_cv_next_string_h" >&6; }
  12508. fi
  12509. NEXT_STRING_H=$gl_cv_next_string_h
  12510. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  12511. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  12512. gl_next_as_first_directive='<'string.h'>'
  12513. else
  12514. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  12515. gl_next_as_first_directive=$gl_cv_next_string_h
  12516. fi
  12517. NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
  12518. 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
  12519. as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  12520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  12521. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  12522. if eval \${$as_gl_Symbol+:} false; then :
  12523. $as_echo_n "(cached) " >&6
  12524. else
  12525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12526. /* end confdefs.h. */
  12527. #include <string.h>
  12528. int
  12529. main ()
  12530. {
  12531. @%:@undef $gl_func
  12532. (void) $gl_func;
  12533. ;
  12534. return 0;
  12535. }
  12536. _ACEOF
  12537. if ac_fn_c_try_compile "$LINENO"; then :
  12538. eval "$as_gl_Symbol=yes"
  12539. else
  12540. eval "$as_gl_Symbol=no"
  12541. fi
  12542. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12543. fi
  12544. eval ac_res=\$$as_gl_Symbol
  12545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12546. $as_echo "$ac_res" >&6; }
  12547. if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
  12548. cat >>confdefs.h <<_ACEOF
  12549. @%:@define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  12550. _ACEOF
  12551. eval ac_cv_have_decl_$gl_func=yes
  12552. fi
  12553. done
  12554. if false; then
  12555. GL_COND_LIBTOOL_TRUE=
  12556. GL_COND_LIBTOOL_FALSE='#'
  12557. else
  12558. GL_COND_LIBTOOL_TRUE='#'
  12559. GL_COND_LIBTOOL_FALSE=
  12560. fi
  12561. gl_cond_libtool=false
  12562. gl_libdeps=
  12563. gl_ltlibdeps=
  12564. gl_m4_base='m4'
  12565. gl_source_base='lib'
  12566. if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
  12567. gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
  12568. for ac_header in bp-sym.h
  12569. do :
  12570. ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
  12571. if test "x$ac_cv_header_bp_sym_h" = xyes; then :
  12572. cat >>confdefs.h <<_ACEOF
  12573. @%:@define HAVE_BP_SYM_H 1
  12574. _ACEOF
  12575. fi
  12576. done
  12577. fi
  12578. GNULIB_MEMCHR=1
  12579. $as_echo "@%:@define GNULIB_TEST_MEMCHR 1" >>confdefs.h
  12580. if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
  12581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
  12582. $as_echo_n "checking whether memmem works in linear time... " >&6; }
  12583. if ${gl_cv_func_memmem_works_fast+:} false; then :
  12584. $as_echo_n "(cached) " >&6
  12585. else
  12586. if test "$cross_compiling" = yes; then :
  12587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12588. /* end confdefs.h. */
  12589. #include <features.h>
  12590. #ifdef __GNU_LIBRARY__
  12591. #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
  12592. && !defined __UCLIBC__
  12593. Lucky user
  12594. #endif
  12595. #endif
  12596. #ifdef __CYGWIN__
  12597. #include <cygwin/version.h>
  12598. #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
  12599. Lucky user
  12600. #endif
  12601. #endif
  12602. _ACEOF
  12603. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12604. $EGREP "Lucky user" >/dev/null 2>&1; then :
  12605. gl_cv_func_memmem_works_fast=yes
  12606. else
  12607. gl_cv_func_memmem_works_fast="guessing no"
  12608. fi
  12609. rm -f conftest*
  12610. else
  12611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12612. /* end confdefs.h. */
  12613. #include <signal.h> /* for signal */
  12614. #include <string.h> /* for memmem */
  12615. #include <stdlib.h> /* for malloc */
  12616. #include <unistd.h> /* for alarm */
  12617. static void quit (int sig) { exit (sig + 128); }
  12618. int
  12619. main ()
  12620. {
  12621. int result = 0;
  12622. size_t m = 1000000;
  12623. char *haystack = (char *) malloc (2 * m + 1);
  12624. char *needle = (char *) malloc (m + 1);
  12625. /* Failure to compile this test due to missing alarm is okay,
  12626. since all such platforms (mingw) also lack memmem. */
  12627. signal (SIGALRM, quit);
  12628. alarm (5);
  12629. /* Check for quadratic performance. */
  12630. if (haystack && needle)
  12631. {
  12632. memset (haystack, 'A', 2 * m);
  12633. haystack[2 * m] = 'B';
  12634. memset (needle, 'A', m);
  12635. needle[m] = 'B';
  12636. if (!memmem (haystack, 2 * m + 1, needle, m + 1))
  12637. result |= 1;
  12638. }
  12639. return result;
  12640. ;
  12641. return 0;
  12642. }
  12643. _ACEOF
  12644. if ac_fn_c_try_run "$LINENO"; then :
  12645. gl_cv_func_memmem_works_fast=yes
  12646. else
  12647. gl_cv_func_memmem_works_fast=no
  12648. fi
  12649. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12650. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12651. fi
  12652. fi
  12653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
  12654. $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
  12655. if test "$gl_cv_func_memmem_works_fast" != yes; then
  12656. REPLACE_MEMMEM=1
  12657. fi
  12658. fi
  12659. if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
  12660. gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
  12661. fi
  12662. for ac_func in memmem
  12663. do :
  12664. ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
  12665. if test "x$ac_cv_func_memmem" = xyes; then :
  12666. cat >>confdefs.h <<_ACEOF
  12667. @%:@define HAVE_MEMMEM 1
  12668. _ACEOF
  12669. fi
  12670. done
  12671. if test $ac_cv_func_memmem = yes; then
  12672. HAVE_MEMMEM=1
  12673. else
  12674. HAVE_MEMMEM=0
  12675. fi
  12676. :
  12677. if test $ac_cv_have_decl_memmem = no; then
  12678. HAVE_DECL_MEMMEM=0
  12679. else
  12680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
  12681. $as_echo_n "checking whether memmem works... " >&6; }
  12682. if ${gl_cv_func_memmem_works_always+:} false; then :
  12683. $as_echo_n "(cached) " >&6
  12684. else
  12685. if test "$cross_compiling" = yes; then :
  12686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12687. /* end confdefs.h. */
  12688. #ifdef __GNU_LIBRARY__
  12689. #include <features.h>
  12690. #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
  12691. || __GLIBC_MINOR__ > 12)) \
  12692. || (__GLIBC__ > 2)) \
  12693. || defined __UCLIBC__
  12694. Lucky user
  12695. #endif
  12696. #elif defined __CYGWIN__
  12697. #include <cygwin/version.h>
  12698. #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
  12699. Lucky user
  12700. #endif
  12701. #else
  12702. Lucky user
  12703. #endif
  12704. _ACEOF
  12705. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12706. $EGREP "Lucky user" >/dev/null 2>&1; then :
  12707. gl_cv_func_memmem_works_always=yes
  12708. else
  12709. gl_cv_func_memmem_works_always="guessing no"
  12710. fi
  12711. rm -f conftest*
  12712. else
  12713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12714. /* end confdefs.h. */
  12715. #include <string.h> /* for memmem */
  12716. #define P "_EF_BF_BD"
  12717. #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
  12718. #define NEEDLE P P P P P
  12719. int
  12720. main ()
  12721. {
  12722. int result = 0;
  12723. if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
  12724. result |= 1;
  12725. /* Check for empty needle behavior. */
  12726. {
  12727. const char *haystack = "AAA";
  12728. if (memmem (haystack, 3, NULL, 0) != haystack)
  12729. result |= 2;
  12730. }
  12731. return result;
  12732. ;
  12733. return 0;
  12734. }
  12735. _ACEOF
  12736. if ac_fn_c_try_run "$LINENO"; then :
  12737. gl_cv_func_memmem_works_always=yes
  12738. else
  12739. gl_cv_func_memmem_works_always=no
  12740. fi
  12741. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12742. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12743. fi
  12744. fi
  12745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
  12746. $as_echo "$gl_cv_func_memmem_works_always" >&6; }
  12747. if test "$gl_cv_func_memmem_works_always" != yes; then
  12748. REPLACE_MEMMEM=1
  12749. fi
  12750. fi
  12751. :
  12752. if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
  12753. gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
  12754. fi
  12755. GNULIB_MEMMEM=1
  12756. $as_echo "@%:@define GNULIB_TEST_MEMMEM 1" >>confdefs.h
  12757. :
  12758. if test $ac_cv_func_sigaction = yes; then
  12759. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  12760. "
  12761. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  12762. cat >>confdefs.h <<_ACEOF
  12763. @%:@define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
  12764. _ACEOF
  12765. fi
  12766. if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
  12767. HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
  12768. fi
  12769. else
  12770. HAVE_SIGACTION=0
  12771. fi
  12772. if test $HAVE_SIGACTION = 0; then
  12773. gl_LIBOBJS="$gl_LIBOBJS sigaction.$ac_objext"
  12774. :
  12775. ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "
  12776. #include <signal.h>
  12777. "
  12778. if test "x$ac_cv_type_siginfo_t" = xyes; then :
  12779. cat >>confdefs.h <<_ACEOF
  12780. @%:@define HAVE_SIGINFO_T 1
  12781. _ACEOF
  12782. fi
  12783. if test $ac_cv_type_siginfo_t = no; then
  12784. HAVE_SIGINFO_T=0
  12785. fi
  12786. fi
  12787. GNULIB_SIGACTION=1
  12788. $as_echo "@%:@define GNULIB_TEST_SIGACTION 1" >>confdefs.h
  12789. if test $gl_cv_have_include_next = yes; then
  12790. gl_cv_next_signal_h='<'signal.h'>'
  12791. else
  12792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
  12793. $as_echo_n "checking absolute name of <signal.h>... " >&6; }
  12794. if ${gl_cv_next_signal_h+:} false; then :
  12795. $as_echo_n "(cached) " >&6
  12796. else
  12797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12798. /* end confdefs.h. */
  12799. #include <signal.h>
  12800. _ACEOF
  12801. case "$host_os" in
  12802. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  12803. *) gl_absname_cpp="$ac_cpp" ;;
  12804. esac
  12805. gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  12806. sed -n '\#/signal.h#{
  12807. s#.*"\(.*/signal.h\)".*#\1#
  12808. s#^/[^/]#//&#
  12809. p
  12810. q
  12811. }'`'"'
  12812. fi
  12813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
  12814. $as_echo "$gl_cv_next_signal_h" >&6; }
  12815. fi
  12816. NEXT_SIGNAL_H=$gl_cv_next_signal_h
  12817. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  12818. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  12819. gl_next_as_first_directive='<'signal.h'>'
  12820. else
  12821. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  12822. gl_next_as_first_directive=$gl_cv_next_signal_h
  12823. fi
  12824. NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
  12825. # AIX declares sig_atomic_t to already include volatile, and C89 compilers
  12826. # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
  12827. ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
  12828. #include <signal.h>
  12829. "
  12830. if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
  12831. else
  12832. HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
  12833. fi
  12834. ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
  12835. #include <signal.h>
  12836. "
  12837. if test "x$ac_cv_type_sighandler_t" = xyes; then :
  12838. else
  12839. HAVE_SIGHANDLER_T=0
  12840. fi
  12841. for gl_func in sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do
  12842. as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
  12843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
  12844. $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
  12845. if eval \${$as_gl_Symbol+:} false; then :
  12846. $as_echo_n "(cached) " >&6
  12847. else
  12848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12849. /* end confdefs.h. */
  12850. #include <signal.h>
  12851. int
  12852. main ()
  12853. {
  12854. @%:@undef $gl_func
  12855. (void) $gl_func;
  12856. ;
  12857. return 0;
  12858. }
  12859. _ACEOF
  12860. if ac_fn_c_try_compile "$LINENO"; then :
  12861. eval "$as_gl_Symbol=yes"
  12862. else
  12863. eval "$as_gl_Symbol=no"
  12864. fi
  12865. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12866. fi
  12867. eval ac_res=\$$as_gl_Symbol
  12868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12869. $as_echo "$ac_res" >&6; }
  12870. if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
  12871. cat >>confdefs.h <<_ACEOF
  12872. @%:@define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
  12873. _ACEOF
  12874. eval ac_cv_have_decl_$gl_func=yes
  12875. fi
  12876. done
  12877. signals_not_posix=
  12878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12879. /* end confdefs.h. */
  12880. #include <signal.h>
  12881. _ACEOF
  12882. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12883. $EGREP "sigset_t" >/dev/null 2>&1; then :
  12884. else
  12885. signals_not_posix=1
  12886. fi
  12887. rm -f conftest*
  12888. if test -z "$signals_not_posix"; then
  12889. ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
  12890. if test "x$ac_cv_func_sigprocmask" = xyes; then :
  12891. gl_cv_func_sigprocmask=1
  12892. fi
  12893. fi
  12894. if test -z "$gl_cv_func_sigprocmask"; then
  12895. HAVE_POSIX_SIGNALBLOCKING=0
  12896. fi
  12897. if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
  12898. gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
  12899. ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <signal.h>
  12900. /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
  12901. #include <sys/types.h>
  12902. "
  12903. if test "x$ac_cv_type_sigset_t" = xyes; then :
  12904. cat >>confdefs.h <<_ACEOF
  12905. @%:@define HAVE_SIGSET_T 1
  12906. _ACEOF
  12907. gl_cv_type_sigset_t=yes
  12908. else
  12909. gl_cv_type_sigset_t=no
  12910. fi
  12911. if test $gl_cv_type_sigset_t != yes; then
  12912. HAVE_SIGSET_T=0
  12913. fi
  12914. fi
  12915. GNULIB_SIGPROCMASK=1
  12916. $as_echo "@%:@define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
  12917. STDDEF_H=
  12918. if test $gt_cv_c_wchar_t = no; then
  12919. HAVE_WCHAR_T=0
  12920. STDDEF_H=stddef.h
  12921. fi
  12922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
  12923. $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
  12924. if ${gl_cv_decl_null_works+:} false; then :
  12925. $as_echo_n "(cached) " >&6
  12926. else
  12927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12928. /* end confdefs.h. */
  12929. #include <stddef.h>
  12930. int test[2 * (sizeof NULL == sizeof (void *)) -1];
  12931. int
  12932. main ()
  12933. {
  12934. ;
  12935. return 0;
  12936. }
  12937. _ACEOF
  12938. if ac_fn_c_try_compile "$LINENO"; then :
  12939. gl_cv_decl_null_works=yes
  12940. else
  12941. gl_cv_decl_null_works=no
  12942. fi
  12943. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12944. fi
  12945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
  12946. $as_echo "$gl_cv_decl_null_works" >&6; }
  12947. if test $gl_cv_decl_null_works = no; then
  12948. REPLACE_NULL=1
  12949. STDDEF_H=stddef.h
  12950. fi
  12951. if test -n "$STDDEF_H"; then
  12952. GL_GENERATE_STDDEF_H_TRUE=
  12953. GL_GENERATE_STDDEF_H_FALSE='#'
  12954. else
  12955. GL_GENERATE_STDDEF_H_TRUE='#'
  12956. GL_GENERATE_STDDEF_H_FALSE=
  12957. fi
  12958. if test -n "$STDDEF_H"; then
  12959. if test $gl_cv_have_include_next = yes; then
  12960. gl_cv_next_stddef_h='<'stddef.h'>'
  12961. else
  12962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
  12963. $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
  12964. if ${gl_cv_next_stddef_h+:} false; then :
  12965. $as_echo_n "(cached) " >&6
  12966. else
  12967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12968. /* end confdefs.h. */
  12969. #include <stddef.h>
  12970. _ACEOF
  12971. case "$host_os" in
  12972. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  12973. *) gl_absname_cpp="$ac_cpp" ;;
  12974. esac
  12975. gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  12976. sed -n '\#/stddef.h#{
  12977. s#.*"\(.*/stddef.h\)".*#\1#
  12978. s#^/[^/]#//&#
  12979. p
  12980. q
  12981. }'`'"'
  12982. fi
  12983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
  12984. $as_echo "$gl_cv_next_stddef_h" >&6; }
  12985. fi
  12986. NEXT_STDDEF_H=$gl_cv_next_stddef_h
  12987. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  12988. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  12989. gl_next_as_first_directive='<'stddef.h'>'
  12990. else
  12991. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  12992. gl_next_as_first_directive=$gl_cv_next_stddef_h
  12993. fi
  12994. NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
  12995. fi
  12996. # End of code from modules
  12997. gltests_libdeps=
  12998. gltests_ltlibdeps=
  12999. gl_source_base='tests'
  13000. 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
  13001. gl_module_indicator_condition=$gltests_WITNESS
  13002. LIBGNU_LIBDEPS="$gl_libdeps"
  13003. LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
  13004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13005. $as_echo_n "checking for ANSI C header files... " >&6; }
  13006. if ${ac_cv_header_stdc+:} false; then :
  13007. $as_echo_n "(cached) " >&6
  13008. else
  13009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13010. /* end confdefs.h. */
  13011. #include <stdlib.h>
  13012. #include <stdarg.h>
  13013. #include <string.h>
  13014. #include <float.h>
  13015. int
  13016. main ()
  13017. {
  13018. ;
  13019. return 0;
  13020. }
  13021. _ACEOF
  13022. if ac_fn_c_try_compile "$LINENO"; then :
  13023. ac_cv_header_stdc=yes
  13024. else
  13025. ac_cv_header_stdc=no
  13026. fi
  13027. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13028. if test $ac_cv_header_stdc = yes; then
  13029. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13031. /* end confdefs.h. */
  13032. #include <string.h>
  13033. _ACEOF
  13034. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13035. $EGREP "memchr" >/dev/null 2>&1; then :
  13036. else
  13037. ac_cv_header_stdc=no
  13038. fi
  13039. rm -f conftest*
  13040. fi
  13041. if test $ac_cv_header_stdc = yes; then
  13042. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13044. /* end confdefs.h. */
  13045. #include <stdlib.h>
  13046. _ACEOF
  13047. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13048. $EGREP "free" >/dev/null 2>&1; then :
  13049. else
  13050. ac_cv_header_stdc=no
  13051. fi
  13052. rm -f conftest*
  13053. fi
  13054. if test $ac_cv_header_stdc = yes; then
  13055. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13056. if test "$cross_compiling" = yes; then :
  13057. :
  13058. else
  13059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13060. /* end confdefs.h. */
  13061. #include <ctype.h>
  13062. #include <stdlib.h>
  13063. #if ((' ' & 0x0FF) == 0x020)
  13064. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13065. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13066. #else
  13067. # define ISLOWER(c) \
  13068. (('a' <= (c) && (c) <= 'i') \
  13069. || ('j' <= (c) && (c) <= 'r') \
  13070. || ('s' <= (c) && (c) <= 'z'))
  13071. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13072. #endif
  13073. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13074. int
  13075. main ()
  13076. {
  13077. int i;
  13078. for (i = 0; i < 256; i++)
  13079. if (XOR (islower (i), ISLOWER (i))
  13080. || toupper (i) != TOUPPER (i))
  13081. return 2;
  13082. return 0;
  13083. }
  13084. _ACEOF
  13085. if ac_fn_c_try_run "$LINENO"; then :
  13086. else
  13087. ac_cv_header_stdc=no
  13088. fi
  13089. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13090. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13091. fi
  13092. fi
  13093. fi
  13094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13095. $as_echo "$ac_cv_header_stdc" >&6; }
  13096. if test $ac_cv_header_stdc = yes; then
  13097. $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
  13098. fi
  13099. for ac_header in syslog.h
  13100. do :
  13101. ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
  13102. if test "x$ac_cv_header_syslog_h" = xyes; then :
  13103. cat >>confdefs.h <<_ACEOF
  13104. @%:@define HAVE_SYSLOG_H 1
  13105. _ACEOF
  13106. fi
  13107. done
  13108. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13109. if test "x$ac_cv_type_size_t" = xyes; then :
  13110. else
  13111. cat >>confdefs.h <<_ACEOF
  13112. @%:@define size_t unsigned int
  13113. _ACEOF
  13114. fi
  13115. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  13116. # for constant arguments. Useless!
  13117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  13118. $as_echo_n "checking for working alloca.h... " >&6; }
  13119. if ${ac_cv_working_alloca_h+:} false; then :
  13120. $as_echo_n "(cached) " >&6
  13121. else
  13122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13123. /* end confdefs.h. */
  13124. @%:@include <alloca.h>
  13125. int
  13126. main ()
  13127. {
  13128. char *p = (char *) alloca (2 * sizeof (int));
  13129. if (p) return 0;
  13130. ;
  13131. return 0;
  13132. }
  13133. _ACEOF
  13134. if ac_fn_c_try_link "$LINENO"; then :
  13135. ac_cv_working_alloca_h=yes
  13136. else
  13137. ac_cv_working_alloca_h=no
  13138. fi
  13139. rm -f core conftest.err conftest.$ac_objext \
  13140. conftest$ac_exeext conftest.$ac_ext
  13141. fi
  13142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  13143. $as_echo "$ac_cv_working_alloca_h" >&6; }
  13144. if test $ac_cv_working_alloca_h = yes; then
  13145. $as_echo "@%:@define HAVE_ALLOCA_H 1" >>confdefs.h
  13146. fi
  13147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  13148. $as_echo_n "checking for alloca... " >&6; }
  13149. if ${ac_cv_func_alloca_works+:} false; then :
  13150. $as_echo_n "(cached) " >&6
  13151. else
  13152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13153. /* end confdefs.h. */
  13154. #ifdef __GNUC__
  13155. # define alloca __builtin_alloca
  13156. #else
  13157. # ifdef _MSC_VER
  13158. # include <malloc.h>
  13159. # define alloca _alloca
  13160. # else
  13161. # ifdef HAVE_ALLOCA_H
  13162. # include <alloca.h>
  13163. # else
  13164. # ifdef _AIX
  13165. #pragma alloca
  13166. # else
  13167. # ifndef alloca /* predefined by HP cc +Olibcalls */
  13168. void *alloca (size_t);
  13169. # endif
  13170. # endif
  13171. # endif
  13172. # endif
  13173. #endif
  13174. int
  13175. main ()
  13176. {
  13177. char *p = (char *) alloca (1);
  13178. if (p) return 0;
  13179. ;
  13180. return 0;
  13181. }
  13182. _ACEOF
  13183. if ac_fn_c_try_link "$LINENO"; then :
  13184. ac_cv_func_alloca_works=yes
  13185. else
  13186. ac_cv_func_alloca_works=no
  13187. fi
  13188. rm -f core conftest.err conftest.$ac_objext \
  13189. conftest$ac_exeext conftest.$ac_ext
  13190. fi
  13191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  13192. $as_echo "$ac_cv_func_alloca_works" >&6; }
  13193. if test $ac_cv_func_alloca_works = yes; then
  13194. $as_echo "@%:@define HAVE_ALLOCA 1" >>confdefs.h
  13195. else
  13196. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  13197. # that cause trouble. Some versions do not even contain alloca or
  13198. # contain a buggy version. If you still want to use their alloca,
  13199. # use ar to extract alloca.o from them instead of compiling alloca.c.
  13200. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  13201. $as_echo "@%:@define C_ALLOCA 1" >>confdefs.h
  13202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  13203. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  13204. if ${ac_cv_os_cray+:} false; then :
  13205. $as_echo_n "(cached) " >&6
  13206. else
  13207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13208. /* end confdefs.h. */
  13209. #if defined CRAY && ! defined CRAY2
  13210. webecray
  13211. #else
  13212. wenotbecray
  13213. #endif
  13214. _ACEOF
  13215. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13216. $EGREP "webecray" >/dev/null 2>&1; then :
  13217. ac_cv_os_cray=yes
  13218. else
  13219. ac_cv_os_cray=no
  13220. fi
  13221. rm -f conftest*
  13222. fi
  13223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  13224. $as_echo "$ac_cv_os_cray" >&6; }
  13225. if test $ac_cv_os_cray = yes; then
  13226. for ac_func in _getb67 GETB67 getb67; do
  13227. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13228. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13229. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13230. cat >>confdefs.h <<_ACEOF
  13231. @%:@define CRAY_STACKSEG_END $ac_func
  13232. _ACEOF
  13233. break
  13234. fi
  13235. done
  13236. fi
  13237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  13238. $as_echo_n "checking stack direction for C alloca... " >&6; }
  13239. if ${ac_cv_c_stack_direction+:} false; then :
  13240. $as_echo_n "(cached) " >&6
  13241. else
  13242. if test "$cross_compiling" = yes; then :
  13243. ac_cv_c_stack_direction=0
  13244. else
  13245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13246. /* end confdefs.h. */
  13247. $ac_includes_default
  13248. int
  13249. find_stack_direction ()
  13250. {
  13251. static char *addr = 0;
  13252. auto char dummy;
  13253. if (addr == 0)
  13254. {
  13255. addr = &dummy;
  13256. return find_stack_direction ();
  13257. }
  13258. else
  13259. return (&dummy > addr) ? 1 : -1;
  13260. }
  13261. int
  13262. main ()
  13263. {
  13264. return find_stack_direction () < 0;
  13265. }
  13266. _ACEOF
  13267. if ac_fn_c_try_run "$LINENO"; then :
  13268. ac_cv_c_stack_direction=1
  13269. else
  13270. ac_cv_c_stack_direction=-1
  13271. fi
  13272. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13273. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13274. fi
  13275. fi
  13276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  13277. $as_echo "$ac_cv_c_stack_direction" >&6; }
  13278. cat >>confdefs.h <<_ACEOF
  13279. @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
  13280. _ACEOF
  13281. fi
  13282. have_win32=false
  13283. PTHREAD_FLAGS="-lpthread"
  13284. DLOPEN_FLAGS="-ldl"
  13285. WS2_LIBS=""
  13286. MM_LIBS=""
  13287. MATH_LIBS="-lm"
  13288. RT_LIBS="-lrt"
  13289. case $target in
  13290. amd64-*)
  13291. have_x86_64=true
  13292. ;;
  13293. x86_64-*)
  13294. have_x86_64=true
  13295. ;;
  13296. *)
  13297. have_x86_64=false
  13298. ;;
  13299. esac
  13300. case $target in
  13301. *-*-linux-gnu*)
  13302. have_linux=true
  13303. ;;
  13304. *-*-mingw*)
  13305. have_win32=true
  13306. PTHREAD_FLAGS=""
  13307. DLOPEN_FLAGS=""
  13308. WS2_LIBS="-lws2_32"
  13309. MM_LIBS="-lwinmm"
  13310. RT_LIBS=""
  13311. $as_echo "@%:@define _WIN32_WINNT 0x0501" >>confdefs.h
  13312. ;;
  13313. powerpc-*-darwin*)
  13314. have_darwin=true
  13315. CFLAGS="$CFLAGS -faltivec"
  13316. PTHREAD_FLAGS=""
  13317. RT_LIBS=""
  13318. ;;
  13319. *-*-darwin*)
  13320. have_darwin=true
  13321. PTHREAD_FLAGS=""
  13322. RT_LIBS=""
  13323. ;;
  13324. esac
  13325. has_winpthread=false
  13326. if test "x$have_win32" = xtrue; then
  13327. has_winpthread=true
  13328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lwinpthread" >&5
  13329. $as_echo_n "checking for nanosleep in -lwinpthread... " >&6; }
  13330. if ${ac_cv_lib_winpthread_nanosleep+:} false; then :
  13331. $as_echo_n "(cached) " >&6
  13332. else
  13333. ac_check_lib_save_LIBS=$LIBS
  13334. LIBS="-lwinpthread $LIBS"
  13335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13336. /* end confdefs.h. */
  13337. /* Override any GCC internal prototype to avoid an error.
  13338. Use char because int might match the return type of a GCC
  13339. builtin and then its argument prototype would still apply. */
  13340. #ifdef __cplusplus
  13341. extern "C"
  13342. #endif
  13343. char nanosleep ();
  13344. int
  13345. main ()
  13346. {
  13347. return nanosleep ();
  13348. ;
  13349. return 0;
  13350. }
  13351. _ACEOF
  13352. if ac_fn_c_try_link "$LINENO"; then :
  13353. ac_cv_lib_winpthread_nanosleep=yes
  13354. else
  13355. ac_cv_lib_winpthread_nanosleep=no
  13356. fi
  13357. rm -f core conftest.err conftest.$ac_objext \
  13358. conftest$ac_exeext conftest.$ac_ext
  13359. LIBS=$ac_check_lib_save_LIBS
  13360. fi
  13361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_winpthread_nanosleep" >&5
  13362. $as_echo "$ac_cv_lib_winpthread_nanosleep" >&6; }
  13363. if test "x$ac_cv_lib_winpthread_nanosleep" = xyes; then :
  13364. cat >>confdefs.h <<_ACEOF
  13365. @%:@define HAVE_LIBWINPTHREAD 1
  13366. _ACEOF
  13367. LIBS="-lwinpthread $LIBS"
  13368. else
  13369. has_winpthread=false
  13370. fi
  13371. PTHREAD_LIBS=-lwinpthread
  13372. fi
  13373. if test "x$has_winpthread" != xtrue; then
  13374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  13375. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  13376. if ${ac_cv_lib_pthread_pthread_create+:} false; then :
  13377. $as_echo_n "(cached) " >&6
  13378. else
  13379. ac_check_lib_save_LIBS=$LIBS
  13380. LIBS="-lpthread $LIBS"
  13381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13382. /* end confdefs.h. */
  13383. /* Override any GCC internal prototype to avoid an error.
  13384. Use char because int might match the return type of a GCC
  13385. builtin and then its argument prototype would still apply. */
  13386. #ifdef __cplusplus
  13387. extern "C"
  13388. #endif
  13389. char pthread_create ();
  13390. int
  13391. main ()
  13392. {
  13393. return pthread_create ();
  13394. ;
  13395. return 0;
  13396. }
  13397. _ACEOF
  13398. if ac_fn_c_try_link "$LINENO"; then :
  13399. ac_cv_lib_pthread_pthread_create=yes
  13400. else
  13401. ac_cv_lib_pthread_pthread_create=no
  13402. fi
  13403. rm -f core conftest.err conftest.$ac_objext \
  13404. conftest$ac_exeext conftest.$ac_ext
  13405. LIBS=$ac_check_lib_save_LIBS
  13406. fi
  13407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  13408. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  13409. if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
  13410. cat >>confdefs.h <<_ACEOF
  13411. @%:@define HAVE_LIBPTHREAD 1
  13412. _ACEOF
  13413. LIBS="-lpthread $LIBS"
  13414. else
  13415. as_fn_error $? "Could not find pthread library - please install libpthread" "$LINENO" 5
  13416. fi
  13417. PTHREAD_LIBS=-lpthread
  13418. fi
  13419. scrypt="no"
  13420. @%:@ Check whether --enable-scrypt was given.
  13421. if test "${enable_scrypt+set}" = set; then :
  13422. enableval=$enable_scrypt; scrypt=$enableval
  13423. fi
  13424. if test "x$scrypt" = xyes; then
  13425. $as_echo "@%:@define USE_SCRYPT 1" >>confdefs.h
  13426. fi
  13427. if test x$scrypt = xyes; then
  13428. HAS_SCRYPT_TRUE=
  13429. HAS_SCRYPT_FALSE='#'
  13430. else
  13431. HAS_SCRYPT_TRUE='#'
  13432. HAS_SCRYPT_FALSE=
  13433. fi
  13434. ants1="no"
  13435. @%:@ Check whether --enable-ants1 was given.
  13436. if test "${enable_ants1+set}" = set; then :
  13437. enableval=$enable_ants1; ants1=$enableval
  13438. fi
  13439. if test "x$ants1" = xyes; then
  13440. $as_echo "@%:@define USE_ANT_S1 1" >>confdefs.h
  13441. fi
  13442. if test x$ants1 = xyes; then
  13443. HAS_ANT_S1_TRUE=
  13444. HAS_ANT_S1_FALSE='#'
  13445. else
  13446. HAS_ANT_S1_TRUE='#'
  13447. HAS_ANT_S1_FALSE=
  13448. fi
  13449. ants2="no"
  13450. @%:@ Check whether --enable-ants2 was given.
  13451. if test "${enable_ants2+set}" = set; then :
  13452. enableval=$enable_ants2; ants2=$enableval
  13453. fi
  13454. if test "x$ants2" = xyes; then
  13455. $as_echo "@%:@define USE_ANT_S2 1" >>confdefs.h
  13456. fi
  13457. if test x$ants2 = xyes; then
  13458. HAS_ANT_S2_TRUE=
  13459. HAS_ANT_S2_FALSE='#'
  13460. else
  13461. HAS_ANT_S2_TRUE='#'
  13462. HAS_ANT_S2_FALSE=
  13463. fi
  13464. if test "x$ants1$ants2" = xyesyes; then
  13465. as_fn_error $? "Only one of --enable-ants1 and --enable-ants2 allowed" "$LINENO" 5
  13466. fi
  13467. avalon="no"
  13468. @%:@ Check whether --enable-avalon was given.
  13469. if test "${enable_avalon+set}" = set; then :
  13470. enableval=$enable_avalon; avalon=$enableval
  13471. fi
  13472. if test "x$avalon" = xyes; then
  13473. $as_echo "@%:@define USE_AVALON 1" >>confdefs.h
  13474. fi
  13475. if test x$avalon = xyes; then
  13476. HAS_AVALON_TRUE=
  13477. HAS_AVALON_FALSE='#'
  13478. else
  13479. HAS_AVALON_TRUE='#'
  13480. HAS_AVALON_FALSE=
  13481. fi
  13482. bab="no"
  13483. @%:@ Check whether --enable-bab was given.
  13484. if test "${enable_bab+set}" = set; then :
  13485. enableval=$enable_bab; bab=$enableval
  13486. fi
  13487. if test "x$bab" = xyes; then
  13488. $as_echo "@%:@define USE_BAB 1" >>confdefs.h
  13489. fi
  13490. if test x$bab = xyes; then
  13491. HAS_BAB_TRUE=
  13492. HAS_BAB_FALSE='#'
  13493. else
  13494. HAS_BAB_TRUE='#'
  13495. HAS_BAB_FALSE=
  13496. fi
  13497. bflsc="no"
  13498. @%:@ Check whether --enable-bflsc was given.
  13499. if test "${enable_bflsc+set}" = set; then :
  13500. enableval=$enable_bflsc; bflsc=$enableval
  13501. fi
  13502. if test "x$bflsc" = xyes; then
  13503. $as_echo "@%:@define USE_BFLSC 1" >>confdefs.h
  13504. fi
  13505. if test x$bflsc = xyes; then
  13506. HAS_BFLSC_TRUE=
  13507. HAS_BFLSC_FALSE='#'
  13508. else
  13509. HAS_BFLSC_TRUE='#'
  13510. HAS_BFLSC_FALSE=
  13511. fi
  13512. bitforce="no"
  13513. @%:@ Check whether --enable-bitforce was given.
  13514. if test "${enable_bitforce+set}" = set; then :
  13515. enableval=$enable_bitforce; bitforce=$enableval
  13516. fi
  13517. if test "x$bitforce" = xyes; then
  13518. $as_echo "@%:@define USE_BITFORCE 1" >>confdefs.h
  13519. fi
  13520. if test x$bitforce = xyes; then
  13521. HAS_BITFORCE_TRUE=
  13522. HAS_BITFORCE_FALSE='#'
  13523. else
  13524. HAS_BITFORCE_TRUE='#'
  13525. HAS_BITFORCE_FALSE=
  13526. fi
  13527. bitfury="no"
  13528. @%:@ Check whether --enable-bitfury was given.
  13529. if test "${enable_bitfury+set}" = set; then :
  13530. enableval=$enable_bitfury; bitfury=$enableval
  13531. fi
  13532. if test "x$bitfury" = xyes; then
  13533. $as_echo "@%:@define USE_BITFURY 1" >>confdefs.h
  13534. fi
  13535. if test x$bitfury = xyes; then
  13536. HAS_BITFURY_TRUE=
  13537. HAS_BITFURY_FALSE='#'
  13538. else
  13539. HAS_BITFURY_TRUE='#'
  13540. HAS_BITFURY_FALSE=
  13541. fi
  13542. cointerra="no"
  13543. @%:@ Check whether --enable-cointerra was given.
  13544. if test "${enable_cointerra+set}" = set; then :
  13545. enableval=$enable_cointerra; cointerra=$enableval
  13546. fi
  13547. if test "x$cointerra" = xyes; then
  13548. $as_echo "@%:@define USE_COINTERRA 1" >>confdefs.h
  13549. fi
  13550. if test x$cointerra = xyes; then
  13551. HAS_COINTERRA_TRUE=
  13552. HAS_COINTERRA_FALSE='#'
  13553. else
  13554. HAS_COINTERRA_TRUE='#'
  13555. HAS_COINTERRA_FALSE=
  13556. fi
  13557. bitmine_A1="no"
  13558. @%:@ Check whether --enable-bitmine_A1 was given.
  13559. if test "${enable_bitmine_A1+set}" = set; then :
  13560. enableval=$enable_bitmine_A1; bitmine_A1=$enableval
  13561. fi
  13562. if test "x$bitmine_A1" = xyes; then
  13563. $as_echo "@%:@define USE_BITMINE_A1 1" >>confdefs.h
  13564. fi
  13565. if test x$bitmine_A1 = xyes; then
  13566. HAS_BITMINE_A1_TRUE=
  13567. HAS_BITMINE_A1_FALSE='#'
  13568. else
  13569. HAS_BITMINE_A1_TRUE='#'
  13570. HAS_BITMINE_A1_FALSE=
  13571. fi
  13572. drillbit="no"
  13573. @%:@ Check whether --enable-drillbit was given.
  13574. if test "${enable_drillbit+set}" = set; then :
  13575. enableval=$enable_drillbit; drillbit=$enableval
  13576. fi
  13577. if test "x$drillbit" = xyes; then
  13578. $as_echo "@%:@define USE_DRILLBIT 1" >>confdefs.h
  13579. fi
  13580. if test x$drillbit = xyes; then
  13581. HAS_DRILLBIT_TRUE=
  13582. HAS_DRILLBIT_FALSE='#'
  13583. else
  13584. HAS_DRILLBIT_TRUE='#'
  13585. HAS_DRILLBIT_FALSE=
  13586. fi
  13587. hashfast="no"
  13588. @%:@ Check whether --enable-hashfast was given.
  13589. if test "${enable_hashfast+set}" = set; then :
  13590. enableval=$enable_hashfast; hashfast=$enableval
  13591. fi
  13592. if test "x$hashfast" = xyes; then
  13593. $as_echo "@%:@define USE_HASHFAST 1" >>confdefs.h
  13594. fi
  13595. if test x$hashfast = xyes; then
  13596. HAS_HASHFAST_TRUE=
  13597. HAS_HASHFAST_FALSE='#'
  13598. else
  13599. HAS_HASHFAST_TRUE='#'
  13600. HAS_HASHFAST_FALSE=
  13601. fi
  13602. icarus="no"
  13603. @%:@ Check whether --enable-icarus was given.
  13604. if test "${enable_icarus+set}" = set; then :
  13605. enableval=$enable_icarus; icarus=$enableval
  13606. fi
  13607. if test "x$icarus" = xyes; then
  13608. $as_echo "@%:@define USE_ICARUS 1" >>confdefs.h
  13609. fi
  13610. if test x$icarus = xyes; then
  13611. HAS_ICARUS_TRUE=
  13612. HAS_ICARUS_FALSE='#'
  13613. else
  13614. HAS_ICARUS_TRUE='#'
  13615. HAS_ICARUS_FALSE=
  13616. fi
  13617. klondike="no"
  13618. @%:@ Check whether --enable-klondike was given.
  13619. if test "${enable_klondike+set}" = set; then :
  13620. enableval=$enable_klondike; klondike=$enableval
  13621. fi
  13622. if test "x$klondike" = xyes; then
  13623. $as_echo "@%:@define USE_KLONDIKE 1" >>confdefs.h
  13624. fi
  13625. if test x$klondike = xyes; then
  13626. HAS_KLONDIKE_TRUE=
  13627. HAS_KLONDIKE_FALSE='#'
  13628. else
  13629. HAS_KLONDIKE_TRUE='#'
  13630. HAS_KLONDIKE_FALSE=
  13631. fi
  13632. knc="no"
  13633. @%:@ Check whether --enable-knc was given.
  13634. if test "${enable_knc+set}" = set; then :
  13635. enableval=$enable_knc; knc=$enableval
  13636. fi
  13637. if test "x$knc" = xyes; then
  13638. $as_echo "@%:@define USE_KNC 1" >>confdefs.h
  13639. fi
  13640. if test x$knc = xyes; then
  13641. HAS_KNC_TRUE=
  13642. HAS_KNC_FALSE='#'
  13643. else
  13644. HAS_KNC_TRUE='#'
  13645. HAS_KNC_FALSE=
  13646. fi
  13647. avalon2="no"
  13648. @%:@ Check whether --enable-avalon2 was given.
  13649. if test "${enable_avalon2+set}" = set; then :
  13650. enableval=$enable_avalon2; avalon2=$enableval
  13651. fi
  13652. if test "x$avalon2" = xyes; then
  13653. $as_echo "@%:@define USE_FPGA_SERIAL 1" >>confdefs.h
  13654. $as_echo "@%:@define USE_AVALON2 1" >>confdefs.h
  13655. fi
  13656. if test x$avalon2 = xyes; then
  13657. HAS_AVALON2_TRUE=
  13658. HAS_AVALON2_FALSE='#'
  13659. else
  13660. HAS_AVALON2_TRUE='#'
  13661. HAS_AVALON2_FALSE=
  13662. fi
  13663. minion="no"
  13664. @%:@ Check whether --enable-minion was given.
  13665. if test "${enable_minion+set}" = set; then :
  13666. enableval=$enable_minion; minion=$enableval
  13667. fi
  13668. if test "x$minion" = xyes; then
  13669. $as_echo "@%:@define USE_MINION 1" >>confdefs.h
  13670. fi
  13671. if test x$minion = xyes; then
  13672. HAS_MINION_TRUE=
  13673. HAS_MINION_FALSE='#'
  13674. else
  13675. HAS_MINION_TRUE='#'
  13676. HAS_MINION_FALSE=
  13677. fi
  13678. modminer="no"
  13679. @%:@ Check whether --enable-modminer was given.
  13680. if test "${enable_modminer+set}" = set; then :
  13681. enableval=$enable_modminer; modminer=$enableval
  13682. fi
  13683. if test "x$modminer" = xyes; then
  13684. $as_echo "@%:@define USE_MODMINER 1" >>confdefs.h
  13685. fi
  13686. if test x$modminer = xyes; then
  13687. HAS_MODMINER_TRUE=
  13688. HAS_MODMINER_FALSE='#'
  13689. else
  13690. HAS_MODMINER_TRUE='#'
  13691. HAS_MODMINER_FALSE=
  13692. fi
  13693. spondoolies="no"
  13694. @%:@ Check whether --enable-spondoolies was given.
  13695. if test "${enable_spondoolies+set}" = set; then :
  13696. enableval=$enable_spondoolies; spondoolies=$enableval
  13697. fi
  13698. if test "x$spondoolies" = xyes; then
  13699. $as_echo "@%:@define USE_SPONDOOLIES 1" >>confdefs.h
  13700. fi
  13701. if test x$spondoolies = xyes; then
  13702. HAS_SPONDOOLIES_TRUE=
  13703. HAS_SPONDOOLIES_FALSE='#'
  13704. else
  13705. HAS_SPONDOOLIES_TRUE='#'
  13706. HAS_SPONDOOLIES_FALSE=
  13707. fi
  13708. gridseed="no"
  13709. @%:@ Check whether --enable-gridseed was given.
  13710. if test "${enable_gridseed+set}" = set; then :
  13711. enableval=$enable_gridseed; gridseed=$enableval
  13712. fi
  13713. if test "x$gridseed" = xyes; then
  13714. $as_echo "@%:@define USE_FPGA_SERIAL 1" >>confdefs.h
  13715. $as_echo "@%:@define USE_GRIDSEED 1" >>confdefs.h
  13716. fi
  13717. if test x$gridseed = xyes; then
  13718. HAS_GRIDSEED_TRUE=
  13719. HAS_GRIDSEED_FALSE='#'
  13720. else
  13721. HAS_GRIDSEED_TRUE='#'
  13722. HAS_GRIDSEED_FALSE=
  13723. fi
  13724. zeus="no"
  13725. @%:@ Check whether --enable-zeus was given.
  13726. if test "${enable_zeus+set}" = set; then :
  13727. enableval=$enable_zeus; zeus=$enableval
  13728. fi
  13729. if test "x$zeus" = xyes; then
  13730. $as_echo "@%:@define USE_FPGA_SERIAL 1" >>confdefs.h
  13731. $as_echo "@%:@define USE_ZEUS 1" >>confdefs.h
  13732. fi
  13733. if test x$zeus = xyes; then
  13734. HAS_ZEUS_TRUE=
  13735. HAS_ZEUS_FALSE='#'
  13736. else
  13737. HAS_ZEUS_TRUE='#'
  13738. HAS_ZEUS_FALSE=
  13739. fi
  13740. lketc="no"
  13741. @%:@ Check whether --enable-lketc was given.
  13742. if test "${enable_lketc+set}" = set; then :
  13743. enableval=$enable_lketc; lketc=$enableval
  13744. fi
  13745. if test "x$lketc" = xyes; then
  13746. $as_echo "@%:@define USE_FPGA_SERIAL 1" >>confdefs.h
  13747. $as_echo "@%:@define USE_LKETC 1" >>confdefs.h
  13748. fi
  13749. if test x$lketc = xyes; then
  13750. HAS_LKETC_TRUE=
  13751. HAS_LKETC_FALSE='#'
  13752. else
  13753. HAS_LKETC_TRUE='#'
  13754. HAS_LKETC_FALSE=
  13755. fi
  13756. curses="auto"
  13757. @%:@ Check whether --with-curses was given.
  13758. if test "${with_curses+set}" = set; then :
  13759. withval=$with_curses; curses=$withval
  13760. fi
  13761. if test "x$curses" = "xno"; then
  13762. cursesmsg='User specified --without-curses. TUI support DISABLED'
  13763. else
  13764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing addstr" >&5
  13765. $as_echo_n "checking for library containing addstr... " >&6; }
  13766. if ${ac_cv_search_addstr+:} false; then :
  13767. $as_echo_n "(cached) " >&6
  13768. else
  13769. ac_func_search_save_LIBS=$LIBS
  13770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13771. /* end confdefs.h. */
  13772. /* Override any GCC internal prototype to avoid an error.
  13773. Use char because int might match the return type of a GCC
  13774. builtin and then its argument prototype would still apply. */
  13775. #ifdef __cplusplus
  13776. extern "C"
  13777. #endif
  13778. char addstr ();
  13779. int
  13780. main ()
  13781. {
  13782. return addstr ();
  13783. ;
  13784. return 0;
  13785. }
  13786. _ACEOF
  13787. for ac_lib in '' ncurses pdcurses; do
  13788. if test -z "$ac_lib"; then
  13789. ac_res="none required"
  13790. else
  13791. ac_res=-l$ac_lib
  13792. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13793. fi
  13794. if ac_fn_c_try_link "$LINENO"; then :
  13795. ac_cv_search_addstr=$ac_res
  13796. fi
  13797. rm -f core conftest.err conftest.$ac_objext \
  13798. conftest$ac_exeext
  13799. if ${ac_cv_search_addstr+:} false; then :
  13800. break
  13801. fi
  13802. done
  13803. if ${ac_cv_search_addstr+:} false; then :
  13804. else
  13805. ac_cv_search_addstr=no
  13806. fi
  13807. rm conftest.$ac_ext
  13808. LIBS=$ac_func_search_save_LIBS
  13809. fi
  13810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_addstr" >&5
  13811. $as_echo "$ac_cv_search_addstr" >&6; }
  13812. ac_res=$ac_cv_search_addstr
  13813. if test "$ac_res" != no; then :
  13814. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13815. curses=yes
  13816. cursesmsg="FOUND: ${ac_cv_search_addstr}"
  13817. $as_echo "@%:@define HAVE_CURSES 1" >>confdefs.h
  13818. else
  13819. if test "x$curses" = "xyes"; then
  13820. as_fn_error $? "Could not find curses library - please install libncurses-dev or pdcurses-dev (or configure --without-curses)" "$LINENO" 5
  13821. else
  13822. { $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
  13823. $as_echo "$as_me: WARNING: Could not find curses library - if you want a TUI, install libncurses-dev or pdcurses-dev" >&2;}
  13824. curses=no
  13825. cursesmsg='NOT FOUND. TUI support DISABLED'
  13826. fi
  13827. fi
  13828. fi
  13829. if test x$avalon$bitforce$bitfury$modminer$bflsc$icarus$hashfast$klondike$drillbit$cointerra$ants1$ants2$gridseed$zeus$lketc != xnonononononononononononononono; then
  13830. want_usbutils=true
  13831. else
  13832. want_usbutils=false
  13833. fi
  13834. if test x$bitfury != xno; then
  13835. want_libbitfury=true
  13836. else
  13837. want_libbitfury=false
  13838. fi
  13839. if test x$gridseed$zeus$lketc != xnonono; then
  13840. want_libudev=true
  13841. else
  13842. want_libudev=false
  13843. fi
  13844. if test x$avalon2$modminer$gridseed$zeus$lketc != xnonononono; then
  13845. NEED_FPGAUTILS_TRUE=
  13846. NEED_FPGAUTILS_FALSE='#'
  13847. else
  13848. NEED_FPGAUTILS_TRUE='#'
  13849. NEED_FPGAUTILS_FALSE=
  13850. fi
  13851. if test x$want_usbutils != xfalse; then
  13852. WANT_USBUTILS_TRUE=
  13853. WANT_USBUTILS_FALSE='#'
  13854. else
  13855. WANT_USBUTILS_TRUE='#'
  13856. WANT_USBUTILS_FALSE=
  13857. fi
  13858. if test x$want_libbitfury != xfalse; then
  13859. WANT_LIBBITFURY_TRUE=
  13860. WANT_LIBBITFURY_FALSE='#'
  13861. else
  13862. WANT_LIBBITFURY_TRUE='#'
  13863. WANT_LIBBITFURY_FALSE=
  13864. fi
  13865. if test x$curses = xyes; then
  13866. HAVE_CURSES_TRUE=
  13867. HAVE_CURSES_FALSE='#'
  13868. else
  13869. HAVE_CURSES_TRUE='#'
  13870. HAVE_CURSES_FALSE=
  13871. fi
  13872. if test x$have_win32 = xtrue; then
  13873. HAVE_WINDOWS_TRUE=
  13874. HAVE_WINDOWS_FALSE='#'
  13875. else
  13876. HAVE_WINDOWS_TRUE='#'
  13877. HAVE_WINDOWS_FALSE=
  13878. fi
  13879. if test x$have_x86_64 = xtrue; then
  13880. HAVE_x86_64_TRUE=
  13881. HAVE_x86_64_FALSE='#'
  13882. else
  13883. HAVE_x86_64_TRUE='#'
  13884. HAVE_x86_64_FALSE=
  13885. fi
  13886. if test "x$want_usbutils" != xfalse; then
  13887. dlibusb="no"
  13888. $as_echo "@%:@define USE_USBUTILS 1" >>confdefs.h
  13889. @%:@ Check whether --with-system-libusb was given.
  13890. if test "${with_system_libusb+set}" = set; then :
  13891. withval=$with_system_libusb; dlibusb=$withval
  13892. fi
  13893. if test "x$dlibusb" != xno; then
  13894. case $target in
  13895. *-*-freebsd*)
  13896. LIBUSB_LIBS="-lusb"
  13897. LIBUSB_CFLAGS=""
  13898. $as_echo "@%:@define HAVE_LIBUSB 1" >>confdefs.h
  13899. ;;
  13900. *)
  13901. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13902. if test -n "$ac_tool_prefix"; then
  13903. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13904. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13906. $as_echo_n "checking for $ac_word... " >&6; }
  13907. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13908. $as_echo_n "(cached) " >&6
  13909. else
  13910. case $PKG_CONFIG in
  13911. [\\/]* | ?:[\\/]*)
  13912. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13913. ;;
  13914. *)
  13915. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13916. for as_dir in $PATH
  13917. do
  13918. IFS=$as_save_IFS
  13919. test -z "$as_dir" && as_dir=.
  13920. for ac_exec_ext in '' $ac_executable_extensions; do
  13921. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13922. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13923. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13924. break 2
  13925. fi
  13926. done
  13927. done
  13928. IFS=$as_save_IFS
  13929. ;;
  13930. esac
  13931. fi
  13932. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13933. if test -n "$PKG_CONFIG"; then
  13934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13935. $as_echo "$PKG_CONFIG" >&6; }
  13936. else
  13937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13938. $as_echo "no" >&6; }
  13939. fi
  13940. fi
  13941. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13942. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13943. # Extract the first word of "pkg-config", so it can be a program name with args.
  13944. set dummy pkg-config; ac_word=$2
  13945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13946. $as_echo_n "checking for $ac_word... " >&6; }
  13947. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13948. $as_echo_n "(cached) " >&6
  13949. else
  13950. case $ac_pt_PKG_CONFIG in
  13951. [\\/]* | ?:[\\/]*)
  13952. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13953. ;;
  13954. *)
  13955. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13956. for as_dir in $PATH
  13957. do
  13958. IFS=$as_save_IFS
  13959. test -z "$as_dir" && as_dir=.
  13960. for ac_exec_ext in '' $ac_executable_extensions; do
  13961. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13962. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13963. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13964. break 2
  13965. fi
  13966. done
  13967. done
  13968. IFS=$as_save_IFS
  13969. ;;
  13970. esac
  13971. fi
  13972. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13973. if test -n "$ac_pt_PKG_CONFIG"; then
  13974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13975. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13976. else
  13977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13978. $as_echo "no" >&6; }
  13979. fi
  13980. if test "x$ac_pt_PKG_CONFIG" = x; then
  13981. PKG_CONFIG=""
  13982. else
  13983. case $cross_compiling:$ac_tool_warned in
  13984. yes:)
  13985. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13986. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13987. ac_tool_warned=yes ;;
  13988. esac
  13989. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13990. fi
  13991. else
  13992. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13993. fi
  13994. fi
  13995. if test -n "$PKG_CONFIG"; then
  13996. _pkg_min_version=0.9.0
  13997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13998. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13999. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  14000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14001. $as_echo "yes" >&6; }
  14002. else
  14003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14004. $as_echo "no" >&6; }
  14005. PKG_CONFIG=""
  14006. fi
  14007. fi
  14008. pkg_failed=no
  14009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
  14010. $as_echo_n "checking for LIBUSB... " >&6; }
  14011. if test -n "$LIBUSB_CFLAGS"; then
  14012. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  14013. elif test -n "$PKG_CONFIG"; then
  14014. if test -n "$PKG_CONFIG" && \
  14015. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  14016. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  14017. ac_status=$?
  14018. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14019. test $ac_status = 0; }; then
  14020. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  14021. test "x$?" != "x0" && pkg_failed=yes
  14022. else
  14023. pkg_failed=yes
  14024. fi
  14025. else
  14026. pkg_failed=untried
  14027. fi
  14028. if test -n "$LIBUSB_LIBS"; then
  14029. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  14030. elif test -n "$PKG_CONFIG"; then
  14031. if test -n "$PKG_CONFIG" && \
  14032. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  14033. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  14034. ac_status=$?
  14035. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14036. test $ac_status = 0; }; then
  14037. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  14038. test "x$?" != "x0" && pkg_failed=yes
  14039. else
  14040. pkg_failed=yes
  14041. fi
  14042. else
  14043. pkg_failed=untried
  14044. fi
  14045. if test $pkg_failed = yes; then
  14046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14047. $as_echo "no" >&6; }
  14048. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  14049. _pkg_short_errors_supported=yes
  14050. else
  14051. _pkg_short_errors_supported=no
  14052. fi
  14053. if test $_pkg_short_errors_supported = yes; then
  14054. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  14055. else
  14056. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  14057. fi
  14058. # Put the nasty error message in config.log where it belongs
  14059. echo "$LIBUSB_PKG_ERRORS" >&5
  14060. as_fn_error $? "Could not find usb library - please install libusb-1.0" "$LINENO" 5
  14061. elif test $pkg_failed = untried; then
  14062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14063. $as_echo "no" >&6; }
  14064. as_fn_error $? "Could not find usb library - please install libusb-1.0" "$LINENO" 5
  14065. else
  14066. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  14067. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  14068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14069. $as_echo "yes" >&6; }
  14070. $as_echo "@%:@define HAVE_LIBUSB 1" >>confdefs.h
  14071. fi
  14072. ;;
  14073. esac
  14074. else
  14075. subdirs="$subdirs compat/libusb-1.0"
  14076. LIBUSB_LIBS="compat/libusb-1.0/libusb/.libs/libusb-1.0.a"
  14077. if test "x$have_linux" = "xtrue"; then
  14078. LIBUSB_LIBS+=" -ludev"
  14079. fi
  14080. if test "x$have_darwin" = "xtrue"; then
  14081. LIBUSB_LIBS+=" -lobjc"
  14082. LDFLAGS+=" -framework CoreFoundation -framework IOKit"
  14083. fi
  14084. fi
  14085. else
  14086. LIBUSB_LIBS=""
  14087. fi
  14088. if test "x$want_libudev" != xfalse; then
  14089. if test "x$have_linux" = "xtrue"; then
  14090. $as_echo "@%:@define HAVE_LIBUDEV 1" >>confdefs.h
  14091. LIBUDEV_LIBS="-ludev"
  14092. fi
  14093. else
  14094. LIBUDEV_LIBS=""
  14095. fi
  14096. if test x$dlibusb = xno; then
  14097. WANT_STATIC_LIBUSB_TRUE=
  14098. WANT_STATIC_LIBUSB_FALSE='#'
  14099. else
  14100. WANT_STATIC_LIBUSB_TRUE='#'
  14101. WANT_STATIC_LIBUSB_FALSE=
  14102. fi
  14103. subdirs="$subdirs compat/jansson-2.5"
  14104. JANSSON_LIBS="compat/jansson-2.5/src/.libs/libjansson.a"
  14105. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  14106. if test -n "$ac_tool_prefix"; then
  14107. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  14108. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  14109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14110. $as_echo_n "checking for $ac_word... " >&6; }
  14111. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  14112. $as_echo_n "(cached) " >&6
  14113. else
  14114. case $PKG_CONFIG in
  14115. [\\/]* | ?:[\\/]*)
  14116. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14117. ;;
  14118. *)
  14119. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14120. for as_dir in $PATH
  14121. do
  14122. IFS=$as_save_IFS
  14123. test -z "$as_dir" && as_dir=.
  14124. for ac_exec_ext in '' $ac_executable_extensions; do
  14125. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14126. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14127. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14128. break 2
  14129. fi
  14130. done
  14131. done
  14132. IFS=$as_save_IFS
  14133. ;;
  14134. esac
  14135. fi
  14136. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  14137. if test -n "$PKG_CONFIG"; then
  14138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  14139. $as_echo "$PKG_CONFIG" >&6; }
  14140. else
  14141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14142. $as_echo "no" >&6; }
  14143. fi
  14144. fi
  14145. if test -z "$ac_cv_path_PKG_CONFIG"; then
  14146. ac_pt_PKG_CONFIG=$PKG_CONFIG
  14147. # Extract the first word of "pkg-config", so it can be a program name with args.
  14148. set dummy pkg-config; ac_word=$2
  14149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14150. $as_echo_n "checking for $ac_word... " >&6; }
  14151. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  14152. $as_echo_n "(cached) " >&6
  14153. else
  14154. case $ac_pt_PKG_CONFIG in
  14155. [\\/]* | ?:[\\/]*)
  14156. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  14157. ;;
  14158. *)
  14159. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14160. for as_dir in $PATH
  14161. do
  14162. IFS=$as_save_IFS
  14163. test -z "$as_dir" && as_dir=.
  14164. for ac_exec_ext in '' $ac_executable_extensions; do
  14165. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14166. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14167. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14168. break 2
  14169. fi
  14170. done
  14171. done
  14172. IFS=$as_save_IFS
  14173. ;;
  14174. esac
  14175. fi
  14176. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  14177. if test -n "$ac_pt_PKG_CONFIG"; then
  14178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  14179. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  14180. else
  14181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14182. $as_echo "no" >&6; }
  14183. fi
  14184. if test "x$ac_pt_PKG_CONFIG" = x; then
  14185. PKG_CONFIG=""
  14186. else
  14187. case $cross_compiling:$ac_tool_warned in
  14188. yes:)
  14189. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14190. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14191. ac_tool_warned=yes ;;
  14192. esac
  14193. PKG_CONFIG=$ac_pt_PKG_CONFIG
  14194. fi
  14195. else
  14196. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  14197. fi
  14198. fi
  14199. if test -n "$PKG_CONFIG"; then
  14200. _pkg_min_version=0.9.0
  14201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  14202. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  14203. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  14204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14205. $as_echo "yes" >&6; }
  14206. else
  14207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14208. $as_echo "no" >&6; }
  14209. PKG_CONFIG=""
  14210. fi
  14211. fi
  14212. if test "x$have_cgminer_sdk" = "xtrue"; then
  14213. if test "x$have_x86_64" = xtrue; then
  14214. ARCH_DIR=x86_64
  14215. else
  14216. ARCH_DIR=x86
  14217. fi
  14218. PKG_CONFIG="${PKG_CONFIG:-pkg-config} --define-variable=arch=$ARCH_DIR --define-variable=target=$target --define-variable=cgminersdkdir=$CGMINER_SDK"
  14219. PKG_CONFIG_PATH="$CGMINER_SDK/lib/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}"
  14220. fi
  14221. @%:@ Check whether --enable-libcurl was given.
  14222. if test "${enable_libcurl+set}" = set; then :
  14223. enableval=$enable_libcurl; libcurl=$enableval
  14224. fi
  14225. if test "x$libcurl" != xno; then
  14226. if test "x$have_win32" != xtrue; then
  14227. pkg_failed=no
  14228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCURL" >&5
  14229. $as_echo_n "checking for LIBCURL... " >&6; }
  14230. if test -n "$LIBCURL_CFLAGS"; then
  14231. pkg_cv_LIBCURL_CFLAGS="$LIBCURL_CFLAGS"
  14232. elif test -n "$PKG_CONFIG"; then
  14233. if test -n "$PKG_CONFIG" && \
  14234. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.25.0\""; } >&5
  14235. ($PKG_CONFIG --exists --print-errors "libcurl >= 7.25.0") 2>&5
  14236. ac_status=$?
  14237. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14238. test $ac_status = 0; }; then
  14239. pkg_cv_LIBCURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl >= 7.25.0" 2>/dev/null`
  14240. test "x$?" != "x0" && pkg_failed=yes
  14241. else
  14242. pkg_failed=yes
  14243. fi
  14244. else
  14245. pkg_failed=untried
  14246. fi
  14247. if test -n "$LIBCURL_LIBS"; then
  14248. pkg_cv_LIBCURL_LIBS="$LIBCURL_LIBS"
  14249. elif test -n "$PKG_CONFIG"; then
  14250. if test -n "$PKG_CONFIG" && \
  14251. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.25.0\""; } >&5
  14252. ($PKG_CONFIG --exists --print-errors "libcurl >= 7.25.0") 2>&5
  14253. ac_status=$?
  14254. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14255. test $ac_status = 0; }; then
  14256. pkg_cv_LIBCURL_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.25.0" 2>/dev/null`
  14257. test "x$?" != "x0" && pkg_failed=yes
  14258. else
  14259. pkg_failed=yes
  14260. fi
  14261. else
  14262. pkg_failed=untried
  14263. fi
  14264. if test $pkg_failed = yes; then
  14265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14266. $as_echo "no" >&6; }
  14267. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  14268. _pkg_short_errors_supported=yes
  14269. else
  14270. _pkg_short_errors_supported=no
  14271. fi
  14272. if test $_pkg_short_errors_supported = yes; then
  14273. LIBCURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl >= 7.25.0" 2>&1`
  14274. else
  14275. LIBCURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl >= 7.25.0" 2>&1`
  14276. fi
  14277. # Put the nasty error message in config.log where it belongs
  14278. echo "$LIBCURL_PKG_ERRORS" >&5
  14279. pkg_failed=no
  14280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCURL" >&5
  14281. $as_echo_n "checking for LIBCURL... " >&6; }
  14282. if test -n "$LIBCURL_CFLAGS"; then
  14283. pkg_cv_LIBCURL_CFLAGS="$LIBCURL_CFLAGS"
  14284. elif test -n "$PKG_CONFIG"; then
  14285. if test -n "$PKG_CONFIG" && \
  14286. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.18.2\""; } >&5
  14287. ($PKG_CONFIG --exists --print-errors "libcurl >= 7.18.2") 2>&5
  14288. ac_status=$?
  14289. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14290. test $ac_status = 0; }; then
  14291. pkg_cv_LIBCURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl >= 7.18.2" 2>/dev/null`
  14292. test "x$?" != "x0" && pkg_failed=yes
  14293. else
  14294. pkg_failed=yes
  14295. fi
  14296. else
  14297. pkg_failed=untried
  14298. fi
  14299. if test -n "$LIBCURL_LIBS"; then
  14300. pkg_cv_LIBCURL_LIBS="$LIBCURL_LIBS"
  14301. elif test -n "$PKG_CONFIG"; then
  14302. if test -n "$PKG_CONFIG" && \
  14303. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.18.2\""; } >&5
  14304. ($PKG_CONFIG --exists --print-errors "libcurl >= 7.18.2") 2>&5
  14305. ac_status=$?
  14306. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14307. test $ac_status = 0; }; then
  14308. pkg_cv_LIBCURL_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.18.2" 2>/dev/null`
  14309. test "x$?" != "x0" && pkg_failed=yes
  14310. else
  14311. pkg_failed=yes
  14312. fi
  14313. else
  14314. pkg_failed=untried
  14315. fi
  14316. if test $pkg_failed = yes; then
  14317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14318. $as_echo "no" >&6; }
  14319. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  14320. _pkg_short_errors_supported=yes
  14321. else
  14322. _pkg_short_errors_supported=no
  14323. fi
  14324. if test $_pkg_short_errors_supported = yes; then
  14325. LIBCURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl >= 7.18.2" 2>&1`
  14326. else
  14327. LIBCURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl >= 7.18.2" 2>&1`
  14328. fi
  14329. # Put the nasty error message in config.log where it belongs
  14330. echo "$LIBCURL_PKG_ERRORS" >&5
  14331. as_fn_error $? "Missing required libcurl dev >= 7.18.2" "$LINENO" 5
  14332. elif test $pkg_failed = untried; then
  14333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14334. $as_echo "no" >&6; }
  14335. as_fn_error $? "Missing required libcurl dev >= 7.18.2" "$LINENO" 5
  14336. else
  14337. LIBCURL_CFLAGS=$pkg_cv_LIBCURL_CFLAGS
  14338. LIBCURL_LIBS=$pkg_cv_LIBCURL_LIBS
  14339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14340. $as_echo "yes" >&6; }
  14341. fi
  14342. elif test $pkg_failed = untried; then
  14343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14344. $as_echo "no" >&6; }
  14345. pkg_failed=no
  14346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCURL" >&5
  14347. $as_echo_n "checking for LIBCURL... " >&6; }
  14348. if test -n "$LIBCURL_CFLAGS"; then
  14349. pkg_cv_LIBCURL_CFLAGS="$LIBCURL_CFLAGS"
  14350. elif test -n "$PKG_CONFIG"; then
  14351. if test -n "$PKG_CONFIG" && \
  14352. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.18.2\""; } >&5
  14353. ($PKG_CONFIG --exists --print-errors "libcurl >= 7.18.2") 2>&5
  14354. ac_status=$?
  14355. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14356. test $ac_status = 0; }; then
  14357. pkg_cv_LIBCURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl >= 7.18.2" 2>/dev/null`
  14358. test "x$?" != "x0" && pkg_failed=yes
  14359. else
  14360. pkg_failed=yes
  14361. fi
  14362. else
  14363. pkg_failed=untried
  14364. fi
  14365. if test -n "$LIBCURL_LIBS"; then
  14366. pkg_cv_LIBCURL_LIBS="$LIBCURL_LIBS"
  14367. elif test -n "$PKG_CONFIG"; then
  14368. if test -n "$PKG_CONFIG" && \
  14369. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.18.2\""; } >&5
  14370. ($PKG_CONFIG --exists --print-errors "libcurl >= 7.18.2") 2>&5
  14371. ac_status=$?
  14372. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14373. test $ac_status = 0; }; then
  14374. pkg_cv_LIBCURL_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.18.2" 2>/dev/null`
  14375. test "x$?" != "x0" && pkg_failed=yes
  14376. else
  14377. pkg_failed=yes
  14378. fi
  14379. else
  14380. pkg_failed=untried
  14381. fi
  14382. if test $pkg_failed = yes; then
  14383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14384. $as_echo "no" >&6; }
  14385. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  14386. _pkg_short_errors_supported=yes
  14387. else
  14388. _pkg_short_errors_supported=no
  14389. fi
  14390. if test $_pkg_short_errors_supported = yes; then
  14391. LIBCURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl >= 7.18.2" 2>&1`
  14392. else
  14393. LIBCURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl >= 7.18.2" 2>&1`
  14394. fi
  14395. # Put the nasty error message in config.log where it belongs
  14396. echo "$LIBCURL_PKG_ERRORS" >&5
  14397. as_fn_error $? "Missing required libcurl dev >= 7.18.2" "$LINENO" 5
  14398. elif test $pkg_failed = untried; then
  14399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14400. $as_echo "no" >&6; }
  14401. as_fn_error $? "Missing required libcurl dev >= 7.18.2" "$LINENO" 5
  14402. else
  14403. LIBCURL_CFLAGS=$pkg_cv_LIBCURL_CFLAGS
  14404. LIBCURL_LIBS=$pkg_cv_LIBCURL_LIBS
  14405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14406. $as_echo "yes" >&6; }
  14407. fi
  14408. else
  14409. LIBCURL_CFLAGS=$pkg_cv_LIBCURL_CFLAGS
  14410. LIBCURL_LIBS=$pkg_cv_LIBCURL_LIBS
  14411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14412. $as_echo "yes" >&6; }
  14413. $as_echo "@%:@define CURL_HAS_KEEPALIVE 1" >>confdefs.h
  14414. fi
  14415. else
  14416. pkg_failed=no
  14417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCURL" >&5
  14418. $as_echo_n "checking for LIBCURL... " >&6; }
  14419. if test -n "$LIBCURL_CFLAGS"; then
  14420. pkg_cv_LIBCURL_CFLAGS="$LIBCURL_CFLAGS"
  14421. elif test -n "$PKG_CONFIG"; then
  14422. if test -n "$PKG_CONFIG" && \
  14423. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.25.0\""; } >&5
  14424. ($PKG_CONFIG --exists --print-errors "libcurl >= 7.25.0") 2>&5
  14425. ac_status=$?
  14426. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14427. test $ac_status = 0; }; then
  14428. pkg_cv_LIBCURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl >= 7.25.0" 2>/dev/null`
  14429. test "x$?" != "x0" && pkg_failed=yes
  14430. else
  14431. pkg_failed=yes
  14432. fi
  14433. else
  14434. pkg_failed=untried
  14435. fi
  14436. if test -n "$LIBCURL_LIBS"; then
  14437. pkg_cv_LIBCURL_LIBS="$LIBCURL_LIBS"
  14438. elif test -n "$PKG_CONFIG"; then
  14439. if test -n "$PKG_CONFIG" && \
  14440. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.25.0\""; } >&5
  14441. ($PKG_CONFIG --exists --print-errors "libcurl >= 7.25.0") 2>&5
  14442. ac_status=$?
  14443. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14444. test $ac_status = 0; }; then
  14445. pkg_cv_LIBCURL_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.25.0" 2>/dev/null`
  14446. test "x$?" != "x0" && pkg_failed=yes
  14447. else
  14448. pkg_failed=yes
  14449. fi
  14450. else
  14451. pkg_failed=untried
  14452. fi
  14453. if test $pkg_failed = yes; then
  14454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14455. $as_echo "no" >&6; }
  14456. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  14457. _pkg_short_errors_supported=yes
  14458. else
  14459. _pkg_short_errors_supported=no
  14460. fi
  14461. if test $_pkg_short_errors_supported = yes; then
  14462. LIBCURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl >= 7.25.0" 2>&1`
  14463. else
  14464. LIBCURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl >= 7.25.0" 2>&1`
  14465. fi
  14466. # Put the nasty error message in config.log where it belongs
  14467. echo "$LIBCURL_PKG_ERRORS" >&5
  14468. as_fn_error $? "Missing required libcurl dev >= 7.25.0" "$LINENO" 5
  14469. elif test $pkg_failed = untried; then
  14470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14471. $as_echo "no" >&6; }
  14472. as_fn_error $? "Missing required libcurl dev >= 7.25.0" "$LINENO" 5
  14473. else
  14474. LIBCURL_CFLAGS=$pkg_cv_LIBCURL_CFLAGS
  14475. LIBCURL_LIBS=$pkg_cv_LIBCURL_LIBS
  14476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14477. $as_echo "yes" >&6; }
  14478. fi
  14479. $as_echo "@%:@define CURL_HAS_KEEPALIVE 1" >>confdefs.h
  14480. fi
  14481. $as_echo "@%:@define HAVE_LIBCURL 1" >>confdefs.h
  14482. else
  14483. LIBCURL_LIBS=""
  14484. fi
  14485. #check execv signature
  14486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14487. /* end confdefs.h. */
  14488. #include <process.h>
  14489. int execv(const char*, const char*const*);
  14490. _ACEOF
  14491. if ac_fn_c_try_compile "$LINENO"; then :
  14492. $as_echo "@%:@define EXECV_2ND_ARG_TYPE const char* const*" >>confdefs.h
  14493. else
  14494. $as_echo "@%:@define EXECV_2ND_ARG_TYPE char* const*" >>confdefs.h
  14495. fi
  14496. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14497. # All the configuration checks. Regrettably, the __attribute__ checks will
  14498. # give false positives on old GCCs, since they just cause warnings. But that's
  14499. # fairly harmless.
  14500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14501. /* end confdefs.h. */
  14502. static void __attribute__((cold)) cleanup(void) { }
  14503. _ACEOF
  14504. if ac_fn_c_try_compile "$LINENO"; then :
  14505. $as_echo "@%:@define HAVE_ATTRIBUTE_COLD 1" >>confdefs.h
  14506. fi
  14507. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14509. /* end confdefs.h. */
  14510. static void __attribute__((const)) cleanup(void) { }
  14511. _ACEOF
  14512. if ac_fn_c_try_compile "$LINENO"; then :
  14513. $as_echo "@%:@define HAVE_ATTRIBUTE_CONST 1" >>confdefs.h
  14514. fi
  14515. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14517. /* end confdefs.h. */
  14518. static void __attribute__((noreturn)) cleanup(void) { exit(1); }
  14519. _ACEOF
  14520. if ac_fn_c_try_compile "$LINENO"; then :
  14521. $as_echo "@%:@define HAVE_ATTRIBUTE_NORETURN 1" >>confdefs.h
  14522. fi
  14523. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14525. /* end confdefs.h. */
  14526. static void __attribute__((format(__printf__, 1, 2))) cleanup(const char *fmt, ...) { }
  14527. _ACEOF
  14528. if ac_fn_c_try_compile "$LINENO"; then :
  14529. $as_echo "@%:@define HAVE_ATTRIBUTE_PRINTF 1" >>confdefs.h
  14530. fi
  14531. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14533. /* end confdefs.h. */
  14534. static void __attribute__((unused)) cleanup(void) { }
  14535. _ACEOF
  14536. if ac_fn_c_try_compile "$LINENO"; then :
  14537. $as_echo "@%:@define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h
  14538. fi
  14539. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14541. /* end confdefs.h. */
  14542. static void __attribute__((used)) cleanup(void) { }
  14543. _ACEOF
  14544. if ac_fn_c_try_compile "$LINENO"; then :
  14545. $as_echo "@%:@define HAVE_ATTRIBUTE_USED 1" >>confdefs.h
  14546. fi
  14547. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14549. /* end confdefs.h. */
  14550. int main(void) { return __builtin_constant_p(1) ? 0 : 1; }
  14551. _ACEOF
  14552. if ac_fn_c_try_link "$LINENO"; then :
  14553. $as_echo "@%:@define HAVE_BUILTIN_CONSTANT_P 1" >>confdefs.h
  14554. fi
  14555. rm -f core conftest.err conftest.$ac_objext \
  14556. conftest$ac_exeext conftest.$ac_ext
  14557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14558. /* end confdefs.h. */
  14559. int main(void) { return __builtin_types_compatible_p(char *, int) ? 1 : 0; }
  14560. _ACEOF
  14561. if ac_fn_c_try_link "$LINENO"; then :
  14562. $as_echo "@%:@define HAVE_BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h
  14563. fi
  14564. rm -f core conftest.err conftest.$ac_objext \
  14565. conftest$ac_exeext conftest.$ac_ext
  14566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14567. /* end confdefs.h. */
  14568. static int __attribute__((warn_unused_result)) func(int x) { return x; }
  14569. _ACEOF
  14570. if ac_fn_c_try_compile "$LINENO"; then :
  14571. $as_echo "@%:@define HAVE_WARN_UNUSED_RESULT 1" >>confdefs.h
  14572. fi
  14573. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14574. if test "x$prefix" = xNONE; then
  14575. prefix=/usr/local
  14576. fi
  14577. cat >>confdefs.h <<_ACEOF
  14578. @%:@define CGMINER_PREFIX "$prefix/bin"
  14579. _ACEOF
  14580. ac_config_files="$ac_config_files Makefile compat/Makefile ccan/Makefile lib/Makefile "
  14581. cat >confcache <<\_ACEOF
  14582. # This file is a shell script that caches the results of configure
  14583. # tests run on this system so they can be shared between configure
  14584. # scripts and configure runs, see configure's option --config-cache.
  14585. # It is not useful on other systems. If it contains results you don't
  14586. # want to keep, you may remove or edit it.
  14587. #
  14588. # config.status only pays attention to the cache file if you give it
  14589. # the --recheck option to rerun configure.
  14590. #
  14591. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14592. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14593. # following values.
  14594. _ACEOF
  14595. # The following way of writing the cache mishandles newlines in values,
  14596. # but we know of no workaround that is simple, portable, and efficient.
  14597. # So, we kill variables containing newlines.
  14598. # Ultrix sh set writes to stderr and can't be redirected directly,
  14599. # and sets the high bit in the cache file unless we assign to the vars.
  14600. (
  14601. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14602. eval ac_val=\$$ac_var
  14603. case $ac_val in #(
  14604. *${as_nl}*)
  14605. case $ac_var in #(
  14606. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14607. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14608. esac
  14609. case $ac_var in #(
  14610. _ | IFS | as_nl) ;; #(
  14611. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14612. *) { eval $ac_var=; unset $ac_var;} ;;
  14613. esac ;;
  14614. esac
  14615. done
  14616. (set) 2>&1 |
  14617. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14618. *${as_nl}ac_space=\ *)
  14619. # `set' does not quote correctly, so add quotes: double-quote
  14620. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14621. sed -n \
  14622. "s/'/'\\\\''/g;
  14623. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14624. ;; #(
  14625. *)
  14626. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14627. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14628. ;;
  14629. esac |
  14630. sort
  14631. ) |
  14632. sed '
  14633. /^ac_cv_env_/b end
  14634. t clear
  14635. :clear
  14636. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14637. t end
  14638. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14639. :end' >>confcache
  14640. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14641. if test -w "$cache_file"; then
  14642. if test "x$cache_file" != "x/dev/null"; then
  14643. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14644. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14645. if test ! -f "$cache_file" || test -h "$cache_file"; then
  14646. cat confcache >"$cache_file"
  14647. else
  14648. case $cache_file in #(
  14649. */* | ?:*)
  14650. mv -f confcache "$cache_file"$$ &&
  14651. mv -f "$cache_file"$$ "$cache_file" ;; #(
  14652. *)
  14653. mv -f confcache "$cache_file" ;;
  14654. esac
  14655. fi
  14656. fi
  14657. else
  14658. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14659. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14660. fi
  14661. fi
  14662. rm -f confcache
  14663. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14664. # Let make expand exec_prefix.
  14665. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14666. DEFS=-DHAVE_CONFIG_H
  14667. ac_libobjs=
  14668. ac_ltlibobjs=
  14669. U=
  14670. for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
  14671. # 1. Remove the extension, and $U if already installed.
  14672. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14673. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14674. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14675. # will be set to the directory where LIBOBJS objects are built.
  14676. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14677. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14678. done
  14679. LIB@&t@OBJS=$ac_libobjs
  14680. LTLIBOBJS=$ac_ltlibobjs
  14681. if test -n "$EXEEXT"; then
  14682. am__EXEEXT_TRUE=
  14683. am__EXEEXT_FALSE='#'
  14684. else
  14685. am__EXEEXT_TRUE='#'
  14686. am__EXEEXT_FALSE=
  14687. fi
  14688. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14689. as_fn_error $? "conditional \"AMDEP\" was never defined.
  14690. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14691. fi
  14692. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14693. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14694. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14695. fi
  14696. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  14697. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  14698. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14699. fi
  14700. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14701. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14702. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14703. fi
  14704. if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
  14705. as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
  14706. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14707. fi
  14708. if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
  14709. as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
  14710. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14711. fi
  14712. if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
  14713. as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
  14714. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14715. fi
  14716. gl_libobjs=
  14717. gl_ltlibobjs=
  14718. if test -n "$gl_LIBOBJS"; then
  14719. # Remove the extension.
  14720. sed_drop_objext='s/\.o$//;s/\.obj$//'
  14721. for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
  14722. gl_libobjs="$gl_libobjs $i.$ac_objext"
  14723. gl_ltlibobjs="$gl_ltlibobjs $i.lo"
  14724. done
  14725. fi
  14726. gl_LIBOBJS=$gl_libobjs
  14727. gl_LTLIBOBJS=$gl_ltlibobjs
  14728. gltests_libobjs=
  14729. gltests_ltlibobjs=
  14730. if test -n "$gltests_LIBOBJS"; then
  14731. # Remove the extension.
  14732. sed_drop_objext='s/\.o$//;s/\.obj$//'
  14733. for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
  14734. gltests_libobjs="$gltests_libobjs $i.$ac_objext"
  14735. gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
  14736. done
  14737. fi
  14738. gltests_LIBOBJS=$gltests_libobjs
  14739. gltests_LTLIBOBJS=$gltests_ltlibobjs
  14740. if test -z "${HAS_SCRYPT_TRUE}" && test -z "${HAS_SCRYPT_FALSE}"; then
  14741. as_fn_error $? "conditional \"HAS_SCRYPT\" was never defined.
  14742. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14743. fi
  14744. if test -z "${HAS_ANT_S1_TRUE}" && test -z "${HAS_ANT_S1_FALSE}"; then
  14745. as_fn_error $? "conditional \"HAS_ANT_S1\" was never defined.
  14746. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14747. fi
  14748. if test -z "${HAS_ANT_S2_TRUE}" && test -z "${HAS_ANT_S2_FALSE}"; then
  14749. as_fn_error $? "conditional \"HAS_ANT_S2\" was never defined.
  14750. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14751. fi
  14752. if test -z "${HAS_AVALON_TRUE}" && test -z "${HAS_AVALON_FALSE}"; then
  14753. as_fn_error $? "conditional \"HAS_AVALON\" was never defined.
  14754. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14755. fi
  14756. if test -z "${HAS_BAB_TRUE}" && test -z "${HAS_BAB_FALSE}"; then
  14757. as_fn_error $? "conditional \"HAS_BAB\" was never defined.
  14758. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14759. fi
  14760. if test -z "${HAS_BFLSC_TRUE}" && test -z "${HAS_BFLSC_FALSE}"; then
  14761. as_fn_error $? "conditional \"HAS_BFLSC\" was never defined.
  14762. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14763. fi
  14764. if test -z "${HAS_BITFORCE_TRUE}" && test -z "${HAS_BITFORCE_FALSE}"; then
  14765. as_fn_error $? "conditional \"HAS_BITFORCE\" was never defined.
  14766. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14767. fi
  14768. if test -z "${HAS_BITFURY_TRUE}" && test -z "${HAS_BITFURY_FALSE}"; then
  14769. as_fn_error $? "conditional \"HAS_BITFURY\" was never defined.
  14770. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14771. fi
  14772. if test -z "${HAS_COINTERRA_TRUE}" && test -z "${HAS_COINTERRA_FALSE}"; then
  14773. as_fn_error $? "conditional \"HAS_COINTERRA\" was never defined.
  14774. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14775. fi
  14776. if test -z "${HAS_BITMINE_A1_TRUE}" && test -z "${HAS_BITMINE_A1_FALSE}"; then
  14777. as_fn_error $? "conditional \"HAS_BITMINE_A1\" was never defined.
  14778. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14779. fi
  14780. if test -z "${HAS_DRILLBIT_TRUE}" && test -z "${HAS_DRILLBIT_FALSE}"; then
  14781. as_fn_error $? "conditional \"HAS_DRILLBIT\" was never defined.
  14782. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14783. fi
  14784. if test -z "${HAS_HASHFAST_TRUE}" && test -z "${HAS_HASHFAST_FALSE}"; then
  14785. as_fn_error $? "conditional \"HAS_HASHFAST\" was never defined.
  14786. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14787. fi
  14788. if test -z "${HAS_ICARUS_TRUE}" && test -z "${HAS_ICARUS_FALSE}"; then
  14789. as_fn_error $? "conditional \"HAS_ICARUS\" was never defined.
  14790. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14791. fi
  14792. if test -z "${HAS_KLONDIKE_TRUE}" && test -z "${HAS_KLONDIKE_FALSE}"; then
  14793. as_fn_error $? "conditional \"HAS_KLONDIKE\" was never defined.
  14794. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14795. fi
  14796. if test -z "${HAS_KNC_TRUE}" && test -z "${HAS_KNC_FALSE}"; then
  14797. as_fn_error $? "conditional \"HAS_KNC\" was never defined.
  14798. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14799. fi
  14800. if test -z "${HAS_AVALON2_TRUE}" && test -z "${HAS_AVALON2_FALSE}"; then
  14801. as_fn_error $? "conditional \"HAS_AVALON2\" was never defined.
  14802. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14803. fi
  14804. if test -z "${HAS_MINION_TRUE}" && test -z "${HAS_MINION_FALSE}"; then
  14805. as_fn_error $? "conditional \"HAS_MINION\" was never defined.
  14806. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14807. fi
  14808. if test -z "${HAS_MODMINER_TRUE}" && test -z "${HAS_MODMINER_FALSE}"; then
  14809. as_fn_error $? "conditional \"HAS_MODMINER\" was never defined.
  14810. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14811. fi
  14812. if test -z "${HAS_SPONDOOLIES_TRUE}" && test -z "${HAS_SPONDOOLIES_FALSE}"; then
  14813. as_fn_error $? "conditional \"HAS_SPONDOOLIES\" was never defined.
  14814. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14815. fi
  14816. if test -z "${HAS_GRIDSEED_TRUE}" && test -z "${HAS_GRIDSEED_FALSE}"; then
  14817. as_fn_error $? "conditional \"HAS_GRIDSEED\" was never defined.
  14818. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14819. fi
  14820. if test -z "${HAS_ZEUS_TRUE}" && test -z "${HAS_ZEUS_FALSE}"; then
  14821. as_fn_error $? "conditional \"HAS_ZEUS\" was never defined.
  14822. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14823. fi
  14824. if test -z "${HAS_LKETC_TRUE}" && test -z "${HAS_LKETC_FALSE}"; then
  14825. as_fn_error $? "conditional \"HAS_LKETC\" was never defined.
  14826. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14827. fi
  14828. if test -z "${NEED_FPGAUTILS_TRUE}" && test -z "${NEED_FPGAUTILS_FALSE}"; then
  14829. as_fn_error $? "conditional \"NEED_FPGAUTILS\" was never defined.
  14830. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14831. fi
  14832. if test -z "${WANT_USBUTILS_TRUE}" && test -z "${WANT_USBUTILS_FALSE}"; then
  14833. as_fn_error $? "conditional \"WANT_USBUTILS\" was never defined.
  14834. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14835. fi
  14836. if test -z "${WANT_LIBBITFURY_TRUE}" && test -z "${WANT_LIBBITFURY_FALSE}"; then
  14837. as_fn_error $? "conditional \"WANT_LIBBITFURY\" was never defined.
  14838. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14839. fi
  14840. if test -z "${HAVE_CURSES_TRUE}" && test -z "${HAVE_CURSES_FALSE}"; then
  14841. as_fn_error $? "conditional \"HAVE_CURSES\" was never defined.
  14842. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14843. fi
  14844. if test -z "${HAVE_WINDOWS_TRUE}" && test -z "${HAVE_WINDOWS_FALSE}"; then
  14845. as_fn_error $? "conditional \"HAVE_WINDOWS\" was never defined.
  14846. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14847. fi
  14848. if test -z "${HAVE_x86_64_TRUE}" && test -z "${HAVE_x86_64_FALSE}"; then
  14849. as_fn_error $? "conditional \"HAVE_x86_64\" was never defined.
  14850. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14851. fi
  14852. if test -z "${WANT_STATIC_LIBUSB_TRUE}" && test -z "${WANT_STATIC_LIBUSB_FALSE}"; then
  14853. as_fn_error $? "conditional \"WANT_STATIC_LIBUSB\" was never defined.
  14854. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14855. fi
  14856. : "${CONFIG_STATUS=./config.status}"
  14857. ac_write_fail=0
  14858. ac_clean_files_save=$ac_clean_files
  14859. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14860. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14861. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14862. as_write_fail=0
  14863. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14864. #! $SHELL
  14865. # Generated by $as_me.
  14866. # Run this file to recreate the current configuration.
  14867. # Compiler output produced by configure, useful for debugging
  14868. # configure, is in config.log if it exists.
  14869. debug=false
  14870. ac_cs_recheck=false
  14871. ac_cs_silent=false
  14872. SHELL=\${CONFIG_SHELL-$SHELL}
  14873. export SHELL
  14874. _ASEOF
  14875. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14876. ## -------------------- ##
  14877. ## M4sh Initialization. ##
  14878. ## -------------------- ##
  14879. # Be more Bourne compatible
  14880. DUALCASE=1; export DUALCASE # for MKS sh
  14881. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14882. emulate sh
  14883. NULLCMD=:
  14884. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14885. # is contrary to our usage. Disable this feature.
  14886. alias -g '${1+"$@"}'='"$@"'
  14887. setopt NO_GLOB_SUBST
  14888. else
  14889. case `(set -o) 2>/dev/null` in @%:@(
  14890. *posix*) :
  14891. set -o posix ;; @%:@(
  14892. *) :
  14893. ;;
  14894. esac
  14895. fi
  14896. as_nl='
  14897. '
  14898. export as_nl
  14899. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14900. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14901. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14902. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14903. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14904. # but without wasting forks for bash or zsh.
  14905. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14906. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14907. as_echo='print -r --'
  14908. as_echo_n='print -rn --'
  14909. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14910. as_echo='printf %s\n'
  14911. as_echo_n='printf %s'
  14912. else
  14913. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14914. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14915. as_echo_n='/usr/ucb/echo -n'
  14916. else
  14917. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14918. as_echo_n_body='eval
  14919. arg=$1;
  14920. case $arg in @%:@(
  14921. *"$as_nl"*)
  14922. expr "X$arg" : "X\\(.*\\)$as_nl";
  14923. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14924. esac;
  14925. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14926. '
  14927. export as_echo_n_body
  14928. as_echo_n='sh -c $as_echo_n_body as_echo'
  14929. fi
  14930. export as_echo_body
  14931. as_echo='sh -c $as_echo_body as_echo'
  14932. fi
  14933. # The user is always right.
  14934. if test "${PATH_SEPARATOR+set}" != set; then
  14935. PATH_SEPARATOR=:
  14936. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14937. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14938. PATH_SEPARATOR=';'
  14939. }
  14940. fi
  14941. # IFS
  14942. # We need space, tab and new line, in precisely that order. Quoting is
  14943. # there to prevent editors from complaining about space-tab.
  14944. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14945. # splitting by setting IFS to empty value.)
  14946. IFS=" "" $as_nl"
  14947. # Find who we are. Look in the path if we contain no directory separator.
  14948. as_myself=
  14949. case $0 in @%:@((
  14950. *[\\/]* ) as_myself=$0 ;;
  14951. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14952. for as_dir in $PATH
  14953. do
  14954. IFS=$as_save_IFS
  14955. test -z "$as_dir" && as_dir=.
  14956. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14957. done
  14958. IFS=$as_save_IFS
  14959. ;;
  14960. esac
  14961. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14962. # in which case we are not to be found in the path.
  14963. if test "x$as_myself" = x; then
  14964. as_myself=$0
  14965. fi
  14966. if test ! -f "$as_myself"; then
  14967. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14968. exit 1
  14969. fi
  14970. # Unset variables that we do not need and which cause bugs (e.g. in
  14971. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14972. # suppresses any "Segmentation fault" message there. '((' could
  14973. # trigger a bug in pdksh 5.2.14.
  14974. for as_var in BASH_ENV ENV MAIL MAILPATH
  14975. do eval test x\${$as_var+set} = xset \
  14976. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14977. done
  14978. PS1='$ '
  14979. PS2='> '
  14980. PS4='+ '
  14981. # NLS nuisances.
  14982. LC_ALL=C
  14983. export LC_ALL
  14984. LANGUAGE=C
  14985. export LANGUAGE
  14986. # CDPATH.
  14987. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14988. @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
  14989. @%:@ ----------------------------------------
  14990. @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14991. @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14992. @%:@ script with STATUS, using 1 if that was 0.
  14993. as_fn_error ()
  14994. {
  14995. as_status=$1; test $as_status -eq 0 && as_status=1
  14996. if test "$4"; then
  14997. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14998. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14999. fi
  15000. $as_echo "$as_me: error: $2" >&2
  15001. as_fn_exit $as_status
  15002. } @%:@ as_fn_error
  15003. @%:@ as_fn_set_status STATUS
  15004. @%:@ -----------------------
  15005. @%:@ Set @S|@? to STATUS, without forking.
  15006. as_fn_set_status ()
  15007. {
  15008. return $1
  15009. } @%:@ as_fn_set_status
  15010. @%:@ as_fn_exit STATUS
  15011. @%:@ -----------------
  15012. @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  15013. as_fn_exit ()
  15014. {
  15015. set +e
  15016. as_fn_set_status $1
  15017. exit $1
  15018. } @%:@ as_fn_exit
  15019. @%:@ as_fn_unset VAR
  15020. @%:@ ---------------
  15021. @%:@ Portably unset VAR.
  15022. as_fn_unset ()
  15023. {
  15024. { eval $1=; unset $1;}
  15025. }
  15026. as_unset=as_fn_unset
  15027. @%:@ as_fn_append VAR VALUE
  15028. @%:@ ----------------------
  15029. @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
  15030. @%:@ advantage of any shell optimizations that allow amortized linear growth over
  15031. @%:@ repeated appends, instead of the typical quadratic growth present in naive
  15032. @%:@ implementations.
  15033. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  15034. eval 'as_fn_append ()
  15035. {
  15036. eval $1+=\$2
  15037. }'
  15038. else
  15039. as_fn_append ()
  15040. {
  15041. eval $1=\$$1\$2
  15042. }
  15043. fi # as_fn_append
  15044. @%:@ as_fn_arith ARG...
  15045. @%:@ ------------------
  15046. @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
  15047. @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
  15048. @%:@ must be portable across @S|@(()) and expr.
  15049. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  15050. eval 'as_fn_arith ()
  15051. {
  15052. as_val=$(( $* ))
  15053. }'
  15054. else
  15055. as_fn_arith ()
  15056. {
  15057. as_val=`expr "$@" || test $? -eq 1`
  15058. }
  15059. fi # as_fn_arith
  15060. if expr a : '\(a\)' >/dev/null 2>&1 &&
  15061. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15062. as_expr=expr
  15063. else
  15064. as_expr=false
  15065. fi
  15066. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  15067. as_basename=basename
  15068. else
  15069. as_basename=false
  15070. fi
  15071. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  15072. as_dirname=dirname
  15073. else
  15074. as_dirname=false
  15075. fi
  15076. as_me=`$as_basename -- "$0" ||
  15077. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  15078. X"$0" : 'X\(//\)$' \| \
  15079. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  15080. $as_echo X/"$0" |
  15081. sed '/^.*\/\([^/][^/]*\)\/*$/{
  15082. s//\1/
  15083. q
  15084. }
  15085. /^X\/\(\/\/\)$/{
  15086. s//\1/
  15087. q
  15088. }
  15089. /^X\/\(\/\).*/{
  15090. s//\1/
  15091. q
  15092. }
  15093. s/.*/./; q'`
  15094. # Avoid depending upon Character Ranges.
  15095. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15096. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15097. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15098. as_cr_digits='0123456789'
  15099. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15100. ECHO_C= ECHO_N= ECHO_T=
  15101. case `echo -n x` in @%:@(((((
  15102. -n*)
  15103. case `echo 'xy\c'` in
  15104. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  15105. xy) ECHO_C='\c';;
  15106. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  15107. ECHO_T=' ';;
  15108. esac;;
  15109. *)
  15110. ECHO_N='-n';;
  15111. esac
  15112. rm -f conf$$ conf$$.exe conf$$.file
  15113. if test -d conf$$.dir; then
  15114. rm -f conf$$.dir/conf$$.file
  15115. else
  15116. rm -f conf$$.dir
  15117. mkdir conf$$.dir 2>/dev/null
  15118. fi
  15119. if (echo >conf$$.file) 2>/dev/null; then
  15120. if ln -s conf$$.file conf$$ 2>/dev/null; then
  15121. as_ln_s='ln -s'
  15122. # ... but there are two gotchas:
  15123. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  15124. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  15125. # In both cases, we have to default to `cp -p'.
  15126. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  15127. as_ln_s='cp -p'
  15128. elif ln conf$$.file conf$$ 2>/dev/null; then
  15129. as_ln_s=ln
  15130. else
  15131. as_ln_s='cp -p'
  15132. fi
  15133. else
  15134. as_ln_s='cp -p'
  15135. fi
  15136. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  15137. rmdir conf$$.dir 2>/dev/null
  15138. @%:@ as_fn_mkdir_p
  15139. @%:@ -------------
  15140. @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
  15141. as_fn_mkdir_p ()
  15142. {
  15143. case $as_dir in #(
  15144. -*) as_dir=./$as_dir;;
  15145. esac
  15146. test -d "$as_dir" || eval $as_mkdir_p || {
  15147. as_dirs=
  15148. while :; do
  15149. case $as_dir in #(
  15150. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  15151. *) as_qdir=$as_dir;;
  15152. esac
  15153. as_dirs="'$as_qdir' $as_dirs"
  15154. as_dir=`$as_dirname -- "$as_dir" ||
  15155. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15156. X"$as_dir" : 'X\(//\)[^/]' \| \
  15157. X"$as_dir" : 'X\(//\)$' \| \
  15158. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15159. $as_echo X"$as_dir" |
  15160. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15161. s//\1/
  15162. q
  15163. }
  15164. /^X\(\/\/\)[^/].*/{
  15165. s//\1/
  15166. q
  15167. }
  15168. /^X\(\/\/\)$/{
  15169. s//\1/
  15170. q
  15171. }
  15172. /^X\(\/\).*/{
  15173. s//\1/
  15174. q
  15175. }
  15176. s/.*/./; q'`
  15177. test -d "$as_dir" && break
  15178. done
  15179. test -z "$as_dirs" || eval "mkdir $as_dirs"
  15180. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  15181. } @%:@ as_fn_mkdir_p
  15182. if mkdir -p . 2>/dev/null; then
  15183. as_mkdir_p='mkdir -p "$as_dir"'
  15184. else
  15185. test -d ./-p && rmdir ./-p
  15186. as_mkdir_p=false
  15187. fi
  15188. if test -x / >/dev/null 2>&1; then
  15189. as_test_x='test -x'
  15190. else
  15191. if ls -dL / >/dev/null 2>&1; then
  15192. as_ls_L_option=L
  15193. else
  15194. as_ls_L_option=
  15195. fi
  15196. as_test_x='
  15197. eval sh -c '\''
  15198. if test -d "$1"; then
  15199. test -d "$1/.";
  15200. else
  15201. case $1 in @%:@(
  15202. -*)set "./$1";;
  15203. esac;
  15204. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
  15205. ???[sx]*):;;*)false;;esac;fi
  15206. '\'' sh
  15207. '
  15208. fi
  15209. as_executable_p=$as_test_x
  15210. # Sed expression to map a string onto a valid CPP name.
  15211. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  15212. # Sed expression to map a string onto a valid variable name.
  15213. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  15214. exec 6>&1
  15215. ## ----------------------------------- ##
  15216. ## Main body of $CONFIG_STATUS script. ##
  15217. ## ----------------------------------- ##
  15218. _ASEOF
  15219. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  15220. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15221. # Save the log message, to keep $0 and so on meaningful, and to
  15222. # report actual input values of CONFIG_FILES etc. instead of their
  15223. # values after options handling.
  15224. ac_log="
  15225. This file was extended by cgminer $as_me 4.3.5-scrypt.2, which was
  15226. generated by GNU Autoconf 2.68. Invocation command line was
  15227. CONFIG_FILES = $CONFIG_FILES
  15228. CONFIG_HEADERS = $CONFIG_HEADERS
  15229. CONFIG_LINKS = $CONFIG_LINKS
  15230. CONFIG_COMMANDS = $CONFIG_COMMANDS
  15231. $ $0 $@
  15232. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  15233. "
  15234. _ACEOF
  15235. case $ac_config_files in *"
  15236. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  15237. esac
  15238. case $ac_config_headers in *"
  15239. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  15240. esac
  15241. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15242. # Files that config.status was made for.
  15243. config_files="$ac_config_files"
  15244. config_headers="$ac_config_headers"
  15245. config_commands="$ac_config_commands"
  15246. _ACEOF
  15247. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15248. ac_cs_usage="\
  15249. \`$as_me' instantiates files and other configuration actions
  15250. from templates according to the current configuration. Unless the files
  15251. and actions are specified as TAGs, all are instantiated by default.
  15252. Usage: $0 [OPTION]... [TAG]...
  15253. -h, --help print this help, then exit
  15254. -V, --version print version number and configuration settings, then exit
  15255. --config print configuration, then exit
  15256. -q, --quiet, --silent
  15257. do not print progress messages
  15258. -d, --debug don't remove temporary files
  15259. --recheck update $as_me by reconfiguring in the same conditions
  15260. --file=FILE[:TEMPLATE]
  15261. instantiate the configuration file FILE
  15262. --header=FILE[:TEMPLATE]
  15263. instantiate the configuration header FILE
  15264. Configuration files:
  15265. $config_files
  15266. Configuration headers:
  15267. $config_headers
  15268. Configuration commands:
  15269. $config_commands
  15270. Report bugs to <kernel@kolivas.org>."
  15271. _ACEOF
  15272. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15273. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  15274. ac_cs_version="\\
  15275. cgminer config.status 4.3.5-scrypt.2
  15276. configured by $0, generated by GNU Autoconf 2.68,
  15277. with options \\"\$ac_cs_config\\"
  15278. Copyright (C) 2010 Free Software Foundation, Inc.
  15279. This config.status script is free software; the Free Software Foundation
  15280. gives unlimited permission to copy, distribute and modify it."
  15281. ac_pwd='$ac_pwd'
  15282. srcdir='$srcdir'
  15283. INSTALL='$INSTALL'
  15284. MKDIR_P='$MKDIR_P'
  15285. AWK='$AWK'
  15286. test -n "\$AWK" || AWK=awk
  15287. _ACEOF
  15288. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15289. # The default lists apply if the user does not specify any file.
  15290. ac_need_defaults=:
  15291. while test $# != 0
  15292. do
  15293. case $1 in
  15294. --*=?*)
  15295. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15296. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  15297. ac_shift=:
  15298. ;;
  15299. --*=)
  15300. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15301. ac_optarg=
  15302. ac_shift=:
  15303. ;;
  15304. *)
  15305. ac_option=$1
  15306. ac_optarg=$2
  15307. ac_shift=shift
  15308. ;;
  15309. esac
  15310. case $ac_option in
  15311. # Handling of the options.
  15312. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  15313. ac_cs_recheck=: ;;
  15314. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  15315. $as_echo "$ac_cs_version"; exit ;;
  15316. --config | --confi | --conf | --con | --co | --c )
  15317. $as_echo "$ac_cs_config"; exit ;;
  15318. --debug | --debu | --deb | --de | --d | -d )
  15319. debug=: ;;
  15320. --file | --fil | --fi | --f )
  15321. $ac_shift
  15322. case $ac_optarg in
  15323. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15324. '') as_fn_error $? "missing file argument" ;;
  15325. esac
  15326. as_fn_append CONFIG_FILES " '$ac_optarg'"
  15327. ac_need_defaults=false;;
  15328. --header | --heade | --head | --hea )
  15329. $ac_shift
  15330. case $ac_optarg in
  15331. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15332. esac
  15333. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  15334. ac_need_defaults=false;;
  15335. --he | --h)
  15336. # Conflict between --help and --header
  15337. as_fn_error $? "ambiguous option: \`$1'
  15338. Try \`$0 --help' for more information.";;
  15339. --help | --hel | -h )
  15340. $as_echo "$ac_cs_usage"; exit ;;
  15341. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  15342. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  15343. ac_cs_silent=: ;;
  15344. # This is an error.
  15345. -*) as_fn_error $? "unrecognized option: \`$1'
  15346. Try \`$0 --help' for more information." ;;
  15347. *) as_fn_append ac_config_targets " $1"
  15348. ac_need_defaults=false ;;
  15349. esac
  15350. shift
  15351. done
  15352. ac_configure_extra_args=
  15353. if $ac_cs_silent; then
  15354. exec 6>/dev/null
  15355. ac_configure_extra_args="$ac_configure_extra_args --silent"
  15356. fi
  15357. _ACEOF
  15358. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15359. if \$ac_cs_recheck; then
  15360. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  15361. shift
  15362. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  15363. CONFIG_SHELL='$SHELL'
  15364. export CONFIG_SHELL
  15365. exec "\$@"
  15366. fi
  15367. _ACEOF
  15368. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15369. exec 5>>config.log
  15370. {
  15371. echo
  15372. sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
  15373. @%:@@%:@ Running $as_me. @%:@@%:@
  15374. _ASBOX
  15375. $as_echo "$ac_log"
  15376. } >&5
  15377. _ACEOF
  15378. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15379. #
  15380. # INIT-COMMANDS
  15381. #
  15382. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  15383. # The HP-UX ksh and POSIX shell print the target directory to stdout
  15384. # if CDPATH is set.
  15385. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15386. sed_quote_subst='$sed_quote_subst'
  15387. double_quote_subst='$double_quote_subst'
  15388. delay_variable_subst='$delay_variable_subst'
  15389. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  15390. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  15391. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  15392. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  15393. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  15394. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  15395. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  15396. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  15397. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  15398. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  15399. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  15400. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  15401. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  15402. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  15403. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  15404. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  15405. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  15406. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  15407. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  15408. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  15409. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  15410. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  15411. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  15412. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  15413. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  15414. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  15415. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  15416. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  15417. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  15418. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  15419. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  15420. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  15421. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  15422. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  15423. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  15424. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  15425. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  15426. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  15427. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  15428. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  15429. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  15430. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  15431. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  15432. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  15433. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15434. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15435. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  15436. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  15437. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  15438. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  15439. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  15440. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  15441. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  15442. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  15443. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  15444. 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"`'
  15445. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  15446. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  15447. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  15448. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  15449. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  15450. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  15451. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  15452. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  15453. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  15454. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  15455. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  15456. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  15457. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  15458. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  15459. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  15460. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  15461. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  15462. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  15463. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15464. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  15465. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  15466. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  15467. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  15468. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  15469. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  15470. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15471. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  15472. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15473. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  15474. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15475. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  15476. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15477. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15478. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  15479. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  15480. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  15481. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  15482. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  15483. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  15484. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15485. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  15486. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  15487. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  15488. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  15489. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  15490. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  15491. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  15492. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  15493. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  15494. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  15495. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  15496. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15497. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  15498. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  15499. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  15500. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15501. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  15502. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  15503. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  15504. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  15505. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  15506. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15507. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15508. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  15509. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  15510. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  15511. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  15512. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  15513. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  15514. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  15515. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  15516. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  15517. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  15518. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  15519. LTCC='$LTCC'
  15520. LTCFLAGS='$LTCFLAGS'
  15521. compiler='$compiler_DEFAULT'
  15522. # A function that is used when there is no print builtin or printf.
  15523. func_fallback_echo ()
  15524. {
  15525. eval 'cat <<_LTECHO_EOF
  15526. \$1
  15527. _LTECHO_EOF'
  15528. }
  15529. # Quote evaled strings.
  15530. for var in SHELL \
  15531. ECHO \
  15532. SED \
  15533. GREP \
  15534. EGREP \
  15535. FGREP \
  15536. LD \
  15537. NM \
  15538. LN_S \
  15539. lt_SP2NL \
  15540. lt_NL2SP \
  15541. reload_flag \
  15542. OBJDUMP \
  15543. deplibs_check_method \
  15544. file_magic_cmd \
  15545. file_magic_glob \
  15546. want_nocaseglob \
  15547. DLLTOOL \
  15548. sharedlib_from_linklib_cmd \
  15549. AR \
  15550. AR_FLAGS \
  15551. archiver_list_spec \
  15552. STRIP \
  15553. RANLIB \
  15554. CC \
  15555. CFLAGS \
  15556. compiler \
  15557. lt_cv_sys_global_symbol_pipe \
  15558. lt_cv_sys_global_symbol_to_cdecl \
  15559. lt_cv_sys_global_symbol_to_c_name_address \
  15560. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15561. nm_file_list_spec \
  15562. lt_prog_compiler_no_builtin_flag \
  15563. lt_prog_compiler_pic \
  15564. lt_prog_compiler_wl \
  15565. lt_prog_compiler_static \
  15566. lt_cv_prog_compiler_c_o \
  15567. need_locks \
  15568. MANIFEST_TOOL \
  15569. DSYMUTIL \
  15570. NMEDIT \
  15571. LIPO \
  15572. OTOOL \
  15573. OTOOL64 \
  15574. shrext_cmds \
  15575. export_dynamic_flag_spec \
  15576. whole_archive_flag_spec \
  15577. compiler_needs_object \
  15578. with_gnu_ld \
  15579. allow_undefined_flag \
  15580. no_undefined_flag \
  15581. hardcode_libdir_flag_spec \
  15582. hardcode_libdir_flag_spec_ld \
  15583. hardcode_libdir_separator \
  15584. exclude_expsyms \
  15585. include_expsyms \
  15586. file_list_spec \
  15587. variables_saved_for_relink \
  15588. libname_spec \
  15589. library_names_spec \
  15590. soname_spec \
  15591. install_override_mode \
  15592. finish_eval \
  15593. old_striplib \
  15594. striplib; do
  15595. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15596. *[\\\\\\\`\\"\\\$]*)
  15597. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  15598. ;;
  15599. *)
  15600. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15601. ;;
  15602. esac
  15603. done
  15604. # Double-quote double-evaled strings.
  15605. for var in reload_cmds \
  15606. old_postinstall_cmds \
  15607. old_postuninstall_cmds \
  15608. old_archive_cmds \
  15609. extract_expsyms_cmds \
  15610. old_archive_from_new_cmds \
  15611. old_archive_from_expsyms_cmds \
  15612. archive_cmds \
  15613. archive_expsym_cmds \
  15614. module_cmds \
  15615. module_expsym_cmds \
  15616. export_symbols_cmds \
  15617. prelink_cmds \
  15618. postlink_cmds \
  15619. postinstall_cmds \
  15620. postuninstall_cmds \
  15621. finish_cmds \
  15622. sys_lib_search_path_spec \
  15623. sys_lib_dlsearch_path_spec; do
  15624. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15625. *[\\\\\\\`\\"\\\$]*)
  15626. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  15627. ;;
  15628. *)
  15629. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15630. ;;
  15631. esac
  15632. done
  15633. ac_aux_dir='$ac_aux_dir'
  15634. xsi_shell='$xsi_shell'
  15635. lt_shell_append='$lt_shell_append'
  15636. # See if we are running on zsh, and set the options which allow our
  15637. # commands through without removal of \ escapes INIT.
  15638. if test -n "\${ZSH_VERSION+set}" ; then
  15639. setopt NO_GLOB_SUBST
  15640. fi
  15641. PACKAGE='$PACKAGE'
  15642. VERSION='$VERSION'
  15643. TIMESTAMP='$TIMESTAMP'
  15644. RM='$RM'
  15645. ofile='$ofile'
  15646. _ACEOF
  15647. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15648. # Handling of arguments.
  15649. for ac_config_target in $ac_config_targets
  15650. do
  15651. case $ac_config_target in
  15652. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  15653. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15654. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15655. " ") CONFIG_FILES="$CONFIG_FILES " ;;
  15656. "Makefile ") CONFIG_FILES="$CONFIG_FILES Makefile " ;;
  15657. "compat/Makefile ") CONFIG_FILES="$CONFIG_FILES compat/Makefile " ;;
  15658. "ccan/Makefile ") CONFIG_FILES="$CONFIG_FILES ccan/Makefile " ;;
  15659. "lib/Makefile ") CONFIG_FILES="$CONFIG_FILES lib/Makefile " ;;
  15660. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
  15661. esac
  15662. done
  15663. # If the user did not use the arguments to specify the items to instantiate,
  15664. # then the envvar interface is used. Set only those that are not.
  15665. # We use the long form for the default assignment because of an extremely
  15666. # bizarre bug on SunOS 4.1.3.
  15667. if $ac_need_defaults; then
  15668. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15669. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  15670. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15671. fi
  15672. # Have a temporary directory for convenience. Make it in the build tree
  15673. # simply because there is no reason against having it here, and in addition,
  15674. # creating and moving files from /tmp can sometimes cause problems.
  15675. # Hook for its removal unless debugging.
  15676. # Note that there is a small window in which the directory will not be cleaned:
  15677. # after its creation but before its name has been assigned to `$tmp'.
  15678. $debug ||
  15679. {
  15680. tmp= ac_tmp=
  15681. trap 'exit_status=$?
  15682. : "${ac_tmp:=$tmp}"
  15683. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  15684. ' 0
  15685. trap 'as_fn_exit 1' 1 2 13 15
  15686. }
  15687. # Create a (secure) tmp directory for tmp files.
  15688. {
  15689. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15690. test -d "$tmp"
  15691. } ||
  15692. {
  15693. tmp=./conf$$-$RANDOM
  15694. (umask 077 && mkdir "$tmp")
  15695. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15696. ac_tmp=$tmp
  15697. # Set up the scripts for CONFIG_FILES section.
  15698. # No need to generate them if there are no CONFIG_FILES.
  15699. # This happens for instance with `./config.status config.h'.
  15700. if test -n "$CONFIG_FILES"; then
  15701. ac_cr=`echo X | tr X '\015'`
  15702. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15703. # But we know of no other shell where ac_cr would be empty at this
  15704. # point, so we can use a bashism as a fallback.
  15705. if test "x$ac_cr" = x; then
  15706. eval ac_cr=\$\'\\r\'
  15707. fi
  15708. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15709. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15710. ac_cs_awk_cr='\\r'
  15711. else
  15712. ac_cs_awk_cr=$ac_cr
  15713. fi
  15714. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  15715. _ACEOF
  15716. {
  15717. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15718. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15719. echo "_ACEOF"
  15720. } >conf$$subs.sh ||
  15721. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15722. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15723. ac_delim='%!_!# '
  15724. for ac_last_try in false false false false false :; do
  15725. . ./conf$$subs.sh ||
  15726. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15727. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15728. if test $ac_delim_n = $ac_delim_num; then
  15729. break
  15730. elif $ac_last_try; then
  15731. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15732. else
  15733. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15734. fi
  15735. done
  15736. rm -f conf$$subs.sh
  15737. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15738. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  15739. _ACEOF
  15740. sed -n '
  15741. h
  15742. s/^/S["/; s/!.*/"]=/
  15743. p
  15744. g
  15745. s/^[^!]*!//
  15746. :repl
  15747. t repl
  15748. s/'"$ac_delim"'$//
  15749. t delim
  15750. :nl
  15751. h
  15752. s/\(.\{148\}\)..*/\1/
  15753. t more1
  15754. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15755. p
  15756. n
  15757. b repl
  15758. :more1
  15759. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15760. p
  15761. g
  15762. s/.\{148\}//
  15763. t nl
  15764. :delim
  15765. h
  15766. s/\(.\{148\}\)..*/\1/
  15767. t more2
  15768. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15769. p
  15770. b
  15771. :more2
  15772. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15773. p
  15774. g
  15775. s/.\{148\}//
  15776. t delim
  15777. ' <conf$$subs.awk | sed '
  15778. /^[^""]/{
  15779. N
  15780. s/\n//
  15781. }
  15782. ' >>$CONFIG_STATUS || ac_write_fail=1
  15783. rm -f conf$$subs.awk
  15784. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15785. _ACAWK
  15786. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  15787. for (key in S) S_is_set[key] = 1
  15788. FS = ""
  15789. }
  15790. {
  15791. line = $ 0
  15792. nfields = split(line, field, "@")
  15793. substed = 0
  15794. len = length(field[1])
  15795. for (i = 2; i < nfields; i++) {
  15796. key = field[i]
  15797. keylen = length(key)
  15798. if (S_is_set[key]) {
  15799. value = S[key]
  15800. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15801. len += length(value) + length(field[++i])
  15802. substed = 1
  15803. } else
  15804. len += 1 + keylen
  15805. }
  15806. print line
  15807. }
  15808. _ACAWK
  15809. _ACEOF
  15810. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15811. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15812. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15813. else
  15814. cat
  15815. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  15816. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15817. _ACEOF
  15818. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15819. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15820. # trailing colons and then remove the whole line if VPATH becomes empty
  15821. # (actually we leave an empty line to preserve line numbers).
  15822. if test "x$srcdir" = x.; then
  15823. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  15824. h
  15825. s///
  15826. s/^/:/
  15827. s/[ ]*$/:/
  15828. s/:\$(srcdir):/:/g
  15829. s/:\${srcdir}:/:/g
  15830. s/:@srcdir@:/:/g
  15831. s/^:*//
  15832. s/:*$//
  15833. x
  15834. s/\(=[ ]*\).*/\1/
  15835. G
  15836. s/\n//
  15837. s/^[^=]*=[ ]*$//
  15838. }'
  15839. fi
  15840. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15841. fi # test -n "$CONFIG_FILES"
  15842. # Set up the scripts for CONFIG_HEADERS section.
  15843. # No need to generate them if there are no CONFIG_HEADERS.
  15844. # This happens for instance with `./config.status Makefile'.
  15845. if test -n "$CONFIG_HEADERS"; then
  15846. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  15847. BEGIN {
  15848. _ACEOF
  15849. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15850. # here-document in config.status, that substitutes the proper values into
  15851. # config.h.in to produce config.h.
  15852. # Create a delimiter string that does not exist in confdefs.h, to ease
  15853. # handling of long lines.
  15854. ac_delim='%!_!# '
  15855. for ac_last_try in false false :; do
  15856. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  15857. if test -z "$ac_tt"; then
  15858. break
  15859. elif $ac_last_try; then
  15860. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  15861. else
  15862. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15863. fi
  15864. done
  15865. # For the awk script, D is an array of macro values keyed by name,
  15866. # likewise P contains macro parameters if any. Preserve backslash
  15867. # newline sequences.
  15868. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15869. sed -n '
  15870. s/.\{148\}/&'"$ac_delim"'/g
  15871. t rset
  15872. :rset
  15873. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15874. t def
  15875. d
  15876. :def
  15877. s/\\$//
  15878. t bsnl
  15879. s/["\\]/\\&/g
  15880. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15881. D["\1"]=" \3"/p
  15882. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15883. d
  15884. :bsnl
  15885. s/["\\]/\\&/g
  15886. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15887. D["\1"]=" \3\\\\\\n"\\/p
  15888. t cont
  15889. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15890. t cont
  15891. d
  15892. :cont
  15893. n
  15894. s/.\{148\}/&'"$ac_delim"'/g
  15895. t clear
  15896. :clear
  15897. s/\\$//
  15898. t bsnlc
  15899. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15900. d
  15901. :bsnlc
  15902. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15903. b cont
  15904. ' <confdefs.h | sed '
  15905. s/'"$ac_delim"'/"\\\
  15906. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15907. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15908. for (key in D) D_is_set[key] = 1
  15909. FS = ""
  15910. }
  15911. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15912. line = \$ 0
  15913. split(line, arg, " ")
  15914. if (arg[1] == "#") {
  15915. defundef = arg[2]
  15916. mac1 = arg[3]
  15917. } else {
  15918. defundef = substr(arg[1], 2)
  15919. mac1 = arg[2]
  15920. }
  15921. split(mac1, mac2, "(") #)
  15922. macro = mac2[1]
  15923. prefix = substr(line, 1, index(line, defundef) - 1)
  15924. if (D_is_set[macro]) {
  15925. # Preserve the white space surrounding the "#".
  15926. print prefix "define", macro P[macro] D[macro]
  15927. next
  15928. } else {
  15929. # Replace #undef with comments. This is necessary, for example,
  15930. # in the case of _POSIX_SOURCE, which is predefined and required
  15931. # on some systems where configure will not decide to define it.
  15932. if (defundef == "undef") {
  15933. print "/*", prefix defundef, macro, "*/"
  15934. next
  15935. }
  15936. }
  15937. }
  15938. { print }
  15939. _ACAWK
  15940. _ACEOF
  15941. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15942. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15943. fi # test -n "$CONFIG_HEADERS"
  15944. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15945. shift
  15946. for ac_tag
  15947. do
  15948. case $ac_tag in
  15949. :[FHLC]) ac_mode=$ac_tag; continue;;
  15950. esac
  15951. case $ac_mode$ac_tag in
  15952. :[FHL]*:*);;
  15953. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
  15954. :[FH]-) ac_tag=-:-;;
  15955. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15956. esac
  15957. ac_save_IFS=$IFS
  15958. IFS=:
  15959. set x $ac_tag
  15960. IFS=$ac_save_IFS
  15961. shift
  15962. ac_file=$1
  15963. shift
  15964. case $ac_mode in
  15965. :L) ac_source=$1;;
  15966. :[FH])
  15967. ac_file_inputs=
  15968. for ac_f
  15969. do
  15970. case $ac_f in
  15971. -) ac_f="$ac_tmp/stdin";;
  15972. *) # Look for the file first in the build tree, then in the source tree
  15973. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15974. # because $ac_f cannot contain `:'.
  15975. test -f "$ac_f" ||
  15976. case $ac_f in
  15977. [\\/$]*) false;;
  15978. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15979. esac ||
  15980. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
  15981. esac
  15982. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15983. as_fn_append ac_file_inputs " '$ac_f'"
  15984. done
  15985. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15986. # use $as_me), people would be surprised to read:
  15987. # /* config.h. Generated by config.status. */
  15988. configure_input='Generated from '`
  15989. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15990. `' by configure.'
  15991. if test x"$ac_file" != x-; then
  15992. configure_input="$ac_file. $configure_input"
  15993. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15994. $as_echo "$as_me: creating $ac_file" >&6;}
  15995. fi
  15996. # Neutralize special characters interpreted by sed in replacement strings.
  15997. case $configure_input in #(
  15998. *\&* | *\|* | *\\* )
  15999. ac_sed_conf_input=`$as_echo "$configure_input" |
  16000. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  16001. *) ac_sed_conf_input=$configure_input;;
  16002. esac
  16003. case $ac_tag in
  16004. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  16005. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  16006. esac
  16007. ;;
  16008. esac
  16009. ac_dir=`$as_dirname -- "$ac_file" ||
  16010. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16011. X"$ac_file" : 'X\(//\)[^/]' \| \
  16012. X"$ac_file" : 'X\(//\)$' \| \
  16013. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  16014. $as_echo X"$ac_file" |
  16015. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16016. s//\1/
  16017. q
  16018. }
  16019. /^X\(\/\/\)[^/].*/{
  16020. s//\1/
  16021. q
  16022. }
  16023. /^X\(\/\/\)$/{
  16024. s//\1/
  16025. q
  16026. }
  16027. /^X\(\/\).*/{
  16028. s//\1/
  16029. q
  16030. }
  16031. s/.*/./; q'`
  16032. as_dir="$ac_dir"; as_fn_mkdir_p
  16033. ac_builddir=.
  16034. case "$ac_dir" in
  16035. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16036. *)
  16037. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16038. # A ".." for each directory in $ac_dir_suffix.
  16039. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16040. case $ac_top_builddir_sub in
  16041. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16042. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16043. esac ;;
  16044. esac
  16045. ac_abs_top_builddir=$ac_pwd
  16046. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  16047. # for backward compatibility:
  16048. ac_top_builddir=$ac_top_build_prefix
  16049. case $srcdir in
  16050. .) # We are building in place.
  16051. ac_srcdir=.
  16052. ac_top_srcdir=$ac_top_builddir_sub
  16053. ac_abs_top_srcdir=$ac_pwd ;;
  16054. [\\/]* | ?:[\\/]* ) # Absolute name.
  16055. ac_srcdir=$srcdir$ac_dir_suffix;
  16056. ac_top_srcdir=$srcdir
  16057. ac_abs_top_srcdir=$srcdir ;;
  16058. *) # Relative name.
  16059. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  16060. ac_top_srcdir=$ac_top_build_prefix$srcdir
  16061. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  16062. esac
  16063. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16064. case $ac_mode in
  16065. :F)
  16066. #
  16067. # CONFIG_FILE
  16068. #
  16069. case $INSTALL in
  16070. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  16071. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  16072. esac
  16073. ac_MKDIR_P=$MKDIR_P
  16074. case $MKDIR_P in
  16075. [\\/$]* | ?:[\\/]* ) ;;
  16076. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  16077. esac
  16078. _ACEOF
  16079. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16080. # If the template does not know about datarootdir, expand it.
  16081. # FIXME: This hack should be removed a few years after 2.60.
  16082. ac_datarootdir_hack=; ac_datarootdir_seen=
  16083. ac_sed_dataroot='
  16084. /datarootdir/ {
  16085. p
  16086. q
  16087. }
  16088. /@datadir@/p
  16089. /@docdir@/p
  16090. /@infodir@/p
  16091. /@localedir@/p
  16092. /@mandir@/p'
  16093. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  16094. *datarootdir*) ac_datarootdir_seen=yes;;
  16095. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  16096. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  16097. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  16098. _ACEOF
  16099. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16100. ac_datarootdir_hack='
  16101. s&@datadir@&$datadir&g
  16102. s&@docdir@&$docdir&g
  16103. s&@infodir@&$infodir&g
  16104. s&@localedir@&$localedir&g
  16105. s&@mandir@&$mandir&g
  16106. s&\\\${datarootdir}&$datarootdir&g' ;;
  16107. esac
  16108. _ACEOF
  16109. # Neutralize VPATH when `$srcdir' = `.'.
  16110. # Shell code in configure.ac might set extrasub.
  16111. # FIXME: do we really want to maintain this feature?
  16112. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16113. ac_sed_extra="$ac_vpsub
  16114. $extrasub
  16115. _ACEOF
  16116. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16117. :t
  16118. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  16119. s|@configure_input@|$ac_sed_conf_input|;t t
  16120. s&@top_builddir@&$ac_top_builddir_sub&;t t
  16121. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  16122. s&@srcdir@&$ac_srcdir&;t t
  16123. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  16124. s&@top_srcdir@&$ac_top_srcdir&;t t
  16125. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  16126. s&@builddir@&$ac_builddir&;t t
  16127. s&@abs_builddir@&$ac_abs_builddir&;t t
  16128. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  16129. s&@INSTALL@&$ac_INSTALL&;t t
  16130. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  16131. $ac_datarootdir_hack
  16132. "
  16133. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  16134. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16135. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  16136. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  16137. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  16138. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  16139. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16140. which seems to be undefined. Please make sure it is defined" >&5
  16141. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16142. which seems to be undefined. Please make sure it is defined" >&2;}
  16143. rm -f "$ac_tmp/stdin"
  16144. case $ac_file in
  16145. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  16146. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  16147. esac \
  16148. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16149. ;;
  16150. :H)
  16151. #
  16152. # CONFIG_HEADER
  16153. #
  16154. if test x"$ac_file" != x-; then
  16155. {
  16156. $as_echo "/* $configure_input */" \
  16157. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  16158. } >"$ac_tmp/config.h" \
  16159. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16160. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  16161. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  16162. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  16163. else
  16164. rm -f "$ac_file"
  16165. mv "$ac_tmp/config.h" "$ac_file" \
  16166. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16167. fi
  16168. else
  16169. $as_echo "/* $configure_input */" \
  16170. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  16171. || as_fn_error $? "could not create -" "$LINENO" 5
  16172. fi
  16173. # Compute "$ac_file"'s index in $config_headers.
  16174. _am_arg="$ac_file"
  16175. _am_stamp_count=1
  16176. for _am_header in $config_headers :; do
  16177. case $_am_header in
  16178. $_am_arg | $_am_arg:* )
  16179. break ;;
  16180. * )
  16181. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  16182. esac
  16183. done
  16184. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  16185. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16186. X"$_am_arg" : 'X\(//\)[^/]' \| \
  16187. X"$_am_arg" : 'X\(//\)$' \| \
  16188. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  16189. $as_echo X"$_am_arg" |
  16190. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16191. s//\1/
  16192. q
  16193. }
  16194. /^X\(\/\/\)[^/].*/{
  16195. s//\1/
  16196. q
  16197. }
  16198. /^X\(\/\/\)$/{
  16199. s//\1/
  16200. q
  16201. }
  16202. /^X\(\/\).*/{
  16203. s//\1/
  16204. q
  16205. }
  16206. s/.*/./; q'`/stamp-h$_am_stamp_count
  16207. ;;
  16208. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  16209. $as_echo "$as_me: executing $ac_file commands" >&6;}
  16210. ;;
  16211. esac
  16212. case $ac_file$ac_mode in
  16213. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  16214. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  16215. # are listed without --file. Let's play safe and only enable the eval
  16216. # if we detect the quoting.
  16217. case $CONFIG_FILES in
  16218. *\'*) eval set x "$CONFIG_FILES" ;;
  16219. *) set x $CONFIG_FILES ;;
  16220. esac
  16221. shift
  16222. for mf
  16223. do
  16224. # Strip MF so we end up with the name of the file.
  16225. mf=`echo "$mf" | sed -e 's/:.*$//'`
  16226. # Check whether this is an Automake generated Makefile or not.
  16227. # We used to match only the files named `Makefile.in', but
  16228. # some people rename them; so instead we look at the file content.
  16229. # Grep'ing the first line is not enough: some people post-process
  16230. # each Makefile.in and add a new line on top of each file to say so.
  16231. # Grep'ing the whole file is not good either: AIX grep has a line
  16232. # limit of 2048, but all sed's we know have understand at least 4000.
  16233. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  16234. dirpart=`$as_dirname -- "$mf" ||
  16235. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16236. X"$mf" : 'X\(//\)[^/]' \| \
  16237. X"$mf" : 'X\(//\)$' \| \
  16238. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  16239. $as_echo X"$mf" |
  16240. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16241. s//\1/
  16242. q
  16243. }
  16244. /^X\(\/\/\)[^/].*/{
  16245. s//\1/
  16246. q
  16247. }
  16248. /^X\(\/\/\)$/{
  16249. s//\1/
  16250. q
  16251. }
  16252. /^X\(\/\).*/{
  16253. s//\1/
  16254. q
  16255. }
  16256. s/.*/./; q'`
  16257. else
  16258. continue
  16259. fi
  16260. # Extract the definition of DEPDIR, am__include, and am__quote
  16261. # from the Makefile without running `make'.
  16262. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  16263. test -z "$DEPDIR" && continue
  16264. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  16265. test -z "am__include" && continue
  16266. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  16267. # When using ansi2knr, U may be empty or an underscore; expand it
  16268. U=`sed -n 's/^U = //p' < "$mf"`
  16269. # Find all dependency output files, they are included files with
  16270. # $(DEPDIR) in their names. We invoke sed twice because it is the
  16271. # simplest approach to changing $(DEPDIR) to its actual value in the
  16272. # expansion.
  16273. for file in `sed -n "
  16274. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  16275. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  16276. # Make sure the directory exists.
  16277. test -f "$dirpart/$file" && continue
  16278. fdir=`$as_dirname -- "$file" ||
  16279. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16280. X"$file" : 'X\(//\)[^/]' \| \
  16281. X"$file" : 'X\(//\)$' \| \
  16282. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  16283. $as_echo X"$file" |
  16284. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16285. s//\1/
  16286. q
  16287. }
  16288. /^X\(\/\/\)[^/].*/{
  16289. s//\1/
  16290. q
  16291. }
  16292. /^X\(\/\/\)$/{
  16293. s//\1/
  16294. q
  16295. }
  16296. /^X\(\/\).*/{
  16297. s//\1/
  16298. q
  16299. }
  16300. s/.*/./; q'`
  16301. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  16302. # echo "creating $dirpart/$file"
  16303. echo '# dummy' > "$dirpart/$file"
  16304. done
  16305. done
  16306. }
  16307. ;;
  16308. "libtool":C)
  16309. # See if we are running on zsh, and set the options which allow our
  16310. # commands through without removal of \ escapes.
  16311. if test -n "${ZSH_VERSION+set}" ; then
  16312. setopt NO_GLOB_SUBST
  16313. fi
  16314. cfgfile="${ofile}T"
  16315. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  16316. $RM "$cfgfile"
  16317. cat <<_LT_EOF >> "$cfgfile"
  16318. #! $SHELL
  16319. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  16320. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  16321. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16322. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  16323. #
  16324. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  16325. # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
  16326. # Inc.
  16327. # Written by Gordon Matzigkeit, 1996
  16328. #
  16329. # This file is part of GNU Libtool.
  16330. #
  16331. # GNU Libtool is free software; you can redistribute it and/or
  16332. # modify it under the terms of the GNU General Public License as
  16333. # published by the Free Software Foundation; either version 2 of
  16334. # the License, or (at your option) any later version.
  16335. #
  16336. # As a special exception to the GNU General Public License,
  16337. # if you distribute this file as part of a program or library that
  16338. # is built using GNU Libtool, you may include this file under the
  16339. # same distribution terms that you use for the rest of that program.
  16340. #
  16341. # GNU Libtool is distributed in the hope that it will be useful,
  16342. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16343. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16344. # GNU General Public License for more details.
  16345. #
  16346. # You should have received a copy of the GNU General Public License
  16347. # along with GNU Libtool; see the file COPYING. If not, a copy
  16348. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  16349. # obtained by writing to the Free Software Foundation, Inc.,
  16350. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16351. # The names of the tagged configurations supported by this script.
  16352. available_tags=""
  16353. # ### BEGIN LIBTOOL CONFIG
  16354. # Which release of libtool.m4 was used?
  16355. macro_version=$macro_version
  16356. macro_revision=$macro_revision
  16357. # Whether or not to build shared libraries.
  16358. build_libtool_libs=$enable_shared
  16359. # Whether or not to build static libraries.
  16360. build_old_libs=$enable_static
  16361. # What type of objects to build.
  16362. pic_mode=$pic_mode
  16363. # Whether or not to optimize for fast installation.
  16364. fast_install=$enable_fast_install
  16365. # Shell to use when invoking shell scripts.
  16366. SHELL=$lt_SHELL
  16367. # An echo program that protects backslashes.
  16368. ECHO=$lt_ECHO
  16369. # The host system.
  16370. host_alias=$host_alias
  16371. host=$host
  16372. host_os=$host_os
  16373. # The build system.
  16374. build_alias=$build_alias
  16375. build=$build
  16376. build_os=$build_os
  16377. # A sed program that does not truncate output.
  16378. SED=$lt_SED
  16379. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  16380. Xsed="\$SED -e 1s/^X//"
  16381. # A grep program that handles long lines.
  16382. GREP=$lt_GREP
  16383. # An ERE matcher.
  16384. EGREP=$lt_EGREP
  16385. # A literal string matcher.
  16386. FGREP=$lt_FGREP
  16387. # A BSD- or MS-compatible name lister.
  16388. NM=$lt_NM
  16389. # Whether we need soft or hard links.
  16390. LN_S=$lt_LN_S
  16391. # What is the maximum length of a command?
  16392. max_cmd_len=$max_cmd_len
  16393. # Object file suffix (normally "o").
  16394. objext=$ac_objext
  16395. # Executable file suffix (normally "").
  16396. exeext=$exeext
  16397. # whether the shell understands "unset".
  16398. lt_unset=$lt_unset
  16399. # turn spaces into newlines.
  16400. SP2NL=$lt_lt_SP2NL
  16401. # turn newlines into spaces.
  16402. NL2SP=$lt_lt_NL2SP
  16403. # convert \$build file names to \$host format.
  16404. to_host_file_cmd=$lt_cv_to_host_file_cmd
  16405. # convert \$build files to toolchain format.
  16406. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  16407. # An object symbol dumper.
  16408. OBJDUMP=$lt_OBJDUMP
  16409. # Method to check whether dependent libraries are shared objects.
  16410. deplibs_check_method=$lt_deplibs_check_method
  16411. # Command to use when deplibs_check_method = "file_magic".
  16412. file_magic_cmd=$lt_file_magic_cmd
  16413. # How to find potential files when deplibs_check_method = "file_magic".
  16414. file_magic_glob=$lt_file_magic_glob
  16415. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  16416. want_nocaseglob=$lt_want_nocaseglob
  16417. # DLL creation program.
  16418. DLLTOOL=$lt_DLLTOOL
  16419. # Command to associate shared and link libraries.
  16420. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  16421. # The archiver.
  16422. AR=$lt_AR
  16423. # Flags to create an archive.
  16424. AR_FLAGS=$lt_AR_FLAGS
  16425. # How to feed a file listing to the archiver.
  16426. archiver_list_spec=$lt_archiver_list_spec
  16427. # A symbol stripping program.
  16428. STRIP=$lt_STRIP
  16429. # Commands used to install an old-style archive.
  16430. RANLIB=$lt_RANLIB
  16431. old_postinstall_cmds=$lt_old_postinstall_cmds
  16432. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16433. # Whether to use a lock for old archive extraction.
  16434. lock_old_archive_extraction=$lock_old_archive_extraction
  16435. # A C compiler.
  16436. LTCC=$lt_CC
  16437. # LTCC compiler flags.
  16438. LTCFLAGS=$lt_CFLAGS
  16439. # Take the output of nm and produce a listing of raw symbols and C names.
  16440. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16441. # Transform the output of nm in a proper C declaration.
  16442. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16443. # Transform the output of nm in a C name address pair.
  16444. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16445. # Transform the output of nm in a C name address pair when lib prefix is needed.
  16446. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  16447. # Specify filename containing input files for \$NM.
  16448. nm_file_list_spec=$lt_nm_file_list_spec
  16449. # The root where to search for dependent libraries,and in which our libraries should be installed.
  16450. lt_sysroot=$lt_sysroot
  16451. # The name of the directory that contains temporary libtool files.
  16452. objdir=$objdir
  16453. # Used to examine libraries when file_magic_cmd begins with "file".
  16454. MAGIC_CMD=$MAGIC_CMD
  16455. # Must we lock files when doing compilation?
  16456. need_locks=$lt_need_locks
  16457. # Manifest tool.
  16458. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  16459. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16460. DSYMUTIL=$lt_DSYMUTIL
  16461. # Tool to change global to local symbols on Mac OS X.
  16462. NMEDIT=$lt_NMEDIT
  16463. # Tool to manipulate fat objects and archives on Mac OS X.
  16464. LIPO=$lt_LIPO
  16465. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16466. OTOOL=$lt_OTOOL
  16467. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16468. OTOOL64=$lt_OTOOL64
  16469. # Old archive suffix (normally "a").
  16470. libext=$libext
  16471. # Shared library suffix (normally ".so").
  16472. shrext_cmds=$lt_shrext_cmds
  16473. # The commands to extract the exported symbol list from a shared archive.
  16474. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16475. # Variables whose values should be saved in libtool wrapper scripts and
  16476. # restored at link time.
  16477. variables_saved_for_relink=$lt_variables_saved_for_relink
  16478. # Do we need the "lib" prefix for modules?
  16479. need_lib_prefix=$need_lib_prefix
  16480. # Do we need a version for libraries?
  16481. need_version=$need_version
  16482. # Library versioning type.
  16483. version_type=$version_type
  16484. # Shared library runtime path variable.
  16485. runpath_var=$runpath_var
  16486. # Shared library path variable.
  16487. shlibpath_var=$shlibpath_var
  16488. # Is shlibpath searched before the hard-coded library search path?
  16489. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16490. # Format of library name prefix.
  16491. libname_spec=$lt_libname_spec
  16492. # List of archive names. First name is the real one, the rest are links.
  16493. # The last name is the one that the linker finds with -lNAME
  16494. library_names_spec=$lt_library_names_spec
  16495. # The coded name of the library, if different from the real name.
  16496. soname_spec=$lt_soname_spec
  16497. # Permission mode override for installation of shared libraries.
  16498. install_override_mode=$lt_install_override_mode
  16499. # Command to use after installation of a shared archive.
  16500. postinstall_cmds=$lt_postinstall_cmds
  16501. # Command to use after uninstallation of a shared archive.
  16502. postuninstall_cmds=$lt_postuninstall_cmds
  16503. # Commands used to finish a libtool library installation in a directory.
  16504. finish_cmds=$lt_finish_cmds
  16505. # As "finish_cmds", except a single script fragment to be evaled but
  16506. # not shown.
  16507. finish_eval=$lt_finish_eval
  16508. # Whether we should hardcode library paths into libraries.
  16509. hardcode_into_libs=$hardcode_into_libs
  16510. # Compile-time system search path for libraries.
  16511. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16512. # Run-time system search path for libraries.
  16513. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16514. # Whether dlopen is supported.
  16515. dlopen_support=$enable_dlopen
  16516. # Whether dlopen of programs is supported.
  16517. dlopen_self=$enable_dlopen_self
  16518. # Whether dlopen of statically linked programs is supported.
  16519. dlopen_self_static=$enable_dlopen_self_static
  16520. # Commands to strip libraries.
  16521. old_striplib=$lt_old_striplib
  16522. striplib=$lt_striplib
  16523. # The linker used to build libraries.
  16524. LD=$lt_LD
  16525. # How to create reloadable object files.
  16526. reload_flag=$lt_reload_flag
  16527. reload_cmds=$lt_reload_cmds
  16528. # Commands used to build an old-style archive.
  16529. old_archive_cmds=$lt_old_archive_cmds
  16530. # A language specific compiler.
  16531. CC=$lt_compiler
  16532. # Is the compiler the GNU compiler?
  16533. with_gcc=$GCC
  16534. # Compiler flag to turn off builtin functions.
  16535. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16536. # Additional compiler flags for building library objects.
  16537. pic_flag=$lt_lt_prog_compiler_pic
  16538. # How to pass a linker flag through the compiler.
  16539. wl=$lt_lt_prog_compiler_wl
  16540. # Compiler flag to prevent dynamic linking.
  16541. link_static_flag=$lt_lt_prog_compiler_static
  16542. # Does compiler simultaneously support -c and -o options?
  16543. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16544. # Whether or not to add -lc for building shared libraries.
  16545. build_libtool_need_lc=$archive_cmds_need_lc
  16546. # Whether or not to disallow shared libs when runtime libs are static.
  16547. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16548. # Compiler flag to allow reflexive dlopens.
  16549. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16550. # Compiler flag to generate shared objects directly from archives.
  16551. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16552. # Whether the compiler copes with passing no objects directly.
  16553. compiler_needs_object=$lt_compiler_needs_object
  16554. # Create an old-style archive from a shared archive.
  16555. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16556. # Create a temporary old-style archive to link instead of a shared archive.
  16557. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16558. # Commands used to build a shared archive.
  16559. archive_cmds=$lt_archive_cmds
  16560. archive_expsym_cmds=$lt_archive_expsym_cmds
  16561. # Commands used to build a loadable module if different from building
  16562. # a shared archive.
  16563. module_cmds=$lt_module_cmds
  16564. module_expsym_cmds=$lt_module_expsym_cmds
  16565. # Whether we are building with GNU ld or not.
  16566. with_gnu_ld=$lt_with_gnu_ld
  16567. # Flag that allows shared libraries with undefined symbols to be built.
  16568. allow_undefined_flag=$lt_allow_undefined_flag
  16569. # Flag that enforces no undefined symbols.
  16570. no_undefined_flag=$lt_no_undefined_flag
  16571. # Flag to hardcode \$libdir into a binary during linking.
  16572. # This must work even if \$libdir does not exist
  16573. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16574. # If ld is used when linking, flag to hardcode \$libdir into a binary
  16575. # during linking. This must work even if \$libdir does not exist.
  16576. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  16577. # Whether we need a single "-rpath" flag with a separated argument.
  16578. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16579. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16580. # DIR into the resulting binary.
  16581. hardcode_direct=$hardcode_direct
  16582. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16583. # DIR into the resulting binary and the resulting library dependency is
  16584. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16585. # library is relocated.
  16586. hardcode_direct_absolute=$hardcode_direct_absolute
  16587. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16588. # into the resulting binary.
  16589. hardcode_minus_L=$hardcode_minus_L
  16590. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16591. # into the resulting binary.
  16592. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16593. # Set to "yes" if building a shared library automatically hardcodes DIR
  16594. # into the library and all subsequent libraries and executables linked
  16595. # against it.
  16596. hardcode_automatic=$hardcode_automatic
  16597. # Set to yes if linker adds runtime paths of dependent libraries
  16598. # to runtime path list.
  16599. inherit_rpath=$inherit_rpath
  16600. # Whether libtool must link a program against all its dependency libraries.
  16601. link_all_deplibs=$link_all_deplibs
  16602. # Set to "yes" if exported symbols are required.
  16603. always_export_symbols=$always_export_symbols
  16604. # The commands to list exported symbols.
  16605. export_symbols_cmds=$lt_export_symbols_cmds
  16606. # Symbols that should not be listed in the preloaded symbols.
  16607. exclude_expsyms=$lt_exclude_expsyms
  16608. # Symbols that must always be exported.
  16609. include_expsyms=$lt_include_expsyms
  16610. # Commands necessary for linking programs (against libraries) with templates.
  16611. prelink_cmds=$lt_prelink_cmds
  16612. # Commands necessary for finishing linking programs.
  16613. postlink_cmds=$lt_postlink_cmds
  16614. # Specify filename containing input files.
  16615. file_list_spec=$lt_file_list_spec
  16616. # How to hardcode a shared library path into an executable.
  16617. hardcode_action=$hardcode_action
  16618. # ### END LIBTOOL CONFIG
  16619. _LT_EOF
  16620. case $host_os in
  16621. aix3*)
  16622. cat <<\_LT_EOF >> "$cfgfile"
  16623. # AIX sometimes has problems with the GCC collect2 program. For some
  16624. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16625. # vanish in a puff of smoke.
  16626. if test "X${COLLECT_NAMES+set}" != Xset; then
  16627. COLLECT_NAMES=
  16628. export COLLECT_NAMES
  16629. fi
  16630. _LT_EOF
  16631. ;;
  16632. esac
  16633. ltmain="$ac_aux_dir/ltmain.sh"
  16634. # We use sed instead of cat because bash on DJGPP gets confused if
  16635. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16636. # text mode, it properly converts lines to CR/LF. This bash problem
  16637. # is reportedly fixed, but why not run on old versions too?
  16638. sed '$q' "$ltmain" >> "$cfgfile" \
  16639. || (rm -f "$cfgfile"; exit 1)
  16640. if test x"$xsi_shell" = xyes; then
  16641. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  16642. func_dirname ()\
  16643. {\
  16644. \ case ${1} in\
  16645. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  16646. \ * ) func_dirname_result="${3}" ;;\
  16647. \ esac\
  16648. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  16649. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16650. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16651. test 0 -eq $? || _lt_function_replace_fail=:
  16652. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  16653. func_basename ()\
  16654. {\
  16655. \ func_basename_result="${1##*/}"\
  16656. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16657. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16658. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16659. test 0 -eq $? || _lt_function_replace_fail=:
  16660. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  16661. func_dirname_and_basename ()\
  16662. {\
  16663. \ case ${1} in\
  16664. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  16665. \ * ) func_dirname_result="${3}" ;;\
  16666. \ esac\
  16667. \ func_basename_result="${1##*/}"\
  16668. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16669. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16670. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16671. test 0 -eq $? || _lt_function_replace_fail=:
  16672. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  16673. func_stripname ()\
  16674. {\
  16675. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  16676. \ # positional parameters, so assign one to ordinary parameter first.\
  16677. \ func_stripname_result=${3}\
  16678. \ func_stripname_result=${func_stripname_result#"${1}"}\
  16679. \ func_stripname_result=${func_stripname_result%"${2}"}\
  16680. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  16681. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16682. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16683. test 0 -eq $? || _lt_function_replace_fail=:
  16684. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  16685. func_split_long_opt ()\
  16686. {\
  16687. \ func_split_long_opt_name=${1%%=*}\
  16688. \ func_split_long_opt_arg=${1#*=}\
  16689. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16690. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16691. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16692. test 0 -eq $? || _lt_function_replace_fail=:
  16693. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  16694. func_split_short_opt ()\
  16695. {\
  16696. \ func_split_short_opt_arg=${1#??}\
  16697. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  16698. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16699. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16700. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16701. test 0 -eq $? || _lt_function_replace_fail=:
  16702. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  16703. func_lo2o ()\
  16704. {\
  16705. \ case ${1} in\
  16706. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  16707. \ *) func_lo2o_result=${1} ;;\
  16708. \ esac\
  16709. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  16710. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16711. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16712. test 0 -eq $? || _lt_function_replace_fail=:
  16713. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  16714. func_xform ()\
  16715. {\
  16716. func_xform_result=${1%.*}.lo\
  16717. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  16718. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16719. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16720. test 0 -eq $? || _lt_function_replace_fail=:
  16721. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  16722. func_arith ()\
  16723. {\
  16724. func_arith_result=$(( $* ))\
  16725. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  16726. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16727. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16728. test 0 -eq $? || _lt_function_replace_fail=:
  16729. sed -e '/^func_len ()$/,/^} # func_len /c\
  16730. func_len ()\
  16731. {\
  16732. func_len_result=${#1}\
  16733. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  16734. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16735. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16736. test 0 -eq $? || _lt_function_replace_fail=:
  16737. fi
  16738. if test x"$lt_shell_append" = xyes; then
  16739. sed -e '/^func_append ()$/,/^} # func_append /c\
  16740. func_append ()\
  16741. {\
  16742. eval "${1}+=\\${2}"\
  16743. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  16744. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16745. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16746. test 0 -eq $? || _lt_function_replace_fail=:
  16747. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  16748. func_append_quoted ()\
  16749. {\
  16750. \ func_quote_for_eval "${2}"\
  16751. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  16752. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  16753. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16754. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16755. test 0 -eq $? || _lt_function_replace_fail=:
  16756. # Save a `func_append' function call where possible by direct use of '+='
  16757. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  16758. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16759. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16760. test 0 -eq $? || _lt_function_replace_fail=:
  16761. else
  16762. # Save a `func_append' function call even when '+=' is not available
  16763. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  16764. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16765. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16766. test 0 -eq $? || _lt_function_replace_fail=:
  16767. fi
  16768. if test x"$_lt_function_replace_fail" = x":"; then
  16769. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  16770. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  16771. fi
  16772. mv -f "$cfgfile" "$ofile" ||
  16773. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16774. chmod +x "$ofile"
  16775. ;;
  16776. esac
  16777. done # for ac_tag
  16778. as_fn_exit 0
  16779. _ACEOF
  16780. ac_clean_files=$ac_clean_files_save
  16781. test $ac_write_fail = 0 ||
  16782. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16783. # configure is writing to config.log, and then calls config.status.
  16784. # config.status does its own redirection, appending to config.log.
  16785. # Unfortunately, on DOS this fails, as config.log is still kept open
  16786. # by configure, so config.status won't be able to write to it; its
  16787. # output is simply discarded. So we exec the FD to /dev/null,
  16788. # effectively closing config.log, so it can be properly (re)opened and
  16789. # appended to by config.status. When coming back to configure, we
  16790. # need to make the FD available again.
  16791. if test "$no_create" != yes; then
  16792. ac_cs_success=:
  16793. ac_config_status_args=
  16794. test "$silent" = yes &&
  16795. ac_config_status_args="$ac_config_status_args --quiet"
  16796. exec 5>/dev/null
  16797. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16798. exec 5>>config.log
  16799. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16800. # would make configure fail if this is the last instruction.
  16801. $ac_cs_success || as_fn_exit 1
  16802. fi
  16803. #
  16804. # CONFIG_SUBDIRS section.
  16805. #
  16806. if test "$no_recursion" != yes; then
  16807. # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  16808. # so they do not pile up.
  16809. ac_sub_configure_args=
  16810. ac_prev=
  16811. eval "set x $ac_configure_args"
  16812. shift
  16813. for ac_arg
  16814. do
  16815. if test -n "$ac_prev"; then
  16816. ac_prev=
  16817. continue
  16818. fi
  16819. case $ac_arg in
  16820. -cache-file | --cache-file | --cache-fil | --cache-fi \
  16821. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  16822. ac_prev=cache_file ;;
  16823. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  16824. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  16825. | --c=*)
  16826. ;;
  16827. --config-cache | -C)
  16828. ;;
  16829. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  16830. ac_prev=srcdir ;;
  16831. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  16832. ;;
  16833. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  16834. ac_prev=prefix ;;
  16835. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  16836. ;;
  16837. --disable-option-checking)
  16838. ;;
  16839. *)
  16840. case $ac_arg in
  16841. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16842. esac
  16843. as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  16844. esac
  16845. done
  16846. # Always prepend --prefix to ensure using the same prefix
  16847. # in subdir configurations.
  16848. ac_arg="--prefix=$prefix"
  16849. case $ac_arg in
  16850. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16851. esac
  16852. ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  16853. # Pass --silent
  16854. if test "$silent" = yes; then
  16855. ac_sub_configure_args="--silent $ac_sub_configure_args"
  16856. fi
  16857. # Always prepend --disable-option-checking to silence warnings, since
  16858. # different subdirs can have different --enable and --with options.
  16859. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
  16860. ac_popdir=`pwd`
  16861. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  16862. # Do not complain, so a configure script can configure whichever
  16863. # parts of a large source tree are present.
  16864. test -d "$srcdir/$ac_dir" || continue
  16865. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  16866. $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  16867. $as_echo "$ac_msg" >&6
  16868. as_dir="$ac_dir"; as_fn_mkdir_p
  16869. ac_builddir=.
  16870. case "$ac_dir" in
  16871. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16872. *)
  16873. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16874. # A ".." for each directory in $ac_dir_suffix.
  16875. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16876. case $ac_top_builddir_sub in
  16877. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16878. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16879. esac ;;
  16880. esac
  16881. ac_abs_top_builddir=$ac_pwd
  16882. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  16883. # for backward compatibility:
  16884. ac_top_builddir=$ac_top_build_prefix
  16885. case $srcdir in
  16886. .) # We are building in place.
  16887. ac_srcdir=.
  16888. ac_top_srcdir=$ac_top_builddir_sub
  16889. ac_abs_top_srcdir=$ac_pwd ;;
  16890. [\\/]* | ?:[\\/]* ) # Absolute name.
  16891. ac_srcdir=$srcdir$ac_dir_suffix;
  16892. ac_top_srcdir=$srcdir
  16893. ac_abs_top_srcdir=$srcdir ;;
  16894. *) # Relative name.
  16895. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  16896. ac_top_srcdir=$ac_top_build_prefix$srcdir
  16897. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  16898. esac
  16899. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16900. cd "$ac_dir"
  16901. # Check for guested configure; otherwise get Cygnus style configure.
  16902. if test -f "$ac_srcdir/configure.gnu"; then
  16903. ac_sub_configure=$ac_srcdir/configure.gnu
  16904. elif test -f "$ac_srcdir/configure"; then
  16905. ac_sub_configure=$ac_srcdir/configure
  16906. elif test -f "$ac_srcdir/configure.in"; then
  16907. # This should be Cygnus configure.
  16908. ac_sub_configure=$ac_aux_dir/configure
  16909. else
  16910. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
  16911. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  16912. ac_sub_configure=
  16913. fi
  16914. # The recursion is here.
  16915. if test -n "$ac_sub_configure"; then
  16916. # Make the cache file name correct relative to the subdirectory.
  16917. case $cache_file in
  16918. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  16919. *) # Relative name.
  16920. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  16921. esac
  16922. { $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
  16923. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  16924. # The eval makes quoting arguments work.
  16925. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  16926. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  16927. as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
  16928. fi
  16929. cd "$ac_popdir"
  16930. done
  16931. fi
  16932. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16933. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16934. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16935. fi
  16936. echo
  16937. echo
  16938. echo
  16939. echo "------------------------------------------------------------------------"
  16940. echo "$PACKAGE $VERSION"
  16941. echo "------------------------------------------------------------------------"
  16942. echo
  16943. echo
  16944. echo "Configuration Options Summary:"
  16945. echo
  16946. if test "x$libcurl" != xno; then
  16947. echo " libcurl(GBT+getwork).: Enabled: $LIBCURL_LIBS"
  16948. else
  16949. echo " libcurl(GBT+getwork).: Disabled"
  16950. fi
  16951. echo " curses.TUI...........: $cursesmsg"
  16952. if test "x$scrypt" != xno; then
  16953. echo " scrypt...............: Enabled"
  16954. else
  16955. echo " scrypt...............: Disabled"
  16956. fi
  16957. echo
  16958. if test "x$ants1" = xyes; then
  16959. echo " Antminer.S1.Bitmain..: Enabled"
  16960. else
  16961. echo " Antminer.S1.Bitmain..: Disabled"
  16962. fi
  16963. if test "x$ants2" = xyes; then
  16964. echo " Antminer.S2.Bitmain..: Enabled"
  16965. else
  16966. echo " Antminer.S2.Bitmain..: Disabled"
  16967. fi
  16968. if test "x$avalon" = xyes; then
  16969. echo " Avalon.ASICs.........: Enabled"
  16970. else
  16971. echo " Avalon.ASICs.........: Disabled"
  16972. fi
  16973. if test "x$avalon2" = xyes; then
  16974. echo " Avalon2.ASICs........: Enabled"
  16975. else
  16976. echo " Avalon2.ASICs........: Disabled"
  16977. fi
  16978. if test "x$minion" = xyes; then
  16979. echo " BlackArrowMinion.ASIC: Enabled"
  16980. else
  16981. echo " BlackArrowMinion.ASIC: Disabled"
  16982. fi
  16983. if test "x$bab" = xyes; then
  16984. echo " BlackArrow.ASICs.....: Enabled"
  16985. else
  16986. echo " BlackArrow.ASICs.....: Disabled"
  16987. fi
  16988. if test "x$bflsc" = xyes; then
  16989. echo " BFL.ASICs............: Enabled"
  16990. else
  16991. echo " BFL.ASICs............: Disabled"
  16992. fi
  16993. if test "x$bitforce" = xyes; then
  16994. echo " BitForce.FPGAs.......: Enabled"
  16995. else
  16996. echo " BitForce.FPGAs.......: Disabled"
  16997. fi
  16998. if test "x$bitfury" = xyes; then
  16999. echo " BitFury.ASICs........: Enabled"
  17000. else
  17001. echo " BitFury.ASICs........: Disabled"
  17002. fi
  17003. if test "x$cointerra" = xyes; then
  17004. echo " Cointerra.ASICs......: Enabled"
  17005. else
  17006. echo " Cointerra.ASICs......: Disabled"
  17007. fi
  17008. if test "x$spondoolies" = xyes; then
  17009. echo " Spondoolies.ASICs....: Enabled"
  17010. else
  17011. echo " Spondoolies.ASICs....: Disabled"
  17012. fi
  17013. if test "x$bitmine_A1" = xyes; then
  17014. echo " Bitmine-A1.ASICs.....: Enabled"
  17015. else
  17016. echo " Bitmine-A1.ASICs.....: Disabled"
  17017. fi
  17018. if test "x$drillbit" = xyes; then
  17019. echo " Drillbit.BitFury.....: Enabled"
  17020. else
  17021. echo " Drillbit.BitFury.....: Disabled"
  17022. fi
  17023. if test "x$hashfast" = xyes; then
  17024. echo " Hashfast.ASICs.......: Enabled"
  17025. else
  17026. echo " Hashfast.ASICs.......: Disabled"
  17027. fi
  17028. if test "x$icarus" = xyes; then
  17029. echo " Icarus.ASICs/FPGAs...: Enabled"
  17030. else
  17031. echo " Icarus.ASICs/FPGAs...: Disabled"
  17032. fi
  17033. if test "x$klondike" = xyes; then
  17034. echo " Klondike.ASICs.......: Enabled"
  17035. else
  17036. echo " Klondike.ASICs.......: Disabled"
  17037. fi
  17038. if test "x$knc" = xyes; then
  17039. echo " KnC.ASICs............: Enabled"
  17040. else
  17041. echo " KnC.ASICs............: Disabled"
  17042. fi
  17043. if test "x$modminer" = xyes; then
  17044. echo " ModMiner.FPGAs.......: Enabled"
  17045. else
  17046. echo " ModMiner.FPGAs.......: Disabled"
  17047. fi
  17048. if test "x$gridseed" = xyes; then
  17049. echo " GridSeed.ASICs.......: Enabled"
  17050. else
  17051. echo " GridSeed.ASICs.......: Disabled"
  17052. fi
  17053. if test "x$zeus" = xyes; then
  17054. echo " Zeus.ASICs...........: Enabled"
  17055. else
  17056. echo " Zeus.ASICs...........: Disabled"
  17057. fi
  17058. if test "x$lketc" = xyes; then
  17059. echo " Lketc.ASICs..........: Enabled"
  17060. else
  17061. echo " Lketc.ASICs..........: Disabled"
  17062. fi
  17063. 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
  17064. as_fn_error $? "No mining configured in" "$LINENO" 5
  17065. fi
  17066. echo
  17067. echo "Compilation............: make (or gmake)"
  17068. echo " CPPFLAGS.............: $CPPFLAGS"
  17069. echo " CFLAGS...............: $CFLAGS"
  17070. echo " LDFLAGS..............: $LDFLAGS $PTHREAD_FLAGS"
  17071. echo " LDADD................: $DLOPEN_FLAGS $LIBCURL_LIBS $JANSSON_LIBS $PTHREAD_LIBS $NCURSES_LIBS $PDCURSES_LIBS $WS2_LIBS $MATH_LIBS $LIBUSB_LIBS $LIBUDEV_LIBS $RT_LIBS"
  17072. echo
  17073. echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
  17074. echo " prefix...............: $prefix"
  17075. echo
  17076. if test "x$want_usbutils$dlibusb" = xyesyes; then
  17077. echo "*** SYSTEM LIBUSB BEING ADDED - NOT RECOMMENDED UNLESS YOU ARE UNABLE TO COMPILE THE INCLUDED LIBUSB ***"
  17078. echo
  17079. fi