1
0

configure 817 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for tcpreplay 4.4.3.
  4. #
  5. # Report bugs to <https://github.com/appneta/tcpreplay/issues>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  188. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. PATH=/empty FPATH=/empty; export PATH FPATH
  192. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  193. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  194. test \$(( 1 + 1 )) = 2 || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  259. $0: https://github.com/appneta/tcpreplay/issues about your
  260. $0: system, including any error possibly output before this
  261. $0: message. Then install a modern shell, or manually run
  262. $0: the script under such a shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='tcpreplay'
  542. PACKAGE_TARNAME='tcpreplay'
  543. PACKAGE_VERSION='4.4.3'
  544. PACKAGE_STRING='tcpreplay 4.4.3'
  545. PACKAGE_BUGREPORT='https://github.com/appneta/tcpreplay/issues'
  546. PACKAGE_URL='http://tcpreplay.sourceforge.net/'
  547. ac_unique_file="src/tcpreplay.c"
  548. # Factoring default headers for most tests.
  549. ac_includes_default="\
  550. #include <stdio.h>
  551. #ifdef HAVE_SYS_TYPES_H
  552. # include <sys/types.h>
  553. #endif
  554. #ifdef HAVE_SYS_STAT_H
  555. # include <sys/stat.h>
  556. #endif
  557. #ifdef STDC_HEADERS
  558. # include <stdlib.h>
  559. # include <stddef.h>
  560. #else
  561. # ifdef HAVE_STDLIB_H
  562. # include <stdlib.h>
  563. # endif
  564. #endif
  565. #ifdef HAVE_STRING_H
  566. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  567. # include <memory.h>
  568. # endif
  569. # include <string.h>
  570. #endif
  571. #ifdef HAVE_STRINGS_H
  572. # include <strings.h>
  573. #endif
  574. #ifdef HAVE_INTTYPES_H
  575. # include <inttypes.h>
  576. #endif
  577. #ifdef HAVE_STDINT_H
  578. # include <stdint.h>
  579. #endif
  580. #ifdef HAVE_UNISTD_H
  581. # include <unistd.h>
  582. #endif"
  583. ac_header_list=
  584. ac_func_list=
  585. ac_subst_vars='am__EXEEXT_FALSE
  586. am__EXEEXT_TRUE
  587. LTLIBOBJS
  588. LIBOPTS_DIR
  589. LIBOPTS_CFLAGS
  590. LIBOPTS_LDADD
  591. NEED_LIBOPTS_FALSE
  592. NEED_LIBOPTS_TRUE
  593. INSTALL_LIBOPTS_FALSE
  594. INSTALL_LIBOPTS_TRUE
  595. POSIX_SHELL
  596. GL_GENERATE_STDNORETURN_H_FALSE
  597. GL_GENERATE_STDNORETURN_H_TRUE
  598. STDNORETURN_H
  599. nic2
  600. nic1
  601. ENABLE_OSX_FRAMEWORKS_FALSE
  602. ENABLE_OSX_FRAMEWORKS_TRUE
  603. ENABLE_TCPDUMP_FALSE
  604. ENABLE_TCPDUMP_TRUE
  605. tcpdump_path
  606. LNAV_CFLAGS
  607. LNAVLIB
  608. pcncfg
  609. PCAP_BPF_H_FILE
  610. COMPILE_FRAGROUTE_FALSE
  611. COMPILE_FRAGROUTE_TRUE
  612. LDNETLIB
  613. LDNETINC
  614. COMPILE_NETMAP_FALSE
  615. COMPILE_NETMAP_TRUE
  616. NETMAPFLAGS
  617. NETMAPINCDIR
  618. NETMAPUSERINC
  619. NETMAPINC
  620. COMPILE_TCPLIVEPLAY_FALSE
  621. COMPILE_TCPLIVEPLAY_TRUE
  622. COMPILE_TCPBRIDGE_FALSE
  623. COMPILE_TCPBRIDGE_TRUE
  624. LPCAPLIB
  625. LPCAPINC
  626. PCAP_CONFIG
  627. DMALLOC_LIB
  628. timestamp_trace_flag
  629. extra_debug_flag
  630. debug_run_time_flag
  631. debug_flag
  632. build_asan
  633. WORDS_BIGENDIAN_FALSE
  634. WORDS_BIGENDIAN_TRUE
  635. SYSTEM_STRLCPY_FALSE
  636. SYSTEM_STRLCPY_TRUE
  637. LIBOBJS
  638. rmmod
  639. insmod
  640. depmod
  641. GROFF
  642. AUTOGEN
  643. CUT
  644. ECHO
  645. PRINTF
  646. CXXCPP
  647. am__fastdepCXX_FALSE
  648. am__fastdepCXX_TRUE
  649. CXXDEPMODE
  650. ac_ct_CXX
  651. CXXFLAGS
  652. CXX
  653. CPP
  654. LT_SYS_LIBRARY_PATH
  655. OTOOL64
  656. OTOOL
  657. LIPO
  658. NMEDIT
  659. DSYMUTIL
  660. MANIFEST_TOOL
  661. RANLIB
  662. DLLTOOL
  663. OBJDUMP
  664. LN_S
  665. NM
  666. ac_ct_DUMPBIN
  667. DUMPBIN
  668. LD
  669. FGREP
  670. EGREP
  671. GREP
  672. SED
  673. am__fastdepCC_FALSE
  674. am__fastdepCC_TRUE
  675. CCDEPMODE
  676. am__nodep
  677. AMDEPBACKSLASH
  678. AMDEP_FALSE
  679. AMDEP_TRUE
  680. am__quote
  681. am__include
  682. DEPDIR
  683. OBJEXT
  684. EXEEXT
  685. ac_ct_CC
  686. CPPFLAGS
  687. LDFLAGS
  688. CFLAGS
  689. CC
  690. ac_ct_AR
  691. AR
  692. AM_BACKSLASH
  693. AM_DEFAULT_VERBOSITY
  694. AM_DEFAULT_V
  695. AM_V
  696. am__untar
  697. am__tar
  698. AMTAR
  699. am__leading_dot
  700. SET_MAKE
  701. AWK
  702. mkdir_p
  703. MKDIR_P
  704. INSTALL_STRIP_PROGRAM
  705. STRIP
  706. install_sh
  707. MAKEINFO
  708. AUTOHEADER
  709. AUTOMAKE
  710. AUTOCONF
  711. ACLOCAL
  712. VERSION
  713. PACKAGE
  714. CYGPATH_W
  715. am__isrc
  716. INSTALL_DATA
  717. INSTALL_SCRIPT
  718. INSTALL_PROGRAM
  719. LIBTOOL
  720. MACOSX_SDK_PATH
  721. CROSS_LD
  722. CROSS_ARCH
  723. target_os
  724. target_vendor
  725. target_cpu
  726. target
  727. host_os
  728. host_vendor
  729. host_cpu
  730. host
  731. build_os
  732. build_vendor
  733. build_cpu
  734. build
  735. TCPREPLAY_RELEASE
  736. TCPREPLAY_VERSION
  737. MAINT
  738. MAINTAINER_MODE_FALSE
  739. MAINTAINER_MODE_TRUE
  740. target_alias
  741. host_alias
  742. build_alias
  743. LIBS
  744. ECHO_T
  745. ECHO_N
  746. ECHO_C
  747. DEFS
  748. mandir
  749. localedir
  750. libdir
  751. psdir
  752. pdfdir
  753. dvidir
  754. htmldir
  755. infodir
  756. docdir
  757. oldincludedir
  758. includedir
  759. localstatedir
  760. sharedstatedir
  761. sysconfdir
  762. datadir
  763. datarootdir
  764. libexecdir
  765. sbindir
  766. bindir
  767. program_transform_name
  768. prefix
  769. exec_prefix
  770. PACKAGE_URL
  771. PACKAGE_BUGREPORT
  772. PACKAGE_STRING
  773. PACKAGE_VERSION
  774. PACKAGE_TARNAME
  775. PACKAGE_NAME
  776. PATH_SEPARATOR
  777. SHELL'
  778. ac_subst_files=''
  779. ac_user_opts='
  780. enable_option_checking
  781. enable_maintainer_mode
  782. with_dmalloc
  783. with_macos_sdk
  784. with_pfring_lib
  785. enable_silent_rules
  786. enable_dependency_tracking
  787. enable_shared
  788. enable_static
  789. with_pic
  790. enable_fast_install
  791. with_aix_soname
  792. with_gnu_ld
  793. with_sysroot
  794. enable_libtool_lock
  795. enable_largefile
  796. enable_asan
  797. enable_debug
  798. enable_extra_debug
  799. enable_timestamp_trace
  800. enable_dmalloc
  801. enable_pedantic
  802. enable_efence
  803. enable_gprof
  804. enable_pcapconfig
  805. enable_64bits
  806. enable_force_bpf
  807. enable_force_pf
  808. enable_force_libdnet
  809. enable_force_inject
  810. enable_force_sendpacket
  811. enable_static_link
  812. enable_dynamic_link
  813. enable_tuntap
  814. with_libpcap
  815. with_netmap
  816. with_libdnet
  817. with_pcapnav_config
  818. with_tcpdump
  819. with_testnic
  820. with_testnic2
  821. enable_nls
  822. enable_local_libopts
  823. enable_libopts_install
  824. with_autoopts_config
  825. with_regex_header
  826. with_libregex
  827. with_libregex_cflags
  828. with_libregex_libs
  829. enable_optional_args
  830. '
  831. ac_precious_vars='build_alias
  832. host_alias
  833. target_alias
  834. CC
  835. CFLAGS
  836. LDFLAGS
  837. LIBS
  838. CPPFLAGS
  839. LT_SYS_LIBRARY_PATH
  840. CPP
  841. CXX
  842. CXXFLAGS
  843. CCC
  844. CXXCPP'
  845. # Initialize some variables set by options.
  846. ac_init_help=
  847. ac_init_version=false
  848. ac_unrecognized_opts=
  849. ac_unrecognized_sep=
  850. # The variables have the same names as the options, with
  851. # dashes changed to underlines.
  852. cache_file=/dev/null
  853. exec_prefix=NONE
  854. no_create=
  855. no_recursion=
  856. prefix=NONE
  857. program_prefix=NONE
  858. program_suffix=NONE
  859. program_transform_name=s,x,x,
  860. silent=
  861. site=
  862. srcdir=
  863. verbose=
  864. x_includes=NONE
  865. x_libraries=NONE
  866. # Installation directory options.
  867. # These are left unexpanded so users can "make install exec_prefix=/foo"
  868. # and all the variables that are supposed to be based on exec_prefix
  869. # by default will actually change.
  870. # Use braces instead of parens because sh, perl, etc. also accept them.
  871. # (The list follows the same order as the GNU Coding Standards.)
  872. bindir='${exec_prefix}/bin'
  873. sbindir='${exec_prefix}/sbin'
  874. libexecdir='${exec_prefix}/libexec'
  875. datarootdir='${prefix}/share'
  876. datadir='${datarootdir}'
  877. sysconfdir='${prefix}/etc'
  878. sharedstatedir='${prefix}/com'
  879. localstatedir='${prefix}/var'
  880. includedir='${prefix}/include'
  881. oldincludedir='/usr/include'
  882. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  883. infodir='${datarootdir}/info'
  884. htmldir='${docdir}'
  885. dvidir='${docdir}'
  886. pdfdir='${docdir}'
  887. psdir='${docdir}'
  888. libdir='${exec_prefix}/lib'
  889. localedir='${datarootdir}/locale'
  890. mandir='${datarootdir}/man'
  891. ac_prev=
  892. ac_dashdash=
  893. for ac_option
  894. do
  895. # If the previous option needs an argument, assign it.
  896. if test -n "$ac_prev"; then
  897. eval $ac_prev=\$ac_option
  898. ac_prev=
  899. continue
  900. fi
  901. case $ac_option in
  902. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  903. *=) ac_optarg= ;;
  904. *) ac_optarg=yes ;;
  905. esac
  906. # Accept the important Cygnus configure options, so we can diagnose typos.
  907. case $ac_dashdash$ac_option in
  908. --)
  909. ac_dashdash=yes ;;
  910. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  911. ac_prev=bindir ;;
  912. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  913. bindir=$ac_optarg ;;
  914. -build | --build | --buil | --bui | --bu)
  915. ac_prev=build_alias ;;
  916. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  917. build_alias=$ac_optarg ;;
  918. -cache-file | --cache-file | --cache-fil | --cache-fi \
  919. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  920. ac_prev=cache_file ;;
  921. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  922. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  923. cache_file=$ac_optarg ;;
  924. --config-cache | -C)
  925. cache_file=config.cache ;;
  926. -datadir | --datadir | --datadi | --datad)
  927. ac_prev=datadir ;;
  928. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  929. datadir=$ac_optarg ;;
  930. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  931. | --dataroo | --dataro | --datar)
  932. ac_prev=datarootdir ;;
  933. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  934. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  935. datarootdir=$ac_optarg ;;
  936. -disable-* | --disable-*)
  937. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  938. # Reject names that are not valid shell variable names.
  939. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  940. as_fn_error $? "invalid feature name: $ac_useropt"
  941. ac_useropt_orig=$ac_useropt
  942. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  943. case $ac_user_opts in
  944. *"
  945. "enable_$ac_useropt"
  946. "*) ;;
  947. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  948. ac_unrecognized_sep=', ';;
  949. esac
  950. eval enable_$ac_useropt=no ;;
  951. -docdir | --docdir | --docdi | --doc | --do)
  952. ac_prev=docdir ;;
  953. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  954. docdir=$ac_optarg ;;
  955. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  956. ac_prev=dvidir ;;
  957. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  958. dvidir=$ac_optarg ;;
  959. -enable-* | --enable-*)
  960. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  961. # Reject names that are not valid shell variable names.
  962. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  963. as_fn_error $? "invalid feature name: $ac_useropt"
  964. ac_useropt_orig=$ac_useropt
  965. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  966. case $ac_user_opts in
  967. *"
  968. "enable_$ac_useropt"
  969. "*) ;;
  970. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  971. ac_unrecognized_sep=', ';;
  972. esac
  973. eval enable_$ac_useropt=\$ac_optarg ;;
  974. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  975. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  976. | --exec | --exe | --ex)
  977. ac_prev=exec_prefix ;;
  978. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  979. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  980. | --exec=* | --exe=* | --ex=*)
  981. exec_prefix=$ac_optarg ;;
  982. -gas | --gas | --ga | --g)
  983. # Obsolete; use --with-gas.
  984. with_gas=yes ;;
  985. -help | --help | --hel | --he | -h)
  986. ac_init_help=long ;;
  987. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  988. ac_init_help=recursive ;;
  989. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  990. ac_init_help=short ;;
  991. -host | --host | --hos | --ho)
  992. ac_prev=host_alias ;;
  993. -host=* | --host=* | --hos=* | --ho=*)
  994. host_alias=$ac_optarg ;;
  995. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  996. ac_prev=htmldir ;;
  997. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  998. | --ht=*)
  999. htmldir=$ac_optarg ;;
  1000. -includedir | --includedir | --includedi | --included | --include \
  1001. | --includ | --inclu | --incl | --inc)
  1002. ac_prev=includedir ;;
  1003. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1004. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1005. includedir=$ac_optarg ;;
  1006. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1007. ac_prev=infodir ;;
  1008. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1009. infodir=$ac_optarg ;;
  1010. -libdir | --libdir | --libdi | --libd)
  1011. ac_prev=libdir ;;
  1012. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1013. libdir=$ac_optarg ;;
  1014. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1015. | --libexe | --libex | --libe)
  1016. ac_prev=libexecdir ;;
  1017. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1018. | --libexe=* | --libex=* | --libe=*)
  1019. libexecdir=$ac_optarg ;;
  1020. -localedir | --localedir | --localedi | --localed | --locale)
  1021. ac_prev=localedir ;;
  1022. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1023. localedir=$ac_optarg ;;
  1024. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1025. | --localstate | --localstat | --localsta | --localst | --locals)
  1026. ac_prev=localstatedir ;;
  1027. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1028. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1029. localstatedir=$ac_optarg ;;
  1030. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1031. ac_prev=mandir ;;
  1032. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1033. mandir=$ac_optarg ;;
  1034. -nfp | --nfp | --nf)
  1035. # Obsolete; use --without-fp.
  1036. with_fp=no ;;
  1037. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1038. | --no-cr | --no-c | -n)
  1039. no_create=yes ;;
  1040. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1041. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1042. no_recursion=yes ;;
  1043. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1044. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1045. | --oldin | --oldi | --old | --ol | --o)
  1046. ac_prev=oldincludedir ;;
  1047. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1048. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1049. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1050. oldincludedir=$ac_optarg ;;
  1051. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1052. ac_prev=prefix ;;
  1053. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1054. prefix=$ac_optarg ;;
  1055. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1056. | --program-pre | --program-pr | --program-p)
  1057. ac_prev=program_prefix ;;
  1058. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1059. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1060. program_prefix=$ac_optarg ;;
  1061. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1062. | --program-suf | --program-su | --program-s)
  1063. ac_prev=program_suffix ;;
  1064. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1065. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1066. program_suffix=$ac_optarg ;;
  1067. -program-transform-name | --program-transform-name \
  1068. | --program-transform-nam | --program-transform-na \
  1069. | --program-transform-n | --program-transform- \
  1070. | --program-transform | --program-transfor \
  1071. | --program-transfo | --program-transf \
  1072. | --program-trans | --program-tran \
  1073. | --progr-tra | --program-tr | --program-t)
  1074. ac_prev=program_transform_name ;;
  1075. -program-transform-name=* | --program-transform-name=* \
  1076. | --program-transform-nam=* | --program-transform-na=* \
  1077. | --program-transform-n=* | --program-transform-=* \
  1078. | --program-transform=* | --program-transfor=* \
  1079. | --program-transfo=* | --program-transf=* \
  1080. | --program-trans=* | --program-tran=* \
  1081. | --progr-tra=* | --program-tr=* | --program-t=*)
  1082. program_transform_name=$ac_optarg ;;
  1083. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1084. ac_prev=pdfdir ;;
  1085. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1086. pdfdir=$ac_optarg ;;
  1087. -psdir | --psdir | --psdi | --psd | --ps)
  1088. ac_prev=psdir ;;
  1089. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1090. psdir=$ac_optarg ;;
  1091. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1092. | -silent | --silent | --silen | --sile | --sil)
  1093. silent=yes ;;
  1094. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1095. ac_prev=sbindir ;;
  1096. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1097. | --sbi=* | --sb=*)
  1098. sbindir=$ac_optarg ;;
  1099. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1100. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1101. | --sharedst | --shareds | --shared | --share | --shar \
  1102. | --sha | --sh)
  1103. ac_prev=sharedstatedir ;;
  1104. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1105. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1106. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1107. | --sha=* | --sh=*)
  1108. sharedstatedir=$ac_optarg ;;
  1109. -site | --site | --sit)
  1110. ac_prev=site ;;
  1111. -site=* | --site=* | --sit=*)
  1112. site=$ac_optarg ;;
  1113. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1114. ac_prev=srcdir ;;
  1115. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1116. srcdir=$ac_optarg ;;
  1117. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1118. | --syscon | --sysco | --sysc | --sys | --sy)
  1119. ac_prev=sysconfdir ;;
  1120. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1121. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1122. sysconfdir=$ac_optarg ;;
  1123. -target | --target | --targe | --targ | --tar | --ta | --t)
  1124. ac_prev=target_alias ;;
  1125. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1126. target_alias=$ac_optarg ;;
  1127. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1128. verbose=yes ;;
  1129. -version | --version | --versio | --versi | --vers | -V)
  1130. ac_init_version=: ;;
  1131. -with-* | --with-*)
  1132. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1133. # Reject names that are not valid shell variable names.
  1134. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1135. as_fn_error $? "invalid package name: $ac_useropt"
  1136. ac_useropt_orig=$ac_useropt
  1137. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1138. case $ac_user_opts in
  1139. *"
  1140. "with_$ac_useropt"
  1141. "*) ;;
  1142. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1143. ac_unrecognized_sep=', ';;
  1144. esac
  1145. eval with_$ac_useropt=\$ac_optarg ;;
  1146. -without-* | --without-*)
  1147. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1148. # Reject names that are not valid shell variable names.
  1149. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1150. as_fn_error $? "invalid package name: $ac_useropt"
  1151. ac_useropt_orig=$ac_useropt
  1152. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1153. case $ac_user_opts in
  1154. *"
  1155. "with_$ac_useropt"
  1156. "*) ;;
  1157. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1158. ac_unrecognized_sep=', ';;
  1159. esac
  1160. eval with_$ac_useropt=no ;;
  1161. --x)
  1162. # Obsolete; use --with-x.
  1163. with_x=yes ;;
  1164. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1165. | --x-incl | --x-inc | --x-in | --x-i)
  1166. ac_prev=x_includes ;;
  1167. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1168. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1169. x_includes=$ac_optarg ;;
  1170. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1171. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1172. ac_prev=x_libraries ;;
  1173. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1174. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1175. x_libraries=$ac_optarg ;;
  1176. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1177. Try \`$0 --help' for more information"
  1178. ;;
  1179. *=*)
  1180. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1181. # Reject names that are not valid shell variable names.
  1182. case $ac_envvar in #(
  1183. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1184. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1185. esac
  1186. eval $ac_envvar=\$ac_optarg
  1187. export $ac_envvar ;;
  1188. *)
  1189. # FIXME: should be removed in autoconf 3.0.
  1190. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1191. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1192. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1193. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1194. ;;
  1195. esac
  1196. done
  1197. if test -n "$ac_prev"; then
  1198. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1199. as_fn_error $? "missing argument to $ac_option"
  1200. fi
  1201. if test -n "$ac_unrecognized_opts"; then
  1202. case $enable_option_checking in
  1203. no) ;;
  1204. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1205. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1206. esac
  1207. fi
  1208. # Check all directory arguments for consistency.
  1209. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1210. datadir sysconfdir sharedstatedir localstatedir includedir \
  1211. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1212. libdir localedir mandir
  1213. do
  1214. eval ac_val=\$$ac_var
  1215. # Remove trailing slashes.
  1216. case $ac_val in
  1217. */ )
  1218. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1219. eval $ac_var=\$ac_val;;
  1220. esac
  1221. # Be sure to have absolute directory names.
  1222. case $ac_val in
  1223. [\\/$]* | ?:[\\/]* ) continue;;
  1224. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1225. esac
  1226. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1227. done
  1228. # There might be people who depend on the old broken behavior: `$host'
  1229. # used to hold the argument of --host etc.
  1230. # FIXME: To remove some day.
  1231. build=$build_alias
  1232. host=$host_alias
  1233. target=$target_alias
  1234. # FIXME: To remove some day.
  1235. if test "x$host_alias" != x; then
  1236. if test "x$build_alias" = x; then
  1237. cross_compiling=maybe
  1238. elif test "x$build_alias" != "x$host_alias"; then
  1239. cross_compiling=yes
  1240. fi
  1241. fi
  1242. ac_tool_prefix=
  1243. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1244. test "$silent" = yes && exec 6>/dev/null
  1245. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1246. ac_ls_di=`ls -di .` &&
  1247. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1248. as_fn_error $? "working directory cannot be determined"
  1249. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1250. as_fn_error $? "pwd does not report name of working directory"
  1251. # Find the source files, if location was not specified.
  1252. if test -z "$srcdir"; then
  1253. ac_srcdir_defaulted=yes
  1254. # Try the directory containing this script, then the parent directory.
  1255. ac_confdir=`$as_dirname -- "$as_myself" ||
  1256. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1257. X"$as_myself" : 'X\(//\)[^/]' \| \
  1258. X"$as_myself" : 'X\(//\)$' \| \
  1259. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1260. $as_echo X"$as_myself" |
  1261. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1262. s//\1/
  1263. q
  1264. }
  1265. /^X\(\/\/\)[^/].*/{
  1266. s//\1/
  1267. q
  1268. }
  1269. /^X\(\/\/\)$/{
  1270. s//\1/
  1271. q
  1272. }
  1273. /^X\(\/\).*/{
  1274. s//\1/
  1275. q
  1276. }
  1277. s/.*/./; q'`
  1278. srcdir=$ac_confdir
  1279. if test ! -r "$srcdir/$ac_unique_file"; then
  1280. srcdir=..
  1281. fi
  1282. else
  1283. ac_srcdir_defaulted=no
  1284. fi
  1285. if test ! -r "$srcdir/$ac_unique_file"; then
  1286. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1287. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1288. fi
  1289. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1290. ac_abs_confdir=`(
  1291. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1292. pwd)`
  1293. # When building in place, set srcdir=.
  1294. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1295. srcdir=.
  1296. fi
  1297. # Remove unnecessary trailing slashes from srcdir.
  1298. # Double slashes in file names in object file debugging info
  1299. # mess up M-x gdb in Emacs.
  1300. case $srcdir in
  1301. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1302. esac
  1303. for ac_var in $ac_precious_vars; do
  1304. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1305. eval ac_env_${ac_var}_value=\$${ac_var}
  1306. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1307. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1308. done
  1309. #
  1310. # Report the --help message.
  1311. #
  1312. if test "$ac_init_help" = "long"; then
  1313. # Omit some internal or obsolete options to make the list less imposing.
  1314. # This message is too long to be a string in the A/UX 3.1 sh.
  1315. cat <<_ACEOF
  1316. \`configure' configures tcpreplay 4.4.3 to adapt to many kinds of systems.
  1317. Usage: $0 [OPTION]... [VAR=VALUE]...
  1318. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1319. VAR=VALUE. See below for descriptions of some of the useful variables.
  1320. Defaults for the options are specified in brackets.
  1321. Configuration:
  1322. -h, --help display this help and exit
  1323. --help=short display options specific to this package
  1324. --help=recursive display the short help of all the included packages
  1325. -V, --version display version information and exit
  1326. -q, --quiet, --silent do not print \`checking ...' messages
  1327. --cache-file=FILE cache test results in FILE [disabled]
  1328. -C, --config-cache alias for \`--cache-file=config.cache'
  1329. -n, --no-create do not create output files
  1330. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1331. Installation directories:
  1332. --prefix=PREFIX install architecture-independent files in PREFIX
  1333. [$ac_default_prefix]
  1334. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1335. [PREFIX]
  1336. By default, \`make install' will install all the files in
  1337. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1338. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1339. for instance \`--prefix=\$HOME'.
  1340. For better control, use the options below.
  1341. Fine tuning of the installation directories:
  1342. --bindir=DIR user executables [EPREFIX/bin]
  1343. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1344. --libexecdir=DIR program executables [EPREFIX/libexec]
  1345. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1346. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1347. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1348. --libdir=DIR object code libraries [EPREFIX/lib]
  1349. --includedir=DIR C header files [PREFIX/include]
  1350. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1351. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1352. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1353. --infodir=DIR info documentation [DATAROOTDIR/info]
  1354. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1355. --mandir=DIR man documentation [DATAROOTDIR/man]
  1356. --docdir=DIR documentation root [DATAROOTDIR/doc/tcpreplay]
  1357. --htmldir=DIR html documentation [DOCDIR]
  1358. --dvidir=DIR dvi documentation [DOCDIR]
  1359. --pdfdir=DIR pdf documentation [DOCDIR]
  1360. --psdir=DIR ps documentation [DOCDIR]
  1361. _ACEOF
  1362. cat <<\_ACEOF
  1363. Program names:
  1364. --program-prefix=PREFIX prepend PREFIX to installed program names
  1365. --program-suffix=SUFFIX append SUFFIX to installed program names
  1366. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1367. System types:
  1368. --build=BUILD configure for building on BUILD [guessed]
  1369. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1370. --target=TARGET configure for building compilers for TARGET [HOST]
  1371. _ACEOF
  1372. fi
  1373. if test -n "$ac_init_help"; then
  1374. case $ac_init_help in
  1375. short | recursive ) echo "Configuration of tcpreplay 4.4.3:";;
  1376. esac
  1377. cat <<\_ACEOF
  1378. Optional Features:
  1379. --disable-option-checking ignore unrecognized --enable/--with options
  1380. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1381. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1382. --disable-maintainer-mode
  1383. disable make rules and dependencies not useful (and
  1384. sometimes confusing) to the casual installer
  1385. --enable-silent-rules less verbose build output (undo: "make V=1")
  1386. --disable-silent-rules verbose build output (undo: "make V=0")
  1387. --enable-dependency-tracking
  1388. do not reject slow dependency extractors
  1389. --disable-dependency-tracking
  1390. speeds up one-time build
  1391. --enable-shared[=PKGS] build shared libraries [default=yes]
  1392. --enable-static[=PKGS] build static libraries [default=yes]
  1393. --enable-fast-install[=PKGS]
  1394. optimize for fast installation [default=yes]
  1395. --disable-libtool-lock avoid locking (might break parallel builds)
  1396. --disable-largefile omit support for large files
  1397. --enable-asan Enable Address Sanitizer support
  1398. --enable-debug Enable debugging code and support for the -d option
  1399. --enable-extra-debug Enable additional debugging code (may affect
  1400. performance)
  1401. --timestamp-trace Enable dumping of trace timestamps at the end of a
  1402. test
  1403. --enable-dmalloc Enable linking to dmalloc for better memory
  1404. debugging
  1405. --enable-pedantic Enable gcc's -pedantic option
  1406. --enable-efence Enable Electric Fence memory debugger
  1407. --enable-gprof Enable GNU Profiler
  1408. --enable-pcapconfig Enable automatic libpcap config, reverting to system
  1409. scanning
  1410. --disable-64bits Do not use 64bit packet counters
  1411. --enable-force-bpf Force using BPF for sending packets
  1412. --enable-force-pf Force using Linux's PF_PACKET for sending packets
  1413. --enable-force-libdnet Force using libdnet for sending packets
  1414. --enable-force-inject Force using libpcap's pcap_inject() for sending
  1415. packets
  1416. --enable-force-sendpacket
  1417. Force using libpcap's pcap_sendpacket() for sending
  1418. packets
  1419. --enable-static-link Use static libraries ( .a or .A.tbd ) - default no
  1420. --enable-dynamic-link Use shared libraries ( .so .dylib or .tbd ) -
  1421. default yes
  1422. --disable-tuntap Disable tuntap support
  1423. --disable-nls disable nls support in libopts
  1424. --enable-local-libopts Use the supplied libopts tearoff code
  1425. --enable-libopts-install
  1426. Install libopts with client installation
  1427. --disable-optional-args not wanting optional option args
  1428. Optional Packages:
  1429. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1430. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1431. --with-dmalloc use dmalloc, as in http://www.dmalloc.com
  1432. --with-macos-sdk=VER Specify the macOS SDK version to use.
  1433. --with-pfring-lib Use a specific PF_RING static library when using
  1434. PF_RING libpcap.
  1435. Usage: --with-pfring-lib=<library>
  1436. e. g.: --with-pfring-lib=/usr/lib/libpfring_zc_x86_64.a
  1437. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1438. both]
  1439. --with-aix-soname=aix|svr4|both
  1440. shared library versioning (aka "SONAME") variant to
  1441. provide on AIX, [default=aix].
  1442. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1443. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1444. compiler's sysroot if not specified).
  1445. --with-libpcap=DIR Use libpcap in DIR
  1446. --with-netmap=DIR Use netmap in DIR
  1447. --with-libdnet=DIR Use libdnet in DIR
  1448. --with-pcapnav-config=FILE
  1449. Use given pcapnav-config
  1450. --with-tcpdump=FILE Path to tcpdump binary
  1451. --with-testnic=NIC Select which network card to use for testing
  1452. --with-testnic2=NIC2 Select an optional 2nd network card to use for
  1453. testing
  1454. --with-autoopts-config specify the config-info script
  1455. --with-regex-header a reg expr header is specified
  1456. --with-libregex libregex installation prefix
  1457. --with-libregex-cflags libregex compile flags
  1458. --with-libregex-libs libregex link command arguments
  1459. Some influential environment variables:
  1460. CC C compiler command
  1461. CFLAGS C compiler flags
  1462. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1463. nonstandard directory <lib dir>
  1464. LIBS libraries to pass to the linker, e.g. -l<library>
  1465. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1466. you have headers in a nonstandard directory <include dir>
  1467. LT_SYS_LIBRARY_PATH
  1468. User-defined run-time library search path.
  1469. CPP C preprocessor
  1470. CXX C++ compiler command
  1471. CXXFLAGS C++ compiler flags
  1472. CXXCPP C++ preprocessor
  1473. Use these variables to override the choices made by `configure' or to help
  1474. it to find libraries and programs with nonstandard names/locations.
  1475. Report bugs to <https://github.com/appneta/tcpreplay/issues>.
  1476. tcpreplay home page: <http://tcpreplay.sourceforge.net/>.
  1477. _ACEOF
  1478. ac_status=$?
  1479. fi
  1480. if test "$ac_init_help" = "recursive"; then
  1481. # If there are subdirs, report their specific --help.
  1482. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1483. test -d "$ac_dir" ||
  1484. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1485. continue
  1486. ac_builddir=.
  1487. case "$ac_dir" in
  1488. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1489. *)
  1490. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1491. # A ".." for each directory in $ac_dir_suffix.
  1492. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1493. case $ac_top_builddir_sub in
  1494. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1495. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1496. esac ;;
  1497. esac
  1498. ac_abs_top_builddir=$ac_pwd
  1499. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1500. # for backward compatibility:
  1501. ac_top_builddir=$ac_top_build_prefix
  1502. case $srcdir in
  1503. .) # We are building in place.
  1504. ac_srcdir=.
  1505. ac_top_srcdir=$ac_top_builddir_sub
  1506. ac_abs_top_srcdir=$ac_pwd ;;
  1507. [\\/]* | ?:[\\/]* ) # Absolute name.
  1508. ac_srcdir=$srcdir$ac_dir_suffix;
  1509. ac_top_srcdir=$srcdir
  1510. ac_abs_top_srcdir=$srcdir ;;
  1511. *) # Relative name.
  1512. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1513. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1514. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1515. esac
  1516. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1517. cd "$ac_dir" || { ac_status=$?; continue; }
  1518. # Check for guested configure.
  1519. if test -f "$ac_srcdir/configure.gnu"; then
  1520. echo &&
  1521. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1522. elif test -f "$ac_srcdir/configure"; then
  1523. echo &&
  1524. $SHELL "$ac_srcdir/configure" --help=recursive
  1525. else
  1526. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1527. fi || ac_status=$?
  1528. cd "$ac_pwd" || { ac_status=$?; break; }
  1529. done
  1530. fi
  1531. test -n "$ac_init_help" && exit $ac_status
  1532. if $ac_init_version; then
  1533. cat <<\_ACEOF
  1534. tcpreplay configure 4.4.3
  1535. generated by GNU Autoconf 2.69
  1536. Copyright (C) 2012 Free Software Foundation, Inc.
  1537. This configure script is free software; the Free Software Foundation
  1538. gives unlimited permission to copy, distribute and modify it.
  1539. _ACEOF
  1540. exit
  1541. fi
  1542. ## ------------------------ ##
  1543. ## Autoconf initialization. ##
  1544. ## ------------------------ ##
  1545. # ac_fn_c_try_compile LINENO
  1546. # --------------------------
  1547. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1548. ac_fn_c_try_compile ()
  1549. {
  1550. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1551. rm -f conftest.$ac_objext
  1552. if { { ac_try="$ac_compile"
  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_compile") 2>conftest.err
  1560. ac_status=$?
  1561. if test -s conftest.err; then
  1562. grep -v '^ *+' conftest.err >conftest.er1
  1563. cat conftest.er1 >&5
  1564. mv -f conftest.er1 conftest.err
  1565. fi
  1566. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1567. test $ac_status = 0; } && {
  1568. test -z "$ac_c_werror_flag" ||
  1569. test ! -s conftest.err
  1570. } && test -s conftest.$ac_objext; then :
  1571. ac_retval=0
  1572. else
  1573. $as_echo "$as_me: failed program was:" >&5
  1574. sed 's/^/| /' conftest.$ac_ext >&5
  1575. ac_retval=1
  1576. fi
  1577. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1578. as_fn_set_status $ac_retval
  1579. } # ac_fn_c_try_compile
  1580. # ac_fn_c_try_link LINENO
  1581. # -----------------------
  1582. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1583. ac_fn_c_try_link ()
  1584. {
  1585. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1586. rm -f conftest.$ac_objext conftest$ac_exeext
  1587. if { { ac_try="$ac_link"
  1588. case "(($ac_try" in
  1589. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1590. *) ac_try_echo=$ac_try;;
  1591. esac
  1592. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1593. $as_echo "$ac_try_echo"; } >&5
  1594. (eval "$ac_link") 2>conftest.err
  1595. ac_status=$?
  1596. if test -s conftest.err; then
  1597. grep -v '^ *+' conftest.err >conftest.er1
  1598. cat conftest.er1 >&5
  1599. mv -f conftest.er1 conftest.err
  1600. fi
  1601. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1602. test $ac_status = 0; } && {
  1603. test -z "$ac_c_werror_flag" ||
  1604. test ! -s conftest.err
  1605. } && test -s conftest$ac_exeext && {
  1606. test "$cross_compiling" = yes ||
  1607. test -x conftest$ac_exeext
  1608. }; then :
  1609. ac_retval=0
  1610. else
  1611. $as_echo "$as_me: failed program was:" >&5
  1612. sed 's/^/| /' conftest.$ac_ext >&5
  1613. ac_retval=1
  1614. fi
  1615. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1616. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1617. # interfere with the next link command; also delete a directory that is
  1618. # left behind by Apple's compiler. We do this before executing the actions.
  1619. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1620. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1621. as_fn_set_status $ac_retval
  1622. } # ac_fn_c_try_link
  1623. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1624. # -------------------------------------------------------
  1625. # Tests whether HEADER exists and can be compiled using the include files in
  1626. # INCLUDES, setting the cache variable VAR accordingly.
  1627. ac_fn_c_check_header_compile ()
  1628. {
  1629. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1631. $as_echo_n "checking for $2... " >&6; }
  1632. if eval \${$3+:} false; then :
  1633. $as_echo_n "(cached) " >&6
  1634. else
  1635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1636. /* end confdefs.h. */
  1637. $4
  1638. #include <$2>
  1639. _ACEOF
  1640. if ac_fn_c_try_compile "$LINENO"; then :
  1641. eval "$3=yes"
  1642. else
  1643. eval "$3=no"
  1644. fi
  1645. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1646. fi
  1647. eval ac_res=\$$3
  1648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1649. $as_echo "$ac_res" >&6; }
  1650. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1651. } # ac_fn_c_check_header_compile
  1652. # ac_fn_c_try_cpp LINENO
  1653. # ----------------------
  1654. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1655. ac_fn_c_try_cpp ()
  1656. {
  1657. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1658. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1659. case "(($ac_try" in
  1660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1661. *) ac_try_echo=$ac_try;;
  1662. esac
  1663. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1664. $as_echo "$ac_try_echo"; } >&5
  1665. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1666. ac_status=$?
  1667. if test -s conftest.err; then
  1668. grep -v '^ *+' conftest.err >conftest.er1
  1669. cat conftest.er1 >&5
  1670. mv -f conftest.er1 conftest.err
  1671. fi
  1672. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1673. test $ac_status = 0; } > conftest.i && {
  1674. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1675. test ! -s conftest.err
  1676. }; then :
  1677. ac_retval=0
  1678. else
  1679. $as_echo "$as_me: failed program was:" >&5
  1680. sed 's/^/| /' conftest.$ac_ext >&5
  1681. ac_retval=1
  1682. fi
  1683. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1684. as_fn_set_status $ac_retval
  1685. } # ac_fn_c_try_cpp
  1686. # ac_fn_c_try_run LINENO
  1687. # ----------------------
  1688. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1689. # that executables *can* be run.
  1690. ac_fn_c_try_run ()
  1691. {
  1692. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1693. if { { ac_try="$ac_link"
  1694. case "(($ac_try" in
  1695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1696. *) ac_try_echo=$ac_try;;
  1697. esac
  1698. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1699. $as_echo "$ac_try_echo"; } >&5
  1700. (eval "$ac_link") 2>&5
  1701. ac_status=$?
  1702. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1703. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1704. { { case "(($ac_try" in
  1705. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1706. *) ac_try_echo=$ac_try;;
  1707. esac
  1708. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1709. $as_echo "$ac_try_echo"; } >&5
  1710. (eval "$ac_try") 2>&5
  1711. ac_status=$?
  1712. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1713. test $ac_status = 0; }; }; then :
  1714. ac_retval=0
  1715. else
  1716. $as_echo "$as_me: program exited with status $ac_status" >&5
  1717. $as_echo "$as_me: failed program was:" >&5
  1718. sed 's/^/| /' conftest.$ac_ext >&5
  1719. ac_retval=$ac_status
  1720. fi
  1721. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1722. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1723. as_fn_set_status $ac_retval
  1724. } # ac_fn_c_try_run
  1725. # ac_fn_c_check_func LINENO FUNC VAR
  1726. # ----------------------------------
  1727. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1728. ac_fn_c_check_func ()
  1729. {
  1730. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1732. $as_echo_n "checking for $2... " >&6; }
  1733. if eval \${$3+:} false; then :
  1734. $as_echo_n "(cached) " >&6
  1735. else
  1736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1737. /* end confdefs.h. */
  1738. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1739. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1740. #define $2 innocuous_$2
  1741. /* System header to define __stub macros and hopefully few prototypes,
  1742. which can conflict with char $2 (); below.
  1743. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1744. <limits.h> exists even on freestanding compilers. */
  1745. #ifdef __STDC__
  1746. # include <limits.h>
  1747. #else
  1748. # include <assert.h>
  1749. #endif
  1750. #undef $2
  1751. /* Override any GCC internal prototype to avoid an error.
  1752. Use char because int might match the return type of a GCC
  1753. builtin and then its argument prototype would still apply. */
  1754. #ifdef __cplusplus
  1755. extern "C"
  1756. #endif
  1757. char $2 ();
  1758. /* The GNU C library defines this for functions which it implements
  1759. to always fail with ENOSYS. Some functions are actually named
  1760. something starting with __ and the normal name is an alias. */
  1761. #if defined __stub_$2 || defined __stub___$2
  1762. choke me
  1763. #endif
  1764. int
  1765. main ()
  1766. {
  1767. return $2 ();
  1768. ;
  1769. return 0;
  1770. }
  1771. _ACEOF
  1772. if ac_fn_c_try_link "$LINENO"; then :
  1773. eval "$3=yes"
  1774. else
  1775. eval "$3=no"
  1776. fi
  1777. rm -f core conftest.err conftest.$ac_objext \
  1778. conftest$ac_exeext conftest.$ac_ext
  1779. fi
  1780. eval ac_res=\$$3
  1781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1782. $as_echo "$ac_res" >&6; }
  1783. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1784. } # ac_fn_c_check_func
  1785. # ac_fn_cxx_try_compile LINENO
  1786. # ----------------------------
  1787. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1788. ac_fn_cxx_try_compile ()
  1789. {
  1790. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1791. rm -f conftest.$ac_objext
  1792. if { { ac_try="$ac_compile"
  1793. case "(($ac_try" in
  1794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1795. *) ac_try_echo=$ac_try;;
  1796. esac
  1797. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1798. $as_echo "$ac_try_echo"; } >&5
  1799. (eval "$ac_compile") 2>conftest.err
  1800. ac_status=$?
  1801. if test -s conftest.err; then
  1802. grep -v '^ *+' conftest.err >conftest.er1
  1803. cat conftest.er1 >&5
  1804. mv -f conftest.er1 conftest.err
  1805. fi
  1806. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1807. test $ac_status = 0; } && {
  1808. test -z "$ac_cxx_werror_flag" ||
  1809. test ! -s conftest.err
  1810. } && test -s conftest.$ac_objext; then :
  1811. ac_retval=0
  1812. else
  1813. $as_echo "$as_me: failed program was:" >&5
  1814. sed 's/^/| /' conftest.$ac_ext >&5
  1815. ac_retval=1
  1816. fi
  1817. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1818. as_fn_set_status $ac_retval
  1819. } # ac_fn_cxx_try_compile
  1820. # ac_fn_cxx_try_cpp LINENO
  1821. # ------------------------
  1822. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1823. ac_fn_cxx_try_cpp ()
  1824. {
  1825. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1826. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1827. case "(($ac_try" in
  1828. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1829. *) ac_try_echo=$ac_try;;
  1830. esac
  1831. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1832. $as_echo "$ac_try_echo"; } >&5
  1833. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1834. ac_status=$?
  1835. if test -s conftest.err; then
  1836. grep -v '^ *+' conftest.err >conftest.er1
  1837. cat conftest.er1 >&5
  1838. mv -f conftest.er1 conftest.err
  1839. fi
  1840. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1841. test $ac_status = 0; } > conftest.i && {
  1842. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1843. test ! -s conftest.err
  1844. }; then :
  1845. ac_retval=0
  1846. else
  1847. $as_echo "$as_me: failed program was:" >&5
  1848. sed 's/^/| /' conftest.$ac_ext >&5
  1849. ac_retval=1
  1850. fi
  1851. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1852. as_fn_set_status $ac_retval
  1853. } # ac_fn_cxx_try_cpp
  1854. # ac_fn_cxx_try_link LINENO
  1855. # -------------------------
  1856. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1857. ac_fn_cxx_try_link ()
  1858. {
  1859. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1860. rm -f conftest.$ac_objext conftest$ac_exeext
  1861. if { { ac_try="$ac_link"
  1862. case "(($ac_try" in
  1863. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1864. *) ac_try_echo=$ac_try;;
  1865. esac
  1866. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1867. $as_echo "$ac_try_echo"; } >&5
  1868. (eval "$ac_link") 2>conftest.err
  1869. ac_status=$?
  1870. if test -s conftest.err; then
  1871. grep -v '^ *+' conftest.err >conftest.er1
  1872. cat conftest.er1 >&5
  1873. mv -f conftest.er1 conftest.err
  1874. fi
  1875. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1876. test $ac_status = 0; } && {
  1877. test -z "$ac_cxx_werror_flag" ||
  1878. test ! -s conftest.err
  1879. } && test -s conftest$ac_exeext && {
  1880. test "$cross_compiling" = yes ||
  1881. test -x conftest$ac_exeext
  1882. }; then :
  1883. ac_retval=0
  1884. else
  1885. $as_echo "$as_me: failed program was:" >&5
  1886. sed 's/^/| /' conftest.$ac_ext >&5
  1887. ac_retval=1
  1888. fi
  1889. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1890. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1891. # interfere with the next link command; also delete a directory that is
  1892. # left behind by Apple's compiler. We do this before executing the actions.
  1893. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1894. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1895. as_fn_set_status $ac_retval
  1896. } # ac_fn_cxx_try_link
  1897. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1898. # -------------------------------------------------------
  1899. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1900. # the include files in INCLUDES and setting the cache variable VAR
  1901. # accordingly.
  1902. ac_fn_c_check_header_mongrel ()
  1903. {
  1904. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1905. if eval \${$3+:} false; then :
  1906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1907. $as_echo_n "checking for $2... " >&6; }
  1908. if eval \${$3+:} false; then :
  1909. $as_echo_n "(cached) " >&6
  1910. fi
  1911. eval ac_res=\$$3
  1912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1913. $as_echo "$ac_res" >&6; }
  1914. else
  1915. # Is the header compilable?
  1916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1917. $as_echo_n "checking $2 usability... " >&6; }
  1918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1919. /* end confdefs.h. */
  1920. $4
  1921. #include <$2>
  1922. _ACEOF
  1923. if ac_fn_c_try_compile "$LINENO"; then :
  1924. ac_header_compiler=yes
  1925. else
  1926. ac_header_compiler=no
  1927. fi
  1928. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1930. $as_echo "$ac_header_compiler" >&6; }
  1931. # Is the header present?
  1932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1933. $as_echo_n "checking $2 presence... " >&6; }
  1934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1935. /* end confdefs.h. */
  1936. #include <$2>
  1937. _ACEOF
  1938. if ac_fn_c_try_cpp "$LINENO"; then :
  1939. ac_header_preproc=yes
  1940. else
  1941. ac_header_preproc=no
  1942. fi
  1943. rm -f conftest.err conftest.i conftest.$ac_ext
  1944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1945. $as_echo "$ac_header_preproc" >&6; }
  1946. # So? What about this header?
  1947. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1948. yes:no: )
  1949. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1950. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1951. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1952. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1953. ;;
  1954. no:yes:* )
  1955. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1956. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1957. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1958. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1959. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1960. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1961. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1962. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1963. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1964. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1965. ( $as_echo "## ---------------------------------------------------------- ##
  1966. ## Report this to https://github.com/appneta/tcpreplay/issues ##
  1967. ## ---------------------------------------------------------- ##"
  1968. ) | sed "s/^/$as_me: WARNING: /" >&2
  1969. ;;
  1970. esac
  1971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1972. $as_echo_n "checking for $2... " >&6; }
  1973. if eval \${$3+:} false; then :
  1974. $as_echo_n "(cached) " >&6
  1975. else
  1976. eval "$3=\$ac_header_compiler"
  1977. fi
  1978. eval ac_res=\$$3
  1979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1980. $as_echo "$ac_res" >&6; }
  1981. fi
  1982. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1983. } # ac_fn_c_check_header_mongrel
  1984. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1985. # -------------------------------------------
  1986. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1987. # variable VAR accordingly.
  1988. ac_fn_c_check_type ()
  1989. {
  1990. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1992. $as_echo_n "checking for $2... " >&6; }
  1993. if eval \${$3+:} false; then :
  1994. $as_echo_n "(cached) " >&6
  1995. else
  1996. eval "$3=no"
  1997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1998. /* end confdefs.h. */
  1999. $4
  2000. int
  2001. main ()
  2002. {
  2003. if (sizeof ($2))
  2004. return 0;
  2005. ;
  2006. return 0;
  2007. }
  2008. _ACEOF
  2009. if ac_fn_c_try_compile "$LINENO"; then :
  2010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2011. /* end confdefs.h. */
  2012. $4
  2013. int
  2014. main ()
  2015. {
  2016. if (sizeof (($2)))
  2017. return 0;
  2018. ;
  2019. return 0;
  2020. }
  2021. _ACEOF
  2022. if ac_fn_c_try_compile "$LINENO"; then :
  2023. else
  2024. eval "$3=yes"
  2025. fi
  2026. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2027. fi
  2028. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2029. fi
  2030. eval ac_res=\$$3
  2031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2032. $as_echo "$ac_res" >&6; }
  2033. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2034. } # ac_fn_c_check_type
  2035. # ac_fn_c_find_intX_t LINENO BITS VAR
  2036. # -----------------------------------
  2037. # Finds a signed integer type with width BITS, setting cache variable VAR
  2038. # accordingly.
  2039. ac_fn_c_find_intX_t ()
  2040. {
  2041. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  2043. $as_echo_n "checking for int$2_t... " >&6; }
  2044. if eval \${$3+:} false; then :
  2045. $as_echo_n "(cached) " >&6
  2046. else
  2047. eval "$3=no"
  2048. # Order is important - never check a type that is potentially smaller
  2049. # than half of the expected target width.
  2050. for ac_type in int$2_t 'int' 'long int' \
  2051. 'long long int' 'short int' 'signed char'; do
  2052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2053. /* end confdefs.h. */
  2054. $ac_includes_default
  2055. enum { N = $2 / 2 - 1 };
  2056. int
  2057. main ()
  2058. {
  2059. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  2060. test_array [0] = 0;
  2061. return test_array [0];
  2062. ;
  2063. return 0;
  2064. }
  2065. _ACEOF
  2066. if ac_fn_c_try_compile "$LINENO"; then :
  2067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2068. /* end confdefs.h. */
  2069. $ac_includes_default
  2070. enum { N = $2 / 2 - 1 };
  2071. int
  2072. main ()
  2073. {
  2074. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  2075. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  2076. test_array [0] = 0;
  2077. return test_array [0];
  2078. ;
  2079. return 0;
  2080. }
  2081. _ACEOF
  2082. if ac_fn_c_try_compile "$LINENO"; then :
  2083. else
  2084. case $ac_type in #(
  2085. int$2_t) :
  2086. eval "$3=yes" ;; #(
  2087. *) :
  2088. eval "$3=\$ac_type" ;;
  2089. esac
  2090. fi
  2091. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2092. fi
  2093. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2094. if eval test \"x\$"$3"\" = x"no"; then :
  2095. else
  2096. break
  2097. fi
  2098. done
  2099. fi
  2100. eval ac_res=\$$3
  2101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2102. $as_echo "$ac_res" >&6; }
  2103. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2104. } # ac_fn_c_find_intX_t
  2105. # ac_fn_c_find_uintX_t LINENO BITS VAR
  2106. # ------------------------------------
  2107. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  2108. # accordingly.
  2109. ac_fn_c_find_uintX_t ()
  2110. {
  2111. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  2113. $as_echo_n "checking for uint$2_t... " >&6; }
  2114. if eval \${$3+:} false; then :
  2115. $as_echo_n "(cached) " >&6
  2116. else
  2117. eval "$3=no"
  2118. # Order is important - never check a type that is potentially smaller
  2119. # than half of the expected target width.
  2120. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  2121. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  2122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2123. /* end confdefs.h. */
  2124. $ac_includes_default
  2125. int
  2126. main ()
  2127. {
  2128. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  2129. test_array [0] = 0;
  2130. return test_array [0];
  2131. ;
  2132. return 0;
  2133. }
  2134. _ACEOF
  2135. if ac_fn_c_try_compile "$LINENO"; then :
  2136. case $ac_type in #(
  2137. uint$2_t) :
  2138. eval "$3=yes" ;; #(
  2139. *) :
  2140. eval "$3=\$ac_type" ;;
  2141. esac
  2142. fi
  2143. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2144. if eval test \"x\$"$3"\" = x"no"; then :
  2145. else
  2146. break
  2147. fi
  2148. done
  2149. fi
  2150. eval ac_res=\$$3
  2151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2152. $as_echo "$ac_res" >&6; }
  2153. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2154. } # ac_fn_c_find_uintX_t
  2155. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2156. # ----------------------------------------------------
  2157. # Tries to find if the field MEMBER exists in type AGGR, after including
  2158. # INCLUDES, setting cache variable VAR accordingly.
  2159. ac_fn_c_check_member ()
  2160. {
  2161. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2163. $as_echo_n "checking for $2.$3... " >&6; }
  2164. if eval \${$4+:} false; then :
  2165. $as_echo_n "(cached) " >&6
  2166. else
  2167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2168. /* end confdefs.h. */
  2169. $5
  2170. int
  2171. main ()
  2172. {
  2173. static $2 ac_aggr;
  2174. if (ac_aggr.$3)
  2175. return 0;
  2176. ;
  2177. return 0;
  2178. }
  2179. _ACEOF
  2180. if ac_fn_c_try_compile "$LINENO"; then :
  2181. eval "$4=yes"
  2182. else
  2183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2184. /* end confdefs.h. */
  2185. $5
  2186. int
  2187. main ()
  2188. {
  2189. static $2 ac_aggr;
  2190. if (sizeof ac_aggr.$3)
  2191. return 0;
  2192. ;
  2193. return 0;
  2194. }
  2195. _ACEOF
  2196. if ac_fn_c_try_compile "$LINENO"; then :
  2197. eval "$4=yes"
  2198. else
  2199. eval "$4=no"
  2200. fi
  2201. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2202. fi
  2203. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2204. fi
  2205. eval ac_res=\$$4
  2206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2207. $as_echo "$ac_res" >&6; }
  2208. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2209. } # ac_fn_c_check_member
  2210. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2211. # ---------------------------------------------
  2212. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2213. # accordingly.
  2214. ac_fn_c_check_decl ()
  2215. {
  2216. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2217. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2218. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2220. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2221. if eval \${$3+:} false; then :
  2222. $as_echo_n "(cached) " >&6
  2223. else
  2224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2225. /* end confdefs.h. */
  2226. $4
  2227. int
  2228. main ()
  2229. {
  2230. #ifndef $as_decl_name
  2231. #ifdef __cplusplus
  2232. (void) $as_decl_use;
  2233. #else
  2234. (void) $as_decl_name;
  2235. #endif
  2236. #endif
  2237. ;
  2238. return 0;
  2239. }
  2240. _ACEOF
  2241. if ac_fn_c_try_compile "$LINENO"; then :
  2242. eval "$3=yes"
  2243. else
  2244. eval "$3=no"
  2245. fi
  2246. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2247. fi
  2248. eval ac_res=\$$3
  2249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2250. $as_echo "$ac_res" >&6; }
  2251. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2252. } # ac_fn_c_check_decl
  2253. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2254. # --------------------------------------------
  2255. # Tries to find the compile-time value of EXPR in a program that includes
  2256. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2257. # computed
  2258. ac_fn_c_compute_int ()
  2259. {
  2260. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2261. if test "$cross_compiling" = yes; then
  2262. # Depending upon the size, compute the lo and hi bounds.
  2263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2264. /* end confdefs.h. */
  2265. $4
  2266. int
  2267. main ()
  2268. {
  2269. static int test_array [1 - 2 * !(($2) >= 0)];
  2270. test_array [0] = 0;
  2271. return test_array [0];
  2272. ;
  2273. return 0;
  2274. }
  2275. _ACEOF
  2276. if ac_fn_c_try_compile "$LINENO"; then :
  2277. ac_lo=0 ac_mid=0
  2278. while :; do
  2279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2280. /* end confdefs.h. */
  2281. $4
  2282. int
  2283. main ()
  2284. {
  2285. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2286. test_array [0] = 0;
  2287. return test_array [0];
  2288. ;
  2289. return 0;
  2290. }
  2291. _ACEOF
  2292. if ac_fn_c_try_compile "$LINENO"; then :
  2293. ac_hi=$ac_mid; break
  2294. else
  2295. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2296. if test $ac_lo -le $ac_mid; then
  2297. ac_lo= ac_hi=
  2298. break
  2299. fi
  2300. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2301. fi
  2302. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2303. done
  2304. else
  2305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2306. /* end confdefs.h. */
  2307. $4
  2308. int
  2309. main ()
  2310. {
  2311. static int test_array [1 - 2 * !(($2) < 0)];
  2312. test_array [0] = 0;
  2313. return test_array [0];
  2314. ;
  2315. return 0;
  2316. }
  2317. _ACEOF
  2318. if ac_fn_c_try_compile "$LINENO"; then :
  2319. ac_hi=-1 ac_mid=-1
  2320. while :; do
  2321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2322. /* end confdefs.h. */
  2323. $4
  2324. int
  2325. main ()
  2326. {
  2327. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2328. test_array [0] = 0;
  2329. return test_array [0];
  2330. ;
  2331. return 0;
  2332. }
  2333. _ACEOF
  2334. if ac_fn_c_try_compile "$LINENO"; then :
  2335. ac_lo=$ac_mid; break
  2336. else
  2337. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2338. if test $ac_mid -le $ac_hi; then
  2339. ac_lo= ac_hi=
  2340. break
  2341. fi
  2342. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2343. fi
  2344. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2345. done
  2346. else
  2347. ac_lo= ac_hi=
  2348. fi
  2349. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2350. fi
  2351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2352. # Binary search between lo and hi bounds.
  2353. while test "x$ac_lo" != "x$ac_hi"; do
  2354. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2356. /* end confdefs.h. */
  2357. $4
  2358. int
  2359. main ()
  2360. {
  2361. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2362. test_array [0] = 0;
  2363. return test_array [0];
  2364. ;
  2365. return 0;
  2366. }
  2367. _ACEOF
  2368. if ac_fn_c_try_compile "$LINENO"; then :
  2369. ac_hi=$ac_mid
  2370. else
  2371. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2372. fi
  2373. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2374. done
  2375. case $ac_lo in #((
  2376. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2377. '') ac_retval=1 ;;
  2378. esac
  2379. else
  2380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2381. /* end confdefs.h. */
  2382. $4
  2383. static long int longval () { return $2; }
  2384. static unsigned long int ulongval () { return $2; }
  2385. #include <stdio.h>
  2386. #include <stdlib.h>
  2387. int
  2388. main ()
  2389. {
  2390. FILE *f = fopen ("conftest.val", "w");
  2391. if (! f)
  2392. return 1;
  2393. if (($2) < 0)
  2394. {
  2395. long int i = longval ();
  2396. if (i != ($2))
  2397. return 1;
  2398. fprintf (f, "%ld", i);
  2399. }
  2400. else
  2401. {
  2402. unsigned long int i = ulongval ();
  2403. if (i != ($2))
  2404. return 1;
  2405. fprintf (f, "%lu", i);
  2406. }
  2407. /* Do not output a trailing newline, as this causes \r\n confusion
  2408. on some platforms. */
  2409. return ferror (f) || fclose (f) != 0;
  2410. ;
  2411. return 0;
  2412. }
  2413. _ACEOF
  2414. if ac_fn_c_try_run "$LINENO"; then :
  2415. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2416. else
  2417. ac_retval=1
  2418. fi
  2419. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2420. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2421. rm -f conftest.val
  2422. fi
  2423. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2424. as_fn_set_status $ac_retval
  2425. } # ac_fn_c_compute_int
  2426. cat >config.log <<_ACEOF
  2427. This file contains any messages produced by compilers while
  2428. running configure, to aid debugging if configure makes a mistake.
  2429. It was created by tcpreplay $as_me 4.4.3, which was
  2430. generated by GNU Autoconf 2.69. Invocation command line was
  2431. $ $0 $@
  2432. _ACEOF
  2433. exec 5>>config.log
  2434. {
  2435. cat <<_ASUNAME
  2436. ## --------- ##
  2437. ## Platform. ##
  2438. ## --------- ##
  2439. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2440. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2441. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2442. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2443. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2444. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2445. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2446. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2447. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2448. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2449. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2450. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2451. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2452. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2453. _ASUNAME
  2454. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2455. for as_dir in $PATH
  2456. do
  2457. IFS=$as_save_IFS
  2458. test -z "$as_dir" && as_dir=.
  2459. $as_echo "PATH: $as_dir"
  2460. done
  2461. IFS=$as_save_IFS
  2462. } >&5
  2463. cat >&5 <<_ACEOF
  2464. ## ----------- ##
  2465. ## Core tests. ##
  2466. ## ----------- ##
  2467. _ACEOF
  2468. # Keep a trace of the command line.
  2469. # Strip out --no-create and --no-recursion so they do not pile up.
  2470. # Strip out --silent because we don't want to record it for future runs.
  2471. # Also quote any args containing shell meta-characters.
  2472. # Make two passes to allow for proper duplicate-argument suppression.
  2473. ac_configure_args=
  2474. ac_configure_args0=
  2475. ac_configure_args1=
  2476. ac_must_keep_next=false
  2477. for ac_pass in 1 2
  2478. do
  2479. for ac_arg
  2480. do
  2481. case $ac_arg in
  2482. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2483. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2484. | -silent | --silent | --silen | --sile | --sil)
  2485. continue ;;
  2486. *\'*)
  2487. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2488. esac
  2489. case $ac_pass in
  2490. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2491. 2)
  2492. as_fn_append ac_configure_args1 " '$ac_arg'"
  2493. if test $ac_must_keep_next = true; then
  2494. ac_must_keep_next=false # Got value, back to normal.
  2495. else
  2496. case $ac_arg in
  2497. *=* | --config-cache | -C | -disable-* | --disable-* \
  2498. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2499. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2500. | -with-* | --with-* | -without-* | --without-* | --x)
  2501. case "$ac_configure_args0 " in
  2502. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2503. esac
  2504. ;;
  2505. -* ) ac_must_keep_next=true ;;
  2506. esac
  2507. fi
  2508. as_fn_append ac_configure_args " '$ac_arg'"
  2509. ;;
  2510. esac
  2511. done
  2512. done
  2513. { ac_configure_args0=; unset ac_configure_args0;}
  2514. { ac_configure_args1=; unset ac_configure_args1;}
  2515. # When interrupted or exit'd, cleanup temporary files, and complete
  2516. # config.log. We remove comments because anyway the quotes in there
  2517. # would cause problems or look ugly.
  2518. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2519. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2520. trap 'exit_status=$?
  2521. # Save into config.log some information that might help in debugging.
  2522. {
  2523. echo
  2524. $as_echo "## ---------------- ##
  2525. ## Cache variables. ##
  2526. ## ---------------- ##"
  2527. echo
  2528. # The following way of writing the cache mishandles newlines in values,
  2529. (
  2530. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2531. eval ac_val=\$$ac_var
  2532. case $ac_val in #(
  2533. *${as_nl}*)
  2534. case $ac_var in #(
  2535. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2536. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2537. esac
  2538. case $ac_var in #(
  2539. _ | IFS | as_nl) ;; #(
  2540. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2541. *) { eval $ac_var=; unset $ac_var;} ;;
  2542. esac ;;
  2543. esac
  2544. done
  2545. (set) 2>&1 |
  2546. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2547. *${as_nl}ac_space=\ *)
  2548. sed -n \
  2549. "s/'\''/'\''\\\\'\'''\''/g;
  2550. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2551. ;; #(
  2552. *)
  2553. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2554. ;;
  2555. esac |
  2556. sort
  2557. )
  2558. echo
  2559. $as_echo "## ----------------- ##
  2560. ## Output variables. ##
  2561. ## ----------------- ##"
  2562. echo
  2563. for ac_var in $ac_subst_vars
  2564. do
  2565. eval ac_val=\$$ac_var
  2566. case $ac_val in
  2567. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2568. esac
  2569. $as_echo "$ac_var='\''$ac_val'\''"
  2570. done | sort
  2571. echo
  2572. if test -n "$ac_subst_files"; then
  2573. $as_echo "## ------------------- ##
  2574. ## File substitutions. ##
  2575. ## ------------------- ##"
  2576. echo
  2577. for ac_var in $ac_subst_files
  2578. do
  2579. eval ac_val=\$$ac_var
  2580. case $ac_val in
  2581. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2582. esac
  2583. $as_echo "$ac_var='\''$ac_val'\''"
  2584. done | sort
  2585. echo
  2586. fi
  2587. if test -s confdefs.h; then
  2588. $as_echo "## ----------- ##
  2589. ## confdefs.h. ##
  2590. ## ----------- ##"
  2591. echo
  2592. cat confdefs.h
  2593. echo
  2594. fi
  2595. test "$ac_signal" != 0 &&
  2596. $as_echo "$as_me: caught signal $ac_signal"
  2597. $as_echo "$as_me: exit $exit_status"
  2598. } >&5
  2599. rm -f core *.core core.conftest.* &&
  2600. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2601. exit $exit_status
  2602. ' 0
  2603. for ac_signal in 1 2 13 15; do
  2604. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2605. done
  2606. ac_signal=0
  2607. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2608. rm -f -r conftest* confdefs.h
  2609. $as_echo "/* confdefs.h */" > confdefs.h
  2610. # Predefined preprocessor variables.
  2611. cat >>confdefs.h <<_ACEOF
  2612. #define PACKAGE_NAME "$PACKAGE_NAME"
  2613. _ACEOF
  2614. cat >>confdefs.h <<_ACEOF
  2615. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2616. _ACEOF
  2617. cat >>confdefs.h <<_ACEOF
  2618. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2619. _ACEOF
  2620. cat >>confdefs.h <<_ACEOF
  2621. #define PACKAGE_STRING "$PACKAGE_STRING"
  2622. _ACEOF
  2623. cat >>confdefs.h <<_ACEOF
  2624. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2625. _ACEOF
  2626. cat >>confdefs.h <<_ACEOF
  2627. #define PACKAGE_URL "$PACKAGE_URL"
  2628. _ACEOF
  2629. # Let the site file select an alternate cache file if it wants to.
  2630. # Prefer an explicitly selected file to automatically selected ones.
  2631. ac_site_file1=NONE
  2632. ac_site_file2=NONE
  2633. if test -n "$CONFIG_SITE"; then
  2634. # We do not want a PATH search for config.site.
  2635. case $CONFIG_SITE in #((
  2636. -*) ac_site_file1=./$CONFIG_SITE;;
  2637. */*) ac_site_file1=$CONFIG_SITE;;
  2638. *) ac_site_file1=./$CONFIG_SITE;;
  2639. esac
  2640. elif test "x$prefix" != xNONE; then
  2641. ac_site_file1=$prefix/share/config.site
  2642. ac_site_file2=$prefix/etc/config.site
  2643. else
  2644. ac_site_file1=$ac_default_prefix/share/config.site
  2645. ac_site_file2=$ac_default_prefix/etc/config.site
  2646. fi
  2647. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2648. do
  2649. test "x$ac_site_file" = xNONE && continue
  2650. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2651. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2652. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2653. sed 's/^/| /' "$ac_site_file" >&5
  2654. . "$ac_site_file" \
  2655. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2656. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2657. as_fn_error $? "failed to load site script $ac_site_file
  2658. See \`config.log' for more details" "$LINENO" 5; }
  2659. fi
  2660. done
  2661. if test -r "$cache_file"; then
  2662. # Some versions of bash will fail to source /dev/null (special files
  2663. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2664. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2665. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2666. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2667. case $cache_file in
  2668. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2669. *) . "./$cache_file";;
  2670. esac
  2671. fi
  2672. else
  2673. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2674. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2675. >$cache_file
  2676. fi
  2677. as_fn_append ac_header_list " sys/time.h"
  2678. as_fn_append ac_header_list " unistd.h"
  2679. as_fn_append ac_func_list " alarm"
  2680. as_fn_append ac_header_list " stdlib.h"
  2681. as_fn_append ac_header_list " sys/param.h"
  2682. # Check that the precious variables saved in the cache have kept the same
  2683. # value.
  2684. ac_cache_corrupted=false
  2685. for ac_var in $ac_precious_vars; do
  2686. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2687. eval ac_new_set=\$ac_env_${ac_var}_set
  2688. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2689. eval ac_new_val=\$ac_env_${ac_var}_value
  2690. case $ac_old_set,$ac_new_set in
  2691. set,)
  2692. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2693. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2694. ac_cache_corrupted=: ;;
  2695. ,set)
  2696. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2697. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2698. ac_cache_corrupted=: ;;
  2699. ,);;
  2700. *)
  2701. if test "x$ac_old_val" != "x$ac_new_val"; then
  2702. # differences in whitespace do not lead to failure.
  2703. ac_old_val_w=`echo x $ac_old_val`
  2704. ac_new_val_w=`echo x $ac_new_val`
  2705. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2706. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2707. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2708. ac_cache_corrupted=:
  2709. else
  2710. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2711. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2712. eval $ac_var=\$ac_old_val
  2713. fi
  2714. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2715. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2716. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2717. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2718. fi;;
  2719. esac
  2720. # Pass precious variables to config.status.
  2721. if test "$ac_new_set" = set; then
  2722. case $ac_new_val in
  2723. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2724. *) ac_arg=$ac_var=$ac_new_val ;;
  2725. esac
  2726. case " $ac_configure_args " in
  2727. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2728. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2729. esac
  2730. fi
  2731. done
  2732. if $ac_cache_corrupted; then
  2733. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2734. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2735. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2736. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2737. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2738. fi
  2739. ## -------------------- ##
  2740. ## Main body of script. ##
  2741. ## -------------------- ##
  2742. ac_ext=c
  2743. ac_cpp='$CPP $CPPFLAGS'
  2744. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2745. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2746. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2747. ac_config_headers="$ac_config_headers src/config.h"
  2748. ac_aux_dir=
  2749. for ac_dir in config "$srcdir"/config; do
  2750. if test -f "$ac_dir/install-sh"; then
  2751. ac_aux_dir=$ac_dir
  2752. ac_install_sh="$ac_aux_dir/install-sh -c"
  2753. break
  2754. elif test -f "$ac_dir/install.sh"; then
  2755. ac_aux_dir=$ac_dir
  2756. ac_install_sh="$ac_aux_dir/install.sh -c"
  2757. break
  2758. elif test -f "$ac_dir/shtool"; then
  2759. ac_aux_dir=$ac_dir
  2760. ac_install_sh="$ac_aux_dir/shtool install -c"
  2761. break
  2762. fi
  2763. done
  2764. if test -z "$ac_aux_dir"; then
  2765. as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
  2766. fi
  2767. # These three variables are undocumented and unsupported,
  2768. # and are intended to be withdrawn in a future Autoconf release.
  2769. # They can cause serious problems if a builder's source tree is in a directory
  2770. # whose full name contains unusual characters.
  2771. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2772. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2773. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2775. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2776. # Check whether --enable-maintainer-mode was given.
  2777. if test "${enable_maintainer_mode+set}" = set; then :
  2778. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2779. else
  2780. USE_MAINTAINER_MODE=yes
  2781. fi
  2782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2783. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2784. if test $USE_MAINTAINER_MODE = yes; then
  2785. MAINTAINER_MODE_TRUE=
  2786. MAINTAINER_MODE_FALSE='#'
  2787. else
  2788. MAINTAINER_MODE_TRUE='#'
  2789. MAINTAINER_MODE_FALSE=
  2790. fi
  2791. MAINT=$MAINTAINER_MODE_TRUE
  2792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
  2793. $as_echo_n "checking if malloc debugging is wanted... " >&6; }
  2794. # Check whether --with-dmalloc was given.
  2795. if test "${with_dmalloc+set}" = set; then :
  2796. withval=$with_dmalloc; if test "$withval" = yes; then
  2797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2798. $as_echo "yes" >&6; }
  2799. $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
  2800. LIBS="$LIBS -ldmalloc"
  2801. LDFLAGS="$LDFLAGS -g"
  2802. else
  2803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2804. $as_echo "no" >&6; }
  2805. fi
  2806. else
  2807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2808. $as_echo "no" >&6; }
  2809. fi
  2810. MAINTAINER_AUTOGEN_VERSION=5.18.16
  2811. TCPREPLAY_VERSION=$PACKAGE_VERSION
  2812. TCPREPLAY_RELEASE=1
  2813. # Make sure we can run config.sub.
  2814. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2815. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2817. $as_echo_n "checking build system type... " >&6; }
  2818. if ${ac_cv_build+:} false; then :
  2819. $as_echo_n "(cached) " >&6
  2820. else
  2821. ac_build_alias=$build_alias
  2822. test "x$ac_build_alias" = x &&
  2823. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2824. test "x$ac_build_alias" = x &&
  2825. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2826. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2827. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2828. fi
  2829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2830. $as_echo "$ac_cv_build" >&6; }
  2831. case $ac_cv_build in
  2832. *-*-*) ;;
  2833. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2834. esac
  2835. build=$ac_cv_build
  2836. ac_save_IFS=$IFS; IFS='-'
  2837. set x $ac_cv_build
  2838. shift
  2839. build_cpu=$1
  2840. build_vendor=$2
  2841. shift; shift
  2842. # Remember, the first character of IFS is used to create $*,
  2843. # except with old shells:
  2844. build_os=$*
  2845. IFS=$ac_save_IFS
  2846. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2848. $as_echo_n "checking host system type... " >&6; }
  2849. if ${ac_cv_host+:} false; then :
  2850. $as_echo_n "(cached) " >&6
  2851. else
  2852. if test "x$host_alias" = x; then
  2853. ac_cv_host=$ac_cv_build
  2854. else
  2855. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2856. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2857. fi
  2858. fi
  2859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2860. $as_echo "$ac_cv_host" >&6; }
  2861. case $ac_cv_host in
  2862. *-*-*) ;;
  2863. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2864. esac
  2865. host=$ac_cv_host
  2866. ac_save_IFS=$IFS; IFS='-'
  2867. set x $ac_cv_host
  2868. shift
  2869. host_cpu=$1
  2870. host_vendor=$2
  2871. shift; shift
  2872. # Remember, the first character of IFS is used to create $*,
  2873. # except with old shells:
  2874. host_os=$*
  2875. IFS=$ac_save_IFS
  2876. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2878. $as_echo_n "checking target system type... " >&6; }
  2879. if ${ac_cv_target+:} false; then :
  2880. $as_echo_n "(cached) " >&6
  2881. else
  2882. if test "x$target_alias" = x; then
  2883. ac_cv_target=$ac_cv_host
  2884. else
  2885. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2886. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2887. fi
  2888. fi
  2889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2890. $as_echo "$ac_cv_target" >&6; }
  2891. case $ac_cv_target in
  2892. *-*-*) ;;
  2893. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2894. esac
  2895. target=$ac_cv_target
  2896. ac_save_IFS=$IFS; IFS='-'
  2897. set x $ac_cv_target
  2898. shift
  2899. target_cpu=$1
  2900. target_vendor=$2
  2901. shift; shift
  2902. # Remember, the first character of IFS is used to create $*,
  2903. # except with old shells:
  2904. target_os=$*
  2905. IFS=$ac_save_IFS
  2906. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2907. # The aliases save the names the user supplied, while $host etc.
  2908. # will get canonicalized.
  2909. test -n "$target_alias" &&
  2910. test "$program_prefix$program_suffix$program_transform_name" = \
  2911. NONENONEs,x,x, &&
  2912. program_prefix=${target_alias}-
  2913. CROSS_ARCH=
  2914. CROSS_LD=
  2915. build_arch=$(echo $MACHTYPE | cut -d'-' -f1)
  2916. if test "$cross_compiling" = "yes" ; then
  2917. CROSS_ARCH="ARCH=$host_cpu"
  2918. CROSS_LD="LD=$LD"
  2919. fi
  2920. # Check whether --with-macos-sdk was given.
  2921. if test "${with_macos_sdk+set}" = set; then :
  2922. withval=$with_macos_sdk;
  2923. fi
  2924. case "$host_os" in
  2925. darwin*) # Mac OS X or iOS
  2926. # If no --with-macos-sdk option is given, look for the latestq SDK
  2927. # The intent is that for "most" Mac-based developers, a suitable
  2928. # SDK will be found automatically without any configure options.
  2929. # For developers with a current Xcode, the lowest-numbered SDK
  2930. # higher than or equal to the minimum required should be found.
  2931. # To find a list of available version run `xcodebuild -showsdks`
  2932. MULTIARCH=${host_cpu}-${host_os}
  2933. unset MACOSX_SDK_PATH
  2934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking what macOS compiler to use" >&5
  2935. $as_echo_n "checking what macOS compiler to use... " >&6; }
  2936. if test -n "$with_macos_sdk"; then
  2937. MACOSX_SDK_PATH=$(xcrun --sdk macosx${with_macos_sdk} --show-sdk-path 2> /dev/null)
  2938. if test -z "$MACOSX_SDK_PATH" ; then
  2939. as_fn_error $? "could not find SDK ${with_macos_sdk} for macos-${MULTIARCH}" "$LINENO" 5
  2940. fi
  2941. else
  2942. MACOSX_SDK_PATH=$(xcrun --show-sdk-path 2> /dev/null)
  2943. if test -z "$MACOSX_SDK_PATH" ; then
  2944. for _macos_sdk_major in $(seq 15 -1 10); do
  2945. for _macos_sdk_minor in $(seq 20 -1 0); do
  2946. _macos_sdk_version=$_macos_sdk_major.$_macos_sdk_minor
  2947. MACOSX_SDK_PATH=$(xcrun --sdk macosx${_macos_sdk_version} --show-sdk-path 2> /dev/null)
  2948. if test -d "$_macos_sdk_path" ; then
  2949. break 2
  2950. fi
  2951. done
  2952. done
  2953. if test -z "$MACOSX_SDK_PATH"; then
  2954. for _macos_sdk_major in $(seq 15 -1 10); do
  2955. for _macos_sdk_minor in $(seq 20 -1 0); do
  2956. _macos_sdk_version=$_macos_sdk_major.$_macos_sdk_minor
  2957. MACOSX_SDK_PATH=$(xcode-select -print-path)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX${_macos_sdk_version}.sdk
  2958. if test -d "$MACOSX_SDK_PATH"; then
  2959. break 2
  2960. fi
  2961. MACOSX_SDK_PATH=$(xcode-select -print-path)/SDKs/MacOSX${_macos_sdk_version}.sdk
  2962. if test -d "$MACOSX_SDK_PATH"; then
  2963. break 2
  2964. fi
  2965. done
  2966. done
  2967. fi
  2968. fi
  2969. fi
  2970. if test -d "$MACOSX_SDK_PATH"; then
  2971. CC="$(xcrun -find clang) -m64 -isysroot $MACOSX_SDK_PATH"
  2972. INSTALL_NAME_TOOL=$(xcrun -find install_name_tool)
  2973. AR=$(xcrun -find ar)
  2974. NM=$(xcrun -find nm)
  2975. STRIP=$(xcrun -find strip)
  2976. LIBTOOL=$(xcrun -find libtool)
  2977. RANLIB=$(xcrun -find ranlib)
  2978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${MACOSX_SDK_PATH}" >&5
  2979. $as_echo "${MACOSX_SDK_PATH}" >&6; }
  2980. else
  2981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: legacy" >&5
  2982. $as_echo "legacy" >&6; }
  2983. fi
  2984. ;;
  2985. Linux*)
  2986. MULTIARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH) 2> /dev/null || ${host_cpu}-${host_os}
  2987. ;;
  2988. *)
  2989. MULTIARCH=${host_cpu}-${host_os}
  2990. ;;
  2991. esac
  2992. # Note that the OS X libtool command is unrelated to GNU libtool
  2993. # Check whether --with-pfring-lib was given.
  2994. if test "${with_pfring_lib+set}" = set; then :
  2995. withval=$with_pfring_lib;
  2996. fi
  2997. have_cygwin=no
  2998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin development environment" >&5
  2999. $as_echo_n "checking for cygwin development environment... " >&6; }
  3000. if test $(echo $target | grep -c cygwin) -gt 0 ; then
  3001. $as_echo "#define HAVE_WIN32 1" >>confdefs.h
  3002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3003. $as_echo "yes" >&6; }
  3004. have_cygwin=yes
  3005. else
  3006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3007. $as_echo "no" >&6; }
  3008. fi
  3009. am__api_version='1.15'
  3010. # Find a good install program. We prefer a C program (faster),
  3011. # so one script is as good as another. But avoid the broken or
  3012. # incompatible versions:
  3013. # SysV /etc/install, /usr/sbin/install
  3014. # SunOS /usr/etc/install
  3015. # IRIX /sbin/install
  3016. # AIX /bin/install
  3017. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3018. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3019. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3020. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3021. # OS/2's system install, which has a completely different semantic
  3022. # ./install, which can be erroneously created by make from ./install.sh.
  3023. # Reject install programs that cannot install multiple files.
  3024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3025. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3026. if test -z "$INSTALL"; then
  3027. if ${ac_cv_path_install+:} false; then :
  3028. $as_echo_n "(cached) " >&6
  3029. else
  3030. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3031. for as_dir in $PATH
  3032. do
  3033. IFS=$as_save_IFS
  3034. test -z "$as_dir" && as_dir=.
  3035. # Account for people who put trailing slashes in PATH elements.
  3036. case $as_dir/ in #((
  3037. ./ | .// | /[cC]/* | \
  3038. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3039. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3040. /usr/ucb/* ) ;;
  3041. *)
  3042. # OSF1 and SCO ODT 3.0 have their own names for install.
  3043. # Don't use installbsd from OSF since it installs stuff as root
  3044. # by default.
  3045. for ac_prog in ginstall scoinst install; do
  3046. for ac_exec_ext in '' $ac_executable_extensions; do
  3047. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3048. if test $ac_prog = install &&
  3049. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3050. # AIX install. It has an incompatible calling convention.
  3051. :
  3052. elif test $ac_prog = install &&
  3053. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3054. # program-specific install script used by HP pwplus--don't use.
  3055. :
  3056. else
  3057. rm -rf conftest.one conftest.two conftest.dir
  3058. echo one > conftest.one
  3059. echo two > conftest.two
  3060. mkdir conftest.dir
  3061. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3062. test -s conftest.one && test -s conftest.two &&
  3063. test -s conftest.dir/conftest.one &&
  3064. test -s conftest.dir/conftest.two
  3065. then
  3066. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3067. break 3
  3068. fi
  3069. fi
  3070. fi
  3071. done
  3072. done
  3073. ;;
  3074. esac
  3075. done
  3076. IFS=$as_save_IFS
  3077. rm -rf conftest.one conftest.two conftest.dir
  3078. fi
  3079. if test "${ac_cv_path_install+set}" = set; then
  3080. INSTALL=$ac_cv_path_install
  3081. else
  3082. # As a last resort, use the slow shell script. Don't cache a
  3083. # value for INSTALL within a source directory, because that will
  3084. # break other packages using the cache if that directory is
  3085. # removed, or if the value is a relative name.
  3086. INSTALL=$ac_install_sh
  3087. fi
  3088. fi
  3089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3090. $as_echo "$INSTALL" >&6; }
  3091. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3092. # It thinks the first close brace ends the variable substitution.
  3093. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3094. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3095. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3097. $as_echo_n "checking whether build environment is sane... " >&6; }
  3098. # Reject unsafe characters in $srcdir or the absolute working directory
  3099. # name. Accept space and tab only in the latter.
  3100. am_lf='
  3101. '
  3102. case `pwd` in
  3103. *[\\\"\#\$\&\'\`$am_lf]*)
  3104. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  3105. esac
  3106. case $srcdir in
  3107. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3108. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  3109. esac
  3110. # Do 'set' in a subshell so we don't clobber the current shell's
  3111. # arguments. Must try -L first in case configure is actually a
  3112. # symlink; some systems play weird games with the mod time of symlinks
  3113. # (eg FreeBSD returns the mod time of the symlink's containing
  3114. # directory).
  3115. if (
  3116. am_has_slept=no
  3117. for am_try in 1 2; do
  3118. echo "timestamp, slept: $am_has_slept" > conftest.file
  3119. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3120. if test "$*" = "X"; then
  3121. # -L didn't work.
  3122. set X `ls -t "$srcdir/configure" conftest.file`
  3123. fi
  3124. if test "$*" != "X $srcdir/configure conftest.file" \
  3125. && test "$*" != "X conftest.file $srcdir/configure"; then
  3126. # If neither matched, then we have a broken ls. This can happen
  3127. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3128. # broken ls alias from the environment. This has actually
  3129. # happened. Such a system could not be considered "sane".
  3130. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  3131. alias in your environment" "$LINENO" 5
  3132. fi
  3133. if test "$2" = conftest.file || test $am_try -eq 2; then
  3134. break
  3135. fi
  3136. # Just in case.
  3137. sleep 1
  3138. am_has_slept=yes
  3139. done
  3140. test "$2" = conftest.file
  3141. )
  3142. then
  3143. # Ok.
  3144. :
  3145. else
  3146. as_fn_error $? "newly created file is older than distributed files!
  3147. Check your system clock" "$LINENO" 5
  3148. fi
  3149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3150. $as_echo "yes" >&6; }
  3151. # If we didn't sleep, we still need to ensure time stamps of config.status and
  3152. # generated files are strictly newer.
  3153. am_sleep_pid=
  3154. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  3155. ( sleep 1 ) &
  3156. am_sleep_pid=$!
  3157. fi
  3158. rm -f conftest.file
  3159. test "$program_prefix" != NONE &&
  3160. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3161. # Use a double $ so make ignores it.
  3162. test "$program_suffix" != NONE &&
  3163. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3164. # Double any \ or $.
  3165. # By default was `s,x,x', remove it if useless.
  3166. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3167. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3168. # Expand $ac_aux_dir to an absolute path.
  3169. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  3170. if test x"${MISSING+set}" != xset; then
  3171. case $am_aux_dir in
  3172. *\ * | *\ *)
  3173. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3174. *)
  3175. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3176. esac
  3177. fi
  3178. # Use eval to expand $SHELL
  3179. if eval "$MISSING --is-lightweight"; then
  3180. am_missing_run="$MISSING "
  3181. else
  3182. am_missing_run=
  3183. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  3184. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  3185. fi
  3186. if test x"${install_sh+set}" != xset; then
  3187. case $am_aux_dir in
  3188. *\ * | *\ *)
  3189. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3190. *)
  3191. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3192. esac
  3193. fi
  3194. # Installed binaries are usually stripped using 'strip' when the user
  3195. # run "make install-strip". However 'strip' might not be the right
  3196. # tool to use in cross-compilation environments, therefore Automake
  3197. # will honor the 'STRIP' environment variable to overrule this program.
  3198. if test "$cross_compiling" != no; then
  3199. if test -n "$ac_tool_prefix"; then
  3200. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3201. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3203. $as_echo_n "checking for $ac_word... " >&6; }
  3204. if ${ac_cv_prog_STRIP+:} false; then :
  3205. $as_echo_n "(cached) " >&6
  3206. else
  3207. if test -n "$STRIP"; then
  3208. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3209. else
  3210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3211. for as_dir in $PATH
  3212. do
  3213. IFS=$as_save_IFS
  3214. test -z "$as_dir" && as_dir=.
  3215. for ac_exec_ext in '' $ac_executable_extensions; do
  3216. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3217. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3218. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3219. break 2
  3220. fi
  3221. done
  3222. done
  3223. IFS=$as_save_IFS
  3224. fi
  3225. fi
  3226. STRIP=$ac_cv_prog_STRIP
  3227. if test -n "$STRIP"; then
  3228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3229. $as_echo "$STRIP" >&6; }
  3230. else
  3231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3232. $as_echo "no" >&6; }
  3233. fi
  3234. fi
  3235. if test -z "$ac_cv_prog_STRIP"; then
  3236. ac_ct_STRIP=$STRIP
  3237. # Extract the first word of "strip", so it can be a program name with args.
  3238. set dummy strip; ac_word=$2
  3239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3240. $as_echo_n "checking for $ac_word... " >&6; }
  3241. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  3242. $as_echo_n "(cached) " >&6
  3243. else
  3244. if test -n "$ac_ct_STRIP"; then
  3245. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3246. else
  3247. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3248. for as_dir in $PATH
  3249. do
  3250. IFS=$as_save_IFS
  3251. test -z "$as_dir" && as_dir=.
  3252. for ac_exec_ext in '' $ac_executable_extensions; do
  3253. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3254. ac_cv_prog_ac_ct_STRIP="strip"
  3255. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3256. break 2
  3257. fi
  3258. done
  3259. done
  3260. IFS=$as_save_IFS
  3261. fi
  3262. fi
  3263. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3264. if test -n "$ac_ct_STRIP"; then
  3265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3266. $as_echo "$ac_ct_STRIP" >&6; }
  3267. else
  3268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3269. $as_echo "no" >&6; }
  3270. fi
  3271. if test "x$ac_ct_STRIP" = x; then
  3272. STRIP=":"
  3273. else
  3274. case $cross_compiling:$ac_tool_warned in
  3275. yes:)
  3276. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3277. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3278. ac_tool_warned=yes ;;
  3279. esac
  3280. STRIP=$ac_ct_STRIP
  3281. fi
  3282. else
  3283. STRIP="$ac_cv_prog_STRIP"
  3284. fi
  3285. fi
  3286. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3288. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3289. if test -z "$MKDIR_P"; then
  3290. if ${ac_cv_path_mkdir+:} false; then :
  3291. $as_echo_n "(cached) " >&6
  3292. else
  3293. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3294. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3295. do
  3296. IFS=$as_save_IFS
  3297. test -z "$as_dir" && as_dir=.
  3298. for ac_prog in mkdir gmkdir; do
  3299. for ac_exec_ext in '' $ac_executable_extensions; do
  3300. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  3301. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3302. 'mkdir (GNU coreutils) '* | \
  3303. 'mkdir (coreutils) '* | \
  3304. 'mkdir (fileutils) '4.1*)
  3305. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3306. break 3;;
  3307. esac
  3308. done
  3309. done
  3310. done
  3311. IFS=$as_save_IFS
  3312. fi
  3313. test -d ./--version && rmdir ./--version
  3314. if test "${ac_cv_path_mkdir+set}" = set; then
  3315. MKDIR_P="$ac_cv_path_mkdir -p"
  3316. else
  3317. # As a last resort, use the slow shell script. Don't cache a
  3318. # value for MKDIR_P within a source directory, because that will
  3319. # break other packages using the cache if that directory is
  3320. # removed, or if the value is a relative name.
  3321. MKDIR_P="$ac_install_sh -d"
  3322. fi
  3323. fi
  3324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3325. $as_echo "$MKDIR_P" >&6; }
  3326. for ac_prog in gawk mawk nawk awk
  3327. do
  3328. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3329. set dummy $ac_prog; ac_word=$2
  3330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3331. $as_echo_n "checking for $ac_word... " >&6; }
  3332. if ${ac_cv_prog_AWK+:} false; then :
  3333. $as_echo_n "(cached) " >&6
  3334. else
  3335. if test -n "$AWK"; then
  3336. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3337. else
  3338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3339. for as_dir in $PATH
  3340. do
  3341. IFS=$as_save_IFS
  3342. test -z "$as_dir" && as_dir=.
  3343. for ac_exec_ext in '' $ac_executable_extensions; do
  3344. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3345. ac_cv_prog_AWK="$ac_prog"
  3346. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3347. break 2
  3348. fi
  3349. done
  3350. done
  3351. IFS=$as_save_IFS
  3352. fi
  3353. fi
  3354. AWK=$ac_cv_prog_AWK
  3355. if test -n "$AWK"; then
  3356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3357. $as_echo "$AWK" >&6; }
  3358. else
  3359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3360. $as_echo "no" >&6; }
  3361. fi
  3362. test -n "$AWK" && break
  3363. done
  3364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3365. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3366. set x ${MAKE-make}
  3367. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3368. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3369. $as_echo_n "(cached) " >&6
  3370. else
  3371. cat >conftest.make <<\_ACEOF
  3372. SHELL = /bin/sh
  3373. all:
  3374. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3375. _ACEOF
  3376. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3377. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3378. *@@@%%%=?*=@@@%%%*)
  3379. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3380. *)
  3381. eval ac_cv_prog_make_${ac_make}_set=no;;
  3382. esac
  3383. rm -f conftest.make
  3384. fi
  3385. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3387. $as_echo "yes" >&6; }
  3388. SET_MAKE=
  3389. else
  3390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3391. $as_echo "no" >&6; }
  3392. SET_MAKE="MAKE=${MAKE-make}"
  3393. fi
  3394. rm -rf .tst 2>/dev/null
  3395. mkdir .tst 2>/dev/null
  3396. if test -d .tst; then
  3397. am__leading_dot=.
  3398. else
  3399. am__leading_dot=_
  3400. fi
  3401. rmdir .tst 2>/dev/null
  3402. # Check whether --enable-silent-rules was given.
  3403. if test "${enable_silent_rules+set}" = set; then :
  3404. enableval=$enable_silent_rules;
  3405. fi
  3406. case $enable_silent_rules in # (((
  3407. yes) AM_DEFAULT_VERBOSITY=0;;
  3408. no) AM_DEFAULT_VERBOSITY=1;;
  3409. *) AM_DEFAULT_VERBOSITY=1;;
  3410. esac
  3411. am_make=${MAKE-make}
  3412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3413. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3414. if ${am_cv_make_support_nested_variables+:} false; then :
  3415. $as_echo_n "(cached) " >&6
  3416. else
  3417. if $as_echo 'TRUE=$(BAR$(V))
  3418. BAR0=false
  3419. BAR1=true
  3420. V=1
  3421. am__doit:
  3422. @$(TRUE)
  3423. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3424. am_cv_make_support_nested_variables=yes
  3425. else
  3426. am_cv_make_support_nested_variables=no
  3427. fi
  3428. fi
  3429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3430. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3431. if test $am_cv_make_support_nested_variables = yes; then
  3432. AM_V='$(V)'
  3433. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3434. else
  3435. AM_V=$AM_DEFAULT_VERBOSITY
  3436. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3437. fi
  3438. AM_BACKSLASH='\'
  3439. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3440. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3441. # is not polluted with repeated "-I."
  3442. am__isrc=' -I$(srcdir)'
  3443. # test to see if srcdir already configured
  3444. if test -f $srcdir/config.status; then
  3445. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3446. fi
  3447. fi
  3448. # test whether we have cygpath
  3449. if test -z "$CYGPATH_W"; then
  3450. if (cygpath --version) >/dev/null 2>/dev/null; then
  3451. CYGPATH_W='cygpath -w'
  3452. else
  3453. CYGPATH_W=echo
  3454. fi
  3455. fi
  3456. # Define the identity of the package.
  3457. PACKAGE='tcpreplay'
  3458. VERSION='4.4.3'
  3459. cat >>confdefs.h <<_ACEOF
  3460. #define PACKAGE "$PACKAGE"
  3461. _ACEOF
  3462. cat >>confdefs.h <<_ACEOF
  3463. #define VERSION "$VERSION"
  3464. _ACEOF
  3465. # Some tools Automake needs.
  3466. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3467. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3468. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3469. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3470. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3471. # For better backward compatibility. To be removed once Automake 1.9.x
  3472. # dies out for good. For more background, see:
  3473. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3474. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3475. mkdir_p='$(MKDIR_P)'
  3476. # We need awk for the "check" target (and possibly the TAP driver). The
  3477. # system "awk" is bad on some platforms.
  3478. # Always define AMTAR for backward compatibility. Yes, it's still used
  3479. # in the wild :-( We should find a proper way to deprecate it ...
  3480. AMTAR='$${TAR-tar}'
  3481. # We'll loop over all known methods to create a tar archive until one works.
  3482. _am_tools='gnutar pax cpio none'
  3483. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3484. # POSIX will say in a future version that running "rm -f" with no argument
  3485. # is OK; and we want to be able to make that assumption in our Makefile
  3486. # recipes. So use an aggressive probe to check that the usage we want is
  3487. # actually supported "in the wild" to an acceptable degree.
  3488. # See automake bug#10828.
  3489. # To make any issue more visible, cause the running configure to be aborted
  3490. # by default if the 'rm' program in use doesn't match our expectations; the
  3491. # user can still override this though.
  3492. if rm -f && rm -fr && rm -rf; then : OK; else
  3493. cat >&2 <<'END'
  3494. Oops!
  3495. Your 'rm' program seems unable to run without file operands specified
  3496. on the command line, even when the '-f' option is present. This is contrary
  3497. to the behaviour of most rm programs out there, and not conforming with
  3498. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3499. Please tell bug-automake@gnu.org about your system, including the value
  3500. of your $PATH and any error possibly output before this message. This
  3501. can help us improve future automake versions.
  3502. END
  3503. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3504. echo 'Configuration will proceed anyway, since you have set the' >&2
  3505. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3506. echo >&2
  3507. else
  3508. cat >&2 <<'END'
  3509. Aborting the configuration process, to ensure you take notice of the issue.
  3510. You can download and install GNU coreutils to get an 'rm' implementation
  3511. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3512. If you want to complete the configuration process using your problematic
  3513. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3514. to "yes", and re-run configure.
  3515. END
  3516. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3517. fi
  3518. fi
  3519. # Check whether --enable-silent-rules was given.
  3520. if test "${enable_silent_rules+set}" = set; then :
  3521. enableval=$enable_silent_rules;
  3522. fi
  3523. case $enable_silent_rules in # (((
  3524. yes) AM_DEFAULT_VERBOSITY=0;;
  3525. no) AM_DEFAULT_VERBOSITY=1;;
  3526. *) AM_DEFAULT_VERBOSITY=0;;
  3527. esac
  3528. am_make=${MAKE-make}
  3529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3530. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3531. if ${am_cv_make_support_nested_variables+:} false; then :
  3532. $as_echo_n "(cached) " >&6
  3533. else
  3534. if $as_echo 'TRUE=$(BAR$(V))
  3535. BAR0=false
  3536. BAR1=true
  3537. V=1
  3538. am__doit:
  3539. @$(TRUE)
  3540. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3541. am_cv_make_support_nested_variables=yes
  3542. else
  3543. am_cv_make_support_nested_variables=no
  3544. fi
  3545. fi
  3546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3547. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3548. if test $am_cv_make_support_nested_variables = yes; then
  3549. AM_V='$(V)'
  3550. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3551. else
  3552. AM_V=$AM_DEFAULT_VERBOSITY
  3553. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3554. fi
  3555. AM_BACKSLASH='\'
  3556. DEPDIR="${am__leading_dot}deps"
  3557. ac_config_commands="$ac_config_commands depfiles"
  3558. am_make=${MAKE-make}
  3559. cat > confinc << 'END'
  3560. am__doit:
  3561. @echo this is the am__doit target
  3562. .PHONY: am__doit
  3563. END
  3564. # If we don't find an include directive, just comment out the code.
  3565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3566. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3567. am__include="#"
  3568. am__quote=
  3569. _am_result=none
  3570. # First try GNU make style include.
  3571. echo "include confinc" > confmf
  3572. # Ignore all kinds of additional output from 'make'.
  3573. case `$am_make -s -f confmf 2> /dev/null` in #(
  3574. *the\ am__doit\ target*)
  3575. am__include=include
  3576. am__quote=
  3577. _am_result=GNU
  3578. ;;
  3579. esac
  3580. # Now try BSD make style include.
  3581. if test "$am__include" = "#"; then
  3582. echo '.include "confinc"' > confmf
  3583. case `$am_make -s -f confmf 2> /dev/null` in #(
  3584. *the\ am__doit\ target*)
  3585. am__include=.include
  3586. am__quote="\""
  3587. _am_result=BSD
  3588. ;;
  3589. esac
  3590. fi
  3591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3592. $as_echo "$_am_result" >&6; }
  3593. rm -f confinc confmf
  3594. # Check whether --enable-dependency-tracking was given.
  3595. if test "${enable_dependency_tracking+set}" = set; then :
  3596. enableval=$enable_dependency_tracking;
  3597. fi
  3598. if test "x$enable_dependency_tracking" != xno; then
  3599. am_depcomp="$ac_aux_dir/depcomp"
  3600. AMDEPBACKSLASH='\'
  3601. am__nodep='_no'
  3602. fi
  3603. if test "x$enable_dependency_tracking" != xno; then
  3604. AMDEP_TRUE=
  3605. AMDEP_FALSE='#'
  3606. else
  3607. AMDEP_TRUE='#'
  3608. AMDEP_FALSE=
  3609. fi
  3610. ac_ext=c
  3611. ac_cpp='$CPP $CPPFLAGS'
  3612. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3613. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3614. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3615. if test -n "$ac_tool_prefix"; then
  3616. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3617. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3619. $as_echo_n "checking for $ac_word... " >&6; }
  3620. if ${ac_cv_prog_CC+:} false; then :
  3621. $as_echo_n "(cached) " >&6
  3622. else
  3623. if test -n "$CC"; then
  3624. ac_cv_prog_CC="$CC" # Let the user override the test.
  3625. else
  3626. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3627. for as_dir in $PATH
  3628. do
  3629. IFS=$as_save_IFS
  3630. test -z "$as_dir" && as_dir=.
  3631. for ac_exec_ext in '' $ac_executable_extensions; do
  3632. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3633. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3634. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3635. break 2
  3636. fi
  3637. done
  3638. done
  3639. IFS=$as_save_IFS
  3640. fi
  3641. fi
  3642. CC=$ac_cv_prog_CC
  3643. if test -n "$CC"; then
  3644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3645. $as_echo "$CC" >&6; }
  3646. else
  3647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3648. $as_echo "no" >&6; }
  3649. fi
  3650. fi
  3651. if test -z "$ac_cv_prog_CC"; then
  3652. ac_ct_CC=$CC
  3653. # Extract the first word of "gcc", so it can be a program name with args.
  3654. set dummy gcc; ac_word=$2
  3655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3656. $as_echo_n "checking for $ac_word... " >&6; }
  3657. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3658. $as_echo_n "(cached) " >&6
  3659. else
  3660. if test -n "$ac_ct_CC"; then
  3661. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3662. else
  3663. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3664. for as_dir in $PATH
  3665. do
  3666. IFS=$as_save_IFS
  3667. test -z "$as_dir" && as_dir=.
  3668. for ac_exec_ext in '' $ac_executable_extensions; do
  3669. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3670. ac_cv_prog_ac_ct_CC="gcc"
  3671. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3672. break 2
  3673. fi
  3674. done
  3675. done
  3676. IFS=$as_save_IFS
  3677. fi
  3678. fi
  3679. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3680. if test -n "$ac_ct_CC"; then
  3681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3682. $as_echo "$ac_ct_CC" >&6; }
  3683. else
  3684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3685. $as_echo "no" >&6; }
  3686. fi
  3687. if test "x$ac_ct_CC" = x; then
  3688. CC=""
  3689. else
  3690. case $cross_compiling:$ac_tool_warned in
  3691. yes:)
  3692. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3693. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3694. ac_tool_warned=yes ;;
  3695. esac
  3696. CC=$ac_ct_CC
  3697. fi
  3698. else
  3699. CC="$ac_cv_prog_CC"
  3700. fi
  3701. if test -z "$CC"; then
  3702. if test -n "$ac_tool_prefix"; then
  3703. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3704. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3706. $as_echo_n "checking for $ac_word... " >&6; }
  3707. if ${ac_cv_prog_CC+:} false; then :
  3708. $as_echo_n "(cached) " >&6
  3709. else
  3710. if test -n "$CC"; then
  3711. ac_cv_prog_CC="$CC" # Let the user override the test.
  3712. else
  3713. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3714. for as_dir in $PATH
  3715. do
  3716. IFS=$as_save_IFS
  3717. test -z "$as_dir" && as_dir=.
  3718. for ac_exec_ext in '' $ac_executable_extensions; do
  3719. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3720. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3721. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3722. break 2
  3723. fi
  3724. done
  3725. done
  3726. IFS=$as_save_IFS
  3727. fi
  3728. fi
  3729. CC=$ac_cv_prog_CC
  3730. if test -n "$CC"; then
  3731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3732. $as_echo "$CC" >&6; }
  3733. else
  3734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3735. $as_echo "no" >&6; }
  3736. fi
  3737. fi
  3738. fi
  3739. if test -z "$CC"; then
  3740. # Extract the first word of "cc", so it can be a program name with args.
  3741. set dummy cc; ac_word=$2
  3742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3743. $as_echo_n "checking for $ac_word... " >&6; }
  3744. if ${ac_cv_prog_CC+:} false; then :
  3745. $as_echo_n "(cached) " >&6
  3746. else
  3747. if test -n "$CC"; then
  3748. ac_cv_prog_CC="$CC" # Let the user override the test.
  3749. else
  3750. ac_prog_rejected=no
  3751. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3752. for as_dir in $PATH
  3753. do
  3754. IFS=$as_save_IFS
  3755. test -z "$as_dir" && as_dir=.
  3756. for ac_exec_ext in '' $ac_executable_extensions; do
  3757. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3758. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3759. ac_prog_rejected=yes
  3760. continue
  3761. fi
  3762. ac_cv_prog_CC="cc"
  3763. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3764. break 2
  3765. fi
  3766. done
  3767. done
  3768. IFS=$as_save_IFS
  3769. if test $ac_prog_rejected = yes; then
  3770. # We found a bogon in the path, so make sure we never use it.
  3771. set dummy $ac_cv_prog_CC
  3772. shift
  3773. if test $# != 0; then
  3774. # We chose a different compiler from the bogus one.
  3775. # However, it has the same basename, so the bogon will be chosen
  3776. # first if we set CC to just the basename; use the full file name.
  3777. shift
  3778. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3779. fi
  3780. fi
  3781. fi
  3782. fi
  3783. CC=$ac_cv_prog_CC
  3784. if test -n "$CC"; then
  3785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3786. $as_echo "$CC" >&6; }
  3787. else
  3788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3789. $as_echo "no" >&6; }
  3790. fi
  3791. fi
  3792. if test -z "$CC"; then
  3793. if test -n "$ac_tool_prefix"; then
  3794. for ac_prog in cl.exe
  3795. do
  3796. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3797. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3799. $as_echo_n "checking for $ac_word... " >&6; }
  3800. if ${ac_cv_prog_CC+:} false; then :
  3801. $as_echo_n "(cached) " >&6
  3802. else
  3803. if test -n "$CC"; then
  3804. ac_cv_prog_CC="$CC" # Let the user override the test.
  3805. else
  3806. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3807. for as_dir in $PATH
  3808. do
  3809. IFS=$as_save_IFS
  3810. test -z "$as_dir" && as_dir=.
  3811. for ac_exec_ext in '' $ac_executable_extensions; do
  3812. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3813. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3814. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3815. break 2
  3816. fi
  3817. done
  3818. done
  3819. IFS=$as_save_IFS
  3820. fi
  3821. fi
  3822. CC=$ac_cv_prog_CC
  3823. if test -n "$CC"; then
  3824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3825. $as_echo "$CC" >&6; }
  3826. else
  3827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3828. $as_echo "no" >&6; }
  3829. fi
  3830. test -n "$CC" && break
  3831. done
  3832. fi
  3833. if test -z "$CC"; then
  3834. ac_ct_CC=$CC
  3835. for ac_prog in cl.exe
  3836. do
  3837. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3838. set dummy $ac_prog; ac_word=$2
  3839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3840. $as_echo_n "checking for $ac_word... " >&6; }
  3841. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3842. $as_echo_n "(cached) " >&6
  3843. else
  3844. if test -n "$ac_ct_CC"; then
  3845. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3846. else
  3847. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3848. for as_dir in $PATH
  3849. do
  3850. IFS=$as_save_IFS
  3851. test -z "$as_dir" && as_dir=.
  3852. for ac_exec_ext in '' $ac_executable_extensions; do
  3853. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3854. ac_cv_prog_ac_ct_CC="$ac_prog"
  3855. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3856. break 2
  3857. fi
  3858. done
  3859. done
  3860. IFS=$as_save_IFS
  3861. fi
  3862. fi
  3863. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3864. if test -n "$ac_ct_CC"; then
  3865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3866. $as_echo "$ac_ct_CC" >&6; }
  3867. else
  3868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3869. $as_echo "no" >&6; }
  3870. fi
  3871. test -n "$ac_ct_CC" && break
  3872. done
  3873. if test "x$ac_ct_CC" = x; then
  3874. CC=""
  3875. else
  3876. case $cross_compiling:$ac_tool_warned in
  3877. yes:)
  3878. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3879. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3880. ac_tool_warned=yes ;;
  3881. esac
  3882. CC=$ac_ct_CC
  3883. fi
  3884. fi
  3885. fi
  3886. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3887. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3888. as_fn_error $? "no acceptable C compiler found in \$PATH
  3889. See \`config.log' for more details" "$LINENO" 5; }
  3890. # Provide some information about the compiler.
  3891. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3892. set X $ac_compile
  3893. ac_compiler=$2
  3894. for ac_option in --version -v -V -qversion; do
  3895. { { ac_try="$ac_compiler $ac_option >&5"
  3896. case "(($ac_try" in
  3897. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3898. *) ac_try_echo=$ac_try;;
  3899. esac
  3900. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3901. $as_echo "$ac_try_echo"; } >&5
  3902. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3903. ac_status=$?
  3904. if test -s conftest.err; then
  3905. sed '10a\
  3906. ... rest of stderr output deleted ...
  3907. 10q' conftest.err >conftest.er1
  3908. cat conftest.er1 >&5
  3909. fi
  3910. rm -f conftest.er1 conftest.err
  3911. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3912. test $ac_status = 0; }
  3913. done
  3914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3915. /* end confdefs.h. */
  3916. int
  3917. main ()
  3918. {
  3919. ;
  3920. return 0;
  3921. }
  3922. _ACEOF
  3923. ac_clean_files_save=$ac_clean_files
  3924. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3925. # Try to create an executable without -o first, disregard a.out.
  3926. # It will help us diagnose broken compilers, and finding out an intuition
  3927. # of exeext.
  3928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3929. $as_echo_n "checking whether the C compiler works... " >&6; }
  3930. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3931. # The possible output files:
  3932. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3933. ac_rmfiles=
  3934. for ac_file in $ac_files
  3935. do
  3936. case $ac_file in
  3937. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3938. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3939. esac
  3940. done
  3941. rm -f $ac_rmfiles
  3942. if { { ac_try="$ac_link_default"
  3943. case "(($ac_try" in
  3944. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3945. *) ac_try_echo=$ac_try;;
  3946. esac
  3947. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3948. $as_echo "$ac_try_echo"; } >&5
  3949. (eval "$ac_link_default") 2>&5
  3950. ac_status=$?
  3951. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3952. test $ac_status = 0; }; then :
  3953. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3954. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3955. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3956. # so that the user can short-circuit this test for compilers unknown to
  3957. # Autoconf.
  3958. for ac_file in $ac_files ''
  3959. do
  3960. test -f "$ac_file" || continue
  3961. case $ac_file in
  3962. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3963. ;;
  3964. [ab].out )
  3965. # We found the default executable, but exeext='' is most
  3966. # certainly right.
  3967. break;;
  3968. *.* )
  3969. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3970. then :; else
  3971. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3972. fi
  3973. # We set ac_cv_exeext here because the later test for it is not
  3974. # safe: cross compilers may not add the suffix if given an `-o'
  3975. # argument, so we may need to know it at that point already.
  3976. # Even if this section looks crufty: it has the advantage of
  3977. # actually working.
  3978. break;;
  3979. * )
  3980. break;;
  3981. esac
  3982. done
  3983. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3984. else
  3985. ac_file=''
  3986. fi
  3987. if test -z "$ac_file"; then :
  3988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3989. $as_echo "no" >&6; }
  3990. $as_echo "$as_me: failed program was:" >&5
  3991. sed 's/^/| /' conftest.$ac_ext >&5
  3992. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3993. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3994. as_fn_error 77 "C compiler cannot create executables
  3995. See \`config.log' for more details" "$LINENO" 5; }
  3996. else
  3997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3998. $as_echo "yes" >&6; }
  3999. fi
  4000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  4001. $as_echo_n "checking for C compiler default output file name... " >&6; }
  4002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  4003. $as_echo "$ac_file" >&6; }
  4004. ac_exeext=$ac_cv_exeext
  4005. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  4006. ac_clean_files=$ac_clean_files_save
  4007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4008. $as_echo_n "checking for suffix of executables... " >&6; }
  4009. if { { ac_try="$ac_link"
  4010. case "(($ac_try" in
  4011. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4012. *) ac_try_echo=$ac_try;;
  4013. esac
  4014. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4015. $as_echo "$ac_try_echo"; } >&5
  4016. (eval "$ac_link") 2>&5
  4017. ac_status=$?
  4018. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4019. test $ac_status = 0; }; then :
  4020. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  4021. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  4022. # work properly (i.e., refer to `conftest.exe'), while it won't with
  4023. # `rm'.
  4024. for ac_file in conftest.exe conftest conftest.*; do
  4025. test -f "$ac_file" || continue
  4026. case $ac_file in
  4027. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4028. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4029. break;;
  4030. * ) break;;
  4031. esac
  4032. done
  4033. else
  4034. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4035. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4036. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  4037. See \`config.log' for more details" "$LINENO" 5; }
  4038. fi
  4039. rm -f conftest conftest$ac_cv_exeext
  4040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4041. $as_echo "$ac_cv_exeext" >&6; }
  4042. rm -f conftest.$ac_ext
  4043. EXEEXT=$ac_cv_exeext
  4044. ac_exeext=$EXEEXT
  4045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4046. /* end confdefs.h. */
  4047. #include <stdio.h>
  4048. int
  4049. main ()
  4050. {
  4051. FILE *f = fopen ("conftest.out", "w");
  4052. return ferror (f) || fclose (f) != 0;
  4053. ;
  4054. return 0;
  4055. }
  4056. _ACEOF
  4057. ac_clean_files="$ac_clean_files conftest.out"
  4058. # Check that the compiler produces executables we can run. If not, either
  4059. # the compiler is broken, or we cross compile.
  4060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4061. $as_echo_n "checking whether we are cross compiling... " >&6; }
  4062. if test "$cross_compiling" != yes; then
  4063. { { ac_try="$ac_link"
  4064. case "(($ac_try" in
  4065. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4066. *) ac_try_echo=$ac_try;;
  4067. esac
  4068. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4069. $as_echo "$ac_try_echo"; } >&5
  4070. (eval "$ac_link") 2>&5
  4071. ac_status=$?
  4072. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4073. test $ac_status = 0; }
  4074. if { ac_try='./conftest$ac_cv_exeext'
  4075. { { case "(($ac_try" in
  4076. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4077. *) ac_try_echo=$ac_try;;
  4078. esac
  4079. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4080. $as_echo "$ac_try_echo"; } >&5
  4081. (eval "$ac_try") 2>&5
  4082. ac_status=$?
  4083. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4084. test $ac_status = 0; }; }; then
  4085. cross_compiling=no
  4086. else
  4087. if test "$cross_compiling" = maybe; then
  4088. cross_compiling=yes
  4089. else
  4090. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4091. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4092. as_fn_error $? "cannot run C compiled programs.
  4093. If you meant to cross compile, use \`--host'.
  4094. See \`config.log' for more details" "$LINENO" 5; }
  4095. fi
  4096. fi
  4097. fi
  4098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4099. $as_echo "$cross_compiling" >&6; }
  4100. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  4101. ac_clean_files=$ac_clean_files_save
  4102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4103. $as_echo_n "checking for suffix of object files... " >&6; }
  4104. if ${ac_cv_objext+:} false; then :
  4105. $as_echo_n "(cached) " >&6
  4106. else
  4107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4108. /* end confdefs.h. */
  4109. int
  4110. main ()
  4111. {
  4112. ;
  4113. return 0;
  4114. }
  4115. _ACEOF
  4116. rm -f conftest.o conftest.obj
  4117. if { { ac_try="$ac_compile"
  4118. case "(($ac_try" in
  4119. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4120. *) ac_try_echo=$ac_try;;
  4121. esac
  4122. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4123. $as_echo "$ac_try_echo"; } >&5
  4124. (eval "$ac_compile") 2>&5
  4125. ac_status=$?
  4126. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4127. test $ac_status = 0; }; then :
  4128. for ac_file in conftest.o conftest.obj conftest.*; do
  4129. test -f "$ac_file" || continue;
  4130. case $ac_file in
  4131. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4132. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4133. break;;
  4134. esac
  4135. done
  4136. else
  4137. $as_echo "$as_me: failed program was:" >&5
  4138. sed 's/^/| /' conftest.$ac_ext >&5
  4139. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4140. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4141. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4142. See \`config.log' for more details" "$LINENO" 5; }
  4143. fi
  4144. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4145. fi
  4146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4147. $as_echo "$ac_cv_objext" >&6; }
  4148. OBJEXT=$ac_cv_objext
  4149. ac_objext=$OBJEXT
  4150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4151. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4152. if ${ac_cv_c_compiler_gnu+:} false; then :
  4153. $as_echo_n "(cached) " >&6
  4154. else
  4155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4156. /* end confdefs.h. */
  4157. int
  4158. main ()
  4159. {
  4160. #ifndef __GNUC__
  4161. choke me
  4162. #endif
  4163. ;
  4164. return 0;
  4165. }
  4166. _ACEOF
  4167. if ac_fn_c_try_compile "$LINENO"; then :
  4168. ac_compiler_gnu=yes
  4169. else
  4170. ac_compiler_gnu=no
  4171. fi
  4172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4173. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4174. fi
  4175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4176. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4177. if test $ac_compiler_gnu = yes; then
  4178. GCC=yes
  4179. else
  4180. GCC=
  4181. fi
  4182. ac_test_CFLAGS=${CFLAGS+set}
  4183. ac_save_CFLAGS=$CFLAGS
  4184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4185. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4186. if ${ac_cv_prog_cc_g+:} false; then :
  4187. $as_echo_n "(cached) " >&6
  4188. else
  4189. ac_save_c_werror_flag=$ac_c_werror_flag
  4190. ac_c_werror_flag=yes
  4191. ac_cv_prog_cc_g=no
  4192. CFLAGS="-g"
  4193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4194. /* end confdefs.h. */
  4195. int
  4196. main ()
  4197. {
  4198. ;
  4199. return 0;
  4200. }
  4201. _ACEOF
  4202. if ac_fn_c_try_compile "$LINENO"; then :
  4203. ac_cv_prog_cc_g=yes
  4204. else
  4205. CFLAGS=""
  4206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4207. /* end confdefs.h. */
  4208. int
  4209. main ()
  4210. {
  4211. ;
  4212. return 0;
  4213. }
  4214. _ACEOF
  4215. if ac_fn_c_try_compile "$LINENO"; then :
  4216. else
  4217. ac_c_werror_flag=$ac_save_c_werror_flag
  4218. CFLAGS="-g"
  4219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4220. /* end confdefs.h. */
  4221. int
  4222. main ()
  4223. {
  4224. ;
  4225. return 0;
  4226. }
  4227. _ACEOF
  4228. if ac_fn_c_try_compile "$LINENO"; then :
  4229. ac_cv_prog_cc_g=yes
  4230. fi
  4231. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4232. fi
  4233. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4234. fi
  4235. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4236. ac_c_werror_flag=$ac_save_c_werror_flag
  4237. fi
  4238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4239. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4240. if test "$ac_test_CFLAGS" = set; then
  4241. CFLAGS=$ac_save_CFLAGS
  4242. elif test $ac_cv_prog_cc_g = yes; then
  4243. if test "$GCC" = yes; then
  4244. CFLAGS="-g -O2"
  4245. else
  4246. CFLAGS="-g"
  4247. fi
  4248. else
  4249. if test "$GCC" = yes; then
  4250. CFLAGS="-O2"
  4251. else
  4252. CFLAGS=
  4253. fi
  4254. fi
  4255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4256. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4257. if ${ac_cv_prog_cc_c89+:} false; then :
  4258. $as_echo_n "(cached) " >&6
  4259. else
  4260. ac_cv_prog_cc_c89=no
  4261. ac_save_CC=$CC
  4262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4263. /* end confdefs.h. */
  4264. #include <stdarg.h>
  4265. #include <stdio.h>
  4266. struct stat;
  4267. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4268. struct buf { int x; };
  4269. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4270. static char *e (p, i)
  4271. char **p;
  4272. int i;
  4273. {
  4274. return p[i];
  4275. }
  4276. static char *f (char * (*g) (char **, int), char **p, ...)
  4277. {
  4278. char *s;
  4279. va_list v;
  4280. va_start (v,p);
  4281. s = g (p, va_arg (v,int));
  4282. va_end (v);
  4283. return s;
  4284. }
  4285. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4286. function prototypes and stuff, but not '\xHH' hex character constants.
  4287. These don't provoke an error unfortunately, instead are silently treated
  4288. as 'x'. The following induces an error, until -std is added to get
  4289. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4290. array size at least. It's necessary to write '\x00'==0 to get something
  4291. that's true only with -std. */
  4292. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4293. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4294. inside strings and character constants. */
  4295. #define FOO(x) 'x'
  4296. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4297. int test (int i, double x);
  4298. struct s1 {int (*f) (int a);};
  4299. struct s2 {int (*f) (double a);};
  4300. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4301. int argc;
  4302. char **argv;
  4303. int
  4304. main ()
  4305. {
  4306. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4307. ;
  4308. return 0;
  4309. }
  4310. _ACEOF
  4311. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4312. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4313. do
  4314. CC="$ac_save_CC $ac_arg"
  4315. if ac_fn_c_try_compile "$LINENO"; then :
  4316. ac_cv_prog_cc_c89=$ac_arg
  4317. fi
  4318. rm -f core conftest.err conftest.$ac_objext
  4319. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4320. done
  4321. rm -f conftest.$ac_ext
  4322. CC=$ac_save_CC
  4323. fi
  4324. # AC_CACHE_VAL
  4325. case "x$ac_cv_prog_cc_c89" in
  4326. x)
  4327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4328. $as_echo "none needed" >&6; } ;;
  4329. xno)
  4330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4331. $as_echo "unsupported" >&6; } ;;
  4332. *)
  4333. CC="$CC $ac_cv_prog_cc_c89"
  4334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4335. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4336. esac
  4337. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4338. fi
  4339. ac_ext=c
  4340. ac_cpp='$CPP $CPPFLAGS'
  4341. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4342. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4343. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4344. ac_ext=c
  4345. ac_cpp='$CPP $CPPFLAGS'
  4346. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4347. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4348. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4350. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4351. if ${am_cv_prog_cc_c_o+:} false; then :
  4352. $as_echo_n "(cached) " >&6
  4353. else
  4354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4355. /* end confdefs.h. */
  4356. int
  4357. main ()
  4358. {
  4359. ;
  4360. return 0;
  4361. }
  4362. _ACEOF
  4363. # Make sure it works both with $CC and with simple cc.
  4364. # Following AC_PROG_CC_C_O, we do the test twice because some
  4365. # compilers refuse to overwrite an existing .o file with -o,
  4366. # though they will create one.
  4367. am_cv_prog_cc_c_o=yes
  4368. for am_i in 1 2; do
  4369. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4370. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4371. ac_status=$?
  4372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4373. (exit $ac_status); } \
  4374. && test -f conftest2.$ac_objext; then
  4375. : OK
  4376. else
  4377. am_cv_prog_cc_c_o=no
  4378. break
  4379. fi
  4380. done
  4381. rm -f core conftest*
  4382. unset am_i
  4383. fi
  4384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4385. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4386. if test "$am_cv_prog_cc_c_o" != yes; then
  4387. # Losing compiler, so override with the script.
  4388. # FIXME: It is wrong to rewrite CC.
  4389. # But if we don't then we get into trouble of one sort or another.
  4390. # A longer-term fix would be to have automake use am__CC in this case,
  4391. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4392. CC="$am_aux_dir/compile $CC"
  4393. fi
  4394. ac_ext=c
  4395. ac_cpp='$CPP $CPPFLAGS'
  4396. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4397. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4398. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4399. depcc="$CC" am_compiler_list=
  4400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4401. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4402. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4403. $as_echo_n "(cached) " >&6
  4404. else
  4405. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4406. # We make a subdir and do the tests there. Otherwise we can end up
  4407. # making bogus files that we don't know about and never remove. For
  4408. # instance it was reported that on HP-UX the gcc test will end up
  4409. # making a dummy file named 'D' -- because '-MD' means "put the output
  4410. # in D".
  4411. rm -rf conftest.dir
  4412. mkdir conftest.dir
  4413. # Copy depcomp to subdir because otherwise we won't find it if we're
  4414. # using a relative directory.
  4415. cp "$am_depcomp" conftest.dir
  4416. cd conftest.dir
  4417. # We will build objects and dependencies in a subdirectory because
  4418. # it helps to detect inapplicable dependency modes. For instance
  4419. # both Tru64's cc and ICC support -MD to output dependencies as a
  4420. # side effect of compilation, but ICC will put the dependencies in
  4421. # the current directory while Tru64 will put them in the object
  4422. # directory.
  4423. mkdir sub
  4424. am_cv_CC_dependencies_compiler_type=none
  4425. if test "$am_compiler_list" = ""; then
  4426. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4427. fi
  4428. am__universal=false
  4429. case " $depcc " in #(
  4430. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4431. esac
  4432. for depmode in $am_compiler_list; do
  4433. # Setup a source with many dependencies, because some compilers
  4434. # like to wrap large dependency lists on column 80 (with \), and
  4435. # we should not choose a depcomp mode which is confused by this.
  4436. #
  4437. # We need to recreate these files for each test, as the compiler may
  4438. # overwrite some of them when testing with obscure command lines.
  4439. # This happens at least with the AIX C compiler.
  4440. : > sub/conftest.c
  4441. for i in 1 2 3 4 5 6; do
  4442. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4443. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4444. # Solaris 10 /bin/sh.
  4445. echo '/* dummy */' > sub/conftst$i.h
  4446. done
  4447. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4448. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4449. # mode. It turns out that the SunPro C++ compiler does not properly
  4450. # handle '-M -o', and we need to detect this. Also, some Intel
  4451. # versions had trouble with output in subdirs.
  4452. am__obj=sub/conftest.${OBJEXT-o}
  4453. am__minus_obj="-o $am__obj"
  4454. case $depmode in
  4455. gcc)
  4456. # This depmode causes a compiler race in universal mode.
  4457. test "$am__universal" = false || continue
  4458. ;;
  4459. nosideeffect)
  4460. # After this tag, mechanisms are not by side-effect, so they'll
  4461. # only be used when explicitly requested.
  4462. if test "x$enable_dependency_tracking" = xyes; then
  4463. continue
  4464. else
  4465. break
  4466. fi
  4467. ;;
  4468. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4469. # This compiler won't grok '-c -o', but also, the minuso test has
  4470. # not run yet. These depmodes are late enough in the game, and
  4471. # so weak that their functioning should not be impacted.
  4472. am__obj=conftest.${OBJEXT-o}
  4473. am__minus_obj=
  4474. ;;
  4475. none) break ;;
  4476. esac
  4477. if depmode=$depmode \
  4478. source=sub/conftest.c object=$am__obj \
  4479. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4480. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4481. >/dev/null 2>conftest.err &&
  4482. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4483. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4484. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4485. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4486. # icc doesn't choke on unknown options, it will just issue warnings
  4487. # or remarks (even with -Werror). So we grep stderr for any message
  4488. # that says an option was ignored or not supported.
  4489. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4490. # icc: Command line warning: ignoring option '-M'; no argument required
  4491. # The diagnosis changed in icc 8.0:
  4492. # icc: Command line remark: option '-MP' not supported
  4493. if (grep 'ignoring option' conftest.err ||
  4494. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4495. am_cv_CC_dependencies_compiler_type=$depmode
  4496. break
  4497. fi
  4498. fi
  4499. done
  4500. cd ..
  4501. rm -rf conftest.dir
  4502. else
  4503. am_cv_CC_dependencies_compiler_type=none
  4504. fi
  4505. fi
  4506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4507. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4508. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4509. if
  4510. test "x$enable_dependency_tracking" != xno \
  4511. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4512. am__fastdepCC_TRUE=
  4513. am__fastdepCC_FALSE='#'
  4514. else
  4515. am__fastdepCC_TRUE='#'
  4516. am__fastdepCC_FALSE=
  4517. fi
  4518. if test -n "$ac_tool_prefix"; then
  4519. for ac_prog in ar lib "link -lib"
  4520. do
  4521. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4522. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4524. $as_echo_n "checking for $ac_word... " >&6; }
  4525. if ${ac_cv_prog_AR+:} false; then :
  4526. $as_echo_n "(cached) " >&6
  4527. else
  4528. if test -n "$AR"; then
  4529. ac_cv_prog_AR="$AR" # Let the user override the test.
  4530. else
  4531. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4532. for as_dir in $PATH
  4533. do
  4534. IFS=$as_save_IFS
  4535. test -z "$as_dir" && as_dir=.
  4536. for ac_exec_ext in '' $ac_executable_extensions; do
  4537. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4538. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4539. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4540. break 2
  4541. fi
  4542. done
  4543. done
  4544. IFS=$as_save_IFS
  4545. fi
  4546. fi
  4547. AR=$ac_cv_prog_AR
  4548. if test -n "$AR"; then
  4549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4550. $as_echo "$AR" >&6; }
  4551. else
  4552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4553. $as_echo "no" >&6; }
  4554. fi
  4555. test -n "$AR" && break
  4556. done
  4557. fi
  4558. if test -z "$AR"; then
  4559. ac_ct_AR=$AR
  4560. for ac_prog in ar lib "link -lib"
  4561. do
  4562. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4563. set dummy $ac_prog; ac_word=$2
  4564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4565. $as_echo_n "checking for $ac_word... " >&6; }
  4566. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4567. $as_echo_n "(cached) " >&6
  4568. else
  4569. if test -n "$ac_ct_AR"; then
  4570. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4571. else
  4572. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4573. for as_dir in $PATH
  4574. do
  4575. IFS=$as_save_IFS
  4576. test -z "$as_dir" && as_dir=.
  4577. for ac_exec_ext in '' $ac_executable_extensions; do
  4578. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4579. ac_cv_prog_ac_ct_AR="$ac_prog"
  4580. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4581. break 2
  4582. fi
  4583. done
  4584. done
  4585. IFS=$as_save_IFS
  4586. fi
  4587. fi
  4588. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4589. if test -n "$ac_ct_AR"; then
  4590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4591. $as_echo "$ac_ct_AR" >&6; }
  4592. else
  4593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4594. $as_echo "no" >&6; }
  4595. fi
  4596. test -n "$ac_ct_AR" && break
  4597. done
  4598. if test "x$ac_ct_AR" = x; then
  4599. AR="false"
  4600. else
  4601. case $cross_compiling:$ac_tool_warned in
  4602. yes:)
  4603. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4604. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4605. ac_tool_warned=yes ;;
  4606. esac
  4607. AR=$ac_ct_AR
  4608. fi
  4609. fi
  4610. : ${AR=ar}
  4611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  4612. $as_echo_n "checking the archiver ($AR) interface... " >&6; }
  4613. if ${am_cv_ar_interface+:} false; then :
  4614. $as_echo_n "(cached) " >&6
  4615. else
  4616. ac_ext=c
  4617. ac_cpp='$CPP $CPPFLAGS'
  4618. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4619. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4620. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4621. am_cv_ar_interface=ar
  4622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4623. /* end confdefs.h. */
  4624. int some_variable = 0;
  4625. _ACEOF
  4626. if ac_fn_c_try_compile "$LINENO"; then :
  4627. am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  4628. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4629. (eval $am_ar_try) 2>&5
  4630. ac_status=$?
  4631. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4632. test $ac_status = 0; }
  4633. if test "$ac_status" -eq 0; then
  4634. am_cv_ar_interface=ar
  4635. else
  4636. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  4637. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4638. (eval $am_ar_try) 2>&5
  4639. ac_status=$?
  4640. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4641. test $ac_status = 0; }
  4642. if test "$ac_status" -eq 0; then
  4643. am_cv_ar_interface=lib
  4644. else
  4645. am_cv_ar_interface=unknown
  4646. fi
  4647. fi
  4648. rm -f conftest.lib libconftest.a
  4649. fi
  4650. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4651. ac_ext=c
  4652. ac_cpp='$CPP $CPPFLAGS'
  4653. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4654. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4655. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4656. fi
  4657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  4658. $as_echo "$am_cv_ar_interface" >&6; }
  4659. case $am_cv_ar_interface in
  4660. ar)
  4661. ;;
  4662. lib)
  4663. # Microsoft lib, so override with the ar-lib wrapper script.
  4664. # FIXME: It is wrong to rewrite AR.
  4665. # But if we don't then we get into trouble of one sort or another.
  4666. # A longer-term fix would be to have automake use am__AR in this case,
  4667. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  4668. # similar.
  4669. AR="$am_aux_dir/ar-lib $AR"
  4670. ;;
  4671. unknown)
  4672. as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  4673. ;;
  4674. esac
  4675. case `pwd` in
  4676. *\ * | *\ *)
  4677. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4678. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4679. esac
  4680. macro_version='2.4.6'
  4681. macro_revision='2.4.6'
  4682. ltmain=$ac_aux_dir/ltmain.sh
  4683. # Backslashify metacharacters that are still active within
  4684. # double-quoted strings.
  4685. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4686. # Same as above, but do not quote variable references.
  4687. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4688. # Sed substitution to delay expansion of an escaped shell variable in a
  4689. # double_quote_subst'ed string.
  4690. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4691. # Sed substitution to delay expansion of an escaped single quote.
  4692. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4693. # Sed substitution to avoid accidental globbing in evaled expressions
  4694. no_glob_subst='s/\*/\\\*/g'
  4695. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4696. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4697. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4699. $as_echo_n "checking how to print strings... " >&6; }
  4700. # Test print first, because it will be a builtin if present.
  4701. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4702. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4703. ECHO='print -r --'
  4704. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4705. ECHO='printf %s\n'
  4706. else
  4707. # Use this function as a fallback that always works.
  4708. func_fallback_echo ()
  4709. {
  4710. eval 'cat <<_LTECHO_EOF
  4711. $1
  4712. _LTECHO_EOF'
  4713. }
  4714. ECHO='func_fallback_echo'
  4715. fi
  4716. # func_echo_all arg...
  4717. # Invoke $ECHO with all args, space-separated.
  4718. func_echo_all ()
  4719. {
  4720. $ECHO ""
  4721. }
  4722. case $ECHO in
  4723. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4724. $as_echo "printf" >&6; } ;;
  4725. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4726. $as_echo "print -r" >&6; } ;;
  4727. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4728. $as_echo "cat" >&6; } ;;
  4729. esac
  4730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4731. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4732. if ${ac_cv_path_SED+:} false; then :
  4733. $as_echo_n "(cached) " >&6
  4734. else
  4735. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4736. for ac_i in 1 2 3 4 5 6 7; do
  4737. ac_script="$ac_script$as_nl$ac_script"
  4738. done
  4739. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4740. { ac_script=; unset ac_script;}
  4741. if test -z "$SED"; then
  4742. ac_path_SED_found=false
  4743. # Loop through the user's path and test for each of PROGNAME-LIST
  4744. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4745. for as_dir in $PATH
  4746. do
  4747. IFS=$as_save_IFS
  4748. test -z "$as_dir" && as_dir=.
  4749. for ac_prog in sed gsed; do
  4750. for ac_exec_ext in '' $ac_executable_extensions; do
  4751. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4752. as_fn_executable_p "$ac_path_SED" || continue
  4753. # Check for GNU ac_path_SED and select it if it is found.
  4754. # Check for GNU $ac_path_SED
  4755. case `"$ac_path_SED" --version 2>&1` in
  4756. *GNU*)
  4757. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4758. *)
  4759. ac_count=0
  4760. $as_echo_n 0123456789 >"conftest.in"
  4761. while :
  4762. do
  4763. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4764. mv "conftest.tmp" "conftest.in"
  4765. cp "conftest.in" "conftest.nl"
  4766. $as_echo '' >> "conftest.nl"
  4767. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4768. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4769. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4770. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4771. # Best one so far, save it but keep looking for a better one
  4772. ac_cv_path_SED="$ac_path_SED"
  4773. ac_path_SED_max=$ac_count
  4774. fi
  4775. # 10*(2^10) chars as input seems more than enough
  4776. test $ac_count -gt 10 && break
  4777. done
  4778. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4779. esac
  4780. $ac_path_SED_found && break 3
  4781. done
  4782. done
  4783. done
  4784. IFS=$as_save_IFS
  4785. if test -z "$ac_cv_path_SED"; then
  4786. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4787. fi
  4788. else
  4789. ac_cv_path_SED=$SED
  4790. fi
  4791. fi
  4792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4793. $as_echo "$ac_cv_path_SED" >&6; }
  4794. SED="$ac_cv_path_SED"
  4795. rm -f conftest.sed
  4796. test -z "$SED" && SED=sed
  4797. Xsed="$SED -e 1s/^X//"
  4798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4799. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4800. if ${ac_cv_path_GREP+:} false; then :
  4801. $as_echo_n "(cached) " >&6
  4802. else
  4803. if test -z "$GREP"; then
  4804. ac_path_GREP_found=false
  4805. # Loop through the user's path and test for each of PROGNAME-LIST
  4806. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4807. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4808. do
  4809. IFS=$as_save_IFS
  4810. test -z "$as_dir" && as_dir=.
  4811. for ac_prog in grep ggrep; do
  4812. for ac_exec_ext in '' $ac_executable_extensions; do
  4813. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4814. as_fn_executable_p "$ac_path_GREP" || continue
  4815. # Check for GNU ac_path_GREP and select it if it is found.
  4816. # Check for GNU $ac_path_GREP
  4817. case `"$ac_path_GREP" --version 2>&1` in
  4818. *GNU*)
  4819. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4820. *)
  4821. ac_count=0
  4822. $as_echo_n 0123456789 >"conftest.in"
  4823. while :
  4824. do
  4825. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4826. mv "conftest.tmp" "conftest.in"
  4827. cp "conftest.in" "conftest.nl"
  4828. $as_echo 'GREP' >> "conftest.nl"
  4829. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4830. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4831. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4832. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4833. # Best one so far, save it but keep looking for a better one
  4834. ac_cv_path_GREP="$ac_path_GREP"
  4835. ac_path_GREP_max=$ac_count
  4836. fi
  4837. # 10*(2^10) chars as input seems more than enough
  4838. test $ac_count -gt 10 && break
  4839. done
  4840. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4841. esac
  4842. $ac_path_GREP_found && break 3
  4843. done
  4844. done
  4845. done
  4846. IFS=$as_save_IFS
  4847. if test -z "$ac_cv_path_GREP"; then
  4848. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4849. fi
  4850. else
  4851. ac_cv_path_GREP=$GREP
  4852. fi
  4853. fi
  4854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4855. $as_echo "$ac_cv_path_GREP" >&6; }
  4856. GREP="$ac_cv_path_GREP"
  4857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4858. $as_echo_n "checking for egrep... " >&6; }
  4859. if ${ac_cv_path_EGREP+:} false; then :
  4860. $as_echo_n "(cached) " >&6
  4861. else
  4862. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4863. then ac_cv_path_EGREP="$GREP -E"
  4864. else
  4865. if test -z "$EGREP"; then
  4866. ac_path_EGREP_found=false
  4867. # Loop through the user's path and test for each of PROGNAME-LIST
  4868. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4869. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4870. do
  4871. IFS=$as_save_IFS
  4872. test -z "$as_dir" && as_dir=.
  4873. for ac_prog in egrep; do
  4874. for ac_exec_ext in '' $ac_executable_extensions; do
  4875. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4876. as_fn_executable_p "$ac_path_EGREP" || continue
  4877. # Check for GNU ac_path_EGREP and select it if it is found.
  4878. # Check for GNU $ac_path_EGREP
  4879. case `"$ac_path_EGREP" --version 2>&1` in
  4880. *GNU*)
  4881. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4882. *)
  4883. ac_count=0
  4884. $as_echo_n 0123456789 >"conftest.in"
  4885. while :
  4886. do
  4887. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4888. mv "conftest.tmp" "conftest.in"
  4889. cp "conftest.in" "conftest.nl"
  4890. $as_echo 'EGREP' >> "conftest.nl"
  4891. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4892. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4893. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4894. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4895. # Best one so far, save it but keep looking for a better one
  4896. ac_cv_path_EGREP="$ac_path_EGREP"
  4897. ac_path_EGREP_max=$ac_count
  4898. fi
  4899. # 10*(2^10) chars as input seems more than enough
  4900. test $ac_count -gt 10 && break
  4901. done
  4902. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4903. esac
  4904. $ac_path_EGREP_found && break 3
  4905. done
  4906. done
  4907. done
  4908. IFS=$as_save_IFS
  4909. if test -z "$ac_cv_path_EGREP"; then
  4910. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4911. fi
  4912. else
  4913. ac_cv_path_EGREP=$EGREP
  4914. fi
  4915. fi
  4916. fi
  4917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4918. $as_echo "$ac_cv_path_EGREP" >&6; }
  4919. EGREP="$ac_cv_path_EGREP"
  4920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4921. $as_echo_n "checking for fgrep... " >&6; }
  4922. if ${ac_cv_path_FGREP+:} false; then :
  4923. $as_echo_n "(cached) " >&6
  4924. else
  4925. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4926. then ac_cv_path_FGREP="$GREP -F"
  4927. else
  4928. if test -z "$FGREP"; then
  4929. ac_path_FGREP_found=false
  4930. # Loop through the user's path and test for each of PROGNAME-LIST
  4931. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4932. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4933. do
  4934. IFS=$as_save_IFS
  4935. test -z "$as_dir" && as_dir=.
  4936. for ac_prog in fgrep; do
  4937. for ac_exec_ext in '' $ac_executable_extensions; do
  4938. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4939. as_fn_executable_p "$ac_path_FGREP" || continue
  4940. # Check for GNU ac_path_FGREP and select it if it is found.
  4941. # Check for GNU $ac_path_FGREP
  4942. case `"$ac_path_FGREP" --version 2>&1` in
  4943. *GNU*)
  4944. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4945. *)
  4946. ac_count=0
  4947. $as_echo_n 0123456789 >"conftest.in"
  4948. while :
  4949. do
  4950. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4951. mv "conftest.tmp" "conftest.in"
  4952. cp "conftest.in" "conftest.nl"
  4953. $as_echo 'FGREP' >> "conftest.nl"
  4954. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4955. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4956. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4957. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4958. # Best one so far, save it but keep looking for a better one
  4959. ac_cv_path_FGREP="$ac_path_FGREP"
  4960. ac_path_FGREP_max=$ac_count
  4961. fi
  4962. # 10*(2^10) chars as input seems more than enough
  4963. test $ac_count -gt 10 && break
  4964. done
  4965. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4966. esac
  4967. $ac_path_FGREP_found && break 3
  4968. done
  4969. done
  4970. done
  4971. IFS=$as_save_IFS
  4972. if test -z "$ac_cv_path_FGREP"; then
  4973. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4974. fi
  4975. else
  4976. ac_cv_path_FGREP=$FGREP
  4977. fi
  4978. fi
  4979. fi
  4980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4981. $as_echo "$ac_cv_path_FGREP" >&6; }
  4982. FGREP="$ac_cv_path_FGREP"
  4983. test -z "$GREP" && GREP=grep
  4984. # Check whether --with-gnu-ld was given.
  4985. if test "${with_gnu_ld+set}" = set; then :
  4986. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4987. else
  4988. with_gnu_ld=no
  4989. fi
  4990. ac_prog=ld
  4991. if test yes = "$GCC"; then
  4992. # Check if gcc -print-prog-name=ld gives a path.
  4993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4994. $as_echo_n "checking for ld used by $CC... " >&6; }
  4995. case $host in
  4996. *-*-mingw*)
  4997. # gcc leaves a trailing carriage return, which upsets mingw
  4998. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4999. *)
  5000. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5001. esac
  5002. case $ac_prog in
  5003. # Accept absolute paths.
  5004. [\\/]* | ?:[\\/]*)
  5005. re_direlt='/[^/][^/]*/\.\./'
  5006. # Canonicalize the pathname of ld
  5007. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5008. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5009. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5010. done
  5011. test -z "$LD" && LD=$ac_prog
  5012. ;;
  5013. "")
  5014. # If it fails, then pretend we aren't using GCC.
  5015. ac_prog=ld
  5016. ;;
  5017. *)
  5018. # If it is relative, then search for the first ld in PATH.
  5019. with_gnu_ld=unknown
  5020. ;;
  5021. esac
  5022. elif test yes = "$with_gnu_ld"; then
  5023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5024. $as_echo_n "checking for GNU ld... " >&6; }
  5025. else
  5026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5027. $as_echo_n "checking for non-GNU ld... " >&6; }
  5028. fi
  5029. if ${lt_cv_path_LD+:} false; then :
  5030. $as_echo_n "(cached) " >&6
  5031. else
  5032. if test -z "$LD"; then
  5033. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5034. for ac_dir in $PATH; do
  5035. IFS=$lt_save_ifs
  5036. test -z "$ac_dir" && ac_dir=.
  5037. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5038. lt_cv_path_LD=$ac_dir/$ac_prog
  5039. # Check to see if the program is GNU ld. I'd rather use --version,
  5040. # but apparently some variants of GNU ld only accept -v.
  5041. # Break only if it was the GNU/non-GNU ld that we prefer.
  5042. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5043. *GNU* | *'with BFD'*)
  5044. test no != "$with_gnu_ld" && break
  5045. ;;
  5046. *)
  5047. test yes != "$with_gnu_ld" && break
  5048. ;;
  5049. esac
  5050. fi
  5051. done
  5052. IFS=$lt_save_ifs
  5053. else
  5054. lt_cv_path_LD=$LD # Let the user override the test with a path.
  5055. fi
  5056. fi
  5057. LD=$lt_cv_path_LD
  5058. if test -n "$LD"; then
  5059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5060. $as_echo "$LD" >&6; }
  5061. else
  5062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5063. $as_echo "no" >&6; }
  5064. fi
  5065. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5067. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5068. if ${lt_cv_prog_gnu_ld+:} false; then :
  5069. $as_echo_n "(cached) " >&6
  5070. else
  5071. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5072. case `$LD -v 2>&1 </dev/null` in
  5073. *GNU* | *'with BFD'*)
  5074. lt_cv_prog_gnu_ld=yes
  5075. ;;
  5076. *)
  5077. lt_cv_prog_gnu_ld=no
  5078. ;;
  5079. esac
  5080. fi
  5081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5082. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5083. with_gnu_ld=$lt_cv_prog_gnu_ld
  5084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5085. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5086. if ${lt_cv_path_NM+:} false; then :
  5087. $as_echo_n "(cached) " >&6
  5088. else
  5089. if test -n "$NM"; then
  5090. # Let the user override the test.
  5091. lt_cv_path_NM=$NM
  5092. else
  5093. lt_nm_to_check=${ac_tool_prefix}nm
  5094. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5095. lt_nm_to_check="$lt_nm_to_check nm"
  5096. fi
  5097. for lt_tmp_nm in $lt_nm_to_check; do
  5098. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5099. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5100. IFS=$lt_save_ifs
  5101. test -z "$ac_dir" && ac_dir=.
  5102. tmp_nm=$ac_dir/$lt_tmp_nm
  5103. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  5104. # Check to see if the nm accepts a BSD-compat flag.
  5105. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  5106. # nm: unknown option "B" ignored
  5107. # Tru64's nm complains that /dev/null is an invalid object file
  5108. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  5109. case $build_os in
  5110. mingw*) lt_bad_file=conftest.nm/nofile ;;
  5111. *) lt_bad_file=/dev/null ;;
  5112. esac
  5113. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  5114. *$lt_bad_file* | *'Invalid file or object type'*)
  5115. lt_cv_path_NM="$tmp_nm -B"
  5116. break 2
  5117. ;;
  5118. *)
  5119. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5120. */dev/null*)
  5121. lt_cv_path_NM="$tmp_nm -p"
  5122. break 2
  5123. ;;
  5124. *)
  5125. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5126. continue # so that we can try to find one that supports BSD flags
  5127. ;;
  5128. esac
  5129. ;;
  5130. esac
  5131. fi
  5132. done
  5133. IFS=$lt_save_ifs
  5134. done
  5135. : ${lt_cv_path_NM=no}
  5136. fi
  5137. fi
  5138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5139. $as_echo "$lt_cv_path_NM" >&6; }
  5140. if test no != "$lt_cv_path_NM"; then
  5141. NM=$lt_cv_path_NM
  5142. else
  5143. # Didn't find any BSD compatible name lister, look for dumpbin.
  5144. if test -n "$DUMPBIN"; then :
  5145. # Let the user override the test.
  5146. else
  5147. if test -n "$ac_tool_prefix"; then
  5148. for ac_prog in dumpbin "link -dump"
  5149. do
  5150. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5151. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5153. $as_echo_n "checking for $ac_word... " >&6; }
  5154. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5155. $as_echo_n "(cached) " >&6
  5156. else
  5157. if test -n "$DUMPBIN"; then
  5158. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5159. else
  5160. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5161. for as_dir in $PATH
  5162. do
  5163. IFS=$as_save_IFS
  5164. test -z "$as_dir" && as_dir=.
  5165. for ac_exec_ext in '' $ac_executable_extensions; do
  5166. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5167. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5168. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5169. break 2
  5170. fi
  5171. done
  5172. done
  5173. IFS=$as_save_IFS
  5174. fi
  5175. fi
  5176. DUMPBIN=$ac_cv_prog_DUMPBIN
  5177. if test -n "$DUMPBIN"; then
  5178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5179. $as_echo "$DUMPBIN" >&6; }
  5180. else
  5181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5182. $as_echo "no" >&6; }
  5183. fi
  5184. test -n "$DUMPBIN" && break
  5185. done
  5186. fi
  5187. if test -z "$DUMPBIN"; then
  5188. ac_ct_DUMPBIN=$DUMPBIN
  5189. for ac_prog in dumpbin "link -dump"
  5190. do
  5191. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5192. set dummy $ac_prog; ac_word=$2
  5193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5194. $as_echo_n "checking for $ac_word... " >&6; }
  5195. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5196. $as_echo_n "(cached) " >&6
  5197. else
  5198. if test -n "$ac_ct_DUMPBIN"; then
  5199. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5200. else
  5201. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5202. for as_dir in $PATH
  5203. do
  5204. IFS=$as_save_IFS
  5205. test -z "$as_dir" && as_dir=.
  5206. for ac_exec_ext in '' $ac_executable_extensions; do
  5207. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5208. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5209. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5210. break 2
  5211. fi
  5212. done
  5213. done
  5214. IFS=$as_save_IFS
  5215. fi
  5216. fi
  5217. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5218. if test -n "$ac_ct_DUMPBIN"; then
  5219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5220. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5221. else
  5222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5223. $as_echo "no" >&6; }
  5224. fi
  5225. test -n "$ac_ct_DUMPBIN" && break
  5226. done
  5227. if test "x$ac_ct_DUMPBIN" = x; then
  5228. DUMPBIN=":"
  5229. else
  5230. case $cross_compiling:$ac_tool_warned in
  5231. yes:)
  5232. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5233. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5234. ac_tool_warned=yes ;;
  5235. esac
  5236. DUMPBIN=$ac_ct_DUMPBIN
  5237. fi
  5238. fi
  5239. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  5240. *COFF*)
  5241. DUMPBIN="$DUMPBIN -symbols -headers"
  5242. ;;
  5243. *)
  5244. DUMPBIN=:
  5245. ;;
  5246. esac
  5247. fi
  5248. if test : != "$DUMPBIN"; then
  5249. NM=$DUMPBIN
  5250. fi
  5251. fi
  5252. test -z "$NM" && NM=nm
  5253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5254. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5255. if ${lt_cv_nm_interface+:} false; then :
  5256. $as_echo_n "(cached) " >&6
  5257. else
  5258. lt_cv_nm_interface="BSD nm"
  5259. echo "int some_variable = 0;" > conftest.$ac_ext
  5260. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5261. (eval "$ac_compile" 2>conftest.err)
  5262. cat conftest.err >&5
  5263. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5264. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5265. cat conftest.err >&5
  5266. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5267. cat conftest.out >&5
  5268. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5269. lt_cv_nm_interface="MS dumpbin"
  5270. fi
  5271. rm -f conftest*
  5272. fi
  5273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5274. $as_echo "$lt_cv_nm_interface" >&6; }
  5275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5276. $as_echo_n "checking whether ln -s works... " >&6; }
  5277. LN_S=$as_ln_s
  5278. if test "$LN_S" = "ln -s"; then
  5279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5280. $as_echo "yes" >&6; }
  5281. else
  5282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5283. $as_echo "no, using $LN_S" >&6; }
  5284. fi
  5285. # find the maximum length of command line arguments
  5286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5287. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5288. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5289. $as_echo_n "(cached) " >&6
  5290. else
  5291. i=0
  5292. teststring=ABCD
  5293. case $build_os in
  5294. msdosdjgpp*)
  5295. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5296. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5297. # during glob expansion). Even if it were fixed, the result of this
  5298. # check would be larger than it should be.
  5299. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5300. ;;
  5301. gnu*)
  5302. # Under GNU Hurd, this test is not required because there is
  5303. # no limit to the length of command line arguments.
  5304. # Libtool will interpret -1 as no limit whatsoever
  5305. lt_cv_sys_max_cmd_len=-1;
  5306. ;;
  5307. cygwin* | mingw* | cegcc*)
  5308. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5309. # about 5 minutes as the teststring grows exponentially.
  5310. # Worse, since 9x/ME are not pre-emptively multitasking,
  5311. # you end up with a "frozen" computer, even though with patience
  5312. # the test eventually succeeds (with a max line length of 256k).
  5313. # Instead, let's just punt: use the minimum linelength reported by
  5314. # all of the supported platforms: 8192 (on NT/2K/XP).
  5315. lt_cv_sys_max_cmd_len=8192;
  5316. ;;
  5317. mint*)
  5318. # On MiNT this can take a long time and run out of memory.
  5319. lt_cv_sys_max_cmd_len=8192;
  5320. ;;
  5321. amigaos*)
  5322. # On AmigaOS with pdksh, this test takes hours, literally.
  5323. # So we just punt and use a minimum line length of 8192.
  5324. lt_cv_sys_max_cmd_len=8192;
  5325. ;;
  5326. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  5327. # This has been around since 386BSD, at least. Likely further.
  5328. if test -x /sbin/sysctl; then
  5329. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5330. elif test -x /usr/sbin/sysctl; then
  5331. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5332. else
  5333. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5334. fi
  5335. # And add a safety zone
  5336. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5337. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5338. ;;
  5339. interix*)
  5340. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5341. lt_cv_sys_max_cmd_len=196608
  5342. ;;
  5343. os2*)
  5344. # The test takes a long time on OS/2.
  5345. lt_cv_sys_max_cmd_len=8192
  5346. ;;
  5347. osf*)
  5348. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5349. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5350. # nice to cause kernel panics so lets avoid the loop below.
  5351. # First set a reasonable default.
  5352. lt_cv_sys_max_cmd_len=16384
  5353. #
  5354. if test -x /sbin/sysconfig; then
  5355. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5356. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5357. esac
  5358. fi
  5359. ;;
  5360. sco3.2v5*)
  5361. lt_cv_sys_max_cmd_len=102400
  5362. ;;
  5363. sysv5* | sco5v6* | sysv4.2uw2*)
  5364. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5365. if test -n "$kargmax"; then
  5366. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5367. else
  5368. lt_cv_sys_max_cmd_len=32768
  5369. fi
  5370. ;;
  5371. *)
  5372. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5373. if test -n "$lt_cv_sys_max_cmd_len" && \
  5374. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5375. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5376. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5377. else
  5378. # Make teststring a little bigger before we do anything with it.
  5379. # a 1K string should be a reasonable start.
  5380. for i in 1 2 3 4 5 6 7 8; do
  5381. teststring=$teststring$teststring
  5382. done
  5383. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5384. # If test is not a shell built-in, we'll probably end up computing a
  5385. # maximum length that is only half of the actual maximum length, but
  5386. # we can't tell.
  5387. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  5388. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5389. test 17 != "$i" # 1/2 MB should be enough
  5390. do
  5391. i=`expr $i + 1`
  5392. teststring=$teststring$teststring
  5393. done
  5394. # Only check the string length outside the loop.
  5395. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5396. teststring=
  5397. # Add a significant safety factor because C++ compilers can tack on
  5398. # massive amounts of additional arguments before passing them to the
  5399. # linker. It appears as though 1/2 is a usable value.
  5400. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5401. fi
  5402. ;;
  5403. esac
  5404. fi
  5405. if test -n "$lt_cv_sys_max_cmd_len"; then
  5406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5407. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5408. else
  5409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5410. $as_echo "none" >&6; }
  5411. fi
  5412. max_cmd_len=$lt_cv_sys_max_cmd_len
  5413. : ${CP="cp -f"}
  5414. : ${MV="mv -f"}
  5415. : ${RM="rm -f"}
  5416. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5417. lt_unset=unset
  5418. else
  5419. lt_unset=false
  5420. fi
  5421. # test EBCDIC or ASCII
  5422. case `echo X|tr X '\101'` in
  5423. A) # ASCII based system
  5424. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5425. lt_SP2NL='tr \040 \012'
  5426. lt_NL2SP='tr \015\012 \040\040'
  5427. ;;
  5428. *) # EBCDIC based system
  5429. lt_SP2NL='tr \100 \n'
  5430. lt_NL2SP='tr \r\n \100\100'
  5431. ;;
  5432. esac
  5433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5434. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5435. if ${lt_cv_to_host_file_cmd+:} false; then :
  5436. $as_echo_n "(cached) " >&6
  5437. else
  5438. case $host in
  5439. *-*-mingw* )
  5440. case $build in
  5441. *-*-mingw* ) # actually msys
  5442. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5443. ;;
  5444. *-*-cygwin* )
  5445. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5446. ;;
  5447. * ) # otherwise, assume *nix
  5448. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5449. ;;
  5450. esac
  5451. ;;
  5452. *-*-cygwin* )
  5453. case $build in
  5454. *-*-mingw* ) # actually msys
  5455. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5456. ;;
  5457. *-*-cygwin* )
  5458. lt_cv_to_host_file_cmd=func_convert_file_noop
  5459. ;;
  5460. * ) # otherwise, assume *nix
  5461. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5462. ;;
  5463. esac
  5464. ;;
  5465. * ) # unhandled hosts (and "normal" native builds)
  5466. lt_cv_to_host_file_cmd=func_convert_file_noop
  5467. ;;
  5468. esac
  5469. fi
  5470. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5472. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5474. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5475. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5476. $as_echo_n "(cached) " >&6
  5477. else
  5478. #assume ordinary cross tools, or native build.
  5479. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5480. case $host in
  5481. *-*-mingw* )
  5482. case $build in
  5483. *-*-mingw* ) # actually msys
  5484. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5485. ;;
  5486. esac
  5487. ;;
  5488. esac
  5489. fi
  5490. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5492. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5494. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5495. if ${lt_cv_ld_reload_flag+:} false; then :
  5496. $as_echo_n "(cached) " >&6
  5497. else
  5498. lt_cv_ld_reload_flag='-r'
  5499. fi
  5500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5501. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5502. reload_flag=$lt_cv_ld_reload_flag
  5503. case $reload_flag in
  5504. "" | " "*) ;;
  5505. *) reload_flag=" $reload_flag" ;;
  5506. esac
  5507. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5508. case $host_os in
  5509. cygwin* | mingw* | pw32* | cegcc*)
  5510. if test yes != "$GCC"; then
  5511. reload_cmds=false
  5512. fi
  5513. ;;
  5514. darwin*)
  5515. if test yes = "$GCC"; then
  5516. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5517. else
  5518. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5519. fi
  5520. ;;
  5521. esac
  5522. if test -n "$ac_tool_prefix"; then
  5523. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5524. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5526. $as_echo_n "checking for $ac_word... " >&6; }
  5527. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5528. $as_echo_n "(cached) " >&6
  5529. else
  5530. if test -n "$OBJDUMP"; then
  5531. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5532. else
  5533. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5534. for as_dir in $PATH
  5535. do
  5536. IFS=$as_save_IFS
  5537. test -z "$as_dir" && as_dir=.
  5538. for ac_exec_ext in '' $ac_executable_extensions; do
  5539. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5540. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5541. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5542. break 2
  5543. fi
  5544. done
  5545. done
  5546. IFS=$as_save_IFS
  5547. fi
  5548. fi
  5549. OBJDUMP=$ac_cv_prog_OBJDUMP
  5550. if test -n "$OBJDUMP"; then
  5551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5552. $as_echo "$OBJDUMP" >&6; }
  5553. else
  5554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5555. $as_echo "no" >&6; }
  5556. fi
  5557. fi
  5558. if test -z "$ac_cv_prog_OBJDUMP"; then
  5559. ac_ct_OBJDUMP=$OBJDUMP
  5560. # Extract the first word of "objdump", so it can be a program name with args.
  5561. set dummy objdump; ac_word=$2
  5562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5563. $as_echo_n "checking for $ac_word... " >&6; }
  5564. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5565. $as_echo_n "(cached) " >&6
  5566. else
  5567. if test -n "$ac_ct_OBJDUMP"; then
  5568. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5569. else
  5570. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5571. for as_dir in $PATH
  5572. do
  5573. IFS=$as_save_IFS
  5574. test -z "$as_dir" && as_dir=.
  5575. for ac_exec_ext in '' $ac_executable_extensions; do
  5576. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5577. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5578. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5579. break 2
  5580. fi
  5581. done
  5582. done
  5583. IFS=$as_save_IFS
  5584. fi
  5585. fi
  5586. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5587. if test -n "$ac_ct_OBJDUMP"; then
  5588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5589. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5590. else
  5591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5592. $as_echo "no" >&6; }
  5593. fi
  5594. if test "x$ac_ct_OBJDUMP" = x; then
  5595. OBJDUMP="false"
  5596. else
  5597. case $cross_compiling:$ac_tool_warned in
  5598. yes:)
  5599. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5600. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5601. ac_tool_warned=yes ;;
  5602. esac
  5603. OBJDUMP=$ac_ct_OBJDUMP
  5604. fi
  5605. else
  5606. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5607. fi
  5608. test -z "$OBJDUMP" && OBJDUMP=objdump
  5609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5610. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5611. if ${lt_cv_deplibs_check_method+:} false; then :
  5612. $as_echo_n "(cached) " >&6
  5613. else
  5614. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5615. lt_cv_file_magic_test_file=
  5616. lt_cv_deplibs_check_method='unknown'
  5617. # Need to set the preceding variable on all platforms that support
  5618. # interlibrary dependencies.
  5619. # 'none' -- dependencies not supported.
  5620. # 'unknown' -- same as none, but documents that we really don't know.
  5621. # 'pass_all' -- all dependencies passed with no checks.
  5622. # 'test_compile' -- check by making test program.
  5623. # 'file_magic [[regex]]' -- check by looking for files in library path
  5624. # that responds to the $file_magic_cmd with a given extended regex.
  5625. # If you have 'file' or equivalent on your system and you're not sure
  5626. # whether 'pass_all' will *always* work, you probably want this one.
  5627. case $host_os in
  5628. aix[4-9]*)
  5629. lt_cv_deplibs_check_method=pass_all
  5630. ;;
  5631. beos*)
  5632. lt_cv_deplibs_check_method=pass_all
  5633. ;;
  5634. bsdi[45]*)
  5635. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5636. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5637. lt_cv_file_magic_test_file=/shlib/libc.so
  5638. ;;
  5639. cygwin*)
  5640. # func_win32_libid is a shell function defined in ltmain.sh
  5641. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5642. lt_cv_file_magic_cmd='func_win32_libid'
  5643. ;;
  5644. mingw* | pw32*)
  5645. # Base MSYS/MinGW do not provide the 'file' command needed by
  5646. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5647. # unless we find 'file', for example because we are cross-compiling.
  5648. if ( file / ) >/dev/null 2>&1; then
  5649. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5650. lt_cv_file_magic_cmd='func_win32_libid'
  5651. else
  5652. # Keep this pattern in sync with the one in func_win32_libid.
  5653. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5654. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5655. fi
  5656. ;;
  5657. cegcc*)
  5658. # use the weaker test based on 'objdump'. See mingw*.
  5659. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5660. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5661. ;;
  5662. darwin* | rhapsody*)
  5663. lt_cv_deplibs_check_method=pass_all
  5664. ;;
  5665. freebsd* | dragonfly*)
  5666. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5667. case $host_cpu in
  5668. i*86 )
  5669. # Not sure whether the presence of OpenBSD here was a mistake.
  5670. # Let's accept both of them until this is cleared up.
  5671. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5672. lt_cv_file_magic_cmd=/usr/bin/file
  5673. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5674. ;;
  5675. esac
  5676. else
  5677. lt_cv_deplibs_check_method=pass_all
  5678. fi
  5679. ;;
  5680. haiku*)
  5681. lt_cv_deplibs_check_method=pass_all
  5682. ;;
  5683. hpux10.20* | hpux11*)
  5684. lt_cv_file_magic_cmd=/usr/bin/file
  5685. case $host_cpu in
  5686. ia64*)
  5687. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5688. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5689. ;;
  5690. hppa*64*)
  5691. 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]'
  5692. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5693. ;;
  5694. *)
  5695. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5696. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5697. ;;
  5698. esac
  5699. ;;
  5700. interix[3-9]*)
  5701. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5702. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5703. ;;
  5704. irix5* | irix6* | nonstopux*)
  5705. case $LD in
  5706. *-32|*"-32 ") libmagic=32-bit;;
  5707. *-n32|*"-n32 ") libmagic=N32;;
  5708. *-64|*"-64 ") libmagic=64-bit;;
  5709. *) libmagic=never-match;;
  5710. esac
  5711. lt_cv_deplibs_check_method=pass_all
  5712. ;;
  5713. # This must be glibc/ELF.
  5714. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5715. lt_cv_deplibs_check_method=pass_all
  5716. ;;
  5717. netbsd*)
  5718. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5719. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5720. else
  5721. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5722. fi
  5723. ;;
  5724. newos6*)
  5725. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5726. lt_cv_file_magic_cmd=/usr/bin/file
  5727. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5728. ;;
  5729. *nto* | *qnx*)
  5730. lt_cv_deplibs_check_method=pass_all
  5731. ;;
  5732. openbsd* | bitrig*)
  5733. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5734. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5735. else
  5736. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5737. fi
  5738. ;;
  5739. osf3* | osf4* | osf5*)
  5740. lt_cv_deplibs_check_method=pass_all
  5741. ;;
  5742. rdos*)
  5743. lt_cv_deplibs_check_method=pass_all
  5744. ;;
  5745. solaris*)
  5746. lt_cv_deplibs_check_method=pass_all
  5747. ;;
  5748. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5749. lt_cv_deplibs_check_method=pass_all
  5750. ;;
  5751. sysv4 | sysv4.3*)
  5752. case $host_vendor in
  5753. motorola)
  5754. 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]'
  5755. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5756. ;;
  5757. ncr)
  5758. lt_cv_deplibs_check_method=pass_all
  5759. ;;
  5760. sequent)
  5761. lt_cv_file_magic_cmd='/bin/file'
  5762. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5763. ;;
  5764. sni)
  5765. lt_cv_file_magic_cmd='/bin/file'
  5766. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5767. lt_cv_file_magic_test_file=/lib/libc.so
  5768. ;;
  5769. siemens)
  5770. lt_cv_deplibs_check_method=pass_all
  5771. ;;
  5772. pc)
  5773. lt_cv_deplibs_check_method=pass_all
  5774. ;;
  5775. esac
  5776. ;;
  5777. tpf*)
  5778. lt_cv_deplibs_check_method=pass_all
  5779. ;;
  5780. os2*)
  5781. lt_cv_deplibs_check_method=pass_all
  5782. ;;
  5783. esac
  5784. fi
  5785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5786. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5787. file_magic_glob=
  5788. want_nocaseglob=no
  5789. if test "$build" = "$host"; then
  5790. case $host_os in
  5791. mingw* | pw32*)
  5792. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5793. want_nocaseglob=yes
  5794. else
  5795. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5796. fi
  5797. ;;
  5798. esac
  5799. fi
  5800. file_magic_cmd=$lt_cv_file_magic_cmd
  5801. deplibs_check_method=$lt_cv_deplibs_check_method
  5802. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5803. if test -n "$ac_tool_prefix"; then
  5804. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5805. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5807. $as_echo_n "checking for $ac_word... " >&6; }
  5808. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5809. $as_echo_n "(cached) " >&6
  5810. else
  5811. if test -n "$DLLTOOL"; then
  5812. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5813. else
  5814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5815. for as_dir in $PATH
  5816. do
  5817. IFS=$as_save_IFS
  5818. test -z "$as_dir" && as_dir=.
  5819. for ac_exec_ext in '' $ac_executable_extensions; do
  5820. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5821. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5822. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5823. break 2
  5824. fi
  5825. done
  5826. done
  5827. IFS=$as_save_IFS
  5828. fi
  5829. fi
  5830. DLLTOOL=$ac_cv_prog_DLLTOOL
  5831. if test -n "$DLLTOOL"; then
  5832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5833. $as_echo "$DLLTOOL" >&6; }
  5834. else
  5835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5836. $as_echo "no" >&6; }
  5837. fi
  5838. fi
  5839. if test -z "$ac_cv_prog_DLLTOOL"; then
  5840. ac_ct_DLLTOOL=$DLLTOOL
  5841. # Extract the first word of "dlltool", so it can be a program name with args.
  5842. set dummy dlltool; ac_word=$2
  5843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5844. $as_echo_n "checking for $ac_word... " >&6; }
  5845. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5846. $as_echo_n "(cached) " >&6
  5847. else
  5848. if test -n "$ac_ct_DLLTOOL"; then
  5849. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5850. else
  5851. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5852. for as_dir in $PATH
  5853. do
  5854. IFS=$as_save_IFS
  5855. test -z "$as_dir" && as_dir=.
  5856. for ac_exec_ext in '' $ac_executable_extensions; do
  5857. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5858. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5859. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5860. break 2
  5861. fi
  5862. done
  5863. done
  5864. IFS=$as_save_IFS
  5865. fi
  5866. fi
  5867. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5868. if test -n "$ac_ct_DLLTOOL"; then
  5869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5870. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5871. else
  5872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5873. $as_echo "no" >&6; }
  5874. fi
  5875. if test "x$ac_ct_DLLTOOL" = x; then
  5876. DLLTOOL="false"
  5877. else
  5878. case $cross_compiling:$ac_tool_warned in
  5879. yes:)
  5880. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5881. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5882. ac_tool_warned=yes ;;
  5883. esac
  5884. DLLTOOL=$ac_ct_DLLTOOL
  5885. fi
  5886. else
  5887. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5888. fi
  5889. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5891. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5892. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5893. $as_echo_n "(cached) " >&6
  5894. else
  5895. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5896. case $host_os in
  5897. cygwin* | mingw* | pw32* | cegcc*)
  5898. # two different shell functions defined in ltmain.sh;
  5899. # decide which one to use based on capabilities of $DLLTOOL
  5900. case `$DLLTOOL --help 2>&1` in
  5901. *--identify-strict*)
  5902. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5903. ;;
  5904. *)
  5905. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5906. ;;
  5907. esac
  5908. ;;
  5909. *)
  5910. # fallback: assume linklib IS sharedlib
  5911. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5912. ;;
  5913. esac
  5914. fi
  5915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5916. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5917. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5918. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5919. if test -n "$ac_tool_prefix"; then
  5920. for ac_prog in ar
  5921. do
  5922. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5923. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5925. $as_echo_n "checking for $ac_word... " >&6; }
  5926. if ${ac_cv_prog_AR+:} false; then :
  5927. $as_echo_n "(cached) " >&6
  5928. else
  5929. if test -n "$AR"; then
  5930. ac_cv_prog_AR="$AR" # Let the user override the test.
  5931. else
  5932. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5933. for as_dir in $PATH
  5934. do
  5935. IFS=$as_save_IFS
  5936. test -z "$as_dir" && as_dir=.
  5937. for ac_exec_ext in '' $ac_executable_extensions; do
  5938. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5939. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5940. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5941. break 2
  5942. fi
  5943. done
  5944. done
  5945. IFS=$as_save_IFS
  5946. fi
  5947. fi
  5948. AR=$ac_cv_prog_AR
  5949. if test -n "$AR"; then
  5950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5951. $as_echo "$AR" >&6; }
  5952. else
  5953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5954. $as_echo "no" >&6; }
  5955. fi
  5956. test -n "$AR" && break
  5957. done
  5958. fi
  5959. if test -z "$AR"; then
  5960. ac_ct_AR=$AR
  5961. for ac_prog in ar
  5962. do
  5963. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5964. set dummy $ac_prog; ac_word=$2
  5965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5966. $as_echo_n "checking for $ac_word... " >&6; }
  5967. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5968. $as_echo_n "(cached) " >&6
  5969. else
  5970. if test -n "$ac_ct_AR"; then
  5971. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5972. else
  5973. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5974. for as_dir in $PATH
  5975. do
  5976. IFS=$as_save_IFS
  5977. test -z "$as_dir" && as_dir=.
  5978. for ac_exec_ext in '' $ac_executable_extensions; do
  5979. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5980. ac_cv_prog_ac_ct_AR="$ac_prog"
  5981. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5982. break 2
  5983. fi
  5984. done
  5985. done
  5986. IFS=$as_save_IFS
  5987. fi
  5988. fi
  5989. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5990. if test -n "$ac_ct_AR"; then
  5991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5992. $as_echo "$ac_ct_AR" >&6; }
  5993. else
  5994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5995. $as_echo "no" >&6; }
  5996. fi
  5997. test -n "$ac_ct_AR" && break
  5998. done
  5999. if test "x$ac_ct_AR" = x; then
  6000. AR="false"
  6001. else
  6002. case $cross_compiling:$ac_tool_warned in
  6003. yes:)
  6004. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6005. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6006. ac_tool_warned=yes ;;
  6007. esac
  6008. AR=$ac_ct_AR
  6009. fi
  6010. fi
  6011. : ${AR=ar}
  6012. : ${AR_FLAGS=cru}
  6013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6014. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6015. if ${lt_cv_ar_at_file+:} false; then :
  6016. $as_echo_n "(cached) " >&6
  6017. else
  6018. lt_cv_ar_at_file=no
  6019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6020. /* end confdefs.h. */
  6021. int
  6022. main ()
  6023. {
  6024. ;
  6025. return 0;
  6026. }
  6027. _ACEOF
  6028. if ac_fn_c_try_compile "$LINENO"; then :
  6029. echo conftest.$ac_objext > conftest.lst
  6030. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6031. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6032. (eval $lt_ar_try) 2>&5
  6033. ac_status=$?
  6034. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6035. test $ac_status = 0; }
  6036. if test 0 -eq "$ac_status"; then
  6037. # Ensure the archiver fails upon bogus file names.
  6038. rm -f conftest.$ac_objext libconftest.a
  6039. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6040. (eval $lt_ar_try) 2>&5
  6041. ac_status=$?
  6042. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6043. test $ac_status = 0; }
  6044. if test 0 -ne "$ac_status"; then
  6045. lt_cv_ar_at_file=@
  6046. fi
  6047. fi
  6048. rm -f conftest.* libconftest.a
  6049. fi
  6050. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6051. fi
  6052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6053. $as_echo "$lt_cv_ar_at_file" >&6; }
  6054. if test no = "$lt_cv_ar_at_file"; then
  6055. archiver_list_spec=
  6056. else
  6057. archiver_list_spec=$lt_cv_ar_at_file
  6058. fi
  6059. if test -n "$ac_tool_prefix"; then
  6060. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6061. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6063. $as_echo_n "checking for $ac_word... " >&6; }
  6064. if ${ac_cv_prog_STRIP+:} false; then :
  6065. $as_echo_n "(cached) " >&6
  6066. else
  6067. if test -n "$STRIP"; then
  6068. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6069. else
  6070. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6071. for as_dir in $PATH
  6072. do
  6073. IFS=$as_save_IFS
  6074. test -z "$as_dir" && as_dir=.
  6075. for ac_exec_ext in '' $ac_executable_extensions; do
  6076. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6077. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6078. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6079. break 2
  6080. fi
  6081. done
  6082. done
  6083. IFS=$as_save_IFS
  6084. fi
  6085. fi
  6086. STRIP=$ac_cv_prog_STRIP
  6087. if test -n "$STRIP"; then
  6088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6089. $as_echo "$STRIP" >&6; }
  6090. else
  6091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6092. $as_echo "no" >&6; }
  6093. fi
  6094. fi
  6095. if test -z "$ac_cv_prog_STRIP"; then
  6096. ac_ct_STRIP=$STRIP
  6097. # Extract the first word of "strip", so it can be a program name with args.
  6098. set dummy strip; ac_word=$2
  6099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6100. $as_echo_n "checking for $ac_word... " >&6; }
  6101. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6102. $as_echo_n "(cached) " >&6
  6103. else
  6104. if test -n "$ac_ct_STRIP"; then
  6105. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6106. else
  6107. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6108. for as_dir in $PATH
  6109. do
  6110. IFS=$as_save_IFS
  6111. test -z "$as_dir" && as_dir=.
  6112. for ac_exec_ext in '' $ac_executable_extensions; do
  6113. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6114. ac_cv_prog_ac_ct_STRIP="strip"
  6115. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6116. break 2
  6117. fi
  6118. done
  6119. done
  6120. IFS=$as_save_IFS
  6121. fi
  6122. fi
  6123. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6124. if test -n "$ac_ct_STRIP"; then
  6125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6126. $as_echo "$ac_ct_STRIP" >&6; }
  6127. else
  6128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6129. $as_echo "no" >&6; }
  6130. fi
  6131. if test "x$ac_ct_STRIP" = x; then
  6132. STRIP=":"
  6133. else
  6134. case $cross_compiling:$ac_tool_warned in
  6135. yes:)
  6136. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6137. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6138. ac_tool_warned=yes ;;
  6139. esac
  6140. STRIP=$ac_ct_STRIP
  6141. fi
  6142. else
  6143. STRIP="$ac_cv_prog_STRIP"
  6144. fi
  6145. test -z "$STRIP" && STRIP=:
  6146. if test -n "$ac_tool_prefix"; then
  6147. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6148. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6150. $as_echo_n "checking for $ac_word... " >&6; }
  6151. if ${ac_cv_prog_RANLIB+:} false; then :
  6152. $as_echo_n "(cached) " >&6
  6153. else
  6154. if test -n "$RANLIB"; then
  6155. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6156. else
  6157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6158. for as_dir in $PATH
  6159. do
  6160. IFS=$as_save_IFS
  6161. test -z "$as_dir" && as_dir=.
  6162. for ac_exec_ext in '' $ac_executable_extensions; do
  6163. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6164. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6165. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6166. break 2
  6167. fi
  6168. done
  6169. done
  6170. IFS=$as_save_IFS
  6171. fi
  6172. fi
  6173. RANLIB=$ac_cv_prog_RANLIB
  6174. if test -n "$RANLIB"; then
  6175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6176. $as_echo "$RANLIB" >&6; }
  6177. else
  6178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6179. $as_echo "no" >&6; }
  6180. fi
  6181. fi
  6182. if test -z "$ac_cv_prog_RANLIB"; then
  6183. ac_ct_RANLIB=$RANLIB
  6184. # Extract the first word of "ranlib", so it can be a program name with args.
  6185. set dummy ranlib; ac_word=$2
  6186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6187. $as_echo_n "checking for $ac_word... " >&6; }
  6188. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6189. $as_echo_n "(cached) " >&6
  6190. else
  6191. if test -n "$ac_ct_RANLIB"; then
  6192. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6193. else
  6194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6195. for as_dir in $PATH
  6196. do
  6197. IFS=$as_save_IFS
  6198. test -z "$as_dir" && as_dir=.
  6199. for ac_exec_ext in '' $ac_executable_extensions; do
  6200. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6201. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6202. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6203. break 2
  6204. fi
  6205. done
  6206. done
  6207. IFS=$as_save_IFS
  6208. fi
  6209. fi
  6210. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6211. if test -n "$ac_ct_RANLIB"; then
  6212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6213. $as_echo "$ac_ct_RANLIB" >&6; }
  6214. else
  6215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6216. $as_echo "no" >&6; }
  6217. fi
  6218. if test "x$ac_ct_RANLIB" = x; then
  6219. RANLIB=":"
  6220. else
  6221. case $cross_compiling:$ac_tool_warned in
  6222. yes:)
  6223. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6224. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6225. ac_tool_warned=yes ;;
  6226. esac
  6227. RANLIB=$ac_ct_RANLIB
  6228. fi
  6229. else
  6230. RANLIB="$ac_cv_prog_RANLIB"
  6231. fi
  6232. test -z "$RANLIB" && RANLIB=:
  6233. # Determine commands to create old-style static archives.
  6234. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6235. old_postinstall_cmds='chmod 644 $oldlib'
  6236. old_postuninstall_cmds=
  6237. if test -n "$RANLIB"; then
  6238. case $host_os in
  6239. bitrig* | openbsd*)
  6240. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6241. ;;
  6242. *)
  6243. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6244. ;;
  6245. esac
  6246. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6247. fi
  6248. case $host_os in
  6249. darwin*)
  6250. lock_old_archive_extraction=yes ;;
  6251. *)
  6252. lock_old_archive_extraction=no ;;
  6253. esac
  6254. # If no C compiler was specified, use CC.
  6255. LTCC=${LTCC-"$CC"}
  6256. # If no C compiler flags were specified, use CFLAGS.
  6257. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6258. # Allow CC to be a program name with arguments.
  6259. compiler=$CC
  6260. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6262. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6263. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6264. $as_echo_n "(cached) " >&6
  6265. else
  6266. # These are sane defaults that work on at least a few old systems.
  6267. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6268. # Character class describing NM global symbol codes.
  6269. symcode='[BCDEGRST]'
  6270. # Regexp to match symbols that can be accessed directly from C.
  6271. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6272. # Define system-specific variables.
  6273. case $host_os in
  6274. aix*)
  6275. symcode='[BCDT]'
  6276. ;;
  6277. cygwin* | mingw* | pw32* | cegcc*)
  6278. symcode='[ABCDGISTW]'
  6279. ;;
  6280. hpux*)
  6281. if test ia64 = "$host_cpu"; then
  6282. symcode='[ABCDEGRST]'
  6283. fi
  6284. ;;
  6285. irix* | nonstopux*)
  6286. symcode='[BCDEGRST]'
  6287. ;;
  6288. osf*)
  6289. symcode='[BCDEGQRST]'
  6290. ;;
  6291. solaris*)
  6292. symcode='[BDRT]'
  6293. ;;
  6294. sco3.2v5*)
  6295. symcode='[DT]'
  6296. ;;
  6297. sysv4.2uw2*)
  6298. symcode='[DT]'
  6299. ;;
  6300. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6301. symcode='[ABDT]'
  6302. ;;
  6303. sysv4)
  6304. symcode='[DFNSTU]'
  6305. ;;
  6306. esac
  6307. # If we're using GNU nm, then use its standard symbol codes.
  6308. case `$NM -V 2>&1` in
  6309. *GNU* | *'with BFD'*)
  6310. symcode='[ABCDGIRSTW]' ;;
  6311. esac
  6312. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6313. # Gets list of data symbols to import.
  6314. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  6315. # Adjust the below global symbol transforms to fixup imported variables.
  6316. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  6317. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  6318. lt_c_name_lib_hook="\
  6319. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  6320. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  6321. else
  6322. # Disable hooks by default.
  6323. lt_cv_sys_global_symbol_to_import=
  6324. lt_cdecl_hook=
  6325. lt_c_name_hook=
  6326. lt_c_name_lib_hook=
  6327. fi
  6328. # Transform an extracted symbol line into a proper C declaration.
  6329. # Some systems (esp. on ia64) link data and code symbols differently,
  6330. # so use this general approach.
  6331. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  6332. $lt_cdecl_hook\
  6333. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6334. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6335. # Transform an extracted symbol line into symbol name and symbol address
  6336. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  6337. $lt_c_name_hook\
  6338. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6339. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6340. # Transform an extracted symbol line into symbol name with lib prefix and
  6341. # symbol address.
  6342. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  6343. $lt_c_name_lib_hook\
  6344. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6345. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6346. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6347. # Handle CRLF in mingw tool chain
  6348. opt_cr=
  6349. case $build_os in
  6350. mingw*)
  6351. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6352. ;;
  6353. esac
  6354. # Try without a prefix underscore, then with it.
  6355. for ac_symprfx in "" "_"; do
  6356. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6357. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6358. # Write the raw and C identifiers.
  6359. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6360. # Fake it for dumpbin and say T for any non-static function,
  6361. # D for any global variable and I for any imported variable.
  6362. # Also find C++ and __fastcall symbols from MSVC++,
  6363. # which start with @ or ?.
  6364. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6365. " {last_section=section; section=\$ 3};"\
  6366. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6367. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6368. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6369. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6370. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6371. " \$ 0!~/External *\|/{next};"\
  6372. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6373. " {if(hide[section]) next};"\
  6374. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6375. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6376. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6377. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6378. " ' prfx=^$ac_symprfx"
  6379. else
  6380. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6381. fi
  6382. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6383. # Check to see that the pipe works correctly.
  6384. pipe_works=no
  6385. rm -f conftest*
  6386. cat > conftest.$ac_ext <<_LT_EOF
  6387. #ifdef __cplusplus
  6388. extern "C" {
  6389. #endif
  6390. char nm_test_var;
  6391. void nm_test_func(void);
  6392. void nm_test_func(void){}
  6393. #ifdef __cplusplus
  6394. }
  6395. #endif
  6396. int main(){nm_test_var='a';nm_test_func();return(0);}
  6397. _LT_EOF
  6398. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6399. (eval $ac_compile) 2>&5
  6400. ac_status=$?
  6401. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6402. test $ac_status = 0; }; then
  6403. # Now try to grab the symbols.
  6404. nlist=conftest.nm
  6405. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6406. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6407. ac_status=$?
  6408. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6409. test $ac_status = 0; } && test -s "$nlist"; then
  6410. # Try sorting and uniquifying the output.
  6411. if sort "$nlist" | uniq > "$nlist"T; then
  6412. mv -f "$nlist"T "$nlist"
  6413. else
  6414. rm -f "$nlist"T
  6415. fi
  6416. # Make sure that we snagged all the symbols we need.
  6417. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6418. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6419. cat <<_LT_EOF > conftest.$ac_ext
  6420. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6421. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6422. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6423. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6424. # define LT_DLSYM_CONST
  6425. #elif defined __osf__
  6426. /* This system does not cope well with relocations in const data. */
  6427. # define LT_DLSYM_CONST
  6428. #else
  6429. # define LT_DLSYM_CONST const
  6430. #endif
  6431. #ifdef __cplusplus
  6432. extern "C" {
  6433. #endif
  6434. _LT_EOF
  6435. # Now generate the symbol file.
  6436. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6437. cat <<_LT_EOF >> conftest.$ac_ext
  6438. /* The mapping between symbol names and symbols. */
  6439. LT_DLSYM_CONST struct {
  6440. const char *name;
  6441. void *address;
  6442. }
  6443. lt__PROGRAM__LTX_preloaded_symbols[] =
  6444. {
  6445. { "@PROGRAM@", (void *) 0 },
  6446. _LT_EOF
  6447. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6448. cat <<\_LT_EOF >> conftest.$ac_ext
  6449. {0, (void *) 0}
  6450. };
  6451. /* This works around a problem in FreeBSD linker */
  6452. #ifdef FREEBSD_WORKAROUND
  6453. static const void *lt_preloaded_setup() {
  6454. return lt__PROGRAM__LTX_preloaded_symbols;
  6455. }
  6456. #endif
  6457. #ifdef __cplusplus
  6458. }
  6459. #endif
  6460. _LT_EOF
  6461. # Now try linking the two files.
  6462. mv conftest.$ac_objext conftstm.$ac_objext
  6463. lt_globsym_save_LIBS=$LIBS
  6464. lt_globsym_save_CFLAGS=$CFLAGS
  6465. LIBS=conftstm.$ac_objext
  6466. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6467. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6468. (eval $ac_link) 2>&5
  6469. ac_status=$?
  6470. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6471. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6472. pipe_works=yes
  6473. fi
  6474. LIBS=$lt_globsym_save_LIBS
  6475. CFLAGS=$lt_globsym_save_CFLAGS
  6476. else
  6477. echo "cannot find nm_test_func in $nlist" >&5
  6478. fi
  6479. else
  6480. echo "cannot find nm_test_var in $nlist" >&5
  6481. fi
  6482. else
  6483. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6484. fi
  6485. else
  6486. echo "$progname: failed program was:" >&5
  6487. cat conftest.$ac_ext >&5
  6488. fi
  6489. rm -rf conftest* conftst*
  6490. # Do not use the global_symbol_pipe unless it works.
  6491. if test yes = "$pipe_works"; then
  6492. break
  6493. else
  6494. lt_cv_sys_global_symbol_pipe=
  6495. fi
  6496. done
  6497. fi
  6498. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6499. lt_cv_sys_global_symbol_to_cdecl=
  6500. fi
  6501. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6503. $as_echo "failed" >&6; }
  6504. else
  6505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6506. $as_echo "ok" >&6; }
  6507. fi
  6508. # Response file support.
  6509. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6510. nm_file_list_spec='@'
  6511. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6512. nm_file_list_spec='@'
  6513. fi
  6514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6515. $as_echo_n "checking for sysroot... " >&6; }
  6516. # Check whether --with-sysroot was given.
  6517. if test "${with_sysroot+set}" = set; then :
  6518. withval=$with_sysroot;
  6519. else
  6520. with_sysroot=no
  6521. fi
  6522. lt_sysroot=
  6523. case $with_sysroot in #(
  6524. yes)
  6525. if test yes = "$GCC"; then
  6526. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6527. fi
  6528. ;; #(
  6529. /*)
  6530. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6531. ;; #(
  6532. no|'')
  6533. ;; #(
  6534. *)
  6535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6536. $as_echo "$with_sysroot" >&6; }
  6537. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6538. ;;
  6539. esac
  6540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6541. $as_echo "${lt_sysroot:-no}" >&6; }
  6542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6543. $as_echo_n "checking for a working dd... " >&6; }
  6544. if ${ac_cv_path_lt_DD+:} false; then :
  6545. $as_echo_n "(cached) " >&6
  6546. else
  6547. printf 0123456789abcdef0123456789abcdef >conftest.i
  6548. cat conftest.i conftest.i >conftest2.i
  6549. : ${lt_DD:=$DD}
  6550. if test -z "$lt_DD"; then
  6551. ac_path_lt_DD_found=false
  6552. # Loop through the user's path and test for each of PROGNAME-LIST
  6553. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6554. for as_dir in $PATH
  6555. do
  6556. IFS=$as_save_IFS
  6557. test -z "$as_dir" && as_dir=.
  6558. for ac_prog in dd; do
  6559. for ac_exec_ext in '' $ac_executable_extensions; do
  6560. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  6561. as_fn_executable_p "$ac_path_lt_DD" || continue
  6562. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6563. cmp -s conftest.i conftest.out \
  6564. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6565. fi
  6566. $ac_path_lt_DD_found && break 3
  6567. done
  6568. done
  6569. done
  6570. IFS=$as_save_IFS
  6571. if test -z "$ac_cv_path_lt_DD"; then
  6572. :
  6573. fi
  6574. else
  6575. ac_cv_path_lt_DD=$lt_DD
  6576. fi
  6577. rm -f conftest.i conftest2.i conftest.out
  6578. fi
  6579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6580. $as_echo "$ac_cv_path_lt_DD" >&6; }
  6581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6582. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  6583. if ${lt_cv_truncate_bin+:} false; then :
  6584. $as_echo_n "(cached) " >&6
  6585. else
  6586. printf 0123456789abcdef0123456789abcdef >conftest.i
  6587. cat conftest.i conftest.i >conftest2.i
  6588. lt_cv_truncate_bin=
  6589. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6590. cmp -s conftest.i conftest.out \
  6591. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6592. fi
  6593. rm -f conftest.i conftest2.i conftest.out
  6594. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6595. fi
  6596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6597. $as_echo "$lt_cv_truncate_bin" >&6; }
  6598. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6599. func_cc_basename ()
  6600. {
  6601. for cc_temp in $*""; do
  6602. case $cc_temp in
  6603. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6604. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6605. \-*) ;;
  6606. *) break;;
  6607. esac
  6608. done
  6609. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6610. }
  6611. # Check whether --enable-libtool-lock was given.
  6612. if test "${enable_libtool_lock+set}" = set; then :
  6613. enableval=$enable_libtool_lock;
  6614. fi
  6615. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6616. # Some flags need to be propagated to the compiler or linker for good
  6617. # libtool support.
  6618. case $host in
  6619. ia64-*-hpux*)
  6620. # Find out what ABI is being produced by ac_compile, and set mode
  6621. # options accordingly.
  6622. echo 'int i;' > conftest.$ac_ext
  6623. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6624. (eval $ac_compile) 2>&5
  6625. ac_status=$?
  6626. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6627. test $ac_status = 0; }; then
  6628. case `/usr/bin/file conftest.$ac_objext` in
  6629. *ELF-32*)
  6630. HPUX_IA64_MODE=32
  6631. ;;
  6632. *ELF-64*)
  6633. HPUX_IA64_MODE=64
  6634. ;;
  6635. esac
  6636. fi
  6637. rm -rf conftest*
  6638. ;;
  6639. *-*-irix6*)
  6640. # Find out what ABI is being produced by ac_compile, and set linker
  6641. # options accordingly.
  6642. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6643. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6644. (eval $ac_compile) 2>&5
  6645. ac_status=$?
  6646. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6647. test $ac_status = 0; }; then
  6648. if test yes = "$lt_cv_prog_gnu_ld"; then
  6649. case `/usr/bin/file conftest.$ac_objext` in
  6650. *32-bit*)
  6651. LD="${LD-ld} -melf32bsmip"
  6652. ;;
  6653. *N32*)
  6654. LD="${LD-ld} -melf32bmipn32"
  6655. ;;
  6656. *64-bit*)
  6657. LD="${LD-ld} -melf64bmip"
  6658. ;;
  6659. esac
  6660. else
  6661. case `/usr/bin/file conftest.$ac_objext` in
  6662. *32-bit*)
  6663. LD="${LD-ld} -32"
  6664. ;;
  6665. *N32*)
  6666. LD="${LD-ld} -n32"
  6667. ;;
  6668. *64-bit*)
  6669. LD="${LD-ld} -64"
  6670. ;;
  6671. esac
  6672. fi
  6673. fi
  6674. rm -rf conftest*
  6675. ;;
  6676. mips64*-*linux*)
  6677. # Find out what ABI is being produced by ac_compile, and set linker
  6678. # options accordingly.
  6679. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6680. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6681. (eval $ac_compile) 2>&5
  6682. ac_status=$?
  6683. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6684. test $ac_status = 0; }; then
  6685. emul=elf
  6686. case `/usr/bin/file conftest.$ac_objext` in
  6687. *32-bit*)
  6688. emul="${emul}32"
  6689. ;;
  6690. *64-bit*)
  6691. emul="${emul}64"
  6692. ;;
  6693. esac
  6694. case `/usr/bin/file conftest.$ac_objext` in
  6695. *MSB*)
  6696. emul="${emul}btsmip"
  6697. ;;
  6698. *LSB*)
  6699. emul="${emul}ltsmip"
  6700. ;;
  6701. esac
  6702. case `/usr/bin/file conftest.$ac_objext` in
  6703. *N32*)
  6704. emul="${emul}n32"
  6705. ;;
  6706. esac
  6707. LD="${LD-ld} -m $emul"
  6708. fi
  6709. rm -rf conftest*
  6710. ;;
  6711. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6712. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6713. # Find out what ABI is being produced by ac_compile, and set linker
  6714. # options accordingly. Note that the listed cases only cover the
  6715. # situations where additional linker options are needed (such as when
  6716. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6717. # vice versa); the common cases where no linker options are needed do
  6718. # not appear in the list.
  6719. echo 'int i;' > conftest.$ac_ext
  6720. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6721. (eval $ac_compile) 2>&5
  6722. ac_status=$?
  6723. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6724. test $ac_status = 0; }; then
  6725. case `/usr/bin/file conftest.o` in
  6726. *32-bit*)
  6727. case $host in
  6728. x86_64-*kfreebsd*-gnu)
  6729. LD="${LD-ld} -m elf_i386_fbsd"
  6730. ;;
  6731. x86_64-*linux*)
  6732. case `/usr/bin/file conftest.o` in
  6733. *x86-64*)
  6734. LD="${LD-ld} -m elf32_x86_64"
  6735. ;;
  6736. *)
  6737. LD="${LD-ld} -m elf_i386"
  6738. ;;
  6739. esac
  6740. ;;
  6741. powerpc64le-*linux*)
  6742. LD="${LD-ld} -m elf32lppclinux"
  6743. ;;
  6744. powerpc64-*linux*)
  6745. LD="${LD-ld} -m elf32ppclinux"
  6746. ;;
  6747. s390x-*linux*)
  6748. LD="${LD-ld} -m elf_s390"
  6749. ;;
  6750. sparc64-*linux*)
  6751. LD="${LD-ld} -m elf32_sparc"
  6752. ;;
  6753. esac
  6754. ;;
  6755. *64-bit*)
  6756. case $host in
  6757. x86_64-*kfreebsd*-gnu)
  6758. LD="${LD-ld} -m elf_x86_64_fbsd"
  6759. ;;
  6760. x86_64-*linux*)
  6761. LD="${LD-ld} -m elf_x86_64"
  6762. ;;
  6763. powerpcle-*linux*)
  6764. LD="${LD-ld} -m elf64lppc"
  6765. ;;
  6766. powerpc-*linux*)
  6767. LD="${LD-ld} -m elf64ppc"
  6768. ;;
  6769. s390*-*linux*|s390*-*tpf*)
  6770. LD="${LD-ld} -m elf64_s390"
  6771. ;;
  6772. sparc*-*linux*)
  6773. LD="${LD-ld} -m elf64_sparc"
  6774. ;;
  6775. esac
  6776. ;;
  6777. esac
  6778. fi
  6779. rm -rf conftest*
  6780. ;;
  6781. *-*-sco3.2v5*)
  6782. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6783. SAVE_CFLAGS=$CFLAGS
  6784. CFLAGS="$CFLAGS -belf"
  6785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6786. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6787. if ${lt_cv_cc_needs_belf+:} false; then :
  6788. $as_echo_n "(cached) " >&6
  6789. else
  6790. ac_ext=c
  6791. ac_cpp='$CPP $CPPFLAGS'
  6792. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6793. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6794. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6796. /* end confdefs.h. */
  6797. int
  6798. main ()
  6799. {
  6800. ;
  6801. return 0;
  6802. }
  6803. _ACEOF
  6804. if ac_fn_c_try_link "$LINENO"; then :
  6805. lt_cv_cc_needs_belf=yes
  6806. else
  6807. lt_cv_cc_needs_belf=no
  6808. fi
  6809. rm -f core conftest.err conftest.$ac_objext \
  6810. conftest$ac_exeext conftest.$ac_ext
  6811. ac_ext=c
  6812. ac_cpp='$CPP $CPPFLAGS'
  6813. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6814. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6815. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6816. fi
  6817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6818. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6819. if test yes != "$lt_cv_cc_needs_belf"; then
  6820. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6821. CFLAGS=$SAVE_CFLAGS
  6822. fi
  6823. ;;
  6824. *-*solaris*)
  6825. # Find out what ABI is being produced by ac_compile, and set linker
  6826. # options accordingly.
  6827. echo 'int i;' > conftest.$ac_ext
  6828. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6829. (eval $ac_compile) 2>&5
  6830. ac_status=$?
  6831. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6832. test $ac_status = 0; }; then
  6833. case `/usr/bin/file conftest.o` in
  6834. *64-bit*)
  6835. case $lt_cv_prog_gnu_ld in
  6836. yes*)
  6837. case $host in
  6838. i?86-*-solaris*|x86_64-*-solaris*)
  6839. LD="${LD-ld} -m elf_x86_64"
  6840. ;;
  6841. sparc*-*-solaris*)
  6842. LD="${LD-ld} -m elf64_sparc"
  6843. ;;
  6844. esac
  6845. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6846. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6847. LD=${LD-ld}_sol2
  6848. fi
  6849. ;;
  6850. *)
  6851. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6852. LD="${LD-ld} -64"
  6853. fi
  6854. ;;
  6855. esac
  6856. ;;
  6857. esac
  6858. fi
  6859. rm -rf conftest*
  6860. ;;
  6861. esac
  6862. need_locks=$enable_libtool_lock
  6863. if test -n "$ac_tool_prefix"; then
  6864. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6865. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6867. $as_echo_n "checking for $ac_word... " >&6; }
  6868. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6869. $as_echo_n "(cached) " >&6
  6870. else
  6871. if test -n "$MANIFEST_TOOL"; then
  6872. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6873. else
  6874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6875. for as_dir in $PATH
  6876. do
  6877. IFS=$as_save_IFS
  6878. test -z "$as_dir" && as_dir=.
  6879. for ac_exec_ext in '' $ac_executable_extensions; do
  6880. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6881. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6882. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6883. break 2
  6884. fi
  6885. done
  6886. done
  6887. IFS=$as_save_IFS
  6888. fi
  6889. fi
  6890. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6891. if test -n "$MANIFEST_TOOL"; then
  6892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6893. $as_echo "$MANIFEST_TOOL" >&6; }
  6894. else
  6895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6896. $as_echo "no" >&6; }
  6897. fi
  6898. fi
  6899. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6900. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6901. # Extract the first word of "mt", so it can be a program name with args.
  6902. set dummy mt; ac_word=$2
  6903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6904. $as_echo_n "checking for $ac_word... " >&6; }
  6905. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6906. $as_echo_n "(cached) " >&6
  6907. else
  6908. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6909. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6910. else
  6911. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6912. for as_dir in $PATH
  6913. do
  6914. IFS=$as_save_IFS
  6915. test -z "$as_dir" && as_dir=.
  6916. for ac_exec_ext in '' $ac_executable_extensions; do
  6917. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6918. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6919. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6920. break 2
  6921. fi
  6922. done
  6923. done
  6924. IFS=$as_save_IFS
  6925. fi
  6926. fi
  6927. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6928. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6930. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6931. else
  6932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6933. $as_echo "no" >&6; }
  6934. fi
  6935. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6936. MANIFEST_TOOL=":"
  6937. else
  6938. case $cross_compiling:$ac_tool_warned in
  6939. yes:)
  6940. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6941. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6942. ac_tool_warned=yes ;;
  6943. esac
  6944. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6945. fi
  6946. else
  6947. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6948. fi
  6949. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6951. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6952. if ${lt_cv_path_mainfest_tool+:} false; then :
  6953. $as_echo_n "(cached) " >&6
  6954. else
  6955. lt_cv_path_mainfest_tool=no
  6956. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6957. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6958. cat conftest.err >&5
  6959. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6960. lt_cv_path_mainfest_tool=yes
  6961. fi
  6962. rm -f conftest*
  6963. fi
  6964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6965. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6966. if test yes != "$lt_cv_path_mainfest_tool"; then
  6967. MANIFEST_TOOL=:
  6968. fi
  6969. case $host_os in
  6970. rhapsody* | darwin*)
  6971. if test -n "$ac_tool_prefix"; then
  6972. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6973. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6975. $as_echo_n "checking for $ac_word... " >&6; }
  6976. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6977. $as_echo_n "(cached) " >&6
  6978. else
  6979. if test -n "$DSYMUTIL"; then
  6980. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6981. else
  6982. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6983. for as_dir in $PATH
  6984. do
  6985. IFS=$as_save_IFS
  6986. test -z "$as_dir" && as_dir=.
  6987. for ac_exec_ext in '' $ac_executable_extensions; do
  6988. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6989. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6990. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6991. break 2
  6992. fi
  6993. done
  6994. done
  6995. IFS=$as_save_IFS
  6996. fi
  6997. fi
  6998. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6999. if test -n "$DSYMUTIL"; then
  7000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7001. $as_echo "$DSYMUTIL" >&6; }
  7002. else
  7003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7004. $as_echo "no" >&6; }
  7005. fi
  7006. fi
  7007. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7008. ac_ct_DSYMUTIL=$DSYMUTIL
  7009. # Extract the first word of "dsymutil", so it can be a program name with args.
  7010. set dummy dsymutil; ac_word=$2
  7011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7012. $as_echo_n "checking for $ac_word... " >&6; }
  7013. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  7014. $as_echo_n "(cached) " >&6
  7015. else
  7016. if test -n "$ac_ct_DSYMUTIL"; then
  7017. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7018. else
  7019. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7020. for as_dir in $PATH
  7021. do
  7022. IFS=$as_save_IFS
  7023. test -z "$as_dir" && as_dir=.
  7024. for ac_exec_ext in '' $ac_executable_extensions; do
  7025. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7026. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7027. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7028. break 2
  7029. fi
  7030. done
  7031. done
  7032. IFS=$as_save_IFS
  7033. fi
  7034. fi
  7035. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7036. if test -n "$ac_ct_DSYMUTIL"; then
  7037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7038. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7039. else
  7040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7041. $as_echo "no" >&6; }
  7042. fi
  7043. if test "x$ac_ct_DSYMUTIL" = x; then
  7044. DSYMUTIL=":"
  7045. else
  7046. case $cross_compiling:$ac_tool_warned in
  7047. yes:)
  7048. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7049. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7050. ac_tool_warned=yes ;;
  7051. esac
  7052. DSYMUTIL=$ac_ct_DSYMUTIL
  7053. fi
  7054. else
  7055. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7056. fi
  7057. if test -n "$ac_tool_prefix"; then
  7058. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7059. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7061. $as_echo_n "checking for $ac_word... " >&6; }
  7062. if ${ac_cv_prog_NMEDIT+:} false; then :
  7063. $as_echo_n "(cached) " >&6
  7064. else
  7065. if test -n "$NMEDIT"; then
  7066. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7067. else
  7068. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7069. for as_dir in $PATH
  7070. do
  7071. IFS=$as_save_IFS
  7072. test -z "$as_dir" && as_dir=.
  7073. for ac_exec_ext in '' $ac_executable_extensions; do
  7074. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7075. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7076. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7077. break 2
  7078. fi
  7079. done
  7080. done
  7081. IFS=$as_save_IFS
  7082. fi
  7083. fi
  7084. NMEDIT=$ac_cv_prog_NMEDIT
  7085. if test -n "$NMEDIT"; then
  7086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7087. $as_echo "$NMEDIT" >&6; }
  7088. else
  7089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7090. $as_echo "no" >&6; }
  7091. fi
  7092. fi
  7093. if test -z "$ac_cv_prog_NMEDIT"; then
  7094. ac_ct_NMEDIT=$NMEDIT
  7095. # Extract the first word of "nmedit", so it can be a program name with args.
  7096. set dummy nmedit; ac_word=$2
  7097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7098. $as_echo_n "checking for $ac_word... " >&6; }
  7099. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7100. $as_echo_n "(cached) " >&6
  7101. else
  7102. if test -n "$ac_ct_NMEDIT"; then
  7103. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7104. else
  7105. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7106. for as_dir in $PATH
  7107. do
  7108. IFS=$as_save_IFS
  7109. test -z "$as_dir" && as_dir=.
  7110. for ac_exec_ext in '' $ac_executable_extensions; do
  7111. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7112. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7113. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7114. break 2
  7115. fi
  7116. done
  7117. done
  7118. IFS=$as_save_IFS
  7119. fi
  7120. fi
  7121. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7122. if test -n "$ac_ct_NMEDIT"; then
  7123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7124. $as_echo "$ac_ct_NMEDIT" >&6; }
  7125. else
  7126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7127. $as_echo "no" >&6; }
  7128. fi
  7129. if test "x$ac_ct_NMEDIT" = x; then
  7130. NMEDIT=":"
  7131. else
  7132. case $cross_compiling:$ac_tool_warned in
  7133. yes:)
  7134. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7135. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7136. ac_tool_warned=yes ;;
  7137. esac
  7138. NMEDIT=$ac_ct_NMEDIT
  7139. fi
  7140. else
  7141. NMEDIT="$ac_cv_prog_NMEDIT"
  7142. fi
  7143. if test -n "$ac_tool_prefix"; then
  7144. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7145. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7147. $as_echo_n "checking for $ac_word... " >&6; }
  7148. if ${ac_cv_prog_LIPO+:} false; then :
  7149. $as_echo_n "(cached) " >&6
  7150. else
  7151. if test -n "$LIPO"; then
  7152. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7153. else
  7154. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7155. for as_dir in $PATH
  7156. do
  7157. IFS=$as_save_IFS
  7158. test -z "$as_dir" && as_dir=.
  7159. for ac_exec_ext in '' $ac_executable_extensions; do
  7160. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7161. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7162. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7163. break 2
  7164. fi
  7165. done
  7166. done
  7167. IFS=$as_save_IFS
  7168. fi
  7169. fi
  7170. LIPO=$ac_cv_prog_LIPO
  7171. if test -n "$LIPO"; then
  7172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7173. $as_echo "$LIPO" >&6; }
  7174. else
  7175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7176. $as_echo "no" >&6; }
  7177. fi
  7178. fi
  7179. if test -z "$ac_cv_prog_LIPO"; then
  7180. ac_ct_LIPO=$LIPO
  7181. # Extract the first word of "lipo", so it can be a program name with args.
  7182. set dummy lipo; ac_word=$2
  7183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7184. $as_echo_n "checking for $ac_word... " >&6; }
  7185. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7186. $as_echo_n "(cached) " >&6
  7187. else
  7188. if test -n "$ac_ct_LIPO"; then
  7189. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7190. else
  7191. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7192. for as_dir in $PATH
  7193. do
  7194. IFS=$as_save_IFS
  7195. test -z "$as_dir" && as_dir=.
  7196. for ac_exec_ext in '' $ac_executable_extensions; do
  7197. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7198. ac_cv_prog_ac_ct_LIPO="lipo"
  7199. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7200. break 2
  7201. fi
  7202. done
  7203. done
  7204. IFS=$as_save_IFS
  7205. fi
  7206. fi
  7207. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7208. if test -n "$ac_ct_LIPO"; then
  7209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7210. $as_echo "$ac_ct_LIPO" >&6; }
  7211. else
  7212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7213. $as_echo "no" >&6; }
  7214. fi
  7215. if test "x$ac_ct_LIPO" = x; then
  7216. LIPO=":"
  7217. else
  7218. case $cross_compiling:$ac_tool_warned in
  7219. yes:)
  7220. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7221. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7222. ac_tool_warned=yes ;;
  7223. esac
  7224. LIPO=$ac_ct_LIPO
  7225. fi
  7226. else
  7227. LIPO="$ac_cv_prog_LIPO"
  7228. fi
  7229. if test -n "$ac_tool_prefix"; then
  7230. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7231. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7233. $as_echo_n "checking for $ac_word... " >&6; }
  7234. if ${ac_cv_prog_OTOOL+:} false; then :
  7235. $as_echo_n "(cached) " >&6
  7236. else
  7237. if test -n "$OTOOL"; then
  7238. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7239. else
  7240. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7241. for as_dir in $PATH
  7242. do
  7243. IFS=$as_save_IFS
  7244. test -z "$as_dir" && as_dir=.
  7245. for ac_exec_ext in '' $ac_executable_extensions; do
  7246. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7247. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7248. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7249. break 2
  7250. fi
  7251. done
  7252. done
  7253. IFS=$as_save_IFS
  7254. fi
  7255. fi
  7256. OTOOL=$ac_cv_prog_OTOOL
  7257. if test -n "$OTOOL"; then
  7258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7259. $as_echo "$OTOOL" >&6; }
  7260. else
  7261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7262. $as_echo "no" >&6; }
  7263. fi
  7264. fi
  7265. if test -z "$ac_cv_prog_OTOOL"; then
  7266. ac_ct_OTOOL=$OTOOL
  7267. # Extract the first word of "otool", so it can be a program name with args.
  7268. set dummy otool; ac_word=$2
  7269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7270. $as_echo_n "checking for $ac_word... " >&6; }
  7271. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7272. $as_echo_n "(cached) " >&6
  7273. else
  7274. if test -n "$ac_ct_OTOOL"; then
  7275. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7276. else
  7277. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7278. for as_dir in $PATH
  7279. do
  7280. IFS=$as_save_IFS
  7281. test -z "$as_dir" && as_dir=.
  7282. for ac_exec_ext in '' $ac_executable_extensions; do
  7283. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7284. ac_cv_prog_ac_ct_OTOOL="otool"
  7285. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7286. break 2
  7287. fi
  7288. done
  7289. done
  7290. IFS=$as_save_IFS
  7291. fi
  7292. fi
  7293. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7294. if test -n "$ac_ct_OTOOL"; then
  7295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7296. $as_echo "$ac_ct_OTOOL" >&6; }
  7297. else
  7298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7299. $as_echo "no" >&6; }
  7300. fi
  7301. if test "x$ac_ct_OTOOL" = x; then
  7302. OTOOL=":"
  7303. else
  7304. case $cross_compiling:$ac_tool_warned in
  7305. yes:)
  7306. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7307. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7308. ac_tool_warned=yes ;;
  7309. esac
  7310. OTOOL=$ac_ct_OTOOL
  7311. fi
  7312. else
  7313. OTOOL="$ac_cv_prog_OTOOL"
  7314. fi
  7315. if test -n "$ac_tool_prefix"; then
  7316. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7317. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7319. $as_echo_n "checking for $ac_word... " >&6; }
  7320. if ${ac_cv_prog_OTOOL64+:} false; then :
  7321. $as_echo_n "(cached) " >&6
  7322. else
  7323. if test -n "$OTOOL64"; then
  7324. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7325. else
  7326. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7327. for as_dir in $PATH
  7328. do
  7329. IFS=$as_save_IFS
  7330. test -z "$as_dir" && as_dir=.
  7331. for ac_exec_ext in '' $ac_executable_extensions; do
  7332. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7333. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7334. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7335. break 2
  7336. fi
  7337. done
  7338. done
  7339. IFS=$as_save_IFS
  7340. fi
  7341. fi
  7342. OTOOL64=$ac_cv_prog_OTOOL64
  7343. if test -n "$OTOOL64"; then
  7344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7345. $as_echo "$OTOOL64" >&6; }
  7346. else
  7347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7348. $as_echo "no" >&6; }
  7349. fi
  7350. fi
  7351. if test -z "$ac_cv_prog_OTOOL64"; then
  7352. ac_ct_OTOOL64=$OTOOL64
  7353. # Extract the first word of "otool64", so it can be a program name with args.
  7354. set dummy otool64; ac_word=$2
  7355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7356. $as_echo_n "checking for $ac_word... " >&6; }
  7357. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7358. $as_echo_n "(cached) " >&6
  7359. else
  7360. if test -n "$ac_ct_OTOOL64"; then
  7361. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7362. else
  7363. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7364. for as_dir in $PATH
  7365. do
  7366. IFS=$as_save_IFS
  7367. test -z "$as_dir" && as_dir=.
  7368. for ac_exec_ext in '' $ac_executable_extensions; do
  7369. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7370. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7371. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7372. break 2
  7373. fi
  7374. done
  7375. done
  7376. IFS=$as_save_IFS
  7377. fi
  7378. fi
  7379. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7380. if test -n "$ac_ct_OTOOL64"; then
  7381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7382. $as_echo "$ac_ct_OTOOL64" >&6; }
  7383. else
  7384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7385. $as_echo "no" >&6; }
  7386. fi
  7387. if test "x$ac_ct_OTOOL64" = x; then
  7388. OTOOL64=":"
  7389. else
  7390. case $cross_compiling:$ac_tool_warned in
  7391. yes:)
  7392. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7393. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7394. ac_tool_warned=yes ;;
  7395. esac
  7396. OTOOL64=$ac_ct_OTOOL64
  7397. fi
  7398. else
  7399. OTOOL64="$ac_cv_prog_OTOOL64"
  7400. fi
  7401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7402. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7403. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7404. $as_echo_n "(cached) " >&6
  7405. else
  7406. lt_cv_apple_cc_single_mod=no
  7407. if test -z "$LT_MULTI_MODULE"; then
  7408. # By default we will add the -single_module flag. You can override
  7409. # by either setting the environment variable LT_MULTI_MODULE
  7410. # non-empty at configure time, or by adding -multi_module to the
  7411. # link flags.
  7412. rm -rf libconftest.dylib*
  7413. echo "int foo(void){return 1;}" > conftest.c
  7414. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7415. -dynamiclib -Wl,-single_module conftest.c" >&5
  7416. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7417. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7418. _lt_result=$?
  7419. # If there is a non-empty error log, and "single_module"
  7420. # appears in it, assume the flag caused a linker warning
  7421. if test -s conftest.err && $GREP single_module conftest.err; then
  7422. cat conftest.err >&5
  7423. # Otherwise, if the output was created with a 0 exit code from
  7424. # the compiler, it worked.
  7425. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7426. lt_cv_apple_cc_single_mod=yes
  7427. else
  7428. cat conftest.err >&5
  7429. fi
  7430. rm -rf libconftest.dylib*
  7431. rm -f conftest.*
  7432. fi
  7433. fi
  7434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7435. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7437. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7438. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7439. $as_echo_n "(cached) " >&6
  7440. else
  7441. lt_cv_ld_exported_symbols_list=no
  7442. save_LDFLAGS=$LDFLAGS
  7443. echo "_main" > conftest.sym
  7444. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7446. /* end confdefs.h. */
  7447. int
  7448. main ()
  7449. {
  7450. ;
  7451. return 0;
  7452. }
  7453. _ACEOF
  7454. if ac_fn_c_try_link "$LINENO"; then :
  7455. lt_cv_ld_exported_symbols_list=yes
  7456. else
  7457. lt_cv_ld_exported_symbols_list=no
  7458. fi
  7459. rm -f core conftest.err conftest.$ac_objext \
  7460. conftest$ac_exeext conftest.$ac_ext
  7461. LDFLAGS=$save_LDFLAGS
  7462. fi
  7463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7464. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7466. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7467. if ${lt_cv_ld_force_load+:} false; then :
  7468. $as_echo_n "(cached) " >&6
  7469. else
  7470. lt_cv_ld_force_load=no
  7471. cat > conftest.c << _LT_EOF
  7472. int forced_loaded() { return 2;}
  7473. _LT_EOF
  7474. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7475. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7476. echo "$AR cru libconftest.a conftest.o" >&5
  7477. $AR cru libconftest.a conftest.o 2>&5
  7478. echo "$RANLIB libconftest.a" >&5
  7479. $RANLIB libconftest.a 2>&5
  7480. cat > conftest.c << _LT_EOF
  7481. int main() { return 0;}
  7482. _LT_EOF
  7483. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7484. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7485. _lt_result=$?
  7486. if test -s conftest.err && $GREP force_load conftest.err; then
  7487. cat conftest.err >&5
  7488. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7489. lt_cv_ld_force_load=yes
  7490. else
  7491. cat conftest.err >&5
  7492. fi
  7493. rm -f conftest.err libconftest.a conftest conftest.c
  7494. rm -rf conftest.dSYM
  7495. fi
  7496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7497. $as_echo "$lt_cv_ld_force_load" >&6; }
  7498. case $host_os in
  7499. rhapsody* | darwin1.[012])
  7500. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7501. darwin1.*)
  7502. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7503. darwin*) # darwin 5.x on
  7504. # if running on 10.5 or later, the deployment target defaults
  7505. # to the OS version, if on x86, and 10.4, the deployment
  7506. # target defaults to 10.4. Don't you love it?
  7507. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7508. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7509. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7510. 10.[012][,.]*)
  7511. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7512. 10.*)
  7513. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7514. esac
  7515. ;;
  7516. esac
  7517. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7518. _lt_dar_single_mod='$single_module'
  7519. fi
  7520. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7521. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7522. else
  7523. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7524. fi
  7525. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7526. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7527. else
  7528. _lt_dsymutil=
  7529. fi
  7530. ;;
  7531. esac
  7532. # func_munge_path_list VARIABLE PATH
  7533. # -----------------------------------
  7534. # VARIABLE is name of variable containing _space_ separated list of
  7535. # directories to be munged by the contents of PATH, which is string
  7536. # having a format:
  7537. # "DIR[:DIR]:"
  7538. # string "DIR[ DIR]" will be prepended to VARIABLE
  7539. # ":DIR[:DIR]"
  7540. # string "DIR[ DIR]" will be appended to VARIABLE
  7541. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7542. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7543. # "DIRA[ DIRA]" will be appended to VARIABLE
  7544. # "DIR[:DIR]"
  7545. # VARIABLE will be replaced by "DIR[ DIR]"
  7546. func_munge_path_list ()
  7547. {
  7548. case x$2 in
  7549. x)
  7550. ;;
  7551. *:)
  7552. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7553. ;;
  7554. x:*)
  7555. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7556. ;;
  7557. *::*)
  7558. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7559. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7560. ;;
  7561. *)
  7562. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7563. ;;
  7564. esac
  7565. }
  7566. ac_ext=c
  7567. ac_cpp='$CPP $CPPFLAGS'
  7568. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7569. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7570. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7572. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7573. # On Suns, sometimes $CPP names a directory.
  7574. if test -n "$CPP" && test -d "$CPP"; then
  7575. CPP=
  7576. fi
  7577. if test -z "$CPP"; then
  7578. if ${ac_cv_prog_CPP+:} false; then :
  7579. $as_echo_n "(cached) " >&6
  7580. else
  7581. # Double quotes because CPP needs to be expanded
  7582. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7583. do
  7584. ac_preproc_ok=false
  7585. for ac_c_preproc_warn_flag in '' yes
  7586. do
  7587. # Use a header file that comes with gcc, so configuring glibc
  7588. # with a fresh cross-compiler works.
  7589. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7590. # <limits.h> exists even on freestanding compilers.
  7591. # On the NeXT, cc -E runs the code through the compiler's parser,
  7592. # not just through cpp. "Syntax error" is here to catch this case.
  7593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7594. /* end confdefs.h. */
  7595. #ifdef __STDC__
  7596. # include <limits.h>
  7597. #else
  7598. # include <assert.h>
  7599. #endif
  7600. Syntax error
  7601. _ACEOF
  7602. if ac_fn_c_try_cpp "$LINENO"; then :
  7603. else
  7604. # Broken: fails on valid input.
  7605. continue
  7606. fi
  7607. rm -f conftest.err conftest.i conftest.$ac_ext
  7608. # OK, works on sane cases. Now check whether nonexistent headers
  7609. # can be detected and how.
  7610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7611. /* end confdefs.h. */
  7612. #include <ac_nonexistent.h>
  7613. _ACEOF
  7614. if ac_fn_c_try_cpp "$LINENO"; then :
  7615. # Broken: success on invalid input.
  7616. continue
  7617. else
  7618. # Passes both tests.
  7619. ac_preproc_ok=:
  7620. break
  7621. fi
  7622. rm -f conftest.err conftest.i conftest.$ac_ext
  7623. done
  7624. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7625. rm -f conftest.i conftest.err conftest.$ac_ext
  7626. if $ac_preproc_ok; then :
  7627. break
  7628. fi
  7629. done
  7630. ac_cv_prog_CPP=$CPP
  7631. fi
  7632. CPP=$ac_cv_prog_CPP
  7633. else
  7634. ac_cv_prog_CPP=$CPP
  7635. fi
  7636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7637. $as_echo "$CPP" >&6; }
  7638. ac_preproc_ok=false
  7639. for ac_c_preproc_warn_flag in '' yes
  7640. do
  7641. # Use a header file that comes with gcc, so configuring glibc
  7642. # with a fresh cross-compiler works.
  7643. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7644. # <limits.h> exists even on freestanding compilers.
  7645. # On the NeXT, cc -E runs the code through the compiler's parser,
  7646. # not just through cpp. "Syntax error" is here to catch this case.
  7647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7648. /* end confdefs.h. */
  7649. #ifdef __STDC__
  7650. # include <limits.h>
  7651. #else
  7652. # include <assert.h>
  7653. #endif
  7654. Syntax error
  7655. _ACEOF
  7656. if ac_fn_c_try_cpp "$LINENO"; then :
  7657. else
  7658. # Broken: fails on valid input.
  7659. continue
  7660. fi
  7661. rm -f conftest.err conftest.i conftest.$ac_ext
  7662. # OK, works on sane cases. Now check whether nonexistent headers
  7663. # can be detected and how.
  7664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7665. /* end confdefs.h. */
  7666. #include <ac_nonexistent.h>
  7667. _ACEOF
  7668. if ac_fn_c_try_cpp "$LINENO"; then :
  7669. # Broken: success on invalid input.
  7670. continue
  7671. else
  7672. # Passes both tests.
  7673. ac_preproc_ok=:
  7674. break
  7675. fi
  7676. rm -f conftest.err conftest.i conftest.$ac_ext
  7677. done
  7678. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7679. rm -f conftest.i conftest.err conftest.$ac_ext
  7680. if $ac_preproc_ok; then :
  7681. else
  7682. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7683. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7684. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7685. See \`config.log' for more details" "$LINENO" 5; }
  7686. fi
  7687. ac_ext=c
  7688. ac_cpp='$CPP $CPPFLAGS'
  7689. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7690. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7691. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7693. $as_echo_n "checking for ANSI C header files... " >&6; }
  7694. if ${ac_cv_header_stdc+:} false; then :
  7695. $as_echo_n "(cached) " >&6
  7696. else
  7697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7698. /* end confdefs.h. */
  7699. #include <stdlib.h>
  7700. #include <stdarg.h>
  7701. #include <string.h>
  7702. #include <float.h>
  7703. int
  7704. main ()
  7705. {
  7706. ;
  7707. return 0;
  7708. }
  7709. _ACEOF
  7710. if ac_fn_c_try_compile "$LINENO"; then :
  7711. ac_cv_header_stdc=yes
  7712. else
  7713. ac_cv_header_stdc=no
  7714. fi
  7715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7716. if test $ac_cv_header_stdc = yes; then
  7717. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7719. /* end confdefs.h. */
  7720. #include <string.h>
  7721. _ACEOF
  7722. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7723. $EGREP "memchr" >/dev/null 2>&1; then :
  7724. else
  7725. ac_cv_header_stdc=no
  7726. fi
  7727. rm -f conftest*
  7728. fi
  7729. if test $ac_cv_header_stdc = yes; then
  7730. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7732. /* end confdefs.h. */
  7733. #include <stdlib.h>
  7734. _ACEOF
  7735. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7736. $EGREP "free" >/dev/null 2>&1; then :
  7737. else
  7738. ac_cv_header_stdc=no
  7739. fi
  7740. rm -f conftest*
  7741. fi
  7742. if test $ac_cv_header_stdc = yes; then
  7743. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7744. if test "$cross_compiling" = yes; then :
  7745. :
  7746. else
  7747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7748. /* end confdefs.h. */
  7749. #include <ctype.h>
  7750. #include <stdlib.h>
  7751. #if ((' ' & 0x0FF) == 0x020)
  7752. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7753. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7754. #else
  7755. # define ISLOWER(c) \
  7756. (('a' <= (c) && (c) <= 'i') \
  7757. || ('j' <= (c) && (c) <= 'r') \
  7758. || ('s' <= (c) && (c) <= 'z'))
  7759. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7760. #endif
  7761. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7762. int
  7763. main ()
  7764. {
  7765. int i;
  7766. for (i = 0; i < 256; i++)
  7767. if (XOR (islower (i), ISLOWER (i))
  7768. || toupper (i) != TOUPPER (i))
  7769. return 2;
  7770. return 0;
  7771. }
  7772. _ACEOF
  7773. if ac_fn_c_try_run "$LINENO"; then :
  7774. else
  7775. ac_cv_header_stdc=no
  7776. fi
  7777. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7778. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7779. fi
  7780. fi
  7781. fi
  7782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7783. $as_echo "$ac_cv_header_stdc" >&6; }
  7784. if test $ac_cv_header_stdc = yes; then
  7785. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7786. fi
  7787. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7788. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7789. inttypes.h stdint.h unistd.h
  7790. do :
  7791. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7792. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7793. "
  7794. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7795. cat >>confdefs.h <<_ACEOF
  7796. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7797. _ACEOF
  7798. fi
  7799. done
  7800. for ac_header in dlfcn.h
  7801. do :
  7802. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7803. "
  7804. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7805. cat >>confdefs.h <<_ACEOF
  7806. #define HAVE_DLFCN_H 1
  7807. _ACEOF
  7808. fi
  7809. done
  7810. # Set options
  7811. enable_dlopen=no
  7812. enable_win32_dll=no
  7813. # Check whether --enable-shared was given.
  7814. if test "${enable_shared+set}" = set; then :
  7815. enableval=$enable_shared; p=${PACKAGE-default}
  7816. case $enableval in
  7817. yes) enable_shared=yes ;;
  7818. no) enable_shared=no ;;
  7819. *)
  7820. enable_shared=no
  7821. # Look at the argument we got. We use all the common list separators.
  7822. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7823. for pkg in $enableval; do
  7824. IFS=$lt_save_ifs
  7825. if test "X$pkg" = "X$p"; then
  7826. enable_shared=yes
  7827. fi
  7828. done
  7829. IFS=$lt_save_ifs
  7830. ;;
  7831. esac
  7832. else
  7833. enable_shared=yes
  7834. fi
  7835. # Check whether --enable-static was given.
  7836. if test "${enable_static+set}" = set; then :
  7837. enableval=$enable_static; p=${PACKAGE-default}
  7838. case $enableval in
  7839. yes) enable_static=yes ;;
  7840. no) enable_static=no ;;
  7841. *)
  7842. enable_static=no
  7843. # Look at the argument we got. We use all the common list separators.
  7844. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7845. for pkg in $enableval; do
  7846. IFS=$lt_save_ifs
  7847. if test "X$pkg" = "X$p"; then
  7848. enable_static=yes
  7849. fi
  7850. done
  7851. IFS=$lt_save_ifs
  7852. ;;
  7853. esac
  7854. else
  7855. enable_static=yes
  7856. fi
  7857. # Check whether --with-pic was given.
  7858. if test "${with_pic+set}" = set; then :
  7859. withval=$with_pic; lt_p=${PACKAGE-default}
  7860. case $withval in
  7861. yes|no) pic_mode=$withval ;;
  7862. *)
  7863. pic_mode=default
  7864. # Look at the argument we got. We use all the common list separators.
  7865. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7866. for lt_pkg in $withval; do
  7867. IFS=$lt_save_ifs
  7868. if test "X$lt_pkg" = "X$lt_p"; then
  7869. pic_mode=yes
  7870. fi
  7871. done
  7872. IFS=$lt_save_ifs
  7873. ;;
  7874. esac
  7875. else
  7876. pic_mode=default
  7877. fi
  7878. # Check whether --enable-fast-install was given.
  7879. if test "${enable_fast_install+set}" = set; then :
  7880. enableval=$enable_fast_install; p=${PACKAGE-default}
  7881. case $enableval in
  7882. yes) enable_fast_install=yes ;;
  7883. no) enable_fast_install=no ;;
  7884. *)
  7885. enable_fast_install=no
  7886. # Look at the argument we got. We use all the common list separators.
  7887. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7888. for pkg in $enableval; do
  7889. IFS=$lt_save_ifs
  7890. if test "X$pkg" = "X$p"; then
  7891. enable_fast_install=yes
  7892. fi
  7893. done
  7894. IFS=$lt_save_ifs
  7895. ;;
  7896. esac
  7897. else
  7898. enable_fast_install=yes
  7899. fi
  7900. shared_archive_member_spec=
  7901. case $host,$enable_shared in
  7902. power*-*-aix[5-9]*,yes)
  7903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7904. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  7905. # Check whether --with-aix-soname was given.
  7906. if test "${with_aix_soname+set}" = set; then :
  7907. withval=$with_aix_soname; case $withval in
  7908. aix|svr4|both)
  7909. ;;
  7910. *)
  7911. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7912. ;;
  7913. esac
  7914. lt_cv_with_aix_soname=$with_aix_soname
  7915. else
  7916. if ${lt_cv_with_aix_soname+:} false; then :
  7917. $as_echo_n "(cached) " >&6
  7918. else
  7919. lt_cv_with_aix_soname=aix
  7920. fi
  7921. with_aix_soname=$lt_cv_with_aix_soname
  7922. fi
  7923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7924. $as_echo "$with_aix_soname" >&6; }
  7925. if test aix != "$with_aix_soname"; then
  7926. # For the AIX way of multilib, we name the shared archive member
  7927. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7928. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7929. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7930. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7931. if test 64 = "${OBJECT_MODE-32}"; then
  7932. shared_archive_member_spec=shr_64
  7933. else
  7934. shared_archive_member_spec=shr
  7935. fi
  7936. fi
  7937. ;;
  7938. *)
  7939. with_aix_soname=aix
  7940. ;;
  7941. esac
  7942. # This can be used to rebuild libtool when needed
  7943. LIBTOOL_DEPS=$ltmain
  7944. # Always use our own libtool.
  7945. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7946. test -z "$LN_S" && LN_S="ln -s"
  7947. if test -n "${ZSH_VERSION+set}"; then
  7948. setopt NO_GLOB_SUBST
  7949. fi
  7950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7951. $as_echo_n "checking for objdir... " >&6; }
  7952. if ${lt_cv_objdir+:} false; then :
  7953. $as_echo_n "(cached) " >&6
  7954. else
  7955. rm -f .libs 2>/dev/null
  7956. mkdir .libs 2>/dev/null
  7957. if test -d .libs; then
  7958. lt_cv_objdir=.libs
  7959. else
  7960. # MS-DOS does not allow filenames that begin with a dot.
  7961. lt_cv_objdir=_libs
  7962. fi
  7963. rmdir .libs 2>/dev/null
  7964. fi
  7965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7966. $as_echo "$lt_cv_objdir" >&6; }
  7967. objdir=$lt_cv_objdir
  7968. cat >>confdefs.h <<_ACEOF
  7969. #define LT_OBJDIR "$lt_cv_objdir/"
  7970. _ACEOF
  7971. case $host_os in
  7972. aix3*)
  7973. # AIX sometimes has problems with the GCC collect2 program. For some
  7974. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7975. # vanish in a puff of smoke.
  7976. if test set != "${COLLECT_NAMES+set}"; then
  7977. COLLECT_NAMES=
  7978. export COLLECT_NAMES
  7979. fi
  7980. ;;
  7981. esac
  7982. # Global variables:
  7983. ofile=libtool
  7984. can_build_shared=yes
  7985. # All known linkers require a '.a' archive for static linking (except MSVC,
  7986. # which needs '.lib').
  7987. libext=a
  7988. with_gnu_ld=$lt_cv_prog_gnu_ld
  7989. old_CC=$CC
  7990. old_CFLAGS=$CFLAGS
  7991. # Set sane defaults for various variables
  7992. test -z "$CC" && CC=cc
  7993. test -z "$LTCC" && LTCC=$CC
  7994. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7995. test -z "$LD" && LD=ld
  7996. test -z "$ac_objext" && ac_objext=o
  7997. func_cc_basename $compiler
  7998. cc_basename=$func_cc_basename_result
  7999. # Only perform the check for file, if the check method requires it
  8000. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8001. case $deplibs_check_method in
  8002. file_magic*)
  8003. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8005. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  8006. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8007. $as_echo_n "(cached) " >&6
  8008. else
  8009. case $MAGIC_CMD in
  8010. [\\/*] | ?:[\\/]*)
  8011. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8012. ;;
  8013. *)
  8014. lt_save_MAGIC_CMD=$MAGIC_CMD
  8015. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8016. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8017. for ac_dir in $ac_dummy; do
  8018. IFS=$lt_save_ifs
  8019. test -z "$ac_dir" && ac_dir=.
  8020. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  8021. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  8022. if test -n "$file_magic_test_file"; then
  8023. case $deplibs_check_method in
  8024. "file_magic "*)
  8025. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8026. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8027. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8028. $EGREP "$file_magic_regex" > /dev/null; then
  8029. :
  8030. else
  8031. cat <<_LT_EOF 1>&2
  8032. *** Warning: the command libtool uses to detect shared libraries,
  8033. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8034. *** The result is that libtool may fail to recognize shared libraries
  8035. *** as such. This will affect the creation of libtool libraries that
  8036. *** depend on shared libraries, but programs linked with such libtool
  8037. *** libraries will work regardless of this problem. Nevertheless, you
  8038. *** may want to report the problem to your system manager and/or to
  8039. *** bug-libtool@gnu.org
  8040. _LT_EOF
  8041. fi ;;
  8042. esac
  8043. fi
  8044. break
  8045. fi
  8046. done
  8047. IFS=$lt_save_ifs
  8048. MAGIC_CMD=$lt_save_MAGIC_CMD
  8049. ;;
  8050. esac
  8051. fi
  8052. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8053. if test -n "$MAGIC_CMD"; then
  8054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8055. $as_echo "$MAGIC_CMD" >&6; }
  8056. else
  8057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8058. $as_echo "no" >&6; }
  8059. fi
  8060. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8061. if test -n "$ac_tool_prefix"; then
  8062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8063. $as_echo_n "checking for file... " >&6; }
  8064. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8065. $as_echo_n "(cached) " >&6
  8066. else
  8067. case $MAGIC_CMD in
  8068. [\\/*] | ?:[\\/]*)
  8069. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8070. ;;
  8071. *)
  8072. lt_save_MAGIC_CMD=$MAGIC_CMD
  8073. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8074. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8075. for ac_dir in $ac_dummy; do
  8076. IFS=$lt_save_ifs
  8077. test -z "$ac_dir" && ac_dir=.
  8078. if test -f "$ac_dir/file"; then
  8079. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  8080. if test -n "$file_magic_test_file"; then
  8081. case $deplibs_check_method in
  8082. "file_magic "*)
  8083. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8084. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8085. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8086. $EGREP "$file_magic_regex" > /dev/null; then
  8087. :
  8088. else
  8089. cat <<_LT_EOF 1>&2
  8090. *** Warning: the command libtool uses to detect shared libraries,
  8091. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8092. *** The result is that libtool may fail to recognize shared libraries
  8093. *** as such. This will affect the creation of libtool libraries that
  8094. *** depend on shared libraries, but programs linked with such libtool
  8095. *** libraries will work regardless of this problem. Nevertheless, you
  8096. *** may want to report the problem to your system manager and/or to
  8097. *** bug-libtool@gnu.org
  8098. _LT_EOF
  8099. fi ;;
  8100. esac
  8101. fi
  8102. break
  8103. fi
  8104. done
  8105. IFS=$lt_save_ifs
  8106. MAGIC_CMD=$lt_save_MAGIC_CMD
  8107. ;;
  8108. esac
  8109. fi
  8110. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8111. if test -n "$MAGIC_CMD"; then
  8112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8113. $as_echo "$MAGIC_CMD" >&6; }
  8114. else
  8115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8116. $as_echo "no" >&6; }
  8117. fi
  8118. else
  8119. MAGIC_CMD=:
  8120. fi
  8121. fi
  8122. fi
  8123. ;;
  8124. esac
  8125. # Use C for the default configuration in the libtool script
  8126. lt_save_CC=$CC
  8127. ac_ext=c
  8128. ac_cpp='$CPP $CPPFLAGS'
  8129. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8130. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8131. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8132. # Source file extension for C test sources.
  8133. ac_ext=c
  8134. # Object file extension for compiled C test sources.
  8135. objext=o
  8136. objext=$objext
  8137. # Code to be used in simple compile tests
  8138. lt_simple_compile_test_code="int some_variable = 0;"
  8139. # Code to be used in simple link tests
  8140. lt_simple_link_test_code='int main(){return(0);}'
  8141. # If no C compiler was specified, use CC.
  8142. LTCC=${LTCC-"$CC"}
  8143. # If no C compiler flags were specified, use CFLAGS.
  8144. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8145. # Allow CC to be a program name with arguments.
  8146. compiler=$CC
  8147. # Save the default compiler, since it gets overwritten when the other
  8148. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8149. compiler_DEFAULT=$CC
  8150. # save warnings/boilerplate of simple test code
  8151. ac_outfile=conftest.$ac_objext
  8152. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8153. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8154. _lt_compiler_boilerplate=`cat conftest.err`
  8155. $RM conftest*
  8156. ac_outfile=conftest.$ac_objext
  8157. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8158. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8159. _lt_linker_boilerplate=`cat conftest.err`
  8160. $RM -r conftest*
  8161. ## CAVEAT EMPTOR:
  8162. ## There is no encapsulation within the following macros, do not change
  8163. ## the running order or otherwise move them around unless you know exactly
  8164. ## what you are doing...
  8165. if test -n "$compiler"; then
  8166. lt_prog_compiler_no_builtin_flag=
  8167. if test yes = "$GCC"; then
  8168. case $cc_basename in
  8169. nvcc*)
  8170. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8171. *)
  8172. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8173. esac
  8174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8175. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8176. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8177. $as_echo_n "(cached) " >&6
  8178. else
  8179. lt_cv_prog_compiler_rtti_exceptions=no
  8180. ac_outfile=conftest.$ac_objext
  8181. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8182. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8183. # Insert the option either (1) after the last *FLAGS variable, or
  8184. # (2) before a word containing "conftest.", or (3) at the end.
  8185. # Note that $ac_compile itself does not contain backslashes and begins
  8186. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8187. # The option is referenced via a variable to avoid confusing sed.
  8188. lt_compile=`echo "$ac_compile" | $SED \
  8189. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8190. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8191. -e 's:$: $lt_compiler_flag:'`
  8192. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8193. (eval "$lt_compile" 2>conftest.err)
  8194. ac_status=$?
  8195. cat conftest.err >&5
  8196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8197. if (exit $ac_status) && test -s "$ac_outfile"; then
  8198. # The compiler can only warn and ignore the option if not recognized
  8199. # So say no if there are warnings other than the usual output.
  8200. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8201. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8202. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8203. lt_cv_prog_compiler_rtti_exceptions=yes
  8204. fi
  8205. fi
  8206. $RM conftest*
  8207. fi
  8208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8209. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8210. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8211. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8212. else
  8213. :
  8214. fi
  8215. fi
  8216. lt_prog_compiler_wl=
  8217. lt_prog_compiler_pic=
  8218. lt_prog_compiler_static=
  8219. if test yes = "$GCC"; then
  8220. lt_prog_compiler_wl='-Wl,'
  8221. lt_prog_compiler_static='-static'
  8222. case $host_os in
  8223. aix*)
  8224. # All AIX code is PIC.
  8225. if test ia64 = "$host_cpu"; then
  8226. # AIX 5 now supports IA64 processor
  8227. lt_prog_compiler_static='-Bstatic'
  8228. fi
  8229. lt_prog_compiler_pic='-fPIC'
  8230. ;;
  8231. amigaos*)
  8232. case $host_cpu in
  8233. powerpc)
  8234. # see comment about AmigaOS4 .so support
  8235. lt_prog_compiler_pic='-fPIC'
  8236. ;;
  8237. m68k)
  8238. # FIXME: we need at least 68020 code to build shared libraries, but
  8239. # adding the '-m68020' flag to GCC prevents building anything better,
  8240. # like '-m68040'.
  8241. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8242. ;;
  8243. esac
  8244. ;;
  8245. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8246. # PIC is the default for these OSes.
  8247. ;;
  8248. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8249. # This hack is so that the source file can tell whether it is being
  8250. # built for inclusion in a dll (and should export symbols for example).
  8251. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8252. # (--disable-auto-import) libraries
  8253. lt_prog_compiler_pic='-DDLL_EXPORT'
  8254. case $host_os in
  8255. os2*)
  8256. lt_prog_compiler_static='$wl-static'
  8257. ;;
  8258. esac
  8259. ;;
  8260. darwin* | rhapsody*)
  8261. # PIC is the default on this platform
  8262. # Common symbols not allowed in MH_DYLIB files
  8263. lt_prog_compiler_pic='-fno-common'
  8264. ;;
  8265. haiku*)
  8266. # PIC is the default for Haiku.
  8267. # The "-static" flag exists, but is broken.
  8268. lt_prog_compiler_static=
  8269. ;;
  8270. hpux*)
  8271. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8272. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8273. # sets the default TLS model and affects inlining.
  8274. case $host_cpu in
  8275. hppa*64*)
  8276. # +Z the default
  8277. ;;
  8278. *)
  8279. lt_prog_compiler_pic='-fPIC'
  8280. ;;
  8281. esac
  8282. ;;
  8283. interix[3-9]*)
  8284. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8285. # Instead, we relocate shared libraries at runtime.
  8286. ;;
  8287. msdosdjgpp*)
  8288. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8289. # on systems that don't support them.
  8290. lt_prog_compiler_can_build_shared=no
  8291. enable_shared=no
  8292. ;;
  8293. *nto* | *qnx*)
  8294. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8295. # it will coredump.
  8296. lt_prog_compiler_pic='-fPIC -shared'
  8297. ;;
  8298. sysv4*MP*)
  8299. if test -d /usr/nec; then
  8300. lt_prog_compiler_pic=-Kconform_pic
  8301. fi
  8302. ;;
  8303. *)
  8304. lt_prog_compiler_pic='-fPIC'
  8305. ;;
  8306. esac
  8307. case $cc_basename in
  8308. nvcc*) # Cuda Compiler Driver 2.2
  8309. lt_prog_compiler_wl='-Xlinker '
  8310. if test -n "$lt_prog_compiler_pic"; then
  8311. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8312. fi
  8313. ;;
  8314. esac
  8315. else
  8316. # PORTME Check for flag to pass linker flags through the system compiler.
  8317. case $host_os in
  8318. aix*)
  8319. lt_prog_compiler_wl='-Wl,'
  8320. if test ia64 = "$host_cpu"; then
  8321. # AIX 5 now supports IA64 processor
  8322. lt_prog_compiler_static='-Bstatic'
  8323. else
  8324. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8325. fi
  8326. ;;
  8327. darwin* | rhapsody*)
  8328. # PIC is the default on this platform
  8329. # Common symbols not allowed in MH_DYLIB files
  8330. lt_prog_compiler_pic='-fno-common'
  8331. case $cc_basename in
  8332. nagfor*)
  8333. # NAG Fortran compiler
  8334. lt_prog_compiler_wl='-Wl,-Wl,,'
  8335. lt_prog_compiler_pic='-PIC'
  8336. lt_prog_compiler_static='-Bstatic'
  8337. ;;
  8338. esac
  8339. ;;
  8340. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8341. # This hack is so that the source file can tell whether it is being
  8342. # built for inclusion in a dll (and should export symbols for example).
  8343. lt_prog_compiler_pic='-DDLL_EXPORT'
  8344. case $host_os in
  8345. os2*)
  8346. lt_prog_compiler_static='$wl-static'
  8347. ;;
  8348. esac
  8349. ;;
  8350. hpux9* | hpux10* | hpux11*)
  8351. lt_prog_compiler_wl='-Wl,'
  8352. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8353. # not for PA HP-UX.
  8354. case $host_cpu in
  8355. hppa*64*|ia64*)
  8356. # +Z the default
  8357. ;;
  8358. *)
  8359. lt_prog_compiler_pic='+Z'
  8360. ;;
  8361. esac
  8362. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8363. lt_prog_compiler_static='$wl-a ${wl}archive'
  8364. ;;
  8365. irix5* | irix6* | nonstopux*)
  8366. lt_prog_compiler_wl='-Wl,'
  8367. # PIC (with -KPIC) is the default.
  8368. lt_prog_compiler_static='-non_shared'
  8369. ;;
  8370. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8371. case $cc_basename in
  8372. # old Intel for x86_64, which still supported -KPIC.
  8373. ecc*)
  8374. lt_prog_compiler_wl='-Wl,'
  8375. lt_prog_compiler_pic='-KPIC'
  8376. lt_prog_compiler_static='-static'
  8377. ;;
  8378. # icc used to be incompatible with GCC.
  8379. # ICC 10 doesn't accept -KPIC any more.
  8380. icc* | ifort*)
  8381. lt_prog_compiler_wl='-Wl,'
  8382. lt_prog_compiler_pic='-fPIC'
  8383. lt_prog_compiler_static='-static'
  8384. ;;
  8385. # Lahey Fortran 8.1.
  8386. lf95*)
  8387. lt_prog_compiler_wl='-Wl,'
  8388. lt_prog_compiler_pic='--shared'
  8389. lt_prog_compiler_static='--static'
  8390. ;;
  8391. nagfor*)
  8392. # NAG Fortran compiler
  8393. lt_prog_compiler_wl='-Wl,-Wl,,'
  8394. lt_prog_compiler_pic='-PIC'
  8395. lt_prog_compiler_static='-Bstatic'
  8396. ;;
  8397. tcc*)
  8398. # Fabrice Bellard et al's Tiny C Compiler
  8399. lt_prog_compiler_wl='-Wl,'
  8400. lt_prog_compiler_pic='-fPIC'
  8401. lt_prog_compiler_static='-static'
  8402. ;;
  8403. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8404. # Portland Group compilers (*not* the Pentium gcc compiler,
  8405. # which looks to be a dead project)
  8406. lt_prog_compiler_wl='-Wl,'
  8407. lt_prog_compiler_pic='-fpic'
  8408. lt_prog_compiler_static='-Bstatic'
  8409. ;;
  8410. ccc*)
  8411. lt_prog_compiler_wl='-Wl,'
  8412. # All Alpha code is PIC.
  8413. lt_prog_compiler_static='-non_shared'
  8414. ;;
  8415. xl* | bgxl* | bgf* | mpixl*)
  8416. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8417. lt_prog_compiler_wl='-Wl,'
  8418. lt_prog_compiler_pic='-qpic'
  8419. lt_prog_compiler_static='-qstaticlink'
  8420. ;;
  8421. *)
  8422. case `$CC -V 2>&1 | sed 5q` in
  8423. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8424. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8425. lt_prog_compiler_pic='-KPIC'
  8426. lt_prog_compiler_static='-Bstatic'
  8427. lt_prog_compiler_wl=''
  8428. ;;
  8429. *Sun\ F* | *Sun*Fortran*)
  8430. lt_prog_compiler_pic='-KPIC'
  8431. lt_prog_compiler_static='-Bstatic'
  8432. lt_prog_compiler_wl='-Qoption ld '
  8433. ;;
  8434. *Sun\ C*)
  8435. # Sun C 5.9
  8436. lt_prog_compiler_pic='-KPIC'
  8437. lt_prog_compiler_static='-Bstatic'
  8438. lt_prog_compiler_wl='-Wl,'
  8439. ;;
  8440. *Intel*\ [CF]*Compiler*)
  8441. lt_prog_compiler_wl='-Wl,'
  8442. lt_prog_compiler_pic='-fPIC'
  8443. lt_prog_compiler_static='-static'
  8444. ;;
  8445. *Portland\ Group*)
  8446. lt_prog_compiler_wl='-Wl,'
  8447. lt_prog_compiler_pic='-fpic'
  8448. lt_prog_compiler_static='-Bstatic'
  8449. ;;
  8450. esac
  8451. ;;
  8452. esac
  8453. ;;
  8454. newsos6)
  8455. lt_prog_compiler_pic='-KPIC'
  8456. lt_prog_compiler_static='-Bstatic'
  8457. ;;
  8458. *nto* | *qnx*)
  8459. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8460. # it will coredump.
  8461. lt_prog_compiler_pic='-fPIC -shared'
  8462. ;;
  8463. osf3* | osf4* | osf5*)
  8464. lt_prog_compiler_wl='-Wl,'
  8465. # All OSF/1 code is PIC.
  8466. lt_prog_compiler_static='-non_shared'
  8467. ;;
  8468. rdos*)
  8469. lt_prog_compiler_static='-non_shared'
  8470. ;;
  8471. solaris*)
  8472. lt_prog_compiler_pic='-KPIC'
  8473. lt_prog_compiler_static='-Bstatic'
  8474. case $cc_basename in
  8475. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8476. lt_prog_compiler_wl='-Qoption ld ';;
  8477. *)
  8478. lt_prog_compiler_wl='-Wl,';;
  8479. esac
  8480. ;;
  8481. sunos4*)
  8482. lt_prog_compiler_wl='-Qoption ld '
  8483. lt_prog_compiler_pic='-PIC'
  8484. lt_prog_compiler_static='-Bstatic'
  8485. ;;
  8486. sysv4 | sysv4.2uw2* | sysv4.3*)
  8487. lt_prog_compiler_wl='-Wl,'
  8488. lt_prog_compiler_pic='-KPIC'
  8489. lt_prog_compiler_static='-Bstatic'
  8490. ;;
  8491. sysv4*MP*)
  8492. if test -d /usr/nec; then
  8493. lt_prog_compiler_pic='-Kconform_pic'
  8494. lt_prog_compiler_static='-Bstatic'
  8495. fi
  8496. ;;
  8497. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8498. lt_prog_compiler_wl='-Wl,'
  8499. lt_prog_compiler_pic='-KPIC'
  8500. lt_prog_compiler_static='-Bstatic'
  8501. ;;
  8502. unicos*)
  8503. lt_prog_compiler_wl='-Wl,'
  8504. lt_prog_compiler_can_build_shared=no
  8505. ;;
  8506. uts4*)
  8507. lt_prog_compiler_pic='-pic'
  8508. lt_prog_compiler_static='-Bstatic'
  8509. ;;
  8510. *)
  8511. lt_prog_compiler_can_build_shared=no
  8512. ;;
  8513. esac
  8514. fi
  8515. case $host_os in
  8516. # For platforms that do not support PIC, -DPIC is meaningless:
  8517. *djgpp*)
  8518. lt_prog_compiler_pic=
  8519. ;;
  8520. *)
  8521. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8522. ;;
  8523. esac
  8524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8525. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8526. if ${lt_cv_prog_compiler_pic+:} false; then :
  8527. $as_echo_n "(cached) " >&6
  8528. else
  8529. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8530. fi
  8531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8532. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8533. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8534. #
  8535. # Check to make sure the PIC flag actually works.
  8536. #
  8537. if test -n "$lt_prog_compiler_pic"; then
  8538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8539. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8540. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8541. $as_echo_n "(cached) " >&6
  8542. else
  8543. lt_cv_prog_compiler_pic_works=no
  8544. ac_outfile=conftest.$ac_objext
  8545. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8546. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8547. # Insert the option either (1) after the last *FLAGS variable, or
  8548. # (2) before a word containing "conftest.", or (3) at the end.
  8549. # Note that $ac_compile itself does not contain backslashes and begins
  8550. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8551. # The option is referenced via a variable to avoid confusing sed.
  8552. lt_compile=`echo "$ac_compile" | $SED \
  8553. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8554. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8555. -e 's:$: $lt_compiler_flag:'`
  8556. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8557. (eval "$lt_compile" 2>conftest.err)
  8558. ac_status=$?
  8559. cat conftest.err >&5
  8560. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8561. if (exit $ac_status) && test -s "$ac_outfile"; then
  8562. # The compiler can only warn and ignore the option if not recognized
  8563. # So say no if there are warnings other than the usual output.
  8564. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8565. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8566. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8567. lt_cv_prog_compiler_pic_works=yes
  8568. fi
  8569. fi
  8570. $RM conftest*
  8571. fi
  8572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8573. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8574. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8575. case $lt_prog_compiler_pic in
  8576. "" | " "*) ;;
  8577. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8578. esac
  8579. else
  8580. lt_prog_compiler_pic=
  8581. lt_prog_compiler_can_build_shared=no
  8582. fi
  8583. fi
  8584. #
  8585. # Check to make sure the static flag actually works.
  8586. #
  8587. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8589. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8590. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8591. $as_echo_n "(cached) " >&6
  8592. else
  8593. lt_cv_prog_compiler_static_works=no
  8594. save_LDFLAGS=$LDFLAGS
  8595. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8596. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8597. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8598. # The linker can only warn and ignore the option if not recognized
  8599. # So say no if there are warnings
  8600. if test -s conftest.err; then
  8601. # Append any errors to the config.log.
  8602. cat conftest.err 1>&5
  8603. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8604. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8605. if diff conftest.exp conftest.er2 >/dev/null; then
  8606. lt_cv_prog_compiler_static_works=yes
  8607. fi
  8608. else
  8609. lt_cv_prog_compiler_static_works=yes
  8610. fi
  8611. fi
  8612. $RM -r conftest*
  8613. LDFLAGS=$save_LDFLAGS
  8614. fi
  8615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8616. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8617. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8618. :
  8619. else
  8620. lt_prog_compiler_static=
  8621. fi
  8622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8623. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8624. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8625. $as_echo_n "(cached) " >&6
  8626. else
  8627. lt_cv_prog_compiler_c_o=no
  8628. $RM -r conftest 2>/dev/null
  8629. mkdir conftest
  8630. cd conftest
  8631. mkdir out
  8632. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8633. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8634. # Insert the option either (1) after the last *FLAGS variable, or
  8635. # (2) before a word containing "conftest.", or (3) at the end.
  8636. # Note that $ac_compile itself does not contain backslashes and begins
  8637. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8638. lt_compile=`echo "$ac_compile" | $SED \
  8639. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8640. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8641. -e 's:$: $lt_compiler_flag:'`
  8642. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8643. (eval "$lt_compile" 2>out/conftest.err)
  8644. ac_status=$?
  8645. cat out/conftest.err >&5
  8646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8647. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8648. then
  8649. # The compiler can only warn and ignore the option if not recognized
  8650. # So say no if there are warnings
  8651. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8652. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8653. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8654. lt_cv_prog_compiler_c_o=yes
  8655. fi
  8656. fi
  8657. chmod u+w . 2>&5
  8658. $RM conftest*
  8659. # SGI C++ compiler will create directory out/ii_files/ for
  8660. # template instantiation
  8661. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8662. $RM out/* && rmdir out
  8663. cd ..
  8664. $RM -r conftest
  8665. $RM conftest*
  8666. fi
  8667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8668. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8670. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8671. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8672. $as_echo_n "(cached) " >&6
  8673. else
  8674. lt_cv_prog_compiler_c_o=no
  8675. $RM -r conftest 2>/dev/null
  8676. mkdir conftest
  8677. cd conftest
  8678. mkdir out
  8679. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8680. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8681. # Insert the option either (1) after the last *FLAGS variable, or
  8682. # (2) before a word containing "conftest.", or (3) at the end.
  8683. # Note that $ac_compile itself does not contain backslashes and begins
  8684. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8685. lt_compile=`echo "$ac_compile" | $SED \
  8686. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8687. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8688. -e 's:$: $lt_compiler_flag:'`
  8689. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8690. (eval "$lt_compile" 2>out/conftest.err)
  8691. ac_status=$?
  8692. cat out/conftest.err >&5
  8693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8694. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8695. then
  8696. # The compiler can only warn and ignore the option if not recognized
  8697. # So say no if there are warnings
  8698. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8699. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8700. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8701. lt_cv_prog_compiler_c_o=yes
  8702. fi
  8703. fi
  8704. chmod u+w . 2>&5
  8705. $RM conftest*
  8706. # SGI C++ compiler will create directory out/ii_files/ for
  8707. # template instantiation
  8708. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8709. $RM out/* && rmdir out
  8710. cd ..
  8711. $RM -r conftest
  8712. $RM conftest*
  8713. fi
  8714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8715. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8716. hard_links=nottested
  8717. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8718. # do not overwrite the value of need_locks provided by the user
  8719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8720. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8721. hard_links=yes
  8722. $RM conftest*
  8723. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8724. touch conftest.a
  8725. ln conftest.a conftest.b 2>&5 || hard_links=no
  8726. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8728. $as_echo "$hard_links" >&6; }
  8729. if test no = "$hard_links"; then
  8730. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8731. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8732. need_locks=warn
  8733. fi
  8734. else
  8735. need_locks=no
  8736. fi
  8737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8738. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8739. runpath_var=
  8740. allow_undefined_flag=
  8741. always_export_symbols=no
  8742. archive_cmds=
  8743. archive_expsym_cmds=
  8744. compiler_needs_object=no
  8745. enable_shared_with_static_runtimes=no
  8746. export_dynamic_flag_spec=
  8747. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8748. hardcode_automatic=no
  8749. hardcode_direct=no
  8750. hardcode_direct_absolute=no
  8751. hardcode_libdir_flag_spec=
  8752. hardcode_libdir_separator=
  8753. hardcode_minus_L=no
  8754. hardcode_shlibpath_var=unsupported
  8755. inherit_rpath=no
  8756. link_all_deplibs=unknown
  8757. module_cmds=
  8758. module_expsym_cmds=
  8759. old_archive_from_new_cmds=
  8760. old_archive_from_expsyms_cmds=
  8761. thread_safe_flag_spec=
  8762. whole_archive_flag_spec=
  8763. # include_expsyms should be a list of space-separated symbols to be *always*
  8764. # included in the symbol list
  8765. include_expsyms=
  8766. # exclude_expsyms can be an extended regexp of symbols to exclude
  8767. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8768. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8769. # as well as any symbol that contains 'd'.
  8770. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8771. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8772. # platforms (ab)use it in PIC code, but their linkers get confused if
  8773. # the symbol is explicitly referenced. Since portable code cannot
  8774. # rely on this symbol name, it's probably fine to never include it in
  8775. # preloaded symbol tables.
  8776. # Exclude shared library initialization/finalization symbols.
  8777. extract_expsyms_cmds=
  8778. case $host_os in
  8779. cygwin* | mingw* | pw32* | cegcc*)
  8780. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8781. # When not using gcc, we currently assume that we are using
  8782. # Microsoft Visual C++.
  8783. if test yes != "$GCC"; then
  8784. with_gnu_ld=no
  8785. fi
  8786. ;;
  8787. interix*)
  8788. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8789. with_gnu_ld=yes
  8790. ;;
  8791. openbsd* | bitrig*)
  8792. with_gnu_ld=no
  8793. ;;
  8794. esac
  8795. ld_shlibs=yes
  8796. # On some targets, GNU ld is compatible enough with the native linker
  8797. # that we're better off using the native interface for both.
  8798. lt_use_gnu_ld_interface=no
  8799. if test yes = "$with_gnu_ld"; then
  8800. case $host_os in
  8801. aix*)
  8802. # The AIX port of GNU ld has always aspired to compatibility
  8803. # with the native linker. However, as the warning in the GNU ld
  8804. # block says, versions before 2.19.5* couldn't really create working
  8805. # shared libraries, regardless of the interface used.
  8806. case `$LD -v 2>&1` in
  8807. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8808. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8809. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8810. *)
  8811. lt_use_gnu_ld_interface=yes
  8812. ;;
  8813. esac
  8814. ;;
  8815. *)
  8816. lt_use_gnu_ld_interface=yes
  8817. ;;
  8818. esac
  8819. fi
  8820. if test yes = "$lt_use_gnu_ld_interface"; then
  8821. # If archive_cmds runs LD, not CC, wlarc should be empty
  8822. wlarc='$wl'
  8823. # Set some defaults for GNU ld with shared library support. These
  8824. # are reset later if shared libraries are not supported. Putting them
  8825. # here allows them to be overridden if necessary.
  8826. runpath_var=LD_RUN_PATH
  8827. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8828. export_dynamic_flag_spec='$wl--export-dynamic'
  8829. # ancient GNU ld didn't support --whole-archive et. al.
  8830. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8831. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8832. else
  8833. whole_archive_flag_spec=
  8834. fi
  8835. supports_anon_versioning=no
  8836. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  8837. *GNU\ gold*) supports_anon_versioning=yes ;;
  8838. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8839. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8840. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8841. *\ 2.11.*) ;; # other 2.11 versions
  8842. *) supports_anon_versioning=yes ;;
  8843. esac
  8844. # See if GNU ld supports shared libraries.
  8845. case $host_os in
  8846. aix[3-9]*)
  8847. # On AIX/PPC, the GNU linker is very broken
  8848. if test ia64 != "$host_cpu"; then
  8849. ld_shlibs=no
  8850. cat <<_LT_EOF 1>&2
  8851. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8852. *** to be unable to reliably create shared libraries on AIX.
  8853. *** Therefore, libtool is disabling shared libraries support. If you
  8854. *** really care for shared libraries, you may want to install binutils
  8855. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8856. *** You will then need to restart the configuration process.
  8857. _LT_EOF
  8858. fi
  8859. ;;
  8860. amigaos*)
  8861. case $host_cpu in
  8862. powerpc)
  8863. # see comment about AmigaOS4 .so support
  8864. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8865. archive_expsym_cmds=''
  8866. ;;
  8867. m68k)
  8868. 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)'
  8869. hardcode_libdir_flag_spec='-L$libdir'
  8870. hardcode_minus_L=yes
  8871. ;;
  8872. esac
  8873. ;;
  8874. beos*)
  8875. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8876. allow_undefined_flag=unsupported
  8877. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8878. # support --undefined. This deserves some investigation. FIXME
  8879. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8880. else
  8881. ld_shlibs=no
  8882. fi
  8883. ;;
  8884. cygwin* | mingw* | pw32* | cegcc*)
  8885. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8886. # as there is no search path for DLLs.
  8887. hardcode_libdir_flag_spec='-L$libdir'
  8888. export_dynamic_flag_spec='$wl--export-all-symbols'
  8889. allow_undefined_flag=unsupported
  8890. always_export_symbols=no
  8891. enable_shared_with_static_runtimes=yes
  8892. 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'
  8893. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8894. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8895. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8896. # If the export-symbols file already is a .def file, use it as
  8897. # is; otherwise, prepend EXPORTS...
  8898. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8899. cp $export_symbols $output_objdir/$soname.def;
  8900. else
  8901. echo EXPORTS > $output_objdir/$soname.def;
  8902. cat $export_symbols >> $output_objdir/$soname.def;
  8903. fi~
  8904. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8905. else
  8906. ld_shlibs=no
  8907. fi
  8908. ;;
  8909. haiku*)
  8910. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8911. link_all_deplibs=yes
  8912. ;;
  8913. os2*)
  8914. hardcode_libdir_flag_spec='-L$libdir'
  8915. hardcode_minus_L=yes
  8916. allow_undefined_flag=unsupported
  8917. shrext_cmds=.dll
  8918. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8919. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8920. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8921. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8922. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8923. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8924. emximp -o $lib $output_objdir/$libname.def'
  8925. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8926. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8927. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8928. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8929. prefix_cmds="$SED"~
  8930. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8931. prefix_cmds="$prefix_cmds -e 1d";
  8932. fi~
  8933. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8934. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8935. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8936. emximp -o $lib $output_objdir/$libname.def'
  8937. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8938. enable_shared_with_static_runtimes=yes
  8939. ;;
  8940. interix[3-9]*)
  8941. hardcode_direct=no
  8942. hardcode_shlibpath_var=no
  8943. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8944. export_dynamic_flag_spec='$wl-E'
  8945. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8946. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8947. # default) and relocated if they conflict, which is a slow very memory
  8948. # consuming and fragmenting process. To avoid this, we pick a random,
  8949. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8950. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8951. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8952. archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8953. ;;
  8954. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8955. tmp_diet=no
  8956. if test linux-dietlibc = "$host_os"; then
  8957. case $cc_basename in
  8958. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8959. esac
  8960. fi
  8961. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8962. && test no = "$tmp_diet"
  8963. then
  8964. tmp_addflag=' $pic_flag'
  8965. tmp_sharedflag='-shared'
  8966. case $cc_basename,$host_cpu in
  8967. pgcc*) # Portland Group C compiler
  8968. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8969. tmp_addflag=' $pic_flag'
  8970. ;;
  8971. pgf77* | pgf90* | pgf95* | pgfortran*)
  8972. # Portland Group f77 and f90 compilers
  8973. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8974. tmp_addflag=' $pic_flag -Mnomain' ;;
  8975. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8976. tmp_addflag=' -i_dynamic' ;;
  8977. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8978. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8979. ifc* | ifort*) # Intel Fortran compiler
  8980. tmp_addflag=' -nofor_main' ;;
  8981. lf95*) # Lahey Fortran 8.1
  8982. whole_archive_flag_spec=
  8983. tmp_sharedflag='--shared' ;;
  8984. nagfor*) # NAGFOR 5.3
  8985. tmp_sharedflag='-Wl,-shared' ;;
  8986. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8987. tmp_sharedflag='-qmkshrobj'
  8988. tmp_addflag= ;;
  8989. nvcc*) # Cuda Compiler Driver 2.2
  8990. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8991. compiler_needs_object=yes
  8992. ;;
  8993. esac
  8994. case `$CC -V 2>&1 | sed 5q` in
  8995. *Sun\ C*) # Sun C 5.9
  8996. whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8997. compiler_needs_object=yes
  8998. tmp_sharedflag='-G' ;;
  8999. *Sun\ F*) # Sun Fortran 8.3
  9000. tmp_sharedflag='-G' ;;
  9001. esac
  9002. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9003. if test yes = "$supports_anon_versioning"; then
  9004. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9005. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9006. echo "local: *; };" >> $output_objdir/$libname.ver~
  9007. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  9008. fi
  9009. case $cc_basename in
  9010. tcc*)
  9011. export_dynamic_flag_spec='-rdynamic'
  9012. ;;
  9013. xlf* | bgf* | bgxlf* | mpixlf*)
  9014. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9015. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9016. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9017. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9018. if test yes = "$supports_anon_versioning"; then
  9019. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9020. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9021. echo "local: *; };" >> $output_objdir/$libname.ver~
  9022. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9023. fi
  9024. ;;
  9025. esac
  9026. else
  9027. ld_shlibs=no
  9028. fi
  9029. ;;
  9030. netbsd*)
  9031. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9032. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9033. wlarc=
  9034. else
  9035. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9036. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9037. fi
  9038. ;;
  9039. solaris*)
  9040. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9041. ld_shlibs=no
  9042. cat <<_LT_EOF 1>&2
  9043. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9044. *** create shared libraries on Solaris systems. Therefore, libtool
  9045. *** is disabling shared libraries support. We urge you to upgrade GNU
  9046. *** binutils to release 2.9.1 or newer. Another option is to modify
  9047. *** your PATH or compiler configuration so that the native linker is
  9048. *** used, and then restart.
  9049. _LT_EOF
  9050. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9051. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9052. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9053. else
  9054. ld_shlibs=no
  9055. fi
  9056. ;;
  9057. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9058. case `$LD -v 2>&1` in
  9059. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9060. ld_shlibs=no
  9061. cat <<_LT_EOF 1>&2
  9062. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  9063. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9064. *** is disabling shared libraries support. We urge you to upgrade GNU
  9065. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9066. *** your PATH or compiler configuration so that the native linker is
  9067. *** used, and then restart.
  9068. _LT_EOF
  9069. ;;
  9070. *)
  9071. # For security reasons, it is highly recommended that you always
  9072. # use absolute paths for naming shared libraries, and exclude the
  9073. # DT_RUNPATH tag from executables and libraries. But doing so
  9074. # requires that you compile everything twice, which is a pain.
  9075. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9076. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9077. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9078. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9079. else
  9080. ld_shlibs=no
  9081. fi
  9082. ;;
  9083. esac
  9084. ;;
  9085. sunos4*)
  9086. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9087. wlarc=
  9088. hardcode_direct=yes
  9089. hardcode_shlibpath_var=no
  9090. ;;
  9091. *)
  9092. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9093. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9094. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9095. else
  9096. ld_shlibs=no
  9097. fi
  9098. ;;
  9099. esac
  9100. if test no = "$ld_shlibs"; then
  9101. runpath_var=
  9102. hardcode_libdir_flag_spec=
  9103. export_dynamic_flag_spec=
  9104. whole_archive_flag_spec=
  9105. fi
  9106. else
  9107. # PORTME fill in a description of your system's linker (not GNU ld)
  9108. case $host_os in
  9109. aix3*)
  9110. allow_undefined_flag=unsupported
  9111. always_export_symbols=yes
  9112. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  9113. # Note: this linker hardcodes the directories in LIBPATH if there
  9114. # are no directories specified by -L.
  9115. hardcode_minus_L=yes
  9116. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  9117. # Neither direct hardcoding nor static linking is supported with a
  9118. # broken collect2.
  9119. hardcode_direct=unsupported
  9120. fi
  9121. ;;
  9122. aix[4-9]*)
  9123. if test ia64 = "$host_cpu"; then
  9124. # On IA64, the linker does run time linking by default, so we don't
  9125. # have to do anything special.
  9126. aix_use_runtimelinking=no
  9127. exp_sym_flag='-Bexport'
  9128. no_entry_flag=
  9129. else
  9130. # If we're using GNU nm, then we don't want the "-C" option.
  9131. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  9132. # Without the "-l" option, or with the "-B" option, AIX nm treats
  9133. # weak defined symbols like other global defined symbols, whereas
  9134. # GNU nm marks them as "W".
  9135. # While the 'weak' keyword is ignored in the Export File, we need
  9136. # it in the Import File for the 'aix-soname' feature, so we have
  9137. # to replace the "-B" option with "-P" for AIX nm.
  9138. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9139. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  9140. else
  9141. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  9142. fi
  9143. aix_use_runtimelinking=no
  9144. # Test if we are trying to use run time linking or normal
  9145. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9146. # have runtime linking enabled, and use it for executables.
  9147. # For shared libraries, we enable/disable runtime linking
  9148. # depending on the kind of the shared library created -
  9149. # when "with_aix_soname,aix_use_runtimelinking" is:
  9150. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  9151. # "aix,yes" lib.so shared, rtl:yes, for executables
  9152. # lib.a static archive
  9153. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  9154. # lib.a(lib.so.V) shared, rtl:no, for executables
  9155. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  9156. # lib.a(lib.so.V) shared, rtl:no
  9157. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  9158. # lib.a static archive
  9159. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9160. for ld_flag in $LDFLAGS; do
  9161. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  9162. aix_use_runtimelinking=yes
  9163. break
  9164. fi
  9165. done
  9166. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9167. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9168. # so we don't have lib.a shared libs to link our executables.
  9169. # We have to force runtime linking in this case.
  9170. aix_use_runtimelinking=yes
  9171. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9172. fi
  9173. ;;
  9174. esac
  9175. exp_sym_flag='-bexport'
  9176. no_entry_flag='-bnoentry'
  9177. fi
  9178. # When large executables or shared objects are built, AIX ld can
  9179. # have problems creating the table of contents. If linking a library
  9180. # or program results in "error TOC overflow" add -mminimal-toc to
  9181. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9182. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9183. archive_cmds=''
  9184. hardcode_direct=yes
  9185. hardcode_direct_absolute=yes
  9186. hardcode_libdir_separator=':'
  9187. link_all_deplibs=yes
  9188. file_list_spec='$wl-f,'
  9189. case $with_aix_soname,$aix_use_runtimelinking in
  9190. aix,*) ;; # traditional, no import file
  9191. svr4,* | *,yes) # use import file
  9192. # The Import File defines what to hardcode.
  9193. hardcode_direct=no
  9194. hardcode_direct_absolute=no
  9195. ;;
  9196. esac
  9197. if test yes = "$GCC"; then
  9198. case $host_os in aix4.[012]|aix4.[012].*)
  9199. # We only want to do this on AIX 4.2 and lower, the check
  9200. # below for broken collect2 doesn't work under 4.3+
  9201. collect2name=`$CC -print-prog-name=collect2`
  9202. if test -f "$collect2name" &&
  9203. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9204. then
  9205. # We have reworked collect2
  9206. :
  9207. else
  9208. # We have old collect2
  9209. hardcode_direct=unsupported
  9210. # It fails to find uninstalled libraries when the uninstalled
  9211. # path is not listed in the libpath. Setting hardcode_minus_L
  9212. # to unsupported forces relinking
  9213. hardcode_minus_L=yes
  9214. hardcode_libdir_flag_spec='-L$libdir'
  9215. hardcode_libdir_separator=
  9216. fi
  9217. ;;
  9218. esac
  9219. shared_flag='-shared'
  9220. if test yes = "$aix_use_runtimelinking"; then
  9221. shared_flag="$shared_flag "'$wl-G'
  9222. fi
  9223. # Need to ensure runtime linking is disabled for the traditional
  9224. # shared library, or the linker may eventually find shared libraries
  9225. # /with/ Import File - we do not want to mix them.
  9226. shared_flag_aix='-shared'
  9227. shared_flag_svr4='-shared $wl-G'
  9228. else
  9229. # not using gcc
  9230. if test ia64 = "$host_cpu"; then
  9231. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9232. # chokes on -Wl,-G. The following line is correct:
  9233. shared_flag='-G'
  9234. else
  9235. if test yes = "$aix_use_runtimelinking"; then
  9236. shared_flag='$wl-G'
  9237. else
  9238. shared_flag='$wl-bM:SRE'
  9239. fi
  9240. shared_flag_aix='$wl-bM:SRE'
  9241. shared_flag_svr4='$wl-G'
  9242. fi
  9243. fi
  9244. export_dynamic_flag_spec='$wl-bexpall'
  9245. # It seems that -bexpall does not export symbols beginning with
  9246. # underscore (_), so it is better to generate a list of symbols to export.
  9247. always_export_symbols=yes
  9248. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9249. # Warning - without using the other runtime loading flags (-brtl),
  9250. # -berok will link without error, but may produce a broken library.
  9251. allow_undefined_flag='-berok'
  9252. # Determine the default libpath from the value encoded in an
  9253. # empty executable.
  9254. if test set = "${lt_cv_aix_libpath+set}"; then
  9255. aix_libpath=$lt_cv_aix_libpath
  9256. else
  9257. if ${lt_cv_aix_libpath_+:} false; then :
  9258. $as_echo_n "(cached) " >&6
  9259. else
  9260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9261. /* end confdefs.h. */
  9262. int
  9263. main ()
  9264. {
  9265. ;
  9266. return 0;
  9267. }
  9268. _ACEOF
  9269. if ac_fn_c_try_link "$LINENO"; then :
  9270. lt_aix_libpath_sed='
  9271. /Import File Strings/,/^$/ {
  9272. /^0/ {
  9273. s/^0 *\([^ ]*\) *$/\1/
  9274. p
  9275. }
  9276. }'
  9277. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9278. # Check for a 64-bit object if we didn't find anything.
  9279. if test -z "$lt_cv_aix_libpath_"; then
  9280. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9281. fi
  9282. fi
  9283. rm -f core conftest.err conftest.$ac_objext \
  9284. conftest$ac_exeext conftest.$ac_ext
  9285. if test -z "$lt_cv_aix_libpath_"; then
  9286. lt_cv_aix_libpath_=/usr/lib:/lib
  9287. fi
  9288. fi
  9289. aix_libpath=$lt_cv_aix_libpath_
  9290. fi
  9291. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9292. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  9293. else
  9294. if test ia64 = "$host_cpu"; then
  9295. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9296. allow_undefined_flag="-z nodefs"
  9297. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
  9298. else
  9299. # Determine the default libpath from the value encoded in an
  9300. # empty executable.
  9301. if test set = "${lt_cv_aix_libpath+set}"; then
  9302. aix_libpath=$lt_cv_aix_libpath
  9303. else
  9304. if ${lt_cv_aix_libpath_+:} false; then :
  9305. $as_echo_n "(cached) " >&6
  9306. else
  9307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9308. /* end confdefs.h. */
  9309. int
  9310. main ()
  9311. {
  9312. ;
  9313. return 0;
  9314. }
  9315. _ACEOF
  9316. if ac_fn_c_try_link "$LINENO"; then :
  9317. lt_aix_libpath_sed='
  9318. /Import File Strings/,/^$/ {
  9319. /^0/ {
  9320. s/^0 *\([^ ]*\) *$/\1/
  9321. p
  9322. }
  9323. }'
  9324. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9325. # Check for a 64-bit object if we didn't find anything.
  9326. if test -z "$lt_cv_aix_libpath_"; then
  9327. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9328. fi
  9329. fi
  9330. rm -f core conftest.err conftest.$ac_objext \
  9331. conftest$ac_exeext conftest.$ac_ext
  9332. if test -z "$lt_cv_aix_libpath_"; then
  9333. lt_cv_aix_libpath_=/usr/lib:/lib
  9334. fi
  9335. fi
  9336. aix_libpath=$lt_cv_aix_libpath_
  9337. fi
  9338. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9339. # Warning - without using the other run time loading flags,
  9340. # -berok will link without error, but may produce a broken library.
  9341. no_undefined_flag=' $wl-bernotok'
  9342. allow_undefined_flag=' $wl-berok'
  9343. if test yes = "$with_gnu_ld"; then
  9344. # We only use this code for GNU lds that support --whole-archive.
  9345. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9346. else
  9347. # Exported symbols can be pulled into shared objects from archives
  9348. whole_archive_flag_spec='$convenience'
  9349. fi
  9350. archive_cmds_need_lc=yes
  9351. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9352. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9353. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9354. if test svr4 != "$with_aix_soname"; then
  9355. # This is similar to how AIX traditionally builds its shared libraries.
  9356. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  9357. fi
  9358. if test aix != "$with_aix_soname"; then
  9359. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  9360. else
  9361. # used by -dlpreopen to get the symbols
  9362. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9363. fi
  9364. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9365. fi
  9366. fi
  9367. ;;
  9368. amigaos*)
  9369. case $host_cpu in
  9370. powerpc)
  9371. # see comment about AmigaOS4 .so support
  9372. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9373. archive_expsym_cmds=''
  9374. ;;
  9375. m68k)
  9376. 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)'
  9377. hardcode_libdir_flag_spec='-L$libdir'
  9378. hardcode_minus_L=yes
  9379. ;;
  9380. esac
  9381. ;;
  9382. bsdi[45]*)
  9383. export_dynamic_flag_spec=-rdynamic
  9384. ;;
  9385. cygwin* | mingw* | pw32* | cegcc*)
  9386. # When not using gcc, we currently assume that we are using
  9387. # Microsoft Visual C++.
  9388. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9389. # no search path for DLLs.
  9390. case $cc_basename in
  9391. cl*)
  9392. # Native MSVC
  9393. hardcode_libdir_flag_spec=' '
  9394. allow_undefined_flag=unsupported
  9395. always_export_symbols=yes
  9396. file_list_spec='@'
  9397. # Tell ltmain to make .lib files, not .a files.
  9398. libext=lib
  9399. # Tell ltmain to make .dll files, not .so files.
  9400. shrext_cmds=.dll
  9401. # FIXME: Setting linknames here is a bad hack.
  9402. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9403. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9404. cp "$export_symbols" "$output_objdir/$soname.def";
  9405. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9406. else
  9407. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9408. fi~
  9409. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9410. linknames='
  9411. # The linker will not automatically build a static lib if we build a DLL.
  9412. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9413. enable_shared_with_static_runtimes=yes
  9414. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9415. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9416. # Don't use ranlib
  9417. old_postinstall_cmds='chmod 644 $oldlib'
  9418. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9419. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9420. case $lt_outputfile in
  9421. *.exe|*.EXE) ;;
  9422. *)
  9423. lt_outputfile=$lt_outputfile.exe
  9424. lt_tool_outputfile=$lt_tool_outputfile.exe
  9425. ;;
  9426. esac~
  9427. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9428. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9429. $RM "$lt_outputfile.manifest";
  9430. fi'
  9431. ;;
  9432. *)
  9433. # Assume MSVC wrapper
  9434. hardcode_libdir_flag_spec=' '
  9435. allow_undefined_flag=unsupported
  9436. # Tell ltmain to make .lib files, not .a files.
  9437. libext=lib
  9438. # Tell ltmain to make .dll files, not .so files.
  9439. shrext_cmds=.dll
  9440. # FIXME: Setting linknames here is a bad hack.
  9441. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9442. # The linker will automatically build a .lib file if we build a DLL.
  9443. old_archive_from_new_cmds='true'
  9444. # FIXME: Should let the user specify the lib program.
  9445. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9446. enable_shared_with_static_runtimes=yes
  9447. ;;
  9448. esac
  9449. ;;
  9450. darwin* | rhapsody*)
  9451. archive_cmds_need_lc=no
  9452. hardcode_direct=no
  9453. hardcode_automatic=yes
  9454. hardcode_shlibpath_var=unsupported
  9455. if test yes = "$lt_cv_ld_force_load"; then
  9456. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  9457. else
  9458. whole_archive_flag_spec=''
  9459. fi
  9460. link_all_deplibs=yes
  9461. allow_undefined_flag=$_lt_dar_allow_undefined
  9462. case $cc_basename in
  9463. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9464. *) _lt_dar_can_shared=$GCC ;;
  9465. esac
  9466. if test yes = "$_lt_dar_can_shared"; then
  9467. output_verbose_link_cmd=func_echo_all
  9468. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9469. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9470. archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
  9471. module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
  9472. else
  9473. ld_shlibs=no
  9474. fi
  9475. ;;
  9476. dgux*)
  9477. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9478. hardcode_libdir_flag_spec='-L$libdir'
  9479. hardcode_shlibpath_var=no
  9480. ;;
  9481. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9482. # support. Future versions do this automatically, but an explicit c++rt0.o
  9483. # does not break anything, and helps significantly (at the cost of a little
  9484. # extra space).
  9485. freebsd2.2*)
  9486. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9487. hardcode_libdir_flag_spec='-R$libdir'
  9488. hardcode_direct=yes
  9489. hardcode_shlibpath_var=no
  9490. ;;
  9491. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9492. freebsd2.*)
  9493. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9494. hardcode_direct=yes
  9495. hardcode_minus_L=yes
  9496. hardcode_shlibpath_var=no
  9497. ;;
  9498. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9499. freebsd* | dragonfly*)
  9500. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9501. hardcode_libdir_flag_spec='-R$libdir'
  9502. hardcode_direct=yes
  9503. hardcode_shlibpath_var=no
  9504. ;;
  9505. hpux9*)
  9506. if test yes = "$GCC"; then
  9507. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9508. else
  9509. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9510. fi
  9511. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9512. hardcode_libdir_separator=:
  9513. hardcode_direct=yes
  9514. # hardcode_minus_L: Not really in the search PATH,
  9515. # but as the default location of the library.
  9516. hardcode_minus_L=yes
  9517. export_dynamic_flag_spec='$wl-E'
  9518. ;;
  9519. hpux10*)
  9520. if test yes,no = "$GCC,$with_gnu_ld"; then
  9521. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9522. else
  9523. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9524. fi
  9525. if test no = "$with_gnu_ld"; then
  9526. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9527. hardcode_libdir_separator=:
  9528. hardcode_direct=yes
  9529. hardcode_direct_absolute=yes
  9530. export_dynamic_flag_spec='$wl-E'
  9531. # hardcode_minus_L: Not really in the search PATH,
  9532. # but as the default location of the library.
  9533. hardcode_minus_L=yes
  9534. fi
  9535. ;;
  9536. hpux11*)
  9537. if test yes,no = "$GCC,$with_gnu_ld"; then
  9538. case $host_cpu in
  9539. hppa*64*)
  9540. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9541. ;;
  9542. ia64*)
  9543. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9544. ;;
  9545. *)
  9546. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9547. ;;
  9548. esac
  9549. else
  9550. case $host_cpu in
  9551. hppa*64*)
  9552. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9553. ;;
  9554. ia64*)
  9555. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9556. ;;
  9557. *)
  9558. # Older versions of the 11.00 compiler do not understand -b yet
  9559. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9561. $as_echo_n "checking if $CC understands -b... " >&6; }
  9562. if ${lt_cv_prog_compiler__b+:} false; then :
  9563. $as_echo_n "(cached) " >&6
  9564. else
  9565. lt_cv_prog_compiler__b=no
  9566. save_LDFLAGS=$LDFLAGS
  9567. LDFLAGS="$LDFLAGS -b"
  9568. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9569. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9570. # The linker can only warn and ignore the option if not recognized
  9571. # So say no if there are warnings
  9572. if test -s conftest.err; then
  9573. # Append any errors to the config.log.
  9574. cat conftest.err 1>&5
  9575. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9576. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9577. if diff conftest.exp conftest.er2 >/dev/null; then
  9578. lt_cv_prog_compiler__b=yes
  9579. fi
  9580. else
  9581. lt_cv_prog_compiler__b=yes
  9582. fi
  9583. fi
  9584. $RM -r conftest*
  9585. LDFLAGS=$save_LDFLAGS
  9586. fi
  9587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9588. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9589. if test yes = "$lt_cv_prog_compiler__b"; then
  9590. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9591. else
  9592. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9593. fi
  9594. ;;
  9595. esac
  9596. fi
  9597. if test no = "$with_gnu_ld"; then
  9598. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9599. hardcode_libdir_separator=:
  9600. case $host_cpu in
  9601. hppa*64*|ia64*)
  9602. hardcode_direct=no
  9603. hardcode_shlibpath_var=no
  9604. ;;
  9605. *)
  9606. hardcode_direct=yes
  9607. hardcode_direct_absolute=yes
  9608. export_dynamic_flag_spec='$wl-E'
  9609. # hardcode_minus_L: Not really in the search PATH,
  9610. # but as the default location of the library.
  9611. hardcode_minus_L=yes
  9612. ;;
  9613. esac
  9614. fi
  9615. ;;
  9616. irix5* | irix6* | nonstopux*)
  9617. if test yes = "$GCC"; then
  9618. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9619. # Try to use the -exported_symbol ld option, if it does not
  9620. # work, assume that -exports_file does not work either and
  9621. # implicitly export all symbols.
  9622. # This should be the same for all languages, so no per-tag cache variable.
  9623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9624. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9625. if ${lt_cv_irix_exported_symbol+:} false; then :
  9626. $as_echo_n "(cached) " >&6
  9627. else
  9628. save_LDFLAGS=$LDFLAGS
  9629. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9631. /* end confdefs.h. */
  9632. int foo (void) { return 0; }
  9633. _ACEOF
  9634. if ac_fn_c_try_link "$LINENO"; then :
  9635. lt_cv_irix_exported_symbol=yes
  9636. else
  9637. lt_cv_irix_exported_symbol=no
  9638. fi
  9639. rm -f core conftest.err conftest.$ac_objext \
  9640. conftest$ac_exeext conftest.$ac_ext
  9641. LDFLAGS=$save_LDFLAGS
  9642. fi
  9643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9644. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9645. if test yes = "$lt_cv_irix_exported_symbol"; then
  9646. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
  9647. fi
  9648. else
  9649. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9650. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
  9651. fi
  9652. archive_cmds_need_lc='no'
  9653. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9654. hardcode_libdir_separator=:
  9655. inherit_rpath=yes
  9656. link_all_deplibs=yes
  9657. ;;
  9658. linux*)
  9659. case $cc_basename in
  9660. tcc*)
  9661. # Fabrice Bellard et al's Tiny C Compiler
  9662. ld_shlibs=yes
  9663. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9664. ;;
  9665. esac
  9666. ;;
  9667. netbsd*)
  9668. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9669. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9670. else
  9671. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9672. fi
  9673. hardcode_libdir_flag_spec='-R$libdir'
  9674. hardcode_direct=yes
  9675. hardcode_shlibpath_var=no
  9676. ;;
  9677. newsos6)
  9678. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9679. hardcode_direct=yes
  9680. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9681. hardcode_libdir_separator=:
  9682. hardcode_shlibpath_var=no
  9683. ;;
  9684. *nto* | *qnx*)
  9685. ;;
  9686. openbsd* | bitrig*)
  9687. if test -f /usr/libexec/ld.so; then
  9688. hardcode_direct=yes
  9689. hardcode_shlibpath_var=no
  9690. hardcode_direct_absolute=yes
  9691. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9692. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9693. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9694. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9695. export_dynamic_flag_spec='$wl-E'
  9696. else
  9697. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9698. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9699. fi
  9700. else
  9701. ld_shlibs=no
  9702. fi
  9703. ;;
  9704. os2*)
  9705. hardcode_libdir_flag_spec='-L$libdir'
  9706. hardcode_minus_L=yes
  9707. allow_undefined_flag=unsupported
  9708. shrext_cmds=.dll
  9709. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9710. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9711. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9712. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9713. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9714. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9715. emximp -o $lib $output_objdir/$libname.def'
  9716. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9717. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9718. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9719. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9720. prefix_cmds="$SED"~
  9721. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9722. prefix_cmds="$prefix_cmds -e 1d";
  9723. fi~
  9724. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9725. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9726. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9727. emximp -o $lib $output_objdir/$libname.def'
  9728. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9729. enable_shared_with_static_runtimes=yes
  9730. ;;
  9731. osf3*)
  9732. if test yes = "$GCC"; then
  9733. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9734. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9735. else
  9736. allow_undefined_flag=' -expect_unresolved \*'
  9737. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9738. fi
  9739. archive_cmds_need_lc='no'
  9740. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9741. hardcode_libdir_separator=:
  9742. ;;
  9743. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9744. if test yes = "$GCC"; then
  9745. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9746. archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9747. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9748. else
  9749. allow_undefined_flag=' -expect_unresolved \*'
  9750. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9751. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  9752. $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
  9753. # Both c and cxx compiler support -rpath directly
  9754. hardcode_libdir_flag_spec='-rpath $libdir'
  9755. fi
  9756. archive_cmds_need_lc='no'
  9757. hardcode_libdir_separator=:
  9758. ;;
  9759. solaris*)
  9760. no_undefined_flag=' -z defs'
  9761. if test yes = "$GCC"; then
  9762. wlarc='$wl'
  9763. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9764. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9765. $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9766. else
  9767. case `$CC -V 2>&1` in
  9768. *"Compilers 5.0"*)
  9769. wlarc=''
  9770. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9771. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9772. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9773. ;;
  9774. *)
  9775. wlarc='$wl'
  9776. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9777. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9778. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9779. ;;
  9780. esac
  9781. fi
  9782. hardcode_libdir_flag_spec='-R$libdir'
  9783. hardcode_shlibpath_var=no
  9784. case $host_os in
  9785. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9786. *)
  9787. # The compiler driver will combine and reorder linker options,
  9788. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9789. # but is careful enough not to reorder.
  9790. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9791. if test yes = "$GCC"; then
  9792. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9793. else
  9794. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9795. fi
  9796. ;;
  9797. esac
  9798. link_all_deplibs=yes
  9799. ;;
  9800. sunos4*)
  9801. if test sequent = "$host_vendor"; then
  9802. # Use $CC to link under sequent, because it throws in some extra .o
  9803. # files that make .init and .fini sections work.
  9804. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9805. else
  9806. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9807. fi
  9808. hardcode_libdir_flag_spec='-L$libdir'
  9809. hardcode_direct=yes
  9810. hardcode_minus_L=yes
  9811. hardcode_shlibpath_var=no
  9812. ;;
  9813. sysv4)
  9814. case $host_vendor in
  9815. sni)
  9816. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9817. hardcode_direct=yes # is this really true???
  9818. ;;
  9819. siemens)
  9820. ## LD is ld it makes a PLAMLIB
  9821. ## CC just makes a GrossModule.
  9822. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9823. reload_cmds='$CC -r -o $output$reload_objs'
  9824. hardcode_direct=no
  9825. ;;
  9826. motorola)
  9827. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9828. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9829. ;;
  9830. esac
  9831. runpath_var='LD_RUN_PATH'
  9832. hardcode_shlibpath_var=no
  9833. ;;
  9834. sysv4.3*)
  9835. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9836. hardcode_shlibpath_var=no
  9837. export_dynamic_flag_spec='-Bexport'
  9838. ;;
  9839. sysv4*MP*)
  9840. if test -d /usr/nec; then
  9841. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9842. hardcode_shlibpath_var=no
  9843. runpath_var=LD_RUN_PATH
  9844. hardcode_runpath_var=yes
  9845. ld_shlibs=yes
  9846. fi
  9847. ;;
  9848. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9849. no_undefined_flag='$wl-z,text'
  9850. archive_cmds_need_lc=no
  9851. hardcode_shlibpath_var=no
  9852. runpath_var='LD_RUN_PATH'
  9853. if test yes = "$GCC"; then
  9854. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9855. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9856. else
  9857. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9858. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9859. fi
  9860. ;;
  9861. sysv5* | sco3.2v5* | sco5v6*)
  9862. # Note: We CANNOT use -z defs as we might desire, because we do not
  9863. # link with -lc, and that would cause any symbols used from libc to
  9864. # always be unresolved, which means just about no library would
  9865. # ever link correctly. If we're not using GNU ld we use -z text
  9866. # though, which does catch some bad symbols but isn't as heavy-handed
  9867. # as -z defs.
  9868. no_undefined_flag='$wl-z,text'
  9869. allow_undefined_flag='$wl-z,nodefs'
  9870. archive_cmds_need_lc=no
  9871. hardcode_shlibpath_var=no
  9872. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9873. hardcode_libdir_separator=':'
  9874. link_all_deplibs=yes
  9875. export_dynamic_flag_spec='$wl-Bexport'
  9876. runpath_var='LD_RUN_PATH'
  9877. if test yes = "$GCC"; then
  9878. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9879. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9880. else
  9881. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9882. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9883. fi
  9884. ;;
  9885. uts4*)
  9886. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9887. hardcode_libdir_flag_spec='-L$libdir'
  9888. hardcode_shlibpath_var=no
  9889. ;;
  9890. *)
  9891. ld_shlibs=no
  9892. ;;
  9893. esac
  9894. if test sni = "$host_vendor"; then
  9895. case $host in
  9896. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9897. export_dynamic_flag_spec='$wl-Blargedynsym'
  9898. ;;
  9899. esac
  9900. fi
  9901. fi
  9902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9903. $as_echo "$ld_shlibs" >&6; }
  9904. test no = "$ld_shlibs" && can_build_shared=no
  9905. with_gnu_ld=$with_gnu_ld
  9906. #
  9907. # Do we need to explicitly link libc?
  9908. #
  9909. case "x$archive_cmds_need_lc" in
  9910. x|xyes)
  9911. # Assume -lc should be added
  9912. archive_cmds_need_lc=yes
  9913. if test yes,yes = "$GCC,$enable_shared"; then
  9914. case $archive_cmds in
  9915. *'~'*)
  9916. # FIXME: we may have to deal with multi-command sequences.
  9917. ;;
  9918. '$CC '*)
  9919. # Test whether the compiler implicitly links with -lc since on some
  9920. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9921. # to ld, don't add -lc before -lgcc.
  9922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9923. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9924. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9925. $as_echo_n "(cached) " >&6
  9926. else
  9927. $RM conftest*
  9928. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9929. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9930. (eval $ac_compile) 2>&5
  9931. ac_status=$?
  9932. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9933. test $ac_status = 0; } 2>conftest.err; then
  9934. soname=conftest
  9935. lib=conftest
  9936. libobjs=conftest.$ac_objext
  9937. deplibs=
  9938. wl=$lt_prog_compiler_wl
  9939. pic_flag=$lt_prog_compiler_pic
  9940. compiler_flags=-v
  9941. linker_flags=-v
  9942. verstring=
  9943. output_objdir=.
  9944. libname=conftest
  9945. lt_save_allow_undefined_flag=$allow_undefined_flag
  9946. allow_undefined_flag=
  9947. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9948. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9949. ac_status=$?
  9950. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9951. test $ac_status = 0; }
  9952. then
  9953. lt_cv_archive_cmds_need_lc=no
  9954. else
  9955. lt_cv_archive_cmds_need_lc=yes
  9956. fi
  9957. allow_undefined_flag=$lt_save_allow_undefined_flag
  9958. else
  9959. cat conftest.err 1>&5
  9960. fi
  9961. $RM conftest*
  9962. fi
  9963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9964. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9965. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9966. ;;
  9967. esac
  9968. fi
  9969. ;;
  9970. esac
  9971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9972. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9973. if test yes = "$GCC"; then
  9974. case $host_os in
  9975. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9976. *) lt_awk_arg='/^libraries:/' ;;
  9977. esac
  9978. case $host_os in
  9979. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9980. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9981. esac
  9982. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9983. case $lt_search_path_spec in
  9984. *\;*)
  9985. # if the path contains ";" then we assume it to be the separator
  9986. # otherwise default to the standard path separator (i.e. ":") - it is
  9987. # assumed that no part of a normal pathname contains ";" but that should
  9988. # okay in the real world where ";" in dirpaths is itself problematic.
  9989. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9990. ;;
  9991. *)
  9992. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9993. ;;
  9994. esac
  9995. # Ok, now we have the path, separated by spaces, we can step through it
  9996. # and add multilib dir if necessary...
  9997. lt_tmp_lt_search_path_spec=
  9998. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9999. # ...but if some path component already ends with the multilib dir we assume
  10000. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  10001. case "$lt_multi_os_dir; $lt_search_path_spec " in
  10002. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  10003. lt_multi_os_dir=
  10004. ;;
  10005. esac
  10006. for lt_sys_path in $lt_search_path_spec; do
  10007. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  10008. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  10009. elif test -n "$lt_multi_os_dir"; then
  10010. test -d "$lt_sys_path" && \
  10011. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10012. fi
  10013. done
  10014. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10015. BEGIN {RS = " "; FS = "/|\n";} {
  10016. lt_foo = "";
  10017. lt_count = 0;
  10018. for (lt_i = NF; lt_i > 0; lt_i--) {
  10019. if ($lt_i != "" && $lt_i != ".") {
  10020. if ($lt_i == "..") {
  10021. lt_count++;
  10022. } else {
  10023. if (lt_count == 0) {
  10024. lt_foo = "/" $lt_i lt_foo;
  10025. } else {
  10026. lt_count--;
  10027. }
  10028. }
  10029. }
  10030. }
  10031. if (lt_foo != "") { lt_freq[lt_foo]++; }
  10032. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10033. }'`
  10034. # AWK program above erroneously prepends '/' to C:/dos/paths
  10035. # for these hosts.
  10036. case $host_os in
  10037. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10038. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  10039. esac
  10040. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10041. else
  10042. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10043. fi
  10044. library_names_spec=
  10045. libname_spec='lib$name'
  10046. soname_spec=
  10047. shrext_cmds=.so
  10048. postinstall_cmds=
  10049. postuninstall_cmds=
  10050. finish_cmds=
  10051. finish_eval=
  10052. shlibpath_var=
  10053. shlibpath_overrides_runpath=unknown
  10054. version_type=none
  10055. dynamic_linker="$host_os ld.so"
  10056. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10057. need_lib_prefix=unknown
  10058. hardcode_into_libs=no
  10059. # when you set need_version to no, make sure it does not cause -set_version
  10060. # flags to be left without arguments
  10061. need_version=unknown
  10062. case $host_os in
  10063. aix3*)
  10064. version_type=linux # correct to gnu/linux during the next big refactor
  10065. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  10066. shlibpath_var=LIBPATH
  10067. # AIX 3 has no versioning support, so we append a major version to the name.
  10068. soname_spec='$libname$release$shared_ext$major'
  10069. ;;
  10070. aix[4-9]*)
  10071. version_type=linux # correct to gnu/linux during the next big refactor
  10072. need_lib_prefix=no
  10073. need_version=no
  10074. hardcode_into_libs=yes
  10075. if test ia64 = "$host_cpu"; then
  10076. # AIX 5 supports IA64
  10077. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  10078. shlibpath_var=LD_LIBRARY_PATH
  10079. else
  10080. # With GCC up to 2.95.x, collect2 would create an import file
  10081. # for dependence libraries. The import file would start with
  10082. # the line '#! .'. This would cause the generated library to
  10083. # depend on '.', always an invalid library. This was fixed in
  10084. # development snapshots of GCC prior to 3.0.
  10085. case $host_os in
  10086. aix4 | aix4.[01] | aix4.[01].*)
  10087. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10088. echo ' yes '
  10089. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  10090. :
  10091. else
  10092. can_build_shared=no
  10093. fi
  10094. ;;
  10095. esac
  10096. # Using Import Files as archive members, it is possible to support
  10097. # filename-based versioning of shared library archives on AIX. While
  10098. # this would work for both with and without runtime linking, it will
  10099. # prevent static linking of such archives. So we do filename-based
  10100. # shared library versioning with .so extension only, which is used
  10101. # when both runtime linking and shared linking is enabled.
  10102. # Unfortunately, runtime linking may impact performance, so we do
  10103. # not want this to be the default eventually. Also, we use the
  10104. # versioned .so libs for executables only if there is the -brtl
  10105. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  10106. # To allow for filename-based versioning support, we need to create
  10107. # libNAME.so.V as an archive file, containing:
  10108. # *) an Import File, referring to the versioned filename of the
  10109. # archive as well as the shared archive member, telling the
  10110. # bitwidth (32 or 64) of that shared object, and providing the
  10111. # list of exported symbols of that shared object, eventually
  10112. # decorated with the 'weak' keyword
  10113. # *) the shared object with the F_LOADONLY flag set, to really avoid
  10114. # it being seen by the linker.
  10115. # At run time we better use the real file rather than another symlink,
  10116. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  10117. case $with_aix_soname,$aix_use_runtimelinking in
  10118. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  10119. # soname into executable. Probably we can add versioning support to
  10120. # collect2, so additional links can be useful in future.
  10121. aix,yes) # traditional libtool
  10122. dynamic_linker='AIX unversionable lib.so'
  10123. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10124. # instead of lib<name>.a to let people know that these are not
  10125. # typical AIX shared libraries.
  10126. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10127. ;;
  10128. aix,no) # traditional AIX only
  10129. dynamic_linker='AIX lib.a(lib.so.V)'
  10130. # We preserve .a as extension for shared libraries through AIX4.2
  10131. # and later when we are not doing run time linking.
  10132. library_names_spec='$libname$release.a $libname.a'
  10133. soname_spec='$libname$release$shared_ext$major'
  10134. ;;
  10135. svr4,*) # full svr4 only
  10136. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  10137. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10138. # We do not specify a path in Import Files, so LIBPATH fires.
  10139. shlibpath_overrides_runpath=yes
  10140. ;;
  10141. *,yes) # both, prefer svr4
  10142. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  10143. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10144. # unpreferred sharedlib libNAME.a needs extra handling
  10145. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  10146. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  10147. # We do not specify a path in Import Files, so LIBPATH fires.
  10148. shlibpath_overrides_runpath=yes
  10149. ;;
  10150. *,no) # both, prefer aix
  10151. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  10152. library_names_spec='$libname$release.a $libname.a'
  10153. soname_spec='$libname$release$shared_ext$major'
  10154. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  10155. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  10156. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  10157. ;;
  10158. esac
  10159. shlibpath_var=LIBPATH
  10160. fi
  10161. ;;
  10162. amigaos*)
  10163. case $host_cpu in
  10164. powerpc)
  10165. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10166. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10167. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10168. ;;
  10169. m68k)
  10170. library_names_spec='$libname.ixlibrary $libname.a'
  10171. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10172. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  10173. ;;
  10174. esac
  10175. ;;
  10176. beos*)
  10177. library_names_spec='$libname$shared_ext'
  10178. dynamic_linker="$host_os ld.so"
  10179. shlibpath_var=LIBRARY_PATH
  10180. ;;
  10181. bsdi[45]*)
  10182. version_type=linux # correct to gnu/linux during the next big refactor
  10183. need_version=no
  10184. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10185. soname_spec='$libname$release$shared_ext$major'
  10186. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10187. shlibpath_var=LD_LIBRARY_PATH
  10188. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10189. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10190. # the default ld.so.conf also contains /usr/contrib/lib and
  10191. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10192. # libtool to hard-code these into programs
  10193. ;;
  10194. cygwin* | mingw* | pw32* | cegcc*)
  10195. version_type=windows
  10196. shrext_cmds=.dll
  10197. need_version=no
  10198. need_lib_prefix=no
  10199. case $GCC,$cc_basename in
  10200. yes,*)
  10201. # gcc
  10202. library_names_spec='$libname.dll.a'
  10203. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10204. postinstall_cmds='base_file=`basename \$file`~
  10205. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10206. dldir=$destdir/`dirname \$dlpath`~
  10207. test -d \$dldir || mkdir -p \$dldir~
  10208. $install_prog $dir/$dlname \$dldir/$dlname~
  10209. chmod a+x \$dldir/$dlname~
  10210. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10211. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10212. fi'
  10213. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10214. dlpath=$dir/\$dldll~
  10215. $RM \$dlpath'
  10216. shlibpath_overrides_runpath=yes
  10217. case $host_os in
  10218. cygwin*)
  10219. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10220. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10221. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10222. ;;
  10223. mingw* | cegcc*)
  10224. # MinGW DLLs use traditional 'lib' prefix
  10225. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10226. ;;
  10227. pw32*)
  10228. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10229. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10230. ;;
  10231. esac
  10232. dynamic_linker='Win32 ld.exe'
  10233. ;;
  10234. *,cl*)
  10235. # Native MSVC
  10236. libname_spec='$name'
  10237. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10238. library_names_spec='$libname.dll.lib'
  10239. case $build_os in
  10240. mingw*)
  10241. sys_lib_search_path_spec=
  10242. lt_save_ifs=$IFS
  10243. IFS=';'
  10244. for lt_path in $LIB
  10245. do
  10246. IFS=$lt_save_ifs
  10247. # Let DOS variable expansion print the short 8.3 style file name.
  10248. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10249. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10250. done
  10251. IFS=$lt_save_ifs
  10252. # Convert to MSYS style.
  10253. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10254. ;;
  10255. cygwin*)
  10256. # Convert to unix form, then to dos form, then back to unix form
  10257. # but this time dos style (no spaces!) so that the unix form looks
  10258. # like /cygdrive/c/PROGRA~1:/cygdr...
  10259. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10260. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10261. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10262. ;;
  10263. *)
  10264. sys_lib_search_path_spec=$LIB
  10265. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10266. # It is most probably a Windows format PATH.
  10267. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10268. else
  10269. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10270. fi
  10271. # FIXME: find the short name or the path components, as spaces are
  10272. # common. (e.g. "Program Files" -> "PROGRA~1")
  10273. ;;
  10274. esac
  10275. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10276. postinstall_cmds='base_file=`basename \$file`~
  10277. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10278. dldir=$destdir/`dirname \$dlpath`~
  10279. test -d \$dldir || mkdir -p \$dldir~
  10280. $install_prog $dir/$dlname \$dldir/$dlname'
  10281. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10282. dlpath=$dir/\$dldll~
  10283. $RM \$dlpath'
  10284. shlibpath_overrides_runpath=yes
  10285. dynamic_linker='Win32 link.exe'
  10286. ;;
  10287. *)
  10288. # Assume MSVC wrapper
  10289. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10290. dynamic_linker='Win32 ld.exe'
  10291. ;;
  10292. esac
  10293. # FIXME: first we should search . and the directory the executable is in
  10294. shlibpath_var=PATH
  10295. ;;
  10296. darwin* | rhapsody*)
  10297. dynamic_linker="$host_os dyld"
  10298. version_type=darwin
  10299. need_lib_prefix=no
  10300. need_version=no
  10301. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10302. soname_spec='$libname$release$major$shared_ext'
  10303. shlibpath_overrides_runpath=yes
  10304. shlibpath_var=DYLD_LIBRARY_PATH
  10305. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10306. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10307. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10308. ;;
  10309. dgux*)
  10310. version_type=linux # correct to gnu/linux during the next big refactor
  10311. need_lib_prefix=no
  10312. need_version=no
  10313. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10314. soname_spec='$libname$release$shared_ext$major'
  10315. shlibpath_var=LD_LIBRARY_PATH
  10316. ;;
  10317. freebsd* | dragonfly*)
  10318. # DragonFly does not have aout. When/if they implement a new
  10319. # versioning mechanism, adjust this.
  10320. if test -x /usr/bin/objformat; then
  10321. objformat=`/usr/bin/objformat`
  10322. else
  10323. case $host_os in
  10324. freebsd[23].*) objformat=aout ;;
  10325. *) objformat=elf ;;
  10326. esac
  10327. fi
  10328. version_type=freebsd-$objformat
  10329. case $version_type in
  10330. freebsd-elf*)
  10331. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10332. soname_spec='$libname$release$shared_ext$major'
  10333. need_version=no
  10334. need_lib_prefix=no
  10335. ;;
  10336. freebsd-*)
  10337. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10338. need_version=yes
  10339. ;;
  10340. esac
  10341. shlibpath_var=LD_LIBRARY_PATH
  10342. case $host_os in
  10343. freebsd2.*)
  10344. shlibpath_overrides_runpath=yes
  10345. ;;
  10346. freebsd3.[01]* | freebsdelf3.[01]*)
  10347. shlibpath_overrides_runpath=yes
  10348. hardcode_into_libs=yes
  10349. ;;
  10350. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10351. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10352. shlibpath_overrides_runpath=no
  10353. hardcode_into_libs=yes
  10354. ;;
  10355. *) # from 4.6 on, and DragonFly
  10356. shlibpath_overrides_runpath=yes
  10357. hardcode_into_libs=yes
  10358. ;;
  10359. esac
  10360. ;;
  10361. haiku*)
  10362. version_type=linux # correct to gnu/linux during the next big refactor
  10363. need_lib_prefix=no
  10364. need_version=no
  10365. dynamic_linker="$host_os runtime_loader"
  10366. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10367. soname_spec='$libname$release$shared_ext$major'
  10368. shlibpath_var=LIBRARY_PATH
  10369. shlibpath_overrides_runpath=no
  10370. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10371. hardcode_into_libs=yes
  10372. ;;
  10373. hpux9* | hpux10* | hpux11*)
  10374. # Give a soname corresponding to the major version so that dld.sl refuses to
  10375. # link against other versions.
  10376. version_type=sunos
  10377. need_lib_prefix=no
  10378. need_version=no
  10379. case $host_cpu in
  10380. ia64*)
  10381. shrext_cmds='.so'
  10382. hardcode_into_libs=yes
  10383. dynamic_linker="$host_os dld.so"
  10384. shlibpath_var=LD_LIBRARY_PATH
  10385. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10386. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10387. soname_spec='$libname$release$shared_ext$major'
  10388. if test 32 = "$HPUX_IA64_MODE"; then
  10389. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10390. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10391. else
  10392. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10393. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10394. fi
  10395. ;;
  10396. hppa*64*)
  10397. shrext_cmds='.sl'
  10398. hardcode_into_libs=yes
  10399. dynamic_linker="$host_os dld.sl"
  10400. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10401. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10402. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10403. soname_spec='$libname$release$shared_ext$major'
  10404. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10405. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10406. ;;
  10407. *)
  10408. shrext_cmds='.sl'
  10409. dynamic_linker="$host_os dld.sl"
  10410. shlibpath_var=SHLIB_PATH
  10411. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10412. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10413. soname_spec='$libname$release$shared_ext$major'
  10414. ;;
  10415. esac
  10416. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10417. postinstall_cmds='chmod 555 $lib'
  10418. # or fails outright, so override atomically:
  10419. install_override_mode=555
  10420. ;;
  10421. interix[3-9]*)
  10422. version_type=linux # correct to gnu/linux during the next big refactor
  10423. need_lib_prefix=no
  10424. need_version=no
  10425. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10426. soname_spec='$libname$release$shared_ext$major'
  10427. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10428. shlibpath_var=LD_LIBRARY_PATH
  10429. shlibpath_overrides_runpath=no
  10430. hardcode_into_libs=yes
  10431. ;;
  10432. irix5* | irix6* | nonstopux*)
  10433. case $host_os in
  10434. nonstopux*) version_type=nonstopux ;;
  10435. *)
  10436. if test yes = "$lt_cv_prog_gnu_ld"; then
  10437. version_type=linux # correct to gnu/linux during the next big refactor
  10438. else
  10439. version_type=irix
  10440. fi ;;
  10441. esac
  10442. need_lib_prefix=no
  10443. need_version=no
  10444. soname_spec='$libname$release$shared_ext$major'
  10445. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10446. case $host_os in
  10447. irix5* | nonstopux*)
  10448. libsuff= shlibsuff=
  10449. ;;
  10450. *)
  10451. case $LD in # libtool.m4 will add one of these switches to LD
  10452. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10453. libsuff= shlibsuff= libmagic=32-bit;;
  10454. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10455. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10456. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10457. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10458. *) libsuff= shlibsuff= libmagic=never-match;;
  10459. esac
  10460. ;;
  10461. esac
  10462. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10463. shlibpath_overrides_runpath=no
  10464. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10465. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10466. hardcode_into_libs=yes
  10467. ;;
  10468. # No shared lib support for Linux oldld, aout, or coff.
  10469. linux*oldld* | linux*aout* | linux*coff*)
  10470. dynamic_linker=no
  10471. ;;
  10472. linux*android*)
  10473. version_type=none # Android doesn't support versioned libraries.
  10474. need_lib_prefix=no
  10475. need_version=no
  10476. library_names_spec='$libname$release$shared_ext'
  10477. soname_spec='$libname$release$shared_ext'
  10478. finish_cmds=
  10479. shlibpath_var=LD_LIBRARY_PATH
  10480. shlibpath_overrides_runpath=yes
  10481. # This implies no fast_install, which is unacceptable.
  10482. # Some rework will be needed to allow for fast_install
  10483. # before this can be enabled.
  10484. hardcode_into_libs=yes
  10485. dynamic_linker='Android linker'
  10486. # Don't embed -rpath directories since the linker doesn't support them.
  10487. hardcode_libdir_flag_spec='-L$libdir'
  10488. ;;
  10489. # This must be glibc/ELF.
  10490. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10491. version_type=linux # correct to gnu/linux during the next big refactor
  10492. need_lib_prefix=no
  10493. need_version=no
  10494. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10495. soname_spec='$libname$release$shared_ext$major'
  10496. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10497. shlibpath_var=LD_LIBRARY_PATH
  10498. shlibpath_overrides_runpath=no
  10499. # Some binutils ld are patched to set DT_RUNPATH
  10500. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10501. $as_echo_n "(cached) " >&6
  10502. else
  10503. lt_cv_shlibpath_overrides_runpath=no
  10504. save_LDFLAGS=$LDFLAGS
  10505. save_libdir=$libdir
  10506. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10507. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10509. /* end confdefs.h. */
  10510. int
  10511. main ()
  10512. {
  10513. ;
  10514. return 0;
  10515. }
  10516. _ACEOF
  10517. if ac_fn_c_try_link "$LINENO"; then :
  10518. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10519. lt_cv_shlibpath_overrides_runpath=yes
  10520. fi
  10521. fi
  10522. rm -f core conftest.err conftest.$ac_objext \
  10523. conftest$ac_exeext conftest.$ac_ext
  10524. LDFLAGS=$save_LDFLAGS
  10525. libdir=$save_libdir
  10526. fi
  10527. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10528. # This implies no fast_install, which is unacceptable.
  10529. # Some rework will be needed to allow for fast_install
  10530. # before this can be enabled.
  10531. hardcode_into_libs=yes
  10532. # Ideally, we could use ldconfig to report *all* directores which are
  10533. # searched for libraries, however this is still not possible. Aside from not
  10534. # being certain /sbin/ldconfig is available, command
  10535. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10536. # even though it is searched at run-time. Try to do the best guess by
  10537. # appending ld.so.conf contents (and includes) to the search path.
  10538. if test -f /etc/ld.so.conf; then
  10539. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  10540. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10541. fi
  10542. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10543. # powerpc, because MkLinux only supported shared libraries with the
  10544. # GNU dynamic linker. Since this was broken with cross compilers,
  10545. # most powerpc-linux boxes support dynamic linking these days and
  10546. # people can always --disable-shared, the test was removed, and we
  10547. # assume the GNU/Linux dynamic linker is in use.
  10548. dynamic_linker='GNU/Linux ld.so'
  10549. ;;
  10550. netbsd*)
  10551. version_type=sunos
  10552. need_lib_prefix=no
  10553. need_version=no
  10554. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10555. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10556. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10557. dynamic_linker='NetBSD (a.out) ld.so'
  10558. else
  10559. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10560. soname_spec='$libname$release$shared_ext$major'
  10561. dynamic_linker='NetBSD ld.elf_so'
  10562. fi
  10563. shlibpath_var=LD_LIBRARY_PATH
  10564. shlibpath_overrides_runpath=yes
  10565. hardcode_into_libs=yes
  10566. ;;
  10567. newsos6)
  10568. version_type=linux # correct to gnu/linux during the next big refactor
  10569. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10570. shlibpath_var=LD_LIBRARY_PATH
  10571. shlibpath_overrides_runpath=yes
  10572. ;;
  10573. *nto* | *qnx*)
  10574. version_type=qnx
  10575. need_lib_prefix=no
  10576. need_version=no
  10577. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10578. soname_spec='$libname$release$shared_ext$major'
  10579. shlibpath_var=LD_LIBRARY_PATH
  10580. shlibpath_overrides_runpath=no
  10581. hardcode_into_libs=yes
  10582. dynamic_linker='ldqnx.so'
  10583. ;;
  10584. openbsd* | bitrig*)
  10585. version_type=sunos
  10586. sys_lib_dlsearch_path_spec=/usr/lib
  10587. need_lib_prefix=no
  10588. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10589. need_version=no
  10590. else
  10591. need_version=yes
  10592. fi
  10593. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10594. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10595. shlibpath_var=LD_LIBRARY_PATH
  10596. shlibpath_overrides_runpath=yes
  10597. ;;
  10598. os2*)
  10599. libname_spec='$name'
  10600. version_type=windows
  10601. shrext_cmds=.dll
  10602. need_version=no
  10603. need_lib_prefix=no
  10604. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10605. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10606. v=$($ECHO $release$versuffix | tr -d .-);
  10607. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10608. $ECHO $n$v`$shared_ext'
  10609. library_names_spec='${libname}_dll.$libext'
  10610. dynamic_linker='OS/2 ld.exe'
  10611. shlibpath_var=BEGINLIBPATH
  10612. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10613. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10614. postinstall_cmds='base_file=`basename \$file`~
  10615. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10616. dldir=$destdir/`dirname \$dlpath`~
  10617. test -d \$dldir || mkdir -p \$dldir~
  10618. $install_prog $dir/$dlname \$dldir/$dlname~
  10619. chmod a+x \$dldir/$dlname~
  10620. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10621. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10622. fi'
  10623. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10624. dlpath=$dir/\$dldll~
  10625. $RM \$dlpath'
  10626. ;;
  10627. osf3* | osf4* | osf5*)
  10628. version_type=osf
  10629. need_lib_prefix=no
  10630. need_version=no
  10631. soname_spec='$libname$release$shared_ext$major'
  10632. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10633. shlibpath_var=LD_LIBRARY_PATH
  10634. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10635. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10636. ;;
  10637. rdos*)
  10638. dynamic_linker=no
  10639. ;;
  10640. solaris*)
  10641. version_type=linux # correct to gnu/linux during the next big refactor
  10642. need_lib_prefix=no
  10643. need_version=no
  10644. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10645. soname_spec='$libname$release$shared_ext$major'
  10646. shlibpath_var=LD_LIBRARY_PATH
  10647. shlibpath_overrides_runpath=yes
  10648. hardcode_into_libs=yes
  10649. # ldd complains unless libraries are executable
  10650. postinstall_cmds='chmod +x $lib'
  10651. ;;
  10652. sunos4*)
  10653. version_type=sunos
  10654. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10655. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10656. shlibpath_var=LD_LIBRARY_PATH
  10657. shlibpath_overrides_runpath=yes
  10658. if test yes = "$with_gnu_ld"; then
  10659. need_lib_prefix=no
  10660. fi
  10661. need_version=yes
  10662. ;;
  10663. sysv4 | sysv4.3*)
  10664. version_type=linux # correct to gnu/linux during the next big refactor
  10665. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10666. soname_spec='$libname$release$shared_ext$major'
  10667. shlibpath_var=LD_LIBRARY_PATH
  10668. case $host_vendor in
  10669. sni)
  10670. shlibpath_overrides_runpath=no
  10671. need_lib_prefix=no
  10672. runpath_var=LD_RUN_PATH
  10673. ;;
  10674. siemens)
  10675. need_lib_prefix=no
  10676. ;;
  10677. motorola)
  10678. need_lib_prefix=no
  10679. need_version=no
  10680. shlibpath_overrides_runpath=no
  10681. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10682. ;;
  10683. esac
  10684. ;;
  10685. sysv4*MP*)
  10686. if test -d /usr/nec; then
  10687. version_type=linux # correct to gnu/linux during the next big refactor
  10688. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10689. soname_spec='$libname$shared_ext.$major'
  10690. shlibpath_var=LD_LIBRARY_PATH
  10691. fi
  10692. ;;
  10693. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10694. version_type=sco
  10695. need_lib_prefix=no
  10696. need_version=no
  10697. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10698. soname_spec='$libname$release$shared_ext$major'
  10699. shlibpath_var=LD_LIBRARY_PATH
  10700. shlibpath_overrides_runpath=yes
  10701. hardcode_into_libs=yes
  10702. if test yes = "$with_gnu_ld"; then
  10703. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10704. else
  10705. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10706. case $host_os in
  10707. sco3.2v5*)
  10708. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10709. ;;
  10710. esac
  10711. fi
  10712. sys_lib_dlsearch_path_spec='/usr/lib'
  10713. ;;
  10714. tpf*)
  10715. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10716. version_type=linux # correct to gnu/linux during the next big refactor
  10717. need_lib_prefix=no
  10718. need_version=no
  10719. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10720. shlibpath_var=LD_LIBRARY_PATH
  10721. shlibpath_overrides_runpath=no
  10722. hardcode_into_libs=yes
  10723. ;;
  10724. uts4*)
  10725. version_type=linux # correct to gnu/linux during the next big refactor
  10726. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10727. soname_spec='$libname$release$shared_ext$major'
  10728. shlibpath_var=LD_LIBRARY_PATH
  10729. ;;
  10730. *)
  10731. dynamic_linker=no
  10732. ;;
  10733. esac
  10734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10735. $as_echo "$dynamic_linker" >&6; }
  10736. test no = "$dynamic_linker" && can_build_shared=no
  10737. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10738. if test yes = "$GCC"; then
  10739. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10740. fi
  10741. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10742. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10743. fi
  10744. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10745. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10746. fi
  10747. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10748. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10749. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10750. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10751. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10752. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10754. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10755. hardcode_action=
  10756. if test -n "$hardcode_libdir_flag_spec" ||
  10757. test -n "$runpath_var" ||
  10758. test yes = "$hardcode_automatic"; then
  10759. # We can hardcode non-existent directories.
  10760. if test no != "$hardcode_direct" &&
  10761. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10762. # have to relink, otherwise we might link with an installed library
  10763. # when we should be linking with a yet-to-be-installed one
  10764. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10765. test no != "$hardcode_minus_L"; then
  10766. # Linking always hardcodes the temporary library directory.
  10767. hardcode_action=relink
  10768. else
  10769. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10770. hardcode_action=immediate
  10771. fi
  10772. else
  10773. # We cannot hardcode anything, or else we can only hardcode existing
  10774. # directories.
  10775. hardcode_action=unsupported
  10776. fi
  10777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10778. $as_echo "$hardcode_action" >&6; }
  10779. if test relink = "$hardcode_action" ||
  10780. test yes = "$inherit_rpath"; then
  10781. # Fast installation is not supported
  10782. enable_fast_install=no
  10783. elif test yes = "$shlibpath_overrides_runpath" ||
  10784. test no = "$enable_shared"; then
  10785. # Fast installation is not necessary
  10786. enable_fast_install=needless
  10787. fi
  10788. if test yes != "$enable_dlopen"; then
  10789. enable_dlopen=unknown
  10790. enable_dlopen_self=unknown
  10791. enable_dlopen_self_static=unknown
  10792. else
  10793. lt_cv_dlopen=no
  10794. lt_cv_dlopen_libs=
  10795. case $host_os in
  10796. beos*)
  10797. lt_cv_dlopen=load_add_on
  10798. lt_cv_dlopen_libs=
  10799. lt_cv_dlopen_self=yes
  10800. ;;
  10801. mingw* | pw32* | cegcc*)
  10802. lt_cv_dlopen=LoadLibrary
  10803. lt_cv_dlopen_libs=
  10804. ;;
  10805. cygwin*)
  10806. lt_cv_dlopen=dlopen
  10807. lt_cv_dlopen_libs=
  10808. ;;
  10809. darwin*)
  10810. # if libdl is installed we need to link against it
  10811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10812. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10813. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10814. $as_echo_n "(cached) " >&6
  10815. else
  10816. ac_check_lib_save_LIBS=$LIBS
  10817. LIBS="-ldl $LIBS"
  10818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10819. /* end confdefs.h. */
  10820. /* Override any GCC internal prototype to avoid an error.
  10821. Use char because int might match the return type of a GCC
  10822. builtin and then its argument prototype would still apply. */
  10823. #ifdef __cplusplus
  10824. extern "C"
  10825. #endif
  10826. char dlopen ();
  10827. int
  10828. main ()
  10829. {
  10830. return dlopen ();
  10831. ;
  10832. return 0;
  10833. }
  10834. _ACEOF
  10835. if ac_fn_c_try_link "$LINENO"; then :
  10836. ac_cv_lib_dl_dlopen=yes
  10837. else
  10838. ac_cv_lib_dl_dlopen=no
  10839. fi
  10840. rm -f core conftest.err conftest.$ac_objext \
  10841. conftest$ac_exeext conftest.$ac_ext
  10842. LIBS=$ac_check_lib_save_LIBS
  10843. fi
  10844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10845. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10846. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10847. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10848. else
  10849. lt_cv_dlopen=dyld
  10850. lt_cv_dlopen_libs=
  10851. lt_cv_dlopen_self=yes
  10852. fi
  10853. ;;
  10854. tpf*)
  10855. # Don't try to run any link tests for TPF. We know it's impossible
  10856. # because TPF is a cross-compiler, and we know how we open DSOs.
  10857. lt_cv_dlopen=dlopen
  10858. lt_cv_dlopen_libs=
  10859. lt_cv_dlopen_self=no
  10860. ;;
  10861. *)
  10862. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10863. if test "x$ac_cv_func_shl_load" = xyes; then :
  10864. lt_cv_dlopen=shl_load
  10865. else
  10866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10867. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10868. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10869. $as_echo_n "(cached) " >&6
  10870. else
  10871. ac_check_lib_save_LIBS=$LIBS
  10872. LIBS="-ldld $LIBS"
  10873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10874. /* end confdefs.h. */
  10875. /* Override any GCC internal prototype to avoid an error.
  10876. Use char because int might match the return type of a GCC
  10877. builtin and then its argument prototype would still apply. */
  10878. #ifdef __cplusplus
  10879. extern "C"
  10880. #endif
  10881. char shl_load ();
  10882. int
  10883. main ()
  10884. {
  10885. return shl_load ();
  10886. ;
  10887. return 0;
  10888. }
  10889. _ACEOF
  10890. if ac_fn_c_try_link "$LINENO"; then :
  10891. ac_cv_lib_dld_shl_load=yes
  10892. else
  10893. ac_cv_lib_dld_shl_load=no
  10894. fi
  10895. rm -f core conftest.err conftest.$ac_objext \
  10896. conftest$ac_exeext conftest.$ac_ext
  10897. LIBS=$ac_check_lib_save_LIBS
  10898. fi
  10899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10900. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10901. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10902. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10903. else
  10904. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10905. if test "x$ac_cv_func_dlopen" = xyes; then :
  10906. lt_cv_dlopen=dlopen
  10907. else
  10908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10909. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10910. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10911. $as_echo_n "(cached) " >&6
  10912. else
  10913. ac_check_lib_save_LIBS=$LIBS
  10914. LIBS="-ldl $LIBS"
  10915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10916. /* end confdefs.h. */
  10917. /* Override any GCC internal prototype to avoid an error.
  10918. Use char because int might match the return type of a GCC
  10919. builtin and then its argument prototype would still apply. */
  10920. #ifdef __cplusplus
  10921. extern "C"
  10922. #endif
  10923. char dlopen ();
  10924. int
  10925. main ()
  10926. {
  10927. return dlopen ();
  10928. ;
  10929. return 0;
  10930. }
  10931. _ACEOF
  10932. if ac_fn_c_try_link "$LINENO"; then :
  10933. ac_cv_lib_dl_dlopen=yes
  10934. else
  10935. ac_cv_lib_dl_dlopen=no
  10936. fi
  10937. rm -f core conftest.err conftest.$ac_objext \
  10938. conftest$ac_exeext conftest.$ac_ext
  10939. LIBS=$ac_check_lib_save_LIBS
  10940. fi
  10941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10942. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10943. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10944. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10945. else
  10946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10947. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10948. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10949. $as_echo_n "(cached) " >&6
  10950. else
  10951. ac_check_lib_save_LIBS=$LIBS
  10952. LIBS="-lsvld $LIBS"
  10953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10954. /* end confdefs.h. */
  10955. /* Override any GCC internal prototype to avoid an error.
  10956. Use char because int might match the return type of a GCC
  10957. builtin and then its argument prototype would still apply. */
  10958. #ifdef __cplusplus
  10959. extern "C"
  10960. #endif
  10961. char dlopen ();
  10962. int
  10963. main ()
  10964. {
  10965. return dlopen ();
  10966. ;
  10967. return 0;
  10968. }
  10969. _ACEOF
  10970. if ac_fn_c_try_link "$LINENO"; then :
  10971. ac_cv_lib_svld_dlopen=yes
  10972. else
  10973. ac_cv_lib_svld_dlopen=no
  10974. fi
  10975. rm -f core conftest.err conftest.$ac_objext \
  10976. conftest$ac_exeext conftest.$ac_ext
  10977. LIBS=$ac_check_lib_save_LIBS
  10978. fi
  10979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10980. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10981. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10982. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10983. else
  10984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10985. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10986. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10987. $as_echo_n "(cached) " >&6
  10988. else
  10989. ac_check_lib_save_LIBS=$LIBS
  10990. LIBS="-ldld $LIBS"
  10991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10992. /* end confdefs.h. */
  10993. /* Override any GCC internal prototype to avoid an error.
  10994. Use char because int might match the return type of a GCC
  10995. builtin and then its argument prototype would still apply. */
  10996. #ifdef __cplusplus
  10997. extern "C"
  10998. #endif
  10999. char dld_link ();
  11000. int
  11001. main ()
  11002. {
  11003. return dld_link ();
  11004. ;
  11005. return 0;
  11006. }
  11007. _ACEOF
  11008. if ac_fn_c_try_link "$LINENO"; then :
  11009. ac_cv_lib_dld_dld_link=yes
  11010. else
  11011. ac_cv_lib_dld_dld_link=no
  11012. fi
  11013. rm -f core conftest.err conftest.$ac_objext \
  11014. conftest$ac_exeext conftest.$ac_ext
  11015. LIBS=$ac_check_lib_save_LIBS
  11016. fi
  11017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11018. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  11019. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  11020. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  11021. fi
  11022. fi
  11023. fi
  11024. fi
  11025. fi
  11026. fi
  11027. ;;
  11028. esac
  11029. if test no = "$lt_cv_dlopen"; then
  11030. enable_dlopen=no
  11031. else
  11032. enable_dlopen=yes
  11033. fi
  11034. case $lt_cv_dlopen in
  11035. dlopen)
  11036. save_CPPFLAGS=$CPPFLAGS
  11037. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11038. save_LDFLAGS=$LDFLAGS
  11039. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11040. save_LIBS=$LIBS
  11041. LIBS="$lt_cv_dlopen_libs $LIBS"
  11042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11043. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  11044. if ${lt_cv_dlopen_self+:} false; then :
  11045. $as_echo_n "(cached) " >&6
  11046. else
  11047. if test yes = "$cross_compiling"; then :
  11048. lt_cv_dlopen_self=cross
  11049. else
  11050. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11051. lt_status=$lt_dlunknown
  11052. cat > conftest.$ac_ext <<_LT_EOF
  11053. #line $LINENO "configure"
  11054. #include "confdefs.h"
  11055. #if HAVE_DLFCN_H
  11056. #include <dlfcn.h>
  11057. #endif
  11058. #include <stdio.h>
  11059. #ifdef RTLD_GLOBAL
  11060. # define LT_DLGLOBAL RTLD_GLOBAL
  11061. #else
  11062. # ifdef DL_GLOBAL
  11063. # define LT_DLGLOBAL DL_GLOBAL
  11064. # else
  11065. # define LT_DLGLOBAL 0
  11066. # endif
  11067. #endif
  11068. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11069. find out it does not work in some platform. */
  11070. #ifndef LT_DLLAZY_OR_NOW
  11071. # ifdef RTLD_LAZY
  11072. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11073. # else
  11074. # ifdef DL_LAZY
  11075. # define LT_DLLAZY_OR_NOW DL_LAZY
  11076. # else
  11077. # ifdef RTLD_NOW
  11078. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11079. # else
  11080. # ifdef DL_NOW
  11081. # define LT_DLLAZY_OR_NOW DL_NOW
  11082. # else
  11083. # define LT_DLLAZY_OR_NOW 0
  11084. # endif
  11085. # endif
  11086. # endif
  11087. # endif
  11088. #endif
  11089. /* When -fvisibility=hidden is used, assume the code has been annotated
  11090. correspondingly for the symbols needed. */
  11091. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11092. int fnord () __attribute__((visibility("default")));
  11093. #endif
  11094. int fnord () { return 42; }
  11095. int main ()
  11096. {
  11097. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11098. int status = $lt_dlunknown;
  11099. if (self)
  11100. {
  11101. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11102. else
  11103. {
  11104. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11105. else puts (dlerror ());
  11106. }
  11107. /* dlclose (self); */
  11108. }
  11109. else
  11110. puts (dlerror ());
  11111. return status;
  11112. }
  11113. _LT_EOF
  11114. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11115. (eval $ac_link) 2>&5
  11116. ac_status=$?
  11117. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11118. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11119. (./conftest; exit; ) >&5 2>/dev/null
  11120. lt_status=$?
  11121. case x$lt_status in
  11122. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11123. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11124. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11125. esac
  11126. else :
  11127. # compilation failed
  11128. lt_cv_dlopen_self=no
  11129. fi
  11130. fi
  11131. rm -fr conftest*
  11132. fi
  11133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11134. $as_echo "$lt_cv_dlopen_self" >&6; }
  11135. if test yes = "$lt_cv_dlopen_self"; then
  11136. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11138. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  11139. if ${lt_cv_dlopen_self_static+:} false; then :
  11140. $as_echo_n "(cached) " >&6
  11141. else
  11142. if test yes = "$cross_compiling"; then :
  11143. lt_cv_dlopen_self_static=cross
  11144. else
  11145. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11146. lt_status=$lt_dlunknown
  11147. cat > conftest.$ac_ext <<_LT_EOF
  11148. #line $LINENO "configure"
  11149. #include "confdefs.h"
  11150. #if HAVE_DLFCN_H
  11151. #include <dlfcn.h>
  11152. #endif
  11153. #include <stdio.h>
  11154. #ifdef RTLD_GLOBAL
  11155. # define LT_DLGLOBAL RTLD_GLOBAL
  11156. #else
  11157. # ifdef DL_GLOBAL
  11158. # define LT_DLGLOBAL DL_GLOBAL
  11159. # else
  11160. # define LT_DLGLOBAL 0
  11161. # endif
  11162. #endif
  11163. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11164. find out it does not work in some platform. */
  11165. #ifndef LT_DLLAZY_OR_NOW
  11166. # ifdef RTLD_LAZY
  11167. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11168. # else
  11169. # ifdef DL_LAZY
  11170. # define LT_DLLAZY_OR_NOW DL_LAZY
  11171. # else
  11172. # ifdef RTLD_NOW
  11173. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11174. # else
  11175. # ifdef DL_NOW
  11176. # define LT_DLLAZY_OR_NOW DL_NOW
  11177. # else
  11178. # define LT_DLLAZY_OR_NOW 0
  11179. # endif
  11180. # endif
  11181. # endif
  11182. # endif
  11183. #endif
  11184. /* When -fvisibility=hidden is used, assume the code has been annotated
  11185. correspondingly for the symbols needed. */
  11186. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11187. int fnord () __attribute__((visibility("default")));
  11188. #endif
  11189. int fnord () { return 42; }
  11190. int main ()
  11191. {
  11192. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11193. int status = $lt_dlunknown;
  11194. if (self)
  11195. {
  11196. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11197. else
  11198. {
  11199. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11200. else puts (dlerror ());
  11201. }
  11202. /* dlclose (self); */
  11203. }
  11204. else
  11205. puts (dlerror ());
  11206. return status;
  11207. }
  11208. _LT_EOF
  11209. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11210. (eval $ac_link) 2>&5
  11211. ac_status=$?
  11212. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11213. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11214. (./conftest; exit; ) >&5 2>/dev/null
  11215. lt_status=$?
  11216. case x$lt_status in
  11217. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11218. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11219. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11220. esac
  11221. else :
  11222. # compilation failed
  11223. lt_cv_dlopen_self_static=no
  11224. fi
  11225. fi
  11226. rm -fr conftest*
  11227. fi
  11228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11229. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11230. fi
  11231. CPPFLAGS=$save_CPPFLAGS
  11232. LDFLAGS=$save_LDFLAGS
  11233. LIBS=$save_LIBS
  11234. ;;
  11235. esac
  11236. case $lt_cv_dlopen_self in
  11237. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11238. *) enable_dlopen_self=unknown ;;
  11239. esac
  11240. case $lt_cv_dlopen_self_static in
  11241. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11242. *) enable_dlopen_self_static=unknown ;;
  11243. esac
  11244. fi
  11245. striplib=
  11246. old_striplib=
  11247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11248. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11249. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11250. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11251. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11253. $as_echo "yes" >&6; }
  11254. else
  11255. # FIXME - insert some real tests, host_os isn't really good enough
  11256. case $host_os in
  11257. darwin*)
  11258. if test -n "$STRIP"; then
  11259. striplib="$STRIP -x"
  11260. old_striplib="$STRIP -S"
  11261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11262. $as_echo "yes" >&6; }
  11263. else
  11264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11265. $as_echo "no" >&6; }
  11266. fi
  11267. ;;
  11268. *)
  11269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11270. $as_echo "no" >&6; }
  11271. ;;
  11272. esac
  11273. fi
  11274. # Report what library types will actually be built
  11275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11276. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11278. $as_echo "$can_build_shared" >&6; }
  11279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11280. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11281. test no = "$can_build_shared" && enable_shared=no
  11282. # On AIX, shared libraries and static libraries use the same namespace, and
  11283. # are all built from PIC.
  11284. case $host_os in
  11285. aix3*)
  11286. test yes = "$enable_shared" && enable_static=no
  11287. if test -n "$RANLIB"; then
  11288. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11289. postinstall_cmds='$RANLIB $lib'
  11290. fi
  11291. ;;
  11292. aix[4-9]*)
  11293. if test ia64 != "$host_cpu"; then
  11294. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11295. yes,aix,yes) ;; # shared object as lib.so file only
  11296. yes,svr4,*) ;; # shared object as lib.so archive member only
  11297. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11298. esac
  11299. fi
  11300. ;;
  11301. esac
  11302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11303. $as_echo "$enable_shared" >&6; }
  11304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11305. $as_echo_n "checking whether to build static libraries... " >&6; }
  11306. # Make sure either enable_shared or enable_static is yes.
  11307. test yes = "$enable_shared" || enable_static=yes
  11308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11309. $as_echo "$enable_static" >&6; }
  11310. fi
  11311. ac_ext=c
  11312. ac_cpp='$CPP $CPPFLAGS'
  11313. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11314. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11315. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11316. CC=$lt_save_CC
  11317. ac_config_commands="$ac_config_commands libtool"
  11318. # Only expand once:
  11319. ac_ext=c
  11320. ac_cpp='$CPP $CPPFLAGS'
  11321. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11322. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11323. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11324. if test -n "$ac_tool_prefix"; then
  11325. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11326. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11328. $as_echo_n "checking for $ac_word... " >&6; }
  11329. if ${ac_cv_prog_CC+:} false; then :
  11330. $as_echo_n "(cached) " >&6
  11331. else
  11332. if test -n "$CC"; then
  11333. ac_cv_prog_CC="$CC" # Let the user override the test.
  11334. else
  11335. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11336. for as_dir in $PATH
  11337. do
  11338. IFS=$as_save_IFS
  11339. test -z "$as_dir" && as_dir=.
  11340. for ac_exec_ext in '' $ac_executable_extensions; do
  11341. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11342. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11343. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11344. break 2
  11345. fi
  11346. done
  11347. done
  11348. IFS=$as_save_IFS
  11349. fi
  11350. fi
  11351. CC=$ac_cv_prog_CC
  11352. if test -n "$CC"; then
  11353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11354. $as_echo "$CC" >&6; }
  11355. else
  11356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11357. $as_echo "no" >&6; }
  11358. fi
  11359. fi
  11360. if test -z "$ac_cv_prog_CC"; then
  11361. ac_ct_CC=$CC
  11362. # Extract the first word of "gcc", so it can be a program name with args.
  11363. set dummy gcc; ac_word=$2
  11364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11365. $as_echo_n "checking for $ac_word... " >&6; }
  11366. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  11367. $as_echo_n "(cached) " >&6
  11368. else
  11369. if test -n "$ac_ct_CC"; then
  11370. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11371. else
  11372. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11373. for as_dir in $PATH
  11374. do
  11375. IFS=$as_save_IFS
  11376. test -z "$as_dir" && as_dir=.
  11377. for ac_exec_ext in '' $ac_executable_extensions; do
  11378. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11379. ac_cv_prog_ac_ct_CC="gcc"
  11380. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11381. break 2
  11382. fi
  11383. done
  11384. done
  11385. IFS=$as_save_IFS
  11386. fi
  11387. fi
  11388. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11389. if test -n "$ac_ct_CC"; then
  11390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11391. $as_echo "$ac_ct_CC" >&6; }
  11392. else
  11393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11394. $as_echo "no" >&6; }
  11395. fi
  11396. if test "x$ac_ct_CC" = x; then
  11397. CC=""
  11398. else
  11399. case $cross_compiling:$ac_tool_warned in
  11400. yes:)
  11401. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11402. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11403. ac_tool_warned=yes ;;
  11404. esac
  11405. CC=$ac_ct_CC
  11406. fi
  11407. else
  11408. CC="$ac_cv_prog_CC"
  11409. fi
  11410. if test -z "$CC"; then
  11411. if test -n "$ac_tool_prefix"; then
  11412. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11413. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11415. $as_echo_n "checking for $ac_word... " >&6; }
  11416. if ${ac_cv_prog_CC+:} false; then :
  11417. $as_echo_n "(cached) " >&6
  11418. else
  11419. if test -n "$CC"; then
  11420. ac_cv_prog_CC="$CC" # Let the user override the test.
  11421. else
  11422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11423. for as_dir in $PATH
  11424. do
  11425. IFS=$as_save_IFS
  11426. test -z "$as_dir" && as_dir=.
  11427. for ac_exec_ext in '' $ac_executable_extensions; do
  11428. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11429. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11430. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11431. break 2
  11432. fi
  11433. done
  11434. done
  11435. IFS=$as_save_IFS
  11436. fi
  11437. fi
  11438. CC=$ac_cv_prog_CC
  11439. if test -n "$CC"; then
  11440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11441. $as_echo "$CC" >&6; }
  11442. else
  11443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11444. $as_echo "no" >&6; }
  11445. fi
  11446. fi
  11447. fi
  11448. if test -z "$CC"; then
  11449. # Extract the first word of "cc", so it can be a program name with args.
  11450. set dummy cc; ac_word=$2
  11451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11452. $as_echo_n "checking for $ac_word... " >&6; }
  11453. if ${ac_cv_prog_CC+:} false; then :
  11454. $as_echo_n "(cached) " >&6
  11455. else
  11456. if test -n "$CC"; then
  11457. ac_cv_prog_CC="$CC" # Let the user override the test.
  11458. else
  11459. ac_prog_rejected=no
  11460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11461. for as_dir in $PATH
  11462. do
  11463. IFS=$as_save_IFS
  11464. test -z "$as_dir" && as_dir=.
  11465. for ac_exec_ext in '' $ac_executable_extensions; do
  11466. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11467. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11468. ac_prog_rejected=yes
  11469. continue
  11470. fi
  11471. ac_cv_prog_CC="cc"
  11472. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11473. break 2
  11474. fi
  11475. done
  11476. done
  11477. IFS=$as_save_IFS
  11478. if test $ac_prog_rejected = yes; then
  11479. # We found a bogon in the path, so make sure we never use it.
  11480. set dummy $ac_cv_prog_CC
  11481. shift
  11482. if test $# != 0; then
  11483. # We chose a different compiler from the bogus one.
  11484. # However, it has the same basename, so the bogon will be chosen
  11485. # first if we set CC to just the basename; use the full file name.
  11486. shift
  11487. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  11488. fi
  11489. fi
  11490. fi
  11491. fi
  11492. CC=$ac_cv_prog_CC
  11493. if test -n "$CC"; then
  11494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11495. $as_echo "$CC" >&6; }
  11496. else
  11497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11498. $as_echo "no" >&6; }
  11499. fi
  11500. fi
  11501. if test -z "$CC"; then
  11502. if test -n "$ac_tool_prefix"; then
  11503. for ac_prog in cl.exe
  11504. do
  11505. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11506. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11508. $as_echo_n "checking for $ac_word... " >&6; }
  11509. if ${ac_cv_prog_CC+:} false; then :
  11510. $as_echo_n "(cached) " >&6
  11511. else
  11512. if test -n "$CC"; then
  11513. ac_cv_prog_CC="$CC" # Let the user override the test.
  11514. else
  11515. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11516. for as_dir in $PATH
  11517. do
  11518. IFS=$as_save_IFS
  11519. test -z "$as_dir" && as_dir=.
  11520. for ac_exec_ext in '' $ac_executable_extensions; do
  11521. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11522. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11523. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11524. break 2
  11525. fi
  11526. done
  11527. done
  11528. IFS=$as_save_IFS
  11529. fi
  11530. fi
  11531. CC=$ac_cv_prog_CC
  11532. if test -n "$CC"; then
  11533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11534. $as_echo "$CC" >&6; }
  11535. else
  11536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11537. $as_echo "no" >&6; }
  11538. fi
  11539. test -n "$CC" && break
  11540. done
  11541. fi
  11542. if test -z "$CC"; then
  11543. ac_ct_CC=$CC
  11544. for ac_prog in cl.exe
  11545. do
  11546. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11547. set dummy $ac_prog; ac_word=$2
  11548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11549. $as_echo_n "checking for $ac_word... " >&6; }
  11550. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  11551. $as_echo_n "(cached) " >&6
  11552. else
  11553. if test -n "$ac_ct_CC"; then
  11554. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11555. else
  11556. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11557. for as_dir in $PATH
  11558. do
  11559. IFS=$as_save_IFS
  11560. test -z "$as_dir" && as_dir=.
  11561. for ac_exec_ext in '' $ac_executable_extensions; do
  11562. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11563. ac_cv_prog_ac_ct_CC="$ac_prog"
  11564. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11565. break 2
  11566. fi
  11567. done
  11568. done
  11569. IFS=$as_save_IFS
  11570. fi
  11571. fi
  11572. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11573. if test -n "$ac_ct_CC"; then
  11574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11575. $as_echo "$ac_ct_CC" >&6; }
  11576. else
  11577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11578. $as_echo "no" >&6; }
  11579. fi
  11580. test -n "$ac_ct_CC" && break
  11581. done
  11582. if test "x$ac_ct_CC" = x; then
  11583. CC=""
  11584. else
  11585. case $cross_compiling:$ac_tool_warned in
  11586. yes:)
  11587. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11588. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11589. ac_tool_warned=yes ;;
  11590. esac
  11591. CC=$ac_ct_CC
  11592. fi
  11593. fi
  11594. fi
  11595. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11596. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11597. as_fn_error $? "no acceptable C compiler found in \$PATH
  11598. See \`config.log' for more details" "$LINENO" 5; }
  11599. # Provide some information about the compiler.
  11600. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11601. set X $ac_compile
  11602. ac_compiler=$2
  11603. for ac_option in --version -v -V -qversion; do
  11604. { { ac_try="$ac_compiler $ac_option >&5"
  11605. case "(($ac_try" in
  11606. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11607. *) ac_try_echo=$ac_try;;
  11608. esac
  11609. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11610. $as_echo "$ac_try_echo"; } >&5
  11611. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11612. ac_status=$?
  11613. if test -s conftest.err; then
  11614. sed '10a\
  11615. ... rest of stderr output deleted ...
  11616. 10q' conftest.err >conftest.er1
  11617. cat conftest.er1 >&5
  11618. fi
  11619. rm -f conftest.er1 conftest.err
  11620. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11621. test $ac_status = 0; }
  11622. done
  11623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  11624. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  11625. if ${ac_cv_c_compiler_gnu+:} false; then :
  11626. $as_echo_n "(cached) " >&6
  11627. else
  11628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11629. /* end confdefs.h. */
  11630. int
  11631. main ()
  11632. {
  11633. #ifndef __GNUC__
  11634. choke me
  11635. #endif
  11636. ;
  11637. return 0;
  11638. }
  11639. _ACEOF
  11640. if ac_fn_c_try_compile "$LINENO"; then :
  11641. ac_compiler_gnu=yes
  11642. else
  11643. ac_compiler_gnu=no
  11644. fi
  11645. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11646. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11647. fi
  11648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11649. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  11650. if test $ac_compiler_gnu = yes; then
  11651. GCC=yes
  11652. else
  11653. GCC=
  11654. fi
  11655. ac_test_CFLAGS=${CFLAGS+set}
  11656. ac_save_CFLAGS=$CFLAGS
  11657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11658. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  11659. if ${ac_cv_prog_cc_g+:} false; then :
  11660. $as_echo_n "(cached) " >&6
  11661. else
  11662. ac_save_c_werror_flag=$ac_c_werror_flag
  11663. ac_c_werror_flag=yes
  11664. ac_cv_prog_cc_g=no
  11665. CFLAGS="-g"
  11666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11667. /* end confdefs.h. */
  11668. int
  11669. main ()
  11670. {
  11671. ;
  11672. return 0;
  11673. }
  11674. _ACEOF
  11675. if ac_fn_c_try_compile "$LINENO"; then :
  11676. ac_cv_prog_cc_g=yes
  11677. else
  11678. CFLAGS=""
  11679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11680. /* end confdefs.h. */
  11681. int
  11682. main ()
  11683. {
  11684. ;
  11685. return 0;
  11686. }
  11687. _ACEOF
  11688. if ac_fn_c_try_compile "$LINENO"; then :
  11689. else
  11690. ac_c_werror_flag=$ac_save_c_werror_flag
  11691. CFLAGS="-g"
  11692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11693. /* end confdefs.h. */
  11694. int
  11695. main ()
  11696. {
  11697. ;
  11698. return 0;
  11699. }
  11700. _ACEOF
  11701. if ac_fn_c_try_compile "$LINENO"; then :
  11702. ac_cv_prog_cc_g=yes
  11703. fi
  11704. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11705. fi
  11706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11707. fi
  11708. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11709. ac_c_werror_flag=$ac_save_c_werror_flag
  11710. fi
  11711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11712. $as_echo "$ac_cv_prog_cc_g" >&6; }
  11713. if test "$ac_test_CFLAGS" = set; then
  11714. CFLAGS=$ac_save_CFLAGS
  11715. elif test $ac_cv_prog_cc_g = yes; then
  11716. if test "$GCC" = yes; then
  11717. CFLAGS="-g -O2"
  11718. else
  11719. CFLAGS="-g"
  11720. fi
  11721. else
  11722. if test "$GCC" = yes; then
  11723. CFLAGS="-O2"
  11724. else
  11725. CFLAGS=
  11726. fi
  11727. fi
  11728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  11729. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  11730. if ${ac_cv_prog_cc_c89+:} false; then :
  11731. $as_echo_n "(cached) " >&6
  11732. else
  11733. ac_cv_prog_cc_c89=no
  11734. ac_save_CC=$CC
  11735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11736. /* end confdefs.h. */
  11737. #include <stdarg.h>
  11738. #include <stdio.h>
  11739. struct stat;
  11740. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  11741. struct buf { int x; };
  11742. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  11743. static char *e (p, i)
  11744. char **p;
  11745. int i;
  11746. {
  11747. return p[i];
  11748. }
  11749. static char *f (char * (*g) (char **, int), char **p, ...)
  11750. {
  11751. char *s;
  11752. va_list v;
  11753. va_start (v,p);
  11754. s = g (p, va_arg (v,int));
  11755. va_end (v);
  11756. return s;
  11757. }
  11758. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  11759. function prototypes and stuff, but not '\xHH' hex character constants.
  11760. These don't provoke an error unfortunately, instead are silently treated
  11761. as 'x'. The following induces an error, until -std is added to get
  11762. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  11763. array size at least. It's necessary to write '\x00'==0 to get something
  11764. that's true only with -std. */
  11765. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  11766. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  11767. inside strings and character constants. */
  11768. #define FOO(x) 'x'
  11769. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  11770. int test (int i, double x);
  11771. struct s1 {int (*f) (int a);};
  11772. struct s2 {int (*f) (double a);};
  11773. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  11774. int argc;
  11775. char **argv;
  11776. int
  11777. main ()
  11778. {
  11779. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  11780. ;
  11781. return 0;
  11782. }
  11783. _ACEOF
  11784. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  11785. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11786. do
  11787. CC="$ac_save_CC $ac_arg"
  11788. if ac_fn_c_try_compile "$LINENO"; then :
  11789. ac_cv_prog_cc_c89=$ac_arg
  11790. fi
  11791. rm -f core conftest.err conftest.$ac_objext
  11792. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11793. done
  11794. rm -f conftest.$ac_ext
  11795. CC=$ac_save_CC
  11796. fi
  11797. # AC_CACHE_VAL
  11798. case "x$ac_cv_prog_cc_c89" in
  11799. x)
  11800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11801. $as_echo "none needed" >&6; } ;;
  11802. xno)
  11803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11804. $as_echo "unsupported" >&6; } ;;
  11805. *)
  11806. CC="$CC $ac_cv_prog_cc_c89"
  11807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11808. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  11809. esac
  11810. if test "x$ac_cv_prog_cc_c89" != xno; then :
  11811. fi
  11812. ac_ext=c
  11813. ac_cpp='$CPP $CPPFLAGS'
  11814. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11815. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11816. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11817. ac_ext=c
  11818. ac_cpp='$CPP $CPPFLAGS'
  11819. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11820. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11821. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  11823. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  11824. if ${am_cv_prog_cc_c_o+:} false; then :
  11825. $as_echo_n "(cached) " >&6
  11826. else
  11827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11828. /* end confdefs.h. */
  11829. int
  11830. main ()
  11831. {
  11832. ;
  11833. return 0;
  11834. }
  11835. _ACEOF
  11836. # Make sure it works both with $CC and with simple cc.
  11837. # Following AC_PROG_CC_C_O, we do the test twice because some
  11838. # compilers refuse to overwrite an existing .o file with -o,
  11839. # though they will create one.
  11840. am_cv_prog_cc_c_o=yes
  11841. for am_i in 1 2; do
  11842. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  11843. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  11844. ac_status=$?
  11845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11846. (exit $ac_status); } \
  11847. && test -f conftest2.$ac_objext; then
  11848. : OK
  11849. else
  11850. am_cv_prog_cc_c_o=no
  11851. break
  11852. fi
  11853. done
  11854. rm -f core conftest*
  11855. unset am_i
  11856. fi
  11857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  11858. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  11859. if test "$am_cv_prog_cc_c_o" != yes; then
  11860. # Losing compiler, so override with the script.
  11861. # FIXME: It is wrong to rewrite CC.
  11862. # But if we don't then we get into trouble of one sort or another.
  11863. # A longer-term fix would be to have automake use am__CC in this case,
  11864. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  11865. CC="$am_aux_dir/compile $CC"
  11866. fi
  11867. ac_ext=c
  11868. ac_cpp='$CPP $CPPFLAGS'
  11869. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11870. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11871. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11872. depcc="$CC" am_compiler_list=
  11873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  11874. $as_echo_n "checking dependency style of $depcc... " >&6; }
  11875. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  11876. $as_echo_n "(cached) " >&6
  11877. else
  11878. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  11879. # We make a subdir and do the tests there. Otherwise we can end up
  11880. # making bogus files that we don't know about and never remove. For
  11881. # instance it was reported that on HP-UX the gcc test will end up
  11882. # making a dummy file named 'D' -- because '-MD' means "put the output
  11883. # in D".
  11884. rm -rf conftest.dir
  11885. mkdir conftest.dir
  11886. # Copy depcomp to subdir because otherwise we won't find it if we're
  11887. # using a relative directory.
  11888. cp "$am_depcomp" conftest.dir
  11889. cd conftest.dir
  11890. # We will build objects and dependencies in a subdirectory because
  11891. # it helps to detect inapplicable dependency modes. For instance
  11892. # both Tru64's cc and ICC support -MD to output dependencies as a
  11893. # side effect of compilation, but ICC will put the dependencies in
  11894. # the current directory while Tru64 will put them in the object
  11895. # directory.
  11896. mkdir sub
  11897. am_cv_CC_dependencies_compiler_type=none
  11898. if test "$am_compiler_list" = ""; then
  11899. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  11900. fi
  11901. am__universal=false
  11902. case " $depcc " in #(
  11903. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  11904. esac
  11905. for depmode in $am_compiler_list; do
  11906. # Setup a source with many dependencies, because some compilers
  11907. # like to wrap large dependency lists on column 80 (with \), and
  11908. # we should not choose a depcomp mode which is confused by this.
  11909. #
  11910. # We need to recreate these files for each test, as the compiler may
  11911. # overwrite some of them when testing with obscure command lines.
  11912. # This happens at least with the AIX C compiler.
  11913. : > sub/conftest.c
  11914. for i in 1 2 3 4 5 6; do
  11915. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  11916. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  11917. # Solaris 10 /bin/sh.
  11918. echo '/* dummy */' > sub/conftst$i.h
  11919. done
  11920. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  11921. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  11922. # mode. It turns out that the SunPro C++ compiler does not properly
  11923. # handle '-M -o', and we need to detect this. Also, some Intel
  11924. # versions had trouble with output in subdirs.
  11925. am__obj=sub/conftest.${OBJEXT-o}
  11926. am__minus_obj="-o $am__obj"
  11927. case $depmode in
  11928. gcc)
  11929. # This depmode causes a compiler race in universal mode.
  11930. test "$am__universal" = false || continue
  11931. ;;
  11932. nosideeffect)
  11933. # After this tag, mechanisms are not by side-effect, so they'll
  11934. # only be used when explicitly requested.
  11935. if test "x$enable_dependency_tracking" = xyes; then
  11936. continue
  11937. else
  11938. break
  11939. fi
  11940. ;;
  11941. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  11942. # This compiler won't grok '-c -o', but also, the minuso test has
  11943. # not run yet. These depmodes are late enough in the game, and
  11944. # so weak that their functioning should not be impacted.
  11945. am__obj=conftest.${OBJEXT-o}
  11946. am__minus_obj=
  11947. ;;
  11948. none) break ;;
  11949. esac
  11950. if depmode=$depmode \
  11951. source=sub/conftest.c object=$am__obj \
  11952. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  11953. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  11954. >/dev/null 2>conftest.err &&
  11955. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  11956. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  11957. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  11958. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  11959. # icc doesn't choke on unknown options, it will just issue warnings
  11960. # or remarks (even with -Werror). So we grep stderr for any message
  11961. # that says an option was ignored or not supported.
  11962. # When given -MP, icc 7.0 and 7.1 complain thusly:
  11963. # icc: Command line warning: ignoring option '-M'; no argument required
  11964. # The diagnosis changed in icc 8.0:
  11965. # icc: Command line remark: option '-MP' not supported
  11966. if (grep 'ignoring option' conftest.err ||
  11967. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  11968. am_cv_CC_dependencies_compiler_type=$depmode
  11969. break
  11970. fi
  11971. fi
  11972. done
  11973. cd ..
  11974. rm -rf conftest.dir
  11975. else
  11976. am_cv_CC_dependencies_compiler_type=none
  11977. fi
  11978. fi
  11979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  11980. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  11981. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  11982. if
  11983. test "x$enable_dependency_tracking" != xno \
  11984. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  11985. am__fastdepCC_TRUE=
  11986. am__fastdepCC_FALSE='#'
  11987. else
  11988. am__fastdepCC_TRUE='#'
  11989. am__fastdepCC_FALSE=
  11990. fi
  11991. ac_ext=cpp
  11992. ac_cpp='$CXXCPP $CPPFLAGS'
  11993. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11994. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11995. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11996. if test -z "$CXX"; then
  11997. if test -n "$CCC"; then
  11998. CXX=$CCC
  11999. else
  12000. if test -n "$ac_tool_prefix"; then
  12001. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  12002. do
  12003. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12004. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12006. $as_echo_n "checking for $ac_word... " >&6; }
  12007. if ${ac_cv_prog_CXX+:} false; then :
  12008. $as_echo_n "(cached) " >&6
  12009. else
  12010. if test -n "$CXX"; then
  12011. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12012. else
  12013. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12014. for as_dir in $PATH
  12015. do
  12016. IFS=$as_save_IFS
  12017. test -z "$as_dir" && as_dir=.
  12018. for ac_exec_ext in '' $ac_executable_extensions; do
  12019. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12020. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12021. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12022. break 2
  12023. fi
  12024. done
  12025. done
  12026. IFS=$as_save_IFS
  12027. fi
  12028. fi
  12029. CXX=$ac_cv_prog_CXX
  12030. if test -n "$CXX"; then
  12031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12032. $as_echo "$CXX" >&6; }
  12033. else
  12034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12035. $as_echo "no" >&6; }
  12036. fi
  12037. test -n "$CXX" && break
  12038. done
  12039. fi
  12040. if test -z "$CXX"; then
  12041. ac_ct_CXX=$CXX
  12042. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  12043. do
  12044. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12045. set dummy $ac_prog; ac_word=$2
  12046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12047. $as_echo_n "checking for $ac_word... " >&6; }
  12048. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  12049. $as_echo_n "(cached) " >&6
  12050. else
  12051. if test -n "$ac_ct_CXX"; then
  12052. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12053. else
  12054. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12055. for as_dir in $PATH
  12056. do
  12057. IFS=$as_save_IFS
  12058. test -z "$as_dir" && as_dir=.
  12059. for ac_exec_ext in '' $ac_executable_extensions; do
  12060. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12061. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12062. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12063. break 2
  12064. fi
  12065. done
  12066. done
  12067. IFS=$as_save_IFS
  12068. fi
  12069. fi
  12070. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12071. if test -n "$ac_ct_CXX"; then
  12072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12073. $as_echo "$ac_ct_CXX" >&6; }
  12074. else
  12075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12076. $as_echo "no" >&6; }
  12077. fi
  12078. test -n "$ac_ct_CXX" && break
  12079. done
  12080. if test "x$ac_ct_CXX" = x; then
  12081. CXX="g++"
  12082. else
  12083. case $cross_compiling:$ac_tool_warned in
  12084. yes:)
  12085. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12086. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12087. ac_tool_warned=yes ;;
  12088. esac
  12089. CXX=$ac_ct_CXX
  12090. fi
  12091. fi
  12092. fi
  12093. fi
  12094. # Provide some information about the compiler.
  12095. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12096. set X $ac_compile
  12097. ac_compiler=$2
  12098. for ac_option in --version -v -V -qversion; do
  12099. { { ac_try="$ac_compiler $ac_option >&5"
  12100. case "(($ac_try" in
  12101. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12102. *) ac_try_echo=$ac_try;;
  12103. esac
  12104. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12105. $as_echo "$ac_try_echo"; } >&5
  12106. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12107. ac_status=$?
  12108. if test -s conftest.err; then
  12109. sed '10a\
  12110. ... rest of stderr output deleted ...
  12111. 10q' conftest.err >conftest.er1
  12112. cat conftest.er1 >&5
  12113. fi
  12114. rm -f conftest.er1 conftest.err
  12115. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12116. test $ac_status = 0; }
  12117. done
  12118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  12119. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  12120. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  12121. $as_echo_n "(cached) " >&6
  12122. else
  12123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12124. /* end confdefs.h. */
  12125. int
  12126. main ()
  12127. {
  12128. #ifndef __GNUC__
  12129. choke me
  12130. #endif
  12131. ;
  12132. return 0;
  12133. }
  12134. _ACEOF
  12135. if ac_fn_cxx_try_compile "$LINENO"; then :
  12136. ac_compiler_gnu=yes
  12137. else
  12138. ac_compiler_gnu=no
  12139. fi
  12140. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12141. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12142. fi
  12143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12144. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  12145. if test $ac_compiler_gnu = yes; then
  12146. GXX=yes
  12147. else
  12148. GXX=
  12149. fi
  12150. ac_test_CXXFLAGS=${CXXFLAGS+set}
  12151. ac_save_CXXFLAGS=$CXXFLAGS
  12152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12153. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  12154. if ${ac_cv_prog_cxx_g+:} false; then :
  12155. $as_echo_n "(cached) " >&6
  12156. else
  12157. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12158. ac_cxx_werror_flag=yes
  12159. ac_cv_prog_cxx_g=no
  12160. CXXFLAGS="-g"
  12161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12162. /* end confdefs.h. */
  12163. int
  12164. main ()
  12165. {
  12166. ;
  12167. return 0;
  12168. }
  12169. _ACEOF
  12170. if ac_fn_cxx_try_compile "$LINENO"; then :
  12171. ac_cv_prog_cxx_g=yes
  12172. else
  12173. CXXFLAGS=""
  12174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12175. /* end confdefs.h. */
  12176. int
  12177. main ()
  12178. {
  12179. ;
  12180. return 0;
  12181. }
  12182. _ACEOF
  12183. if ac_fn_cxx_try_compile "$LINENO"; then :
  12184. else
  12185. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12186. CXXFLAGS="-g"
  12187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12188. /* end confdefs.h. */
  12189. int
  12190. main ()
  12191. {
  12192. ;
  12193. return 0;
  12194. }
  12195. _ACEOF
  12196. if ac_fn_cxx_try_compile "$LINENO"; then :
  12197. ac_cv_prog_cxx_g=yes
  12198. fi
  12199. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12200. fi
  12201. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12202. fi
  12203. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12204. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12205. fi
  12206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12207. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  12208. if test "$ac_test_CXXFLAGS" = set; then
  12209. CXXFLAGS=$ac_save_CXXFLAGS
  12210. elif test $ac_cv_prog_cxx_g = yes; then
  12211. if test "$GXX" = yes; then
  12212. CXXFLAGS="-g -O2"
  12213. else
  12214. CXXFLAGS="-g"
  12215. fi
  12216. else
  12217. if test "$GXX" = yes; then
  12218. CXXFLAGS="-O2"
  12219. else
  12220. CXXFLAGS=
  12221. fi
  12222. fi
  12223. ac_ext=c
  12224. ac_cpp='$CPP $CPPFLAGS'
  12225. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12226. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12227. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12228. depcc="$CXX" am_compiler_list=
  12229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  12230. $as_echo_n "checking dependency style of $depcc... " >&6; }
  12231. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  12232. $as_echo_n "(cached) " >&6
  12233. else
  12234. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  12235. # We make a subdir and do the tests there. Otherwise we can end up
  12236. # making bogus files that we don't know about and never remove. For
  12237. # instance it was reported that on HP-UX the gcc test will end up
  12238. # making a dummy file named 'D' -- because '-MD' means "put the output
  12239. # in D".
  12240. rm -rf conftest.dir
  12241. mkdir conftest.dir
  12242. # Copy depcomp to subdir because otherwise we won't find it if we're
  12243. # using a relative directory.
  12244. cp "$am_depcomp" conftest.dir
  12245. cd conftest.dir
  12246. # We will build objects and dependencies in a subdirectory because
  12247. # it helps to detect inapplicable dependency modes. For instance
  12248. # both Tru64's cc and ICC support -MD to output dependencies as a
  12249. # side effect of compilation, but ICC will put the dependencies in
  12250. # the current directory while Tru64 will put them in the object
  12251. # directory.
  12252. mkdir sub
  12253. am_cv_CXX_dependencies_compiler_type=none
  12254. if test "$am_compiler_list" = ""; then
  12255. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  12256. fi
  12257. am__universal=false
  12258. case " $depcc " in #(
  12259. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  12260. esac
  12261. for depmode in $am_compiler_list; do
  12262. # Setup a source with many dependencies, because some compilers
  12263. # like to wrap large dependency lists on column 80 (with \), and
  12264. # we should not choose a depcomp mode which is confused by this.
  12265. #
  12266. # We need to recreate these files for each test, as the compiler may
  12267. # overwrite some of them when testing with obscure command lines.
  12268. # This happens at least with the AIX C compiler.
  12269. : > sub/conftest.c
  12270. for i in 1 2 3 4 5 6; do
  12271. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  12272. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  12273. # Solaris 10 /bin/sh.
  12274. echo '/* dummy */' > sub/conftst$i.h
  12275. done
  12276. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  12277. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  12278. # mode. It turns out that the SunPro C++ compiler does not properly
  12279. # handle '-M -o', and we need to detect this. Also, some Intel
  12280. # versions had trouble with output in subdirs.
  12281. am__obj=sub/conftest.${OBJEXT-o}
  12282. am__minus_obj="-o $am__obj"
  12283. case $depmode in
  12284. gcc)
  12285. # This depmode causes a compiler race in universal mode.
  12286. test "$am__universal" = false || continue
  12287. ;;
  12288. nosideeffect)
  12289. # After this tag, mechanisms are not by side-effect, so they'll
  12290. # only be used when explicitly requested.
  12291. if test "x$enable_dependency_tracking" = xyes; then
  12292. continue
  12293. else
  12294. break
  12295. fi
  12296. ;;
  12297. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  12298. # This compiler won't grok '-c -o', but also, the minuso test has
  12299. # not run yet. These depmodes are late enough in the game, and
  12300. # so weak that their functioning should not be impacted.
  12301. am__obj=conftest.${OBJEXT-o}
  12302. am__minus_obj=
  12303. ;;
  12304. none) break ;;
  12305. esac
  12306. if depmode=$depmode \
  12307. source=sub/conftest.c object=$am__obj \
  12308. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12309. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  12310. >/dev/null 2>conftest.err &&
  12311. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  12312. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12313. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  12314. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12315. # icc doesn't choke on unknown options, it will just issue warnings
  12316. # or remarks (even with -Werror). So we grep stderr for any message
  12317. # that says an option was ignored or not supported.
  12318. # When given -MP, icc 7.0 and 7.1 complain thusly:
  12319. # icc: Command line warning: ignoring option '-M'; no argument required
  12320. # The diagnosis changed in icc 8.0:
  12321. # icc: Command line remark: option '-MP' not supported
  12322. if (grep 'ignoring option' conftest.err ||
  12323. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  12324. am_cv_CXX_dependencies_compiler_type=$depmode
  12325. break
  12326. fi
  12327. fi
  12328. done
  12329. cd ..
  12330. rm -rf conftest.dir
  12331. else
  12332. am_cv_CXX_dependencies_compiler_type=none
  12333. fi
  12334. fi
  12335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  12336. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  12337. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  12338. if
  12339. test "x$enable_dependency_tracking" != xno \
  12340. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  12341. am__fastdepCXX_TRUE=
  12342. am__fastdepCXX_FALSE='#'
  12343. else
  12344. am__fastdepCXX_TRUE='#'
  12345. am__fastdepCXX_FALSE=
  12346. fi
  12347. func_stripname_cnf ()
  12348. {
  12349. case $2 in
  12350. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12351. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12352. esac
  12353. } # func_stripname_cnf
  12354. if test -n "$CXX" && ( test no != "$CXX" &&
  12355. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12356. (test g++ != "$CXX"))); then
  12357. ac_ext=cpp
  12358. ac_cpp='$CXXCPP $CPPFLAGS'
  12359. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12360. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12361. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12363. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  12364. if test -z "$CXXCPP"; then
  12365. if ${ac_cv_prog_CXXCPP+:} false; then :
  12366. $as_echo_n "(cached) " >&6
  12367. else
  12368. # Double quotes because CXXCPP needs to be expanded
  12369. for CXXCPP in "$CXX -E" "/lib/cpp"
  12370. do
  12371. ac_preproc_ok=false
  12372. for ac_cxx_preproc_warn_flag in '' yes
  12373. do
  12374. # Use a header file that comes with gcc, so configuring glibc
  12375. # with a fresh cross-compiler works.
  12376. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12377. # <limits.h> exists even on freestanding compilers.
  12378. # On the NeXT, cc -E runs the code through the compiler's parser,
  12379. # not just through cpp. "Syntax error" is here to catch this case.
  12380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12381. /* end confdefs.h. */
  12382. #ifdef __STDC__
  12383. # include <limits.h>
  12384. #else
  12385. # include <assert.h>
  12386. #endif
  12387. Syntax error
  12388. _ACEOF
  12389. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12390. else
  12391. # Broken: fails on valid input.
  12392. continue
  12393. fi
  12394. rm -f conftest.err conftest.i conftest.$ac_ext
  12395. # OK, works on sane cases. Now check whether nonexistent headers
  12396. # can be detected and how.
  12397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12398. /* end confdefs.h. */
  12399. #include <ac_nonexistent.h>
  12400. _ACEOF
  12401. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12402. # Broken: success on invalid input.
  12403. continue
  12404. else
  12405. # Passes both tests.
  12406. ac_preproc_ok=:
  12407. break
  12408. fi
  12409. rm -f conftest.err conftest.i conftest.$ac_ext
  12410. done
  12411. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12412. rm -f conftest.i conftest.err conftest.$ac_ext
  12413. if $ac_preproc_ok; then :
  12414. break
  12415. fi
  12416. done
  12417. ac_cv_prog_CXXCPP=$CXXCPP
  12418. fi
  12419. CXXCPP=$ac_cv_prog_CXXCPP
  12420. else
  12421. ac_cv_prog_CXXCPP=$CXXCPP
  12422. fi
  12423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12424. $as_echo "$CXXCPP" >&6; }
  12425. ac_preproc_ok=false
  12426. for ac_cxx_preproc_warn_flag in '' yes
  12427. do
  12428. # Use a header file that comes with gcc, so configuring glibc
  12429. # with a fresh cross-compiler works.
  12430. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12431. # <limits.h> exists even on freestanding compilers.
  12432. # On the NeXT, cc -E runs the code through the compiler's parser,
  12433. # not just through cpp. "Syntax error" is here to catch this case.
  12434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12435. /* end confdefs.h. */
  12436. #ifdef __STDC__
  12437. # include <limits.h>
  12438. #else
  12439. # include <assert.h>
  12440. #endif
  12441. Syntax error
  12442. _ACEOF
  12443. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12444. else
  12445. # Broken: fails on valid input.
  12446. continue
  12447. fi
  12448. rm -f conftest.err conftest.i conftest.$ac_ext
  12449. # OK, works on sane cases. Now check whether nonexistent headers
  12450. # can be detected and how.
  12451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12452. /* end confdefs.h. */
  12453. #include <ac_nonexistent.h>
  12454. _ACEOF
  12455. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12456. # Broken: success on invalid input.
  12457. continue
  12458. else
  12459. # Passes both tests.
  12460. ac_preproc_ok=:
  12461. break
  12462. fi
  12463. rm -f conftest.err conftest.i conftest.$ac_ext
  12464. done
  12465. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12466. rm -f conftest.i conftest.err conftest.$ac_ext
  12467. if $ac_preproc_ok; then :
  12468. else
  12469. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12470. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12471. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12472. See \`config.log' for more details" "$LINENO" 5; }
  12473. fi
  12474. ac_ext=c
  12475. ac_cpp='$CPP $CPPFLAGS'
  12476. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12477. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12478. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12479. else
  12480. _lt_caught_CXX_error=yes
  12481. fi
  12482. ac_ext=cpp
  12483. ac_cpp='$CXXCPP $CPPFLAGS'
  12484. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12485. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12486. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12487. archive_cmds_need_lc_CXX=no
  12488. allow_undefined_flag_CXX=
  12489. always_export_symbols_CXX=no
  12490. archive_expsym_cmds_CXX=
  12491. compiler_needs_object_CXX=no
  12492. export_dynamic_flag_spec_CXX=
  12493. hardcode_direct_CXX=no
  12494. hardcode_direct_absolute_CXX=no
  12495. hardcode_libdir_flag_spec_CXX=
  12496. hardcode_libdir_separator_CXX=
  12497. hardcode_minus_L_CXX=no
  12498. hardcode_shlibpath_var_CXX=unsupported
  12499. hardcode_automatic_CXX=no
  12500. inherit_rpath_CXX=no
  12501. module_cmds_CXX=
  12502. module_expsym_cmds_CXX=
  12503. link_all_deplibs_CXX=unknown
  12504. old_archive_cmds_CXX=$old_archive_cmds
  12505. reload_flag_CXX=$reload_flag
  12506. reload_cmds_CXX=$reload_cmds
  12507. no_undefined_flag_CXX=
  12508. whole_archive_flag_spec_CXX=
  12509. enable_shared_with_static_runtimes_CXX=no
  12510. # Source file extension for C++ test sources.
  12511. ac_ext=cpp
  12512. # Object file extension for compiled C++ test sources.
  12513. objext=o
  12514. objext_CXX=$objext
  12515. # No sense in running all these tests if we already determined that
  12516. # the CXX compiler isn't working. Some variables (like enable_shared)
  12517. # are currently assumed to apply to all compilers on this platform,
  12518. # and will be corrupted by setting them based on a non-working compiler.
  12519. if test yes != "$_lt_caught_CXX_error"; then
  12520. # Code to be used in simple compile tests
  12521. lt_simple_compile_test_code="int some_variable = 0;"
  12522. # Code to be used in simple link tests
  12523. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12524. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12525. # If no C compiler was specified, use CC.
  12526. LTCC=${LTCC-"$CC"}
  12527. # If no C compiler flags were specified, use CFLAGS.
  12528. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12529. # Allow CC to be a program name with arguments.
  12530. compiler=$CC
  12531. # save warnings/boilerplate of simple test code
  12532. ac_outfile=conftest.$ac_objext
  12533. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12534. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12535. _lt_compiler_boilerplate=`cat conftest.err`
  12536. $RM conftest*
  12537. ac_outfile=conftest.$ac_objext
  12538. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12539. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12540. _lt_linker_boilerplate=`cat conftest.err`
  12541. $RM -r conftest*
  12542. # Allow CC to be a program name with arguments.
  12543. lt_save_CC=$CC
  12544. lt_save_CFLAGS=$CFLAGS
  12545. lt_save_LD=$LD
  12546. lt_save_GCC=$GCC
  12547. GCC=$GXX
  12548. lt_save_with_gnu_ld=$with_gnu_ld
  12549. lt_save_path_LD=$lt_cv_path_LD
  12550. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12551. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12552. else
  12553. $as_unset lt_cv_prog_gnu_ld
  12554. fi
  12555. if test -n "${lt_cv_path_LDCXX+set}"; then
  12556. lt_cv_path_LD=$lt_cv_path_LDCXX
  12557. else
  12558. $as_unset lt_cv_path_LD
  12559. fi
  12560. test -z "${LDCXX+set}" || LD=$LDCXX
  12561. CC=${CXX-"c++"}
  12562. CFLAGS=$CXXFLAGS
  12563. compiler=$CC
  12564. compiler_CXX=$CC
  12565. func_cc_basename $compiler
  12566. cc_basename=$func_cc_basename_result
  12567. if test -n "$compiler"; then
  12568. # We don't want -fno-exception when compiling C++ code, so set the
  12569. # no_builtin_flag separately
  12570. if test yes = "$GXX"; then
  12571. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12572. else
  12573. lt_prog_compiler_no_builtin_flag_CXX=
  12574. fi
  12575. if test yes = "$GXX"; then
  12576. # Set up default GNU C++ configuration
  12577. # Check whether --with-gnu-ld was given.
  12578. if test "${with_gnu_ld+set}" = set; then :
  12579. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12580. else
  12581. with_gnu_ld=no
  12582. fi
  12583. ac_prog=ld
  12584. if test yes = "$GCC"; then
  12585. # Check if gcc -print-prog-name=ld gives a path.
  12586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12587. $as_echo_n "checking for ld used by $CC... " >&6; }
  12588. case $host in
  12589. *-*-mingw*)
  12590. # gcc leaves a trailing carriage return, which upsets mingw
  12591. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12592. *)
  12593. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12594. esac
  12595. case $ac_prog in
  12596. # Accept absolute paths.
  12597. [\\/]* | ?:[\\/]*)
  12598. re_direlt='/[^/][^/]*/\.\./'
  12599. # Canonicalize the pathname of ld
  12600. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12601. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12602. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12603. done
  12604. test -z "$LD" && LD=$ac_prog
  12605. ;;
  12606. "")
  12607. # If it fails, then pretend we aren't using GCC.
  12608. ac_prog=ld
  12609. ;;
  12610. *)
  12611. # If it is relative, then search for the first ld in PATH.
  12612. with_gnu_ld=unknown
  12613. ;;
  12614. esac
  12615. elif test yes = "$with_gnu_ld"; then
  12616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12617. $as_echo_n "checking for GNU ld... " >&6; }
  12618. else
  12619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12620. $as_echo_n "checking for non-GNU ld... " >&6; }
  12621. fi
  12622. if ${lt_cv_path_LD+:} false; then :
  12623. $as_echo_n "(cached) " >&6
  12624. else
  12625. if test -z "$LD"; then
  12626. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12627. for ac_dir in $PATH; do
  12628. IFS=$lt_save_ifs
  12629. test -z "$ac_dir" && ac_dir=.
  12630. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12631. lt_cv_path_LD=$ac_dir/$ac_prog
  12632. # Check to see if the program is GNU ld. I'd rather use --version,
  12633. # but apparently some variants of GNU ld only accept -v.
  12634. # Break only if it was the GNU/non-GNU ld that we prefer.
  12635. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12636. *GNU* | *'with BFD'*)
  12637. test no != "$with_gnu_ld" && break
  12638. ;;
  12639. *)
  12640. test yes != "$with_gnu_ld" && break
  12641. ;;
  12642. esac
  12643. fi
  12644. done
  12645. IFS=$lt_save_ifs
  12646. else
  12647. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12648. fi
  12649. fi
  12650. LD=$lt_cv_path_LD
  12651. if test -n "$LD"; then
  12652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12653. $as_echo "$LD" >&6; }
  12654. else
  12655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12656. $as_echo "no" >&6; }
  12657. fi
  12658. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12660. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  12661. if ${lt_cv_prog_gnu_ld+:} false; then :
  12662. $as_echo_n "(cached) " >&6
  12663. else
  12664. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12665. case `$LD -v 2>&1 </dev/null` in
  12666. *GNU* | *'with BFD'*)
  12667. lt_cv_prog_gnu_ld=yes
  12668. ;;
  12669. *)
  12670. lt_cv_prog_gnu_ld=no
  12671. ;;
  12672. esac
  12673. fi
  12674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12675. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  12676. with_gnu_ld=$lt_cv_prog_gnu_ld
  12677. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12678. # archiving commands below assume that GNU ld is being used.
  12679. if test yes = "$with_gnu_ld"; then
  12680. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12681. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  12682. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12683. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12684. # If archive_cmds runs LD, not CC, wlarc should be empty
  12685. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12686. # investigate it a little bit more. (MM)
  12687. wlarc='$wl'
  12688. # ancient GNU ld didn't support --whole-archive et. al.
  12689. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12690. $GREP 'no-whole-archive' > /dev/null; then
  12691. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12692. else
  12693. whole_archive_flag_spec_CXX=
  12694. fi
  12695. else
  12696. with_gnu_ld=no
  12697. wlarc=
  12698. # A generic and very simple default shared library creation
  12699. # command for GNU C++ for the case where it uses the native
  12700. # linker, instead of GNU ld. If possible, this setting should
  12701. # overridden to take advantage of the native linker features on
  12702. # the platform it is being used on.
  12703. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12704. fi
  12705. # Commands to make compiler produce verbose output that lists
  12706. # what "hidden" libraries, object files and flags are used when
  12707. # linking a shared library.
  12708. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12709. else
  12710. GXX=no
  12711. with_gnu_ld=no
  12712. wlarc=
  12713. fi
  12714. # PORTME: fill in a description of your system's C++ link characteristics
  12715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12716. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12717. ld_shlibs_CXX=yes
  12718. case $host_os in
  12719. aix3*)
  12720. # FIXME: insert proper C++ library support
  12721. ld_shlibs_CXX=no
  12722. ;;
  12723. aix[4-9]*)
  12724. if test ia64 = "$host_cpu"; then
  12725. # On IA64, the linker does run time linking by default, so we don't
  12726. # have to do anything special.
  12727. aix_use_runtimelinking=no
  12728. exp_sym_flag='-Bexport'
  12729. no_entry_flag=
  12730. else
  12731. aix_use_runtimelinking=no
  12732. # Test if we are trying to use run time linking or normal
  12733. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12734. # have runtime linking enabled, and use it for executables.
  12735. # For shared libraries, we enable/disable runtime linking
  12736. # depending on the kind of the shared library created -
  12737. # when "with_aix_soname,aix_use_runtimelinking" is:
  12738. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12739. # "aix,yes" lib.so shared, rtl:yes, for executables
  12740. # lib.a static archive
  12741. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12742. # lib.a(lib.so.V) shared, rtl:no, for executables
  12743. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12744. # lib.a(lib.so.V) shared, rtl:no
  12745. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12746. # lib.a static archive
  12747. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12748. for ld_flag in $LDFLAGS; do
  12749. case $ld_flag in
  12750. *-brtl*)
  12751. aix_use_runtimelinking=yes
  12752. break
  12753. ;;
  12754. esac
  12755. done
  12756. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12757. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12758. # so we don't have lib.a shared libs to link our executables.
  12759. # We have to force runtime linking in this case.
  12760. aix_use_runtimelinking=yes
  12761. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12762. fi
  12763. ;;
  12764. esac
  12765. exp_sym_flag='-bexport'
  12766. no_entry_flag='-bnoentry'
  12767. fi
  12768. # When large executables or shared objects are built, AIX ld can
  12769. # have problems creating the table of contents. If linking a library
  12770. # or program results in "error TOC overflow" add -mminimal-toc to
  12771. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12772. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12773. archive_cmds_CXX=''
  12774. hardcode_direct_CXX=yes
  12775. hardcode_direct_absolute_CXX=yes
  12776. hardcode_libdir_separator_CXX=':'
  12777. link_all_deplibs_CXX=yes
  12778. file_list_spec_CXX='$wl-f,'
  12779. case $with_aix_soname,$aix_use_runtimelinking in
  12780. aix,*) ;; # no import file
  12781. svr4,* | *,yes) # use import file
  12782. # The Import File defines what to hardcode.
  12783. hardcode_direct_CXX=no
  12784. hardcode_direct_absolute_CXX=no
  12785. ;;
  12786. esac
  12787. if test yes = "$GXX"; then
  12788. case $host_os in aix4.[012]|aix4.[012].*)
  12789. # We only want to do this on AIX 4.2 and lower, the check
  12790. # below for broken collect2 doesn't work under 4.3+
  12791. collect2name=`$CC -print-prog-name=collect2`
  12792. if test -f "$collect2name" &&
  12793. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12794. then
  12795. # We have reworked collect2
  12796. :
  12797. else
  12798. # We have old collect2
  12799. hardcode_direct_CXX=unsupported
  12800. # It fails to find uninstalled libraries when the uninstalled
  12801. # path is not listed in the libpath. Setting hardcode_minus_L
  12802. # to unsupported forces relinking
  12803. hardcode_minus_L_CXX=yes
  12804. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12805. hardcode_libdir_separator_CXX=
  12806. fi
  12807. esac
  12808. shared_flag='-shared'
  12809. if test yes = "$aix_use_runtimelinking"; then
  12810. shared_flag=$shared_flag' $wl-G'
  12811. fi
  12812. # Need to ensure runtime linking is disabled for the traditional
  12813. # shared library, or the linker may eventually find shared libraries
  12814. # /with/ Import File - we do not want to mix them.
  12815. shared_flag_aix='-shared'
  12816. shared_flag_svr4='-shared $wl-G'
  12817. else
  12818. # not using gcc
  12819. if test ia64 = "$host_cpu"; then
  12820. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12821. # chokes on -Wl,-G. The following line is correct:
  12822. shared_flag='-G'
  12823. else
  12824. if test yes = "$aix_use_runtimelinking"; then
  12825. shared_flag='$wl-G'
  12826. else
  12827. shared_flag='$wl-bM:SRE'
  12828. fi
  12829. shared_flag_aix='$wl-bM:SRE'
  12830. shared_flag_svr4='$wl-G'
  12831. fi
  12832. fi
  12833. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12834. # It seems that -bexpall does not export symbols beginning with
  12835. # underscore (_), so it is better to generate a list of symbols to
  12836. # export.
  12837. always_export_symbols_CXX=yes
  12838. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12839. # Warning - without using the other runtime loading flags (-brtl),
  12840. # -berok will link without error, but may produce a broken library.
  12841. # The "-G" linker flag allows undefined symbols.
  12842. no_undefined_flag_CXX='-bernotok'
  12843. # Determine the default libpath from the value encoded in an empty
  12844. # executable.
  12845. if test set = "${lt_cv_aix_libpath+set}"; then
  12846. aix_libpath=$lt_cv_aix_libpath
  12847. else
  12848. if ${lt_cv_aix_libpath__CXX+:} false; then :
  12849. $as_echo_n "(cached) " >&6
  12850. else
  12851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12852. /* end confdefs.h. */
  12853. int
  12854. main ()
  12855. {
  12856. ;
  12857. return 0;
  12858. }
  12859. _ACEOF
  12860. if ac_fn_cxx_try_link "$LINENO"; then :
  12861. lt_aix_libpath_sed='
  12862. /Import File Strings/,/^$/ {
  12863. /^0/ {
  12864. s/^0 *\([^ ]*\) *$/\1/
  12865. p
  12866. }
  12867. }'
  12868. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12869. # Check for a 64-bit object if we didn't find anything.
  12870. if test -z "$lt_cv_aix_libpath__CXX"; then
  12871. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12872. fi
  12873. fi
  12874. rm -f core conftest.err conftest.$ac_objext \
  12875. conftest$ac_exeext conftest.$ac_ext
  12876. if test -z "$lt_cv_aix_libpath__CXX"; then
  12877. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12878. fi
  12879. fi
  12880. aix_libpath=$lt_cv_aix_libpath__CXX
  12881. fi
  12882. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12883. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  12884. else
  12885. if test ia64 = "$host_cpu"; then
  12886. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12887. allow_undefined_flag_CXX="-z nodefs"
  12888. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
  12889. else
  12890. # Determine the default libpath from the value encoded in an
  12891. # empty executable.
  12892. if test set = "${lt_cv_aix_libpath+set}"; then
  12893. aix_libpath=$lt_cv_aix_libpath
  12894. else
  12895. if ${lt_cv_aix_libpath__CXX+:} false; then :
  12896. $as_echo_n "(cached) " >&6
  12897. else
  12898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12899. /* end confdefs.h. */
  12900. int
  12901. main ()
  12902. {
  12903. ;
  12904. return 0;
  12905. }
  12906. _ACEOF
  12907. if ac_fn_cxx_try_link "$LINENO"; then :
  12908. lt_aix_libpath_sed='
  12909. /Import File Strings/,/^$/ {
  12910. /^0/ {
  12911. s/^0 *\([^ ]*\) *$/\1/
  12912. p
  12913. }
  12914. }'
  12915. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12916. # Check for a 64-bit object if we didn't find anything.
  12917. if test -z "$lt_cv_aix_libpath__CXX"; then
  12918. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12919. fi
  12920. fi
  12921. rm -f core conftest.err conftest.$ac_objext \
  12922. conftest$ac_exeext conftest.$ac_ext
  12923. if test -z "$lt_cv_aix_libpath__CXX"; then
  12924. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12925. fi
  12926. fi
  12927. aix_libpath=$lt_cv_aix_libpath__CXX
  12928. fi
  12929. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12930. # Warning - without using the other run time loading flags,
  12931. # -berok will link without error, but may produce a broken library.
  12932. no_undefined_flag_CXX=' $wl-bernotok'
  12933. allow_undefined_flag_CXX=' $wl-berok'
  12934. if test yes = "$with_gnu_ld"; then
  12935. # We only use this code for GNU lds that support --whole-archive.
  12936. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12937. else
  12938. # Exported symbols can be pulled into shared objects from archives
  12939. whole_archive_flag_spec_CXX='$convenience'
  12940. fi
  12941. archive_cmds_need_lc_CXX=yes
  12942. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12943. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12944. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12945. if test svr4 != "$with_aix_soname"; then
  12946. # This is similar to how AIX traditionally builds its shared
  12947. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12948. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  12949. fi
  12950. if test aix != "$with_aix_soname"; then
  12951. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  12952. else
  12953. # used by -dlpreopen to get the symbols
  12954. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12955. fi
  12956. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12957. fi
  12958. fi
  12959. ;;
  12960. beos*)
  12961. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12962. allow_undefined_flag_CXX=unsupported
  12963. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12964. # support --undefined. This deserves some investigation. FIXME
  12965. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12966. else
  12967. ld_shlibs_CXX=no
  12968. fi
  12969. ;;
  12970. chorus*)
  12971. case $cc_basename in
  12972. *)
  12973. # FIXME: insert proper C++ library support
  12974. ld_shlibs_CXX=no
  12975. ;;
  12976. esac
  12977. ;;
  12978. cygwin* | mingw* | pw32* | cegcc*)
  12979. case $GXX,$cc_basename in
  12980. ,cl* | no,cl*)
  12981. # Native MSVC
  12982. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12983. # no search path for DLLs.
  12984. hardcode_libdir_flag_spec_CXX=' '
  12985. allow_undefined_flag_CXX=unsupported
  12986. always_export_symbols_CXX=yes
  12987. file_list_spec_CXX='@'
  12988. # Tell ltmain to make .lib files, not .a files.
  12989. libext=lib
  12990. # Tell ltmain to make .dll files, not .so files.
  12991. shrext_cmds=.dll
  12992. # FIXME: Setting linknames here is a bad hack.
  12993. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  12994. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12995. cp "$export_symbols" "$output_objdir/$soname.def";
  12996. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  12997. else
  12998. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  12999. fi~
  13000. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13001. linknames='
  13002. # The linker will not automatically build a static lib if we build a DLL.
  13003. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13004. enable_shared_with_static_runtimes_CXX=yes
  13005. # Don't use ranlib
  13006. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13007. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13008. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13009. case $lt_outputfile in
  13010. *.exe|*.EXE) ;;
  13011. *)
  13012. lt_outputfile=$lt_outputfile.exe
  13013. lt_tool_outputfile=$lt_tool_outputfile.exe
  13014. ;;
  13015. esac~
  13016. func_to_tool_file "$lt_outputfile"~
  13017. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13018. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13019. $RM "$lt_outputfile.manifest";
  13020. fi'
  13021. ;;
  13022. *)
  13023. # g++
  13024. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13025. # as there is no search path for DLLs.
  13026. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13027. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13028. allow_undefined_flag_CXX=unsupported
  13029. always_export_symbols_CXX=no
  13030. enable_shared_with_static_runtimes_CXX=yes
  13031. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13032. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13033. # If the export-symbols file already is a .def file, use it as
  13034. # is; otherwise, prepend EXPORTS...
  13035. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13036. cp $export_symbols $output_objdir/$soname.def;
  13037. else
  13038. echo EXPORTS > $output_objdir/$soname.def;
  13039. cat $export_symbols >> $output_objdir/$soname.def;
  13040. fi~
  13041. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13042. else
  13043. ld_shlibs_CXX=no
  13044. fi
  13045. ;;
  13046. esac
  13047. ;;
  13048. darwin* | rhapsody*)
  13049. archive_cmds_need_lc_CXX=no
  13050. hardcode_direct_CXX=no
  13051. hardcode_automatic_CXX=yes
  13052. hardcode_shlibpath_var_CXX=unsupported
  13053. if test yes = "$lt_cv_ld_force_load"; then
  13054. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  13055. else
  13056. whole_archive_flag_spec_CXX=''
  13057. fi
  13058. link_all_deplibs_CXX=yes
  13059. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13060. case $cc_basename in
  13061. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13062. *) _lt_dar_can_shared=$GCC ;;
  13063. esac
  13064. if test yes = "$_lt_dar_can_shared"; then
  13065. output_verbose_link_cmd=func_echo_all
  13066. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  13067. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13068. archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
  13069. module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
  13070. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13071. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
  13072. archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
  13073. fi
  13074. else
  13075. ld_shlibs_CXX=no
  13076. fi
  13077. ;;
  13078. os2*)
  13079. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13080. hardcode_minus_L_CXX=yes
  13081. allow_undefined_flag_CXX=unsupported
  13082. shrext_cmds=.dll
  13083. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13084. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13085. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13086. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13087. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13088. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13089. emximp -o $lib $output_objdir/$libname.def'
  13090. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13091. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13092. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13093. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13094. prefix_cmds="$SED"~
  13095. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13096. prefix_cmds="$prefix_cmds -e 1d";
  13097. fi~
  13098. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13099. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13100. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13101. emximp -o $lib $output_objdir/$libname.def'
  13102. old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13103. enable_shared_with_static_runtimes_CXX=yes
  13104. ;;
  13105. dgux*)
  13106. case $cc_basename in
  13107. ec++*)
  13108. # FIXME: insert proper C++ library support
  13109. ld_shlibs_CXX=no
  13110. ;;
  13111. ghcx*)
  13112. # Green Hills C++ Compiler
  13113. # FIXME: insert proper C++ library support
  13114. ld_shlibs_CXX=no
  13115. ;;
  13116. *)
  13117. # FIXME: insert proper C++ library support
  13118. ld_shlibs_CXX=no
  13119. ;;
  13120. esac
  13121. ;;
  13122. freebsd2.*)
  13123. # C++ shared libraries reported to be fairly broken before
  13124. # switch to ELF
  13125. ld_shlibs_CXX=no
  13126. ;;
  13127. freebsd-elf*)
  13128. archive_cmds_need_lc_CXX=no
  13129. ;;
  13130. freebsd* | dragonfly*)
  13131. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13132. # conventions
  13133. ld_shlibs_CXX=yes
  13134. ;;
  13135. haiku*)
  13136. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13137. link_all_deplibs_CXX=yes
  13138. ;;
  13139. hpux9*)
  13140. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13141. hardcode_libdir_separator_CXX=:
  13142. export_dynamic_flag_spec_CXX='$wl-E'
  13143. hardcode_direct_CXX=yes
  13144. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13145. # but as the default
  13146. # location of the library.
  13147. case $cc_basename in
  13148. CC*)
  13149. # FIXME: insert proper C++ library support
  13150. ld_shlibs_CXX=no
  13151. ;;
  13152. aCC*)
  13153. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  13154. # Commands to make compiler produce verbose output that lists
  13155. # what "hidden" libraries, object files and flags are used when
  13156. # linking a shared library.
  13157. #
  13158. # There doesn't appear to be a way to prevent this compiler from
  13159. # explicitly linking system object files so we need to strip them
  13160. # from the output so that they don't get included in the library
  13161. # dependencies.
  13162. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  13163. ;;
  13164. *)
  13165. if test yes = "$GXX"; then
  13166. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  13167. else
  13168. # FIXME: insert proper C++ library support
  13169. ld_shlibs_CXX=no
  13170. fi
  13171. ;;
  13172. esac
  13173. ;;
  13174. hpux10*|hpux11*)
  13175. if test no = "$with_gnu_ld"; then
  13176. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13177. hardcode_libdir_separator_CXX=:
  13178. case $host_cpu in
  13179. hppa*64*|ia64*)
  13180. ;;
  13181. *)
  13182. export_dynamic_flag_spec_CXX='$wl-E'
  13183. ;;
  13184. esac
  13185. fi
  13186. case $host_cpu in
  13187. hppa*64*|ia64*)
  13188. hardcode_direct_CXX=no
  13189. hardcode_shlibpath_var_CXX=no
  13190. ;;
  13191. *)
  13192. hardcode_direct_CXX=yes
  13193. hardcode_direct_absolute_CXX=yes
  13194. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13195. # but as the default
  13196. # location of the library.
  13197. ;;
  13198. esac
  13199. case $cc_basename in
  13200. CC*)
  13201. # FIXME: insert proper C++ library support
  13202. ld_shlibs_CXX=no
  13203. ;;
  13204. aCC*)
  13205. case $host_cpu in
  13206. hppa*64*)
  13207. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13208. ;;
  13209. ia64*)
  13210. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13211. ;;
  13212. *)
  13213. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13214. ;;
  13215. esac
  13216. # Commands to make compiler produce verbose output that lists
  13217. # what "hidden" libraries, object files and flags are used when
  13218. # linking a shared library.
  13219. #
  13220. # There doesn't appear to be a way to prevent this compiler from
  13221. # explicitly linking system object files so we need to strip them
  13222. # from the output so that they don't get included in the library
  13223. # dependencies.
  13224. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  13225. ;;
  13226. *)
  13227. if test yes = "$GXX"; then
  13228. if test no = "$with_gnu_ld"; then
  13229. case $host_cpu in
  13230. hppa*64*)
  13231. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13232. ;;
  13233. ia64*)
  13234. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13235. ;;
  13236. *)
  13237. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13238. ;;
  13239. esac
  13240. fi
  13241. else
  13242. # FIXME: insert proper C++ library support
  13243. ld_shlibs_CXX=no
  13244. fi
  13245. ;;
  13246. esac
  13247. ;;
  13248. interix[3-9]*)
  13249. hardcode_direct_CXX=no
  13250. hardcode_shlibpath_var_CXX=no
  13251. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13252. export_dynamic_flag_spec_CXX='$wl-E'
  13253. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13254. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13255. # default) and relocated if they conflict, which is a slow very memory
  13256. # consuming and fragmenting process. To avoid this, we pick a random,
  13257. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13258. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13259. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  13260. archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  13261. ;;
  13262. irix5* | irix6*)
  13263. case $cc_basename in
  13264. CC*)
  13265. # SGI C++
  13266. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  13267. # Archives containing C++ object files must be created using
  13268. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13269. # necessary to make sure instantiated templates are included
  13270. # in the archive.
  13271. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13272. ;;
  13273. *)
  13274. if test yes = "$GXX"; then
  13275. if test no = "$with_gnu_ld"; then
  13276. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  13277. else
  13278. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
  13279. fi
  13280. fi
  13281. link_all_deplibs_CXX=yes
  13282. ;;
  13283. esac
  13284. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13285. hardcode_libdir_separator_CXX=:
  13286. inherit_rpath_CXX=yes
  13287. ;;
  13288. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13289. case $cc_basename in
  13290. KCC*)
  13291. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13292. # KCC will only create a shared library if the output file
  13293. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13294. # to its proper name (with version) after linking.
  13295. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  13296. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
  13297. # Commands to make compiler produce verbose output that lists
  13298. # what "hidden" libraries, object files and flags are used when
  13299. # linking a shared library.
  13300. #
  13301. # There doesn't appear to be a way to prevent this compiler from
  13302. # explicitly linking system object files so we need to strip them
  13303. # from the output so that they don't get included in the library
  13304. # dependencies.
  13305. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  13306. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13307. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13308. # Archives containing C++ object files must be created using
  13309. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13310. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13311. ;;
  13312. icpc* | ecpc* )
  13313. # Intel C++
  13314. with_gnu_ld=yes
  13315. # version 8.0 and above of icpc choke on multiply defined symbols
  13316. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13317. # earlier do not add the objects themselves.
  13318. case `$CC -V 2>&1` in
  13319. *"Version 7."*)
  13320. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13321. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13322. ;;
  13323. *) # Version 8.0 or newer
  13324. tmp_idyn=
  13325. case $host_cpu in
  13326. ia64*) tmp_idyn=' -i_dynamic';;
  13327. esac
  13328. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13329. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13330. ;;
  13331. esac
  13332. archive_cmds_need_lc_CXX=no
  13333. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13334. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13335. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13336. ;;
  13337. pgCC* | pgcpp*)
  13338. # Portland Group C++ compiler
  13339. case `$CC -V` in
  13340. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13341. prelink_cmds_CXX='tpldir=Template.dir~
  13342. rm -rf $tpldir~
  13343. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13344. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13345. old_archive_cmds_CXX='tpldir=Template.dir~
  13346. rm -rf $tpldir~
  13347. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13348. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13349. $RANLIB $oldlib'
  13350. archive_cmds_CXX='tpldir=Template.dir~
  13351. rm -rf $tpldir~
  13352. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13353. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13354. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13355. rm -rf $tpldir~
  13356. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13357. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13358. ;;
  13359. *) # Version 6 and above use weak symbols
  13360. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13361. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13362. ;;
  13363. esac
  13364. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13365. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13366. whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  13367. ;;
  13368. cxx*)
  13369. # Compaq C++
  13370. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13371. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
  13372. runpath_var=LD_RUN_PATH
  13373. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13374. hardcode_libdir_separator_CXX=:
  13375. # Commands to make compiler produce verbose output that lists
  13376. # what "hidden" libraries, object files and flags are used when
  13377. # linking a shared library.
  13378. #
  13379. # There doesn't appear to be a way to prevent this compiler from
  13380. # explicitly linking system object files so we need to strip them
  13381. # from the output so that they don't get included in the library
  13382. # dependencies.
  13383. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  13384. ;;
  13385. xl* | mpixl* | bgxl*)
  13386. # IBM XL 8.0 on PPC, with GNU ld
  13387. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13388. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13389. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13390. if test yes = "$supports_anon_versioning"; then
  13391. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13392. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13393. echo "local: *; };" >> $output_objdir/$libname.ver~
  13394. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13395. fi
  13396. ;;
  13397. *)
  13398. case `$CC -V 2>&1 | sed 5q` in
  13399. *Sun\ C*)
  13400. # Sun C++ 5.9
  13401. no_undefined_flag_CXX=' -zdefs'
  13402. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13403. archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
  13404. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13405. whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  13406. compiler_needs_object_CXX=yes
  13407. # Not sure whether something based on
  13408. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13409. # would be better.
  13410. output_verbose_link_cmd='func_echo_all'
  13411. # Archives containing C++ object files must be created using
  13412. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13413. # necessary to make sure instantiated templates are included
  13414. # in the archive.
  13415. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13416. ;;
  13417. esac
  13418. ;;
  13419. esac
  13420. ;;
  13421. lynxos*)
  13422. # FIXME: insert proper C++ library support
  13423. ld_shlibs_CXX=no
  13424. ;;
  13425. m88k*)
  13426. # FIXME: insert proper C++ library support
  13427. ld_shlibs_CXX=no
  13428. ;;
  13429. mvs*)
  13430. case $cc_basename in
  13431. cxx*)
  13432. # FIXME: insert proper C++ library support
  13433. ld_shlibs_CXX=no
  13434. ;;
  13435. *)
  13436. # FIXME: insert proper C++ library support
  13437. ld_shlibs_CXX=no
  13438. ;;
  13439. esac
  13440. ;;
  13441. netbsd*)
  13442. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13443. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13444. wlarc=
  13445. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13446. hardcode_direct_CXX=yes
  13447. hardcode_shlibpath_var_CXX=no
  13448. fi
  13449. # Workaround some broken pre-1.5 toolchains
  13450. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13451. ;;
  13452. *nto* | *qnx*)
  13453. ld_shlibs_CXX=yes
  13454. ;;
  13455. openbsd* | bitrig*)
  13456. if test -f /usr/libexec/ld.so; then
  13457. hardcode_direct_CXX=yes
  13458. hardcode_shlibpath_var_CXX=no
  13459. hardcode_direct_absolute_CXX=yes
  13460. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13461. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13462. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13463. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13464. export_dynamic_flag_spec_CXX='$wl-E'
  13465. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13466. fi
  13467. output_verbose_link_cmd=func_echo_all
  13468. else
  13469. ld_shlibs_CXX=no
  13470. fi
  13471. ;;
  13472. osf3* | osf4* | osf5*)
  13473. case $cc_basename in
  13474. KCC*)
  13475. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13476. # KCC will only create a shared library if the output file
  13477. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13478. # to its proper name (with version) after linking.
  13479. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  13480. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13481. hardcode_libdir_separator_CXX=:
  13482. # Archives containing C++ object files must be created using
  13483. # the KAI C++ compiler.
  13484. case $host in
  13485. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13486. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13487. esac
  13488. ;;
  13489. RCC*)
  13490. # Rational C++ 2.4.1
  13491. # FIXME: insert proper C++ library support
  13492. ld_shlibs_CXX=no
  13493. ;;
  13494. cxx*)
  13495. case $host in
  13496. osf3*)
  13497. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13498. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  13499. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13500. ;;
  13501. *)
  13502. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13503. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  13504. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13505. echo "-hidden">> $lib.exp~
  13506. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
  13507. $RM $lib.exp'
  13508. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13509. ;;
  13510. esac
  13511. hardcode_libdir_separator_CXX=:
  13512. # Commands to make compiler produce verbose output that lists
  13513. # what "hidden" libraries, object files and flags are used when
  13514. # linking a shared library.
  13515. #
  13516. # There doesn't appear to be a way to prevent this compiler from
  13517. # explicitly linking system object files so we need to strip them
  13518. # from the output so that they don't get included in the library
  13519. # dependencies.
  13520. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  13521. ;;
  13522. *)
  13523. if test yes,no = "$GXX,$with_gnu_ld"; then
  13524. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13525. case $host in
  13526. osf3*)
  13527. archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  13528. ;;
  13529. *)
  13530. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  13531. ;;
  13532. esac
  13533. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13534. hardcode_libdir_separator_CXX=:
  13535. # Commands to make compiler produce verbose output that lists
  13536. # what "hidden" libraries, object files and flags are used when
  13537. # linking a shared library.
  13538. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13539. else
  13540. # FIXME: insert proper C++ library support
  13541. ld_shlibs_CXX=no
  13542. fi
  13543. ;;
  13544. esac
  13545. ;;
  13546. psos*)
  13547. # FIXME: insert proper C++ library support
  13548. ld_shlibs_CXX=no
  13549. ;;
  13550. sunos4*)
  13551. case $cc_basename in
  13552. CC*)
  13553. # Sun C++ 4.x
  13554. # FIXME: insert proper C++ library support
  13555. ld_shlibs_CXX=no
  13556. ;;
  13557. lcc*)
  13558. # Lucid
  13559. # FIXME: insert proper C++ library support
  13560. ld_shlibs_CXX=no
  13561. ;;
  13562. *)
  13563. # FIXME: insert proper C++ library support
  13564. ld_shlibs_CXX=no
  13565. ;;
  13566. esac
  13567. ;;
  13568. solaris*)
  13569. case $cc_basename in
  13570. CC* | sunCC*)
  13571. # Sun C++ 4.2, 5.x and Centerline C++
  13572. archive_cmds_need_lc_CXX=yes
  13573. no_undefined_flag_CXX=' -zdefs'
  13574. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13575. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13576. $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13577. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13578. hardcode_shlibpath_var_CXX=no
  13579. case $host_os in
  13580. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13581. *)
  13582. # The compiler driver will combine and reorder linker options,
  13583. # but understands '-z linker_flag'.
  13584. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13585. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13586. ;;
  13587. esac
  13588. link_all_deplibs_CXX=yes
  13589. output_verbose_link_cmd='func_echo_all'
  13590. # Archives containing C++ object files must be created using
  13591. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13592. # necessary to make sure instantiated templates are included
  13593. # in the archive.
  13594. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13595. ;;
  13596. gcx*)
  13597. # Green Hills C++ Compiler
  13598. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13599. # The C++ compiler must be used to create the archive.
  13600. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13601. ;;
  13602. *)
  13603. # GNU C++ compiler with Solaris linker
  13604. if test yes,no = "$GXX,$with_gnu_ld"; then
  13605. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13606. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13607. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13608. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13609. $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13610. # Commands to make compiler produce verbose output that lists
  13611. # what "hidden" libraries, object files and flags are used when
  13612. # linking a shared library.
  13613. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13614. else
  13615. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13616. # platform.
  13617. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13618. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13619. $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13620. # Commands to make compiler produce verbose output that lists
  13621. # what "hidden" libraries, object files and flags are used when
  13622. # linking a shared library.
  13623. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13624. fi
  13625. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13626. case $host_os in
  13627. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13628. *)
  13629. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13630. ;;
  13631. esac
  13632. fi
  13633. ;;
  13634. esac
  13635. ;;
  13636. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13637. no_undefined_flag_CXX='$wl-z,text'
  13638. archive_cmds_need_lc_CXX=no
  13639. hardcode_shlibpath_var_CXX=no
  13640. runpath_var='LD_RUN_PATH'
  13641. case $cc_basename in
  13642. CC*)
  13643. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13644. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13645. ;;
  13646. *)
  13647. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13648. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13649. ;;
  13650. esac
  13651. ;;
  13652. sysv5* | sco3.2v5* | sco5v6*)
  13653. # Note: We CANNOT use -z defs as we might desire, because we do not
  13654. # link with -lc, and that would cause any symbols used from libc to
  13655. # always be unresolved, which means just about no library would
  13656. # ever link correctly. If we're not using GNU ld we use -z text
  13657. # though, which does catch some bad symbols but isn't as heavy-handed
  13658. # as -z defs.
  13659. no_undefined_flag_CXX='$wl-z,text'
  13660. allow_undefined_flag_CXX='$wl-z,nodefs'
  13661. archive_cmds_need_lc_CXX=no
  13662. hardcode_shlibpath_var_CXX=no
  13663. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13664. hardcode_libdir_separator_CXX=':'
  13665. link_all_deplibs_CXX=yes
  13666. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13667. runpath_var='LD_RUN_PATH'
  13668. case $cc_basename in
  13669. CC*)
  13670. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13671. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13672. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13673. '"$old_archive_cmds_CXX"
  13674. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13675. '"$reload_cmds_CXX"
  13676. ;;
  13677. *)
  13678. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13679. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13680. ;;
  13681. esac
  13682. ;;
  13683. tandem*)
  13684. case $cc_basename in
  13685. NCC*)
  13686. # NonStop-UX NCC 3.20
  13687. # FIXME: insert proper C++ library support
  13688. ld_shlibs_CXX=no
  13689. ;;
  13690. *)
  13691. # FIXME: insert proper C++ library support
  13692. ld_shlibs_CXX=no
  13693. ;;
  13694. esac
  13695. ;;
  13696. vxworks*)
  13697. # FIXME: insert proper C++ library support
  13698. ld_shlibs_CXX=no
  13699. ;;
  13700. *)
  13701. # FIXME: insert proper C++ library support
  13702. ld_shlibs_CXX=no
  13703. ;;
  13704. esac
  13705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13706. $as_echo "$ld_shlibs_CXX" >&6; }
  13707. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13708. GCC_CXX=$GXX
  13709. LD_CXX=$LD
  13710. ## CAVEAT EMPTOR:
  13711. ## There is no encapsulation within the following macros, do not change
  13712. ## the running order or otherwise move them around unless you know exactly
  13713. ## what you are doing...
  13714. # Dependencies to place before and after the object being linked:
  13715. predep_objects_CXX=
  13716. postdep_objects_CXX=
  13717. predeps_CXX=
  13718. postdeps_CXX=
  13719. compiler_lib_search_path_CXX=
  13720. cat > conftest.$ac_ext <<_LT_EOF
  13721. class Foo
  13722. {
  13723. public:
  13724. Foo (void) { a = 0; }
  13725. private:
  13726. int a;
  13727. };
  13728. _LT_EOF
  13729. _lt_libdeps_save_CFLAGS=$CFLAGS
  13730. case "$CC $CFLAGS " in #(
  13731. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13732. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13733. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13734. esac
  13735. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13736. (eval $ac_compile) 2>&5
  13737. ac_status=$?
  13738. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13739. test $ac_status = 0; }; then
  13740. # Parse the compiler output and extract the necessary
  13741. # objects, libraries and library flags.
  13742. # Sentinel used to keep track of whether or not we are before
  13743. # the conftest object file.
  13744. pre_test_object_deps_done=no
  13745. for p in `eval "$output_verbose_link_cmd"`; do
  13746. case $prev$p in
  13747. -L* | -R* | -l*)
  13748. # Some compilers place space between "-{L,R}" and the path.
  13749. # Remove the space.
  13750. if test x-L = "$p" ||
  13751. test x-R = "$p"; then
  13752. prev=$p
  13753. continue
  13754. fi
  13755. # Expand the sysroot to ease extracting the directories later.
  13756. if test -z "$prev"; then
  13757. case $p in
  13758. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13759. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13760. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13761. esac
  13762. fi
  13763. case $p in
  13764. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13765. esac
  13766. if test no = "$pre_test_object_deps_done"; then
  13767. case $prev in
  13768. -L | -R)
  13769. # Internal compiler library paths should come after those
  13770. # provided the user. The postdeps already come after the
  13771. # user supplied libs so there is no need to process them.
  13772. if test -z "$compiler_lib_search_path_CXX"; then
  13773. compiler_lib_search_path_CXX=$prev$p
  13774. else
  13775. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13776. fi
  13777. ;;
  13778. # The "-l" case would never come before the object being
  13779. # linked, so don't bother handling this case.
  13780. esac
  13781. else
  13782. if test -z "$postdeps_CXX"; then
  13783. postdeps_CXX=$prev$p
  13784. else
  13785. postdeps_CXX="${postdeps_CXX} $prev$p"
  13786. fi
  13787. fi
  13788. prev=
  13789. ;;
  13790. *.lto.$objext) ;; # Ignore GCC LTO objects
  13791. *.$objext)
  13792. # This assumes that the test object file only shows up
  13793. # once in the compiler output.
  13794. if test "$p" = "conftest.$objext"; then
  13795. pre_test_object_deps_done=yes
  13796. continue
  13797. fi
  13798. if test no = "$pre_test_object_deps_done"; then
  13799. if test -z "$predep_objects_CXX"; then
  13800. predep_objects_CXX=$p
  13801. else
  13802. predep_objects_CXX="$predep_objects_CXX $p"
  13803. fi
  13804. else
  13805. if test -z "$postdep_objects_CXX"; then
  13806. postdep_objects_CXX=$p
  13807. else
  13808. postdep_objects_CXX="$postdep_objects_CXX $p"
  13809. fi
  13810. fi
  13811. ;;
  13812. *) ;; # Ignore the rest.
  13813. esac
  13814. done
  13815. # Clean up.
  13816. rm -f a.out a.exe
  13817. else
  13818. echo "libtool.m4: error: problem compiling CXX test program"
  13819. fi
  13820. $RM -f confest.$objext
  13821. CFLAGS=$_lt_libdeps_save_CFLAGS
  13822. # PORTME: override above test on systems where it is broken
  13823. case $host_os in
  13824. interix[3-9]*)
  13825. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13826. # hack all around it, let's just trust "g++" to DTRT.
  13827. predep_objects_CXX=
  13828. postdep_objects_CXX=
  13829. postdeps_CXX=
  13830. ;;
  13831. esac
  13832. case " $postdeps_CXX " in
  13833. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13834. esac
  13835. compiler_lib_search_dirs_CXX=
  13836. if test -n "${compiler_lib_search_path_CXX}"; then
  13837. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13838. fi
  13839. lt_prog_compiler_wl_CXX=
  13840. lt_prog_compiler_pic_CXX=
  13841. lt_prog_compiler_static_CXX=
  13842. # C++ specific cases for pic, static, wl, etc.
  13843. if test yes = "$GXX"; then
  13844. lt_prog_compiler_wl_CXX='-Wl,'
  13845. lt_prog_compiler_static_CXX='-static'
  13846. case $host_os in
  13847. aix*)
  13848. # All AIX code is PIC.
  13849. if test ia64 = "$host_cpu"; then
  13850. # AIX 5 now supports IA64 processor
  13851. lt_prog_compiler_static_CXX='-Bstatic'
  13852. fi
  13853. lt_prog_compiler_pic_CXX='-fPIC'
  13854. ;;
  13855. amigaos*)
  13856. case $host_cpu in
  13857. powerpc)
  13858. # see comment about AmigaOS4 .so support
  13859. lt_prog_compiler_pic_CXX='-fPIC'
  13860. ;;
  13861. m68k)
  13862. # FIXME: we need at least 68020 code to build shared libraries, but
  13863. # adding the '-m68020' flag to GCC prevents building anything better,
  13864. # like '-m68040'.
  13865. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13866. ;;
  13867. esac
  13868. ;;
  13869. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13870. # PIC is the default for these OSes.
  13871. ;;
  13872. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13873. # This hack is so that the source file can tell whether it is being
  13874. # built for inclusion in a dll (and should export symbols for example).
  13875. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13876. # (--disable-auto-import) libraries
  13877. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13878. case $host_os in
  13879. os2*)
  13880. lt_prog_compiler_static_CXX='$wl-static'
  13881. ;;
  13882. esac
  13883. ;;
  13884. darwin* | rhapsody*)
  13885. # PIC is the default on this platform
  13886. # Common symbols not allowed in MH_DYLIB files
  13887. lt_prog_compiler_pic_CXX='-fno-common'
  13888. ;;
  13889. *djgpp*)
  13890. # DJGPP does not support shared libraries at all
  13891. lt_prog_compiler_pic_CXX=
  13892. ;;
  13893. haiku*)
  13894. # PIC is the default for Haiku.
  13895. # The "-static" flag exists, but is broken.
  13896. lt_prog_compiler_static_CXX=
  13897. ;;
  13898. interix[3-9]*)
  13899. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13900. # Instead, we relocate shared libraries at runtime.
  13901. ;;
  13902. sysv4*MP*)
  13903. if test -d /usr/nec; then
  13904. lt_prog_compiler_pic_CXX=-Kconform_pic
  13905. fi
  13906. ;;
  13907. hpux*)
  13908. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13909. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13910. # sets the default TLS model and affects inlining.
  13911. case $host_cpu in
  13912. hppa*64*)
  13913. ;;
  13914. *)
  13915. lt_prog_compiler_pic_CXX='-fPIC'
  13916. ;;
  13917. esac
  13918. ;;
  13919. *qnx* | *nto*)
  13920. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13921. # it will coredump.
  13922. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13923. ;;
  13924. *)
  13925. lt_prog_compiler_pic_CXX='-fPIC'
  13926. ;;
  13927. esac
  13928. else
  13929. case $host_os in
  13930. aix[4-9]*)
  13931. # All AIX code is PIC.
  13932. if test ia64 = "$host_cpu"; then
  13933. # AIX 5 now supports IA64 processor
  13934. lt_prog_compiler_static_CXX='-Bstatic'
  13935. else
  13936. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13937. fi
  13938. ;;
  13939. chorus*)
  13940. case $cc_basename in
  13941. cxch68*)
  13942. # Green Hills C++ Compiler
  13943. # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  13944. ;;
  13945. esac
  13946. ;;
  13947. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13948. # This hack is so that the source file can tell whether it is being
  13949. # built for inclusion in a dll (and should export symbols for example).
  13950. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13951. ;;
  13952. dgux*)
  13953. case $cc_basename in
  13954. ec++*)
  13955. lt_prog_compiler_pic_CXX='-KPIC'
  13956. ;;
  13957. ghcx*)
  13958. # Green Hills C++ Compiler
  13959. lt_prog_compiler_pic_CXX='-pic'
  13960. ;;
  13961. *)
  13962. ;;
  13963. esac
  13964. ;;
  13965. freebsd* | dragonfly*)
  13966. # FreeBSD uses GNU C++
  13967. ;;
  13968. hpux9* | hpux10* | hpux11*)
  13969. case $cc_basename in
  13970. CC*)
  13971. lt_prog_compiler_wl_CXX='-Wl,'
  13972. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13973. if test ia64 != "$host_cpu"; then
  13974. lt_prog_compiler_pic_CXX='+Z'
  13975. fi
  13976. ;;
  13977. aCC*)
  13978. lt_prog_compiler_wl_CXX='-Wl,'
  13979. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13980. case $host_cpu in
  13981. hppa*64*|ia64*)
  13982. # +Z the default
  13983. ;;
  13984. *)
  13985. lt_prog_compiler_pic_CXX='+Z'
  13986. ;;
  13987. esac
  13988. ;;
  13989. *)
  13990. ;;
  13991. esac
  13992. ;;
  13993. interix*)
  13994. # This is c89, which is MS Visual C++ (no shared libs)
  13995. # Anyone wants to do a port?
  13996. ;;
  13997. irix5* | irix6* | nonstopux*)
  13998. case $cc_basename in
  13999. CC*)
  14000. lt_prog_compiler_wl_CXX='-Wl,'
  14001. lt_prog_compiler_static_CXX='-non_shared'
  14002. # CC pic flag -KPIC is the default.
  14003. ;;
  14004. *)
  14005. ;;
  14006. esac
  14007. ;;
  14008. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14009. case $cc_basename in
  14010. KCC*)
  14011. # KAI C++ Compiler
  14012. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14013. lt_prog_compiler_pic_CXX='-fPIC'
  14014. ;;
  14015. ecpc* )
  14016. # old Intel C++ for x86_64, which still supported -KPIC.
  14017. lt_prog_compiler_wl_CXX='-Wl,'
  14018. lt_prog_compiler_pic_CXX='-KPIC'
  14019. lt_prog_compiler_static_CXX='-static'
  14020. ;;
  14021. icpc* )
  14022. # Intel C++, used to be incompatible with GCC.
  14023. # ICC 10 doesn't accept -KPIC any more.
  14024. lt_prog_compiler_wl_CXX='-Wl,'
  14025. lt_prog_compiler_pic_CXX='-fPIC'
  14026. lt_prog_compiler_static_CXX='-static'
  14027. ;;
  14028. pgCC* | pgcpp*)
  14029. # Portland Group C++ compiler
  14030. lt_prog_compiler_wl_CXX='-Wl,'
  14031. lt_prog_compiler_pic_CXX='-fpic'
  14032. lt_prog_compiler_static_CXX='-Bstatic'
  14033. ;;
  14034. cxx*)
  14035. # Compaq C++
  14036. # Make sure the PIC flag is empty. It appears that all Alpha
  14037. # Linux and Compaq Tru64 Unix objects are PIC.
  14038. lt_prog_compiler_pic_CXX=
  14039. lt_prog_compiler_static_CXX='-non_shared'
  14040. ;;
  14041. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14042. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14043. lt_prog_compiler_wl_CXX='-Wl,'
  14044. lt_prog_compiler_pic_CXX='-qpic'
  14045. lt_prog_compiler_static_CXX='-qstaticlink'
  14046. ;;
  14047. *)
  14048. case `$CC -V 2>&1 | sed 5q` in
  14049. *Sun\ C*)
  14050. # Sun C++ 5.9
  14051. lt_prog_compiler_pic_CXX='-KPIC'
  14052. lt_prog_compiler_static_CXX='-Bstatic'
  14053. lt_prog_compiler_wl_CXX='-Qoption ld '
  14054. ;;
  14055. esac
  14056. ;;
  14057. esac
  14058. ;;
  14059. lynxos*)
  14060. ;;
  14061. m88k*)
  14062. ;;
  14063. mvs*)
  14064. case $cc_basename in
  14065. cxx*)
  14066. lt_prog_compiler_pic_CXX='-W c,exportall'
  14067. ;;
  14068. *)
  14069. ;;
  14070. esac
  14071. ;;
  14072. netbsd*)
  14073. ;;
  14074. *qnx* | *nto*)
  14075. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14076. # it will coredump.
  14077. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14078. ;;
  14079. osf3* | osf4* | osf5*)
  14080. case $cc_basename in
  14081. KCC*)
  14082. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14083. ;;
  14084. RCC*)
  14085. # Rational C++ 2.4.1
  14086. lt_prog_compiler_pic_CXX='-pic'
  14087. ;;
  14088. cxx*)
  14089. # Digital/Compaq C++
  14090. lt_prog_compiler_wl_CXX='-Wl,'
  14091. # Make sure the PIC flag is empty. It appears that all Alpha
  14092. # Linux and Compaq Tru64 Unix objects are PIC.
  14093. lt_prog_compiler_pic_CXX=
  14094. lt_prog_compiler_static_CXX='-non_shared'
  14095. ;;
  14096. *)
  14097. ;;
  14098. esac
  14099. ;;
  14100. psos*)
  14101. ;;
  14102. solaris*)
  14103. case $cc_basename in
  14104. CC* | sunCC*)
  14105. # Sun C++ 4.2, 5.x and Centerline C++
  14106. lt_prog_compiler_pic_CXX='-KPIC'
  14107. lt_prog_compiler_static_CXX='-Bstatic'
  14108. lt_prog_compiler_wl_CXX='-Qoption ld '
  14109. ;;
  14110. gcx*)
  14111. # Green Hills C++ Compiler
  14112. lt_prog_compiler_pic_CXX='-PIC'
  14113. ;;
  14114. *)
  14115. ;;
  14116. esac
  14117. ;;
  14118. sunos4*)
  14119. case $cc_basename in
  14120. CC*)
  14121. # Sun C++ 4.x
  14122. lt_prog_compiler_pic_CXX='-pic'
  14123. lt_prog_compiler_static_CXX='-Bstatic'
  14124. ;;
  14125. lcc*)
  14126. # Lucid
  14127. lt_prog_compiler_pic_CXX='-pic'
  14128. ;;
  14129. *)
  14130. ;;
  14131. esac
  14132. ;;
  14133. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14134. case $cc_basename in
  14135. CC*)
  14136. lt_prog_compiler_wl_CXX='-Wl,'
  14137. lt_prog_compiler_pic_CXX='-KPIC'
  14138. lt_prog_compiler_static_CXX='-Bstatic'
  14139. ;;
  14140. esac
  14141. ;;
  14142. tandem*)
  14143. case $cc_basename in
  14144. NCC*)
  14145. # NonStop-UX NCC 3.20
  14146. lt_prog_compiler_pic_CXX='-KPIC'
  14147. ;;
  14148. *)
  14149. ;;
  14150. esac
  14151. ;;
  14152. vxworks*)
  14153. ;;
  14154. *)
  14155. lt_prog_compiler_can_build_shared_CXX=no
  14156. ;;
  14157. esac
  14158. fi
  14159. case $host_os in
  14160. # For platforms that do not support PIC, -DPIC is meaningless:
  14161. *djgpp*)
  14162. lt_prog_compiler_pic_CXX=
  14163. ;;
  14164. *)
  14165. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14166. ;;
  14167. esac
  14168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14169. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  14170. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  14171. $as_echo_n "(cached) " >&6
  14172. else
  14173. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14174. fi
  14175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14176. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14177. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14178. #
  14179. # Check to make sure the PIC flag actually works.
  14180. #
  14181. if test -n "$lt_prog_compiler_pic_CXX"; then
  14182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14183. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14184. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  14185. $as_echo_n "(cached) " >&6
  14186. else
  14187. lt_cv_prog_compiler_pic_works_CXX=no
  14188. ac_outfile=conftest.$ac_objext
  14189. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14190. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14191. # Insert the option either (1) after the last *FLAGS variable, or
  14192. # (2) before a word containing "conftest.", or (3) at the end.
  14193. # Note that $ac_compile itself does not contain backslashes and begins
  14194. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14195. # The option is referenced via a variable to avoid confusing sed.
  14196. lt_compile=`echo "$ac_compile" | $SED \
  14197. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14198. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14199. -e 's:$: $lt_compiler_flag:'`
  14200. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14201. (eval "$lt_compile" 2>conftest.err)
  14202. ac_status=$?
  14203. cat conftest.err >&5
  14204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14205. if (exit $ac_status) && test -s "$ac_outfile"; then
  14206. # The compiler can only warn and ignore the option if not recognized
  14207. # So say no if there are warnings other than the usual output.
  14208. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14209. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14210. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14211. lt_cv_prog_compiler_pic_works_CXX=yes
  14212. fi
  14213. fi
  14214. $RM conftest*
  14215. fi
  14216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14217. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14218. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14219. case $lt_prog_compiler_pic_CXX in
  14220. "" | " "*) ;;
  14221. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14222. esac
  14223. else
  14224. lt_prog_compiler_pic_CXX=
  14225. lt_prog_compiler_can_build_shared_CXX=no
  14226. fi
  14227. fi
  14228. #
  14229. # Check to make sure the static flag actually works.
  14230. #
  14231. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14233. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14234. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  14235. $as_echo_n "(cached) " >&6
  14236. else
  14237. lt_cv_prog_compiler_static_works_CXX=no
  14238. save_LDFLAGS=$LDFLAGS
  14239. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14240. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14241. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14242. # The linker can only warn and ignore the option if not recognized
  14243. # So say no if there are warnings
  14244. if test -s conftest.err; then
  14245. # Append any errors to the config.log.
  14246. cat conftest.err 1>&5
  14247. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14248. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14249. if diff conftest.exp conftest.er2 >/dev/null; then
  14250. lt_cv_prog_compiler_static_works_CXX=yes
  14251. fi
  14252. else
  14253. lt_cv_prog_compiler_static_works_CXX=yes
  14254. fi
  14255. fi
  14256. $RM -r conftest*
  14257. LDFLAGS=$save_LDFLAGS
  14258. fi
  14259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14260. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14261. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14262. :
  14263. else
  14264. lt_prog_compiler_static_CXX=
  14265. fi
  14266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14267. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14268. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  14269. $as_echo_n "(cached) " >&6
  14270. else
  14271. lt_cv_prog_compiler_c_o_CXX=no
  14272. $RM -r conftest 2>/dev/null
  14273. mkdir conftest
  14274. cd conftest
  14275. mkdir out
  14276. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14277. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14278. # Insert the option either (1) after the last *FLAGS variable, or
  14279. # (2) before a word containing "conftest.", or (3) at the end.
  14280. # Note that $ac_compile itself does not contain backslashes and begins
  14281. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14282. lt_compile=`echo "$ac_compile" | $SED \
  14283. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14284. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14285. -e 's:$: $lt_compiler_flag:'`
  14286. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14287. (eval "$lt_compile" 2>out/conftest.err)
  14288. ac_status=$?
  14289. cat out/conftest.err >&5
  14290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14291. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14292. then
  14293. # The compiler can only warn and ignore the option if not recognized
  14294. # So say no if there are warnings
  14295. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14296. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14297. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14298. lt_cv_prog_compiler_c_o_CXX=yes
  14299. fi
  14300. fi
  14301. chmod u+w . 2>&5
  14302. $RM conftest*
  14303. # SGI C++ compiler will create directory out/ii_files/ for
  14304. # template instantiation
  14305. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14306. $RM out/* && rmdir out
  14307. cd ..
  14308. $RM -r conftest
  14309. $RM conftest*
  14310. fi
  14311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14312. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14314. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14315. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  14316. $as_echo_n "(cached) " >&6
  14317. else
  14318. lt_cv_prog_compiler_c_o_CXX=no
  14319. $RM -r conftest 2>/dev/null
  14320. mkdir conftest
  14321. cd conftest
  14322. mkdir out
  14323. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14324. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14325. # Insert the option either (1) after the last *FLAGS variable, or
  14326. # (2) before a word containing "conftest.", or (3) at the end.
  14327. # Note that $ac_compile itself does not contain backslashes and begins
  14328. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14329. lt_compile=`echo "$ac_compile" | $SED \
  14330. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14331. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14332. -e 's:$: $lt_compiler_flag:'`
  14333. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14334. (eval "$lt_compile" 2>out/conftest.err)
  14335. ac_status=$?
  14336. cat out/conftest.err >&5
  14337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14338. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14339. then
  14340. # The compiler can only warn and ignore the option if not recognized
  14341. # So say no if there are warnings
  14342. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14343. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14344. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14345. lt_cv_prog_compiler_c_o_CXX=yes
  14346. fi
  14347. fi
  14348. chmod u+w . 2>&5
  14349. $RM conftest*
  14350. # SGI C++ compiler will create directory out/ii_files/ for
  14351. # template instantiation
  14352. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14353. $RM out/* && rmdir out
  14354. cd ..
  14355. $RM -r conftest
  14356. $RM conftest*
  14357. fi
  14358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14359. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14360. hard_links=nottested
  14361. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14362. # do not overwrite the value of need_locks provided by the user
  14363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14364. $as_echo_n "checking if we can lock with hard links... " >&6; }
  14365. hard_links=yes
  14366. $RM conftest*
  14367. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14368. touch conftest.a
  14369. ln conftest.a conftest.b 2>&5 || hard_links=no
  14370. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14372. $as_echo "$hard_links" >&6; }
  14373. if test no = "$hard_links"; then
  14374. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14375. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14376. need_locks=warn
  14377. fi
  14378. else
  14379. need_locks=no
  14380. fi
  14381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14382. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14383. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14384. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14385. case $host_os in
  14386. aix[4-9]*)
  14387. # If we're using GNU nm, then we don't want the "-C" option.
  14388. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14389. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14390. # weak defined symbols like other global defined symbols, whereas
  14391. # GNU nm marks them as "W".
  14392. # While the 'weak' keyword is ignored in the Export File, we need
  14393. # it in the Import File for the 'aix-soname' feature, so we have
  14394. # to replace the "-B" option with "-P" for AIX nm.
  14395. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14396. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  14397. else
  14398. export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  14399. fi
  14400. ;;
  14401. pw32*)
  14402. export_symbols_cmds_CXX=$ltdll_cmds
  14403. ;;
  14404. cygwin* | mingw* | cegcc*)
  14405. case $cc_basename in
  14406. cl*)
  14407. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14408. ;;
  14409. *)
  14410. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  14411. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14412. ;;
  14413. esac
  14414. ;;
  14415. *)
  14416. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14417. ;;
  14418. esac
  14419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14420. $as_echo "$ld_shlibs_CXX" >&6; }
  14421. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14422. with_gnu_ld_CXX=$with_gnu_ld
  14423. #
  14424. # Do we need to explicitly link libc?
  14425. #
  14426. case "x$archive_cmds_need_lc_CXX" in
  14427. x|xyes)
  14428. # Assume -lc should be added
  14429. archive_cmds_need_lc_CXX=yes
  14430. if test yes,yes = "$GCC,$enable_shared"; then
  14431. case $archive_cmds_CXX in
  14432. *'~'*)
  14433. # FIXME: we may have to deal with multi-command sequences.
  14434. ;;
  14435. '$CC '*)
  14436. # Test whether the compiler implicitly links with -lc since on some
  14437. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14438. # to ld, don't add -lc before -lgcc.
  14439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14440. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  14441. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  14442. $as_echo_n "(cached) " >&6
  14443. else
  14444. $RM conftest*
  14445. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14446. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14447. (eval $ac_compile) 2>&5
  14448. ac_status=$?
  14449. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14450. test $ac_status = 0; } 2>conftest.err; then
  14451. soname=conftest
  14452. lib=conftest
  14453. libobjs=conftest.$ac_objext
  14454. deplibs=
  14455. wl=$lt_prog_compiler_wl_CXX
  14456. pic_flag=$lt_prog_compiler_pic_CXX
  14457. compiler_flags=-v
  14458. linker_flags=-v
  14459. verstring=
  14460. output_objdir=.
  14461. libname=conftest
  14462. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14463. allow_undefined_flag_CXX=
  14464. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14465. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14466. ac_status=$?
  14467. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14468. test $ac_status = 0; }
  14469. then
  14470. lt_cv_archive_cmds_need_lc_CXX=no
  14471. else
  14472. lt_cv_archive_cmds_need_lc_CXX=yes
  14473. fi
  14474. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14475. else
  14476. cat conftest.err 1>&5
  14477. fi
  14478. $RM conftest*
  14479. fi
  14480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14481. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14482. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14483. ;;
  14484. esac
  14485. fi
  14486. ;;
  14487. esac
  14488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14489. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  14490. library_names_spec=
  14491. libname_spec='lib$name'
  14492. soname_spec=
  14493. shrext_cmds=.so
  14494. postinstall_cmds=
  14495. postuninstall_cmds=
  14496. finish_cmds=
  14497. finish_eval=
  14498. shlibpath_var=
  14499. shlibpath_overrides_runpath=unknown
  14500. version_type=none
  14501. dynamic_linker="$host_os ld.so"
  14502. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14503. need_lib_prefix=unknown
  14504. hardcode_into_libs=no
  14505. # when you set need_version to no, make sure it does not cause -set_version
  14506. # flags to be left without arguments
  14507. need_version=unknown
  14508. case $host_os in
  14509. aix3*)
  14510. version_type=linux # correct to gnu/linux during the next big refactor
  14511. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14512. shlibpath_var=LIBPATH
  14513. # AIX 3 has no versioning support, so we append a major version to the name.
  14514. soname_spec='$libname$release$shared_ext$major'
  14515. ;;
  14516. aix[4-9]*)
  14517. version_type=linux # correct to gnu/linux during the next big refactor
  14518. need_lib_prefix=no
  14519. need_version=no
  14520. hardcode_into_libs=yes
  14521. if test ia64 = "$host_cpu"; then
  14522. # AIX 5 supports IA64
  14523. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14524. shlibpath_var=LD_LIBRARY_PATH
  14525. else
  14526. # With GCC up to 2.95.x, collect2 would create an import file
  14527. # for dependence libraries. The import file would start with
  14528. # the line '#! .'. This would cause the generated library to
  14529. # depend on '.', always an invalid library. This was fixed in
  14530. # development snapshots of GCC prior to 3.0.
  14531. case $host_os in
  14532. aix4 | aix4.[01] | aix4.[01].*)
  14533. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14534. echo ' yes '
  14535. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14536. :
  14537. else
  14538. can_build_shared=no
  14539. fi
  14540. ;;
  14541. esac
  14542. # Using Import Files as archive members, it is possible to support
  14543. # filename-based versioning of shared library archives on AIX. While
  14544. # this would work for both with and without runtime linking, it will
  14545. # prevent static linking of such archives. So we do filename-based
  14546. # shared library versioning with .so extension only, which is used
  14547. # when both runtime linking and shared linking is enabled.
  14548. # Unfortunately, runtime linking may impact performance, so we do
  14549. # not want this to be the default eventually. Also, we use the
  14550. # versioned .so libs for executables only if there is the -brtl
  14551. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14552. # To allow for filename-based versioning support, we need to create
  14553. # libNAME.so.V as an archive file, containing:
  14554. # *) an Import File, referring to the versioned filename of the
  14555. # archive as well as the shared archive member, telling the
  14556. # bitwidth (32 or 64) of that shared object, and providing the
  14557. # list of exported symbols of that shared object, eventually
  14558. # decorated with the 'weak' keyword
  14559. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14560. # it being seen by the linker.
  14561. # At run time we better use the real file rather than another symlink,
  14562. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14563. case $with_aix_soname,$aix_use_runtimelinking in
  14564. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14565. # soname into executable. Probably we can add versioning support to
  14566. # collect2, so additional links can be useful in future.
  14567. aix,yes) # traditional libtool
  14568. dynamic_linker='AIX unversionable lib.so'
  14569. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14570. # instead of lib<name>.a to let people know that these are not
  14571. # typical AIX shared libraries.
  14572. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14573. ;;
  14574. aix,no) # traditional AIX only
  14575. dynamic_linker='AIX lib.a(lib.so.V)'
  14576. # We preserve .a as extension for shared libraries through AIX4.2
  14577. # and later when we are not doing run time linking.
  14578. library_names_spec='$libname$release.a $libname.a'
  14579. soname_spec='$libname$release$shared_ext$major'
  14580. ;;
  14581. svr4,*) # full svr4 only
  14582. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14583. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14584. # We do not specify a path in Import Files, so LIBPATH fires.
  14585. shlibpath_overrides_runpath=yes
  14586. ;;
  14587. *,yes) # both, prefer svr4
  14588. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14589. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14590. # unpreferred sharedlib libNAME.a needs extra handling
  14591. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  14592. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  14593. # We do not specify a path in Import Files, so LIBPATH fires.
  14594. shlibpath_overrides_runpath=yes
  14595. ;;
  14596. *,no) # both, prefer aix
  14597. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14598. library_names_spec='$libname$release.a $libname.a'
  14599. soname_spec='$libname$release$shared_ext$major'
  14600. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14601. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  14602. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  14603. ;;
  14604. esac
  14605. shlibpath_var=LIBPATH
  14606. fi
  14607. ;;
  14608. amigaos*)
  14609. case $host_cpu in
  14610. powerpc)
  14611. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14612. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14613. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14614. ;;
  14615. m68k)
  14616. library_names_spec='$libname.ixlibrary $libname.a'
  14617. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14618. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  14619. ;;
  14620. esac
  14621. ;;
  14622. beos*)
  14623. library_names_spec='$libname$shared_ext'
  14624. dynamic_linker="$host_os ld.so"
  14625. shlibpath_var=LIBRARY_PATH
  14626. ;;
  14627. bsdi[45]*)
  14628. version_type=linux # correct to gnu/linux during the next big refactor
  14629. need_version=no
  14630. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14631. soname_spec='$libname$release$shared_ext$major'
  14632. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14633. shlibpath_var=LD_LIBRARY_PATH
  14634. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14635. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14636. # the default ld.so.conf also contains /usr/contrib/lib and
  14637. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14638. # libtool to hard-code these into programs
  14639. ;;
  14640. cygwin* | mingw* | pw32* | cegcc*)
  14641. version_type=windows
  14642. shrext_cmds=.dll
  14643. need_version=no
  14644. need_lib_prefix=no
  14645. case $GCC,$cc_basename in
  14646. yes,*)
  14647. # gcc
  14648. library_names_spec='$libname.dll.a'
  14649. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14650. postinstall_cmds='base_file=`basename \$file`~
  14651. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14652. dldir=$destdir/`dirname \$dlpath`~
  14653. test -d \$dldir || mkdir -p \$dldir~
  14654. $install_prog $dir/$dlname \$dldir/$dlname~
  14655. chmod a+x \$dldir/$dlname~
  14656. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14657. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14658. fi'
  14659. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14660. dlpath=$dir/\$dldll~
  14661. $RM \$dlpath'
  14662. shlibpath_overrides_runpath=yes
  14663. case $host_os in
  14664. cygwin*)
  14665. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14666. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14667. ;;
  14668. mingw* | cegcc*)
  14669. # MinGW DLLs use traditional 'lib' prefix
  14670. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14671. ;;
  14672. pw32*)
  14673. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14674. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14675. ;;
  14676. esac
  14677. dynamic_linker='Win32 ld.exe'
  14678. ;;
  14679. *,cl*)
  14680. # Native MSVC
  14681. libname_spec='$name'
  14682. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14683. library_names_spec='$libname.dll.lib'
  14684. case $build_os in
  14685. mingw*)
  14686. sys_lib_search_path_spec=
  14687. lt_save_ifs=$IFS
  14688. IFS=';'
  14689. for lt_path in $LIB
  14690. do
  14691. IFS=$lt_save_ifs
  14692. # Let DOS variable expansion print the short 8.3 style file name.
  14693. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14694. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14695. done
  14696. IFS=$lt_save_ifs
  14697. # Convert to MSYS style.
  14698. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14699. ;;
  14700. cygwin*)
  14701. # Convert to unix form, then to dos form, then back to unix form
  14702. # but this time dos style (no spaces!) so that the unix form looks
  14703. # like /cygdrive/c/PROGRA~1:/cygdr...
  14704. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14705. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14706. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14707. ;;
  14708. *)
  14709. sys_lib_search_path_spec=$LIB
  14710. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14711. # It is most probably a Windows format PATH.
  14712. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14713. else
  14714. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14715. fi
  14716. # FIXME: find the short name or the path components, as spaces are
  14717. # common. (e.g. "Program Files" -> "PROGRA~1")
  14718. ;;
  14719. esac
  14720. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14721. postinstall_cmds='base_file=`basename \$file`~
  14722. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14723. dldir=$destdir/`dirname \$dlpath`~
  14724. test -d \$dldir || mkdir -p \$dldir~
  14725. $install_prog $dir/$dlname \$dldir/$dlname'
  14726. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14727. dlpath=$dir/\$dldll~
  14728. $RM \$dlpath'
  14729. shlibpath_overrides_runpath=yes
  14730. dynamic_linker='Win32 link.exe'
  14731. ;;
  14732. *)
  14733. # Assume MSVC wrapper
  14734. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14735. dynamic_linker='Win32 ld.exe'
  14736. ;;
  14737. esac
  14738. # FIXME: first we should search . and the directory the executable is in
  14739. shlibpath_var=PATH
  14740. ;;
  14741. darwin* | rhapsody*)
  14742. dynamic_linker="$host_os dyld"
  14743. version_type=darwin
  14744. need_lib_prefix=no
  14745. need_version=no
  14746. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14747. soname_spec='$libname$release$major$shared_ext'
  14748. shlibpath_overrides_runpath=yes
  14749. shlibpath_var=DYLD_LIBRARY_PATH
  14750. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14751. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14752. ;;
  14753. dgux*)
  14754. version_type=linux # correct to gnu/linux during the next big refactor
  14755. need_lib_prefix=no
  14756. need_version=no
  14757. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14758. soname_spec='$libname$release$shared_ext$major'
  14759. shlibpath_var=LD_LIBRARY_PATH
  14760. ;;
  14761. freebsd* | dragonfly*)
  14762. # DragonFly does not have aout. When/if they implement a new
  14763. # versioning mechanism, adjust this.
  14764. if test -x /usr/bin/objformat; then
  14765. objformat=`/usr/bin/objformat`
  14766. else
  14767. case $host_os in
  14768. freebsd[23].*) objformat=aout ;;
  14769. *) objformat=elf ;;
  14770. esac
  14771. fi
  14772. version_type=freebsd-$objformat
  14773. case $version_type in
  14774. freebsd-elf*)
  14775. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14776. soname_spec='$libname$release$shared_ext$major'
  14777. need_version=no
  14778. need_lib_prefix=no
  14779. ;;
  14780. freebsd-*)
  14781. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14782. need_version=yes
  14783. ;;
  14784. esac
  14785. shlibpath_var=LD_LIBRARY_PATH
  14786. case $host_os in
  14787. freebsd2.*)
  14788. shlibpath_overrides_runpath=yes
  14789. ;;
  14790. freebsd3.[01]* | freebsdelf3.[01]*)
  14791. shlibpath_overrides_runpath=yes
  14792. hardcode_into_libs=yes
  14793. ;;
  14794. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14795. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14796. shlibpath_overrides_runpath=no
  14797. hardcode_into_libs=yes
  14798. ;;
  14799. *) # from 4.6 on, and DragonFly
  14800. shlibpath_overrides_runpath=yes
  14801. hardcode_into_libs=yes
  14802. ;;
  14803. esac
  14804. ;;
  14805. haiku*)
  14806. version_type=linux # correct to gnu/linux during the next big refactor
  14807. need_lib_prefix=no
  14808. need_version=no
  14809. dynamic_linker="$host_os runtime_loader"
  14810. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14811. soname_spec='$libname$release$shared_ext$major'
  14812. shlibpath_var=LIBRARY_PATH
  14813. shlibpath_overrides_runpath=no
  14814. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14815. hardcode_into_libs=yes
  14816. ;;
  14817. hpux9* | hpux10* | hpux11*)
  14818. # Give a soname corresponding to the major version so that dld.sl refuses to
  14819. # link against other versions.
  14820. version_type=sunos
  14821. need_lib_prefix=no
  14822. need_version=no
  14823. case $host_cpu in
  14824. ia64*)
  14825. shrext_cmds='.so'
  14826. hardcode_into_libs=yes
  14827. dynamic_linker="$host_os dld.so"
  14828. shlibpath_var=LD_LIBRARY_PATH
  14829. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14830. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14831. soname_spec='$libname$release$shared_ext$major'
  14832. if test 32 = "$HPUX_IA64_MODE"; then
  14833. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14834. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14835. else
  14836. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14837. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14838. fi
  14839. ;;
  14840. hppa*64*)
  14841. shrext_cmds='.sl'
  14842. hardcode_into_libs=yes
  14843. dynamic_linker="$host_os dld.sl"
  14844. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14845. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14846. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14847. soname_spec='$libname$release$shared_ext$major'
  14848. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14849. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14850. ;;
  14851. *)
  14852. shrext_cmds='.sl'
  14853. dynamic_linker="$host_os dld.sl"
  14854. shlibpath_var=SHLIB_PATH
  14855. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14856. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14857. soname_spec='$libname$release$shared_ext$major'
  14858. ;;
  14859. esac
  14860. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14861. postinstall_cmds='chmod 555 $lib'
  14862. # or fails outright, so override atomically:
  14863. install_override_mode=555
  14864. ;;
  14865. interix[3-9]*)
  14866. version_type=linux # correct to gnu/linux during the next big refactor
  14867. need_lib_prefix=no
  14868. need_version=no
  14869. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14870. soname_spec='$libname$release$shared_ext$major'
  14871. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14872. shlibpath_var=LD_LIBRARY_PATH
  14873. shlibpath_overrides_runpath=no
  14874. hardcode_into_libs=yes
  14875. ;;
  14876. irix5* | irix6* | nonstopux*)
  14877. case $host_os in
  14878. nonstopux*) version_type=nonstopux ;;
  14879. *)
  14880. if test yes = "$lt_cv_prog_gnu_ld"; then
  14881. version_type=linux # correct to gnu/linux during the next big refactor
  14882. else
  14883. version_type=irix
  14884. fi ;;
  14885. esac
  14886. need_lib_prefix=no
  14887. need_version=no
  14888. soname_spec='$libname$release$shared_ext$major'
  14889. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14890. case $host_os in
  14891. irix5* | nonstopux*)
  14892. libsuff= shlibsuff=
  14893. ;;
  14894. *)
  14895. case $LD in # libtool.m4 will add one of these switches to LD
  14896. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14897. libsuff= shlibsuff= libmagic=32-bit;;
  14898. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14899. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14900. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14901. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14902. *) libsuff= shlibsuff= libmagic=never-match;;
  14903. esac
  14904. ;;
  14905. esac
  14906. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14907. shlibpath_overrides_runpath=no
  14908. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14909. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14910. hardcode_into_libs=yes
  14911. ;;
  14912. # No shared lib support for Linux oldld, aout, or coff.
  14913. linux*oldld* | linux*aout* | linux*coff*)
  14914. dynamic_linker=no
  14915. ;;
  14916. linux*android*)
  14917. version_type=none # Android doesn't support versioned libraries.
  14918. need_lib_prefix=no
  14919. need_version=no
  14920. library_names_spec='$libname$release$shared_ext'
  14921. soname_spec='$libname$release$shared_ext'
  14922. finish_cmds=
  14923. shlibpath_var=LD_LIBRARY_PATH
  14924. shlibpath_overrides_runpath=yes
  14925. # This implies no fast_install, which is unacceptable.
  14926. # Some rework will be needed to allow for fast_install
  14927. # before this can be enabled.
  14928. hardcode_into_libs=yes
  14929. dynamic_linker='Android linker'
  14930. # Don't embed -rpath directories since the linker doesn't support them.
  14931. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14932. ;;
  14933. # This must be glibc/ELF.
  14934. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14935. version_type=linux # correct to gnu/linux during the next big refactor
  14936. need_lib_prefix=no
  14937. need_version=no
  14938. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14939. soname_spec='$libname$release$shared_ext$major'
  14940. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14941. shlibpath_var=LD_LIBRARY_PATH
  14942. shlibpath_overrides_runpath=no
  14943. # Some binutils ld are patched to set DT_RUNPATH
  14944. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  14945. $as_echo_n "(cached) " >&6
  14946. else
  14947. lt_cv_shlibpath_overrides_runpath=no
  14948. save_LDFLAGS=$LDFLAGS
  14949. save_libdir=$libdir
  14950. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14951. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14953. /* end confdefs.h. */
  14954. int
  14955. main ()
  14956. {
  14957. ;
  14958. return 0;
  14959. }
  14960. _ACEOF
  14961. if ac_fn_cxx_try_link "$LINENO"; then :
  14962. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  14963. lt_cv_shlibpath_overrides_runpath=yes
  14964. fi
  14965. fi
  14966. rm -f core conftest.err conftest.$ac_objext \
  14967. conftest$ac_exeext conftest.$ac_ext
  14968. LDFLAGS=$save_LDFLAGS
  14969. libdir=$save_libdir
  14970. fi
  14971. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14972. # This implies no fast_install, which is unacceptable.
  14973. # Some rework will be needed to allow for fast_install
  14974. # before this can be enabled.
  14975. hardcode_into_libs=yes
  14976. # Ideally, we could use ldconfig to report *all* directores which are
  14977. # searched for libraries, however this is still not possible. Aside from not
  14978. # being certain /sbin/ldconfig is available, command
  14979. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  14980. # even though it is searched at run-time. Try to do the best guess by
  14981. # appending ld.so.conf contents (and includes) to the search path.
  14982. if test -f /etc/ld.so.conf; then
  14983. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  14984. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14985. fi
  14986. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14987. # powerpc, because MkLinux only supported shared libraries with the
  14988. # GNU dynamic linker. Since this was broken with cross compilers,
  14989. # most powerpc-linux boxes support dynamic linking these days and
  14990. # people can always --disable-shared, the test was removed, and we
  14991. # assume the GNU/Linux dynamic linker is in use.
  14992. dynamic_linker='GNU/Linux ld.so'
  14993. ;;
  14994. netbsd*)
  14995. version_type=sunos
  14996. need_lib_prefix=no
  14997. need_version=no
  14998. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14999. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15000. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15001. dynamic_linker='NetBSD (a.out) ld.so'
  15002. else
  15003. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15004. soname_spec='$libname$release$shared_ext$major'
  15005. dynamic_linker='NetBSD ld.elf_so'
  15006. fi
  15007. shlibpath_var=LD_LIBRARY_PATH
  15008. shlibpath_overrides_runpath=yes
  15009. hardcode_into_libs=yes
  15010. ;;
  15011. newsos6)
  15012. version_type=linux # correct to gnu/linux during the next big refactor
  15013. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15014. shlibpath_var=LD_LIBRARY_PATH
  15015. shlibpath_overrides_runpath=yes
  15016. ;;
  15017. *nto* | *qnx*)
  15018. version_type=qnx
  15019. need_lib_prefix=no
  15020. need_version=no
  15021. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15022. soname_spec='$libname$release$shared_ext$major'
  15023. shlibpath_var=LD_LIBRARY_PATH
  15024. shlibpath_overrides_runpath=no
  15025. hardcode_into_libs=yes
  15026. dynamic_linker='ldqnx.so'
  15027. ;;
  15028. openbsd* | bitrig*)
  15029. version_type=sunos
  15030. sys_lib_dlsearch_path_spec=/usr/lib
  15031. need_lib_prefix=no
  15032. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15033. need_version=no
  15034. else
  15035. need_version=yes
  15036. fi
  15037. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15038. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15039. shlibpath_var=LD_LIBRARY_PATH
  15040. shlibpath_overrides_runpath=yes
  15041. ;;
  15042. os2*)
  15043. libname_spec='$name'
  15044. version_type=windows
  15045. shrext_cmds=.dll
  15046. need_version=no
  15047. need_lib_prefix=no
  15048. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15049. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15050. v=$($ECHO $release$versuffix | tr -d .-);
  15051. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15052. $ECHO $n$v`$shared_ext'
  15053. library_names_spec='${libname}_dll.$libext'
  15054. dynamic_linker='OS/2 ld.exe'
  15055. shlibpath_var=BEGINLIBPATH
  15056. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15057. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15058. postinstall_cmds='base_file=`basename \$file`~
  15059. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15060. dldir=$destdir/`dirname \$dlpath`~
  15061. test -d \$dldir || mkdir -p \$dldir~
  15062. $install_prog $dir/$dlname \$dldir/$dlname~
  15063. chmod a+x \$dldir/$dlname~
  15064. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15065. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15066. fi'
  15067. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15068. dlpath=$dir/\$dldll~
  15069. $RM \$dlpath'
  15070. ;;
  15071. osf3* | osf4* | osf5*)
  15072. version_type=osf
  15073. need_lib_prefix=no
  15074. need_version=no
  15075. soname_spec='$libname$release$shared_ext$major'
  15076. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15077. shlibpath_var=LD_LIBRARY_PATH
  15078. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15079. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15080. ;;
  15081. rdos*)
  15082. dynamic_linker=no
  15083. ;;
  15084. solaris*)
  15085. version_type=linux # correct to gnu/linux during the next big refactor
  15086. need_lib_prefix=no
  15087. need_version=no
  15088. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15089. soname_spec='$libname$release$shared_ext$major'
  15090. shlibpath_var=LD_LIBRARY_PATH
  15091. shlibpath_overrides_runpath=yes
  15092. hardcode_into_libs=yes
  15093. # ldd complains unless libraries are executable
  15094. postinstall_cmds='chmod +x $lib'
  15095. ;;
  15096. sunos4*)
  15097. version_type=sunos
  15098. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15099. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15100. shlibpath_var=LD_LIBRARY_PATH
  15101. shlibpath_overrides_runpath=yes
  15102. if test yes = "$with_gnu_ld"; then
  15103. need_lib_prefix=no
  15104. fi
  15105. need_version=yes
  15106. ;;
  15107. sysv4 | sysv4.3*)
  15108. version_type=linux # correct to gnu/linux during the next big refactor
  15109. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15110. soname_spec='$libname$release$shared_ext$major'
  15111. shlibpath_var=LD_LIBRARY_PATH
  15112. case $host_vendor in
  15113. sni)
  15114. shlibpath_overrides_runpath=no
  15115. need_lib_prefix=no
  15116. runpath_var=LD_RUN_PATH
  15117. ;;
  15118. siemens)
  15119. need_lib_prefix=no
  15120. ;;
  15121. motorola)
  15122. need_lib_prefix=no
  15123. need_version=no
  15124. shlibpath_overrides_runpath=no
  15125. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15126. ;;
  15127. esac
  15128. ;;
  15129. sysv4*MP*)
  15130. if test -d /usr/nec; then
  15131. version_type=linux # correct to gnu/linux during the next big refactor
  15132. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15133. soname_spec='$libname$shared_ext.$major'
  15134. shlibpath_var=LD_LIBRARY_PATH
  15135. fi
  15136. ;;
  15137. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15138. version_type=sco
  15139. need_lib_prefix=no
  15140. need_version=no
  15141. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15142. soname_spec='$libname$release$shared_ext$major'
  15143. shlibpath_var=LD_LIBRARY_PATH
  15144. shlibpath_overrides_runpath=yes
  15145. hardcode_into_libs=yes
  15146. if test yes = "$with_gnu_ld"; then
  15147. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15148. else
  15149. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15150. case $host_os in
  15151. sco3.2v5*)
  15152. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15153. ;;
  15154. esac
  15155. fi
  15156. sys_lib_dlsearch_path_spec='/usr/lib'
  15157. ;;
  15158. tpf*)
  15159. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15160. version_type=linux # correct to gnu/linux during the next big refactor
  15161. need_lib_prefix=no
  15162. need_version=no
  15163. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15164. shlibpath_var=LD_LIBRARY_PATH
  15165. shlibpath_overrides_runpath=no
  15166. hardcode_into_libs=yes
  15167. ;;
  15168. uts4*)
  15169. version_type=linux # correct to gnu/linux during the next big refactor
  15170. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15171. soname_spec='$libname$release$shared_ext$major'
  15172. shlibpath_var=LD_LIBRARY_PATH
  15173. ;;
  15174. *)
  15175. dynamic_linker=no
  15176. ;;
  15177. esac
  15178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15179. $as_echo "$dynamic_linker" >&6; }
  15180. test no = "$dynamic_linker" && can_build_shared=no
  15181. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15182. if test yes = "$GCC"; then
  15183. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15184. fi
  15185. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15186. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15187. fi
  15188. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15189. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15190. fi
  15191. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15192. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15193. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15194. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15195. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15196. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15198. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  15199. hardcode_action_CXX=
  15200. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15201. test -n "$runpath_var_CXX" ||
  15202. test yes = "$hardcode_automatic_CXX"; then
  15203. # We can hardcode non-existent directories.
  15204. if test no != "$hardcode_direct_CXX" &&
  15205. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15206. # have to relink, otherwise we might link with an installed library
  15207. # when we should be linking with a yet-to-be-installed one
  15208. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15209. test no != "$hardcode_minus_L_CXX"; then
  15210. # Linking always hardcodes the temporary library directory.
  15211. hardcode_action_CXX=relink
  15212. else
  15213. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15214. hardcode_action_CXX=immediate
  15215. fi
  15216. else
  15217. # We cannot hardcode anything, or else we can only hardcode existing
  15218. # directories.
  15219. hardcode_action_CXX=unsupported
  15220. fi
  15221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15222. $as_echo "$hardcode_action_CXX" >&6; }
  15223. if test relink = "$hardcode_action_CXX" ||
  15224. test yes = "$inherit_rpath_CXX"; then
  15225. # Fast installation is not supported
  15226. enable_fast_install=no
  15227. elif test yes = "$shlibpath_overrides_runpath" ||
  15228. test no = "$enable_shared"; then
  15229. # Fast installation is not necessary
  15230. enable_fast_install=needless
  15231. fi
  15232. fi # test -n "$compiler"
  15233. CC=$lt_save_CC
  15234. CFLAGS=$lt_save_CFLAGS
  15235. LDCXX=$LD
  15236. LD=$lt_save_LD
  15237. GCC=$lt_save_GCC
  15238. with_gnu_ld=$lt_save_with_gnu_ld
  15239. lt_cv_path_LDCXX=$lt_cv_path_LD
  15240. lt_cv_path_LD=$lt_save_path_LD
  15241. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15242. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15243. fi # test yes != "$_lt_caught_CXX_error"
  15244. ac_ext=c
  15245. ac_cpp='$CPP $CPPFLAGS'
  15246. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15247. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15248. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15249. ac_ext=c
  15250. ac_cpp='$CPP $CPPFLAGS'
  15251. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15252. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15253. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  15255. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  15256. # On Suns, sometimes $CPP names a directory.
  15257. if test -n "$CPP" && test -d "$CPP"; then
  15258. CPP=
  15259. fi
  15260. if test -z "$CPP"; then
  15261. if ${ac_cv_prog_CPP+:} false; then :
  15262. $as_echo_n "(cached) " >&6
  15263. else
  15264. # Double quotes because CPP needs to be expanded
  15265. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  15266. do
  15267. ac_preproc_ok=false
  15268. for ac_c_preproc_warn_flag in '' yes
  15269. do
  15270. # Use a header file that comes with gcc, so configuring glibc
  15271. # with a fresh cross-compiler works.
  15272. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15273. # <limits.h> exists even on freestanding compilers.
  15274. # On the NeXT, cc -E runs the code through the compiler's parser,
  15275. # not just through cpp. "Syntax error" is here to catch this case.
  15276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15277. /* end confdefs.h. */
  15278. #ifdef __STDC__
  15279. # include <limits.h>
  15280. #else
  15281. # include <assert.h>
  15282. #endif
  15283. Syntax error
  15284. _ACEOF
  15285. if ac_fn_c_try_cpp "$LINENO"; then :
  15286. else
  15287. # Broken: fails on valid input.
  15288. continue
  15289. fi
  15290. rm -f conftest.err conftest.i conftest.$ac_ext
  15291. # OK, works on sane cases. Now check whether nonexistent headers
  15292. # can be detected and how.
  15293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15294. /* end confdefs.h. */
  15295. #include <ac_nonexistent.h>
  15296. _ACEOF
  15297. if ac_fn_c_try_cpp "$LINENO"; then :
  15298. # Broken: success on invalid input.
  15299. continue
  15300. else
  15301. # Passes both tests.
  15302. ac_preproc_ok=:
  15303. break
  15304. fi
  15305. rm -f conftest.err conftest.i conftest.$ac_ext
  15306. done
  15307. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  15308. rm -f conftest.i conftest.err conftest.$ac_ext
  15309. if $ac_preproc_ok; then :
  15310. break
  15311. fi
  15312. done
  15313. ac_cv_prog_CPP=$CPP
  15314. fi
  15315. CPP=$ac_cv_prog_CPP
  15316. else
  15317. ac_cv_prog_CPP=$CPP
  15318. fi
  15319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  15320. $as_echo "$CPP" >&6; }
  15321. ac_preproc_ok=false
  15322. for ac_c_preproc_warn_flag in '' yes
  15323. do
  15324. # Use a header file that comes with gcc, so configuring glibc
  15325. # with a fresh cross-compiler works.
  15326. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15327. # <limits.h> exists even on freestanding compilers.
  15328. # On the NeXT, cc -E runs the code through the compiler's parser,
  15329. # not just through cpp. "Syntax error" is here to catch this case.
  15330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15331. /* end confdefs.h. */
  15332. #ifdef __STDC__
  15333. # include <limits.h>
  15334. #else
  15335. # include <assert.h>
  15336. #endif
  15337. Syntax error
  15338. _ACEOF
  15339. if ac_fn_c_try_cpp "$LINENO"; then :
  15340. else
  15341. # Broken: fails on valid input.
  15342. continue
  15343. fi
  15344. rm -f conftest.err conftest.i conftest.$ac_ext
  15345. # OK, works on sane cases. Now check whether nonexistent headers
  15346. # can be detected and how.
  15347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15348. /* end confdefs.h. */
  15349. #include <ac_nonexistent.h>
  15350. _ACEOF
  15351. if ac_fn_c_try_cpp "$LINENO"; then :
  15352. # Broken: success on invalid input.
  15353. continue
  15354. else
  15355. # Passes both tests.
  15356. ac_preproc_ok=:
  15357. break
  15358. fi
  15359. rm -f conftest.err conftest.i conftest.$ac_ext
  15360. done
  15361. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  15362. rm -f conftest.i conftest.err conftest.$ac_ext
  15363. if $ac_preproc_ok; then :
  15364. else
  15365. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15366. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15367. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  15368. See \`config.log' for more details" "$LINENO" 5; }
  15369. fi
  15370. ac_ext=c
  15371. ac_cpp='$CPP $CPPFLAGS'
  15372. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15373. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15374. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  15376. $as_echo_n "checking whether ln -s works... " >&6; }
  15377. LN_S=$as_ln_s
  15378. if test "$LN_S" = "ln -s"; then
  15379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15380. $as_echo "yes" >&6; }
  15381. else
  15382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  15383. $as_echo "no, using $LN_S" >&6; }
  15384. fi
  15385. for ac_prog in gawk mawk nawk awk
  15386. do
  15387. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15388. set dummy $ac_prog; ac_word=$2
  15389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15390. $as_echo_n "checking for $ac_word... " >&6; }
  15391. if ${ac_cv_prog_AWK+:} false; then :
  15392. $as_echo_n "(cached) " >&6
  15393. else
  15394. if test -n "$AWK"; then
  15395. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  15396. else
  15397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15398. for as_dir in $PATH
  15399. do
  15400. IFS=$as_save_IFS
  15401. test -z "$as_dir" && as_dir=.
  15402. for ac_exec_ext in '' $ac_executable_extensions; do
  15403. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15404. ac_cv_prog_AWK="$ac_prog"
  15405. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15406. break 2
  15407. fi
  15408. done
  15409. done
  15410. IFS=$as_save_IFS
  15411. fi
  15412. fi
  15413. AWK=$ac_cv_prog_AWK
  15414. if test -n "$AWK"; then
  15415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  15416. $as_echo "$AWK" >&6; }
  15417. else
  15418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15419. $as_echo "no" >&6; }
  15420. fi
  15421. test -n "$AWK" && break
  15422. done
  15423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  15424. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  15425. if ${ac_cv_path_SED+:} false; then :
  15426. $as_echo_n "(cached) " >&6
  15427. else
  15428. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  15429. for ac_i in 1 2 3 4 5 6 7; do
  15430. ac_script="$ac_script$as_nl$ac_script"
  15431. done
  15432. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  15433. { ac_script=; unset ac_script;}
  15434. if test -z "$SED"; then
  15435. ac_path_SED_found=false
  15436. # Loop through the user's path and test for each of PROGNAME-LIST
  15437. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15438. for as_dir in $PATH
  15439. do
  15440. IFS=$as_save_IFS
  15441. test -z "$as_dir" && as_dir=.
  15442. for ac_prog in sed gsed; do
  15443. for ac_exec_ext in '' $ac_executable_extensions; do
  15444. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  15445. as_fn_executable_p "$ac_path_SED" || continue
  15446. # Check for GNU ac_path_SED and select it if it is found.
  15447. # Check for GNU $ac_path_SED
  15448. case `"$ac_path_SED" --version 2>&1` in
  15449. *GNU*)
  15450. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  15451. *)
  15452. ac_count=0
  15453. $as_echo_n 0123456789 >"conftest.in"
  15454. while :
  15455. do
  15456. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15457. mv "conftest.tmp" "conftest.in"
  15458. cp "conftest.in" "conftest.nl"
  15459. $as_echo '' >> "conftest.nl"
  15460. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15461. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15462. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15463. if test $ac_count -gt ${ac_path_SED_max-0}; then
  15464. # Best one so far, save it but keep looking for a better one
  15465. ac_cv_path_SED="$ac_path_SED"
  15466. ac_path_SED_max=$ac_count
  15467. fi
  15468. # 10*(2^10) chars as input seems more than enough
  15469. test $ac_count -gt 10 && break
  15470. done
  15471. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15472. esac
  15473. $ac_path_SED_found && break 3
  15474. done
  15475. done
  15476. done
  15477. IFS=$as_save_IFS
  15478. if test -z "$ac_cv_path_SED"; then
  15479. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  15480. fi
  15481. else
  15482. ac_cv_path_SED=$SED
  15483. fi
  15484. fi
  15485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  15486. $as_echo "$ac_cv_path_SED" >&6; }
  15487. SED="$ac_cv_path_SED"
  15488. rm -f conftest.sed
  15489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15490. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15491. set x ${MAKE-make}
  15492. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15493. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  15494. $as_echo_n "(cached) " >&6
  15495. else
  15496. cat >conftest.make <<\_ACEOF
  15497. SHELL = /bin/sh
  15498. all:
  15499. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15500. _ACEOF
  15501. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15502. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15503. *@@@%%%=?*=@@@%%%*)
  15504. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15505. *)
  15506. eval ac_cv_prog_make_${ac_make}_set=no;;
  15507. esac
  15508. rm -f conftest.make
  15509. fi
  15510. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15512. $as_echo "yes" >&6; }
  15513. SET_MAKE=
  15514. else
  15515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15516. $as_echo "no" >&6; }
  15517. SET_MAKE="MAKE=${MAKE-make}"
  15518. fi
  15519. # Extract the first word of "printf", so it can be a program name with args.
  15520. set dummy printf; ac_word=$2
  15521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15522. $as_echo_n "checking for $ac_word... " >&6; }
  15523. if ${ac_cv_path_PRINTF+:} false; then :
  15524. $as_echo_n "(cached) " >&6
  15525. else
  15526. case $PRINTF in
  15527. [\\/]* | ?:[\\/]*)
  15528. ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
  15529. ;;
  15530. *)
  15531. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15532. for as_dir in $PATH
  15533. do
  15534. IFS=$as_save_IFS
  15535. test -z "$as_dir" && as_dir=.
  15536. for ac_exec_ext in '' $ac_executable_extensions; do
  15537. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15538. ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
  15539. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15540. break 2
  15541. fi
  15542. done
  15543. done
  15544. IFS=$as_save_IFS
  15545. ;;
  15546. esac
  15547. fi
  15548. PRINTF=$ac_cv_path_PRINTF
  15549. if test -n "$PRINTF"; then
  15550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
  15551. $as_echo "$PRINTF" >&6; }
  15552. else
  15553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15554. $as_echo "no" >&6; }
  15555. fi
  15556. # Extract the first word of "echo", so it can be a program name with args.
  15557. set dummy echo; ac_word=$2
  15558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15559. $as_echo_n "checking for $ac_word... " >&6; }
  15560. if ${ac_cv_path_ECHO+:} false; then :
  15561. $as_echo_n "(cached) " >&6
  15562. else
  15563. case $ECHO in
  15564. [\\/]* | ?:[\\/]*)
  15565. ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
  15566. ;;
  15567. *)
  15568. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15569. for as_dir in $PATH
  15570. do
  15571. IFS=$as_save_IFS
  15572. test -z "$as_dir" && as_dir=.
  15573. for ac_exec_ext in '' $ac_executable_extensions; do
  15574. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15575. ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
  15576. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15577. break 2
  15578. fi
  15579. done
  15580. done
  15581. IFS=$as_save_IFS
  15582. ;;
  15583. esac
  15584. fi
  15585. ECHO=$ac_cv_path_ECHO
  15586. if test -n "$ECHO"; then
  15587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
  15588. $as_echo "$ECHO" >&6; }
  15589. else
  15590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15591. $as_echo "no" >&6; }
  15592. fi
  15593. # Extract the first word of "cut", so it can be a program name with args.
  15594. set dummy cut; ac_word=$2
  15595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15596. $as_echo_n "checking for $ac_word... " >&6; }
  15597. if ${ac_cv_path_CUT+:} false; then :
  15598. $as_echo_n "(cached) " >&6
  15599. else
  15600. case $CUT in
  15601. [\\/]* | ?:[\\/]*)
  15602. ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
  15603. ;;
  15604. *)
  15605. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15606. for as_dir in $PATH
  15607. do
  15608. IFS=$as_save_IFS
  15609. test -z "$as_dir" && as_dir=.
  15610. for ac_exec_ext in '' $ac_executable_extensions; do
  15611. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15612. ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
  15613. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15614. break 2
  15615. fi
  15616. done
  15617. done
  15618. IFS=$as_save_IFS
  15619. ;;
  15620. esac
  15621. fi
  15622. CUT=$ac_cv_path_CUT
  15623. if test -n "$CUT"; then
  15624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
  15625. $as_echo "$CUT" >&6; }
  15626. else
  15627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15628. $as_echo "no" >&6; }
  15629. fi
  15630. # Extract the first word of "autogen", so it can be a program name with args.
  15631. set dummy autogen; ac_word=$2
  15632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15633. $as_echo_n "checking for $ac_word... " >&6; }
  15634. if ${ac_cv_path_AUTOGEN+:} false; then :
  15635. $as_echo_n "(cached) " >&6
  15636. else
  15637. case $AUTOGEN in
  15638. [\\/]* | ?:[\\/]*)
  15639. ac_cv_path_AUTOGEN="$AUTOGEN" # Let the user override the test with a path.
  15640. ;;
  15641. *)
  15642. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15643. for as_dir in $PATH
  15644. do
  15645. IFS=$as_save_IFS
  15646. test -z "$as_dir" && as_dir=.
  15647. for ac_exec_ext in '' $ac_executable_extensions; do
  15648. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15649. ac_cv_path_AUTOGEN="$as_dir/$ac_word$ac_exec_ext"
  15650. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15651. break 2
  15652. fi
  15653. done
  15654. done
  15655. IFS=$as_save_IFS
  15656. ;;
  15657. esac
  15658. fi
  15659. AUTOGEN=$ac_cv_path_AUTOGEN
  15660. if test -n "$AUTOGEN"; then
  15661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOGEN" >&5
  15662. $as_echo "$AUTOGEN" >&6; }
  15663. else
  15664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15665. $as_echo "no" >&6; }
  15666. fi
  15667. # Extract the first word of "groff", so it can be a program name with args.
  15668. set dummy groff; ac_word=$2
  15669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15670. $as_echo_n "checking for $ac_word... " >&6; }
  15671. if ${ac_cv_path_GROFF+:} false; then :
  15672. $as_echo_n "(cached) " >&6
  15673. else
  15674. case $GROFF in
  15675. [\\/]* | ?:[\\/]*)
  15676. ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
  15677. ;;
  15678. *)
  15679. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15680. for as_dir in $PATH
  15681. do
  15682. IFS=$as_save_IFS
  15683. test -z "$as_dir" && as_dir=.
  15684. for ac_exec_ext in '' $ac_executable_extensions; do
  15685. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15686. ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
  15687. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15688. break 2
  15689. fi
  15690. done
  15691. done
  15692. IFS=$as_save_IFS
  15693. ;;
  15694. esac
  15695. fi
  15696. GROFF=$ac_cv_path_GROFF
  15697. if test -n "$GROFF"; then
  15698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
  15699. $as_echo "$GROFF" >&6; }
  15700. else
  15701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15702. $as_echo "no" >&6; }
  15703. fi
  15704. # Extract the first word of "depmod", so it can be a program name with args.
  15705. set dummy depmod; ac_word=$2
  15706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15707. $as_echo_n "checking for $ac_word... " >&6; }
  15708. if ${ac_cv_path_depmod+:} false; then :
  15709. $as_echo_n "(cached) " >&6
  15710. else
  15711. case $depmod in
  15712. [\\/]* | ?:[\\/]*)
  15713. ac_cv_path_depmod="$depmod" # Let the user override the test with a path.
  15714. ;;
  15715. *)
  15716. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15717. as_dummy="$PATH:/sbin"
  15718. for as_dir in $as_dummy
  15719. do
  15720. IFS=$as_save_IFS
  15721. test -z "$as_dir" && as_dir=.
  15722. for ac_exec_ext in '' $ac_executable_extensions; do
  15723. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15724. ac_cv_path_depmod="$as_dir/$ac_word$ac_exec_ext"
  15725. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15726. break 2
  15727. fi
  15728. done
  15729. done
  15730. IFS=$as_save_IFS
  15731. test -z "$ac_cv_path_depmod" && ac_cv_path_depmod="/sbin/depmod"
  15732. ;;
  15733. esac
  15734. fi
  15735. depmod=$ac_cv_path_depmod
  15736. if test -n "$depmod"; then
  15737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $depmod" >&5
  15738. $as_echo "$depmod" >&6; }
  15739. else
  15740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15741. $as_echo "no" >&6; }
  15742. fi
  15743. # Extract the first word of "insmod", so it can be a program name with args.
  15744. set dummy insmod; ac_word=$2
  15745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15746. $as_echo_n "checking for $ac_word... " >&6; }
  15747. if ${ac_cv_path_insmod+:} false; then :
  15748. $as_echo_n "(cached) " >&6
  15749. else
  15750. case $insmod in
  15751. [\\/]* | ?:[\\/]*)
  15752. ac_cv_path_insmod="$insmod" # Let the user override the test with a path.
  15753. ;;
  15754. *)
  15755. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15756. as_dummy="$PATH:/sbin"
  15757. for as_dir in $as_dummy
  15758. do
  15759. IFS=$as_save_IFS
  15760. test -z "$as_dir" && as_dir=.
  15761. for ac_exec_ext in '' $ac_executable_extensions; do
  15762. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15763. ac_cv_path_insmod="$as_dir/$ac_word$ac_exec_ext"
  15764. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15765. break 2
  15766. fi
  15767. done
  15768. done
  15769. IFS=$as_save_IFS
  15770. test -z "$ac_cv_path_insmod" && ac_cv_path_insmod="/sbin/insmod"
  15771. ;;
  15772. esac
  15773. fi
  15774. insmod=$ac_cv_path_insmod
  15775. if test -n "$insmod"; then
  15776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $insmod" >&5
  15777. $as_echo "$insmod" >&6; }
  15778. else
  15779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15780. $as_echo "no" >&6; }
  15781. fi
  15782. # Extract the first word of "rmmod", so it can be a program name with args.
  15783. set dummy rmmod; ac_word=$2
  15784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15785. $as_echo_n "checking for $ac_word... " >&6; }
  15786. if ${ac_cv_path_rmmod+:} false; then :
  15787. $as_echo_n "(cached) " >&6
  15788. else
  15789. case $rmmod in
  15790. [\\/]* | ?:[\\/]*)
  15791. ac_cv_path_rmmod="$rmmod" # Let the user override the test with a path.
  15792. ;;
  15793. *)
  15794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15795. as_dummy="$PATH:/sbin"
  15796. for as_dir in $as_dummy
  15797. do
  15798. IFS=$as_save_IFS
  15799. test -z "$as_dir" && as_dir=.
  15800. for ac_exec_ext in '' $ac_executable_extensions; do
  15801. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15802. ac_cv_path_rmmod="$as_dir/$ac_word$ac_exec_ext"
  15803. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15804. break 2
  15805. fi
  15806. done
  15807. done
  15808. IFS=$as_save_IFS
  15809. test -z "$ac_cv_path_rmmod" && ac_cv_path_rmmod="/sbin/rmmod"
  15810. ;;
  15811. esac
  15812. fi
  15813. rmmod=$ac_cv_path_rmmod
  15814. if test -n "$rmmod"; then
  15815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rmmod" >&5
  15816. $as_echo "$rmmod" >&6; }
  15817. else
  15818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15819. $as_echo "no" >&6; }
  15820. fi
  15821. case "${enable_local_libopts+set}" in
  15822. set) ;;
  15823. *) enable_local_libopts=yes ;;
  15824. esac
  15825. case "${enable_libopts_install+set}" in
  15826. set) ;;
  15827. *) enable_libopts_install=no ;;
  15828. esac
  15829. AUTOGEN_VERSION="unknown - man pages will not be built"
  15830. if test -n "${AUTOGEN}" ; then
  15831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for autogen version >= ${MAINTAINER_AUTOGEN_VERSION}" >&5
  15832. $as_echo_n "checking for autogen version >= ${MAINTAINER_AUTOGEN_VERSION}... " >&6; }
  15833. AUTOGEN_VERSION=$(${AUTOGEN} -v | ${CUT} -d' ' -f 4)
  15834. AUTOGEN_MAJOR=$(echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 1)
  15835. AUTOGEN_MINOR=$(echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 2)
  15836. AUTOGEN_BUILD=$(echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 3)
  15837. if test -z "$AUTOGEN_BUILD"; then
  15838. AUTOGEN_BUILD=0
  15839. fi
  15840. if (test ${AUTOGEN_MAJOR} -eq 5 && test ${AUTOGEN_MINOR} -eq 18 && test ${AUTOGEN_BUILD} -lt 4) ||
  15841. (test ${AUTOGEN_MAJOR} -eq 5 && test ${AUTOGEN_MINOR} -lt 18) ||
  15842. test ${AUTOGEN_MAJOR} -lt 5 ; then
  15843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15844. $as_echo "no" >&6; }
  15845. if test ! "x$enable_local_libopts" = "xyes"; then
  15846. as_fn_error $? "${AUTOGEN} is too old (${AUTOGEN_VERSION}) for building from source code. Upgrade to 5.18.4 or higher" "$LINENO" 5
  15847. fi
  15848. AUTOGEN_VERSION="${AUTOGEN_VERSION} - downlevel"
  15849. else
  15850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15851. $as_echo "yes" >&6; }
  15852. fi
  15853. if test ! -f src/tcpreplay_opts.c && test "x$enable_local_libopts" = "xyes" ; then
  15854. if test $MAINTAINER_AUTOGEN_VERSION != $AUTOGEN_VERSION ; then
  15855. as_fn_error $? "Your version of autogen ($AUTOGEN_VERSION) != libopts tear off ($MAINTAINER_AUTOGEN_VERSION) Either install the correct version or specify --disable-local-libopts" "$LINENO" 5
  15856. fi
  15857. fi
  15858. else
  15859. if test ! -f src/tcpreplay_opts.c ; then
  15860. as_fn_error $? "Please install GNU autogen $MAINTAINER_AUTOGEN_VERSION or higher if you are building from GitHub. To avoid this message download source from https://github.com/appneta/tcpreplay/releases/latest" "$LINENO" 5
  15861. fi
  15862. fi
  15863. $as_echo "#define AUTOGEN_VERSION \${AUTOGEN_VERSION}" >>confdefs.h
  15864. if test "x$enable_local_libopts" = "xyes" ; then
  15865. { $as_echo "$as_me:${as_lineno-$LINENO}: Using included libopts tearoff" >&5
  15866. $as_echo "$as_me: Using included libopts tearoff" >&6;}
  15867. else
  15868. { $as_echo "$as_me:${as_lineno-$LINENO}: Using system libopts" >&5
  15869. $as_echo "$as_me: Using system libopts" >&6;}
  15870. fi
  15871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15872. $as_echo_n "checking for egrep... " >&6; }
  15873. if ${ac_cv_path_EGREP+:} false; then :
  15874. $as_echo_n "(cached) " >&6
  15875. else
  15876. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15877. then ac_cv_path_EGREP="$GREP -E"
  15878. else
  15879. if test -z "$EGREP"; then
  15880. ac_path_EGREP_found=false
  15881. # Loop through the user's path and test for each of PROGNAME-LIST
  15882. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15883. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15884. do
  15885. IFS=$as_save_IFS
  15886. test -z "$as_dir" && as_dir=.
  15887. for ac_prog in egrep; do
  15888. for ac_exec_ext in '' $ac_executable_extensions; do
  15889. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  15890. as_fn_executable_p "$ac_path_EGREP" || continue
  15891. # Check for GNU ac_path_EGREP and select it if it is found.
  15892. # Check for GNU $ac_path_EGREP
  15893. case `"$ac_path_EGREP" --version 2>&1` in
  15894. *GNU*)
  15895. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15896. *)
  15897. ac_count=0
  15898. $as_echo_n 0123456789 >"conftest.in"
  15899. while :
  15900. do
  15901. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15902. mv "conftest.tmp" "conftest.in"
  15903. cp "conftest.in" "conftest.nl"
  15904. $as_echo 'EGREP' >> "conftest.nl"
  15905. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15906. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15907. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15908. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15909. # Best one so far, save it but keep looking for a better one
  15910. ac_cv_path_EGREP="$ac_path_EGREP"
  15911. ac_path_EGREP_max=$ac_count
  15912. fi
  15913. # 10*(2^10) chars as input seems more than enough
  15914. test $ac_count -gt 10 && break
  15915. done
  15916. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15917. esac
  15918. $ac_path_EGREP_found && break 3
  15919. done
  15920. done
  15921. done
  15922. IFS=$as_save_IFS
  15923. if test -z "$ac_cv_path_EGREP"; then
  15924. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15925. fi
  15926. else
  15927. ac_cv_path_EGREP=$EGREP
  15928. fi
  15929. fi
  15930. fi
  15931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15932. $as_echo "$ac_cv_path_EGREP" >&6; }
  15933. EGREP="$ac_cv_path_EGREP"
  15934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
  15935. $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
  15936. if ${ac_cv_header_sys_types_h_makedev+:} false; then :
  15937. $as_echo_n "(cached) " >&6
  15938. else
  15939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15940. /* end confdefs.h. */
  15941. #include <sys/types.h>
  15942. int
  15943. main ()
  15944. {
  15945. return makedev(0, 0);
  15946. ;
  15947. return 0;
  15948. }
  15949. _ACEOF
  15950. if ac_fn_c_try_link "$LINENO"; then :
  15951. ac_cv_header_sys_types_h_makedev=yes
  15952. else
  15953. ac_cv_header_sys_types_h_makedev=no
  15954. fi
  15955. rm -f core conftest.err conftest.$ac_objext \
  15956. conftest$ac_exeext conftest.$ac_ext
  15957. fi
  15958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
  15959. $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
  15960. if test $ac_cv_header_sys_types_h_makedev = no; then
  15961. ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
  15962. if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
  15963. $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
  15964. fi
  15965. if test $ac_cv_header_sys_mkdev_h = no; then
  15966. ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
  15967. if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
  15968. $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
  15969. fi
  15970. fi
  15971. fi
  15972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  15973. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  15974. if ${ac_cv_header_stdbool_h+:} false; then :
  15975. $as_echo_n "(cached) " >&6
  15976. else
  15977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15978. /* end confdefs.h. */
  15979. #include <stdbool.h>
  15980. #ifndef bool
  15981. "error: bool is not defined"
  15982. #endif
  15983. #ifndef false
  15984. "error: false is not defined"
  15985. #endif
  15986. #if false
  15987. "error: false is not 0"
  15988. #endif
  15989. #ifndef true
  15990. "error: true is not defined"
  15991. #endif
  15992. #if true != 1
  15993. "error: true is not 1"
  15994. #endif
  15995. #ifndef __bool_true_false_are_defined
  15996. "error: __bool_true_false_are_defined is not defined"
  15997. #endif
  15998. struct s { _Bool s: 1; _Bool t; } s;
  15999. char a[true == 1 ? 1 : -1];
  16000. char b[false == 0 ? 1 : -1];
  16001. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  16002. char d[(bool) 0.5 == true ? 1 : -1];
  16003. /* See body of main program for 'e'. */
  16004. char f[(_Bool) 0.0 == false ? 1 : -1];
  16005. char g[true];
  16006. char h[sizeof (_Bool)];
  16007. char i[sizeof s.t];
  16008. enum { j = false, k = true, l = false * true, m = true * 256 };
  16009. /* The following fails for
  16010. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  16011. _Bool n[m];
  16012. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  16013. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  16014. /* Catch a bug in an HP-UX C compiler. See
  16015. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  16016. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  16017. */
  16018. _Bool q = true;
  16019. _Bool *pq = &q;
  16020. int
  16021. main ()
  16022. {
  16023. bool e = &s;
  16024. *pq |= q;
  16025. *pq |= ! q;
  16026. /* Refer to every declared value, to avoid compiler optimizations. */
  16027. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  16028. + !m + !n + !o + !p + !q + !pq);
  16029. ;
  16030. return 0;
  16031. }
  16032. _ACEOF
  16033. if ac_fn_c_try_compile "$LINENO"; then :
  16034. ac_cv_header_stdbool_h=yes
  16035. else
  16036. ac_cv_header_stdbool_h=no
  16037. fi
  16038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16039. fi
  16040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  16041. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  16042. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  16043. if test "x$ac_cv_type__Bool" = xyes; then :
  16044. cat >>confdefs.h <<_ACEOF
  16045. #define HAVE__BOOL 1
  16046. _ACEOF
  16047. fi
  16048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16049. $as_echo_n "checking for inline... " >&6; }
  16050. if ${ac_cv_c_inline+:} false; then :
  16051. $as_echo_n "(cached) " >&6
  16052. else
  16053. ac_cv_c_inline=no
  16054. for ac_kw in inline __inline__ __inline; do
  16055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16056. /* end confdefs.h. */
  16057. #ifndef __cplusplus
  16058. typedef int foo_t;
  16059. static $ac_kw foo_t static_foo () {return 0; }
  16060. $ac_kw foo_t foo () {return 0; }
  16061. #endif
  16062. _ACEOF
  16063. if ac_fn_c_try_compile "$LINENO"; then :
  16064. ac_cv_c_inline=$ac_kw
  16065. fi
  16066. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16067. test "$ac_cv_c_inline" != no && break
  16068. done
  16069. fi
  16070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16071. $as_echo "$ac_cv_c_inline" >&6; }
  16072. case $ac_cv_c_inline in
  16073. inline | yes) ;;
  16074. *)
  16075. case $ac_cv_c_inline in
  16076. no) ac_val=;;
  16077. *) ac_val=$ac_cv_c_inline;;
  16078. esac
  16079. cat >>confdefs.h <<_ACEOF
  16080. #ifndef __cplusplus
  16081. #define inline $ac_val
  16082. #endif
  16083. _ACEOF
  16084. ;;
  16085. esac
  16086. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  16087. case $ac_cv_c_int16_t in #(
  16088. no|yes) ;; #(
  16089. *)
  16090. cat >>confdefs.h <<_ACEOF
  16091. #define int16_t $ac_cv_c_int16_t
  16092. _ACEOF
  16093. ;;
  16094. esac
  16095. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  16096. case $ac_cv_c_int32_t in #(
  16097. no|yes) ;; #(
  16098. *)
  16099. cat >>confdefs.h <<_ACEOF
  16100. #define int32_t $ac_cv_c_int32_t
  16101. _ACEOF
  16102. ;;
  16103. esac
  16104. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  16105. case $ac_cv_c_int64_t in #(
  16106. no|yes) ;; #(
  16107. *)
  16108. cat >>confdefs.h <<_ACEOF
  16109. #define int64_t $ac_cv_c_int64_t
  16110. _ACEOF
  16111. ;;
  16112. esac
  16113. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  16114. case $ac_cv_c_int8_t in #(
  16115. no|yes) ;; #(
  16116. *)
  16117. cat >>confdefs.h <<_ACEOF
  16118. #define int8_t $ac_cv_c_int8_t
  16119. _ACEOF
  16120. ;;
  16121. esac
  16122. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  16123. if test "x$ac_cv_type_off_t" = xyes; then :
  16124. else
  16125. cat >>confdefs.h <<_ACEOF
  16126. #define off_t long int
  16127. _ACEOF
  16128. fi
  16129. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  16130. if test "x$ac_cv_type_pid_t" = xyes; then :
  16131. else
  16132. cat >>confdefs.h <<_ACEOF
  16133. #define pid_t int
  16134. _ACEOF
  16135. fi
  16136. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16137. if test "x$ac_cv_type_size_t" = xyes; then :
  16138. else
  16139. cat >>confdefs.h <<_ACEOF
  16140. #define size_t unsigned int
  16141. _ACEOF
  16142. fi
  16143. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  16144. if test "x$ac_cv_type_ssize_t" = xyes; then :
  16145. else
  16146. cat >>confdefs.h <<_ACEOF
  16147. #define ssize_t int
  16148. _ACEOF
  16149. fi
  16150. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  16151. case $ac_cv_c_uint16_t in #(
  16152. no|yes) ;; #(
  16153. *)
  16154. cat >>confdefs.h <<_ACEOF
  16155. #define uint16_t $ac_cv_c_uint16_t
  16156. _ACEOF
  16157. ;;
  16158. esac
  16159. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  16160. case $ac_cv_c_uint32_t in #(
  16161. no|yes) ;; #(
  16162. *)
  16163. $as_echo "#define _UINT32_T 1" >>confdefs.h
  16164. cat >>confdefs.h <<_ACEOF
  16165. #define uint32_t $ac_cv_c_uint32_t
  16166. _ACEOF
  16167. ;;
  16168. esac
  16169. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  16170. case $ac_cv_c_uint64_t in #(
  16171. no|yes) ;; #(
  16172. *)
  16173. $as_echo "#define _UINT64_T 1" >>confdefs.h
  16174. cat >>confdefs.h <<_ACEOF
  16175. #define uint64_t $ac_cv_c_uint64_t
  16176. _ACEOF
  16177. ;;
  16178. esac
  16179. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  16180. case $ac_cv_c_uint8_t in #(
  16181. no|yes) ;; #(
  16182. *)
  16183. $as_echo "#define _UINT8_T 1" >>confdefs.h
  16184. cat >>confdefs.h <<_ACEOF
  16185. #define uint8_t $ac_cv_c_uint8_t
  16186. _ACEOF
  16187. ;;
  16188. esac
  16189. for ac_header in $ac_header_list
  16190. do :
  16191. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16192. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  16193. "
  16194. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16195. cat >>confdefs.h <<_ACEOF
  16196. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16197. _ACEOF
  16198. fi
  16199. done
  16200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  16201. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  16202. if ${ac_cv_c_const+:} false; then :
  16203. $as_echo_n "(cached) " >&6
  16204. else
  16205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16206. /* end confdefs.h. */
  16207. int
  16208. main ()
  16209. {
  16210. #ifndef __cplusplus
  16211. /* Ultrix mips cc rejects this sort of thing. */
  16212. typedef int charset[2];
  16213. const charset cs = { 0, 0 };
  16214. /* SunOS 4.1.1 cc rejects this. */
  16215. char const *const *pcpcc;
  16216. char **ppc;
  16217. /* NEC SVR4.0.2 mips cc rejects this. */
  16218. struct point {int x, y;};
  16219. static struct point const zero = {0,0};
  16220. /* AIX XL C 1.02.0.0 rejects this.
  16221. It does not let you subtract one const X* pointer from another in
  16222. an arm of an if-expression whose if-part is not a constant
  16223. expression */
  16224. const char *g = "string";
  16225. pcpcc = &g + (g ? g-g : 0);
  16226. /* HPUX 7.0 cc rejects these. */
  16227. ++pcpcc;
  16228. ppc = (char**) pcpcc;
  16229. pcpcc = (char const *const *) ppc;
  16230. { /* SCO 3.2v4 cc rejects this sort of thing. */
  16231. char tx;
  16232. char *t = &tx;
  16233. char const *s = 0 ? (char *) 0 : (char const *) 0;
  16234. *t++ = 0;
  16235. if (s) return 0;
  16236. }
  16237. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  16238. int x[] = {25, 17};
  16239. const int *foo = &x[0];
  16240. ++foo;
  16241. }
  16242. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  16243. typedef const int *iptr;
  16244. iptr p = 0;
  16245. ++p;
  16246. }
  16247. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  16248. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  16249. struct s { int j; const int *ap[3]; } bx;
  16250. struct s *b = &bx; b->j = 5;
  16251. }
  16252. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  16253. const int foo = 10;
  16254. if (!foo) return 0;
  16255. }
  16256. return !cs[0] && !zero.x;
  16257. #endif
  16258. ;
  16259. return 0;
  16260. }
  16261. _ACEOF
  16262. if ac_fn_c_try_compile "$LINENO"; then :
  16263. ac_cv_c_const=yes
  16264. else
  16265. ac_cv_c_const=no
  16266. fi
  16267. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16268. fi
  16269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16270. $as_echo "$ac_cv_c_const" >&6; }
  16271. if test $ac_cv_c_const = no; then
  16272. $as_echo "#define const /**/" >>confdefs.h
  16273. fi
  16274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16275. $as_echo_n "checking for inline... " >&6; }
  16276. if ${ac_cv_c_inline+:} false; then :
  16277. $as_echo_n "(cached) " >&6
  16278. else
  16279. ac_cv_c_inline=no
  16280. for ac_kw in inline __inline__ __inline; do
  16281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16282. /* end confdefs.h. */
  16283. #ifndef __cplusplus
  16284. typedef int foo_t;
  16285. static $ac_kw foo_t static_foo () {return 0; }
  16286. $ac_kw foo_t foo () {return 0; }
  16287. #endif
  16288. _ACEOF
  16289. if ac_fn_c_try_compile "$LINENO"; then :
  16290. ac_cv_c_inline=$ac_kw
  16291. fi
  16292. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16293. test "$ac_cv_c_inline" != no && break
  16294. done
  16295. fi
  16296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16297. $as_echo "$ac_cv_c_inline" >&6; }
  16298. case $ac_cv_c_inline in
  16299. inline | yes) ;;
  16300. *)
  16301. case $ac_cv_c_inline in
  16302. no) ac_val=;;
  16303. *) ac_val=$ac_cv_c_inline;;
  16304. esac
  16305. cat >>confdefs.h <<_ACEOF
  16306. #ifndef __cplusplus
  16307. #define inline $ac_val
  16308. #endif
  16309. _ACEOF
  16310. ;;
  16311. esac
  16312. # Check whether --enable-largefile was given.
  16313. if test "${enable_largefile+set}" = set; then :
  16314. enableval=$enable_largefile;
  16315. fi
  16316. if test "$enable_largefile" != no; then
  16317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  16318. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  16319. if ${ac_cv_sys_largefile_CC+:} false; then :
  16320. $as_echo_n "(cached) " >&6
  16321. else
  16322. ac_cv_sys_largefile_CC=no
  16323. if test "$GCC" != yes; then
  16324. ac_save_CC=$CC
  16325. while :; do
  16326. # IRIX 6.2 and later do not support large files by default,
  16327. # so use the C compiler's -n32 option if that helps.
  16328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16329. /* end confdefs.h. */
  16330. #include <sys/types.h>
  16331. /* Check that off_t can represent 2**63 - 1 correctly.
  16332. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16333. since some C++ compilers masquerading as C compilers
  16334. incorrectly reject 9223372036854775807. */
  16335. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  16336. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16337. && LARGE_OFF_T % 2147483647 == 1)
  16338. ? 1 : -1];
  16339. int
  16340. main ()
  16341. {
  16342. ;
  16343. return 0;
  16344. }
  16345. _ACEOF
  16346. if ac_fn_c_try_compile "$LINENO"; then :
  16347. break
  16348. fi
  16349. rm -f core conftest.err conftest.$ac_objext
  16350. CC="$CC -n32"
  16351. if ac_fn_c_try_compile "$LINENO"; then :
  16352. ac_cv_sys_largefile_CC=' -n32'; break
  16353. fi
  16354. rm -f core conftest.err conftest.$ac_objext
  16355. break
  16356. done
  16357. CC=$ac_save_CC
  16358. rm -f conftest.$ac_ext
  16359. fi
  16360. fi
  16361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  16362. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  16363. if test "$ac_cv_sys_largefile_CC" != no; then
  16364. CC=$CC$ac_cv_sys_largefile_CC
  16365. fi
  16366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  16367. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  16368. if ${ac_cv_sys_file_offset_bits+:} false; then :
  16369. $as_echo_n "(cached) " >&6
  16370. else
  16371. while :; do
  16372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16373. /* end confdefs.h. */
  16374. #include <sys/types.h>
  16375. /* Check that off_t can represent 2**63 - 1 correctly.
  16376. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16377. since some C++ compilers masquerading as C compilers
  16378. incorrectly reject 9223372036854775807. */
  16379. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  16380. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16381. && LARGE_OFF_T % 2147483647 == 1)
  16382. ? 1 : -1];
  16383. int
  16384. main ()
  16385. {
  16386. ;
  16387. return 0;
  16388. }
  16389. _ACEOF
  16390. if ac_fn_c_try_compile "$LINENO"; then :
  16391. ac_cv_sys_file_offset_bits=no; break
  16392. fi
  16393. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16395. /* end confdefs.h. */
  16396. #define _FILE_OFFSET_BITS 64
  16397. #include <sys/types.h>
  16398. /* Check that off_t can represent 2**63 - 1 correctly.
  16399. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16400. since some C++ compilers masquerading as C compilers
  16401. incorrectly reject 9223372036854775807. */
  16402. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  16403. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16404. && LARGE_OFF_T % 2147483647 == 1)
  16405. ? 1 : -1];
  16406. int
  16407. main ()
  16408. {
  16409. ;
  16410. return 0;
  16411. }
  16412. _ACEOF
  16413. if ac_fn_c_try_compile "$LINENO"; then :
  16414. ac_cv_sys_file_offset_bits=64; break
  16415. fi
  16416. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16417. ac_cv_sys_file_offset_bits=unknown
  16418. break
  16419. done
  16420. fi
  16421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  16422. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  16423. case $ac_cv_sys_file_offset_bits in #(
  16424. no | unknown) ;;
  16425. *)
  16426. cat >>confdefs.h <<_ACEOF
  16427. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  16428. _ACEOF
  16429. ;;
  16430. esac
  16431. rm -rf conftest*
  16432. if test $ac_cv_sys_file_offset_bits = unknown; then
  16433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  16434. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  16435. if ${ac_cv_sys_large_files+:} false; then :
  16436. $as_echo_n "(cached) " >&6
  16437. else
  16438. while :; do
  16439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16440. /* end confdefs.h. */
  16441. #include <sys/types.h>
  16442. /* Check that off_t can represent 2**63 - 1 correctly.
  16443. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16444. since some C++ compilers masquerading as C compilers
  16445. incorrectly reject 9223372036854775807. */
  16446. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  16447. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16448. && LARGE_OFF_T % 2147483647 == 1)
  16449. ? 1 : -1];
  16450. int
  16451. main ()
  16452. {
  16453. ;
  16454. return 0;
  16455. }
  16456. _ACEOF
  16457. if ac_fn_c_try_compile "$LINENO"; then :
  16458. ac_cv_sys_large_files=no; break
  16459. fi
  16460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16462. /* end confdefs.h. */
  16463. #define _LARGE_FILES 1
  16464. #include <sys/types.h>
  16465. /* Check that off_t can represent 2**63 - 1 correctly.
  16466. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16467. since some C++ compilers masquerading as C compilers
  16468. incorrectly reject 9223372036854775807. */
  16469. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  16470. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16471. && LARGE_OFF_T % 2147483647 == 1)
  16472. ? 1 : -1];
  16473. int
  16474. main ()
  16475. {
  16476. ;
  16477. return 0;
  16478. }
  16479. _ACEOF
  16480. if ac_fn_c_try_compile "$LINENO"; then :
  16481. ac_cv_sys_large_files=1; break
  16482. fi
  16483. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16484. ac_cv_sys_large_files=unknown
  16485. break
  16486. done
  16487. fi
  16488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  16489. $as_echo "$ac_cv_sys_large_files" >&6; }
  16490. case $ac_cv_sys_large_files in #(
  16491. no | unknown) ;;
  16492. *)
  16493. cat >>confdefs.h <<_ACEOF
  16494. #define _LARGE_FILES $ac_cv_sys_large_files
  16495. _ACEOF
  16496. ;;
  16497. esac
  16498. rm -rf conftest*
  16499. fi
  16500. fi
  16501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  16502. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  16503. if ${ac_cv_sys_largefile_source+:} false; then :
  16504. $as_echo_n "(cached) " >&6
  16505. else
  16506. while :; do
  16507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16508. /* end confdefs.h. */
  16509. #include <sys/types.h> /* for off_t */
  16510. #include <stdio.h>
  16511. int
  16512. main ()
  16513. {
  16514. int (*fp) (FILE *, off_t, int) = fseeko;
  16515. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  16516. ;
  16517. return 0;
  16518. }
  16519. _ACEOF
  16520. if ac_fn_c_try_link "$LINENO"; then :
  16521. ac_cv_sys_largefile_source=no; break
  16522. fi
  16523. rm -f core conftest.err conftest.$ac_objext \
  16524. conftest$ac_exeext conftest.$ac_ext
  16525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16526. /* end confdefs.h. */
  16527. #define _LARGEFILE_SOURCE 1
  16528. #include <sys/types.h> /* for off_t */
  16529. #include <stdio.h>
  16530. int
  16531. main ()
  16532. {
  16533. int (*fp) (FILE *, off_t, int) = fseeko;
  16534. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  16535. ;
  16536. return 0;
  16537. }
  16538. _ACEOF
  16539. if ac_fn_c_try_link "$LINENO"; then :
  16540. ac_cv_sys_largefile_source=1; break
  16541. fi
  16542. rm -f core conftest.err conftest.$ac_objext \
  16543. conftest$ac_exeext conftest.$ac_ext
  16544. ac_cv_sys_largefile_source=unknown
  16545. break
  16546. done
  16547. fi
  16548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  16549. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  16550. case $ac_cv_sys_largefile_source in #(
  16551. no | unknown) ;;
  16552. *)
  16553. cat >>confdefs.h <<_ACEOF
  16554. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  16555. _ACEOF
  16556. ;;
  16557. esac
  16558. rm -rf conftest*
  16559. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  16560. # in glibc 2.1.3, but that breaks too many other things.
  16561. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  16562. if test $ac_cv_sys_largefile_source != unknown; then
  16563. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  16564. fi
  16565. ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
  16566. if test "x$ac_cv_type_u_int8_t" = xyes; then :
  16567. else
  16568. cat >>confdefs.h <<_ACEOF
  16569. #define u_int8_t uint8_t
  16570. _ACEOF
  16571. fi
  16572. ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
  16573. if test "x$ac_cv_type_u_int16_t" = xyes; then :
  16574. else
  16575. cat >>confdefs.h <<_ACEOF
  16576. #define u_int16_t uint16_t
  16577. _ACEOF
  16578. fi
  16579. ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
  16580. if test "x$ac_cv_type_u_int32_t" = xyes; then :
  16581. else
  16582. cat >>confdefs.h <<_ACEOF
  16583. #define u_int32_t uint32_t
  16584. _ACEOF
  16585. fi
  16586. ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
  16587. if test "x$ac_cv_type_u_int64_t" = xyes; then :
  16588. else
  16589. cat >>confdefs.h <<_ACEOF
  16590. #define u_int64_t uint64_t
  16591. _ACEOF
  16592. fi
  16593. wno_format=""
  16594. wno_macro_redefined=""
  16595. case $host in
  16596. *-apple-darwin*)
  16597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-macro-redefined" >&5
  16598. $as_echo_n "checking for $CC -Wno-macro-redefined... " >&6; }
  16599. OLD_CFLAGS=$CFLAGS
  16600. CFLAGS="$CFLAGS -Wno-macro-redefined -Werror"
  16601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16602. /* end confdefs.h. */
  16603. #include <stdlib.h>
  16604. int main(int argc, char *argv[]) { return(0); }
  16605. _ACEOF
  16606. if ac_fn_c_try_compile "$LINENO"; then :
  16607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16608. $as_echo "yes" >&6; }
  16609. wno_macro_redefined="-Wno-macro-redefined"
  16610. else
  16611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16612. $as_echo "no" >&6; }
  16613. fi
  16614. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-format" >&5
  16616. $as_echo_n "checking for $CC -Wno-format... " >&6; }
  16617. CFLAGS="$OLD_CFLAGS $wno_macro_redefined"
  16618. CFLAGS="$CFLAGS -Wno-format -Werror"
  16619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16620. /* end confdefs.h. */
  16621. #include <stdlib.h>
  16622. int main(int argc, char *argv[]) { return(0); }
  16623. _ACEOF
  16624. if ac_fn_c_try_compile "$LINENO"; then :
  16625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16626. $as_echo "yes" >&6; }
  16627. wno_format="-Wno-format"
  16628. else
  16629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16630. $as_echo "no" >&6; }
  16631. fi
  16632. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16633. CFLAGS="$OLD_CFLAGS $wno_format"
  16634. ;;
  16635. esac
  16636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wextra support" >&5
  16637. $as_echo_n "checking for $CC -Wextra support... " >&6; }
  16638. OLD_CFLAGS=$CFLAGS
  16639. CFLAGS="$CFLAGS -Wextra -Werror"
  16640. wextra=""
  16641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16642. /* end confdefs.h. */
  16643. #include <stdlib.h>
  16644. int main(int argc, char *argv[]) { return(0); }
  16645. _ACEOF
  16646. if ac_fn_c_try_compile "$LINENO"; then :
  16647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16648. $as_echo "yes" >&6; }
  16649. wextra="-Wextra"
  16650. else
  16651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16652. $as_echo "no" >&6; }
  16653. fi
  16654. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16655. CFLAGS="$OLD_CFLAGS $wextra"
  16656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-variadic-macros support" >&5
  16657. $as_echo_n "checking for $CC -Wno-variadic-macros support... " >&6; }
  16658. OLD_CFLAGS=$CFLAGS
  16659. CFLAGS="$CFLAGS -Wno-variadic-macros -Werror"
  16660. wno_variadic_macros=""
  16661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16662. /* end confdefs.h. */
  16663. #include <stdlib.h>
  16664. int main(int argc, char *argv[]) { return(0); }
  16665. _ACEOF
  16666. if ac_fn_c_try_compile "$LINENO"; then :
  16667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16668. $as_echo "yes" >&6; }
  16669. wno_variadic_macros="-Wno-variadic-macros"
  16670. else
  16671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16672. $as_echo "no" >&6; }
  16673. fi
  16674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16675. CFLAGS="$OLD_CFLAGS $wno_variadic_macros"
  16676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wfatal-errors support" >&5
  16677. $as_echo_n "checking for $CC -Wfatal-errors support... " >&6; }
  16678. OLD_CFLAGS=$CFLAGS
  16679. CFLAGS="$CFLAGS -Wfatal-errors -Werror"
  16680. wfatal_errors=""
  16681. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16682. /* end confdefs.h. */
  16683. #include <stdlib.h>
  16684. int main(int argc, char *argv[]) { return(0); }
  16685. _ACEOF
  16686. if ac_fn_c_try_compile "$LINENO"; then :
  16687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16688. $as_echo "yes" >&6; }
  16689. wfatal_errors="-Wfatal-errors"
  16690. else
  16691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16692. $as_echo "no" >&6; }
  16693. fi
  16694. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16695. CFLAGS="$OLD_CFLAGS $wfatal_errors"
  16696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-format-contains-nul support" >&5
  16697. $as_echo_n "checking for $CC -Wno-format-contains-nul support... " >&6; }
  16698. OLD_CFLAGS=$CFLAGS
  16699. CFLAGS="$CFLAGS -Wno-format-contains-nul -Werror"
  16700. wno_format_contains_nul=""
  16701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16702. /* end confdefs.h. */
  16703. #include <stdlib.h>
  16704. int main(int argc, char *argv[]) { return(0); }
  16705. _ACEOF
  16706. if ac_fn_c_try_compile "$LINENO"; then :
  16707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16708. $as_echo "yes" >&6; }
  16709. wno_format_contains_nul="-Wno-format-contains-nul"
  16710. else
  16711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16712. $as_echo "no" >&6; }
  16713. fi
  16714. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16715. CFLAGS="$OLD_CFLAGS $wno_format_contains_nul"
  16716. for ac_header in fcntl.h stddef.h sys/socket.h arpa/inet.h sys/time.h
  16717. do :
  16718. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16719. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16720. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16721. cat >>confdefs.h <<_ACEOF
  16722. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16723. _ACEOF
  16724. fi
  16725. done
  16726. for ac_header in signal.h string.h strings.h sys/types.h stdint.h sys/select.h
  16727. do :
  16728. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16729. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16730. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16731. cat >>confdefs.h <<_ACEOF
  16732. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16733. _ACEOF
  16734. fi
  16735. done
  16736. for ac_header in netinet/in.h netinet/in_systm.h poll.h sys/poll.h unistd.h sys/param.h
  16737. do :
  16738. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16739. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16740. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16741. cat >>confdefs.h <<_ACEOF
  16742. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16743. _ACEOF
  16744. fi
  16745. done
  16746. for ac_header in inttypes.h libintl.h sys/file.h sys/ioctl.h sys/systeminfo.h
  16747. do :
  16748. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16749. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16750. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16751. cat >>confdefs.h <<_ACEOF
  16752. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16753. _ACEOF
  16754. fi
  16755. done
  16756. for ac_header in sys/io.h architecture/i386/pio.h sched.h fts.h
  16757. do :
  16758. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16759. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16760. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16761. cat >>confdefs.h <<_ACEOF
  16762. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16763. _ACEOF
  16764. fi
  16765. done
  16766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  16767. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  16768. if ${ac_cv_header_stdbool_h+:} false; then :
  16769. $as_echo_n "(cached) " >&6
  16770. else
  16771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16772. /* end confdefs.h. */
  16773. #include <stdbool.h>
  16774. #ifndef bool
  16775. "error: bool is not defined"
  16776. #endif
  16777. #ifndef false
  16778. "error: false is not defined"
  16779. #endif
  16780. #if false
  16781. "error: false is not 0"
  16782. #endif
  16783. #ifndef true
  16784. "error: true is not defined"
  16785. #endif
  16786. #if true != 1
  16787. "error: true is not 1"
  16788. #endif
  16789. #ifndef __bool_true_false_are_defined
  16790. "error: __bool_true_false_are_defined is not defined"
  16791. #endif
  16792. struct s { _Bool s: 1; _Bool t; } s;
  16793. char a[true == 1 ? 1 : -1];
  16794. char b[false == 0 ? 1 : -1];
  16795. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  16796. char d[(bool) 0.5 == true ? 1 : -1];
  16797. /* See body of main program for 'e'. */
  16798. char f[(_Bool) 0.0 == false ? 1 : -1];
  16799. char g[true];
  16800. char h[sizeof (_Bool)];
  16801. char i[sizeof s.t];
  16802. enum { j = false, k = true, l = false * true, m = true * 256 };
  16803. /* The following fails for
  16804. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  16805. _Bool n[m];
  16806. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  16807. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  16808. /* Catch a bug in an HP-UX C compiler. See
  16809. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  16810. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  16811. */
  16812. _Bool q = true;
  16813. _Bool *pq = &q;
  16814. int
  16815. main ()
  16816. {
  16817. bool e = &s;
  16818. *pq |= q;
  16819. *pq |= ! q;
  16820. /* Refer to every declared value, to avoid compiler optimizations. */
  16821. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  16822. + !m + !n + !o + !p + !q + !pq);
  16823. ;
  16824. return 0;
  16825. }
  16826. _ACEOF
  16827. if ac_fn_c_try_compile "$LINENO"; then :
  16828. ac_cv_header_stdbool_h=yes
  16829. else
  16830. ac_cv_header_stdbool_h=no
  16831. fi
  16832. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16833. fi
  16834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  16835. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  16836. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  16837. if test "x$ac_cv_type__Bool" = xyes; then :
  16838. cat >>confdefs.h <<_ACEOF
  16839. #define HAVE__BOOL 1
  16840. _ACEOF
  16841. fi
  16842. if test $ac_cv_header_stdbool_h = yes; then
  16843. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  16844. fi
  16845. for ac_header in sys/sysctl.h net/route.h
  16846. do :
  16847. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16848. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  16849. #if HAVE_SYS_PARAM_H
  16850. #include <sys/param.h>
  16851. #endif
  16852. #if HAVE_SYS_TYPES_H
  16853. #include <sys/types.h>
  16854. #endif
  16855. #if HAVE_SYS_SOCKET_H
  16856. #include <sys/socket.h>
  16857. #endif
  16858. "
  16859. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16860. cat >>confdefs.h <<_ACEOF
  16861. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16862. _ACEOF
  16863. fi
  16864. done
  16865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  16866. $as_echo_n "checking for socket in -lsocket... " >&6; }
  16867. if ${ac_cv_lib_socket_socket+:} false; then :
  16868. $as_echo_n "(cached) " >&6
  16869. else
  16870. ac_check_lib_save_LIBS=$LIBS
  16871. LIBS="-lsocket $LIBS"
  16872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16873. /* end confdefs.h. */
  16874. /* Override any GCC internal prototype to avoid an error.
  16875. Use char because int might match the return type of a GCC
  16876. builtin and then its argument prototype would still apply. */
  16877. #ifdef __cplusplus
  16878. extern "C"
  16879. #endif
  16880. char socket ();
  16881. int
  16882. main ()
  16883. {
  16884. return socket ();
  16885. ;
  16886. return 0;
  16887. }
  16888. _ACEOF
  16889. if ac_fn_c_try_link "$LINENO"; then :
  16890. ac_cv_lib_socket_socket=yes
  16891. else
  16892. ac_cv_lib_socket_socket=no
  16893. fi
  16894. rm -f core conftest.err conftest.$ac_objext \
  16895. conftest$ac_exeext conftest.$ac_ext
  16896. LIBS=$ac_check_lib_save_LIBS
  16897. fi
  16898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  16899. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  16900. if test "x$ac_cv_lib_socket_socket" = xyes; then :
  16901. cat >>confdefs.h <<_ACEOF
  16902. #define HAVE_LIBSOCKET 1
  16903. _ACEOF
  16904. LIBS="-lsocket $LIBS"
  16905. fi
  16906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  16907. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  16908. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  16909. $as_echo_n "(cached) " >&6
  16910. else
  16911. ac_check_lib_save_LIBS=$LIBS
  16912. LIBS="-lnsl $LIBS"
  16913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16914. /* end confdefs.h. */
  16915. /* Override any GCC internal prototype to avoid an error.
  16916. Use char because int might match the return type of a GCC
  16917. builtin and then its argument prototype would still apply. */
  16918. #ifdef __cplusplus
  16919. extern "C"
  16920. #endif
  16921. char gethostbyname ();
  16922. int
  16923. main ()
  16924. {
  16925. return gethostbyname ();
  16926. ;
  16927. return 0;
  16928. }
  16929. _ACEOF
  16930. if ac_fn_c_try_link "$LINENO"; then :
  16931. ac_cv_lib_nsl_gethostbyname=yes
  16932. else
  16933. ac_cv_lib_nsl_gethostbyname=no
  16934. fi
  16935. rm -f core conftest.err conftest.$ac_objext \
  16936. conftest$ac_exeext conftest.$ac_ext
  16937. LIBS=$ac_check_lib_save_LIBS
  16938. fi
  16939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  16940. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  16941. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  16942. cat >>confdefs.h <<_ACEOF
  16943. #define HAVE_LIBNSL 1
  16944. _ACEOF
  16945. LIBS="-lnsl $LIBS"
  16946. fi
  16947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
  16948. $as_echo_n "checking for nanosleep in -lrt... " >&6; }
  16949. if ${ac_cv_lib_rt_nanosleep+:} false; then :
  16950. $as_echo_n "(cached) " >&6
  16951. else
  16952. ac_check_lib_save_LIBS=$LIBS
  16953. LIBS="-lrt $LIBS"
  16954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16955. /* end confdefs.h. */
  16956. /* Override any GCC internal prototype to avoid an error.
  16957. Use char because int might match the return type of a GCC
  16958. builtin and then its argument prototype would still apply. */
  16959. #ifdef __cplusplus
  16960. extern "C"
  16961. #endif
  16962. char nanosleep ();
  16963. int
  16964. main ()
  16965. {
  16966. return nanosleep ();
  16967. ;
  16968. return 0;
  16969. }
  16970. _ACEOF
  16971. if ac_fn_c_try_link "$LINENO"; then :
  16972. ac_cv_lib_rt_nanosleep=yes
  16973. else
  16974. ac_cv_lib_rt_nanosleep=no
  16975. fi
  16976. rm -f core conftest.err conftest.$ac_objext \
  16977. conftest$ac_exeext conftest.$ac_ext
  16978. LIBS=$ac_check_lib_save_LIBS
  16979. fi
  16980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
  16981. $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
  16982. if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
  16983. cat >>confdefs.h <<_ACEOF
  16984. #define HAVE_LIBRT 1
  16985. _ACEOF
  16986. LIBS="-lrt $LIBS"
  16987. fi
  16988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolv in -lresolv" >&5
  16989. $as_echo_n "checking for resolv in -lresolv... " >&6; }
  16990. if ${ac_cv_lib_resolv_resolv+:} false; then :
  16991. $as_echo_n "(cached) " >&6
  16992. else
  16993. ac_check_lib_save_LIBS=$LIBS
  16994. LIBS="-lresolv $LIBS"
  16995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16996. /* end confdefs.h. */
  16997. /* Override any GCC internal prototype to avoid an error.
  16998. Use char because int might match the return type of a GCC
  16999. builtin and then its argument prototype would still apply. */
  17000. #ifdef __cplusplus
  17001. extern "C"
  17002. #endif
  17003. char resolv ();
  17004. int
  17005. main ()
  17006. {
  17007. return resolv ();
  17008. ;
  17009. return 0;
  17010. }
  17011. _ACEOF
  17012. if ac_fn_c_try_link "$LINENO"; then :
  17013. ac_cv_lib_resolv_resolv=yes
  17014. else
  17015. ac_cv_lib_resolv_resolv=no
  17016. fi
  17017. rm -f core conftest.err conftest.$ac_objext \
  17018. conftest$ac_exeext conftest.$ac_ext
  17019. LIBS=$ac_check_lib_save_LIBS
  17020. fi
  17021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_resolv" >&5
  17022. $as_echo "$ac_cv_lib_resolv_resolv" >&6; }
  17023. if test "x$ac_cv_lib_resolv_resolv" = xyes; then :
  17024. cat >>confdefs.h <<_ACEOF
  17025. #define HAVE_LIBRESOLV 1
  17026. _ACEOF
  17027. LIBS="-lresolv $LIBS"
  17028. fi
  17029. for ac_header in vfork.h
  17030. do :
  17031. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  17032. if test "x$ac_cv_header_vfork_h" = xyes; then :
  17033. cat >>confdefs.h <<_ACEOF
  17034. #define HAVE_VFORK_H 1
  17035. _ACEOF
  17036. fi
  17037. done
  17038. for ac_func in fork vfork
  17039. do :
  17040. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17041. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17042. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17043. cat >>confdefs.h <<_ACEOF
  17044. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17045. _ACEOF
  17046. fi
  17047. done
  17048. if test "x$ac_cv_func_fork" = xyes; then
  17049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  17050. $as_echo_n "checking for working fork... " >&6; }
  17051. if ${ac_cv_func_fork_works+:} false; then :
  17052. $as_echo_n "(cached) " >&6
  17053. else
  17054. if test "$cross_compiling" = yes; then :
  17055. ac_cv_func_fork_works=cross
  17056. else
  17057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17058. /* end confdefs.h. */
  17059. $ac_includes_default
  17060. int
  17061. main ()
  17062. {
  17063. /* By Ruediger Kuhlmann. */
  17064. return fork () < 0;
  17065. ;
  17066. return 0;
  17067. }
  17068. _ACEOF
  17069. if ac_fn_c_try_run "$LINENO"; then :
  17070. ac_cv_func_fork_works=yes
  17071. else
  17072. ac_cv_func_fork_works=no
  17073. fi
  17074. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17075. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17076. fi
  17077. fi
  17078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  17079. $as_echo "$ac_cv_func_fork_works" >&6; }
  17080. else
  17081. ac_cv_func_fork_works=$ac_cv_func_fork
  17082. fi
  17083. if test "x$ac_cv_func_fork_works" = xcross; then
  17084. case $host in
  17085. *-*-amigaos* | *-*-msdosdjgpp*)
  17086. # Override, as these systems have only a dummy fork() stub
  17087. ac_cv_func_fork_works=no
  17088. ;;
  17089. *)
  17090. ac_cv_func_fork_works=yes
  17091. ;;
  17092. esac
  17093. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  17094. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  17095. fi
  17096. ac_cv_func_vfork_works=$ac_cv_func_vfork
  17097. if test "x$ac_cv_func_vfork" = xyes; then
  17098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  17099. $as_echo_n "checking for working vfork... " >&6; }
  17100. if ${ac_cv_func_vfork_works+:} false; then :
  17101. $as_echo_n "(cached) " >&6
  17102. else
  17103. if test "$cross_compiling" = yes; then :
  17104. ac_cv_func_vfork_works=cross
  17105. else
  17106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17107. /* end confdefs.h. */
  17108. /* Thanks to Paul Eggert for this test. */
  17109. $ac_includes_default
  17110. #include <sys/wait.h>
  17111. #ifdef HAVE_VFORK_H
  17112. # include <vfork.h>
  17113. #endif
  17114. /* On some sparc systems, changes by the child to local and incoming
  17115. argument registers are propagated back to the parent. The compiler
  17116. is told about this with #include <vfork.h>, but some compilers
  17117. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  17118. static variable whose address is put into a register that is
  17119. clobbered by the vfork. */
  17120. static void
  17121. #ifdef __cplusplus
  17122. sparc_address_test (int arg)
  17123. # else
  17124. sparc_address_test (arg) int arg;
  17125. #endif
  17126. {
  17127. static pid_t child;
  17128. if (!child) {
  17129. child = vfork ();
  17130. if (child < 0) {
  17131. perror ("vfork");
  17132. _exit(2);
  17133. }
  17134. if (!child) {
  17135. arg = getpid();
  17136. write(-1, "", 0);
  17137. _exit (arg);
  17138. }
  17139. }
  17140. }
  17141. int
  17142. main ()
  17143. {
  17144. pid_t parent = getpid ();
  17145. pid_t child;
  17146. sparc_address_test (0);
  17147. child = vfork ();
  17148. if (child == 0) {
  17149. /* Here is another test for sparc vfork register problems. This
  17150. test uses lots of local variables, at least as many local
  17151. variables as main has allocated so far including compiler
  17152. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  17153. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  17154. reuse the register of parent for one of the local variables,
  17155. since it will think that parent can't possibly be used any more
  17156. in this routine. Assigning to the local variable will thus
  17157. munge parent in the parent process. */
  17158. pid_t
  17159. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  17160. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  17161. /* Convince the compiler that p..p7 are live; otherwise, it might
  17162. use the same hardware register for all 8 local variables. */
  17163. if (p != p1 || p != p2 || p != p3 || p != p4
  17164. || p != p5 || p != p6 || p != p7)
  17165. _exit(1);
  17166. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  17167. from child file descriptors. If the child closes a descriptor
  17168. before it execs or exits, this munges the parent's descriptor
  17169. as well. Test for this by closing stdout in the child. */
  17170. _exit(close(fileno(stdout)) != 0);
  17171. } else {
  17172. int status;
  17173. struct stat st;
  17174. while (wait(&status) != child)
  17175. ;
  17176. return (
  17177. /* Was there some problem with vforking? */
  17178. child < 0
  17179. /* Did the child fail? (This shouldn't happen.) */
  17180. || status
  17181. /* Did the vfork/compiler bug occur? */
  17182. || parent != getpid()
  17183. /* Did the file descriptor bug occur? */
  17184. || fstat(fileno(stdout), &st) != 0
  17185. );
  17186. }
  17187. }
  17188. _ACEOF
  17189. if ac_fn_c_try_run "$LINENO"; then :
  17190. ac_cv_func_vfork_works=yes
  17191. else
  17192. ac_cv_func_vfork_works=no
  17193. fi
  17194. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17195. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17196. fi
  17197. fi
  17198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  17199. $as_echo "$ac_cv_func_vfork_works" >&6; }
  17200. fi;
  17201. if test "x$ac_cv_func_fork_works" = xcross; then
  17202. ac_cv_func_vfork_works=$ac_cv_func_vfork
  17203. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  17204. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  17205. fi
  17206. if test "x$ac_cv_func_vfork_works" = xyes; then
  17207. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  17208. else
  17209. $as_echo "#define vfork fork" >>confdefs.h
  17210. fi
  17211. if test "x$ac_cv_func_fork_works" = xyes; then
  17212. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  17213. fi
  17214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  17215. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  17216. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  17217. $as_echo_n "(cached) " >&6
  17218. else
  17219. rm -f conftest.sym conftest.file
  17220. echo >conftest.file
  17221. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  17222. if test "$cross_compiling" = yes; then :
  17223. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17224. else
  17225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17226. /* end confdefs.h. */
  17227. $ac_includes_default
  17228. int
  17229. main ()
  17230. {
  17231. struct stat sbuf;
  17232. /* Linux will dereference the symlink and fail, as required by POSIX.
  17233. That is better in the sense that it means we will not
  17234. have to compile and use the lstat wrapper. */
  17235. return lstat ("conftest.sym/", &sbuf) == 0;
  17236. ;
  17237. return 0;
  17238. }
  17239. _ACEOF
  17240. if ac_fn_c_try_run "$LINENO"; then :
  17241. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  17242. else
  17243. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17244. fi
  17245. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17246. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17247. fi
  17248. else
  17249. # If the `ln -s' command failed, then we probably don't even
  17250. # have an lstat function.
  17251. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17252. fi
  17253. rm -f conftest.sym conftest.file
  17254. fi
  17255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  17256. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  17257. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  17258. cat >>confdefs.h <<_ACEOF
  17259. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  17260. _ACEOF
  17261. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  17262. case " $LIBOBJS " in
  17263. *" lstat.$ac_objext "* ) ;;
  17264. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  17265. ;;
  17266. esac
  17267. fi
  17268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  17269. $as_echo_n "checking for working memcmp... " >&6; }
  17270. if ${ac_cv_func_memcmp_working+:} false; then :
  17271. $as_echo_n "(cached) " >&6
  17272. else
  17273. if test "$cross_compiling" = yes; then :
  17274. ac_cv_func_memcmp_working=no
  17275. else
  17276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17277. /* end confdefs.h. */
  17278. $ac_includes_default
  17279. int
  17280. main ()
  17281. {
  17282. /* Some versions of memcmp are not 8-bit clean. */
  17283. char c0 = '\100', c1 = '\200', c2 = '\201';
  17284. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  17285. return 1;
  17286. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  17287. or more and with at least one buffer not starting on a 4-byte boundary.
  17288. William Lewis provided this test program. */
  17289. {
  17290. char foo[21];
  17291. char bar[21];
  17292. int i;
  17293. for (i = 0; i < 4; i++)
  17294. {
  17295. char *a = foo + i;
  17296. char *b = bar + i;
  17297. strcpy (a, "--------01111111");
  17298. strcpy (b, "--------10000000");
  17299. if (memcmp (a, b, 16) >= 0)
  17300. return 1;
  17301. }
  17302. return 0;
  17303. }
  17304. ;
  17305. return 0;
  17306. }
  17307. _ACEOF
  17308. if ac_fn_c_try_run "$LINENO"; then :
  17309. ac_cv_func_memcmp_working=yes
  17310. else
  17311. ac_cv_func_memcmp_working=no
  17312. fi
  17313. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17314. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17315. fi
  17316. fi
  17317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  17318. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  17319. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  17320. *" memcmp.$ac_objext "* ) ;;
  17321. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  17322. ;;
  17323. esac
  17324. for ac_func in vprintf
  17325. do :
  17326. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  17327. if test "x$ac_cv_func_vprintf" = xyes; then :
  17328. cat >>confdefs.h <<_ACEOF
  17329. #define HAVE_VPRINTF 1
  17330. _ACEOF
  17331. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  17332. if test "x$ac_cv_func__doprnt" = xyes; then :
  17333. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  17334. fi
  17335. fi
  17336. done
  17337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  17338. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  17339. if ${ac_cv_header_time+:} false; then :
  17340. $as_echo_n "(cached) " >&6
  17341. else
  17342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17343. /* end confdefs.h. */
  17344. #include <sys/types.h>
  17345. #include <sys/time.h>
  17346. #include <time.h>
  17347. int
  17348. main ()
  17349. {
  17350. if ((struct tm *) 0)
  17351. return 0;
  17352. ;
  17353. return 0;
  17354. }
  17355. _ACEOF
  17356. if ac_fn_c_try_compile "$LINENO"; then :
  17357. ac_cv_header_time=yes
  17358. else
  17359. ac_cv_header_time=no
  17360. fi
  17361. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17362. fi
  17363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  17364. $as_echo "$ac_cv_header_time" >&6; }
  17365. if test $ac_cv_header_time = yes; then
  17366. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  17367. fi
  17368. for ac_func in $ac_func_list
  17369. do :
  17370. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17371. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17372. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17373. cat >>confdefs.h <<_ACEOF
  17374. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17375. _ACEOF
  17376. fi
  17377. done
  17378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  17379. $as_echo_n "checking for working mktime... " >&6; }
  17380. if ${ac_cv_func_working_mktime+:} false; then :
  17381. $as_echo_n "(cached) " >&6
  17382. else
  17383. if test "$cross_compiling" = yes; then :
  17384. ac_cv_func_working_mktime=no
  17385. else
  17386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17387. /* end confdefs.h. */
  17388. /* Test program from Paul Eggert and Tony Leneis. */
  17389. #ifdef TIME_WITH_SYS_TIME
  17390. # include <sys/time.h>
  17391. # include <time.h>
  17392. #else
  17393. # ifdef HAVE_SYS_TIME_H
  17394. # include <sys/time.h>
  17395. # else
  17396. # include <time.h>
  17397. # endif
  17398. #endif
  17399. #include <limits.h>
  17400. #include <stdlib.h>
  17401. #ifdef HAVE_UNISTD_H
  17402. # include <unistd.h>
  17403. #endif
  17404. #ifndef HAVE_ALARM
  17405. # define alarm(X) /* empty */
  17406. #endif
  17407. /* Work around redefinition to rpl_putenv by other config tests. */
  17408. #undef putenv
  17409. static time_t time_t_max;
  17410. static time_t time_t_min;
  17411. /* Values we'll use to set the TZ environment variable. */
  17412. static const char *tz_strings[] = {
  17413. (const char *) 0, "TZ=GMT0", "TZ=JST-9",
  17414. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  17415. };
  17416. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  17417. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  17418. Based on a problem report from Andreas Jaeger. */
  17419. static int
  17420. spring_forward_gap ()
  17421. {
  17422. /* glibc (up to about 1998-10-07) failed this test. */
  17423. struct tm tm;
  17424. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17425. instead of "TZ=America/Vancouver" in order to detect the bug even
  17426. on systems that don't support the Olson extension, or don't have the
  17427. full zoneinfo tables installed. */
  17428. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  17429. tm.tm_year = 98;
  17430. tm.tm_mon = 3;
  17431. tm.tm_mday = 5;
  17432. tm.tm_hour = 2;
  17433. tm.tm_min = 0;
  17434. tm.tm_sec = 0;
  17435. tm.tm_isdst = -1;
  17436. return mktime (&tm) != (time_t) -1;
  17437. }
  17438. static int
  17439. mktime_test1 (time_t now)
  17440. {
  17441. struct tm *lt;
  17442. return ! (lt = localtime (&now)) || mktime (lt) == now;
  17443. }
  17444. static int
  17445. mktime_test (time_t now)
  17446. {
  17447. return (mktime_test1 (now)
  17448. && mktime_test1 ((time_t) (time_t_max - now))
  17449. && mktime_test1 ((time_t) (time_t_min + now)));
  17450. }
  17451. static int
  17452. irix_6_4_bug ()
  17453. {
  17454. /* Based on code from Ariel Faigon. */
  17455. struct tm tm;
  17456. tm.tm_year = 96;
  17457. tm.tm_mon = 3;
  17458. tm.tm_mday = 0;
  17459. tm.tm_hour = 0;
  17460. tm.tm_min = 0;
  17461. tm.tm_sec = 0;
  17462. tm.tm_isdst = -1;
  17463. mktime (&tm);
  17464. return tm.tm_mon == 2 && tm.tm_mday == 31;
  17465. }
  17466. static int
  17467. bigtime_test (int j)
  17468. {
  17469. struct tm tm;
  17470. time_t now;
  17471. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  17472. now = mktime (&tm);
  17473. if (now != (time_t) -1)
  17474. {
  17475. struct tm *lt = localtime (&now);
  17476. if (! (lt
  17477. && lt->tm_year == tm.tm_year
  17478. && lt->tm_mon == tm.tm_mon
  17479. && lt->tm_mday == tm.tm_mday
  17480. && lt->tm_hour == tm.tm_hour
  17481. && lt->tm_min == tm.tm_min
  17482. && lt->tm_sec == tm.tm_sec
  17483. && lt->tm_yday == tm.tm_yday
  17484. && lt->tm_wday == tm.tm_wday
  17485. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  17486. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  17487. return 0;
  17488. }
  17489. return 1;
  17490. }
  17491. static int
  17492. year_2050_test ()
  17493. {
  17494. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  17495. ignoring leap seconds. */
  17496. unsigned long int answer = 2527315200UL;
  17497. struct tm tm;
  17498. time_t t;
  17499. tm.tm_year = 2050 - 1900;
  17500. tm.tm_mon = 2 - 1;
  17501. tm.tm_mday = 1;
  17502. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  17503. tm.tm_isdst = -1;
  17504. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17505. instead of "TZ=America/Vancouver" in order to detect the bug even
  17506. on systems that don't support the Olson extension, or don't have the
  17507. full zoneinfo tables installed. */
  17508. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  17509. t = mktime (&tm);
  17510. /* Check that the result is either a failure, or close enough
  17511. to the correct answer that we can assume the discrepancy is
  17512. due to leap seconds. */
  17513. return (t == (time_t) -1
  17514. || (0 < t && answer - 120 <= t && t <= answer + 120));
  17515. }
  17516. int
  17517. main ()
  17518. {
  17519. time_t t, delta;
  17520. int i, j;
  17521. /* This test makes some buggy mktime implementations loop.
  17522. Give up after 60 seconds; a mktime slower than that
  17523. isn't worth using anyway. */
  17524. alarm (60);
  17525. for (;;)
  17526. {
  17527. t = (time_t_max << 1) + 1;
  17528. if (t <= time_t_max)
  17529. break;
  17530. time_t_max = t;
  17531. }
  17532. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  17533. delta = time_t_max / 997; /* a suitable prime number */
  17534. for (i = 0; i < N_STRINGS; i++)
  17535. {
  17536. if (tz_strings[i])
  17537. putenv ((char*) tz_strings[i]);
  17538. for (t = 0; t <= time_t_max - delta; t += delta)
  17539. if (! mktime_test (t))
  17540. return 1;
  17541. if (! (mktime_test ((time_t) 1)
  17542. && mktime_test ((time_t) (60 * 60))
  17543. && mktime_test ((time_t) (60 * 60 * 24))))
  17544. return 1;
  17545. for (j = 1; ; j <<= 1)
  17546. if (! bigtime_test (j))
  17547. return 1;
  17548. else if (INT_MAX / 2 < j)
  17549. break;
  17550. if (! bigtime_test (INT_MAX))
  17551. return 1;
  17552. }
  17553. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  17554. }
  17555. _ACEOF
  17556. if ac_fn_c_try_run "$LINENO"; then :
  17557. ac_cv_func_working_mktime=yes
  17558. else
  17559. ac_cv_func_working_mktime=no
  17560. fi
  17561. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17562. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17563. fi
  17564. fi
  17565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  17566. $as_echo "$ac_cv_func_working_mktime" >&6; }
  17567. if test $ac_cv_func_working_mktime = no; then
  17568. case " $LIBOBJS " in
  17569. *" mktime.$ac_objext "* ) ;;
  17570. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  17571. ;;
  17572. esac
  17573. fi
  17574. for ac_func in getpagesize
  17575. do :
  17576. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  17577. if test "x$ac_cv_func_getpagesize" = xyes; then :
  17578. cat >>confdefs.h <<_ACEOF
  17579. #define HAVE_GETPAGESIZE 1
  17580. _ACEOF
  17581. fi
  17582. done
  17583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  17584. $as_echo_n "checking for working mmap... " >&6; }
  17585. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  17586. $as_echo_n "(cached) " >&6
  17587. else
  17588. if test "$cross_compiling" = yes; then :
  17589. ac_cv_func_mmap_fixed_mapped=no
  17590. else
  17591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17592. /* end confdefs.h. */
  17593. $ac_includes_default
  17594. /* malloc might have been renamed as rpl_malloc. */
  17595. #undef malloc
  17596. /* Thanks to Mike Haertel and Jim Avera for this test.
  17597. Here is a matrix of mmap possibilities:
  17598. mmap private not fixed
  17599. mmap private fixed at somewhere currently unmapped
  17600. mmap private fixed at somewhere already mapped
  17601. mmap shared not fixed
  17602. mmap shared fixed at somewhere currently unmapped
  17603. mmap shared fixed at somewhere already mapped
  17604. For private mappings, we should verify that changes cannot be read()
  17605. back from the file, nor mmap's back from the file at a different
  17606. address. (There have been systems where private was not correctly
  17607. implemented like the infamous i386 svr4.0, and systems where the
  17608. VM page cache was not coherent with the file system buffer cache
  17609. like early versions of FreeBSD and possibly contemporary NetBSD.)
  17610. For shared mappings, we should conversely verify that changes get
  17611. propagated back to all the places they're supposed to be.
  17612. Grep wants private fixed already mapped.
  17613. The main things grep needs to know about mmap are:
  17614. * does it exist and is it safe to write into the mmap'd area
  17615. * how to use it (BSD variants) */
  17616. #include <fcntl.h>
  17617. #include <sys/mman.h>
  17618. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  17619. char *malloc ();
  17620. #endif
  17621. /* This mess was copied from the GNU getpagesize.h. */
  17622. #ifndef HAVE_GETPAGESIZE
  17623. # ifdef _SC_PAGESIZE
  17624. # define getpagesize() sysconf(_SC_PAGESIZE)
  17625. # else /* no _SC_PAGESIZE */
  17626. # ifdef HAVE_SYS_PARAM_H
  17627. # include <sys/param.h>
  17628. # ifdef EXEC_PAGESIZE
  17629. # define getpagesize() EXEC_PAGESIZE
  17630. # else /* no EXEC_PAGESIZE */
  17631. # ifdef NBPG
  17632. # define getpagesize() NBPG * CLSIZE
  17633. # ifndef CLSIZE
  17634. # define CLSIZE 1
  17635. # endif /* no CLSIZE */
  17636. # else /* no NBPG */
  17637. # ifdef NBPC
  17638. # define getpagesize() NBPC
  17639. # else /* no NBPC */
  17640. # ifdef PAGESIZE
  17641. # define getpagesize() PAGESIZE
  17642. # endif /* PAGESIZE */
  17643. # endif /* no NBPC */
  17644. # endif /* no NBPG */
  17645. # endif /* no EXEC_PAGESIZE */
  17646. # else /* no HAVE_SYS_PARAM_H */
  17647. # define getpagesize() 8192 /* punt totally */
  17648. # endif /* no HAVE_SYS_PARAM_H */
  17649. # endif /* no _SC_PAGESIZE */
  17650. #endif /* no HAVE_GETPAGESIZE */
  17651. int
  17652. main ()
  17653. {
  17654. char *data, *data2, *data3;
  17655. const char *cdata2;
  17656. int i, pagesize;
  17657. int fd, fd2;
  17658. pagesize = getpagesize ();
  17659. /* First, make a file with some known garbage in it. */
  17660. data = (char *) malloc (pagesize);
  17661. if (!data)
  17662. return 1;
  17663. for (i = 0; i < pagesize; ++i)
  17664. *(data + i) = rand ();
  17665. umask (0);
  17666. fd = creat ("conftest.mmap", 0600);
  17667. if (fd < 0)
  17668. return 2;
  17669. if (write (fd, data, pagesize) != pagesize)
  17670. return 3;
  17671. close (fd);
  17672. /* Next, check that the tail of a page is zero-filled. File must have
  17673. non-zero length, otherwise we risk SIGBUS for entire page. */
  17674. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  17675. if (fd2 < 0)
  17676. return 4;
  17677. cdata2 = "";
  17678. if (write (fd2, cdata2, 1) != 1)
  17679. return 5;
  17680. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  17681. if (data2 == MAP_FAILED)
  17682. return 6;
  17683. for (i = 0; i < pagesize; ++i)
  17684. if (*(data2 + i))
  17685. return 7;
  17686. close (fd2);
  17687. if (munmap (data2, pagesize))
  17688. return 8;
  17689. /* Next, try to mmap the file at a fixed address which already has
  17690. something else allocated at it. If we can, also make sure that
  17691. we see the same garbage. */
  17692. fd = open ("conftest.mmap", O_RDWR);
  17693. if (fd < 0)
  17694. return 9;
  17695. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  17696. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  17697. return 10;
  17698. for (i = 0; i < pagesize; ++i)
  17699. if (*(data + i) != *(data2 + i))
  17700. return 11;
  17701. /* Finally, make sure that changes to the mapped area do not
  17702. percolate back to the file as seen by read(). (This is a bug on
  17703. some variants of i386 svr4.0.) */
  17704. for (i = 0; i < pagesize; ++i)
  17705. *(data2 + i) = *(data2 + i) + 1;
  17706. data3 = (char *) malloc (pagesize);
  17707. if (!data3)
  17708. return 12;
  17709. if (read (fd, data3, pagesize) != pagesize)
  17710. return 13;
  17711. for (i = 0; i < pagesize; ++i)
  17712. if (*(data + i) != *(data3 + i))
  17713. return 14;
  17714. close (fd);
  17715. return 0;
  17716. }
  17717. _ACEOF
  17718. if ac_fn_c_try_run "$LINENO"; then :
  17719. ac_cv_func_mmap_fixed_mapped=yes
  17720. else
  17721. ac_cv_func_mmap_fixed_mapped=no
  17722. fi
  17723. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17724. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17725. fi
  17726. fi
  17727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  17728. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  17729. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  17730. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  17731. fi
  17732. rm -f conftest.mmap conftest.txt
  17733. ac_fn_c_check_member "$LINENO" "struct timeval" "tv_sec" "ac_cv_member_struct_timeval_tv_sec" "$ac_includes_default"
  17734. if test "x$ac_cv_member_struct_timeval_tv_sec" = xyes; then :
  17735. cat >>confdefs.h <<_ACEOF
  17736. #define HAVE_STRUCT_TIMEVAL_TV_SEC 1
  17737. _ACEOF
  17738. fi
  17739. for ac_func in alarm atexit bzero dup2 gethostbyname getpagesize gettimeofday
  17740. do :
  17741. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17742. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17743. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17744. cat >>confdefs.h <<_ACEOF
  17745. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17746. _ACEOF
  17747. fi
  17748. done
  17749. for ac_func in ctime inet_ntoa memmove memset munmap pow putenv realpath
  17750. do :
  17751. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17752. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17753. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17754. cat >>confdefs.h <<_ACEOF
  17755. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17756. _ACEOF
  17757. fi
  17758. done
  17759. for ac_func in regcomp strdup select socket strcasecmp strchr strcspn strdup
  17760. do :
  17761. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17762. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17763. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17764. cat >>confdefs.h <<_ACEOF
  17765. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17766. _ACEOF
  17767. fi
  17768. done
  17769. for ac_func in strerror strtol strncpy strtoull poll ntohll mmap snprintf
  17770. do :
  17771. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17772. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17773. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17774. cat >>confdefs.h <<_ACEOF
  17775. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17776. _ACEOF
  17777. fi
  17778. done
  17779. for ac_func in vsnprintf strsignal strpbrk strrchr strspn strstr strtoul
  17780. do :
  17781. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17782. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17783. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17784. cat >>confdefs.h <<_ACEOF
  17785. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17786. _ACEOF
  17787. fi
  17788. done
  17789. for ac_func in ioperm
  17790. do :
  17791. ac_fn_c_check_func "$LINENO" "ioperm" "ac_cv_func_ioperm"
  17792. if test "x$ac_cv_func_ioperm" = xyes; then :
  17793. cat >>confdefs.h <<_ACEOF
  17794. #define HAVE_IOPERM 1
  17795. _ACEOF
  17796. fi
  17797. done
  17798. for ac_func in strlcpy
  17799. do :
  17800. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  17801. if test "x$ac_cv_func_strlcpy" = xyes; then :
  17802. cat >>confdefs.h <<_ACEOF
  17803. #define HAVE_STRLCPY 1
  17804. _ACEOF
  17805. have_strlcpy=true
  17806. else
  17807. have_strlcpy=false
  17808. fi
  17809. done
  17810. if test x$have_strlcpy = xtrue; then
  17811. SYSTEM_STRLCPY_TRUE=
  17812. SYSTEM_STRLCPY_FALSE='#'
  17813. else
  17814. SYSTEM_STRLCPY_TRUE='#'
  17815. SYSTEM_STRLCPY_FALSE=
  17816. fi
  17817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  17818. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  17819. if ${ac_cv_c_bigendian+:} false; then :
  17820. $as_echo_n "(cached) " >&6
  17821. else
  17822. ac_cv_c_bigendian=unknown
  17823. # See if we're dealing with a universal compiler.
  17824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17825. /* end confdefs.h. */
  17826. #ifndef __APPLE_CC__
  17827. not a universal capable compiler
  17828. #endif
  17829. typedef int dummy;
  17830. _ACEOF
  17831. if ac_fn_c_try_compile "$LINENO"; then :
  17832. # Check for potential -arch flags. It is not universal unless
  17833. # there are at least two -arch flags with different values.
  17834. ac_arch=
  17835. ac_prev=
  17836. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  17837. if test -n "$ac_prev"; then
  17838. case $ac_word in
  17839. i?86 | x86_64 | ppc | ppc64)
  17840. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  17841. ac_arch=$ac_word
  17842. else
  17843. ac_cv_c_bigendian=universal
  17844. break
  17845. fi
  17846. ;;
  17847. esac
  17848. ac_prev=
  17849. elif test "x$ac_word" = "x-arch"; then
  17850. ac_prev=arch
  17851. fi
  17852. done
  17853. fi
  17854. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17855. if test $ac_cv_c_bigendian = unknown; then
  17856. # See if sys/param.h defines the BYTE_ORDER macro.
  17857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17858. /* end confdefs.h. */
  17859. #include <sys/types.h>
  17860. #include <sys/param.h>
  17861. int
  17862. main ()
  17863. {
  17864. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  17865. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  17866. && LITTLE_ENDIAN)
  17867. bogus endian macros
  17868. #endif
  17869. ;
  17870. return 0;
  17871. }
  17872. _ACEOF
  17873. if ac_fn_c_try_compile "$LINENO"; then :
  17874. # It does; now see whether it defined to BIG_ENDIAN or not.
  17875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17876. /* end confdefs.h. */
  17877. #include <sys/types.h>
  17878. #include <sys/param.h>
  17879. int
  17880. main ()
  17881. {
  17882. #if BYTE_ORDER != BIG_ENDIAN
  17883. not big endian
  17884. #endif
  17885. ;
  17886. return 0;
  17887. }
  17888. _ACEOF
  17889. if ac_fn_c_try_compile "$LINENO"; then :
  17890. ac_cv_c_bigendian=yes
  17891. else
  17892. ac_cv_c_bigendian=no
  17893. fi
  17894. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17895. fi
  17896. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17897. fi
  17898. if test $ac_cv_c_bigendian = unknown; then
  17899. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  17900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17901. /* end confdefs.h. */
  17902. #include <limits.h>
  17903. int
  17904. main ()
  17905. {
  17906. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  17907. bogus endian macros
  17908. #endif
  17909. ;
  17910. return 0;
  17911. }
  17912. _ACEOF
  17913. if ac_fn_c_try_compile "$LINENO"; then :
  17914. # It does; now see whether it defined to _BIG_ENDIAN or not.
  17915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17916. /* end confdefs.h. */
  17917. #include <limits.h>
  17918. int
  17919. main ()
  17920. {
  17921. #ifndef _BIG_ENDIAN
  17922. not big endian
  17923. #endif
  17924. ;
  17925. return 0;
  17926. }
  17927. _ACEOF
  17928. if ac_fn_c_try_compile "$LINENO"; then :
  17929. ac_cv_c_bigendian=yes
  17930. else
  17931. ac_cv_c_bigendian=no
  17932. fi
  17933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17934. fi
  17935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17936. fi
  17937. if test $ac_cv_c_bigendian = unknown; then
  17938. # Compile a test program.
  17939. if test "$cross_compiling" = yes; then :
  17940. # Try to guess by grepping values from an object file.
  17941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17942. /* end confdefs.h. */
  17943. short int ascii_mm[] =
  17944. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  17945. short int ascii_ii[] =
  17946. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  17947. int use_ascii (int i) {
  17948. return ascii_mm[i] + ascii_ii[i];
  17949. }
  17950. short int ebcdic_ii[] =
  17951. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  17952. short int ebcdic_mm[] =
  17953. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  17954. int use_ebcdic (int i) {
  17955. return ebcdic_mm[i] + ebcdic_ii[i];
  17956. }
  17957. extern int foo;
  17958. int
  17959. main ()
  17960. {
  17961. return use_ascii (foo) == use_ebcdic (foo);
  17962. ;
  17963. return 0;
  17964. }
  17965. _ACEOF
  17966. if ac_fn_c_try_compile "$LINENO"; then :
  17967. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  17968. ac_cv_c_bigendian=yes
  17969. fi
  17970. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  17971. if test "$ac_cv_c_bigendian" = unknown; then
  17972. ac_cv_c_bigendian=no
  17973. else
  17974. # finding both strings is unlikely to happen, but who knows?
  17975. ac_cv_c_bigendian=unknown
  17976. fi
  17977. fi
  17978. fi
  17979. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17980. else
  17981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17982. /* end confdefs.h. */
  17983. $ac_includes_default
  17984. int
  17985. main ()
  17986. {
  17987. /* Are we little or big endian? From Harbison&Steele. */
  17988. union
  17989. {
  17990. long int l;
  17991. char c[sizeof (long int)];
  17992. } u;
  17993. u.l = 1;
  17994. return u.c[sizeof (long int) - 1] == 1;
  17995. ;
  17996. return 0;
  17997. }
  17998. _ACEOF
  17999. if ac_fn_c_try_run "$LINENO"; then :
  18000. ac_cv_c_bigendian=no
  18001. else
  18002. ac_cv_c_bigendian=yes
  18003. fi
  18004. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18005. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18006. fi
  18007. fi
  18008. fi
  18009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  18010. $as_echo "$ac_cv_c_bigendian" >&6; }
  18011. case $ac_cv_c_bigendian in #(
  18012. yes)
  18013. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  18014. ;; #(
  18015. no)
  18016. ;; #(
  18017. universal)
  18018. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  18019. ;; #(
  18020. *)
  18021. as_fn_error $? "unknown endianness
  18022. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  18023. esac
  18024. if test x$ac_cv_c_bigendian = xyes ; then
  18025. WORDS_BIGENDIAN_TRUE=
  18026. WORDS_BIGENDIAN_FALSE='#'
  18027. else
  18028. WORDS_BIGENDIAN_TRUE='#'
  18029. WORDS_BIGENDIAN_FALSE=
  18030. fi
  18031. # Check whether --enable-asan was given.
  18032. if test "${enable_asan+set}" = set; then :
  18033. enableval=$enable_asan;
  18034. fi
  18035. if test "x$enable_asan" = "xyes"; then
  18036. build_asan=yes
  18037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __asan_report_error in -lasan" >&5
  18038. $as_echo_n "checking for __asan_report_error in -lasan... " >&6; }
  18039. if ${ac_cv_lib_asan___asan_report_error+:} false; then :
  18040. $as_echo_n "(cached) " >&6
  18041. else
  18042. ac_check_lib_save_LIBS=$LIBS
  18043. LIBS="-lasan $LIBS"
  18044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18045. /* end confdefs.h. */
  18046. /* Override any GCC internal prototype to avoid an error.
  18047. Use char because int might match the return type of a GCC
  18048. builtin and then its argument prototype would still apply. */
  18049. #ifdef __cplusplus
  18050. extern "C"
  18051. #endif
  18052. char __asan_report_error ();
  18053. int
  18054. main ()
  18055. {
  18056. return __asan_report_error ();
  18057. ;
  18058. return 0;
  18059. }
  18060. _ACEOF
  18061. if ac_fn_c_try_link "$LINENO"; then :
  18062. ac_cv_lib_asan___asan_report_error=yes
  18063. else
  18064. ac_cv_lib_asan___asan_report_error=no
  18065. fi
  18066. rm -f core conftest.err conftest.$ac_objext \
  18067. conftest$ac_exeext conftest.$ac_ext
  18068. LIBS=$ac_check_lib_save_LIBS
  18069. fi
  18070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asan___asan_report_error" >&5
  18071. $as_echo "$ac_cv_lib_asan___asan_report_error" >&6; }
  18072. if test "x$ac_cv_lib_asan___asan_report_error" = xyes; then :
  18073. cat >>confdefs.h <<_ACEOF
  18074. #define HAVE_LIBASAN 1
  18075. _ACEOF
  18076. LIBS="-lasan $LIBS"
  18077. else
  18078. as_fn_error $? "libasan.so not found, this is required for --enable-asan" "$LINENO" 5
  18079. fi
  18080. CFLAGS="${CFLAGS} -O1 -g -fsanitize=address -fno-omit-frame-pointer"
  18081. LDFLAGS="-lasan ${LDFLAGS}"
  18082. else
  18083. build_asan=no
  18084. fi
  18085. debug=no
  18086. debug_flag=NDEBUG
  18087. debug_run_time_flag=
  18088. # Check whether --enable-debug was given.
  18089. if test "${enable_debug+set}" = set; then :
  18090. enableval=$enable_debug; if test x$enableval = xyes; then
  18091. debug=yes
  18092. CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9s]*//g'`
  18093. CFLAGS="${CFLAGS} -g -O0 -Wall $wextra $wfatal_errors $wno_variadic_macros $wno_format_contains_nul $wno_format"
  18094. # We may also want to add:
  18095. # -Wformat-security -Wswitch-default -Wunused-paramter -Wpadded"
  18096. debug_flag=DEBUG
  18097. debug_run_time_flag=--dbug=1
  18098. $as_echo "#define DEBUG 1" >>confdefs.h
  18099. fi
  18100. fi
  18101. extra_debug=no
  18102. extra_debug_flag=NEXTRA_DBUG
  18103. # Check whether --enable-extra-debug was given.
  18104. if test "${enable_extra_debug+set}" = set; then :
  18105. enableval=$enable_extra_debug; if test x$enableval = xyes; then
  18106. extra_debug=yes
  18107. extra_debug_flag=EXTRA_DEBUG
  18108. $as_echo "#define EXTRA_DEBUG 1" >>confdefs.h
  18109. fi
  18110. fi
  18111. timestamp_trace=no
  18112. # Check whether --enable-timestamp-trace was given.
  18113. if test "${enable_timestamp_trace+set}" = set; then :
  18114. enableval=$enable_timestamp_trace; if test x$enableval = xyes; then
  18115. timestamp_trace=yes
  18116. CFLAGS="${CFLAGS} -DTIMESTAMP_TRACE"
  18117. $as_echo "#define TIMESTAMP_TRACE 1" >>confdefs.h
  18118. fi
  18119. fi
  18120. # Check whether --enable-dmalloc was given.
  18121. if test "${enable_dmalloc+set}" = set; then :
  18122. enableval=$enable_dmalloc; if test x$enableval = xyes ; then
  18123. dmalloc=yes
  18124. $as_echo "#define ENABLE_DMALLOC 1" >>confdefs.h
  18125. $as_echo "#define DMALLOC_FUNC_CHECK 1" >>confdefs.h
  18126. CFLAGS="${CFLAGS} -I/opt/local/include"
  18127. DMALLOC_LIB="/opt/local/lib/libdmalloc.a"
  18128. fi
  18129. fi
  18130. # Check whether --enable-pedantic was given.
  18131. if test "${enable_pedantic+set}" = set; then :
  18132. enableval=$enable_pedantic; if test x$enableval = xyes; then
  18133. CFLAGS="$CFLAGS -pedantic"
  18134. fi
  18135. fi
  18136. # Check whether --enable-efence was given.
  18137. if test "${enable_efence+set}" = set; then :
  18138. enableval=$enable_efence; if test x$enableval = xyes; then
  18139. CFLAGS="$CFLAGS -lefence"
  18140. $as_echo "#define EFENCE 1" >>confdefs.h
  18141. fi
  18142. fi
  18143. # Check whether --enable-gprof was given.
  18144. if test "${enable_gprof+set}" = set; then :
  18145. enableval=$enable_gprof; if test x$enableval = xyes; then
  18146. if test $debug = yes; then
  18147. CFLAGS="$CFLAGS -pg"
  18148. else
  18149. # GPROF requires gdb
  18150. CFLAGS="$CFLAGS -ggdb -pg -fprofile-arcs"
  18151. fi
  18152. $as_echo "#define GPROF 1" >>confdefs.h
  18153. fi
  18154. fi
  18155. enable_pcap_config=no
  18156. # Check whether --enable-pcapconfig was given.
  18157. if test "${enable_pcapconfig+set}" = set; then :
  18158. enableval=$enable_pcapconfig;
  18159. if test $enableval = yes; then
  18160. enable_pcap_config=yes
  18161. { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling libpcap discovery via pcap_config" >&5
  18162. $as_echo "$as_me: Enabling libpcap discovery via pcap_config" >&6;}
  18163. else
  18164. enable_pcap_config=no
  18165. { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling libpcap discovery via pcap_config" >&5
  18166. $as_echo "$as_me: Disabling libpcap discovery via pcap_config" >&6;}
  18167. fi
  18168. else
  18169. { $as_echo "$as_me:${as_lineno-$LINENO}: Bypassing libpcap discovery via pcap_config" >&5
  18170. $as_echo "$as_me: Bypassing libpcap discovery via pcap_config" >&6;}
  18171. fi
  18172. use64bit_counters=yes
  18173. # Check whether --enable-64bits was given.
  18174. if test "${enable_64bits+set}" = set; then :
  18175. enableval=$enable_64bits;
  18176. { $as_echo "$as_me:${as_lineno-$LINENO}: Using u_int32_t for packet counters" >&5
  18177. $as_echo "$as_me: Using u_int32_t for packet counters" >&6;}
  18178. else
  18179. $as_echo "#define ENABLE_64BITS 1" >>confdefs.h
  18180. { $as_echo "$as_me:${as_lineno-$LINENO}: Using u_int64_t for packet counters" >&5
  18181. $as_echo "$as_me: Using u_int64_t for packet counters" >&6;}
  18182. fi
  18183. # If we're running gcc add '-D_U_="__attribute__((unused))"' to CFLAGS as well,
  18184. # so we can use _U_ to flag unused function arguments and not get warnings
  18185. # about them. Otherwise, add '-D_U_=""', so that _U_ used to flag an unused
  18186. # function argument will compile with non-GCC compilers.
  18187. #
  18188. if test "x$GCC" = "xyes" ; then
  18189. CFLAGS="-D_U_=\"__attribute__((unused))\" $CFLAGS"
  18190. else
  18191. CFLAGS="-D_U_=\"\" $CFLAGS"
  18192. fi
  18193. # Check whether --enable-force-bpf was given.
  18194. if test "${enable_force_bpf+set}" = set; then :
  18195. enableval=$enable_force_bpf;
  18196. $as_echo "#define FORCE_INJECT_BPF 1" >>confdefs.h
  18197. fi
  18198. # Check whether --enable-force-pf was given.
  18199. if test "${enable_force_pf+set}" = set; then :
  18200. enableval=$enable_force_pf;
  18201. $as_echo "#define FORCE_INJECT_PF 1" >>confdefs.h
  18202. fi
  18203. # Check whether --enable-force-libdnet was given.
  18204. if test "${enable_force_libdnet+set}" = set; then :
  18205. enableval=$enable_force_libdnet;
  18206. $as_echo "#define FORCE_INJECT_LIBDNET 1" >>confdefs.h
  18207. fi
  18208. # Check whether --enable-force-inject was given.
  18209. if test "${enable_force_inject+set}" = set; then :
  18210. enableval=$enable_force_inject;
  18211. $as_echo "#define FORCE_INJECT_PCAP_INJECT 1" >>confdefs.h
  18212. fi
  18213. # Check whether --enable-force-sendpacket was given.
  18214. if test "${enable_force_sendpacket+set}" = set; then :
  18215. enableval=$enable_force_sendpacket;
  18216. $as_echo "#define FORCE_INJECT_PCAP_SENDPACKET 1" >>confdefs.h
  18217. fi
  18218. static_link=no
  18219. dynamic_link=yes
  18220. # Check whether --enable-static-link was given.
  18221. if test "${enable_static_link+set}" = set; then :
  18222. enableval=$enable_static_link;
  18223. if test $enableval = yes; then
  18224. static_link=yes
  18225. dynamic_link=no
  18226. fi
  18227. fi
  18228. # Check whether --enable-dynamic-link was given.
  18229. if test "${enable_dynamic_link+set}" = set; then :
  18230. enableval=$enable_dynamic_link;
  18231. if test $enableval = no; then
  18232. dynamic_link=no
  18233. static_link=yes
  18234. elif test $static_link = yes; then
  18235. as_fn_error $? "Cannot specify both --enable-dynamic-link and --enable-static-link" "$LINENO" 5
  18236. fi
  18237. fi
  18238. if test $static_link = yes; then
  18239. $as_echo "#define ENABLE_STATIC_LINK 1" >>confdefs.h
  18240. else
  18241. $as_echo "#define ENABLE_DYNAMIC_LINK 1" >>confdefs.h
  18242. fi
  18243. ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
  18244. if test "x$ac_cv_func_inet_aton" = xyes; then :
  18245. $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
  18246. inet_aton=yes
  18247. else
  18248. inet_aton=no
  18249. fi
  18250. ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
  18251. if test "x$ac_cv_func_inet_pton" = xyes; then :
  18252. $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
  18253. inet_pton=yes
  18254. else
  18255. inet_pton=no
  18256. fi
  18257. ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
  18258. if test "x$ac_cv_func_inet_ntop" = xyes; then :
  18259. $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
  18260. inet_ntop=yes
  18261. else
  18262. inet_ntop=no
  18263. fi
  18264. if test "$inet_ntop" = "no" -a "$inet_pton" = "no" ; then
  18265. as_fn_error $? "We need either inet_ntop or inet_pton" "$LINENO" 5
  18266. fi
  18267. ac_fn_c_check_func "$LINENO" "inet_addr" "ac_cv_func_inet_addr"
  18268. if test "x$ac_cv_func_inet_addr" = xyes; then :
  18269. $as_echo "#define HAVE_INET_ADDR 1" >>confdefs.h
  18270. inet_addr=yes
  18271. else
  18272. inet_addr=no
  18273. fi
  18274. if test x$inet_addr = no ; then
  18275. as_fn_error $? "We need inet_addr. See bug 26" "$LINENO" 5
  18276. fi
  18277. have_tuntap=no
  18278. # Check whether --enable-tuntap was given.
  18279. if test "${enable_tuntap+set}" = set; then :
  18280. enableval=$enable_tuntap; :
  18281. else
  18282. case "$build_os" in
  18283. linux*)
  18284. ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default"
  18285. if test "x$ac_cv_header_linux_if_tun_h" = xyes; then :
  18286. have_tuntap=yes
  18287. fi
  18288. ;;
  18289. *)
  18290. ac_fn_c_check_header_mongrel "$LINENO" "net/if_tun.h" "ac_cv_header_net_if_tun_h" "$ac_includes_default"
  18291. if test "x$ac_cv_header_net_if_tun_h" = xyes; then :
  18292. have_tuntap=yes
  18293. fi
  18294. ;;
  18295. esac
  18296. fi
  18297. if test $have_tuntap = yes ; then
  18298. $as_echo "#define HAVE_TUNTAP 1" >>confdefs.h
  18299. fi
  18300. foundpcap=no
  18301. pf_ring_found=no
  18302. pf_ring_lib=${with_pfring_lib}
  18303. using_pcap_config=no
  18304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcap" >&5
  18305. $as_echo_n "checking for libpcap... " >&6; }
  18306. # Check whether --with-libpcap was given.
  18307. if test "${with_libpcap+set}" = set; then :
  18308. withval=$with_libpcap;
  18309. testdir=$withval
  18310. for incl in ${testdir}/include/pcap.h ${testdir}/pcap.h ${testdir}/pcap/pcap.h; do
  18311. if ! test -f "${incl}"; then
  18312. continue
  18313. fi
  18314. LPCAPINC=${incl}
  18315. LPCAPINCDIR=${testdir}
  18316. if test $dynamic_link = yes; then
  18317. for ext in .dylib .so .tbd ; do
  18318. for dir in . lib lib64 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
  18319. sharefile=$(ls ${testdir}/$dir/libpcap${ext}* 2> /dev/null | sort | head -n1)
  18320. if test -n "${sharefile}"; then
  18321. LPCAP_LD_LIBRARY_PATH="$(dirname ${sharefile})"
  18322. LPCAPLIB="-L$LPCAP_LD_LIBRARY_PATH -lpcap"
  18323. foundpcap=$testdir
  18324. break
  18325. fi
  18326. done
  18327. if ! test $foundpcap = no; then
  18328. break
  18329. fi
  18330. done
  18331. else
  18332. for ext in ${libext} .a .A.tbd ; do
  18333. for dir in . lib lib64 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
  18334. staticfile=$(ls ${testdir}/$dir/libpcap${ext} 2> /dev/null | sort | head -n1)
  18335. if test -n "${staticfile}"; then
  18336. LPCAPLIB="${staticfile}"
  18337. foundpcap=${testdir}
  18338. break
  18339. fi
  18340. done
  18341. done
  18342. fi
  18343. if test $foundpcap = no; then
  18344. as_fn_error $? "\"Unable to find matching library for header file in ${testdir}\"" "$LINENO" 5
  18345. fi
  18346. break
  18347. done
  18348. else
  18349. #
  18350. # Look for pcap-config.
  18351. #
  18352. # I wish this option could be the default, but it is only enabled with --enable-pcapconfig
  18353. #
  18354. # The issue is that libpcap is one of those libraries that is nearly impossible to set up
  18355. # properly across all platforms. The 'pcap-config' script is shipped with new versions of libpcap,
  18356. # and was created to address portability issues. Unfortunately, the script is not updated properly
  18357. # outside of the base distribution. Examples: PF_RING requires 'pthreads', 'numa' and 'rt', but
  18358. # this is not reflect that in the script. OS X Xcode 10.11 SDK creates its own very broken
  18359. # 'pcap-config' script that only occasionally works for dynamic definitions, and definitely
  18360. # does not work for static.
  18361. #
  18362. # The ability to enable this script exists for corner cases where libpcap distributions starts
  18363. # using even more libraries than I am currently not aware of. Originally, you only had to worry
  18364. # about 'nl', but now we have to be prepared to add 'nl-3', 'nl-genl-3' and 'dbus-1' to make
  18365. # libpcap functional. In the future, there may be more.
  18366. #
  18367. # (sigh)
  18368. #
  18369. # So, in the future if libpcap changes and stops working, try setting --enable-pcapconfig. It
  18370. # it may work for you.
  18371. if test $enable_pcap_config = yes; then
  18372. if test -n "$ac_tool_prefix"; then
  18373. # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args.
  18374. set dummy ${ac_tool_prefix}pcap-config; ac_word=$2
  18375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18376. $as_echo_n "checking for $ac_word... " >&6; }
  18377. if ${ac_cv_path_PCAP_CONFIG+:} false; then :
  18378. $as_echo_n "(cached) " >&6
  18379. else
  18380. case $PCAP_CONFIG in
  18381. [\\/]* | ?:[\\/]*)
  18382. ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
  18383. ;;
  18384. *)
  18385. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18386. for as_dir in $PATH
  18387. do
  18388. IFS=$as_save_IFS
  18389. test -z "$as_dir" && as_dir=.
  18390. for ac_exec_ext in '' $ac_executable_extensions; do
  18391. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18392. ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18393. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18394. break 2
  18395. fi
  18396. done
  18397. done
  18398. IFS=$as_save_IFS
  18399. ;;
  18400. esac
  18401. fi
  18402. PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
  18403. if test -n "$PCAP_CONFIG"; then
  18404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCAP_CONFIG" >&5
  18405. $as_echo "$PCAP_CONFIG" >&6; }
  18406. else
  18407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18408. $as_echo "no" >&6; }
  18409. fi
  18410. fi
  18411. if test -z "$ac_cv_path_PCAP_CONFIG"; then
  18412. ac_pt_PCAP_CONFIG=$PCAP_CONFIG
  18413. # Extract the first word of "pcap-config", so it can be a program name with args.
  18414. set dummy pcap-config; ac_word=$2
  18415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18416. $as_echo_n "checking for $ac_word... " >&6; }
  18417. if ${ac_cv_path_ac_pt_PCAP_CONFIG+:} false; then :
  18418. $as_echo_n "(cached) " >&6
  18419. else
  18420. case $ac_pt_PCAP_CONFIG in
  18421. [\\/]* | ?:[\\/]*)
  18422. ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path.
  18423. ;;
  18424. *)
  18425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18426. for as_dir in $PATH
  18427. do
  18428. IFS=$as_save_IFS
  18429. test -z "$as_dir" && as_dir=.
  18430. for ac_exec_ext in '' $ac_executable_extensions; do
  18431. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18432. ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18433. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18434. break 2
  18435. fi
  18436. done
  18437. done
  18438. IFS=$as_save_IFS
  18439. ;;
  18440. esac
  18441. fi
  18442. ac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG
  18443. if test -n "$ac_pt_PCAP_CONFIG"; then
  18444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PCAP_CONFIG" >&5
  18445. $as_echo "$ac_pt_PCAP_CONFIG" >&6; }
  18446. else
  18447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18448. $as_echo "no" >&6; }
  18449. fi
  18450. if test "x$ac_pt_PCAP_CONFIG" = x; then
  18451. PCAP_CONFIG=""
  18452. else
  18453. case $cross_compiling:$ac_tool_warned in
  18454. yes:)
  18455. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18456. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18457. ac_tool_warned=yes ;;
  18458. esac
  18459. PCAP_CONFIG=$ac_pt_PCAP_CONFIG
  18460. fi
  18461. else
  18462. PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG"
  18463. fi
  18464. if test -n "$PCAP_CONFIG"; then
  18465. #
  18466. # Found - use it to get the include flags for
  18467. # libpcap and the flags to link with libpcap.
  18468. #
  18469. # Please read section 11.6 "Shell Substitutions"
  18470. # in the autoconf manual before doing anything
  18471. # to this that involves quoting. Especially note
  18472. # the statement "There is just no portable way to use
  18473. # double-quoted strings inside double-quoted back-quoted
  18474. # expressions (pfew!)."
  18475. #
  18476. if test $dynamic_link = yes; then
  18477. LPCAPLIB=$($PCAP_CONFIG --libs)
  18478. else
  18479. LPCAPLIB=$($PCAP_CONFIG --libs --static)
  18480. fi
  18481. CFLAGS="$CFLAGS $($PCAP_CONFIG --cflags)"
  18482. if test -n "$LPCAPLIB"; then
  18483. foundpcap=yes
  18484. using_pcap_config=yes
  18485. else
  18486. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find libpcap using pcap-config" >&5
  18487. $as_echo "$as_me: WARNING: Unable to find libpcap using pcap-config" >&2;}
  18488. fi
  18489. fi
  18490. fi
  18491. if test ! $foundpcap = yes; then
  18492. #
  18493. # Not found; look for pcap.
  18494. #
  18495. for testdir in /usr/local /opt/local /usr /wpdpack $MACOSX_SDK_PATH/usr /usr/local/opt/libpcap ; do
  18496. if test -f "${testdir}/include/pcap.h"; then
  18497. LPCAPINC="${testdir}/include/pcap.h"
  18498. LPCAPINCDIR="${testdir}/include"
  18499. if test $dynamic_link = yes; then
  18500. for ext in .dylib .so .tbd; do
  18501. for dir in . lib lib64 ${host_cpu} lib/${host_cpu} ${host_cpu}-${host_os} lib/${host_cpu}-${host_os} ${MULTIARCH} lib/${MULTIARCH}; do
  18502. sharefile=$(ls "${testdir}/$dir/libpcap${ext}" 2> /dev/null | sort | head -n1)
  18503. if test -n "${sharefile}"; then
  18504. LPCAPLIB="-L$(dirname ${sharefile}) -lpcap"
  18505. foundpcap=$testdir
  18506. break
  18507. fi
  18508. done
  18509. if ! test $foundpcap = no; then
  18510. break
  18511. fi
  18512. done
  18513. fi
  18514. if test $foundpcap = no ; then
  18515. for ext in ${libext} .a .A.tbd ; do
  18516. for dir in . lib lib64 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
  18517. staticfile=$(ls "${testdir}/$dir/libpcap${ext}" 2> /dev/null | sort | head -n1)
  18518. if test -n "${staticfile}"; then
  18519. LPCAPLIB="${staticfile}"
  18520. foundpcap=$testdir
  18521. break
  18522. fi
  18523. done
  18524. if ! test $foundpcap = no; then
  18525. break
  18526. fi
  18527. done
  18528. fi
  18529. if test $foundpcap = no -a -f "${testdir}/lib/libwpcap.${libext}" ; then
  18530. LPCAPLIB="${testdir}/lib/libwpcap.${libext}"
  18531. $as_echo "#define HAVE_WINPCAP 1" >>confdefs.h
  18532. foundpcap=$testdir
  18533. fi
  18534. fi
  18535. if ! test $foundpcap = no; then
  18536. break
  18537. fi
  18538. done
  18539. fi
  18540. fi
  18541. if test $foundpcap = no ; then
  18542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18543. $as_echo "no" >&6; }
  18544. as_fn_error $? "libpcap not found" "$LINENO" 5
  18545. else
  18546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $foundpcap" >&5
  18547. $as_echo "$foundpcap" >&6; }
  18548. fi
  18549. ## could be PF_RING
  18550. #
  18551. # library is static and in PF_RING build tree
  18552. #
  18553. # Need access to libpfring library
  18554. # and must find an associated libpfring.a
  18555. if test -n "${with_pfring_lib}"; then
  18556. if test -f ${with_pfring_lib}; then
  18557. pf_ring_lib=${with_pfring_lib}
  18558. pf_ring_found=yes
  18559. else
  18560. as_fn_error $? "\"Unable to find PF_RING library ${with_pfring_lib}\"" "$LINENO" 5
  18561. fi
  18562. fi
  18563. # libpcap can require libnl
  18564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nl_handle_alloc" >&5
  18565. $as_echo_n "checking for library containing nl_handle_alloc... " >&6; }
  18566. if ${ac_cv_search_nl_handle_alloc+:} false; then :
  18567. $as_echo_n "(cached) " >&6
  18568. else
  18569. ac_func_search_save_LIBS=$LIBS
  18570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18571. /* end confdefs.h. */
  18572. /* Override any GCC internal prototype to avoid an error.
  18573. Use char because int might match the return type of a GCC
  18574. builtin and then its argument prototype would still apply. */
  18575. #ifdef __cplusplus
  18576. extern "C"
  18577. #endif
  18578. char nl_handle_alloc ();
  18579. int
  18580. main ()
  18581. {
  18582. return nl_handle_alloc ();
  18583. ;
  18584. return 0;
  18585. }
  18586. _ACEOF
  18587. for ac_lib in '' nl; do
  18588. if test -z "$ac_lib"; then
  18589. ac_res="none required"
  18590. else
  18591. ac_res=-l$ac_lib
  18592. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  18593. fi
  18594. if ac_fn_c_try_link "$LINENO"; then :
  18595. ac_cv_search_nl_handle_alloc=$ac_res
  18596. fi
  18597. rm -f core conftest.err conftest.$ac_objext \
  18598. conftest$ac_exeext
  18599. if ${ac_cv_search_nl_handle_alloc+:} false; then :
  18600. break
  18601. fi
  18602. done
  18603. if ${ac_cv_search_nl_handle_alloc+:} false; then :
  18604. else
  18605. ac_cv_search_nl_handle_alloc=no
  18606. fi
  18607. rm conftest.$ac_ext
  18608. LIBS=$ac_func_search_save_LIBS
  18609. fi
  18610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nl_handle_alloc" >&5
  18611. $as_echo "$ac_cv_search_nl_handle_alloc" >&6; }
  18612. ac_res=$ac_cv_search_nl_handle_alloc
  18613. if test "$ac_res" != no; then :
  18614. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  18615. { $as_echo "$as_me:${as_lineno-$LINENO}: Unable to find nl library - may be needed by libpcap" >&5
  18616. $as_echo "$as_me: Unable to find nl library - may be needed by libpcap" >&6;}
  18617. fi
  18618. ##
  18619. ## If not automatically configured,
  18620. ## check for newer and full-featured libpcap's
  18621. ##
  18622. if ! test $using_pcap_config = yes; then
  18623. ## newer libpcap requires dbus and latest nl (e.g. -lnl-genl-3 -lnl-3 -ldbus-1)
  18624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_cache_alloc in -lnl" >&5
  18625. $as_echo_n "checking for nl_cache_alloc in -lnl... " >&6; }
  18626. if ${ac_cv_lib_nl_nl_cache_alloc+:} false; then :
  18627. $as_echo_n "(cached) " >&6
  18628. else
  18629. ac_check_lib_save_LIBS=$LIBS
  18630. LIBS="-lnl $LIBS"
  18631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18632. /* end confdefs.h. */
  18633. /* Override any GCC internal prototype to avoid an error.
  18634. Use char because int might match the return type of a GCC
  18635. builtin and then its argument prototype would still apply. */
  18636. #ifdef __cplusplus
  18637. extern "C"
  18638. #endif
  18639. char nl_cache_alloc ();
  18640. int
  18641. main ()
  18642. {
  18643. return nl_cache_alloc ();
  18644. ;
  18645. return 0;
  18646. }
  18647. _ACEOF
  18648. if ac_fn_c_try_link "$LINENO"; then :
  18649. ac_cv_lib_nl_nl_cache_alloc=yes
  18650. else
  18651. ac_cv_lib_nl_nl_cache_alloc=no
  18652. fi
  18653. rm -f core conftest.err conftest.$ac_objext \
  18654. conftest$ac_exeext conftest.$ac_ext
  18655. LIBS=$ac_check_lib_save_LIBS
  18656. fi
  18657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_cache_alloc" >&5
  18658. $as_echo "$ac_cv_lib_nl_nl_cache_alloc" >&6; }
  18659. if test "x$ac_cv_lib_nl_nl_cache_alloc" = xyes; then :
  18660. nl_found=yes
  18661. fi
  18662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genl_connect in -lnl-genl-3" >&5
  18663. $as_echo_n "checking for genl_connect in -lnl-genl-3... " >&6; }
  18664. if ${ac_cv_lib_nl_genl_3_genl_connect+:} false; then :
  18665. $as_echo_n "(cached) " >&6
  18666. else
  18667. ac_check_lib_save_LIBS=$LIBS
  18668. LIBS="-lnl-genl-3 $LIBS"
  18669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18670. /* end confdefs.h. */
  18671. /* Override any GCC internal prototype to avoid an error.
  18672. Use char because int might match the return type of a GCC
  18673. builtin and then its argument prototype would still apply. */
  18674. #ifdef __cplusplus
  18675. extern "C"
  18676. #endif
  18677. char genl_connect ();
  18678. int
  18679. main ()
  18680. {
  18681. return genl_connect ();
  18682. ;
  18683. return 0;
  18684. }
  18685. _ACEOF
  18686. if ac_fn_c_try_link "$LINENO"; then :
  18687. ac_cv_lib_nl_genl_3_genl_connect=yes
  18688. else
  18689. ac_cv_lib_nl_genl_3_genl_connect=no
  18690. fi
  18691. rm -f core conftest.err conftest.$ac_objext \
  18692. conftest$ac_exeext conftest.$ac_ext
  18693. LIBS=$ac_check_lib_save_LIBS
  18694. fi
  18695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_genl_3_genl_connect" >&5
  18696. $as_echo "$ac_cv_lib_nl_genl_3_genl_connect" >&6; }
  18697. if test "x$ac_cv_lib_nl_genl_3_genl_connect" = xyes; then :
  18698. nl_genl_3_found=yes
  18699. fi
  18700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_cache_alloc in -lnl-3" >&5
  18701. $as_echo_n "checking for nl_cache_alloc in -lnl-3... " >&6; }
  18702. if ${ac_cv_lib_nl_3_nl_cache_alloc+:} false; then :
  18703. $as_echo_n "(cached) " >&6
  18704. else
  18705. ac_check_lib_save_LIBS=$LIBS
  18706. LIBS="-lnl-3 $LIBS"
  18707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18708. /* end confdefs.h. */
  18709. /* Override any GCC internal prototype to avoid an error.
  18710. Use char because int might match the return type of a GCC
  18711. builtin and then its argument prototype would still apply. */
  18712. #ifdef __cplusplus
  18713. extern "C"
  18714. #endif
  18715. char nl_cache_alloc ();
  18716. int
  18717. main ()
  18718. {
  18719. return nl_cache_alloc ();
  18720. ;
  18721. return 0;
  18722. }
  18723. _ACEOF
  18724. if ac_fn_c_try_link "$LINENO"; then :
  18725. ac_cv_lib_nl_3_nl_cache_alloc=yes
  18726. else
  18727. ac_cv_lib_nl_3_nl_cache_alloc=no
  18728. fi
  18729. rm -f core conftest.err conftest.$ac_objext \
  18730. conftest$ac_exeext conftest.$ac_ext
  18731. LIBS=$ac_check_lib_save_LIBS
  18732. fi
  18733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_cache_alloc" >&5
  18734. $as_echo "$ac_cv_lib_nl_3_nl_cache_alloc" >&6; }
  18735. if test "x$ac_cv_lib_nl_3_nl_cache_alloc" = xyes; then :
  18736. nl_3_found=yes
  18737. fi
  18738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_malloc in -ldbus-1" >&5
  18739. $as_echo_n "checking for dbus_malloc in -ldbus-1... " >&6; }
  18740. if ${ac_cv_lib_dbus_1_dbus_malloc+:} false; then :
  18741. $as_echo_n "(cached) " >&6
  18742. else
  18743. ac_check_lib_save_LIBS=$LIBS
  18744. LIBS="-ldbus-1 $LIBS"
  18745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18746. /* end confdefs.h. */
  18747. /* Override any GCC internal prototype to avoid an error.
  18748. Use char because int might match the return type of a GCC
  18749. builtin and then its argument prototype would still apply. */
  18750. #ifdef __cplusplus
  18751. extern "C"
  18752. #endif
  18753. char dbus_malloc ();
  18754. int
  18755. main ()
  18756. {
  18757. return dbus_malloc ();
  18758. ;
  18759. return 0;
  18760. }
  18761. _ACEOF
  18762. if ac_fn_c_try_link "$LINENO"; then :
  18763. ac_cv_lib_dbus_1_dbus_malloc=yes
  18764. else
  18765. ac_cv_lib_dbus_1_dbus_malloc=no
  18766. fi
  18767. rm -f core conftest.err conftest.$ac_objext \
  18768. conftest$ac_exeext conftest.$ac_ext
  18769. LIBS=$ac_check_lib_save_LIBS
  18770. fi
  18771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_malloc" >&5
  18772. $as_echo "$ac_cv_lib_dbus_1_dbus_malloc" >&6; }
  18773. if test "x$ac_cv_lib_dbus_1_dbus_malloc" = xyes; then :
  18774. dbus_1_found=yes
  18775. fi
  18776. if test "$nl_found" = "yes"; then
  18777. LPCAPLIB="$LPCAPLIB -lnl"
  18778. fi
  18779. if test "$nl_genl_3_found" = "yes"; then
  18780. LPCAPLIB="$LPCAPLIB -lnl-genl-3"
  18781. fi
  18782. if test "$nl_3_found" = "yes"; then
  18783. LPCAPLIB="$LPCAPLIB -lnl-3"
  18784. fi
  18785. if test "$dbus_1_found" = "yes"; then
  18786. LPCAPLIB="$LPCAPLIB -ldbus-1"
  18787. fi
  18788. ## See if prereqs for PF_RING exist
  18789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for numa_available in -lnuma" >&5
  18790. $as_echo_n "checking for numa_available in -lnuma... " >&6; }
  18791. if ${ac_cv_lib_numa_numa_available+:} false; then :
  18792. $as_echo_n "(cached) " >&6
  18793. else
  18794. ac_check_lib_save_LIBS=$LIBS
  18795. LIBS="-lnuma $LIBS"
  18796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18797. /* end confdefs.h. */
  18798. /* Override any GCC internal prototype to avoid an error.
  18799. Use char because int might match the return type of a GCC
  18800. builtin and then its argument prototype would still apply. */
  18801. #ifdef __cplusplus
  18802. extern "C"
  18803. #endif
  18804. char numa_available ();
  18805. int
  18806. main ()
  18807. {
  18808. return numa_available ();
  18809. ;
  18810. return 0;
  18811. }
  18812. _ACEOF
  18813. if ac_fn_c_try_link "$LINENO"; then :
  18814. ac_cv_lib_numa_numa_available=yes
  18815. else
  18816. ac_cv_lib_numa_numa_available=no
  18817. fi
  18818. rm -f core conftest.err conftest.$ac_objext \
  18819. conftest$ac_exeext conftest.$ac_ext
  18820. LIBS=$ac_check_lib_save_LIBS
  18821. fi
  18822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_numa_available" >&5
  18823. $as_echo "$ac_cv_lib_numa_numa_available" >&6; }
  18824. if test "x$ac_cv_lib_numa_numa_available" = xyes; then :
  18825. numa_found=yes
  18826. fi
  18827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  18828. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  18829. if ${ac_cv_lib_pthread_pthread_create+:} false; then :
  18830. $as_echo_n "(cached) " >&6
  18831. else
  18832. ac_check_lib_save_LIBS=$LIBS
  18833. LIBS="-lpthread $LIBS"
  18834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18835. /* end confdefs.h. */
  18836. /* Override any GCC internal prototype to avoid an error.
  18837. Use char because int might match the return type of a GCC
  18838. builtin and then its argument prototype would still apply. */
  18839. #ifdef __cplusplus
  18840. extern "C"
  18841. #endif
  18842. char pthread_create ();
  18843. int
  18844. main ()
  18845. {
  18846. return pthread_create ();
  18847. ;
  18848. return 0;
  18849. }
  18850. _ACEOF
  18851. if ac_fn_c_try_link "$LINENO"; then :
  18852. ac_cv_lib_pthread_pthread_create=yes
  18853. else
  18854. ac_cv_lib_pthread_pthread_create=no
  18855. fi
  18856. rm -f core conftest.err conftest.$ac_objext \
  18857. conftest$ac_exeext conftest.$ac_ext
  18858. LIBS=$ac_check_lib_save_LIBS
  18859. fi
  18860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  18861. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  18862. if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
  18863. pthread_found=yes
  18864. fi
  18865. if test $pf_ring_found = yes; then
  18866. if ! test "${numa_found}" = "yes"; then
  18867. as_fn_error $? "PF_RING requires libnuma and/or libnuma-dev" "$LINENO" 5
  18868. fi
  18869. if ! test "${pthread_found}" = "yes"; then
  18870. as_fn_error $? "PF_RING requires libpthread" "$LINENO" 5
  18871. fi
  18872. LPCAPLIB="$LPCAPLIB ${pf_ring_lib} -lnuma -lpthread -lrt"
  18873. fi
  18874. fi
  18875. OLDLIBS="$LIBS"
  18876. if test -n "$LPCAPINCDIR"; then
  18877. OLDCFLAGS="$CFLAGS -I$LPCAPINCDIR"
  18878. CFLAGS="$CFLAGS -I$LPCAPINCDIR"
  18879. else
  18880. OLDCFLAGS="$CFLAGS"
  18881. LPCAPINCDIR=$(echo $CFLAGS | sed -e 's/^\-I//')
  18882. if test -d "$LPCAPINCDIR/pcap"; then
  18883. LPCAPINC="$LPCAPINCDIR/pcap/pcap.h"
  18884. else
  18885. LPCAPINC="$LPCAPINCDIR/pcap.h"
  18886. fi
  18887. fi
  18888. LIBS="$LPCAPLIB"
  18889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcap_get_pfring_id" >&5
  18890. $as_echo_n "checking for library containing pcap_get_pfring_id... " >&6; }
  18891. if ${ac_cv_search_pcap_get_pfring_id+:} false; then :
  18892. $as_echo_n "(cached) " >&6
  18893. else
  18894. ac_func_search_save_LIBS=$LIBS
  18895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18896. /* end confdefs.h. */
  18897. /* Override any GCC internal prototype to avoid an error.
  18898. Use char because int might match the return type of a GCC
  18899. builtin and then its argument prototype would still apply. */
  18900. #ifdef __cplusplus
  18901. extern "C"
  18902. #endif
  18903. char pcap_get_pfring_id ();
  18904. int
  18905. main ()
  18906. {
  18907. return pcap_get_pfring_id ();
  18908. ;
  18909. return 0;
  18910. }
  18911. _ACEOF
  18912. for ac_lib in '' pcap; do
  18913. if test -z "$ac_lib"; then
  18914. ac_res="none required"
  18915. else
  18916. ac_res=-l$ac_lib
  18917. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  18918. fi
  18919. if ac_fn_c_try_link "$LINENO"; then :
  18920. ac_cv_search_pcap_get_pfring_id=$ac_res
  18921. fi
  18922. rm -f core conftest.err conftest.$ac_objext \
  18923. conftest$ac_exeext
  18924. if ${ac_cv_search_pcap_get_pfring_id+:} false; then :
  18925. break
  18926. fi
  18927. done
  18928. if ${ac_cv_search_pcap_get_pfring_id+:} false; then :
  18929. else
  18930. ac_cv_search_pcap_get_pfring_id=no
  18931. fi
  18932. rm conftest.$ac_ext
  18933. LIBS=$ac_func_search_save_LIBS
  18934. fi
  18935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcap_get_pfring_id" >&5
  18936. $as_echo "$ac_cv_search_pcap_get_pfring_id" >&6; }
  18937. ac_res=$ac_cv_search_pcap_get_pfring_id
  18938. if test "$ac_res" != no; then :
  18939. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  18940. $as_echo "#define HAVE_PF_RING_PCAP /**/" >>confdefs.h
  18941. fi
  18942. ## Does libpcap work with selected libraries?
  18943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcap_close" >&5
  18944. $as_echo_n "checking for library containing pcap_close... " >&6; }
  18945. if ${ac_cv_search_pcap_close+:} false; then :
  18946. $as_echo_n "(cached) " >&6
  18947. else
  18948. ac_func_search_save_LIBS=$LIBS
  18949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18950. /* end confdefs.h. */
  18951. /* Override any GCC internal prototype to avoid an error.
  18952. Use char because int might match the return type of a GCC
  18953. builtin and then its argument prototype would still apply. */
  18954. #ifdef __cplusplus
  18955. extern "C"
  18956. #endif
  18957. char pcap_close ();
  18958. int
  18959. main ()
  18960. {
  18961. return pcap_close ();
  18962. ;
  18963. return 0;
  18964. }
  18965. _ACEOF
  18966. for ac_lib in '' pcap; do
  18967. if test -z "$ac_lib"; then
  18968. ac_res="none required"
  18969. else
  18970. ac_res=-l$ac_lib
  18971. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  18972. fi
  18973. if ac_fn_c_try_link "$LINENO"; then :
  18974. ac_cv_search_pcap_close=$ac_res
  18975. fi
  18976. rm -f core conftest.err conftest.$ac_objext \
  18977. conftest$ac_exeext
  18978. if ${ac_cv_search_pcap_close+:} false; then :
  18979. break
  18980. fi
  18981. done
  18982. if ${ac_cv_search_pcap_close+:} false; then :
  18983. else
  18984. ac_cv_search_pcap_close=no
  18985. fi
  18986. rm conftest.$ac_ext
  18987. LIBS=$ac_func_search_save_LIBS
  18988. fi
  18989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcap_close" >&5
  18990. $as_echo "$ac_cv_search_pcap_close" >&6; }
  18991. ac_res=$ac_cv_search_pcap_close
  18992. if test "$ac_res" != no; then :
  18993. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  18994. else
  18995. as_fn_error $? "Unable to link libpcap in ${foundpcap}" "$LINENO" 5
  18996. fi
  18997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpcap version" >&5
  18998. $as_echo_n "checking libpcap version... " >&6; }
  18999. libpcap_version=unknown
  19000. libpcap_version_096=no
  19001. cat >conftest.c <<EOF
  19002. #include <string.h>
  19003. #include <stdio.h>
  19004. #include "$LPCAPINC"
  19005. /*
  19006. * simple proggy to get the version of libpcap
  19007. */
  19008. int main() {
  19009. printf("%s\n", pcap_lib_version());
  19010. return 0;
  19011. }
  19012. EOF
  19013. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LPCAPLIB \
  19014. conftest.c $LIBS >/dev/null 2>&1
  19015. if test -x conftest ; then
  19016. full_libpcap_version=$(LD_LIBRARY_PATH="$LPCAP_LD_LIBRARY_PATH" ./conftest)
  19017. libpcap_version=$(echo "$full_libpcap_version" | ${CUT} -d' ' -f3)
  19018. pcap_version_ok=yes
  19019. fi
  19020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpcap_version" >&5
  19021. $as_echo "$libpcap_version" >&6; }
  19022. rm -rf conftest.* core core.conftest 2>&1 > /dev/null
  19023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for valid libpcap version" >&5
  19024. $as_echo_n "checking for valid libpcap version... " >&6; }
  19025. if test x$libpcap_version != xunknown; then
  19026. libpcap_major=$(echo ${libpcap_version} | ${CUT} -d '.' -f1)
  19027. libpcap_minor=$(echo ${libpcap_version} | ${CUT} -d '.' -f2)
  19028. libpcap_build=$(echo ${libpcap_version} | ${CUT} -d '.' -f3)
  19029. if test $libpcap_major -eq 0 && \
  19030. (test $libpcap_minor -lt 7 || \
  19031. (test $libpcap_minor -eq 7 && test $libpcap_build -lt 2))
  19032. then
  19033. as_fn_error $? "Libpcap versions < 0.7.2 are not supported
  19034. Please upgrade to version 0.7.2 or better. Your version is $libpcap_version" "$LINENO" 5
  19035. fi
  19036. if test $libpcap_major -gt 0 || \
  19037. (test $libpcap_minor -eq 9 && test $libpcap_build -ge 6)
  19038. then
  19039. libpcap_version_096=yes
  19040. fi
  19041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19042. $as_echo "yes" >&6; }
  19043. else
  19044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
  19045. $as_echo "unknown" >&6; }
  19046. fi
  19047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_setnonblock" >&5
  19048. $as_echo_n "checking for pcap_setnonblock... " >&6; }
  19049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19050. /* end confdefs.h. */
  19051. #include <stdio.h>
  19052. #include <stdlib.h>
  19053. #include <string.h>
  19054. #include "$LPCAPINC"
  19055. int
  19056. main ()
  19057. {
  19058. pcap_t *p;
  19059. char *errbuf;
  19060. pcap_setnonblock(p, 1, errbuf);
  19061. exit(0);
  19062. ;
  19063. return 0;
  19064. }
  19065. _ACEOF
  19066. if ac_fn_c_try_link "$LINENO"; then :
  19067. have_pcap_setnonblock=yes
  19068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19069. $as_echo "yes" >&6; }
  19070. else
  19071. have_pcap_setnonblock=no
  19072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19073. $as_echo "no" >&6; }
  19074. fi
  19075. rm -f core conftest.err conftest.$ac_objext \
  19076. conftest$ac_exeext conftest.$ac_ext
  19077. if test $have_pcap_setnonblock = yes ; then
  19078. $as_echo "#define HAVE_PCAP_SETNONBLOCK 1" >>confdefs.h
  19079. fi
  19080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_datalink_val_to_description" >&5
  19081. $as_echo_n "checking for pcap_datalink_val_to_description... " >&6; }
  19082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19083. /* end confdefs.h. */
  19084. #include <stdio.h>
  19085. #include <stdlib.h>
  19086. #include <string.h>
  19087. #include "$LPCAPINC"
  19088. int
  19089. main ()
  19090. {
  19091. if (strcmp(pcap_datalink_val_to_description(1), "Ethernet (10Mb)") == 0)
  19092. exit(0);
  19093. exit(1);
  19094. ;
  19095. return 0;
  19096. }
  19097. _ACEOF
  19098. if ac_fn_c_try_link "$LINENO"; then :
  19099. have_dlt_to_desc=yes
  19100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19101. $as_echo "yes" >&6; }
  19102. else
  19103. have_dlt_to_desc=no
  19104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19105. $as_echo "no" >&6; }
  19106. fi
  19107. rm -f core conftest.err conftest.$ac_objext \
  19108. conftest$ac_exeext conftest.$ac_ext
  19109. if test $have_dlt_to_desc = yes ; then
  19110. $as_echo "#define HAVE_DLT_VAL_TO_DESC 1" >>confdefs.h
  19111. fi
  19112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_get_selectable_fd" >&5
  19113. $as_echo_n "checking for pcap_get_selectable_fd... " >&6; }
  19114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19115. /* end confdefs.h. */
  19116. #include <stdio.h>
  19117. #include <stdlib.h>
  19118. #include <string.h>
  19119. #include "$LPCAPINC"
  19120. int
  19121. main ()
  19122. {
  19123. int f;
  19124. pcap_t *p;
  19125. f = pcap_get_selectable_fd(p);
  19126. exit(0);
  19127. ;
  19128. return 0;
  19129. }
  19130. _ACEOF
  19131. if ac_fn_c_try_link "$LINENO"; then :
  19132. have_pcap_get_selectable_fd=yes
  19133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19134. $as_echo "yes" >&6; }
  19135. else
  19136. have_pcap_get_selectable_fd=no
  19137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19138. $as_echo "no" >&6; }
  19139. fi
  19140. rm -f core conftest.err conftest.$ac_objext \
  19141. conftest$ac_exeext conftest.$ac_ext
  19142. if test x$have_pcap_get_selectable_fd = xyes ; then
  19143. $as_echo "#define HAVE_PCAP_GET_SELECTABLE_FD 1" >>confdefs.h
  19144. fi
  19145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen" >&5
  19146. $as_echo_n "checking for pcap_dump_fopen... " >&6; }
  19147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19148. /* end confdefs.h. */
  19149. #include <stdio.h>
  19150. #include <stdlib.h>
  19151. #include <string.h>
  19152. #include "$LPCAPINC"
  19153. int
  19154. main ()
  19155. {
  19156. pcap_dumper_t *dump;
  19157. pcap_t *pcap;
  19158. FILE *foo;
  19159. dump = pcap_dump_fopen(pcap, foo);
  19160. ;
  19161. return 0;
  19162. }
  19163. _ACEOF
  19164. if ac_fn_c_try_link "$LINENO"; then :
  19165. have_pcap_dump_fopen=yes
  19166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19167. $as_echo "yes" >&6; }
  19168. else
  19169. have_pcap_dump_fopen=no
  19170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19171. $as_echo "no" >&6; }
  19172. fi
  19173. rm -f core conftest.err conftest.$ac_objext \
  19174. conftest$ac_exeext conftest.$ac_ext
  19175. if test $have_pcap_dump_fopen = yes ; then
  19176. $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
  19177. else
  19178. { $as_echo "$as_me:${as_lineno-$LINENO}: --verbose mode requires libpcap >= 0.9.0" >&5
  19179. $as_echo "$as_me: --verbose mode requires libpcap >= 0.9.0" >&6;}
  19180. fi
  19181. have_pcap_inject=no
  19182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_inject sending support" >&5
  19183. $as_echo_n "checking for pcap_inject sending support... " >&6; }
  19184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19185. /* end confdefs.h. */
  19186. #include <stdio.h>
  19187. #include <stdlib.h>
  19188. #include <string.h>
  19189. #include "$LPCAPINC"
  19190. int
  19191. main ()
  19192. {
  19193. pcap_t *pcap;
  19194. char *buf;
  19195. pcap_inject(pcap, (void *)buf, 0);
  19196. ;
  19197. return 0;
  19198. }
  19199. _ACEOF
  19200. if ac_fn_c_try_link "$LINENO"; then :
  19201. have_pcap_inject=yes
  19202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19203. $as_echo "yes" >&6; }
  19204. else
  19205. have_pcap_inject=no
  19206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19207. $as_echo "no" >&6; }
  19208. fi
  19209. rm -f core conftest.err conftest.$ac_objext \
  19210. conftest$ac_exeext conftest.$ac_ext
  19211. if test $have_pcap_inject = yes ; then
  19212. $as_echo "#define HAVE_PCAP_INJECT 1" >>confdefs.h
  19213. fi
  19214. have_pcap_sendpacket=no
  19215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_sendpacket sending support" >&5
  19216. $as_echo_n "checking for pcap_sendpacket sending support... " >&6; }
  19217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19218. /* end confdefs.h. */
  19219. #include <stdio.h>
  19220. #include <stdlib.h>
  19221. #include <string.h>
  19222. #include "$LPCAPINC"
  19223. int
  19224. main ()
  19225. {
  19226. pcap_t *pcap;
  19227. u_char *buf;
  19228. pcap_sendpacket(pcap, buf, 0);
  19229. ;
  19230. return 0;
  19231. }
  19232. _ACEOF
  19233. if ac_fn_c_try_link "$LINENO"; then :
  19234. have_pcap_sendpacket=yes
  19235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19236. $as_echo "yes" >&6; }
  19237. else
  19238. have_pcap_sendpacket=no
  19239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19240. $as_echo "no" >&6; }
  19241. fi
  19242. rm -f core conftest.err conftest.$ac_objext \
  19243. conftest$ac_exeext conftest.$ac_ext
  19244. if test $have_pcap_sendpacket = yes ; then
  19245. $as_echo "#define HAVE_PCAP_SENDPACKET 1" >>confdefs.h
  19246. fi
  19247. have_pcap_breakloop=no
  19248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_breakloop" >&5
  19249. $as_echo_n "checking for pcap_breakloop... " >&6; }
  19250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19251. /* end confdefs.h. */
  19252. #include <stdio.h>
  19253. #include <stdlib.h>
  19254. #include <string.h>
  19255. #include "$LPCAPINC"
  19256. int
  19257. main ()
  19258. {
  19259. pcap_t *pcap;
  19260. pcap_sendpacket(pcap);
  19261. ;
  19262. return 0;
  19263. }
  19264. _ACEOF
  19265. if ac_fn_c_try_link "$LINENO"; then :
  19266. have_pcap_breakloop=yes
  19267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19268. $as_echo "yes" >&6; }
  19269. else
  19270. have_pcap_breakloop=no
  19271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19272. $as_echo "no" >&6; }
  19273. fi
  19274. rm -f core conftest.err conftest.$ac_objext \
  19275. conftest$ac_exeext conftest.$ac_ext
  19276. if test $have_pcap_breakloop = yes ; then
  19277. $as_echo "#define HAVE_PCAP_BREAKLOOP 1" >>confdefs.h
  19278. fi
  19279. have_pcap_version=no
  19280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_version" >&5
  19281. $as_echo_n "checking for pcap_version... " >&6; }
  19282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19283. /* end confdefs.h. */
  19284. #include <stdio.h>
  19285. #include <stdlib.h>
  19286. #include <string.h>
  19287. #include "$LPCAPINC"
  19288. extern char pcap_version[];
  19289. int
  19290. main ()
  19291. {
  19292. printf("%s", pcap_version);
  19293. ;
  19294. return 0;
  19295. }
  19296. _ACEOF
  19297. if ac_fn_c_try_link "$LINENO"; then :
  19298. $as_echo "#define HAVE_PCAP_VERSION 1" >>confdefs.h
  19299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19300. $as_echo "yes" >&6; }
  19301. else
  19302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19303. $as_echo "no" >&6; }
  19304. fi
  19305. rm -f core conftest.err conftest.$ac_objext \
  19306. conftest$ac_exeext conftest.$ac_ext
  19307. have_pcap_snapshot=no
  19308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_snapshot" >&5
  19309. $as_echo_n "checking for pcap_snapshot... " >&6; }
  19310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19311. /* end confdefs.h. */
  19312. #include <stdio.h>
  19313. #include <stdlib.h>
  19314. #include <string.h>
  19315. #include "$LPCAPINC"
  19316. int
  19317. main ()
  19318. {
  19319. pcap_t *p;
  19320. int len;
  19321. len = pcap_snapshot(p);
  19322. exit(0);
  19323. ;
  19324. return 0;
  19325. }
  19326. _ACEOF
  19327. if ac_fn_c_try_link "$LINENO"; then :
  19328. have_pcap_snapshot=yes
  19329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19330. $as_echo "yes" >&6; }
  19331. else
  19332. have_pcap_snapshot=no
  19333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19334. $as_echo "no" >&6; }
  19335. fi
  19336. rm -f core conftest.err conftest.$ac_objext \
  19337. conftest$ac_exeext conftest.$ac_ext
  19338. if test $have_pcap_snapshot = yes ; then
  19339. $as_echo "#define HAVE_PCAP_SNAPSHOT 1" >>confdefs.h
  19340. fi
  19341. # Tcpbridge requires libpcap and pcap_sendpacket()
  19342. enable_tcpbridge=no
  19343. if test x$foundpcap != xno -a x$have_pcap_sendpacket = xyes ; then
  19344. # if we have pcap_sendpacket() then we can build tcpbridge on non-BPF systems
  19345. if test x$have_bpf = xno; then
  19346. $as_echo "#define ENABLE_TCPBRIDGE 1" >>confdefs.h
  19347. enable_tcpbridge=yes
  19348. { $as_echo "$as_me:${as_lineno-$LINENO}: Building tcpbridge" >&5
  19349. $as_echo "$as_me: Building tcpbridge" >&6;}
  19350. # BPF systems need to also have pcap_setnonblock()
  19351. elif test x$have_pcap_setnonblock = xyes ; then
  19352. $as_echo "#define ENABLE_TCPBRIDGE 1" >>confdefs.h
  19353. enable_tcpbridge=yes
  19354. { $as_echo "$as_me:${as_lineno-$LINENO}: Building tcpbridge" >&5
  19355. $as_echo "$as_me: Building tcpbridge" >&6;}
  19356. else
  19357. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to build tcpbridge. Try installing latest libpcap!" >&5
  19358. $as_echo "$as_me: WARNING: Unable to build tcpbridge. Try installing latest libpcap!" >&2;}
  19359. fi
  19360. fi
  19361. if test x$enable_tcpbridge = xyes ; then
  19362. COMPILE_TCPBRIDGE_TRUE=
  19363. COMPILE_TCPBRIDGE_FALSE='#'
  19364. else
  19365. COMPILE_TCPBRIDGE_TRUE='#'
  19366. COMPILE_TCPBRIDGE_FALSE=
  19367. fi
  19368. # tcpliveplay requires linux OS to function properly
  19369. enable_tcpliveplay=no
  19370. case $host in
  19371. *-*-linux*)
  19372. $as_echo "#define ENABLE_TCPLIVEPLAY 1" >>confdefs.h
  19373. enable_tcpliveplay=yes
  19374. { $as_echo "$as_me:${as_lineno-$LINENO}: Building tcpliveplay" >&5
  19375. $as_echo "$as_me: Building tcpliveplay" >&6;}
  19376. ;;
  19377. *)
  19378. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to build tcpliveplay. This tool is only enabled on linux environments." >&5
  19379. $as_echo "$as_me: WARNING: Unable to build tcpliveplay. This tool is only enabled on linux environments." >&2;}
  19380. ;;
  19381. esac
  19382. if test x$enable_tcpliveplay = xyes ; then
  19383. COMPILE_TCPLIVEPLAY_TRUE=
  19384. COMPILE_TCPLIVEPLAY_FALSE='#'
  19385. else
  19386. COMPILE_TCPLIVEPLAY_TRUE='#'
  19387. COMPILE_TCPLIVEPLAY_FALSE=
  19388. fi
  19389. have_netmap=no
  19390. enable_netmap=no
  19391. trynetmapdir=
  19392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap socket sending support" >&5
  19393. $as_echo_n "checking for netmap socket sending support... " >&6; }
  19394. # Check whether --with-netmap was given.
  19395. if test "${with_netmap+set}" = set; then :
  19396. withval=$with_netmap; trynetmapdir=$withval
  19397. fi
  19398. NETMAP_SEARCH_DIRS=
  19399. if test "$cross_compiling" = yes; then
  19400. if test "x$trynetmapdir" != "x"; then
  19401. NETMAP_SEARCH_DIRS=$trynetmapdir
  19402. fi
  19403. else
  19404. NETMAP_SEARCH_DIRS="$trynetmapdir /opt/netmap /usr/src/netmap-release /usr/src/netmap /usr/local/src/netmap-release /usr/local/src/netmap /usr/include /usr/local/include"
  19405. fi
  19406. for testdir in $NETMAP_SEARCH_DIRS; do
  19407. if test -f "${testdir}/sys/net/netmap.h" ; then
  19408. NETMAPINC="${testdir}/sys/net/netmap.h"
  19409. NETMAPUSERINC="${testdir}/sys/net/netmap_user.h"
  19410. NETMAPINCDIR="${testdir}/sys"
  19411. have_netmap="yes $testdir"
  19412. enable_netmap=yes
  19413. else
  19414. if test -f "${testdir}/net/netmap.h" ; then
  19415. NETMAPINC="${testdir}/net/netmap.h"
  19416. NETMAPUSERINC="${testdir}/net/netmap_user.h"
  19417. NETMAPINCDIR="${testdir}"
  19418. have_netmap="yes $testdir"
  19419. enable_netmap=yes
  19420. fi
  19421. fi
  19422. if test "$have_netmap" != no ; then
  19423. NETMAPFLAGS="-DHAVE_NETMAP"
  19424. OLDCFLAGS="$CFLAGS -I$NETMAPINCDIR"
  19425. CFLAGS="$CFLAGS -DNETMAP_WITH_LIBS -DND -I$NETMAPINCDIR"
  19426. $as_echo "#define HAVE_NETMAP 1" >>confdefs.h
  19427. have_netmap="yes $testdir"
  19428. enable_netmap=yes
  19429. break;
  19430. fi
  19431. done
  19432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_netmap" >&5
  19433. $as_echo "$have_netmap" >&6; }
  19434. if test x$enable_netmap = xyes ; then
  19435. COMPILE_NETMAP_TRUE=
  19436. COMPILE_NETMAP_FALSE='#'
  19437. else
  19438. COMPILE_NETMAP_TRUE='#'
  19439. COMPILE_NETMAP_FALSE=
  19440. fi
  19441. if test "x$NETMAPINCDIR" != "x"; then
  19442. OLDCPPFLAGS="$CPPFLAGS"
  19443. CPPFLAGS="$CPPFLAGS -DNETMAP_WITH_LIBS -DND -I$NETMAPINCDIR"
  19444. have_nm_open=no
  19445. have_nm_nr_reg_mask=no
  19446. have_nm_nr_flags=no
  19447. have_nmring_head_tail=no
  19448. if test "$have_netmap" != no ; then
  19449. ac_fn_c_check_decl "$LINENO" "nm_open" "ac_cv_have_decl_nm_open" "
  19450. #include <stdio.h>
  19451. #include \"${NETMAPUSERINC}\"
  19452. "
  19453. if test "x$ac_cv_have_decl_nm_open" = xyes; then :
  19454. have_nm_open=yes
  19455. fi
  19456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap NR_REG_MASK definition" >&5
  19457. $as_echo_n "checking for netmap NR_REG_MASK definition... " >&6; }
  19458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19459. /* end confdefs.h. */
  19460. #include <stdint.h>
  19461. #include <sys/socket.h>
  19462. #include <net/if.h>
  19463. #include <net/netmap.h>
  19464. int
  19465. main ()
  19466. {
  19467. #ifdef NR_REG_MASK
  19468. /* OK */
  19469. #else
  19470. # error NR_REG_MASK not found
  19471. #endif
  19472. ;
  19473. return 0;
  19474. }
  19475. _ACEOF
  19476. if ac_fn_c_try_compile "$LINENO"; then :
  19477. have_nm_nr_reg_mask=yes
  19478. fi
  19479. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nm_nr_reg_mask" >&5
  19481. $as_echo "$have_nm_nr_reg_mask" >&6; }
  19482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap nr_flags definition" >&5
  19483. $as_echo_n "checking for netmap nr_flags definition... " >&6; }
  19484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19485. /* end confdefs.h. */
  19486. #include <stdint.h>
  19487. #include <sys/socket.h>
  19488. #include <net/if.h>
  19489. #include <net/netmap.h>
  19490. int
  19491. main ()
  19492. {
  19493. struct nmreq nmr;
  19494. nmr.nr_flags = 0;
  19495. ;
  19496. return 0;
  19497. }
  19498. _ACEOF
  19499. if ac_fn_c_try_compile "$LINENO"; then :
  19500. have_nm_nr_flags=yes
  19501. fi
  19502. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nm_nr_flags" >&5
  19504. $as_echo "$have_nm_nr_flags" >&6; }
  19505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap ring head/tail definitions" >&5
  19506. $as_echo_n "checking for netmap ring head/tail definitions... " >&6; }
  19507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19508. /* end confdefs.h. */
  19509. #include <stdint.h>
  19510. #include <sys/socket.h>
  19511. #include <net/if.h>
  19512. #include <net/netmap.h>
  19513. int
  19514. main ()
  19515. {
  19516. struct netmap_ring r;
  19517. r.head = r.tail = 0;
  19518. ;
  19519. return 0;
  19520. }
  19521. _ACEOF
  19522. if ac_fn_c_try_compile "$LINENO"; then :
  19523. have_nmring_head_tail=yes
  19524. fi
  19525. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nmring_head_tail" >&5
  19527. $as_echo "$have_nmring_head_tail" >&6; }
  19528. fi
  19529. if test "$have_nm_open" = yes ; then
  19530. $as_echo "#define HAVE_NETMAP_NM_OPEN 1" >>confdefs.h
  19531. fi
  19532. if test "$have_nm_nr_reg_mask" = yes ; then
  19533. $as_echo "#define HAVE_NETMAP_NR_REG 1" >>confdefs.h
  19534. fi
  19535. if test "$have_nm_nr_flags" = yes ; then
  19536. $as_echo "#define HAVE_NETMAP_NR_FLAGS 1" >>confdefs.h
  19537. fi
  19538. if test "$have_nmring_head_tail" = yes ; then
  19539. $as_echo "#define HAVE_NETMAP_RING_HEAD_TAIL 1" >>confdefs.h
  19540. fi
  19541. CPPFLAGS="$OLDCPPFLAGS"
  19542. fi
  19543. have_pf=no
  19544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PF_PACKET socket sending support" >&5
  19545. $as_echo_n "checking for PF_PACKET socket sending support... " >&6; }
  19546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19547. /* end confdefs.h. */
  19548. #include <sys/socket.h>
  19549. #include <netpacket/packet.h>
  19550. #include <net/ethernet.h> /* the L2 protocols */
  19551. #include <netinet/in.h> /* htons */
  19552. int
  19553. main ()
  19554. {
  19555. int pf_socket;
  19556. pf_socket = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
  19557. ;
  19558. return 0;
  19559. }
  19560. _ACEOF
  19561. if ac_fn_c_try_compile "$LINENO"; then :
  19562. $as_echo "#define HAVE_PF_PACKET 1" >>confdefs.h
  19563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19564. $as_echo "yes" >&6; }
  19565. have_pf=yes
  19566. else
  19567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19568. $as_echo "no" >&6; }
  19569. fi
  19570. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19571. have_tx_ring=no
  19572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TX_RING socket sending support" >&5
  19573. $as_echo_n "checking for TX_RING socket sending support... " >&6; }
  19574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19575. /* end confdefs.h. */
  19576. #include <sys/socket.h>
  19577. #include <netpacket/packet.h>
  19578. #include <net/ethernet.h> /* the L2 protocols */
  19579. #include <netinet/in.h> /* htons */
  19580. #include <linux/if_packet.h>
  19581. int
  19582. main ()
  19583. {
  19584. int test;
  19585. test = TP_STATUS_WRONG_FORMAT
  19586. ;
  19587. return 0;
  19588. }
  19589. _ACEOF
  19590. if ac_fn_c_try_compile "$LINENO"; then :
  19591. $as_echo "#define HAVE_TX_RING 1" >>confdefs.h
  19592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19593. $as_echo "yes" >&6; }
  19594. have_tx_ring=yes
  19595. else
  19596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19597. $as_echo "no" >&6; }
  19598. fi
  19599. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19600. for ac_header in net/bpf.h
  19601. do :
  19602. ac_fn_c_check_header_mongrel "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
  19603. if test "x$ac_cv_header_net_bpf_h" = xyes; then :
  19604. cat >>confdefs.h <<_ACEOF
  19605. #define HAVE_NET_BPF_H 1
  19606. _ACEOF
  19607. have_bpf=yes
  19608. else
  19609. have_bpf=no
  19610. fi
  19611. done
  19612. if test $have_bpf = yes ; then
  19613. $as_echo "#define HAVE_BPF 1" >>confdefs.h
  19614. fi
  19615. founddnet=no
  19616. have_libdnet=no
  19617. libdnet_version=
  19618. enable_fragroute=no
  19619. trydnetdir=/usr/local
  19620. if test $have_cygwin = no ; then
  19621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdnet" >&5
  19622. $as_echo_n "checking for libdnet... " >&6; }
  19623. # Check whether --with-libdnet was given.
  19624. if test "${with_libdnet+set}" = set; then :
  19625. withval=$with_libdnet; trydnetdir=$withval
  19626. fi
  19627. if test $trydnetdir != no; then
  19628. case "$build_os" in
  19629. linux*)
  19630. for testdir in $trydnetdir /usr/local /opt/local /usr ; do
  19631. if test -x ${testdir}/bin/dumbnet-config -a $founddnet = no ; then
  19632. LDNETINC="$($testdir/bin/dumbnet-config --cflags)"
  19633. LDNETLIB="$($testdir/bin/dumbnet-config --libs)"
  19634. libdnet_version="$($testdir/bin/dumbnet-config --version) (libdumbnet)"
  19635. founddnet=$testdir
  19636. fi
  19637. done
  19638. ;;
  19639. esac
  19640. if test $founddnet = no ; then
  19641. for testdir in $trydnetdir /usr/local /opt/local $MACOSX_SDK_PATH/usr /usr ; do
  19642. if test -x ${testdir}/bin/dnet-config -a $founddnet = no ; then
  19643. LDNETINC="$($testdir/bin/dnet-config --cflags)"
  19644. LDNETLIB="$($testdir/bin/dnet-config --libs)"
  19645. libdnet_version="$($testdir/bin/dnet-config --version)"
  19646. founddnet=$testdir
  19647. fi
  19648. done
  19649. fi
  19650. fi
  19651. if test $founddnet = no ; then
  19652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19653. $as_echo "no" >&6; }
  19654. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdnet not found, disabling fragroute feature" >&5
  19655. $as_echo "$as_me: WARNING: libdnet not found, disabling fragroute feature" >&2;}
  19656. else
  19657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $founddnet" >&5
  19658. $as_echo "$founddnet" >&6; }
  19659. enable_fragroute=yes
  19660. have_libdnet=yes
  19661. $as_echo "#define HAVE_LIBDNET 1" >>confdefs.h
  19662. old_cflags=$CFLAGS
  19663. CFLAGS=$LDNETINC
  19664. for ac_header in dumbnet.h dnet.h
  19665. do :
  19666. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19667. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  19668. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  19669. cat >>confdefs.h <<_ACEOF
  19670. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19671. _ACEOF
  19672. fi
  19673. done
  19674. CFLAGS=$old_cflags
  19675. fi
  19676. else
  19677. { $as_echo "$as_me:${as_lineno-$LINENO}: Skipping libdnet check under Cygwin for compatibility reasons" >&5
  19678. $as_echo "$as_me: Skipping libdnet check under Cygwin for compatibility reasons" >&6;}
  19679. fi
  19680. cat >>confdefs.h <<_ACEOF
  19681. #define LIBDNET_VERSION "$libdnet_version"
  19682. _ACEOF
  19683. if test x$founddnet != xno; then
  19684. COMPILE_FRAGROUTE_TRUE=
  19685. COMPILE_FRAGROUTE_FALSE='#'
  19686. else
  19687. COMPILE_FRAGROUTE_TRUE='#'
  19688. COMPILE_FRAGROUTE_FALSE=
  19689. fi
  19690. if test x$founddnet != xno ; then
  19691. $as_echo "#define ENABLE_FRAGROUTE 1" >>confdefs.h
  19692. fi
  19693. if test $have_bpf = no -a $have_pcap_inject = no -a $have_pcap_sendpacket = no \
  19694. -a $have_libdnet = no -a $have_pf = no ; then
  19695. as_fn_error $? "Unable to find a supported method to send packets. Please upgrade your libpcap or enable libdnet" "$LINENO" 5
  19696. fi
  19697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLT_LINUX_SLL in libpcap" >&5
  19698. $as_echo_n "checking for DLT_LINUX_SLL in libpcap... " >&6; }
  19699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19700. /* end confdefs.h. */
  19701. #include "$LPCAPINC"
  19702. int
  19703. main ()
  19704. {
  19705. int foo;
  19706. foo = DLT_LINUX_SLL
  19707. ;
  19708. return 0;
  19709. }
  19710. _ACEOF
  19711. if ac_fn_c_try_compile "$LINENO"; then :
  19712. $as_echo "#define HAVE_DLT_LINUX_SLL 1" >>confdefs.h
  19713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19714. $as_echo "yes" >&6; }
  19715. else
  19716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19717. $as_echo "no" >&6; }
  19718. fi
  19719. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLT_C_HDLC in libpcap" >&5
  19721. $as_echo_n "checking for DLT_C_HDLC in libpcap... " >&6; }
  19722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19723. /* end confdefs.h. */
  19724. #include "$LPCAPINC"
  19725. int
  19726. main ()
  19727. {
  19728. int foo;
  19729. foo = DLT_C_HDLC
  19730. ;
  19731. return 0;
  19732. }
  19733. _ACEOF
  19734. if ac_fn_c_try_compile "$LINENO"; then :
  19735. $as_echo "#define HAVE_DLT_C_HDLC 1" >>confdefs.h
  19736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19737. $as_echo "yes" >&6; }
  19738. else
  19739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19740. $as_echo "no" >&6; }
  19741. fi
  19742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19743. PCAP_BPF_H_FILE="$LPCAPINCDIR/pcap-bpf.h"
  19744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PCAP_BPF_H_FILE" >&5
  19745. $as_echo_n "checking for $PCAP_BPF_H_FILE... " >&6; }
  19746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19747. /* end confdefs.h. */
  19748. #include <sys/types.h>
  19749. #include <sys/time.h>
  19750. #include <stdint.h>
  19751. #include "$PCAP_BPF_H_FILE"
  19752. int
  19753. main ()
  19754. {
  19755. int foo;
  19756. foo = BPF_MAJOR_VERSION;
  19757. ;
  19758. return 0;
  19759. }
  19760. _ACEOF
  19761. if ac_fn_c_try_compile "$LINENO"; then :
  19762. $as_echo "#define INCLUDE_PCAP_BPF_HEADER 1" >>confdefs.h
  19763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19764. $as_echo "yes" >&6; }
  19765. else
  19766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19767. $as_echo "no" >&6; }
  19768. fi
  19769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19770. foundbpfheader=no
  19771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcap bpf header" >&5
  19772. $as_echo_n "checking for libpcap bpf header... " >&6; }
  19773. for testfile in $LPCAPINCDIR/pcap/bpf.h $LPCAPINCDIR/pcap-bpf.h ; do
  19774. if test -f "${testfile}" -a $foundbpfheader = no ; then
  19775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19776. /* end confdefs.h. */
  19777. #include <sys/types.h>
  19778. #include <sys/time.h>
  19779. #include <stdint.h>
  19780. #include "$testfile"
  19781. int
  19782. main ()
  19783. {
  19784. int foo;
  19785. foo = BPF_MAJOR_VERSION;
  19786. ;
  19787. return 0;
  19788. }
  19789. _ACEOF
  19790. if ac_fn_c_try_compile "$LINENO"; then :
  19791. foundbpfheader=yes
  19792. PCAP_BPF_H_FILE=$testfile
  19793. $as_echo "#define INCLUDE_PCAP_BPF_HEADER 1" >>confdefs.h
  19794. fi
  19795. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19796. fi
  19797. done
  19798. if test $foundbpfheader != no; then
  19799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $testfile" >&5
  19800. $as_echo "$testfile" >&6; }
  19801. else
  19802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19803. $as_echo "no" >&6; }
  19804. fi
  19805. have_pcap_netmap=no
  19806. if test $foundpcap != no ; then
  19807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap libpcap" >&5
  19808. $as_echo_n "checking for netmap libpcap... " >&6; }
  19809. PCAP_NETMAP_C_FILE="$LPCAPINCDIR/pcap-netmap.c"
  19810. if test -f "${PCAP_NETMAP_C_FILE}" ; then
  19811. $as_echo "#define HAVE_LIBPCAP_NETMAP 1" >>confdefs.h
  19812. have_pcap_netmap=yes
  19813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19814. $as_echo "yes" >&6; }
  19815. else
  19816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19817. $as_echo "no" >&6; }
  19818. fi
  19819. fi
  19820. LIBS="$OLDLIBS"
  19821. CFLAGS="$OLDCFLAGS"
  19822. pcapnav_ver=no
  19823. pcncfg=no
  19824. # Check whether --with-pcapnav-config was given.
  19825. if test "${with_pcapnav_config+set}" = set; then :
  19826. withval=$with_pcapnav_config; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcapnav-config" >&5
  19827. $as_echo_n "checking for pcapnav-config... " >&6; }
  19828. if test -x $withval ; then
  19829. pcncfg=$withval
  19830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcncfg" >&5
  19831. $as_echo "$pcncfg" >&6; }
  19832. elif test x$withval = xno ; then
  19833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19834. $as_echo "no" >&6; }
  19835. else
  19836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Can't find pcapnav-config: disabling offset jump feature" >&5
  19837. $as_echo "Can't find pcapnav-config: disabling offset jump feature" >&6; }
  19838. fi
  19839. else
  19840. # Extract the first word of "pcapnav-config", so it can be a program name with args.
  19841. set dummy pcapnav-config; ac_word=$2
  19842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19843. $as_echo_n "checking for $ac_word... " >&6; }
  19844. if ${ac_cv_path_pcncfg+:} false; then :
  19845. $as_echo_n "(cached) " >&6
  19846. else
  19847. case $pcncfg in
  19848. [\\/]* | ?:[\\/]*)
  19849. ac_cv_path_pcncfg="$pcncfg" # Let the user override the test with a path.
  19850. ;;
  19851. *)
  19852. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19853. for as_dir in $PATH
  19854. do
  19855. IFS=$as_save_IFS
  19856. test -z "$as_dir" && as_dir=.
  19857. for ac_exec_ext in '' $ac_executable_extensions; do
  19858. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19859. ac_cv_path_pcncfg="$as_dir/$ac_word$ac_exec_ext"
  19860. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19861. break 2
  19862. fi
  19863. done
  19864. done
  19865. IFS=$as_save_IFS
  19866. test -z "$ac_cv_path_pcncfg" && ac_cv_path_pcncfg="no "
  19867. ;;
  19868. esac
  19869. fi
  19870. pcncfg=$ac_cv_path_pcncfg
  19871. if test -n "$pcncfg"; then
  19872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcncfg" >&5
  19873. $as_echo "$pcncfg" >&6; }
  19874. else
  19875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19876. $as_echo "no" >&6; }
  19877. fi
  19878. fi
  19879. if test $pcncfg != no ; then
  19880. LNAVLIB=$($pcncfg --libs)
  19881. LNAV_CFLAGS=$($pcncfg --cflags)
  19882. PCAPNAV_VERSION=$($pcncfg --version)
  19883. cat >>confdefs.h <<_ACEOF
  19884. #define PCAPNAV_VERSION "$PCAPNAV_VERSION"
  19885. _ACEOF
  19886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcapnav version" >&5
  19887. $as_echo_n "checking for libpcapnav version... " >&6; }
  19888. if test "$cross_compiling" = yes; then :
  19889. libpcapnav_ver=no
  19890. else
  19891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19892. /* end confdefs.h. */
  19893. #include <string.h>
  19894. #define PCAPNAV_TEST "0.4"
  19895. /*
  19896. * simple proggy to test the version of libpcapnav
  19897. * returns zero if version >= 0.4
  19898. * or one otherwise
  19899. */
  19900. int
  19901. main (int argc, char *argv[])
  19902. {
  19903. if (strncmp(PCAPNAV_VERSION, PCAPNAV_TEST, 3) >= 0)
  19904. return 0;
  19905. return 1;
  19906. }
  19907. _ACEOF
  19908. if ac_fn_c_try_run "$LINENO"; then :
  19909. libpcapnav_ver=yes
  19910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.4" >&5
  19911. $as_echo ">= 0.4" >&6; }
  19912. else
  19913. libpcapnav_ver=no
  19914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: < 0.4" >&5
  19915. $as_echo "< 0.4" >&6; }
  19916. fi
  19917. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19918. conftest.$ac_objext conftest.beam conftest.$ac_ext
  19919. fi
  19920. if test x$libpcapnav_ver = xno ; then
  19921. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libpcapnav versions < 0.4 are not supported.
  19922. Please upgrade to version 0.4 or better.
  19923. Disabling offset jump feature." >&5
  19924. $as_echo "$as_me: WARNING: Libpcapnav versions < 0.4 are not supported.
  19925. Please upgrade to version 0.4 or better.
  19926. Disabling offset jump feature." >&2;}
  19927. else
  19928. $as_echo "#define HAVE_PCAPNAV 1" >>confdefs.h
  19929. fi
  19930. fi # checking pcapnav version
  19931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for requires strict byte alignment" >&5
  19932. $as_echo_n "checking for requires strict byte alignment... " >&6; }
  19933. if ${unaligned_cv_fail+:} false; then :
  19934. $as_echo_n "(cached) " >&6
  19935. else
  19936. case "$host_os" in
  19937. darwin*)
  19938. # macOS M1 test fails due to lack of fork() so just hard code it
  19939. unaligned_cv_fail=no
  19940. ;;
  19941. *)
  19942. case "$host_cpu" in
  19943. # XXX: should also check that they don't do weird things
  19944. alpha*|arm*|hp*|mips*|sparc*|ia64)
  19945. unaligned_cv_fail=yes
  19946. ;;
  19947. *)
  19948. cat >conftest.c <<EOF
  19949. #include <sys/types.h>
  19950. #include <sys/wait.h>
  19951. #include <stdio.h>
  19952. #include <unistd.h>
  19953. unsigned char a[5] = { 1, 2, 3, 4, 5 };
  19954. int main() {
  19955. unsigned int i;
  19956. pid_t pid;
  19957. int status;
  19958. /* avoid "core dumped" message */
  19959. pid = fork();
  19960. if (pid < 0)
  19961. return 2;
  19962. if (pid > 0) {
  19963. /* parent */
  19964. pid = waitpid(pid, &status, 0);
  19965. if (pid < 0)
  19966. return 3;
  19967. return !WIFEXITED(status);
  19968. }
  19969. /* child */
  19970. i = *(unsigned int *)&a[1];
  19971. printf("%d\n", i);
  19972. return 0;
  19973. }
  19974. EOF
  19975. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
  19976. conftest.c $LIBS >/dev/null 2>&1
  19977. if test ! -x conftest ; then
  19978. unaligned_cv_fail=yes
  19979. else
  19980. ./conftest >conftest.out
  19981. if test ! -s conftest.out ; then
  19982. unaligned_cv_fail=yes
  19983. else
  19984. unaligned_cv_fail=no
  19985. fi
  19986. fi
  19987. rm -f conftest* core core.conftest
  19988. ;;
  19989. esac
  19990. ;;
  19991. esac
  19992. fi
  19993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unaligned_cv_fail" >&5
  19994. $as_echo "$unaligned_cv_fail" >&6; }
  19995. if test $unaligned_cv_fail = yes ; then
  19996. $as_echo "#define FORCE_ALIGN 1" >>confdefs.h
  19997. fi
  19998. tcpdump_path=no
  19999. # Check whether --with-tcpdump was given.
  20000. if test "${with_tcpdump+set}" = set; then :
  20001. withval=$with_tcpdump; if test -x $withval ; then
  20002. tcpdump_path=$withval
  20003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using tcpdump in $tcpdump_path" >&5
  20004. $as_echo "Using tcpdump in $tcpdump_path" >&6; }
  20005. else
  20006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error: $withval does not exist or is not executable" >&5
  20007. $as_echo "Error: $withval does not exist or is not executable" >&6; }
  20008. fi
  20009. else
  20010. # Extract the first word of "tcpdump", so it can be a program name with args.
  20011. set dummy tcpdump; ac_word=$2
  20012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20013. $as_echo_n "checking for $ac_word... " >&6; }
  20014. if ${ac_cv_path_tcpdump_path+:} false; then :
  20015. $as_echo_n "(cached) " >&6
  20016. else
  20017. case $tcpdump_path in
  20018. [\\/]* | ?:[\\/]*)
  20019. ac_cv_path_tcpdump_path="$tcpdump_path" # Let the user override the test with a path.
  20020. ;;
  20021. *)
  20022. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20023. as_dummy="$PATH:/usr/sbin:/sbin:/usr/local/sbin"
  20024. for as_dir in $as_dummy
  20025. do
  20026. IFS=$as_save_IFS
  20027. test -z "$as_dir" && as_dir=.
  20028. for ac_exec_ext in '' $ac_executable_extensions; do
  20029. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20030. ac_cv_path_tcpdump_path="$as_dir/$ac_word$ac_exec_ext"
  20031. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20032. break 2
  20033. fi
  20034. done
  20035. done
  20036. IFS=$as_save_IFS
  20037. test -z "$ac_cv_path_tcpdump_path" && ac_cv_path_tcpdump_path=""no""
  20038. ;;
  20039. esac
  20040. fi
  20041. tcpdump_path=$ac_cv_path_tcpdump_path
  20042. if test -n "$tcpdump_path"; then
  20043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_path" >&5
  20044. $as_echo "$tcpdump_path" >&6; }
  20045. else
  20046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20047. $as_echo "no" >&6; }
  20048. fi
  20049. fi
  20050. if test "$tcpdump_path" = "no"; then
  20051. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  20052. Disabling --verbose" >&5
  20053. $as_echo "$as_me: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  20054. Disabling --verbose" >&2;}
  20055. else
  20056. $as_echo "#define HAVE_TCPDUMP 1" >>confdefs.h
  20057. cat >>confdefs.h <<_ACEOF
  20058. #define TCPDUMP_BINARY "$tcpdump_path"
  20059. _ACEOF
  20060. fi
  20061. if test "$tcpdump_path" != "no" -a x$have_pcap_dump_fopen = xyes; then
  20062. ENABLE_TCPDUMP_TRUE=
  20063. ENABLE_TCPDUMP_FALSE='#'
  20064. else
  20065. ENABLE_TCPDUMP_TRUE='#'
  20066. ENABLE_TCPDUMP_FALSE=
  20067. fi
  20068. if test x$tcpdump_path != xno -a x$have_pcap_dump_fopen = xyes ; then
  20069. $as_echo "#define ENABLE_VERBOSE 1" >>confdefs.h
  20070. else
  20071. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of libpcap does not support --verbose" >&5
  20072. $as_echo "$as_me: WARNING: Your version of libpcap does not support --verbose" >&2;}
  20073. fi
  20074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'make test' profile" >&5
  20075. $as_echo_n "checking for 'make test' profile... " >&6; }
  20076. if test "$host" = "$build" ; then
  20077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20078. $as_echo "yes" >&6; }
  20079. else
  20080. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to do tests when cross-compiling" >&5
  20081. $as_echo "$as_me: WARNING: Unable to do tests when cross-compiling" >&2;}
  20082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unable to do tests when cross-compiling" >&5
  20083. $as_echo "Unable to do tests when cross-compiling" >&6; }
  20084. fi
  20085. # Check whether --with-testnic was given.
  20086. if test "${with_testnic+set}" = set; then :
  20087. withval=$with_testnic; nic1=$withval
  20088. nic2=$withval
  20089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using --with-testnic=$withval" >&5
  20090. $as_echo "Using --with-testnic=$withval" >&6; }
  20091. else
  20092. case $host in
  20093. *-*-linux*)
  20094. nic1=eth0
  20095. nic2=eth0
  20096. ;;
  20097. *-*-solaris*)
  20098. nic1=hme0
  20099. nic2=hme0
  20100. ;;
  20101. *-*-sunos*)
  20102. nic1=hme0
  20103. nic2=hme0
  20104. ;;
  20105. *-apple-darwin*)
  20106. nic1=en0
  20107. nic2=en0
  20108. ;;
  20109. *-*-openbsd*)
  20110. nic1=xl0
  20111. nic2=xl0
  20112. ;;
  20113. *-*-freebsd*)
  20114. nic1=em0
  20115. nic2=em0
  20116. ;;
  20117. *-*-cygwin)
  20118. nic1=%0
  20119. nic2=%0
  20120. ;;
  20121. *)
  20122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host is unknown! Using first non-loopback interface" >&5
  20123. $as_echo "$host is unknown! Using first non-loopback interface" >&6; }
  20124. nic1=%0
  20125. nic2=%0
  20126. ;;
  20127. esac
  20128. fi
  20129. disable_pcap_findalldevs=no
  20130. osx_frameworks=no
  20131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OS version" >&5
  20132. $as_echo_n "checking for OS version... " >&6; }
  20133. case $host in
  20134. *-*-linux*)
  20135. $as_echo "#define HAVE_LINUX 1" >>confdefs.h
  20136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
  20137. $as_echo "Linux" >&6; }
  20138. ;;
  20139. *-*-solaris*)
  20140. $as_echo "#define HAVE_SOLARIS 1" >>confdefs.h
  20141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
  20142. $as_echo "Solaris" >&6; }
  20143. ;;
  20144. *-*-sunos*)
  20145. $as_echo "#define HAVE_SUNOS 1" >>confdefs.h
  20146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunOS" >&5
  20147. $as_echo "SunOS" >&6; }
  20148. ;;
  20149. *-apple-darwin*)
  20150. if test x$libpcap_version_096 = xno ; then
  20151. disable_pcap_findalldevs=yes
  20152. fi
  20153. osx_frameworks=yes
  20154. $as_echo "#define HAVE_DARWIN 1" >>confdefs.h
  20155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Apple macOS" >&5
  20156. $as_echo "Apple macOS" >&6; }
  20157. ;;
  20158. *-*-openbsd*)
  20159. $as_echo "#define HAVE_OPENBSD 1" >>confdefs.h
  20160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenBSD" >&5
  20161. $as_echo "OpenBSD" >&6; }
  20162. ;;
  20163. *-*-freebsd*)
  20164. $as_echo "#define HAVE_FREEBSD 1" >>confdefs.h
  20165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: FreeBSD" >&5
  20166. $as_echo "FreeBSD" >&6; }
  20167. ;;
  20168. *-*-cygwin)
  20169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Win32/Cygwin" >&5
  20170. $as_echo "Win32/Cygwin" >&6; }
  20171. $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
  20172. ;;
  20173. *)
  20174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host is unknown!" >&5
  20175. $as_echo "$host is unknown!" >&6; }
  20176. ;;
  20177. esac
  20178. if test "$osx_frameworks" = "yes"; then
  20179. ENABLE_OSX_FRAMEWORKS_TRUE=
  20180. ENABLE_OSX_FRAMEWORKS_FALSE='#'
  20181. else
  20182. ENABLE_OSX_FRAMEWORKS_TRUE='#'
  20183. ENABLE_OSX_FRAMEWORKS_FALSE=
  20184. fi
  20185. # Check whether --with-testnic2 was given.
  20186. if test "${with_testnic2+set}" = set; then :
  20187. withval=$with_testnic2; nic2=$withval
  20188. fi
  20189. { $as_echo "$as_me:${as_lineno-$LINENO}: Using $nic1 for 1st test network interface card" >&5
  20190. $as_echo "$as_me: Using $nic1 for 1st test network interface card" >&6;}
  20191. { $as_echo "$as_me:${as_lineno-$LINENO}: Using $nic2 for 2nd test network interface card" >&5
  20192. $as_echo "$as_me: Using $nic2 for 2nd test network interface card" >&6;}
  20193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if it's ok to use pcap_findalldevs()" >&5
  20194. $as_echo_n "checking if it's ok to use pcap_findalldevs()... " >&6; }
  20195. if test x$disable_pcap_findalldevs = xno ; then
  20196. $as_echo "#define ENABLE_PCAP_FINDALLDEVS 1" >>confdefs.h
  20197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20198. $as_echo "yes" >&6; }
  20199. else
  20200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20201. $as_echo "no" >&6; }
  20202. fi
  20203. ac_header_dirent=no
  20204. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  20205. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  20206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  20207. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  20208. if eval \${$as_ac_Header+:} false; then :
  20209. $as_echo_n "(cached) " >&6
  20210. else
  20211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20212. /* end confdefs.h. */
  20213. #include <sys/types.h>
  20214. #include <$ac_hdr>
  20215. int
  20216. main ()
  20217. {
  20218. if ((DIR *) 0)
  20219. return 0;
  20220. ;
  20221. return 0;
  20222. }
  20223. _ACEOF
  20224. if ac_fn_c_try_compile "$LINENO"; then :
  20225. eval "$as_ac_Header=yes"
  20226. else
  20227. eval "$as_ac_Header=no"
  20228. fi
  20229. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20230. fi
  20231. eval ac_res=\$$as_ac_Header
  20232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20233. $as_echo "$ac_res" >&6; }
  20234. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20235. cat >>confdefs.h <<_ACEOF
  20236. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  20237. _ACEOF
  20238. ac_header_dirent=$ac_hdr; break
  20239. fi
  20240. done
  20241. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  20242. if test $ac_header_dirent = dirent.h; then
  20243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  20244. $as_echo_n "checking for library containing opendir... " >&6; }
  20245. if ${ac_cv_search_opendir+:} false; then :
  20246. $as_echo_n "(cached) " >&6
  20247. else
  20248. ac_func_search_save_LIBS=$LIBS
  20249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20250. /* end confdefs.h. */
  20251. /* Override any GCC internal prototype to avoid an error.
  20252. Use char because int might match the return type of a GCC
  20253. builtin and then its argument prototype would still apply. */
  20254. #ifdef __cplusplus
  20255. extern "C"
  20256. #endif
  20257. char opendir ();
  20258. int
  20259. main ()
  20260. {
  20261. return opendir ();
  20262. ;
  20263. return 0;
  20264. }
  20265. _ACEOF
  20266. for ac_lib in '' dir; do
  20267. if test -z "$ac_lib"; then
  20268. ac_res="none required"
  20269. else
  20270. ac_res=-l$ac_lib
  20271. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  20272. fi
  20273. if ac_fn_c_try_link "$LINENO"; then :
  20274. ac_cv_search_opendir=$ac_res
  20275. fi
  20276. rm -f core conftest.err conftest.$ac_objext \
  20277. conftest$ac_exeext
  20278. if ${ac_cv_search_opendir+:} false; then :
  20279. break
  20280. fi
  20281. done
  20282. if ${ac_cv_search_opendir+:} false; then :
  20283. else
  20284. ac_cv_search_opendir=no
  20285. fi
  20286. rm conftest.$ac_ext
  20287. LIBS=$ac_func_search_save_LIBS
  20288. fi
  20289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  20290. $as_echo "$ac_cv_search_opendir" >&6; }
  20291. ac_res=$ac_cv_search_opendir
  20292. if test "$ac_res" != no; then :
  20293. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  20294. fi
  20295. else
  20296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  20297. $as_echo_n "checking for library containing opendir... " >&6; }
  20298. if ${ac_cv_search_opendir+:} false; then :
  20299. $as_echo_n "(cached) " >&6
  20300. else
  20301. ac_func_search_save_LIBS=$LIBS
  20302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20303. /* end confdefs.h. */
  20304. /* Override any GCC internal prototype to avoid an error.
  20305. Use char because int might match the return type of a GCC
  20306. builtin and then its argument prototype would still apply. */
  20307. #ifdef __cplusplus
  20308. extern "C"
  20309. #endif
  20310. char opendir ();
  20311. int
  20312. main ()
  20313. {
  20314. return opendir ();
  20315. ;
  20316. return 0;
  20317. }
  20318. _ACEOF
  20319. for ac_lib in '' x; do
  20320. if test -z "$ac_lib"; then
  20321. ac_res="none required"
  20322. else
  20323. ac_res=-l$ac_lib
  20324. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  20325. fi
  20326. if ac_fn_c_try_link "$LINENO"; then :
  20327. ac_cv_search_opendir=$ac_res
  20328. fi
  20329. rm -f core conftest.err conftest.$ac_objext \
  20330. conftest$ac_exeext
  20331. if ${ac_cv_search_opendir+:} false; then :
  20332. break
  20333. fi
  20334. done
  20335. if ${ac_cv_search_opendir+:} false; then :
  20336. else
  20337. ac_cv_search_opendir=no
  20338. fi
  20339. rm conftest.$ac_ext
  20340. LIBS=$ac_func_search_save_LIBS
  20341. fi
  20342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  20343. $as_echo "$ac_cv_search_opendir" >&6; }
  20344. ac_res=$ac_cv_search_opendir
  20345. if test "$ac_res" != no; then :
  20346. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  20347. fi
  20348. fi
  20349. # =================
  20350. # AC_CHECK_HEADERS
  20351. # =================
  20352. for ac_header in \
  20353. sys/mman.h sys/param.h sys/poll.h sys/procset.h \
  20354. sys/select.h sys/socket.h sys/stropts.h sys/time.h \
  20355. sys/un.h sys/wait.h dlfcn.h errno.h \
  20356. fcntl.h libgen.h libintl.h memory.h \
  20357. netinet/in.h setjmp.h stdbool.h sysexits.h \
  20358. unistd.h utime.h
  20359. do :
  20360. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20361. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20362. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20363. cat >>confdefs.h <<_ACEOF
  20364. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20365. _ACEOF
  20366. fi
  20367. done
  20368. for ac_header in stdarg.h varargs.h
  20369. do :
  20370. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20371. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20372. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20373. cat >>confdefs.h <<_ACEOF
  20374. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20375. _ACEOF
  20376. lo_have_arg_hdr=true;break
  20377. else
  20378. lo_have_arg_hdr=false
  20379. fi
  20380. done
  20381. for ac_header in string.h strings.h
  20382. do :
  20383. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20384. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20385. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20386. cat >>confdefs.h <<_ACEOF
  20387. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20388. _ACEOF
  20389. lo_have_str_hdr=true;break
  20390. else
  20391. lo_have_str_hdr=false
  20392. fi
  20393. done
  20394. for ac_header in limits.h sys/limits.h values.h
  20395. do :
  20396. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20397. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20398. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20399. cat >>confdefs.h <<_ACEOF
  20400. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20401. _ACEOF
  20402. lo_have_lim_hdr=true;break
  20403. else
  20404. lo_have_lim_hdr=false
  20405. fi
  20406. done
  20407. for ac_header in inttypes.h stdint.h
  20408. do :
  20409. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20410. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20411. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20412. cat >>confdefs.h <<_ACEOF
  20413. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20414. _ACEOF
  20415. lo_have_typ_hdr=true;break
  20416. else
  20417. lo_have_typ_hdr=false
  20418. fi
  20419. done
  20420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
  20421. $as_echo_n "checking for working stdnoreturn.h... " >&6; }
  20422. if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
  20423. $as_echo_n "(cached) " >&6
  20424. else
  20425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20426. /* end confdefs.h. */
  20427. #include <stdlib.h>
  20428. #include <stdnoreturn.h>
  20429. /* Do not check for 'noreturn' after the return type.
  20430. C11 allows it, but it's rarely done that way
  20431. and circa-2012 bleeding-edge GCC rejects it when given
  20432. -Werror=old-style-declaration. */
  20433. noreturn void foo1 (void) { exit (0); }
  20434. _Noreturn void foo2 (void) { exit (0); }
  20435. int testit (int argc, char **argv) {
  20436. if (argc & 1)
  20437. return 0;
  20438. (argv[0][0] ? foo1 : foo2) ();
  20439. }
  20440. int
  20441. main ()
  20442. {
  20443. ;
  20444. return 0;
  20445. }
  20446. _ACEOF
  20447. if ac_fn_c_try_compile "$LINENO"; then :
  20448. gl_cv_header_working_stdnoreturn_h=yes
  20449. else
  20450. gl_cv_header_working_stdnoreturn_h=no
  20451. fi
  20452. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20453. fi
  20454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
  20455. $as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }
  20456. if test $gl_cv_header_working_stdnoreturn_h = yes; then
  20457. STDNORETURN_H=''
  20458. else
  20459. STDNORETURN_H='stdnoreturn.h'
  20460. fi
  20461. if test -n "$STDNORETURN_H"; then
  20462. GL_GENERATE_STDNORETURN_H_TRUE=
  20463. GL_GENERATE_STDNORETURN_H_FALSE='#'
  20464. else
  20465. GL_GENERATE_STDNORETURN_H_TRUE='#'
  20466. GL_GENERATE_STDNORETURN_H_FALSE=
  20467. fi
  20468. # ----------------------------------------------------------------------
  20469. # check for various programs used during the build.
  20470. # On OS/X, "wchar.h" needs "runetype.h" to work properly.
  20471. # ----------------------------------------------------------------------
  20472. for ac_header in runetype.h wchar.h
  20473. do :
  20474. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20475. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  20476. $ac_includes_default
  20477. #if HAVE_RUNETYPE_H
  20478. # include <runetype.h>
  20479. #endif
  20480. "
  20481. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20482. cat >>confdefs.h <<_ACEOF
  20483. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20484. _ACEOF
  20485. fi
  20486. done
  20487. # Check whether --enable-nls was given.
  20488. if test "${enable_nls+set}" = set; then :
  20489. enableval=$enable_nls;
  20490. fi
  20491. if test "x$enable_nls" != "xno" && \
  20492. test "X${ac_cv_header_libintl_h}" = Xyes; then :
  20493. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  20494. fi
  20495. # --------------------------------------------
  20496. # Verify certain entries from AC_CHECK_HEADERS
  20497. # --------------------------------------------
  20498. ${lo_have_arg_hdr} || \
  20499. as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
  20500. ${lo_have_str_hdr} || \
  20501. as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
  20502. ${lo_have_lim_hdr} || \
  20503. as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
  20504. ${lo_have_typ_hdr} || \
  20505. as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
  20506. for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
  20507. do eval as_ac_var=\${ac_cv_header_${f}_h}
  20508. test "X${as_ac_var}" = Xyes || {
  20509. as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
  20510. }
  20511. done
  20512. test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
  20513. echo '#include <stdint.h>' > inttypes.h
  20514. # ----------------------------------------------------------------------
  20515. # Checks for typedefs
  20516. # ----------------------------------------------------------------------
  20517. ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
  20518. if test "x$ac_cv_type_wchar_t" = xyes; then :
  20519. cat >>confdefs.h <<_ACEOF
  20520. #define HAVE_WCHAR_T 1
  20521. _ACEOF
  20522. fi
  20523. ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
  20524. $ac_includes_default
  20525. #if HAVE_RUNETYPE_H
  20526. # include <runetype.h>
  20527. #endif
  20528. #if HAVE_WCHAR_H
  20529. # include <wchar.h>
  20530. #endif
  20531. "
  20532. if test "x$ac_cv_type_wint_t" = xyes; then :
  20533. cat >>confdefs.h <<_ACEOF
  20534. #define HAVE_WINT_T 1
  20535. _ACEOF
  20536. fi
  20537. ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
  20538. if test "x$ac_cv_type_int8_t" = xyes; then :
  20539. cat >>confdefs.h <<_ACEOF
  20540. #define HAVE_INT8_T 1
  20541. _ACEOF
  20542. fi
  20543. ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
  20544. if test "x$ac_cv_type_uint8_t" = xyes; then :
  20545. cat >>confdefs.h <<_ACEOF
  20546. #define HAVE_UINT8_T 1
  20547. _ACEOF
  20548. fi
  20549. ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
  20550. if test "x$ac_cv_type_int16_t" = xyes; then :
  20551. cat >>confdefs.h <<_ACEOF
  20552. #define HAVE_INT16_T 1
  20553. _ACEOF
  20554. fi
  20555. ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
  20556. if test "x$ac_cv_type_uint16_t" = xyes; then :
  20557. cat >>confdefs.h <<_ACEOF
  20558. #define HAVE_UINT16_T 1
  20559. _ACEOF
  20560. fi
  20561. ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
  20562. if test "x$ac_cv_type_int32_t" = xyes; then :
  20563. cat >>confdefs.h <<_ACEOF
  20564. #define HAVE_INT32_T 1
  20565. _ACEOF
  20566. fi
  20567. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
  20568. if test "x$ac_cv_type_uint32_t" = xyes; then :
  20569. cat >>confdefs.h <<_ACEOF
  20570. #define HAVE_UINT32_T 1
  20571. _ACEOF
  20572. fi
  20573. ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
  20574. if test "x$ac_cv_type_intptr_t" = xyes; then :
  20575. cat >>confdefs.h <<_ACEOF
  20576. #define HAVE_INTPTR_T 1
  20577. _ACEOF
  20578. fi
  20579. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  20580. if test "x$ac_cv_type_uintptr_t" = xyes; then :
  20581. cat >>confdefs.h <<_ACEOF
  20582. #define HAVE_UINTPTR_T 1
  20583. _ACEOF
  20584. fi
  20585. ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
  20586. if test "x$ac_cv_type_uint_t" = xyes; then :
  20587. cat >>confdefs.h <<_ACEOF
  20588. #define HAVE_UINT_T 1
  20589. _ACEOF
  20590. fi
  20591. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  20592. if test "x$ac_cv_type_pid_t" = xyes; then :
  20593. cat >>confdefs.h <<_ACEOF
  20594. #define HAVE_PID_T 1
  20595. _ACEOF
  20596. fi
  20597. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  20598. if test "x$ac_cv_type_size_t" = xyes; then :
  20599. cat >>confdefs.h <<_ACEOF
  20600. #define HAVE_SIZE_T 1
  20601. _ACEOF
  20602. fi
  20603. ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  20604. if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
  20605. cat >>confdefs.h <<_ACEOF
  20606. #define HAVE_PTRDIFF_T 1
  20607. _ACEOF
  20608. fi
  20609. # The cast to long int works around a bug in the HP C Compiler
  20610. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  20611. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  20612. # This bug is HP SR number 8606223364.
  20613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
  20614. $as_echo_n "checking size of char *... " >&6; }
  20615. if ${ac_cv_sizeof_char_p+:} false; then :
  20616. $as_echo_n "(cached) " >&6
  20617. else
  20618. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
  20619. else
  20620. if test "$ac_cv_type_char_p" = yes; then
  20621. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20622. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20623. as_fn_error 77 "cannot compute sizeof (char *)
  20624. See \`config.log' for more details" "$LINENO" 5; }
  20625. else
  20626. ac_cv_sizeof_char_p=0
  20627. fi
  20628. fi
  20629. fi
  20630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
  20631. $as_echo "$ac_cv_sizeof_char_p" >&6; }
  20632. cat >>confdefs.h <<_ACEOF
  20633. #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
  20634. _ACEOF
  20635. # The cast to long int works around a bug in the HP C Compiler
  20636. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  20637. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  20638. # This bug is HP SR number 8606223364.
  20639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  20640. $as_echo_n "checking size of int... " >&6; }
  20641. if ${ac_cv_sizeof_int+:} false; then :
  20642. $as_echo_n "(cached) " >&6
  20643. else
  20644. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  20645. else
  20646. if test "$ac_cv_type_int" = yes; then
  20647. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20648. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20649. as_fn_error 77 "cannot compute sizeof (int)
  20650. See \`config.log' for more details" "$LINENO" 5; }
  20651. else
  20652. ac_cv_sizeof_int=0
  20653. fi
  20654. fi
  20655. fi
  20656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  20657. $as_echo "$ac_cv_sizeof_int" >&6; }
  20658. cat >>confdefs.h <<_ACEOF
  20659. #define SIZEOF_INT $ac_cv_sizeof_int
  20660. _ACEOF
  20661. # The cast to long int works around a bug in the HP C Compiler
  20662. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  20663. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  20664. # This bug is HP SR number 8606223364.
  20665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  20666. $as_echo_n "checking size of long... " >&6; }
  20667. if ${ac_cv_sizeof_long+:} false; then :
  20668. $as_echo_n "(cached) " >&6
  20669. else
  20670. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  20671. else
  20672. if test "$ac_cv_type_long" = yes; then
  20673. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20674. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20675. as_fn_error 77 "cannot compute sizeof (long)
  20676. See \`config.log' for more details" "$LINENO" 5; }
  20677. else
  20678. ac_cv_sizeof_long=0
  20679. fi
  20680. fi
  20681. fi
  20682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  20683. $as_echo "$ac_cv_sizeof_long" >&6; }
  20684. cat >>confdefs.h <<_ACEOF
  20685. #define SIZEOF_LONG $ac_cv_sizeof_long
  20686. _ACEOF
  20687. # The cast to long int works around a bug in the HP C Compiler
  20688. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  20689. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  20690. # This bug is HP SR number 8606223364.
  20691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  20692. $as_echo_n "checking size of short... " >&6; }
  20693. if ${ac_cv_sizeof_short+:} false; then :
  20694. $as_echo_n "(cached) " >&6
  20695. else
  20696. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  20697. else
  20698. if test "$ac_cv_type_short" = yes; then
  20699. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20700. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20701. as_fn_error 77 "cannot compute sizeof (short)
  20702. See \`config.log' for more details" "$LINENO" 5; }
  20703. else
  20704. ac_cv_sizeof_short=0
  20705. fi
  20706. fi
  20707. fi
  20708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  20709. $as_echo "$ac_cv_sizeof_short" >&6; }
  20710. cat >>confdefs.h <<_ACEOF
  20711. #define SIZEOF_SHORT $ac_cv_sizeof_short
  20712. _ACEOF
  20713. # ------------
  20714. # AC_CHECK_LIB
  20715. # ------------
  20716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
  20717. $as_echo_n "checking for pathfind in -lgen... " >&6; }
  20718. if ${ac_cv_lib_gen_pathfind+:} false; then :
  20719. $as_echo_n "(cached) " >&6
  20720. else
  20721. ac_check_lib_save_LIBS=$LIBS
  20722. LIBS="-lgen $LIBS"
  20723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20724. /* end confdefs.h. */
  20725. /* Override any GCC internal prototype to avoid an error.
  20726. Use char because int might match the return type of a GCC
  20727. builtin and then its argument prototype would still apply. */
  20728. #ifdef __cplusplus
  20729. extern "C"
  20730. #endif
  20731. char pathfind ();
  20732. int
  20733. main ()
  20734. {
  20735. return pathfind ();
  20736. ;
  20737. return 0;
  20738. }
  20739. _ACEOF
  20740. if ac_fn_c_try_link "$LINENO"; then :
  20741. ac_cv_lib_gen_pathfind=yes
  20742. else
  20743. ac_cv_lib_gen_pathfind=no
  20744. fi
  20745. rm -f core conftest.err conftest.$ac_objext \
  20746. conftest$ac_exeext conftest.$ac_ext
  20747. LIBS=$ac_check_lib_save_LIBS
  20748. fi
  20749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
  20750. $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
  20751. if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
  20752. cat >>confdefs.h <<_ACEOF
  20753. #define HAVE_LIBGEN 1
  20754. _ACEOF
  20755. LIBS="-lgen $LIBS"
  20756. fi
  20757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
  20758. $as_echo_n "checking for gettext in -lintl... " >&6; }
  20759. if ${ac_cv_lib_intl_gettext+:} false; then :
  20760. $as_echo_n "(cached) " >&6
  20761. else
  20762. ac_check_lib_save_LIBS=$LIBS
  20763. LIBS="-lintl $LIBS"
  20764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20765. /* end confdefs.h. */
  20766. /* Override any GCC internal prototype to avoid an error.
  20767. Use char because int might match the return type of a GCC
  20768. builtin and then its argument prototype would still apply. */
  20769. #ifdef __cplusplus
  20770. extern "C"
  20771. #endif
  20772. char gettext ();
  20773. int
  20774. main ()
  20775. {
  20776. return gettext ();
  20777. ;
  20778. return 0;
  20779. }
  20780. _ACEOF
  20781. if ac_fn_c_try_link "$LINENO"; then :
  20782. ac_cv_lib_intl_gettext=yes
  20783. else
  20784. ac_cv_lib_intl_gettext=no
  20785. fi
  20786. rm -f core conftest.err conftest.$ac_objext \
  20787. conftest$ac_exeext conftest.$ac_ext
  20788. LIBS=$ac_check_lib_save_LIBS
  20789. fi
  20790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
  20791. $as_echo "$ac_cv_lib_intl_gettext" >&6; }
  20792. if test "x$ac_cv_lib_intl_gettext" = xyes; then :
  20793. cat >>confdefs.h <<_ACEOF
  20794. #define HAVE_LIBINTL 1
  20795. _ACEOF
  20796. LIBS="-lintl $LIBS"
  20797. fi
  20798. for ac_func in vprintf
  20799. do :
  20800. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  20801. if test "x$ac_cv_func_vprintf" = xyes; then :
  20802. cat >>confdefs.h <<_ACEOF
  20803. #define HAVE_VPRINTF 1
  20804. _ACEOF
  20805. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  20806. if test "x$ac_cv_func__doprnt" = xyes; then :
  20807. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  20808. fi
  20809. fi
  20810. done
  20811. for ac_header in vfork.h
  20812. do :
  20813. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  20814. if test "x$ac_cv_header_vfork_h" = xyes; then :
  20815. cat >>confdefs.h <<_ACEOF
  20816. #define HAVE_VFORK_H 1
  20817. _ACEOF
  20818. fi
  20819. done
  20820. for ac_func in fork vfork
  20821. do :
  20822. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20823. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  20824. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  20825. cat >>confdefs.h <<_ACEOF
  20826. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20827. _ACEOF
  20828. fi
  20829. done
  20830. if test "x$ac_cv_func_fork" = xyes; then
  20831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  20832. $as_echo_n "checking for working fork... " >&6; }
  20833. if ${ac_cv_func_fork_works+:} false; then :
  20834. $as_echo_n "(cached) " >&6
  20835. else
  20836. if test "$cross_compiling" = yes; then :
  20837. ac_cv_func_fork_works=cross
  20838. else
  20839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20840. /* end confdefs.h. */
  20841. $ac_includes_default
  20842. int
  20843. main ()
  20844. {
  20845. /* By Ruediger Kuhlmann. */
  20846. return fork () < 0;
  20847. ;
  20848. return 0;
  20849. }
  20850. _ACEOF
  20851. if ac_fn_c_try_run "$LINENO"; then :
  20852. ac_cv_func_fork_works=yes
  20853. else
  20854. ac_cv_func_fork_works=no
  20855. fi
  20856. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20857. conftest.$ac_objext conftest.beam conftest.$ac_ext
  20858. fi
  20859. fi
  20860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  20861. $as_echo "$ac_cv_func_fork_works" >&6; }
  20862. else
  20863. ac_cv_func_fork_works=$ac_cv_func_fork
  20864. fi
  20865. if test "x$ac_cv_func_fork_works" = xcross; then
  20866. case $host in
  20867. *-*-amigaos* | *-*-msdosdjgpp*)
  20868. # Override, as these systems have only a dummy fork() stub
  20869. ac_cv_func_fork_works=no
  20870. ;;
  20871. *)
  20872. ac_cv_func_fork_works=yes
  20873. ;;
  20874. esac
  20875. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  20876. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  20877. fi
  20878. ac_cv_func_vfork_works=$ac_cv_func_vfork
  20879. if test "x$ac_cv_func_vfork" = xyes; then
  20880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  20881. $as_echo_n "checking for working vfork... " >&6; }
  20882. if ${ac_cv_func_vfork_works+:} false; then :
  20883. $as_echo_n "(cached) " >&6
  20884. else
  20885. if test "$cross_compiling" = yes; then :
  20886. ac_cv_func_vfork_works=cross
  20887. else
  20888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20889. /* end confdefs.h. */
  20890. /* Thanks to Paul Eggert for this test. */
  20891. $ac_includes_default
  20892. #include <sys/wait.h>
  20893. #ifdef HAVE_VFORK_H
  20894. # include <vfork.h>
  20895. #endif
  20896. /* On some sparc systems, changes by the child to local and incoming
  20897. argument registers are propagated back to the parent. The compiler
  20898. is told about this with #include <vfork.h>, but some compilers
  20899. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  20900. static variable whose address is put into a register that is
  20901. clobbered by the vfork. */
  20902. static void
  20903. #ifdef __cplusplus
  20904. sparc_address_test (int arg)
  20905. # else
  20906. sparc_address_test (arg) int arg;
  20907. #endif
  20908. {
  20909. static pid_t child;
  20910. if (!child) {
  20911. child = vfork ();
  20912. if (child < 0) {
  20913. perror ("vfork");
  20914. _exit(2);
  20915. }
  20916. if (!child) {
  20917. arg = getpid();
  20918. write(-1, "", 0);
  20919. _exit (arg);
  20920. }
  20921. }
  20922. }
  20923. int
  20924. main ()
  20925. {
  20926. pid_t parent = getpid ();
  20927. pid_t child;
  20928. sparc_address_test (0);
  20929. child = vfork ();
  20930. if (child == 0) {
  20931. /* Here is another test for sparc vfork register problems. This
  20932. test uses lots of local variables, at least as many local
  20933. variables as main has allocated so far including compiler
  20934. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  20935. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  20936. reuse the register of parent for one of the local variables,
  20937. since it will think that parent can't possibly be used any more
  20938. in this routine. Assigning to the local variable will thus
  20939. munge parent in the parent process. */
  20940. pid_t
  20941. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  20942. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  20943. /* Convince the compiler that p..p7 are live; otherwise, it might
  20944. use the same hardware register for all 8 local variables. */
  20945. if (p != p1 || p != p2 || p != p3 || p != p4
  20946. || p != p5 || p != p6 || p != p7)
  20947. _exit(1);
  20948. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  20949. from child file descriptors. If the child closes a descriptor
  20950. before it execs or exits, this munges the parent's descriptor
  20951. as well. Test for this by closing stdout in the child. */
  20952. _exit(close(fileno(stdout)) != 0);
  20953. } else {
  20954. int status;
  20955. struct stat st;
  20956. while (wait(&status) != child)
  20957. ;
  20958. return (
  20959. /* Was there some problem with vforking? */
  20960. child < 0
  20961. /* Did the child fail? (This shouldn't happen.) */
  20962. || status
  20963. /* Did the vfork/compiler bug occur? */
  20964. || parent != getpid()
  20965. /* Did the file descriptor bug occur? */
  20966. || fstat(fileno(stdout), &st) != 0
  20967. );
  20968. }
  20969. }
  20970. _ACEOF
  20971. if ac_fn_c_try_run "$LINENO"; then :
  20972. ac_cv_func_vfork_works=yes
  20973. else
  20974. ac_cv_func_vfork_works=no
  20975. fi
  20976. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20977. conftest.$ac_objext conftest.beam conftest.$ac_ext
  20978. fi
  20979. fi
  20980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  20981. $as_echo "$ac_cv_func_vfork_works" >&6; }
  20982. fi;
  20983. if test "x$ac_cv_func_fork_works" = xcross; then
  20984. ac_cv_func_vfork_works=$ac_cv_func_vfork
  20985. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  20986. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  20987. fi
  20988. if test "x$ac_cv_func_vfork_works" = xyes; then
  20989. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  20990. else
  20991. $as_echo "#define vfork fork" >>confdefs.h
  20992. fi
  20993. if test "x$ac_cv_func_fork_works" = xyes; then
  20994. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  20995. fi
  20996. for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
  20997. strrchr strsignal fchmod fstat chmod
  20998. do :
  20999. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21000. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  21001. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  21002. cat >>confdefs.h <<_ACEOF
  21003. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21004. _ACEOF
  21005. fi
  21006. done
  21007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  21008. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  21009. if ${ac_cv_path_SED+:} false; then :
  21010. $as_echo_n "(cached) " >&6
  21011. else
  21012. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  21013. for ac_i in 1 2 3 4 5 6 7; do
  21014. ac_script="$ac_script$as_nl$ac_script"
  21015. done
  21016. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  21017. { ac_script=; unset ac_script;}
  21018. if test -z "$SED"; then
  21019. ac_path_SED_found=false
  21020. # Loop through the user's path and test for each of PROGNAME-LIST
  21021. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21022. for as_dir in $PATH
  21023. do
  21024. IFS=$as_save_IFS
  21025. test -z "$as_dir" && as_dir=.
  21026. for ac_prog in sed gsed; do
  21027. for ac_exec_ext in '' $ac_executable_extensions; do
  21028. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  21029. as_fn_executable_p "$ac_path_SED" || continue
  21030. # Check for GNU ac_path_SED and select it if it is found.
  21031. # Check for GNU $ac_path_SED
  21032. case `"$ac_path_SED" --version 2>&1` in
  21033. *GNU*)
  21034. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  21035. *)
  21036. ac_count=0
  21037. $as_echo_n 0123456789 >"conftest.in"
  21038. while :
  21039. do
  21040. cat "conftest.in" "conftest.in" >"conftest.tmp"
  21041. mv "conftest.tmp" "conftest.in"
  21042. cp "conftest.in" "conftest.nl"
  21043. $as_echo '' >> "conftest.nl"
  21044. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  21045. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  21046. as_fn_arith $ac_count + 1 && ac_count=$as_val
  21047. if test $ac_count -gt ${ac_path_SED_max-0}; then
  21048. # Best one so far, save it but keep looking for a better one
  21049. ac_cv_path_SED="$ac_path_SED"
  21050. ac_path_SED_max=$ac_count
  21051. fi
  21052. # 10*(2^10) chars as input seems more than enough
  21053. test $ac_count -gt 10 && break
  21054. done
  21055. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  21056. esac
  21057. $ac_path_SED_found && break 3
  21058. done
  21059. done
  21060. done
  21061. IFS=$as_save_IFS
  21062. if test -z "$ac_cv_path_SED"; then
  21063. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  21064. fi
  21065. else
  21066. ac_cv_path_SED=$SED
  21067. fi
  21068. fi
  21069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  21070. $as_echo "$ac_cv_path_SED" >&6; }
  21071. SED="$ac_cv_path_SED"
  21072. rm -f conftest.sed
  21073. while :
  21074. do
  21075. POSIX_SHELL=`which bash`
  21076. test -x "$POSIX_SHELL" && break
  21077. POSIX_SHELL=`which dash`
  21078. test -x "$POSIX_SHELL" && break
  21079. POSIX_SHELL=/usr/xpg4/bin/sh
  21080. test -x "$POSIX_SHELL" && break
  21081. POSIX_SHELL=`/bin/sh -c '
  21082. exec 2>/dev/null
  21083. if ! true ; then exit 1 ; fi
  21084. echo /bin/sh'`
  21085. test -x "$POSIX_SHELL" && break
  21086. as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
  21087. done
  21088. cat >>confdefs.h <<_ACEOF
  21089. #define POSIX_SHELL "${POSIX_SHELL}"
  21090. _ACEOF
  21091. LIBOPTS_BUILD_BLOCKED=''
  21092. NEED_LIBOPTS_DIR=''
  21093. # Check whether --enable-local-libopts was given.
  21094. if test "${enable_local_libopts+set}" = set; then :
  21095. enableval=$enable_local_libopts;
  21096. if test x$enableval = xyes ; then
  21097. { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
  21098. $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
  21099. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  21100. NEED_LIBOPTS_DIR=true
  21101. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  21102. fi
  21103. fi
  21104. # Check whether --enable-libopts-install was given.
  21105. if test "${enable_libopts_install+set}" = set; then :
  21106. enableval=$enable_libopts_install;
  21107. fi
  21108. if test "X${enable_libopts_install}" = Xyes; then
  21109. INSTALL_LIBOPTS_TRUE=
  21110. INSTALL_LIBOPTS_FALSE='#'
  21111. else
  21112. INSTALL_LIBOPTS_TRUE='#'
  21113. INSTALL_LIBOPTS_FALSE=
  21114. fi
  21115. if test -z "${NEED_LIBOPTS_DIR}" ; then
  21116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
  21117. $as_echo_n "checking whether autoopts-config can be found... " >&6; }
  21118. # Check whether --with-autoopts-config was given.
  21119. if test "${with_autoopts_config+set}" = set; then :
  21120. withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
  21121. else
  21122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
  21123. $as_echo_n "checking whether autoopts-config is specified... " >&6; }
  21124. if ${lo_cv_with_autoopts_config+:} false; then :
  21125. $as_echo_n "(cached) " >&6
  21126. else
  21127. if autoopts-config --help 2>/dev/null 1>&2
  21128. then lo_cv_with_autoopts_config=autoopts-config
  21129. elif libopts-config --help 2>/dev/null 1>&2
  21130. then lo_cv_with_autoopts_config=libopts-config
  21131. else lo_cv_with_autoopts_config=no ; fi
  21132. fi
  21133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
  21134. $as_echo "$lo_cv_with_autoopts_config" >&6; }
  21135. fi
  21136. # end of AC_ARG_WITH
  21137. if ${lo_cv_test_autoopts+:} false; then :
  21138. $as_echo_n "(cached) " >&6
  21139. else
  21140. if test -z "${lo_cv_with_autoopts_config}" \
  21141. -o X"${lo_cv_with_autoopts_config}" = Xno
  21142. then
  21143. if autoopts-config --help 2>/dev/null 1>&2
  21144. then lo_cv_with_autoopts_config=autoopts-config
  21145. elif libopts-config --help 2>/dev/null 1>&2
  21146. then lo_cv_with_autoopts_config=libopts-config
  21147. else lo_cv_with_autoopts_config=false ; fi
  21148. fi
  21149. lo_cv_test_autoopts=`
  21150. ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
  21151. if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
  21152. then lo_cv_test_autoopts=no ; fi
  21153. fi
  21154. # end of CACHE_VAL
  21155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
  21156. $as_echo "${lo_cv_test_autoopts}" >&6; }
  21157. if test "X${lo_cv_test_autoopts}" != Xno
  21158. then
  21159. LIBOPTS_LDADD="${lo_cv_test_autoopts}"
  21160. LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
  21161. else
  21162. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  21163. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  21164. NEED_LIBOPTS_DIR=true
  21165. fi
  21166. fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  21167. if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
  21168. NEED_LIBOPTS_DIR=''
  21169. fi
  21170. if test -n "${NEED_LIBOPTS_DIR}"; then
  21171. NEED_LIBOPTS_TRUE=
  21172. NEED_LIBOPTS_FALSE='#'
  21173. else
  21174. NEED_LIBOPTS_TRUE='#'
  21175. NEED_LIBOPTS_FALSE=
  21176. fi
  21177. LIBOPTS_DIR=libopts
  21178. # end of AC_DEFUN of LIBOPTS_CHECK_COMMON
  21179. if test -z "$NEED_LIBOPTS_TRUE"; then :
  21180. # Check to see if a reg expr header is specified.
  21181. # Check whether --with-regex-header was given.
  21182. if test "${with_regex_header+set}" = set; then :
  21183. withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
  21184. else
  21185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
  21186. $as_echo_n "checking whether a reg expr header is specified... " >&6; }
  21187. if ${libopts_cv_with_regex_header+:} false; then :
  21188. $as_echo_n "(cached) " >&6
  21189. else
  21190. libopts_cv_with_regex_header=no
  21191. fi
  21192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
  21193. $as_echo "$libopts_cv_with_regex_header" >&6; }
  21194. fi
  21195. # end of AC_ARG_WITH
  21196. if test "X${libopts_cv_with_regex_header}" != Xno
  21197. then
  21198. cat >>confdefs.h <<_ACEOF
  21199. #define REGEX_HEADER <${libopts_cv_with_regex_header}>
  21200. _ACEOF
  21201. else
  21202. $as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
  21203. fi
  21204. # Check to see if a working libregex can be found.
  21205. # Check whether --with-libregex was given.
  21206. if test "${with_libregex+set}" = set; then :
  21207. withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
  21208. else
  21209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
  21210. $as_echo_n "checking whether with-libregex was specified... " >&6; }
  21211. if ${libopts_cv_with_libregex_root+:} false; then :
  21212. $as_echo_n "(cached) " >&6
  21213. else
  21214. libopts_cv_with_libregex_root=no
  21215. fi
  21216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
  21217. $as_echo "$libopts_cv_with_libregex_root" >&6; }
  21218. fi
  21219. # end of AC_ARG_WITH libregex
  21220. if test "${with_libregex+set}" = set && \
  21221. test "X${withval}" = Xno
  21222. then ## disabled by request
  21223. libopts_cv_with_libregex_root=no
  21224. libopts_cv_with_libregex_cflags=no
  21225. libopts_cv_with_libregex_libs=no
  21226. else
  21227. # Check whether --with-libregex-cflags was given.
  21228. if test "${with_libregex_cflags+set}" = set; then :
  21229. withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_libregex_cflags}
  21230. else
  21231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
  21232. $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
  21233. if ${libopts_cv_with_libregex_cflags+:} false; then :
  21234. $as_echo_n "(cached) " >&6
  21235. else
  21236. libopts_cv_with_libregex_cflags=no
  21237. fi
  21238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
  21239. $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
  21240. fi
  21241. # end of AC_ARG_WITH libregex-cflags
  21242. # Check whether --with-libregex-libs was given.
  21243. if test "${with_libregex_libs+set}" = set; then :
  21244. withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_libregex_libs}
  21245. else
  21246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
  21247. $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
  21248. if ${libopts_cv_with_libregex_libs+:} false; then :
  21249. $as_echo_n "(cached) " >&6
  21250. else
  21251. libopts_cv_with_libregex_libs=no
  21252. fi
  21253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
  21254. $as_echo "$libopts_cv_with_libregex_libs" >&6; }
  21255. fi
  21256. # end of AC_ARG_WITH libregex-libs
  21257. case "X${libopts_cv_with_libregex_cflags}" in
  21258. Xyes|Xno|X )
  21259. case "X${libopts_cv_with_libregex_root}" in
  21260. Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
  21261. * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
  21262. esac
  21263. esac
  21264. case "X${libopts_cv_with_libregex_libs}" in
  21265. Xyes|Xno|X )
  21266. case "X${libopts_cv_with_libregex_root}" in
  21267. Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
  21268. * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex" ;;
  21269. esac
  21270. esac
  21271. libopts_save_CPPFLAGS="${CPPFLAGS}"
  21272. libopts_save_LIBS="${LIBS}"
  21273. case "X${libopts_cv_with_libregex_cflags}" in
  21274. Xyes|Xno|X )
  21275. libopts_cv_with_libregex_cflags="" ;;
  21276. * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
  21277. esac
  21278. case "X${libopts_cv_with_libregex_libs}" in
  21279. Xyes|Xno|X )
  21280. libopts_cv_with_libregex_libs="" ;;
  21281. * )
  21282. LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
  21283. esac
  21284. LIBREGEX_CFLAGS=""
  21285. LIBREGEX_LIBS=""
  21286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
  21287. $as_echo_n "checking whether libregex functions properly... " >&6; }
  21288. if ${libopts_cv_with_libregex+:} false; then :
  21289. $as_echo_n "(cached) " >&6
  21290. else
  21291. if test "$cross_compiling" = yes; then :
  21292. libopts_cv_with_libregex=no
  21293. else
  21294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21295. /* end confdefs.h. */
  21296. #include <stdio.h>
  21297. #include <stdlib.h>
  21298. #include <sys/types.h>
  21299. #include REGEX_HEADER
  21300. static regex_t re;
  21301. void comp_re(char const * pzPat) {
  21302. int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
  21303. if (res == 0) return;
  21304. exit( res ); }
  21305. int main() {
  21306. regmatch_t m[2];
  21307. comp_re( "^.*\$" );
  21308. comp_re( "()|no.*" );
  21309. comp_re( "." );
  21310. if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
  21311. if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
  21312. fputs( "error: regex -->.<-- did not match\n", stderr );
  21313. return 1;
  21314. }
  21315. return 0; }
  21316. _ACEOF
  21317. if ac_fn_c_try_run "$LINENO"; then :
  21318. libopts_cv_with_libregex=yes
  21319. else
  21320. libopts_cv_with_libregex=no
  21321. fi
  21322. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21323. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21324. fi
  21325. # end of AC_RUN_IFELSE
  21326. fi
  21327. # end of AC_CACHE_VAL for libopts_cv_with_libregex
  21328. fi ## disabled by request
  21329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
  21330. $as_echo "${libopts_cv_with_libregex}" >&6; }
  21331. if test "X${libopts_cv_with_libregex}" != Xno
  21332. then
  21333. $as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
  21334. else
  21335. CPPFLAGS="${libopts_save_CPPFLAGS}"
  21336. LIBS="${libopts_save_LIBS}"
  21337. libopts_cv_with_libregex_root=no
  21338. libopts_cv_with_libregex_cflags=no
  21339. libopts_cv_with_libregex_libs=no
  21340. libopts_cv_with_libregex=no
  21341. fi
  21342. # Check to see if pathfind(3) works.
  21343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
  21344. $as_echo_n "checking whether pathfind(3) works... " >&6; }
  21345. if ${libopts_cv_run_pathfind+:} false; then :
  21346. $as_echo_n "(cached) " >&6
  21347. else
  21348. if test "$cross_compiling" = yes; then :
  21349. libopts_cv_run_pathfind=no
  21350. else
  21351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21352. /* end confdefs.h. */
  21353. #include <string.h>
  21354. #include <stdlib.h>
  21355. int main (int argc, char ** argv) {
  21356. char * pz = pathfind( getenv( "PATH" ), "sh", "x" );
  21357. return (pz == 0) ? 1 : 0;
  21358. }
  21359. _ACEOF
  21360. if ac_fn_c_try_run "$LINENO"; then :
  21361. libopts_cv_run_pathfind=yes
  21362. else
  21363. libopts_cv_run_pathfind=no
  21364. fi
  21365. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21366. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21367. fi
  21368. # end of RUN_IFELSE
  21369. fi
  21370. # end of AC_CACHE_VAL for libopts_cv_run_pathfind
  21371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
  21372. $as_echo "${libopts_cv_run_pathfind}" >&6; }
  21373. if test "X${libopts_cv_run_pathfind}" != Xno
  21374. then
  21375. $as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
  21376. fi
  21377. # Check to see if /dev/zero is readable device.
  21378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
  21379. $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
  21380. if ${libopts_cv_test_dev_zero+:} false; then :
  21381. $as_echo_n "(cached) " >&6
  21382. else
  21383. libopts_cv_test_dev_zero=`exec 2> /dev/null
  21384. dzero=\`ls -lL /dev/zero | egrep ^c......r\`
  21385. test -z "${dzero}" && exit 1
  21386. echo ${dzero}`
  21387. if test $? -ne 0 || test -z "$libopts_cv_test_dev_zero"
  21388. then libopts_cv_test_dev_zero=no
  21389. fi
  21390. fi
  21391. # end of CACHE_VAL of libopts_cv_test_dev_zero
  21392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
  21393. $as_echo "${libopts_cv_test_dev_zero}" >&6; }
  21394. if test "X${libopts_cv_test_dev_zero}" != Xno
  21395. then
  21396. $as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
  21397. fi
  21398. # Check to see if we have a functional realpath(3C).
  21399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
  21400. $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
  21401. if ${libopts_cv_run_realpath+:} false; then :
  21402. $as_echo_n "(cached) " >&6
  21403. else
  21404. if test "$cross_compiling" = yes; then :
  21405. libopts_cv_run_realpath=no
  21406. else
  21407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21408. /* end confdefs.h. */
  21409. #include <limits.h>
  21410. #include <stdlib.h>
  21411. int main (int argc, char ** argv) {
  21412. #ifndef PATH_MAX
  21413. choke me!!
  21414. #else
  21415. char zPath[PATH_MAX+1];
  21416. #endif
  21417. char *pz = realpath(argv[0], zPath);
  21418. return (pz == zPath) ? 0 : 1;
  21419. }
  21420. _ACEOF
  21421. if ac_fn_c_try_run "$LINENO"; then :
  21422. libopts_cv_run_realpath=yes
  21423. else
  21424. libopts_cv_run_realpath=no
  21425. fi
  21426. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21427. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21428. fi
  21429. # end of RUN_IFELSE
  21430. fi
  21431. # end of AC_CACHE_VAL for libopts_cv_run_realpath
  21432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
  21433. $as_echo "${libopts_cv_run_realpath}" >&6; }
  21434. if test "X${libopts_cv_run_realpath}" != Xno
  21435. then
  21436. $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
  21437. fi
  21438. # Check to see if strftime() works.
  21439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
  21440. $as_echo_n "checking whether strftime() works... " >&6; }
  21441. if ${libopts_cv_run_strftime+:} false; then :
  21442. $as_echo_n "(cached) " >&6
  21443. else
  21444. if test "$cross_compiling" = yes; then :
  21445. libopts_cv_run_strftime=no
  21446. else
  21447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21448. /* end confdefs.h. */
  21449. #include <time.h>
  21450. #include <string.h>
  21451. char t_buf[ 64 ];
  21452. int main() {
  21453. static char const z[] = "Thursday Aug 28 240";
  21454. struct tm tm;
  21455. tm.tm_sec = 36; /* seconds after the minute [0, 61] */
  21456. tm.tm_min = 44; /* minutes after the hour [0, 59] */
  21457. tm.tm_hour = 12; /* hour since midnight [0, 23] */
  21458. tm.tm_mday = 28; /* day of the month [1, 31] */
  21459. tm.tm_mon = 7; /* months since January [0, 11] */
  21460. tm.tm_year = 86; /* years since 1900 */
  21461. tm.tm_wday = 4; /* days since Sunday [0, 6] */
  21462. tm.tm_yday = 239; /* days since January 1 [0, 365] */
  21463. tm.tm_isdst = 1; /* flag for daylight savings time */
  21464. strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
  21465. return (strcmp( t_buf, z ) != 0); }
  21466. _ACEOF
  21467. if ac_fn_c_try_run "$LINENO"; then :
  21468. libopts_cv_run_strftime=yes
  21469. else
  21470. libopts_cv_run_strftime=no
  21471. fi
  21472. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21473. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21474. fi
  21475. # end of RUN_IFELSE
  21476. fi
  21477. # end of AC_CACHE_VAL for libopts_cv_run_strftime
  21478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
  21479. $as_echo "${libopts_cv_run_strftime}" >&6; }
  21480. if test "X${libopts_cv_run_strftime}" != Xno
  21481. then
  21482. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  21483. fi
  21484. # Check to see if fopen accepts "b" mode.
  21485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
  21486. $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
  21487. if ${libopts_cv_run_fopen_binary+:} false; then :
  21488. $as_echo_n "(cached) " >&6
  21489. else
  21490. if test "$cross_compiling" = yes; then :
  21491. libopts_cv_run_fopen_binary=no
  21492. else
  21493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21494. /* end confdefs.h. */
  21495. #include <stdio.h>
  21496. int main (int argc, char ** argv) {
  21497. FILE * fp = fopen("conftest.$ac_ext", "rb");
  21498. return (fp == NULL) ? 1 : fclose(fp); }
  21499. _ACEOF
  21500. if ac_fn_c_try_run "$LINENO"; then :
  21501. libopts_cv_run_fopen_binary=yes
  21502. else
  21503. libopts_cv_run_fopen_binary=no
  21504. fi
  21505. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21506. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21507. fi
  21508. # end of RUN_IFELSE
  21509. fi
  21510. # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
  21511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
  21512. $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
  21513. if test "X${libopts_cv_run_fopen_binary}" != Xno
  21514. then
  21515. $as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
  21516. else
  21517. $as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
  21518. fi
  21519. # Check to see if fopen accepts "t" mode.
  21520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
  21521. $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
  21522. if ${libopts_cv_run_fopen_text+:} false; then :
  21523. $as_echo_n "(cached) " >&6
  21524. else
  21525. if test "$cross_compiling" = yes; then :
  21526. libopts_cv_run_fopen_text=no
  21527. else
  21528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21529. /* end confdefs.h. */
  21530. #include <stdio.h>
  21531. int main (int argc, char ** argv) {
  21532. FILE * fp = fopen("conftest.$ac_ext", "rt");
  21533. return (fp == NULL) ? 1 : fclose(fp); }
  21534. _ACEOF
  21535. if ac_fn_c_try_run "$LINENO"; then :
  21536. libopts_cv_run_fopen_text=yes
  21537. else
  21538. libopts_cv_run_fopen_text=no
  21539. fi
  21540. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21541. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21542. fi
  21543. # end of RUN_IFELSE
  21544. fi
  21545. # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
  21546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
  21547. $as_echo "${libopts_cv_run_fopen_text}" >&6; }
  21548. if test "X${libopts_cv_run_fopen_text}" != Xno
  21549. then
  21550. $as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
  21551. else
  21552. $as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
  21553. fi
  21554. # Check to see if not wanting optional option args.
  21555. # Check whether --enable-optional-args was given.
  21556. if test "${enable_optional_args+set}" = set; then :
  21557. enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
  21558. else
  21559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
  21560. $as_echo_n "checking whether not wanting optional option args... " >&6; }
  21561. if ${libopts_cv_enable_optional_args+:} false; then :
  21562. $as_echo_n "(cached) " >&6
  21563. else
  21564. libopts_cv_enable_optional_args=yes
  21565. fi
  21566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
  21567. $as_echo "$libopts_cv_enable_optional_args" >&6; }
  21568. fi
  21569. # end of AC_ARG_ENABLE
  21570. if test "X${libopts_cv_enable_optional_args}" = Xno
  21571. then
  21572. $as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
  21573. fi
  21574. fi
  21575. ac_config_files="$ac_config_files libopts/Makefile"
  21576. # end of AC_DEFUN of LIBOPTS_CHECK
  21577. ac_config_files="$ac_config_files Makefile doxygen.cfg lib/Makefile docs/Makefile src/Makefile src/tcpedit/Makefile src/fragroute/Makefile src/common/Makefile src/defines.h test/Makefile test/config scripts/Makefile"
  21578. cat >confcache <<\_ACEOF
  21579. # This file is a shell script that caches the results of configure
  21580. # tests run on this system so they can be shared between configure
  21581. # scripts and configure runs, see configure's option --config-cache.
  21582. # It is not useful on other systems. If it contains results you don't
  21583. # want to keep, you may remove or edit it.
  21584. #
  21585. # config.status only pays attention to the cache file if you give it
  21586. # the --recheck option to rerun configure.
  21587. #
  21588. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21589. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21590. # following values.
  21591. _ACEOF
  21592. # The following way of writing the cache mishandles newlines in values,
  21593. # but we know of no workaround that is simple, portable, and efficient.
  21594. # So, we kill variables containing newlines.
  21595. # Ultrix sh set writes to stderr and can't be redirected directly,
  21596. # and sets the high bit in the cache file unless we assign to the vars.
  21597. (
  21598. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21599. eval ac_val=\$$ac_var
  21600. case $ac_val in #(
  21601. *${as_nl}*)
  21602. case $ac_var in #(
  21603. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  21604. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21605. esac
  21606. case $ac_var in #(
  21607. _ | IFS | as_nl) ;; #(
  21608. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21609. *) { eval $ac_var=; unset $ac_var;} ;;
  21610. esac ;;
  21611. esac
  21612. done
  21613. (set) 2>&1 |
  21614. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21615. *${as_nl}ac_space=\ *)
  21616. # `set' does not quote correctly, so add quotes: double-quote
  21617. # substitution turns \\\\ into \\, and sed turns \\ into \.
  21618. sed -n \
  21619. "s/'/'\\\\''/g;
  21620. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21621. ;; #(
  21622. *)
  21623. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21624. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21625. ;;
  21626. esac |
  21627. sort
  21628. ) |
  21629. sed '
  21630. /^ac_cv_env_/b end
  21631. t clear
  21632. :clear
  21633. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21634. t end
  21635. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21636. :end' >>confcache
  21637. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21638. if test -w "$cache_file"; then
  21639. if test "x$cache_file" != "x/dev/null"; then
  21640. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  21641. $as_echo "$as_me: updating cache $cache_file" >&6;}
  21642. if test ! -f "$cache_file" || test -h "$cache_file"; then
  21643. cat confcache >"$cache_file"
  21644. else
  21645. case $cache_file in #(
  21646. */* | ?:*)
  21647. mv -f confcache "$cache_file"$$ &&
  21648. mv -f "$cache_file"$$ "$cache_file" ;; #(
  21649. *)
  21650. mv -f confcache "$cache_file" ;;
  21651. esac
  21652. fi
  21653. fi
  21654. else
  21655. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  21656. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21657. fi
  21658. fi
  21659. rm -f confcache
  21660. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21661. # Let make expand exec_prefix.
  21662. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21663. DEFS=-DHAVE_CONFIG_H
  21664. ac_libobjs=
  21665. ac_ltlibobjs=
  21666. U=
  21667. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21668. # 1. Remove the extension, and $U if already installed.
  21669. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21670. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  21671. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21672. # will be set to the directory where LIBOBJS objects are built.
  21673. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21674. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  21675. done
  21676. LIBOBJS=$ac_libobjs
  21677. LTLIBOBJS=$ac_ltlibobjs
  21678. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  21679. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  21680. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21681. fi
  21682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  21683. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  21684. if test -n "$am_sleep_pid"; then
  21685. # Hide warnings about reused PIDs.
  21686. wait $am_sleep_pid 2>/dev/null
  21687. fi
  21688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  21689. $as_echo "done" >&6; }
  21690. if test -n "$EXEEXT"; then
  21691. am__EXEEXT_TRUE=
  21692. am__EXEEXT_FALSE='#'
  21693. else
  21694. am__EXEEXT_TRUE='#'
  21695. am__EXEEXT_FALSE=
  21696. fi
  21697. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  21698. as_fn_error $? "conditional \"AMDEP\" was never defined.
  21699. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21700. fi
  21701. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  21702. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  21703. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21704. fi
  21705. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  21706. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  21707. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21708. fi
  21709. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  21710. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  21711. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21712. fi
  21713. if test -z "${SYSTEM_STRLCPY_TRUE}" && test -z "${SYSTEM_STRLCPY_FALSE}"; then
  21714. as_fn_error $? "conditional \"SYSTEM_STRLCPY\" was never defined.
  21715. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21716. fi
  21717. if test -z "${WORDS_BIGENDIAN_TRUE}" && test -z "${WORDS_BIGENDIAN_FALSE}"; then
  21718. as_fn_error $? "conditional \"WORDS_BIGENDIAN\" was never defined.
  21719. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21720. fi
  21721. if test -z "${COMPILE_TCPBRIDGE_TRUE}" && test -z "${COMPILE_TCPBRIDGE_FALSE}"; then
  21722. as_fn_error $? "conditional \"COMPILE_TCPBRIDGE\" was never defined.
  21723. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21724. fi
  21725. if test -z "${COMPILE_TCPLIVEPLAY_TRUE}" && test -z "${COMPILE_TCPLIVEPLAY_FALSE}"; then
  21726. as_fn_error $? "conditional \"COMPILE_TCPLIVEPLAY\" was never defined.
  21727. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21728. fi
  21729. if test -z "${COMPILE_NETMAP_TRUE}" && test -z "${COMPILE_NETMAP_FALSE}"; then
  21730. as_fn_error $? "conditional \"COMPILE_NETMAP\" was never defined.
  21731. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21732. fi
  21733. if test -z "${COMPILE_FRAGROUTE_TRUE}" && test -z "${COMPILE_FRAGROUTE_FALSE}"; then
  21734. as_fn_error $? "conditional \"COMPILE_FRAGROUTE\" was never defined.
  21735. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21736. fi
  21737. if test -z "${ENABLE_TCPDUMP_TRUE}" && test -z "${ENABLE_TCPDUMP_FALSE}"; then
  21738. as_fn_error $? "conditional \"ENABLE_TCPDUMP\" was never defined.
  21739. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21740. fi
  21741. if test -z "${ENABLE_OSX_FRAMEWORKS_TRUE}" && test -z "${ENABLE_OSX_FRAMEWORKS_FALSE}"; then
  21742. as_fn_error $? "conditional \"ENABLE_OSX_FRAMEWORKS\" was never defined.
  21743. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21744. fi
  21745. if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
  21746. as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
  21747. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21748. fi
  21749. if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
  21750. as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
  21751. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21752. fi
  21753. if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
  21754. as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
  21755. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21756. fi
  21757. : "${CONFIG_STATUS=./config.status}"
  21758. ac_write_fail=0
  21759. ac_clean_files_save=$ac_clean_files
  21760. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21761. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  21762. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21763. as_write_fail=0
  21764. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  21765. #! $SHELL
  21766. # Generated by $as_me.
  21767. # Run this file to recreate the current configuration.
  21768. # Compiler output produced by configure, useful for debugging
  21769. # configure, is in config.log if it exists.
  21770. debug=false
  21771. ac_cs_recheck=false
  21772. ac_cs_silent=false
  21773. SHELL=\${CONFIG_SHELL-$SHELL}
  21774. export SHELL
  21775. _ASEOF
  21776. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  21777. ## -------------------- ##
  21778. ## M4sh Initialization. ##
  21779. ## -------------------- ##
  21780. # Be more Bourne compatible
  21781. DUALCASE=1; export DUALCASE # for MKS sh
  21782. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21783. emulate sh
  21784. NULLCMD=:
  21785. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21786. # is contrary to our usage. Disable this feature.
  21787. alias -g '${1+"$@"}'='"$@"'
  21788. setopt NO_GLOB_SUBST
  21789. else
  21790. case `(set -o) 2>/dev/null` in #(
  21791. *posix*) :
  21792. set -o posix ;; #(
  21793. *) :
  21794. ;;
  21795. esac
  21796. fi
  21797. as_nl='
  21798. '
  21799. export as_nl
  21800. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  21801. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  21802. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  21803. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  21804. # Prefer a ksh shell builtin over an external printf program on Solaris,
  21805. # but without wasting forks for bash or zsh.
  21806. if test -z "$BASH_VERSION$ZSH_VERSION" \
  21807. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  21808. as_echo='print -r --'
  21809. as_echo_n='print -rn --'
  21810. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  21811. as_echo='printf %s\n'
  21812. as_echo_n='printf %s'
  21813. else
  21814. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  21815. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  21816. as_echo_n='/usr/ucb/echo -n'
  21817. else
  21818. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  21819. as_echo_n_body='eval
  21820. arg=$1;
  21821. case $arg in #(
  21822. *"$as_nl"*)
  21823. expr "X$arg" : "X\\(.*\\)$as_nl";
  21824. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  21825. esac;
  21826. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  21827. '
  21828. export as_echo_n_body
  21829. as_echo_n='sh -c $as_echo_n_body as_echo'
  21830. fi
  21831. export as_echo_body
  21832. as_echo='sh -c $as_echo_body as_echo'
  21833. fi
  21834. # The user is always right.
  21835. if test "${PATH_SEPARATOR+set}" != set; then
  21836. PATH_SEPARATOR=:
  21837. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  21838. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  21839. PATH_SEPARATOR=';'
  21840. }
  21841. fi
  21842. # IFS
  21843. # We need space, tab and new line, in precisely that order. Quoting is
  21844. # there to prevent editors from complaining about space-tab.
  21845. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  21846. # splitting by setting IFS to empty value.)
  21847. IFS=" "" $as_nl"
  21848. # Find who we are. Look in the path if we contain no directory separator.
  21849. as_myself=
  21850. case $0 in #((
  21851. *[\\/]* ) as_myself=$0 ;;
  21852. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21853. for as_dir in $PATH
  21854. do
  21855. IFS=$as_save_IFS
  21856. test -z "$as_dir" && as_dir=.
  21857. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  21858. done
  21859. IFS=$as_save_IFS
  21860. ;;
  21861. esac
  21862. # We did not find ourselves, most probably we were run as `sh COMMAND'
  21863. # in which case we are not to be found in the path.
  21864. if test "x$as_myself" = x; then
  21865. as_myself=$0
  21866. fi
  21867. if test ! -f "$as_myself"; then
  21868. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  21869. exit 1
  21870. fi
  21871. # Unset variables that we do not need and which cause bugs (e.g. in
  21872. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  21873. # suppresses any "Segmentation fault" message there. '((' could
  21874. # trigger a bug in pdksh 5.2.14.
  21875. for as_var in BASH_ENV ENV MAIL MAILPATH
  21876. do eval test x\${$as_var+set} = xset \
  21877. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  21878. done
  21879. PS1='$ '
  21880. PS2='> '
  21881. PS4='+ '
  21882. # NLS nuisances.
  21883. LC_ALL=C
  21884. export LC_ALL
  21885. LANGUAGE=C
  21886. export LANGUAGE
  21887. # CDPATH.
  21888. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21889. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  21890. # ----------------------------------------
  21891. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  21892. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  21893. # script with STATUS, using 1 if that was 0.
  21894. as_fn_error ()
  21895. {
  21896. as_status=$1; test $as_status -eq 0 && as_status=1
  21897. if test "$4"; then
  21898. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  21899. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  21900. fi
  21901. $as_echo "$as_me: error: $2" >&2
  21902. as_fn_exit $as_status
  21903. } # as_fn_error
  21904. # as_fn_set_status STATUS
  21905. # -----------------------
  21906. # Set $? to STATUS, without forking.
  21907. as_fn_set_status ()
  21908. {
  21909. return $1
  21910. } # as_fn_set_status
  21911. # as_fn_exit STATUS
  21912. # -----------------
  21913. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  21914. as_fn_exit ()
  21915. {
  21916. set +e
  21917. as_fn_set_status $1
  21918. exit $1
  21919. } # as_fn_exit
  21920. # as_fn_unset VAR
  21921. # ---------------
  21922. # Portably unset VAR.
  21923. as_fn_unset ()
  21924. {
  21925. { eval $1=; unset $1;}
  21926. }
  21927. as_unset=as_fn_unset
  21928. # as_fn_append VAR VALUE
  21929. # ----------------------
  21930. # Append the text in VALUE to the end of the definition contained in VAR. Take
  21931. # advantage of any shell optimizations that allow amortized linear growth over
  21932. # repeated appends, instead of the typical quadratic growth present in naive
  21933. # implementations.
  21934. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  21935. eval 'as_fn_append ()
  21936. {
  21937. eval $1+=\$2
  21938. }'
  21939. else
  21940. as_fn_append ()
  21941. {
  21942. eval $1=\$$1\$2
  21943. }
  21944. fi # as_fn_append
  21945. # as_fn_arith ARG...
  21946. # ------------------
  21947. # Perform arithmetic evaluation on the ARGs, and store the result in the
  21948. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  21949. # must be portable across $(()) and expr.
  21950. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  21951. eval 'as_fn_arith ()
  21952. {
  21953. as_val=$(( $* ))
  21954. }'
  21955. else
  21956. as_fn_arith ()
  21957. {
  21958. as_val=`expr "$@" || test $? -eq 1`
  21959. }
  21960. fi # as_fn_arith
  21961. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21962. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21963. as_expr=expr
  21964. else
  21965. as_expr=false
  21966. fi
  21967. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  21968. as_basename=basename
  21969. else
  21970. as_basename=false
  21971. fi
  21972. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  21973. as_dirname=dirname
  21974. else
  21975. as_dirname=false
  21976. fi
  21977. as_me=`$as_basename -- "$0" ||
  21978. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  21979. X"$0" : 'X\(//\)$' \| \
  21980. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  21981. $as_echo X/"$0" |
  21982. sed '/^.*\/\([^/][^/]*\)\/*$/{
  21983. s//\1/
  21984. q
  21985. }
  21986. /^X\/\(\/\/\)$/{
  21987. s//\1/
  21988. q
  21989. }
  21990. /^X\/\(\/\).*/{
  21991. s//\1/
  21992. q
  21993. }
  21994. s/.*/./; q'`
  21995. # Avoid depending upon Character Ranges.
  21996. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  21997. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  21998. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  21999. as_cr_digits='0123456789'
  22000. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22001. ECHO_C= ECHO_N= ECHO_T=
  22002. case `echo -n x` in #(((((
  22003. -n*)
  22004. case `echo 'xy\c'` in
  22005. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22006. xy) ECHO_C='\c';;
  22007. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  22008. ECHO_T=' ';;
  22009. esac;;
  22010. *)
  22011. ECHO_N='-n';;
  22012. esac
  22013. rm -f conf$$ conf$$.exe conf$$.file
  22014. if test -d conf$$.dir; then
  22015. rm -f conf$$.dir/conf$$.file
  22016. else
  22017. rm -f conf$$.dir
  22018. mkdir conf$$.dir 2>/dev/null
  22019. fi
  22020. if (echo >conf$$.file) 2>/dev/null; then
  22021. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22022. as_ln_s='ln -s'
  22023. # ... but there are two gotchas:
  22024. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22025. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22026. # In both cases, we have to default to `cp -pR'.
  22027. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22028. as_ln_s='cp -pR'
  22029. elif ln conf$$.file conf$$ 2>/dev/null; then
  22030. as_ln_s=ln
  22031. else
  22032. as_ln_s='cp -pR'
  22033. fi
  22034. else
  22035. as_ln_s='cp -pR'
  22036. fi
  22037. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22038. rmdir conf$$.dir 2>/dev/null
  22039. # as_fn_mkdir_p
  22040. # -------------
  22041. # Create "$as_dir" as a directory, including parents if necessary.
  22042. as_fn_mkdir_p ()
  22043. {
  22044. case $as_dir in #(
  22045. -*) as_dir=./$as_dir;;
  22046. esac
  22047. test -d "$as_dir" || eval $as_mkdir_p || {
  22048. as_dirs=
  22049. while :; do
  22050. case $as_dir in #(
  22051. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22052. *) as_qdir=$as_dir;;
  22053. esac
  22054. as_dirs="'$as_qdir' $as_dirs"
  22055. as_dir=`$as_dirname -- "$as_dir" ||
  22056. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22057. X"$as_dir" : 'X\(//\)[^/]' \| \
  22058. X"$as_dir" : 'X\(//\)$' \| \
  22059. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22060. $as_echo X"$as_dir" |
  22061. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22062. s//\1/
  22063. q
  22064. }
  22065. /^X\(\/\/\)[^/].*/{
  22066. s//\1/
  22067. q
  22068. }
  22069. /^X\(\/\/\)$/{
  22070. s//\1/
  22071. q
  22072. }
  22073. /^X\(\/\).*/{
  22074. s//\1/
  22075. q
  22076. }
  22077. s/.*/./; q'`
  22078. test -d "$as_dir" && break
  22079. done
  22080. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22081. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  22082. } # as_fn_mkdir_p
  22083. if mkdir -p . 2>/dev/null; then
  22084. as_mkdir_p='mkdir -p "$as_dir"'
  22085. else
  22086. test -d ./-p && rmdir ./-p
  22087. as_mkdir_p=false
  22088. fi
  22089. # as_fn_executable_p FILE
  22090. # -----------------------
  22091. # Test if FILE is an executable regular file.
  22092. as_fn_executable_p ()
  22093. {
  22094. test -f "$1" && test -x "$1"
  22095. } # as_fn_executable_p
  22096. as_test_x='test -x'
  22097. as_executable_p=as_fn_executable_p
  22098. # Sed expression to map a string onto a valid CPP name.
  22099. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22100. # Sed expression to map a string onto a valid variable name.
  22101. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22102. exec 6>&1
  22103. ## ----------------------------------- ##
  22104. ## Main body of $CONFIG_STATUS script. ##
  22105. ## ----------------------------------- ##
  22106. _ASEOF
  22107. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22108. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22109. # Save the log message, to keep $0 and so on meaningful, and to
  22110. # report actual input values of CONFIG_FILES etc. instead of their
  22111. # values after options handling.
  22112. ac_log="
  22113. This file was extended by tcpreplay $as_me 4.4.3, which was
  22114. generated by GNU Autoconf 2.69. Invocation command line was
  22115. CONFIG_FILES = $CONFIG_FILES
  22116. CONFIG_HEADERS = $CONFIG_HEADERS
  22117. CONFIG_LINKS = $CONFIG_LINKS
  22118. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22119. $ $0 $@
  22120. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22121. "
  22122. _ACEOF
  22123. case $ac_config_files in *"
  22124. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22125. esac
  22126. case $ac_config_headers in *"
  22127. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22128. esac
  22129. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22130. # Files that config.status was made for.
  22131. config_files="$ac_config_files"
  22132. config_headers="$ac_config_headers"
  22133. config_commands="$ac_config_commands"
  22134. _ACEOF
  22135. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22136. ac_cs_usage="\
  22137. \`$as_me' instantiates files and other configuration actions
  22138. from templates according to the current configuration. Unless the files
  22139. and actions are specified as TAGs, all are instantiated by default.
  22140. Usage: $0 [OPTION]... [TAG]...
  22141. -h, --help print this help, then exit
  22142. -V, --version print version number and configuration settings, then exit
  22143. --config print configuration, then exit
  22144. -q, --quiet, --silent
  22145. do not print progress messages
  22146. -d, --debug don't remove temporary files
  22147. --recheck update $as_me by reconfiguring in the same conditions
  22148. --file=FILE[:TEMPLATE]
  22149. instantiate the configuration file FILE
  22150. --header=FILE[:TEMPLATE]
  22151. instantiate the configuration header FILE
  22152. Configuration files:
  22153. $config_files
  22154. Configuration headers:
  22155. $config_headers
  22156. Configuration commands:
  22157. $config_commands
  22158. Report bugs to <https://github.com/appneta/tcpreplay/issues>.
  22159. tcpreplay home page: <http://tcpreplay.sourceforge.net/>."
  22160. _ACEOF
  22161. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22162. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  22163. ac_cs_version="\\
  22164. tcpreplay config.status 4.4.3
  22165. configured by $0, generated by GNU Autoconf 2.69,
  22166. with options \\"\$ac_cs_config\\"
  22167. Copyright (C) 2012 Free Software Foundation, Inc.
  22168. This config.status script is free software; the Free Software Foundation
  22169. gives unlimited permission to copy, distribute and modify it."
  22170. ac_pwd='$ac_pwd'
  22171. srcdir='$srcdir'
  22172. INSTALL='$INSTALL'
  22173. MKDIR_P='$MKDIR_P'
  22174. AWK='$AWK'
  22175. test -n "\$AWK" || AWK=awk
  22176. _ACEOF
  22177. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22178. # The default lists apply if the user does not specify any file.
  22179. ac_need_defaults=:
  22180. while test $# != 0
  22181. do
  22182. case $1 in
  22183. --*=?*)
  22184. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22185. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22186. ac_shift=:
  22187. ;;
  22188. --*=)
  22189. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22190. ac_optarg=
  22191. ac_shift=:
  22192. ;;
  22193. *)
  22194. ac_option=$1
  22195. ac_optarg=$2
  22196. ac_shift=shift
  22197. ;;
  22198. esac
  22199. case $ac_option in
  22200. # Handling of the options.
  22201. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22202. ac_cs_recheck=: ;;
  22203. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22204. $as_echo "$ac_cs_version"; exit ;;
  22205. --config | --confi | --conf | --con | --co | --c )
  22206. $as_echo "$ac_cs_config"; exit ;;
  22207. --debug | --debu | --deb | --de | --d | -d )
  22208. debug=: ;;
  22209. --file | --fil | --fi | --f )
  22210. $ac_shift
  22211. case $ac_optarg in
  22212. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22213. '') as_fn_error $? "missing file argument" ;;
  22214. esac
  22215. as_fn_append CONFIG_FILES " '$ac_optarg'"
  22216. ac_need_defaults=false;;
  22217. --header | --heade | --head | --hea )
  22218. $ac_shift
  22219. case $ac_optarg in
  22220. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22221. esac
  22222. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  22223. ac_need_defaults=false;;
  22224. --he | --h)
  22225. # Conflict between --help and --header
  22226. as_fn_error $? "ambiguous option: \`$1'
  22227. Try \`$0 --help' for more information.";;
  22228. --help | --hel | -h )
  22229. $as_echo "$ac_cs_usage"; exit ;;
  22230. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22231. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22232. ac_cs_silent=: ;;
  22233. # This is an error.
  22234. -*) as_fn_error $? "unrecognized option: \`$1'
  22235. Try \`$0 --help' for more information." ;;
  22236. *) as_fn_append ac_config_targets " $1"
  22237. ac_need_defaults=false ;;
  22238. esac
  22239. shift
  22240. done
  22241. ac_configure_extra_args=
  22242. if $ac_cs_silent; then
  22243. exec 6>/dev/null
  22244. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22245. fi
  22246. _ACEOF
  22247. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22248. if \$ac_cs_recheck; then
  22249. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22250. shift
  22251. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22252. CONFIG_SHELL='$SHELL'
  22253. export CONFIG_SHELL
  22254. exec "\$@"
  22255. fi
  22256. _ACEOF
  22257. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22258. exec 5>>config.log
  22259. {
  22260. echo
  22261. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22262. ## Running $as_me. ##
  22263. _ASBOX
  22264. $as_echo "$ac_log"
  22265. } >&5
  22266. _ACEOF
  22267. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22268. #
  22269. # INIT-COMMANDS
  22270. #
  22271. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  22272. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22273. # if CDPATH is set.
  22274. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22275. sed_quote_subst='$sed_quote_subst'
  22276. double_quote_subst='$double_quote_subst'
  22277. delay_variable_subst='$delay_variable_subst'
  22278. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  22279. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  22280. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  22281. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  22282. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  22283. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  22284. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  22285. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  22286. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  22287. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  22288. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  22289. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  22290. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  22291. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  22292. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  22293. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  22294. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  22295. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  22296. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  22297. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  22298. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  22299. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  22300. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  22301. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  22302. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  22303. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  22304. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  22305. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  22306. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  22307. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  22308. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  22309. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  22310. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  22311. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  22312. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  22313. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  22314. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  22315. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  22316. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  22317. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  22318. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  22319. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  22320. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  22321. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  22322. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  22323. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  22324. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22325. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22326. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  22327. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  22328. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  22329. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  22330. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  22331. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  22332. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  22333. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  22334. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  22335. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  22336. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  22337. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  22338. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  22339. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  22340. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  22341. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  22342. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  22343. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  22344. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  22345. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  22346. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  22347. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  22348. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  22349. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  22350. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  22351. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  22352. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  22353. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  22354. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  22355. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  22356. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  22357. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22358. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  22359. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  22360. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  22361. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  22362. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  22363. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  22364. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22365. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  22366. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22367. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  22368. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22369. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  22370. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22371. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22372. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  22373. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  22374. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  22375. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  22376. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  22377. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22378. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  22379. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  22380. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  22381. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  22382. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  22383. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  22384. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  22385. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  22386. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  22387. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  22388. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  22389. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  22390. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  22391. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  22392. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  22393. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22394. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  22395. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  22396. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  22397. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  22398. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  22399. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22400. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22401. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  22402. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  22403. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  22404. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  22405. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  22406. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  22407. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  22408. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  22409. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  22410. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  22411. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  22412. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  22413. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  22414. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  22415. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  22416. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  22417. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  22418. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  22419. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  22420. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22421. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22422. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22423. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  22424. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  22425. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22426. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  22427. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  22428. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  22429. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  22430. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  22431. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  22432. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22433. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22434. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  22435. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22436. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22437. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22438. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22439. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22440. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22441. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  22442. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22443. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22444. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22445. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  22446. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  22447. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  22448. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  22449. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  22450. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  22451. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  22452. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  22453. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  22454. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22455. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22456. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22457. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22458. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22459. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22460. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  22461. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  22462. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22463. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22464. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  22465. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  22466. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  22467. LTCC='$LTCC'
  22468. LTCFLAGS='$LTCFLAGS'
  22469. compiler='$compiler_DEFAULT'
  22470. # A function that is used when there is no print builtin or printf.
  22471. func_fallback_echo ()
  22472. {
  22473. eval 'cat <<_LTECHO_EOF
  22474. \$1
  22475. _LTECHO_EOF'
  22476. }
  22477. # Quote evaled strings.
  22478. for var in SHELL \
  22479. ECHO \
  22480. PATH_SEPARATOR \
  22481. SED \
  22482. GREP \
  22483. EGREP \
  22484. FGREP \
  22485. LD \
  22486. NM \
  22487. LN_S \
  22488. lt_SP2NL \
  22489. lt_NL2SP \
  22490. reload_flag \
  22491. OBJDUMP \
  22492. deplibs_check_method \
  22493. file_magic_cmd \
  22494. file_magic_glob \
  22495. want_nocaseglob \
  22496. DLLTOOL \
  22497. sharedlib_from_linklib_cmd \
  22498. AR \
  22499. AR_FLAGS \
  22500. archiver_list_spec \
  22501. STRIP \
  22502. RANLIB \
  22503. CC \
  22504. CFLAGS \
  22505. compiler \
  22506. lt_cv_sys_global_symbol_pipe \
  22507. lt_cv_sys_global_symbol_to_cdecl \
  22508. lt_cv_sys_global_symbol_to_import \
  22509. lt_cv_sys_global_symbol_to_c_name_address \
  22510. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  22511. lt_cv_nm_interface \
  22512. nm_file_list_spec \
  22513. lt_cv_truncate_bin \
  22514. lt_prog_compiler_no_builtin_flag \
  22515. lt_prog_compiler_pic \
  22516. lt_prog_compiler_wl \
  22517. lt_prog_compiler_static \
  22518. lt_cv_prog_compiler_c_o \
  22519. need_locks \
  22520. MANIFEST_TOOL \
  22521. DSYMUTIL \
  22522. NMEDIT \
  22523. LIPO \
  22524. OTOOL \
  22525. OTOOL64 \
  22526. shrext_cmds \
  22527. export_dynamic_flag_spec \
  22528. whole_archive_flag_spec \
  22529. compiler_needs_object \
  22530. with_gnu_ld \
  22531. allow_undefined_flag \
  22532. no_undefined_flag \
  22533. hardcode_libdir_flag_spec \
  22534. hardcode_libdir_separator \
  22535. exclude_expsyms \
  22536. include_expsyms \
  22537. file_list_spec \
  22538. variables_saved_for_relink \
  22539. libname_spec \
  22540. library_names_spec \
  22541. soname_spec \
  22542. install_override_mode \
  22543. finish_eval \
  22544. old_striplib \
  22545. striplib \
  22546. compiler_lib_search_dirs \
  22547. predep_objects \
  22548. postdep_objects \
  22549. predeps \
  22550. postdeps \
  22551. compiler_lib_search_path \
  22552. LD_CXX \
  22553. reload_flag_CXX \
  22554. compiler_CXX \
  22555. lt_prog_compiler_no_builtin_flag_CXX \
  22556. lt_prog_compiler_pic_CXX \
  22557. lt_prog_compiler_wl_CXX \
  22558. lt_prog_compiler_static_CXX \
  22559. lt_cv_prog_compiler_c_o_CXX \
  22560. export_dynamic_flag_spec_CXX \
  22561. whole_archive_flag_spec_CXX \
  22562. compiler_needs_object_CXX \
  22563. with_gnu_ld_CXX \
  22564. allow_undefined_flag_CXX \
  22565. no_undefined_flag_CXX \
  22566. hardcode_libdir_flag_spec_CXX \
  22567. hardcode_libdir_separator_CXX \
  22568. exclude_expsyms_CXX \
  22569. include_expsyms_CXX \
  22570. file_list_spec_CXX \
  22571. compiler_lib_search_dirs_CXX \
  22572. predep_objects_CXX \
  22573. postdep_objects_CXX \
  22574. predeps_CXX \
  22575. postdeps_CXX \
  22576. compiler_lib_search_path_CXX; do
  22577. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22578. *[\\\\\\\`\\"\\\$]*)
  22579. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  22580. ;;
  22581. *)
  22582. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22583. ;;
  22584. esac
  22585. done
  22586. # Double-quote double-evaled strings.
  22587. for var in reload_cmds \
  22588. old_postinstall_cmds \
  22589. old_postuninstall_cmds \
  22590. old_archive_cmds \
  22591. extract_expsyms_cmds \
  22592. old_archive_from_new_cmds \
  22593. old_archive_from_expsyms_cmds \
  22594. archive_cmds \
  22595. archive_expsym_cmds \
  22596. module_cmds \
  22597. module_expsym_cmds \
  22598. export_symbols_cmds \
  22599. prelink_cmds \
  22600. postlink_cmds \
  22601. postinstall_cmds \
  22602. postuninstall_cmds \
  22603. finish_cmds \
  22604. sys_lib_search_path_spec \
  22605. configure_time_dlsearch_path \
  22606. configure_time_lt_sys_library_path \
  22607. reload_cmds_CXX \
  22608. old_archive_cmds_CXX \
  22609. old_archive_from_new_cmds_CXX \
  22610. old_archive_from_expsyms_cmds_CXX \
  22611. archive_cmds_CXX \
  22612. archive_expsym_cmds_CXX \
  22613. module_cmds_CXX \
  22614. module_expsym_cmds_CXX \
  22615. export_symbols_cmds_CXX \
  22616. prelink_cmds_CXX \
  22617. postlink_cmds_CXX; do
  22618. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22619. *[\\\\\\\`\\"\\\$]*)
  22620. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  22621. ;;
  22622. *)
  22623. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22624. ;;
  22625. esac
  22626. done
  22627. ac_aux_dir='$ac_aux_dir'
  22628. # See if we are running on zsh, and set the options that allow our
  22629. # commands through without removal of \ escapes INIT.
  22630. if test -n "\${ZSH_VERSION+set}"; then
  22631. setopt NO_GLOB_SUBST
  22632. fi
  22633. PACKAGE='$PACKAGE'
  22634. VERSION='$VERSION'
  22635. RM='$RM'
  22636. ofile='$ofile'
  22637. _ACEOF
  22638. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22639. # Handling of arguments.
  22640. for ac_config_target in $ac_config_targets
  22641. do
  22642. case $ac_config_target in
  22643. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  22644. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  22645. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  22646. "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
  22647. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  22648. "doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doxygen.cfg" ;;
  22649. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  22650. "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  22651. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  22652. "src/tcpedit/Makefile") CONFIG_FILES="$CONFIG_FILES src/tcpedit/Makefile" ;;
  22653. "src/fragroute/Makefile") CONFIG_FILES="$CONFIG_FILES src/fragroute/Makefile" ;;
  22654. "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
  22655. "src/defines.h") CONFIG_FILES="$CONFIG_FILES src/defines.h" ;;
  22656. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  22657. "test/config") CONFIG_FILES="$CONFIG_FILES test/config" ;;
  22658. "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
  22659. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  22660. esac
  22661. done
  22662. # If the user did not use the arguments to specify the items to instantiate,
  22663. # then the envvar interface is used. Set only those that are not.
  22664. # We use the long form for the default assignment because of an extremely
  22665. # bizarre bug on SunOS 4.1.3.
  22666. if $ac_need_defaults; then
  22667. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  22668. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  22669. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  22670. fi
  22671. # Have a temporary directory for convenience. Make it in the build tree
  22672. # simply because there is no reason against having it here, and in addition,
  22673. # creating and moving files from /tmp can sometimes cause problems.
  22674. # Hook for its removal unless debugging.
  22675. # Note that there is a small window in which the directory will not be cleaned:
  22676. # after its creation but before its name has been assigned to `$tmp'.
  22677. $debug ||
  22678. {
  22679. tmp= ac_tmp=
  22680. trap 'exit_status=$?
  22681. : "${ac_tmp:=$tmp}"
  22682. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  22683. ' 0
  22684. trap 'as_fn_exit 1' 1 2 13 15
  22685. }
  22686. # Create a (secure) tmp directory for tmp files.
  22687. {
  22688. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  22689. test -d "$tmp"
  22690. } ||
  22691. {
  22692. tmp=./conf$$-$RANDOM
  22693. (umask 077 && mkdir "$tmp")
  22694. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  22695. ac_tmp=$tmp
  22696. # Set up the scripts for CONFIG_FILES section.
  22697. # No need to generate them if there are no CONFIG_FILES.
  22698. # This happens for instance with `./config.status config.h'.
  22699. if test -n "$CONFIG_FILES"; then
  22700. ac_cr=`echo X | tr X '\015'`
  22701. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  22702. # But we know of no other shell where ac_cr would be empty at this
  22703. # point, so we can use a bashism as a fallback.
  22704. if test "x$ac_cr" = x; then
  22705. eval ac_cr=\$\'\\r\'
  22706. fi
  22707. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  22708. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  22709. ac_cs_awk_cr='\\r'
  22710. else
  22711. ac_cs_awk_cr=$ac_cr
  22712. fi
  22713. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  22714. _ACEOF
  22715. {
  22716. echo "cat >conf$$subs.awk <<_ACEOF" &&
  22717. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  22718. echo "_ACEOF"
  22719. } >conf$$subs.sh ||
  22720. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22721. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  22722. ac_delim='%!_!# '
  22723. for ac_last_try in false false false false false :; do
  22724. . ./conf$$subs.sh ||
  22725. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22726. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  22727. if test $ac_delim_n = $ac_delim_num; then
  22728. break
  22729. elif $ac_last_try; then
  22730. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22731. else
  22732. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22733. fi
  22734. done
  22735. rm -f conf$$subs.sh
  22736. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22737. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  22738. _ACEOF
  22739. sed -n '
  22740. h
  22741. s/^/S["/; s/!.*/"]=/
  22742. p
  22743. g
  22744. s/^[^!]*!//
  22745. :repl
  22746. t repl
  22747. s/'"$ac_delim"'$//
  22748. t delim
  22749. :nl
  22750. h
  22751. s/\(.\{148\}\)..*/\1/
  22752. t more1
  22753. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  22754. p
  22755. n
  22756. b repl
  22757. :more1
  22758. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22759. p
  22760. g
  22761. s/.\{148\}//
  22762. t nl
  22763. :delim
  22764. h
  22765. s/\(.\{148\}\)..*/\1/
  22766. t more2
  22767. s/["\\]/\\&/g; s/^/"/; s/$/"/
  22768. p
  22769. b
  22770. :more2
  22771. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22772. p
  22773. g
  22774. s/.\{148\}//
  22775. t delim
  22776. ' <conf$$subs.awk | sed '
  22777. /^[^""]/{
  22778. N
  22779. s/\n//
  22780. }
  22781. ' >>$CONFIG_STATUS || ac_write_fail=1
  22782. rm -f conf$$subs.awk
  22783. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22784. _ACAWK
  22785. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  22786. for (key in S) S_is_set[key] = 1
  22787. FS = ""
  22788. }
  22789. {
  22790. line = $ 0
  22791. nfields = split(line, field, "@")
  22792. substed = 0
  22793. len = length(field[1])
  22794. for (i = 2; i < nfields; i++) {
  22795. key = field[i]
  22796. keylen = length(key)
  22797. if (S_is_set[key]) {
  22798. value = S[key]
  22799. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  22800. len += length(value) + length(field[++i])
  22801. substed = 1
  22802. } else
  22803. len += 1 + keylen
  22804. }
  22805. print line
  22806. }
  22807. _ACAWK
  22808. _ACEOF
  22809. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22810. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  22811. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  22812. else
  22813. cat
  22814. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  22815. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  22816. _ACEOF
  22817. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  22818. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  22819. # trailing colons and then remove the whole line if VPATH becomes empty
  22820. # (actually we leave an empty line to preserve line numbers).
  22821. if test "x$srcdir" = x.; then
  22822. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  22823. h
  22824. s///
  22825. s/^/:/
  22826. s/[ ]*$/:/
  22827. s/:\$(srcdir):/:/g
  22828. s/:\${srcdir}:/:/g
  22829. s/:@srcdir@:/:/g
  22830. s/^:*//
  22831. s/:*$//
  22832. x
  22833. s/\(=[ ]*\).*/\1/
  22834. G
  22835. s/\n//
  22836. s/^[^=]*=[ ]*$//
  22837. }'
  22838. fi
  22839. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22840. fi # test -n "$CONFIG_FILES"
  22841. # Set up the scripts for CONFIG_HEADERS section.
  22842. # No need to generate them if there are no CONFIG_HEADERS.
  22843. # This happens for instance with `./config.status Makefile'.
  22844. if test -n "$CONFIG_HEADERS"; then
  22845. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  22846. BEGIN {
  22847. _ACEOF
  22848. # Transform confdefs.h into an awk script `defines.awk', embedded as
  22849. # here-document in config.status, that substitutes the proper values into
  22850. # config.h.in to produce config.h.
  22851. # Create a delimiter string that does not exist in confdefs.h, to ease
  22852. # handling of long lines.
  22853. ac_delim='%!_!# '
  22854. for ac_last_try in false false :; do
  22855. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  22856. if test -z "$ac_tt"; then
  22857. break
  22858. elif $ac_last_try; then
  22859. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  22860. else
  22861. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22862. fi
  22863. done
  22864. # For the awk script, D is an array of macro values keyed by name,
  22865. # likewise P contains macro parameters if any. Preserve backslash
  22866. # newline sequences.
  22867. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  22868. sed -n '
  22869. s/.\{148\}/&'"$ac_delim"'/g
  22870. t rset
  22871. :rset
  22872. s/^[ ]*#[ ]*define[ ][ ]*/ /
  22873. t def
  22874. d
  22875. :def
  22876. s/\\$//
  22877. t bsnl
  22878. s/["\\]/\\&/g
  22879. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22880. D["\1"]=" \3"/p
  22881. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  22882. d
  22883. :bsnl
  22884. s/["\\]/\\&/g
  22885. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22886. D["\1"]=" \3\\\\\\n"\\/p
  22887. t cont
  22888. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  22889. t cont
  22890. d
  22891. :cont
  22892. n
  22893. s/.\{148\}/&'"$ac_delim"'/g
  22894. t clear
  22895. :clear
  22896. s/\\$//
  22897. t bsnlc
  22898. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  22899. d
  22900. :bsnlc
  22901. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  22902. b cont
  22903. ' <confdefs.h | sed '
  22904. s/'"$ac_delim"'/"\\\
  22905. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  22906. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22907. for (key in D) D_is_set[key] = 1
  22908. FS = ""
  22909. }
  22910. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  22911. line = \$ 0
  22912. split(line, arg, " ")
  22913. if (arg[1] == "#") {
  22914. defundef = arg[2]
  22915. mac1 = arg[3]
  22916. } else {
  22917. defundef = substr(arg[1], 2)
  22918. mac1 = arg[2]
  22919. }
  22920. split(mac1, mac2, "(") #)
  22921. macro = mac2[1]
  22922. prefix = substr(line, 1, index(line, defundef) - 1)
  22923. if (D_is_set[macro]) {
  22924. # Preserve the white space surrounding the "#".
  22925. print prefix "define", macro P[macro] D[macro]
  22926. next
  22927. } else {
  22928. # Replace #undef with comments. This is necessary, for example,
  22929. # in the case of _POSIX_SOURCE, which is predefined and required
  22930. # on some systems where configure will not decide to define it.
  22931. if (defundef == "undef") {
  22932. print "/*", prefix defundef, macro, "*/"
  22933. next
  22934. }
  22935. }
  22936. }
  22937. { print }
  22938. _ACAWK
  22939. _ACEOF
  22940. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22941. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  22942. fi # test -n "$CONFIG_HEADERS"
  22943. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  22944. shift
  22945. for ac_tag
  22946. do
  22947. case $ac_tag in
  22948. :[FHLC]) ac_mode=$ac_tag; continue;;
  22949. esac
  22950. case $ac_mode$ac_tag in
  22951. :[FHL]*:*);;
  22952. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  22953. :[FH]-) ac_tag=-:-;;
  22954. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  22955. esac
  22956. ac_save_IFS=$IFS
  22957. IFS=:
  22958. set x $ac_tag
  22959. IFS=$ac_save_IFS
  22960. shift
  22961. ac_file=$1
  22962. shift
  22963. case $ac_mode in
  22964. :L) ac_source=$1;;
  22965. :[FH])
  22966. ac_file_inputs=
  22967. for ac_f
  22968. do
  22969. case $ac_f in
  22970. -) ac_f="$ac_tmp/stdin";;
  22971. *) # Look for the file first in the build tree, then in the source tree
  22972. # (if the path is not absolute). The absolute path cannot be DOS-style,
  22973. # because $ac_f cannot contain `:'.
  22974. test -f "$ac_f" ||
  22975. case $ac_f in
  22976. [\\/$]*) false;;
  22977. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  22978. esac ||
  22979. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  22980. esac
  22981. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  22982. as_fn_append ac_file_inputs " '$ac_f'"
  22983. done
  22984. # Let's still pretend it is `configure' which instantiates (i.e., don't
  22985. # use $as_me), people would be surprised to read:
  22986. # /* config.h. Generated by config.status. */
  22987. configure_input='Generated from '`
  22988. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  22989. `' by configure.'
  22990. if test x"$ac_file" != x-; then
  22991. configure_input="$ac_file. $configure_input"
  22992. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  22993. $as_echo "$as_me: creating $ac_file" >&6;}
  22994. fi
  22995. # Neutralize special characters interpreted by sed in replacement strings.
  22996. case $configure_input in #(
  22997. *\&* | *\|* | *\\* )
  22998. ac_sed_conf_input=`$as_echo "$configure_input" |
  22999. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23000. *) ac_sed_conf_input=$configure_input;;
  23001. esac
  23002. case $ac_tag in
  23003. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  23004. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  23005. esac
  23006. ;;
  23007. esac
  23008. ac_dir=`$as_dirname -- "$ac_file" ||
  23009. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23010. X"$ac_file" : 'X\(//\)[^/]' \| \
  23011. X"$ac_file" : 'X\(//\)$' \| \
  23012. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23013. $as_echo X"$ac_file" |
  23014. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23015. s//\1/
  23016. q
  23017. }
  23018. /^X\(\/\/\)[^/].*/{
  23019. s//\1/
  23020. q
  23021. }
  23022. /^X\(\/\/\)$/{
  23023. s//\1/
  23024. q
  23025. }
  23026. /^X\(\/\).*/{
  23027. s//\1/
  23028. q
  23029. }
  23030. s/.*/./; q'`
  23031. as_dir="$ac_dir"; as_fn_mkdir_p
  23032. ac_builddir=.
  23033. case "$ac_dir" in
  23034. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23035. *)
  23036. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23037. # A ".." for each directory in $ac_dir_suffix.
  23038. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23039. case $ac_top_builddir_sub in
  23040. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23041. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23042. esac ;;
  23043. esac
  23044. ac_abs_top_builddir=$ac_pwd
  23045. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23046. # for backward compatibility:
  23047. ac_top_builddir=$ac_top_build_prefix
  23048. case $srcdir in
  23049. .) # We are building in place.
  23050. ac_srcdir=.
  23051. ac_top_srcdir=$ac_top_builddir_sub
  23052. ac_abs_top_srcdir=$ac_pwd ;;
  23053. [\\/]* | ?:[\\/]* ) # Absolute name.
  23054. ac_srcdir=$srcdir$ac_dir_suffix;
  23055. ac_top_srcdir=$srcdir
  23056. ac_abs_top_srcdir=$srcdir ;;
  23057. *) # Relative name.
  23058. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23059. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23060. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23061. esac
  23062. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23063. case $ac_mode in
  23064. :F)
  23065. #
  23066. # CONFIG_FILE
  23067. #
  23068. case $INSTALL in
  23069. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23070. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23071. esac
  23072. ac_MKDIR_P=$MKDIR_P
  23073. case $MKDIR_P in
  23074. [\\/$]* | ?:[\\/]* ) ;;
  23075. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  23076. esac
  23077. _ACEOF
  23078. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23079. # If the template does not know about datarootdir, expand it.
  23080. # FIXME: This hack should be removed a few years after 2.60.
  23081. ac_datarootdir_hack=; ac_datarootdir_seen=
  23082. ac_sed_dataroot='
  23083. /datarootdir/ {
  23084. p
  23085. q
  23086. }
  23087. /@datadir@/p
  23088. /@docdir@/p
  23089. /@infodir@/p
  23090. /@localedir@/p
  23091. /@mandir@/p'
  23092. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23093. *datarootdir*) ac_datarootdir_seen=yes;;
  23094. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23095. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23096. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23097. _ACEOF
  23098. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23099. ac_datarootdir_hack='
  23100. s&@datadir@&$datadir&g
  23101. s&@docdir@&$docdir&g
  23102. s&@infodir@&$infodir&g
  23103. s&@localedir@&$localedir&g
  23104. s&@mandir@&$mandir&g
  23105. s&\\\${datarootdir}&$datarootdir&g' ;;
  23106. esac
  23107. _ACEOF
  23108. # Neutralize VPATH when `$srcdir' = `.'.
  23109. # Shell code in configure.ac might set extrasub.
  23110. # FIXME: do we really want to maintain this feature?
  23111. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23112. ac_sed_extra="$ac_vpsub
  23113. $extrasub
  23114. _ACEOF
  23115. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23116. :t
  23117. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23118. s|@configure_input@|$ac_sed_conf_input|;t t
  23119. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23120. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23121. s&@srcdir@&$ac_srcdir&;t t
  23122. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23123. s&@top_srcdir@&$ac_top_srcdir&;t t
  23124. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23125. s&@builddir@&$ac_builddir&;t t
  23126. s&@abs_builddir@&$ac_abs_builddir&;t t
  23127. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23128. s&@INSTALL@&$ac_INSTALL&;t t
  23129. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  23130. $ac_datarootdir_hack
  23131. "
  23132. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  23133. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23134. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23135. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  23136. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  23137. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  23138. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23139. which seems to be undefined. Please make sure it is defined" >&5
  23140. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23141. which seems to be undefined. Please make sure it is defined" >&2;}
  23142. rm -f "$ac_tmp/stdin"
  23143. case $ac_file in
  23144. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  23145. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  23146. esac \
  23147. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23148. ;;
  23149. :H)
  23150. #
  23151. # CONFIG_HEADER
  23152. #
  23153. if test x"$ac_file" != x-; then
  23154. {
  23155. $as_echo "/* $configure_input */" \
  23156. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  23157. } >"$ac_tmp/config.h" \
  23158. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23159. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  23160. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  23161. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23162. else
  23163. rm -f "$ac_file"
  23164. mv "$ac_tmp/config.h" "$ac_file" \
  23165. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23166. fi
  23167. else
  23168. $as_echo "/* $configure_input */" \
  23169. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  23170. || as_fn_error $? "could not create -" "$LINENO" 5
  23171. fi
  23172. # Compute "$ac_file"'s index in $config_headers.
  23173. _am_arg="$ac_file"
  23174. _am_stamp_count=1
  23175. for _am_header in $config_headers :; do
  23176. case $_am_header in
  23177. $_am_arg | $_am_arg:* )
  23178. break ;;
  23179. * )
  23180. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  23181. esac
  23182. done
  23183. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  23184. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23185. X"$_am_arg" : 'X\(//\)[^/]' \| \
  23186. X"$_am_arg" : 'X\(//\)$' \| \
  23187. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  23188. $as_echo X"$_am_arg" |
  23189. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23190. s//\1/
  23191. q
  23192. }
  23193. /^X\(\/\/\)[^/].*/{
  23194. s//\1/
  23195. q
  23196. }
  23197. /^X\(\/\/\)$/{
  23198. s//\1/
  23199. q
  23200. }
  23201. /^X\(\/\).*/{
  23202. s//\1/
  23203. q
  23204. }
  23205. s/.*/./; q'`/stamp-h$_am_stamp_count
  23206. ;;
  23207. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  23208. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23209. ;;
  23210. esac
  23211. case $ac_file$ac_mode in
  23212. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  23213. # Older Autoconf quotes --file arguments for eval, but not when files
  23214. # are listed without --file. Let's play safe and only enable the eval
  23215. # if we detect the quoting.
  23216. case $CONFIG_FILES in
  23217. *\'*) eval set x "$CONFIG_FILES" ;;
  23218. *) set x $CONFIG_FILES ;;
  23219. esac
  23220. shift
  23221. for mf
  23222. do
  23223. # Strip MF so we end up with the name of the file.
  23224. mf=`echo "$mf" | sed -e 's/:.*$//'`
  23225. # Check whether this is an Automake generated Makefile or not.
  23226. # We used to match only the files named 'Makefile.in', but
  23227. # some people rename them; so instead we look at the file content.
  23228. # Grep'ing the first line is not enough: some people post-process
  23229. # each Makefile.in and add a new line on top of each file to say so.
  23230. # Grep'ing the whole file is not good either: AIX grep has a line
  23231. # limit of 2048, but all sed's we know have understand at least 4000.
  23232. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  23233. dirpart=`$as_dirname -- "$mf" ||
  23234. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23235. X"$mf" : 'X\(//\)[^/]' \| \
  23236. X"$mf" : 'X\(//\)$' \| \
  23237. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  23238. $as_echo X"$mf" |
  23239. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23240. s//\1/
  23241. q
  23242. }
  23243. /^X\(\/\/\)[^/].*/{
  23244. s//\1/
  23245. q
  23246. }
  23247. /^X\(\/\/\)$/{
  23248. s//\1/
  23249. q
  23250. }
  23251. /^X\(\/\).*/{
  23252. s//\1/
  23253. q
  23254. }
  23255. s/.*/./; q'`
  23256. else
  23257. continue
  23258. fi
  23259. # Extract the definition of DEPDIR, am__include, and am__quote
  23260. # from the Makefile without running 'make'.
  23261. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  23262. test -z "$DEPDIR" && continue
  23263. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  23264. test -z "$am__include" && continue
  23265. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  23266. # Find all dependency output files, they are included files with
  23267. # $(DEPDIR) in their names. We invoke sed twice because it is the
  23268. # simplest approach to changing $(DEPDIR) to its actual value in the
  23269. # expansion.
  23270. for file in `sed -n "
  23271. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  23272. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  23273. # Make sure the directory exists.
  23274. test -f "$dirpart/$file" && continue
  23275. fdir=`$as_dirname -- "$file" ||
  23276. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23277. X"$file" : 'X\(//\)[^/]' \| \
  23278. X"$file" : 'X\(//\)$' \| \
  23279. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  23280. $as_echo X"$file" |
  23281. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23282. s//\1/
  23283. q
  23284. }
  23285. /^X\(\/\/\)[^/].*/{
  23286. s//\1/
  23287. q
  23288. }
  23289. /^X\(\/\/\)$/{
  23290. s//\1/
  23291. q
  23292. }
  23293. /^X\(\/\).*/{
  23294. s//\1/
  23295. q
  23296. }
  23297. s/.*/./; q'`
  23298. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  23299. # echo "creating $dirpart/$file"
  23300. echo '# dummy' > "$dirpart/$file"
  23301. done
  23302. done
  23303. }
  23304. ;;
  23305. "libtool":C)
  23306. # See if we are running on zsh, and set the options that allow our
  23307. # commands through without removal of \ escapes.
  23308. if test -n "${ZSH_VERSION+set}"; then
  23309. setopt NO_GLOB_SUBST
  23310. fi
  23311. cfgfile=${ofile}T
  23312. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23313. $RM "$cfgfile"
  23314. cat <<_LT_EOF >> "$cfgfile"
  23315. #! $SHELL
  23316. # Generated automatically by $as_me ($PACKAGE) $VERSION
  23317. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  23318. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23319. # Provide generalized library-building support services.
  23320. # Written by Gordon Matzigkeit, 1996
  23321. # Copyright (C) 2014 Free Software Foundation, Inc.
  23322. # This is free software; see the source for copying conditions. There is NO
  23323. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  23324. # GNU Libtool is free software; you can redistribute it and/or modify
  23325. # it under the terms of the GNU General Public License as published by
  23326. # the Free Software Foundation; either version 2 of of the License, or
  23327. # (at your option) any later version.
  23328. #
  23329. # As a special exception to the GNU General Public License, if you
  23330. # distribute this file as part of a program or library that is built
  23331. # using GNU Libtool, you may include this file under the same
  23332. # distribution terms that you use for the rest of that program.
  23333. #
  23334. # GNU Libtool is distributed in the hope that it will be useful, but
  23335. # WITHOUT ANY WARRANTY; without even the implied warranty of
  23336. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23337. # GNU General Public License for more details.
  23338. #
  23339. # You should have received a copy of the GNU General Public License
  23340. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  23341. # The names of the tagged configurations supported by this script.
  23342. available_tags='CXX '
  23343. # Configured defaults for sys_lib_dlsearch_path munging.
  23344. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  23345. # ### BEGIN LIBTOOL CONFIG
  23346. # Which release of libtool.m4 was used?
  23347. macro_version=$macro_version
  23348. macro_revision=$macro_revision
  23349. # Whether or not to build shared libraries.
  23350. build_libtool_libs=$enable_shared
  23351. # Whether or not to build static libraries.
  23352. build_old_libs=$enable_static
  23353. # What type of objects to build.
  23354. pic_mode=$pic_mode
  23355. # Whether or not to optimize for fast installation.
  23356. fast_install=$enable_fast_install
  23357. # Shared archive member basename,for filename based shared library versioning on AIX.
  23358. shared_archive_member_spec=$shared_archive_member_spec
  23359. # Shell to use when invoking shell scripts.
  23360. SHELL=$lt_SHELL
  23361. # An echo program that protects backslashes.
  23362. ECHO=$lt_ECHO
  23363. # The PATH separator for the build system.
  23364. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  23365. # The host system.
  23366. host_alias=$host_alias
  23367. host=$host
  23368. host_os=$host_os
  23369. # The build system.
  23370. build_alias=$build_alias
  23371. build=$build
  23372. build_os=$build_os
  23373. # A sed program that does not truncate output.
  23374. SED=$lt_SED
  23375. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23376. Xsed="\$SED -e 1s/^X//"
  23377. # A grep program that handles long lines.
  23378. GREP=$lt_GREP
  23379. # An ERE matcher.
  23380. EGREP=$lt_EGREP
  23381. # A literal string matcher.
  23382. FGREP=$lt_FGREP
  23383. # A BSD- or MS-compatible name lister.
  23384. NM=$lt_NM
  23385. # Whether we need soft or hard links.
  23386. LN_S=$lt_LN_S
  23387. # What is the maximum length of a command?
  23388. max_cmd_len=$max_cmd_len
  23389. # Object file suffix (normally "o").
  23390. objext=$ac_objext
  23391. # Executable file suffix (normally "").
  23392. exeext=$exeext
  23393. # whether the shell understands "unset".
  23394. lt_unset=$lt_unset
  23395. # turn spaces into newlines.
  23396. SP2NL=$lt_lt_SP2NL
  23397. # turn newlines into spaces.
  23398. NL2SP=$lt_lt_NL2SP
  23399. # convert \$build file names to \$host format.
  23400. to_host_file_cmd=$lt_cv_to_host_file_cmd
  23401. # convert \$build files to toolchain format.
  23402. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  23403. # An object symbol dumper.
  23404. OBJDUMP=$lt_OBJDUMP
  23405. # Method to check whether dependent libraries are shared objects.
  23406. deplibs_check_method=$lt_deplibs_check_method
  23407. # Command to use when deplibs_check_method = "file_magic".
  23408. file_magic_cmd=$lt_file_magic_cmd
  23409. # How to find potential files when deplibs_check_method = "file_magic".
  23410. file_magic_glob=$lt_file_magic_glob
  23411. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  23412. want_nocaseglob=$lt_want_nocaseglob
  23413. # DLL creation program.
  23414. DLLTOOL=$lt_DLLTOOL
  23415. # Command to associate shared and link libraries.
  23416. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  23417. # The archiver.
  23418. AR=$lt_AR
  23419. # Flags to create an archive.
  23420. AR_FLAGS=$lt_AR_FLAGS
  23421. # How to feed a file listing to the archiver.
  23422. archiver_list_spec=$lt_archiver_list_spec
  23423. # A symbol stripping program.
  23424. STRIP=$lt_STRIP
  23425. # Commands used to install an old-style archive.
  23426. RANLIB=$lt_RANLIB
  23427. old_postinstall_cmds=$lt_old_postinstall_cmds
  23428. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  23429. # Whether to use a lock for old archive extraction.
  23430. lock_old_archive_extraction=$lock_old_archive_extraction
  23431. # A C compiler.
  23432. LTCC=$lt_CC
  23433. # LTCC compiler flags.
  23434. LTCFLAGS=$lt_CFLAGS
  23435. # Take the output of nm and produce a listing of raw symbols and C names.
  23436. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  23437. # Transform the output of nm in a proper C declaration.
  23438. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  23439. # Transform the output of nm into a list of symbols to manually relocate.
  23440. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  23441. # Transform the output of nm in a C name address pair.
  23442. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  23443. # Transform the output of nm in a C name address pair when lib prefix is needed.
  23444. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  23445. # The name lister interface.
  23446. nm_interface=$lt_lt_cv_nm_interface
  23447. # Specify filename containing input files for \$NM.
  23448. nm_file_list_spec=$lt_nm_file_list_spec
  23449. # The root where to search for dependent libraries,and where our libraries should be installed.
  23450. lt_sysroot=$lt_sysroot
  23451. # Command to truncate a binary pipe.
  23452. lt_truncate_bin=$lt_lt_cv_truncate_bin
  23453. # The name of the directory that contains temporary libtool files.
  23454. objdir=$objdir
  23455. # Used to examine libraries when file_magic_cmd begins with "file".
  23456. MAGIC_CMD=$MAGIC_CMD
  23457. # Must we lock files when doing compilation?
  23458. need_locks=$lt_need_locks
  23459. # Manifest tool.
  23460. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  23461. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  23462. DSYMUTIL=$lt_DSYMUTIL
  23463. # Tool to change global to local symbols on Mac OS X.
  23464. NMEDIT=$lt_NMEDIT
  23465. # Tool to manipulate fat objects and archives on Mac OS X.
  23466. LIPO=$lt_LIPO
  23467. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  23468. OTOOL=$lt_OTOOL
  23469. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  23470. OTOOL64=$lt_OTOOL64
  23471. # Old archive suffix (normally "a").
  23472. libext=$libext
  23473. # Shared library suffix (normally ".so").
  23474. shrext_cmds=$lt_shrext_cmds
  23475. # The commands to extract the exported symbol list from a shared archive.
  23476. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23477. # Variables whose values should be saved in libtool wrapper scripts and
  23478. # restored at link time.
  23479. variables_saved_for_relink=$lt_variables_saved_for_relink
  23480. # Do we need the "lib" prefix for modules?
  23481. need_lib_prefix=$need_lib_prefix
  23482. # Do we need a version for libraries?
  23483. need_version=$need_version
  23484. # Library versioning type.
  23485. version_type=$version_type
  23486. # Shared library runtime path variable.
  23487. runpath_var=$runpath_var
  23488. # Shared library path variable.
  23489. shlibpath_var=$shlibpath_var
  23490. # Is shlibpath searched before the hard-coded library search path?
  23491. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23492. # Format of library name prefix.
  23493. libname_spec=$lt_libname_spec
  23494. # List of archive names. First name is the real one, the rest are links.
  23495. # The last name is the one that the linker finds with -lNAME
  23496. library_names_spec=$lt_library_names_spec
  23497. # The coded name of the library, if different from the real name.
  23498. soname_spec=$lt_soname_spec
  23499. # Permission mode override for installation of shared libraries.
  23500. install_override_mode=$lt_install_override_mode
  23501. # Command to use after installation of a shared archive.
  23502. postinstall_cmds=$lt_postinstall_cmds
  23503. # Command to use after uninstallation of a shared archive.
  23504. postuninstall_cmds=$lt_postuninstall_cmds
  23505. # Commands used to finish a libtool library installation in a directory.
  23506. finish_cmds=$lt_finish_cmds
  23507. # As "finish_cmds", except a single script fragment to be evaled but
  23508. # not shown.
  23509. finish_eval=$lt_finish_eval
  23510. # Whether we should hardcode library paths into libraries.
  23511. hardcode_into_libs=$hardcode_into_libs
  23512. # Compile-time system search path for libraries.
  23513. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23514. # Detected run-time system search path for libraries.
  23515. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  23516. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  23517. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  23518. # Whether dlopen is supported.
  23519. dlopen_support=$enable_dlopen
  23520. # Whether dlopen of programs is supported.
  23521. dlopen_self=$enable_dlopen_self
  23522. # Whether dlopen of statically linked programs is supported.
  23523. dlopen_self_static=$enable_dlopen_self_static
  23524. # Commands to strip libraries.
  23525. old_striplib=$lt_old_striplib
  23526. striplib=$lt_striplib
  23527. # The linker used to build libraries.
  23528. LD=$lt_LD
  23529. # How to create reloadable object files.
  23530. reload_flag=$lt_reload_flag
  23531. reload_cmds=$lt_reload_cmds
  23532. # Commands used to build an old-style archive.
  23533. old_archive_cmds=$lt_old_archive_cmds
  23534. # A language specific compiler.
  23535. CC=$lt_compiler
  23536. # Is the compiler the GNU compiler?
  23537. with_gcc=$GCC
  23538. # Compiler flag to turn off builtin functions.
  23539. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  23540. # Additional compiler flags for building library objects.
  23541. pic_flag=$lt_lt_prog_compiler_pic
  23542. # How to pass a linker flag through the compiler.
  23543. wl=$lt_lt_prog_compiler_wl
  23544. # Compiler flag to prevent dynamic linking.
  23545. link_static_flag=$lt_lt_prog_compiler_static
  23546. # Does compiler simultaneously support -c and -o options?
  23547. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  23548. # Whether or not to add -lc for building shared libraries.
  23549. build_libtool_need_lc=$archive_cmds_need_lc
  23550. # Whether or not to disallow shared libs when runtime libs are static.
  23551. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  23552. # Compiler flag to allow reflexive dlopens.
  23553. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  23554. # Compiler flag to generate shared objects directly from archives.
  23555. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  23556. # Whether the compiler copes with passing no objects directly.
  23557. compiler_needs_object=$lt_compiler_needs_object
  23558. # Create an old-style archive from a shared archive.
  23559. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  23560. # Create a temporary old-style archive to link instead of a shared archive.
  23561. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  23562. # Commands used to build a shared archive.
  23563. archive_cmds=$lt_archive_cmds
  23564. archive_expsym_cmds=$lt_archive_expsym_cmds
  23565. # Commands used to build a loadable module if different from building
  23566. # a shared archive.
  23567. module_cmds=$lt_module_cmds
  23568. module_expsym_cmds=$lt_module_expsym_cmds
  23569. # Whether we are building with GNU ld or not.
  23570. with_gnu_ld=$lt_with_gnu_ld
  23571. # Flag that allows shared libraries with undefined symbols to be built.
  23572. allow_undefined_flag=$lt_allow_undefined_flag
  23573. # Flag that enforces no undefined symbols.
  23574. no_undefined_flag=$lt_no_undefined_flag
  23575. # Flag to hardcode \$libdir into a binary during linking.
  23576. # This must work even if \$libdir does not exist
  23577. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  23578. # Whether we need a single "-rpath" flag with a separated argument.
  23579. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  23580. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  23581. # DIR into the resulting binary.
  23582. hardcode_direct=$hardcode_direct
  23583. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  23584. # DIR into the resulting binary and the resulting library dependency is
  23585. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  23586. # library is relocated.
  23587. hardcode_direct_absolute=$hardcode_direct_absolute
  23588. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23589. # into the resulting binary.
  23590. hardcode_minus_L=$hardcode_minus_L
  23591. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23592. # into the resulting binary.
  23593. hardcode_shlibpath_var=$hardcode_shlibpath_var
  23594. # Set to "yes" if building a shared library automatically hardcodes DIR
  23595. # into the library and all subsequent libraries and executables linked
  23596. # against it.
  23597. hardcode_automatic=$hardcode_automatic
  23598. # Set to yes if linker adds runtime paths of dependent libraries
  23599. # to runtime path list.
  23600. inherit_rpath=$inherit_rpath
  23601. # Whether libtool must link a program against all its dependency libraries.
  23602. link_all_deplibs=$link_all_deplibs
  23603. # Set to "yes" if exported symbols are required.
  23604. always_export_symbols=$always_export_symbols
  23605. # The commands to list exported symbols.
  23606. export_symbols_cmds=$lt_export_symbols_cmds
  23607. # Symbols that should not be listed in the preloaded symbols.
  23608. exclude_expsyms=$lt_exclude_expsyms
  23609. # Symbols that must always be exported.
  23610. include_expsyms=$lt_include_expsyms
  23611. # Commands necessary for linking programs (against libraries) with templates.
  23612. prelink_cmds=$lt_prelink_cmds
  23613. # Commands necessary for finishing linking programs.
  23614. postlink_cmds=$lt_postlink_cmds
  23615. # Specify filename containing input files.
  23616. file_list_spec=$lt_file_list_spec
  23617. # How to hardcode a shared library path into an executable.
  23618. hardcode_action=$hardcode_action
  23619. # The directories searched by this compiler when creating a shared library.
  23620. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  23621. # Dependencies to place before and after the objects being linked to
  23622. # create a shared library.
  23623. predep_objects=$lt_predep_objects
  23624. postdep_objects=$lt_postdep_objects
  23625. predeps=$lt_predeps
  23626. postdeps=$lt_postdeps
  23627. # The library search path used internally by the compiler when linking
  23628. # a shared library.
  23629. compiler_lib_search_path=$lt_compiler_lib_search_path
  23630. # ### END LIBTOOL CONFIG
  23631. _LT_EOF
  23632. cat <<'_LT_EOF' >> "$cfgfile"
  23633. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  23634. # func_munge_path_list VARIABLE PATH
  23635. # -----------------------------------
  23636. # VARIABLE is name of variable containing _space_ separated list of
  23637. # directories to be munged by the contents of PATH, which is string
  23638. # having a format:
  23639. # "DIR[:DIR]:"
  23640. # string "DIR[ DIR]" will be prepended to VARIABLE
  23641. # ":DIR[:DIR]"
  23642. # string "DIR[ DIR]" will be appended to VARIABLE
  23643. # "DIRP[:DIRP]::[DIRA:]DIRA"
  23644. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  23645. # "DIRA[ DIRA]" will be appended to VARIABLE
  23646. # "DIR[:DIR]"
  23647. # VARIABLE will be replaced by "DIR[ DIR]"
  23648. func_munge_path_list ()
  23649. {
  23650. case x$2 in
  23651. x)
  23652. ;;
  23653. *:)
  23654. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  23655. ;;
  23656. x:*)
  23657. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  23658. ;;
  23659. *::*)
  23660. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  23661. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  23662. ;;
  23663. *)
  23664. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  23665. ;;
  23666. esac
  23667. }
  23668. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  23669. func_cc_basename ()
  23670. {
  23671. for cc_temp in $*""; do
  23672. case $cc_temp in
  23673. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  23674. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  23675. \-*) ;;
  23676. *) break;;
  23677. esac
  23678. done
  23679. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  23680. }
  23681. # ### END FUNCTIONS SHARED WITH CONFIGURE
  23682. _LT_EOF
  23683. case $host_os in
  23684. aix3*)
  23685. cat <<\_LT_EOF >> "$cfgfile"
  23686. # AIX sometimes has problems with the GCC collect2 program. For some
  23687. # reason, if we set the COLLECT_NAMES environment variable, the problems
  23688. # vanish in a puff of smoke.
  23689. if test set != "${COLLECT_NAMES+set}"; then
  23690. COLLECT_NAMES=
  23691. export COLLECT_NAMES
  23692. fi
  23693. _LT_EOF
  23694. ;;
  23695. esac
  23696. ltmain=$ac_aux_dir/ltmain.sh
  23697. # We use sed instead of cat because bash on DJGPP gets confused if
  23698. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  23699. # text mode, it properly converts lines to CR/LF. This bash problem
  23700. # is reportedly fixed, but why not run on old versions too?
  23701. sed '$q' "$ltmain" >> "$cfgfile" \
  23702. || (rm -f "$cfgfile"; exit 1)
  23703. mv -f "$cfgfile" "$ofile" ||
  23704. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  23705. chmod +x "$ofile"
  23706. cat <<_LT_EOF >> "$ofile"
  23707. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  23708. # The linker used to build libraries.
  23709. LD=$lt_LD_CXX
  23710. # How to create reloadable object files.
  23711. reload_flag=$lt_reload_flag_CXX
  23712. reload_cmds=$lt_reload_cmds_CXX
  23713. # Commands used to build an old-style archive.
  23714. old_archive_cmds=$lt_old_archive_cmds_CXX
  23715. # A language specific compiler.
  23716. CC=$lt_compiler_CXX
  23717. # Is the compiler the GNU compiler?
  23718. with_gcc=$GCC_CXX
  23719. # Compiler flag to turn off builtin functions.
  23720. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  23721. # Additional compiler flags for building library objects.
  23722. pic_flag=$lt_lt_prog_compiler_pic_CXX
  23723. # How to pass a linker flag through the compiler.
  23724. wl=$lt_lt_prog_compiler_wl_CXX
  23725. # Compiler flag to prevent dynamic linking.
  23726. link_static_flag=$lt_lt_prog_compiler_static_CXX
  23727. # Does compiler simultaneously support -c and -o options?
  23728. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  23729. # Whether or not to add -lc for building shared libraries.
  23730. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  23731. # Whether or not to disallow shared libs when runtime libs are static.
  23732. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  23733. # Compiler flag to allow reflexive dlopens.
  23734. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  23735. # Compiler flag to generate shared objects directly from archives.
  23736. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  23737. # Whether the compiler copes with passing no objects directly.
  23738. compiler_needs_object=$lt_compiler_needs_object_CXX
  23739. # Create an old-style archive from a shared archive.
  23740. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  23741. # Create a temporary old-style archive to link instead of a shared archive.
  23742. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  23743. # Commands used to build a shared archive.
  23744. archive_cmds=$lt_archive_cmds_CXX
  23745. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  23746. # Commands used to build a loadable module if different from building
  23747. # a shared archive.
  23748. module_cmds=$lt_module_cmds_CXX
  23749. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  23750. # Whether we are building with GNU ld or not.
  23751. with_gnu_ld=$lt_with_gnu_ld_CXX
  23752. # Flag that allows shared libraries with undefined symbols to be built.
  23753. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  23754. # Flag that enforces no undefined symbols.
  23755. no_undefined_flag=$lt_no_undefined_flag_CXX
  23756. # Flag to hardcode \$libdir into a binary during linking.
  23757. # This must work even if \$libdir does not exist
  23758. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  23759. # Whether we need a single "-rpath" flag with a separated argument.
  23760. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  23761. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  23762. # DIR into the resulting binary.
  23763. hardcode_direct=$hardcode_direct_CXX
  23764. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  23765. # DIR into the resulting binary and the resulting library dependency is
  23766. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  23767. # library is relocated.
  23768. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  23769. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23770. # into the resulting binary.
  23771. hardcode_minus_L=$hardcode_minus_L_CXX
  23772. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23773. # into the resulting binary.
  23774. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  23775. # Set to "yes" if building a shared library automatically hardcodes DIR
  23776. # into the library and all subsequent libraries and executables linked
  23777. # against it.
  23778. hardcode_automatic=$hardcode_automatic_CXX
  23779. # Set to yes if linker adds runtime paths of dependent libraries
  23780. # to runtime path list.
  23781. inherit_rpath=$inherit_rpath_CXX
  23782. # Whether libtool must link a program against all its dependency libraries.
  23783. link_all_deplibs=$link_all_deplibs_CXX
  23784. # Set to "yes" if exported symbols are required.
  23785. always_export_symbols=$always_export_symbols_CXX
  23786. # The commands to list exported symbols.
  23787. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  23788. # Symbols that should not be listed in the preloaded symbols.
  23789. exclude_expsyms=$lt_exclude_expsyms_CXX
  23790. # Symbols that must always be exported.
  23791. include_expsyms=$lt_include_expsyms_CXX
  23792. # Commands necessary for linking programs (against libraries) with templates.
  23793. prelink_cmds=$lt_prelink_cmds_CXX
  23794. # Commands necessary for finishing linking programs.
  23795. postlink_cmds=$lt_postlink_cmds_CXX
  23796. # Specify filename containing input files.
  23797. file_list_spec=$lt_file_list_spec_CXX
  23798. # How to hardcode a shared library path into an executable.
  23799. hardcode_action=$hardcode_action_CXX
  23800. # The directories searched by this compiler when creating a shared library.
  23801. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  23802. # Dependencies to place before and after the objects being linked to
  23803. # create a shared library.
  23804. predep_objects=$lt_predep_objects_CXX
  23805. postdep_objects=$lt_postdep_objects_CXX
  23806. predeps=$lt_predeps_CXX
  23807. postdeps=$lt_postdeps_CXX
  23808. # The library search path used internally by the compiler when linking
  23809. # a shared library.
  23810. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  23811. # ### END LIBTOOL TAG CONFIG: CXX
  23812. _LT_EOF
  23813. ;;
  23814. esac
  23815. done # for ac_tag
  23816. as_fn_exit 0
  23817. _ACEOF
  23818. ac_clean_files=$ac_clean_files_save
  23819. test $ac_write_fail = 0 ||
  23820. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  23821. # configure is writing to config.log, and then calls config.status.
  23822. # config.status does its own redirection, appending to config.log.
  23823. # Unfortunately, on DOS this fails, as config.log is still kept open
  23824. # by configure, so config.status won't be able to write to it; its
  23825. # output is simply discarded. So we exec the FD to /dev/null,
  23826. # effectively closing config.log, so it can be properly (re)opened and
  23827. # appended to by config.status. When coming back to configure, we
  23828. # need to make the FD available again.
  23829. if test "$no_create" != yes; then
  23830. ac_cs_success=:
  23831. ac_config_status_args=
  23832. test "$silent" = yes &&
  23833. ac_config_status_args="$ac_config_status_args --quiet"
  23834. exec 5>/dev/null
  23835. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  23836. exec 5>>config.log
  23837. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  23838. # would make configure fail if this is the last instruction.
  23839. $ac_cs_success || as_fn_exit 1
  23840. fi
  23841. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  23842. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  23843. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  23844. fi
  23845. # Configuration results
  23846. { $as_echo "$as_me:${as_lineno-$LINENO}: result:
  23847. ##########################################################################
  23848. TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION})
  23849. ##########################################################################
  23850. libpcap: ${foundpcap} (${libpcap_version})
  23851. PF_RING libpcap ${pf_ring_found} ${pf_ring_lib}
  23852. libdnet: ${founddnet} ${libdnet_version}
  23853. autogen: ${AUTOGEN} (${AUTOGEN_VERSION})
  23854. Use libopts tearoff: ${enable_local_libopts}
  23855. 64bit counter support: ${use64bit_counters}
  23856. tcpdump binary path: ${tcpdump_path}
  23857. fragroute support: ${enable_fragroute}
  23858. tcpbridge support: ${enable_tcpbridge}
  23859. tcpliveplay support: ${enable_tcpliveplay}
  23860. Supported Packet Injection Methods (*):
  23861. Linux TX_RING: ${have_tx_ring}
  23862. Linux PF_PACKET: ${have_pf}
  23863. BSD BPF: ${have_bpf}
  23864. libdnet: ${have_libdnet}
  23865. pcap_inject: ${have_pcap_inject}
  23866. pcap_sendpacket: ${have_pcap_sendpacket} **
  23867. pcap_netmap ${have_pcap_netmap}
  23868. Linux/BSD netmap: ${have_netmap}
  23869. Tuntap device support: ${have_tuntap}
  23870. * In order of preference; see configure --help to override
  23871. ** Required for tcpbridge
  23872. " >&5
  23873. $as_echo "
  23874. ##########################################################################
  23875. TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION})
  23876. ##########################################################################
  23877. libpcap: ${foundpcap} (${libpcap_version})
  23878. PF_RING libpcap ${pf_ring_found} ${pf_ring_lib}
  23879. libdnet: ${founddnet} ${libdnet_version}
  23880. autogen: ${AUTOGEN} (${AUTOGEN_VERSION})
  23881. Use libopts tearoff: ${enable_local_libopts}
  23882. 64bit counter support: ${use64bit_counters}
  23883. tcpdump binary path: ${tcpdump_path}
  23884. fragroute support: ${enable_fragroute}
  23885. tcpbridge support: ${enable_tcpbridge}
  23886. tcpliveplay support: ${enable_tcpliveplay}
  23887. Supported Packet Injection Methods (*):
  23888. Linux TX_RING: ${have_tx_ring}
  23889. Linux PF_PACKET: ${have_pf}
  23890. BSD BPF: ${have_bpf}
  23891. libdnet: ${have_libdnet}
  23892. pcap_inject: ${have_pcap_inject}
  23893. pcap_sendpacket: ${have_pcap_sendpacket} **
  23894. pcap_netmap ${have_pcap_netmap}
  23895. Linux/BSD netmap: ${have_netmap}
  23896. Tuntap device support: ${have_tuntap}
  23897. * In order of preference; see configure --help to override
  23898. ** Required for tcpbridge
  23899. " >&6; }
  23900. case $host in
  23901. *-*-cygwin)
  23902. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Windows/Cygwin support is still somewhat experimental.
  23903. Please report any bugs! https://github.com/appneta/tcpreplay/issues" >&5
  23904. $as_echo "$as_me: WARNING: Windows/Cygwin support is still somewhat experimental.
  23905. Please report any bugs! https://github.com/appneta/tcpreplay/issues" >&2;}
  23906. ;;
  23907. esac