configure 424 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for luksmeta 8.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME='luksmeta'
  539. PACKAGE_TARNAME='luksmeta'
  540. PACKAGE_VERSION='8'
  541. PACKAGE_STRING='luksmeta 8'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL=''
  544. # Factoring default headers for most tests.
  545. ac_includes_default="\
  546. #include <stdio.h>
  547. #ifdef HAVE_SYS_TYPES_H
  548. # include <sys/types.h>
  549. #endif
  550. #ifdef HAVE_SYS_STAT_H
  551. # include <sys/stat.h>
  552. #endif
  553. #ifdef STDC_HEADERS
  554. # include <stdlib.h>
  555. # include <stddef.h>
  556. #else
  557. # ifdef HAVE_STDLIB_H
  558. # include <stdlib.h>
  559. # endif
  560. #endif
  561. #ifdef HAVE_STRING_H
  562. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  563. # include <memory.h>
  564. # endif
  565. # include <string.h>
  566. #endif
  567. #ifdef HAVE_STRINGS_H
  568. # include <strings.h>
  569. #endif
  570. #ifdef HAVE_INTTYPES_H
  571. # include <inttypes.h>
  572. #endif
  573. #ifdef HAVE_STDINT_H
  574. # include <stdint.h>
  575. #endif
  576. #ifdef HAVE_UNISTD_H
  577. # include <unistd.h>
  578. #endif"
  579. ac_subst_vars='am__EXEEXT_FALSE
  580. am__EXEEXT_TRUE
  581. LTLIBOBJS
  582. LIBOBJS
  583. LUKSMETA_CFLAGS
  584. cryptsetup_LIBS
  585. cryptsetup_CFLAGS
  586. PKG_CONFIG_LIBDIR
  587. PKG_CONFIG_PATH
  588. PKG_CONFIG
  589. CPP
  590. LT_SYS_LIBRARY_PATH
  591. OTOOL64
  592. OTOOL
  593. LIPO
  594. NMEDIT
  595. DSYMUTIL
  596. MANIFEST_TOOL
  597. RANLIB
  598. ac_ct_AR
  599. AR
  600. DLLTOOL
  601. OBJDUMP
  602. LN_S
  603. NM
  604. ac_ct_DUMPBIN
  605. DUMPBIN
  606. LD
  607. FGREP
  608. EGREP
  609. GREP
  610. SED
  611. LIBTOOL
  612. AM_BACKSLASH
  613. AM_DEFAULT_VERBOSITY
  614. AM_DEFAULT_V
  615. AM_V
  616. am__fastdepCC_FALSE
  617. am__fastdepCC_TRUE
  618. CCDEPMODE
  619. am__nodep
  620. AMDEPBACKSLASH
  621. AMDEP_FALSE
  622. AMDEP_TRUE
  623. am__quote
  624. am__include
  625. DEPDIR
  626. am__untar
  627. am__tar
  628. AMTAR
  629. am__leading_dot
  630. SET_MAKE
  631. AWK
  632. mkdir_p
  633. MKDIR_P
  634. INSTALL_STRIP_PROGRAM
  635. STRIP
  636. install_sh
  637. MAKEINFO
  638. AUTOHEADER
  639. AUTOMAKE
  640. AUTOCONF
  641. ACLOCAL
  642. VERSION
  643. PACKAGE
  644. CYGPATH_W
  645. am__isrc
  646. INSTALL_DATA
  647. INSTALL_SCRIPT
  648. INSTALL_PROGRAM
  649. OBJEXT
  650. EXEEXT
  651. ac_ct_CC
  652. CPPFLAGS
  653. LDFLAGS
  654. CFLAGS
  655. CC
  656. target_os
  657. target_vendor
  658. target_cpu
  659. target
  660. host_os
  661. host_vendor
  662. host_cpu
  663. host
  664. build_os
  665. build_vendor
  666. build_cpu
  667. build
  668. target_alias
  669. host_alias
  670. build_alias
  671. LIBS
  672. ECHO_T
  673. ECHO_N
  674. ECHO_C
  675. DEFS
  676. mandir
  677. localedir
  678. libdir
  679. psdir
  680. pdfdir
  681. dvidir
  682. htmldir
  683. infodir
  684. docdir
  685. oldincludedir
  686. includedir
  687. localstatedir
  688. sharedstatedir
  689. sysconfdir
  690. datadir
  691. datarootdir
  692. libexecdir
  693. sbindir
  694. bindir
  695. program_transform_name
  696. prefix
  697. exec_prefix
  698. PACKAGE_URL
  699. PACKAGE_BUGREPORT
  700. PACKAGE_STRING
  701. PACKAGE_VERSION
  702. PACKAGE_TARNAME
  703. PACKAGE_NAME
  704. PATH_SEPARATOR
  705. SHELL'
  706. ac_subst_files=''
  707. ac_user_opts='
  708. enable_option_checking
  709. enable_dependency_tracking
  710. enable_silent_rules
  711. enable_static
  712. enable_shared
  713. with_pic
  714. enable_fast_install
  715. with_aix_soname
  716. with_gnu_ld
  717. with_sysroot
  718. enable_libtool_lock
  719. '
  720. ac_precious_vars='build_alias
  721. host_alias
  722. target_alias
  723. CC
  724. CFLAGS
  725. LDFLAGS
  726. LIBS
  727. CPPFLAGS
  728. LT_SYS_LIBRARY_PATH
  729. CPP
  730. PKG_CONFIG
  731. PKG_CONFIG_PATH
  732. PKG_CONFIG_LIBDIR
  733. cryptsetup_CFLAGS
  734. cryptsetup_LIBS'
  735. # Initialize some variables set by options.
  736. ac_init_help=
  737. ac_init_version=false
  738. ac_unrecognized_opts=
  739. ac_unrecognized_sep=
  740. # The variables have the same names as the options, with
  741. # dashes changed to underlines.
  742. cache_file=/dev/null
  743. exec_prefix=NONE
  744. no_create=
  745. no_recursion=
  746. prefix=NONE
  747. program_prefix=NONE
  748. program_suffix=NONE
  749. program_transform_name=s,x,x,
  750. silent=
  751. site=
  752. srcdir=
  753. verbose=
  754. x_includes=NONE
  755. x_libraries=NONE
  756. # Installation directory options.
  757. # These are left unexpanded so users can "make install exec_prefix=/foo"
  758. # and all the variables that are supposed to be based on exec_prefix
  759. # by default will actually change.
  760. # Use braces instead of parens because sh, perl, etc. also accept them.
  761. # (The list follows the same order as the GNU Coding Standards.)
  762. bindir='${exec_prefix}/bin'
  763. sbindir='${exec_prefix}/sbin'
  764. libexecdir='${exec_prefix}/libexec'
  765. datarootdir='${prefix}/share'
  766. datadir='${datarootdir}'
  767. sysconfdir='${prefix}/etc'
  768. sharedstatedir='${prefix}/com'
  769. localstatedir='${prefix}/var'
  770. includedir='${prefix}/include'
  771. oldincludedir='/usr/include'
  772. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  773. infodir='${datarootdir}/info'
  774. htmldir='${docdir}'
  775. dvidir='${docdir}'
  776. pdfdir='${docdir}'
  777. psdir='${docdir}'
  778. libdir='${exec_prefix}/lib'
  779. localedir='${datarootdir}/locale'
  780. mandir='${datarootdir}/man'
  781. ac_prev=
  782. ac_dashdash=
  783. for ac_option
  784. do
  785. # If the previous option needs an argument, assign it.
  786. if test -n "$ac_prev"; then
  787. eval $ac_prev=\$ac_option
  788. ac_prev=
  789. continue
  790. fi
  791. case $ac_option in
  792. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  793. *=) ac_optarg= ;;
  794. *) ac_optarg=yes ;;
  795. esac
  796. # Accept the important Cygnus configure options, so we can diagnose typos.
  797. case $ac_dashdash$ac_option in
  798. --)
  799. ac_dashdash=yes ;;
  800. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  801. ac_prev=bindir ;;
  802. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  803. bindir=$ac_optarg ;;
  804. -build | --build | --buil | --bui | --bu)
  805. ac_prev=build_alias ;;
  806. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  807. build_alias=$ac_optarg ;;
  808. -cache-file | --cache-file | --cache-fil | --cache-fi \
  809. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  810. ac_prev=cache_file ;;
  811. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  812. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  813. cache_file=$ac_optarg ;;
  814. --config-cache | -C)
  815. cache_file=config.cache ;;
  816. -datadir | --datadir | --datadi | --datad)
  817. ac_prev=datadir ;;
  818. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  819. datadir=$ac_optarg ;;
  820. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  821. | --dataroo | --dataro | --datar)
  822. ac_prev=datarootdir ;;
  823. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  824. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  825. datarootdir=$ac_optarg ;;
  826. -disable-* | --disable-*)
  827. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  828. # Reject names that are not valid shell variable names.
  829. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  830. as_fn_error $? "invalid feature name: $ac_useropt"
  831. ac_useropt_orig=$ac_useropt
  832. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  833. case $ac_user_opts in
  834. *"
  835. "enable_$ac_useropt"
  836. "*) ;;
  837. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  838. ac_unrecognized_sep=', ';;
  839. esac
  840. eval enable_$ac_useropt=no ;;
  841. -docdir | --docdir | --docdi | --doc | --do)
  842. ac_prev=docdir ;;
  843. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  844. docdir=$ac_optarg ;;
  845. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  846. ac_prev=dvidir ;;
  847. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  848. dvidir=$ac_optarg ;;
  849. -enable-* | --enable-*)
  850. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  851. # Reject names that are not valid shell variable names.
  852. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  853. as_fn_error $? "invalid feature name: $ac_useropt"
  854. ac_useropt_orig=$ac_useropt
  855. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  856. case $ac_user_opts in
  857. *"
  858. "enable_$ac_useropt"
  859. "*) ;;
  860. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  861. ac_unrecognized_sep=', ';;
  862. esac
  863. eval enable_$ac_useropt=\$ac_optarg ;;
  864. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  865. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  866. | --exec | --exe | --ex)
  867. ac_prev=exec_prefix ;;
  868. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  869. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  870. | --exec=* | --exe=* | --ex=*)
  871. exec_prefix=$ac_optarg ;;
  872. -gas | --gas | --ga | --g)
  873. # Obsolete; use --with-gas.
  874. with_gas=yes ;;
  875. -help | --help | --hel | --he | -h)
  876. ac_init_help=long ;;
  877. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  878. ac_init_help=recursive ;;
  879. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  880. ac_init_help=short ;;
  881. -host | --host | --hos | --ho)
  882. ac_prev=host_alias ;;
  883. -host=* | --host=* | --hos=* | --ho=*)
  884. host_alias=$ac_optarg ;;
  885. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  886. ac_prev=htmldir ;;
  887. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  888. | --ht=*)
  889. htmldir=$ac_optarg ;;
  890. -includedir | --includedir | --includedi | --included | --include \
  891. | --includ | --inclu | --incl | --inc)
  892. ac_prev=includedir ;;
  893. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  894. | --includ=* | --inclu=* | --incl=* | --inc=*)
  895. includedir=$ac_optarg ;;
  896. -infodir | --infodir | --infodi | --infod | --info | --inf)
  897. ac_prev=infodir ;;
  898. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  899. infodir=$ac_optarg ;;
  900. -libdir | --libdir | --libdi | --libd)
  901. ac_prev=libdir ;;
  902. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  903. libdir=$ac_optarg ;;
  904. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  905. | --libexe | --libex | --libe)
  906. ac_prev=libexecdir ;;
  907. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  908. | --libexe=* | --libex=* | --libe=*)
  909. libexecdir=$ac_optarg ;;
  910. -localedir | --localedir | --localedi | --localed | --locale)
  911. ac_prev=localedir ;;
  912. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  913. localedir=$ac_optarg ;;
  914. -localstatedir | --localstatedir | --localstatedi | --localstated \
  915. | --localstate | --localstat | --localsta | --localst | --locals)
  916. ac_prev=localstatedir ;;
  917. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  918. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  919. localstatedir=$ac_optarg ;;
  920. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  921. ac_prev=mandir ;;
  922. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  923. mandir=$ac_optarg ;;
  924. -nfp | --nfp | --nf)
  925. # Obsolete; use --without-fp.
  926. with_fp=no ;;
  927. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  928. | --no-cr | --no-c | -n)
  929. no_create=yes ;;
  930. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  931. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  932. no_recursion=yes ;;
  933. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  934. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  935. | --oldin | --oldi | --old | --ol | --o)
  936. ac_prev=oldincludedir ;;
  937. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  938. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  939. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  940. oldincludedir=$ac_optarg ;;
  941. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  942. ac_prev=prefix ;;
  943. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  944. prefix=$ac_optarg ;;
  945. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  946. | --program-pre | --program-pr | --program-p)
  947. ac_prev=program_prefix ;;
  948. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  949. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  950. program_prefix=$ac_optarg ;;
  951. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  952. | --program-suf | --program-su | --program-s)
  953. ac_prev=program_suffix ;;
  954. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  955. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  956. program_suffix=$ac_optarg ;;
  957. -program-transform-name | --program-transform-name \
  958. | --program-transform-nam | --program-transform-na \
  959. | --program-transform-n | --program-transform- \
  960. | --program-transform | --program-transfor \
  961. | --program-transfo | --program-transf \
  962. | --program-trans | --program-tran \
  963. | --progr-tra | --program-tr | --program-t)
  964. ac_prev=program_transform_name ;;
  965. -program-transform-name=* | --program-transform-name=* \
  966. | --program-transform-nam=* | --program-transform-na=* \
  967. | --program-transform-n=* | --program-transform-=* \
  968. | --program-transform=* | --program-transfor=* \
  969. | --program-transfo=* | --program-transf=* \
  970. | --program-trans=* | --program-tran=* \
  971. | --progr-tra=* | --program-tr=* | --program-t=*)
  972. program_transform_name=$ac_optarg ;;
  973. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  974. ac_prev=pdfdir ;;
  975. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  976. pdfdir=$ac_optarg ;;
  977. -psdir | --psdir | --psdi | --psd | --ps)
  978. ac_prev=psdir ;;
  979. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  980. psdir=$ac_optarg ;;
  981. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  982. | -silent | --silent | --silen | --sile | --sil)
  983. silent=yes ;;
  984. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  985. ac_prev=sbindir ;;
  986. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  987. | --sbi=* | --sb=*)
  988. sbindir=$ac_optarg ;;
  989. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  990. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  991. | --sharedst | --shareds | --shared | --share | --shar \
  992. | --sha | --sh)
  993. ac_prev=sharedstatedir ;;
  994. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  995. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  996. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  997. | --sha=* | --sh=*)
  998. sharedstatedir=$ac_optarg ;;
  999. -site | --site | --sit)
  1000. ac_prev=site ;;
  1001. -site=* | --site=* | --sit=*)
  1002. site=$ac_optarg ;;
  1003. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1004. ac_prev=srcdir ;;
  1005. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1006. srcdir=$ac_optarg ;;
  1007. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1008. | --syscon | --sysco | --sysc | --sys | --sy)
  1009. ac_prev=sysconfdir ;;
  1010. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1011. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1012. sysconfdir=$ac_optarg ;;
  1013. -target | --target | --targe | --targ | --tar | --ta | --t)
  1014. ac_prev=target_alias ;;
  1015. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1016. target_alias=$ac_optarg ;;
  1017. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1018. verbose=yes ;;
  1019. -version | --version | --versio | --versi | --vers | -V)
  1020. ac_init_version=: ;;
  1021. -with-* | --with-*)
  1022. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1023. # Reject names that are not valid shell variable names.
  1024. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1025. as_fn_error $? "invalid package name: $ac_useropt"
  1026. ac_useropt_orig=$ac_useropt
  1027. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1028. case $ac_user_opts in
  1029. *"
  1030. "with_$ac_useropt"
  1031. "*) ;;
  1032. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1033. ac_unrecognized_sep=', ';;
  1034. esac
  1035. eval with_$ac_useropt=\$ac_optarg ;;
  1036. -without-* | --without-*)
  1037. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1038. # Reject names that are not valid shell variable names.
  1039. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1040. as_fn_error $? "invalid package name: $ac_useropt"
  1041. ac_useropt_orig=$ac_useropt
  1042. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1043. case $ac_user_opts in
  1044. *"
  1045. "with_$ac_useropt"
  1046. "*) ;;
  1047. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1048. ac_unrecognized_sep=', ';;
  1049. esac
  1050. eval with_$ac_useropt=no ;;
  1051. --x)
  1052. # Obsolete; use --with-x.
  1053. with_x=yes ;;
  1054. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1055. | --x-incl | --x-inc | --x-in | --x-i)
  1056. ac_prev=x_includes ;;
  1057. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1058. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1059. x_includes=$ac_optarg ;;
  1060. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1061. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1062. ac_prev=x_libraries ;;
  1063. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1064. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1065. x_libraries=$ac_optarg ;;
  1066. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1067. Try \`$0 --help' for more information"
  1068. ;;
  1069. *=*)
  1070. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1071. # Reject names that are not valid shell variable names.
  1072. case $ac_envvar in #(
  1073. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1074. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1075. esac
  1076. eval $ac_envvar=\$ac_optarg
  1077. export $ac_envvar ;;
  1078. *)
  1079. # FIXME: should be removed in autoconf 3.0.
  1080. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1081. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1082. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1083. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1084. ;;
  1085. esac
  1086. done
  1087. if test -n "$ac_prev"; then
  1088. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1089. as_fn_error $? "missing argument to $ac_option"
  1090. fi
  1091. if test -n "$ac_unrecognized_opts"; then
  1092. case $enable_option_checking in
  1093. no) ;;
  1094. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1095. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1096. esac
  1097. fi
  1098. # Check all directory arguments for consistency.
  1099. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1100. datadir sysconfdir sharedstatedir localstatedir includedir \
  1101. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1102. libdir localedir mandir
  1103. do
  1104. eval ac_val=\$$ac_var
  1105. # Remove trailing slashes.
  1106. case $ac_val in
  1107. */ )
  1108. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1109. eval $ac_var=\$ac_val;;
  1110. esac
  1111. # Be sure to have absolute directory names.
  1112. case $ac_val in
  1113. [\\/$]* | ?:[\\/]* ) continue;;
  1114. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1115. esac
  1116. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1117. done
  1118. # There might be people who depend on the old broken behavior: `$host'
  1119. # used to hold the argument of --host etc.
  1120. # FIXME: To remove some day.
  1121. build=$build_alias
  1122. host=$host_alias
  1123. target=$target_alias
  1124. # FIXME: To remove some day.
  1125. if test "x$host_alias" != x; then
  1126. if test "x$build_alias" = x; then
  1127. cross_compiling=maybe
  1128. elif test "x$build_alias" != "x$host_alias"; then
  1129. cross_compiling=yes
  1130. fi
  1131. fi
  1132. ac_tool_prefix=
  1133. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1134. test "$silent" = yes && exec 6>/dev/null
  1135. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1136. ac_ls_di=`ls -di .` &&
  1137. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1138. as_fn_error $? "working directory cannot be determined"
  1139. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1140. as_fn_error $? "pwd does not report name of working directory"
  1141. # Find the source files, if location was not specified.
  1142. if test -z "$srcdir"; then
  1143. ac_srcdir_defaulted=yes
  1144. # Try the directory containing this script, then the parent directory.
  1145. ac_confdir=`$as_dirname -- "$as_myself" ||
  1146. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1147. X"$as_myself" : 'X\(//\)[^/]' \| \
  1148. X"$as_myself" : 'X\(//\)$' \| \
  1149. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1150. $as_echo X"$as_myself" |
  1151. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1152. s//\1/
  1153. q
  1154. }
  1155. /^X\(\/\/\)[^/].*/{
  1156. s//\1/
  1157. q
  1158. }
  1159. /^X\(\/\/\)$/{
  1160. s//\1/
  1161. q
  1162. }
  1163. /^X\(\/\).*/{
  1164. s//\1/
  1165. q
  1166. }
  1167. s/.*/./; q'`
  1168. srcdir=$ac_confdir
  1169. if test ! -r "$srcdir/$ac_unique_file"; then
  1170. srcdir=..
  1171. fi
  1172. else
  1173. ac_srcdir_defaulted=no
  1174. fi
  1175. if test ! -r "$srcdir/$ac_unique_file"; then
  1176. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1177. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1178. fi
  1179. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1180. ac_abs_confdir=`(
  1181. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1182. pwd)`
  1183. # When building in place, set srcdir=.
  1184. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1185. srcdir=.
  1186. fi
  1187. # Remove unnecessary trailing slashes from srcdir.
  1188. # Double slashes in file names in object file debugging info
  1189. # mess up M-x gdb in Emacs.
  1190. case $srcdir in
  1191. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1192. esac
  1193. for ac_var in $ac_precious_vars; do
  1194. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1195. eval ac_env_${ac_var}_value=\$${ac_var}
  1196. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1197. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1198. done
  1199. #
  1200. # Report the --help message.
  1201. #
  1202. if test "$ac_init_help" = "long"; then
  1203. # Omit some internal or obsolete options to make the list less imposing.
  1204. # This message is too long to be a string in the A/UX 3.1 sh.
  1205. cat <<_ACEOF
  1206. \`configure' configures luksmeta 8 to adapt to many kinds of systems.
  1207. Usage: $0 [OPTION]... [VAR=VALUE]...
  1208. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1209. VAR=VALUE. See below for descriptions of some of the useful variables.
  1210. Defaults for the options are specified in brackets.
  1211. Configuration:
  1212. -h, --help display this help and exit
  1213. --help=short display options specific to this package
  1214. --help=recursive display the short help of all the included packages
  1215. -V, --version display version information and exit
  1216. -q, --quiet, --silent do not print \`checking ...' messages
  1217. --cache-file=FILE cache test results in FILE [disabled]
  1218. -C, --config-cache alias for \`--cache-file=config.cache'
  1219. -n, --no-create do not create output files
  1220. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1221. Installation directories:
  1222. --prefix=PREFIX install architecture-independent files in PREFIX
  1223. [$ac_default_prefix]
  1224. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1225. [PREFIX]
  1226. By default, \`make install' will install all the files in
  1227. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1228. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1229. for instance \`--prefix=\$HOME'.
  1230. For better control, use the options below.
  1231. Fine tuning of the installation directories:
  1232. --bindir=DIR user executables [EPREFIX/bin]
  1233. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1234. --libexecdir=DIR program executables [EPREFIX/libexec]
  1235. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1236. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1237. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1238. --libdir=DIR object code libraries [EPREFIX/lib]
  1239. --includedir=DIR C header files [PREFIX/include]
  1240. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1241. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1242. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1243. --infodir=DIR info documentation [DATAROOTDIR/info]
  1244. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1245. --mandir=DIR man documentation [DATAROOTDIR/man]
  1246. --docdir=DIR documentation root [DATAROOTDIR/doc/luksmeta]
  1247. --htmldir=DIR html documentation [DOCDIR]
  1248. --dvidir=DIR dvi documentation [DOCDIR]
  1249. --pdfdir=DIR pdf documentation [DOCDIR]
  1250. --psdir=DIR ps documentation [DOCDIR]
  1251. _ACEOF
  1252. cat <<\_ACEOF
  1253. Program names:
  1254. --program-prefix=PREFIX prepend PREFIX to installed program names
  1255. --program-suffix=SUFFIX append SUFFIX to installed program names
  1256. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1257. System types:
  1258. --build=BUILD configure for building on BUILD [guessed]
  1259. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1260. --target=TARGET configure for building compilers for TARGET [HOST]
  1261. _ACEOF
  1262. fi
  1263. if test -n "$ac_init_help"; then
  1264. case $ac_init_help in
  1265. short | recursive ) echo "Configuration of luksmeta 8:";;
  1266. esac
  1267. cat <<\_ACEOF
  1268. Optional Features:
  1269. --disable-option-checking ignore unrecognized --enable/--with options
  1270. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1271. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1272. --enable-dependency-tracking
  1273. do not reject slow dependency extractors
  1274. --disable-dependency-tracking
  1275. speeds up one-time build
  1276. --enable-silent-rules less verbose build output (undo: "make V=1")
  1277. --disable-silent-rules verbose build output (undo: "make V=0")
  1278. --enable-static[=PKGS] build static libraries [default=no]
  1279. --enable-shared[=PKGS] build shared libraries [default=yes]
  1280. --enable-fast-install[=PKGS]
  1281. optimize for fast installation [default=yes]
  1282. --disable-libtool-lock avoid locking (might break parallel builds)
  1283. Optional Packages:
  1284. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1285. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1286. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1287. both]
  1288. --with-aix-soname=aix|svr4|both
  1289. shared library versioning (aka "SONAME") variant to
  1290. provide on AIX, [default=aix].
  1291. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1292. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1293. compiler's sysroot if not specified).
  1294. Some influential environment variables:
  1295. CC C compiler command
  1296. CFLAGS C compiler flags
  1297. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1298. nonstandard directory <lib dir>
  1299. LIBS libraries to pass to the linker, e.g. -l<library>
  1300. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1301. you have headers in a nonstandard directory <include dir>
  1302. LT_SYS_LIBRARY_PATH
  1303. User-defined run-time library search path.
  1304. CPP C preprocessor
  1305. PKG_CONFIG path to pkg-config utility
  1306. PKG_CONFIG_PATH
  1307. directories to add to pkg-config's search path
  1308. PKG_CONFIG_LIBDIR
  1309. path overriding pkg-config's built-in search path
  1310. cryptsetup_CFLAGS
  1311. C compiler flags for cryptsetup, overriding pkg-config
  1312. cryptsetup_LIBS
  1313. linker flags for cryptsetup, overriding pkg-config
  1314. Use these variables to override the choices made by `configure' or to help
  1315. it to find libraries and programs with nonstandard names/locations.
  1316. Report bugs to the package provider.
  1317. _ACEOF
  1318. ac_status=$?
  1319. fi
  1320. if test "$ac_init_help" = "recursive"; then
  1321. # If there are subdirs, report their specific --help.
  1322. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1323. test -d "$ac_dir" ||
  1324. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1325. continue
  1326. ac_builddir=.
  1327. case "$ac_dir" in
  1328. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1329. *)
  1330. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1331. # A ".." for each directory in $ac_dir_suffix.
  1332. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1333. case $ac_top_builddir_sub in
  1334. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1335. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1336. esac ;;
  1337. esac
  1338. ac_abs_top_builddir=$ac_pwd
  1339. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1340. # for backward compatibility:
  1341. ac_top_builddir=$ac_top_build_prefix
  1342. case $srcdir in
  1343. .) # We are building in place.
  1344. ac_srcdir=.
  1345. ac_top_srcdir=$ac_top_builddir_sub
  1346. ac_abs_top_srcdir=$ac_pwd ;;
  1347. [\\/]* | ?:[\\/]* ) # Absolute name.
  1348. ac_srcdir=$srcdir$ac_dir_suffix;
  1349. ac_top_srcdir=$srcdir
  1350. ac_abs_top_srcdir=$srcdir ;;
  1351. *) # Relative name.
  1352. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1353. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1354. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1355. esac
  1356. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1357. cd "$ac_dir" || { ac_status=$?; continue; }
  1358. # Check for guested configure.
  1359. if test -f "$ac_srcdir/configure.gnu"; then
  1360. echo &&
  1361. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1362. elif test -f "$ac_srcdir/configure"; then
  1363. echo &&
  1364. $SHELL "$ac_srcdir/configure" --help=recursive
  1365. else
  1366. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1367. fi || ac_status=$?
  1368. cd "$ac_pwd" || { ac_status=$?; break; }
  1369. done
  1370. fi
  1371. test -n "$ac_init_help" && exit $ac_status
  1372. if $ac_init_version; then
  1373. cat <<\_ACEOF
  1374. luksmeta configure 8
  1375. generated by GNU Autoconf 2.69
  1376. Copyright (C) 2012 Free Software Foundation, Inc.
  1377. This configure script is free software; the Free Software Foundation
  1378. gives unlimited permission to copy, distribute and modify it.
  1379. _ACEOF
  1380. exit
  1381. fi
  1382. ## ------------------------ ##
  1383. ## Autoconf initialization. ##
  1384. ## ------------------------ ##
  1385. # ac_fn_c_try_compile LINENO
  1386. # --------------------------
  1387. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1388. ac_fn_c_try_compile ()
  1389. {
  1390. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1391. rm -f conftest.$ac_objext
  1392. if { { ac_try="$ac_compile"
  1393. case "(($ac_try" in
  1394. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1395. *) ac_try_echo=$ac_try;;
  1396. esac
  1397. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1398. $as_echo "$ac_try_echo"; } >&5
  1399. (eval "$ac_compile") 2>conftest.err
  1400. ac_status=$?
  1401. if test -s conftest.err; then
  1402. grep -v '^ *+' conftest.err >conftest.er1
  1403. cat conftest.er1 >&5
  1404. mv -f conftest.er1 conftest.err
  1405. fi
  1406. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1407. test $ac_status = 0; } && {
  1408. test -z "$ac_c_werror_flag" ||
  1409. test ! -s conftest.err
  1410. } && test -s conftest.$ac_objext; then :
  1411. ac_retval=0
  1412. else
  1413. $as_echo "$as_me: failed program was:" >&5
  1414. sed 's/^/| /' conftest.$ac_ext >&5
  1415. ac_retval=1
  1416. fi
  1417. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1418. as_fn_set_status $ac_retval
  1419. } # ac_fn_c_try_compile
  1420. # ac_fn_c_try_link LINENO
  1421. # -----------------------
  1422. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1423. ac_fn_c_try_link ()
  1424. {
  1425. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1426. rm -f conftest.$ac_objext conftest$ac_exeext
  1427. if { { ac_try="$ac_link"
  1428. case "(($ac_try" in
  1429. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1430. *) ac_try_echo=$ac_try;;
  1431. esac
  1432. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1433. $as_echo "$ac_try_echo"; } >&5
  1434. (eval "$ac_link") 2>conftest.err
  1435. ac_status=$?
  1436. if test -s conftest.err; then
  1437. grep -v '^ *+' conftest.err >conftest.er1
  1438. cat conftest.er1 >&5
  1439. mv -f conftest.er1 conftest.err
  1440. fi
  1441. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1442. test $ac_status = 0; } && {
  1443. test -z "$ac_c_werror_flag" ||
  1444. test ! -s conftest.err
  1445. } && test -s conftest$ac_exeext && {
  1446. test "$cross_compiling" = yes ||
  1447. test -x conftest$ac_exeext
  1448. }; then :
  1449. ac_retval=0
  1450. else
  1451. $as_echo "$as_me: failed program was:" >&5
  1452. sed 's/^/| /' conftest.$ac_ext >&5
  1453. ac_retval=1
  1454. fi
  1455. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1456. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1457. # interfere with the next link command; also delete a directory that is
  1458. # left behind by Apple's compiler. We do this before executing the actions.
  1459. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1460. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1461. as_fn_set_status $ac_retval
  1462. } # ac_fn_c_try_link
  1463. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1464. # -------------------------------------------------------
  1465. # Tests whether HEADER exists and can be compiled using the include files in
  1466. # INCLUDES, setting the cache variable VAR accordingly.
  1467. ac_fn_c_check_header_compile ()
  1468. {
  1469. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1471. $as_echo_n "checking for $2... " >&6; }
  1472. if eval \${$3+:} false; then :
  1473. $as_echo_n "(cached) " >&6
  1474. else
  1475. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1476. /* end confdefs.h. */
  1477. $4
  1478. #include <$2>
  1479. _ACEOF
  1480. if ac_fn_c_try_compile "$LINENO"; then :
  1481. eval "$3=yes"
  1482. else
  1483. eval "$3=no"
  1484. fi
  1485. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1486. fi
  1487. eval ac_res=\$$3
  1488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1489. $as_echo "$ac_res" >&6; }
  1490. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1491. } # ac_fn_c_check_header_compile
  1492. # ac_fn_c_try_cpp LINENO
  1493. # ----------------------
  1494. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1495. ac_fn_c_try_cpp ()
  1496. {
  1497. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1498. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1499. case "(($ac_try" in
  1500. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1501. *) ac_try_echo=$ac_try;;
  1502. esac
  1503. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1504. $as_echo "$ac_try_echo"; } >&5
  1505. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1506. ac_status=$?
  1507. if test -s conftest.err; then
  1508. grep -v '^ *+' conftest.err >conftest.er1
  1509. cat conftest.er1 >&5
  1510. mv -f conftest.er1 conftest.err
  1511. fi
  1512. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1513. test $ac_status = 0; } > conftest.i && {
  1514. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1515. test ! -s conftest.err
  1516. }; then :
  1517. ac_retval=0
  1518. else
  1519. $as_echo "$as_me: failed program was:" >&5
  1520. sed 's/^/| /' conftest.$ac_ext >&5
  1521. ac_retval=1
  1522. fi
  1523. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1524. as_fn_set_status $ac_retval
  1525. } # ac_fn_c_try_cpp
  1526. # ac_fn_c_try_run LINENO
  1527. # ----------------------
  1528. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1529. # that executables *can* be run.
  1530. ac_fn_c_try_run ()
  1531. {
  1532. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1533. if { { ac_try="$ac_link"
  1534. case "(($ac_try" in
  1535. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1536. *) ac_try_echo=$ac_try;;
  1537. esac
  1538. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1539. $as_echo "$ac_try_echo"; } >&5
  1540. (eval "$ac_link") 2>&5
  1541. ac_status=$?
  1542. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1543. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1544. { { case "(($ac_try" in
  1545. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1546. *) ac_try_echo=$ac_try;;
  1547. esac
  1548. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1549. $as_echo "$ac_try_echo"; } >&5
  1550. (eval "$ac_try") 2>&5
  1551. ac_status=$?
  1552. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1553. test $ac_status = 0; }; }; then :
  1554. ac_retval=0
  1555. else
  1556. $as_echo "$as_me: program exited with status $ac_status" >&5
  1557. $as_echo "$as_me: failed program was:" >&5
  1558. sed 's/^/| /' conftest.$ac_ext >&5
  1559. ac_retval=$ac_status
  1560. fi
  1561. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1562. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1563. as_fn_set_status $ac_retval
  1564. } # ac_fn_c_try_run
  1565. # ac_fn_c_check_func LINENO FUNC VAR
  1566. # ----------------------------------
  1567. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1568. ac_fn_c_check_func ()
  1569. {
  1570. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1572. $as_echo_n "checking for $2... " >&6; }
  1573. if eval \${$3+:} false; then :
  1574. $as_echo_n "(cached) " >&6
  1575. else
  1576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1577. /* end confdefs.h. */
  1578. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1579. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1580. #define $2 innocuous_$2
  1581. /* System header to define __stub macros and hopefully few prototypes,
  1582. which can conflict with char $2 (); below.
  1583. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1584. <limits.h> exists even on freestanding compilers. */
  1585. #ifdef __STDC__
  1586. # include <limits.h>
  1587. #else
  1588. # include <assert.h>
  1589. #endif
  1590. #undef $2
  1591. /* Override any GCC internal prototype to avoid an error.
  1592. Use char because int might match the return type of a GCC
  1593. builtin and then its argument prototype would still apply. */
  1594. #ifdef __cplusplus
  1595. extern "C"
  1596. #endif
  1597. char $2 ();
  1598. /* The GNU C library defines this for functions which it implements
  1599. to always fail with ENOSYS. Some functions are actually named
  1600. something starting with __ and the normal name is an alias. */
  1601. #if defined __stub_$2 || defined __stub___$2
  1602. choke me
  1603. #endif
  1604. int
  1605. main ()
  1606. {
  1607. return $2 ();
  1608. ;
  1609. return 0;
  1610. }
  1611. _ACEOF
  1612. if ac_fn_c_try_link "$LINENO"; then :
  1613. eval "$3=yes"
  1614. else
  1615. eval "$3=no"
  1616. fi
  1617. rm -f core conftest.err conftest.$ac_objext \
  1618. conftest$ac_exeext conftest.$ac_ext
  1619. fi
  1620. eval ac_res=\$$3
  1621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1622. $as_echo "$ac_res" >&6; }
  1623. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1624. } # ac_fn_c_check_func
  1625. cat >config.log <<_ACEOF
  1626. This file contains any messages produced by compilers while
  1627. running configure, to aid debugging if configure makes a mistake.
  1628. It was created by luksmeta $as_me 8, which was
  1629. generated by GNU Autoconf 2.69. Invocation command line was
  1630. $ $0 $@
  1631. _ACEOF
  1632. exec 5>>config.log
  1633. {
  1634. cat <<_ASUNAME
  1635. ## --------- ##
  1636. ## Platform. ##
  1637. ## --------- ##
  1638. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1639. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1640. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1641. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1642. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1643. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1644. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1645. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1646. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1647. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1648. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1649. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1650. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1651. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1652. _ASUNAME
  1653. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1654. for as_dir in $PATH
  1655. do
  1656. IFS=$as_save_IFS
  1657. test -z "$as_dir" && as_dir=.
  1658. $as_echo "PATH: $as_dir"
  1659. done
  1660. IFS=$as_save_IFS
  1661. } >&5
  1662. cat >&5 <<_ACEOF
  1663. ## ----------- ##
  1664. ## Core tests. ##
  1665. ## ----------- ##
  1666. _ACEOF
  1667. # Keep a trace of the command line.
  1668. # Strip out --no-create and --no-recursion so they do not pile up.
  1669. # Strip out --silent because we don't want to record it for future runs.
  1670. # Also quote any args containing shell meta-characters.
  1671. # Make two passes to allow for proper duplicate-argument suppression.
  1672. ac_configure_args=
  1673. ac_configure_args0=
  1674. ac_configure_args1=
  1675. ac_must_keep_next=false
  1676. for ac_pass in 1 2
  1677. do
  1678. for ac_arg
  1679. do
  1680. case $ac_arg in
  1681. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1682. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1683. | -silent | --silent | --silen | --sile | --sil)
  1684. continue ;;
  1685. *\'*)
  1686. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1687. esac
  1688. case $ac_pass in
  1689. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1690. 2)
  1691. as_fn_append ac_configure_args1 " '$ac_arg'"
  1692. if test $ac_must_keep_next = true; then
  1693. ac_must_keep_next=false # Got value, back to normal.
  1694. else
  1695. case $ac_arg in
  1696. *=* | --config-cache | -C | -disable-* | --disable-* \
  1697. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1698. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1699. | -with-* | --with-* | -without-* | --without-* | --x)
  1700. case "$ac_configure_args0 " in
  1701. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1702. esac
  1703. ;;
  1704. -* ) ac_must_keep_next=true ;;
  1705. esac
  1706. fi
  1707. as_fn_append ac_configure_args " '$ac_arg'"
  1708. ;;
  1709. esac
  1710. done
  1711. done
  1712. { ac_configure_args0=; unset ac_configure_args0;}
  1713. { ac_configure_args1=; unset ac_configure_args1;}
  1714. # When interrupted or exit'd, cleanup temporary files, and complete
  1715. # config.log. We remove comments because anyway the quotes in there
  1716. # would cause problems or look ugly.
  1717. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1718. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1719. trap 'exit_status=$?
  1720. # Save into config.log some information that might help in debugging.
  1721. {
  1722. echo
  1723. $as_echo "## ---------------- ##
  1724. ## Cache variables. ##
  1725. ## ---------------- ##"
  1726. echo
  1727. # The following way of writing the cache mishandles newlines in values,
  1728. (
  1729. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1730. eval ac_val=\$$ac_var
  1731. case $ac_val in #(
  1732. *${as_nl}*)
  1733. case $ac_var in #(
  1734. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1735. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1736. esac
  1737. case $ac_var in #(
  1738. _ | IFS | as_nl) ;; #(
  1739. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1740. *) { eval $ac_var=; unset $ac_var;} ;;
  1741. esac ;;
  1742. esac
  1743. done
  1744. (set) 2>&1 |
  1745. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1746. *${as_nl}ac_space=\ *)
  1747. sed -n \
  1748. "s/'\''/'\''\\\\'\'''\''/g;
  1749. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1750. ;; #(
  1751. *)
  1752. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1753. ;;
  1754. esac |
  1755. sort
  1756. )
  1757. echo
  1758. $as_echo "## ----------------- ##
  1759. ## Output variables. ##
  1760. ## ----------------- ##"
  1761. echo
  1762. for ac_var in $ac_subst_vars
  1763. do
  1764. eval ac_val=\$$ac_var
  1765. case $ac_val in
  1766. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1767. esac
  1768. $as_echo "$ac_var='\''$ac_val'\''"
  1769. done | sort
  1770. echo
  1771. if test -n "$ac_subst_files"; then
  1772. $as_echo "## ------------------- ##
  1773. ## File substitutions. ##
  1774. ## ------------------- ##"
  1775. echo
  1776. for ac_var in $ac_subst_files
  1777. do
  1778. eval ac_val=\$$ac_var
  1779. case $ac_val in
  1780. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1781. esac
  1782. $as_echo "$ac_var='\''$ac_val'\''"
  1783. done | sort
  1784. echo
  1785. fi
  1786. if test -s confdefs.h; then
  1787. $as_echo "## ----------- ##
  1788. ## confdefs.h. ##
  1789. ## ----------- ##"
  1790. echo
  1791. cat confdefs.h
  1792. echo
  1793. fi
  1794. test "$ac_signal" != 0 &&
  1795. $as_echo "$as_me: caught signal $ac_signal"
  1796. $as_echo "$as_me: exit $exit_status"
  1797. } >&5
  1798. rm -f core *.core core.conftest.* &&
  1799. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1800. exit $exit_status
  1801. ' 0
  1802. for ac_signal in 1 2 13 15; do
  1803. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1804. done
  1805. ac_signal=0
  1806. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1807. rm -f -r conftest* confdefs.h
  1808. $as_echo "/* confdefs.h */" > confdefs.h
  1809. # Predefined preprocessor variables.
  1810. cat >>confdefs.h <<_ACEOF
  1811. #define PACKAGE_NAME "$PACKAGE_NAME"
  1812. _ACEOF
  1813. cat >>confdefs.h <<_ACEOF
  1814. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1815. _ACEOF
  1816. cat >>confdefs.h <<_ACEOF
  1817. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1818. _ACEOF
  1819. cat >>confdefs.h <<_ACEOF
  1820. #define PACKAGE_STRING "$PACKAGE_STRING"
  1821. _ACEOF
  1822. cat >>confdefs.h <<_ACEOF
  1823. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1824. _ACEOF
  1825. cat >>confdefs.h <<_ACEOF
  1826. #define PACKAGE_URL "$PACKAGE_URL"
  1827. _ACEOF
  1828. # Let the site file select an alternate cache file if it wants to.
  1829. # Prefer an explicitly selected file to automatically selected ones.
  1830. ac_site_file1=NONE
  1831. ac_site_file2=NONE
  1832. if test -n "$CONFIG_SITE"; then
  1833. # We do not want a PATH search for config.site.
  1834. case $CONFIG_SITE in #((
  1835. -*) ac_site_file1=./$CONFIG_SITE;;
  1836. */*) ac_site_file1=$CONFIG_SITE;;
  1837. *) ac_site_file1=./$CONFIG_SITE;;
  1838. esac
  1839. elif test "x$prefix" != xNONE; then
  1840. ac_site_file1=$prefix/share/config.site
  1841. ac_site_file2=$prefix/etc/config.site
  1842. else
  1843. ac_site_file1=$ac_default_prefix/share/config.site
  1844. ac_site_file2=$ac_default_prefix/etc/config.site
  1845. fi
  1846. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1847. do
  1848. test "x$ac_site_file" = xNONE && continue
  1849. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1850. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1851. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1852. sed 's/^/| /' "$ac_site_file" >&5
  1853. . "$ac_site_file" \
  1854. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1855. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1856. as_fn_error $? "failed to load site script $ac_site_file
  1857. See \`config.log' for more details" "$LINENO" 5; }
  1858. fi
  1859. done
  1860. if test -r "$cache_file"; then
  1861. # Some versions of bash will fail to source /dev/null (special files
  1862. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1863. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1864. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1865. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1866. case $cache_file in
  1867. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1868. *) . "./$cache_file";;
  1869. esac
  1870. fi
  1871. else
  1872. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1873. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1874. >$cache_file
  1875. fi
  1876. # Check that the precious variables saved in the cache have kept the same
  1877. # value.
  1878. ac_cache_corrupted=false
  1879. for ac_var in $ac_precious_vars; do
  1880. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1881. eval ac_new_set=\$ac_env_${ac_var}_set
  1882. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1883. eval ac_new_val=\$ac_env_${ac_var}_value
  1884. case $ac_old_set,$ac_new_set in
  1885. set,)
  1886. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1887. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1888. ac_cache_corrupted=: ;;
  1889. ,set)
  1890. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1891. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1892. ac_cache_corrupted=: ;;
  1893. ,);;
  1894. *)
  1895. if test "x$ac_old_val" != "x$ac_new_val"; then
  1896. # differences in whitespace do not lead to failure.
  1897. ac_old_val_w=`echo x $ac_old_val`
  1898. ac_new_val_w=`echo x $ac_new_val`
  1899. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1900. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1901. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1902. ac_cache_corrupted=:
  1903. else
  1904. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1905. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1906. eval $ac_var=\$ac_old_val
  1907. fi
  1908. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1909. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1910. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1911. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1912. fi;;
  1913. esac
  1914. # Pass precious variables to config.status.
  1915. if test "$ac_new_set" = set; then
  1916. case $ac_new_val in
  1917. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1918. *) ac_arg=$ac_var=$ac_new_val ;;
  1919. esac
  1920. case " $ac_configure_args " in
  1921. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1922. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1923. esac
  1924. fi
  1925. done
  1926. if $ac_cache_corrupted; then
  1927. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1928. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1929. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1930. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1931. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1932. fi
  1933. ## -------------------- ##
  1934. ## Main body of script. ##
  1935. ## -------------------- ##
  1936. ac_ext=c
  1937. ac_cpp='$CPP $CPPFLAGS'
  1938. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1939. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1940. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1941. ac_aux_dir=
  1942. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1943. if test -f "$ac_dir/install-sh"; then
  1944. ac_aux_dir=$ac_dir
  1945. ac_install_sh="$ac_aux_dir/install-sh -c"
  1946. break
  1947. elif test -f "$ac_dir/install.sh"; then
  1948. ac_aux_dir=$ac_dir
  1949. ac_install_sh="$ac_aux_dir/install.sh -c"
  1950. break
  1951. elif test -f "$ac_dir/shtool"; then
  1952. ac_aux_dir=$ac_dir
  1953. ac_install_sh="$ac_aux_dir/shtool install -c"
  1954. break
  1955. fi
  1956. done
  1957. if test -z "$ac_aux_dir"; then
  1958. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  1959. fi
  1960. # These three variables are undocumented and unsupported,
  1961. # and are intended to be withdrawn in a future Autoconf release.
  1962. # They can cause serious problems if a builder's source tree is in a directory
  1963. # whose full name contains unusual characters.
  1964. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1965. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1966. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1967. # Make sure we can run config.sub.
  1968. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1969. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  1970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  1971. $as_echo_n "checking build system type... " >&6; }
  1972. if ${ac_cv_build+:} false; then :
  1973. $as_echo_n "(cached) " >&6
  1974. else
  1975. ac_build_alias=$build_alias
  1976. test "x$ac_build_alias" = x &&
  1977. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1978. test "x$ac_build_alias" = x &&
  1979. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  1980. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1981. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  1982. fi
  1983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  1984. $as_echo "$ac_cv_build" >&6; }
  1985. case $ac_cv_build in
  1986. *-*-*) ;;
  1987. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  1988. esac
  1989. build=$ac_cv_build
  1990. ac_save_IFS=$IFS; IFS='-'
  1991. set x $ac_cv_build
  1992. shift
  1993. build_cpu=$1
  1994. build_vendor=$2
  1995. shift; shift
  1996. # Remember, the first character of IFS is used to create $*,
  1997. # except with old shells:
  1998. build_os=$*
  1999. IFS=$ac_save_IFS
  2000. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2002. $as_echo_n "checking host system type... " >&6; }
  2003. if ${ac_cv_host+:} false; then :
  2004. $as_echo_n "(cached) " >&6
  2005. else
  2006. if test "x$host_alias" = x; then
  2007. ac_cv_host=$ac_cv_build
  2008. else
  2009. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2010. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2011. fi
  2012. fi
  2013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2014. $as_echo "$ac_cv_host" >&6; }
  2015. case $ac_cv_host in
  2016. *-*-*) ;;
  2017. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2018. esac
  2019. host=$ac_cv_host
  2020. ac_save_IFS=$IFS; IFS='-'
  2021. set x $ac_cv_host
  2022. shift
  2023. host_cpu=$1
  2024. host_vendor=$2
  2025. shift; shift
  2026. # Remember, the first character of IFS is used to create $*,
  2027. # except with old shells:
  2028. host_os=$*
  2029. IFS=$ac_save_IFS
  2030. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2032. $as_echo_n "checking target system type... " >&6; }
  2033. if ${ac_cv_target+:} false; then :
  2034. $as_echo_n "(cached) " >&6
  2035. else
  2036. if test "x$target_alias" = x; then
  2037. ac_cv_target=$ac_cv_host
  2038. else
  2039. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2040. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2041. fi
  2042. fi
  2043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2044. $as_echo "$ac_cv_target" >&6; }
  2045. case $ac_cv_target in
  2046. *-*-*) ;;
  2047. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2048. esac
  2049. target=$ac_cv_target
  2050. ac_save_IFS=$IFS; IFS='-'
  2051. set x $ac_cv_target
  2052. shift
  2053. target_cpu=$1
  2054. target_vendor=$2
  2055. shift; shift
  2056. # Remember, the first character of IFS is used to create $*,
  2057. # except with old shells:
  2058. target_os=$*
  2059. IFS=$ac_save_IFS
  2060. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2061. # The aliases save the names the user supplied, while $host etc.
  2062. # will get canonicalized.
  2063. test -n "$target_alias" &&
  2064. test "$program_prefix$program_suffix$program_transform_name" = \
  2065. NONENONEs,x,x, &&
  2066. program_prefix=${target_alias}-
  2067. # Expand $ac_aux_dir to an absolute path.
  2068. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2069. ac_ext=c
  2070. ac_cpp='$CPP $CPPFLAGS'
  2071. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2072. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2073. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2074. if test -n "$ac_tool_prefix"; then
  2075. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2076. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2078. $as_echo_n "checking for $ac_word... " >&6; }
  2079. if ${ac_cv_prog_CC+:} false; then :
  2080. $as_echo_n "(cached) " >&6
  2081. else
  2082. if test -n "$CC"; then
  2083. ac_cv_prog_CC="$CC" # Let the user override the test.
  2084. else
  2085. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2086. for as_dir in $PATH
  2087. do
  2088. IFS=$as_save_IFS
  2089. test -z "$as_dir" && as_dir=.
  2090. for ac_exec_ext in '' $ac_executable_extensions; do
  2091. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2092. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2093. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2094. break 2
  2095. fi
  2096. done
  2097. done
  2098. IFS=$as_save_IFS
  2099. fi
  2100. fi
  2101. CC=$ac_cv_prog_CC
  2102. if test -n "$CC"; then
  2103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2104. $as_echo "$CC" >&6; }
  2105. else
  2106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2107. $as_echo "no" >&6; }
  2108. fi
  2109. fi
  2110. if test -z "$ac_cv_prog_CC"; then
  2111. ac_ct_CC=$CC
  2112. # Extract the first word of "gcc", so it can be a program name with args.
  2113. set dummy gcc; ac_word=$2
  2114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2115. $as_echo_n "checking for $ac_word... " >&6; }
  2116. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2117. $as_echo_n "(cached) " >&6
  2118. else
  2119. if test -n "$ac_ct_CC"; then
  2120. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2121. else
  2122. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2123. for as_dir in $PATH
  2124. do
  2125. IFS=$as_save_IFS
  2126. test -z "$as_dir" && as_dir=.
  2127. for ac_exec_ext in '' $ac_executable_extensions; do
  2128. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2129. ac_cv_prog_ac_ct_CC="gcc"
  2130. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2131. break 2
  2132. fi
  2133. done
  2134. done
  2135. IFS=$as_save_IFS
  2136. fi
  2137. fi
  2138. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2139. if test -n "$ac_ct_CC"; then
  2140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2141. $as_echo "$ac_ct_CC" >&6; }
  2142. else
  2143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2144. $as_echo "no" >&6; }
  2145. fi
  2146. if test "x$ac_ct_CC" = x; then
  2147. CC=""
  2148. else
  2149. case $cross_compiling:$ac_tool_warned in
  2150. yes:)
  2151. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2152. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2153. ac_tool_warned=yes ;;
  2154. esac
  2155. CC=$ac_ct_CC
  2156. fi
  2157. else
  2158. CC="$ac_cv_prog_CC"
  2159. fi
  2160. if test -z "$CC"; then
  2161. if test -n "$ac_tool_prefix"; then
  2162. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2163. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2165. $as_echo_n "checking for $ac_word... " >&6; }
  2166. if ${ac_cv_prog_CC+:} false; then :
  2167. $as_echo_n "(cached) " >&6
  2168. else
  2169. if test -n "$CC"; then
  2170. ac_cv_prog_CC="$CC" # Let the user override the test.
  2171. else
  2172. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2173. for as_dir in $PATH
  2174. do
  2175. IFS=$as_save_IFS
  2176. test -z "$as_dir" && as_dir=.
  2177. for ac_exec_ext in '' $ac_executable_extensions; do
  2178. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2179. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2180. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2181. break 2
  2182. fi
  2183. done
  2184. done
  2185. IFS=$as_save_IFS
  2186. fi
  2187. fi
  2188. CC=$ac_cv_prog_CC
  2189. if test -n "$CC"; then
  2190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2191. $as_echo "$CC" >&6; }
  2192. else
  2193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2194. $as_echo "no" >&6; }
  2195. fi
  2196. fi
  2197. fi
  2198. if test -z "$CC"; then
  2199. # Extract the first word of "cc", so it can be a program name with args.
  2200. set dummy cc; ac_word=$2
  2201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2202. $as_echo_n "checking for $ac_word... " >&6; }
  2203. if ${ac_cv_prog_CC+:} false; then :
  2204. $as_echo_n "(cached) " >&6
  2205. else
  2206. if test -n "$CC"; then
  2207. ac_cv_prog_CC="$CC" # Let the user override the test.
  2208. else
  2209. ac_prog_rejected=no
  2210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2211. for as_dir in $PATH
  2212. do
  2213. IFS=$as_save_IFS
  2214. test -z "$as_dir" && as_dir=.
  2215. for ac_exec_ext in '' $ac_executable_extensions; do
  2216. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2217. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2218. ac_prog_rejected=yes
  2219. continue
  2220. fi
  2221. ac_cv_prog_CC="cc"
  2222. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2223. break 2
  2224. fi
  2225. done
  2226. done
  2227. IFS=$as_save_IFS
  2228. if test $ac_prog_rejected = yes; then
  2229. # We found a bogon in the path, so make sure we never use it.
  2230. set dummy $ac_cv_prog_CC
  2231. shift
  2232. if test $# != 0; then
  2233. # We chose a different compiler from the bogus one.
  2234. # However, it has the same basename, so the bogon will be chosen
  2235. # first if we set CC to just the basename; use the full file name.
  2236. shift
  2237. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2238. fi
  2239. fi
  2240. fi
  2241. fi
  2242. CC=$ac_cv_prog_CC
  2243. if test -n "$CC"; then
  2244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2245. $as_echo "$CC" >&6; }
  2246. else
  2247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2248. $as_echo "no" >&6; }
  2249. fi
  2250. fi
  2251. if test -z "$CC"; then
  2252. if test -n "$ac_tool_prefix"; then
  2253. for ac_prog in cl.exe
  2254. do
  2255. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2256. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2258. $as_echo_n "checking for $ac_word... " >&6; }
  2259. if ${ac_cv_prog_CC+:} false; then :
  2260. $as_echo_n "(cached) " >&6
  2261. else
  2262. if test -n "$CC"; then
  2263. ac_cv_prog_CC="$CC" # Let the user override the test.
  2264. else
  2265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2266. for as_dir in $PATH
  2267. do
  2268. IFS=$as_save_IFS
  2269. test -z "$as_dir" && as_dir=.
  2270. for ac_exec_ext in '' $ac_executable_extensions; do
  2271. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2272. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2273. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2274. break 2
  2275. fi
  2276. done
  2277. done
  2278. IFS=$as_save_IFS
  2279. fi
  2280. fi
  2281. CC=$ac_cv_prog_CC
  2282. if test -n "$CC"; then
  2283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2284. $as_echo "$CC" >&6; }
  2285. else
  2286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2287. $as_echo "no" >&6; }
  2288. fi
  2289. test -n "$CC" && break
  2290. done
  2291. fi
  2292. if test -z "$CC"; then
  2293. ac_ct_CC=$CC
  2294. for ac_prog in cl.exe
  2295. do
  2296. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2297. set dummy $ac_prog; ac_word=$2
  2298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2299. $as_echo_n "checking for $ac_word... " >&6; }
  2300. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2301. $as_echo_n "(cached) " >&6
  2302. else
  2303. if test -n "$ac_ct_CC"; then
  2304. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2305. else
  2306. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2307. for as_dir in $PATH
  2308. do
  2309. IFS=$as_save_IFS
  2310. test -z "$as_dir" && as_dir=.
  2311. for ac_exec_ext in '' $ac_executable_extensions; do
  2312. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2313. ac_cv_prog_ac_ct_CC="$ac_prog"
  2314. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2315. break 2
  2316. fi
  2317. done
  2318. done
  2319. IFS=$as_save_IFS
  2320. fi
  2321. fi
  2322. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2323. if test -n "$ac_ct_CC"; then
  2324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2325. $as_echo "$ac_ct_CC" >&6; }
  2326. else
  2327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2328. $as_echo "no" >&6; }
  2329. fi
  2330. test -n "$ac_ct_CC" && break
  2331. done
  2332. if test "x$ac_ct_CC" = x; then
  2333. CC=""
  2334. else
  2335. case $cross_compiling:$ac_tool_warned in
  2336. yes:)
  2337. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2338. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2339. ac_tool_warned=yes ;;
  2340. esac
  2341. CC=$ac_ct_CC
  2342. fi
  2343. fi
  2344. fi
  2345. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2346. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2347. as_fn_error $? "no acceptable C compiler found in \$PATH
  2348. See \`config.log' for more details" "$LINENO" 5; }
  2349. # Provide some information about the compiler.
  2350. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2351. set X $ac_compile
  2352. ac_compiler=$2
  2353. for ac_option in --version -v -V -qversion; do
  2354. { { ac_try="$ac_compiler $ac_option >&5"
  2355. case "(($ac_try" in
  2356. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2357. *) ac_try_echo=$ac_try;;
  2358. esac
  2359. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2360. $as_echo "$ac_try_echo"; } >&5
  2361. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2362. ac_status=$?
  2363. if test -s conftest.err; then
  2364. sed '10a\
  2365. ... rest of stderr output deleted ...
  2366. 10q' conftest.err >conftest.er1
  2367. cat conftest.er1 >&5
  2368. fi
  2369. rm -f conftest.er1 conftest.err
  2370. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2371. test $ac_status = 0; }
  2372. done
  2373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2374. /* end confdefs.h. */
  2375. int
  2376. main ()
  2377. {
  2378. ;
  2379. return 0;
  2380. }
  2381. _ACEOF
  2382. ac_clean_files_save=$ac_clean_files
  2383. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2384. # Try to create an executable without -o first, disregard a.out.
  2385. # It will help us diagnose broken compilers, and finding out an intuition
  2386. # of exeext.
  2387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2388. $as_echo_n "checking whether the C compiler works... " >&6; }
  2389. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2390. # The possible output files:
  2391. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2392. ac_rmfiles=
  2393. for ac_file in $ac_files
  2394. do
  2395. case $ac_file in
  2396. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2397. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2398. esac
  2399. done
  2400. rm -f $ac_rmfiles
  2401. if { { ac_try="$ac_link_default"
  2402. case "(($ac_try" in
  2403. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2404. *) ac_try_echo=$ac_try;;
  2405. esac
  2406. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2407. $as_echo "$ac_try_echo"; } >&5
  2408. (eval "$ac_link_default") 2>&5
  2409. ac_status=$?
  2410. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2411. test $ac_status = 0; }; then :
  2412. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2413. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2414. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2415. # so that the user can short-circuit this test for compilers unknown to
  2416. # Autoconf.
  2417. for ac_file in $ac_files ''
  2418. do
  2419. test -f "$ac_file" || continue
  2420. case $ac_file in
  2421. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2422. ;;
  2423. [ab].out )
  2424. # We found the default executable, but exeext='' is most
  2425. # certainly right.
  2426. break;;
  2427. *.* )
  2428. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2429. then :; else
  2430. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2431. fi
  2432. # We set ac_cv_exeext here because the later test for it is not
  2433. # safe: cross compilers may not add the suffix if given an `-o'
  2434. # argument, so we may need to know it at that point already.
  2435. # Even if this section looks crufty: it has the advantage of
  2436. # actually working.
  2437. break;;
  2438. * )
  2439. break;;
  2440. esac
  2441. done
  2442. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2443. else
  2444. ac_file=''
  2445. fi
  2446. if test -z "$ac_file"; then :
  2447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2448. $as_echo "no" >&6; }
  2449. $as_echo "$as_me: failed program was:" >&5
  2450. sed 's/^/| /' conftest.$ac_ext >&5
  2451. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2452. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2453. as_fn_error 77 "C compiler cannot create executables
  2454. See \`config.log' for more details" "$LINENO" 5; }
  2455. else
  2456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2457. $as_echo "yes" >&6; }
  2458. fi
  2459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2460. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2462. $as_echo "$ac_file" >&6; }
  2463. ac_exeext=$ac_cv_exeext
  2464. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2465. ac_clean_files=$ac_clean_files_save
  2466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2467. $as_echo_n "checking for suffix of executables... " >&6; }
  2468. if { { ac_try="$ac_link"
  2469. case "(($ac_try" in
  2470. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2471. *) ac_try_echo=$ac_try;;
  2472. esac
  2473. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2474. $as_echo "$ac_try_echo"; } >&5
  2475. (eval "$ac_link") 2>&5
  2476. ac_status=$?
  2477. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2478. test $ac_status = 0; }; then :
  2479. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2480. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2481. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2482. # `rm'.
  2483. for ac_file in conftest.exe conftest conftest.*; do
  2484. test -f "$ac_file" || continue
  2485. case $ac_file in
  2486. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2487. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2488. break;;
  2489. * ) break;;
  2490. esac
  2491. done
  2492. else
  2493. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2494. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2495. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2496. See \`config.log' for more details" "$LINENO" 5; }
  2497. fi
  2498. rm -f conftest conftest$ac_cv_exeext
  2499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2500. $as_echo "$ac_cv_exeext" >&6; }
  2501. rm -f conftest.$ac_ext
  2502. EXEEXT=$ac_cv_exeext
  2503. ac_exeext=$EXEEXT
  2504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2505. /* end confdefs.h. */
  2506. #include <stdio.h>
  2507. int
  2508. main ()
  2509. {
  2510. FILE *f = fopen ("conftest.out", "w");
  2511. return ferror (f) || fclose (f) != 0;
  2512. ;
  2513. return 0;
  2514. }
  2515. _ACEOF
  2516. ac_clean_files="$ac_clean_files conftest.out"
  2517. # Check that the compiler produces executables we can run. If not, either
  2518. # the compiler is broken, or we cross compile.
  2519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2520. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2521. if test "$cross_compiling" != yes; then
  2522. { { ac_try="$ac_link"
  2523. case "(($ac_try" in
  2524. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2525. *) ac_try_echo=$ac_try;;
  2526. esac
  2527. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2528. $as_echo "$ac_try_echo"; } >&5
  2529. (eval "$ac_link") 2>&5
  2530. ac_status=$?
  2531. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2532. test $ac_status = 0; }
  2533. if { ac_try='./conftest$ac_cv_exeext'
  2534. { { case "(($ac_try" in
  2535. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2536. *) ac_try_echo=$ac_try;;
  2537. esac
  2538. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2539. $as_echo "$ac_try_echo"; } >&5
  2540. (eval "$ac_try") 2>&5
  2541. ac_status=$?
  2542. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2543. test $ac_status = 0; }; }; then
  2544. cross_compiling=no
  2545. else
  2546. if test "$cross_compiling" = maybe; then
  2547. cross_compiling=yes
  2548. else
  2549. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2550. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2551. as_fn_error $? "cannot run C compiled programs.
  2552. If you meant to cross compile, use \`--host'.
  2553. See \`config.log' for more details" "$LINENO" 5; }
  2554. fi
  2555. fi
  2556. fi
  2557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2558. $as_echo "$cross_compiling" >&6; }
  2559. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2560. ac_clean_files=$ac_clean_files_save
  2561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2562. $as_echo_n "checking for suffix of object files... " >&6; }
  2563. if ${ac_cv_objext+:} false; then :
  2564. $as_echo_n "(cached) " >&6
  2565. else
  2566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2567. /* end confdefs.h. */
  2568. int
  2569. main ()
  2570. {
  2571. ;
  2572. return 0;
  2573. }
  2574. _ACEOF
  2575. rm -f conftest.o conftest.obj
  2576. if { { ac_try="$ac_compile"
  2577. case "(($ac_try" in
  2578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2579. *) ac_try_echo=$ac_try;;
  2580. esac
  2581. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2582. $as_echo "$ac_try_echo"; } >&5
  2583. (eval "$ac_compile") 2>&5
  2584. ac_status=$?
  2585. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2586. test $ac_status = 0; }; then :
  2587. for ac_file in conftest.o conftest.obj conftest.*; do
  2588. test -f "$ac_file" || continue;
  2589. case $ac_file in
  2590. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2591. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2592. break;;
  2593. esac
  2594. done
  2595. else
  2596. $as_echo "$as_me: failed program was:" >&5
  2597. sed 's/^/| /' conftest.$ac_ext >&5
  2598. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2599. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2600. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2601. See \`config.log' for more details" "$LINENO" 5; }
  2602. fi
  2603. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2604. fi
  2605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2606. $as_echo "$ac_cv_objext" >&6; }
  2607. OBJEXT=$ac_cv_objext
  2608. ac_objext=$OBJEXT
  2609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2610. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2611. if ${ac_cv_c_compiler_gnu+:} false; then :
  2612. $as_echo_n "(cached) " >&6
  2613. else
  2614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2615. /* end confdefs.h. */
  2616. int
  2617. main ()
  2618. {
  2619. #ifndef __GNUC__
  2620. choke me
  2621. #endif
  2622. ;
  2623. return 0;
  2624. }
  2625. _ACEOF
  2626. if ac_fn_c_try_compile "$LINENO"; then :
  2627. ac_compiler_gnu=yes
  2628. else
  2629. ac_compiler_gnu=no
  2630. fi
  2631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2632. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2633. fi
  2634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2635. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2636. if test $ac_compiler_gnu = yes; then
  2637. GCC=yes
  2638. else
  2639. GCC=
  2640. fi
  2641. ac_test_CFLAGS=${CFLAGS+set}
  2642. ac_save_CFLAGS=$CFLAGS
  2643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2644. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2645. if ${ac_cv_prog_cc_g+:} false; then :
  2646. $as_echo_n "(cached) " >&6
  2647. else
  2648. ac_save_c_werror_flag=$ac_c_werror_flag
  2649. ac_c_werror_flag=yes
  2650. ac_cv_prog_cc_g=no
  2651. CFLAGS="-g"
  2652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2653. /* end confdefs.h. */
  2654. int
  2655. main ()
  2656. {
  2657. ;
  2658. return 0;
  2659. }
  2660. _ACEOF
  2661. if ac_fn_c_try_compile "$LINENO"; then :
  2662. ac_cv_prog_cc_g=yes
  2663. else
  2664. CFLAGS=""
  2665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2666. /* end confdefs.h. */
  2667. int
  2668. main ()
  2669. {
  2670. ;
  2671. return 0;
  2672. }
  2673. _ACEOF
  2674. if ac_fn_c_try_compile "$LINENO"; then :
  2675. else
  2676. ac_c_werror_flag=$ac_save_c_werror_flag
  2677. CFLAGS="-g"
  2678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2679. /* end confdefs.h. */
  2680. int
  2681. main ()
  2682. {
  2683. ;
  2684. return 0;
  2685. }
  2686. _ACEOF
  2687. if ac_fn_c_try_compile "$LINENO"; then :
  2688. ac_cv_prog_cc_g=yes
  2689. fi
  2690. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2691. fi
  2692. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2693. fi
  2694. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2695. ac_c_werror_flag=$ac_save_c_werror_flag
  2696. fi
  2697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2698. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2699. if test "$ac_test_CFLAGS" = set; then
  2700. CFLAGS=$ac_save_CFLAGS
  2701. elif test $ac_cv_prog_cc_g = yes; then
  2702. if test "$GCC" = yes; then
  2703. CFLAGS="-g -O2"
  2704. else
  2705. CFLAGS="-g"
  2706. fi
  2707. else
  2708. if test "$GCC" = yes; then
  2709. CFLAGS="-O2"
  2710. else
  2711. CFLAGS=
  2712. fi
  2713. fi
  2714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2715. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2716. if ${ac_cv_prog_cc_c89+:} false; then :
  2717. $as_echo_n "(cached) " >&6
  2718. else
  2719. ac_cv_prog_cc_c89=no
  2720. ac_save_CC=$CC
  2721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2722. /* end confdefs.h. */
  2723. #include <stdarg.h>
  2724. #include <stdio.h>
  2725. struct stat;
  2726. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2727. struct buf { int x; };
  2728. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2729. static char *e (p, i)
  2730. char **p;
  2731. int i;
  2732. {
  2733. return p[i];
  2734. }
  2735. static char *f (char * (*g) (char **, int), char **p, ...)
  2736. {
  2737. char *s;
  2738. va_list v;
  2739. va_start (v,p);
  2740. s = g (p, va_arg (v,int));
  2741. va_end (v);
  2742. return s;
  2743. }
  2744. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2745. function prototypes and stuff, but not '\xHH' hex character constants.
  2746. These don't provoke an error unfortunately, instead are silently treated
  2747. as 'x'. The following induces an error, until -std is added to get
  2748. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2749. array size at least. It's necessary to write '\x00'==0 to get something
  2750. that's true only with -std. */
  2751. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2752. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2753. inside strings and character constants. */
  2754. #define FOO(x) 'x'
  2755. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2756. int test (int i, double x);
  2757. struct s1 {int (*f) (int a);};
  2758. struct s2 {int (*f) (double a);};
  2759. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2760. int argc;
  2761. char **argv;
  2762. int
  2763. main ()
  2764. {
  2765. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2766. ;
  2767. return 0;
  2768. }
  2769. _ACEOF
  2770. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2771. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2772. do
  2773. CC="$ac_save_CC $ac_arg"
  2774. if ac_fn_c_try_compile "$LINENO"; then :
  2775. ac_cv_prog_cc_c89=$ac_arg
  2776. fi
  2777. rm -f core conftest.err conftest.$ac_objext
  2778. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2779. done
  2780. rm -f conftest.$ac_ext
  2781. CC=$ac_save_CC
  2782. fi
  2783. # AC_CACHE_VAL
  2784. case "x$ac_cv_prog_cc_c89" in
  2785. x)
  2786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2787. $as_echo "none needed" >&6; } ;;
  2788. xno)
  2789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2790. $as_echo "unsupported" >&6; } ;;
  2791. *)
  2792. CC="$CC $ac_cv_prog_cc_c89"
  2793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2794. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2795. esac
  2796. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2797. fi
  2798. ac_ext=c
  2799. ac_cpp='$CPP $CPPFLAGS'
  2800. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2801. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2802. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2803. ac_ext=c
  2804. ac_cpp='$CPP $CPPFLAGS'
  2805. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2806. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2807. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  2809. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  2810. if ${am_cv_prog_cc_c_o+:} false; then :
  2811. $as_echo_n "(cached) " >&6
  2812. else
  2813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2814. /* end confdefs.h. */
  2815. int
  2816. main ()
  2817. {
  2818. ;
  2819. return 0;
  2820. }
  2821. _ACEOF
  2822. # Make sure it works both with $CC and with simple cc.
  2823. # Following AC_PROG_CC_C_O, we do the test twice because some
  2824. # compilers refuse to overwrite an existing .o file with -o,
  2825. # though they will create one.
  2826. am_cv_prog_cc_c_o=yes
  2827. for am_i in 1 2; do
  2828. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  2829. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  2830. ac_status=$?
  2831. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2832. (exit $ac_status); } \
  2833. && test -f conftest2.$ac_objext; then
  2834. : OK
  2835. else
  2836. am_cv_prog_cc_c_o=no
  2837. break
  2838. fi
  2839. done
  2840. rm -f core conftest*
  2841. unset am_i
  2842. fi
  2843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  2844. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  2845. if test "$am_cv_prog_cc_c_o" != yes; then
  2846. # Losing compiler, so override with the script.
  2847. # FIXME: It is wrong to rewrite CC.
  2848. # But if we don't then we get into trouble of one sort or another.
  2849. # A longer-term fix would be to have automake use am__CC in this case,
  2850. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  2851. CC="$am_aux_dir/compile $CC"
  2852. fi
  2853. ac_ext=c
  2854. ac_cpp='$CPP $CPPFLAGS'
  2855. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2856. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2857. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  2859. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  2860. if ${ac_cv_prog_cc_c99+:} false; then :
  2861. $as_echo_n "(cached) " >&6
  2862. else
  2863. ac_cv_prog_cc_c99=no
  2864. ac_save_CC=$CC
  2865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2866. /* end confdefs.h. */
  2867. #include <stdarg.h>
  2868. #include <stdbool.h>
  2869. #include <stdlib.h>
  2870. #include <wchar.h>
  2871. #include <stdio.h>
  2872. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2873. #define debug(...) fprintf (stderr, __VA_ARGS__)
  2874. #define showlist(...) puts (#__VA_ARGS__)
  2875. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2876. static void
  2877. test_varargs_macros (void)
  2878. {
  2879. int x = 1234;
  2880. int y = 5678;
  2881. debug ("Flag");
  2882. debug ("X = %d\n", x);
  2883. showlist (The first, second, and third items.);
  2884. report (x>y, "x is %d but y is %d", x, y);
  2885. }
  2886. // Check long long types.
  2887. #define BIG64 18446744073709551615ull
  2888. #define BIG32 4294967295ul
  2889. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2890. #if !BIG_OK
  2891. your preprocessor is broken;
  2892. #endif
  2893. #if BIG_OK
  2894. #else
  2895. your preprocessor is broken;
  2896. #endif
  2897. static long long int bignum = -9223372036854775807LL;
  2898. static unsigned long long int ubignum = BIG64;
  2899. struct incomplete_array
  2900. {
  2901. int datasize;
  2902. double data[];
  2903. };
  2904. struct named_init {
  2905. int number;
  2906. const wchar_t *name;
  2907. double average;
  2908. };
  2909. typedef const char *ccp;
  2910. static inline int
  2911. test_restrict (ccp restrict text)
  2912. {
  2913. // See if C++-style comments work.
  2914. // Iterate through items via the restricted pointer.
  2915. // Also check for declarations in for loops.
  2916. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  2917. continue;
  2918. return 0;
  2919. }
  2920. // Check varargs and va_copy.
  2921. static void
  2922. test_varargs (const char *format, ...)
  2923. {
  2924. va_list args;
  2925. va_start (args, format);
  2926. va_list args_copy;
  2927. va_copy (args_copy, args);
  2928. const char *str;
  2929. int number;
  2930. float fnumber;
  2931. while (*format)
  2932. {
  2933. switch (*format++)
  2934. {
  2935. case 's': // string
  2936. str = va_arg (args_copy, const char *);
  2937. break;
  2938. case 'd': // int
  2939. number = va_arg (args_copy, int);
  2940. break;
  2941. case 'f': // float
  2942. fnumber = va_arg (args_copy, double);
  2943. break;
  2944. default:
  2945. break;
  2946. }
  2947. }
  2948. va_end (args_copy);
  2949. va_end (args);
  2950. }
  2951. int
  2952. main ()
  2953. {
  2954. // Check bool.
  2955. _Bool success = false;
  2956. // Check restrict.
  2957. if (test_restrict ("String literal") == 0)
  2958. success = true;
  2959. char *restrict newvar = "Another string";
  2960. // Check varargs.
  2961. test_varargs ("s, d' f .", "string", 65, 34.234);
  2962. test_varargs_macros ();
  2963. // Check flexible array members.
  2964. struct incomplete_array *ia =
  2965. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2966. ia->datasize = 10;
  2967. for (int i = 0; i < ia->datasize; ++i)
  2968. ia->data[i] = i * 1.234;
  2969. // Check named initializers.
  2970. struct named_init ni = {
  2971. .number = 34,
  2972. .name = L"Test wide string",
  2973. .average = 543.34343,
  2974. };
  2975. ni.number = 58;
  2976. int dynamic_array[ni.number];
  2977. dynamic_array[ni.number - 1] = 543;
  2978. // work around unused variable warnings
  2979. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  2980. || dynamic_array[ni.number - 1] != 543);
  2981. ;
  2982. return 0;
  2983. }
  2984. _ACEOF
  2985. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  2986. do
  2987. CC="$ac_save_CC $ac_arg"
  2988. if ac_fn_c_try_compile "$LINENO"; then :
  2989. ac_cv_prog_cc_c99=$ac_arg
  2990. fi
  2991. rm -f core conftest.err conftest.$ac_objext
  2992. test "x$ac_cv_prog_cc_c99" != "xno" && break
  2993. done
  2994. rm -f conftest.$ac_ext
  2995. CC=$ac_save_CC
  2996. fi
  2997. # AC_CACHE_VAL
  2998. case "x$ac_cv_prog_cc_c99" in
  2999. x)
  3000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3001. $as_echo "none needed" >&6; } ;;
  3002. xno)
  3003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3004. $as_echo "unsupported" >&6; } ;;
  3005. *)
  3006. CC="$CC $ac_cv_prog_cc_c99"
  3007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3008. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  3009. esac
  3010. if test "x$ac_cv_prog_cc_c99" != xno; then :
  3011. fi
  3012. am__api_version='1.15'
  3013. # Find a good install program. We prefer a C program (faster),
  3014. # so one script is as good as another. But avoid the broken or
  3015. # incompatible versions:
  3016. # SysV /etc/install, /usr/sbin/install
  3017. # SunOS /usr/etc/install
  3018. # IRIX /sbin/install
  3019. # AIX /bin/install
  3020. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3021. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3022. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3023. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3024. # OS/2's system install, which has a completely different semantic
  3025. # ./install, which can be erroneously created by make from ./install.sh.
  3026. # Reject install programs that cannot install multiple files.
  3027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3028. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3029. if test -z "$INSTALL"; then
  3030. if ${ac_cv_path_install+:} false; then :
  3031. $as_echo_n "(cached) " >&6
  3032. else
  3033. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3034. for as_dir in $PATH
  3035. do
  3036. IFS=$as_save_IFS
  3037. test -z "$as_dir" && as_dir=.
  3038. # Account for people who put trailing slashes in PATH elements.
  3039. case $as_dir/ in #((
  3040. ./ | .// | /[cC]/* | \
  3041. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3042. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3043. /usr/ucb/* ) ;;
  3044. *)
  3045. # OSF1 and SCO ODT 3.0 have their own names for install.
  3046. # Don't use installbsd from OSF since it installs stuff as root
  3047. # by default.
  3048. for ac_prog in ginstall scoinst install; do
  3049. for ac_exec_ext in '' $ac_executable_extensions; do
  3050. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3051. if test $ac_prog = install &&
  3052. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3053. # AIX install. It has an incompatible calling convention.
  3054. :
  3055. elif test $ac_prog = install &&
  3056. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3057. # program-specific install script used by HP pwplus--don't use.
  3058. :
  3059. else
  3060. rm -rf conftest.one conftest.two conftest.dir
  3061. echo one > conftest.one
  3062. echo two > conftest.two
  3063. mkdir conftest.dir
  3064. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3065. test -s conftest.one && test -s conftest.two &&
  3066. test -s conftest.dir/conftest.one &&
  3067. test -s conftest.dir/conftest.two
  3068. then
  3069. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3070. break 3
  3071. fi
  3072. fi
  3073. fi
  3074. done
  3075. done
  3076. ;;
  3077. esac
  3078. done
  3079. IFS=$as_save_IFS
  3080. rm -rf conftest.one conftest.two conftest.dir
  3081. fi
  3082. if test "${ac_cv_path_install+set}" = set; then
  3083. INSTALL=$ac_cv_path_install
  3084. else
  3085. # As a last resort, use the slow shell script. Don't cache a
  3086. # value for INSTALL within a source directory, because that will
  3087. # break other packages using the cache if that directory is
  3088. # removed, or if the value is a relative name.
  3089. INSTALL=$ac_install_sh
  3090. fi
  3091. fi
  3092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3093. $as_echo "$INSTALL" >&6; }
  3094. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3095. # It thinks the first close brace ends the variable substitution.
  3096. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3097. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3098. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3100. $as_echo_n "checking whether build environment is sane... " >&6; }
  3101. # Reject unsafe characters in $srcdir or the absolute working directory
  3102. # name. Accept space and tab only in the latter.
  3103. am_lf='
  3104. '
  3105. case `pwd` in
  3106. *[\\\"\#\$\&\'\`$am_lf]*)
  3107. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  3108. esac
  3109. case $srcdir in
  3110. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3111. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  3112. esac
  3113. # Do 'set' in a subshell so we don't clobber the current shell's
  3114. # arguments. Must try -L first in case configure is actually a
  3115. # symlink; some systems play weird games with the mod time of symlinks
  3116. # (eg FreeBSD returns the mod time of the symlink's containing
  3117. # directory).
  3118. if (
  3119. am_has_slept=no
  3120. for am_try in 1 2; do
  3121. echo "timestamp, slept: $am_has_slept" > conftest.file
  3122. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3123. if test "$*" = "X"; then
  3124. # -L didn't work.
  3125. set X `ls -t "$srcdir/configure" conftest.file`
  3126. fi
  3127. if test "$*" != "X $srcdir/configure conftest.file" \
  3128. && test "$*" != "X conftest.file $srcdir/configure"; then
  3129. # If neither matched, then we have a broken ls. This can happen
  3130. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3131. # broken ls alias from the environment. This has actually
  3132. # happened. Such a system could not be considered "sane".
  3133. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  3134. alias in your environment" "$LINENO" 5
  3135. fi
  3136. if test "$2" = conftest.file || test $am_try -eq 2; then
  3137. break
  3138. fi
  3139. # Just in case.
  3140. sleep 1
  3141. am_has_slept=yes
  3142. done
  3143. test "$2" = conftest.file
  3144. )
  3145. then
  3146. # Ok.
  3147. :
  3148. else
  3149. as_fn_error $? "newly created file is older than distributed files!
  3150. Check your system clock" "$LINENO" 5
  3151. fi
  3152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3153. $as_echo "yes" >&6; }
  3154. # If we didn't sleep, we still need to ensure time stamps of config.status and
  3155. # generated files are strictly newer.
  3156. am_sleep_pid=
  3157. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  3158. ( sleep 1 ) &
  3159. am_sleep_pid=$!
  3160. fi
  3161. rm -f conftest.file
  3162. test "$program_prefix" != NONE &&
  3163. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3164. # Use a double $ so make ignores it.
  3165. test "$program_suffix" != NONE &&
  3166. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3167. # Double any \ or $.
  3168. # By default was `s,x,x', remove it if useless.
  3169. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3170. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3171. if test x"${MISSING+set}" != xset; then
  3172. case $am_aux_dir in
  3173. *\ * | *\ *)
  3174. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3175. *)
  3176. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3177. esac
  3178. fi
  3179. # Use eval to expand $SHELL
  3180. if eval "$MISSING --is-lightweight"; then
  3181. am_missing_run="$MISSING "
  3182. else
  3183. am_missing_run=
  3184. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  3185. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  3186. fi
  3187. if test x"${install_sh+set}" != xset; then
  3188. case $am_aux_dir in
  3189. *\ * | *\ *)
  3190. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3191. *)
  3192. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3193. esac
  3194. fi
  3195. # Installed binaries are usually stripped using 'strip' when the user
  3196. # run "make install-strip". However 'strip' might not be the right
  3197. # tool to use in cross-compilation environments, therefore Automake
  3198. # will honor the 'STRIP' environment variable to overrule this program.
  3199. if test "$cross_compiling" != no; then
  3200. if test -n "$ac_tool_prefix"; then
  3201. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3202. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3204. $as_echo_n "checking for $ac_word... " >&6; }
  3205. if ${ac_cv_prog_STRIP+:} false; then :
  3206. $as_echo_n "(cached) " >&6
  3207. else
  3208. if test -n "$STRIP"; then
  3209. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3210. else
  3211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3212. for as_dir in $PATH
  3213. do
  3214. IFS=$as_save_IFS
  3215. test -z "$as_dir" && as_dir=.
  3216. for ac_exec_ext in '' $ac_executable_extensions; do
  3217. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3218. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3219. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3220. break 2
  3221. fi
  3222. done
  3223. done
  3224. IFS=$as_save_IFS
  3225. fi
  3226. fi
  3227. STRIP=$ac_cv_prog_STRIP
  3228. if test -n "$STRIP"; then
  3229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3230. $as_echo "$STRIP" >&6; }
  3231. else
  3232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3233. $as_echo "no" >&6; }
  3234. fi
  3235. fi
  3236. if test -z "$ac_cv_prog_STRIP"; then
  3237. ac_ct_STRIP=$STRIP
  3238. # Extract the first word of "strip", so it can be a program name with args.
  3239. set dummy strip; ac_word=$2
  3240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3241. $as_echo_n "checking for $ac_word... " >&6; }
  3242. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  3243. $as_echo_n "(cached) " >&6
  3244. else
  3245. if test -n "$ac_ct_STRIP"; then
  3246. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3247. else
  3248. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3249. for as_dir in $PATH
  3250. do
  3251. IFS=$as_save_IFS
  3252. test -z "$as_dir" && as_dir=.
  3253. for ac_exec_ext in '' $ac_executable_extensions; do
  3254. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3255. ac_cv_prog_ac_ct_STRIP="strip"
  3256. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3257. break 2
  3258. fi
  3259. done
  3260. done
  3261. IFS=$as_save_IFS
  3262. fi
  3263. fi
  3264. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3265. if test -n "$ac_ct_STRIP"; then
  3266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3267. $as_echo "$ac_ct_STRIP" >&6; }
  3268. else
  3269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3270. $as_echo "no" >&6; }
  3271. fi
  3272. if test "x$ac_ct_STRIP" = x; then
  3273. STRIP=":"
  3274. else
  3275. case $cross_compiling:$ac_tool_warned in
  3276. yes:)
  3277. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3278. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3279. ac_tool_warned=yes ;;
  3280. esac
  3281. STRIP=$ac_ct_STRIP
  3282. fi
  3283. else
  3284. STRIP="$ac_cv_prog_STRIP"
  3285. fi
  3286. fi
  3287. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3289. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3290. if test -z "$MKDIR_P"; then
  3291. if ${ac_cv_path_mkdir+:} false; then :
  3292. $as_echo_n "(cached) " >&6
  3293. else
  3294. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3295. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3296. do
  3297. IFS=$as_save_IFS
  3298. test -z "$as_dir" && as_dir=.
  3299. for ac_prog in mkdir gmkdir; do
  3300. for ac_exec_ext in '' $ac_executable_extensions; do
  3301. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  3302. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3303. 'mkdir (GNU coreutils) '* | \
  3304. 'mkdir (coreutils) '* | \
  3305. 'mkdir (fileutils) '4.1*)
  3306. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3307. break 3;;
  3308. esac
  3309. done
  3310. done
  3311. done
  3312. IFS=$as_save_IFS
  3313. fi
  3314. test -d ./--version && rmdir ./--version
  3315. if test "${ac_cv_path_mkdir+set}" = set; then
  3316. MKDIR_P="$ac_cv_path_mkdir -p"
  3317. else
  3318. # As a last resort, use the slow shell script. Don't cache a
  3319. # value for MKDIR_P within a source directory, because that will
  3320. # break other packages using the cache if that directory is
  3321. # removed, or if the value is a relative name.
  3322. MKDIR_P="$ac_install_sh -d"
  3323. fi
  3324. fi
  3325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3326. $as_echo "$MKDIR_P" >&6; }
  3327. for ac_prog in gawk mawk nawk awk
  3328. do
  3329. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3330. set dummy $ac_prog; ac_word=$2
  3331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3332. $as_echo_n "checking for $ac_word... " >&6; }
  3333. if ${ac_cv_prog_AWK+:} false; then :
  3334. $as_echo_n "(cached) " >&6
  3335. else
  3336. if test -n "$AWK"; then
  3337. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3338. else
  3339. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3340. for as_dir in $PATH
  3341. do
  3342. IFS=$as_save_IFS
  3343. test -z "$as_dir" && as_dir=.
  3344. for ac_exec_ext in '' $ac_executable_extensions; do
  3345. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3346. ac_cv_prog_AWK="$ac_prog"
  3347. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3348. break 2
  3349. fi
  3350. done
  3351. done
  3352. IFS=$as_save_IFS
  3353. fi
  3354. fi
  3355. AWK=$ac_cv_prog_AWK
  3356. if test -n "$AWK"; then
  3357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3358. $as_echo "$AWK" >&6; }
  3359. else
  3360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3361. $as_echo "no" >&6; }
  3362. fi
  3363. test -n "$AWK" && break
  3364. done
  3365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3366. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3367. set x ${MAKE-make}
  3368. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3369. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3370. $as_echo_n "(cached) " >&6
  3371. else
  3372. cat >conftest.make <<\_ACEOF
  3373. SHELL = /bin/sh
  3374. all:
  3375. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3376. _ACEOF
  3377. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3378. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3379. *@@@%%%=?*=@@@%%%*)
  3380. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3381. *)
  3382. eval ac_cv_prog_make_${ac_make}_set=no;;
  3383. esac
  3384. rm -f conftest.make
  3385. fi
  3386. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3388. $as_echo "yes" >&6; }
  3389. SET_MAKE=
  3390. else
  3391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3392. $as_echo "no" >&6; }
  3393. SET_MAKE="MAKE=${MAKE-make}"
  3394. fi
  3395. rm -rf .tst 2>/dev/null
  3396. mkdir .tst 2>/dev/null
  3397. if test -d .tst; then
  3398. am__leading_dot=.
  3399. else
  3400. am__leading_dot=_
  3401. fi
  3402. rmdir .tst 2>/dev/null
  3403. DEPDIR="${am__leading_dot}deps"
  3404. ac_config_commands="$ac_config_commands depfiles"
  3405. am_make=${MAKE-make}
  3406. cat > confinc << 'END'
  3407. am__doit:
  3408. @echo this is the am__doit target
  3409. .PHONY: am__doit
  3410. END
  3411. # If we don't find an include directive, just comment out the code.
  3412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3413. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3414. am__include="#"
  3415. am__quote=
  3416. _am_result=none
  3417. # First try GNU make style include.
  3418. echo "include confinc" > confmf
  3419. # Ignore all kinds of additional output from 'make'.
  3420. case `$am_make -s -f confmf 2> /dev/null` in #(
  3421. *the\ am__doit\ target*)
  3422. am__include=include
  3423. am__quote=
  3424. _am_result=GNU
  3425. ;;
  3426. esac
  3427. # Now try BSD make style include.
  3428. if test "$am__include" = "#"; then
  3429. echo '.include "confinc"' > confmf
  3430. case `$am_make -s -f confmf 2> /dev/null` in #(
  3431. *the\ am__doit\ target*)
  3432. am__include=.include
  3433. am__quote="\""
  3434. _am_result=BSD
  3435. ;;
  3436. esac
  3437. fi
  3438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3439. $as_echo "$_am_result" >&6; }
  3440. rm -f confinc confmf
  3441. # Check whether --enable-dependency-tracking was given.
  3442. if test "${enable_dependency_tracking+set}" = set; then :
  3443. enableval=$enable_dependency_tracking;
  3444. fi
  3445. if test "x$enable_dependency_tracking" != xno; then
  3446. am_depcomp="$ac_aux_dir/depcomp"
  3447. AMDEPBACKSLASH='\'
  3448. am__nodep='_no'
  3449. fi
  3450. if test "x$enable_dependency_tracking" != xno; then
  3451. AMDEP_TRUE=
  3452. AMDEP_FALSE='#'
  3453. else
  3454. AMDEP_TRUE='#'
  3455. AMDEP_FALSE=
  3456. fi
  3457. # Check whether --enable-silent-rules was given.
  3458. if test "${enable_silent_rules+set}" = set; then :
  3459. enableval=$enable_silent_rules;
  3460. fi
  3461. case $enable_silent_rules in # (((
  3462. yes) AM_DEFAULT_VERBOSITY=0;;
  3463. no) AM_DEFAULT_VERBOSITY=1;;
  3464. *) AM_DEFAULT_VERBOSITY=1;;
  3465. esac
  3466. am_make=${MAKE-make}
  3467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3468. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3469. if ${am_cv_make_support_nested_variables+:} false; then :
  3470. $as_echo_n "(cached) " >&6
  3471. else
  3472. if $as_echo 'TRUE=$(BAR$(V))
  3473. BAR0=false
  3474. BAR1=true
  3475. V=1
  3476. am__doit:
  3477. @$(TRUE)
  3478. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3479. am_cv_make_support_nested_variables=yes
  3480. else
  3481. am_cv_make_support_nested_variables=no
  3482. fi
  3483. fi
  3484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3485. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3486. if test $am_cv_make_support_nested_variables = yes; then
  3487. AM_V='$(V)'
  3488. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3489. else
  3490. AM_V=$AM_DEFAULT_VERBOSITY
  3491. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3492. fi
  3493. AM_BACKSLASH='\'
  3494. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3495. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3496. # is not polluted with repeated "-I."
  3497. am__isrc=' -I$(srcdir)'
  3498. # test to see if srcdir already configured
  3499. if test -f $srcdir/config.status; then
  3500. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3501. fi
  3502. fi
  3503. # test whether we have cygpath
  3504. if test -z "$CYGPATH_W"; then
  3505. if (cygpath --version) >/dev/null 2>/dev/null; then
  3506. CYGPATH_W='cygpath -w'
  3507. else
  3508. CYGPATH_W=echo
  3509. fi
  3510. fi
  3511. # Define the identity of the package.
  3512. PACKAGE='luksmeta'
  3513. VERSION='8'
  3514. cat >>confdefs.h <<_ACEOF
  3515. #define PACKAGE "$PACKAGE"
  3516. _ACEOF
  3517. cat >>confdefs.h <<_ACEOF
  3518. #define VERSION "$VERSION"
  3519. _ACEOF
  3520. # Some tools Automake needs.
  3521. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3522. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3523. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3524. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3525. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3526. # For better backward compatibility. To be removed once Automake 1.9.x
  3527. # dies out for good. For more background, see:
  3528. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3529. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3530. mkdir_p='$(MKDIR_P)'
  3531. # We need awk for the "check" target (and possibly the TAP driver). The
  3532. # system "awk" is bad on some platforms.
  3533. # Always define AMTAR for backward compatibility. Yes, it's still used
  3534. # in the wild :-( We should find a proper way to deprecate it ...
  3535. AMTAR='$${TAR-tar}'
  3536. # We'll loop over all known methods to create a tar archive until one works.
  3537. _am_tools='gnutar pax cpio none'
  3538. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3539. depcc="$CC" am_compiler_list=
  3540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3541. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3542. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3543. $as_echo_n "(cached) " >&6
  3544. else
  3545. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3546. # We make a subdir and do the tests there. Otherwise we can end up
  3547. # making bogus files that we don't know about and never remove. For
  3548. # instance it was reported that on HP-UX the gcc test will end up
  3549. # making a dummy file named 'D' -- because '-MD' means "put the output
  3550. # in D".
  3551. rm -rf conftest.dir
  3552. mkdir conftest.dir
  3553. # Copy depcomp to subdir because otherwise we won't find it if we're
  3554. # using a relative directory.
  3555. cp "$am_depcomp" conftest.dir
  3556. cd conftest.dir
  3557. # We will build objects and dependencies in a subdirectory because
  3558. # it helps to detect inapplicable dependency modes. For instance
  3559. # both Tru64's cc and ICC support -MD to output dependencies as a
  3560. # side effect of compilation, but ICC will put the dependencies in
  3561. # the current directory while Tru64 will put them in the object
  3562. # directory.
  3563. mkdir sub
  3564. am_cv_CC_dependencies_compiler_type=none
  3565. if test "$am_compiler_list" = ""; then
  3566. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3567. fi
  3568. am__universal=false
  3569. case " $depcc " in #(
  3570. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3571. esac
  3572. for depmode in $am_compiler_list; do
  3573. # Setup a source with many dependencies, because some compilers
  3574. # like to wrap large dependency lists on column 80 (with \), and
  3575. # we should not choose a depcomp mode which is confused by this.
  3576. #
  3577. # We need to recreate these files for each test, as the compiler may
  3578. # overwrite some of them when testing with obscure command lines.
  3579. # This happens at least with the AIX C compiler.
  3580. : > sub/conftest.c
  3581. for i in 1 2 3 4 5 6; do
  3582. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3583. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3584. # Solaris 10 /bin/sh.
  3585. echo '/* dummy */' > sub/conftst$i.h
  3586. done
  3587. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3588. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3589. # mode. It turns out that the SunPro C++ compiler does not properly
  3590. # handle '-M -o', and we need to detect this. Also, some Intel
  3591. # versions had trouble with output in subdirs.
  3592. am__obj=sub/conftest.${OBJEXT-o}
  3593. am__minus_obj="-o $am__obj"
  3594. case $depmode in
  3595. gcc)
  3596. # This depmode causes a compiler race in universal mode.
  3597. test "$am__universal" = false || continue
  3598. ;;
  3599. nosideeffect)
  3600. # After this tag, mechanisms are not by side-effect, so they'll
  3601. # only be used when explicitly requested.
  3602. if test "x$enable_dependency_tracking" = xyes; then
  3603. continue
  3604. else
  3605. break
  3606. fi
  3607. ;;
  3608. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3609. # This compiler won't grok '-c -o', but also, the minuso test has
  3610. # not run yet. These depmodes are late enough in the game, and
  3611. # so weak that their functioning should not be impacted.
  3612. am__obj=conftest.${OBJEXT-o}
  3613. am__minus_obj=
  3614. ;;
  3615. none) break ;;
  3616. esac
  3617. if depmode=$depmode \
  3618. source=sub/conftest.c object=$am__obj \
  3619. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3620. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3621. >/dev/null 2>conftest.err &&
  3622. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3623. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3624. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3625. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3626. # icc doesn't choke on unknown options, it will just issue warnings
  3627. # or remarks (even with -Werror). So we grep stderr for any message
  3628. # that says an option was ignored or not supported.
  3629. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3630. # icc: Command line warning: ignoring option '-M'; no argument required
  3631. # The diagnosis changed in icc 8.0:
  3632. # icc: Command line remark: option '-MP' not supported
  3633. if (grep 'ignoring option' conftest.err ||
  3634. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3635. am_cv_CC_dependencies_compiler_type=$depmode
  3636. break
  3637. fi
  3638. fi
  3639. done
  3640. cd ..
  3641. rm -rf conftest.dir
  3642. else
  3643. am_cv_CC_dependencies_compiler_type=none
  3644. fi
  3645. fi
  3646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3647. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3648. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3649. if
  3650. test "x$enable_dependency_tracking" != xno \
  3651. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3652. am__fastdepCC_TRUE=
  3653. am__fastdepCC_FALSE='#'
  3654. else
  3655. am__fastdepCC_TRUE='#'
  3656. am__fastdepCC_FALSE=
  3657. fi
  3658. # POSIX will say in a future version that running "rm -f" with no argument
  3659. # is OK; and we want to be able to make that assumption in our Makefile
  3660. # recipes. So use an aggressive probe to check that the usage we want is
  3661. # actually supported "in the wild" to an acceptable degree.
  3662. # See automake bug#10828.
  3663. # To make any issue more visible, cause the running configure to be aborted
  3664. # by default if the 'rm' program in use doesn't match our expectations; the
  3665. # user can still override this though.
  3666. if rm -f && rm -fr && rm -rf; then : OK; else
  3667. cat >&2 <<'END'
  3668. Oops!
  3669. Your 'rm' program seems unable to run without file operands specified
  3670. on the command line, even when the '-f' option is present. This is contrary
  3671. to the behaviour of most rm programs out there, and not conforming with
  3672. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3673. Please tell bug-automake@gnu.org about your system, including the value
  3674. of your $PATH and any error possibly output before this message. This
  3675. can help us improve future automake versions.
  3676. END
  3677. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3678. echo 'Configuration will proceed anyway, since you have set the' >&2
  3679. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3680. echo >&2
  3681. else
  3682. cat >&2 <<'END'
  3683. Aborting the configuration process, to ensure you take notice of the issue.
  3684. You can download and install GNU coreutils to get an 'rm' implementation
  3685. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3686. If you want to complete the configuration process using your problematic
  3687. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3688. to "yes", and re-run configure.
  3689. END
  3690. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3691. fi
  3692. fi
  3693. # Check whether --enable-silent-rules was given.
  3694. if test "${enable_silent_rules+set}" = set; then :
  3695. enableval=$enable_silent_rules;
  3696. fi
  3697. case $enable_silent_rules in # (((
  3698. yes) AM_DEFAULT_VERBOSITY=0;;
  3699. no) AM_DEFAULT_VERBOSITY=1;;
  3700. *) AM_DEFAULT_VERBOSITY=0;;
  3701. esac
  3702. am_make=${MAKE-make}
  3703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3704. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3705. if ${am_cv_make_support_nested_variables+:} false; then :
  3706. $as_echo_n "(cached) " >&6
  3707. else
  3708. if $as_echo 'TRUE=$(BAR$(V))
  3709. BAR0=false
  3710. BAR1=true
  3711. V=1
  3712. am__doit:
  3713. @$(TRUE)
  3714. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3715. am_cv_make_support_nested_variables=yes
  3716. else
  3717. am_cv_make_support_nested_variables=no
  3718. fi
  3719. fi
  3720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3721. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3722. if test $am_cv_make_support_nested_variables = yes; then
  3723. AM_V='$(V)'
  3724. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3725. else
  3726. AM_V=$AM_DEFAULT_VERBOSITY
  3727. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3728. fi
  3729. AM_BACKSLASH='\'
  3730. case `pwd` in
  3731. *\ * | *\ *)
  3732. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3733. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3734. esac
  3735. macro_version='2.4.6'
  3736. macro_revision='2.4.6'
  3737. ltmain=$ac_aux_dir/ltmain.sh
  3738. # Backslashify metacharacters that are still active within
  3739. # double-quoted strings.
  3740. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3741. # Same as above, but do not quote variable references.
  3742. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3743. # Sed substitution to delay expansion of an escaped shell variable in a
  3744. # double_quote_subst'ed string.
  3745. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3746. # Sed substitution to delay expansion of an escaped single quote.
  3747. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3748. # Sed substitution to avoid accidental globbing in evaled expressions
  3749. no_glob_subst='s/\*/\\\*/g'
  3750. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3751. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3752. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3754. $as_echo_n "checking how to print strings... " >&6; }
  3755. # Test print first, because it will be a builtin if present.
  3756. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3757. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3758. ECHO='print -r --'
  3759. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3760. ECHO='printf %s\n'
  3761. else
  3762. # Use this function as a fallback that always works.
  3763. func_fallback_echo ()
  3764. {
  3765. eval 'cat <<_LTECHO_EOF
  3766. $1
  3767. _LTECHO_EOF'
  3768. }
  3769. ECHO='func_fallback_echo'
  3770. fi
  3771. # func_echo_all arg...
  3772. # Invoke $ECHO with all args, space-separated.
  3773. func_echo_all ()
  3774. {
  3775. $ECHO ""
  3776. }
  3777. case $ECHO in
  3778. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3779. $as_echo "printf" >&6; } ;;
  3780. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3781. $as_echo "print -r" >&6; } ;;
  3782. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3783. $as_echo "cat" >&6; } ;;
  3784. esac
  3785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3786. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3787. if ${ac_cv_path_SED+:} false; then :
  3788. $as_echo_n "(cached) " >&6
  3789. else
  3790. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3791. for ac_i in 1 2 3 4 5 6 7; do
  3792. ac_script="$ac_script$as_nl$ac_script"
  3793. done
  3794. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3795. { ac_script=; unset ac_script;}
  3796. if test -z "$SED"; then
  3797. ac_path_SED_found=false
  3798. # Loop through the user's path and test for each of PROGNAME-LIST
  3799. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3800. for as_dir in $PATH
  3801. do
  3802. IFS=$as_save_IFS
  3803. test -z "$as_dir" && as_dir=.
  3804. for ac_prog in sed gsed; do
  3805. for ac_exec_ext in '' $ac_executable_extensions; do
  3806. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3807. as_fn_executable_p "$ac_path_SED" || continue
  3808. # Check for GNU ac_path_SED and select it if it is found.
  3809. # Check for GNU $ac_path_SED
  3810. case `"$ac_path_SED" --version 2>&1` in
  3811. *GNU*)
  3812. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3813. *)
  3814. ac_count=0
  3815. $as_echo_n 0123456789 >"conftest.in"
  3816. while :
  3817. do
  3818. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3819. mv "conftest.tmp" "conftest.in"
  3820. cp "conftest.in" "conftest.nl"
  3821. $as_echo '' >> "conftest.nl"
  3822. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3823. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3824. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3825. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3826. # Best one so far, save it but keep looking for a better one
  3827. ac_cv_path_SED="$ac_path_SED"
  3828. ac_path_SED_max=$ac_count
  3829. fi
  3830. # 10*(2^10) chars as input seems more than enough
  3831. test $ac_count -gt 10 && break
  3832. done
  3833. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3834. esac
  3835. $ac_path_SED_found && break 3
  3836. done
  3837. done
  3838. done
  3839. IFS=$as_save_IFS
  3840. if test -z "$ac_cv_path_SED"; then
  3841. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3842. fi
  3843. else
  3844. ac_cv_path_SED=$SED
  3845. fi
  3846. fi
  3847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3848. $as_echo "$ac_cv_path_SED" >&6; }
  3849. SED="$ac_cv_path_SED"
  3850. rm -f conftest.sed
  3851. test -z "$SED" && SED=sed
  3852. Xsed="$SED -e 1s/^X//"
  3853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3854. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3855. if ${ac_cv_path_GREP+:} false; then :
  3856. $as_echo_n "(cached) " >&6
  3857. else
  3858. if test -z "$GREP"; then
  3859. ac_path_GREP_found=false
  3860. # Loop through the user's path and test for each of PROGNAME-LIST
  3861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3862. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3863. do
  3864. IFS=$as_save_IFS
  3865. test -z "$as_dir" && as_dir=.
  3866. for ac_prog in grep ggrep; do
  3867. for ac_exec_ext in '' $ac_executable_extensions; do
  3868. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3869. as_fn_executable_p "$ac_path_GREP" || continue
  3870. # Check for GNU ac_path_GREP and select it if it is found.
  3871. # Check for GNU $ac_path_GREP
  3872. case `"$ac_path_GREP" --version 2>&1` in
  3873. *GNU*)
  3874. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3875. *)
  3876. ac_count=0
  3877. $as_echo_n 0123456789 >"conftest.in"
  3878. while :
  3879. do
  3880. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3881. mv "conftest.tmp" "conftest.in"
  3882. cp "conftest.in" "conftest.nl"
  3883. $as_echo 'GREP' >> "conftest.nl"
  3884. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3885. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3886. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3887. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3888. # Best one so far, save it but keep looking for a better one
  3889. ac_cv_path_GREP="$ac_path_GREP"
  3890. ac_path_GREP_max=$ac_count
  3891. fi
  3892. # 10*(2^10) chars as input seems more than enough
  3893. test $ac_count -gt 10 && break
  3894. done
  3895. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3896. esac
  3897. $ac_path_GREP_found && break 3
  3898. done
  3899. done
  3900. done
  3901. IFS=$as_save_IFS
  3902. if test -z "$ac_cv_path_GREP"; then
  3903. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3904. fi
  3905. else
  3906. ac_cv_path_GREP=$GREP
  3907. fi
  3908. fi
  3909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3910. $as_echo "$ac_cv_path_GREP" >&6; }
  3911. GREP="$ac_cv_path_GREP"
  3912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3913. $as_echo_n "checking for egrep... " >&6; }
  3914. if ${ac_cv_path_EGREP+:} false; then :
  3915. $as_echo_n "(cached) " >&6
  3916. else
  3917. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3918. then ac_cv_path_EGREP="$GREP -E"
  3919. else
  3920. if test -z "$EGREP"; then
  3921. ac_path_EGREP_found=false
  3922. # Loop through the user's path and test for each of PROGNAME-LIST
  3923. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3924. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3925. do
  3926. IFS=$as_save_IFS
  3927. test -z "$as_dir" && as_dir=.
  3928. for ac_prog in egrep; do
  3929. for ac_exec_ext in '' $ac_executable_extensions; do
  3930. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3931. as_fn_executable_p "$ac_path_EGREP" || continue
  3932. # Check for GNU ac_path_EGREP and select it if it is found.
  3933. # Check for GNU $ac_path_EGREP
  3934. case `"$ac_path_EGREP" --version 2>&1` in
  3935. *GNU*)
  3936. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3937. *)
  3938. ac_count=0
  3939. $as_echo_n 0123456789 >"conftest.in"
  3940. while :
  3941. do
  3942. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3943. mv "conftest.tmp" "conftest.in"
  3944. cp "conftest.in" "conftest.nl"
  3945. $as_echo 'EGREP' >> "conftest.nl"
  3946. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3947. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3948. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3949. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3950. # Best one so far, save it but keep looking for a better one
  3951. ac_cv_path_EGREP="$ac_path_EGREP"
  3952. ac_path_EGREP_max=$ac_count
  3953. fi
  3954. # 10*(2^10) chars as input seems more than enough
  3955. test $ac_count -gt 10 && break
  3956. done
  3957. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3958. esac
  3959. $ac_path_EGREP_found && break 3
  3960. done
  3961. done
  3962. done
  3963. IFS=$as_save_IFS
  3964. if test -z "$ac_cv_path_EGREP"; then
  3965. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3966. fi
  3967. else
  3968. ac_cv_path_EGREP=$EGREP
  3969. fi
  3970. fi
  3971. fi
  3972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3973. $as_echo "$ac_cv_path_EGREP" >&6; }
  3974. EGREP="$ac_cv_path_EGREP"
  3975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3976. $as_echo_n "checking for fgrep... " >&6; }
  3977. if ${ac_cv_path_FGREP+:} false; then :
  3978. $as_echo_n "(cached) " >&6
  3979. else
  3980. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3981. then ac_cv_path_FGREP="$GREP -F"
  3982. else
  3983. if test -z "$FGREP"; then
  3984. ac_path_FGREP_found=false
  3985. # Loop through the user's path and test for each of PROGNAME-LIST
  3986. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3987. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3988. do
  3989. IFS=$as_save_IFS
  3990. test -z "$as_dir" && as_dir=.
  3991. for ac_prog in fgrep; do
  3992. for ac_exec_ext in '' $ac_executable_extensions; do
  3993. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3994. as_fn_executable_p "$ac_path_FGREP" || continue
  3995. # Check for GNU ac_path_FGREP and select it if it is found.
  3996. # Check for GNU $ac_path_FGREP
  3997. case `"$ac_path_FGREP" --version 2>&1` in
  3998. *GNU*)
  3999. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4000. *)
  4001. ac_count=0
  4002. $as_echo_n 0123456789 >"conftest.in"
  4003. while :
  4004. do
  4005. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4006. mv "conftest.tmp" "conftest.in"
  4007. cp "conftest.in" "conftest.nl"
  4008. $as_echo 'FGREP' >> "conftest.nl"
  4009. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4010. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4011. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4012. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4013. # Best one so far, save it but keep looking for a better one
  4014. ac_cv_path_FGREP="$ac_path_FGREP"
  4015. ac_path_FGREP_max=$ac_count
  4016. fi
  4017. # 10*(2^10) chars as input seems more than enough
  4018. test $ac_count -gt 10 && break
  4019. done
  4020. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4021. esac
  4022. $ac_path_FGREP_found && break 3
  4023. done
  4024. done
  4025. done
  4026. IFS=$as_save_IFS
  4027. if test -z "$ac_cv_path_FGREP"; then
  4028. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4029. fi
  4030. else
  4031. ac_cv_path_FGREP=$FGREP
  4032. fi
  4033. fi
  4034. fi
  4035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4036. $as_echo "$ac_cv_path_FGREP" >&6; }
  4037. FGREP="$ac_cv_path_FGREP"
  4038. test -z "$GREP" && GREP=grep
  4039. # Check whether --with-gnu-ld was given.
  4040. if test "${with_gnu_ld+set}" = set; then :
  4041. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4042. else
  4043. with_gnu_ld=no
  4044. fi
  4045. ac_prog=ld
  4046. if test yes = "$GCC"; then
  4047. # Check if gcc -print-prog-name=ld gives a path.
  4048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4049. $as_echo_n "checking for ld used by $CC... " >&6; }
  4050. case $host in
  4051. *-*-mingw*)
  4052. # gcc leaves a trailing carriage return, which upsets mingw
  4053. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4054. *)
  4055. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4056. esac
  4057. case $ac_prog in
  4058. # Accept absolute paths.
  4059. [\\/]* | ?:[\\/]*)
  4060. re_direlt='/[^/][^/]*/\.\./'
  4061. # Canonicalize the pathname of ld
  4062. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4063. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4064. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4065. done
  4066. test -z "$LD" && LD=$ac_prog
  4067. ;;
  4068. "")
  4069. # If it fails, then pretend we aren't using GCC.
  4070. ac_prog=ld
  4071. ;;
  4072. *)
  4073. # If it is relative, then search for the first ld in PATH.
  4074. with_gnu_ld=unknown
  4075. ;;
  4076. esac
  4077. elif test yes = "$with_gnu_ld"; then
  4078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4079. $as_echo_n "checking for GNU ld... " >&6; }
  4080. else
  4081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4082. $as_echo_n "checking for non-GNU ld... " >&6; }
  4083. fi
  4084. if ${lt_cv_path_LD+:} false; then :
  4085. $as_echo_n "(cached) " >&6
  4086. else
  4087. if test -z "$LD"; then
  4088. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4089. for ac_dir in $PATH; do
  4090. IFS=$lt_save_ifs
  4091. test -z "$ac_dir" && ac_dir=.
  4092. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4093. lt_cv_path_LD=$ac_dir/$ac_prog
  4094. # Check to see if the program is GNU ld. I'd rather use --version,
  4095. # but apparently some variants of GNU ld only accept -v.
  4096. # Break only if it was the GNU/non-GNU ld that we prefer.
  4097. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4098. *GNU* | *'with BFD'*)
  4099. test no != "$with_gnu_ld" && break
  4100. ;;
  4101. *)
  4102. test yes != "$with_gnu_ld" && break
  4103. ;;
  4104. esac
  4105. fi
  4106. done
  4107. IFS=$lt_save_ifs
  4108. else
  4109. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4110. fi
  4111. fi
  4112. LD=$lt_cv_path_LD
  4113. if test -n "$LD"; then
  4114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4115. $as_echo "$LD" >&6; }
  4116. else
  4117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4118. $as_echo "no" >&6; }
  4119. fi
  4120. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4122. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4123. if ${lt_cv_prog_gnu_ld+:} false; then :
  4124. $as_echo_n "(cached) " >&6
  4125. else
  4126. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4127. case `$LD -v 2>&1 </dev/null` in
  4128. *GNU* | *'with BFD'*)
  4129. lt_cv_prog_gnu_ld=yes
  4130. ;;
  4131. *)
  4132. lt_cv_prog_gnu_ld=no
  4133. ;;
  4134. esac
  4135. fi
  4136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4137. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4138. with_gnu_ld=$lt_cv_prog_gnu_ld
  4139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4140. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4141. if ${lt_cv_path_NM+:} false; then :
  4142. $as_echo_n "(cached) " >&6
  4143. else
  4144. if test -n "$NM"; then
  4145. # Let the user override the test.
  4146. lt_cv_path_NM=$NM
  4147. else
  4148. lt_nm_to_check=${ac_tool_prefix}nm
  4149. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4150. lt_nm_to_check="$lt_nm_to_check nm"
  4151. fi
  4152. for lt_tmp_nm in $lt_nm_to_check; do
  4153. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4154. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4155. IFS=$lt_save_ifs
  4156. test -z "$ac_dir" && ac_dir=.
  4157. tmp_nm=$ac_dir/$lt_tmp_nm
  4158. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4159. # Check to see if the nm accepts a BSD-compat flag.
  4160. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4161. # nm: unknown option "B" ignored
  4162. # Tru64's nm complains that /dev/null is an invalid object file
  4163. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4164. case $build_os in
  4165. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4166. *) lt_bad_file=/dev/null ;;
  4167. esac
  4168. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4169. *$lt_bad_file* | *'Invalid file or object type'*)
  4170. lt_cv_path_NM="$tmp_nm -B"
  4171. break 2
  4172. ;;
  4173. *)
  4174. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4175. */dev/null*)
  4176. lt_cv_path_NM="$tmp_nm -p"
  4177. break 2
  4178. ;;
  4179. *)
  4180. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4181. continue # so that we can try to find one that supports BSD flags
  4182. ;;
  4183. esac
  4184. ;;
  4185. esac
  4186. fi
  4187. done
  4188. IFS=$lt_save_ifs
  4189. done
  4190. : ${lt_cv_path_NM=no}
  4191. fi
  4192. fi
  4193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4194. $as_echo "$lt_cv_path_NM" >&6; }
  4195. if test no != "$lt_cv_path_NM"; then
  4196. NM=$lt_cv_path_NM
  4197. else
  4198. # Didn't find any BSD compatible name lister, look for dumpbin.
  4199. if test -n "$DUMPBIN"; then :
  4200. # Let the user override the test.
  4201. else
  4202. if test -n "$ac_tool_prefix"; then
  4203. for ac_prog in dumpbin "link -dump"
  4204. do
  4205. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4206. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4208. $as_echo_n "checking for $ac_word... " >&6; }
  4209. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4210. $as_echo_n "(cached) " >&6
  4211. else
  4212. if test -n "$DUMPBIN"; then
  4213. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4214. else
  4215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4216. for as_dir in $PATH
  4217. do
  4218. IFS=$as_save_IFS
  4219. test -z "$as_dir" && as_dir=.
  4220. for ac_exec_ext in '' $ac_executable_extensions; do
  4221. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4222. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4223. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4224. break 2
  4225. fi
  4226. done
  4227. done
  4228. IFS=$as_save_IFS
  4229. fi
  4230. fi
  4231. DUMPBIN=$ac_cv_prog_DUMPBIN
  4232. if test -n "$DUMPBIN"; then
  4233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4234. $as_echo "$DUMPBIN" >&6; }
  4235. else
  4236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4237. $as_echo "no" >&6; }
  4238. fi
  4239. test -n "$DUMPBIN" && break
  4240. done
  4241. fi
  4242. if test -z "$DUMPBIN"; then
  4243. ac_ct_DUMPBIN=$DUMPBIN
  4244. for ac_prog in dumpbin "link -dump"
  4245. do
  4246. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4247. set dummy $ac_prog; ac_word=$2
  4248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4249. $as_echo_n "checking for $ac_word... " >&6; }
  4250. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4251. $as_echo_n "(cached) " >&6
  4252. else
  4253. if test -n "$ac_ct_DUMPBIN"; then
  4254. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4255. else
  4256. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4257. for as_dir in $PATH
  4258. do
  4259. IFS=$as_save_IFS
  4260. test -z "$as_dir" && as_dir=.
  4261. for ac_exec_ext in '' $ac_executable_extensions; do
  4262. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4263. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4264. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4265. break 2
  4266. fi
  4267. done
  4268. done
  4269. IFS=$as_save_IFS
  4270. fi
  4271. fi
  4272. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4273. if test -n "$ac_ct_DUMPBIN"; then
  4274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4275. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4276. else
  4277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4278. $as_echo "no" >&6; }
  4279. fi
  4280. test -n "$ac_ct_DUMPBIN" && break
  4281. done
  4282. if test "x$ac_ct_DUMPBIN" = x; then
  4283. DUMPBIN=":"
  4284. else
  4285. case $cross_compiling:$ac_tool_warned in
  4286. yes:)
  4287. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4288. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4289. ac_tool_warned=yes ;;
  4290. esac
  4291. DUMPBIN=$ac_ct_DUMPBIN
  4292. fi
  4293. fi
  4294. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4295. *COFF*)
  4296. DUMPBIN="$DUMPBIN -symbols -headers"
  4297. ;;
  4298. *)
  4299. DUMPBIN=:
  4300. ;;
  4301. esac
  4302. fi
  4303. if test : != "$DUMPBIN"; then
  4304. NM=$DUMPBIN
  4305. fi
  4306. fi
  4307. test -z "$NM" && NM=nm
  4308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4309. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4310. if ${lt_cv_nm_interface+:} false; then :
  4311. $as_echo_n "(cached) " >&6
  4312. else
  4313. lt_cv_nm_interface="BSD nm"
  4314. echo "int some_variable = 0;" > conftest.$ac_ext
  4315. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4316. (eval "$ac_compile" 2>conftest.err)
  4317. cat conftest.err >&5
  4318. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4319. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4320. cat conftest.err >&5
  4321. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4322. cat conftest.out >&5
  4323. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4324. lt_cv_nm_interface="MS dumpbin"
  4325. fi
  4326. rm -f conftest*
  4327. fi
  4328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4329. $as_echo "$lt_cv_nm_interface" >&6; }
  4330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4331. $as_echo_n "checking whether ln -s works... " >&6; }
  4332. LN_S=$as_ln_s
  4333. if test "$LN_S" = "ln -s"; then
  4334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4335. $as_echo "yes" >&6; }
  4336. else
  4337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4338. $as_echo "no, using $LN_S" >&6; }
  4339. fi
  4340. # find the maximum length of command line arguments
  4341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4342. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4343. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4344. $as_echo_n "(cached) " >&6
  4345. else
  4346. i=0
  4347. teststring=ABCD
  4348. case $build_os in
  4349. msdosdjgpp*)
  4350. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4351. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4352. # during glob expansion). Even if it were fixed, the result of this
  4353. # check would be larger than it should be.
  4354. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4355. ;;
  4356. gnu*)
  4357. # Under GNU Hurd, this test is not required because there is
  4358. # no limit to the length of command line arguments.
  4359. # Libtool will interpret -1 as no limit whatsoever
  4360. lt_cv_sys_max_cmd_len=-1;
  4361. ;;
  4362. cygwin* | mingw* | cegcc*)
  4363. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4364. # about 5 minutes as the teststring grows exponentially.
  4365. # Worse, since 9x/ME are not pre-emptively multitasking,
  4366. # you end up with a "frozen" computer, even though with patience
  4367. # the test eventually succeeds (with a max line length of 256k).
  4368. # Instead, let's just punt: use the minimum linelength reported by
  4369. # all of the supported platforms: 8192 (on NT/2K/XP).
  4370. lt_cv_sys_max_cmd_len=8192;
  4371. ;;
  4372. mint*)
  4373. # On MiNT this can take a long time and run out of memory.
  4374. lt_cv_sys_max_cmd_len=8192;
  4375. ;;
  4376. amigaos*)
  4377. # On AmigaOS with pdksh, this test takes hours, literally.
  4378. # So we just punt and use a minimum line length of 8192.
  4379. lt_cv_sys_max_cmd_len=8192;
  4380. ;;
  4381. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  4382. # This has been around since 386BSD, at least. Likely further.
  4383. if test -x /sbin/sysctl; then
  4384. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4385. elif test -x /usr/sbin/sysctl; then
  4386. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4387. else
  4388. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4389. fi
  4390. # And add a safety zone
  4391. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4392. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4393. ;;
  4394. interix*)
  4395. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4396. lt_cv_sys_max_cmd_len=196608
  4397. ;;
  4398. os2*)
  4399. # The test takes a long time on OS/2.
  4400. lt_cv_sys_max_cmd_len=8192
  4401. ;;
  4402. osf*)
  4403. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4404. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4405. # nice to cause kernel panics so lets avoid the loop below.
  4406. # First set a reasonable default.
  4407. lt_cv_sys_max_cmd_len=16384
  4408. #
  4409. if test -x /sbin/sysconfig; then
  4410. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4411. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4412. esac
  4413. fi
  4414. ;;
  4415. sco3.2v5*)
  4416. lt_cv_sys_max_cmd_len=102400
  4417. ;;
  4418. sysv5* | sco5v6* | sysv4.2uw2*)
  4419. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4420. if test -n "$kargmax"; then
  4421. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4422. else
  4423. lt_cv_sys_max_cmd_len=32768
  4424. fi
  4425. ;;
  4426. *)
  4427. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4428. if test -n "$lt_cv_sys_max_cmd_len" && \
  4429. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4430. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4431. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4432. else
  4433. # Make teststring a little bigger before we do anything with it.
  4434. # a 1K string should be a reasonable start.
  4435. for i in 1 2 3 4 5 6 7 8; do
  4436. teststring=$teststring$teststring
  4437. done
  4438. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4439. # If test is not a shell built-in, we'll probably end up computing a
  4440. # maximum length that is only half of the actual maximum length, but
  4441. # we can't tell.
  4442. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4443. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4444. test 17 != "$i" # 1/2 MB should be enough
  4445. do
  4446. i=`expr $i + 1`
  4447. teststring=$teststring$teststring
  4448. done
  4449. # Only check the string length outside the loop.
  4450. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4451. teststring=
  4452. # Add a significant safety factor because C++ compilers can tack on
  4453. # massive amounts of additional arguments before passing them to the
  4454. # linker. It appears as though 1/2 is a usable value.
  4455. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4456. fi
  4457. ;;
  4458. esac
  4459. fi
  4460. if test -n "$lt_cv_sys_max_cmd_len"; then
  4461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4462. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4463. else
  4464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4465. $as_echo "none" >&6; }
  4466. fi
  4467. max_cmd_len=$lt_cv_sys_max_cmd_len
  4468. : ${CP="cp -f"}
  4469. : ${MV="mv -f"}
  4470. : ${RM="rm -f"}
  4471. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4472. lt_unset=unset
  4473. else
  4474. lt_unset=false
  4475. fi
  4476. # test EBCDIC or ASCII
  4477. case `echo X|tr X '\101'` in
  4478. A) # ASCII based system
  4479. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4480. lt_SP2NL='tr \040 \012'
  4481. lt_NL2SP='tr \015\012 \040\040'
  4482. ;;
  4483. *) # EBCDIC based system
  4484. lt_SP2NL='tr \100 \n'
  4485. lt_NL2SP='tr \r\n \100\100'
  4486. ;;
  4487. esac
  4488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4489. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4490. if ${lt_cv_to_host_file_cmd+:} false; then :
  4491. $as_echo_n "(cached) " >&6
  4492. else
  4493. case $host in
  4494. *-*-mingw* )
  4495. case $build in
  4496. *-*-mingw* ) # actually msys
  4497. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4498. ;;
  4499. *-*-cygwin* )
  4500. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4501. ;;
  4502. * ) # otherwise, assume *nix
  4503. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4504. ;;
  4505. esac
  4506. ;;
  4507. *-*-cygwin* )
  4508. case $build in
  4509. *-*-mingw* ) # actually msys
  4510. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4511. ;;
  4512. *-*-cygwin* )
  4513. lt_cv_to_host_file_cmd=func_convert_file_noop
  4514. ;;
  4515. * ) # otherwise, assume *nix
  4516. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4517. ;;
  4518. esac
  4519. ;;
  4520. * ) # unhandled hosts (and "normal" native builds)
  4521. lt_cv_to_host_file_cmd=func_convert_file_noop
  4522. ;;
  4523. esac
  4524. fi
  4525. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4527. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4529. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4530. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4531. $as_echo_n "(cached) " >&6
  4532. else
  4533. #assume ordinary cross tools, or native build.
  4534. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4535. case $host in
  4536. *-*-mingw* )
  4537. case $build in
  4538. *-*-mingw* ) # actually msys
  4539. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4540. ;;
  4541. esac
  4542. ;;
  4543. esac
  4544. fi
  4545. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4547. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4549. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4550. if ${lt_cv_ld_reload_flag+:} false; then :
  4551. $as_echo_n "(cached) " >&6
  4552. else
  4553. lt_cv_ld_reload_flag='-r'
  4554. fi
  4555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4556. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4557. reload_flag=$lt_cv_ld_reload_flag
  4558. case $reload_flag in
  4559. "" | " "*) ;;
  4560. *) reload_flag=" $reload_flag" ;;
  4561. esac
  4562. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4563. case $host_os in
  4564. cygwin* | mingw* | pw32* | cegcc*)
  4565. if test yes != "$GCC"; then
  4566. reload_cmds=false
  4567. fi
  4568. ;;
  4569. darwin*)
  4570. if test yes = "$GCC"; then
  4571. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4572. else
  4573. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4574. fi
  4575. ;;
  4576. esac
  4577. if test -n "$ac_tool_prefix"; then
  4578. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4579. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4581. $as_echo_n "checking for $ac_word... " >&6; }
  4582. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4583. $as_echo_n "(cached) " >&6
  4584. else
  4585. if test -n "$OBJDUMP"; then
  4586. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4587. else
  4588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4589. for as_dir in $PATH
  4590. do
  4591. IFS=$as_save_IFS
  4592. test -z "$as_dir" && as_dir=.
  4593. for ac_exec_ext in '' $ac_executable_extensions; do
  4594. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4595. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4596. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4597. break 2
  4598. fi
  4599. done
  4600. done
  4601. IFS=$as_save_IFS
  4602. fi
  4603. fi
  4604. OBJDUMP=$ac_cv_prog_OBJDUMP
  4605. if test -n "$OBJDUMP"; then
  4606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4607. $as_echo "$OBJDUMP" >&6; }
  4608. else
  4609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4610. $as_echo "no" >&6; }
  4611. fi
  4612. fi
  4613. if test -z "$ac_cv_prog_OBJDUMP"; then
  4614. ac_ct_OBJDUMP=$OBJDUMP
  4615. # Extract the first word of "objdump", so it can be a program name with args.
  4616. set dummy objdump; ac_word=$2
  4617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4618. $as_echo_n "checking for $ac_word... " >&6; }
  4619. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4620. $as_echo_n "(cached) " >&6
  4621. else
  4622. if test -n "$ac_ct_OBJDUMP"; then
  4623. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4624. else
  4625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4626. for as_dir in $PATH
  4627. do
  4628. IFS=$as_save_IFS
  4629. test -z "$as_dir" && as_dir=.
  4630. for ac_exec_ext in '' $ac_executable_extensions; do
  4631. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4632. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4633. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4634. break 2
  4635. fi
  4636. done
  4637. done
  4638. IFS=$as_save_IFS
  4639. fi
  4640. fi
  4641. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4642. if test -n "$ac_ct_OBJDUMP"; then
  4643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4644. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4645. else
  4646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4647. $as_echo "no" >&6; }
  4648. fi
  4649. if test "x$ac_ct_OBJDUMP" = x; then
  4650. OBJDUMP="false"
  4651. else
  4652. case $cross_compiling:$ac_tool_warned in
  4653. yes:)
  4654. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4655. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4656. ac_tool_warned=yes ;;
  4657. esac
  4658. OBJDUMP=$ac_ct_OBJDUMP
  4659. fi
  4660. else
  4661. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4662. fi
  4663. test -z "$OBJDUMP" && OBJDUMP=objdump
  4664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4665. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4666. if ${lt_cv_deplibs_check_method+:} false; then :
  4667. $as_echo_n "(cached) " >&6
  4668. else
  4669. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4670. lt_cv_file_magic_test_file=
  4671. lt_cv_deplibs_check_method='unknown'
  4672. # Need to set the preceding variable on all platforms that support
  4673. # interlibrary dependencies.
  4674. # 'none' -- dependencies not supported.
  4675. # 'unknown' -- same as none, but documents that we really don't know.
  4676. # 'pass_all' -- all dependencies passed with no checks.
  4677. # 'test_compile' -- check by making test program.
  4678. # 'file_magic [[regex]]' -- check by looking for files in library path
  4679. # that responds to the $file_magic_cmd with a given extended regex.
  4680. # If you have 'file' or equivalent on your system and you're not sure
  4681. # whether 'pass_all' will *always* work, you probably want this one.
  4682. case $host_os in
  4683. aix[4-9]*)
  4684. lt_cv_deplibs_check_method=pass_all
  4685. ;;
  4686. beos*)
  4687. lt_cv_deplibs_check_method=pass_all
  4688. ;;
  4689. bsdi[45]*)
  4690. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4691. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4692. lt_cv_file_magic_test_file=/shlib/libc.so
  4693. ;;
  4694. cygwin*)
  4695. # func_win32_libid is a shell function defined in ltmain.sh
  4696. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4697. lt_cv_file_magic_cmd='func_win32_libid'
  4698. ;;
  4699. mingw* | pw32*)
  4700. # Base MSYS/MinGW do not provide the 'file' command needed by
  4701. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4702. # unless we find 'file', for example because we are cross-compiling.
  4703. if ( file / ) >/dev/null 2>&1; then
  4704. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4705. lt_cv_file_magic_cmd='func_win32_libid'
  4706. else
  4707. # Keep this pattern in sync with the one in func_win32_libid.
  4708. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4709. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4710. fi
  4711. ;;
  4712. cegcc*)
  4713. # use the weaker test based on 'objdump'. See mingw*.
  4714. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4715. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4716. ;;
  4717. darwin* | rhapsody*)
  4718. lt_cv_deplibs_check_method=pass_all
  4719. ;;
  4720. freebsd* | dragonfly*)
  4721. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4722. case $host_cpu in
  4723. i*86 )
  4724. # Not sure whether the presence of OpenBSD here was a mistake.
  4725. # Let's accept both of them until this is cleared up.
  4726. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4727. lt_cv_file_magic_cmd=/usr/bin/file
  4728. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4729. ;;
  4730. esac
  4731. else
  4732. lt_cv_deplibs_check_method=pass_all
  4733. fi
  4734. ;;
  4735. haiku*)
  4736. lt_cv_deplibs_check_method=pass_all
  4737. ;;
  4738. hpux10.20* | hpux11*)
  4739. lt_cv_file_magic_cmd=/usr/bin/file
  4740. case $host_cpu in
  4741. ia64*)
  4742. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4743. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4744. ;;
  4745. hppa*64*)
  4746. 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]'
  4747. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4748. ;;
  4749. *)
  4750. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4751. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4752. ;;
  4753. esac
  4754. ;;
  4755. interix[3-9]*)
  4756. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4757. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4758. ;;
  4759. irix5* | irix6* | nonstopux*)
  4760. case $LD in
  4761. *-32|*"-32 ") libmagic=32-bit;;
  4762. *-n32|*"-n32 ") libmagic=N32;;
  4763. *-64|*"-64 ") libmagic=64-bit;;
  4764. *) libmagic=never-match;;
  4765. esac
  4766. lt_cv_deplibs_check_method=pass_all
  4767. ;;
  4768. # This must be glibc/ELF.
  4769. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4770. lt_cv_deplibs_check_method=pass_all
  4771. ;;
  4772. netbsd*)
  4773. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4774. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4775. else
  4776. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4777. fi
  4778. ;;
  4779. newos6*)
  4780. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4781. lt_cv_file_magic_cmd=/usr/bin/file
  4782. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4783. ;;
  4784. *nto* | *qnx*)
  4785. lt_cv_deplibs_check_method=pass_all
  4786. ;;
  4787. openbsd* | bitrig*)
  4788. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  4789. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4790. else
  4791. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4792. fi
  4793. ;;
  4794. osf3* | osf4* | osf5*)
  4795. lt_cv_deplibs_check_method=pass_all
  4796. ;;
  4797. rdos*)
  4798. lt_cv_deplibs_check_method=pass_all
  4799. ;;
  4800. solaris*)
  4801. lt_cv_deplibs_check_method=pass_all
  4802. ;;
  4803. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4804. lt_cv_deplibs_check_method=pass_all
  4805. ;;
  4806. sysv4 | sysv4.3*)
  4807. case $host_vendor in
  4808. motorola)
  4809. 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]'
  4810. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4811. ;;
  4812. ncr)
  4813. lt_cv_deplibs_check_method=pass_all
  4814. ;;
  4815. sequent)
  4816. lt_cv_file_magic_cmd='/bin/file'
  4817. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4818. ;;
  4819. sni)
  4820. lt_cv_file_magic_cmd='/bin/file'
  4821. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4822. lt_cv_file_magic_test_file=/lib/libc.so
  4823. ;;
  4824. siemens)
  4825. lt_cv_deplibs_check_method=pass_all
  4826. ;;
  4827. pc)
  4828. lt_cv_deplibs_check_method=pass_all
  4829. ;;
  4830. esac
  4831. ;;
  4832. tpf*)
  4833. lt_cv_deplibs_check_method=pass_all
  4834. ;;
  4835. os2*)
  4836. lt_cv_deplibs_check_method=pass_all
  4837. ;;
  4838. esac
  4839. fi
  4840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4841. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4842. file_magic_glob=
  4843. want_nocaseglob=no
  4844. if test "$build" = "$host"; then
  4845. case $host_os in
  4846. mingw* | pw32*)
  4847. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4848. want_nocaseglob=yes
  4849. else
  4850. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4851. fi
  4852. ;;
  4853. esac
  4854. fi
  4855. file_magic_cmd=$lt_cv_file_magic_cmd
  4856. deplibs_check_method=$lt_cv_deplibs_check_method
  4857. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4858. if test -n "$ac_tool_prefix"; then
  4859. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4860. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4862. $as_echo_n "checking for $ac_word... " >&6; }
  4863. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4864. $as_echo_n "(cached) " >&6
  4865. else
  4866. if test -n "$DLLTOOL"; then
  4867. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4868. else
  4869. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4870. for as_dir in $PATH
  4871. do
  4872. IFS=$as_save_IFS
  4873. test -z "$as_dir" && as_dir=.
  4874. for ac_exec_ext in '' $ac_executable_extensions; do
  4875. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4876. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4877. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4878. break 2
  4879. fi
  4880. done
  4881. done
  4882. IFS=$as_save_IFS
  4883. fi
  4884. fi
  4885. DLLTOOL=$ac_cv_prog_DLLTOOL
  4886. if test -n "$DLLTOOL"; then
  4887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4888. $as_echo "$DLLTOOL" >&6; }
  4889. else
  4890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4891. $as_echo "no" >&6; }
  4892. fi
  4893. fi
  4894. if test -z "$ac_cv_prog_DLLTOOL"; then
  4895. ac_ct_DLLTOOL=$DLLTOOL
  4896. # Extract the first word of "dlltool", so it can be a program name with args.
  4897. set dummy dlltool; ac_word=$2
  4898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4899. $as_echo_n "checking for $ac_word... " >&6; }
  4900. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4901. $as_echo_n "(cached) " >&6
  4902. else
  4903. if test -n "$ac_ct_DLLTOOL"; then
  4904. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4905. else
  4906. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4907. for as_dir in $PATH
  4908. do
  4909. IFS=$as_save_IFS
  4910. test -z "$as_dir" && as_dir=.
  4911. for ac_exec_ext in '' $ac_executable_extensions; do
  4912. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4913. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4914. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4915. break 2
  4916. fi
  4917. done
  4918. done
  4919. IFS=$as_save_IFS
  4920. fi
  4921. fi
  4922. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4923. if test -n "$ac_ct_DLLTOOL"; then
  4924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4925. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4926. else
  4927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4928. $as_echo "no" >&6; }
  4929. fi
  4930. if test "x$ac_ct_DLLTOOL" = x; then
  4931. DLLTOOL="false"
  4932. else
  4933. case $cross_compiling:$ac_tool_warned in
  4934. yes:)
  4935. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4936. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4937. ac_tool_warned=yes ;;
  4938. esac
  4939. DLLTOOL=$ac_ct_DLLTOOL
  4940. fi
  4941. else
  4942. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4943. fi
  4944. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4946. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4947. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4948. $as_echo_n "(cached) " >&6
  4949. else
  4950. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4951. case $host_os in
  4952. cygwin* | mingw* | pw32* | cegcc*)
  4953. # two different shell functions defined in ltmain.sh;
  4954. # decide which one to use based on capabilities of $DLLTOOL
  4955. case `$DLLTOOL --help 2>&1` in
  4956. *--identify-strict*)
  4957. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4958. ;;
  4959. *)
  4960. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4961. ;;
  4962. esac
  4963. ;;
  4964. *)
  4965. # fallback: assume linklib IS sharedlib
  4966. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  4967. ;;
  4968. esac
  4969. fi
  4970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4971. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4972. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4973. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4974. if test -n "$ac_tool_prefix"; then
  4975. for ac_prog in ar
  4976. do
  4977. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4978. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4980. $as_echo_n "checking for $ac_word... " >&6; }
  4981. if ${ac_cv_prog_AR+:} false; then :
  4982. $as_echo_n "(cached) " >&6
  4983. else
  4984. if test -n "$AR"; then
  4985. ac_cv_prog_AR="$AR" # Let the user override the test.
  4986. else
  4987. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4988. for as_dir in $PATH
  4989. do
  4990. IFS=$as_save_IFS
  4991. test -z "$as_dir" && as_dir=.
  4992. for ac_exec_ext in '' $ac_executable_extensions; do
  4993. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4994. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4995. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4996. break 2
  4997. fi
  4998. done
  4999. done
  5000. IFS=$as_save_IFS
  5001. fi
  5002. fi
  5003. AR=$ac_cv_prog_AR
  5004. if test -n "$AR"; then
  5005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5006. $as_echo "$AR" >&6; }
  5007. else
  5008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5009. $as_echo "no" >&6; }
  5010. fi
  5011. test -n "$AR" && break
  5012. done
  5013. fi
  5014. if test -z "$AR"; then
  5015. ac_ct_AR=$AR
  5016. for ac_prog in ar
  5017. do
  5018. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5019. set dummy $ac_prog; ac_word=$2
  5020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5021. $as_echo_n "checking for $ac_word... " >&6; }
  5022. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5023. $as_echo_n "(cached) " >&6
  5024. else
  5025. if test -n "$ac_ct_AR"; then
  5026. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5027. else
  5028. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5029. for as_dir in $PATH
  5030. do
  5031. IFS=$as_save_IFS
  5032. test -z "$as_dir" && as_dir=.
  5033. for ac_exec_ext in '' $ac_executable_extensions; do
  5034. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5035. ac_cv_prog_ac_ct_AR="$ac_prog"
  5036. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5037. break 2
  5038. fi
  5039. done
  5040. done
  5041. IFS=$as_save_IFS
  5042. fi
  5043. fi
  5044. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5045. if test -n "$ac_ct_AR"; then
  5046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5047. $as_echo "$ac_ct_AR" >&6; }
  5048. else
  5049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5050. $as_echo "no" >&6; }
  5051. fi
  5052. test -n "$ac_ct_AR" && break
  5053. done
  5054. if test "x$ac_ct_AR" = x; then
  5055. AR="false"
  5056. else
  5057. case $cross_compiling:$ac_tool_warned in
  5058. yes:)
  5059. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5060. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5061. ac_tool_warned=yes ;;
  5062. esac
  5063. AR=$ac_ct_AR
  5064. fi
  5065. fi
  5066. : ${AR=ar}
  5067. : ${AR_FLAGS=cru}
  5068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5069. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5070. if ${lt_cv_ar_at_file+:} false; then :
  5071. $as_echo_n "(cached) " >&6
  5072. else
  5073. lt_cv_ar_at_file=no
  5074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5075. /* end confdefs.h. */
  5076. int
  5077. main ()
  5078. {
  5079. ;
  5080. return 0;
  5081. }
  5082. _ACEOF
  5083. if ac_fn_c_try_compile "$LINENO"; then :
  5084. echo conftest.$ac_objext > conftest.lst
  5085. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5086. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5087. (eval $lt_ar_try) 2>&5
  5088. ac_status=$?
  5089. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5090. test $ac_status = 0; }
  5091. if test 0 -eq "$ac_status"; then
  5092. # Ensure the archiver fails upon bogus file names.
  5093. rm -f conftest.$ac_objext libconftest.a
  5094. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5095. (eval $lt_ar_try) 2>&5
  5096. ac_status=$?
  5097. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5098. test $ac_status = 0; }
  5099. if test 0 -ne "$ac_status"; then
  5100. lt_cv_ar_at_file=@
  5101. fi
  5102. fi
  5103. rm -f conftest.* libconftest.a
  5104. fi
  5105. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5106. fi
  5107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5108. $as_echo "$lt_cv_ar_at_file" >&6; }
  5109. if test no = "$lt_cv_ar_at_file"; then
  5110. archiver_list_spec=
  5111. else
  5112. archiver_list_spec=$lt_cv_ar_at_file
  5113. fi
  5114. if test -n "$ac_tool_prefix"; then
  5115. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5116. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5118. $as_echo_n "checking for $ac_word... " >&6; }
  5119. if ${ac_cv_prog_STRIP+:} false; then :
  5120. $as_echo_n "(cached) " >&6
  5121. else
  5122. if test -n "$STRIP"; then
  5123. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5124. else
  5125. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5126. for as_dir in $PATH
  5127. do
  5128. IFS=$as_save_IFS
  5129. test -z "$as_dir" && as_dir=.
  5130. for ac_exec_ext in '' $ac_executable_extensions; do
  5131. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5132. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5133. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5134. break 2
  5135. fi
  5136. done
  5137. done
  5138. IFS=$as_save_IFS
  5139. fi
  5140. fi
  5141. STRIP=$ac_cv_prog_STRIP
  5142. if test -n "$STRIP"; then
  5143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5144. $as_echo "$STRIP" >&6; }
  5145. else
  5146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5147. $as_echo "no" >&6; }
  5148. fi
  5149. fi
  5150. if test -z "$ac_cv_prog_STRIP"; then
  5151. ac_ct_STRIP=$STRIP
  5152. # Extract the first word of "strip", so it can be a program name with args.
  5153. set dummy strip; ac_word=$2
  5154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5155. $as_echo_n "checking for $ac_word... " >&6; }
  5156. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5157. $as_echo_n "(cached) " >&6
  5158. else
  5159. if test -n "$ac_ct_STRIP"; then
  5160. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5161. else
  5162. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5163. for as_dir in $PATH
  5164. do
  5165. IFS=$as_save_IFS
  5166. test -z "$as_dir" && as_dir=.
  5167. for ac_exec_ext in '' $ac_executable_extensions; do
  5168. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5169. ac_cv_prog_ac_ct_STRIP="strip"
  5170. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5171. break 2
  5172. fi
  5173. done
  5174. done
  5175. IFS=$as_save_IFS
  5176. fi
  5177. fi
  5178. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5179. if test -n "$ac_ct_STRIP"; then
  5180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5181. $as_echo "$ac_ct_STRIP" >&6; }
  5182. else
  5183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5184. $as_echo "no" >&6; }
  5185. fi
  5186. if test "x$ac_ct_STRIP" = x; then
  5187. STRIP=":"
  5188. else
  5189. case $cross_compiling:$ac_tool_warned in
  5190. yes:)
  5191. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5192. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5193. ac_tool_warned=yes ;;
  5194. esac
  5195. STRIP=$ac_ct_STRIP
  5196. fi
  5197. else
  5198. STRIP="$ac_cv_prog_STRIP"
  5199. fi
  5200. test -z "$STRIP" && STRIP=:
  5201. if test -n "$ac_tool_prefix"; then
  5202. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5203. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5205. $as_echo_n "checking for $ac_word... " >&6; }
  5206. if ${ac_cv_prog_RANLIB+:} false; then :
  5207. $as_echo_n "(cached) " >&6
  5208. else
  5209. if test -n "$RANLIB"; then
  5210. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5211. else
  5212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5213. for as_dir in $PATH
  5214. do
  5215. IFS=$as_save_IFS
  5216. test -z "$as_dir" && as_dir=.
  5217. for ac_exec_ext in '' $ac_executable_extensions; do
  5218. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5219. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5220. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5221. break 2
  5222. fi
  5223. done
  5224. done
  5225. IFS=$as_save_IFS
  5226. fi
  5227. fi
  5228. RANLIB=$ac_cv_prog_RANLIB
  5229. if test -n "$RANLIB"; then
  5230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5231. $as_echo "$RANLIB" >&6; }
  5232. else
  5233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5234. $as_echo "no" >&6; }
  5235. fi
  5236. fi
  5237. if test -z "$ac_cv_prog_RANLIB"; then
  5238. ac_ct_RANLIB=$RANLIB
  5239. # Extract the first word of "ranlib", so it can be a program name with args.
  5240. set dummy ranlib; ac_word=$2
  5241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5242. $as_echo_n "checking for $ac_word... " >&6; }
  5243. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5244. $as_echo_n "(cached) " >&6
  5245. else
  5246. if test -n "$ac_ct_RANLIB"; then
  5247. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5248. else
  5249. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5250. for as_dir in $PATH
  5251. do
  5252. IFS=$as_save_IFS
  5253. test -z "$as_dir" && as_dir=.
  5254. for ac_exec_ext in '' $ac_executable_extensions; do
  5255. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5256. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5257. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5258. break 2
  5259. fi
  5260. done
  5261. done
  5262. IFS=$as_save_IFS
  5263. fi
  5264. fi
  5265. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5266. if test -n "$ac_ct_RANLIB"; then
  5267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5268. $as_echo "$ac_ct_RANLIB" >&6; }
  5269. else
  5270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5271. $as_echo "no" >&6; }
  5272. fi
  5273. if test "x$ac_ct_RANLIB" = x; then
  5274. RANLIB=":"
  5275. else
  5276. case $cross_compiling:$ac_tool_warned in
  5277. yes:)
  5278. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5279. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5280. ac_tool_warned=yes ;;
  5281. esac
  5282. RANLIB=$ac_ct_RANLIB
  5283. fi
  5284. else
  5285. RANLIB="$ac_cv_prog_RANLIB"
  5286. fi
  5287. test -z "$RANLIB" && RANLIB=:
  5288. # Determine commands to create old-style static archives.
  5289. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5290. old_postinstall_cmds='chmod 644 $oldlib'
  5291. old_postuninstall_cmds=
  5292. if test -n "$RANLIB"; then
  5293. case $host_os in
  5294. bitrig* | openbsd*)
  5295. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5296. ;;
  5297. *)
  5298. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5299. ;;
  5300. esac
  5301. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5302. fi
  5303. case $host_os in
  5304. darwin*)
  5305. lock_old_archive_extraction=yes ;;
  5306. *)
  5307. lock_old_archive_extraction=no ;;
  5308. esac
  5309. # If no C compiler was specified, use CC.
  5310. LTCC=${LTCC-"$CC"}
  5311. # If no C compiler flags were specified, use CFLAGS.
  5312. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5313. # Allow CC to be a program name with arguments.
  5314. compiler=$CC
  5315. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5317. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5318. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5319. $as_echo_n "(cached) " >&6
  5320. else
  5321. # These are sane defaults that work on at least a few old systems.
  5322. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5323. # Character class describing NM global symbol codes.
  5324. symcode='[BCDEGRST]'
  5325. # Regexp to match symbols that can be accessed directly from C.
  5326. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5327. # Define system-specific variables.
  5328. case $host_os in
  5329. aix*)
  5330. symcode='[BCDT]'
  5331. ;;
  5332. cygwin* | mingw* | pw32* | cegcc*)
  5333. symcode='[ABCDGISTW]'
  5334. ;;
  5335. hpux*)
  5336. if test ia64 = "$host_cpu"; then
  5337. symcode='[ABCDEGRST]'
  5338. fi
  5339. ;;
  5340. irix* | nonstopux*)
  5341. symcode='[BCDEGRST]'
  5342. ;;
  5343. osf*)
  5344. symcode='[BCDEGQRST]'
  5345. ;;
  5346. solaris*)
  5347. symcode='[BDRT]'
  5348. ;;
  5349. sco3.2v5*)
  5350. symcode='[DT]'
  5351. ;;
  5352. sysv4.2uw2*)
  5353. symcode='[DT]'
  5354. ;;
  5355. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5356. symcode='[ABDT]'
  5357. ;;
  5358. sysv4)
  5359. symcode='[DFNSTU]'
  5360. ;;
  5361. esac
  5362. # If we're using GNU nm, then use its standard symbol codes.
  5363. case `$NM -V 2>&1` in
  5364. *GNU* | *'with BFD'*)
  5365. symcode='[ABCDGIRSTW]' ;;
  5366. esac
  5367. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5368. # Gets list of data symbols to import.
  5369. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5370. # Adjust the below global symbol transforms to fixup imported variables.
  5371. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5372. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5373. lt_c_name_lib_hook="\
  5374. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5375. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5376. else
  5377. # Disable hooks by default.
  5378. lt_cv_sys_global_symbol_to_import=
  5379. lt_cdecl_hook=
  5380. lt_c_name_hook=
  5381. lt_c_name_lib_hook=
  5382. fi
  5383. # Transform an extracted symbol line into a proper C declaration.
  5384. # Some systems (esp. on ia64) link data and code symbols differently,
  5385. # so use this general approach.
  5386. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5387. $lt_cdecl_hook\
  5388. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5389. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5390. # Transform an extracted symbol line into symbol name and symbol address
  5391. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5392. $lt_c_name_hook\
  5393. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5394. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5395. # Transform an extracted symbol line into symbol name with lib prefix and
  5396. # symbol address.
  5397. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5398. $lt_c_name_lib_hook\
  5399. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5400. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5401. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5402. # Handle CRLF in mingw tool chain
  5403. opt_cr=
  5404. case $build_os in
  5405. mingw*)
  5406. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5407. ;;
  5408. esac
  5409. # Try without a prefix underscore, then with it.
  5410. for ac_symprfx in "" "_"; do
  5411. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5412. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5413. # Write the raw and C identifiers.
  5414. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5415. # Fake it for dumpbin and say T for any non-static function,
  5416. # D for any global variable and I for any imported variable.
  5417. # Also find C++ and __fastcall symbols from MSVC++,
  5418. # which start with @ or ?.
  5419. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5420. " {last_section=section; section=\$ 3};"\
  5421. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5422. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5423. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5424. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5425. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5426. " \$ 0!~/External *\|/{next};"\
  5427. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5428. " {if(hide[section]) next};"\
  5429. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5430. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5431. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5432. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5433. " ' prfx=^$ac_symprfx"
  5434. else
  5435. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5436. fi
  5437. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5438. # Check to see that the pipe works correctly.
  5439. pipe_works=no
  5440. rm -f conftest*
  5441. cat > conftest.$ac_ext <<_LT_EOF
  5442. #ifdef __cplusplus
  5443. extern "C" {
  5444. #endif
  5445. char nm_test_var;
  5446. void nm_test_func(void);
  5447. void nm_test_func(void){}
  5448. #ifdef __cplusplus
  5449. }
  5450. #endif
  5451. int main(){nm_test_var='a';nm_test_func();return(0);}
  5452. _LT_EOF
  5453. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5454. (eval $ac_compile) 2>&5
  5455. ac_status=$?
  5456. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5457. test $ac_status = 0; }; then
  5458. # Now try to grab the symbols.
  5459. nlist=conftest.nm
  5460. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5461. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5462. ac_status=$?
  5463. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5464. test $ac_status = 0; } && test -s "$nlist"; then
  5465. # Try sorting and uniquifying the output.
  5466. if sort "$nlist" | uniq > "$nlist"T; then
  5467. mv -f "$nlist"T "$nlist"
  5468. else
  5469. rm -f "$nlist"T
  5470. fi
  5471. # Make sure that we snagged all the symbols we need.
  5472. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5473. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5474. cat <<_LT_EOF > conftest.$ac_ext
  5475. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5476. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5477. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5478. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5479. # define LT_DLSYM_CONST
  5480. #elif defined __osf__
  5481. /* This system does not cope well with relocations in const data. */
  5482. # define LT_DLSYM_CONST
  5483. #else
  5484. # define LT_DLSYM_CONST const
  5485. #endif
  5486. #ifdef __cplusplus
  5487. extern "C" {
  5488. #endif
  5489. _LT_EOF
  5490. # Now generate the symbol file.
  5491. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5492. cat <<_LT_EOF >> conftest.$ac_ext
  5493. /* The mapping between symbol names and symbols. */
  5494. LT_DLSYM_CONST struct {
  5495. const char *name;
  5496. void *address;
  5497. }
  5498. lt__PROGRAM__LTX_preloaded_symbols[] =
  5499. {
  5500. { "@PROGRAM@", (void *) 0 },
  5501. _LT_EOF
  5502. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5503. cat <<\_LT_EOF >> conftest.$ac_ext
  5504. {0, (void *) 0}
  5505. };
  5506. /* This works around a problem in FreeBSD linker */
  5507. #ifdef FREEBSD_WORKAROUND
  5508. static const void *lt_preloaded_setup() {
  5509. return lt__PROGRAM__LTX_preloaded_symbols;
  5510. }
  5511. #endif
  5512. #ifdef __cplusplus
  5513. }
  5514. #endif
  5515. _LT_EOF
  5516. # Now try linking the two files.
  5517. mv conftest.$ac_objext conftstm.$ac_objext
  5518. lt_globsym_save_LIBS=$LIBS
  5519. lt_globsym_save_CFLAGS=$CFLAGS
  5520. LIBS=conftstm.$ac_objext
  5521. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5522. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5523. (eval $ac_link) 2>&5
  5524. ac_status=$?
  5525. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5526. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  5527. pipe_works=yes
  5528. fi
  5529. LIBS=$lt_globsym_save_LIBS
  5530. CFLAGS=$lt_globsym_save_CFLAGS
  5531. else
  5532. echo "cannot find nm_test_func in $nlist" >&5
  5533. fi
  5534. else
  5535. echo "cannot find nm_test_var in $nlist" >&5
  5536. fi
  5537. else
  5538. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5539. fi
  5540. else
  5541. echo "$progname: failed program was:" >&5
  5542. cat conftest.$ac_ext >&5
  5543. fi
  5544. rm -rf conftest* conftst*
  5545. # Do not use the global_symbol_pipe unless it works.
  5546. if test yes = "$pipe_works"; then
  5547. break
  5548. else
  5549. lt_cv_sys_global_symbol_pipe=
  5550. fi
  5551. done
  5552. fi
  5553. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5554. lt_cv_sys_global_symbol_to_cdecl=
  5555. fi
  5556. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5558. $as_echo "failed" >&6; }
  5559. else
  5560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5561. $as_echo "ok" >&6; }
  5562. fi
  5563. # Response file support.
  5564. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5565. nm_file_list_spec='@'
  5566. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5567. nm_file_list_spec='@'
  5568. fi
  5569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5570. $as_echo_n "checking for sysroot... " >&6; }
  5571. # Check whether --with-sysroot was given.
  5572. if test "${with_sysroot+set}" = set; then :
  5573. withval=$with_sysroot;
  5574. else
  5575. with_sysroot=no
  5576. fi
  5577. lt_sysroot=
  5578. case $with_sysroot in #(
  5579. yes)
  5580. if test yes = "$GCC"; then
  5581. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5582. fi
  5583. ;; #(
  5584. /*)
  5585. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5586. ;; #(
  5587. no|'')
  5588. ;; #(
  5589. *)
  5590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  5591. $as_echo "$with_sysroot" >&6; }
  5592. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5593. ;;
  5594. esac
  5595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5596. $as_echo "${lt_sysroot:-no}" >&6; }
  5597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  5598. $as_echo_n "checking for a working dd... " >&6; }
  5599. if ${ac_cv_path_lt_DD+:} false; then :
  5600. $as_echo_n "(cached) " >&6
  5601. else
  5602. printf 0123456789abcdef0123456789abcdef >conftest.i
  5603. cat conftest.i conftest.i >conftest2.i
  5604. : ${lt_DD:=$DD}
  5605. if test -z "$lt_DD"; then
  5606. ac_path_lt_DD_found=false
  5607. # Loop through the user's path and test for each of PROGNAME-LIST
  5608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5609. for as_dir in $PATH
  5610. do
  5611. IFS=$as_save_IFS
  5612. test -z "$as_dir" && as_dir=.
  5613. for ac_prog in dd; do
  5614. for ac_exec_ext in '' $ac_executable_extensions; do
  5615. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  5616. as_fn_executable_p "$ac_path_lt_DD" || continue
  5617. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5618. cmp -s conftest.i conftest.out \
  5619. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  5620. fi
  5621. $ac_path_lt_DD_found && break 3
  5622. done
  5623. done
  5624. done
  5625. IFS=$as_save_IFS
  5626. if test -z "$ac_cv_path_lt_DD"; then
  5627. :
  5628. fi
  5629. else
  5630. ac_cv_path_lt_DD=$lt_DD
  5631. fi
  5632. rm -f conftest.i conftest2.i conftest.out
  5633. fi
  5634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  5635. $as_echo "$ac_cv_path_lt_DD" >&6; }
  5636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  5637. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  5638. if ${lt_cv_truncate_bin+:} false; then :
  5639. $as_echo_n "(cached) " >&6
  5640. else
  5641. printf 0123456789abcdef0123456789abcdef >conftest.i
  5642. cat conftest.i conftest.i >conftest2.i
  5643. lt_cv_truncate_bin=
  5644. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5645. cmp -s conftest.i conftest.out \
  5646. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  5647. fi
  5648. rm -f conftest.i conftest2.i conftest.out
  5649. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  5650. fi
  5651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  5652. $as_echo "$lt_cv_truncate_bin" >&6; }
  5653. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  5654. func_cc_basename ()
  5655. {
  5656. for cc_temp in $*""; do
  5657. case $cc_temp in
  5658. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5659. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5660. \-*) ;;
  5661. *) break;;
  5662. esac
  5663. done
  5664. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  5665. }
  5666. # Check whether --enable-libtool-lock was given.
  5667. if test "${enable_libtool_lock+set}" = set; then :
  5668. enableval=$enable_libtool_lock;
  5669. fi
  5670. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  5671. # Some flags need to be propagated to the compiler or linker for good
  5672. # libtool support.
  5673. case $host in
  5674. ia64-*-hpux*)
  5675. # Find out what ABI is being produced by ac_compile, and set mode
  5676. # options accordingly.
  5677. echo 'int i;' > conftest.$ac_ext
  5678. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5679. (eval $ac_compile) 2>&5
  5680. ac_status=$?
  5681. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5682. test $ac_status = 0; }; then
  5683. case `/usr/bin/file conftest.$ac_objext` in
  5684. *ELF-32*)
  5685. HPUX_IA64_MODE=32
  5686. ;;
  5687. *ELF-64*)
  5688. HPUX_IA64_MODE=64
  5689. ;;
  5690. esac
  5691. fi
  5692. rm -rf conftest*
  5693. ;;
  5694. *-*-irix6*)
  5695. # Find out what ABI is being produced by ac_compile, and set linker
  5696. # options accordingly.
  5697. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5698. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5699. (eval $ac_compile) 2>&5
  5700. ac_status=$?
  5701. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5702. test $ac_status = 0; }; then
  5703. if test yes = "$lt_cv_prog_gnu_ld"; then
  5704. case `/usr/bin/file conftest.$ac_objext` in
  5705. *32-bit*)
  5706. LD="${LD-ld} -melf32bsmip"
  5707. ;;
  5708. *N32*)
  5709. LD="${LD-ld} -melf32bmipn32"
  5710. ;;
  5711. *64-bit*)
  5712. LD="${LD-ld} -melf64bmip"
  5713. ;;
  5714. esac
  5715. else
  5716. case `/usr/bin/file conftest.$ac_objext` in
  5717. *32-bit*)
  5718. LD="${LD-ld} -32"
  5719. ;;
  5720. *N32*)
  5721. LD="${LD-ld} -n32"
  5722. ;;
  5723. *64-bit*)
  5724. LD="${LD-ld} -64"
  5725. ;;
  5726. esac
  5727. fi
  5728. fi
  5729. rm -rf conftest*
  5730. ;;
  5731. mips64*-*linux*)
  5732. # Find out what ABI is being produced by ac_compile, and set linker
  5733. # options accordingly.
  5734. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5735. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5736. (eval $ac_compile) 2>&5
  5737. ac_status=$?
  5738. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5739. test $ac_status = 0; }; then
  5740. emul=elf
  5741. case `/usr/bin/file conftest.$ac_objext` in
  5742. *32-bit*)
  5743. emul="${emul}32"
  5744. ;;
  5745. *64-bit*)
  5746. emul="${emul}64"
  5747. ;;
  5748. esac
  5749. case `/usr/bin/file conftest.$ac_objext` in
  5750. *MSB*)
  5751. emul="${emul}btsmip"
  5752. ;;
  5753. *LSB*)
  5754. emul="${emul}ltsmip"
  5755. ;;
  5756. esac
  5757. case `/usr/bin/file conftest.$ac_objext` in
  5758. *N32*)
  5759. emul="${emul}n32"
  5760. ;;
  5761. esac
  5762. LD="${LD-ld} -m $emul"
  5763. fi
  5764. rm -rf conftest*
  5765. ;;
  5766. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5767. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5768. # Find out what ABI is being produced by ac_compile, and set linker
  5769. # options accordingly. Note that the listed cases only cover the
  5770. # situations where additional linker options are needed (such as when
  5771. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  5772. # vice versa); the common cases where no linker options are needed do
  5773. # not appear in the list.
  5774. echo 'int i;' > conftest.$ac_ext
  5775. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5776. (eval $ac_compile) 2>&5
  5777. ac_status=$?
  5778. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5779. test $ac_status = 0; }; then
  5780. case `/usr/bin/file conftest.o` in
  5781. *32-bit*)
  5782. case $host in
  5783. x86_64-*kfreebsd*-gnu)
  5784. LD="${LD-ld} -m elf_i386_fbsd"
  5785. ;;
  5786. x86_64-*linux*)
  5787. case `/usr/bin/file conftest.o` in
  5788. *x86-64*)
  5789. LD="${LD-ld} -m elf32_x86_64"
  5790. ;;
  5791. *)
  5792. LD="${LD-ld} -m elf_i386"
  5793. ;;
  5794. esac
  5795. ;;
  5796. powerpc64le-*linux*)
  5797. LD="${LD-ld} -m elf32lppclinux"
  5798. ;;
  5799. powerpc64-*linux*)
  5800. LD="${LD-ld} -m elf32ppclinux"
  5801. ;;
  5802. s390x-*linux*)
  5803. LD="${LD-ld} -m elf_s390"
  5804. ;;
  5805. sparc64-*linux*)
  5806. LD="${LD-ld} -m elf32_sparc"
  5807. ;;
  5808. esac
  5809. ;;
  5810. *64-bit*)
  5811. case $host in
  5812. x86_64-*kfreebsd*-gnu)
  5813. LD="${LD-ld} -m elf_x86_64_fbsd"
  5814. ;;
  5815. x86_64-*linux*)
  5816. LD="${LD-ld} -m elf_x86_64"
  5817. ;;
  5818. powerpcle-*linux*)
  5819. LD="${LD-ld} -m elf64lppc"
  5820. ;;
  5821. powerpc-*linux*)
  5822. LD="${LD-ld} -m elf64ppc"
  5823. ;;
  5824. s390*-*linux*|s390*-*tpf*)
  5825. LD="${LD-ld} -m elf64_s390"
  5826. ;;
  5827. sparc*-*linux*)
  5828. LD="${LD-ld} -m elf64_sparc"
  5829. ;;
  5830. esac
  5831. ;;
  5832. esac
  5833. fi
  5834. rm -rf conftest*
  5835. ;;
  5836. *-*-sco3.2v5*)
  5837. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5838. SAVE_CFLAGS=$CFLAGS
  5839. CFLAGS="$CFLAGS -belf"
  5840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5841. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5842. if ${lt_cv_cc_needs_belf+:} false; then :
  5843. $as_echo_n "(cached) " >&6
  5844. else
  5845. ac_ext=c
  5846. ac_cpp='$CPP $CPPFLAGS'
  5847. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5848. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5849. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5851. /* end confdefs.h. */
  5852. int
  5853. main ()
  5854. {
  5855. ;
  5856. return 0;
  5857. }
  5858. _ACEOF
  5859. if ac_fn_c_try_link "$LINENO"; then :
  5860. lt_cv_cc_needs_belf=yes
  5861. else
  5862. lt_cv_cc_needs_belf=no
  5863. fi
  5864. rm -f core conftest.err conftest.$ac_objext \
  5865. conftest$ac_exeext conftest.$ac_ext
  5866. ac_ext=c
  5867. ac_cpp='$CPP $CPPFLAGS'
  5868. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5869. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5870. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5871. fi
  5872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5873. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5874. if test yes != "$lt_cv_cc_needs_belf"; then
  5875. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5876. CFLAGS=$SAVE_CFLAGS
  5877. fi
  5878. ;;
  5879. *-*solaris*)
  5880. # Find out what ABI is being produced by ac_compile, and set linker
  5881. # options accordingly.
  5882. echo 'int i;' > conftest.$ac_ext
  5883. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5884. (eval $ac_compile) 2>&5
  5885. ac_status=$?
  5886. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5887. test $ac_status = 0; }; then
  5888. case `/usr/bin/file conftest.o` in
  5889. *64-bit*)
  5890. case $lt_cv_prog_gnu_ld in
  5891. yes*)
  5892. case $host in
  5893. i?86-*-solaris*|x86_64-*-solaris*)
  5894. LD="${LD-ld} -m elf_x86_64"
  5895. ;;
  5896. sparc*-*-solaris*)
  5897. LD="${LD-ld} -m elf64_sparc"
  5898. ;;
  5899. esac
  5900. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5901. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5902. LD=${LD-ld}_sol2
  5903. fi
  5904. ;;
  5905. *)
  5906. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5907. LD="${LD-ld} -64"
  5908. fi
  5909. ;;
  5910. esac
  5911. ;;
  5912. esac
  5913. fi
  5914. rm -rf conftest*
  5915. ;;
  5916. esac
  5917. need_locks=$enable_libtool_lock
  5918. if test -n "$ac_tool_prefix"; then
  5919. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5920. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5922. $as_echo_n "checking for $ac_word... " >&6; }
  5923. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5924. $as_echo_n "(cached) " >&6
  5925. else
  5926. if test -n "$MANIFEST_TOOL"; then
  5927. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5928. else
  5929. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5930. for as_dir in $PATH
  5931. do
  5932. IFS=$as_save_IFS
  5933. test -z "$as_dir" && as_dir=.
  5934. for ac_exec_ext in '' $ac_executable_extensions; do
  5935. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5936. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5937. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5938. break 2
  5939. fi
  5940. done
  5941. done
  5942. IFS=$as_save_IFS
  5943. fi
  5944. fi
  5945. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5946. if test -n "$MANIFEST_TOOL"; then
  5947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5948. $as_echo "$MANIFEST_TOOL" >&6; }
  5949. else
  5950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5951. $as_echo "no" >&6; }
  5952. fi
  5953. fi
  5954. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5955. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5956. # Extract the first word of "mt", so it can be a program name with args.
  5957. set dummy mt; ac_word=$2
  5958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5959. $as_echo_n "checking for $ac_word... " >&6; }
  5960. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5961. $as_echo_n "(cached) " >&6
  5962. else
  5963. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5964. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5965. else
  5966. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5967. for as_dir in $PATH
  5968. do
  5969. IFS=$as_save_IFS
  5970. test -z "$as_dir" && as_dir=.
  5971. for ac_exec_ext in '' $ac_executable_extensions; do
  5972. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5973. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5974. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5975. break 2
  5976. fi
  5977. done
  5978. done
  5979. IFS=$as_save_IFS
  5980. fi
  5981. fi
  5982. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5983. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5985. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5986. else
  5987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5988. $as_echo "no" >&6; }
  5989. fi
  5990. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5991. MANIFEST_TOOL=":"
  5992. else
  5993. case $cross_compiling:$ac_tool_warned in
  5994. yes:)
  5995. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5996. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5997. ac_tool_warned=yes ;;
  5998. esac
  5999. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6000. fi
  6001. else
  6002. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6003. fi
  6004. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6006. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6007. if ${lt_cv_path_mainfest_tool+:} false; then :
  6008. $as_echo_n "(cached) " >&6
  6009. else
  6010. lt_cv_path_mainfest_tool=no
  6011. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6012. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6013. cat conftest.err >&5
  6014. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6015. lt_cv_path_mainfest_tool=yes
  6016. fi
  6017. rm -f conftest*
  6018. fi
  6019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6020. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6021. if test yes != "$lt_cv_path_mainfest_tool"; then
  6022. MANIFEST_TOOL=:
  6023. fi
  6024. case $host_os in
  6025. rhapsody* | darwin*)
  6026. if test -n "$ac_tool_prefix"; then
  6027. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6028. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6030. $as_echo_n "checking for $ac_word... " >&6; }
  6031. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6032. $as_echo_n "(cached) " >&6
  6033. else
  6034. if test -n "$DSYMUTIL"; then
  6035. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6036. else
  6037. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6038. for as_dir in $PATH
  6039. do
  6040. IFS=$as_save_IFS
  6041. test -z "$as_dir" && as_dir=.
  6042. for ac_exec_ext in '' $ac_executable_extensions; do
  6043. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6044. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6045. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6046. break 2
  6047. fi
  6048. done
  6049. done
  6050. IFS=$as_save_IFS
  6051. fi
  6052. fi
  6053. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6054. if test -n "$DSYMUTIL"; then
  6055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6056. $as_echo "$DSYMUTIL" >&6; }
  6057. else
  6058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6059. $as_echo "no" >&6; }
  6060. fi
  6061. fi
  6062. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6063. ac_ct_DSYMUTIL=$DSYMUTIL
  6064. # Extract the first word of "dsymutil", so it can be a program name with args.
  6065. set dummy dsymutil; ac_word=$2
  6066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6067. $as_echo_n "checking for $ac_word... " >&6; }
  6068. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6069. $as_echo_n "(cached) " >&6
  6070. else
  6071. if test -n "$ac_ct_DSYMUTIL"; then
  6072. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6073. else
  6074. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6075. for as_dir in $PATH
  6076. do
  6077. IFS=$as_save_IFS
  6078. test -z "$as_dir" && as_dir=.
  6079. for ac_exec_ext in '' $ac_executable_extensions; do
  6080. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6081. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6082. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6083. break 2
  6084. fi
  6085. done
  6086. done
  6087. IFS=$as_save_IFS
  6088. fi
  6089. fi
  6090. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6091. if test -n "$ac_ct_DSYMUTIL"; then
  6092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6093. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6094. else
  6095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6096. $as_echo "no" >&6; }
  6097. fi
  6098. if test "x$ac_ct_DSYMUTIL" = x; then
  6099. DSYMUTIL=":"
  6100. else
  6101. case $cross_compiling:$ac_tool_warned in
  6102. yes:)
  6103. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6104. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6105. ac_tool_warned=yes ;;
  6106. esac
  6107. DSYMUTIL=$ac_ct_DSYMUTIL
  6108. fi
  6109. else
  6110. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6111. fi
  6112. if test -n "$ac_tool_prefix"; then
  6113. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6114. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6116. $as_echo_n "checking for $ac_word... " >&6; }
  6117. if ${ac_cv_prog_NMEDIT+:} false; then :
  6118. $as_echo_n "(cached) " >&6
  6119. else
  6120. if test -n "$NMEDIT"; then
  6121. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6122. else
  6123. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6124. for as_dir in $PATH
  6125. do
  6126. IFS=$as_save_IFS
  6127. test -z "$as_dir" && as_dir=.
  6128. for ac_exec_ext in '' $ac_executable_extensions; do
  6129. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6130. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6131. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6132. break 2
  6133. fi
  6134. done
  6135. done
  6136. IFS=$as_save_IFS
  6137. fi
  6138. fi
  6139. NMEDIT=$ac_cv_prog_NMEDIT
  6140. if test -n "$NMEDIT"; then
  6141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6142. $as_echo "$NMEDIT" >&6; }
  6143. else
  6144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6145. $as_echo "no" >&6; }
  6146. fi
  6147. fi
  6148. if test -z "$ac_cv_prog_NMEDIT"; then
  6149. ac_ct_NMEDIT=$NMEDIT
  6150. # Extract the first word of "nmedit", so it can be a program name with args.
  6151. set dummy nmedit; ac_word=$2
  6152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6153. $as_echo_n "checking for $ac_word... " >&6; }
  6154. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6155. $as_echo_n "(cached) " >&6
  6156. else
  6157. if test -n "$ac_ct_NMEDIT"; then
  6158. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6159. else
  6160. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6161. for as_dir in $PATH
  6162. do
  6163. IFS=$as_save_IFS
  6164. test -z "$as_dir" && as_dir=.
  6165. for ac_exec_ext in '' $ac_executable_extensions; do
  6166. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6167. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6168. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6169. break 2
  6170. fi
  6171. done
  6172. done
  6173. IFS=$as_save_IFS
  6174. fi
  6175. fi
  6176. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6177. if test -n "$ac_ct_NMEDIT"; then
  6178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6179. $as_echo "$ac_ct_NMEDIT" >&6; }
  6180. else
  6181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6182. $as_echo "no" >&6; }
  6183. fi
  6184. if test "x$ac_ct_NMEDIT" = x; then
  6185. NMEDIT=":"
  6186. else
  6187. case $cross_compiling:$ac_tool_warned in
  6188. yes:)
  6189. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6190. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6191. ac_tool_warned=yes ;;
  6192. esac
  6193. NMEDIT=$ac_ct_NMEDIT
  6194. fi
  6195. else
  6196. NMEDIT="$ac_cv_prog_NMEDIT"
  6197. fi
  6198. if test -n "$ac_tool_prefix"; then
  6199. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6200. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6202. $as_echo_n "checking for $ac_word... " >&6; }
  6203. if ${ac_cv_prog_LIPO+:} false; then :
  6204. $as_echo_n "(cached) " >&6
  6205. else
  6206. if test -n "$LIPO"; then
  6207. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6208. else
  6209. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6210. for as_dir in $PATH
  6211. do
  6212. IFS=$as_save_IFS
  6213. test -z "$as_dir" && as_dir=.
  6214. for ac_exec_ext in '' $ac_executable_extensions; do
  6215. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6216. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6217. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6218. break 2
  6219. fi
  6220. done
  6221. done
  6222. IFS=$as_save_IFS
  6223. fi
  6224. fi
  6225. LIPO=$ac_cv_prog_LIPO
  6226. if test -n "$LIPO"; then
  6227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6228. $as_echo "$LIPO" >&6; }
  6229. else
  6230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6231. $as_echo "no" >&6; }
  6232. fi
  6233. fi
  6234. if test -z "$ac_cv_prog_LIPO"; then
  6235. ac_ct_LIPO=$LIPO
  6236. # Extract the first word of "lipo", so it can be a program name with args.
  6237. set dummy lipo; ac_word=$2
  6238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6239. $as_echo_n "checking for $ac_word... " >&6; }
  6240. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6241. $as_echo_n "(cached) " >&6
  6242. else
  6243. if test -n "$ac_ct_LIPO"; then
  6244. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6245. else
  6246. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6247. for as_dir in $PATH
  6248. do
  6249. IFS=$as_save_IFS
  6250. test -z "$as_dir" && as_dir=.
  6251. for ac_exec_ext in '' $ac_executable_extensions; do
  6252. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6253. ac_cv_prog_ac_ct_LIPO="lipo"
  6254. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6255. break 2
  6256. fi
  6257. done
  6258. done
  6259. IFS=$as_save_IFS
  6260. fi
  6261. fi
  6262. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6263. if test -n "$ac_ct_LIPO"; then
  6264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6265. $as_echo "$ac_ct_LIPO" >&6; }
  6266. else
  6267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6268. $as_echo "no" >&6; }
  6269. fi
  6270. if test "x$ac_ct_LIPO" = x; then
  6271. LIPO=":"
  6272. else
  6273. case $cross_compiling:$ac_tool_warned in
  6274. yes:)
  6275. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6276. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6277. ac_tool_warned=yes ;;
  6278. esac
  6279. LIPO=$ac_ct_LIPO
  6280. fi
  6281. else
  6282. LIPO="$ac_cv_prog_LIPO"
  6283. fi
  6284. if test -n "$ac_tool_prefix"; then
  6285. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6286. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6288. $as_echo_n "checking for $ac_word... " >&6; }
  6289. if ${ac_cv_prog_OTOOL+:} false; then :
  6290. $as_echo_n "(cached) " >&6
  6291. else
  6292. if test -n "$OTOOL"; then
  6293. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6294. else
  6295. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6296. for as_dir in $PATH
  6297. do
  6298. IFS=$as_save_IFS
  6299. test -z "$as_dir" && as_dir=.
  6300. for ac_exec_ext in '' $ac_executable_extensions; do
  6301. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6302. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6303. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6304. break 2
  6305. fi
  6306. done
  6307. done
  6308. IFS=$as_save_IFS
  6309. fi
  6310. fi
  6311. OTOOL=$ac_cv_prog_OTOOL
  6312. if test -n "$OTOOL"; then
  6313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6314. $as_echo "$OTOOL" >&6; }
  6315. else
  6316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6317. $as_echo "no" >&6; }
  6318. fi
  6319. fi
  6320. if test -z "$ac_cv_prog_OTOOL"; then
  6321. ac_ct_OTOOL=$OTOOL
  6322. # Extract the first word of "otool", so it can be a program name with args.
  6323. set dummy otool; ac_word=$2
  6324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6325. $as_echo_n "checking for $ac_word... " >&6; }
  6326. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6327. $as_echo_n "(cached) " >&6
  6328. else
  6329. if test -n "$ac_ct_OTOOL"; then
  6330. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6331. else
  6332. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6333. for as_dir in $PATH
  6334. do
  6335. IFS=$as_save_IFS
  6336. test -z "$as_dir" && as_dir=.
  6337. for ac_exec_ext in '' $ac_executable_extensions; do
  6338. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6339. ac_cv_prog_ac_ct_OTOOL="otool"
  6340. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6341. break 2
  6342. fi
  6343. done
  6344. done
  6345. IFS=$as_save_IFS
  6346. fi
  6347. fi
  6348. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6349. if test -n "$ac_ct_OTOOL"; then
  6350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6351. $as_echo "$ac_ct_OTOOL" >&6; }
  6352. else
  6353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6354. $as_echo "no" >&6; }
  6355. fi
  6356. if test "x$ac_ct_OTOOL" = x; then
  6357. OTOOL=":"
  6358. else
  6359. case $cross_compiling:$ac_tool_warned in
  6360. yes:)
  6361. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6362. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6363. ac_tool_warned=yes ;;
  6364. esac
  6365. OTOOL=$ac_ct_OTOOL
  6366. fi
  6367. else
  6368. OTOOL="$ac_cv_prog_OTOOL"
  6369. fi
  6370. if test -n "$ac_tool_prefix"; then
  6371. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6372. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6374. $as_echo_n "checking for $ac_word... " >&6; }
  6375. if ${ac_cv_prog_OTOOL64+:} false; then :
  6376. $as_echo_n "(cached) " >&6
  6377. else
  6378. if test -n "$OTOOL64"; then
  6379. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6380. else
  6381. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6382. for as_dir in $PATH
  6383. do
  6384. IFS=$as_save_IFS
  6385. test -z "$as_dir" && as_dir=.
  6386. for ac_exec_ext in '' $ac_executable_extensions; do
  6387. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6388. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6389. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6390. break 2
  6391. fi
  6392. done
  6393. done
  6394. IFS=$as_save_IFS
  6395. fi
  6396. fi
  6397. OTOOL64=$ac_cv_prog_OTOOL64
  6398. if test -n "$OTOOL64"; then
  6399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6400. $as_echo "$OTOOL64" >&6; }
  6401. else
  6402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6403. $as_echo "no" >&6; }
  6404. fi
  6405. fi
  6406. if test -z "$ac_cv_prog_OTOOL64"; then
  6407. ac_ct_OTOOL64=$OTOOL64
  6408. # Extract the first word of "otool64", so it can be a program name with args.
  6409. set dummy otool64; ac_word=$2
  6410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6411. $as_echo_n "checking for $ac_word... " >&6; }
  6412. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6413. $as_echo_n "(cached) " >&6
  6414. else
  6415. if test -n "$ac_ct_OTOOL64"; then
  6416. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6417. else
  6418. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6419. for as_dir in $PATH
  6420. do
  6421. IFS=$as_save_IFS
  6422. test -z "$as_dir" && as_dir=.
  6423. for ac_exec_ext in '' $ac_executable_extensions; do
  6424. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6425. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6426. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6427. break 2
  6428. fi
  6429. done
  6430. done
  6431. IFS=$as_save_IFS
  6432. fi
  6433. fi
  6434. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6435. if test -n "$ac_ct_OTOOL64"; then
  6436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6437. $as_echo "$ac_ct_OTOOL64" >&6; }
  6438. else
  6439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6440. $as_echo "no" >&6; }
  6441. fi
  6442. if test "x$ac_ct_OTOOL64" = x; then
  6443. OTOOL64=":"
  6444. else
  6445. case $cross_compiling:$ac_tool_warned in
  6446. yes:)
  6447. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6448. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6449. ac_tool_warned=yes ;;
  6450. esac
  6451. OTOOL64=$ac_ct_OTOOL64
  6452. fi
  6453. else
  6454. OTOOL64="$ac_cv_prog_OTOOL64"
  6455. fi
  6456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6457. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6458. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6459. $as_echo_n "(cached) " >&6
  6460. else
  6461. lt_cv_apple_cc_single_mod=no
  6462. if test -z "$LT_MULTI_MODULE"; then
  6463. # By default we will add the -single_module flag. You can override
  6464. # by either setting the environment variable LT_MULTI_MODULE
  6465. # non-empty at configure time, or by adding -multi_module to the
  6466. # link flags.
  6467. rm -rf libconftest.dylib*
  6468. echo "int foo(void){return 1;}" > conftest.c
  6469. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6470. -dynamiclib -Wl,-single_module conftest.c" >&5
  6471. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6472. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6473. _lt_result=$?
  6474. # If there is a non-empty error log, and "single_module"
  6475. # appears in it, assume the flag caused a linker warning
  6476. if test -s conftest.err && $GREP single_module conftest.err; then
  6477. cat conftest.err >&5
  6478. # Otherwise, if the output was created with a 0 exit code from
  6479. # the compiler, it worked.
  6480. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  6481. lt_cv_apple_cc_single_mod=yes
  6482. else
  6483. cat conftest.err >&5
  6484. fi
  6485. rm -rf libconftest.dylib*
  6486. rm -f conftest.*
  6487. fi
  6488. fi
  6489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6490. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6492. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6493. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6494. $as_echo_n "(cached) " >&6
  6495. else
  6496. lt_cv_ld_exported_symbols_list=no
  6497. save_LDFLAGS=$LDFLAGS
  6498. echo "_main" > conftest.sym
  6499. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6501. /* end confdefs.h. */
  6502. int
  6503. main ()
  6504. {
  6505. ;
  6506. return 0;
  6507. }
  6508. _ACEOF
  6509. if ac_fn_c_try_link "$LINENO"; then :
  6510. lt_cv_ld_exported_symbols_list=yes
  6511. else
  6512. lt_cv_ld_exported_symbols_list=no
  6513. fi
  6514. rm -f core conftest.err conftest.$ac_objext \
  6515. conftest$ac_exeext conftest.$ac_ext
  6516. LDFLAGS=$save_LDFLAGS
  6517. fi
  6518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6519. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6521. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6522. if ${lt_cv_ld_force_load+:} false; then :
  6523. $as_echo_n "(cached) " >&6
  6524. else
  6525. lt_cv_ld_force_load=no
  6526. cat > conftest.c << _LT_EOF
  6527. int forced_loaded() { return 2;}
  6528. _LT_EOF
  6529. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6530. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6531. echo "$AR cru libconftest.a conftest.o" >&5
  6532. $AR cru libconftest.a conftest.o 2>&5
  6533. echo "$RANLIB libconftest.a" >&5
  6534. $RANLIB libconftest.a 2>&5
  6535. cat > conftest.c << _LT_EOF
  6536. int main() { return 0;}
  6537. _LT_EOF
  6538. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6539. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6540. _lt_result=$?
  6541. if test -s conftest.err && $GREP force_load conftest.err; then
  6542. cat conftest.err >&5
  6543. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  6544. lt_cv_ld_force_load=yes
  6545. else
  6546. cat conftest.err >&5
  6547. fi
  6548. rm -f conftest.err libconftest.a conftest conftest.c
  6549. rm -rf conftest.dSYM
  6550. fi
  6551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6552. $as_echo "$lt_cv_ld_force_load" >&6; }
  6553. case $host_os in
  6554. rhapsody* | darwin1.[012])
  6555. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  6556. darwin1.*)
  6557. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6558. darwin*) # darwin 5.x on
  6559. # if running on 10.5 or later, the deployment target defaults
  6560. # to the OS version, if on x86, and 10.4, the deployment
  6561. # target defaults to 10.4. Don't you love it?
  6562. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6563. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6564. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6565. 10.[012][,.]*)
  6566. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6567. 10.*)
  6568. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6569. esac
  6570. ;;
  6571. esac
  6572. if test yes = "$lt_cv_apple_cc_single_mod"; then
  6573. _lt_dar_single_mod='$single_module'
  6574. fi
  6575. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  6576. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  6577. else
  6578. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  6579. fi
  6580. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  6581. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6582. else
  6583. _lt_dsymutil=
  6584. fi
  6585. ;;
  6586. esac
  6587. # func_munge_path_list VARIABLE PATH
  6588. # -----------------------------------
  6589. # VARIABLE is name of variable containing _space_ separated list of
  6590. # directories to be munged by the contents of PATH, which is string
  6591. # having a format:
  6592. # "DIR[:DIR]:"
  6593. # string "DIR[ DIR]" will be prepended to VARIABLE
  6594. # ":DIR[:DIR]"
  6595. # string "DIR[ DIR]" will be appended to VARIABLE
  6596. # "DIRP[:DIRP]::[DIRA:]DIRA"
  6597. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  6598. # "DIRA[ DIRA]" will be appended to VARIABLE
  6599. # "DIR[:DIR]"
  6600. # VARIABLE will be replaced by "DIR[ DIR]"
  6601. func_munge_path_list ()
  6602. {
  6603. case x$2 in
  6604. x)
  6605. ;;
  6606. *:)
  6607. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  6608. ;;
  6609. x:*)
  6610. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  6611. ;;
  6612. *::*)
  6613. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  6614. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  6615. ;;
  6616. *)
  6617. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  6618. ;;
  6619. esac
  6620. }
  6621. ac_ext=c
  6622. ac_cpp='$CPP $CPPFLAGS'
  6623. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6624. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6625. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6627. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6628. # On Suns, sometimes $CPP names a directory.
  6629. if test -n "$CPP" && test -d "$CPP"; then
  6630. CPP=
  6631. fi
  6632. if test -z "$CPP"; then
  6633. if ${ac_cv_prog_CPP+:} false; then :
  6634. $as_echo_n "(cached) " >&6
  6635. else
  6636. # Double quotes because CPP needs to be expanded
  6637. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6638. do
  6639. ac_preproc_ok=false
  6640. for ac_c_preproc_warn_flag in '' yes
  6641. do
  6642. # Use a header file that comes with gcc, so configuring glibc
  6643. # with a fresh cross-compiler works.
  6644. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6645. # <limits.h> exists even on freestanding compilers.
  6646. # On the NeXT, cc -E runs the code through the compiler's parser,
  6647. # not just through cpp. "Syntax error" is here to catch this case.
  6648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6649. /* end confdefs.h. */
  6650. #ifdef __STDC__
  6651. # include <limits.h>
  6652. #else
  6653. # include <assert.h>
  6654. #endif
  6655. Syntax error
  6656. _ACEOF
  6657. if ac_fn_c_try_cpp "$LINENO"; then :
  6658. else
  6659. # Broken: fails on valid input.
  6660. continue
  6661. fi
  6662. rm -f conftest.err conftest.i conftest.$ac_ext
  6663. # OK, works on sane cases. Now check whether nonexistent headers
  6664. # can be detected and how.
  6665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6666. /* end confdefs.h. */
  6667. #include <ac_nonexistent.h>
  6668. _ACEOF
  6669. if ac_fn_c_try_cpp "$LINENO"; then :
  6670. # Broken: success on invalid input.
  6671. continue
  6672. else
  6673. # Passes both tests.
  6674. ac_preproc_ok=:
  6675. break
  6676. fi
  6677. rm -f conftest.err conftest.i conftest.$ac_ext
  6678. done
  6679. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6680. rm -f conftest.i conftest.err conftest.$ac_ext
  6681. if $ac_preproc_ok; then :
  6682. break
  6683. fi
  6684. done
  6685. ac_cv_prog_CPP=$CPP
  6686. fi
  6687. CPP=$ac_cv_prog_CPP
  6688. else
  6689. ac_cv_prog_CPP=$CPP
  6690. fi
  6691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6692. $as_echo "$CPP" >&6; }
  6693. ac_preproc_ok=false
  6694. for ac_c_preproc_warn_flag in '' yes
  6695. do
  6696. # Use a header file that comes with gcc, so configuring glibc
  6697. # with a fresh cross-compiler works.
  6698. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6699. # <limits.h> exists even on freestanding compilers.
  6700. # On the NeXT, cc -E runs the code through the compiler's parser,
  6701. # not just through cpp. "Syntax error" is here to catch this case.
  6702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6703. /* end confdefs.h. */
  6704. #ifdef __STDC__
  6705. # include <limits.h>
  6706. #else
  6707. # include <assert.h>
  6708. #endif
  6709. Syntax error
  6710. _ACEOF
  6711. if ac_fn_c_try_cpp "$LINENO"; then :
  6712. else
  6713. # Broken: fails on valid input.
  6714. continue
  6715. fi
  6716. rm -f conftest.err conftest.i conftest.$ac_ext
  6717. # OK, works on sane cases. Now check whether nonexistent headers
  6718. # can be detected and how.
  6719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6720. /* end confdefs.h. */
  6721. #include <ac_nonexistent.h>
  6722. _ACEOF
  6723. if ac_fn_c_try_cpp "$LINENO"; then :
  6724. # Broken: success on invalid input.
  6725. continue
  6726. else
  6727. # Passes both tests.
  6728. ac_preproc_ok=:
  6729. break
  6730. fi
  6731. rm -f conftest.err conftest.i conftest.$ac_ext
  6732. done
  6733. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6734. rm -f conftest.i conftest.err conftest.$ac_ext
  6735. if $ac_preproc_ok; then :
  6736. else
  6737. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6738. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6739. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6740. See \`config.log' for more details" "$LINENO" 5; }
  6741. fi
  6742. ac_ext=c
  6743. ac_cpp='$CPP $CPPFLAGS'
  6744. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6745. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6746. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6748. $as_echo_n "checking for ANSI C header files... " >&6; }
  6749. if ${ac_cv_header_stdc+:} false; then :
  6750. $as_echo_n "(cached) " >&6
  6751. else
  6752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6753. /* end confdefs.h. */
  6754. #include <stdlib.h>
  6755. #include <stdarg.h>
  6756. #include <string.h>
  6757. #include <float.h>
  6758. int
  6759. main ()
  6760. {
  6761. ;
  6762. return 0;
  6763. }
  6764. _ACEOF
  6765. if ac_fn_c_try_compile "$LINENO"; then :
  6766. ac_cv_header_stdc=yes
  6767. else
  6768. ac_cv_header_stdc=no
  6769. fi
  6770. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6771. if test $ac_cv_header_stdc = yes; then
  6772. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6774. /* end confdefs.h. */
  6775. #include <string.h>
  6776. _ACEOF
  6777. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6778. $EGREP "memchr" >/dev/null 2>&1; then :
  6779. else
  6780. ac_cv_header_stdc=no
  6781. fi
  6782. rm -f conftest*
  6783. fi
  6784. if test $ac_cv_header_stdc = yes; then
  6785. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6787. /* end confdefs.h. */
  6788. #include <stdlib.h>
  6789. _ACEOF
  6790. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6791. $EGREP "free" >/dev/null 2>&1; then :
  6792. else
  6793. ac_cv_header_stdc=no
  6794. fi
  6795. rm -f conftest*
  6796. fi
  6797. if test $ac_cv_header_stdc = yes; then
  6798. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6799. if test "$cross_compiling" = yes; then :
  6800. :
  6801. else
  6802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6803. /* end confdefs.h. */
  6804. #include <ctype.h>
  6805. #include <stdlib.h>
  6806. #if ((' ' & 0x0FF) == 0x020)
  6807. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6808. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6809. #else
  6810. # define ISLOWER(c) \
  6811. (('a' <= (c) && (c) <= 'i') \
  6812. || ('j' <= (c) && (c) <= 'r') \
  6813. || ('s' <= (c) && (c) <= 'z'))
  6814. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6815. #endif
  6816. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6817. int
  6818. main ()
  6819. {
  6820. int i;
  6821. for (i = 0; i < 256; i++)
  6822. if (XOR (islower (i), ISLOWER (i))
  6823. || toupper (i) != TOUPPER (i))
  6824. return 2;
  6825. return 0;
  6826. }
  6827. _ACEOF
  6828. if ac_fn_c_try_run "$LINENO"; then :
  6829. else
  6830. ac_cv_header_stdc=no
  6831. fi
  6832. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6833. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6834. fi
  6835. fi
  6836. fi
  6837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6838. $as_echo "$ac_cv_header_stdc" >&6; }
  6839. if test $ac_cv_header_stdc = yes; then
  6840. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6841. fi
  6842. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6843. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6844. inttypes.h stdint.h unistd.h
  6845. do :
  6846. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6847. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6848. "
  6849. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6850. cat >>confdefs.h <<_ACEOF
  6851. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6852. _ACEOF
  6853. fi
  6854. done
  6855. for ac_header in dlfcn.h
  6856. do :
  6857. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6858. "
  6859. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6860. cat >>confdefs.h <<_ACEOF
  6861. #define HAVE_DLFCN_H 1
  6862. _ACEOF
  6863. fi
  6864. done
  6865. # Set options
  6866. # Check whether --enable-static was given.
  6867. if test "${enable_static+set}" = set; then :
  6868. enableval=$enable_static; p=${PACKAGE-default}
  6869. case $enableval in
  6870. yes) enable_static=yes ;;
  6871. no) enable_static=no ;;
  6872. *)
  6873. enable_static=no
  6874. # Look at the argument we got. We use all the common list separators.
  6875. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6876. for pkg in $enableval; do
  6877. IFS=$lt_save_ifs
  6878. if test "X$pkg" = "X$p"; then
  6879. enable_static=yes
  6880. fi
  6881. done
  6882. IFS=$lt_save_ifs
  6883. ;;
  6884. esac
  6885. else
  6886. enable_static=no
  6887. fi
  6888. enable_dlopen=no
  6889. enable_win32_dll=no
  6890. # Check whether --enable-shared was given.
  6891. if test "${enable_shared+set}" = set; then :
  6892. enableval=$enable_shared; p=${PACKAGE-default}
  6893. case $enableval in
  6894. yes) enable_shared=yes ;;
  6895. no) enable_shared=no ;;
  6896. *)
  6897. enable_shared=no
  6898. # Look at the argument we got. We use all the common list separators.
  6899. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6900. for pkg in $enableval; do
  6901. IFS=$lt_save_ifs
  6902. if test "X$pkg" = "X$p"; then
  6903. enable_shared=yes
  6904. fi
  6905. done
  6906. IFS=$lt_save_ifs
  6907. ;;
  6908. esac
  6909. else
  6910. enable_shared=yes
  6911. fi
  6912. # Check whether --with-pic was given.
  6913. if test "${with_pic+set}" = set; then :
  6914. withval=$with_pic; lt_p=${PACKAGE-default}
  6915. case $withval in
  6916. yes|no) pic_mode=$withval ;;
  6917. *)
  6918. pic_mode=default
  6919. # Look at the argument we got. We use all the common list separators.
  6920. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6921. for lt_pkg in $withval; do
  6922. IFS=$lt_save_ifs
  6923. if test "X$lt_pkg" = "X$lt_p"; then
  6924. pic_mode=yes
  6925. fi
  6926. done
  6927. IFS=$lt_save_ifs
  6928. ;;
  6929. esac
  6930. else
  6931. pic_mode=default
  6932. fi
  6933. # Check whether --enable-fast-install was given.
  6934. if test "${enable_fast_install+set}" = set; then :
  6935. enableval=$enable_fast_install; p=${PACKAGE-default}
  6936. case $enableval in
  6937. yes) enable_fast_install=yes ;;
  6938. no) enable_fast_install=no ;;
  6939. *)
  6940. enable_fast_install=no
  6941. # Look at the argument we got. We use all the common list separators.
  6942. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6943. for pkg in $enableval; do
  6944. IFS=$lt_save_ifs
  6945. if test "X$pkg" = "X$p"; then
  6946. enable_fast_install=yes
  6947. fi
  6948. done
  6949. IFS=$lt_save_ifs
  6950. ;;
  6951. esac
  6952. else
  6953. enable_fast_install=yes
  6954. fi
  6955. shared_archive_member_spec=
  6956. case $host,$enable_shared in
  6957. power*-*-aix[5-9]*,yes)
  6958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  6959. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  6960. # Check whether --with-aix-soname was given.
  6961. if test "${with_aix_soname+set}" = set; then :
  6962. withval=$with_aix_soname; case $withval in
  6963. aix|svr4|both)
  6964. ;;
  6965. *)
  6966. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  6967. ;;
  6968. esac
  6969. lt_cv_with_aix_soname=$with_aix_soname
  6970. else
  6971. if ${lt_cv_with_aix_soname+:} false; then :
  6972. $as_echo_n "(cached) " >&6
  6973. else
  6974. lt_cv_with_aix_soname=aix
  6975. fi
  6976. with_aix_soname=$lt_cv_with_aix_soname
  6977. fi
  6978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  6979. $as_echo "$with_aix_soname" >&6; }
  6980. if test aix != "$with_aix_soname"; then
  6981. # For the AIX way of multilib, we name the shared archive member
  6982. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  6983. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  6984. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  6985. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  6986. if test 64 = "${OBJECT_MODE-32}"; then
  6987. shared_archive_member_spec=shr_64
  6988. else
  6989. shared_archive_member_spec=shr
  6990. fi
  6991. fi
  6992. ;;
  6993. *)
  6994. with_aix_soname=aix
  6995. ;;
  6996. esac
  6997. # This can be used to rebuild libtool when needed
  6998. LIBTOOL_DEPS=$ltmain
  6999. # Always use our own libtool.
  7000. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7001. test -z "$LN_S" && LN_S="ln -s"
  7002. if test -n "${ZSH_VERSION+set}"; then
  7003. setopt NO_GLOB_SUBST
  7004. fi
  7005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7006. $as_echo_n "checking for objdir... " >&6; }
  7007. if ${lt_cv_objdir+:} false; then :
  7008. $as_echo_n "(cached) " >&6
  7009. else
  7010. rm -f .libs 2>/dev/null
  7011. mkdir .libs 2>/dev/null
  7012. if test -d .libs; then
  7013. lt_cv_objdir=.libs
  7014. else
  7015. # MS-DOS does not allow filenames that begin with a dot.
  7016. lt_cv_objdir=_libs
  7017. fi
  7018. rmdir .libs 2>/dev/null
  7019. fi
  7020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7021. $as_echo "$lt_cv_objdir" >&6; }
  7022. objdir=$lt_cv_objdir
  7023. cat >>confdefs.h <<_ACEOF
  7024. #define LT_OBJDIR "$lt_cv_objdir/"
  7025. _ACEOF
  7026. case $host_os in
  7027. aix3*)
  7028. # AIX sometimes has problems with the GCC collect2 program. For some
  7029. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7030. # vanish in a puff of smoke.
  7031. if test set != "${COLLECT_NAMES+set}"; then
  7032. COLLECT_NAMES=
  7033. export COLLECT_NAMES
  7034. fi
  7035. ;;
  7036. esac
  7037. # Global variables:
  7038. ofile=libtool
  7039. can_build_shared=yes
  7040. # All known linkers require a '.a' archive for static linking (except MSVC,
  7041. # which needs '.lib').
  7042. libext=a
  7043. with_gnu_ld=$lt_cv_prog_gnu_ld
  7044. old_CC=$CC
  7045. old_CFLAGS=$CFLAGS
  7046. # Set sane defaults for various variables
  7047. test -z "$CC" && CC=cc
  7048. test -z "$LTCC" && LTCC=$CC
  7049. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7050. test -z "$LD" && LD=ld
  7051. test -z "$ac_objext" && ac_objext=o
  7052. func_cc_basename $compiler
  7053. cc_basename=$func_cc_basename_result
  7054. # Only perform the check for file, if the check method requires it
  7055. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7056. case $deplibs_check_method in
  7057. file_magic*)
  7058. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7060. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7061. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7062. $as_echo_n "(cached) " >&6
  7063. else
  7064. case $MAGIC_CMD in
  7065. [\\/*] | ?:[\\/]*)
  7066. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7067. ;;
  7068. *)
  7069. lt_save_MAGIC_CMD=$MAGIC_CMD
  7070. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7071. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7072. for ac_dir in $ac_dummy; do
  7073. IFS=$lt_save_ifs
  7074. test -z "$ac_dir" && ac_dir=.
  7075. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7076. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7077. if test -n "$file_magic_test_file"; then
  7078. case $deplibs_check_method in
  7079. "file_magic "*)
  7080. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7081. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7082. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7083. $EGREP "$file_magic_regex" > /dev/null; then
  7084. :
  7085. else
  7086. cat <<_LT_EOF 1>&2
  7087. *** Warning: the command libtool uses to detect shared libraries,
  7088. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7089. *** The result is that libtool may fail to recognize shared libraries
  7090. *** as such. This will affect the creation of libtool libraries that
  7091. *** depend on shared libraries, but programs linked with such libtool
  7092. *** libraries will work regardless of this problem. Nevertheless, you
  7093. *** may want to report the problem to your system manager and/or to
  7094. *** bug-libtool@gnu.org
  7095. _LT_EOF
  7096. fi ;;
  7097. esac
  7098. fi
  7099. break
  7100. fi
  7101. done
  7102. IFS=$lt_save_ifs
  7103. MAGIC_CMD=$lt_save_MAGIC_CMD
  7104. ;;
  7105. esac
  7106. fi
  7107. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7108. if test -n "$MAGIC_CMD"; then
  7109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7110. $as_echo "$MAGIC_CMD" >&6; }
  7111. else
  7112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7113. $as_echo "no" >&6; }
  7114. fi
  7115. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7116. if test -n "$ac_tool_prefix"; then
  7117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7118. $as_echo_n "checking for file... " >&6; }
  7119. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7120. $as_echo_n "(cached) " >&6
  7121. else
  7122. case $MAGIC_CMD in
  7123. [\\/*] | ?:[\\/]*)
  7124. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7125. ;;
  7126. *)
  7127. lt_save_MAGIC_CMD=$MAGIC_CMD
  7128. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7129. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7130. for ac_dir in $ac_dummy; do
  7131. IFS=$lt_save_ifs
  7132. test -z "$ac_dir" && ac_dir=.
  7133. if test -f "$ac_dir/file"; then
  7134. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7135. if test -n "$file_magic_test_file"; then
  7136. case $deplibs_check_method in
  7137. "file_magic "*)
  7138. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7139. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7140. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7141. $EGREP "$file_magic_regex" > /dev/null; then
  7142. :
  7143. else
  7144. cat <<_LT_EOF 1>&2
  7145. *** Warning: the command libtool uses to detect shared libraries,
  7146. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7147. *** The result is that libtool may fail to recognize shared libraries
  7148. *** as such. This will affect the creation of libtool libraries that
  7149. *** depend on shared libraries, but programs linked with such libtool
  7150. *** libraries will work regardless of this problem. Nevertheless, you
  7151. *** may want to report the problem to your system manager and/or to
  7152. *** bug-libtool@gnu.org
  7153. _LT_EOF
  7154. fi ;;
  7155. esac
  7156. fi
  7157. break
  7158. fi
  7159. done
  7160. IFS=$lt_save_ifs
  7161. MAGIC_CMD=$lt_save_MAGIC_CMD
  7162. ;;
  7163. esac
  7164. fi
  7165. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7166. if test -n "$MAGIC_CMD"; then
  7167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7168. $as_echo "$MAGIC_CMD" >&6; }
  7169. else
  7170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7171. $as_echo "no" >&6; }
  7172. fi
  7173. else
  7174. MAGIC_CMD=:
  7175. fi
  7176. fi
  7177. fi
  7178. ;;
  7179. esac
  7180. # Use C for the default configuration in the libtool script
  7181. lt_save_CC=$CC
  7182. ac_ext=c
  7183. ac_cpp='$CPP $CPPFLAGS'
  7184. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7185. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7186. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7187. # Source file extension for C test sources.
  7188. ac_ext=c
  7189. # Object file extension for compiled C test sources.
  7190. objext=o
  7191. objext=$objext
  7192. # Code to be used in simple compile tests
  7193. lt_simple_compile_test_code="int some_variable = 0;"
  7194. # Code to be used in simple link tests
  7195. lt_simple_link_test_code='int main(){return(0);}'
  7196. # If no C compiler was specified, use CC.
  7197. LTCC=${LTCC-"$CC"}
  7198. # If no C compiler flags were specified, use CFLAGS.
  7199. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7200. # Allow CC to be a program name with arguments.
  7201. compiler=$CC
  7202. # Save the default compiler, since it gets overwritten when the other
  7203. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7204. compiler_DEFAULT=$CC
  7205. # save warnings/boilerplate of simple test code
  7206. ac_outfile=conftest.$ac_objext
  7207. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7208. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7209. _lt_compiler_boilerplate=`cat conftest.err`
  7210. $RM conftest*
  7211. ac_outfile=conftest.$ac_objext
  7212. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7213. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7214. _lt_linker_boilerplate=`cat conftest.err`
  7215. $RM -r conftest*
  7216. if test -n "$compiler"; then
  7217. lt_prog_compiler_no_builtin_flag=
  7218. if test yes = "$GCC"; then
  7219. case $cc_basename in
  7220. nvcc*)
  7221. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7222. *)
  7223. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7224. esac
  7225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7226. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7227. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7228. $as_echo_n "(cached) " >&6
  7229. else
  7230. lt_cv_prog_compiler_rtti_exceptions=no
  7231. ac_outfile=conftest.$ac_objext
  7232. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7233. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7234. # Insert the option either (1) after the last *FLAGS variable, or
  7235. # (2) before a word containing "conftest.", or (3) at the end.
  7236. # Note that $ac_compile itself does not contain backslashes and begins
  7237. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7238. # The option is referenced via a variable to avoid confusing sed.
  7239. lt_compile=`echo "$ac_compile" | $SED \
  7240. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7241. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7242. -e 's:$: $lt_compiler_flag:'`
  7243. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7244. (eval "$lt_compile" 2>conftest.err)
  7245. ac_status=$?
  7246. cat conftest.err >&5
  7247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7248. if (exit $ac_status) && test -s "$ac_outfile"; then
  7249. # The compiler can only warn and ignore the option if not recognized
  7250. # So say no if there are warnings other than the usual output.
  7251. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7252. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7253. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7254. lt_cv_prog_compiler_rtti_exceptions=yes
  7255. fi
  7256. fi
  7257. $RM conftest*
  7258. fi
  7259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7260. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7261. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7262. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7263. else
  7264. :
  7265. fi
  7266. fi
  7267. lt_prog_compiler_wl=
  7268. lt_prog_compiler_pic=
  7269. lt_prog_compiler_static=
  7270. if test yes = "$GCC"; then
  7271. lt_prog_compiler_wl='-Wl,'
  7272. lt_prog_compiler_static='-static'
  7273. case $host_os in
  7274. aix*)
  7275. # All AIX code is PIC.
  7276. if test ia64 = "$host_cpu"; then
  7277. # AIX 5 now supports IA64 processor
  7278. lt_prog_compiler_static='-Bstatic'
  7279. fi
  7280. lt_prog_compiler_pic='-fPIC'
  7281. ;;
  7282. amigaos*)
  7283. case $host_cpu in
  7284. powerpc)
  7285. # see comment about AmigaOS4 .so support
  7286. lt_prog_compiler_pic='-fPIC'
  7287. ;;
  7288. m68k)
  7289. # FIXME: we need at least 68020 code to build shared libraries, but
  7290. # adding the '-m68020' flag to GCC prevents building anything better,
  7291. # like '-m68040'.
  7292. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7293. ;;
  7294. esac
  7295. ;;
  7296. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7297. # PIC is the default for these OSes.
  7298. ;;
  7299. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7300. # This hack is so that the source file can tell whether it is being
  7301. # built for inclusion in a dll (and should export symbols for example).
  7302. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7303. # (--disable-auto-import) libraries
  7304. lt_prog_compiler_pic='-DDLL_EXPORT'
  7305. case $host_os in
  7306. os2*)
  7307. lt_prog_compiler_static='$wl-static'
  7308. ;;
  7309. esac
  7310. ;;
  7311. darwin* | rhapsody*)
  7312. # PIC is the default on this platform
  7313. # Common symbols not allowed in MH_DYLIB files
  7314. lt_prog_compiler_pic='-fno-common'
  7315. ;;
  7316. haiku*)
  7317. # PIC is the default for Haiku.
  7318. # The "-static" flag exists, but is broken.
  7319. lt_prog_compiler_static=
  7320. ;;
  7321. hpux*)
  7322. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7323. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7324. # sets the default TLS model and affects inlining.
  7325. case $host_cpu in
  7326. hppa*64*)
  7327. # +Z the default
  7328. ;;
  7329. *)
  7330. lt_prog_compiler_pic='-fPIC'
  7331. ;;
  7332. esac
  7333. ;;
  7334. interix[3-9]*)
  7335. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7336. # Instead, we relocate shared libraries at runtime.
  7337. ;;
  7338. msdosdjgpp*)
  7339. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7340. # on systems that don't support them.
  7341. lt_prog_compiler_can_build_shared=no
  7342. enable_shared=no
  7343. ;;
  7344. *nto* | *qnx*)
  7345. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7346. # it will coredump.
  7347. lt_prog_compiler_pic='-fPIC -shared'
  7348. ;;
  7349. sysv4*MP*)
  7350. if test -d /usr/nec; then
  7351. lt_prog_compiler_pic=-Kconform_pic
  7352. fi
  7353. ;;
  7354. *)
  7355. lt_prog_compiler_pic='-fPIC'
  7356. ;;
  7357. esac
  7358. case $cc_basename in
  7359. nvcc*) # Cuda Compiler Driver 2.2
  7360. lt_prog_compiler_wl='-Xlinker '
  7361. if test -n "$lt_prog_compiler_pic"; then
  7362. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7363. fi
  7364. ;;
  7365. esac
  7366. else
  7367. # PORTME Check for flag to pass linker flags through the system compiler.
  7368. case $host_os in
  7369. aix*)
  7370. lt_prog_compiler_wl='-Wl,'
  7371. if test ia64 = "$host_cpu"; then
  7372. # AIX 5 now supports IA64 processor
  7373. lt_prog_compiler_static='-Bstatic'
  7374. else
  7375. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7376. fi
  7377. ;;
  7378. darwin* | rhapsody*)
  7379. # PIC is the default on this platform
  7380. # Common symbols not allowed in MH_DYLIB files
  7381. lt_prog_compiler_pic='-fno-common'
  7382. case $cc_basename in
  7383. nagfor*)
  7384. # NAG Fortran compiler
  7385. lt_prog_compiler_wl='-Wl,-Wl,,'
  7386. lt_prog_compiler_pic='-PIC'
  7387. lt_prog_compiler_static='-Bstatic'
  7388. ;;
  7389. esac
  7390. ;;
  7391. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7392. # This hack is so that the source file can tell whether it is being
  7393. # built for inclusion in a dll (and should export symbols for example).
  7394. lt_prog_compiler_pic='-DDLL_EXPORT'
  7395. case $host_os in
  7396. os2*)
  7397. lt_prog_compiler_static='$wl-static'
  7398. ;;
  7399. esac
  7400. ;;
  7401. hpux9* | hpux10* | hpux11*)
  7402. lt_prog_compiler_wl='-Wl,'
  7403. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7404. # not for PA HP-UX.
  7405. case $host_cpu in
  7406. hppa*64*|ia64*)
  7407. # +Z the default
  7408. ;;
  7409. *)
  7410. lt_prog_compiler_pic='+Z'
  7411. ;;
  7412. esac
  7413. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7414. lt_prog_compiler_static='$wl-a ${wl}archive'
  7415. ;;
  7416. irix5* | irix6* | nonstopux*)
  7417. lt_prog_compiler_wl='-Wl,'
  7418. # PIC (with -KPIC) is the default.
  7419. lt_prog_compiler_static='-non_shared'
  7420. ;;
  7421. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7422. case $cc_basename in
  7423. # old Intel for x86_64, which still supported -KPIC.
  7424. ecc*)
  7425. lt_prog_compiler_wl='-Wl,'
  7426. lt_prog_compiler_pic='-KPIC'
  7427. lt_prog_compiler_static='-static'
  7428. ;;
  7429. # icc used to be incompatible with GCC.
  7430. # ICC 10 doesn't accept -KPIC any more.
  7431. icc* | ifort*)
  7432. lt_prog_compiler_wl='-Wl,'
  7433. lt_prog_compiler_pic='-fPIC'
  7434. lt_prog_compiler_static='-static'
  7435. ;;
  7436. # Lahey Fortran 8.1.
  7437. lf95*)
  7438. lt_prog_compiler_wl='-Wl,'
  7439. lt_prog_compiler_pic='--shared'
  7440. lt_prog_compiler_static='--static'
  7441. ;;
  7442. nagfor*)
  7443. # NAG Fortran compiler
  7444. lt_prog_compiler_wl='-Wl,-Wl,,'
  7445. lt_prog_compiler_pic='-PIC'
  7446. lt_prog_compiler_static='-Bstatic'
  7447. ;;
  7448. tcc*)
  7449. # Fabrice Bellard et al's Tiny C Compiler
  7450. lt_prog_compiler_wl='-Wl,'
  7451. lt_prog_compiler_pic='-fPIC'
  7452. lt_prog_compiler_static='-static'
  7453. ;;
  7454. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7455. # Portland Group compilers (*not* the Pentium gcc compiler,
  7456. # which looks to be a dead project)
  7457. lt_prog_compiler_wl='-Wl,'
  7458. lt_prog_compiler_pic='-fpic'
  7459. lt_prog_compiler_static='-Bstatic'
  7460. ;;
  7461. ccc*)
  7462. lt_prog_compiler_wl='-Wl,'
  7463. # All Alpha code is PIC.
  7464. lt_prog_compiler_static='-non_shared'
  7465. ;;
  7466. xl* | bgxl* | bgf* | mpixl*)
  7467. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7468. lt_prog_compiler_wl='-Wl,'
  7469. lt_prog_compiler_pic='-qpic'
  7470. lt_prog_compiler_static='-qstaticlink'
  7471. ;;
  7472. *)
  7473. case `$CC -V 2>&1 | sed 5q` in
  7474. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7475. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7476. lt_prog_compiler_pic='-KPIC'
  7477. lt_prog_compiler_static='-Bstatic'
  7478. lt_prog_compiler_wl=''
  7479. ;;
  7480. *Sun\ F* | *Sun*Fortran*)
  7481. lt_prog_compiler_pic='-KPIC'
  7482. lt_prog_compiler_static='-Bstatic'
  7483. lt_prog_compiler_wl='-Qoption ld '
  7484. ;;
  7485. *Sun\ C*)
  7486. # Sun C 5.9
  7487. lt_prog_compiler_pic='-KPIC'
  7488. lt_prog_compiler_static='-Bstatic'
  7489. lt_prog_compiler_wl='-Wl,'
  7490. ;;
  7491. *Intel*\ [CF]*Compiler*)
  7492. lt_prog_compiler_wl='-Wl,'
  7493. lt_prog_compiler_pic='-fPIC'
  7494. lt_prog_compiler_static='-static'
  7495. ;;
  7496. *Portland\ Group*)
  7497. lt_prog_compiler_wl='-Wl,'
  7498. lt_prog_compiler_pic='-fpic'
  7499. lt_prog_compiler_static='-Bstatic'
  7500. ;;
  7501. esac
  7502. ;;
  7503. esac
  7504. ;;
  7505. newsos6)
  7506. lt_prog_compiler_pic='-KPIC'
  7507. lt_prog_compiler_static='-Bstatic'
  7508. ;;
  7509. *nto* | *qnx*)
  7510. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7511. # it will coredump.
  7512. lt_prog_compiler_pic='-fPIC -shared'
  7513. ;;
  7514. osf3* | osf4* | osf5*)
  7515. lt_prog_compiler_wl='-Wl,'
  7516. # All OSF/1 code is PIC.
  7517. lt_prog_compiler_static='-non_shared'
  7518. ;;
  7519. rdos*)
  7520. lt_prog_compiler_static='-non_shared'
  7521. ;;
  7522. solaris*)
  7523. lt_prog_compiler_pic='-KPIC'
  7524. lt_prog_compiler_static='-Bstatic'
  7525. case $cc_basename in
  7526. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7527. lt_prog_compiler_wl='-Qoption ld ';;
  7528. *)
  7529. lt_prog_compiler_wl='-Wl,';;
  7530. esac
  7531. ;;
  7532. sunos4*)
  7533. lt_prog_compiler_wl='-Qoption ld '
  7534. lt_prog_compiler_pic='-PIC'
  7535. lt_prog_compiler_static='-Bstatic'
  7536. ;;
  7537. sysv4 | sysv4.2uw2* | sysv4.3*)
  7538. lt_prog_compiler_wl='-Wl,'
  7539. lt_prog_compiler_pic='-KPIC'
  7540. lt_prog_compiler_static='-Bstatic'
  7541. ;;
  7542. sysv4*MP*)
  7543. if test -d /usr/nec; then
  7544. lt_prog_compiler_pic='-Kconform_pic'
  7545. lt_prog_compiler_static='-Bstatic'
  7546. fi
  7547. ;;
  7548. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7549. lt_prog_compiler_wl='-Wl,'
  7550. lt_prog_compiler_pic='-KPIC'
  7551. lt_prog_compiler_static='-Bstatic'
  7552. ;;
  7553. unicos*)
  7554. lt_prog_compiler_wl='-Wl,'
  7555. lt_prog_compiler_can_build_shared=no
  7556. ;;
  7557. uts4*)
  7558. lt_prog_compiler_pic='-pic'
  7559. lt_prog_compiler_static='-Bstatic'
  7560. ;;
  7561. *)
  7562. lt_prog_compiler_can_build_shared=no
  7563. ;;
  7564. esac
  7565. fi
  7566. case $host_os in
  7567. # For platforms that do not support PIC, -DPIC is meaningless:
  7568. *djgpp*)
  7569. lt_prog_compiler_pic=
  7570. ;;
  7571. *)
  7572. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7573. ;;
  7574. esac
  7575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7576. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7577. if ${lt_cv_prog_compiler_pic+:} false; then :
  7578. $as_echo_n "(cached) " >&6
  7579. else
  7580. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7581. fi
  7582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7583. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7584. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7585. #
  7586. # Check to make sure the PIC flag actually works.
  7587. #
  7588. if test -n "$lt_prog_compiler_pic"; then
  7589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7590. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7591. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7592. $as_echo_n "(cached) " >&6
  7593. else
  7594. lt_cv_prog_compiler_pic_works=no
  7595. ac_outfile=conftest.$ac_objext
  7596. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7597. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  7598. # Insert the option either (1) after the last *FLAGS variable, or
  7599. # (2) before a word containing "conftest.", or (3) at the end.
  7600. # Note that $ac_compile itself does not contain backslashes and begins
  7601. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7602. # The option is referenced via a variable to avoid confusing sed.
  7603. lt_compile=`echo "$ac_compile" | $SED \
  7604. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7605. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7606. -e 's:$: $lt_compiler_flag:'`
  7607. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7608. (eval "$lt_compile" 2>conftest.err)
  7609. ac_status=$?
  7610. cat conftest.err >&5
  7611. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7612. if (exit $ac_status) && test -s "$ac_outfile"; then
  7613. # The compiler can only warn and ignore the option if not recognized
  7614. # So say no if there are warnings other than the usual output.
  7615. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7616. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7617. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7618. lt_cv_prog_compiler_pic_works=yes
  7619. fi
  7620. fi
  7621. $RM conftest*
  7622. fi
  7623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7624. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7625. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  7626. case $lt_prog_compiler_pic in
  7627. "" | " "*) ;;
  7628. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7629. esac
  7630. else
  7631. lt_prog_compiler_pic=
  7632. lt_prog_compiler_can_build_shared=no
  7633. fi
  7634. fi
  7635. #
  7636. # Check to make sure the static flag actually works.
  7637. #
  7638. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7640. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7641. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7642. $as_echo_n "(cached) " >&6
  7643. else
  7644. lt_cv_prog_compiler_static_works=no
  7645. save_LDFLAGS=$LDFLAGS
  7646. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7647. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7648. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7649. # The linker can only warn and ignore the option if not recognized
  7650. # So say no if there are warnings
  7651. if test -s conftest.err; then
  7652. # Append any errors to the config.log.
  7653. cat conftest.err 1>&5
  7654. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7655. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7656. if diff conftest.exp conftest.er2 >/dev/null; then
  7657. lt_cv_prog_compiler_static_works=yes
  7658. fi
  7659. else
  7660. lt_cv_prog_compiler_static_works=yes
  7661. fi
  7662. fi
  7663. $RM -r conftest*
  7664. LDFLAGS=$save_LDFLAGS
  7665. fi
  7666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7667. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7668. if test yes = "$lt_cv_prog_compiler_static_works"; then
  7669. :
  7670. else
  7671. lt_prog_compiler_static=
  7672. fi
  7673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7674. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7675. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7676. $as_echo_n "(cached) " >&6
  7677. else
  7678. lt_cv_prog_compiler_c_o=no
  7679. $RM -r conftest 2>/dev/null
  7680. mkdir conftest
  7681. cd conftest
  7682. mkdir out
  7683. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7684. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7685. # Insert the option either (1) after the last *FLAGS variable, or
  7686. # (2) before a word containing "conftest.", or (3) at the end.
  7687. # Note that $ac_compile itself does not contain backslashes and begins
  7688. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7689. lt_compile=`echo "$ac_compile" | $SED \
  7690. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7691. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7692. -e 's:$: $lt_compiler_flag:'`
  7693. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7694. (eval "$lt_compile" 2>out/conftest.err)
  7695. ac_status=$?
  7696. cat out/conftest.err >&5
  7697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7698. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7699. then
  7700. # The compiler can only warn and ignore the option if not recognized
  7701. # So say no if there are warnings
  7702. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7703. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7704. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7705. lt_cv_prog_compiler_c_o=yes
  7706. fi
  7707. fi
  7708. chmod u+w . 2>&5
  7709. $RM conftest*
  7710. # SGI C++ compiler will create directory out/ii_files/ for
  7711. # template instantiation
  7712. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7713. $RM out/* && rmdir out
  7714. cd ..
  7715. $RM -r conftest
  7716. $RM conftest*
  7717. fi
  7718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7719. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7721. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7722. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7723. $as_echo_n "(cached) " >&6
  7724. else
  7725. lt_cv_prog_compiler_c_o=no
  7726. $RM -r conftest 2>/dev/null
  7727. mkdir conftest
  7728. cd conftest
  7729. mkdir out
  7730. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7731. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7732. # Insert the option either (1) after the last *FLAGS variable, or
  7733. # (2) before a word containing "conftest.", or (3) at the end.
  7734. # Note that $ac_compile itself does not contain backslashes and begins
  7735. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7736. lt_compile=`echo "$ac_compile" | $SED \
  7737. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7738. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7739. -e 's:$: $lt_compiler_flag:'`
  7740. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7741. (eval "$lt_compile" 2>out/conftest.err)
  7742. ac_status=$?
  7743. cat out/conftest.err >&5
  7744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7745. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7746. then
  7747. # The compiler can only warn and ignore the option if not recognized
  7748. # So say no if there are warnings
  7749. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7750. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7751. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7752. lt_cv_prog_compiler_c_o=yes
  7753. fi
  7754. fi
  7755. chmod u+w . 2>&5
  7756. $RM conftest*
  7757. # SGI C++ compiler will create directory out/ii_files/ for
  7758. # template instantiation
  7759. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7760. $RM out/* && rmdir out
  7761. cd ..
  7762. $RM -r conftest
  7763. $RM conftest*
  7764. fi
  7765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7766. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7767. hard_links=nottested
  7768. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  7769. # do not overwrite the value of need_locks provided by the user
  7770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7771. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7772. hard_links=yes
  7773. $RM conftest*
  7774. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7775. touch conftest.a
  7776. ln conftest.a conftest.b 2>&5 || hard_links=no
  7777. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7779. $as_echo "$hard_links" >&6; }
  7780. if test no = "$hard_links"; then
  7781. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  7782. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  7783. need_locks=warn
  7784. fi
  7785. else
  7786. need_locks=no
  7787. fi
  7788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7789. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7790. runpath_var=
  7791. allow_undefined_flag=
  7792. always_export_symbols=no
  7793. archive_cmds=
  7794. archive_expsym_cmds=
  7795. compiler_needs_object=no
  7796. enable_shared_with_static_runtimes=no
  7797. export_dynamic_flag_spec=
  7798. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7799. hardcode_automatic=no
  7800. hardcode_direct=no
  7801. hardcode_direct_absolute=no
  7802. hardcode_libdir_flag_spec=
  7803. hardcode_libdir_separator=
  7804. hardcode_minus_L=no
  7805. hardcode_shlibpath_var=unsupported
  7806. inherit_rpath=no
  7807. link_all_deplibs=unknown
  7808. module_cmds=
  7809. module_expsym_cmds=
  7810. old_archive_from_new_cmds=
  7811. old_archive_from_expsyms_cmds=
  7812. thread_safe_flag_spec=
  7813. whole_archive_flag_spec=
  7814. # include_expsyms should be a list of space-separated symbols to be *always*
  7815. # included in the symbol list
  7816. include_expsyms=
  7817. # exclude_expsyms can be an extended regexp of symbols to exclude
  7818. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  7819. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  7820. # as well as any symbol that contains 'd'.
  7821. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7822. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7823. # platforms (ab)use it in PIC code, but their linkers get confused if
  7824. # the symbol is explicitly referenced. Since portable code cannot
  7825. # rely on this symbol name, it's probably fine to never include it in
  7826. # preloaded symbol tables.
  7827. # Exclude shared library initialization/finalization symbols.
  7828. extract_expsyms_cmds=
  7829. case $host_os in
  7830. cygwin* | mingw* | pw32* | cegcc*)
  7831. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7832. # When not using gcc, we currently assume that we are using
  7833. # Microsoft Visual C++.
  7834. if test yes != "$GCC"; then
  7835. with_gnu_ld=no
  7836. fi
  7837. ;;
  7838. interix*)
  7839. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7840. with_gnu_ld=yes
  7841. ;;
  7842. openbsd* | bitrig*)
  7843. with_gnu_ld=no
  7844. ;;
  7845. esac
  7846. ld_shlibs=yes
  7847. # On some targets, GNU ld is compatible enough with the native linker
  7848. # that we're better off using the native interface for both.
  7849. lt_use_gnu_ld_interface=no
  7850. if test yes = "$with_gnu_ld"; then
  7851. case $host_os in
  7852. aix*)
  7853. # The AIX port of GNU ld has always aspired to compatibility
  7854. # with the native linker. However, as the warning in the GNU ld
  7855. # block says, versions before 2.19.5* couldn't really create working
  7856. # shared libraries, regardless of the interface used.
  7857. case `$LD -v 2>&1` in
  7858. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7859. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7860. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7861. *)
  7862. lt_use_gnu_ld_interface=yes
  7863. ;;
  7864. esac
  7865. ;;
  7866. *)
  7867. lt_use_gnu_ld_interface=yes
  7868. ;;
  7869. esac
  7870. fi
  7871. if test yes = "$lt_use_gnu_ld_interface"; then
  7872. # If archive_cmds runs LD, not CC, wlarc should be empty
  7873. wlarc='$wl'
  7874. # Set some defaults for GNU ld with shared library support. These
  7875. # are reset later if shared libraries are not supported. Putting them
  7876. # here allows them to be overridden if necessary.
  7877. runpath_var=LD_RUN_PATH
  7878. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  7879. export_dynamic_flag_spec='$wl--export-dynamic'
  7880. # ancient GNU ld didn't support --whole-archive et. al.
  7881. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7882. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  7883. else
  7884. whole_archive_flag_spec=
  7885. fi
  7886. supports_anon_versioning=no
  7887. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  7888. *GNU\ gold*) supports_anon_versioning=yes ;;
  7889. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7890. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7891. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7892. *\ 2.11.*) ;; # other 2.11 versions
  7893. *) supports_anon_versioning=yes ;;
  7894. esac
  7895. # See if GNU ld supports shared libraries.
  7896. case $host_os in
  7897. aix[3-9]*)
  7898. # On AIX/PPC, the GNU linker is very broken
  7899. if test ia64 != "$host_cpu"; then
  7900. ld_shlibs=no
  7901. cat <<_LT_EOF 1>&2
  7902. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7903. *** to be unable to reliably create shared libraries on AIX.
  7904. *** Therefore, libtool is disabling shared libraries support. If you
  7905. *** really care for shared libraries, you may want to install binutils
  7906. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7907. *** You will then need to restart the configuration process.
  7908. _LT_EOF
  7909. fi
  7910. ;;
  7911. amigaos*)
  7912. case $host_cpu in
  7913. powerpc)
  7914. # see comment about AmigaOS4 .so support
  7915. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7916. archive_expsym_cmds=''
  7917. ;;
  7918. m68k)
  7919. 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)'
  7920. hardcode_libdir_flag_spec='-L$libdir'
  7921. hardcode_minus_L=yes
  7922. ;;
  7923. esac
  7924. ;;
  7925. beos*)
  7926. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7927. allow_undefined_flag=unsupported
  7928. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7929. # support --undefined. This deserves some investigation. FIXME
  7930. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7931. else
  7932. ld_shlibs=no
  7933. fi
  7934. ;;
  7935. cygwin* | mingw* | pw32* | cegcc*)
  7936. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7937. # as there is no search path for DLLs.
  7938. hardcode_libdir_flag_spec='-L$libdir'
  7939. export_dynamic_flag_spec='$wl--export-all-symbols'
  7940. allow_undefined_flag=unsupported
  7941. always_export_symbols=no
  7942. enable_shared_with_static_runtimes=yes
  7943. 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'
  7944. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7945. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7946. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7947. # If the export-symbols file already is a .def file, use it as
  7948. # is; otherwise, prepend EXPORTS...
  7949. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  7950. cp $export_symbols $output_objdir/$soname.def;
  7951. else
  7952. echo EXPORTS > $output_objdir/$soname.def;
  7953. cat $export_symbols >> $output_objdir/$soname.def;
  7954. fi~
  7955. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7956. else
  7957. ld_shlibs=no
  7958. fi
  7959. ;;
  7960. haiku*)
  7961. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7962. link_all_deplibs=yes
  7963. ;;
  7964. os2*)
  7965. hardcode_libdir_flag_spec='-L$libdir'
  7966. hardcode_minus_L=yes
  7967. allow_undefined_flag=unsupported
  7968. shrext_cmds=.dll
  7969. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7970. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7971. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7972. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7973. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  7974. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7975. emximp -o $lib $output_objdir/$libname.def'
  7976. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7977. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7978. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7979. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7980. prefix_cmds="$SED"~
  7981. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  7982. prefix_cmds="$prefix_cmds -e 1d";
  7983. fi~
  7984. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  7985. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  7986. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7987. emximp -o $lib $output_objdir/$libname.def'
  7988. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  7989. enable_shared_with_static_runtimes=yes
  7990. ;;
  7991. interix[3-9]*)
  7992. hardcode_direct=no
  7993. hardcode_shlibpath_var=no
  7994. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  7995. export_dynamic_flag_spec='$wl-E'
  7996. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7997. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7998. # default) and relocated if they conflict, which is a slow very memory
  7999. # consuming and fragmenting process. To avoid this, we pick a random,
  8000. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8001. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8002. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8003. 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'
  8004. ;;
  8005. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8006. tmp_diet=no
  8007. if test linux-dietlibc = "$host_os"; then
  8008. case $cc_basename in
  8009. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8010. esac
  8011. fi
  8012. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8013. && test no = "$tmp_diet"
  8014. then
  8015. tmp_addflag=' $pic_flag'
  8016. tmp_sharedflag='-shared'
  8017. case $cc_basename,$host_cpu in
  8018. pgcc*) # Portland Group C compiler
  8019. 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'
  8020. tmp_addflag=' $pic_flag'
  8021. ;;
  8022. pgf77* | pgf90* | pgf95* | pgfortran*)
  8023. # Portland Group f77 and f90 compilers
  8024. 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'
  8025. tmp_addflag=' $pic_flag -Mnomain' ;;
  8026. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8027. tmp_addflag=' -i_dynamic' ;;
  8028. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8029. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8030. ifc* | ifort*) # Intel Fortran compiler
  8031. tmp_addflag=' -nofor_main' ;;
  8032. lf95*) # Lahey Fortran 8.1
  8033. whole_archive_flag_spec=
  8034. tmp_sharedflag='--shared' ;;
  8035. nagfor*) # NAGFOR 5.3
  8036. tmp_sharedflag='-Wl,-shared' ;;
  8037. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8038. tmp_sharedflag='-qmkshrobj'
  8039. tmp_addflag= ;;
  8040. nvcc*) # Cuda Compiler Driver 2.2
  8041. 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'
  8042. compiler_needs_object=yes
  8043. ;;
  8044. esac
  8045. case `$CC -V 2>&1 | sed 5q` in
  8046. *Sun\ C*) # Sun C 5.9
  8047. 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'
  8048. compiler_needs_object=yes
  8049. tmp_sharedflag='-G' ;;
  8050. *Sun\ F*) # Sun Fortran 8.3
  8051. tmp_sharedflag='-G' ;;
  8052. esac
  8053. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8054. if test yes = "$supports_anon_versioning"; then
  8055. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8056. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8057. echo "local: *; };" >> $output_objdir/$libname.ver~
  8058. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8059. fi
  8060. case $cc_basename in
  8061. tcc*)
  8062. export_dynamic_flag_spec='-rdynamic'
  8063. ;;
  8064. xlf* | bgf* | bgxlf* | mpixlf*)
  8065. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8066. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8067. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8068. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8069. if test yes = "$supports_anon_versioning"; then
  8070. archive_expsym_cm