configure 433 KB

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