1
0

configure 820 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for tcpreplay 4.4.2.
  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.2'
  544. PACKAGE_STRING='tcpreplay 4.4.2'
  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__include
  681. DEPDIR
  682. OBJEXT
  683. EXEEXT
  684. ac_ct_CC
  685. CPPFLAGS
  686. LDFLAGS
  687. CFLAGS
  688. CC
  689. ac_ct_AR
  690. AR
  691. AM_BACKSLASH
  692. AM_DEFAULT_VERBOSITY
  693. AM_DEFAULT_V
  694. AM_V
  695. am__untar
  696. am__tar
  697. AMTAR
  698. am__leading_dot
  699. SET_MAKE
  700. AWK
  701. mkdir_p
  702. MKDIR_P
  703. INSTALL_STRIP_PROGRAM
  704. STRIP
  705. install_sh
  706. MAKEINFO
  707. AUTOHEADER
  708. AUTOMAKE
  709. AUTOCONF
  710. ACLOCAL
  711. VERSION
  712. PACKAGE
  713. CYGPATH_W
  714. am__isrc
  715. INSTALL_DATA
  716. INSTALL_SCRIPT
  717. INSTALL_PROGRAM
  718. LIBTOOL
  719. MACOSX_SDK_PATH
  720. CROSS_LD
  721. CROSS_ARCH
  722. target_os
  723. target_vendor
  724. target_cpu
  725. target
  726. host_os
  727. host_vendor
  728. host_cpu
  729. host
  730. build_os
  731. build_vendor
  732. build_cpu
  733. build
  734. TCPREPLAY_RELEASE
  735. TCPREPLAY_VERSION
  736. MAINT
  737. MAINTAINER_MODE_FALSE
  738. MAINTAINER_MODE_TRUE
  739. target_alias
  740. host_alias
  741. build_alias
  742. LIBS
  743. ECHO_T
  744. ECHO_N
  745. ECHO_C
  746. DEFS
  747. mandir
  748. localedir
  749. libdir
  750. psdir
  751. pdfdir
  752. dvidir
  753. htmldir
  754. infodir
  755. docdir
  756. oldincludedir
  757. includedir
  758. runstatedir
  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. am__quote'
  779. ac_subst_files=''
  780. ac_user_opts='
  781. enable_option_checking
  782. enable_maintainer_mode
  783. with_dmalloc
  784. with_macos_sdk
  785. with_pfring_lib
  786. enable_silent_rules
  787. enable_dependency_tracking
  788. enable_shared
  789. enable_static
  790. with_pic
  791. enable_fast_install
  792. with_aix_soname
  793. with_gnu_ld
  794. with_sysroot
  795. enable_libtool_lock
  796. enable_largefile
  797. enable_asan
  798. enable_debug
  799. enable_extra_debug
  800. enable_timestamp_trace
  801. enable_dmalloc
  802. enable_pedantic
  803. enable_efence
  804. enable_gprof
  805. enable_pcapconfig
  806. enable_64bits
  807. enable_force_bpf
  808. enable_force_pf
  809. enable_force_libdnet
  810. enable_force_inject
  811. enable_force_sendpacket
  812. enable_static_link
  813. enable_dynamic_link
  814. enable_tuntap
  815. with_libpcap
  816. with_netmap
  817. with_libdnet
  818. with_pcapnav_config
  819. with_tcpdump
  820. with_testnic
  821. with_testnic2
  822. enable_nls
  823. enable_local_libopts
  824. enable_libopts_install
  825. with_autoopts_config
  826. with_regex_header
  827. with_libregex
  828. with_libregex_cflags
  829. with_libregex_libs
  830. enable_optional_args
  831. '
  832. ac_precious_vars='build_alias
  833. host_alias
  834. target_alias
  835. CC
  836. CFLAGS
  837. LDFLAGS
  838. LIBS
  839. CPPFLAGS
  840. LT_SYS_LIBRARY_PATH
  841. CPP
  842. CXX
  843. CXXFLAGS
  844. CCC
  845. CXXCPP'
  846. # Initialize some variables set by options.
  847. ac_init_help=
  848. ac_init_version=false
  849. ac_unrecognized_opts=
  850. ac_unrecognized_sep=
  851. # The variables have the same names as the options, with
  852. # dashes changed to underlines.
  853. cache_file=/dev/null
  854. exec_prefix=NONE
  855. no_create=
  856. no_recursion=
  857. prefix=NONE
  858. program_prefix=NONE
  859. program_suffix=NONE
  860. program_transform_name=s,x,x,
  861. silent=
  862. site=
  863. srcdir=
  864. verbose=
  865. x_includes=NONE
  866. x_libraries=NONE
  867. # Installation directory options.
  868. # These are left unexpanded so users can "make install exec_prefix=/foo"
  869. # and all the variables that are supposed to be based on exec_prefix
  870. # by default will actually change.
  871. # Use braces instead of parens because sh, perl, etc. also accept them.
  872. # (The list follows the same order as the GNU Coding Standards.)
  873. bindir='${exec_prefix}/bin'
  874. sbindir='${exec_prefix}/sbin'
  875. libexecdir='${exec_prefix}/libexec'
  876. datarootdir='${prefix}/share'
  877. datadir='${datarootdir}'
  878. sysconfdir='${prefix}/etc'
  879. sharedstatedir='${prefix}/com'
  880. localstatedir='${prefix}/var'
  881. runstatedir='${localstatedir}/run'
  882. includedir='${prefix}/include'
  883. oldincludedir='/usr/include'
  884. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  885. infodir='${datarootdir}/info'
  886. htmldir='${docdir}'
  887. dvidir='${docdir}'
  888. pdfdir='${docdir}'
  889. psdir='${docdir}'
  890. libdir='${exec_prefix}/lib'
  891. localedir='${datarootdir}/locale'
  892. mandir='${datarootdir}/man'
  893. ac_prev=
  894. ac_dashdash=
  895. for ac_option
  896. do
  897. # If the previous option needs an argument, assign it.
  898. if test -n "$ac_prev"; then
  899. eval $ac_prev=\$ac_option
  900. ac_prev=
  901. continue
  902. fi
  903. case $ac_option in
  904. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  905. *=) ac_optarg= ;;
  906. *) ac_optarg=yes ;;
  907. esac
  908. # Accept the important Cygnus configure options, so we can diagnose typos.
  909. case $ac_dashdash$ac_option in
  910. --)
  911. ac_dashdash=yes ;;
  912. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  913. ac_prev=bindir ;;
  914. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  915. bindir=$ac_optarg ;;
  916. -build | --build | --buil | --bui | --bu)
  917. ac_prev=build_alias ;;
  918. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  919. build_alias=$ac_optarg ;;
  920. -cache-file | --cache-file | --cache-fil | --cache-fi \
  921. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  922. ac_prev=cache_file ;;
  923. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  924. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  925. cache_file=$ac_optarg ;;
  926. --config-cache | -C)
  927. cache_file=config.cache ;;
  928. -datadir | --datadir | --datadi | --datad)
  929. ac_prev=datadir ;;
  930. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  931. datadir=$ac_optarg ;;
  932. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  933. | --dataroo | --dataro | --datar)
  934. ac_prev=datarootdir ;;
  935. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  936. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  937. datarootdir=$ac_optarg ;;
  938. -disable-* | --disable-*)
  939. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  940. # Reject names that are not valid shell variable names.
  941. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  942. as_fn_error $? "invalid feature name: $ac_useropt"
  943. ac_useropt_orig=$ac_useropt
  944. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  945. case $ac_user_opts in
  946. *"
  947. "enable_$ac_useropt"
  948. "*) ;;
  949. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  950. ac_unrecognized_sep=', ';;
  951. esac
  952. eval enable_$ac_useropt=no ;;
  953. -docdir | --docdir | --docdi | --doc | --do)
  954. ac_prev=docdir ;;
  955. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  956. docdir=$ac_optarg ;;
  957. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  958. ac_prev=dvidir ;;
  959. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  960. dvidir=$ac_optarg ;;
  961. -enable-* | --enable-*)
  962. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  963. # Reject names that are not valid shell variable names.
  964. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  965. as_fn_error $? "invalid feature name: $ac_useropt"
  966. ac_useropt_orig=$ac_useropt
  967. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  968. case $ac_user_opts in
  969. *"
  970. "enable_$ac_useropt"
  971. "*) ;;
  972. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  973. ac_unrecognized_sep=', ';;
  974. esac
  975. eval enable_$ac_useropt=\$ac_optarg ;;
  976. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  977. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  978. | --exec | --exe | --ex)
  979. ac_prev=exec_prefix ;;
  980. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  981. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  982. | --exec=* | --exe=* | --ex=*)
  983. exec_prefix=$ac_optarg ;;
  984. -gas | --gas | --ga | --g)
  985. # Obsolete; use --with-gas.
  986. with_gas=yes ;;
  987. -help | --help | --hel | --he | -h)
  988. ac_init_help=long ;;
  989. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  990. ac_init_help=recursive ;;
  991. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  992. ac_init_help=short ;;
  993. -host | --host | --hos | --ho)
  994. ac_prev=host_alias ;;
  995. -host=* | --host=* | --hos=* | --ho=*)
  996. host_alias=$ac_optarg ;;
  997. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  998. ac_prev=htmldir ;;
  999. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1000. | --ht=*)
  1001. htmldir=$ac_optarg ;;
  1002. -includedir | --includedir | --includedi | --included | --include \
  1003. | --includ | --inclu | --incl | --inc)
  1004. ac_prev=includedir ;;
  1005. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1006. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1007. includedir=$ac_optarg ;;
  1008. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1009. ac_prev=infodir ;;
  1010. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1011. infodir=$ac_optarg ;;
  1012. -libdir | --libdir | --libdi | --libd)
  1013. ac_prev=libdir ;;
  1014. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1015. libdir=$ac_optarg ;;
  1016. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1017. | --libexe | --libex | --libe)
  1018. ac_prev=libexecdir ;;
  1019. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1020. | --libexe=* | --libex=* | --libe=*)
  1021. libexecdir=$ac_optarg ;;
  1022. -localedir | --localedir | --localedi | --localed | --locale)
  1023. ac_prev=localedir ;;
  1024. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1025. localedir=$ac_optarg ;;
  1026. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1027. | --localstate | --localstat | --localsta | --localst | --locals)
  1028. ac_prev=localstatedir ;;
  1029. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1030. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1031. localstatedir=$ac_optarg ;;
  1032. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1033. ac_prev=mandir ;;
  1034. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1035. mandir=$ac_optarg ;;
  1036. -nfp | --nfp | --nf)
  1037. # Obsolete; use --without-fp.
  1038. with_fp=no ;;
  1039. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1040. | --no-cr | --no-c | -n)
  1041. no_create=yes ;;
  1042. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1043. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1044. no_recursion=yes ;;
  1045. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1046. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1047. | --oldin | --oldi | --old | --ol | --o)
  1048. ac_prev=oldincludedir ;;
  1049. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1050. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1051. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1052. oldincludedir=$ac_optarg ;;
  1053. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1054. ac_prev=prefix ;;
  1055. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1056. prefix=$ac_optarg ;;
  1057. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1058. | --program-pre | --program-pr | --program-p)
  1059. ac_prev=program_prefix ;;
  1060. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1061. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1062. program_prefix=$ac_optarg ;;
  1063. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1064. | --program-suf | --program-su | --program-s)
  1065. ac_prev=program_suffix ;;
  1066. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1067. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1068. program_suffix=$ac_optarg ;;
  1069. -program-transform-name | --program-transform-name \
  1070. | --program-transform-nam | --program-transform-na \
  1071. | --program-transform-n | --program-transform- \
  1072. | --program-transform | --program-transfor \
  1073. | --program-transfo | --program-transf \
  1074. | --program-trans | --program-tran \
  1075. | --progr-tra | --program-tr | --program-t)
  1076. ac_prev=program_transform_name ;;
  1077. -program-transform-name=* | --program-transform-name=* \
  1078. | --program-transform-nam=* | --program-transform-na=* \
  1079. | --program-transform-n=* | --program-transform-=* \
  1080. | --program-transform=* | --program-transfor=* \
  1081. | --program-transfo=* | --program-transf=* \
  1082. | --program-trans=* | --program-tran=* \
  1083. | --progr-tra=* | --program-tr=* | --program-t=*)
  1084. program_transform_name=$ac_optarg ;;
  1085. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1086. ac_prev=pdfdir ;;
  1087. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1088. pdfdir=$ac_optarg ;;
  1089. -psdir | --psdir | --psdi | --psd | --ps)
  1090. ac_prev=psdir ;;
  1091. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1092. psdir=$ac_optarg ;;
  1093. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1094. | -silent | --silent | --silen | --sile | --sil)
  1095. silent=yes ;;
  1096. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1097. | --runstate | --runstat | --runsta | --runst | --runs \
  1098. | --run | --ru | --r)
  1099. ac_prev=runstatedir ;;
  1100. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1101. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1102. | --run=* | --ru=* | --r=*)
  1103. runstatedir=$ac_optarg ;;
  1104. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1105. ac_prev=sbindir ;;
  1106. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1107. | --sbi=* | --sb=*)
  1108. sbindir=$ac_optarg ;;
  1109. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1110. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1111. | --sharedst | --shareds | --shared | --share | --shar \
  1112. | --sha | --sh)
  1113. ac_prev=sharedstatedir ;;
  1114. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1115. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1116. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1117. | --sha=* | --sh=*)
  1118. sharedstatedir=$ac_optarg ;;
  1119. -site | --site | --sit)
  1120. ac_prev=site ;;
  1121. -site=* | --site=* | --sit=*)
  1122. site=$ac_optarg ;;
  1123. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1124. ac_prev=srcdir ;;
  1125. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1126. srcdir=$ac_optarg ;;
  1127. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1128. | --syscon | --sysco | --sysc | --sys | --sy)
  1129. ac_prev=sysconfdir ;;
  1130. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1131. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1132. sysconfdir=$ac_optarg ;;
  1133. -target | --target | --targe | --targ | --tar | --ta | --t)
  1134. ac_prev=target_alias ;;
  1135. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1136. target_alias=$ac_optarg ;;
  1137. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1138. verbose=yes ;;
  1139. -version | --version | --versio | --versi | --vers | -V)
  1140. ac_init_version=: ;;
  1141. -with-* | --with-*)
  1142. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1143. # Reject names that are not valid shell variable names.
  1144. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1145. as_fn_error $? "invalid package name: $ac_useropt"
  1146. ac_useropt_orig=$ac_useropt
  1147. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1148. case $ac_user_opts in
  1149. *"
  1150. "with_$ac_useropt"
  1151. "*) ;;
  1152. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1153. ac_unrecognized_sep=', ';;
  1154. esac
  1155. eval with_$ac_useropt=\$ac_optarg ;;
  1156. -without-* | --without-*)
  1157. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1158. # Reject names that are not valid shell variable names.
  1159. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1160. as_fn_error $? "invalid package name: $ac_useropt"
  1161. ac_useropt_orig=$ac_useropt
  1162. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1163. case $ac_user_opts in
  1164. *"
  1165. "with_$ac_useropt"
  1166. "*) ;;
  1167. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1168. ac_unrecognized_sep=', ';;
  1169. esac
  1170. eval with_$ac_useropt=no ;;
  1171. --x)
  1172. # Obsolete; use --with-x.
  1173. with_x=yes ;;
  1174. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1175. | --x-incl | --x-inc | --x-in | --x-i)
  1176. ac_prev=x_includes ;;
  1177. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1178. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1179. x_includes=$ac_optarg ;;
  1180. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1181. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1182. ac_prev=x_libraries ;;
  1183. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1184. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1185. x_libraries=$ac_optarg ;;
  1186. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1187. Try \`$0 --help' for more information"
  1188. ;;
  1189. *=*)
  1190. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1191. # Reject names that are not valid shell variable names.
  1192. case $ac_envvar in #(
  1193. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1194. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1195. esac
  1196. eval $ac_envvar=\$ac_optarg
  1197. export $ac_envvar ;;
  1198. *)
  1199. # FIXME: should be removed in autoconf 3.0.
  1200. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1201. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1202. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1203. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1204. ;;
  1205. esac
  1206. done
  1207. if test -n "$ac_prev"; then
  1208. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1209. as_fn_error $? "missing argument to $ac_option"
  1210. fi
  1211. if test -n "$ac_unrecognized_opts"; then
  1212. case $enable_option_checking in
  1213. no) ;;
  1214. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1215. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1216. esac
  1217. fi
  1218. # Check all directory arguments for consistency.
  1219. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1220. datadir sysconfdir sharedstatedir localstatedir includedir \
  1221. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1222. libdir localedir mandir runstatedir
  1223. do
  1224. eval ac_val=\$$ac_var
  1225. # Remove trailing slashes.
  1226. case $ac_val in
  1227. */ )
  1228. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1229. eval $ac_var=\$ac_val;;
  1230. esac
  1231. # Be sure to have absolute directory names.
  1232. case $ac_val in
  1233. [\\/$]* | ?:[\\/]* ) continue;;
  1234. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1235. esac
  1236. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1237. done
  1238. # There might be people who depend on the old broken behavior: `$host'
  1239. # used to hold the argument of --host etc.
  1240. # FIXME: To remove some day.
  1241. build=$build_alias
  1242. host=$host_alias
  1243. target=$target_alias
  1244. # FIXME: To remove some day.
  1245. if test "x$host_alias" != x; then
  1246. if test "x$build_alias" = x; then
  1247. cross_compiling=maybe
  1248. elif test "x$build_alias" != "x$host_alias"; then
  1249. cross_compiling=yes
  1250. fi
  1251. fi
  1252. ac_tool_prefix=
  1253. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1254. test "$silent" = yes && exec 6>/dev/null
  1255. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1256. ac_ls_di=`ls -di .` &&
  1257. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1258. as_fn_error $? "working directory cannot be determined"
  1259. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1260. as_fn_error $? "pwd does not report name of working directory"
  1261. # Find the source files, if location was not specified.
  1262. if test -z "$srcdir"; then
  1263. ac_srcdir_defaulted=yes
  1264. # Try the directory containing this script, then the parent directory.
  1265. ac_confdir=`$as_dirname -- "$as_myself" ||
  1266. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1267. X"$as_myself" : 'X\(//\)[^/]' \| \
  1268. X"$as_myself" : 'X\(//\)$' \| \
  1269. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1270. $as_echo X"$as_myself" |
  1271. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1272. s//\1/
  1273. q
  1274. }
  1275. /^X\(\/\/\)[^/].*/{
  1276. s//\1/
  1277. q
  1278. }
  1279. /^X\(\/\/\)$/{
  1280. s//\1/
  1281. q
  1282. }
  1283. /^X\(\/\).*/{
  1284. s//\1/
  1285. q
  1286. }
  1287. s/.*/./; q'`
  1288. srcdir=$ac_confdir
  1289. if test ! -r "$srcdir/$ac_unique_file"; then
  1290. srcdir=..
  1291. fi
  1292. else
  1293. ac_srcdir_defaulted=no
  1294. fi
  1295. if test ! -r "$srcdir/$ac_unique_file"; then
  1296. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1297. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1298. fi
  1299. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1300. ac_abs_confdir=`(
  1301. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1302. pwd)`
  1303. # When building in place, set srcdir=.
  1304. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1305. srcdir=.
  1306. fi
  1307. # Remove unnecessary trailing slashes from srcdir.
  1308. # Double slashes in file names in object file debugging info
  1309. # mess up M-x gdb in Emacs.
  1310. case $srcdir in
  1311. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1312. esac
  1313. for ac_var in $ac_precious_vars; do
  1314. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1315. eval ac_env_${ac_var}_value=\$${ac_var}
  1316. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1317. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1318. done
  1319. #
  1320. # Report the --help message.
  1321. #
  1322. if test "$ac_init_help" = "long"; then
  1323. # Omit some internal or obsolete options to make the list less imposing.
  1324. # This message is too long to be a string in the A/UX 3.1 sh.
  1325. cat <<_ACEOF
  1326. \`configure' configures tcpreplay 4.4.2 to adapt to many kinds of systems.
  1327. Usage: $0 [OPTION]... [VAR=VALUE]...
  1328. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1329. VAR=VALUE. See below for descriptions of some of the useful variables.
  1330. Defaults for the options are specified in brackets.
  1331. Configuration:
  1332. -h, --help display this help and exit
  1333. --help=short display options specific to this package
  1334. --help=recursive display the short help of all the included packages
  1335. -V, --version display version information and exit
  1336. -q, --quiet, --silent do not print \`checking ...' messages
  1337. --cache-file=FILE cache test results in FILE [disabled]
  1338. -C, --config-cache alias for \`--cache-file=config.cache'
  1339. -n, --no-create do not create output files
  1340. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1341. Installation directories:
  1342. --prefix=PREFIX install architecture-independent files in PREFIX
  1343. [$ac_default_prefix]
  1344. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1345. [PREFIX]
  1346. By default, \`make install' will install all the files in
  1347. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1348. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1349. for instance \`--prefix=\$HOME'.
  1350. For better control, use the options below.
  1351. Fine tuning of the installation directories:
  1352. --bindir=DIR user executables [EPREFIX/bin]
  1353. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1354. --libexecdir=DIR program executables [EPREFIX/libexec]
  1355. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1356. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1357. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1358. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1359. --libdir=DIR object code libraries [EPREFIX/lib]
  1360. --includedir=DIR C header files [PREFIX/include]
  1361. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1362. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1363. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1364. --infodir=DIR info documentation [DATAROOTDIR/info]
  1365. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1366. --mandir=DIR man documentation [DATAROOTDIR/man]
  1367. --docdir=DIR documentation root [DATAROOTDIR/doc/tcpreplay]
  1368. --htmldir=DIR html documentation [DOCDIR]
  1369. --dvidir=DIR dvi documentation [DOCDIR]
  1370. --pdfdir=DIR pdf documentation [DOCDIR]
  1371. --psdir=DIR ps documentation [DOCDIR]
  1372. _ACEOF
  1373. cat <<\_ACEOF
  1374. Program names:
  1375. --program-prefix=PREFIX prepend PREFIX to installed program names
  1376. --program-suffix=SUFFIX append SUFFIX to installed program names
  1377. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1378. System types:
  1379. --build=BUILD configure for building on BUILD [guessed]
  1380. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1381. --target=TARGET configure for building compilers for TARGET [HOST]
  1382. _ACEOF
  1383. fi
  1384. if test -n "$ac_init_help"; then
  1385. case $ac_init_help in
  1386. short | recursive ) echo "Configuration of tcpreplay 4.4.2:";;
  1387. esac
  1388. cat <<\_ACEOF
  1389. Optional Features:
  1390. --disable-option-checking ignore unrecognized --enable/--with options
  1391. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1392. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1393. --disable-maintainer-mode
  1394. disable make rules and dependencies not useful (and
  1395. sometimes confusing) to the casual installer
  1396. --enable-silent-rules less verbose build output (undo: "make V=1")
  1397. --disable-silent-rules verbose build output (undo: "make V=0")
  1398. --enable-dependency-tracking
  1399. do not reject slow dependency extractors
  1400. --disable-dependency-tracking
  1401. speeds up one-time build
  1402. --enable-shared[=PKGS] build shared libraries [default=yes]
  1403. --enable-static[=PKGS] build static libraries [default=yes]
  1404. --enable-fast-install[=PKGS]
  1405. optimize for fast installation [default=yes]
  1406. --disable-libtool-lock avoid locking (might break parallel builds)
  1407. --disable-largefile omit support for large files
  1408. --enable-asan Enable Address Sanitizer support
  1409. --enable-debug Enable debugging code and support for the -d option
  1410. --enable-extra-debug Enable additional debugging code (may affect
  1411. performance)
  1412. --timestamp-trace Enable dumping of trace timestamps at the end of a
  1413. test
  1414. --enable-dmalloc Enable linking to dmalloc for better memory
  1415. debugging
  1416. --enable-pedantic Enable gcc's -pedantic option
  1417. --enable-efence Enable Electric Fence memory debugger
  1418. --enable-gprof Enable GNU Profiler
  1419. --enable-pcapconfig Enable automatic libpcap config, reverting to system
  1420. scanning
  1421. --disable-64bits Do not use 64bit packet counters
  1422. --enable-force-bpf Force using BPF for sending packets
  1423. --enable-force-pf Force using Linux's PF_PACKET for sending packets
  1424. --enable-force-libdnet Force using libdnet for sending packets
  1425. --enable-force-inject Force using libpcap's pcap_inject() for sending
  1426. packets
  1427. --enable-force-sendpacket
  1428. Force using libpcap's pcap_sendpacket() for sending
  1429. packets
  1430. --enable-static-link Use static libraries ( .a or .A.tbd ) - default no
  1431. --enable-dynamic-link Use shared libraries ( .so .dylib or .tbd ) -
  1432. default yes
  1433. --disable-tuntap Disable tuntap support
  1434. --disable-nls disable nls support in libopts
  1435. --enable-local-libopts Use the supplied libopts tearoff code
  1436. --enable-libopts-install
  1437. Install libopts with client installation
  1438. --disable-optional-args not wanting optional option args
  1439. Optional Packages:
  1440. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1441. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1442. --with-dmalloc use dmalloc, as in http://www.dmalloc.com
  1443. --with-macos-sdk=VER Specify the macOS SDK version to use.
  1444. --with-pfring-lib Use a specific PF_RING static library when using
  1445. PF_RING libpcap.
  1446. Usage: --with-pfring-lib=<library>
  1447. e. g.: --with-pfring-lib=/usr/lib/libpfring_zc_x86_64.a
  1448. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1449. both]
  1450. --with-aix-soname=aix|svr4|both
  1451. shared library versioning (aka "SONAME") variant to
  1452. provide on AIX, [default=aix].
  1453. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1454. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1455. compiler's sysroot if not specified).
  1456. --with-libpcap=DIR Use libpcap in DIR
  1457. --with-netmap=DIR Use netmap in DIR
  1458. --with-libdnet=DIR Use libdnet in DIR
  1459. --with-pcapnav-config=FILE
  1460. Use given pcapnav-config
  1461. --with-tcpdump=FILE Path to tcpdump binary
  1462. --with-testnic=NIC Select which network card to use for testing
  1463. --with-testnic2=NIC2 Select an optional 2nd network card to use for
  1464. testing
  1465. --with-autoopts-config specify the config-info script
  1466. --with-regex-header a reg expr header is specified
  1467. --with-libregex libregex installation prefix
  1468. --with-libregex-cflags libregex compile flags
  1469. --with-libregex-libs libregex link command arguments
  1470. Some influential environment variables:
  1471. CC C compiler command
  1472. CFLAGS C compiler flags
  1473. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1474. nonstandard directory <lib dir>
  1475. LIBS libraries to pass to the linker, e.g. -l<library>
  1476. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1477. you have headers in a nonstandard directory <include dir>
  1478. LT_SYS_LIBRARY_PATH
  1479. User-defined run-time library search path.
  1480. CPP C preprocessor
  1481. CXX C++ compiler command
  1482. CXXFLAGS C++ compiler flags
  1483. CXXCPP C++ preprocessor
  1484. Use these variables to override the choices made by `configure' or to help
  1485. it to find libraries and programs with nonstandard names/locations.
  1486. Report bugs to <https://github.com/appneta/tcpreplay/issues>.
  1487. tcpreplay home page: <http://tcpreplay.sourceforge.net/>.
  1488. _ACEOF
  1489. ac_status=$?
  1490. fi
  1491. if test "$ac_init_help" = "recursive"; then
  1492. # If there are subdirs, report their specific --help.
  1493. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1494. test -d "$ac_dir" ||
  1495. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1496. continue
  1497. ac_builddir=.
  1498. case "$ac_dir" in
  1499. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1500. *)
  1501. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1502. # A ".." for each directory in $ac_dir_suffix.
  1503. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1504. case $ac_top_builddir_sub in
  1505. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1506. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1507. esac ;;
  1508. esac
  1509. ac_abs_top_builddir=$ac_pwd
  1510. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1511. # for backward compatibility:
  1512. ac_top_builddir=$ac_top_build_prefix
  1513. case $srcdir in
  1514. .) # We are building in place.
  1515. ac_srcdir=.
  1516. ac_top_srcdir=$ac_top_builddir_sub
  1517. ac_abs_top_srcdir=$ac_pwd ;;
  1518. [\\/]* | ?:[\\/]* ) # Absolute name.
  1519. ac_srcdir=$srcdir$ac_dir_suffix;
  1520. ac_top_srcdir=$srcdir
  1521. ac_abs_top_srcdir=$srcdir ;;
  1522. *) # Relative name.
  1523. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1524. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1525. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1526. esac
  1527. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1528. cd "$ac_dir" || { ac_status=$?; continue; }
  1529. # Check for guested configure.
  1530. if test -f "$ac_srcdir/configure.gnu"; then
  1531. echo &&
  1532. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1533. elif test -f "$ac_srcdir/configure"; then
  1534. echo &&
  1535. $SHELL "$ac_srcdir/configure" --help=recursive
  1536. else
  1537. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1538. fi || ac_status=$?
  1539. cd "$ac_pwd" || { ac_status=$?; break; }
  1540. done
  1541. fi
  1542. test -n "$ac_init_help" && exit $ac_status
  1543. if $ac_init_version; then
  1544. cat <<\_ACEOF
  1545. tcpreplay configure 4.4.2
  1546. generated by GNU Autoconf 2.69
  1547. Copyright (C) 2012 Free Software Foundation, Inc.
  1548. This configure script is free software; the Free Software Foundation
  1549. gives unlimited permission to copy, distribute and modify it.
  1550. _ACEOF
  1551. exit
  1552. fi
  1553. ## ------------------------ ##
  1554. ## Autoconf initialization. ##
  1555. ## ------------------------ ##
  1556. # ac_fn_c_try_compile LINENO
  1557. # --------------------------
  1558. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1559. ac_fn_c_try_compile ()
  1560. {
  1561. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1562. rm -f conftest.$ac_objext
  1563. if { { ac_try="$ac_compile"
  1564. case "(($ac_try" in
  1565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1566. *) ac_try_echo=$ac_try;;
  1567. esac
  1568. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1569. $as_echo "$ac_try_echo"; } >&5
  1570. (eval "$ac_compile") 2>conftest.err
  1571. ac_status=$?
  1572. if test -s conftest.err; then
  1573. grep -v '^ *+' conftest.err >conftest.er1
  1574. cat conftest.er1 >&5
  1575. mv -f conftest.er1 conftest.err
  1576. fi
  1577. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1578. test $ac_status = 0; } && {
  1579. test -z "$ac_c_werror_flag" ||
  1580. test ! -s conftest.err
  1581. } && test -s conftest.$ac_objext; then :
  1582. ac_retval=0
  1583. else
  1584. $as_echo "$as_me: failed program was:" >&5
  1585. sed 's/^/| /' conftest.$ac_ext >&5
  1586. ac_retval=1
  1587. fi
  1588. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1589. as_fn_set_status $ac_retval
  1590. } # ac_fn_c_try_compile
  1591. # ac_fn_c_try_link LINENO
  1592. # -----------------------
  1593. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1594. ac_fn_c_try_link ()
  1595. {
  1596. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1597. rm -f conftest.$ac_objext conftest$ac_exeext
  1598. if { { ac_try="$ac_link"
  1599. case "(($ac_try" in
  1600. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1601. *) ac_try_echo=$ac_try;;
  1602. esac
  1603. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1604. $as_echo "$ac_try_echo"; } >&5
  1605. (eval "$ac_link") 2>conftest.err
  1606. ac_status=$?
  1607. if test -s conftest.err; then
  1608. grep -v '^ *+' conftest.err >conftest.er1
  1609. cat conftest.er1 >&5
  1610. mv -f conftest.er1 conftest.err
  1611. fi
  1612. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1613. test $ac_status = 0; } && {
  1614. test -z "$ac_c_werror_flag" ||
  1615. test ! -s conftest.err
  1616. } && test -s conftest$ac_exeext && {
  1617. test "$cross_compiling" = yes ||
  1618. test -x conftest$ac_exeext
  1619. }; then :
  1620. ac_retval=0
  1621. else
  1622. $as_echo "$as_me: failed program was:" >&5
  1623. sed 's/^/| /' conftest.$ac_ext >&5
  1624. ac_retval=1
  1625. fi
  1626. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1627. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1628. # interfere with the next link command; also delete a directory that is
  1629. # left behind by Apple's compiler. We do this before executing the actions.
  1630. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1631. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1632. as_fn_set_status $ac_retval
  1633. } # ac_fn_c_try_link
  1634. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1635. # -------------------------------------------------------
  1636. # Tests whether HEADER exists and can be compiled using the include files in
  1637. # INCLUDES, setting the cache variable VAR accordingly.
  1638. ac_fn_c_check_header_compile ()
  1639. {
  1640. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1642. $as_echo_n "checking for $2... " >&6; }
  1643. if eval \${$3+:} false; then :
  1644. $as_echo_n "(cached) " >&6
  1645. else
  1646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1647. /* end confdefs.h. */
  1648. $4
  1649. #include <$2>
  1650. _ACEOF
  1651. if ac_fn_c_try_compile "$LINENO"; then :
  1652. eval "$3=yes"
  1653. else
  1654. eval "$3=no"
  1655. fi
  1656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1657. fi
  1658. eval ac_res=\$$3
  1659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1660. $as_echo "$ac_res" >&6; }
  1661. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1662. } # ac_fn_c_check_header_compile
  1663. # ac_fn_c_try_cpp LINENO
  1664. # ----------------------
  1665. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1666. ac_fn_c_try_cpp ()
  1667. {
  1668. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1669. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1670. case "(($ac_try" in
  1671. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1672. *) ac_try_echo=$ac_try;;
  1673. esac
  1674. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1675. $as_echo "$ac_try_echo"; } >&5
  1676. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1677. ac_status=$?
  1678. if test -s conftest.err; then
  1679. grep -v '^ *+' conftest.err >conftest.er1
  1680. cat conftest.er1 >&5
  1681. mv -f conftest.er1 conftest.err
  1682. fi
  1683. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1684. test $ac_status = 0; } > conftest.i && {
  1685. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1686. test ! -s conftest.err
  1687. }; then :
  1688. ac_retval=0
  1689. else
  1690. $as_echo "$as_me: failed program was:" >&5
  1691. sed 's/^/| /' conftest.$ac_ext >&5
  1692. ac_retval=1
  1693. fi
  1694. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1695. as_fn_set_status $ac_retval
  1696. } # ac_fn_c_try_cpp
  1697. # ac_fn_c_try_run LINENO
  1698. # ----------------------
  1699. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1700. # that executables *can* be run.
  1701. ac_fn_c_try_run ()
  1702. {
  1703. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1704. if { { ac_try="$ac_link"
  1705. case "(($ac_try" in
  1706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1707. *) ac_try_echo=$ac_try;;
  1708. esac
  1709. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1710. $as_echo "$ac_try_echo"; } >&5
  1711. (eval "$ac_link") 2>&5
  1712. ac_status=$?
  1713. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1714. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1715. { { case "(($ac_try" in
  1716. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1717. *) ac_try_echo=$ac_try;;
  1718. esac
  1719. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1720. $as_echo "$ac_try_echo"; } >&5
  1721. (eval "$ac_try") 2>&5
  1722. ac_status=$?
  1723. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1724. test $ac_status = 0; }; }; then :
  1725. ac_retval=0
  1726. else
  1727. $as_echo "$as_me: program exited with status $ac_status" >&5
  1728. $as_echo "$as_me: failed program was:" >&5
  1729. sed 's/^/| /' conftest.$ac_ext >&5
  1730. ac_retval=$ac_status
  1731. fi
  1732. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1733. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1734. as_fn_set_status $ac_retval
  1735. } # ac_fn_c_try_run
  1736. # ac_fn_c_check_func LINENO FUNC VAR
  1737. # ----------------------------------
  1738. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1739. ac_fn_c_check_func ()
  1740. {
  1741. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1743. $as_echo_n "checking for $2... " >&6; }
  1744. if eval \${$3+:} false; then :
  1745. $as_echo_n "(cached) " >&6
  1746. else
  1747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1748. /* end confdefs.h. */
  1749. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1750. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1751. #define $2 innocuous_$2
  1752. /* System header to define __stub macros and hopefully few prototypes,
  1753. which can conflict with char $2 (); below.
  1754. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1755. <limits.h> exists even on freestanding compilers. */
  1756. #ifdef __STDC__
  1757. # include <limits.h>
  1758. #else
  1759. # include <assert.h>
  1760. #endif
  1761. #undef $2
  1762. /* Override any GCC internal prototype to avoid an error.
  1763. Use char because int might match the return type of a GCC
  1764. builtin and then its argument prototype would still apply. */
  1765. #ifdef __cplusplus
  1766. extern "C"
  1767. #endif
  1768. char $2 ();
  1769. /* The GNU C library defines this for functions which it implements
  1770. to always fail with ENOSYS. Some functions are actually named
  1771. something starting with __ and the normal name is an alias. */
  1772. #if defined __stub_$2 || defined __stub___$2
  1773. choke me
  1774. #endif
  1775. int
  1776. main ()
  1777. {
  1778. return $2 ();
  1779. ;
  1780. return 0;
  1781. }
  1782. _ACEOF
  1783. if ac_fn_c_try_link "$LINENO"; then :
  1784. eval "$3=yes"
  1785. else
  1786. eval "$3=no"
  1787. fi
  1788. rm -f core conftest.err conftest.$ac_objext \
  1789. conftest$ac_exeext conftest.$ac_ext
  1790. fi
  1791. eval ac_res=\$$3
  1792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1793. $as_echo "$ac_res" >&6; }
  1794. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1795. } # ac_fn_c_check_func
  1796. # ac_fn_cxx_try_compile LINENO
  1797. # ----------------------------
  1798. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1799. ac_fn_cxx_try_compile ()
  1800. {
  1801. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1802. rm -f conftest.$ac_objext
  1803. if { { ac_try="$ac_compile"
  1804. case "(($ac_try" in
  1805. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1806. *) ac_try_echo=$ac_try;;
  1807. esac
  1808. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1809. $as_echo "$ac_try_echo"; } >&5
  1810. (eval "$ac_compile") 2>conftest.err
  1811. ac_status=$?
  1812. if test -s conftest.err; then
  1813. grep -v '^ *+' conftest.err >conftest.er1
  1814. cat conftest.er1 >&5
  1815. mv -f conftest.er1 conftest.err
  1816. fi
  1817. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1818. test $ac_status = 0; } && {
  1819. test -z "$ac_cxx_werror_flag" ||
  1820. test ! -s conftest.err
  1821. } && test -s conftest.$ac_objext; then :
  1822. ac_retval=0
  1823. else
  1824. $as_echo "$as_me: failed program was:" >&5
  1825. sed 's/^/| /' conftest.$ac_ext >&5
  1826. ac_retval=1
  1827. fi
  1828. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1829. as_fn_set_status $ac_retval
  1830. } # ac_fn_cxx_try_compile
  1831. # ac_fn_cxx_try_cpp LINENO
  1832. # ------------------------
  1833. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1834. ac_fn_cxx_try_cpp ()
  1835. {
  1836. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1837. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1838. case "(($ac_try" in
  1839. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1840. *) ac_try_echo=$ac_try;;
  1841. esac
  1842. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1843. $as_echo "$ac_try_echo"; } >&5
  1844. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1845. ac_status=$?
  1846. if test -s conftest.err; then
  1847. grep -v '^ *+' conftest.err >conftest.er1
  1848. cat conftest.er1 >&5
  1849. mv -f conftest.er1 conftest.err
  1850. fi
  1851. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1852. test $ac_status = 0; } > conftest.i && {
  1853. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1854. test ! -s conftest.err
  1855. }; then :
  1856. ac_retval=0
  1857. else
  1858. $as_echo "$as_me: failed program was:" >&5
  1859. sed 's/^/| /' conftest.$ac_ext >&5
  1860. ac_retval=1
  1861. fi
  1862. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1863. as_fn_set_status $ac_retval
  1864. } # ac_fn_cxx_try_cpp
  1865. # ac_fn_cxx_try_link LINENO
  1866. # -------------------------
  1867. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1868. ac_fn_cxx_try_link ()
  1869. {
  1870. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1871. rm -f conftest.$ac_objext conftest$ac_exeext
  1872. if { { ac_try="$ac_link"
  1873. case "(($ac_try" in
  1874. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1875. *) ac_try_echo=$ac_try;;
  1876. esac
  1877. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1878. $as_echo "$ac_try_echo"; } >&5
  1879. (eval "$ac_link") 2>conftest.err
  1880. ac_status=$?
  1881. if test -s conftest.err; then
  1882. grep -v '^ *+' conftest.err >conftest.er1
  1883. cat conftest.er1 >&5
  1884. mv -f conftest.er1 conftest.err
  1885. fi
  1886. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1887. test $ac_status = 0; } && {
  1888. test -z "$ac_cxx_werror_flag" ||
  1889. test ! -s conftest.err
  1890. } && test -s conftest$ac_exeext && {
  1891. test "$cross_compiling" = yes ||
  1892. test -x conftest$ac_exeext
  1893. }; then :
  1894. ac_retval=0
  1895. else
  1896. $as_echo "$as_me: failed program was:" >&5
  1897. sed 's/^/| /' conftest.$ac_ext >&5
  1898. ac_retval=1
  1899. fi
  1900. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1901. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1902. # interfere with the next link command; also delete a directory that is
  1903. # left behind by Apple's compiler. We do this before executing the actions.
  1904. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1905. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1906. as_fn_set_status $ac_retval
  1907. } # ac_fn_cxx_try_link
  1908. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1909. # -------------------------------------------------------
  1910. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1911. # the include files in INCLUDES and setting the cache variable VAR
  1912. # accordingly.
  1913. ac_fn_c_check_header_mongrel ()
  1914. {
  1915. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1916. if eval \${$3+:} false; then :
  1917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1918. $as_echo_n "checking for $2... " >&6; }
  1919. if eval \${$3+:} false; then :
  1920. $as_echo_n "(cached) " >&6
  1921. fi
  1922. eval ac_res=\$$3
  1923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1924. $as_echo "$ac_res" >&6; }
  1925. else
  1926. # Is the header compilable?
  1927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1928. $as_echo_n "checking $2 usability... " >&6; }
  1929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1930. /* end confdefs.h. */
  1931. $4
  1932. #include <$2>
  1933. _ACEOF
  1934. if ac_fn_c_try_compile "$LINENO"; then :
  1935. ac_header_compiler=yes
  1936. else
  1937. ac_header_compiler=no
  1938. fi
  1939. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1941. $as_echo "$ac_header_compiler" >&6; }
  1942. # Is the header present?
  1943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1944. $as_echo_n "checking $2 presence... " >&6; }
  1945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1946. /* end confdefs.h. */
  1947. #include <$2>
  1948. _ACEOF
  1949. if ac_fn_c_try_cpp "$LINENO"; then :
  1950. ac_header_preproc=yes
  1951. else
  1952. ac_header_preproc=no
  1953. fi
  1954. rm -f conftest.err conftest.i conftest.$ac_ext
  1955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1956. $as_echo "$ac_header_preproc" >&6; }
  1957. # So? What about this header?
  1958. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1959. yes:no: )
  1960. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1961. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1962. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1963. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1964. ;;
  1965. no:yes:* )
  1966. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1967. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1968. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1969. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1970. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1971. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1972. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1973. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1974. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1975. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1976. ( $as_echo "## ---------------------------------------------------------- ##
  1977. ## Report this to https://github.com/appneta/tcpreplay/issues ##
  1978. ## ---------------------------------------------------------- ##"
  1979. ) | sed "s/^/$as_me: WARNING: /" >&2
  1980. ;;
  1981. esac
  1982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1983. $as_echo_n "checking for $2... " >&6; }
  1984. if eval \${$3+:} false; then :
  1985. $as_echo_n "(cached) " >&6
  1986. else
  1987. eval "$3=\$ac_header_compiler"
  1988. fi
  1989. eval ac_res=\$$3
  1990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1991. $as_echo "$ac_res" >&6; }
  1992. fi
  1993. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1994. } # ac_fn_c_check_header_mongrel
  1995. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1996. # -------------------------------------------
  1997. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1998. # variable VAR accordingly.
  1999. ac_fn_c_check_type ()
  2000. {
  2001. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2003. $as_echo_n "checking for $2... " >&6; }
  2004. if eval \${$3+:} false; then :
  2005. $as_echo_n "(cached) " >&6
  2006. else
  2007. eval "$3=no"
  2008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2009. /* end confdefs.h. */
  2010. $4
  2011. int
  2012. main ()
  2013. {
  2014. if (sizeof ($2))
  2015. return 0;
  2016. ;
  2017. return 0;
  2018. }
  2019. _ACEOF
  2020. if ac_fn_c_try_compile "$LINENO"; then :
  2021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2022. /* end confdefs.h. */
  2023. $4
  2024. int
  2025. main ()
  2026. {
  2027. if (sizeof (($2)))
  2028. return 0;
  2029. ;
  2030. return 0;
  2031. }
  2032. _ACEOF
  2033. if ac_fn_c_try_compile "$LINENO"; then :
  2034. else
  2035. eval "$3=yes"
  2036. fi
  2037. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2038. fi
  2039. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2040. fi
  2041. eval ac_res=\$$3
  2042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2043. $as_echo "$ac_res" >&6; }
  2044. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2045. } # ac_fn_c_check_type
  2046. # ac_fn_c_find_intX_t LINENO BITS VAR
  2047. # -----------------------------------
  2048. # Finds a signed integer type with width BITS, setting cache variable VAR
  2049. # accordingly.
  2050. ac_fn_c_find_intX_t ()
  2051. {
  2052. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  2054. $as_echo_n "checking for int$2_t... " >&6; }
  2055. if eval \${$3+:} false; then :
  2056. $as_echo_n "(cached) " >&6
  2057. else
  2058. eval "$3=no"
  2059. # Order is important - never check a type that is potentially smaller
  2060. # than half of the expected target width.
  2061. for ac_type in int$2_t 'int' 'long int' \
  2062. 'long long int' 'short int' 'signed char'; do
  2063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2064. /* end confdefs.h. */
  2065. $ac_includes_default
  2066. enum { N = $2 / 2 - 1 };
  2067. int
  2068. main ()
  2069. {
  2070. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  2071. test_array [0] = 0;
  2072. return test_array [0];
  2073. ;
  2074. return 0;
  2075. }
  2076. _ACEOF
  2077. if ac_fn_c_try_compile "$LINENO"; then :
  2078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2079. /* end confdefs.h. */
  2080. $ac_includes_default
  2081. enum { N = $2 / 2 - 1 };
  2082. int
  2083. main ()
  2084. {
  2085. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  2086. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  2087. test_array [0] = 0;
  2088. return test_array [0];
  2089. ;
  2090. return 0;
  2091. }
  2092. _ACEOF
  2093. if ac_fn_c_try_compile "$LINENO"; then :
  2094. else
  2095. case $ac_type in #(
  2096. int$2_t) :
  2097. eval "$3=yes" ;; #(
  2098. *) :
  2099. eval "$3=\$ac_type" ;;
  2100. esac
  2101. fi
  2102. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2103. fi
  2104. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2105. if eval test \"x\$"$3"\" = x"no"; then :
  2106. else
  2107. break
  2108. fi
  2109. done
  2110. fi
  2111. eval ac_res=\$$3
  2112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2113. $as_echo "$ac_res" >&6; }
  2114. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2115. } # ac_fn_c_find_intX_t
  2116. # ac_fn_c_find_uintX_t LINENO BITS VAR
  2117. # ------------------------------------
  2118. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  2119. # accordingly.
  2120. ac_fn_c_find_uintX_t ()
  2121. {
  2122. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  2124. $as_echo_n "checking for uint$2_t... " >&6; }
  2125. if eval \${$3+:} false; then :
  2126. $as_echo_n "(cached) " >&6
  2127. else
  2128. eval "$3=no"
  2129. # Order is important - never check a type that is potentially smaller
  2130. # than half of the expected target width.
  2131. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  2132. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  2133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2134. /* end confdefs.h. */
  2135. $ac_includes_default
  2136. int
  2137. main ()
  2138. {
  2139. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  2140. test_array [0] = 0;
  2141. return test_array [0];
  2142. ;
  2143. return 0;
  2144. }
  2145. _ACEOF
  2146. if ac_fn_c_try_compile "$LINENO"; then :
  2147. case $ac_type in #(
  2148. uint$2_t) :
  2149. eval "$3=yes" ;; #(
  2150. *) :
  2151. eval "$3=\$ac_type" ;;
  2152. esac
  2153. fi
  2154. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2155. if eval test \"x\$"$3"\" = x"no"; then :
  2156. else
  2157. break
  2158. fi
  2159. done
  2160. fi
  2161. eval ac_res=\$$3
  2162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2163. $as_echo "$ac_res" >&6; }
  2164. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2165. } # ac_fn_c_find_uintX_t
  2166. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2167. # ----------------------------------------------------
  2168. # Tries to find if the field MEMBER exists in type AGGR, after including
  2169. # INCLUDES, setting cache variable VAR accordingly.
  2170. ac_fn_c_check_member ()
  2171. {
  2172. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2174. $as_echo_n "checking for $2.$3... " >&6; }
  2175. if eval \${$4+:} false; then :
  2176. $as_echo_n "(cached) " >&6
  2177. else
  2178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2179. /* end confdefs.h. */
  2180. $5
  2181. int
  2182. main ()
  2183. {
  2184. static $2 ac_aggr;
  2185. if (ac_aggr.$3)
  2186. return 0;
  2187. ;
  2188. return 0;
  2189. }
  2190. _ACEOF
  2191. if ac_fn_c_try_compile "$LINENO"; then :
  2192. eval "$4=yes"
  2193. else
  2194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2195. /* end confdefs.h. */
  2196. $5
  2197. int
  2198. main ()
  2199. {
  2200. static $2 ac_aggr;
  2201. if (sizeof ac_aggr.$3)
  2202. return 0;
  2203. ;
  2204. return 0;
  2205. }
  2206. _ACEOF
  2207. if ac_fn_c_try_compile "$LINENO"; then :
  2208. eval "$4=yes"
  2209. else
  2210. eval "$4=no"
  2211. fi
  2212. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2213. fi
  2214. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2215. fi
  2216. eval ac_res=\$$4
  2217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2218. $as_echo "$ac_res" >&6; }
  2219. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2220. } # ac_fn_c_check_member
  2221. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2222. # ---------------------------------------------
  2223. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2224. # accordingly.
  2225. ac_fn_c_check_decl ()
  2226. {
  2227. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2228. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2229. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2231. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2232. if eval \${$3+:} false; then :
  2233. $as_echo_n "(cached) " >&6
  2234. else
  2235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2236. /* end confdefs.h. */
  2237. $4
  2238. int
  2239. main ()
  2240. {
  2241. #ifndef $as_decl_name
  2242. #ifdef __cplusplus
  2243. (void) $as_decl_use;
  2244. #else
  2245. (void) $as_decl_name;
  2246. #endif
  2247. #endif
  2248. ;
  2249. return 0;
  2250. }
  2251. _ACEOF
  2252. if ac_fn_c_try_compile "$LINENO"; then :
  2253. eval "$3=yes"
  2254. else
  2255. eval "$3=no"
  2256. fi
  2257. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2258. fi
  2259. eval ac_res=\$$3
  2260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2261. $as_echo "$ac_res" >&6; }
  2262. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2263. } # ac_fn_c_check_decl
  2264. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2265. # --------------------------------------------
  2266. # Tries to find the compile-time value of EXPR in a program that includes
  2267. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2268. # computed
  2269. ac_fn_c_compute_int ()
  2270. {
  2271. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2272. if test "$cross_compiling" = yes; then
  2273. # Depending upon the size, compute the lo and hi bounds.
  2274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2275. /* end confdefs.h. */
  2276. $4
  2277. int
  2278. main ()
  2279. {
  2280. static int test_array [1 - 2 * !(($2) >= 0)];
  2281. test_array [0] = 0;
  2282. return test_array [0];
  2283. ;
  2284. return 0;
  2285. }
  2286. _ACEOF
  2287. if ac_fn_c_try_compile "$LINENO"; then :
  2288. ac_lo=0 ac_mid=0
  2289. while :; do
  2290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2291. /* end confdefs.h. */
  2292. $4
  2293. int
  2294. main ()
  2295. {
  2296. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2297. test_array [0] = 0;
  2298. return test_array [0];
  2299. ;
  2300. return 0;
  2301. }
  2302. _ACEOF
  2303. if ac_fn_c_try_compile "$LINENO"; then :
  2304. ac_hi=$ac_mid; break
  2305. else
  2306. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2307. if test $ac_lo -le $ac_mid; then
  2308. ac_lo= ac_hi=
  2309. break
  2310. fi
  2311. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2312. fi
  2313. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2314. done
  2315. else
  2316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2317. /* end confdefs.h. */
  2318. $4
  2319. int
  2320. main ()
  2321. {
  2322. static int test_array [1 - 2 * !(($2) < 0)];
  2323. test_array [0] = 0;
  2324. return test_array [0];
  2325. ;
  2326. return 0;
  2327. }
  2328. _ACEOF
  2329. if ac_fn_c_try_compile "$LINENO"; then :
  2330. ac_hi=-1 ac_mid=-1
  2331. while :; do
  2332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2333. /* end confdefs.h. */
  2334. $4
  2335. int
  2336. main ()
  2337. {
  2338. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2339. test_array [0] = 0;
  2340. return test_array [0];
  2341. ;
  2342. return 0;
  2343. }
  2344. _ACEOF
  2345. if ac_fn_c_try_compile "$LINENO"; then :
  2346. ac_lo=$ac_mid; break
  2347. else
  2348. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2349. if test $ac_mid -le $ac_hi; then
  2350. ac_lo= ac_hi=
  2351. break
  2352. fi
  2353. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2354. fi
  2355. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2356. done
  2357. else
  2358. ac_lo= ac_hi=
  2359. fi
  2360. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2361. fi
  2362. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2363. # Binary search between lo and hi bounds.
  2364. while test "x$ac_lo" != "x$ac_hi"; do
  2365. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2367. /* end confdefs.h. */
  2368. $4
  2369. int
  2370. main ()
  2371. {
  2372. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2373. test_array [0] = 0;
  2374. return test_array [0];
  2375. ;
  2376. return 0;
  2377. }
  2378. _ACEOF
  2379. if ac_fn_c_try_compile "$LINENO"; then :
  2380. ac_hi=$ac_mid
  2381. else
  2382. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2383. fi
  2384. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2385. done
  2386. case $ac_lo in #((
  2387. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2388. '') ac_retval=1 ;;
  2389. esac
  2390. else
  2391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2392. /* end confdefs.h. */
  2393. $4
  2394. static long int longval () { return $2; }
  2395. static unsigned long int ulongval () { return $2; }
  2396. #include <stdio.h>
  2397. #include <stdlib.h>
  2398. int
  2399. main ()
  2400. {
  2401. FILE *f = fopen ("conftest.val", "w");
  2402. if (! f)
  2403. return 1;
  2404. if (($2) < 0)
  2405. {
  2406. long int i = longval ();
  2407. if (i != ($2))
  2408. return 1;
  2409. fprintf (f, "%ld", i);
  2410. }
  2411. else
  2412. {
  2413. unsigned long int i = ulongval ();
  2414. if (i != ($2))
  2415. return 1;
  2416. fprintf (f, "%lu", i);
  2417. }
  2418. /* Do not output a trailing newline, as this causes \r\n confusion
  2419. on some platforms. */
  2420. return ferror (f) || fclose (f) != 0;
  2421. ;
  2422. return 0;
  2423. }
  2424. _ACEOF
  2425. if ac_fn_c_try_run "$LINENO"; then :
  2426. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2427. else
  2428. ac_retval=1
  2429. fi
  2430. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2431. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2432. rm -f conftest.val
  2433. fi
  2434. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2435. as_fn_set_status $ac_retval
  2436. } # ac_fn_c_compute_int
  2437. cat >config.log <<_ACEOF
  2438. This file contains any messages produced by compilers while
  2439. running configure, to aid debugging if configure makes a mistake.
  2440. It was created by tcpreplay $as_me 4.4.2, which was
  2441. generated by GNU Autoconf 2.69. Invocation command line was
  2442. $ $0 $@
  2443. _ACEOF
  2444. exec 5>>config.log
  2445. {
  2446. cat <<_ASUNAME
  2447. ## --------- ##
  2448. ## Platform. ##
  2449. ## --------- ##
  2450. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2451. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2452. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2453. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2454. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2455. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2456. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2457. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2458. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2459. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2460. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2461. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2462. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2463. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2464. _ASUNAME
  2465. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2466. for as_dir in $PATH
  2467. do
  2468. IFS=$as_save_IFS
  2469. test -z "$as_dir" && as_dir=.
  2470. $as_echo "PATH: $as_dir"
  2471. done
  2472. IFS=$as_save_IFS
  2473. } >&5
  2474. cat >&5 <<_ACEOF
  2475. ## ----------- ##
  2476. ## Core tests. ##
  2477. ## ----------- ##
  2478. _ACEOF
  2479. # Keep a trace of the command line.
  2480. # Strip out --no-create and --no-recursion so they do not pile up.
  2481. # Strip out --silent because we don't want to record it for future runs.
  2482. # Also quote any args containing shell meta-characters.
  2483. # Make two passes to allow for proper duplicate-argument suppression.
  2484. ac_configure_args=
  2485. ac_configure_args0=
  2486. ac_configure_args1=
  2487. ac_must_keep_next=false
  2488. for ac_pass in 1 2
  2489. do
  2490. for ac_arg
  2491. do
  2492. case $ac_arg in
  2493. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2494. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2495. | -silent | --silent | --silen | --sile | --sil)
  2496. continue ;;
  2497. *\'*)
  2498. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2499. esac
  2500. case $ac_pass in
  2501. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2502. 2)
  2503. as_fn_append ac_configure_args1 " '$ac_arg'"
  2504. if test $ac_must_keep_next = true; then
  2505. ac_must_keep_next=false # Got value, back to normal.
  2506. else
  2507. case $ac_arg in
  2508. *=* | --config-cache | -C | -disable-* | --disable-* \
  2509. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2510. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2511. | -with-* | --with-* | -without-* | --without-* | --x)
  2512. case "$ac_configure_args0 " in
  2513. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2514. esac
  2515. ;;
  2516. -* ) ac_must_keep_next=true ;;
  2517. esac
  2518. fi
  2519. as_fn_append ac_configure_args " '$ac_arg'"
  2520. ;;
  2521. esac
  2522. done
  2523. done
  2524. { ac_configure_args0=; unset ac_configure_args0;}
  2525. { ac_configure_args1=; unset ac_configure_args1;}
  2526. # When interrupted or exit'd, cleanup temporary files, and complete
  2527. # config.log. We remove comments because anyway the quotes in there
  2528. # would cause problems or look ugly.
  2529. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2530. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2531. trap 'exit_status=$?
  2532. # Save into config.log some information that might help in debugging.
  2533. {
  2534. echo
  2535. $as_echo "## ---------------- ##
  2536. ## Cache variables. ##
  2537. ## ---------------- ##"
  2538. echo
  2539. # The following way of writing the cache mishandles newlines in values,
  2540. (
  2541. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2542. eval ac_val=\$$ac_var
  2543. case $ac_val in #(
  2544. *${as_nl}*)
  2545. case $ac_var in #(
  2546. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2547. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2548. esac
  2549. case $ac_var in #(
  2550. _ | IFS | as_nl) ;; #(
  2551. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2552. *) { eval $ac_var=; unset $ac_var;} ;;
  2553. esac ;;
  2554. esac
  2555. done
  2556. (set) 2>&1 |
  2557. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2558. *${as_nl}ac_space=\ *)
  2559. sed -n \
  2560. "s/'\''/'\''\\\\'\'''\''/g;
  2561. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2562. ;; #(
  2563. *)
  2564. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2565. ;;
  2566. esac |
  2567. sort
  2568. )
  2569. echo
  2570. $as_echo "## ----------------- ##
  2571. ## Output variables. ##
  2572. ## ----------------- ##"
  2573. echo
  2574. for ac_var in $ac_subst_vars
  2575. do
  2576. eval ac_val=\$$ac_var
  2577. case $ac_val in
  2578. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2579. esac
  2580. $as_echo "$ac_var='\''$ac_val'\''"
  2581. done | sort
  2582. echo
  2583. if test -n "$ac_subst_files"; then
  2584. $as_echo "## ------------------- ##
  2585. ## File substitutions. ##
  2586. ## ------------------- ##"
  2587. echo
  2588. for ac_var in $ac_subst_files
  2589. do
  2590. eval ac_val=\$$ac_var
  2591. case $ac_val in
  2592. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2593. esac
  2594. $as_echo "$ac_var='\''$ac_val'\''"
  2595. done | sort
  2596. echo
  2597. fi
  2598. if test -s confdefs.h; then
  2599. $as_echo "## ----------- ##
  2600. ## confdefs.h. ##
  2601. ## ----------- ##"
  2602. echo
  2603. cat confdefs.h
  2604. echo
  2605. fi
  2606. test "$ac_signal" != 0 &&
  2607. $as_echo "$as_me: caught signal $ac_signal"
  2608. $as_echo "$as_me: exit $exit_status"
  2609. } >&5
  2610. rm -f core *.core core.conftest.* &&
  2611. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2612. exit $exit_status
  2613. ' 0
  2614. for ac_signal in 1 2 13 15; do
  2615. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2616. done
  2617. ac_signal=0
  2618. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2619. rm -f -r conftest* confdefs.h
  2620. $as_echo "/* confdefs.h */" > confdefs.h
  2621. # Predefined preprocessor variables.
  2622. cat >>confdefs.h <<_ACEOF
  2623. #define PACKAGE_NAME "$PACKAGE_NAME"
  2624. _ACEOF
  2625. cat >>confdefs.h <<_ACEOF
  2626. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2627. _ACEOF
  2628. cat >>confdefs.h <<_ACEOF
  2629. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2630. _ACEOF
  2631. cat >>confdefs.h <<_ACEOF
  2632. #define PACKAGE_STRING "$PACKAGE_STRING"
  2633. _ACEOF
  2634. cat >>confdefs.h <<_ACEOF
  2635. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2636. _ACEOF
  2637. cat >>confdefs.h <<_ACEOF
  2638. #define PACKAGE_URL "$PACKAGE_URL"
  2639. _ACEOF
  2640. # Let the site file select an alternate cache file if it wants to.
  2641. # Prefer an explicitly selected file to automatically selected ones.
  2642. ac_site_file1=NONE
  2643. ac_site_file2=NONE
  2644. if test -n "$CONFIG_SITE"; then
  2645. # We do not want a PATH search for config.site.
  2646. case $CONFIG_SITE in #((
  2647. -*) ac_site_file1=./$CONFIG_SITE;;
  2648. */*) ac_site_file1=$CONFIG_SITE;;
  2649. *) ac_site_file1=./$CONFIG_SITE;;
  2650. esac
  2651. elif test "x$prefix" != xNONE; then
  2652. ac_site_file1=$prefix/share/config.site
  2653. ac_site_file2=$prefix/etc/config.site
  2654. else
  2655. ac_site_file1=$ac_default_prefix/share/config.site
  2656. ac_site_file2=$ac_default_prefix/etc/config.site
  2657. fi
  2658. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2659. do
  2660. test "x$ac_site_file" = xNONE && continue
  2661. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2662. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2663. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2664. sed 's/^/| /' "$ac_site_file" >&5
  2665. . "$ac_site_file" \
  2666. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2667. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2668. as_fn_error $? "failed to load site script $ac_site_file
  2669. See \`config.log' for more details" "$LINENO" 5; }
  2670. fi
  2671. done
  2672. if test -r "$cache_file"; then
  2673. # Some versions of bash will fail to source /dev/null (special files
  2674. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2675. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2676. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2677. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2678. case $cache_file in
  2679. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2680. *) . "./$cache_file";;
  2681. esac
  2682. fi
  2683. else
  2684. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2685. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2686. >$cache_file
  2687. fi
  2688. as_fn_append ac_header_list " sys/time.h"
  2689. as_fn_append ac_header_list " unistd.h"
  2690. as_fn_append ac_func_list " alarm"
  2691. as_fn_append ac_header_list " stdlib.h"
  2692. as_fn_append ac_header_list " sys/param.h"
  2693. # Check that the precious variables saved in the cache have kept the same
  2694. # value.
  2695. ac_cache_corrupted=false
  2696. for ac_var in $ac_precious_vars; do
  2697. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2698. eval ac_new_set=\$ac_env_${ac_var}_set
  2699. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2700. eval ac_new_val=\$ac_env_${ac_var}_value
  2701. case $ac_old_set,$ac_new_set in
  2702. set,)
  2703. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2704. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2705. ac_cache_corrupted=: ;;
  2706. ,set)
  2707. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2708. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2709. ac_cache_corrupted=: ;;
  2710. ,);;
  2711. *)
  2712. if test "x$ac_old_val" != "x$ac_new_val"; then
  2713. # differences in whitespace do not lead to failure.
  2714. ac_old_val_w=`echo x $ac_old_val`
  2715. ac_new_val_w=`echo x $ac_new_val`
  2716. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2717. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2718. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2719. ac_cache_corrupted=:
  2720. else
  2721. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2722. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2723. eval $ac_var=\$ac_old_val
  2724. fi
  2725. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2726. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2727. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2728. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2729. fi;;
  2730. esac
  2731. # Pass precious variables to config.status.
  2732. if test "$ac_new_set" = set; then
  2733. case $ac_new_val in
  2734. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2735. *) ac_arg=$ac_var=$ac_new_val ;;
  2736. esac
  2737. case " $ac_configure_args " in
  2738. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2739. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2740. esac
  2741. fi
  2742. done
  2743. if $ac_cache_corrupted; then
  2744. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2745. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2746. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2747. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2748. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2749. fi
  2750. ## -------------------- ##
  2751. ## Main body of script. ##
  2752. ## -------------------- ##
  2753. ac_ext=c
  2754. ac_cpp='$CPP $CPPFLAGS'
  2755. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2756. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2757. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2758. ac_config_headers="$ac_config_headers src/config.h"
  2759. ac_aux_dir=
  2760. for ac_dir in config "$srcdir"/config; do
  2761. if test -f "$ac_dir/install-sh"; then
  2762. ac_aux_dir=$ac_dir
  2763. ac_install_sh="$ac_aux_dir/install-sh -c"
  2764. break
  2765. elif test -f "$ac_dir/install.sh"; then
  2766. ac_aux_dir=$ac_dir
  2767. ac_install_sh="$ac_aux_dir/install.sh -c"
  2768. break
  2769. elif test -f "$ac_dir/shtool"; then
  2770. ac_aux_dir=$ac_dir
  2771. ac_install_sh="$ac_aux_dir/shtool install -c"
  2772. break
  2773. fi
  2774. done
  2775. if test -z "$ac_aux_dir"; then
  2776. as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
  2777. fi
  2778. # These three variables are undocumented and unsupported,
  2779. # and are intended to be withdrawn in a future Autoconf release.
  2780. # They can cause serious problems if a builder's source tree is in a directory
  2781. # whose full name contains unusual characters.
  2782. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2783. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2784. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2786. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2787. # Check whether --enable-maintainer-mode was given.
  2788. if test "${enable_maintainer_mode+set}" = set; then :
  2789. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2790. else
  2791. USE_MAINTAINER_MODE=yes
  2792. fi
  2793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2794. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2795. if test $USE_MAINTAINER_MODE = yes; then
  2796. MAINTAINER_MODE_TRUE=
  2797. MAINTAINER_MODE_FALSE='#'
  2798. else
  2799. MAINTAINER_MODE_TRUE='#'
  2800. MAINTAINER_MODE_FALSE=
  2801. fi
  2802. MAINT=$MAINTAINER_MODE_TRUE
  2803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
  2804. $as_echo_n "checking if malloc debugging is wanted... " >&6; }
  2805. # Check whether --with-dmalloc was given.
  2806. if test "${with_dmalloc+set}" = set; then :
  2807. withval=$with_dmalloc; if test "$withval" = yes; then
  2808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2809. $as_echo "yes" >&6; }
  2810. $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
  2811. LIBS="$LIBS -ldmalloc"
  2812. LDFLAGS="$LDFLAGS -g"
  2813. else
  2814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2815. $as_echo "no" >&6; }
  2816. fi
  2817. else
  2818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2819. $as_echo "no" >&6; }
  2820. fi
  2821. MAINTAINER_AUTOGEN_VERSION=5.18.12
  2822. TCPREPLAY_VERSION=$PACKAGE_VERSION
  2823. TCPREPLAY_RELEASE=1
  2824. # Make sure we can run config.sub.
  2825. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2826. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2828. $as_echo_n "checking build system type... " >&6; }
  2829. if ${ac_cv_build+:} false; then :
  2830. $as_echo_n "(cached) " >&6
  2831. else
  2832. ac_build_alias=$build_alias
  2833. test "x$ac_build_alias" = x &&
  2834. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2835. test "x$ac_build_alias" = x &&
  2836. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2837. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2838. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2839. fi
  2840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2841. $as_echo "$ac_cv_build" >&6; }
  2842. case $ac_cv_build in
  2843. *-*-*) ;;
  2844. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2845. esac
  2846. build=$ac_cv_build
  2847. ac_save_IFS=$IFS; IFS='-'
  2848. set x $ac_cv_build
  2849. shift
  2850. build_cpu=$1
  2851. build_vendor=$2
  2852. shift; shift
  2853. # Remember, the first character of IFS is used to create $*,
  2854. # except with old shells:
  2855. build_os=$*
  2856. IFS=$ac_save_IFS
  2857. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2859. $as_echo_n "checking host system type... " >&6; }
  2860. if ${ac_cv_host+:} false; then :
  2861. $as_echo_n "(cached) " >&6
  2862. else
  2863. if test "x$host_alias" = x; then
  2864. ac_cv_host=$ac_cv_build
  2865. else
  2866. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2867. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2868. fi
  2869. fi
  2870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2871. $as_echo "$ac_cv_host" >&6; }
  2872. case $ac_cv_host in
  2873. *-*-*) ;;
  2874. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2875. esac
  2876. host=$ac_cv_host
  2877. ac_save_IFS=$IFS; IFS='-'
  2878. set x $ac_cv_host
  2879. shift
  2880. host_cpu=$1
  2881. host_vendor=$2
  2882. shift; shift
  2883. # Remember, the first character of IFS is used to create $*,
  2884. # except with old shells:
  2885. host_os=$*
  2886. IFS=$ac_save_IFS
  2887. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2889. $as_echo_n "checking target system type... " >&6; }
  2890. if ${ac_cv_target+:} false; then :
  2891. $as_echo_n "(cached) " >&6
  2892. else
  2893. if test "x$target_alias" = x; then
  2894. ac_cv_target=$ac_cv_host
  2895. else
  2896. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2897. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2898. fi
  2899. fi
  2900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2901. $as_echo "$ac_cv_target" >&6; }
  2902. case $ac_cv_target in
  2903. *-*-*) ;;
  2904. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2905. esac
  2906. target=$ac_cv_target
  2907. ac_save_IFS=$IFS; IFS='-'
  2908. set x $ac_cv_target
  2909. shift
  2910. target_cpu=$1
  2911. target_vendor=$2
  2912. shift; shift
  2913. # Remember, the first character of IFS is used to create $*,
  2914. # except with old shells:
  2915. target_os=$*
  2916. IFS=$ac_save_IFS
  2917. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2918. # The aliases save the names the user supplied, while $host etc.
  2919. # will get canonicalized.
  2920. test -n "$target_alias" &&
  2921. test "$program_prefix$program_suffix$program_transform_name" = \
  2922. NONENONEs,x,x, &&
  2923. program_prefix=${target_alias}-
  2924. CROSS_ARCH=
  2925. CROSS_LD=
  2926. build_arch=$(echo $MACHTYPE | cut -d'-' -f1)
  2927. if test "$cross_compiling" = "yes" ; then
  2928. CROSS_ARCH="ARCH=$host_cpu"
  2929. CROSS_LD="LD=$LD"
  2930. fi
  2931. # Check whether --with-macos-sdk was given.
  2932. if test "${with_macos_sdk+set}" = set; then :
  2933. withval=$with_macos_sdk;
  2934. fi
  2935. case "$host_os" in
  2936. darwin*) # Mac OS X or iOS
  2937. # If no --with-macos-sdk option is given, look for the latestq SDK
  2938. # The intent is that for "most" Mac-based developers, a suitable
  2939. # SDK will be found automatically without any configure options.
  2940. # For developers with a current Xcode, the lowest-numbered SDK
  2941. # higher than or equal to the minimum required should be found.
  2942. # To find a list of available version run `xcodebuild -showsdks`
  2943. MULTIARCH=${host_cpu}-${host_os}
  2944. unset MACOSX_SDK_PATH
  2945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking what macOS compiler to use" >&5
  2946. $as_echo_n "checking what macOS compiler to use... " >&6; }
  2947. if test -n "$with_macos_sdk"; then
  2948. MACOSX_SDK_PATH=$(xcrun --sdk macosx${with_macos_sdk} --show-sdk-path 2> /dev/null)
  2949. if test -z "$MACOSX_SDK_PATH" ; then
  2950. as_fn_error $? "could not find SDK ${with_macos_sdk} for macos-${MULTIARCH}" "$LINENO" 5
  2951. fi
  2952. else
  2953. MACOSX_SDK_PATH=$(xcrun --show-sdk-path 2> /dev/null)
  2954. if test -z "$MACOSX_SDK_PATH" ; then
  2955. for _macos_sdk_major in $(seq 15 -1 10); do
  2956. for _macos_sdk_minor in $(seq 20 -1 0); do
  2957. _macos_sdk_version=$_macos_sdk_major.$_macos_sdk_minor
  2958. MACOSX_SDK_PATH=$(xcrun --sdk macosx${_macos_sdk_version} --show-sdk-path 2> /dev/null)
  2959. if test -d "$_macos_sdk_path" ; then
  2960. break 2
  2961. fi
  2962. done
  2963. done
  2964. if test -z "$MACOSX_SDK_PATH"; then
  2965. for _macos_sdk_major in $(seq 15 -1 10); do
  2966. for _macos_sdk_minor in $(seq 20 -1 0); do
  2967. _macos_sdk_version=$_macos_sdk_major.$_macos_sdk_minor
  2968. MACOSX_SDK_PATH=$(xcode-select -print-path)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX${_macos_sdk_version}.sdk
  2969. if test -d "$MACOSX_SDK_PATH"; then
  2970. break 2
  2971. fi
  2972. MACOSX_SDK_PATH=$(xcode-select -print-path)/SDKs/MacOSX${_macos_sdk_version}.sdk
  2973. if test -d "$MACOSX_SDK_PATH"; then
  2974. break 2
  2975. fi
  2976. done
  2977. done
  2978. fi
  2979. fi
  2980. fi
  2981. if test -d "$MACOSX_SDK_PATH"; then
  2982. CC="$(xcrun -find clang) -m64 -isysroot $MACOSX_SDK_PATH"
  2983. INSTALL_NAME_TOOL=$(xcrun -find install_name_tool)
  2984. AR=$(xcrun -find ar)
  2985. NM=$(xcrun -find nm)
  2986. STRIP=$(xcrun -find strip)
  2987. LIBTOOL=$(xcrun -find libtool)
  2988. RANLIB=$(xcrun -find ranlib)
  2989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${MACOSX_SDK_PATH}" >&5
  2990. $as_echo "${MACOSX_SDK_PATH}" >&6; }
  2991. else
  2992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: legacy" >&5
  2993. $as_echo "legacy" >&6; }
  2994. fi
  2995. ;;
  2996. Linux*)
  2997. MULTIARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH) 2> /dev/null || ${host_cpu}-${host_os}
  2998. ;;
  2999. *)
  3000. MULTIARCH=${host_cpu}-${host_os}
  3001. ;;
  3002. esac
  3003. # Note that the OS X libtool command is unrelated to GNU libtool
  3004. # Check whether --with-pfring-lib was given.
  3005. if test "${with_pfring_lib+set}" = set; then :
  3006. withval=$with_pfring_lib;
  3007. fi
  3008. have_cygwin=no
  3009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin development environment" >&5
  3010. $as_echo_n "checking for cygwin development environment... " >&6; }
  3011. if test $(echo $target | grep -c cygwin) -gt 0 ; then
  3012. $as_echo "#define HAVE_WIN32 1" >>confdefs.h
  3013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3014. $as_echo "yes" >&6; }
  3015. have_cygwin=yes
  3016. else
  3017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3018. $as_echo "no" >&6; }
  3019. fi
  3020. am__api_version='1.16'
  3021. # Find a good install program. We prefer a C program (faster),
  3022. # so one script is as good as another. But avoid the broken or
  3023. # incompatible versions:
  3024. # SysV /etc/install, /usr/sbin/install
  3025. # SunOS /usr/etc/install
  3026. # IRIX /sbin/install
  3027. # AIX /bin/install
  3028. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3029. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3030. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3031. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3032. # OS/2's system install, which has a completely different semantic
  3033. # ./install, which can be erroneously created by make from ./install.sh.
  3034. # Reject install programs that cannot install multiple files.
  3035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3036. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3037. if test -z "$INSTALL"; then
  3038. if ${ac_cv_path_install+:} false; then :
  3039. $as_echo_n "(cached) " >&6
  3040. else
  3041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3042. for as_dir in $PATH
  3043. do
  3044. IFS=$as_save_IFS
  3045. test -z "$as_dir" && as_dir=.
  3046. # Account for people who put trailing slashes in PATH elements.
  3047. case $as_dir/ in #((
  3048. ./ | .// | /[cC]/* | \
  3049. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3050. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3051. /usr/ucb/* ) ;;
  3052. *)
  3053. # OSF1 and SCO ODT 3.0 have their own names for install.
  3054. # Don't use installbsd from OSF since it installs stuff as root
  3055. # by default.
  3056. for ac_prog in ginstall scoinst install; do
  3057. for ac_exec_ext in '' $ac_executable_extensions; do
  3058. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3059. if test $ac_prog = install &&
  3060. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3061. # AIX install. It has an incompatible calling convention.
  3062. :
  3063. elif test $ac_prog = install &&
  3064. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3065. # program-specific install script used by HP pwplus--don't use.
  3066. :
  3067. else
  3068. rm -rf conftest.one conftest.two conftest.dir
  3069. echo one > conftest.one
  3070. echo two > conftest.two
  3071. mkdir conftest.dir
  3072. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3073. test -s conftest.one && test -s conftest.two &&
  3074. test -s conftest.dir/conftest.one &&
  3075. test -s conftest.dir/conftest.two
  3076. then
  3077. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3078. break 3
  3079. fi
  3080. fi
  3081. fi
  3082. done
  3083. done
  3084. ;;
  3085. esac
  3086. done
  3087. IFS=$as_save_IFS
  3088. rm -rf conftest.one conftest.two conftest.dir
  3089. fi
  3090. if test "${ac_cv_path_install+set}" = set; then
  3091. INSTALL=$ac_cv_path_install
  3092. else
  3093. # As a last resort, use the slow shell script. Don't cache a
  3094. # value for INSTALL within a source directory, because that will
  3095. # break other packages using the cache if that directory is
  3096. # removed, or if the value is a relative name.
  3097. INSTALL=$ac_install_sh
  3098. fi
  3099. fi
  3100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3101. $as_echo "$INSTALL" >&6; }
  3102. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3103. # It thinks the first close brace ends the variable substitution.
  3104. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3105. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3106. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3108. $as_echo_n "checking whether build environment is sane... " >&6; }
  3109. # Reject unsafe characters in $srcdir or the absolute working directory
  3110. # name. Accept space and tab only in the latter.
  3111. am_lf='
  3112. '
  3113. case `pwd` in
  3114. *[\\\"\#\$\&\'\`$am_lf]*)
  3115. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  3116. esac
  3117. case $srcdir in
  3118. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3119. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  3120. esac
  3121. # Do 'set' in a subshell so we don't clobber the current shell's
  3122. # arguments. Must try -L first in case configure is actually a
  3123. # symlink; some systems play weird games with the mod time of symlinks
  3124. # (eg FreeBSD returns the mod time of the symlink's containing
  3125. # directory).
  3126. if (
  3127. am_has_slept=no
  3128. for am_try in 1 2; do
  3129. echo "timestamp, slept: $am_has_slept" > conftest.file
  3130. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3131. if test "$*" = "X"; then
  3132. # -L didn't work.
  3133. set X `ls -t "$srcdir/configure" conftest.file`
  3134. fi
  3135. if test "$*" != "X $srcdir/configure conftest.file" \
  3136. && test "$*" != "X conftest.file $srcdir/configure"; then
  3137. # If neither matched, then we have a broken ls. This can happen
  3138. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3139. # broken ls alias from the environment. This has actually
  3140. # happened. Such a system could not be considered "sane".
  3141. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  3142. alias in your environment" "$LINENO" 5
  3143. fi
  3144. if test "$2" = conftest.file || test $am_try -eq 2; then
  3145. break
  3146. fi
  3147. # Just in case.
  3148. sleep 1
  3149. am_has_slept=yes
  3150. done
  3151. test "$2" = conftest.file
  3152. )
  3153. then
  3154. # Ok.
  3155. :
  3156. else
  3157. as_fn_error $? "newly created file is older than distributed files!
  3158. Check your system clock" "$LINENO" 5
  3159. fi
  3160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3161. $as_echo "yes" >&6; }
  3162. # If we didn't sleep, we still need to ensure time stamps of config.status and
  3163. # generated files are strictly newer.
  3164. am_sleep_pid=
  3165. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  3166. ( sleep 1 ) &
  3167. am_sleep_pid=$!
  3168. fi
  3169. rm -f conftest.file
  3170. test "$program_prefix" != NONE &&
  3171. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3172. # Use a double $ so make ignores it.
  3173. test "$program_suffix" != NONE &&
  3174. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3175. # Double any \ or $.
  3176. # By default was `s,x,x', remove it if useless.
  3177. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3178. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3179. # Expand $ac_aux_dir to an absolute path.
  3180. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  3181. if test x"${MISSING+set}" != xset; then
  3182. case $am_aux_dir in
  3183. *\ * | *\ *)
  3184. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3185. *)
  3186. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3187. esac
  3188. fi
  3189. # Use eval to expand $SHELL
  3190. if eval "$MISSING --is-lightweight"; then
  3191. am_missing_run="$MISSING "
  3192. else
  3193. am_missing_run=
  3194. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  3195. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  3196. fi
  3197. if test x"${install_sh+set}" != xset; then
  3198. case $am_aux_dir in
  3199. *\ * | *\ *)
  3200. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3201. *)
  3202. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3203. esac
  3204. fi
  3205. # Installed binaries are usually stripped using 'strip' when the user
  3206. # run "make install-strip". However 'strip' might not be the right
  3207. # tool to use in cross-compilation environments, therefore Automake
  3208. # will honor the 'STRIP' environment variable to overrule this program.
  3209. if test "$cross_compiling" != no; then
  3210. if test -n "$ac_tool_prefix"; then
  3211. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3212. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3214. $as_echo_n "checking for $ac_word... " >&6; }
  3215. if ${ac_cv_prog_STRIP+:} false; then :
  3216. $as_echo_n "(cached) " >&6
  3217. else
  3218. if test -n "$STRIP"; then
  3219. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3220. else
  3221. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3222. for as_dir in $PATH
  3223. do
  3224. IFS=$as_save_IFS
  3225. test -z "$as_dir" && as_dir=.
  3226. for ac_exec_ext in '' $ac_executable_extensions; do
  3227. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3228. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3229. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3230. break 2
  3231. fi
  3232. done
  3233. done
  3234. IFS=$as_save_IFS
  3235. fi
  3236. fi
  3237. STRIP=$ac_cv_prog_STRIP
  3238. if test -n "$STRIP"; then
  3239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3240. $as_echo "$STRIP" >&6; }
  3241. else
  3242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3243. $as_echo "no" >&6; }
  3244. fi
  3245. fi
  3246. if test -z "$ac_cv_prog_STRIP"; then
  3247. ac_ct_STRIP=$STRIP
  3248. # Extract the first word of "strip", so it can be a program name with args.
  3249. set dummy strip; ac_word=$2
  3250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3251. $as_echo_n "checking for $ac_word... " >&6; }
  3252. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  3253. $as_echo_n "(cached) " >&6
  3254. else
  3255. if test -n "$ac_ct_STRIP"; then
  3256. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3257. else
  3258. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3259. for as_dir in $PATH
  3260. do
  3261. IFS=$as_save_IFS
  3262. test -z "$as_dir" && as_dir=.
  3263. for ac_exec_ext in '' $ac_executable_extensions; do
  3264. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3265. ac_cv_prog_ac_ct_STRIP="strip"
  3266. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3267. break 2
  3268. fi
  3269. done
  3270. done
  3271. IFS=$as_save_IFS
  3272. fi
  3273. fi
  3274. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3275. if test -n "$ac_ct_STRIP"; then
  3276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3277. $as_echo "$ac_ct_STRIP" >&6; }
  3278. else
  3279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3280. $as_echo "no" >&6; }
  3281. fi
  3282. if test "x$ac_ct_STRIP" = x; then
  3283. STRIP=":"
  3284. else
  3285. case $cross_compiling:$ac_tool_warned in
  3286. yes:)
  3287. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3288. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3289. ac_tool_warned=yes ;;
  3290. esac
  3291. STRIP=$ac_ct_STRIP
  3292. fi
  3293. else
  3294. STRIP="$ac_cv_prog_STRIP"
  3295. fi
  3296. fi
  3297. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3299. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3300. if test -z "$MKDIR_P"; then
  3301. if ${ac_cv_path_mkdir+:} false; then :
  3302. $as_echo_n "(cached) " >&6
  3303. else
  3304. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3305. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3306. do
  3307. IFS=$as_save_IFS
  3308. test -z "$as_dir" && as_dir=.
  3309. for ac_prog in mkdir gmkdir; do
  3310. for ac_exec_ext in '' $ac_executable_extensions; do
  3311. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  3312. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3313. 'mkdir (GNU coreutils) '* | \
  3314. 'mkdir (coreutils) '* | \
  3315. 'mkdir (fileutils) '4.1*)
  3316. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3317. break 3;;
  3318. esac
  3319. done
  3320. done
  3321. done
  3322. IFS=$as_save_IFS
  3323. fi
  3324. test -d ./--version && rmdir ./--version
  3325. if test "${ac_cv_path_mkdir+set}" = set; then
  3326. MKDIR_P="$ac_cv_path_mkdir -p"
  3327. else
  3328. # As a last resort, use the slow shell script. Don't cache a
  3329. # value for MKDIR_P within a source directory, because that will
  3330. # break other packages using the cache if that directory is
  3331. # removed, or if the value is a relative name.
  3332. MKDIR_P="$ac_install_sh -d"
  3333. fi
  3334. fi
  3335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3336. $as_echo "$MKDIR_P" >&6; }
  3337. for ac_prog in gawk mawk nawk awk
  3338. do
  3339. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3340. set dummy $ac_prog; ac_word=$2
  3341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3342. $as_echo_n "checking for $ac_word... " >&6; }
  3343. if ${ac_cv_prog_AWK+:} false; then :
  3344. $as_echo_n "(cached) " >&6
  3345. else
  3346. if test -n "$AWK"; then
  3347. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3348. else
  3349. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3350. for as_dir in $PATH
  3351. do
  3352. IFS=$as_save_IFS
  3353. test -z "$as_dir" && as_dir=.
  3354. for ac_exec_ext in '' $ac_executable_extensions; do
  3355. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3356. ac_cv_prog_AWK="$ac_prog"
  3357. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3358. break 2
  3359. fi
  3360. done
  3361. done
  3362. IFS=$as_save_IFS
  3363. fi
  3364. fi
  3365. AWK=$ac_cv_prog_AWK
  3366. if test -n "$AWK"; then
  3367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3368. $as_echo "$AWK" >&6; }
  3369. else
  3370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3371. $as_echo "no" >&6; }
  3372. fi
  3373. test -n "$AWK" && break
  3374. done
  3375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3376. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3377. set x ${MAKE-make}
  3378. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3379. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3380. $as_echo_n "(cached) " >&6
  3381. else
  3382. cat >conftest.make <<\_ACEOF
  3383. SHELL = /bin/sh
  3384. all:
  3385. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3386. _ACEOF
  3387. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3388. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3389. *@@@%%%=?*=@@@%%%*)
  3390. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3391. *)
  3392. eval ac_cv_prog_make_${ac_make}_set=no;;
  3393. esac
  3394. rm -f conftest.make
  3395. fi
  3396. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3398. $as_echo "yes" >&6; }
  3399. SET_MAKE=
  3400. else
  3401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3402. $as_echo "no" >&6; }
  3403. SET_MAKE="MAKE=${MAKE-make}"
  3404. fi
  3405. rm -rf .tst 2>/dev/null
  3406. mkdir .tst 2>/dev/null
  3407. if test -d .tst; then
  3408. am__leading_dot=.
  3409. else
  3410. am__leading_dot=_
  3411. fi
  3412. rmdir .tst 2>/dev/null
  3413. # Check whether --enable-silent-rules was given.
  3414. if test "${enable_silent_rules+set}" = set; then :
  3415. enableval=$enable_silent_rules;
  3416. fi
  3417. case $enable_silent_rules in # (((
  3418. yes) AM_DEFAULT_VERBOSITY=0;;
  3419. no) AM_DEFAULT_VERBOSITY=1;;
  3420. *) AM_DEFAULT_VERBOSITY=1;;
  3421. esac
  3422. am_make=${MAKE-make}
  3423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3424. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3425. if ${am_cv_make_support_nested_variables+:} false; then :
  3426. $as_echo_n "(cached) " >&6
  3427. else
  3428. if $as_echo 'TRUE=$(BAR$(V))
  3429. BAR0=false
  3430. BAR1=true
  3431. V=1
  3432. am__doit:
  3433. @$(TRUE)
  3434. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3435. am_cv_make_support_nested_variables=yes
  3436. else
  3437. am_cv_make_support_nested_variables=no
  3438. fi
  3439. fi
  3440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3441. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3442. if test $am_cv_make_support_nested_variables = yes; then
  3443. AM_V='$(V)'
  3444. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3445. else
  3446. AM_V=$AM_DEFAULT_VERBOSITY
  3447. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3448. fi
  3449. AM_BACKSLASH='\'
  3450. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3451. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3452. # is not polluted with repeated "-I."
  3453. am__isrc=' -I$(srcdir)'
  3454. # test to see if srcdir already configured
  3455. if test -f $srcdir/config.status; then
  3456. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3457. fi
  3458. fi
  3459. # test whether we have cygpath
  3460. if test -z "$CYGPATH_W"; then
  3461. if (cygpath --version) >/dev/null 2>/dev/null; then
  3462. CYGPATH_W='cygpath -w'
  3463. else
  3464. CYGPATH_W=echo
  3465. fi
  3466. fi
  3467. # Define the identity of the package.
  3468. PACKAGE='tcpreplay'
  3469. VERSION='4.4.2'
  3470. cat >>confdefs.h <<_ACEOF
  3471. #define PACKAGE "$PACKAGE"
  3472. _ACEOF
  3473. cat >>confdefs.h <<_ACEOF
  3474. #define VERSION "$VERSION"
  3475. _ACEOF
  3476. # Some tools Automake needs.
  3477. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3478. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3479. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3480. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3481. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3482. # For better backward compatibility. To be removed once Automake 1.9.x
  3483. # dies out for good. For more background, see:
  3484. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3485. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3486. mkdir_p='$(MKDIR_P)'
  3487. # We need awk for the "check" target (and possibly the TAP driver). The
  3488. # system "awk" is bad on some platforms.
  3489. # Always define AMTAR for backward compatibility. Yes, it's still used
  3490. # in the wild :-( We should find a proper way to deprecate it ...
  3491. AMTAR='$${TAR-tar}'
  3492. # We'll loop over all known methods to create a tar archive until one works.
  3493. _am_tools='gnutar pax cpio none'
  3494. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3495. # POSIX will say in a future version that running "rm -f" with no argument
  3496. # is OK; and we want to be able to make that assumption in our Makefile
  3497. # recipes. So use an aggressive probe to check that the usage we want is
  3498. # actually supported "in the wild" to an acceptable degree.
  3499. # See automake bug#10828.
  3500. # To make any issue more visible, cause the running configure to be aborted
  3501. # by default if the 'rm' program in use doesn't match our expectations; the
  3502. # user can still override this though.
  3503. if rm -f && rm -fr && rm -rf; then : OK; else
  3504. cat >&2 <<'END'
  3505. Oops!
  3506. Your 'rm' program seems unable to run without file operands specified
  3507. on the command line, even when the '-f' option is present. This is contrary
  3508. to the behaviour of most rm programs out there, and not conforming with
  3509. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3510. Please tell bug-automake@gnu.org about your system, including the value
  3511. of your $PATH and any error possibly output before this message. This
  3512. can help us improve future automake versions.
  3513. END
  3514. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3515. echo 'Configuration will proceed anyway, since you have set the' >&2
  3516. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3517. echo >&2
  3518. else
  3519. cat >&2 <<'END'
  3520. Aborting the configuration process, to ensure you take notice of the issue.
  3521. You can download and install GNU coreutils to get an 'rm' implementation
  3522. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  3523. If you want to complete the configuration process using your problematic
  3524. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3525. to "yes", and re-run configure.
  3526. END
  3527. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3528. fi
  3529. fi
  3530. # Check whether --enable-silent-rules was given.
  3531. if test "${enable_silent_rules+set}" = set; then :
  3532. enableval=$enable_silent_rules;
  3533. fi
  3534. case $enable_silent_rules in # (((
  3535. yes) AM_DEFAULT_VERBOSITY=0;;
  3536. no) AM_DEFAULT_VERBOSITY=1;;
  3537. *) AM_DEFAULT_VERBOSITY=0;;
  3538. esac
  3539. am_make=${MAKE-make}
  3540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3541. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3542. if ${am_cv_make_support_nested_variables+:} false; then :
  3543. $as_echo_n "(cached) " >&6
  3544. else
  3545. if $as_echo 'TRUE=$(BAR$(V))
  3546. BAR0=false
  3547. BAR1=true
  3548. V=1
  3549. am__doit:
  3550. @$(TRUE)
  3551. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3552. am_cv_make_support_nested_variables=yes
  3553. else
  3554. am_cv_make_support_nested_variables=no
  3555. fi
  3556. fi
  3557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3558. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3559. if test $am_cv_make_support_nested_variables = yes; then
  3560. AM_V='$(V)'
  3561. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3562. else
  3563. AM_V=$AM_DEFAULT_VERBOSITY
  3564. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3565. fi
  3566. AM_BACKSLASH='\'
  3567. DEPDIR="${am__leading_dot}deps"
  3568. ac_config_commands="$ac_config_commands depfiles"
  3569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  3570. $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
  3571. cat > confinc.mk << 'END'
  3572. am__doit:
  3573. @echo this is the am__doit target >confinc.out
  3574. .PHONY: am__doit
  3575. END
  3576. am__include="#"
  3577. am__quote=
  3578. # BSD make does it like this.
  3579. echo '.include "confinc.mk" # ignored' > confmf.BSD
  3580. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  3581. echo 'include confinc.mk # ignored' > confmf.GNU
  3582. _am_result=no
  3583. for s in GNU BSD; do
  3584. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  3585. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  3586. ac_status=$?
  3587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3588. (exit $ac_status); }
  3589. case $?:`cat confinc.out 2>/dev/null` in #(
  3590. '0:this is the am__doit target') :
  3591. case $s in #(
  3592. BSD) :
  3593. am__include='.include' am__quote='"' ;; #(
  3594. *) :
  3595. am__include='include' am__quote='' ;;
  3596. esac ;; #(
  3597. *) :
  3598. ;;
  3599. esac
  3600. if test "$am__include" != "#"; then
  3601. _am_result="yes ($s style)"
  3602. break
  3603. fi
  3604. done
  3605. rm -f confinc.* confmf.*
  3606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  3607. $as_echo "${_am_result}" >&6; }
  3608. # Check whether --enable-dependency-tracking was given.
  3609. if test "${enable_dependency_tracking+set}" = set; then :
  3610. enableval=$enable_dependency_tracking;
  3611. fi
  3612. if test "x$enable_dependency_tracking" != xno; then
  3613. am_depcomp="$ac_aux_dir/depcomp"
  3614. AMDEPBACKSLASH='\'
  3615. am__nodep='_no'
  3616. fi
  3617. if test "x$enable_dependency_tracking" != xno; then
  3618. AMDEP_TRUE=
  3619. AMDEP_FALSE='#'
  3620. else
  3621. AMDEP_TRUE='#'
  3622. AMDEP_FALSE=
  3623. fi
  3624. ac_ext=c
  3625. ac_cpp='$CPP $CPPFLAGS'
  3626. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3627. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3628. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3629. if test -n "$ac_tool_prefix"; then
  3630. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3631. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3633. $as_echo_n "checking for $ac_word... " >&6; }
  3634. if ${ac_cv_prog_CC+:} false; then :
  3635. $as_echo_n "(cached) " >&6
  3636. else
  3637. if test -n "$CC"; then
  3638. ac_cv_prog_CC="$CC" # Let the user override the test.
  3639. else
  3640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3641. for as_dir in $PATH
  3642. do
  3643. IFS=$as_save_IFS
  3644. test -z "$as_dir" && as_dir=.
  3645. for ac_exec_ext in '' $ac_executable_extensions; do
  3646. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3647. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3648. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3649. break 2
  3650. fi
  3651. done
  3652. done
  3653. IFS=$as_save_IFS
  3654. fi
  3655. fi
  3656. CC=$ac_cv_prog_CC
  3657. if test -n "$CC"; then
  3658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3659. $as_echo "$CC" >&6; }
  3660. else
  3661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3662. $as_echo "no" >&6; }
  3663. fi
  3664. fi
  3665. if test -z "$ac_cv_prog_CC"; then
  3666. ac_ct_CC=$CC
  3667. # Extract the first word of "gcc", so it can be a program name with args.
  3668. set dummy gcc; ac_word=$2
  3669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3670. $as_echo_n "checking for $ac_word... " >&6; }
  3671. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3672. $as_echo_n "(cached) " >&6
  3673. else
  3674. if test -n "$ac_ct_CC"; then
  3675. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3676. else
  3677. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3678. for as_dir in $PATH
  3679. do
  3680. IFS=$as_save_IFS
  3681. test -z "$as_dir" && as_dir=.
  3682. for ac_exec_ext in '' $ac_executable_extensions; do
  3683. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3684. ac_cv_prog_ac_ct_CC="gcc"
  3685. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3686. break 2
  3687. fi
  3688. done
  3689. done
  3690. IFS=$as_save_IFS
  3691. fi
  3692. fi
  3693. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3694. if test -n "$ac_ct_CC"; then
  3695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3696. $as_echo "$ac_ct_CC" >&6; }
  3697. else
  3698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3699. $as_echo "no" >&6; }
  3700. fi
  3701. if test "x$ac_ct_CC" = x; then
  3702. CC=""
  3703. else
  3704. case $cross_compiling:$ac_tool_warned in
  3705. yes:)
  3706. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3707. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3708. ac_tool_warned=yes ;;
  3709. esac
  3710. CC=$ac_ct_CC
  3711. fi
  3712. else
  3713. CC="$ac_cv_prog_CC"
  3714. fi
  3715. if test -z "$CC"; then
  3716. if test -n "$ac_tool_prefix"; then
  3717. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3718. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3720. $as_echo_n "checking for $ac_word... " >&6; }
  3721. if ${ac_cv_prog_CC+:} false; then :
  3722. $as_echo_n "(cached) " >&6
  3723. else
  3724. if test -n "$CC"; then
  3725. ac_cv_prog_CC="$CC" # Let the user override the test.
  3726. else
  3727. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3728. for as_dir in $PATH
  3729. do
  3730. IFS=$as_save_IFS
  3731. test -z "$as_dir" && as_dir=.
  3732. for ac_exec_ext in '' $ac_executable_extensions; do
  3733. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3734. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3735. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3736. break 2
  3737. fi
  3738. done
  3739. done
  3740. IFS=$as_save_IFS
  3741. fi
  3742. fi
  3743. CC=$ac_cv_prog_CC
  3744. if test -n "$CC"; then
  3745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3746. $as_echo "$CC" >&6; }
  3747. else
  3748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3749. $as_echo "no" >&6; }
  3750. fi
  3751. fi
  3752. fi
  3753. if test -z "$CC"; then
  3754. # Extract the first word of "cc", so it can be a program name with args.
  3755. set dummy cc; ac_word=$2
  3756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3757. $as_echo_n "checking for $ac_word... " >&6; }
  3758. if ${ac_cv_prog_CC+:} false; then :
  3759. $as_echo_n "(cached) " >&6
  3760. else
  3761. if test -n "$CC"; then
  3762. ac_cv_prog_CC="$CC" # Let the user override the test.
  3763. else
  3764. ac_prog_rejected=no
  3765. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3766. for as_dir in $PATH
  3767. do
  3768. IFS=$as_save_IFS
  3769. test -z "$as_dir" && as_dir=.
  3770. for ac_exec_ext in '' $ac_executable_extensions; do
  3771. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3772. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3773. ac_prog_rejected=yes
  3774. continue
  3775. fi
  3776. ac_cv_prog_CC="cc"
  3777. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3778. break 2
  3779. fi
  3780. done
  3781. done
  3782. IFS=$as_save_IFS
  3783. if test $ac_prog_rejected = yes; then
  3784. # We found a bogon in the path, so make sure we never use it.
  3785. set dummy $ac_cv_prog_CC
  3786. shift
  3787. if test $# != 0; then
  3788. # We chose a different compiler from the bogus one.
  3789. # However, it has the same basename, so the bogon will be chosen
  3790. # first if we set CC to just the basename; use the full file name.
  3791. shift
  3792. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3793. fi
  3794. fi
  3795. fi
  3796. fi
  3797. CC=$ac_cv_prog_CC
  3798. if test -n "$CC"; then
  3799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3800. $as_echo "$CC" >&6; }
  3801. else
  3802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3803. $as_echo "no" >&6; }
  3804. fi
  3805. fi
  3806. if test -z "$CC"; then
  3807. if test -n "$ac_tool_prefix"; then
  3808. for ac_prog in cl.exe
  3809. do
  3810. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3811. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3813. $as_echo_n "checking for $ac_word... " >&6; }
  3814. if ${ac_cv_prog_CC+:} false; then :
  3815. $as_echo_n "(cached) " >&6
  3816. else
  3817. if test -n "$CC"; then
  3818. ac_cv_prog_CC="$CC" # Let the user override the test.
  3819. else
  3820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3821. for as_dir in $PATH
  3822. do
  3823. IFS=$as_save_IFS
  3824. test -z "$as_dir" && as_dir=.
  3825. for ac_exec_ext in '' $ac_executable_extensions; do
  3826. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3827. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3828. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3829. break 2
  3830. fi
  3831. done
  3832. done
  3833. IFS=$as_save_IFS
  3834. fi
  3835. fi
  3836. CC=$ac_cv_prog_CC
  3837. if test -n "$CC"; then
  3838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3839. $as_echo "$CC" >&6; }
  3840. else
  3841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3842. $as_echo "no" >&6; }
  3843. fi
  3844. test -n "$CC" && break
  3845. done
  3846. fi
  3847. if test -z "$CC"; then
  3848. ac_ct_CC=$CC
  3849. for ac_prog in cl.exe
  3850. do
  3851. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3852. set dummy $ac_prog; ac_word=$2
  3853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3854. $as_echo_n "checking for $ac_word... " >&6; }
  3855. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3856. $as_echo_n "(cached) " >&6
  3857. else
  3858. if test -n "$ac_ct_CC"; then
  3859. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3860. else
  3861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3862. for as_dir in $PATH
  3863. do
  3864. IFS=$as_save_IFS
  3865. test -z "$as_dir" && as_dir=.
  3866. for ac_exec_ext in '' $ac_executable_extensions; do
  3867. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3868. ac_cv_prog_ac_ct_CC="$ac_prog"
  3869. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3870. break 2
  3871. fi
  3872. done
  3873. done
  3874. IFS=$as_save_IFS
  3875. fi
  3876. fi
  3877. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3878. if test -n "$ac_ct_CC"; then
  3879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3880. $as_echo "$ac_ct_CC" >&6; }
  3881. else
  3882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3883. $as_echo "no" >&6; }
  3884. fi
  3885. test -n "$ac_ct_CC" && break
  3886. done
  3887. if test "x$ac_ct_CC" = x; then
  3888. CC=""
  3889. else
  3890. case $cross_compiling:$ac_tool_warned in
  3891. yes:)
  3892. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3893. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3894. ac_tool_warned=yes ;;
  3895. esac
  3896. CC=$ac_ct_CC
  3897. fi
  3898. fi
  3899. fi
  3900. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3901. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3902. as_fn_error $? "no acceptable C compiler found in \$PATH
  3903. See \`config.log' for more details" "$LINENO" 5; }
  3904. # Provide some information about the compiler.
  3905. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3906. set X $ac_compile
  3907. ac_compiler=$2
  3908. for ac_option in --version -v -V -qversion; do
  3909. { { ac_try="$ac_compiler $ac_option >&5"
  3910. case "(($ac_try" in
  3911. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3912. *) ac_try_echo=$ac_try;;
  3913. esac
  3914. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3915. $as_echo "$ac_try_echo"; } >&5
  3916. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3917. ac_status=$?
  3918. if test -s conftest.err; then
  3919. sed '10a\
  3920. ... rest of stderr output deleted ...
  3921. 10q' conftest.err >conftest.er1
  3922. cat conftest.er1 >&5
  3923. fi
  3924. rm -f conftest.er1 conftest.err
  3925. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3926. test $ac_status = 0; }
  3927. done
  3928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3929. /* end confdefs.h. */
  3930. int
  3931. main ()
  3932. {
  3933. ;
  3934. return 0;
  3935. }
  3936. _ACEOF
  3937. ac_clean_files_save=$ac_clean_files
  3938. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3939. # Try to create an executable without -o first, disregard a.out.
  3940. # It will help us diagnose broken compilers, and finding out an intuition
  3941. # of exeext.
  3942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3943. $as_echo_n "checking whether the C compiler works... " >&6; }
  3944. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3945. # The possible output files:
  3946. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3947. ac_rmfiles=
  3948. for ac_file in $ac_files
  3949. do
  3950. case $ac_file in
  3951. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3952. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3953. esac
  3954. done
  3955. rm -f $ac_rmfiles
  3956. if { { ac_try="$ac_link_default"
  3957. case "(($ac_try" in
  3958. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3959. *) ac_try_echo=$ac_try;;
  3960. esac
  3961. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3962. $as_echo "$ac_try_echo"; } >&5
  3963. (eval "$ac_link_default") 2>&5
  3964. ac_status=$?
  3965. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3966. test $ac_status = 0; }; then :
  3967. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3968. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3969. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3970. # so that the user can short-circuit this test for compilers unknown to
  3971. # Autoconf.
  3972. for ac_file in $ac_files ''
  3973. do
  3974. test -f "$ac_file" || continue
  3975. case $ac_file in
  3976. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3977. ;;
  3978. [ab].out )
  3979. # We found the default executable, but exeext='' is most
  3980. # certainly right.
  3981. break;;
  3982. *.* )
  3983. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3984. then :; else
  3985. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3986. fi
  3987. # We set ac_cv_exeext here because the later test for it is not
  3988. # safe: cross compilers may not add the suffix if given an `-o'
  3989. # argument, so we may need to know it at that point already.
  3990. # Even if this section looks crufty: it has the advantage of
  3991. # actually working.
  3992. break;;
  3993. * )
  3994. break;;
  3995. esac
  3996. done
  3997. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3998. else
  3999. ac_file=''
  4000. fi
  4001. if test -z "$ac_file"; then :
  4002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4003. $as_echo "no" >&6; }
  4004. $as_echo "$as_me: failed program was:" >&5
  4005. sed 's/^/| /' conftest.$ac_ext >&5
  4006. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4007. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4008. as_fn_error 77 "C compiler cannot create executables
  4009. See \`config.log' for more details" "$LINENO" 5; }
  4010. else
  4011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4012. $as_echo "yes" >&6; }
  4013. fi
  4014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  4015. $as_echo_n "checking for C compiler default output file name... " >&6; }
  4016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  4017. $as_echo "$ac_file" >&6; }
  4018. ac_exeext=$ac_cv_exeext
  4019. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  4020. ac_clean_files=$ac_clean_files_save
  4021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4022. $as_echo_n "checking for suffix of executables... " >&6; }
  4023. if { { ac_try="$ac_link"
  4024. case "(($ac_try" in
  4025. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4026. *) ac_try_echo=$ac_try;;
  4027. esac
  4028. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4029. $as_echo "$ac_try_echo"; } >&5
  4030. (eval "$ac_link") 2>&5
  4031. ac_status=$?
  4032. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4033. test $ac_status = 0; }; then :
  4034. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  4035. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  4036. # work properly (i.e., refer to `conftest.exe'), while it won't with
  4037. # `rm'.
  4038. for ac_file in conftest.exe conftest conftest.*; do
  4039. test -f "$ac_file" || continue
  4040. case $ac_file in
  4041. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4042. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4043. break;;
  4044. * ) break;;
  4045. esac
  4046. done
  4047. else
  4048. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4049. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4050. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  4051. See \`config.log' for more details" "$LINENO" 5; }
  4052. fi
  4053. rm -f conftest conftest$ac_cv_exeext
  4054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4055. $as_echo "$ac_cv_exeext" >&6; }
  4056. rm -f conftest.$ac_ext
  4057. EXEEXT=$ac_cv_exeext
  4058. ac_exeext=$EXEEXT
  4059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4060. /* end confdefs.h. */
  4061. #include <stdio.h>
  4062. int
  4063. main ()
  4064. {
  4065. FILE *f = fopen ("conftest.out", "w");
  4066. return ferror (f) || fclose (f) != 0;
  4067. ;
  4068. return 0;
  4069. }
  4070. _ACEOF
  4071. ac_clean_files="$ac_clean_files conftest.out"
  4072. # Check that the compiler produces executables we can run. If not, either
  4073. # the compiler is broken, or we cross compile.
  4074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4075. $as_echo_n "checking whether we are cross compiling... " >&6; }
  4076. if test "$cross_compiling" != yes; then
  4077. { { ac_try="$ac_link"
  4078. case "(($ac_try" in
  4079. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4080. *) ac_try_echo=$ac_try;;
  4081. esac
  4082. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4083. $as_echo "$ac_try_echo"; } >&5
  4084. (eval "$ac_link") 2>&5
  4085. ac_status=$?
  4086. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4087. test $ac_status = 0; }
  4088. if { ac_try='./conftest$ac_cv_exeext'
  4089. { { case "(($ac_try" in
  4090. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4091. *) ac_try_echo=$ac_try;;
  4092. esac
  4093. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4094. $as_echo "$ac_try_echo"; } >&5
  4095. (eval "$ac_try") 2>&5
  4096. ac_status=$?
  4097. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4098. test $ac_status = 0; }; }; then
  4099. cross_compiling=no
  4100. else
  4101. if test "$cross_compiling" = maybe; then
  4102. cross_compiling=yes
  4103. else
  4104. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4105. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4106. as_fn_error $? "cannot run C compiled programs.
  4107. If you meant to cross compile, use \`--host'.
  4108. See \`config.log' for more details" "$LINENO" 5; }
  4109. fi
  4110. fi
  4111. fi
  4112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4113. $as_echo "$cross_compiling" >&6; }
  4114. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  4115. ac_clean_files=$ac_clean_files_save
  4116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4117. $as_echo_n "checking for suffix of object files... " >&6; }
  4118. if ${ac_cv_objext+:} false; then :
  4119. $as_echo_n "(cached) " >&6
  4120. else
  4121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4122. /* end confdefs.h. */
  4123. int
  4124. main ()
  4125. {
  4126. ;
  4127. return 0;
  4128. }
  4129. _ACEOF
  4130. rm -f conftest.o conftest.obj
  4131. if { { ac_try="$ac_compile"
  4132. case "(($ac_try" in
  4133. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4134. *) ac_try_echo=$ac_try;;
  4135. esac
  4136. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4137. $as_echo "$ac_try_echo"; } >&5
  4138. (eval "$ac_compile") 2>&5
  4139. ac_status=$?
  4140. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4141. test $ac_status = 0; }; then :
  4142. for ac_file in conftest.o conftest.obj conftest.*; do
  4143. test -f "$ac_file" || continue;
  4144. case $ac_file in
  4145. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4146. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4147. break;;
  4148. esac
  4149. done
  4150. else
  4151. $as_echo "$as_me: failed program was:" >&5
  4152. sed 's/^/| /' conftest.$ac_ext >&5
  4153. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4154. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4155. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4156. See \`config.log' for more details" "$LINENO" 5; }
  4157. fi
  4158. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4159. fi
  4160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4161. $as_echo "$ac_cv_objext" >&6; }
  4162. OBJEXT=$ac_cv_objext
  4163. ac_objext=$OBJEXT
  4164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4165. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4166. if ${ac_cv_c_compiler_gnu+:} false; then :
  4167. $as_echo_n "(cached) " >&6
  4168. else
  4169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4170. /* end confdefs.h. */
  4171. int
  4172. main ()
  4173. {
  4174. #ifndef __GNUC__
  4175. choke me
  4176. #endif
  4177. ;
  4178. return 0;
  4179. }
  4180. _ACEOF
  4181. if ac_fn_c_try_compile "$LINENO"; then :
  4182. ac_compiler_gnu=yes
  4183. else
  4184. ac_compiler_gnu=no
  4185. fi
  4186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4187. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4188. fi
  4189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4190. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4191. if test $ac_compiler_gnu = yes; then
  4192. GCC=yes
  4193. else
  4194. GCC=
  4195. fi
  4196. ac_test_CFLAGS=${CFLAGS+set}
  4197. ac_save_CFLAGS=$CFLAGS
  4198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4199. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4200. if ${ac_cv_prog_cc_g+:} false; then :
  4201. $as_echo_n "(cached) " >&6
  4202. else
  4203. ac_save_c_werror_flag=$ac_c_werror_flag
  4204. ac_c_werror_flag=yes
  4205. ac_cv_prog_cc_g=no
  4206. CFLAGS="-g"
  4207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4208. /* end confdefs.h. */
  4209. int
  4210. main ()
  4211. {
  4212. ;
  4213. return 0;
  4214. }
  4215. _ACEOF
  4216. if ac_fn_c_try_compile "$LINENO"; then :
  4217. ac_cv_prog_cc_g=yes
  4218. else
  4219. CFLAGS=""
  4220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4221. /* end confdefs.h. */
  4222. int
  4223. main ()
  4224. {
  4225. ;
  4226. return 0;
  4227. }
  4228. _ACEOF
  4229. if ac_fn_c_try_compile "$LINENO"; then :
  4230. else
  4231. ac_c_werror_flag=$ac_save_c_werror_flag
  4232. CFLAGS="-g"
  4233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4234. /* end confdefs.h. */
  4235. int
  4236. main ()
  4237. {
  4238. ;
  4239. return 0;
  4240. }
  4241. _ACEOF
  4242. if ac_fn_c_try_compile "$LINENO"; then :
  4243. ac_cv_prog_cc_g=yes
  4244. fi
  4245. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4246. fi
  4247. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4248. fi
  4249. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4250. ac_c_werror_flag=$ac_save_c_werror_flag
  4251. fi
  4252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4253. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4254. if test "$ac_test_CFLAGS" = set; then
  4255. CFLAGS=$ac_save_CFLAGS
  4256. elif test $ac_cv_prog_cc_g = yes; then
  4257. if test "$GCC" = yes; then
  4258. CFLAGS="-g -O2"
  4259. else
  4260. CFLAGS="-g"
  4261. fi
  4262. else
  4263. if test "$GCC" = yes; then
  4264. CFLAGS="-O2"
  4265. else
  4266. CFLAGS=
  4267. fi
  4268. fi
  4269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4270. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4271. if ${ac_cv_prog_cc_c89+:} false; then :
  4272. $as_echo_n "(cached) " >&6
  4273. else
  4274. ac_cv_prog_cc_c89=no
  4275. ac_save_CC=$CC
  4276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4277. /* end confdefs.h. */
  4278. #include <stdarg.h>
  4279. #include <stdio.h>
  4280. struct stat;
  4281. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4282. struct buf { int x; };
  4283. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4284. static char *e (p, i)
  4285. char **p;
  4286. int i;
  4287. {
  4288. return p[i];
  4289. }
  4290. static char *f (char * (*g) (char **, int), char **p, ...)
  4291. {
  4292. char *s;
  4293. va_list v;
  4294. va_start (v,p);
  4295. s = g (p, va_arg (v,int));
  4296. va_end (v);
  4297. return s;
  4298. }
  4299. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4300. function prototypes and stuff, but not '\xHH' hex character constants.
  4301. These don't provoke an error unfortunately, instead are silently treated
  4302. as 'x'. The following induces an error, until -std is added to get
  4303. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4304. array size at least. It's necessary to write '\x00'==0 to get something
  4305. that's true only with -std. */
  4306. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4307. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4308. inside strings and character constants. */
  4309. #define FOO(x) 'x'
  4310. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4311. int test (int i, double x);
  4312. struct s1 {int (*f) (int a);};
  4313. struct s2 {int (*f) (double a);};
  4314. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4315. int argc;
  4316. char **argv;
  4317. int
  4318. main ()
  4319. {
  4320. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4321. ;
  4322. return 0;
  4323. }
  4324. _ACEOF
  4325. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4326. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4327. do
  4328. CC="$ac_save_CC $ac_arg"
  4329. if ac_fn_c_try_compile "$LINENO"; then :
  4330. ac_cv_prog_cc_c89=$ac_arg
  4331. fi
  4332. rm -f core conftest.err conftest.$ac_objext
  4333. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4334. done
  4335. rm -f conftest.$ac_ext
  4336. CC=$ac_save_CC
  4337. fi
  4338. # AC_CACHE_VAL
  4339. case "x$ac_cv_prog_cc_c89" in
  4340. x)
  4341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4342. $as_echo "none needed" >&6; } ;;
  4343. xno)
  4344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4345. $as_echo "unsupported" >&6; } ;;
  4346. *)
  4347. CC="$CC $ac_cv_prog_cc_c89"
  4348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4349. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4350. esac
  4351. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4352. fi
  4353. ac_ext=c
  4354. ac_cpp='$CPP $CPPFLAGS'
  4355. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4356. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4357. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4358. ac_ext=c
  4359. ac_cpp='$CPP $CPPFLAGS'
  4360. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4361. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4362. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4364. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4365. if ${am_cv_prog_cc_c_o+:} false; then :
  4366. $as_echo_n "(cached) " >&6
  4367. else
  4368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4369. /* end confdefs.h. */
  4370. int
  4371. main ()
  4372. {
  4373. ;
  4374. return 0;
  4375. }
  4376. _ACEOF
  4377. # Make sure it works both with $CC and with simple cc.
  4378. # Following AC_PROG_CC_C_O, we do the test twice because some
  4379. # compilers refuse to overwrite an existing .o file with -o,
  4380. # though they will create one.
  4381. am_cv_prog_cc_c_o=yes
  4382. for am_i in 1 2; do
  4383. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4384. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4385. ac_status=$?
  4386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4387. (exit $ac_status); } \
  4388. && test -f conftest2.$ac_objext; then
  4389. : OK
  4390. else
  4391. am_cv_prog_cc_c_o=no
  4392. break
  4393. fi
  4394. done
  4395. rm -f core conftest*
  4396. unset am_i
  4397. fi
  4398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4399. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4400. if test "$am_cv_prog_cc_c_o" != yes; then
  4401. # Losing compiler, so override with the script.
  4402. # FIXME: It is wrong to rewrite CC.
  4403. # But if we don't then we get into trouble of one sort or another.
  4404. # A longer-term fix would be to have automake use am__CC in this case,
  4405. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4406. CC="$am_aux_dir/compile $CC"
  4407. fi
  4408. ac_ext=c
  4409. ac_cpp='$CPP $CPPFLAGS'
  4410. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4411. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4412. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4413. depcc="$CC" am_compiler_list=
  4414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4415. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4416. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4417. $as_echo_n "(cached) " >&6
  4418. else
  4419. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4420. # We make a subdir and do the tests there. Otherwise we can end up
  4421. # making bogus files that we don't know about and never remove. For
  4422. # instance it was reported that on HP-UX the gcc test will end up
  4423. # making a dummy file named 'D' -- because '-MD' means "put the output
  4424. # in D".
  4425. rm -rf conftest.dir
  4426. mkdir conftest.dir
  4427. # Copy depcomp to subdir because otherwise we won't find it if we're
  4428. # using a relative directory.
  4429. cp "$am_depcomp" conftest.dir
  4430. cd conftest.dir
  4431. # We will build objects and dependencies in a subdirectory because
  4432. # it helps to detect inapplicable dependency modes. For instance
  4433. # both Tru64's cc and ICC support -MD to output dependencies as a
  4434. # side effect of compilation, but ICC will put the dependencies in
  4435. # the current directory while Tru64 will put them in the object
  4436. # directory.
  4437. mkdir sub
  4438. am_cv_CC_dependencies_compiler_type=none
  4439. if test "$am_compiler_list" = ""; then
  4440. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4441. fi
  4442. am__universal=false
  4443. case " $depcc " in #(
  4444. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4445. esac
  4446. for depmode in $am_compiler_list; do
  4447. # Setup a source with many dependencies, because some compilers
  4448. # like to wrap large dependency lists on column 80 (with \), and
  4449. # we should not choose a depcomp mode which is confused by this.
  4450. #
  4451. # We need to recreate these files for each test, as the compiler may
  4452. # overwrite some of them when testing with obscure command lines.
  4453. # This happens at least with the AIX C compiler.
  4454. : > sub/conftest.c
  4455. for i in 1 2 3 4 5 6; do
  4456. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4457. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4458. # Solaris 10 /bin/sh.
  4459. echo '/* dummy */' > sub/conftst$i.h
  4460. done
  4461. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4462. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4463. # mode. It turns out that the SunPro C++ compiler does not properly
  4464. # handle '-M -o', and we need to detect this. Also, some Intel
  4465. # versions had trouble with output in subdirs.
  4466. am__obj=sub/conftest.${OBJEXT-o}
  4467. am__minus_obj="-o $am__obj"
  4468. case $depmode in
  4469. gcc)
  4470. # This depmode causes a compiler race in universal mode.
  4471. test "$am__universal" = false || continue
  4472. ;;
  4473. nosideeffect)
  4474. # After this tag, mechanisms are not by side-effect, so they'll
  4475. # only be used when explicitly requested.
  4476. if test "x$enable_dependency_tracking" = xyes; then
  4477. continue
  4478. else
  4479. break
  4480. fi
  4481. ;;
  4482. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4483. # This compiler won't grok '-c -o', but also, the minuso test has
  4484. # not run yet. These depmodes are late enough in the game, and
  4485. # so weak that their functioning should not be impacted.
  4486. am__obj=conftest.${OBJEXT-o}
  4487. am__minus_obj=
  4488. ;;
  4489. none) break ;;
  4490. esac
  4491. if depmode=$depmode \
  4492. source=sub/conftest.c object=$am__obj \
  4493. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4494. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4495. >/dev/null 2>conftest.err &&
  4496. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4497. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4498. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4499. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4500. # icc doesn't choke on unknown options, it will just issue warnings
  4501. # or remarks (even with -Werror). So we grep stderr for any message
  4502. # that says an option was ignored or not supported.
  4503. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4504. # icc: Command line warning: ignoring option '-M'; no argument required
  4505. # The diagnosis changed in icc 8.0:
  4506. # icc: Command line remark: option '-MP' not supported
  4507. if (grep 'ignoring option' conftest.err ||
  4508. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4509. am_cv_CC_dependencies_compiler_type=$depmode
  4510. break
  4511. fi
  4512. fi
  4513. done
  4514. cd ..
  4515. rm -rf conftest.dir
  4516. else
  4517. am_cv_CC_dependencies_compiler_type=none
  4518. fi
  4519. fi
  4520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4521. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4522. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4523. if
  4524. test "x$enable_dependency_tracking" != xno \
  4525. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4526. am__fastdepCC_TRUE=
  4527. am__fastdepCC_FALSE='#'
  4528. else
  4529. am__fastdepCC_TRUE='#'
  4530. am__fastdepCC_FALSE=
  4531. fi
  4532. if test -n "$ac_tool_prefix"; then
  4533. for ac_prog in ar lib "link -lib"
  4534. do
  4535. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4536. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4538. $as_echo_n "checking for $ac_word... " >&6; }
  4539. if ${ac_cv_prog_AR+:} false; then :
  4540. $as_echo_n "(cached) " >&6
  4541. else
  4542. if test -n "$AR"; then
  4543. ac_cv_prog_AR="$AR" # Let the user override the test.
  4544. else
  4545. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4546. for as_dir in $PATH
  4547. do
  4548. IFS=$as_save_IFS
  4549. test -z "$as_dir" && as_dir=.
  4550. for ac_exec_ext in '' $ac_executable_extensions; do
  4551. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4552. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4553. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4554. break 2
  4555. fi
  4556. done
  4557. done
  4558. IFS=$as_save_IFS
  4559. fi
  4560. fi
  4561. AR=$ac_cv_prog_AR
  4562. if test -n "$AR"; then
  4563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4564. $as_echo "$AR" >&6; }
  4565. else
  4566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4567. $as_echo "no" >&6; }
  4568. fi
  4569. test -n "$AR" && break
  4570. done
  4571. fi
  4572. if test -z "$AR"; then
  4573. ac_ct_AR=$AR
  4574. for ac_prog in ar lib "link -lib"
  4575. do
  4576. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4577. set dummy $ac_prog; ac_word=$2
  4578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4579. $as_echo_n "checking for $ac_word... " >&6; }
  4580. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4581. $as_echo_n "(cached) " >&6
  4582. else
  4583. if test -n "$ac_ct_AR"; then
  4584. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4585. else
  4586. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4587. for as_dir in $PATH
  4588. do
  4589. IFS=$as_save_IFS
  4590. test -z "$as_dir" && as_dir=.
  4591. for ac_exec_ext in '' $ac_executable_extensions; do
  4592. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4593. ac_cv_prog_ac_ct_AR="$ac_prog"
  4594. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4595. break 2
  4596. fi
  4597. done
  4598. done
  4599. IFS=$as_save_IFS
  4600. fi
  4601. fi
  4602. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4603. if test -n "$ac_ct_AR"; then
  4604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4605. $as_echo "$ac_ct_AR" >&6; }
  4606. else
  4607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4608. $as_echo "no" >&6; }
  4609. fi
  4610. test -n "$ac_ct_AR" && break
  4611. done
  4612. if test "x$ac_ct_AR" = x; then
  4613. AR="false"
  4614. else
  4615. case $cross_compiling:$ac_tool_warned in
  4616. yes:)
  4617. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4618. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4619. ac_tool_warned=yes ;;
  4620. esac
  4621. AR=$ac_ct_AR
  4622. fi
  4623. fi
  4624. : ${AR=ar}
  4625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  4626. $as_echo_n "checking the archiver ($AR) interface... " >&6; }
  4627. if ${am_cv_ar_interface+:} false; then :
  4628. $as_echo_n "(cached) " >&6
  4629. else
  4630. ac_ext=c
  4631. ac_cpp='$CPP $CPPFLAGS'
  4632. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4633. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4634. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4635. am_cv_ar_interface=ar
  4636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4637. /* end confdefs.h. */
  4638. int some_variable = 0;
  4639. _ACEOF
  4640. if ac_fn_c_try_compile "$LINENO"; then :
  4641. am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  4642. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4643. (eval $am_ar_try) 2>&5
  4644. ac_status=$?
  4645. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4646. test $ac_status = 0; }
  4647. if test "$ac_status" -eq 0; then
  4648. am_cv_ar_interface=ar
  4649. else
  4650. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  4651. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4652. (eval $am_ar_try) 2>&5
  4653. ac_status=$?
  4654. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4655. test $ac_status = 0; }
  4656. if test "$ac_status" -eq 0; then
  4657. am_cv_ar_interface=lib
  4658. else
  4659. am_cv_ar_interface=unknown
  4660. fi
  4661. fi
  4662. rm -f conftest.lib libconftest.a
  4663. fi
  4664. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4665. ac_ext=c
  4666. ac_cpp='$CPP $CPPFLAGS'
  4667. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4668. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4669. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4670. fi
  4671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  4672. $as_echo "$am_cv_ar_interface" >&6; }
  4673. case $am_cv_ar_interface in
  4674. ar)
  4675. ;;
  4676. lib)
  4677. # Microsoft lib, so override with the ar-lib wrapper script.
  4678. # FIXME: It is wrong to rewrite AR.
  4679. # But if we don't then we get into trouble of one sort or another.
  4680. # A longer-term fix would be to have automake use am__AR in this case,
  4681. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  4682. # similar.
  4683. AR="$am_aux_dir/ar-lib $AR"
  4684. ;;
  4685. unknown)
  4686. as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  4687. ;;
  4688. esac
  4689. case `pwd` in
  4690. *\ * | *\ *)
  4691. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4692. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4693. esac
  4694. macro_version='2.4.6'
  4695. macro_revision='2.4.6'
  4696. ltmain=$ac_aux_dir/ltmain.sh
  4697. # Backslashify metacharacters that are still active within
  4698. # double-quoted strings.
  4699. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4700. # Same as above, but do not quote variable references.
  4701. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4702. # Sed substitution to delay expansion of an escaped shell variable in a
  4703. # double_quote_subst'ed string.
  4704. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4705. # Sed substitution to delay expansion of an escaped single quote.
  4706. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4707. # Sed substitution to avoid accidental globbing in evaled expressions
  4708. no_glob_subst='s/\*/\\\*/g'
  4709. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4710. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4711. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4713. $as_echo_n "checking how to print strings... " >&6; }
  4714. # Test print first, because it will be a builtin if present.
  4715. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4716. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4717. ECHO='print -r --'
  4718. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4719. ECHO='printf %s\n'
  4720. else
  4721. # Use this function as a fallback that always works.
  4722. func_fallback_echo ()
  4723. {
  4724. eval 'cat <<_LTECHO_EOF
  4725. $1
  4726. _LTECHO_EOF'
  4727. }
  4728. ECHO='func_fallback_echo'
  4729. fi
  4730. # func_echo_all arg...
  4731. # Invoke $ECHO with all args, space-separated.
  4732. func_echo_all ()
  4733. {
  4734. $ECHO ""
  4735. }
  4736. case $ECHO in
  4737. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4738. $as_echo "printf" >&6; } ;;
  4739. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4740. $as_echo "print -r" >&6; } ;;
  4741. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4742. $as_echo "cat" >&6; } ;;
  4743. esac
  4744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4745. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4746. if ${ac_cv_path_SED+:} false; then :
  4747. $as_echo_n "(cached) " >&6
  4748. else
  4749. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4750. for ac_i in 1 2 3 4 5 6 7; do
  4751. ac_script="$ac_script$as_nl$ac_script"
  4752. done
  4753. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4754. { ac_script=; unset ac_script;}
  4755. if test -z "$SED"; then
  4756. ac_path_SED_found=false
  4757. # Loop through the user's path and test for each of PROGNAME-LIST
  4758. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4759. for as_dir in $PATH
  4760. do
  4761. IFS=$as_save_IFS
  4762. test -z "$as_dir" && as_dir=.
  4763. for ac_prog in sed gsed; do
  4764. for ac_exec_ext in '' $ac_executable_extensions; do
  4765. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4766. as_fn_executable_p "$ac_path_SED" || continue
  4767. # Check for GNU ac_path_SED and select it if it is found.
  4768. # Check for GNU $ac_path_SED
  4769. case `"$ac_path_SED" --version 2>&1` in
  4770. *GNU*)
  4771. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4772. *)
  4773. ac_count=0
  4774. $as_echo_n 0123456789 >"conftest.in"
  4775. while :
  4776. do
  4777. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4778. mv "conftest.tmp" "conftest.in"
  4779. cp "conftest.in" "conftest.nl"
  4780. $as_echo '' >> "conftest.nl"
  4781. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4782. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4783. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4784. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4785. # Best one so far, save it but keep looking for a better one
  4786. ac_cv_path_SED="$ac_path_SED"
  4787. ac_path_SED_max=$ac_count
  4788. fi
  4789. # 10*(2^10) chars as input seems more than enough
  4790. test $ac_count -gt 10 && break
  4791. done
  4792. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4793. esac
  4794. $ac_path_SED_found && break 3
  4795. done
  4796. done
  4797. done
  4798. IFS=$as_save_IFS
  4799. if test -z "$ac_cv_path_SED"; then
  4800. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4801. fi
  4802. else
  4803. ac_cv_path_SED=$SED
  4804. fi
  4805. fi
  4806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4807. $as_echo "$ac_cv_path_SED" >&6; }
  4808. SED="$ac_cv_path_SED"
  4809. rm -f conftest.sed
  4810. test -z "$SED" && SED=sed
  4811. Xsed="$SED -e 1s/^X//"
  4812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4813. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4814. if ${ac_cv_path_GREP+:} false; then :
  4815. $as_echo_n "(cached) " >&6
  4816. else
  4817. if test -z "$GREP"; then
  4818. ac_path_GREP_found=false
  4819. # Loop through the user's path and test for each of PROGNAME-LIST
  4820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4821. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4822. do
  4823. IFS=$as_save_IFS
  4824. test -z "$as_dir" && as_dir=.
  4825. for ac_prog in grep ggrep; do
  4826. for ac_exec_ext in '' $ac_executable_extensions; do
  4827. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4828. as_fn_executable_p "$ac_path_GREP" || continue
  4829. # Check for GNU ac_path_GREP and select it if it is found.
  4830. # Check for GNU $ac_path_GREP
  4831. case `"$ac_path_GREP" --version 2>&1` in
  4832. *GNU*)
  4833. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4834. *)
  4835. ac_count=0
  4836. $as_echo_n 0123456789 >"conftest.in"
  4837. while :
  4838. do
  4839. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4840. mv "conftest.tmp" "conftest.in"
  4841. cp "conftest.in" "conftest.nl"
  4842. $as_echo 'GREP' >> "conftest.nl"
  4843. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4844. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4845. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4846. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4847. # Best one so far, save it but keep looking for a better one
  4848. ac_cv_path_GREP="$ac_path_GREP"
  4849. ac_path_GREP_max=$ac_count
  4850. fi
  4851. # 10*(2^10) chars as input seems more than enough
  4852. test $ac_count -gt 10 && break
  4853. done
  4854. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4855. esac
  4856. $ac_path_GREP_found && break 3
  4857. done
  4858. done
  4859. done
  4860. IFS=$as_save_IFS
  4861. if test -z "$ac_cv_path_GREP"; then
  4862. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4863. fi
  4864. else
  4865. ac_cv_path_GREP=$GREP
  4866. fi
  4867. fi
  4868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4869. $as_echo "$ac_cv_path_GREP" >&6; }
  4870. GREP="$ac_cv_path_GREP"
  4871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4872. $as_echo_n "checking for egrep... " >&6; }
  4873. if ${ac_cv_path_EGREP+:} false; then :
  4874. $as_echo_n "(cached) " >&6
  4875. else
  4876. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4877. then ac_cv_path_EGREP="$GREP -E"
  4878. else
  4879. if test -z "$EGREP"; then
  4880. ac_path_EGREP_found=false
  4881. # Loop through the user's path and test for each of PROGNAME-LIST
  4882. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4883. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4884. do
  4885. IFS=$as_save_IFS
  4886. test -z "$as_dir" && as_dir=.
  4887. for ac_prog in egrep; do
  4888. for ac_exec_ext in '' $ac_executable_extensions; do
  4889. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4890. as_fn_executable_p "$ac_path_EGREP" || continue
  4891. # Check for GNU ac_path_EGREP and select it if it is found.
  4892. # Check for GNU $ac_path_EGREP
  4893. case `"$ac_path_EGREP" --version 2>&1` in
  4894. *GNU*)
  4895. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4896. *)
  4897. ac_count=0
  4898. $as_echo_n 0123456789 >"conftest.in"
  4899. while :
  4900. do
  4901. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4902. mv "conftest.tmp" "conftest.in"
  4903. cp "conftest.in" "conftest.nl"
  4904. $as_echo 'EGREP' >> "conftest.nl"
  4905. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4906. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4907. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4908. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4909. # Best one so far, save it but keep looking for a better one
  4910. ac_cv_path_EGREP="$ac_path_EGREP"
  4911. ac_path_EGREP_max=$ac_count
  4912. fi
  4913. # 10*(2^10) chars as input seems more than enough
  4914. test $ac_count -gt 10 && break
  4915. done
  4916. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4917. esac
  4918. $ac_path_EGREP_found && break 3
  4919. done
  4920. done
  4921. done
  4922. IFS=$as_save_IFS
  4923. if test -z "$ac_cv_path_EGREP"; then
  4924. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4925. fi
  4926. else
  4927. ac_cv_path_EGREP=$EGREP
  4928. fi
  4929. fi
  4930. fi
  4931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4932. $as_echo "$ac_cv_path_EGREP" >&6; }
  4933. EGREP="$ac_cv_path_EGREP"
  4934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4935. $as_echo_n "checking for fgrep... " >&6; }
  4936. if ${ac_cv_path_FGREP+:} false; then :
  4937. $as_echo_n "(cached) " >&6
  4938. else
  4939. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4940. then ac_cv_path_FGREP="$GREP -F"
  4941. else
  4942. if test -z "$FGREP"; then
  4943. ac_path_FGREP_found=false
  4944. # Loop through the user's path and test for each of PROGNAME-LIST
  4945. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4946. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4947. do
  4948. IFS=$as_save_IFS
  4949. test -z "$as_dir" && as_dir=.
  4950. for ac_prog in fgrep; do
  4951. for ac_exec_ext in '' $ac_executable_extensions; do
  4952. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4953. as_fn_executable_p "$ac_path_FGREP" || continue
  4954. # Check for GNU ac_path_FGREP and select it if it is found.
  4955. # Check for GNU $ac_path_FGREP
  4956. case `"$ac_path_FGREP" --version 2>&1` in
  4957. *GNU*)
  4958. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4959. *)
  4960. ac_count=0
  4961. $as_echo_n 0123456789 >"conftest.in"
  4962. while :
  4963. do
  4964. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4965. mv "conftest.tmp" "conftest.in"
  4966. cp "conftest.in" "conftest.nl"
  4967. $as_echo 'FGREP' >> "conftest.nl"
  4968. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4969. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4970. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4971. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4972. # Best one so far, save it but keep looking for a better one
  4973. ac_cv_path_FGREP="$ac_path_FGREP"
  4974. ac_path_FGREP_max=$ac_count
  4975. fi
  4976. # 10*(2^10) chars as input seems more than enough
  4977. test $ac_count -gt 10 && break
  4978. done
  4979. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4980. esac
  4981. $ac_path_FGREP_found && break 3
  4982. done
  4983. done
  4984. done
  4985. IFS=$as_save_IFS
  4986. if test -z "$ac_cv_path_FGREP"; then
  4987. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4988. fi
  4989. else
  4990. ac_cv_path_FGREP=$FGREP
  4991. fi
  4992. fi
  4993. fi
  4994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4995. $as_echo "$ac_cv_path_FGREP" >&6; }
  4996. FGREP="$ac_cv_path_FGREP"
  4997. test -z "$GREP" && GREP=grep
  4998. # Check whether --with-gnu-ld was given.
  4999. if test "${with_gnu_ld+set}" = set; then :
  5000. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  5001. else
  5002. with_gnu_ld=no
  5003. fi
  5004. ac_prog=ld
  5005. if test yes = "$GCC"; then
  5006. # Check if gcc -print-prog-name=ld gives a path.
  5007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5008. $as_echo_n "checking for ld used by $CC... " >&6; }
  5009. case $host in
  5010. *-*-mingw*)
  5011. # gcc leaves a trailing carriage return, which upsets mingw
  5012. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5013. *)
  5014. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5015. esac
  5016. case $ac_prog in
  5017. # Accept absolute paths.
  5018. [\\/]* | ?:[\\/]*)
  5019. re_direlt='/[^/][^/]*/\.\./'
  5020. # Canonicalize the pathname of ld
  5021. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5022. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5023. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5024. done
  5025. test -z "$LD" && LD=$ac_prog
  5026. ;;
  5027. "")
  5028. # If it fails, then pretend we aren't using GCC.
  5029. ac_prog=ld
  5030. ;;
  5031. *)
  5032. # If it is relative, then search for the first ld in PATH.
  5033. with_gnu_ld=unknown
  5034. ;;
  5035. esac
  5036. elif test yes = "$with_gnu_ld"; then
  5037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5038. $as_echo_n "checking for GNU ld... " >&6; }
  5039. else
  5040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5041. $as_echo_n "checking for non-GNU ld... " >&6; }
  5042. fi
  5043. if ${lt_cv_path_LD+:} false; then :
  5044. $as_echo_n "(cached) " >&6
  5045. else
  5046. if test -z "$LD"; then
  5047. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5048. for ac_dir in $PATH; do
  5049. IFS=$lt_save_ifs
  5050. test -z "$ac_dir" && ac_dir=.
  5051. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5052. lt_cv_path_LD=$ac_dir/$ac_prog
  5053. # Check to see if the program is GNU ld. I'd rather use --version,
  5054. # but apparently some variants of GNU ld only accept -v.
  5055. # Break only if it was the GNU/non-GNU ld that we prefer.
  5056. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5057. *GNU* | *'with BFD'*)
  5058. test no != "$with_gnu_ld" && break
  5059. ;;
  5060. *)
  5061. test yes != "$with_gnu_ld" && break
  5062. ;;
  5063. esac
  5064. fi
  5065. done
  5066. IFS=$lt_save_ifs
  5067. else
  5068. lt_cv_path_LD=$LD # Let the user override the test with a path.
  5069. fi
  5070. fi
  5071. LD=$lt_cv_path_LD
  5072. if test -n "$LD"; then
  5073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5074. $as_echo "$LD" >&6; }
  5075. else
  5076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5077. $as_echo "no" >&6; }
  5078. fi
  5079. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5081. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5082. if ${lt_cv_prog_gnu_ld+:} false; then :
  5083. $as_echo_n "(cached) " >&6
  5084. else
  5085. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5086. case `$LD -v 2>&1 </dev/null` in
  5087. *GNU* | *'with BFD'*)
  5088. lt_cv_prog_gnu_ld=yes
  5089. ;;
  5090. *)
  5091. lt_cv_prog_gnu_ld=no
  5092. ;;
  5093. esac
  5094. fi
  5095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5096. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5097. with_gnu_ld=$lt_cv_prog_gnu_ld
  5098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5099. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5100. if ${lt_cv_path_NM+:} false; then :
  5101. $as_echo_n "(cached) " >&6
  5102. else
  5103. if test -n "$NM"; then
  5104. # Let the user override the test.
  5105. lt_cv_path_NM=$NM
  5106. else
  5107. lt_nm_to_check=${ac_tool_prefix}nm
  5108. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5109. lt_nm_to_check="$lt_nm_to_check nm"
  5110. fi
  5111. for lt_tmp_nm in $lt_nm_to_check; do
  5112. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5113. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5114. IFS=$lt_save_ifs
  5115. test -z "$ac_dir" && ac_dir=.
  5116. tmp_nm=$ac_dir/$lt_tmp_nm
  5117. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  5118. # Check to see if the nm accepts a BSD-compat flag.
  5119. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  5120. # nm: unknown option "B" ignored
  5121. # Tru64's nm complains that /dev/null is an invalid object file
  5122. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  5123. case $build_os in
  5124. mingw*) lt_bad_file=conftest.nm/nofile ;;
  5125. *) lt_bad_file=/dev/null ;;
  5126. esac
  5127. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  5128. *$lt_bad_file* | *'Invalid file or object type'*)
  5129. lt_cv_path_NM="$tmp_nm -B"
  5130. break 2
  5131. ;;
  5132. *)
  5133. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5134. */dev/null*)
  5135. lt_cv_path_NM="$tmp_nm -p"
  5136. break 2
  5137. ;;
  5138. *)
  5139. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5140. continue # so that we can try to find one that supports BSD flags
  5141. ;;
  5142. esac
  5143. ;;
  5144. esac
  5145. fi
  5146. done
  5147. IFS=$lt_save_ifs
  5148. done
  5149. : ${lt_cv_path_NM=no}
  5150. fi
  5151. fi
  5152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5153. $as_echo "$lt_cv_path_NM" >&6; }
  5154. if test no != "$lt_cv_path_NM"; then
  5155. NM=$lt_cv_path_NM
  5156. else
  5157. # Didn't find any BSD compatible name lister, look for dumpbin.
  5158. if test -n "$DUMPBIN"; then :
  5159. # Let the user override the test.
  5160. else
  5161. if test -n "$ac_tool_prefix"; then
  5162. for ac_prog in dumpbin "link -dump"
  5163. do
  5164. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5165. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5167. $as_echo_n "checking for $ac_word... " >&6; }
  5168. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5169. $as_echo_n "(cached) " >&6
  5170. else
  5171. if test -n "$DUMPBIN"; then
  5172. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5173. else
  5174. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5175. for as_dir in $PATH
  5176. do
  5177. IFS=$as_save_IFS
  5178. test -z "$as_dir" && as_dir=.
  5179. for ac_exec_ext in '' $ac_executable_extensions; do
  5180. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5181. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5182. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5183. break 2
  5184. fi
  5185. done
  5186. done
  5187. IFS=$as_save_IFS
  5188. fi
  5189. fi
  5190. DUMPBIN=$ac_cv_prog_DUMPBIN
  5191. if test -n "$DUMPBIN"; then
  5192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5193. $as_echo "$DUMPBIN" >&6; }
  5194. else
  5195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5196. $as_echo "no" >&6; }
  5197. fi
  5198. test -n "$DUMPBIN" && break
  5199. done
  5200. fi
  5201. if test -z "$DUMPBIN"; then
  5202. ac_ct_DUMPBIN=$DUMPBIN
  5203. for ac_prog in dumpbin "link -dump"
  5204. do
  5205. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5206. set dummy $ac_prog; ac_word=$2
  5207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5208. $as_echo_n "checking for $ac_word... " >&6; }
  5209. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5210. $as_echo_n "(cached) " >&6
  5211. else
  5212. if test -n "$ac_ct_DUMPBIN"; then
  5213. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5214. else
  5215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5216. for as_dir in $PATH
  5217. do
  5218. IFS=$as_save_IFS
  5219. test -z "$as_dir" && as_dir=.
  5220. for ac_exec_ext in '' $ac_executable_extensions; do
  5221. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5222. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5223. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5224. break 2
  5225. fi
  5226. done
  5227. done
  5228. IFS=$as_save_IFS
  5229. fi
  5230. fi
  5231. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5232. if test -n "$ac_ct_DUMPBIN"; then
  5233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5234. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5235. else
  5236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5237. $as_echo "no" >&6; }
  5238. fi
  5239. test -n "$ac_ct_DUMPBIN" && break
  5240. done
  5241. if test "x$ac_ct_DUMPBIN" = x; then
  5242. DUMPBIN=":"
  5243. else
  5244. case $cross_compiling:$ac_tool_warned in
  5245. yes:)
  5246. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5247. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5248. ac_tool_warned=yes ;;
  5249. esac
  5250. DUMPBIN=$ac_ct_DUMPBIN
  5251. fi
  5252. fi
  5253. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  5254. *COFF*)
  5255. DUMPBIN="$DUMPBIN -symbols -headers"
  5256. ;;
  5257. *)
  5258. DUMPBIN=:
  5259. ;;
  5260. esac
  5261. fi
  5262. if test : != "$DUMPBIN"; then
  5263. NM=$DUMPBIN
  5264. fi
  5265. fi
  5266. test -z "$NM" && NM=nm
  5267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5268. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5269. if ${lt_cv_nm_interface+:} false; then :
  5270. $as_echo_n "(cached) " >&6
  5271. else
  5272. lt_cv_nm_interface="BSD nm"
  5273. echo "int some_variable = 0;" > conftest.$ac_ext
  5274. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5275. (eval "$ac_compile" 2>conftest.err)
  5276. cat conftest.err >&5
  5277. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5278. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5279. cat conftest.err >&5
  5280. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5281. cat conftest.out >&5
  5282. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5283. lt_cv_nm_interface="MS dumpbin"
  5284. fi
  5285. rm -f conftest*
  5286. fi
  5287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5288. $as_echo "$lt_cv_nm_interface" >&6; }
  5289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5290. $as_echo_n "checking whether ln -s works... " >&6; }
  5291. LN_S=$as_ln_s
  5292. if test "$LN_S" = "ln -s"; then
  5293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5294. $as_echo "yes" >&6; }
  5295. else
  5296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5297. $as_echo "no, using $LN_S" >&6; }
  5298. fi
  5299. # find the maximum length of command line arguments
  5300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5301. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5302. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5303. $as_echo_n "(cached) " >&6
  5304. else
  5305. i=0
  5306. teststring=ABCD
  5307. case $build_os in
  5308. msdosdjgpp*)
  5309. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5310. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5311. # during glob expansion). Even if it were fixed, the result of this
  5312. # check would be larger than it should be.
  5313. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5314. ;;
  5315. gnu*)
  5316. # Under GNU Hurd, this test is not required because there is
  5317. # no limit to the length of command line arguments.
  5318. # Libtool will interpret -1 as no limit whatsoever
  5319. lt_cv_sys_max_cmd_len=-1;
  5320. ;;
  5321. cygwin* | mingw* | cegcc*)
  5322. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5323. # about 5 minutes as the teststring grows exponentially.
  5324. # Worse, since 9x/ME are not pre-emptively multitasking,
  5325. # you end up with a "frozen" computer, even though with patience
  5326. # the test eventually succeeds (with a max line length of 256k).
  5327. # Instead, let's just punt: use the minimum linelength reported by
  5328. # all of the supported platforms: 8192 (on NT/2K/XP).
  5329. lt_cv_sys_max_cmd_len=8192;
  5330. ;;
  5331. mint*)
  5332. # On MiNT this can take a long time and run out of memory.
  5333. lt_cv_sys_max_cmd_len=8192;
  5334. ;;
  5335. amigaos*)
  5336. # On AmigaOS with pdksh, this test takes hours, literally.
  5337. # So we just punt and use a minimum line length of 8192.
  5338. lt_cv_sys_max_cmd_len=8192;
  5339. ;;
  5340. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  5341. # This has been around since 386BSD, at least. Likely further.
  5342. if test -x /sbin/sysctl; then
  5343. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5344. elif test -x /usr/sbin/sysctl; then
  5345. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5346. else
  5347. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5348. fi
  5349. # And add a safety zone
  5350. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5351. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5352. ;;
  5353. interix*)
  5354. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5355. lt_cv_sys_max_cmd_len=196608
  5356. ;;
  5357. os2*)
  5358. # The test takes a long time on OS/2.
  5359. lt_cv_sys_max_cmd_len=8192
  5360. ;;
  5361. osf*)
  5362. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5363. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5364. # nice to cause kernel panics so lets avoid the loop below.
  5365. # First set a reasonable default.
  5366. lt_cv_sys_max_cmd_len=16384
  5367. #
  5368. if test -x /sbin/sysconfig; then
  5369. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5370. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5371. esac
  5372. fi
  5373. ;;
  5374. sco3.2v5*)
  5375. lt_cv_sys_max_cmd_len=102400
  5376. ;;
  5377. sysv5* | sco5v6* | sysv4.2uw2*)
  5378. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5379. if test -n "$kargmax"; then
  5380. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5381. else
  5382. lt_cv_sys_max_cmd_len=32768
  5383. fi
  5384. ;;
  5385. *)
  5386. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5387. if test -n "$lt_cv_sys_max_cmd_len" && \
  5388. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5389. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5390. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5391. else
  5392. # Make teststring a little bigger before we do anything with it.
  5393. # a 1K string should be a reasonable start.
  5394. for i in 1 2 3 4 5 6 7 8; do
  5395. teststring=$teststring$teststring
  5396. done
  5397. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5398. # If test is not a shell built-in, we'll probably end up computing a
  5399. # maximum length that is only half of the actual maximum length, but
  5400. # we can't tell.
  5401. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  5402. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5403. test 17 != "$i" # 1/2 MB should be enough
  5404. do
  5405. i=`expr $i + 1`
  5406. teststring=$teststring$teststring
  5407. done
  5408. # Only check the string length outside the loop.
  5409. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5410. teststring=
  5411. # Add a significant safety factor because C++ compilers can tack on
  5412. # massive amounts of additional arguments before passing them to the
  5413. # linker. It appears as though 1/2 is a usable value.
  5414. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5415. fi
  5416. ;;
  5417. esac
  5418. fi
  5419. if test -n "$lt_cv_sys_max_cmd_len"; then
  5420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5421. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5422. else
  5423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5424. $as_echo "none" >&6; }
  5425. fi
  5426. max_cmd_len=$lt_cv_sys_max_cmd_len
  5427. : ${CP="cp -f"}
  5428. : ${MV="mv -f"}
  5429. : ${RM="rm -f"}
  5430. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5431. lt_unset=unset
  5432. else
  5433. lt_unset=false
  5434. fi
  5435. # test EBCDIC or ASCII
  5436. case `echo X|tr X '\101'` in
  5437. A) # ASCII based system
  5438. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5439. lt_SP2NL='tr \040 \012'
  5440. lt_NL2SP='tr \015\012 \040\040'
  5441. ;;
  5442. *) # EBCDIC based system
  5443. lt_SP2NL='tr \100 \n'
  5444. lt_NL2SP='tr \r\n \100\100'
  5445. ;;
  5446. esac
  5447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5448. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5449. if ${lt_cv_to_host_file_cmd+:} false; then :
  5450. $as_echo_n "(cached) " >&6
  5451. else
  5452. case $host in
  5453. *-*-mingw* )
  5454. case $build in
  5455. *-*-mingw* ) # actually msys
  5456. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5457. ;;
  5458. *-*-cygwin* )
  5459. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5460. ;;
  5461. * ) # otherwise, assume *nix
  5462. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5463. ;;
  5464. esac
  5465. ;;
  5466. *-*-cygwin* )
  5467. case $build in
  5468. *-*-mingw* ) # actually msys
  5469. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5470. ;;
  5471. *-*-cygwin* )
  5472. lt_cv_to_host_file_cmd=func_convert_file_noop
  5473. ;;
  5474. * ) # otherwise, assume *nix
  5475. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5476. ;;
  5477. esac
  5478. ;;
  5479. * ) # unhandled hosts (and "normal" native builds)
  5480. lt_cv_to_host_file_cmd=func_convert_file_noop
  5481. ;;
  5482. esac
  5483. fi
  5484. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5486. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5488. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5489. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5490. $as_echo_n "(cached) " >&6
  5491. else
  5492. #assume ordinary cross tools, or native build.
  5493. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5494. case $host in
  5495. *-*-mingw* )
  5496. case $build in
  5497. *-*-mingw* ) # actually msys
  5498. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5499. ;;
  5500. esac
  5501. ;;
  5502. esac
  5503. fi
  5504. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5506. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5508. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5509. if ${lt_cv_ld_reload_flag+:} false; then :
  5510. $as_echo_n "(cached) " >&6
  5511. else
  5512. lt_cv_ld_reload_flag='-r'
  5513. fi
  5514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5515. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5516. reload_flag=$lt_cv_ld_reload_flag
  5517. case $reload_flag in
  5518. "" | " "*) ;;
  5519. *) reload_flag=" $reload_flag" ;;
  5520. esac
  5521. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5522. case $host_os in
  5523. cygwin* | mingw* | pw32* | cegcc*)
  5524. if test yes != "$GCC"; then
  5525. reload_cmds=false
  5526. fi
  5527. ;;
  5528. darwin*)
  5529. if test yes = "$GCC"; then
  5530. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5531. else
  5532. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5533. fi
  5534. ;;
  5535. esac
  5536. if test -n "$ac_tool_prefix"; then
  5537. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5538. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5540. $as_echo_n "checking for $ac_word... " >&6; }
  5541. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5542. $as_echo_n "(cached) " >&6
  5543. else
  5544. if test -n "$OBJDUMP"; then
  5545. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5546. else
  5547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5548. for as_dir in $PATH
  5549. do
  5550. IFS=$as_save_IFS
  5551. test -z "$as_dir" && as_dir=.
  5552. for ac_exec_ext in '' $ac_executable_extensions; do
  5553. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5554. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5555. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5556. break 2
  5557. fi
  5558. done
  5559. done
  5560. IFS=$as_save_IFS
  5561. fi
  5562. fi
  5563. OBJDUMP=$ac_cv_prog_OBJDUMP
  5564. if test -n "$OBJDUMP"; then
  5565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5566. $as_echo "$OBJDUMP" >&6; }
  5567. else
  5568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5569. $as_echo "no" >&6; }
  5570. fi
  5571. fi
  5572. if test -z "$ac_cv_prog_OBJDUMP"; then
  5573. ac_ct_OBJDUMP=$OBJDUMP
  5574. # Extract the first word of "objdump", so it can be a program name with args.
  5575. set dummy objdump; ac_word=$2
  5576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5577. $as_echo_n "checking for $ac_word... " >&6; }
  5578. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5579. $as_echo_n "(cached) " >&6
  5580. else
  5581. if test -n "$ac_ct_OBJDUMP"; then
  5582. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5583. else
  5584. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5585. for as_dir in $PATH
  5586. do
  5587. IFS=$as_save_IFS
  5588. test -z "$as_dir" && as_dir=.
  5589. for ac_exec_ext in '' $ac_executable_extensions; do
  5590. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5591. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5592. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5593. break 2
  5594. fi
  5595. done
  5596. done
  5597. IFS=$as_save_IFS
  5598. fi
  5599. fi
  5600. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5601. if test -n "$ac_ct_OBJDUMP"; then
  5602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5603. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5604. else
  5605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5606. $as_echo "no" >&6; }
  5607. fi
  5608. if test "x$ac_ct_OBJDUMP" = x; then
  5609. OBJDUMP="false"
  5610. else
  5611. case $cross_compiling:$ac_tool_warned in
  5612. yes:)
  5613. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5614. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5615. ac_tool_warned=yes ;;
  5616. esac
  5617. OBJDUMP=$ac_ct_OBJDUMP
  5618. fi
  5619. else
  5620. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5621. fi
  5622. test -z "$OBJDUMP" && OBJDUMP=objdump
  5623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5624. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5625. if ${lt_cv_deplibs_check_method+:} false; then :
  5626. $as_echo_n "(cached) " >&6
  5627. else
  5628. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5629. lt_cv_file_magic_test_file=
  5630. lt_cv_deplibs_check_method='unknown'
  5631. # Need to set the preceding variable on all platforms that support
  5632. # interlibrary dependencies.
  5633. # 'none' -- dependencies not supported.
  5634. # 'unknown' -- same as none, but documents that we really don't know.
  5635. # 'pass_all' -- all dependencies passed with no checks.
  5636. # 'test_compile' -- check by making test program.
  5637. # 'file_magic [[regex]]' -- check by looking for files in library path
  5638. # that responds to the $file_magic_cmd with a given extended regex.
  5639. # If you have 'file' or equivalent on your system and you're not sure
  5640. # whether 'pass_all' will *always* work, you probably want this one.
  5641. case $host_os in
  5642. aix[4-9]*)
  5643. lt_cv_deplibs_check_method=pass_all
  5644. ;;
  5645. beos*)
  5646. lt_cv_deplibs_check_method=pass_all
  5647. ;;
  5648. bsdi[45]*)
  5649. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5650. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5651. lt_cv_file_magic_test_file=/shlib/libc.so
  5652. ;;
  5653. cygwin*)
  5654. # func_win32_libid is a shell function defined in ltmain.sh
  5655. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5656. lt_cv_file_magic_cmd='func_win32_libid'
  5657. ;;
  5658. mingw* | pw32*)
  5659. # Base MSYS/MinGW do not provide the 'file' command needed by
  5660. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5661. # unless we find 'file', for example because we are cross-compiling.
  5662. if ( file / ) >/dev/null 2>&1; then
  5663. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5664. lt_cv_file_magic_cmd='func_win32_libid'
  5665. else
  5666. # Keep this pattern in sync with the one in func_win32_libid.
  5667. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5668. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5669. fi
  5670. ;;
  5671. cegcc*)
  5672. # use the weaker test based on 'objdump'. See mingw*.
  5673. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5674. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5675. ;;
  5676. darwin* | rhapsody*)
  5677. lt_cv_deplibs_check_method=pass_all
  5678. ;;
  5679. freebsd* | dragonfly*)
  5680. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5681. case $host_cpu in
  5682. i*86 )
  5683. # Not sure whether the presence of OpenBSD here was a mistake.
  5684. # Let's accept both of them until this is cleared up.
  5685. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5686. lt_cv_file_magic_cmd=/usr/bin/file
  5687. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5688. ;;
  5689. esac
  5690. else
  5691. lt_cv_deplibs_check_method=pass_all
  5692. fi
  5693. ;;
  5694. haiku*)
  5695. lt_cv_deplibs_check_method=pass_all
  5696. ;;
  5697. hpux10.20* | hpux11*)
  5698. lt_cv_file_magic_cmd=/usr/bin/file
  5699. case $host_cpu in
  5700. ia64*)
  5701. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5702. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5703. ;;
  5704. hppa*64*)
  5705. 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]'
  5706. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5707. ;;
  5708. *)
  5709. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5710. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5711. ;;
  5712. esac
  5713. ;;
  5714. interix[3-9]*)
  5715. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5716. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5717. ;;
  5718. irix5* | irix6* | nonstopux*)
  5719. case $LD in
  5720. *-32|*"-32 ") libmagic=32-bit;;
  5721. *-n32|*"-n32 ") libmagic=N32;;
  5722. *-64|*"-64 ") libmagic=64-bit;;
  5723. *) libmagic=never-match;;
  5724. esac
  5725. lt_cv_deplibs_check_method=pass_all
  5726. ;;
  5727. # This must be glibc/ELF.
  5728. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5729. lt_cv_deplibs_check_method=pass_all
  5730. ;;
  5731. netbsd* | netbsdelf*-gnu)
  5732. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5733. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5734. else
  5735. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5736. fi
  5737. ;;
  5738. newos6*)
  5739. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5740. lt_cv_file_magic_cmd=/usr/bin/file
  5741. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5742. ;;
  5743. *nto* | *qnx*)
  5744. lt_cv_deplibs_check_method=pass_all
  5745. ;;
  5746. openbsd* | bitrig*)
  5747. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5748. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5749. else
  5750. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5751. fi
  5752. ;;
  5753. osf3* | osf4* | osf5*)
  5754. lt_cv_deplibs_check_method=pass_all
  5755. ;;
  5756. rdos*)
  5757. lt_cv_deplibs_check_method=pass_all
  5758. ;;
  5759. solaris*)
  5760. lt_cv_deplibs_check_method=pass_all
  5761. ;;
  5762. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5763. lt_cv_deplibs_check_method=pass_all
  5764. ;;
  5765. sysv4 | sysv4.3*)
  5766. case $host_vendor in
  5767. motorola)
  5768. 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]'
  5769. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5770. ;;
  5771. ncr)
  5772. lt_cv_deplibs_check_method=pass_all
  5773. ;;
  5774. sequent)
  5775. lt_cv_file_magic_cmd='/bin/file'
  5776. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5777. ;;
  5778. sni)
  5779. lt_cv_file_magic_cmd='/bin/file'
  5780. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5781. lt_cv_file_magic_test_file=/lib/libc.so
  5782. ;;
  5783. siemens)
  5784. lt_cv_deplibs_check_method=pass_all
  5785. ;;
  5786. pc)
  5787. lt_cv_deplibs_check_method=pass_all
  5788. ;;
  5789. esac
  5790. ;;
  5791. tpf*)
  5792. lt_cv_deplibs_check_method=pass_all
  5793. ;;
  5794. os2*)
  5795. lt_cv_deplibs_check_method=pass_all
  5796. ;;
  5797. esac
  5798. fi
  5799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5800. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5801. file_magic_glob=
  5802. want_nocaseglob=no
  5803. if test "$build" = "$host"; then
  5804. case $host_os in
  5805. mingw* | pw32*)
  5806. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5807. want_nocaseglob=yes
  5808. else
  5809. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5810. fi
  5811. ;;
  5812. esac
  5813. fi
  5814. file_magic_cmd=$lt_cv_file_magic_cmd
  5815. deplibs_check_method=$lt_cv_deplibs_check_method
  5816. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5817. if test -n "$ac_tool_prefix"; then
  5818. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5819. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5821. $as_echo_n "checking for $ac_word... " >&6; }
  5822. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5823. $as_echo_n "(cached) " >&6
  5824. else
  5825. if test -n "$DLLTOOL"; then
  5826. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5827. else
  5828. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5829. for as_dir in $PATH
  5830. do
  5831. IFS=$as_save_IFS
  5832. test -z "$as_dir" && as_dir=.
  5833. for ac_exec_ext in '' $ac_executable_extensions; do
  5834. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5835. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5836. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5837. break 2
  5838. fi
  5839. done
  5840. done
  5841. IFS=$as_save_IFS
  5842. fi
  5843. fi
  5844. DLLTOOL=$ac_cv_prog_DLLTOOL
  5845. if test -n "$DLLTOOL"; then
  5846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5847. $as_echo "$DLLTOOL" >&6; }
  5848. else
  5849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5850. $as_echo "no" >&6; }
  5851. fi
  5852. fi
  5853. if test -z "$ac_cv_prog_DLLTOOL"; then
  5854. ac_ct_DLLTOOL=$DLLTOOL
  5855. # Extract the first word of "dlltool", so it can be a program name with args.
  5856. set dummy dlltool; ac_word=$2
  5857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5858. $as_echo_n "checking for $ac_word... " >&6; }
  5859. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5860. $as_echo_n "(cached) " >&6
  5861. else
  5862. if test -n "$ac_ct_DLLTOOL"; then
  5863. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5864. else
  5865. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5866. for as_dir in $PATH
  5867. do
  5868. IFS=$as_save_IFS
  5869. test -z "$as_dir" && as_dir=.
  5870. for ac_exec_ext in '' $ac_executable_extensions; do
  5871. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5872. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5873. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5874. break 2
  5875. fi
  5876. done
  5877. done
  5878. IFS=$as_save_IFS
  5879. fi
  5880. fi
  5881. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5882. if test -n "$ac_ct_DLLTOOL"; then
  5883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5884. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5885. else
  5886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5887. $as_echo "no" >&6; }
  5888. fi
  5889. if test "x$ac_ct_DLLTOOL" = x; then
  5890. DLLTOOL="false"
  5891. else
  5892. case $cross_compiling:$ac_tool_warned in
  5893. yes:)
  5894. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5895. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5896. ac_tool_warned=yes ;;
  5897. esac
  5898. DLLTOOL=$ac_ct_DLLTOOL
  5899. fi
  5900. else
  5901. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5902. fi
  5903. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5905. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5906. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5907. $as_echo_n "(cached) " >&6
  5908. else
  5909. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5910. case $host_os in
  5911. cygwin* | mingw* | pw32* | cegcc*)
  5912. # two different shell functions defined in ltmain.sh;
  5913. # decide which one to use based on capabilities of $DLLTOOL
  5914. case `$DLLTOOL --help 2>&1` in
  5915. *--identify-strict*)
  5916. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5917. ;;
  5918. *)
  5919. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5920. ;;
  5921. esac
  5922. ;;
  5923. *)
  5924. # fallback: assume linklib IS sharedlib
  5925. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5926. ;;
  5927. esac
  5928. fi
  5929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5930. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5931. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5932. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5933. if test -n "$ac_tool_prefix"; then
  5934. for ac_prog in ar
  5935. do
  5936. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5937. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5939. $as_echo_n "checking for $ac_word... " >&6; }
  5940. if ${ac_cv_prog_AR+:} false; then :
  5941. $as_echo_n "(cached) " >&6
  5942. else
  5943. if test -n "$AR"; then
  5944. ac_cv_prog_AR="$AR" # Let the user override the test.
  5945. else
  5946. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5947. for as_dir in $PATH
  5948. do
  5949. IFS=$as_save_IFS
  5950. test -z "$as_dir" && as_dir=.
  5951. for ac_exec_ext in '' $ac_executable_extensions; do
  5952. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5953. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5954. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5955. break 2
  5956. fi
  5957. done
  5958. done
  5959. IFS=$as_save_IFS
  5960. fi
  5961. fi
  5962. AR=$ac_cv_prog_AR
  5963. if test -n "$AR"; then
  5964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5965. $as_echo "$AR" >&6; }
  5966. else
  5967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5968. $as_echo "no" >&6; }
  5969. fi
  5970. test -n "$AR" && break
  5971. done
  5972. fi
  5973. if test -z "$AR"; then
  5974. ac_ct_AR=$AR
  5975. for ac_prog in ar
  5976. do
  5977. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5978. set dummy $ac_prog; ac_word=$2
  5979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5980. $as_echo_n "checking for $ac_word... " >&6; }
  5981. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5982. $as_echo_n "(cached) " >&6
  5983. else
  5984. if test -n "$ac_ct_AR"; then
  5985. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5986. else
  5987. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5988. for as_dir in $PATH
  5989. do
  5990. IFS=$as_save_IFS
  5991. test -z "$as_dir" && as_dir=.
  5992. for ac_exec_ext in '' $ac_executable_extensions; do
  5993. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5994. ac_cv_prog_ac_ct_AR="$ac_prog"
  5995. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5996. break 2
  5997. fi
  5998. done
  5999. done
  6000. IFS=$as_save_IFS
  6001. fi
  6002. fi
  6003. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6004. if test -n "$ac_ct_AR"; then
  6005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6006. $as_echo "$ac_ct_AR" >&6; }
  6007. else
  6008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6009. $as_echo "no" >&6; }
  6010. fi
  6011. test -n "$ac_ct_AR" && break
  6012. done
  6013. if test "x$ac_ct_AR" = x; then
  6014. AR="false"
  6015. else
  6016. case $cross_compiling:$ac_tool_warned in
  6017. yes:)
  6018. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6019. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6020. ac_tool_warned=yes ;;
  6021. esac
  6022. AR=$ac_ct_AR
  6023. fi
  6024. fi
  6025. : ${AR=ar}
  6026. : ${AR_FLAGS=cru}
  6027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6028. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6029. if ${lt_cv_ar_at_file+:} false; then :
  6030. $as_echo_n "(cached) " >&6
  6031. else
  6032. lt_cv_ar_at_file=no
  6033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6034. /* end confdefs.h. */
  6035. int
  6036. main ()
  6037. {
  6038. ;
  6039. return 0;
  6040. }
  6041. _ACEOF
  6042. if ac_fn_c_try_compile "$LINENO"; then :
  6043. echo conftest.$ac_objext > conftest.lst
  6044. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6045. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6046. (eval $lt_ar_try) 2>&5
  6047. ac_status=$?
  6048. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6049. test $ac_status = 0; }
  6050. if test 0 -eq "$ac_status"; then
  6051. # Ensure the archiver fails upon bogus file names.
  6052. rm -f conftest.$ac_objext libconftest.a
  6053. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6054. (eval $lt_ar_try) 2>&5
  6055. ac_status=$?
  6056. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6057. test $ac_status = 0; }
  6058. if test 0 -ne "$ac_status"; then
  6059. lt_cv_ar_at_file=@
  6060. fi
  6061. fi
  6062. rm -f conftest.* libconftest.a
  6063. fi
  6064. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6065. fi
  6066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6067. $as_echo "$lt_cv_ar_at_file" >&6; }
  6068. if test no = "$lt_cv_ar_at_file"; then
  6069. archiver_list_spec=
  6070. else
  6071. archiver_list_spec=$lt_cv_ar_at_file
  6072. fi
  6073. if test -n "$ac_tool_prefix"; then
  6074. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6075. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6077. $as_echo_n "checking for $ac_word... " >&6; }
  6078. if ${ac_cv_prog_STRIP+:} false; then :
  6079. $as_echo_n "(cached) " >&6
  6080. else
  6081. if test -n "$STRIP"; then
  6082. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6083. else
  6084. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6085. for as_dir in $PATH
  6086. do
  6087. IFS=$as_save_IFS
  6088. test -z "$as_dir" && as_dir=.
  6089. for ac_exec_ext in '' $ac_executable_extensions; do
  6090. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6091. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6092. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6093. break 2
  6094. fi
  6095. done
  6096. done
  6097. IFS=$as_save_IFS
  6098. fi
  6099. fi
  6100. STRIP=$ac_cv_prog_STRIP
  6101. if test -n "$STRIP"; then
  6102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6103. $as_echo "$STRIP" >&6; }
  6104. else
  6105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6106. $as_echo "no" >&6; }
  6107. fi
  6108. fi
  6109. if test -z "$ac_cv_prog_STRIP"; then
  6110. ac_ct_STRIP=$STRIP
  6111. # Extract the first word of "strip", so it can be a program name with args.
  6112. set dummy strip; ac_word=$2
  6113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6114. $as_echo_n "checking for $ac_word... " >&6; }
  6115. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6116. $as_echo_n "(cached) " >&6
  6117. else
  6118. if test -n "$ac_ct_STRIP"; then
  6119. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6120. else
  6121. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6122. for as_dir in $PATH
  6123. do
  6124. IFS=$as_save_IFS
  6125. test -z "$as_dir" && as_dir=.
  6126. for ac_exec_ext in '' $ac_executable_extensions; do
  6127. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6128. ac_cv_prog_ac_ct_STRIP="strip"
  6129. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6130. break 2
  6131. fi
  6132. done
  6133. done
  6134. IFS=$as_save_IFS
  6135. fi
  6136. fi
  6137. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6138. if test -n "$ac_ct_STRIP"; then
  6139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6140. $as_echo "$ac_ct_STRIP" >&6; }
  6141. else
  6142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6143. $as_echo "no" >&6; }
  6144. fi
  6145. if test "x$ac_ct_STRIP" = x; then
  6146. STRIP=":"
  6147. else
  6148. case $cross_compiling:$ac_tool_warned in
  6149. yes:)
  6150. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6151. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6152. ac_tool_warned=yes ;;
  6153. esac
  6154. STRIP=$ac_ct_STRIP
  6155. fi
  6156. else
  6157. STRIP="$ac_cv_prog_STRIP"
  6158. fi
  6159. test -z "$STRIP" && STRIP=:
  6160. if test -n "$ac_tool_prefix"; then
  6161. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6162. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6164. $as_echo_n "checking for $ac_word... " >&6; }
  6165. if ${ac_cv_prog_RANLIB+:} false; then :
  6166. $as_echo_n "(cached) " >&6
  6167. else
  6168. if test -n "$RANLIB"; then
  6169. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6170. else
  6171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6172. for as_dir in $PATH
  6173. do
  6174. IFS=$as_save_IFS
  6175. test -z "$as_dir" && as_dir=.
  6176. for ac_exec_ext in '' $ac_executable_extensions; do
  6177. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6178. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6179. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6180. break 2
  6181. fi
  6182. done
  6183. done
  6184. IFS=$as_save_IFS
  6185. fi
  6186. fi
  6187. RANLIB=$ac_cv_prog_RANLIB
  6188. if test -n "$RANLIB"; then
  6189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6190. $as_echo "$RANLIB" >&6; }
  6191. else
  6192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6193. $as_echo "no" >&6; }
  6194. fi
  6195. fi
  6196. if test -z "$ac_cv_prog_RANLIB"; then
  6197. ac_ct_RANLIB=$RANLIB
  6198. # Extract the first word of "ranlib", so it can be a program name with args.
  6199. set dummy ranlib; ac_word=$2
  6200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6201. $as_echo_n "checking for $ac_word... " >&6; }
  6202. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6203. $as_echo_n "(cached) " >&6
  6204. else
  6205. if test -n "$ac_ct_RANLIB"; then
  6206. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6207. else
  6208. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6209. for as_dir in $PATH
  6210. do
  6211. IFS=$as_save_IFS
  6212. test -z "$as_dir" && as_dir=.
  6213. for ac_exec_ext in '' $ac_executable_extensions; do
  6214. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6215. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6216. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6217. break 2
  6218. fi
  6219. done
  6220. done
  6221. IFS=$as_save_IFS
  6222. fi
  6223. fi
  6224. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6225. if test -n "$ac_ct_RANLIB"; then
  6226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6227. $as_echo "$ac_ct_RANLIB" >&6; }
  6228. else
  6229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6230. $as_echo "no" >&6; }
  6231. fi
  6232. if test "x$ac_ct_RANLIB" = x; then
  6233. RANLIB=":"
  6234. else
  6235. case $cross_compiling:$ac_tool_warned in
  6236. yes:)
  6237. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6238. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6239. ac_tool_warned=yes ;;
  6240. esac
  6241. RANLIB=$ac_ct_RANLIB
  6242. fi
  6243. else
  6244. RANLIB="$ac_cv_prog_RANLIB"
  6245. fi
  6246. test -z "$RANLIB" && RANLIB=:
  6247. # Determine commands to create old-style static archives.
  6248. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6249. old_postinstall_cmds='chmod 644 $oldlib'
  6250. old_postuninstall_cmds=
  6251. if test -n "$RANLIB"; then
  6252. case $host_os in
  6253. bitrig* | openbsd*)
  6254. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6255. ;;
  6256. *)
  6257. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6258. ;;
  6259. esac
  6260. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6261. fi
  6262. case $host_os in
  6263. darwin*)
  6264. lock_old_archive_extraction=yes ;;
  6265. *)
  6266. lock_old_archive_extraction=no ;;
  6267. esac
  6268. # If no C compiler was specified, use CC.
  6269. LTCC=${LTCC-"$CC"}
  6270. # If no C compiler flags were specified, use CFLAGS.
  6271. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6272. # Allow CC to be a program name with arguments.
  6273. compiler=$CC
  6274. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6276. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6277. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6278. $as_echo_n "(cached) " >&6
  6279. else
  6280. # These are sane defaults that work on at least a few old systems.
  6281. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6282. # Character class describing NM global symbol codes.
  6283. symcode='[BCDEGRST]'
  6284. # Regexp to match symbols that can be accessed directly from C.
  6285. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6286. # Define system-specific variables.
  6287. case $host_os in
  6288. aix*)
  6289. symcode='[BCDT]'
  6290. ;;
  6291. cygwin* | mingw* | pw32* | cegcc*)
  6292. symcode='[ABCDGISTW]'
  6293. ;;
  6294. hpux*)
  6295. if test ia64 = "$host_cpu"; then
  6296. symcode='[ABCDEGRST]'
  6297. fi
  6298. ;;
  6299. irix* | nonstopux*)
  6300. symcode='[BCDEGRST]'
  6301. ;;
  6302. osf*)
  6303. symcode='[BCDEGQRST]'
  6304. ;;
  6305. solaris*)
  6306. symcode='[BDRT]'
  6307. ;;
  6308. sco3.2v5*)
  6309. symcode='[DT]'
  6310. ;;
  6311. sysv4.2uw2*)
  6312. symcode='[DT]'
  6313. ;;
  6314. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6315. symcode='[ABDT]'
  6316. ;;
  6317. sysv4)
  6318. symcode='[DFNSTU]'
  6319. ;;
  6320. esac
  6321. # If we're using GNU nm, then use its standard symbol codes.
  6322. case `$NM -V 2>&1` in
  6323. *GNU* | *'with BFD'*)
  6324. symcode='[ABCDGIRSTW]' ;;
  6325. esac
  6326. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6327. # Gets list of data symbols to import.
  6328. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  6329. # Adjust the below global symbol transforms to fixup imported variables.
  6330. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  6331. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  6332. lt_c_name_lib_hook="\
  6333. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  6334. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  6335. else
  6336. # Disable hooks by default.
  6337. lt_cv_sys_global_symbol_to_import=
  6338. lt_cdecl_hook=
  6339. lt_c_name_hook=
  6340. lt_c_name_lib_hook=
  6341. fi
  6342. # Transform an extracted symbol line into a proper C declaration.
  6343. # Some systems (esp. on ia64) link data and code symbols differently,
  6344. # so use this general approach.
  6345. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  6346. $lt_cdecl_hook\
  6347. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6348. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6349. # Transform an extracted symbol line into symbol name and symbol address
  6350. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  6351. $lt_c_name_hook\
  6352. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6353. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6354. # Transform an extracted symbol line into symbol name with lib prefix and
  6355. # symbol address.
  6356. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  6357. $lt_c_name_lib_hook\
  6358. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6359. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6360. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6361. # Handle CRLF in mingw tool chain
  6362. opt_cr=
  6363. case $build_os in
  6364. mingw*)
  6365. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6366. ;;
  6367. esac
  6368. # Try without a prefix underscore, then with it.
  6369. for ac_symprfx in "" "_"; do
  6370. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6371. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6372. # Write the raw and C identifiers.
  6373. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6374. # Fake it for dumpbin and say T for any non-static function,
  6375. # D for any global variable and I for any imported variable.
  6376. # Also find C++ and __fastcall symbols from MSVC++,
  6377. # which start with @ or ?.
  6378. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6379. " {last_section=section; section=\$ 3};"\
  6380. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6381. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6382. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6383. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6384. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6385. " \$ 0!~/External *\|/{next};"\
  6386. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6387. " {if(hide[section]) next};"\
  6388. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6389. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6390. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6391. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6392. " ' prfx=^$ac_symprfx"
  6393. else
  6394. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6395. fi
  6396. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6397. # Check to see that the pipe works correctly.
  6398. pipe_works=no
  6399. rm -f conftest*
  6400. cat > conftest.$ac_ext <<_LT_EOF
  6401. #ifdef __cplusplus
  6402. extern "C" {
  6403. #endif
  6404. char nm_test_var;
  6405. void nm_test_func(void);
  6406. void nm_test_func(void){}
  6407. #ifdef __cplusplus
  6408. }
  6409. #endif
  6410. int main(){nm_test_var='a';nm_test_func();return(0);}
  6411. _LT_EOF
  6412. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6413. (eval $ac_compile) 2>&5
  6414. ac_status=$?
  6415. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6416. test $ac_status = 0; }; then
  6417. # Now try to grab the symbols.
  6418. nlist=conftest.nm
  6419. $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
  6420. if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
  6421. # Try sorting and uniquifying the output.
  6422. if sort "$nlist" | uniq > "$nlist"T; then
  6423. mv -f "$nlist"T "$nlist"
  6424. else
  6425. rm -f "$nlist"T
  6426. fi
  6427. # Make sure that we snagged all the symbols we need.
  6428. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6429. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6430. cat <<_LT_EOF > conftest.$ac_ext
  6431. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6432. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6433. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6434. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6435. # define LT_DLSYM_CONST
  6436. #elif defined __osf__
  6437. /* This system does not cope well with relocations in const data. */
  6438. # define LT_DLSYM_CONST
  6439. #else
  6440. # define LT_DLSYM_CONST const
  6441. #endif
  6442. #ifdef __cplusplus
  6443. extern "C" {
  6444. #endif
  6445. _LT_EOF
  6446. # Now generate the symbol file.
  6447. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6448. cat <<_LT_EOF >> conftest.$ac_ext
  6449. /* The mapping between symbol names and symbols. */
  6450. LT_DLSYM_CONST struct {
  6451. const char *name;
  6452. void *address;
  6453. }
  6454. lt__PROGRAM__LTX_preloaded_symbols[] =
  6455. {
  6456. { "@PROGRAM@", (void *) 0 },
  6457. _LT_EOF
  6458. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6459. cat <<\_LT_EOF >> conftest.$ac_ext
  6460. {0, (void *) 0}
  6461. };
  6462. /* This works around a problem in FreeBSD linker */
  6463. #ifdef FREEBSD_WORKAROUND
  6464. static const void *lt_preloaded_setup() {
  6465. return lt__PROGRAM__LTX_preloaded_symbols;
  6466. }
  6467. #endif
  6468. #ifdef __cplusplus
  6469. }
  6470. #endif
  6471. _LT_EOF
  6472. # Now try linking the two files.
  6473. mv conftest.$ac_objext conftstm.$ac_objext
  6474. lt_globsym_save_LIBS=$LIBS
  6475. lt_globsym_save_CFLAGS=$CFLAGS
  6476. LIBS=conftstm.$ac_objext
  6477. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6478. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6479. (eval $ac_link) 2>&5
  6480. ac_status=$?
  6481. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6482. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6483. pipe_works=yes
  6484. fi
  6485. LIBS=$lt_globsym_save_LIBS
  6486. CFLAGS=$lt_globsym_save_CFLAGS
  6487. else
  6488. echo "cannot find nm_test_func in $nlist" >&5
  6489. fi
  6490. else
  6491. echo "cannot find nm_test_var in $nlist" >&5
  6492. fi
  6493. else
  6494. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6495. fi
  6496. else
  6497. echo "$progname: failed program was:" >&5
  6498. cat conftest.$ac_ext >&5
  6499. fi
  6500. rm -rf conftest* conftst*
  6501. # Do not use the global_symbol_pipe unless it works.
  6502. if test yes = "$pipe_works"; then
  6503. break
  6504. else
  6505. lt_cv_sys_global_symbol_pipe=
  6506. fi
  6507. done
  6508. fi
  6509. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6510. lt_cv_sys_global_symbol_to_cdecl=
  6511. fi
  6512. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6514. $as_echo "failed" >&6; }
  6515. else
  6516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6517. $as_echo "ok" >&6; }
  6518. fi
  6519. # Response file support.
  6520. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6521. nm_file_list_spec='@'
  6522. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6523. nm_file_list_spec='@'
  6524. fi
  6525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6526. $as_echo_n "checking for sysroot... " >&6; }
  6527. # Check whether --with-sysroot was given.
  6528. if test "${with_sysroot+set}" = set; then :
  6529. withval=$with_sysroot;
  6530. else
  6531. with_sysroot=no
  6532. fi
  6533. lt_sysroot=
  6534. case $with_sysroot in #(
  6535. yes)
  6536. if test yes = "$GCC"; then
  6537. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6538. fi
  6539. ;; #(
  6540. /*)
  6541. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6542. ;; #(
  6543. no|'')
  6544. ;; #(
  6545. *)
  6546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6547. $as_echo "$with_sysroot" >&6; }
  6548. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6549. ;;
  6550. esac
  6551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6552. $as_echo "${lt_sysroot:-no}" >&6; }
  6553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6554. $as_echo_n "checking for a working dd... " >&6; }
  6555. if ${ac_cv_path_lt_DD+:} false; then :
  6556. $as_echo_n "(cached) " >&6
  6557. else
  6558. printf 0123456789abcdef0123456789abcdef >conftest.i
  6559. cat conftest.i conftest.i >conftest2.i
  6560. : ${lt_DD:=$DD}
  6561. if test -z "$lt_DD"; then
  6562. ac_path_lt_DD_found=false
  6563. # Loop through the user's path and test for each of PROGNAME-LIST
  6564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6565. for as_dir in $PATH
  6566. do
  6567. IFS=$as_save_IFS
  6568. test -z "$as_dir" && as_dir=.
  6569. for ac_prog in dd; do
  6570. for ac_exec_ext in '' $ac_executable_extensions; do
  6571. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  6572. as_fn_executable_p "$ac_path_lt_DD" || continue
  6573. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6574. cmp -s conftest.i conftest.out \
  6575. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6576. fi
  6577. $ac_path_lt_DD_found && break 3
  6578. done
  6579. done
  6580. done
  6581. IFS=$as_save_IFS
  6582. if test -z "$ac_cv_path_lt_DD"; then
  6583. :
  6584. fi
  6585. else
  6586. ac_cv_path_lt_DD=$lt_DD
  6587. fi
  6588. rm -f conftest.i conftest2.i conftest.out
  6589. fi
  6590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6591. $as_echo "$ac_cv_path_lt_DD" >&6; }
  6592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6593. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  6594. if ${lt_cv_truncate_bin+:} false; then :
  6595. $as_echo_n "(cached) " >&6
  6596. else
  6597. printf 0123456789abcdef0123456789abcdef >conftest.i
  6598. cat conftest.i conftest.i >conftest2.i
  6599. lt_cv_truncate_bin=
  6600. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6601. cmp -s conftest.i conftest.out \
  6602. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6603. fi
  6604. rm -f conftest.i conftest2.i conftest.out
  6605. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6606. fi
  6607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6608. $as_echo "$lt_cv_truncate_bin" >&6; }
  6609. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6610. func_cc_basename ()
  6611. {
  6612. for cc_temp in $*""; do
  6613. case $cc_temp in
  6614. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6615. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6616. \-*) ;;
  6617. *) break;;
  6618. esac
  6619. done
  6620. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6621. }
  6622. # Check whether --enable-libtool-lock was given.
  6623. if test "${enable_libtool_lock+set}" = set; then :
  6624. enableval=$enable_libtool_lock;
  6625. fi
  6626. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6627. # Some flags need to be propagated to the compiler or linker for good
  6628. # libtool support.
  6629. case $host in
  6630. ia64-*-hpux*)
  6631. # Find out what ABI is being produced by ac_compile, and set mode
  6632. # options accordingly.
  6633. echo 'int i;' > conftest.$ac_ext
  6634. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6635. (eval $ac_compile) 2>&5
  6636. ac_status=$?
  6637. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6638. test $ac_status = 0; }; then
  6639. case `/usr/bin/file conftest.$ac_objext` in
  6640. *ELF-32*)
  6641. HPUX_IA64_MODE=32
  6642. ;;
  6643. *ELF-64*)
  6644. HPUX_IA64_MODE=64
  6645. ;;
  6646. esac
  6647. fi
  6648. rm -rf conftest*
  6649. ;;
  6650. *-*-irix6*)
  6651. # Find out what ABI is being produced by ac_compile, and set linker
  6652. # options accordingly.
  6653. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6654. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6655. (eval $ac_compile) 2>&5
  6656. ac_status=$?
  6657. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6658. test $ac_status = 0; }; then
  6659. if test yes = "$lt_cv_prog_gnu_ld"; then
  6660. case `/usr/bin/file conftest.$ac_objext` in
  6661. *32-bit*)
  6662. LD="${LD-ld} -melf32bsmip"
  6663. ;;
  6664. *N32*)
  6665. LD="${LD-ld} -melf32bmipn32"
  6666. ;;
  6667. *64-bit*)
  6668. LD="${LD-ld} -melf64bmip"
  6669. ;;
  6670. esac
  6671. else
  6672. case `/usr/bin/file conftest.$ac_objext` in
  6673. *32-bit*)
  6674. LD="${LD-ld} -32"
  6675. ;;
  6676. *N32*)
  6677. LD="${LD-ld} -n32"
  6678. ;;
  6679. *64-bit*)
  6680. LD="${LD-ld} -64"
  6681. ;;
  6682. esac
  6683. fi
  6684. fi
  6685. rm -rf conftest*
  6686. ;;
  6687. mips64*-*linux*)
  6688. # Find out what ABI is being produced by ac_compile, and set linker
  6689. # options accordingly.
  6690. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6691. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6692. (eval $ac_compile) 2>&5
  6693. ac_status=$?
  6694. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6695. test $ac_status = 0; }; then
  6696. emul=elf
  6697. case `/usr/bin/file conftest.$ac_objext` in
  6698. *32-bit*)
  6699. emul="${emul}32"
  6700. ;;
  6701. *64-bit*)
  6702. emul="${emul}64"
  6703. ;;
  6704. esac
  6705. case `/usr/bin/file conftest.$ac_objext` in
  6706. *MSB*)
  6707. emul="${emul}btsmip"
  6708. ;;
  6709. *LSB*)
  6710. emul="${emul}ltsmip"
  6711. ;;
  6712. esac
  6713. case `/usr/bin/file conftest.$ac_objext` in
  6714. *N32*)
  6715. emul="${emul}n32"
  6716. ;;
  6717. esac
  6718. LD="${LD-ld} -m $emul"
  6719. fi
  6720. rm -rf conftest*
  6721. ;;
  6722. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6723. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6724. # Find out what ABI is being produced by ac_compile, and set linker
  6725. # options accordingly. Note that the listed cases only cover the
  6726. # situations where additional linker options are needed (such as when
  6727. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6728. # vice versa); the common cases where no linker options are needed do
  6729. # not appear in the list.
  6730. echo 'int i;' > conftest.$ac_ext
  6731. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6732. (eval $ac_compile) 2>&5
  6733. ac_status=$?
  6734. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6735. test $ac_status = 0; }; then
  6736. case `/usr/bin/file conftest.o` in
  6737. *32-bit*)
  6738. case $host in
  6739. x86_64-*kfreebsd*-gnu)
  6740. LD="${LD-ld} -m elf_i386_fbsd"
  6741. ;;
  6742. x86_64-*linux*)
  6743. case `/usr/bin/file conftest.o` in
  6744. *x86-64*)
  6745. LD="${LD-ld} -m elf32_x86_64"
  6746. ;;
  6747. *)
  6748. LD="${LD-ld} -m elf_i386"
  6749. ;;
  6750. esac
  6751. ;;
  6752. powerpc64le-*linux*)
  6753. LD="${LD-ld} -m elf32lppclinux"
  6754. ;;
  6755. powerpc64-*linux*)
  6756. LD="${LD-ld} -m elf32ppclinux"
  6757. ;;
  6758. s390x-*linux*)
  6759. LD="${LD-ld} -m elf_s390"
  6760. ;;
  6761. sparc64-*linux*)
  6762. LD="${LD-ld} -m elf32_sparc"
  6763. ;;
  6764. esac
  6765. ;;
  6766. *64-bit*)
  6767. case $host in
  6768. x86_64-*kfreebsd*-gnu)
  6769. LD="${LD-ld} -m elf_x86_64_fbsd"
  6770. ;;
  6771. x86_64-*linux*)
  6772. LD="${LD-ld} -m elf_x86_64"
  6773. ;;
  6774. powerpcle-*linux*)
  6775. LD="${LD-ld} -m elf64lppc"
  6776. ;;
  6777. powerpc-*linux*)
  6778. LD="${LD-ld} -m elf64ppc"
  6779. ;;
  6780. s390*-*linux*|s390*-*tpf*)
  6781. LD="${LD-ld} -m elf64_s390"
  6782. ;;
  6783. sparc*-*linux*)
  6784. LD="${LD-ld} -m elf64_sparc"
  6785. ;;
  6786. esac
  6787. ;;
  6788. esac
  6789. fi
  6790. rm -rf conftest*
  6791. ;;
  6792. *-*-sco3.2v5*)
  6793. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6794. SAVE_CFLAGS=$CFLAGS
  6795. CFLAGS="$CFLAGS -belf"
  6796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6797. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6798. if ${lt_cv_cc_needs_belf+:} false; then :
  6799. $as_echo_n "(cached) " >&6
  6800. else
  6801. ac_ext=c
  6802. ac_cpp='$CPP $CPPFLAGS'
  6803. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6804. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6805. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6807. /* end confdefs.h. */
  6808. int
  6809. main ()
  6810. {
  6811. ;
  6812. return 0;
  6813. }
  6814. _ACEOF
  6815. if ac_fn_c_try_link "$LINENO"; then :
  6816. lt_cv_cc_needs_belf=yes
  6817. else
  6818. lt_cv_cc_needs_belf=no
  6819. fi
  6820. rm -f core conftest.err conftest.$ac_objext \
  6821. conftest$ac_exeext conftest.$ac_ext
  6822. ac_ext=c
  6823. ac_cpp='$CPP $CPPFLAGS'
  6824. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6825. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6826. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6827. fi
  6828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6829. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6830. if test yes != "$lt_cv_cc_needs_belf"; then
  6831. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6832. CFLAGS=$SAVE_CFLAGS
  6833. fi
  6834. ;;
  6835. *-*solaris*)
  6836. # Find out what ABI is being produced by ac_compile, and set linker
  6837. # options accordingly.
  6838. echo 'int i;' > conftest.$ac_ext
  6839. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6840. (eval $ac_compile) 2>&5
  6841. ac_status=$?
  6842. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6843. test $ac_status = 0; }; then
  6844. case `/usr/bin/file conftest.o` in
  6845. *64-bit*)
  6846. case $lt_cv_prog_gnu_ld in
  6847. yes*)
  6848. case $host in
  6849. i?86-*-solaris*|x86_64-*-solaris*)
  6850. LD="${LD-ld} -m elf_x86_64"
  6851. ;;
  6852. sparc*-*-solaris*)
  6853. LD="${LD-ld} -m elf64_sparc"
  6854. ;;
  6855. esac
  6856. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6857. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6858. LD=${LD-ld}_sol2
  6859. fi
  6860. ;;
  6861. *)
  6862. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6863. LD="${LD-ld} -64"
  6864. fi
  6865. ;;
  6866. esac
  6867. ;;
  6868. esac
  6869. fi
  6870. rm -rf conftest*
  6871. ;;
  6872. esac
  6873. need_locks=$enable_libtool_lock
  6874. if test -n "$ac_tool_prefix"; then
  6875. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6876. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6878. $as_echo_n "checking for $ac_word... " >&6; }
  6879. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6880. $as_echo_n "(cached) " >&6
  6881. else
  6882. if test -n "$MANIFEST_TOOL"; then
  6883. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6884. else
  6885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6886. for as_dir in $PATH
  6887. do
  6888. IFS=$as_save_IFS
  6889. test -z "$as_dir" && as_dir=.
  6890. for ac_exec_ext in '' $ac_executable_extensions; do
  6891. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6892. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6893. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6894. break 2
  6895. fi
  6896. done
  6897. done
  6898. IFS=$as_save_IFS
  6899. fi
  6900. fi
  6901. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6902. if test -n "$MANIFEST_TOOL"; then
  6903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6904. $as_echo "$MANIFEST_TOOL" >&6; }
  6905. else
  6906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6907. $as_echo "no" >&6; }
  6908. fi
  6909. fi
  6910. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6911. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6912. # Extract the first word of "mt", so it can be a program name with args.
  6913. set dummy mt; ac_word=$2
  6914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6915. $as_echo_n "checking for $ac_word... " >&6; }
  6916. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6917. $as_echo_n "(cached) " >&6
  6918. else
  6919. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6920. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6921. else
  6922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6923. for as_dir in $PATH
  6924. do
  6925. IFS=$as_save_IFS
  6926. test -z "$as_dir" && as_dir=.
  6927. for ac_exec_ext in '' $ac_executable_extensions; do
  6928. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6929. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6930. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6931. break 2
  6932. fi
  6933. done
  6934. done
  6935. IFS=$as_save_IFS
  6936. fi
  6937. fi
  6938. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6939. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6941. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6942. else
  6943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6944. $as_echo "no" >&6; }
  6945. fi
  6946. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6947. MANIFEST_TOOL=":"
  6948. else
  6949. case $cross_compiling:$ac_tool_warned in
  6950. yes:)
  6951. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6952. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6953. ac_tool_warned=yes ;;
  6954. esac
  6955. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6956. fi
  6957. else
  6958. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6959. fi
  6960. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6962. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6963. if ${lt_cv_path_mainfest_tool+:} false; then :
  6964. $as_echo_n "(cached) " >&6
  6965. else
  6966. lt_cv_path_mainfest_tool=no
  6967. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6968. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6969. cat conftest.err >&5
  6970. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6971. lt_cv_path_mainfest_tool=yes
  6972. fi
  6973. rm -f conftest*
  6974. fi
  6975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6976. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6977. if test yes != "$lt_cv_path_mainfest_tool"; then
  6978. MANIFEST_TOOL=:
  6979. fi
  6980. case $host_os in
  6981. rhapsody* | darwin*)
  6982. if test -n "$ac_tool_prefix"; then
  6983. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6984. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6986. $as_echo_n "checking for $ac_word... " >&6; }
  6987. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6988. $as_echo_n "(cached) " >&6
  6989. else
  6990. if test -n "$DSYMUTIL"; then
  6991. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6992. else
  6993. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6994. for as_dir in $PATH
  6995. do
  6996. IFS=$as_save_IFS
  6997. test -z "$as_dir" && as_dir=.
  6998. for ac_exec_ext in '' $ac_executable_extensions; do
  6999. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7000. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7001. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7002. break 2
  7003. fi
  7004. done
  7005. done
  7006. IFS=$as_save_IFS
  7007. fi
  7008. fi
  7009. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7010. if test -n "$DSYMUTIL"; then
  7011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7012. $as_echo "$DSYMUTIL" >&6; }
  7013. else
  7014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7015. $as_echo "no" >&6; }
  7016. fi
  7017. fi
  7018. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7019. ac_ct_DSYMUTIL=$DSYMUTIL
  7020. # Extract the first word of "dsymutil", so it can be a program name with args.
  7021. set dummy dsymutil; ac_word=$2
  7022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7023. $as_echo_n "checking for $ac_word... " >&6; }
  7024. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  7025. $as_echo_n "(cached) " >&6
  7026. else
  7027. if test -n "$ac_ct_DSYMUTIL"; then
  7028. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7029. else
  7030. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7031. for as_dir in $PATH
  7032. do
  7033. IFS=$as_save_IFS
  7034. test -z "$as_dir" && as_dir=.
  7035. for ac_exec_ext in '' $ac_executable_extensions; do
  7036. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7037. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7038. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7039. break 2
  7040. fi
  7041. done
  7042. done
  7043. IFS=$as_save_IFS
  7044. fi
  7045. fi
  7046. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7047. if test -n "$ac_ct_DSYMUTIL"; then
  7048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7049. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7050. else
  7051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7052. $as_echo "no" >&6; }
  7053. fi
  7054. if test "x$ac_ct_DSYMUTIL" = x; then
  7055. DSYMUTIL=":"
  7056. else
  7057. case $cross_compiling:$ac_tool_warned in
  7058. yes:)
  7059. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7060. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7061. ac_tool_warned=yes ;;
  7062. esac
  7063. DSYMUTIL=$ac_ct_DSYMUTIL
  7064. fi
  7065. else
  7066. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7067. fi
  7068. if test -n "$ac_tool_prefix"; then
  7069. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7070. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7072. $as_echo_n "checking for $ac_word... " >&6; }
  7073. if ${ac_cv_prog_NMEDIT+:} false; then :
  7074. $as_echo_n "(cached) " >&6
  7075. else
  7076. if test -n "$NMEDIT"; then
  7077. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7078. else
  7079. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7080. for as_dir in $PATH
  7081. do
  7082. IFS=$as_save_IFS
  7083. test -z "$as_dir" && as_dir=.
  7084. for ac_exec_ext in '' $ac_executable_extensions; do
  7085. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7086. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7087. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7088. break 2
  7089. fi
  7090. done
  7091. done
  7092. IFS=$as_save_IFS
  7093. fi
  7094. fi
  7095. NMEDIT=$ac_cv_prog_NMEDIT
  7096. if test -n "$NMEDIT"; then
  7097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7098. $as_echo "$NMEDIT" >&6; }
  7099. else
  7100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7101. $as_echo "no" >&6; }
  7102. fi
  7103. fi
  7104. if test -z "$ac_cv_prog_NMEDIT"; then
  7105. ac_ct_NMEDIT=$NMEDIT
  7106. # Extract the first word of "nmedit", so it can be a program name with args.
  7107. set dummy nmedit; ac_word=$2
  7108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7109. $as_echo_n "checking for $ac_word... " >&6; }
  7110. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7111. $as_echo_n "(cached) " >&6
  7112. else
  7113. if test -n "$ac_ct_NMEDIT"; then
  7114. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7115. else
  7116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7117. for as_dir in $PATH
  7118. do
  7119. IFS=$as_save_IFS
  7120. test -z "$as_dir" && as_dir=.
  7121. for ac_exec_ext in '' $ac_executable_extensions; do
  7122. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7123. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7124. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7125. break 2
  7126. fi
  7127. done
  7128. done
  7129. IFS=$as_save_IFS
  7130. fi
  7131. fi
  7132. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7133. if test -n "$ac_ct_NMEDIT"; then
  7134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7135. $as_echo "$ac_ct_NMEDIT" >&6; }
  7136. else
  7137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7138. $as_echo "no" >&6; }
  7139. fi
  7140. if test "x$ac_ct_NMEDIT" = x; then
  7141. NMEDIT=":"
  7142. else
  7143. case $cross_compiling:$ac_tool_warned in
  7144. yes:)
  7145. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7146. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7147. ac_tool_warned=yes ;;
  7148. esac
  7149. NMEDIT=$ac_ct_NMEDIT
  7150. fi
  7151. else
  7152. NMEDIT="$ac_cv_prog_NMEDIT"
  7153. fi
  7154. if test -n "$ac_tool_prefix"; then
  7155. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7156. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7158. $as_echo_n "checking for $ac_word... " >&6; }
  7159. if ${ac_cv_prog_LIPO+:} false; then :
  7160. $as_echo_n "(cached) " >&6
  7161. else
  7162. if test -n "$LIPO"; then
  7163. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7164. else
  7165. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7166. for as_dir in $PATH
  7167. do
  7168. IFS=$as_save_IFS
  7169. test -z "$as_dir" && as_dir=.
  7170. for ac_exec_ext in '' $ac_executable_extensions; do
  7171. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7172. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7173. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7174. break 2
  7175. fi
  7176. done
  7177. done
  7178. IFS=$as_save_IFS
  7179. fi
  7180. fi
  7181. LIPO=$ac_cv_prog_LIPO
  7182. if test -n "$LIPO"; then
  7183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7184. $as_echo "$LIPO" >&6; }
  7185. else
  7186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7187. $as_echo "no" >&6; }
  7188. fi
  7189. fi
  7190. if test -z "$ac_cv_prog_LIPO"; then
  7191. ac_ct_LIPO=$LIPO
  7192. # Extract the first word of "lipo", so it can be a program name with args.
  7193. set dummy lipo; ac_word=$2
  7194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7195. $as_echo_n "checking for $ac_word... " >&6; }
  7196. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7197. $as_echo_n "(cached) " >&6
  7198. else
  7199. if test -n "$ac_ct_LIPO"; then
  7200. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7201. else
  7202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7203. for as_dir in $PATH
  7204. do
  7205. IFS=$as_save_IFS
  7206. test -z "$as_dir" && as_dir=.
  7207. for ac_exec_ext in '' $ac_executable_extensions; do
  7208. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7209. ac_cv_prog_ac_ct_LIPO="lipo"
  7210. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7211. break 2
  7212. fi
  7213. done
  7214. done
  7215. IFS=$as_save_IFS
  7216. fi
  7217. fi
  7218. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7219. if test -n "$ac_ct_LIPO"; then
  7220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7221. $as_echo "$ac_ct_LIPO" >&6; }
  7222. else
  7223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7224. $as_echo "no" >&6; }
  7225. fi
  7226. if test "x$ac_ct_LIPO" = x; then
  7227. LIPO=":"
  7228. else
  7229. case $cross_compiling:$ac_tool_warned in
  7230. yes:)
  7231. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7232. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7233. ac_tool_warned=yes ;;
  7234. esac
  7235. LIPO=$ac_ct_LIPO
  7236. fi
  7237. else
  7238. LIPO="$ac_cv_prog_LIPO"
  7239. fi
  7240. if test -n "$ac_tool_prefix"; then
  7241. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7242. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7244. $as_echo_n "checking for $ac_word... " >&6; }
  7245. if ${ac_cv_prog_OTOOL+:} false; then :
  7246. $as_echo_n "(cached) " >&6
  7247. else
  7248. if test -n "$OTOOL"; then
  7249. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7250. else
  7251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7252. for as_dir in $PATH
  7253. do
  7254. IFS=$as_save_IFS
  7255. test -z "$as_dir" && as_dir=.
  7256. for ac_exec_ext in '' $ac_executable_extensions; do
  7257. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7258. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7259. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7260. break 2
  7261. fi
  7262. done
  7263. done
  7264. IFS=$as_save_IFS
  7265. fi
  7266. fi
  7267. OTOOL=$ac_cv_prog_OTOOL
  7268. if test -n "$OTOOL"; then
  7269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7270. $as_echo "$OTOOL" >&6; }
  7271. else
  7272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7273. $as_echo "no" >&6; }
  7274. fi
  7275. fi
  7276. if test -z "$ac_cv_prog_OTOOL"; then
  7277. ac_ct_OTOOL=$OTOOL
  7278. # Extract the first word of "otool", so it can be a program name with args.
  7279. set dummy otool; ac_word=$2
  7280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7281. $as_echo_n "checking for $ac_word... " >&6; }
  7282. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7283. $as_echo_n "(cached) " >&6
  7284. else
  7285. if test -n "$ac_ct_OTOOL"; then
  7286. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7287. else
  7288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7289. for as_dir in $PATH
  7290. do
  7291. IFS=$as_save_IFS
  7292. test -z "$as_dir" && as_dir=.
  7293. for ac_exec_ext in '' $ac_executable_extensions; do
  7294. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7295. ac_cv_prog_ac_ct_OTOOL="otool"
  7296. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7297. break 2
  7298. fi
  7299. done
  7300. done
  7301. IFS=$as_save_IFS
  7302. fi
  7303. fi
  7304. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7305. if test -n "$ac_ct_OTOOL"; then
  7306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7307. $as_echo "$ac_ct_OTOOL" >&6; }
  7308. else
  7309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7310. $as_echo "no" >&6; }
  7311. fi
  7312. if test "x$ac_ct_OTOOL" = x; then
  7313. OTOOL=":"
  7314. else
  7315. case $cross_compiling:$ac_tool_warned in
  7316. yes:)
  7317. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7318. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7319. ac_tool_warned=yes ;;
  7320. esac
  7321. OTOOL=$ac_ct_OTOOL
  7322. fi
  7323. else
  7324. OTOOL="$ac_cv_prog_OTOOL"
  7325. fi
  7326. if test -n "$ac_tool_prefix"; then
  7327. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7328. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7330. $as_echo_n "checking for $ac_word... " >&6; }
  7331. if ${ac_cv_prog_OTOOL64+:} false; then :
  7332. $as_echo_n "(cached) " >&6
  7333. else
  7334. if test -n "$OTOOL64"; then
  7335. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7336. else
  7337. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7338. for as_dir in $PATH
  7339. do
  7340. IFS=$as_save_IFS
  7341. test -z "$as_dir" && as_dir=.
  7342. for ac_exec_ext in '' $ac_executable_extensions; do
  7343. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7344. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7345. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7346. break 2
  7347. fi
  7348. done
  7349. done
  7350. IFS=$as_save_IFS
  7351. fi
  7352. fi
  7353. OTOOL64=$ac_cv_prog_OTOOL64
  7354. if test -n "$OTOOL64"; then
  7355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7356. $as_echo "$OTOOL64" >&6; }
  7357. else
  7358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7359. $as_echo "no" >&6; }
  7360. fi
  7361. fi
  7362. if test -z "$ac_cv_prog_OTOOL64"; then
  7363. ac_ct_OTOOL64=$OTOOL64
  7364. # Extract the first word of "otool64", so it can be a program name with args.
  7365. set dummy otool64; ac_word=$2
  7366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7367. $as_echo_n "checking for $ac_word... " >&6; }
  7368. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7369. $as_echo_n "(cached) " >&6
  7370. else
  7371. if test -n "$ac_ct_OTOOL64"; then
  7372. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7373. else
  7374. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7375. for as_dir in $PATH
  7376. do
  7377. IFS=$as_save_IFS
  7378. test -z "$as_dir" && as_dir=.
  7379. for ac_exec_ext in '' $ac_executable_extensions; do
  7380. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7381. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7382. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7383. break 2
  7384. fi
  7385. done
  7386. done
  7387. IFS=$as_save_IFS
  7388. fi
  7389. fi
  7390. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7391. if test -n "$ac_ct_OTOOL64"; then
  7392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7393. $as_echo "$ac_ct_OTOOL64" >&6; }
  7394. else
  7395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7396. $as_echo "no" >&6; }
  7397. fi
  7398. if test "x$ac_ct_OTOOL64" = x; then
  7399. OTOOL64=":"
  7400. else
  7401. case $cross_compiling:$ac_tool_warned in
  7402. yes:)
  7403. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7404. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7405. ac_tool_warned=yes ;;
  7406. esac
  7407. OTOOL64=$ac_ct_OTOOL64
  7408. fi
  7409. else
  7410. OTOOL64="$ac_cv_prog_OTOOL64"
  7411. fi
  7412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7413. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7414. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7415. $as_echo_n "(cached) " >&6
  7416. else
  7417. lt_cv_apple_cc_single_mod=no
  7418. if test -z "$LT_MULTI_MODULE"; then
  7419. # By default we will add the -single_module flag. You can override
  7420. # by either setting the environment variable LT_MULTI_MODULE
  7421. # non-empty at configure time, or by adding -multi_module to the
  7422. # link flags.
  7423. rm -rf libconftest.dylib*
  7424. echo "int foo(void){return 1;}" > conftest.c
  7425. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7426. -dynamiclib -Wl,-single_module conftest.c" >&5
  7427. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7428. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7429. _lt_result=$?
  7430. # If there is a non-empty error log, and "single_module"
  7431. # appears in it, assume the flag caused a linker warning
  7432. if test -s conftest.err && $GREP single_module conftest.err; then
  7433. cat conftest.err >&5
  7434. # Otherwise, if the output was created with a 0 exit code from
  7435. # the compiler, it worked.
  7436. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7437. lt_cv_apple_cc_single_mod=yes
  7438. else
  7439. cat conftest.err >&5
  7440. fi
  7441. rm -rf libconftest.dylib*
  7442. rm -f conftest.*
  7443. fi
  7444. fi
  7445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7446. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7448. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7449. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7450. $as_echo_n "(cached) " >&6
  7451. else
  7452. lt_cv_ld_exported_symbols_list=no
  7453. save_LDFLAGS=$LDFLAGS
  7454. echo "_main" > conftest.sym
  7455. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7457. /* end confdefs.h. */
  7458. int
  7459. main ()
  7460. {
  7461. ;
  7462. return 0;
  7463. }
  7464. _ACEOF
  7465. if ac_fn_c_try_link "$LINENO"; then :
  7466. lt_cv_ld_exported_symbols_list=yes
  7467. else
  7468. lt_cv_ld_exported_symbols_list=no
  7469. fi
  7470. rm -f core conftest.err conftest.$ac_objext \
  7471. conftest$ac_exeext conftest.$ac_ext
  7472. LDFLAGS=$save_LDFLAGS
  7473. fi
  7474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7475. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7477. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7478. if ${lt_cv_ld_force_load+:} false; then :
  7479. $as_echo_n "(cached) " >&6
  7480. else
  7481. lt_cv_ld_force_load=no
  7482. cat > conftest.c << _LT_EOF
  7483. int forced_loaded() { return 2;}
  7484. _LT_EOF
  7485. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7486. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7487. echo "$AR cru libconftest.a conftest.o" >&5
  7488. $AR cru libconftest.a conftest.o 2>&5
  7489. echo "$RANLIB libconftest.a" >&5
  7490. $RANLIB libconftest.a 2>&5
  7491. cat > conftest.c << _LT_EOF
  7492. int main() { return 0;}
  7493. _LT_EOF
  7494. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7495. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7496. _lt_result=$?
  7497. if test -s conftest.err && $GREP force_load conftest.err; then
  7498. cat conftest.err >&5
  7499. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7500. lt_cv_ld_force_load=yes
  7501. else
  7502. cat conftest.err >&5
  7503. fi
  7504. rm -f conftest.err libconftest.a conftest conftest.c
  7505. rm -rf conftest.dSYM
  7506. fi
  7507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7508. $as_echo "$lt_cv_ld_force_load" >&6; }
  7509. case $host_os in
  7510. rhapsody* | darwin1.[012])
  7511. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7512. darwin1.*)
  7513. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7514. darwin*) # darwin 5.x on
  7515. # if running on 10.5 or later, the deployment target defaults
  7516. # to the OS version, if on x86, and 10.4, the deployment
  7517. # target defaults to 10.4. Don't you love it?
  7518. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7519. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7520. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7521. 10.[012][,.]*)
  7522. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7523. 10.*)
  7524. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7525. esac
  7526. ;;
  7527. esac
  7528. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7529. _lt_dar_single_mod='$single_module'
  7530. fi
  7531. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7532. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7533. else
  7534. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7535. fi
  7536. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7537. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7538. else
  7539. _lt_dsymutil=
  7540. fi
  7541. ;;
  7542. esac
  7543. # func_munge_path_list VARIABLE PATH
  7544. # -----------------------------------
  7545. # VARIABLE is name of variable containing _space_ separated list of
  7546. # directories to be munged by the contents of PATH, which is string
  7547. # having a format:
  7548. # "DIR[:DIR]:"
  7549. # string "DIR[ DIR]" will be prepended to VARIABLE
  7550. # ":DIR[:DIR]"
  7551. # string "DIR[ DIR]" will be appended to VARIABLE
  7552. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7553. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7554. # "DIRA[ DIRA]" will be appended to VARIABLE
  7555. # "DIR[:DIR]"
  7556. # VARIABLE will be replaced by "DIR[ DIR]"
  7557. func_munge_path_list ()
  7558. {
  7559. case x$2 in
  7560. x)
  7561. ;;
  7562. *:)
  7563. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7564. ;;
  7565. x:*)
  7566. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7567. ;;
  7568. *::*)
  7569. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7570. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7571. ;;
  7572. *)
  7573. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7574. ;;
  7575. esac
  7576. }
  7577. ac_ext=c
  7578. ac_cpp='$CPP $CPPFLAGS'
  7579. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7580. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7581. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7583. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7584. # On Suns, sometimes $CPP names a directory.
  7585. if test -n "$CPP" && test -d "$CPP"; then
  7586. CPP=
  7587. fi
  7588. if test -z "$CPP"; then
  7589. if ${ac_cv_prog_CPP+:} false; then :
  7590. $as_echo_n "(cached) " >&6
  7591. else
  7592. # Double quotes because CPP needs to be expanded
  7593. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7594. do
  7595. ac_preproc_ok=false
  7596. for ac_c_preproc_warn_flag in '' yes
  7597. do
  7598. # Use a header file that comes with gcc, so configuring glibc
  7599. # with a fresh cross-compiler works.
  7600. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7601. # <limits.h> exists even on freestanding compilers.
  7602. # On the NeXT, cc -E runs the code through the compiler's parser,
  7603. # not just through cpp. "Syntax error" is here to catch this case.
  7604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7605. /* end confdefs.h. */
  7606. #ifdef __STDC__
  7607. # include <limits.h>
  7608. #else
  7609. # include <assert.h>
  7610. #endif
  7611. Syntax error
  7612. _ACEOF
  7613. if ac_fn_c_try_cpp "$LINENO"; then :
  7614. else
  7615. # Broken: fails on valid input.
  7616. continue
  7617. fi
  7618. rm -f conftest.err conftest.i conftest.$ac_ext
  7619. # OK, works on sane cases. Now check whether nonexistent headers
  7620. # can be detected and how.
  7621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7622. /* end confdefs.h. */
  7623. #include <ac_nonexistent.h>
  7624. _ACEOF
  7625. if ac_fn_c_try_cpp "$LINENO"; then :
  7626. # Broken: success on invalid input.
  7627. continue
  7628. else
  7629. # Passes both tests.
  7630. ac_preproc_ok=:
  7631. break
  7632. fi
  7633. rm -f conftest.err conftest.i conftest.$ac_ext
  7634. done
  7635. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7636. rm -f conftest.i conftest.err conftest.$ac_ext
  7637. if $ac_preproc_ok; then :
  7638. break
  7639. fi
  7640. done
  7641. ac_cv_prog_CPP=$CPP
  7642. fi
  7643. CPP=$ac_cv_prog_CPP
  7644. else
  7645. ac_cv_prog_CPP=$CPP
  7646. fi
  7647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7648. $as_echo "$CPP" >&6; }
  7649. ac_preproc_ok=false
  7650. for ac_c_preproc_warn_flag in '' yes
  7651. do
  7652. # Use a header file that comes with gcc, so configuring glibc
  7653. # with a fresh cross-compiler works.
  7654. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7655. # <limits.h> exists even on freestanding compilers.
  7656. # On the NeXT, cc -E runs the code through the compiler's parser,
  7657. # not just through cpp. "Syntax error" is here to catch this case.
  7658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7659. /* end confdefs.h. */
  7660. #ifdef __STDC__
  7661. # include <limits.h>
  7662. #else
  7663. # include <assert.h>
  7664. #endif
  7665. Syntax error
  7666. _ACEOF
  7667. if ac_fn_c_try_cpp "$LINENO"; then :
  7668. else
  7669. # Broken: fails on valid input.
  7670. continue
  7671. fi
  7672. rm -f conftest.err conftest.i conftest.$ac_ext
  7673. # OK, works on sane cases. Now check whether nonexistent headers
  7674. # can be detected and how.
  7675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7676. /* end confdefs.h. */
  7677. #include <ac_nonexistent.h>
  7678. _ACEOF
  7679. if ac_fn_c_try_cpp "$LINENO"; then :
  7680. # Broken: success on invalid input.
  7681. continue
  7682. else
  7683. # Passes both tests.
  7684. ac_preproc_ok=:
  7685. break
  7686. fi
  7687. rm -f conftest.err conftest.i conftest.$ac_ext
  7688. done
  7689. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7690. rm -f conftest.i conftest.err conftest.$ac_ext
  7691. if $ac_preproc_ok; then :
  7692. else
  7693. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7694. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7695. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7696. See \`config.log' for more details" "$LINENO" 5; }
  7697. fi
  7698. ac_ext=c
  7699. ac_cpp='$CPP $CPPFLAGS'
  7700. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7701. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7702. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7704. $as_echo_n "checking for ANSI C header files... " >&6; }
  7705. if ${ac_cv_header_stdc+:} false; then :
  7706. $as_echo_n "(cached) " >&6
  7707. else
  7708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7709. /* end confdefs.h. */
  7710. #include <stdlib.h>
  7711. #include <stdarg.h>
  7712. #include <string.h>
  7713. #include <float.h>
  7714. int
  7715. main ()
  7716. {
  7717. ;
  7718. return 0;
  7719. }
  7720. _ACEOF
  7721. if ac_fn_c_try_compile "$LINENO"; then :
  7722. ac_cv_header_stdc=yes
  7723. else
  7724. ac_cv_header_stdc=no
  7725. fi
  7726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7727. if test $ac_cv_header_stdc = yes; then
  7728. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7730. /* end confdefs.h. */
  7731. #include <string.h>
  7732. _ACEOF
  7733. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7734. $EGREP "memchr" >/dev/null 2>&1; then :
  7735. else
  7736. ac_cv_header_stdc=no
  7737. fi
  7738. rm -f conftest*
  7739. fi
  7740. if test $ac_cv_header_stdc = yes; then
  7741. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7743. /* end confdefs.h. */
  7744. #include <stdlib.h>
  7745. _ACEOF
  7746. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7747. $EGREP "free" >/dev/null 2>&1; then :
  7748. else
  7749. ac_cv_header_stdc=no
  7750. fi
  7751. rm -f conftest*
  7752. fi
  7753. if test $ac_cv_header_stdc = yes; then
  7754. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7755. if test "$cross_compiling" = yes; then :
  7756. :
  7757. else
  7758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7759. /* end confdefs.h. */
  7760. #include <ctype.h>
  7761. #include <stdlib.h>
  7762. #if ((' ' & 0x0FF) == 0x020)
  7763. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7764. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7765. #else
  7766. # define ISLOWER(c) \
  7767. (('a' <= (c) && (c) <= 'i') \
  7768. || ('j' <= (c) && (c) <= 'r') \
  7769. || ('s' <= (c) && (c) <= 'z'))
  7770. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7771. #endif
  7772. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7773. int
  7774. main ()
  7775. {
  7776. int i;
  7777. for (i = 0; i < 256; i++)
  7778. if (XOR (islower (i), ISLOWER (i))
  7779. || toupper (i) != TOUPPER (i))
  7780. return 2;
  7781. return 0;
  7782. }
  7783. _ACEOF
  7784. if ac_fn_c_try_run "$LINENO"; then :
  7785. else
  7786. ac_cv_header_stdc=no
  7787. fi
  7788. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7789. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7790. fi
  7791. fi
  7792. fi
  7793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7794. $as_echo "$ac_cv_header_stdc" >&6; }
  7795. if test $ac_cv_header_stdc = yes; then
  7796. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7797. fi
  7798. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7799. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7800. inttypes.h stdint.h unistd.h
  7801. do :
  7802. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7803. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7804. "
  7805. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7806. cat >>confdefs.h <<_ACEOF
  7807. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7808. _ACEOF
  7809. fi
  7810. done
  7811. for ac_header in dlfcn.h
  7812. do :
  7813. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7814. "
  7815. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7816. cat >>confdefs.h <<_ACEOF
  7817. #define HAVE_DLFCN_H 1
  7818. _ACEOF
  7819. fi
  7820. done
  7821. # Set options
  7822. enable_dlopen=no
  7823. enable_win32_dll=no
  7824. # Check whether --enable-shared was given.
  7825. if test "${enable_shared+set}" = set; then :
  7826. enableval=$enable_shared; p=${PACKAGE-default}
  7827. case $enableval in
  7828. yes) enable_shared=yes ;;
  7829. no) enable_shared=no ;;
  7830. *)
  7831. enable_shared=no
  7832. # Look at the argument we got. We use all the common list separators.
  7833. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7834. for pkg in $enableval; do
  7835. IFS=$lt_save_ifs
  7836. if test "X$pkg" = "X$p"; then
  7837. enable_shared=yes
  7838. fi
  7839. done
  7840. IFS=$lt_save_ifs
  7841. ;;
  7842. esac
  7843. else
  7844. enable_shared=yes
  7845. fi
  7846. # Check whether --enable-static was given.
  7847. if test "${enable_static+set}" = set; then :
  7848. enableval=$enable_static; p=${PACKAGE-default}
  7849. case $enableval in
  7850. yes) enable_static=yes ;;
  7851. no) enable_static=no ;;
  7852. *)
  7853. enable_static=no
  7854. # Look at the argument we got. We use all the common list separators.
  7855. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7856. for pkg in $enableval; do
  7857. IFS=$lt_save_ifs
  7858. if test "X$pkg" = "X$p"; then
  7859. enable_static=yes
  7860. fi
  7861. done
  7862. IFS=$lt_save_ifs
  7863. ;;
  7864. esac
  7865. else
  7866. enable_static=yes
  7867. fi
  7868. # Check whether --with-pic was given.
  7869. if test "${with_pic+set}" = set; then :
  7870. withval=$with_pic; lt_p=${PACKAGE-default}
  7871. case $withval in
  7872. yes|no) pic_mode=$withval ;;
  7873. *)
  7874. pic_mode=default
  7875. # Look at the argument we got. We use all the common list separators.
  7876. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7877. for lt_pkg in $withval; do
  7878. IFS=$lt_save_ifs
  7879. if test "X$lt_pkg" = "X$lt_p"; then
  7880. pic_mode=yes
  7881. fi
  7882. done
  7883. IFS=$lt_save_ifs
  7884. ;;
  7885. esac
  7886. else
  7887. pic_mode=default
  7888. fi
  7889. # Check whether --enable-fast-install was given.
  7890. if test "${enable_fast_install+set}" = set; then :
  7891. enableval=$enable_fast_install; p=${PACKAGE-default}
  7892. case $enableval in
  7893. yes) enable_fast_install=yes ;;
  7894. no) enable_fast_install=no ;;
  7895. *)
  7896. enable_fast_install=no
  7897. # Look at the argument we got. We use all the common list separators.
  7898. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7899. for pkg in $enableval; do
  7900. IFS=$lt_save_ifs
  7901. if test "X$pkg" = "X$p"; then
  7902. enable_fast_install=yes
  7903. fi
  7904. done
  7905. IFS=$lt_save_ifs
  7906. ;;
  7907. esac
  7908. else
  7909. enable_fast_install=yes
  7910. fi
  7911. shared_archive_member_spec=
  7912. case $host,$enable_shared in
  7913. power*-*-aix[5-9]*,yes)
  7914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7915. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  7916. # Check whether --with-aix-soname was given.
  7917. if test "${with_aix_soname+set}" = set; then :
  7918. withval=$with_aix_soname; case $withval in
  7919. aix|svr4|both)
  7920. ;;
  7921. *)
  7922. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7923. ;;
  7924. esac
  7925. lt_cv_with_aix_soname=$with_aix_soname
  7926. else
  7927. if ${lt_cv_with_aix_soname+:} false; then :
  7928. $as_echo_n "(cached) " >&6
  7929. else
  7930. lt_cv_with_aix_soname=aix
  7931. fi
  7932. with_aix_soname=$lt_cv_with_aix_soname
  7933. fi
  7934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7935. $as_echo "$with_aix_soname" >&6; }
  7936. if test aix != "$with_aix_soname"; then
  7937. # For the AIX way of multilib, we name the shared archive member
  7938. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7939. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7940. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7941. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7942. if test 64 = "${OBJECT_MODE-32}"; then
  7943. shared_archive_member_spec=shr_64
  7944. else
  7945. shared_archive_member_spec=shr
  7946. fi
  7947. fi
  7948. ;;
  7949. *)
  7950. with_aix_soname=aix
  7951. ;;
  7952. esac
  7953. # This can be used to rebuild libtool when needed
  7954. LIBTOOL_DEPS=$ltmain
  7955. # Always use our own libtool.
  7956. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7957. test -z "$LN_S" && LN_S="ln -s"
  7958. if test -n "${ZSH_VERSION+set}"; then
  7959. setopt NO_GLOB_SUBST
  7960. fi
  7961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7962. $as_echo_n "checking for objdir... " >&6; }
  7963. if ${lt_cv_objdir+:} false; then :
  7964. $as_echo_n "(cached) " >&6
  7965. else
  7966. rm -f .libs 2>/dev/null
  7967. mkdir .libs 2>/dev/null
  7968. if test -d .libs; then
  7969. lt_cv_objdir=.libs
  7970. else
  7971. # MS-DOS does not allow filenames that begin with a dot.
  7972. lt_cv_objdir=_libs
  7973. fi
  7974. rmdir .libs 2>/dev/null
  7975. fi
  7976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7977. $as_echo "$lt_cv_objdir" >&6; }
  7978. objdir=$lt_cv_objdir
  7979. cat >>confdefs.h <<_ACEOF
  7980. #define LT_OBJDIR "$lt_cv_objdir/"
  7981. _ACEOF
  7982. case $host_os in
  7983. aix3*)
  7984. # AIX sometimes has problems with the GCC collect2 program. For some
  7985. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7986. # vanish in a puff of smoke.
  7987. if test set != "${COLLECT_NAMES+set}"; then
  7988. COLLECT_NAMES=
  7989. export COLLECT_NAMES
  7990. fi
  7991. ;;
  7992. esac
  7993. # Global variables:
  7994. ofile=libtool
  7995. can_build_shared=yes
  7996. # All known linkers require a '.a' archive for static linking (except MSVC,
  7997. # which needs '.lib').
  7998. libext=a
  7999. with_gnu_ld=$lt_cv_prog_gnu_ld
  8000. old_CC=$CC
  8001. old_CFLAGS=$CFLAGS
  8002. # Set sane defaults for various variables
  8003. test -z "$CC" && CC=cc
  8004. test -z "$LTCC" && LTCC=$CC
  8005. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8006. test -z "$LD" && LD=ld
  8007. test -z "$ac_objext" && ac_objext=o
  8008. func_cc_basename $compiler
  8009. cc_basename=$func_cc_basename_result
  8010. # Only perform the check for file, if the check method requires it
  8011. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8012. case $deplibs_check_method in
  8013. file_magic*)
  8014. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8016. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  8017. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8018. $as_echo_n "(cached) " >&6
  8019. else
  8020. case $MAGIC_CMD in
  8021. [\\/*] | ?:[\\/]*)
  8022. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8023. ;;
  8024. *)
  8025. lt_save_MAGIC_CMD=$MAGIC_CMD
  8026. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8027. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8028. for ac_dir in $ac_dummy; do
  8029. IFS=$lt_save_ifs
  8030. test -z "$ac_dir" && ac_dir=.
  8031. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  8032. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  8033. if test -n "$file_magic_test_file"; then
  8034. case $deplibs_check_method in
  8035. "file_magic "*)
  8036. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8037. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8038. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8039. $EGREP "$file_magic_regex" > /dev/null; then
  8040. :
  8041. else
  8042. cat <<_LT_EOF 1>&2
  8043. *** Warning: the command libtool uses to detect shared libraries,
  8044. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8045. *** The result is that libtool may fail to recognize shared libraries
  8046. *** as such. This will affect the creation of libtool libraries that
  8047. *** depend on shared libraries, but programs linked with such libtool
  8048. *** libraries will work regardless of this problem. Nevertheless, you
  8049. *** may want to report the problem to your system manager and/or to
  8050. *** bug-libtool@gnu.org
  8051. _LT_EOF
  8052. fi ;;
  8053. esac
  8054. fi
  8055. break
  8056. fi
  8057. done
  8058. IFS=$lt_save_ifs
  8059. MAGIC_CMD=$lt_save_MAGIC_CMD
  8060. ;;
  8061. esac
  8062. fi
  8063. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8064. if test -n "$MAGIC_CMD"; then
  8065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8066. $as_echo "$MAGIC_CMD" >&6; }
  8067. else
  8068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8069. $as_echo "no" >&6; }
  8070. fi
  8071. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8072. if test -n "$ac_tool_prefix"; then
  8073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8074. $as_echo_n "checking for file... " >&6; }
  8075. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8076. $as_echo_n "(cached) " >&6
  8077. else
  8078. case $MAGIC_CMD in
  8079. [\\/*] | ?:[\\/]*)
  8080. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8081. ;;
  8082. *)
  8083. lt_save_MAGIC_CMD=$MAGIC_CMD
  8084. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8085. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8086. for ac_dir in $ac_dummy; do
  8087. IFS=$lt_save_ifs
  8088. test -z "$ac_dir" && ac_dir=.
  8089. if test -f "$ac_dir/file"; then
  8090. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  8091. if test -n "$file_magic_test_file"; then
  8092. case $deplibs_check_method in
  8093. "file_magic "*)
  8094. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8095. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8096. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8097. $EGREP "$file_magic_regex" > /dev/null; then
  8098. :
  8099. else
  8100. cat <<_LT_EOF 1>&2
  8101. *** Warning: the command libtool uses to detect shared libraries,
  8102. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8103. *** The result is that libtool may fail to recognize shared libraries
  8104. *** as such. This will affect the creation of libtool libraries that
  8105. *** depend on shared libraries, but programs linked with such libtool
  8106. *** libraries will work regardless of this problem. Nevertheless, you
  8107. *** may want to report the problem to your system manager and/or to
  8108. *** bug-libtool@gnu.org
  8109. _LT_EOF
  8110. fi ;;
  8111. esac
  8112. fi
  8113. break
  8114. fi
  8115. done
  8116. IFS=$lt_save_ifs
  8117. MAGIC_CMD=$lt_save_MAGIC_CMD
  8118. ;;
  8119. esac
  8120. fi
  8121. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8122. if test -n "$MAGIC_CMD"; then
  8123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8124. $as_echo "$MAGIC_CMD" >&6; }
  8125. else
  8126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8127. $as_echo "no" >&6; }
  8128. fi
  8129. else
  8130. MAGIC_CMD=:
  8131. fi
  8132. fi
  8133. fi
  8134. ;;
  8135. esac
  8136. # Use C for the default configuration in the libtool script
  8137. lt_save_CC=$CC
  8138. ac_ext=c
  8139. ac_cpp='$CPP $CPPFLAGS'
  8140. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8141. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8142. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8143. # Source file extension for C test sources.
  8144. ac_ext=c
  8145. # Object file extension for compiled C test sources.
  8146. objext=o
  8147. objext=$objext
  8148. # Code to be used in simple compile tests
  8149. lt_simple_compile_test_code="int some_variable = 0;"
  8150. # Code to be used in simple link tests
  8151. lt_simple_link_test_code='int main(){return(0);}'
  8152. # If no C compiler was specified, use CC.
  8153. LTCC=${LTCC-"$CC"}
  8154. # If no C compiler flags were specified, use CFLAGS.
  8155. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8156. # Allow CC to be a program name with arguments.
  8157. compiler=$CC
  8158. # Save the default compiler, since it gets overwritten when the other
  8159. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8160. compiler_DEFAULT=$CC
  8161. # save warnings/boilerplate of simple test code
  8162. ac_outfile=conftest.$ac_objext
  8163. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8164. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8165. _lt_compiler_boilerplate=`cat conftest.err`
  8166. $RM conftest*
  8167. ac_outfile=conftest.$ac_objext
  8168. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8169. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8170. _lt_linker_boilerplate=`cat conftest.err`
  8171. $RM -r conftest*
  8172. ## CAVEAT EMPTOR:
  8173. ## There is no encapsulation within the following macros, do not change
  8174. ## the running order or otherwise move them around unless you know exactly
  8175. ## what you are doing...
  8176. if test -n "$compiler"; then
  8177. lt_prog_compiler_no_builtin_flag=
  8178. if test yes = "$GCC"; then
  8179. case $cc_basename in
  8180. nvcc*)
  8181. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8182. *)
  8183. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8184. esac
  8185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8186. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8187. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8188. $as_echo_n "(cached) " >&6
  8189. else
  8190. lt_cv_prog_compiler_rtti_exceptions=no
  8191. ac_outfile=conftest.$ac_objext
  8192. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8193. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8194. # Insert the option either (1) after the last *FLAGS variable, or
  8195. # (2) before a word containing "conftest.", or (3) at the end.
  8196. # Note that $ac_compile itself does not contain backslashes and begins
  8197. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8198. # The option is referenced via a variable to avoid confusing sed.
  8199. lt_compile=`echo "$ac_compile" | $SED \
  8200. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8201. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8202. -e 's:$: $lt_compiler_flag:'`
  8203. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8204. (eval "$lt_compile" 2>conftest.err)
  8205. ac_status=$?
  8206. cat conftest.err >&5
  8207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8208. if (exit $ac_status) && test -s "$ac_outfile"; then
  8209. # The compiler can only warn and ignore the option if not recognized
  8210. # So say no if there are warnings other than the usual output.
  8211. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8212. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8213. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8214. lt_cv_prog_compiler_rtti_exceptions=yes
  8215. fi
  8216. fi
  8217. $RM conftest*
  8218. fi
  8219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8220. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8221. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8222. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8223. else
  8224. :
  8225. fi
  8226. fi
  8227. lt_prog_compiler_wl=
  8228. lt_prog_compiler_pic=
  8229. lt_prog_compiler_static=
  8230. if test yes = "$GCC"; then
  8231. lt_prog_compiler_wl='-Wl,'
  8232. lt_prog_compiler_static='-static'
  8233. case $host_os in
  8234. aix*)
  8235. # All AIX code is PIC.
  8236. if test ia64 = "$host_cpu"; then
  8237. # AIX 5 now supports IA64 processor
  8238. lt_prog_compiler_static='-Bstatic'
  8239. fi
  8240. lt_prog_compiler_pic='-fPIC'
  8241. ;;
  8242. amigaos*)
  8243. case $host_cpu in
  8244. powerpc)
  8245. # see comment about AmigaOS4 .so support
  8246. lt_prog_compiler_pic='-fPIC'
  8247. ;;
  8248. m68k)
  8249. # FIXME: we need at least 68020 code to build shared libraries, but
  8250. # adding the '-m68020' flag to GCC prevents building anything better,
  8251. # like '-m68040'.
  8252. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8253. ;;
  8254. esac
  8255. ;;
  8256. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8257. # PIC is the default for these OSes.
  8258. ;;
  8259. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8260. # This hack is so that the source file can tell whether it is being
  8261. # built for inclusion in a dll (and should export symbols for example).
  8262. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8263. # (--disable-auto-import) libraries
  8264. lt_prog_compiler_pic='-DDLL_EXPORT'
  8265. case $host_os in
  8266. os2*)
  8267. lt_prog_compiler_static='$wl-static'
  8268. ;;
  8269. esac
  8270. ;;
  8271. darwin* | rhapsody*)
  8272. # PIC is the default on this platform
  8273. # Common symbols not allowed in MH_DYLIB files
  8274. lt_prog_compiler_pic='-fno-common'
  8275. ;;
  8276. haiku*)
  8277. # PIC is the default for Haiku.
  8278. # The "-static" flag exists, but is broken.
  8279. lt_prog_compiler_static=
  8280. ;;
  8281. hpux*)
  8282. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8283. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8284. # sets the default TLS model and affects inlining.
  8285. case $host_cpu in
  8286. hppa*64*)
  8287. # +Z the default
  8288. ;;
  8289. *)
  8290. lt_prog_compiler_pic='-fPIC'
  8291. ;;
  8292. esac
  8293. ;;
  8294. interix[3-9]*)
  8295. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8296. # Instead, we relocate shared libraries at runtime.
  8297. ;;
  8298. msdosdjgpp*)
  8299. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8300. # on systems that don't support them.
  8301. lt_prog_compiler_can_build_shared=no
  8302. enable_shared=no
  8303. ;;
  8304. *nto* | *qnx*)
  8305. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8306. # it will coredump.
  8307. lt_prog_compiler_pic='-fPIC -shared'
  8308. ;;
  8309. sysv4*MP*)
  8310. if test -d /usr/nec; then
  8311. lt_prog_compiler_pic=-Kconform_pic
  8312. fi
  8313. ;;
  8314. *)
  8315. lt_prog_compiler_pic='-fPIC'
  8316. ;;
  8317. esac
  8318. case $cc_basename in
  8319. nvcc*) # Cuda Compiler Driver 2.2
  8320. lt_prog_compiler_wl='-Xlinker '
  8321. if test -n "$lt_prog_compiler_pic"; then
  8322. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8323. fi
  8324. ;;
  8325. esac
  8326. else
  8327. # PORTME Check for flag to pass linker flags through the system compiler.
  8328. case $host_os in
  8329. aix*)
  8330. lt_prog_compiler_wl='-Wl,'
  8331. if test ia64 = "$host_cpu"; then
  8332. # AIX 5 now supports IA64 processor
  8333. lt_prog_compiler_static='-Bstatic'
  8334. else
  8335. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8336. fi
  8337. ;;
  8338. darwin* | rhapsody*)
  8339. # PIC is the default on this platform
  8340. # Common symbols not allowed in MH_DYLIB files
  8341. lt_prog_compiler_pic='-fno-common'
  8342. case $cc_basename in
  8343. nagfor*)
  8344. # NAG Fortran compiler
  8345. lt_prog_compiler_wl='-Wl,-Wl,,'
  8346. lt_prog_compiler_pic='-PIC'
  8347. lt_prog_compiler_static='-Bstatic'
  8348. ;;
  8349. esac
  8350. ;;
  8351. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8352. # This hack is so that the source file can tell whether it is being
  8353. # built for inclusion in a dll (and should export symbols for example).
  8354. lt_prog_compiler_pic='-DDLL_EXPORT'
  8355. case $host_os in
  8356. os2*)
  8357. lt_prog_compiler_static='$wl-static'
  8358. ;;
  8359. esac
  8360. ;;
  8361. hpux9* | hpux10* | hpux11*)
  8362. lt_prog_compiler_wl='-Wl,'
  8363. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8364. # not for PA HP-UX.
  8365. case $host_cpu in
  8366. hppa*64*|ia64*)
  8367. # +Z the default
  8368. ;;
  8369. *)
  8370. lt_prog_compiler_pic='+Z'
  8371. ;;
  8372. esac
  8373. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8374. lt_prog_compiler_static='$wl-a ${wl}archive'
  8375. ;;
  8376. irix5* | irix6* | nonstopux*)
  8377. lt_prog_compiler_wl='-Wl,'
  8378. # PIC (with -KPIC) is the default.
  8379. lt_prog_compiler_static='-non_shared'
  8380. ;;
  8381. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8382. case $cc_basename in
  8383. # old Intel for x86_64, which still supported -KPIC.
  8384. ecc*)
  8385. lt_prog_compiler_wl='-Wl,'
  8386. lt_prog_compiler_pic='-KPIC'
  8387. lt_prog_compiler_static='-static'
  8388. ;;
  8389. # icc used to be incompatible with GCC.
  8390. # ICC 10 doesn't accept -KPIC any more.
  8391. icc* | ifort*)
  8392. lt_prog_compiler_wl='-Wl,'
  8393. lt_prog_compiler_pic='-fPIC'
  8394. lt_prog_compiler_static='-static'
  8395. ;;
  8396. # Lahey Fortran 8.1.
  8397. lf95*)
  8398. lt_prog_compiler_wl='-Wl,'
  8399. lt_prog_compiler_pic='--shared'
  8400. lt_prog_compiler_static='--static'
  8401. ;;
  8402. nagfor*)
  8403. # NAG Fortran compiler
  8404. lt_prog_compiler_wl='-Wl,-Wl,,'
  8405. lt_prog_compiler_pic='-PIC'
  8406. lt_prog_compiler_static='-Bstatic'
  8407. ;;
  8408. tcc*)
  8409. # Fabrice Bellard et al's Tiny C Compiler
  8410. lt_prog_compiler_wl='-Wl,'
  8411. lt_prog_compiler_pic='-fPIC'
  8412. lt_prog_compiler_static='-static'
  8413. ;;
  8414. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8415. # Portland Group compilers (*not* the Pentium gcc compiler,
  8416. # which looks to be a dead project)
  8417. lt_prog_compiler_wl='-Wl,'
  8418. lt_prog_compiler_pic='-fpic'
  8419. lt_prog_compiler_static='-Bstatic'
  8420. ;;
  8421. ccc*)
  8422. lt_prog_compiler_wl='-Wl,'
  8423. # All Alpha code is PIC.
  8424. lt_prog_compiler_static='-non_shared'
  8425. ;;
  8426. xl* | bgxl* | bgf* | mpixl*)
  8427. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8428. lt_prog_compiler_wl='-Wl,'
  8429. lt_prog_compiler_pic='-qpic'
  8430. lt_prog_compiler_static='-qstaticlink'
  8431. ;;
  8432. *)
  8433. case `$CC -V 2>&1 | sed 5q` in
  8434. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8435. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8436. lt_prog_compiler_pic='-KPIC'
  8437. lt_prog_compiler_static='-Bstatic'
  8438. lt_prog_compiler_wl=''
  8439. ;;
  8440. *Sun\ F* | *Sun*Fortran*)
  8441. lt_prog_compiler_pic='-KPIC'
  8442. lt_prog_compiler_static='-Bstatic'
  8443. lt_prog_compiler_wl='-Qoption ld '
  8444. ;;
  8445. *Sun\ C*)
  8446. # Sun C 5.9
  8447. lt_prog_compiler_pic='-KPIC'
  8448. lt_prog_compiler_static='-Bstatic'
  8449. lt_prog_compiler_wl='-Wl,'
  8450. ;;
  8451. *Intel*\ [CF]*Compiler*)
  8452. lt_prog_compiler_wl='-Wl,'
  8453. lt_prog_compiler_pic='-fPIC'
  8454. lt_prog_compiler_static='-static'
  8455. ;;
  8456. *Portland\ Group*)
  8457. lt_prog_compiler_wl='-Wl,'
  8458. lt_prog_compiler_pic='-fpic'
  8459. lt_prog_compiler_static='-Bstatic'
  8460. ;;
  8461. esac
  8462. ;;
  8463. esac
  8464. ;;
  8465. newsos6)
  8466. lt_prog_compiler_pic='-KPIC'
  8467. lt_prog_compiler_static='-Bstatic'
  8468. ;;
  8469. *nto* | *qnx*)
  8470. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8471. # it will coredump.
  8472. lt_prog_compiler_pic='-fPIC -shared'
  8473. ;;
  8474. osf3* | osf4* | osf5*)
  8475. lt_prog_compiler_wl='-Wl,'
  8476. # All OSF/1 code is PIC.
  8477. lt_prog_compiler_static='-non_shared'
  8478. ;;
  8479. rdos*)
  8480. lt_prog_compiler_static='-non_shared'
  8481. ;;
  8482. solaris*)
  8483. lt_prog_compiler_pic='-KPIC'
  8484. lt_prog_compiler_static='-Bstatic'
  8485. case $cc_basename in
  8486. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8487. lt_prog_compiler_wl='-Qoption ld ';;
  8488. *)
  8489. lt_prog_compiler_wl='-Wl,';;
  8490. esac
  8491. ;;
  8492. sunos4*)
  8493. lt_prog_compiler_wl='-Qoption ld '
  8494. lt_prog_compiler_pic='-PIC'
  8495. lt_prog_compiler_static='-Bstatic'
  8496. ;;
  8497. sysv4 | sysv4.2uw2* | sysv4.3*)
  8498. lt_prog_compiler_wl='-Wl,'
  8499. lt_prog_compiler_pic='-KPIC'
  8500. lt_prog_compiler_static='-Bstatic'
  8501. ;;
  8502. sysv4*MP*)
  8503. if test -d /usr/nec; then
  8504. lt_prog_compiler_pic='-Kconform_pic'
  8505. lt_prog_compiler_static='-Bstatic'
  8506. fi
  8507. ;;
  8508. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8509. lt_prog_compiler_wl='-Wl,'
  8510. lt_prog_compiler_pic='-KPIC'
  8511. lt_prog_compiler_static='-Bstatic'
  8512. ;;
  8513. unicos*)
  8514. lt_prog_compiler_wl='-Wl,'
  8515. lt_prog_compiler_can_build_shared=no
  8516. ;;
  8517. uts4*)
  8518. lt_prog_compiler_pic='-pic'
  8519. lt_prog_compiler_static='-Bstatic'
  8520. ;;
  8521. *)
  8522. lt_prog_compiler_can_build_shared=no
  8523. ;;
  8524. esac
  8525. fi
  8526. case $host_os in
  8527. # For platforms that do not support PIC, -DPIC is meaningless:
  8528. *djgpp*)
  8529. lt_prog_compiler_pic=
  8530. ;;
  8531. *)
  8532. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8533. ;;
  8534. esac
  8535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8536. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8537. if ${lt_cv_prog_compiler_pic+:} false; then :
  8538. $as_echo_n "(cached) " >&6
  8539. else
  8540. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8541. fi
  8542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8543. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8544. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8545. #
  8546. # Check to make sure the PIC flag actually works.
  8547. #
  8548. if test -n "$lt_prog_compiler_pic"; then
  8549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8550. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8551. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8552. $as_echo_n "(cached) " >&6
  8553. else
  8554. lt_cv_prog_compiler_pic_works=no
  8555. ac_outfile=conftest.$ac_objext
  8556. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8557. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8558. # Insert the option either (1) after the last *FLAGS variable, or
  8559. # (2) before a word containing "conftest.", or (3) at the end.
  8560. # Note that $ac_compile itself does not contain backslashes and begins
  8561. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8562. # The option is referenced via a variable to avoid confusing sed.
  8563. lt_compile=`echo "$ac_compile" | $SED \
  8564. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8565. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8566. -e 's:$: $lt_compiler_flag:'`
  8567. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8568. (eval "$lt_compile" 2>conftest.err)
  8569. ac_status=$?
  8570. cat conftest.err >&5
  8571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8572. if (exit $ac_status) && test -s "$ac_outfile"; then
  8573. # The compiler can only warn and ignore the option if not recognized
  8574. # So say no if there are warnings other than the usual output.
  8575. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8576. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8577. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8578. lt_cv_prog_compiler_pic_works=yes
  8579. fi
  8580. fi
  8581. $RM conftest*
  8582. fi
  8583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8584. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8585. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8586. case $lt_prog_compiler_pic in
  8587. "" | " "*) ;;
  8588. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8589. esac
  8590. else
  8591. lt_prog_compiler_pic=
  8592. lt_prog_compiler_can_build_shared=no
  8593. fi
  8594. fi
  8595. #
  8596. # Check to make sure the static flag actually works.
  8597. #
  8598. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8600. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8601. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8602. $as_echo_n "(cached) " >&6
  8603. else
  8604. lt_cv_prog_compiler_static_works=no
  8605. save_LDFLAGS=$LDFLAGS
  8606. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8607. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8608. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8609. # The linker can only warn and ignore the option if not recognized
  8610. # So say no if there are warnings
  8611. if test -s conftest.err; then
  8612. # Append any errors to the config.log.
  8613. cat conftest.err 1>&5
  8614. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8615. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8616. if diff conftest.exp conftest.er2 >/dev/null; then
  8617. lt_cv_prog_compiler_static_works=yes
  8618. fi
  8619. else
  8620. lt_cv_prog_compiler_static_works=yes
  8621. fi
  8622. fi
  8623. $RM -r conftest*
  8624. LDFLAGS=$save_LDFLAGS
  8625. fi
  8626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8627. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8628. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8629. :
  8630. else
  8631. lt_prog_compiler_static=
  8632. fi
  8633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8634. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8635. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8636. $as_echo_n "(cached) " >&6
  8637. else
  8638. lt_cv_prog_compiler_c_o=no
  8639. $RM -r conftest 2>/dev/null
  8640. mkdir conftest
  8641. cd conftest
  8642. mkdir out
  8643. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8644. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8645. # Insert the option either (1) after the last *FLAGS variable, or
  8646. # (2) before a word containing "conftest.", or (3) at the end.
  8647. # Note that $ac_compile itself does not contain backslashes and begins
  8648. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8649. lt_compile=`echo "$ac_compile" | $SED \
  8650. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8651. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8652. -e 's:$: $lt_compiler_flag:'`
  8653. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8654. (eval "$lt_compile" 2>out/conftest.err)
  8655. ac_status=$?
  8656. cat out/conftest.err >&5
  8657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8658. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8659. then
  8660. # The compiler can only warn and ignore the option if not recognized
  8661. # So say no if there are warnings
  8662. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8663. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8664. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8665. lt_cv_prog_compiler_c_o=yes
  8666. fi
  8667. fi
  8668. chmod u+w . 2>&5
  8669. $RM conftest*
  8670. # SGI C++ compiler will create directory out/ii_files/ for
  8671. # template instantiation
  8672. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8673. $RM out/* && rmdir out
  8674. cd ..
  8675. $RM -r conftest
  8676. $RM conftest*
  8677. fi
  8678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8679. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8681. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8682. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8683. $as_echo_n "(cached) " >&6
  8684. else
  8685. lt_cv_prog_compiler_c_o=no
  8686. $RM -r conftest 2>/dev/null
  8687. mkdir conftest
  8688. cd conftest
  8689. mkdir out
  8690. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8691. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8692. # Insert the option either (1) after the last *FLAGS variable, or
  8693. # (2) before a word containing "conftest.", or (3) at the end.
  8694. # Note that $ac_compile itself does not contain backslashes and begins
  8695. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8696. lt_compile=`echo "$ac_compile" | $SED \
  8697. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8698. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8699. -e 's:$: $lt_compiler_flag:'`
  8700. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8701. (eval "$lt_compile" 2>out/conftest.err)
  8702. ac_status=$?
  8703. cat out/conftest.err >&5
  8704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8705. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8706. then
  8707. # The compiler can only warn and ignore the option if not recognized
  8708. # So say no if there are warnings
  8709. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8710. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8711. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8712. lt_cv_prog_compiler_c_o=yes
  8713. fi
  8714. fi
  8715. chmod u+w . 2>&5
  8716. $RM conftest*
  8717. # SGI C++ compiler will create directory out/ii_files/ for
  8718. # template instantiation
  8719. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8720. $RM out/* && rmdir out
  8721. cd ..
  8722. $RM -r conftest
  8723. $RM conftest*
  8724. fi
  8725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8726. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8727. hard_links=nottested
  8728. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8729. # do not overwrite the value of need_locks provided by the user
  8730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8731. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8732. hard_links=yes
  8733. $RM conftest*
  8734. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8735. touch conftest.a
  8736. ln conftest.a conftest.b 2>&5 || hard_links=no
  8737. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8739. $as_echo "$hard_links" >&6; }
  8740. if test no = "$hard_links"; then
  8741. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8742. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8743. need_locks=warn
  8744. fi
  8745. else
  8746. need_locks=no
  8747. fi
  8748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8749. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8750. runpath_var=
  8751. allow_undefined_flag=
  8752. always_export_symbols=no
  8753. archive_cmds=
  8754. archive_expsym_cmds=
  8755. compiler_needs_object=no
  8756. enable_shared_with_static_runtimes=no
  8757. export_dynamic_flag_spec=
  8758. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8759. hardcode_automatic=no
  8760. hardcode_direct=no
  8761. hardcode_direct_absolute=no
  8762. hardcode_libdir_flag_spec=
  8763. hardcode_libdir_separator=
  8764. hardcode_minus_L=no
  8765. hardcode_shlibpath_var=unsupported
  8766. inherit_rpath=no
  8767. link_all_deplibs=unknown
  8768. module_cmds=
  8769. module_expsym_cmds=
  8770. old_archive_from_new_cmds=
  8771. old_archive_from_expsyms_cmds=
  8772. thread_safe_flag_spec=
  8773. whole_archive_flag_spec=
  8774. # include_expsyms should be a list of space-separated symbols to be *always*
  8775. # included in the symbol list
  8776. include_expsyms=
  8777. # exclude_expsyms can be an extended regexp of symbols to exclude
  8778. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8779. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8780. # as well as any symbol that contains 'd'.
  8781. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8782. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8783. # platforms (ab)use it in PIC code, but their linkers get confused if
  8784. # the symbol is explicitly referenced. Since portable code cannot
  8785. # rely on this symbol name, it's probably fine to never include it in
  8786. # preloaded symbol tables.
  8787. # Exclude shared library initialization/finalization symbols.
  8788. extract_expsyms_cmds=
  8789. case $host_os in
  8790. cygwin* | mingw* | pw32* | cegcc*)
  8791. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8792. # When not using gcc, we currently assume that we are using
  8793. # Microsoft Visual C++.
  8794. if test yes != "$GCC"; then
  8795. with_gnu_ld=no
  8796. fi
  8797. ;;
  8798. interix*)
  8799. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8800. with_gnu_ld=yes
  8801. ;;
  8802. openbsd* | bitrig*)
  8803. with_gnu_ld=no
  8804. ;;
  8805. linux* | k*bsd*-gnu | gnu*)
  8806. link_all_deplibs=no
  8807. ;;
  8808. esac
  8809. ld_shlibs=yes
  8810. # On some targets, GNU ld is compatible enough with the native linker
  8811. # that we're better off using the native interface for both.
  8812. lt_use_gnu_ld_interface=no
  8813. if test yes = "$with_gnu_ld"; then
  8814. case $host_os in
  8815. aix*)
  8816. # The AIX port of GNU ld has always aspired to compatibility
  8817. # with the native linker. However, as the warning in the GNU ld
  8818. # block says, versions before 2.19.5* couldn't really create working
  8819. # shared libraries, regardless of the interface used.
  8820. case `$LD -v 2>&1` in
  8821. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8822. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8823. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8824. *)
  8825. lt_use_gnu_ld_interface=yes
  8826. ;;
  8827. esac
  8828. ;;
  8829. *)
  8830. lt_use_gnu_ld_interface=yes
  8831. ;;
  8832. esac
  8833. fi
  8834. if test yes = "$lt_use_gnu_ld_interface"; then
  8835. # If archive_cmds runs LD, not CC, wlarc should be empty
  8836. wlarc='$wl'
  8837. # Set some defaults for GNU ld with shared library support. These
  8838. # are reset later if shared libraries are not supported. Putting them
  8839. # here allows them to be overridden if necessary.
  8840. runpath_var=LD_RUN_PATH
  8841. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8842. export_dynamic_flag_spec='$wl--export-dynamic'
  8843. # ancient GNU ld didn't support --whole-archive et. al.
  8844. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8845. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8846. else
  8847. whole_archive_flag_spec=
  8848. fi
  8849. supports_anon_versioning=no
  8850. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  8851. *GNU\ gold*) supports_anon_versioning=yes ;;
  8852. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8853. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8854. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8855. *\ 2.11.*) ;; # other 2.11 versions
  8856. *) supports_anon_versioning=yes ;;
  8857. esac
  8858. # See if GNU ld supports shared libraries.
  8859. case $host_os in
  8860. aix[3-9]*)
  8861. # On AIX/PPC, the GNU linker is very broken
  8862. if test ia64 != "$host_cpu"; then
  8863. ld_shlibs=no
  8864. cat <<_LT_EOF 1>&2
  8865. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8866. *** to be unable to reliably create shared libraries on AIX.
  8867. *** Therefore, libtool is disabling shared libraries support. If you
  8868. *** really care for shared libraries, you may want to install binutils
  8869. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8870. *** You will then need to restart the configuration process.
  8871. _LT_EOF
  8872. fi
  8873. ;;
  8874. amigaos*)
  8875. case $host_cpu in
  8876. powerpc)
  8877. # see comment about AmigaOS4 .so support
  8878. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8879. archive_expsym_cmds=''
  8880. ;;
  8881. m68k)
  8882. 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)'
  8883. hardcode_libdir_flag_spec='-L$libdir'
  8884. hardcode_minus_L=yes
  8885. ;;
  8886. esac
  8887. ;;
  8888. beos*)
  8889. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8890. allow_undefined_flag=unsupported
  8891. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8892. # support --undefined. This deserves some investigation. FIXME
  8893. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8894. else
  8895. ld_shlibs=no
  8896. fi
  8897. ;;
  8898. cygwin* | mingw* | pw32* | cegcc*)
  8899. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8900. # as there is no search path for DLLs.
  8901. hardcode_libdir_flag_spec='-L$libdir'
  8902. export_dynamic_flag_spec='$wl--export-all-symbols'
  8903. allow_undefined_flag=unsupported
  8904. always_export_symbols=no
  8905. enable_shared_with_static_runtimes=yes
  8906. 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'
  8907. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8908. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8909. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8910. # If the export-symbols file already is a .def file, use it as
  8911. # is; otherwise, prepend EXPORTS...
  8912. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8913. cp $export_symbols $output_objdir/$soname.def;
  8914. else
  8915. echo EXPORTS > $output_objdir/$soname.def;
  8916. cat $export_symbols >> $output_objdir/$soname.def;
  8917. fi~
  8918. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8919. else
  8920. ld_shlibs=no
  8921. fi
  8922. ;;
  8923. haiku*)
  8924. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8925. link_all_deplibs=yes
  8926. ;;
  8927. os2*)
  8928. hardcode_libdir_flag_spec='-L$libdir'
  8929. hardcode_minus_L=yes
  8930. allow_undefined_flag=unsupported
  8931. shrext_cmds=.dll
  8932. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8933. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8934. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8935. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8936. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8937. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8938. emximp -o $lib $output_objdir/$libname.def'
  8939. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8940. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8941. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8942. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8943. prefix_cmds="$SED"~
  8944. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8945. prefix_cmds="$prefix_cmds -e 1d";
  8946. fi~
  8947. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8948. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8949. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8950. emximp -o $lib $output_objdir/$libname.def'
  8951. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8952. enable_shared_with_static_runtimes=yes
  8953. ;;
  8954. interix[3-9]*)
  8955. hardcode_direct=no
  8956. hardcode_shlibpath_var=no
  8957. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8958. export_dynamic_flag_spec='$wl-E'
  8959. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8960. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8961. # default) and relocated if they conflict, which is a slow very memory
  8962. # consuming and fragmenting process. To avoid this, we pick a random,
  8963. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8964. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8965. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8966. 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'
  8967. ;;
  8968. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8969. tmp_diet=no
  8970. if test linux-dietlibc = "$host_os"; then
  8971. case $cc_basename in
  8972. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8973. esac
  8974. fi
  8975. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8976. && test no = "$tmp_diet"
  8977. then
  8978. tmp_addflag=' $pic_flag'
  8979. tmp_sharedflag='-shared'
  8980. case $cc_basename,$host_cpu in
  8981. pgcc*) # Portland Group C compiler
  8982. 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'
  8983. tmp_addflag=' $pic_flag'
  8984. ;;
  8985. pgf77* | pgf90* | pgf95* | pgfortran*)
  8986. # Portland Group f77 and f90 compilers
  8987. 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'
  8988. tmp_addflag=' $pic_flag -Mnomain' ;;
  8989. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8990. tmp_addflag=' -i_dynamic' ;;
  8991. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8992. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8993. ifc* | ifort*) # Intel Fortran compiler
  8994. tmp_addflag=' -nofor_main' ;;
  8995. lf95*) # Lahey Fortran 8.1
  8996. whole_archive_flag_spec=
  8997. tmp_sharedflag='--shared' ;;
  8998. nagfor*) # NAGFOR 5.3
  8999. tmp_sharedflag='-Wl,-shared' ;;
  9000. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9001. tmp_sharedflag='-qmkshrobj'
  9002. tmp_addflag= ;;
  9003. nvcc*) # Cuda Compiler Driver 2.2
  9004. 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'
  9005. compiler_needs_object=yes
  9006. ;;
  9007. esac
  9008. case `$CC -V 2>&1 | sed 5q` in
  9009. *Sun\ C*) # Sun C 5.9
  9010. 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'
  9011. compiler_needs_object=yes
  9012. tmp_sharedflag='-G' ;;
  9013. *Sun\ F*) # Sun Fortran 8.3
  9014. tmp_sharedflag='-G' ;;
  9015. esac
  9016. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9017. if test yes = "$supports_anon_versioning"; then
  9018. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9019. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9020. echo "local: *; };" >> $output_objdir/$libname.ver~
  9021. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  9022. fi
  9023. case $cc_basename in
  9024. tcc*)
  9025. export_dynamic_flag_spec='-rdynamic'
  9026. ;;
  9027. xlf* | bgf* | bgxlf* | mpixlf*)
  9028. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9029. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9030. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9031. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9032. if test yes = "$supports_anon_versioning"; then
  9033. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9034. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9035. echo "local: *; };" >> $output_objdir/$libname.ver~
  9036. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9037. fi
  9038. ;;
  9039. esac
  9040. else
  9041. ld_shlibs=no
  9042. fi
  9043. ;;
  9044. netbsd* | netbsdelf*-gnu)
  9045. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9046. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9047. wlarc=
  9048. else
  9049. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9050. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9051. fi
  9052. ;;
  9053. solaris*)
  9054. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9055. ld_shlibs=no
  9056. cat <<_LT_EOF 1>&2
  9057. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9058. *** create shared libraries on Solaris systems. Therefore, libtool
  9059. *** is disabling shared libraries support. We urge you to upgrade GNU
  9060. *** binutils to release 2.9.1 or newer. Another option is to modify
  9061. *** your PATH or compiler configuration so that the native linker is
  9062. *** used, and then restart.
  9063. _LT_EOF
  9064. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9065. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9066. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9067. else
  9068. ld_shlibs=no
  9069. fi
  9070. ;;
  9071. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9072. case `$LD -v 2>&1` in
  9073. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9074. ld_shlibs=no
  9075. cat <<_LT_EOF 1>&2
  9076. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  9077. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9078. *** is disabling shared libraries support. We urge you to upgrade GNU
  9079. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9080. *** your PATH or compiler configuration so that the native linker is
  9081. *** used, and then restart.
  9082. _LT_EOF
  9083. ;;
  9084. *)
  9085. # For security reasons, it is highly recommended that you always
  9086. # use absolute paths for naming shared libraries, and exclude the
  9087. # DT_RUNPATH tag from executables and libraries. But doing so
  9088. # requires that you compile everything twice, which is a pain.
  9089. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9090. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9091. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9092. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9093. else
  9094. ld_shlibs=no
  9095. fi
  9096. ;;
  9097. esac
  9098. ;;
  9099. sunos4*)
  9100. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9101. wlarc=
  9102. hardcode_direct=yes
  9103. hardcode_shlibpath_var=no
  9104. ;;
  9105. *)
  9106. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9107. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9108. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9109. else
  9110. ld_shlibs=no
  9111. fi
  9112. ;;
  9113. esac
  9114. if test no = "$ld_shlibs"; then
  9115. runpath_var=
  9116. hardcode_libdir_flag_spec=
  9117. export_dynamic_flag_spec=
  9118. whole_archive_flag_spec=
  9119. fi
  9120. else
  9121. # PORTME fill in a description of your system's linker (not GNU ld)
  9122. case $host_os in
  9123. aix3*)
  9124. allow_undefined_flag=unsupported
  9125. always_export_symbols=yes
  9126. 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'
  9127. # Note: this linker hardcodes the directories in LIBPATH if there
  9128. # are no directories specified by -L.
  9129. hardcode_minus_L=yes
  9130. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  9131. # Neither direct hardcoding nor static linking is supported with a
  9132. # broken collect2.
  9133. hardcode_direct=unsupported
  9134. fi
  9135. ;;
  9136. aix[4-9]*)
  9137. if test ia64 = "$host_cpu"; then
  9138. # On IA64, the linker does run time linking by default, so we don't
  9139. # have to do anything special.
  9140. aix_use_runtimelinking=no
  9141. exp_sym_flag='-Bexport'
  9142. no_entry_flag=
  9143. else
  9144. # If we're using GNU nm, then we don't want the "-C" option.
  9145. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  9146. # Without the "-l" option, or with the "-B" option, AIX nm treats
  9147. # weak defined symbols like other global defined symbols, whereas
  9148. # GNU nm marks them as "W".
  9149. # While the 'weak' keyword is ignored in the Export File, we need
  9150. # it in the Import File for the 'aix-soname' feature, so we have
  9151. # to replace the "-B" option with "-P" for AIX nm.
  9152. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9153. 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'
  9154. else
  9155. 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'
  9156. fi
  9157. aix_use_runtimelinking=no
  9158. # Test if we are trying to use run time linking or normal
  9159. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9160. # have runtime linking enabled, and use it for executables.
  9161. # For shared libraries, we enable/disable runtime linking
  9162. # depending on the kind of the shared library created -
  9163. # when "with_aix_soname,aix_use_runtimelinking" is:
  9164. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  9165. # "aix,yes" lib.so shared, rtl:yes, for executables
  9166. # lib.a static archive
  9167. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  9168. # lib.a(lib.so.V) shared, rtl:no, for executables
  9169. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  9170. # lib.a(lib.so.V) shared, rtl:no
  9171. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  9172. # lib.a static archive
  9173. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9174. for ld_flag in $LDFLAGS; do
  9175. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  9176. aix_use_runtimelinking=yes
  9177. break
  9178. fi
  9179. done
  9180. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9181. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9182. # so we don't have lib.a shared libs to link our executables.
  9183. # We have to force runtime linking in this case.
  9184. aix_use_runtimelinking=yes
  9185. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9186. fi
  9187. ;;
  9188. esac
  9189. exp_sym_flag='-bexport'
  9190. no_entry_flag='-bnoentry'
  9191. fi
  9192. # When large executables or shared objects are built, AIX ld can
  9193. # have problems creating the table of contents. If linking a library
  9194. # or program results in "error TOC overflow" add -mminimal-toc to
  9195. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9196. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9197. archive_cmds=''
  9198. hardcode_direct=yes
  9199. hardcode_direct_absolute=yes
  9200. hardcode_libdir_separator=':'
  9201. link_all_deplibs=yes
  9202. file_list_spec='$wl-f,'
  9203. case $with_aix_soname,$aix_use_runtimelinking in
  9204. aix,*) ;; # traditional, no import file
  9205. svr4,* | *,yes) # use import file
  9206. # The Import File defines what to hardcode.
  9207. hardcode_direct=no
  9208. hardcode_direct_absolute=no
  9209. ;;
  9210. esac
  9211. if test yes = "$GCC"; then
  9212. case $host_os in aix4.[012]|aix4.[012].*)
  9213. # We only want to do this on AIX 4.2 and lower, the check
  9214. # below for broken collect2 doesn't work under 4.3+
  9215. collect2name=`$CC -print-prog-name=collect2`
  9216. if test -f "$collect2name" &&
  9217. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9218. then
  9219. # We have reworked collect2
  9220. :
  9221. else
  9222. # We have old collect2
  9223. hardcode_direct=unsupported
  9224. # It fails to find uninstalled libraries when the uninstalled
  9225. # path is not listed in the libpath. Setting hardcode_minus_L
  9226. # to unsupported forces relinking
  9227. hardcode_minus_L=yes
  9228. hardcode_libdir_flag_spec='-L$libdir'
  9229. hardcode_libdir_separator=
  9230. fi
  9231. ;;
  9232. esac
  9233. shared_flag='-shared'
  9234. if test yes = "$aix_use_runtimelinking"; then
  9235. shared_flag="$shared_flag "'$wl-G'
  9236. fi
  9237. # Need to ensure runtime linking is disabled for the traditional
  9238. # shared library, or the linker may eventually find shared libraries
  9239. # /with/ Import File - we do not want to mix them.
  9240. shared_flag_aix='-shared'
  9241. shared_flag_svr4='-shared $wl-G'
  9242. else
  9243. # not using gcc
  9244. if test ia64 = "$host_cpu"; then
  9245. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9246. # chokes on -Wl,-G. The following line is correct:
  9247. shared_flag='-G'
  9248. else
  9249. if test yes = "$aix_use_runtimelinking"; then
  9250. shared_flag='$wl-G'
  9251. else
  9252. shared_flag='$wl-bM:SRE'
  9253. fi
  9254. shared_flag_aix='$wl-bM:SRE'
  9255. shared_flag_svr4='$wl-G'
  9256. fi
  9257. fi
  9258. export_dynamic_flag_spec='$wl-bexpall'
  9259. # It seems that -bexpall does not export symbols beginning with
  9260. # underscore (_), so it is better to generate a list of symbols to export.
  9261. always_export_symbols=yes
  9262. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9263. # Warning - without using the other runtime loading flags (-brtl),
  9264. # -berok will link without error, but may produce a broken library.
  9265. allow_undefined_flag='-berok'
  9266. # Determine the default libpath from the value encoded in an
  9267. # empty executable.
  9268. if test set = "${lt_cv_aix_libpath+set}"; then
  9269. aix_libpath=$lt_cv_aix_libpath
  9270. else
  9271. if ${lt_cv_aix_libpath_+:} false; then :
  9272. $as_echo_n "(cached) " >&6
  9273. else
  9274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9275. /* end confdefs.h. */
  9276. int
  9277. main ()
  9278. {
  9279. ;
  9280. return 0;
  9281. }
  9282. _ACEOF
  9283. if ac_fn_c_try_link "$LINENO"; then :
  9284. lt_aix_libpath_sed='
  9285. /Import File Strings/,/^$/ {
  9286. /^0/ {
  9287. s/^0 *\([^ ]*\) *$/\1/
  9288. p
  9289. }
  9290. }'
  9291. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9292. # Check for a 64-bit object if we didn't find anything.
  9293. if test -z "$lt_cv_aix_libpath_"; then
  9294. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9295. fi
  9296. fi
  9297. rm -f core conftest.err conftest.$ac_objext \
  9298. conftest$ac_exeext conftest.$ac_ext
  9299. if test -z "$lt_cv_aix_libpath_"; then
  9300. lt_cv_aix_libpath_=/usr/lib:/lib
  9301. fi
  9302. fi
  9303. aix_libpath=$lt_cv_aix_libpath_
  9304. fi
  9305. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9306. 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
  9307. else
  9308. if test ia64 = "$host_cpu"; then
  9309. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9310. allow_undefined_flag="-z nodefs"
  9311. 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"
  9312. else
  9313. # Determine the default libpath from the value encoded in an
  9314. # empty executable.
  9315. if test set = "${lt_cv_aix_libpath+set}"; then
  9316. aix_libpath=$lt_cv_aix_libpath
  9317. else
  9318. if ${lt_cv_aix_libpath_+:} false; then :
  9319. $as_echo_n "(cached) " >&6
  9320. else
  9321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9322. /* end confdefs.h. */
  9323. int
  9324. main ()
  9325. {
  9326. ;
  9327. return 0;
  9328. }
  9329. _ACEOF
  9330. if ac_fn_c_try_link "$LINENO"; then :
  9331. lt_aix_libpath_sed='
  9332. /Import File Strings/,/^$/ {
  9333. /^0/ {
  9334. s/^0 *\([^ ]*\) *$/\1/
  9335. p
  9336. }
  9337. }'
  9338. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9339. # Check for a 64-bit object if we didn't find anything.
  9340. if test -z "$lt_cv_aix_libpath_"; then
  9341. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9342. fi
  9343. fi
  9344. rm -f core conftest.err conftest.$ac_objext \
  9345. conftest$ac_exeext conftest.$ac_ext
  9346. if test -z "$lt_cv_aix_libpath_"; then
  9347. lt_cv_aix_libpath_=/usr/lib:/lib
  9348. fi
  9349. fi
  9350. aix_libpath=$lt_cv_aix_libpath_
  9351. fi
  9352. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9353. # Warning - without using the other run time loading flags,
  9354. # -berok will link without error, but may produce a broken library.
  9355. no_undefined_flag=' $wl-bernotok'
  9356. allow_undefined_flag=' $wl-berok'
  9357. if test yes = "$with_gnu_ld"; then
  9358. # We only use this code for GNU lds that support --whole-archive.
  9359. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9360. else
  9361. # Exported symbols can be pulled into shared objects from archives
  9362. whole_archive_flag_spec='$convenience'
  9363. fi
  9364. archive_cmds_need_lc=yes
  9365. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9366. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9367. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9368. if test svr4 != "$with_aix_soname"; then
  9369. # This is similar to how AIX traditionally builds its shared libraries.
  9370. 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'
  9371. fi
  9372. if test aix != "$with_aix_soname"; then
  9373. 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'
  9374. else
  9375. # used by -dlpreopen to get the symbols
  9376. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9377. fi
  9378. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9379. fi
  9380. fi
  9381. ;;
  9382. amigaos*)
  9383. case $host_cpu in
  9384. powerpc)
  9385. # see comment about AmigaOS4 .so support
  9386. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9387. archive_expsym_cmds=''
  9388. ;;
  9389. m68k)
  9390. 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)'
  9391. hardcode_libdir_flag_spec='-L$libdir'
  9392. hardcode_minus_L=yes
  9393. ;;
  9394. esac
  9395. ;;
  9396. bsdi[45]*)
  9397. export_dynamic_flag_spec=-rdynamic
  9398. ;;
  9399. cygwin* | mingw* | pw32* | cegcc*)
  9400. # When not using gcc, we currently assume that we are using
  9401. # Microsoft Visual C++.
  9402. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9403. # no search path for DLLs.
  9404. case $cc_basename in
  9405. cl*)
  9406. # Native MSVC
  9407. hardcode_libdir_flag_spec=' '
  9408. allow_undefined_flag=unsupported
  9409. always_export_symbols=yes
  9410. file_list_spec='@'
  9411. # Tell ltmain to make .lib files, not .a files.
  9412. libext=lib
  9413. # Tell ltmain to make .dll files, not .so files.
  9414. shrext_cmds=.dll
  9415. # FIXME: Setting linknames here is a bad hack.
  9416. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9417. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9418. cp "$export_symbols" "$output_objdir/$soname.def";
  9419. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9420. else
  9421. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9422. fi~
  9423. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9424. linknames='
  9425. # The linker will not automatically build a static lib if we build a DLL.
  9426. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9427. enable_shared_with_static_runtimes=yes
  9428. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9429. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9430. # Don't use ranlib
  9431. old_postinstall_cmds='chmod 644 $oldlib'
  9432. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9433. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9434. case $lt_outputfile in
  9435. *.exe|*.EXE) ;;
  9436. *)
  9437. lt_outputfile=$lt_outputfile.exe
  9438. lt_tool_outputfile=$lt_tool_outputfile.exe
  9439. ;;
  9440. esac~
  9441. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9442. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9443. $RM "$lt_outputfile.manifest";
  9444. fi'
  9445. ;;
  9446. *)
  9447. # Assume MSVC wrapper
  9448. hardcode_libdir_flag_spec=' '
  9449. allow_undefined_flag=unsupported
  9450. # Tell ltmain to make .lib files, not .a files.
  9451. libext=lib
  9452. # Tell ltmain to make .dll files, not .so files.
  9453. shrext_cmds=.dll
  9454. # FIXME: Setting linknames here is a bad hack.
  9455. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9456. # The linker will automatically build a .lib file if we build a DLL.
  9457. old_archive_from_new_cmds='true'
  9458. # FIXME: Should let the user specify the lib program.
  9459. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9460. enable_shared_with_static_runtimes=yes
  9461. ;;
  9462. esac
  9463. ;;
  9464. darwin* | rhapsody*)
  9465. archive_cmds_need_lc=no
  9466. hardcode_direct=no
  9467. hardcode_automatic=yes
  9468. hardcode_shlibpath_var=unsupported
  9469. if test yes = "$lt_cv_ld_force_load"; then
  9470. 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\"`'
  9471. else
  9472. whole_archive_flag_spec=''
  9473. fi
  9474. link_all_deplibs=yes
  9475. allow_undefined_flag=$_lt_dar_allow_undefined
  9476. case $cc_basename in
  9477. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9478. *) _lt_dar_can_shared=$GCC ;;
  9479. esac
  9480. if test yes = "$_lt_dar_can_shared"; then
  9481. output_verbose_link_cmd=func_echo_all
  9482. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9483. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9484. 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"
  9485. 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"
  9486. else
  9487. ld_shlibs=no
  9488. fi
  9489. ;;
  9490. dgux*)
  9491. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9492. hardcode_libdir_flag_spec='-L$libdir'
  9493. hardcode_shlibpath_var=no
  9494. ;;
  9495. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9496. # support. Future versions do this automatically, but an explicit c++rt0.o
  9497. # does not break anything, and helps significantly (at the cost of a little
  9498. # extra space).
  9499. freebsd2.2*)
  9500. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9501. hardcode_libdir_flag_spec='-R$libdir'
  9502. hardcode_direct=yes
  9503. hardcode_shlibpath_var=no
  9504. ;;
  9505. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9506. freebsd2.*)
  9507. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9508. hardcode_direct=yes
  9509. hardcode_minus_L=yes
  9510. hardcode_shlibpath_var=no
  9511. ;;
  9512. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9513. freebsd* | dragonfly*)
  9514. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9515. hardcode_libdir_flag_spec='-R$libdir'
  9516. hardcode_direct=yes
  9517. hardcode_shlibpath_var=no
  9518. ;;
  9519. hpux9*)
  9520. if test yes = "$GCC"; then
  9521. 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'
  9522. else
  9523. 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'
  9524. fi
  9525. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9526. hardcode_libdir_separator=:
  9527. hardcode_direct=yes
  9528. # hardcode_minus_L: Not really in the search PATH,
  9529. # but as the default location of the library.
  9530. hardcode_minus_L=yes
  9531. export_dynamic_flag_spec='$wl-E'
  9532. ;;
  9533. hpux10*)
  9534. if test yes,no = "$GCC,$with_gnu_ld"; then
  9535. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9536. else
  9537. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9538. fi
  9539. if test no = "$with_gnu_ld"; then
  9540. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9541. hardcode_libdir_separator=:
  9542. hardcode_direct=yes
  9543. hardcode_direct_absolute=yes
  9544. export_dynamic_flag_spec='$wl-E'
  9545. # hardcode_minus_L: Not really in the search PATH,
  9546. # but as the default location of the library.
  9547. hardcode_minus_L=yes
  9548. fi
  9549. ;;
  9550. hpux11*)
  9551. if test yes,no = "$GCC,$with_gnu_ld"; then
  9552. case $host_cpu in
  9553. hppa*64*)
  9554. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9555. ;;
  9556. ia64*)
  9557. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9558. ;;
  9559. *)
  9560. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9561. ;;
  9562. esac
  9563. else
  9564. case $host_cpu in
  9565. hppa*64*)
  9566. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9567. ;;
  9568. ia64*)
  9569. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9570. ;;
  9571. *)
  9572. # Older versions of the 11.00 compiler do not understand -b yet
  9573. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9575. $as_echo_n "checking if $CC understands -b... " >&6; }
  9576. if ${lt_cv_prog_compiler__b+:} false; then :
  9577. $as_echo_n "(cached) " >&6
  9578. else
  9579. lt_cv_prog_compiler__b=no
  9580. save_LDFLAGS=$LDFLAGS
  9581. LDFLAGS="$LDFLAGS -b"
  9582. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9583. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9584. # The linker can only warn and ignore the option if not recognized
  9585. # So say no if there are warnings
  9586. if test -s conftest.err; then
  9587. # Append any errors to the config.log.
  9588. cat conftest.err 1>&5
  9589. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9590. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9591. if diff conftest.exp conftest.er2 >/dev/null; then
  9592. lt_cv_prog_compiler__b=yes
  9593. fi
  9594. else
  9595. lt_cv_prog_compiler__b=yes
  9596. fi
  9597. fi
  9598. $RM -r conftest*
  9599. LDFLAGS=$save_LDFLAGS
  9600. fi
  9601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9602. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9603. if test yes = "$lt_cv_prog_compiler__b"; then
  9604. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9605. else
  9606. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9607. fi
  9608. ;;
  9609. esac
  9610. fi
  9611. if test no = "$with_gnu_ld"; then
  9612. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9613. hardcode_libdir_separator=:
  9614. case $host_cpu in
  9615. hppa*64*|ia64*)
  9616. hardcode_direct=no
  9617. hardcode_shlibpath_var=no
  9618. ;;
  9619. *)
  9620. hardcode_direct=yes
  9621. hardcode_direct_absolute=yes
  9622. export_dynamic_flag_spec='$wl-E'
  9623. # hardcode_minus_L: Not really in the search PATH,
  9624. # but as the default location of the library.
  9625. hardcode_minus_L=yes
  9626. ;;
  9627. esac
  9628. fi
  9629. ;;
  9630. irix5* | irix6* | nonstopux*)
  9631. if test yes = "$GCC"; then
  9632. 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'
  9633. # Try to use the -exported_symbol ld option, if it does not
  9634. # work, assume that -exports_file does not work either and
  9635. # implicitly export all symbols.
  9636. # This should be the same for all languages, so no per-tag cache variable.
  9637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9638. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9639. if ${lt_cv_irix_exported_symbol+:} false; then :
  9640. $as_echo_n "(cached) " >&6
  9641. else
  9642. save_LDFLAGS=$LDFLAGS
  9643. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9645. /* end confdefs.h. */
  9646. int foo (void) { return 0; }
  9647. _ACEOF
  9648. if ac_fn_c_try_link "$LINENO"; then :
  9649. lt_cv_irix_exported_symbol=yes
  9650. else
  9651. lt_cv_irix_exported_symbol=no
  9652. fi
  9653. rm -f core conftest.err conftest.$ac_objext \
  9654. conftest$ac_exeext conftest.$ac_ext
  9655. LDFLAGS=$save_LDFLAGS
  9656. fi
  9657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9658. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9659. if test yes = "$lt_cv_irix_exported_symbol"; then
  9660. 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'
  9661. fi
  9662. link_all_deplibs=no
  9663. else
  9664. 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'
  9665. 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'
  9666. fi
  9667. archive_cmds_need_lc='no'
  9668. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9669. hardcode_libdir_separator=:
  9670. inherit_rpath=yes
  9671. link_all_deplibs=yes
  9672. ;;
  9673. linux*)
  9674. case $cc_basename in
  9675. tcc*)
  9676. # Fabrice Bellard et al's Tiny C Compiler
  9677. ld_shlibs=yes
  9678. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9679. ;;
  9680. esac
  9681. ;;
  9682. netbsd* | netbsdelf*-gnu)
  9683. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9684. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9685. else
  9686. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9687. fi
  9688. hardcode_libdir_flag_spec='-R$libdir'
  9689. hardcode_direct=yes
  9690. hardcode_shlibpath_var=no
  9691. ;;
  9692. newsos6)
  9693. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9694. hardcode_direct=yes
  9695. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9696. hardcode_libdir_separator=:
  9697. hardcode_shlibpath_var=no
  9698. ;;
  9699. *nto* | *qnx*)
  9700. ;;
  9701. openbsd* | bitrig*)
  9702. if test -f /usr/libexec/ld.so; then
  9703. hardcode_direct=yes
  9704. hardcode_shlibpath_var=no
  9705. hardcode_direct_absolute=yes
  9706. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9707. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9708. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9709. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9710. export_dynamic_flag_spec='$wl-E'
  9711. else
  9712. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9713. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9714. fi
  9715. else
  9716. ld_shlibs=no
  9717. fi
  9718. ;;
  9719. os2*)
  9720. hardcode_libdir_flag_spec='-L$libdir'
  9721. hardcode_minus_L=yes
  9722. allow_undefined_flag=unsupported
  9723. shrext_cmds=.dll
  9724. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9725. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9726. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9727. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9728. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9729. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9730. emximp -o $lib $output_objdir/$libname.def'
  9731. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9732. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9733. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9734. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9735. prefix_cmds="$SED"~
  9736. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9737. prefix_cmds="$prefix_cmds -e 1d";
  9738. fi~
  9739. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9740. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9741. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9742. emximp -o $lib $output_objdir/$libname.def'
  9743. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9744. enable_shared_with_static_runtimes=yes
  9745. ;;
  9746. osf3*)
  9747. if test yes = "$GCC"; then
  9748. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9749. 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'
  9750. else
  9751. allow_undefined_flag=' -expect_unresolved \*'
  9752. 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'
  9753. fi
  9754. archive_cmds_need_lc='no'
  9755. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9756. hardcode_libdir_separator=:
  9757. ;;
  9758. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9759. if test yes = "$GCC"; then
  9760. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9761. 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'
  9762. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9763. else
  9764. allow_undefined_flag=' -expect_unresolved \*'
  9765. 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'
  9766. 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~
  9767. $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'
  9768. # Both c and cxx compiler support -rpath directly
  9769. hardcode_libdir_flag_spec='-rpath $libdir'
  9770. fi
  9771. archive_cmds_need_lc='no'
  9772. hardcode_libdir_separator=:
  9773. ;;
  9774. solaris*)
  9775. no_undefined_flag=' -z defs'
  9776. if test yes = "$GCC"; then
  9777. wlarc='$wl'
  9778. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9779. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9780. $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'
  9781. else
  9782. case `$CC -V 2>&1` in
  9783. *"Compilers 5.0"*)
  9784. wlarc=''
  9785. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9786. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9787. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9788. ;;
  9789. *)
  9790. wlarc='$wl'
  9791. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9792. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9793. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9794. ;;
  9795. esac
  9796. fi
  9797. hardcode_libdir_flag_spec='-R$libdir'
  9798. hardcode_shlibpath_var=no
  9799. case $host_os in
  9800. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9801. *)
  9802. # The compiler driver will combine and reorder linker options,
  9803. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9804. # but is careful enough not to reorder.
  9805. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9806. if test yes = "$GCC"; then
  9807. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9808. else
  9809. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9810. fi
  9811. ;;
  9812. esac
  9813. link_all_deplibs=yes
  9814. ;;
  9815. sunos4*)
  9816. if test sequent = "$host_vendor"; then
  9817. # Use $CC to link under sequent, because it throws in some extra .o
  9818. # files that make .init and .fini sections work.
  9819. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9820. else
  9821. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9822. fi
  9823. hardcode_libdir_flag_spec='-L$libdir'
  9824. hardcode_direct=yes
  9825. hardcode_minus_L=yes
  9826. hardcode_shlibpath_var=no
  9827. ;;
  9828. sysv4)
  9829. case $host_vendor in
  9830. sni)
  9831. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9832. hardcode_direct=yes # is this really true???
  9833. ;;
  9834. siemens)
  9835. ## LD is ld it makes a PLAMLIB
  9836. ## CC just makes a GrossModule.
  9837. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9838. reload_cmds='$CC -r -o $output$reload_objs'
  9839. hardcode_direct=no
  9840. ;;
  9841. motorola)
  9842. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9843. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9844. ;;
  9845. esac
  9846. runpath_var='LD_RUN_PATH'
  9847. hardcode_shlibpath_var=no
  9848. ;;
  9849. sysv4.3*)
  9850. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9851. hardcode_shlibpath_var=no
  9852. export_dynamic_flag_spec='-Bexport'
  9853. ;;
  9854. sysv4*MP*)
  9855. if test -d /usr/nec; then
  9856. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9857. hardcode_shlibpath_var=no
  9858. runpath_var=LD_RUN_PATH
  9859. hardcode_runpath_var=yes
  9860. ld_shlibs=yes
  9861. fi
  9862. ;;
  9863. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9864. no_undefined_flag='$wl-z,text'
  9865. archive_cmds_need_lc=no
  9866. hardcode_shlibpath_var=no
  9867. runpath_var='LD_RUN_PATH'
  9868. if test yes = "$GCC"; then
  9869. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9870. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9871. else
  9872. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9873. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9874. fi
  9875. ;;
  9876. sysv5* | sco3.2v5* | sco5v6*)
  9877. # Note: We CANNOT use -z defs as we might desire, because we do not
  9878. # link with -lc, and that would cause any symbols used from libc to
  9879. # always be unresolved, which means just about no library would
  9880. # ever link correctly. If we're not using GNU ld we use -z text
  9881. # though, which does catch some bad symbols but isn't as heavy-handed
  9882. # as -z defs.
  9883. no_undefined_flag='$wl-z,text'
  9884. allow_undefined_flag='$wl-z,nodefs'
  9885. archive_cmds_need_lc=no
  9886. hardcode_shlibpath_var=no
  9887. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9888. hardcode_libdir_separator=':'
  9889. link_all_deplibs=yes
  9890. export_dynamic_flag_spec='$wl-Bexport'
  9891. runpath_var='LD_RUN_PATH'
  9892. if test yes = "$GCC"; then
  9893. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9894. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9895. else
  9896. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9897. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9898. fi
  9899. ;;
  9900. uts4*)
  9901. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9902. hardcode_libdir_flag_spec='-L$libdir'
  9903. hardcode_shlibpath_var=no
  9904. ;;
  9905. *)
  9906. ld_shlibs=no
  9907. ;;
  9908. esac
  9909. if test sni = "$host_vendor"; then
  9910. case $host in
  9911. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9912. export_dynamic_flag_spec='$wl-Blargedynsym'
  9913. ;;
  9914. esac
  9915. fi
  9916. fi
  9917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9918. $as_echo "$ld_shlibs" >&6; }
  9919. test no = "$ld_shlibs" && can_build_shared=no
  9920. with_gnu_ld=$with_gnu_ld
  9921. #
  9922. # Do we need to explicitly link libc?
  9923. #
  9924. case "x$archive_cmds_need_lc" in
  9925. x|xyes)
  9926. # Assume -lc should be added
  9927. archive_cmds_need_lc=yes
  9928. if test yes,yes = "$GCC,$enable_shared"; then
  9929. case $archive_cmds in
  9930. *'~'*)
  9931. # FIXME: we may have to deal with multi-command sequences.
  9932. ;;
  9933. '$CC '*)
  9934. # Test whether the compiler implicitly links with -lc since on some
  9935. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9936. # to ld, don't add -lc before -lgcc.
  9937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9938. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9939. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9940. $as_echo_n "(cached) " >&6
  9941. else
  9942. $RM conftest*
  9943. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9944. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9945. (eval $ac_compile) 2>&5
  9946. ac_status=$?
  9947. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9948. test $ac_status = 0; } 2>conftest.err; then
  9949. soname=conftest
  9950. lib=conftest
  9951. libobjs=conftest.$ac_objext
  9952. deplibs=
  9953. wl=$lt_prog_compiler_wl
  9954. pic_flag=$lt_prog_compiler_pic
  9955. compiler_flags=-v
  9956. linker_flags=-v
  9957. verstring=
  9958. output_objdir=.
  9959. libname=conftest
  9960. lt_save_allow_undefined_flag=$allow_undefined_flag
  9961. allow_undefined_flag=
  9962. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9963. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9964. ac_status=$?
  9965. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9966. test $ac_status = 0; }
  9967. then
  9968. lt_cv_archive_cmds_need_lc=no
  9969. else
  9970. lt_cv_archive_cmds_need_lc=yes
  9971. fi
  9972. allow_undefined_flag=$lt_save_allow_undefined_flag
  9973. else
  9974. cat conftest.err 1>&5
  9975. fi
  9976. $RM conftest*
  9977. fi
  9978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9979. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9980. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9981. ;;
  9982. esac
  9983. fi
  9984. ;;
  9985. esac
  9986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9987. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9988. if test yes = "$GCC"; then
  9989. case $host_os in
  9990. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9991. *) lt_awk_arg='/^libraries:/' ;;
  9992. esac
  9993. case $host_os in
  9994. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9995. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9996. esac
  9997. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9998. case $lt_search_path_spec in
  9999. *\;*)
  10000. # if the path contains ";" then we assume it to be the separator
  10001. # otherwise default to the standard path separator (i.e. ":") - it is
  10002. # assumed that no part of a normal pathname contains ";" but that should
  10003. # okay in the real world where ";" in dirpaths is itself problematic.
  10004. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  10005. ;;
  10006. *)
  10007. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  10008. ;;
  10009. esac
  10010. # Ok, now we have the path, separated by spaces, we can step through it
  10011. # and add multilib dir if necessary...
  10012. lt_tmp_lt_search_path_spec=
  10013. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  10014. # ...but if some path component already ends with the multilib dir we assume
  10015. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  10016. case "$lt_multi_os_dir; $lt_search_path_spec " in
  10017. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  10018. lt_multi_os_dir=
  10019. ;;
  10020. esac
  10021. for lt_sys_path in $lt_search_path_spec; do
  10022. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  10023. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  10024. elif test -n "$lt_multi_os_dir"; then
  10025. test -d "$lt_sys_path" && \
  10026. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10027. fi
  10028. done
  10029. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10030. BEGIN {RS = " "; FS = "/|\n";} {
  10031. lt_foo = "";
  10032. lt_count = 0;
  10033. for (lt_i = NF; lt_i > 0; lt_i--) {
  10034. if ($lt_i != "" && $lt_i != ".") {
  10035. if ($lt_i == "..") {
  10036. lt_count++;
  10037. } else {
  10038. if (lt_count == 0) {
  10039. lt_foo = "/" $lt_i lt_foo;
  10040. } else {
  10041. lt_count--;
  10042. }
  10043. }
  10044. }
  10045. }
  10046. if (lt_foo != "") { lt_freq[lt_foo]++; }
  10047. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10048. }'`
  10049. # AWK program above erroneously prepends '/' to C:/dos/paths
  10050. # for these hosts.
  10051. case $host_os in
  10052. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10053. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  10054. esac
  10055. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10056. else
  10057. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10058. fi
  10059. library_names_spec=
  10060. libname_spec='lib$name'
  10061. soname_spec=
  10062. shrext_cmds=.so
  10063. postinstall_cmds=
  10064. postuninstall_cmds=
  10065. finish_cmds=
  10066. finish_eval=
  10067. shlibpath_var=
  10068. shlibpath_overrides_runpath=unknown
  10069. version_type=none
  10070. dynamic_linker="$host_os ld.so"
  10071. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10072. need_lib_prefix=unknown
  10073. hardcode_into_libs=no
  10074. # when you set need_version to no, make sure it does not cause -set_version
  10075. # flags to be left without arguments
  10076. need_version=unknown
  10077. case $host_os in
  10078. aix3*)
  10079. version_type=linux # correct to gnu/linux during the next big refactor
  10080. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  10081. shlibpath_var=LIBPATH
  10082. # AIX 3 has no versioning support, so we append a major version to the name.
  10083. soname_spec='$libname$release$shared_ext$major'
  10084. ;;
  10085. aix[4-9]*)
  10086. version_type=linux # correct to gnu/linux during the next big refactor
  10087. need_lib_prefix=no
  10088. need_version=no
  10089. hardcode_into_libs=yes
  10090. if test ia64 = "$host_cpu"; then
  10091. # AIX 5 supports IA64
  10092. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  10093. shlibpath_var=LD_LIBRARY_PATH
  10094. else
  10095. # With GCC up to 2.95.x, collect2 would create an import file
  10096. # for dependence libraries. The import file would start with
  10097. # the line '#! .'. This would cause the generated library to
  10098. # depend on '.', always an invalid library. This was fixed in
  10099. # development snapshots of GCC prior to 3.0.
  10100. case $host_os in
  10101. aix4 | aix4.[01] | aix4.[01].*)
  10102. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10103. echo ' yes '
  10104. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  10105. :
  10106. else
  10107. can_build_shared=no
  10108. fi
  10109. ;;
  10110. esac
  10111. # Using Import Files as archive members, it is possible to support
  10112. # filename-based versioning of shared library archives on AIX. While
  10113. # this would work for both with and without runtime linking, it will
  10114. # prevent static linking of such archives. So we do filename-based
  10115. # shared library versioning with .so extension only, which is used
  10116. # when both runtime linking and shared linking is enabled.
  10117. # Unfortunately, runtime linking may impact performance, so we do
  10118. # not want this to be the default eventually. Also, we use the
  10119. # versioned .so libs for executables only if there is the -brtl
  10120. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  10121. # To allow for filename-based versioning support, we need to create
  10122. # libNAME.so.V as an archive file, containing:
  10123. # *) an Import File, referring to the versioned filename of the
  10124. # archive as well as the shared archive member, telling the
  10125. # bitwidth (32 or 64) of that shared object, and providing the
  10126. # list of exported symbols of that shared object, eventually
  10127. # decorated with the 'weak' keyword
  10128. # *) the shared object with the F_LOADONLY flag set, to really avoid
  10129. # it being seen by the linker.
  10130. # At run time we better use the real file rather than another symlink,
  10131. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  10132. case $with_aix_soname,$aix_use_runtimelinking in
  10133. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  10134. # soname into executable. Probably we can add versioning support to
  10135. # collect2, so additional links can be useful in future.
  10136. aix,yes) # traditional libtool
  10137. dynamic_linker='AIX unversionable lib.so'
  10138. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10139. # instead of lib<name>.a to let people know that these are not
  10140. # typical AIX shared libraries.
  10141. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10142. ;;
  10143. aix,no) # traditional AIX only
  10144. dynamic_linker='AIX lib.a(lib.so.V)'
  10145. # We preserve .a as extension for shared libraries through AIX4.2
  10146. # and later when we are not doing run time linking.
  10147. library_names_spec='$libname$release.a $libname.a'
  10148. soname_spec='$libname$release$shared_ext$major'
  10149. ;;
  10150. svr4,*) # full svr4 only
  10151. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  10152. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10153. # We do not specify a path in Import Files, so LIBPATH fires.
  10154. shlibpath_overrides_runpath=yes
  10155. ;;
  10156. *,yes) # both, prefer svr4
  10157. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  10158. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10159. # unpreferred sharedlib libNAME.a needs extra handling
  10160. 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"'
  10161. 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"'
  10162. # We do not specify a path in Import Files, so LIBPATH fires.
  10163. shlibpath_overrides_runpath=yes
  10164. ;;
  10165. *,no) # both, prefer aix
  10166. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  10167. library_names_spec='$libname$release.a $libname.a'
  10168. soname_spec='$libname$release$shared_ext$major'
  10169. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  10170. 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)'
  10171. 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"'
  10172. ;;
  10173. esac
  10174. shlibpath_var=LIBPATH
  10175. fi
  10176. ;;
  10177. amigaos*)
  10178. case $host_cpu in
  10179. powerpc)
  10180. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10181. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10182. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10183. ;;
  10184. m68k)
  10185. library_names_spec='$libname.ixlibrary $libname.a'
  10186. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10187. 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'
  10188. ;;
  10189. esac
  10190. ;;
  10191. beos*)
  10192. library_names_spec='$libname$shared_ext'
  10193. dynamic_linker="$host_os ld.so"
  10194. shlibpath_var=LIBRARY_PATH
  10195. ;;
  10196. bsdi[45]*)
  10197. version_type=linux # correct to gnu/linux during the next big refactor
  10198. need_version=no
  10199. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10200. soname_spec='$libname$release$shared_ext$major'
  10201. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10202. shlibpath_var=LD_LIBRARY_PATH
  10203. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10204. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10205. # the default ld.so.conf also contains /usr/contrib/lib and
  10206. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10207. # libtool to hard-code these into programs
  10208. ;;
  10209. cygwin* | mingw* | pw32* | cegcc*)
  10210. version_type=windows
  10211. shrext_cmds=.dll
  10212. need_version=no
  10213. need_lib_prefix=no
  10214. case $GCC,$cc_basename in
  10215. yes,*)
  10216. # gcc
  10217. library_names_spec='$libname.dll.a'
  10218. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10219. postinstall_cmds='base_file=`basename \$file`~
  10220. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10221. dldir=$destdir/`dirname \$dlpath`~
  10222. test -d \$dldir || mkdir -p \$dldir~
  10223. $install_prog $dir/$dlname \$dldir/$dlname~
  10224. chmod a+x \$dldir/$dlname~
  10225. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10226. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10227. fi'
  10228. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10229. dlpath=$dir/\$dldll~
  10230. $RM \$dlpath'
  10231. shlibpath_overrides_runpath=yes
  10232. case $host_os in
  10233. cygwin*)
  10234. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10235. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10236. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10237. ;;
  10238. mingw* | cegcc*)
  10239. # MinGW DLLs use traditional 'lib' prefix
  10240. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10241. ;;
  10242. pw32*)
  10243. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10244. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10245. ;;
  10246. esac
  10247. dynamic_linker='Win32 ld.exe'
  10248. ;;
  10249. *,cl*)
  10250. # Native MSVC
  10251. libname_spec='$name'
  10252. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10253. library_names_spec='$libname.dll.lib'
  10254. case $build_os in
  10255. mingw*)
  10256. sys_lib_search_path_spec=
  10257. lt_save_ifs=$IFS
  10258. IFS=';'
  10259. for lt_path in $LIB
  10260. do
  10261. IFS=$lt_save_ifs
  10262. # Let DOS variable expansion print the short 8.3 style file name.
  10263. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10264. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10265. done
  10266. IFS=$lt_save_ifs
  10267. # Convert to MSYS style.
  10268. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10269. ;;
  10270. cygwin*)
  10271. # Convert to unix form, then to dos form, then back to unix form
  10272. # but this time dos style (no spaces!) so that the unix form looks
  10273. # like /cygdrive/c/PROGRA~1:/cygdr...
  10274. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10275. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10276. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10277. ;;
  10278. *)
  10279. sys_lib_search_path_spec=$LIB
  10280. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10281. # It is most probably a Windows format PATH.
  10282. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10283. else
  10284. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10285. fi
  10286. # FIXME: find the short name or the path components, as spaces are
  10287. # common. (e.g. "Program Files" -> "PROGRA~1")
  10288. ;;
  10289. esac
  10290. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10291. postinstall_cmds='base_file=`basename \$file`~
  10292. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10293. dldir=$destdir/`dirname \$dlpath`~
  10294. test -d \$dldir || mkdir -p \$dldir~
  10295. $install_prog $dir/$dlname \$dldir/$dlname'
  10296. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10297. dlpath=$dir/\$dldll~
  10298. $RM \$dlpath'
  10299. shlibpath_overrides_runpath=yes
  10300. dynamic_linker='Win32 link.exe'
  10301. ;;
  10302. *)
  10303. # Assume MSVC wrapper
  10304. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10305. dynamic_linker='Win32 ld.exe'
  10306. ;;
  10307. esac
  10308. # FIXME: first we should search . and the directory the executable is in
  10309. shlibpath_var=PATH
  10310. ;;
  10311. darwin* | rhapsody*)
  10312. dynamic_linker="$host_os dyld"
  10313. version_type=darwin
  10314. need_lib_prefix=no
  10315. need_version=no
  10316. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10317. soname_spec='$libname$release$major$shared_ext'
  10318. shlibpath_overrides_runpath=yes
  10319. shlibpath_var=DYLD_LIBRARY_PATH
  10320. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10321. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10322. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10323. ;;
  10324. dgux*)
  10325. version_type=linux # correct to gnu/linux during the next big refactor
  10326. need_lib_prefix=no
  10327. need_version=no
  10328. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10329. soname_spec='$libname$release$shared_ext$major'
  10330. shlibpath_var=LD_LIBRARY_PATH
  10331. ;;
  10332. freebsd* | dragonfly*)
  10333. # DragonFly does not have aout. When/if they implement a new
  10334. # versioning mechanism, adjust this.
  10335. if test -x /usr/bin/objformat; then
  10336. objformat=`/usr/bin/objformat`
  10337. else
  10338. case $host_os in
  10339. freebsd[23].*) objformat=aout ;;
  10340. *) objformat=elf ;;
  10341. esac
  10342. fi
  10343. version_type=freebsd-$objformat
  10344. case $version_type in
  10345. freebsd-elf*)
  10346. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10347. soname_spec='$libname$release$shared_ext$major'
  10348. need_version=no
  10349. need_lib_prefix=no
  10350. ;;
  10351. freebsd-*)
  10352. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10353. need_version=yes
  10354. ;;
  10355. esac
  10356. shlibpath_var=LD_LIBRARY_PATH
  10357. case $host_os in
  10358. freebsd2.*)
  10359. shlibpath_overrides_runpath=yes
  10360. ;;
  10361. freebsd3.[01]* | freebsdelf3.[01]*)
  10362. shlibpath_overrides_runpath=yes
  10363. hardcode_into_libs=yes
  10364. ;;
  10365. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10366. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10367. shlibpath_overrides_runpath=no
  10368. hardcode_into_libs=yes
  10369. ;;
  10370. *) # from 4.6 on, and DragonFly
  10371. shlibpath_overrides_runpath=yes
  10372. hardcode_into_libs=yes
  10373. ;;
  10374. esac
  10375. ;;
  10376. haiku*)
  10377. version_type=linux # correct to gnu/linux during the next big refactor
  10378. need_lib_prefix=no
  10379. need_version=no
  10380. dynamic_linker="$host_os runtime_loader"
  10381. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10382. soname_spec='$libname$release$shared_ext$major'
  10383. shlibpath_var=LIBRARY_PATH
  10384. shlibpath_overrides_runpath=no
  10385. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10386. hardcode_into_libs=yes
  10387. ;;
  10388. hpux9* | hpux10* | hpux11*)
  10389. # Give a soname corresponding to the major version so that dld.sl refuses to
  10390. # link against other versions.
  10391. version_type=sunos
  10392. need_lib_prefix=no
  10393. need_version=no
  10394. case $host_cpu in
  10395. ia64*)
  10396. shrext_cmds='.so'
  10397. hardcode_into_libs=yes
  10398. dynamic_linker="$host_os dld.so"
  10399. shlibpath_var=LD_LIBRARY_PATH
  10400. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10401. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10402. soname_spec='$libname$release$shared_ext$major'
  10403. if test 32 = "$HPUX_IA64_MODE"; then
  10404. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10405. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10406. else
  10407. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10408. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10409. fi
  10410. ;;
  10411. hppa*64*)
  10412. shrext_cmds='.sl'
  10413. hardcode_into_libs=yes
  10414. dynamic_linker="$host_os dld.sl"
  10415. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10416. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10417. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10418. soname_spec='$libname$release$shared_ext$major'
  10419. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10420. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10421. ;;
  10422. *)
  10423. shrext_cmds='.sl'
  10424. dynamic_linker="$host_os dld.sl"
  10425. shlibpath_var=SHLIB_PATH
  10426. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10427. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10428. soname_spec='$libname$release$shared_ext$major'
  10429. ;;
  10430. esac
  10431. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10432. postinstall_cmds='chmod 555 $lib'
  10433. # or fails outright, so override atomically:
  10434. install_override_mode=555
  10435. ;;
  10436. interix[3-9]*)
  10437. version_type=linux # correct to gnu/linux during the next big refactor
  10438. need_lib_prefix=no
  10439. need_version=no
  10440. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10441. soname_spec='$libname$release$shared_ext$major'
  10442. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10443. shlibpath_var=LD_LIBRARY_PATH
  10444. shlibpath_overrides_runpath=no
  10445. hardcode_into_libs=yes
  10446. ;;
  10447. irix5* | irix6* | nonstopux*)
  10448. case $host_os in
  10449. nonstopux*) version_type=nonstopux ;;
  10450. *)
  10451. if test yes = "$lt_cv_prog_gnu_ld"; then
  10452. version_type=linux # correct to gnu/linux during the next big refactor
  10453. else
  10454. version_type=irix
  10455. fi ;;
  10456. esac
  10457. need_lib_prefix=no
  10458. need_version=no
  10459. soname_spec='$libname$release$shared_ext$major'
  10460. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10461. case $host_os in
  10462. irix5* | nonstopux*)
  10463. libsuff= shlibsuff=
  10464. ;;
  10465. *)
  10466. case $LD in # libtool.m4 will add one of these switches to LD
  10467. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10468. libsuff= shlibsuff= libmagic=32-bit;;
  10469. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10470. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10471. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10472. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10473. *) libsuff= shlibsuff= libmagic=never-match;;
  10474. esac
  10475. ;;
  10476. esac
  10477. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10478. shlibpath_overrides_runpath=no
  10479. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10480. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10481. hardcode_into_libs=yes
  10482. ;;
  10483. # No shared lib support for Linux oldld, aout, or coff.
  10484. linux*oldld* | linux*aout* | linux*coff*)
  10485. dynamic_linker=no
  10486. ;;
  10487. linux*android*)
  10488. version_type=none # Android doesn't support versioned libraries.
  10489. need_lib_prefix=no
  10490. need_version=no
  10491. library_names_spec='$libname$release$shared_ext'
  10492. soname_spec='$libname$release$shared_ext'
  10493. finish_cmds=
  10494. shlibpath_var=LD_LIBRARY_PATH
  10495. shlibpath_overrides_runpath=yes
  10496. # This implies no fast_install, which is unacceptable.
  10497. # Some rework will be needed to allow for fast_install
  10498. # before this can be enabled.
  10499. hardcode_into_libs=yes
  10500. dynamic_linker='Android linker'
  10501. # Don't embed -rpath directories since the linker doesn't support them.
  10502. hardcode_libdir_flag_spec='-L$libdir'
  10503. ;;
  10504. # This must be glibc/ELF.
  10505. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10506. version_type=linux # correct to gnu/linux during the next big refactor
  10507. need_lib_prefix=no
  10508. need_version=no
  10509. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10510. soname_spec='$libname$release$shared_ext$major'
  10511. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10512. shlibpath_var=LD_LIBRARY_PATH
  10513. shlibpath_overrides_runpath=no
  10514. # Some binutils ld are patched to set DT_RUNPATH
  10515. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10516. $as_echo_n "(cached) " >&6
  10517. else
  10518. lt_cv_shlibpath_overrides_runpath=no
  10519. save_LDFLAGS=$LDFLAGS
  10520. save_libdir=$libdir
  10521. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10522. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10524. /* end confdefs.h. */
  10525. int
  10526. main ()
  10527. {
  10528. ;
  10529. return 0;
  10530. }
  10531. _ACEOF
  10532. if ac_fn_c_try_link "$LINENO"; then :
  10533. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10534. lt_cv_shlibpath_overrides_runpath=yes
  10535. fi
  10536. fi
  10537. rm -f core conftest.err conftest.$ac_objext \
  10538. conftest$ac_exeext conftest.$ac_ext
  10539. LDFLAGS=$save_LDFLAGS
  10540. libdir=$save_libdir
  10541. fi
  10542. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10543. # This implies no fast_install, which is unacceptable.
  10544. # Some rework will be needed to allow for fast_install
  10545. # before this can be enabled.
  10546. hardcode_into_libs=yes
  10547. # Ideally, we could use ldconfig to report *all* directores which are
  10548. # searched for libraries, however this is still not possible. Aside from not
  10549. # being certain /sbin/ldconfig is available, command
  10550. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10551. # even though it is searched at run-time. Try to do the best guess by
  10552. # appending ld.so.conf contents (and includes) to the search path.
  10553. if test -f /etc/ld.so.conf; then
  10554. 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' ' '`
  10555. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10556. fi
  10557. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10558. # powerpc, because MkLinux only supported shared libraries with the
  10559. # GNU dynamic linker. Since this was broken with cross compilers,
  10560. # most powerpc-linux boxes support dynamic linking these days and
  10561. # people can always --disable-shared, the test was removed, and we
  10562. # assume the GNU/Linux dynamic linker is in use.
  10563. dynamic_linker='GNU/Linux ld.so'
  10564. ;;
  10565. netbsdelf*-gnu)
  10566. version_type=linux
  10567. need_lib_prefix=no
  10568. need_version=no
  10569. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10570. soname_spec='${libname}${release}${shared_ext}$major'
  10571. shlibpath_var=LD_LIBRARY_PATH
  10572. shlibpath_overrides_runpath=no
  10573. hardcode_into_libs=yes
  10574. dynamic_linker='NetBSD ld.elf_so'
  10575. ;;
  10576. netbsd*)
  10577. version_type=sunos
  10578. need_lib_prefix=no
  10579. need_version=no
  10580. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10581. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10582. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10583. dynamic_linker='NetBSD (a.out) ld.so'
  10584. else
  10585. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10586. soname_spec='$libname$release$shared_ext$major'
  10587. dynamic_linker='NetBSD ld.elf_so'
  10588. fi
  10589. shlibpath_var=LD_LIBRARY_PATH
  10590. shlibpath_overrides_runpath=yes
  10591. hardcode_into_libs=yes
  10592. ;;
  10593. newsos6)
  10594. version_type=linux # correct to gnu/linux during the next big refactor
  10595. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10596. shlibpath_var=LD_LIBRARY_PATH
  10597. shlibpath_overrides_runpath=yes
  10598. ;;
  10599. *nto* | *qnx*)
  10600. version_type=qnx
  10601. need_lib_prefix=no
  10602. need_version=no
  10603. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10604. soname_spec='$libname$release$shared_ext$major'
  10605. shlibpath_var=LD_LIBRARY_PATH
  10606. shlibpath_overrides_runpath=no
  10607. hardcode_into_libs=yes
  10608. dynamic_linker='ldqnx.so'
  10609. ;;
  10610. openbsd* | bitrig*)
  10611. version_type=sunos
  10612. sys_lib_dlsearch_path_spec=/usr/lib
  10613. need_lib_prefix=no
  10614. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10615. need_version=no
  10616. else
  10617. need_version=yes
  10618. fi
  10619. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10620. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10621. shlibpath_var=LD_LIBRARY_PATH
  10622. shlibpath_overrides_runpath=yes
  10623. ;;
  10624. os2*)
  10625. libname_spec='$name'
  10626. version_type=windows
  10627. shrext_cmds=.dll
  10628. need_version=no
  10629. need_lib_prefix=no
  10630. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10631. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10632. v=$($ECHO $release$versuffix | tr -d .-);
  10633. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10634. $ECHO $n$v`$shared_ext'
  10635. library_names_spec='${libname}_dll.$libext'
  10636. dynamic_linker='OS/2 ld.exe'
  10637. shlibpath_var=BEGINLIBPATH
  10638. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10639. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10640. postinstall_cmds='base_file=`basename \$file`~
  10641. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10642. dldir=$destdir/`dirname \$dlpath`~
  10643. test -d \$dldir || mkdir -p \$dldir~
  10644. $install_prog $dir/$dlname \$dldir/$dlname~
  10645. chmod a+x \$dldir/$dlname~
  10646. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10647. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10648. fi'
  10649. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10650. dlpath=$dir/\$dldll~
  10651. $RM \$dlpath'
  10652. ;;
  10653. osf3* | osf4* | osf5*)
  10654. version_type=osf
  10655. need_lib_prefix=no
  10656. need_version=no
  10657. soname_spec='$libname$release$shared_ext$major'
  10658. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10659. shlibpath_var=LD_LIBRARY_PATH
  10660. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10661. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10662. ;;
  10663. rdos*)
  10664. dynamic_linker=no
  10665. ;;
  10666. solaris*)
  10667. version_type=linux # correct to gnu/linux during the next big refactor
  10668. need_lib_prefix=no
  10669. need_version=no
  10670. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10671. soname_spec='$libname$release$shared_ext$major'
  10672. shlibpath_var=LD_LIBRARY_PATH
  10673. shlibpath_overrides_runpath=yes
  10674. hardcode_into_libs=yes
  10675. # ldd complains unless libraries are executable
  10676. postinstall_cmds='chmod +x $lib'
  10677. ;;
  10678. sunos4*)
  10679. version_type=sunos
  10680. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10681. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10682. shlibpath_var=LD_LIBRARY_PATH
  10683. shlibpath_overrides_runpath=yes
  10684. if test yes = "$with_gnu_ld"; then
  10685. need_lib_prefix=no
  10686. fi
  10687. need_version=yes
  10688. ;;
  10689. sysv4 | sysv4.3*)
  10690. version_type=linux # correct to gnu/linux during the next big refactor
  10691. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10692. soname_spec='$libname$release$shared_ext$major'
  10693. shlibpath_var=LD_LIBRARY_PATH
  10694. case $host_vendor in
  10695. sni)
  10696. shlibpath_overrides_runpath=no
  10697. need_lib_prefix=no
  10698. runpath_var=LD_RUN_PATH
  10699. ;;
  10700. siemens)
  10701. need_lib_prefix=no
  10702. ;;
  10703. motorola)
  10704. need_lib_prefix=no
  10705. need_version=no
  10706. shlibpath_overrides_runpath=no
  10707. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10708. ;;
  10709. esac
  10710. ;;
  10711. sysv4*MP*)
  10712. if test -d /usr/nec; then
  10713. version_type=linux # correct to gnu/linux during the next big refactor
  10714. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10715. soname_spec='$libname$shared_ext.$major'
  10716. shlibpath_var=LD_LIBRARY_PATH
  10717. fi
  10718. ;;
  10719. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10720. version_type=sco
  10721. need_lib_prefix=no
  10722. need_version=no
  10723. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10724. soname_spec='$libname$release$shared_ext$major'
  10725. shlibpath_var=LD_LIBRARY_PATH
  10726. shlibpath_overrides_runpath=yes
  10727. hardcode_into_libs=yes
  10728. if test yes = "$with_gnu_ld"; then
  10729. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10730. else
  10731. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10732. case $host_os in
  10733. sco3.2v5*)
  10734. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10735. ;;
  10736. esac
  10737. fi
  10738. sys_lib_dlsearch_path_spec='/usr/lib'
  10739. ;;
  10740. tpf*)
  10741. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10742. version_type=linux # correct to gnu/linux during the next big refactor
  10743. need_lib_prefix=no
  10744. need_version=no
  10745. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10746. shlibpath_var=LD_LIBRARY_PATH
  10747. shlibpath_overrides_runpath=no
  10748. hardcode_into_libs=yes
  10749. ;;
  10750. uts4*)
  10751. version_type=linux # correct to gnu/linux during the next big refactor
  10752. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10753. soname_spec='$libname$release$shared_ext$major'
  10754. shlibpath_var=LD_LIBRARY_PATH
  10755. ;;
  10756. *)
  10757. dynamic_linker=no
  10758. ;;
  10759. esac
  10760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10761. $as_echo "$dynamic_linker" >&6; }
  10762. test no = "$dynamic_linker" && can_build_shared=no
  10763. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10764. if test yes = "$GCC"; then
  10765. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10766. fi
  10767. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10768. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10769. fi
  10770. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10771. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10772. fi
  10773. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10774. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10775. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10776. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10777. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10778. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10780. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10781. hardcode_action=
  10782. if test -n "$hardcode_libdir_flag_spec" ||
  10783. test -n "$runpath_var" ||
  10784. test yes = "$hardcode_automatic"; then
  10785. # We can hardcode non-existent directories.
  10786. if test no != "$hardcode_direct" &&
  10787. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10788. # have to relink, otherwise we might link with an installed library
  10789. # when we should be linking with a yet-to-be-installed one
  10790. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10791. test no != "$hardcode_minus_L"; then
  10792. # Linking always hardcodes the temporary library directory.
  10793. hardcode_action=relink
  10794. else
  10795. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10796. hardcode_action=immediate
  10797. fi
  10798. else
  10799. # We cannot hardcode anything, or else we can only hardcode existing
  10800. # directories.
  10801. hardcode_action=unsupported
  10802. fi
  10803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10804. $as_echo "$hardcode_action" >&6; }
  10805. if test relink = "$hardcode_action" ||
  10806. test yes = "$inherit_rpath"; then
  10807. # Fast installation is not supported
  10808. enable_fast_install=no
  10809. elif test yes = "$shlibpath_overrides_runpath" ||
  10810. test no = "$enable_shared"; then
  10811. # Fast installation is not necessary
  10812. enable_fast_install=needless
  10813. fi
  10814. if test yes != "$enable_dlopen"; then
  10815. enable_dlopen=unknown
  10816. enable_dlopen_self=unknown
  10817. enable_dlopen_self_static=unknown
  10818. else
  10819. lt_cv_dlopen=no
  10820. lt_cv_dlopen_libs=
  10821. case $host_os in
  10822. beos*)
  10823. lt_cv_dlopen=load_add_on
  10824. lt_cv_dlopen_libs=
  10825. lt_cv_dlopen_self=yes
  10826. ;;
  10827. mingw* | pw32* | cegcc*)
  10828. lt_cv_dlopen=LoadLibrary
  10829. lt_cv_dlopen_libs=
  10830. ;;
  10831. cygwin*)
  10832. lt_cv_dlopen=dlopen
  10833. lt_cv_dlopen_libs=
  10834. ;;
  10835. darwin*)
  10836. # if libdl is installed we need to link against it
  10837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10838. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10839. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10840. $as_echo_n "(cached) " >&6
  10841. else
  10842. ac_check_lib_save_LIBS=$LIBS
  10843. LIBS="-ldl $LIBS"
  10844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10845. /* end confdefs.h. */
  10846. /* Override any GCC internal prototype to avoid an error.
  10847. Use char because int might match the return type of a GCC
  10848. builtin and then its argument prototype would still apply. */
  10849. #ifdef __cplusplus
  10850. extern "C"
  10851. #endif
  10852. char dlopen ();
  10853. int
  10854. main ()
  10855. {
  10856. return dlopen ();
  10857. ;
  10858. return 0;
  10859. }
  10860. _ACEOF
  10861. if ac_fn_c_try_link "$LINENO"; then :
  10862. ac_cv_lib_dl_dlopen=yes
  10863. else
  10864. ac_cv_lib_dl_dlopen=no
  10865. fi
  10866. rm -f core conftest.err conftest.$ac_objext \
  10867. conftest$ac_exeext conftest.$ac_ext
  10868. LIBS=$ac_check_lib_save_LIBS
  10869. fi
  10870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10871. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10872. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10873. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10874. else
  10875. lt_cv_dlopen=dyld
  10876. lt_cv_dlopen_libs=
  10877. lt_cv_dlopen_self=yes
  10878. fi
  10879. ;;
  10880. tpf*)
  10881. # Don't try to run any link tests for TPF. We know it's impossible
  10882. # because TPF is a cross-compiler, and we know how we open DSOs.
  10883. lt_cv_dlopen=dlopen
  10884. lt_cv_dlopen_libs=
  10885. lt_cv_dlopen_self=no
  10886. ;;
  10887. *)
  10888. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10889. if test "x$ac_cv_func_shl_load" = xyes; then :
  10890. lt_cv_dlopen=shl_load
  10891. else
  10892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10893. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10894. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10895. $as_echo_n "(cached) " >&6
  10896. else
  10897. ac_check_lib_save_LIBS=$LIBS
  10898. LIBS="-ldld $LIBS"
  10899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10900. /* end confdefs.h. */
  10901. /* Override any GCC internal prototype to avoid an error.
  10902. Use char because int might match the return type of a GCC
  10903. builtin and then its argument prototype would still apply. */
  10904. #ifdef __cplusplus
  10905. extern "C"
  10906. #endif
  10907. char shl_load ();
  10908. int
  10909. main ()
  10910. {
  10911. return shl_load ();
  10912. ;
  10913. return 0;
  10914. }
  10915. _ACEOF
  10916. if ac_fn_c_try_link "$LINENO"; then :
  10917. ac_cv_lib_dld_shl_load=yes
  10918. else
  10919. ac_cv_lib_dld_shl_load=no
  10920. fi
  10921. rm -f core conftest.err conftest.$ac_objext \
  10922. conftest$ac_exeext conftest.$ac_ext
  10923. LIBS=$ac_check_lib_save_LIBS
  10924. fi
  10925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10926. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10927. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10928. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10929. else
  10930. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10931. if test "x$ac_cv_func_dlopen" = xyes; then :
  10932. lt_cv_dlopen=dlopen
  10933. else
  10934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10935. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10936. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10937. $as_echo_n "(cached) " >&6
  10938. else
  10939. ac_check_lib_save_LIBS=$LIBS
  10940. LIBS="-ldl $LIBS"
  10941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10942. /* end confdefs.h. */
  10943. /* Override any GCC internal prototype to avoid an error.
  10944. Use char because int might match the return type of a GCC
  10945. builtin and then its argument prototype would still apply. */
  10946. #ifdef __cplusplus
  10947. extern "C"
  10948. #endif
  10949. char dlopen ();
  10950. int
  10951. main ()
  10952. {
  10953. return dlopen ();
  10954. ;
  10955. return 0;
  10956. }
  10957. _ACEOF
  10958. if ac_fn_c_try_link "$LINENO"; then :
  10959. ac_cv_lib_dl_dlopen=yes
  10960. else
  10961. ac_cv_lib_dl_dlopen=no
  10962. fi
  10963. rm -f core conftest.err conftest.$ac_objext \
  10964. conftest$ac_exeext conftest.$ac_ext
  10965. LIBS=$ac_check_lib_save_LIBS
  10966. fi
  10967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10968. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10969. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10970. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10971. else
  10972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10973. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10974. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10975. $as_echo_n "(cached) " >&6
  10976. else
  10977. ac_check_lib_save_LIBS=$LIBS
  10978. LIBS="-lsvld $LIBS"
  10979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10980. /* end confdefs.h. */
  10981. /* Override any GCC internal prototype to avoid an error.
  10982. Use char because int might match the return type of a GCC
  10983. builtin and then its argument prototype would still apply. */
  10984. #ifdef __cplusplus
  10985. extern "C"
  10986. #endif
  10987. char dlopen ();
  10988. int
  10989. main ()
  10990. {
  10991. return dlopen ();
  10992. ;
  10993. return 0;
  10994. }
  10995. _ACEOF
  10996. if ac_fn_c_try_link "$LINENO"; then :
  10997. ac_cv_lib_svld_dlopen=yes
  10998. else
  10999. ac_cv_lib_svld_dlopen=no
  11000. fi
  11001. rm -f core conftest.err conftest.$ac_objext \
  11002. conftest$ac_exeext conftest.$ac_ext
  11003. LIBS=$ac_check_lib_save_LIBS
  11004. fi
  11005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  11006. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  11007. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  11008. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  11009. else
  11010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  11011. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  11012. if ${ac_cv_lib_dld_dld_link+:} false; then :
  11013. $as_echo_n "(cached) " >&6
  11014. else
  11015. ac_check_lib_save_LIBS=$LIBS
  11016. LIBS="-ldld $LIBS"
  11017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11018. /* end confdefs.h. */
  11019. /* Override any GCC internal prototype to avoid an error.
  11020. Use char because int might match the return type of a GCC
  11021. builtin and then its argument prototype would still apply. */
  11022. #ifdef __cplusplus
  11023. extern "C"
  11024. #endif
  11025. char dld_link ();
  11026. int
  11027. main ()
  11028. {
  11029. return dld_link ();
  11030. ;
  11031. return 0;
  11032. }
  11033. _ACEOF
  11034. if ac_fn_c_try_link "$LINENO"; then :
  11035. ac_cv_lib_dld_dld_link=yes
  11036. else
  11037. ac_cv_lib_dld_dld_link=no
  11038. fi
  11039. rm -f core conftest.err conftest.$ac_objext \
  11040. conftest$ac_exeext conftest.$ac_ext
  11041. LIBS=$ac_check_lib_save_LIBS
  11042. fi
  11043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11044. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  11045. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  11046. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  11047. fi
  11048. fi
  11049. fi
  11050. fi
  11051. fi
  11052. fi
  11053. ;;
  11054. esac
  11055. if test no = "$lt_cv_dlopen"; then
  11056. enable_dlopen=no
  11057. else
  11058. enable_dlopen=yes
  11059. fi
  11060. case $lt_cv_dlopen in
  11061. dlopen)
  11062. save_CPPFLAGS=$CPPFLAGS
  11063. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11064. save_LDFLAGS=$LDFLAGS
  11065. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11066. save_LIBS=$LIBS
  11067. LIBS="$lt_cv_dlopen_libs $LIBS"
  11068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11069. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  11070. if ${lt_cv_dlopen_self+:} false; then :
  11071. $as_echo_n "(cached) " >&6
  11072. else
  11073. if test yes = "$cross_compiling"; then :
  11074. lt_cv_dlopen_self=cross
  11075. else
  11076. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11077. lt_status=$lt_dlunknown
  11078. cat > conftest.$ac_ext <<_LT_EOF
  11079. #line $LINENO "configure"
  11080. #include "confdefs.h"
  11081. #if HAVE_DLFCN_H
  11082. #include <dlfcn.h>
  11083. #endif
  11084. #include <stdio.h>
  11085. #ifdef RTLD_GLOBAL
  11086. # define LT_DLGLOBAL RTLD_GLOBAL
  11087. #else
  11088. # ifdef DL_GLOBAL
  11089. # define LT_DLGLOBAL DL_GLOBAL
  11090. # else
  11091. # define LT_DLGLOBAL 0
  11092. # endif
  11093. #endif
  11094. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11095. find out it does not work in some platform. */
  11096. #ifndef LT_DLLAZY_OR_NOW
  11097. # ifdef RTLD_LAZY
  11098. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11099. # else
  11100. # ifdef DL_LAZY
  11101. # define LT_DLLAZY_OR_NOW DL_LAZY
  11102. # else
  11103. # ifdef RTLD_NOW
  11104. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11105. # else
  11106. # ifdef DL_NOW
  11107. # define LT_DLLAZY_OR_NOW DL_NOW
  11108. # else
  11109. # define LT_DLLAZY_OR_NOW 0
  11110. # endif
  11111. # endif
  11112. # endif
  11113. # endif
  11114. #endif
  11115. /* When -fvisibility=hidden is used, assume the code has been annotated
  11116. correspondingly for the symbols needed. */
  11117. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11118. int fnord () __attribute__((visibility("default")));
  11119. #endif
  11120. int fnord () { return 42; }
  11121. int main ()
  11122. {
  11123. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11124. int status = $lt_dlunknown;
  11125. if (self)
  11126. {
  11127. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11128. else
  11129. {
  11130. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11131. else puts (dlerror ());
  11132. }
  11133. /* dlclose (self); */
  11134. }
  11135. else
  11136. puts (dlerror ());
  11137. return status;
  11138. }
  11139. _LT_EOF
  11140. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11141. (eval $ac_link) 2>&5
  11142. ac_status=$?
  11143. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11144. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11145. (./conftest; exit; ) >&5 2>/dev/null
  11146. lt_status=$?
  11147. case x$lt_status in
  11148. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11149. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11150. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11151. esac
  11152. else :
  11153. # compilation failed
  11154. lt_cv_dlopen_self=no
  11155. fi
  11156. fi
  11157. rm -fr conftest*
  11158. fi
  11159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11160. $as_echo "$lt_cv_dlopen_self" >&6; }
  11161. if test yes = "$lt_cv_dlopen_self"; then
  11162. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11164. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  11165. if ${lt_cv_dlopen_self_static+:} false; then :
  11166. $as_echo_n "(cached) " >&6
  11167. else
  11168. if test yes = "$cross_compiling"; then :
  11169. lt_cv_dlopen_self_static=cross
  11170. else
  11171. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11172. lt_status=$lt_dlunknown
  11173. cat > conftest.$ac_ext <<_LT_EOF
  11174. #line $LINENO "configure"
  11175. #include "confdefs.h"
  11176. #if HAVE_DLFCN_H
  11177. #include <dlfcn.h>
  11178. #endif
  11179. #include <stdio.h>
  11180. #ifdef RTLD_GLOBAL
  11181. # define LT_DLGLOBAL RTLD_GLOBAL
  11182. #else
  11183. # ifdef DL_GLOBAL
  11184. # define LT_DLGLOBAL DL_GLOBAL
  11185. # else
  11186. # define LT_DLGLOBAL 0
  11187. # endif
  11188. #endif
  11189. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11190. find out it does not work in some platform. */
  11191. #ifndef LT_DLLAZY_OR_NOW
  11192. # ifdef RTLD_LAZY
  11193. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11194. # else
  11195. # ifdef DL_LAZY
  11196. # define LT_DLLAZY_OR_NOW DL_LAZY
  11197. # else
  11198. # ifdef RTLD_NOW
  11199. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11200. # else
  11201. # ifdef DL_NOW
  11202. # define LT_DLLAZY_OR_NOW DL_NOW
  11203. # else
  11204. # define LT_DLLAZY_OR_NOW 0
  11205. # endif
  11206. # endif
  11207. # endif
  11208. # endif
  11209. #endif
  11210. /* When -fvisibility=hidden is used, assume the code has been annotated
  11211. correspondingly for the symbols needed. */
  11212. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11213. int fnord () __attribute__((visibility("default")));
  11214. #endif
  11215. int fnord () { return 42; }
  11216. int main ()
  11217. {
  11218. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11219. int status = $lt_dlunknown;
  11220. if (self)
  11221. {
  11222. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11223. else
  11224. {
  11225. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11226. else puts (dlerror ());
  11227. }
  11228. /* dlclose (self); */
  11229. }
  11230. else
  11231. puts (dlerror ());
  11232. return status;
  11233. }
  11234. _LT_EOF
  11235. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11236. (eval $ac_link) 2>&5
  11237. ac_status=$?
  11238. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11239. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11240. (./conftest; exit; ) >&5 2>/dev/null
  11241. lt_status=$?
  11242. case x$lt_status in
  11243. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11244. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11245. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11246. esac
  11247. else :
  11248. # compilation failed
  11249. lt_cv_dlopen_self_static=no
  11250. fi
  11251. fi
  11252. rm -fr conftest*
  11253. fi
  11254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11255. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11256. fi
  11257. CPPFLAGS=$save_CPPFLAGS
  11258. LDFLAGS=$save_LDFLAGS
  11259. LIBS=$save_LIBS
  11260. ;;
  11261. esac
  11262. case $lt_cv_dlopen_self in
  11263. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11264. *) enable_dlopen_self=unknown ;;
  11265. esac
  11266. case $lt_cv_dlopen_self_static in
  11267. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11268. *) enable_dlopen_self_static=unknown ;;
  11269. esac
  11270. fi
  11271. striplib=
  11272. old_striplib=
  11273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11274. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11275. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11276. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11277. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11279. $as_echo "yes" >&6; }
  11280. else
  11281. # FIXME - insert some real tests, host_os isn't really good enough
  11282. case $host_os in
  11283. darwin*)
  11284. if test -n "$STRIP"; then
  11285. striplib="$STRIP -x"
  11286. old_striplib="$STRIP -S"
  11287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11288. $as_echo "yes" >&6; }
  11289. else
  11290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11291. $as_echo "no" >&6; }
  11292. fi
  11293. ;;
  11294. *)
  11295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11296. $as_echo "no" >&6; }
  11297. ;;
  11298. esac
  11299. fi
  11300. # Report what library types will actually be built
  11301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11302. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11304. $as_echo "$can_build_shared" >&6; }
  11305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11306. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11307. test no = "$can_build_shared" && enable_shared=no
  11308. # On AIX, shared libraries and static libraries use the same namespace, and
  11309. # are all built from PIC.
  11310. case $host_os in
  11311. aix3*)
  11312. test yes = "$enable_shared" && enable_static=no
  11313. if test -n "$RANLIB"; then
  11314. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11315. postinstall_cmds='$RANLIB $lib'
  11316. fi
  11317. ;;
  11318. aix[4-9]*)
  11319. if test ia64 != "$host_cpu"; then
  11320. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11321. yes,aix,yes) ;; # shared object as lib.so file only
  11322. yes,svr4,*) ;; # shared object as lib.so archive member only
  11323. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11324. esac
  11325. fi
  11326. ;;
  11327. esac
  11328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11329. $as_echo "$enable_shared" >&6; }
  11330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11331. $as_echo_n "checking whether to build static libraries... " >&6; }
  11332. # Make sure either enable_shared or enable_static is yes.
  11333. test yes = "$enable_shared" || enable_static=yes
  11334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11335. $as_echo "$enable_static" >&6; }
  11336. fi
  11337. ac_ext=c
  11338. ac_cpp='$CPP $CPPFLAGS'
  11339. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11340. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11341. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11342. CC=$lt_save_CC
  11343. ac_config_commands="$ac_config_commands libtool"
  11344. # Only expand once:
  11345. ac_ext=c
  11346. ac_cpp='$CPP $CPPFLAGS'
  11347. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11348. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11349. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11350. if test -n "$ac_tool_prefix"; then
  11351. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11352. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11354. $as_echo_n "checking for $ac_word... " >&6; }
  11355. if ${ac_cv_prog_CC+:} false; then :
  11356. $as_echo_n "(cached) " >&6
  11357. else
  11358. if test -n "$CC"; then
  11359. ac_cv_prog_CC="$CC" # Let the user override the test.
  11360. else
  11361. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11362. for as_dir in $PATH
  11363. do
  11364. IFS=$as_save_IFS
  11365. test -z "$as_dir" && as_dir=.
  11366. for ac_exec_ext in '' $ac_executable_extensions; do
  11367. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11368. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11369. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11370. break 2
  11371. fi
  11372. done
  11373. done
  11374. IFS=$as_save_IFS
  11375. fi
  11376. fi
  11377. CC=$ac_cv_prog_CC
  11378. if test -n "$CC"; then
  11379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11380. $as_echo "$CC" >&6; }
  11381. else
  11382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11383. $as_echo "no" >&6; }
  11384. fi
  11385. fi
  11386. if test -z "$ac_cv_prog_CC"; then
  11387. ac_ct_CC=$CC
  11388. # Extract the first word of "gcc", so it can be a program name with args.
  11389. set dummy gcc; ac_word=$2
  11390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11391. $as_echo_n "checking for $ac_word... " >&6; }
  11392. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  11393. $as_echo_n "(cached) " >&6
  11394. else
  11395. if test -n "$ac_ct_CC"; then
  11396. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11397. else
  11398. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11399. for as_dir in $PATH
  11400. do
  11401. IFS=$as_save_IFS
  11402. test -z "$as_dir" && as_dir=.
  11403. for ac_exec_ext in '' $ac_executable_extensions; do
  11404. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11405. ac_cv_prog_ac_ct_CC="gcc"
  11406. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11407. break 2
  11408. fi
  11409. done
  11410. done
  11411. IFS=$as_save_IFS
  11412. fi
  11413. fi
  11414. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11415. if test -n "$ac_ct_CC"; then
  11416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11417. $as_echo "$ac_ct_CC" >&6; }
  11418. else
  11419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11420. $as_echo "no" >&6; }
  11421. fi
  11422. if test "x$ac_ct_CC" = x; then
  11423. CC=""
  11424. else
  11425. case $cross_compiling:$ac_tool_warned in
  11426. yes:)
  11427. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11428. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11429. ac_tool_warned=yes ;;
  11430. esac
  11431. CC=$ac_ct_CC
  11432. fi
  11433. else
  11434. CC="$ac_cv_prog_CC"
  11435. fi
  11436. if test -z "$CC"; then
  11437. if test -n "$ac_tool_prefix"; then
  11438. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11439. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11441. $as_echo_n "checking for $ac_word... " >&6; }
  11442. if ${ac_cv_prog_CC+:} false; then :
  11443. $as_echo_n "(cached) " >&6
  11444. else
  11445. if test -n "$CC"; then
  11446. ac_cv_prog_CC="$CC" # Let the user override the test.
  11447. else
  11448. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11449. for as_dir in $PATH
  11450. do
  11451. IFS=$as_save_IFS
  11452. test -z "$as_dir" && as_dir=.
  11453. for ac_exec_ext in '' $ac_executable_extensions; do
  11454. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11455. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11456. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11457. break 2
  11458. fi
  11459. done
  11460. done
  11461. IFS=$as_save_IFS
  11462. fi
  11463. fi
  11464. CC=$ac_cv_prog_CC
  11465. if test -n "$CC"; then
  11466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11467. $as_echo "$CC" >&6; }
  11468. else
  11469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11470. $as_echo "no" >&6; }
  11471. fi
  11472. fi
  11473. fi
  11474. if test -z "$CC"; then
  11475. # Extract the first word of "cc", so it can be a program name with args.
  11476. set dummy cc; ac_word=$2
  11477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11478. $as_echo_n "checking for $ac_word... " >&6; }
  11479. if ${ac_cv_prog_CC+:} false; then :
  11480. $as_echo_n "(cached) " >&6
  11481. else
  11482. if test -n "$CC"; then
  11483. ac_cv_prog_CC="$CC" # Let the user override the test.
  11484. else
  11485. ac_prog_rejected=no
  11486. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11487. for as_dir in $PATH
  11488. do
  11489. IFS=$as_save_IFS
  11490. test -z "$as_dir" && as_dir=.
  11491. for ac_exec_ext in '' $ac_executable_extensions; do
  11492. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11493. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11494. ac_prog_rejected=yes
  11495. continue
  11496. fi
  11497. ac_cv_prog_CC="cc"
  11498. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11499. break 2
  11500. fi
  11501. done
  11502. done
  11503. IFS=$as_save_IFS
  11504. if test $ac_prog_rejected = yes; then
  11505. # We found a bogon in the path, so make sure we never use it.
  11506. set dummy $ac_cv_prog_CC
  11507. shift
  11508. if test $# != 0; then
  11509. # We chose a different compiler from the bogus one.
  11510. # However, it has the same basename, so the bogon will be chosen
  11511. # first if we set CC to just the basename; use the full file name.
  11512. shift
  11513. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  11514. fi
  11515. fi
  11516. fi
  11517. fi
  11518. CC=$ac_cv_prog_CC
  11519. if test -n "$CC"; then
  11520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11521. $as_echo "$CC" >&6; }
  11522. else
  11523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11524. $as_echo "no" >&6; }
  11525. fi
  11526. fi
  11527. if test -z "$CC"; then
  11528. if test -n "$ac_tool_prefix"; then
  11529. for ac_prog in cl.exe
  11530. do
  11531. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11532. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11534. $as_echo_n "checking for $ac_word... " >&6; }
  11535. if ${ac_cv_prog_CC+:} false; then :
  11536. $as_echo_n "(cached) " >&6
  11537. else
  11538. if test -n "$CC"; then
  11539. ac_cv_prog_CC="$CC" # Let the user override the test.
  11540. else
  11541. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11542. for as_dir in $PATH
  11543. do
  11544. IFS=$as_save_IFS
  11545. test -z "$as_dir" && as_dir=.
  11546. for ac_exec_ext in '' $ac_executable_extensions; do
  11547. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11548. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11549. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11550. break 2
  11551. fi
  11552. done
  11553. done
  11554. IFS=$as_save_IFS
  11555. fi
  11556. fi
  11557. CC=$ac_cv_prog_CC
  11558. if test -n "$CC"; then
  11559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11560. $as_echo "$CC" >&6; }
  11561. else
  11562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11563. $as_echo "no" >&6; }
  11564. fi
  11565. test -n "$CC" && break
  11566. done
  11567. fi
  11568. if test -z "$CC"; then
  11569. ac_ct_CC=$CC
  11570. for ac_prog in cl.exe
  11571. do
  11572. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11573. set dummy $ac_prog; ac_word=$2
  11574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11575. $as_echo_n "checking for $ac_word... " >&6; }
  11576. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  11577. $as_echo_n "(cached) " >&6
  11578. else
  11579. if test -n "$ac_ct_CC"; then
  11580. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11581. else
  11582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11583. for as_dir in $PATH
  11584. do
  11585. IFS=$as_save_IFS
  11586. test -z "$as_dir" && as_dir=.
  11587. for ac_exec_ext in '' $ac_executable_extensions; do
  11588. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11589. ac_cv_prog_ac_ct_CC="$ac_prog"
  11590. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11591. break 2
  11592. fi
  11593. done
  11594. done
  11595. IFS=$as_save_IFS
  11596. fi
  11597. fi
  11598. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11599. if test -n "$ac_ct_CC"; then
  11600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11601. $as_echo "$ac_ct_CC" >&6; }
  11602. else
  11603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11604. $as_echo "no" >&6; }
  11605. fi
  11606. test -n "$ac_ct_CC" && break
  11607. done
  11608. if test "x$ac_ct_CC" = x; then
  11609. CC=""
  11610. else
  11611. case $cross_compiling:$ac_tool_warned in
  11612. yes:)
  11613. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11614. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11615. ac_tool_warned=yes ;;
  11616. esac
  11617. CC=$ac_ct_CC
  11618. fi
  11619. fi
  11620. fi
  11621. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11622. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11623. as_fn_error $? "no acceptable C compiler found in \$PATH
  11624. See \`config.log' for more details" "$LINENO" 5; }
  11625. # Provide some information about the compiler.
  11626. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11627. set X $ac_compile
  11628. ac_compiler=$2
  11629. for ac_option in --version -v -V -qversion; do
  11630. { { ac_try="$ac_compiler $ac_option >&5"
  11631. case "(($ac_try" in
  11632. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11633. *) ac_try_echo=$ac_try;;
  11634. esac
  11635. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11636. $as_echo "$ac_try_echo"; } >&5
  11637. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11638. ac_status=$?
  11639. if test -s conftest.err; then
  11640. sed '10a\
  11641. ... rest of stderr output deleted ...
  11642. 10q' conftest.err >conftest.er1
  11643. cat conftest.er1 >&5
  11644. fi
  11645. rm -f conftest.er1 conftest.err
  11646. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11647. test $ac_status = 0; }
  11648. done
  11649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  11650. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  11651. if ${ac_cv_c_compiler_gnu+:} false; then :
  11652. $as_echo_n "(cached) " >&6
  11653. else
  11654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11655. /* end confdefs.h. */
  11656. int
  11657. main ()
  11658. {
  11659. #ifndef __GNUC__
  11660. choke me
  11661. #endif
  11662. ;
  11663. return 0;
  11664. }
  11665. _ACEOF
  11666. if ac_fn_c_try_compile "$LINENO"; then :
  11667. ac_compiler_gnu=yes
  11668. else
  11669. ac_compiler_gnu=no
  11670. fi
  11671. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11672. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11673. fi
  11674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11675. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  11676. if test $ac_compiler_gnu = yes; then
  11677. GCC=yes
  11678. else
  11679. GCC=
  11680. fi
  11681. ac_test_CFLAGS=${CFLAGS+set}
  11682. ac_save_CFLAGS=$CFLAGS
  11683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11684. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  11685. if ${ac_cv_prog_cc_g+:} false; then :
  11686. $as_echo_n "(cached) " >&6
  11687. else
  11688. ac_save_c_werror_flag=$ac_c_werror_flag
  11689. ac_c_werror_flag=yes
  11690. ac_cv_prog_cc_g=no
  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. else
  11704. CFLAGS=""
  11705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11706. /* end confdefs.h. */
  11707. int
  11708. main ()
  11709. {
  11710. ;
  11711. return 0;
  11712. }
  11713. _ACEOF
  11714. if ac_fn_c_try_compile "$LINENO"; then :
  11715. else
  11716. ac_c_werror_flag=$ac_save_c_werror_flag
  11717. CFLAGS="-g"
  11718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11719. /* end confdefs.h. */
  11720. int
  11721. main ()
  11722. {
  11723. ;
  11724. return 0;
  11725. }
  11726. _ACEOF
  11727. if ac_fn_c_try_compile "$LINENO"; then :
  11728. ac_cv_prog_cc_g=yes
  11729. fi
  11730. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11731. fi
  11732. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11733. fi
  11734. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11735. ac_c_werror_flag=$ac_save_c_werror_flag
  11736. fi
  11737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11738. $as_echo "$ac_cv_prog_cc_g" >&6; }
  11739. if test "$ac_test_CFLAGS" = set; then
  11740. CFLAGS=$ac_save_CFLAGS
  11741. elif test $ac_cv_prog_cc_g = yes; then
  11742. if test "$GCC" = yes; then
  11743. CFLAGS="-g -O2"
  11744. else
  11745. CFLAGS="-g"
  11746. fi
  11747. else
  11748. if test "$GCC" = yes; then
  11749. CFLAGS="-O2"
  11750. else
  11751. CFLAGS=
  11752. fi
  11753. fi
  11754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  11755. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  11756. if ${ac_cv_prog_cc_c89+:} false; then :
  11757. $as_echo_n "(cached) " >&6
  11758. else
  11759. ac_cv_prog_cc_c89=no
  11760. ac_save_CC=$CC
  11761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11762. /* end confdefs.h. */
  11763. #include <stdarg.h>
  11764. #include <stdio.h>
  11765. struct stat;
  11766. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  11767. struct buf { int x; };
  11768. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  11769. static char *e (p, i)
  11770. char **p;
  11771. int i;
  11772. {
  11773. return p[i];
  11774. }
  11775. static char *f (char * (*g) (char **, int), char **p, ...)
  11776. {
  11777. char *s;
  11778. va_list v;
  11779. va_start (v,p);
  11780. s = g (p, va_arg (v,int));
  11781. va_end (v);
  11782. return s;
  11783. }
  11784. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  11785. function prototypes and stuff, but not '\xHH' hex character constants.
  11786. These don't provoke an error unfortunately, instead are silently treated
  11787. as 'x'. The following induces an error, until -std is added to get
  11788. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  11789. array size at least. It's necessary to write '\x00'==0 to get something
  11790. that's true only with -std. */
  11791. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  11792. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  11793. inside strings and character constants. */
  11794. #define FOO(x) 'x'
  11795. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  11796. int test (int i, double x);
  11797. struct s1 {int (*f) (int a);};
  11798. struct s2 {int (*f) (double a);};
  11799. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  11800. int argc;
  11801. char **argv;
  11802. int
  11803. main ()
  11804. {
  11805. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  11806. ;
  11807. return 0;
  11808. }
  11809. _ACEOF
  11810. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  11811. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11812. do
  11813. CC="$ac_save_CC $ac_arg"
  11814. if ac_fn_c_try_compile "$LINENO"; then :
  11815. ac_cv_prog_cc_c89=$ac_arg
  11816. fi
  11817. rm -f core conftest.err conftest.$ac_objext
  11818. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11819. done
  11820. rm -f conftest.$ac_ext
  11821. CC=$ac_save_CC
  11822. fi
  11823. # AC_CACHE_VAL
  11824. case "x$ac_cv_prog_cc_c89" in
  11825. x)
  11826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11827. $as_echo "none needed" >&6; } ;;
  11828. xno)
  11829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11830. $as_echo "unsupported" >&6; } ;;
  11831. *)
  11832. CC="$CC $ac_cv_prog_cc_c89"
  11833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11834. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  11835. esac
  11836. if test "x$ac_cv_prog_cc_c89" != xno; then :
  11837. fi
  11838. ac_ext=c
  11839. ac_cpp='$CPP $CPPFLAGS'
  11840. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11841. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11842. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11843. ac_ext=c
  11844. ac_cpp='$CPP $CPPFLAGS'
  11845. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11846. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11847. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  11849. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  11850. if ${am_cv_prog_cc_c_o+:} false; then :
  11851. $as_echo_n "(cached) " >&6
  11852. else
  11853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11854. /* end confdefs.h. */
  11855. int
  11856. main ()
  11857. {
  11858. ;
  11859. return 0;
  11860. }
  11861. _ACEOF
  11862. # Make sure it works both with $CC and with simple cc.
  11863. # Following AC_PROG_CC_C_O, we do the test twice because some
  11864. # compilers refuse to overwrite an existing .o file with -o,
  11865. # though they will create one.
  11866. am_cv_prog_cc_c_o=yes
  11867. for am_i in 1 2; do
  11868. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  11869. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  11870. ac_status=$?
  11871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11872. (exit $ac_status); } \
  11873. && test -f conftest2.$ac_objext; then
  11874. : OK
  11875. else
  11876. am_cv_prog_cc_c_o=no
  11877. break
  11878. fi
  11879. done
  11880. rm -f core conftest*
  11881. unset am_i
  11882. fi
  11883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  11884. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  11885. if test "$am_cv_prog_cc_c_o" != yes; then
  11886. # Losing compiler, so override with the script.
  11887. # FIXME: It is wrong to rewrite CC.
  11888. # But if we don't then we get into trouble of one sort or another.
  11889. # A longer-term fix would be to have automake use am__CC in this case,
  11890. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  11891. CC="$am_aux_dir/compile $CC"
  11892. fi
  11893. ac_ext=c
  11894. ac_cpp='$CPP $CPPFLAGS'
  11895. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11896. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11897. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11898. depcc="$CC" am_compiler_list=
  11899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  11900. $as_echo_n "checking dependency style of $depcc... " >&6; }
  11901. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  11902. $as_echo_n "(cached) " >&6
  11903. else
  11904. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  11905. # We make a subdir and do the tests there. Otherwise we can end up
  11906. # making bogus files that we don't know about and never remove. For
  11907. # instance it was reported that on HP-UX the gcc test will end up
  11908. # making a dummy file named 'D' -- because '-MD' means "put the output
  11909. # in D".
  11910. rm -rf conftest.dir
  11911. mkdir conftest.dir
  11912. # Copy depcomp to subdir because otherwise we won't find it if we're
  11913. # using a relative directory.
  11914. cp "$am_depcomp" conftest.dir
  11915. cd conftest.dir
  11916. # We will build objects and dependencies in a subdirectory because
  11917. # it helps to detect inapplicable dependency modes. For instance
  11918. # both Tru64's cc and ICC support -MD to output dependencies as a
  11919. # side effect of compilation, but ICC will put the dependencies in
  11920. # the current directory while Tru64 will put them in the object
  11921. # directory.
  11922. mkdir sub
  11923. am_cv_CC_dependencies_compiler_type=none
  11924. if test "$am_compiler_list" = ""; then
  11925. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  11926. fi
  11927. am__universal=false
  11928. case " $depcc " in #(
  11929. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  11930. esac
  11931. for depmode in $am_compiler_list; do
  11932. # Setup a source with many dependencies, because some compilers
  11933. # like to wrap large dependency lists on column 80 (with \), and
  11934. # we should not choose a depcomp mode which is confused by this.
  11935. #
  11936. # We need to recreate these files for each test, as the compiler may
  11937. # overwrite some of them when testing with obscure command lines.
  11938. # This happens at least with the AIX C compiler.
  11939. : > sub/conftest.c
  11940. for i in 1 2 3 4 5 6; do
  11941. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  11942. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  11943. # Solaris 10 /bin/sh.
  11944. echo '/* dummy */' > sub/conftst$i.h
  11945. done
  11946. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  11947. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  11948. # mode. It turns out that the SunPro C++ compiler does not properly
  11949. # handle '-M -o', and we need to detect this. Also, some Intel
  11950. # versions had trouble with output in subdirs.
  11951. am__obj=sub/conftest.${OBJEXT-o}
  11952. am__minus_obj="-o $am__obj"
  11953. case $depmode in
  11954. gcc)
  11955. # This depmode causes a compiler race in universal mode.
  11956. test "$am__universal" = false || continue
  11957. ;;
  11958. nosideeffect)
  11959. # After this tag, mechanisms are not by side-effect, so they'll
  11960. # only be used when explicitly requested.
  11961. if test "x$enable_dependency_tracking" = xyes; then
  11962. continue
  11963. else
  11964. break
  11965. fi
  11966. ;;
  11967. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  11968. # This compiler won't grok '-c -o', but also, the minuso test has
  11969. # not run yet. These depmodes are late enough in the game, and
  11970. # so weak that their functioning should not be impacted.
  11971. am__obj=conftest.${OBJEXT-o}
  11972. am__minus_obj=
  11973. ;;
  11974. none) break ;;
  11975. esac
  11976. if depmode=$depmode \
  11977. source=sub/conftest.c object=$am__obj \
  11978. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  11979. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  11980. >/dev/null 2>conftest.err &&
  11981. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  11982. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  11983. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  11984. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  11985. # icc doesn't choke on unknown options, it will just issue warnings
  11986. # or remarks (even with -Werror). So we grep stderr for any message
  11987. # that says an option was ignored or not supported.
  11988. # When given -MP, icc 7.0 and 7.1 complain thusly:
  11989. # icc: Command line warning: ignoring option '-M'; no argument required
  11990. # The diagnosis changed in icc 8.0:
  11991. # icc: Command line remark: option '-MP' not supported
  11992. if (grep 'ignoring option' conftest.err ||
  11993. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  11994. am_cv_CC_dependencies_compiler_type=$depmode
  11995. break
  11996. fi
  11997. fi
  11998. done
  11999. cd ..
  12000. rm -rf conftest.dir
  12001. else
  12002. am_cv_CC_dependencies_compiler_type=none
  12003. fi
  12004. fi
  12005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  12006. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  12007. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  12008. if
  12009. test "x$enable_dependency_tracking" != xno \
  12010. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  12011. am__fastdepCC_TRUE=
  12012. am__fastdepCC_FALSE='#'
  12013. else
  12014. am__fastdepCC_TRUE='#'
  12015. am__fastdepCC_FALSE=
  12016. fi
  12017. ac_ext=cpp
  12018. ac_cpp='$CXXCPP $CPPFLAGS'
  12019. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12020. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12021. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12022. if test -z "$CXX"; then
  12023. if test -n "$CCC"; then
  12024. CXX=$CCC
  12025. else
  12026. if test -n "$ac_tool_prefix"; then
  12027. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  12028. do
  12029. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12030. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12032. $as_echo_n "checking for $ac_word... " >&6; }
  12033. if ${ac_cv_prog_CXX+:} false; then :
  12034. $as_echo_n "(cached) " >&6
  12035. else
  12036. if test -n "$CXX"; then
  12037. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12038. else
  12039. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12040. for as_dir in $PATH
  12041. do
  12042. IFS=$as_save_IFS
  12043. test -z "$as_dir" && as_dir=.
  12044. for ac_exec_ext in '' $ac_executable_extensions; do
  12045. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12046. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12047. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12048. break 2
  12049. fi
  12050. done
  12051. done
  12052. IFS=$as_save_IFS
  12053. fi
  12054. fi
  12055. CXX=$ac_cv_prog_CXX
  12056. if test -n "$CXX"; then
  12057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12058. $as_echo "$CXX" >&6; }
  12059. else
  12060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12061. $as_echo "no" >&6; }
  12062. fi
  12063. test -n "$CXX" && break
  12064. done
  12065. fi
  12066. if test -z "$CXX"; then
  12067. ac_ct_CXX=$CXX
  12068. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  12069. do
  12070. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12071. set dummy $ac_prog; ac_word=$2
  12072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12073. $as_echo_n "checking for $ac_word... " >&6; }
  12074. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  12075. $as_echo_n "(cached) " >&6
  12076. else
  12077. if test -n "$ac_ct_CXX"; then
  12078. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12079. else
  12080. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12081. for as_dir in $PATH
  12082. do
  12083. IFS=$as_save_IFS
  12084. test -z "$as_dir" && as_dir=.
  12085. for ac_exec_ext in '' $ac_executable_extensions; do
  12086. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12087. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12088. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12089. break 2
  12090. fi
  12091. done
  12092. done
  12093. IFS=$as_save_IFS
  12094. fi
  12095. fi
  12096. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12097. if test -n "$ac_ct_CXX"; then
  12098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12099. $as_echo "$ac_ct_CXX" >&6; }
  12100. else
  12101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12102. $as_echo "no" >&6; }
  12103. fi
  12104. test -n "$ac_ct_CXX" && break
  12105. done
  12106. if test "x$ac_ct_CXX" = x; then
  12107. CXX="g++"
  12108. else
  12109. case $cross_compiling:$ac_tool_warned in
  12110. yes:)
  12111. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12112. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12113. ac_tool_warned=yes ;;
  12114. esac
  12115. CXX=$ac_ct_CXX
  12116. fi
  12117. fi
  12118. fi
  12119. fi
  12120. # Provide some information about the compiler.
  12121. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12122. set X $ac_compile
  12123. ac_compiler=$2
  12124. for ac_option in --version -v -V -qversion; do
  12125. { { ac_try="$ac_compiler $ac_option >&5"
  12126. case "(($ac_try" in
  12127. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12128. *) ac_try_echo=$ac_try;;
  12129. esac
  12130. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12131. $as_echo "$ac_try_echo"; } >&5
  12132. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12133. ac_status=$?
  12134. if test -s conftest.err; then
  12135. sed '10a\
  12136. ... rest of stderr output deleted ...
  12137. 10q' conftest.err >conftest.er1
  12138. cat conftest.er1 >&5
  12139. fi
  12140. rm -f conftest.er1 conftest.err
  12141. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12142. test $ac_status = 0; }
  12143. done
  12144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  12145. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  12146. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  12147. $as_echo_n "(cached) " >&6
  12148. else
  12149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12150. /* end confdefs.h. */
  12151. int
  12152. main ()
  12153. {
  12154. #ifndef __GNUC__
  12155. choke me
  12156. #endif
  12157. ;
  12158. return 0;
  12159. }
  12160. _ACEOF
  12161. if ac_fn_cxx_try_compile "$LINENO"; then :
  12162. ac_compiler_gnu=yes
  12163. else
  12164. ac_compiler_gnu=no
  12165. fi
  12166. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12167. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12168. fi
  12169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12170. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  12171. if test $ac_compiler_gnu = yes; then
  12172. GXX=yes
  12173. else
  12174. GXX=
  12175. fi
  12176. ac_test_CXXFLAGS=${CXXFLAGS+set}
  12177. ac_save_CXXFLAGS=$CXXFLAGS
  12178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12179. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  12180. if ${ac_cv_prog_cxx_g+:} false; then :
  12181. $as_echo_n "(cached) " >&6
  12182. else
  12183. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12184. ac_cxx_werror_flag=yes
  12185. ac_cv_prog_cxx_g=no
  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. else
  12199. CXXFLAGS=""
  12200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12201. /* end confdefs.h. */
  12202. int
  12203. main ()
  12204. {
  12205. ;
  12206. return 0;
  12207. }
  12208. _ACEOF
  12209. if ac_fn_cxx_try_compile "$LINENO"; then :
  12210. else
  12211. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12212. CXXFLAGS="-g"
  12213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12214. /* end confdefs.h. */
  12215. int
  12216. main ()
  12217. {
  12218. ;
  12219. return 0;
  12220. }
  12221. _ACEOF
  12222. if ac_fn_cxx_try_compile "$LINENO"; then :
  12223. ac_cv_prog_cxx_g=yes
  12224. fi
  12225. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12226. fi
  12227. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12228. fi
  12229. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12230. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12231. fi
  12232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12233. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  12234. if test "$ac_test_CXXFLAGS" = set; then
  12235. CXXFLAGS=$ac_save_CXXFLAGS
  12236. elif test $ac_cv_prog_cxx_g = yes; then
  12237. if test "$GXX" = yes; then
  12238. CXXFLAGS="-g -O2"
  12239. else
  12240. CXXFLAGS="-g"
  12241. fi
  12242. else
  12243. if test "$GXX" = yes; then
  12244. CXXFLAGS="-O2"
  12245. else
  12246. CXXFLAGS=
  12247. fi
  12248. fi
  12249. ac_ext=c
  12250. ac_cpp='$CPP $CPPFLAGS'
  12251. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12252. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12253. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12254. depcc="$CXX" am_compiler_list=
  12255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  12256. $as_echo_n "checking dependency style of $depcc... " >&6; }
  12257. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  12258. $as_echo_n "(cached) " >&6
  12259. else
  12260. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  12261. # We make a subdir and do the tests there. Otherwise we can end up
  12262. # making bogus files that we don't know about and never remove. For
  12263. # instance it was reported that on HP-UX the gcc test will end up
  12264. # making a dummy file named 'D' -- because '-MD' means "put the output
  12265. # in D".
  12266. rm -rf conftest.dir
  12267. mkdir conftest.dir
  12268. # Copy depcomp to subdir because otherwise we won't find it if we're
  12269. # using a relative directory.
  12270. cp "$am_depcomp" conftest.dir
  12271. cd conftest.dir
  12272. # We will build objects and dependencies in a subdirectory because
  12273. # it helps to detect inapplicable dependency modes. For instance
  12274. # both Tru64's cc and ICC support -MD to output dependencies as a
  12275. # side effect of compilation, but ICC will put the dependencies in
  12276. # the current directory while Tru64 will put them in the object
  12277. # directory.
  12278. mkdir sub
  12279. am_cv_CXX_dependencies_compiler_type=none
  12280. if test "$am_compiler_list" = ""; then
  12281. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  12282. fi
  12283. am__universal=false
  12284. case " $depcc " in #(
  12285. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  12286. esac
  12287. for depmode in $am_compiler_list; do
  12288. # Setup a source with many dependencies, because some compilers
  12289. # like to wrap large dependency lists on column 80 (with \), and
  12290. # we should not choose a depcomp mode which is confused by this.
  12291. #
  12292. # We need to recreate these files for each test, as the compiler may
  12293. # overwrite some of them when testing with obscure command lines.
  12294. # This happens at least with the AIX C compiler.
  12295. : > sub/conftest.c
  12296. for i in 1 2 3 4 5 6; do
  12297. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  12298. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  12299. # Solaris 10 /bin/sh.
  12300. echo '/* dummy */' > sub/conftst$i.h
  12301. done
  12302. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  12303. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  12304. # mode. It turns out that the SunPro C++ compiler does not properly
  12305. # handle '-M -o', and we need to detect this. Also, some Intel
  12306. # versions had trouble with output in subdirs.
  12307. am__obj=sub/conftest.${OBJEXT-o}
  12308. am__minus_obj="-o $am__obj"
  12309. case $depmode in
  12310. gcc)
  12311. # This depmode causes a compiler race in universal mode.
  12312. test "$am__universal" = false || continue
  12313. ;;
  12314. nosideeffect)
  12315. # After this tag, mechanisms are not by side-effect, so they'll
  12316. # only be used when explicitly requested.
  12317. if test "x$enable_dependency_tracking" = xyes; then
  12318. continue
  12319. else
  12320. break
  12321. fi
  12322. ;;
  12323. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  12324. # This compiler won't grok '-c -o', but also, the minuso test has
  12325. # not run yet. These depmodes are late enough in the game, and
  12326. # so weak that their functioning should not be impacted.
  12327. am__obj=conftest.${OBJEXT-o}
  12328. am__minus_obj=
  12329. ;;
  12330. none) break ;;
  12331. esac
  12332. if depmode=$depmode \
  12333. source=sub/conftest.c object=$am__obj \
  12334. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12335. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  12336. >/dev/null 2>conftest.err &&
  12337. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  12338. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12339. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  12340. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12341. # icc doesn't choke on unknown options, it will just issue warnings
  12342. # or remarks (even with -Werror). So we grep stderr for any message
  12343. # that says an option was ignored or not supported.
  12344. # When given -MP, icc 7.0 and 7.1 complain thusly:
  12345. # icc: Command line warning: ignoring option '-M'; no argument required
  12346. # The diagnosis changed in icc 8.0:
  12347. # icc: Command line remark: option '-MP' not supported
  12348. if (grep 'ignoring option' conftest.err ||
  12349. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  12350. am_cv_CXX_dependencies_compiler_type=$depmode
  12351. break
  12352. fi
  12353. fi
  12354. done
  12355. cd ..
  12356. rm -rf conftest.dir
  12357. else
  12358. am_cv_CXX_dependencies_compiler_type=none
  12359. fi
  12360. fi
  12361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  12362. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  12363. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  12364. if
  12365. test "x$enable_dependency_tracking" != xno \
  12366. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  12367. am__fastdepCXX_TRUE=
  12368. am__fastdepCXX_FALSE='#'
  12369. else
  12370. am__fastdepCXX_TRUE='#'
  12371. am__fastdepCXX_FALSE=
  12372. fi
  12373. func_stripname_cnf ()
  12374. {
  12375. case $2 in
  12376. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12377. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12378. esac
  12379. } # func_stripname_cnf
  12380. if test -n "$CXX" && ( test no != "$CXX" &&
  12381. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12382. (test g++ != "$CXX"))); then
  12383. ac_ext=cpp
  12384. ac_cpp='$CXXCPP $CPPFLAGS'
  12385. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12386. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12387. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12389. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  12390. if test -z "$CXXCPP"; then
  12391. if ${ac_cv_prog_CXXCPP+:} false; then :
  12392. $as_echo_n "(cached) " >&6
  12393. else
  12394. # Double quotes because CXXCPP needs to be expanded
  12395. for CXXCPP in "$CXX -E" "/lib/cpp"
  12396. do
  12397. ac_preproc_ok=false
  12398. for ac_cxx_preproc_warn_flag in '' yes
  12399. do
  12400. # Use a header file that comes with gcc, so configuring glibc
  12401. # with a fresh cross-compiler works.
  12402. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12403. # <limits.h> exists even on freestanding compilers.
  12404. # On the NeXT, cc -E runs the code through the compiler's parser,
  12405. # not just through cpp. "Syntax error" is here to catch this case.
  12406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12407. /* end confdefs.h. */
  12408. #ifdef __STDC__
  12409. # include <limits.h>
  12410. #else
  12411. # include <assert.h>
  12412. #endif
  12413. Syntax error
  12414. _ACEOF
  12415. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12416. else
  12417. # Broken: fails on valid input.
  12418. continue
  12419. fi
  12420. rm -f conftest.err conftest.i conftest.$ac_ext
  12421. # OK, works on sane cases. Now check whether nonexistent headers
  12422. # can be detected and how.
  12423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12424. /* end confdefs.h. */
  12425. #include <ac_nonexistent.h>
  12426. _ACEOF
  12427. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12428. # Broken: success on invalid input.
  12429. continue
  12430. else
  12431. # Passes both tests.
  12432. ac_preproc_ok=:
  12433. break
  12434. fi
  12435. rm -f conftest.err conftest.i conftest.$ac_ext
  12436. done
  12437. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12438. rm -f conftest.i conftest.err conftest.$ac_ext
  12439. if $ac_preproc_ok; then :
  12440. break
  12441. fi
  12442. done
  12443. ac_cv_prog_CXXCPP=$CXXCPP
  12444. fi
  12445. CXXCPP=$ac_cv_prog_CXXCPP
  12446. else
  12447. ac_cv_prog_CXXCPP=$CXXCPP
  12448. fi
  12449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12450. $as_echo "$CXXCPP" >&6; }
  12451. ac_preproc_ok=false
  12452. for ac_cxx_preproc_warn_flag in '' yes
  12453. do
  12454. # Use a header file that comes with gcc, so configuring glibc
  12455. # with a fresh cross-compiler works.
  12456. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12457. # <limits.h> exists even on freestanding compilers.
  12458. # On the NeXT, cc -E runs the code through the compiler's parser,
  12459. # not just through cpp. "Syntax error" is here to catch this case.
  12460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12461. /* end confdefs.h. */
  12462. #ifdef __STDC__
  12463. # include <limits.h>
  12464. #else
  12465. # include <assert.h>
  12466. #endif
  12467. Syntax error
  12468. _ACEOF
  12469. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12470. else
  12471. # Broken: fails on valid input.
  12472. continue
  12473. fi
  12474. rm -f conftest.err conftest.i conftest.$ac_ext
  12475. # OK, works on sane cases. Now check whether nonexistent headers
  12476. # can be detected and how.
  12477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12478. /* end confdefs.h. */
  12479. #include <ac_nonexistent.h>
  12480. _ACEOF
  12481. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12482. # Broken: success on invalid input.
  12483. continue
  12484. else
  12485. # Passes both tests.
  12486. ac_preproc_ok=:
  12487. break
  12488. fi
  12489. rm -f conftest.err conftest.i conftest.$ac_ext
  12490. done
  12491. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12492. rm -f conftest.i conftest.err conftest.$ac_ext
  12493. if $ac_preproc_ok; then :
  12494. else
  12495. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12496. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12497. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12498. See \`config.log' for more details" "$LINENO" 5; }
  12499. fi
  12500. ac_ext=c
  12501. ac_cpp='$CPP $CPPFLAGS'
  12502. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12503. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12504. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12505. else
  12506. _lt_caught_CXX_error=yes
  12507. fi
  12508. ac_ext=cpp
  12509. ac_cpp='$CXXCPP $CPPFLAGS'
  12510. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12511. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12512. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12513. archive_cmds_need_lc_CXX=no
  12514. allow_undefined_flag_CXX=
  12515. always_export_symbols_CXX=no
  12516. archive_expsym_cmds_CXX=
  12517. compiler_needs_object_CXX=no
  12518. export_dynamic_flag_spec_CXX=
  12519. hardcode_direct_CXX=no
  12520. hardcode_direct_absolute_CXX=no
  12521. hardcode_libdir_flag_spec_CXX=
  12522. hardcode_libdir_separator_CXX=
  12523. hardcode_minus_L_CXX=no
  12524. hardcode_shlibpath_var_CXX=unsupported
  12525. hardcode_automatic_CXX=no
  12526. inherit_rpath_CXX=no
  12527. module_cmds_CXX=
  12528. module_expsym_cmds_CXX=
  12529. link_all_deplibs_CXX=unknown
  12530. old_archive_cmds_CXX=$old_archive_cmds
  12531. reload_flag_CXX=$reload_flag
  12532. reload_cmds_CXX=$reload_cmds
  12533. no_undefined_flag_CXX=
  12534. whole_archive_flag_spec_CXX=
  12535. enable_shared_with_static_runtimes_CXX=no
  12536. # Source file extension for C++ test sources.
  12537. ac_ext=cpp
  12538. # Object file extension for compiled C++ test sources.
  12539. objext=o
  12540. objext_CXX=$objext
  12541. # No sense in running all these tests if we already determined that
  12542. # the CXX compiler isn't working. Some variables (like enable_shared)
  12543. # are currently assumed to apply to all compilers on this platform,
  12544. # and will be corrupted by setting them based on a non-working compiler.
  12545. if test yes != "$_lt_caught_CXX_error"; then
  12546. # Code to be used in simple compile tests
  12547. lt_simple_compile_test_code="int some_variable = 0;"
  12548. # Code to be used in simple link tests
  12549. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12550. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12551. # If no C compiler was specified, use CC.
  12552. LTCC=${LTCC-"$CC"}
  12553. # If no C compiler flags were specified, use CFLAGS.
  12554. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12555. # Allow CC to be a program name with arguments.
  12556. compiler=$CC
  12557. # save warnings/boilerplate of simple test code
  12558. ac_outfile=conftest.$ac_objext
  12559. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12560. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12561. _lt_compiler_boilerplate=`cat conftest.err`
  12562. $RM conftest*
  12563. ac_outfile=conftest.$ac_objext
  12564. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12565. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12566. _lt_linker_boilerplate=`cat conftest.err`
  12567. $RM -r conftest*
  12568. # Allow CC to be a program name with arguments.
  12569. lt_save_CC=$CC
  12570. lt_save_CFLAGS=$CFLAGS
  12571. lt_save_LD=$LD
  12572. lt_save_GCC=$GCC
  12573. GCC=$GXX
  12574. lt_save_with_gnu_ld=$with_gnu_ld
  12575. lt_save_path_LD=$lt_cv_path_LD
  12576. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12577. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12578. else
  12579. $as_unset lt_cv_prog_gnu_ld
  12580. fi
  12581. if test -n "${lt_cv_path_LDCXX+set}"; then
  12582. lt_cv_path_LD=$lt_cv_path_LDCXX
  12583. else
  12584. $as_unset lt_cv_path_LD
  12585. fi
  12586. test -z "${LDCXX+set}" || LD=$LDCXX
  12587. CC=${CXX-"c++"}
  12588. CFLAGS=$CXXFLAGS
  12589. compiler=$CC
  12590. compiler_CXX=$CC
  12591. func_cc_basename $compiler
  12592. cc_basename=$func_cc_basename_result
  12593. if test -n "$compiler"; then
  12594. # We don't want -fno-exception when compiling C++ code, so set the
  12595. # no_builtin_flag separately
  12596. if test yes = "$GXX"; then
  12597. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12598. else
  12599. lt_prog_compiler_no_builtin_flag_CXX=
  12600. fi
  12601. if test yes = "$GXX"; then
  12602. # Set up default GNU C++ configuration
  12603. # Check whether --with-gnu-ld was given.
  12604. if test "${with_gnu_ld+set}" = set; then :
  12605. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12606. else
  12607. with_gnu_ld=no
  12608. fi
  12609. ac_prog=ld
  12610. if test yes = "$GCC"; then
  12611. # Check if gcc -print-prog-name=ld gives a path.
  12612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12613. $as_echo_n "checking for ld used by $CC... " >&6; }
  12614. case $host in
  12615. *-*-mingw*)
  12616. # gcc leaves a trailing carriage return, which upsets mingw
  12617. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12618. *)
  12619. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12620. esac
  12621. case $ac_prog in
  12622. # Accept absolute paths.
  12623. [\\/]* | ?:[\\/]*)
  12624. re_direlt='/[^/][^/]*/\.\./'
  12625. # Canonicalize the pathname of ld
  12626. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12627. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12628. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12629. done
  12630. test -z "$LD" && LD=$ac_prog
  12631. ;;
  12632. "")
  12633. # If it fails, then pretend we aren't using GCC.
  12634. ac_prog=ld
  12635. ;;
  12636. *)
  12637. # If it is relative, then search for the first ld in PATH.
  12638. with_gnu_ld=unknown
  12639. ;;
  12640. esac
  12641. elif test yes = "$with_gnu_ld"; then
  12642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12643. $as_echo_n "checking for GNU ld... " >&6; }
  12644. else
  12645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12646. $as_echo_n "checking for non-GNU ld... " >&6; }
  12647. fi
  12648. if ${lt_cv_path_LD+:} false; then :
  12649. $as_echo_n "(cached) " >&6
  12650. else
  12651. if test -z "$LD"; then
  12652. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12653. for ac_dir in $PATH; do
  12654. IFS=$lt_save_ifs
  12655. test -z "$ac_dir" && ac_dir=.
  12656. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12657. lt_cv_path_LD=$ac_dir/$ac_prog
  12658. # Check to see if the program is GNU ld. I'd rather use --version,
  12659. # but apparently some variants of GNU ld only accept -v.
  12660. # Break only if it was the GNU/non-GNU ld that we prefer.
  12661. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12662. *GNU* | *'with BFD'*)
  12663. test no != "$with_gnu_ld" && break
  12664. ;;
  12665. *)
  12666. test yes != "$with_gnu_ld" && break
  12667. ;;
  12668. esac
  12669. fi
  12670. done
  12671. IFS=$lt_save_ifs
  12672. else
  12673. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12674. fi
  12675. fi
  12676. LD=$lt_cv_path_LD
  12677. if test -n "$LD"; then
  12678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12679. $as_echo "$LD" >&6; }
  12680. else
  12681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12682. $as_echo "no" >&6; }
  12683. fi
  12684. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12686. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  12687. if ${lt_cv_prog_gnu_ld+:} false; then :
  12688. $as_echo_n "(cached) " >&6
  12689. else
  12690. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12691. case `$LD -v 2>&1 </dev/null` in
  12692. *GNU* | *'with BFD'*)
  12693. lt_cv_prog_gnu_ld=yes
  12694. ;;
  12695. *)
  12696. lt_cv_prog_gnu_ld=no
  12697. ;;
  12698. esac
  12699. fi
  12700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12701. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  12702. with_gnu_ld=$lt_cv_prog_gnu_ld
  12703. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12704. # archiving commands below assume that GNU ld is being used.
  12705. if test yes = "$with_gnu_ld"; then
  12706. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12707. 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'
  12708. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12709. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12710. # If archive_cmds runs LD, not CC, wlarc should be empty
  12711. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12712. # investigate it a little bit more. (MM)
  12713. wlarc='$wl'
  12714. # ancient GNU ld didn't support --whole-archive et. al.
  12715. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12716. $GREP 'no-whole-archive' > /dev/null; then
  12717. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12718. else
  12719. whole_archive_flag_spec_CXX=
  12720. fi
  12721. else
  12722. with_gnu_ld=no
  12723. wlarc=
  12724. # A generic and very simple default shared library creation
  12725. # command for GNU C++ for the case where it uses the native
  12726. # linker, instead of GNU ld. If possible, this setting should
  12727. # overridden to take advantage of the native linker features on
  12728. # the platform it is being used on.
  12729. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12730. fi
  12731. # Commands to make compiler produce verbose output that lists
  12732. # what "hidden" libraries, object files and flags are used when
  12733. # linking a shared library.
  12734. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  12735. else
  12736. GXX=no
  12737. with_gnu_ld=no
  12738. wlarc=
  12739. fi
  12740. # PORTME: fill in a description of your system's C++ link characteristics
  12741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12742. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12743. ld_shlibs_CXX=yes
  12744. case $host_os in
  12745. aix3*)
  12746. # FIXME: insert proper C++ library support
  12747. ld_shlibs_CXX=no
  12748. ;;
  12749. aix[4-9]*)
  12750. if test ia64 = "$host_cpu"; then
  12751. # On IA64, the linker does run time linking by default, so we don't
  12752. # have to do anything special.
  12753. aix_use_runtimelinking=no
  12754. exp_sym_flag='-Bexport'
  12755. no_entry_flag=
  12756. else
  12757. aix_use_runtimelinking=no
  12758. # Test if we are trying to use run time linking or normal
  12759. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12760. # have runtime linking enabled, and use it for executables.
  12761. # For shared libraries, we enable/disable runtime linking
  12762. # depending on the kind of the shared library created -
  12763. # when "with_aix_soname,aix_use_runtimelinking" is:
  12764. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12765. # "aix,yes" lib.so shared, rtl:yes, for executables
  12766. # lib.a static archive
  12767. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12768. # lib.a(lib.so.V) shared, rtl:no, for executables
  12769. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12770. # lib.a(lib.so.V) shared, rtl:no
  12771. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12772. # lib.a static archive
  12773. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12774. for ld_flag in $LDFLAGS; do
  12775. case $ld_flag in
  12776. *-brtl*)
  12777. aix_use_runtimelinking=yes
  12778. break
  12779. ;;
  12780. esac
  12781. done
  12782. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12783. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12784. # so we don't have lib.a shared libs to link our executables.
  12785. # We have to force runtime linking in this case.
  12786. aix_use_runtimelinking=yes
  12787. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12788. fi
  12789. ;;
  12790. esac
  12791. exp_sym_flag='-bexport'
  12792. no_entry_flag='-bnoentry'
  12793. fi
  12794. # When large executables or shared objects are built, AIX ld can
  12795. # have problems creating the table of contents. If linking a library
  12796. # or program results in "error TOC overflow" add -mminimal-toc to
  12797. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12798. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12799. archive_cmds_CXX=''
  12800. hardcode_direct_CXX=yes
  12801. hardcode_direct_absolute_CXX=yes
  12802. hardcode_libdir_separator_CXX=':'
  12803. link_all_deplibs_CXX=yes
  12804. file_list_spec_CXX='$wl-f,'
  12805. case $with_aix_soname,$aix_use_runtimelinking in
  12806. aix,*) ;; # no import file
  12807. svr4,* | *,yes) # use import file
  12808. # The Import File defines what to hardcode.
  12809. hardcode_direct_CXX=no
  12810. hardcode_direct_absolute_CXX=no
  12811. ;;
  12812. esac
  12813. if test yes = "$GXX"; then
  12814. case $host_os in aix4.[012]|aix4.[012].*)
  12815. # We only want to do this on AIX 4.2 and lower, the check
  12816. # below for broken collect2 doesn't work under 4.3+
  12817. collect2name=`$CC -print-prog-name=collect2`
  12818. if test -f "$collect2name" &&
  12819. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12820. then
  12821. # We have reworked collect2
  12822. :
  12823. else
  12824. # We have old collect2
  12825. hardcode_direct_CXX=unsupported
  12826. # It fails to find uninstalled libraries when the uninstalled
  12827. # path is not listed in the libpath. Setting hardcode_minus_L
  12828. # to unsupported forces relinking
  12829. hardcode_minus_L_CXX=yes
  12830. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12831. hardcode_libdir_separator_CXX=
  12832. fi
  12833. esac
  12834. shared_flag='-shared'
  12835. if test yes = "$aix_use_runtimelinking"; then
  12836. shared_flag=$shared_flag' $wl-G'
  12837. fi
  12838. # Need to ensure runtime linking is disabled for the traditional
  12839. # shared library, or the linker may eventually find shared libraries
  12840. # /with/ Import File - we do not want to mix them.
  12841. shared_flag_aix='-shared'
  12842. shared_flag_svr4='-shared $wl-G'
  12843. else
  12844. # not using gcc
  12845. if test ia64 = "$host_cpu"; then
  12846. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12847. # chokes on -Wl,-G. The following line is correct:
  12848. shared_flag='-G'
  12849. else
  12850. if test yes = "$aix_use_runtimelinking"; then
  12851. shared_flag='$wl-G'
  12852. else
  12853. shared_flag='$wl-bM:SRE'
  12854. fi
  12855. shared_flag_aix='$wl-bM:SRE'
  12856. shared_flag_svr4='$wl-G'
  12857. fi
  12858. fi
  12859. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12860. # It seems that -bexpall does not export symbols beginning with
  12861. # underscore (_), so it is better to generate a list of symbols to
  12862. # export.
  12863. always_export_symbols_CXX=yes
  12864. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12865. # Warning - without using the other runtime loading flags (-brtl),
  12866. # -berok will link without error, but may produce a broken library.
  12867. # The "-G" linker flag allows undefined symbols.
  12868. no_undefined_flag_CXX='-bernotok'
  12869. # Determine the default libpath from the value encoded in an empty
  12870. # executable.
  12871. if test set = "${lt_cv_aix_libpath+set}"; then
  12872. aix_libpath=$lt_cv_aix_libpath
  12873. else
  12874. if ${lt_cv_aix_libpath__CXX+:} false; then :
  12875. $as_echo_n "(cached) " >&6
  12876. else
  12877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12878. /* end confdefs.h. */
  12879. int
  12880. main ()
  12881. {
  12882. ;
  12883. return 0;
  12884. }
  12885. _ACEOF
  12886. if ac_fn_cxx_try_link "$LINENO"; then :
  12887. lt_aix_libpath_sed='
  12888. /Import File Strings/,/^$/ {
  12889. /^0/ {
  12890. s/^0 *\([^ ]*\) *$/\1/
  12891. p
  12892. }
  12893. }'
  12894. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12895. # Check for a 64-bit object if we didn't find anything.
  12896. if test -z "$lt_cv_aix_libpath__CXX"; then
  12897. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12898. fi
  12899. fi
  12900. rm -f core conftest.err conftest.$ac_objext \
  12901. conftest$ac_exeext conftest.$ac_ext
  12902. if test -z "$lt_cv_aix_libpath__CXX"; then
  12903. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12904. fi
  12905. fi
  12906. aix_libpath=$lt_cv_aix_libpath__CXX
  12907. fi
  12908. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12909. 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
  12910. else
  12911. if test ia64 = "$host_cpu"; then
  12912. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12913. allow_undefined_flag_CXX="-z nodefs"
  12914. 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"
  12915. else
  12916. # Determine the default libpath from the value encoded in an
  12917. # empty executable.
  12918. if test set = "${lt_cv_aix_libpath+set}"; then
  12919. aix_libpath=$lt_cv_aix_libpath
  12920. else
  12921. if ${lt_cv_aix_libpath__CXX+:} false; then :
  12922. $as_echo_n "(cached) " >&6
  12923. else
  12924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12925. /* end confdefs.h. */
  12926. int
  12927. main ()
  12928. {
  12929. ;
  12930. return 0;
  12931. }
  12932. _ACEOF
  12933. if ac_fn_cxx_try_link "$LINENO"; then :
  12934. lt_aix_libpath_sed='
  12935. /Import File Strings/,/^$/ {
  12936. /^0/ {
  12937. s/^0 *\([^ ]*\) *$/\1/
  12938. p
  12939. }
  12940. }'
  12941. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12942. # Check for a 64-bit object if we didn't find anything.
  12943. if test -z "$lt_cv_aix_libpath__CXX"; then
  12944. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12945. fi
  12946. fi
  12947. rm -f core conftest.err conftest.$ac_objext \
  12948. conftest$ac_exeext conftest.$ac_ext
  12949. if test -z "$lt_cv_aix_libpath__CXX"; then
  12950. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12951. fi
  12952. fi
  12953. aix_libpath=$lt_cv_aix_libpath__CXX
  12954. fi
  12955. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12956. # Warning - without using the other run time loading flags,
  12957. # -berok will link without error, but may produce a broken library.
  12958. no_undefined_flag_CXX=' $wl-bernotok'
  12959. allow_undefined_flag_CXX=' $wl-berok'
  12960. if test yes = "$with_gnu_ld"; then
  12961. # We only use this code for GNU lds that support --whole-archive.
  12962. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12963. else
  12964. # Exported symbols can be pulled into shared objects from archives
  12965. whole_archive_flag_spec_CXX='$convenience'
  12966. fi
  12967. archive_cmds_need_lc_CXX=yes
  12968. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12969. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12970. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12971. if test svr4 != "$with_aix_soname"; then
  12972. # This is similar to how AIX traditionally builds its shared
  12973. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12974. 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'
  12975. fi
  12976. if test aix != "$with_aix_soname"; then
  12977. 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'
  12978. else
  12979. # used by -dlpreopen to get the symbols
  12980. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12981. fi
  12982. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12983. fi
  12984. fi
  12985. ;;
  12986. beos*)
  12987. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12988. allow_undefined_flag_CXX=unsupported
  12989. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12990. # support --undefined. This deserves some investigation. FIXME
  12991. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12992. else
  12993. ld_shlibs_CXX=no
  12994. fi
  12995. ;;
  12996. chorus*)
  12997. case $cc_basename in
  12998. *)
  12999. # FIXME: insert proper C++ library support
  13000. ld_shlibs_CXX=no
  13001. ;;
  13002. esac
  13003. ;;
  13004. cygwin* | mingw* | pw32* | cegcc*)
  13005. case $GXX,$cc_basename in
  13006. ,cl* | no,cl*)
  13007. # Native MSVC
  13008. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13009. # no search path for DLLs.
  13010. hardcode_libdir_flag_spec_CXX=' '
  13011. allow_undefined_flag_CXX=unsupported
  13012. always_export_symbols_CXX=yes
  13013. file_list_spec_CXX='@'
  13014. # Tell ltmain to make .lib files, not .a files.
  13015. libext=lib
  13016. # Tell ltmain to make .dll files, not .so files.
  13017. shrext_cmds=.dll
  13018. # FIXME: Setting linknames here is a bad hack.
  13019. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  13020. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13021. cp "$export_symbols" "$output_objdir/$soname.def";
  13022. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  13023. else
  13024. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  13025. fi~
  13026. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13027. linknames='
  13028. # The linker will not automatically build a static lib if we build a DLL.
  13029. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13030. enable_shared_with_static_runtimes_CXX=yes
  13031. # Don't use ranlib
  13032. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13033. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13034. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13035. case $lt_outputfile in
  13036. *.exe|*.EXE) ;;
  13037. *)
  13038. lt_outputfile=$lt_outputfile.exe
  13039. lt_tool_outputfile=$lt_tool_outputfile.exe
  13040. ;;
  13041. esac~
  13042. func_to_tool_file "$lt_outputfile"~
  13043. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13044. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13045. $RM "$lt_outputfile.manifest";
  13046. fi'
  13047. ;;
  13048. *)
  13049. # g++
  13050. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13051. # as there is no search path for DLLs.
  13052. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13053. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13054. allow_undefined_flag_CXX=unsupported
  13055. always_export_symbols_CXX=no
  13056. enable_shared_with_static_runtimes_CXX=yes
  13057. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13058. 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'
  13059. # If the export-symbols file already is a .def file, use it as
  13060. # is; otherwise, prepend EXPORTS...
  13061. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13062. cp $export_symbols $output_objdir/$soname.def;
  13063. else
  13064. echo EXPORTS > $output_objdir/$soname.def;
  13065. cat $export_symbols >> $output_objdir/$soname.def;
  13066. fi~
  13067. $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'
  13068. else
  13069. ld_shlibs_CXX=no
  13070. fi
  13071. ;;
  13072. esac
  13073. ;;
  13074. darwin* | rhapsody*)
  13075. archive_cmds_need_lc_CXX=no
  13076. hardcode_direct_CXX=no
  13077. hardcode_automatic_CXX=yes
  13078. hardcode_shlibpath_var_CXX=unsupported
  13079. if test yes = "$lt_cv_ld_force_load"; then
  13080. 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\"`'
  13081. else
  13082. whole_archive_flag_spec_CXX=''
  13083. fi
  13084. link_all_deplibs_CXX=yes
  13085. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13086. case $cc_basename in
  13087. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13088. *) _lt_dar_can_shared=$GCC ;;
  13089. esac
  13090. if test yes = "$_lt_dar_can_shared"; then
  13091. output_verbose_link_cmd=func_echo_all
  13092. 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"
  13093. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13094. 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"
  13095. 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"
  13096. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13097. 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"
  13098. 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"
  13099. fi
  13100. else
  13101. ld_shlibs_CXX=no
  13102. fi
  13103. ;;
  13104. os2*)
  13105. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13106. hardcode_minus_L_CXX=yes
  13107. allow_undefined_flag_CXX=unsupported
  13108. shrext_cmds=.dll
  13109. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13110. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13111. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13112. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13113. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13114. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13115. emximp -o $lib $output_objdir/$libname.def'
  13116. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13117. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13118. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13119. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13120. prefix_cmds="$SED"~
  13121. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13122. prefix_cmds="$prefix_cmds -e 1d";
  13123. fi~
  13124. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13125. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13126. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13127. emximp -o $lib $output_objdir/$libname.def'
  13128. old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13129. enable_shared_with_static_runtimes_CXX=yes
  13130. ;;
  13131. dgux*)
  13132. case $cc_basename in
  13133. ec++*)
  13134. # FIXME: insert proper C++ library support
  13135. ld_shlibs_CXX=no
  13136. ;;
  13137. ghcx*)
  13138. # Green Hills C++ Compiler
  13139. # FIXME: insert proper C++ library support
  13140. ld_shlibs_CXX=no
  13141. ;;
  13142. *)
  13143. # FIXME: insert proper C++ library support
  13144. ld_shlibs_CXX=no
  13145. ;;
  13146. esac
  13147. ;;
  13148. freebsd2.*)
  13149. # C++ shared libraries reported to be fairly broken before
  13150. # switch to ELF
  13151. ld_shlibs_CXX=no
  13152. ;;
  13153. freebsd-elf*)
  13154. archive_cmds_need_lc_CXX=no
  13155. ;;
  13156. freebsd* | dragonfly*)
  13157. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13158. # conventions
  13159. ld_shlibs_CXX=yes
  13160. ;;
  13161. haiku*)
  13162. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13163. link_all_deplibs_CXX=yes
  13164. ;;
  13165. hpux9*)
  13166. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13167. hardcode_libdir_separator_CXX=:
  13168. export_dynamic_flag_spec_CXX='$wl-E'
  13169. hardcode_direct_CXX=yes
  13170. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13171. # but as the default
  13172. # location of the library.
  13173. case $cc_basename in
  13174. CC*)
  13175. # FIXME: insert proper C++ library support
  13176. ld_shlibs_CXX=no
  13177. ;;
  13178. aCC*)
  13179. 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'
  13180. # Commands to make compiler produce verbose output that lists
  13181. # what "hidden" libraries, object files and flags are used when
  13182. # linking a shared library.
  13183. #
  13184. # There doesn't appear to be a way to prevent this compiler from
  13185. # explicitly linking system object files so we need to strip them
  13186. # from the output so that they don't get included in the library
  13187. # dependencies.
  13188. 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"'
  13189. ;;
  13190. *)
  13191. if test yes = "$GXX"; then
  13192. 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'
  13193. else
  13194. # FIXME: insert proper C++ library support
  13195. ld_shlibs_CXX=no
  13196. fi
  13197. ;;
  13198. esac
  13199. ;;
  13200. hpux10*|hpux11*)
  13201. if test no = "$with_gnu_ld"; then
  13202. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13203. hardcode_libdir_separator_CXX=:
  13204. case $host_cpu in
  13205. hppa*64*|ia64*)
  13206. ;;
  13207. *)
  13208. export_dynamic_flag_spec_CXX='$wl-E'
  13209. ;;
  13210. esac
  13211. fi
  13212. case $host_cpu in
  13213. hppa*64*|ia64*)
  13214. hardcode_direct_CXX=no
  13215. hardcode_shlibpath_var_CXX=no
  13216. ;;
  13217. *)
  13218. hardcode_direct_CXX=yes
  13219. hardcode_direct_absolute_CXX=yes
  13220. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13221. # but as the default
  13222. # location of the library.
  13223. ;;
  13224. esac
  13225. case $cc_basename in
  13226. CC*)
  13227. # FIXME: insert proper C++ library support
  13228. ld_shlibs_CXX=no
  13229. ;;
  13230. aCC*)
  13231. case $host_cpu in
  13232. hppa*64*)
  13233. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13234. ;;
  13235. ia64*)
  13236. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13237. ;;
  13238. *)
  13239. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13240. ;;
  13241. esac
  13242. # Commands to make compiler produce verbose output that lists
  13243. # what "hidden" libraries, object files and flags are used when
  13244. # linking a shared library.
  13245. #
  13246. # There doesn't appear to be a way to prevent this compiler from
  13247. # explicitly linking system object files so we need to strip them
  13248. # from the output so that they don't get included in the library
  13249. # dependencies.
  13250. 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"'
  13251. ;;
  13252. *)
  13253. if test yes = "$GXX"; then
  13254. if test no = "$with_gnu_ld"; then
  13255. case $host_cpu in
  13256. hppa*64*)
  13257. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13258. ;;
  13259. ia64*)
  13260. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13261. ;;
  13262. *)
  13263. 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'
  13264. ;;
  13265. esac
  13266. fi
  13267. else
  13268. # FIXME: insert proper C++ library support
  13269. ld_shlibs_CXX=no
  13270. fi
  13271. ;;
  13272. esac
  13273. ;;
  13274. interix[3-9]*)
  13275. hardcode_direct_CXX=no
  13276. hardcode_shlibpath_var_CXX=no
  13277. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13278. export_dynamic_flag_spec_CXX='$wl-E'
  13279. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13280. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13281. # default) and relocated if they conflict, which is a slow very memory
  13282. # consuming and fragmenting process. To avoid this, we pick a random,
  13283. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13284. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13285. 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'
  13286. 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'
  13287. ;;
  13288. irix5* | irix6*)
  13289. case $cc_basename in
  13290. CC*)
  13291. # SGI C++
  13292. 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'
  13293. # Archives containing C++ object files must be created using
  13294. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13295. # necessary to make sure instantiated templates are included
  13296. # in the archive.
  13297. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13298. ;;
  13299. *)
  13300. if test yes = "$GXX"; then
  13301. if test no = "$with_gnu_ld"; then
  13302. 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'
  13303. else
  13304. 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'
  13305. fi
  13306. fi
  13307. link_all_deplibs_CXX=yes
  13308. ;;
  13309. esac
  13310. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13311. hardcode_libdir_separator_CXX=:
  13312. inherit_rpath_CXX=yes
  13313. ;;
  13314. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13315. case $cc_basename in
  13316. KCC*)
  13317. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13318. # KCC will only create a shared library if the output file
  13319. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13320. # to its proper name (with version) after linking.
  13321. 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'
  13322. 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'
  13323. # Commands to make compiler produce verbose output that lists
  13324. # what "hidden" libraries, object files and flags are used when
  13325. # linking a shared library.
  13326. #
  13327. # There doesn't appear to be a way to prevent this compiler from
  13328. # explicitly linking system object files so we need to strip them
  13329. # from the output so that they don't get included in the library
  13330. # dependencies.
  13331. 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"'
  13332. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13333. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13334. # Archives containing C++ object files must be created using
  13335. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13336. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13337. ;;
  13338. icpc* | ecpc* )
  13339. # Intel C++
  13340. with_gnu_ld=yes
  13341. # version 8.0 and above of icpc choke on multiply defined symbols
  13342. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13343. # earlier do not add the objects themselves.
  13344. case `$CC -V 2>&1` in
  13345. *"Version 7."*)
  13346. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13347. 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'
  13348. ;;
  13349. *) # Version 8.0 or newer
  13350. tmp_idyn=
  13351. case $host_cpu in
  13352. ia64*) tmp_idyn=' -i_dynamic';;
  13353. esac
  13354. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13355. 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'
  13356. ;;
  13357. esac
  13358. archive_cmds_need_lc_CXX=no
  13359. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13360. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13361. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13362. ;;
  13363. pgCC* | pgcpp*)
  13364. # Portland Group C++ compiler
  13365. case `$CC -V` in
  13366. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13367. prelink_cmds_CXX='tpldir=Template.dir~
  13368. rm -rf $tpldir~
  13369. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13370. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13371. old_archive_cmds_CXX='tpldir=Template.dir~
  13372. rm -rf $tpldir~
  13373. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13374. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13375. $RANLIB $oldlib'
  13376. archive_cmds_CXX='tpldir=Template.dir~
  13377. rm -rf $tpldir~
  13378. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13379. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13380. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13381. rm -rf $tpldir~
  13382. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13383. $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'
  13384. ;;
  13385. *) # Version 6 and above use weak symbols
  13386. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13387. 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'
  13388. ;;
  13389. esac
  13390. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13391. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13392. 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'
  13393. ;;
  13394. cxx*)
  13395. # Compaq C++
  13396. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13397. 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'
  13398. runpath_var=LD_RUN_PATH
  13399. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13400. hardcode_libdir_separator_CXX=:
  13401. # Commands to make compiler produce verbose output that lists
  13402. # what "hidden" libraries, object files and flags are used when
  13403. # linking a shared library.
  13404. #
  13405. # There doesn't appear to be a way to prevent this compiler from
  13406. # explicitly linking system object files so we need to strip them
  13407. # from the output so that they don't get included in the library
  13408. # dependencies.
  13409. 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'
  13410. ;;
  13411. xl* | mpixl* | bgxl*)
  13412. # IBM XL 8.0 on PPC, with GNU ld
  13413. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13414. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13415. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13416. if test yes = "$supports_anon_versioning"; then
  13417. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13418. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13419. echo "local: *; };" >> $output_objdir/$libname.ver~
  13420. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13421. fi
  13422. ;;
  13423. *)
  13424. case `$CC -V 2>&1 | sed 5q` in
  13425. *Sun\ C*)
  13426. # Sun C++ 5.9
  13427. no_undefined_flag_CXX=' -zdefs'
  13428. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13429. 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'
  13430. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13431. 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'
  13432. compiler_needs_object_CXX=yes
  13433. # Not sure whether something based on
  13434. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13435. # would be better.
  13436. output_verbose_link_cmd='func_echo_all'
  13437. # Archives containing C++ object files must be created using
  13438. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13439. # necessary to make sure instantiated templates are included
  13440. # in the archive.
  13441. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13442. ;;
  13443. esac
  13444. ;;
  13445. esac
  13446. ;;
  13447. lynxos*)
  13448. # FIXME: insert proper C++ library support
  13449. ld_shlibs_CXX=no
  13450. ;;
  13451. m88k*)
  13452. # FIXME: insert proper C++ library support
  13453. ld_shlibs_CXX=no
  13454. ;;
  13455. mvs*)
  13456. case $cc_basename in
  13457. cxx*)
  13458. # FIXME: insert proper C++ library support
  13459. ld_shlibs_CXX=no
  13460. ;;
  13461. *)
  13462. # FIXME: insert proper C++ library support
  13463. ld_shlibs_CXX=no
  13464. ;;
  13465. esac
  13466. ;;
  13467. netbsd*)
  13468. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13469. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13470. wlarc=
  13471. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13472. hardcode_direct_CXX=yes
  13473. hardcode_shlibpath_var_CXX=no
  13474. fi
  13475. # Workaround some broken pre-1.5 toolchains
  13476. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13477. ;;
  13478. *nto* | *qnx*)
  13479. ld_shlibs_CXX=yes
  13480. ;;
  13481. openbsd* | bitrig*)
  13482. if test -f /usr/libexec/ld.so; then
  13483. hardcode_direct_CXX=yes
  13484. hardcode_shlibpath_var_CXX=no
  13485. hardcode_direct_absolute_CXX=yes
  13486. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13487. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13488. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13489. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13490. export_dynamic_flag_spec_CXX='$wl-E'
  13491. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13492. fi
  13493. output_verbose_link_cmd=func_echo_all
  13494. else
  13495. ld_shlibs_CXX=no
  13496. fi
  13497. ;;
  13498. osf3* | osf4* | osf5*)
  13499. case $cc_basename in
  13500. KCC*)
  13501. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13502. # KCC will only create a shared library if the output file
  13503. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13504. # to its proper name (with version) after linking.
  13505. 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'
  13506. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13507. hardcode_libdir_separator_CXX=:
  13508. # Archives containing C++ object files must be created using
  13509. # the KAI C++ compiler.
  13510. case $host in
  13511. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13512. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13513. esac
  13514. ;;
  13515. RCC*)
  13516. # Rational C++ 2.4.1
  13517. # FIXME: insert proper C++ library support
  13518. ld_shlibs_CXX=no
  13519. ;;
  13520. cxx*)
  13521. case $host in
  13522. osf3*)
  13523. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13524. 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'
  13525. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13526. ;;
  13527. *)
  13528. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13529. 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'
  13530. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13531. echo "-hidden">> $lib.exp~
  13532. $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~
  13533. $RM $lib.exp'
  13534. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13535. ;;
  13536. esac
  13537. hardcode_libdir_separator_CXX=:
  13538. # Commands to make compiler produce verbose output that lists
  13539. # what "hidden" libraries, object files and flags are used when
  13540. # linking a shared library.
  13541. #
  13542. # There doesn't appear to be a way to prevent this compiler from
  13543. # explicitly linking system object files so we need to strip them
  13544. # from the output so that they don't get included in the library
  13545. # dependencies.
  13546. 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"'
  13547. ;;
  13548. *)
  13549. if test yes,no = "$GXX,$with_gnu_ld"; then
  13550. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13551. case $host in
  13552. osf3*)
  13553. 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'
  13554. ;;
  13555. *)
  13556. 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'
  13557. ;;
  13558. esac
  13559. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13560. hardcode_libdir_separator_CXX=:
  13561. # Commands to make compiler produce verbose output that lists
  13562. # what "hidden" libraries, object files and flags are used when
  13563. # linking a shared library.
  13564. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  13565. else
  13566. # FIXME: insert proper C++ library support
  13567. ld_shlibs_CXX=no
  13568. fi
  13569. ;;
  13570. esac
  13571. ;;
  13572. psos*)
  13573. # FIXME: insert proper C++ library support
  13574. ld_shlibs_CXX=no
  13575. ;;
  13576. sunos4*)
  13577. case $cc_basename in
  13578. CC*)
  13579. # Sun C++ 4.x
  13580. # FIXME: insert proper C++ library support
  13581. ld_shlibs_CXX=no
  13582. ;;
  13583. lcc*)
  13584. # Lucid
  13585. # FIXME: insert proper C++ library support
  13586. ld_shlibs_CXX=no
  13587. ;;
  13588. *)
  13589. # FIXME: insert proper C++ library support
  13590. ld_shlibs_CXX=no
  13591. ;;
  13592. esac
  13593. ;;
  13594. solaris*)
  13595. case $cc_basename in
  13596. CC* | sunCC*)
  13597. # Sun C++ 4.2, 5.x and Centerline C++
  13598. archive_cmds_need_lc_CXX=yes
  13599. no_undefined_flag_CXX=' -zdefs'
  13600. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13601. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13602. $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'
  13603. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13604. hardcode_shlibpath_var_CXX=no
  13605. case $host_os in
  13606. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13607. *)
  13608. # The compiler driver will combine and reorder linker options,
  13609. # but understands '-z linker_flag'.
  13610. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13611. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13612. ;;
  13613. esac
  13614. link_all_deplibs_CXX=yes
  13615. output_verbose_link_cmd='func_echo_all'
  13616. # Archives containing C++ object files must be created using
  13617. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13618. # necessary to make sure instantiated templates are included
  13619. # in the archive.
  13620. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13621. ;;
  13622. gcx*)
  13623. # Green Hills C++ Compiler
  13624. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13625. # The C++ compiler must be used to create the archive.
  13626. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13627. ;;
  13628. *)
  13629. # GNU C++ compiler with Solaris linker
  13630. if test yes,no = "$GXX,$with_gnu_ld"; then
  13631. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13632. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13633. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13634. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13635. $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'
  13636. # Commands to make compiler produce verbose output that lists
  13637. # what "hidden" libraries, object files and flags are used when
  13638. # linking a shared library.
  13639. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  13640. else
  13641. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13642. # platform.
  13643. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13644. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13645. $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'
  13646. # Commands to make compiler produce verbose output that lists
  13647. # what "hidden" libraries, object files and flags are used when
  13648. # linking a shared library.
  13649. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  13650. fi
  13651. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13652. case $host_os in
  13653. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13654. *)
  13655. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13656. ;;
  13657. esac
  13658. fi
  13659. ;;
  13660. esac
  13661. ;;
  13662. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13663. no_undefined_flag_CXX='$wl-z,text'
  13664. archive_cmds_need_lc_CXX=no
  13665. hardcode_shlibpath_var_CXX=no
  13666. runpath_var='LD_RUN_PATH'
  13667. case $cc_basename in
  13668. CC*)
  13669. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13670. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13671. ;;
  13672. *)
  13673. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13674. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13675. ;;
  13676. esac
  13677. ;;
  13678. sysv5* | sco3.2v5* | sco5v6*)
  13679. # Note: We CANNOT use -z defs as we might desire, because we do not
  13680. # link with -lc, and that would cause any symbols used from libc to
  13681. # always be unresolved, which means just about no library would
  13682. # ever link correctly. If we're not using GNU ld we use -z text
  13683. # though, which does catch some bad symbols but isn't as heavy-handed
  13684. # as -z defs.
  13685. no_undefined_flag_CXX='$wl-z,text'
  13686. allow_undefined_flag_CXX='$wl-z,nodefs'
  13687. archive_cmds_need_lc_CXX=no
  13688. hardcode_shlibpath_var_CXX=no
  13689. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13690. hardcode_libdir_separator_CXX=':'
  13691. link_all_deplibs_CXX=yes
  13692. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13693. runpath_var='LD_RUN_PATH'
  13694. case $cc_basename in
  13695. CC*)
  13696. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13697. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13698. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13699. '"$old_archive_cmds_CXX"
  13700. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13701. '"$reload_cmds_CXX"
  13702. ;;
  13703. *)
  13704. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13705. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13706. ;;
  13707. esac
  13708. ;;
  13709. tandem*)
  13710. case $cc_basename in
  13711. NCC*)
  13712. # NonStop-UX NCC 3.20
  13713. # FIXME: insert proper C++ library support
  13714. ld_shlibs_CXX=no
  13715. ;;
  13716. *)
  13717. # FIXME: insert proper C++ library support
  13718. ld_shlibs_CXX=no
  13719. ;;
  13720. esac
  13721. ;;
  13722. vxworks*)
  13723. # FIXME: insert proper C++ library support
  13724. ld_shlibs_CXX=no
  13725. ;;
  13726. *)
  13727. # FIXME: insert proper C++ library support
  13728. ld_shlibs_CXX=no
  13729. ;;
  13730. esac
  13731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13732. $as_echo "$ld_shlibs_CXX" >&6; }
  13733. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13734. GCC_CXX=$GXX
  13735. LD_CXX=$LD
  13736. ## CAVEAT EMPTOR:
  13737. ## There is no encapsulation within the following macros, do not change
  13738. ## the running order or otherwise move them around unless you know exactly
  13739. ## what you are doing...
  13740. # Dependencies to place before and after the object being linked:
  13741. predep_objects_CXX=
  13742. postdep_objects_CXX=
  13743. predeps_CXX=
  13744. postdeps_CXX=
  13745. compiler_lib_search_path_CXX=
  13746. cat > conftest.$ac_ext <<_LT_EOF
  13747. class Foo
  13748. {
  13749. public:
  13750. Foo (void) { a = 0; }
  13751. private:
  13752. int a;
  13753. };
  13754. _LT_EOF
  13755. _lt_libdeps_save_CFLAGS=$CFLAGS
  13756. case "$CC $CFLAGS " in #(
  13757. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13758. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13759. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13760. esac
  13761. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13762. (eval $ac_compile) 2>&5
  13763. ac_status=$?
  13764. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13765. test $ac_status = 0; }; then
  13766. # Parse the compiler output and extract the necessary
  13767. # objects, libraries and library flags.
  13768. # Sentinel used to keep track of whether or not we are before
  13769. # the conftest object file.
  13770. pre_test_object_deps_done=no
  13771. for p in `eval "$output_verbose_link_cmd"`; do
  13772. case $prev$p in
  13773. -L* | -R* | -l*)
  13774. # Some compilers place space between "-{L,R}" and the path.
  13775. # Remove the space.
  13776. if test x-L = "$p" ||
  13777. test x-R = "$p"; then
  13778. prev=$p
  13779. continue
  13780. fi
  13781. # Expand the sysroot to ease extracting the directories later.
  13782. if test -z "$prev"; then
  13783. case $p in
  13784. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13785. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13786. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13787. esac
  13788. fi
  13789. case $p in
  13790. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13791. esac
  13792. if test no = "$pre_test_object_deps_done"; then
  13793. case $prev in
  13794. -L | -R)
  13795. # Internal compiler library paths should come after those
  13796. # provided the user. The postdeps already come after the
  13797. # user supplied libs so there is no need to process them.
  13798. if test -z "$compiler_lib_search_path_CXX"; then
  13799. compiler_lib_search_path_CXX=$prev$p
  13800. else
  13801. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13802. fi
  13803. ;;
  13804. # The "-l" case would never come before the object being
  13805. # linked, so don't bother handling this case.
  13806. esac
  13807. else
  13808. if test -z "$postdeps_CXX"; then
  13809. postdeps_CXX=$prev$p
  13810. else
  13811. postdeps_CXX="${postdeps_CXX} $prev$p"
  13812. fi
  13813. fi
  13814. prev=
  13815. ;;
  13816. *.lto.$objext) ;; # Ignore GCC LTO objects
  13817. *.$objext)
  13818. # This assumes that the test object file only shows up
  13819. # once in the compiler output.
  13820. if test "$p" = "conftest.$objext"; then
  13821. pre_test_object_deps_done=yes
  13822. continue
  13823. fi
  13824. if test no = "$pre_test_object_deps_done"; then
  13825. if test -z "$predep_objects_CXX"; then
  13826. predep_objects_CXX=$p
  13827. else
  13828. predep_objects_CXX="$predep_objects_CXX $p"
  13829. fi
  13830. else
  13831. if test -z "$postdep_objects_CXX"; then
  13832. postdep_objects_CXX=$p
  13833. else
  13834. postdep_objects_CXX="$postdep_objects_CXX $p"
  13835. fi
  13836. fi
  13837. ;;
  13838. *) ;; # Ignore the rest.
  13839. esac
  13840. done
  13841. # Clean up.
  13842. rm -f a.out a.exe
  13843. else
  13844. echo "libtool.m4: error: problem compiling CXX test program"
  13845. fi
  13846. $RM -f confest.$objext
  13847. CFLAGS=$_lt_libdeps_save_CFLAGS
  13848. # PORTME: override above test on systems where it is broken
  13849. case $host_os in
  13850. interix[3-9]*)
  13851. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13852. # hack all around it, let's just trust "g++" to DTRT.
  13853. predep_objects_CXX=
  13854. postdep_objects_CXX=
  13855. postdeps_CXX=
  13856. ;;
  13857. esac
  13858. case " $postdeps_CXX " in
  13859. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13860. esac
  13861. compiler_lib_search_dirs_CXX=
  13862. if test -n "${compiler_lib_search_path_CXX}"; then
  13863. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13864. fi
  13865. lt_prog_compiler_wl_CXX=
  13866. lt_prog_compiler_pic_CXX=
  13867. lt_prog_compiler_static_CXX=
  13868. # C++ specific cases for pic, static, wl, etc.
  13869. if test yes = "$GXX"; then
  13870. lt_prog_compiler_wl_CXX='-Wl,'
  13871. lt_prog_compiler_static_CXX='-static'
  13872. case $host_os in
  13873. aix*)
  13874. # All AIX code is PIC.
  13875. if test ia64 = "$host_cpu"; then
  13876. # AIX 5 now supports IA64 processor
  13877. lt_prog_compiler_static_CXX='-Bstatic'
  13878. fi
  13879. lt_prog_compiler_pic_CXX='-fPIC'
  13880. ;;
  13881. amigaos*)
  13882. case $host_cpu in
  13883. powerpc)
  13884. # see comment about AmigaOS4 .so support
  13885. lt_prog_compiler_pic_CXX='-fPIC'
  13886. ;;
  13887. m68k)
  13888. # FIXME: we need at least 68020 code to build shared libraries, but
  13889. # adding the '-m68020' flag to GCC prevents building anything better,
  13890. # like '-m68040'.
  13891. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13892. ;;
  13893. esac
  13894. ;;
  13895. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13896. # PIC is the default for these OSes.
  13897. ;;
  13898. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13899. # This hack is so that the source file can tell whether it is being
  13900. # built for inclusion in a dll (and should export symbols for example).
  13901. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13902. # (--disable-auto-import) libraries
  13903. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13904. case $host_os in
  13905. os2*)
  13906. lt_prog_compiler_static_CXX='$wl-static'
  13907. ;;
  13908. esac
  13909. ;;
  13910. darwin* | rhapsody*)
  13911. # PIC is the default on this platform
  13912. # Common symbols not allowed in MH_DYLIB files
  13913. lt_prog_compiler_pic_CXX='-fno-common'
  13914. ;;
  13915. *djgpp*)
  13916. # DJGPP does not support shared libraries at all
  13917. lt_prog_compiler_pic_CXX=
  13918. ;;
  13919. haiku*)
  13920. # PIC is the default for Haiku.
  13921. # The "-static" flag exists, but is broken.
  13922. lt_prog_compiler_static_CXX=
  13923. ;;
  13924. interix[3-9]*)
  13925. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13926. # Instead, we relocate shared libraries at runtime.
  13927. ;;
  13928. sysv4*MP*)
  13929. if test -d /usr/nec; then
  13930. lt_prog_compiler_pic_CXX=-Kconform_pic
  13931. fi
  13932. ;;
  13933. hpux*)
  13934. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13935. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13936. # sets the default TLS model and affects inlining.
  13937. case $host_cpu in
  13938. hppa*64*)
  13939. ;;
  13940. *)
  13941. lt_prog_compiler_pic_CXX='-fPIC'
  13942. ;;
  13943. esac
  13944. ;;
  13945. *qnx* | *nto*)
  13946. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13947. # it will coredump.
  13948. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13949. ;;
  13950. *)
  13951. lt_prog_compiler_pic_CXX='-fPIC'
  13952. ;;
  13953. esac
  13954. else
  13955. case $host_os in
  13956. aix[4-9]*)
  13957. # All AIX code is PIC.
  13958. if test ia64 = "$host_cpu"; then
  13959. # AIX 5 now supports IA64 processor
  13960. lt_prog_compiler_static_CXX='-Bstatic'
  13961. else
  13962. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13963. fi
  13964. ;;
  13965. chorus*)
  13966. case $cc_basename in
  13967. cxch68*)
  13968. # Green Hills C++ Compiler
  13969. # _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"
  13970. ;;
  13971. esac
  13972. ;;
  13973. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13974. # This hack is so that the source file can tell whether it is being
  13975. # built for inclusion in a dll (and should export symbols for example).
  13976. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13977. ;;
  13978. dgux*)
  13979. case $cc_basename in
  13980. ec++*)
  13981. lt_prog_compiler_pic_CXX='-KPIC'
  13982. ;;
  13983. ghcx*)
  13984. # Green Hills C++ Compiler
  13985. lt_prog_compiler_pic_CXX='-pic'
  13986. ;;
  13987. *)
  13988. ;;
  13989. esac
  13990. ;;
  13991. freebsd* | dragonfly*)
  13992. # FreeBSD uses GNU C++
  13993. ;;
  13994. hpux9* | hpux10* | hpux11*)
  13995. case $cc_basename in
  13996. CC*)
  13997. lt_prog_compiler_wl_CXX='-Wl,'
  13998. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13999. if test ia64 != "$host_cpu"; then
  14000. lt_prog_compiler_pic_CXX='+Z'
  14001. fi
  14002. ;;
  14003. aCC*)
  14004. lt_prog_compiler_wl_CXX='-Wl,'
  14005. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14006. case $host_cpu in
  14007. hppa*64*|ia64*)
  14008. # +Z the default
  14009. ;;
  14010. *)
  14011. lt_prog_compiler_pic_CXX='+Z'
  14012. ;;
  14013. esac
  14014. ;;
  14015. *)
  14016. ;;
  14017. esac
  14018. ;;
  14019. interix*)
  14020. # This is c89, which is MS Visual C++ (no shared libs)
  14021. # Anyone wants to do a port?
  14022. ;;
  14023. irix5* | irix6* | nonstopux*)
  14024. case $cc_basename in
  14025. CC*)
  14026. lt_prog_compiler_wl_CXX='-Wl,'
  14027. lt_prog_compiler_static_CXX='-non_shared'
  14028. # CC pic flag -KPIC is the default.
  14029. ;;
  14030. *)
  14031. ;;
  14032. esac
  14033. ;;
  14034. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14035. case $cc_basename in
  14036. KCC*)
  14037. # KAI C++ Compiler
  14038. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14039. lt_prog_compiler_pic_CXX='-fPIC'
  14040. ;;
  14041. ecpc* )
  14042. # old Intel C++ for x86_64, which still supported -KPIC.
  14043. lt_prog_compiler_wl_CXX='-Wl,'
  14044. lt_prog_compiler_pic_CXX='-KPIC'
  14045. lt_prog_compiler_static_CXX='-static'
  14046. ;;
  14047. icpc* )
  14048. # Intel C++, used to be incompatible with GCC.
  14049. # ICC 10 doesn't accept -KPIC any more.
  14050. lt_prog_compiler_wl_CXX='-Wl,'
  14051. lt_prog_compiler_pic_CXX='-fPIC'
  14052. lt_prog_compiler_static_CXX='-static'
  14053. ;;
  14054. pgCC* | pgcpp*)
  14055. # Portland Group C++ compiler
  14056. lt_prog_compiler_wl_CXX='-Wl,'
  14057. lt_prog_compiler_pic_CXX='-fpic'
  14058. lt_prog_compiler_static_CXX='-Bstatic'
  14059. ;;
  14060. cxx*)
  14061. # Compaq C++
  14062. # Make sure the PIC flag is empty. It appears that all Alpha
  14063. # Linux and Compaq Tru64 Unix objects are PIC.
  14064. lt_prog_compiler_pic_CXX=
  14065. lt_prog_compiler_static_CXX='-non_shared'
  14066. ;;
  14067. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14068. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14069. lt_prog_compiler_wl_CXX='-Wl,'
  14070. lt_prog_compiler_pic_CXX='-qpic'
  14071. lt_prog_compiler_static_CXX='-qstaticlink'
  14072. ;;
  14073. *)
  14074. case `$CC -V 2>&1 | sed 5q` in
  14075. *Sun\ C*)
  14076. # Sun C++ 5.9
  14077. lt_prog_compiler_pic_CXX='-KPIC'
  14078. lt_prog_compiler_static_CXX='-Bstatic'
  14079. lt_prog_compiler_wl_CXX='-Qoption ld '
  14080. ;;
  14081. esac
  14082. ;;
  14083. esac
  14084. ;;
  14085. lynxos*)
  14086. ;;
  14087. m88k*)
  14088. ;;
  14089. mvs*)
  14090. case $cc_basename in
  14091. cxx*)
  14092. lt_prog_compiler_pic_CXX='-W c,exportall'
  14093. ;;
  14094. *)
  14095. ;;
  14096. esac
  14097. ;;
  14098. netbsd* | netbsdelf*-gnu)
  14099. ;;
  14100. *qnx* | *nto*)
  14101. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14102. # it will coredump.
  14103. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14104. ;;
  14105. osf3* | osf4* | osf5*)
  14106. case $cc_basename in
  14107. KCC*)
  14108. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14109. ;;
  14110. RCC*)
  14111. # Rational C++ 2.4.1
  14112. lt_prog_compiler_pic_CXX='-pic'
  14113. ;;
  14114. cxx*)
  14115. # Digital/Compaq C++
  14116. lt_prog_compiler_wl_CXX='-Wl,'
  14117. # Make sure the PIC flag is empty. It appears that all Alpha
  14118. # Linux and Compaq Tru64 Unix objects are PIC.
  14119. lt_prog_compiler_pic_CXX=
  14120. lt_prog_compiler_static_CXX='-non_shared'
  14121. ;;
  14122. *)
  14123. ;;
  14124. esac
  14125. ;;
  14126. psos*)
  14127. ;;
  14128. solaris*)
  14129. case $cc_basename in
  14130. CC* | sunCC*)
  14131. # Sun C++ 4.2, 5.x and Centerline C++
  14132. lt_prog_compiler_pic_CXX='-KPIC'
  14133. lt_prog_compiler_static_CXX='-Bstatic'
  14134. lt_prog_compiler_wl_CXX='-Qoption ld '
  14135. ;;
  14136. gcx*)
  14137. # Green Hills C++ Compiler
  14138. lt_prog_compiler_pic_CXX='-PIC'
  14139. ;;
  14140. *)
  14141. ;;
  14142. esac
  14143. ;;
  14144. sunos4*)
  14145. case $cc_basename in
  14146. CC*)
  14147. # Sun C++ 4.x
  14148. lt_prog_compiler_pic_CXX='-pic'
  14149. lt_prog_compiler_static_CXX='-Bstatic'
  14150. ;;
  14151. lcc*)
  14152. # Lucid
  14153. lt_prog_compiler_pic_CXX='-pic'
  14154. ;;
  14155. *)
  14156. ;;
  14157. esac
  14158. ;;
  14159. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14160. case $cc_basename in
  14161. CC*)
  14162. lt_prog_compiler_wl_CXX='-Wl,'
  14163. lt_prog_compiler_pic_CXX='-KPIC'
  14164. lt_prog_compiler_static_CXX='-Bstatic'
  14165. ;;
  14166. esac
  14167. ;;
  14168. tandem*)
  14169. case $cc_basename in
  14170. NCC*)
  14171. # NonStop-UX NCC 3.20
  14172. lt_prog_compiler_pic_CXX='-KPIC'
  14173. ;;
  14174. *)
  14175. ;;
  14176. esac
  14177. ;;
  14178. vxworks*)
  14179. ;;
  14180. *)
  14181. lt_prog_compiler_can_build_shared_CXX=no
  14182. ;;
  14183. esac
  14184. fi
  14185. case $host_os in
  14186. # For platforms that do not support PIC, -DPIC is meaningless:
  14187. *djgpp*)
  14188. lt_prog_compiler_pic_CXX=
  14189. ;;
  14190. *)
  14191. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14192. ;;
  14193. esac
  14194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14195. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  14196. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  14197. $as_echo_n "(cached) " >&6
  14198. else
  14199. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14200. fi
  14201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14202. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14203. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14204. #
  14205. # Check to make sure the PIC flag actually works.
  14206. #
  14207. if test -n "$lt_prog_compiler_pic_CXX"; then
  14208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14209. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14210. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  14211. $as_echo_n "(cached) " >&6
  14212. else
  14213. lt_cv_prog_compiler_pic_works_CXX=no
  14214. ac_outfile=conftest.$ac_objext
  14215. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14216. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14217. # Insert the option either (1) after the last *FLAGS variable, or
  14218. # (2) before a word containing "conftest.", or (3) at the end.
  14219. # Note that $ac_compile itself does not contain backslashes and begins
  14220. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14221. # The option is referenced via a variable to avoid confusing sed.
  14222. lt_compile=`echo "$ac_compile" | $SED \
  14223. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14224. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14225. -e 's:$: $lt_compiler_flag:'`
  14226. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14227. (eval "$lt_compile" 2>conftest.err)
  14228. ac_status=$?
  14229. cat conftest.err >&5
  14230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14231. if (exit $ac_status) && test -s "$ac_outfile"; then
  14232. # The compiler can only warn and ignore the option if not recognized
  14233. # So say no if there are warnings other than the usual output.
  14234. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14235. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14236. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14237. lt_cv_prog_compiler_pic_works_CXX=yes
  14238. fi
  14239. fi
  14240. $RM conftest*
  14241. fi
  14242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14243. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14244. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14245. case $lt_prog_compiler_pic_CXX in
  14246. "" | " "*) ;;
  14247. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14248. esac
  14249. else
  14250. lt_prog_compiler_pic_CXX=
  14251. lt_prog_compiler_can_build_shared_CXX=no
  14252. fi
  14253. fi
  14254. #
  14255. # Check to make sure the static flag actually works.
  14256. #
  14257. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14259. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14260. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  14261. $as_echo_n "(cached) " >&6
  14262. else
  14263. lt_cv_prog_compiler_static_works_CXX=no
  14264. save_LDFLAGS=$LDFLAGS
  14265. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14266. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14267. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14268. # The linker can only warn and ignore the option if not recognized
  14269. # So say no if there are warnings
  14270. if test -s conftest.err; then
  14271. # Append any errors to the config.log.
  14272. cat conftest.err 1>&5
  14273. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14274. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14275. if diff conftest.exp conftest.er2 >/dev/null; then
  14276. lt_cv_prog_compiler_static_works_CXX=yes
  14277. fi
  14278. else
  14279. lt_cv_prog_compiler_static_works_CXX=yes
  14280. fi
  14281. fi
  14282. $RM -r conftest*
  14283. LDFLAGS=$save_LDFLAGS
  14284. fi
  14285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14286. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14287. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14288. :
  14289. else
  14290. lt_prog_compiler_static_CXX=
  14291. fi
  14292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14293. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14294. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  14295. $as_echo_n "(cached) " >&6
  14296. else
  14297. lt_cv_prog_compiler_c_o_CXX=no
  14298. $RM -r conftest 2>/dev/null
  14299. mkdir conftest
  14300. cd conftest
  14301. mkdir out
  14302. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14303. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14304. # Insert the option either (1) after the last *FLAGS variable, or
  14305. # (2) before a word containing "conftest.", or (3) at the end.
  14306. # Note that $ac_compile itself does not contain backslashes and begins
  14307. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14308. lt_compile=`echo "$ac_compile" | $SED \
  14309. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14310. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14311. -e 's:$: $lt_compiler_flag:'`
  14312. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14313. (eval "$lt_compile" 2>out/conftest.err)
  14314. ac_status=$?
  14315. cat out/conftest.err >&5
  14316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14317. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14318. then
  14319. # The compiler can only warn and ignore the option if not recognized
  14320. # So say no if there are warnings
  14321. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14322. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14323. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14324. lt_cv_prog_compiler_c_o_CXX=yes
  14325. fi
  14326. fi
  14327. chmod u+w . 2>&5
  14328. $RM conftest*
  14329. # SGI C++ compiler will create directory out/ii_files/ for
  14330. # template instantiation
  14331. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14332. $RM out/* && rmdir out
  14333. cd ..
  14334. $RM -r conftest
  14335. $RM conftest*
  14336. fi
  14337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14338. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14340. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14341. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  14342. $as_echo_n "(cached) " >&6
  14343. else
  14344. lt_cv_prog_compiler_c_o_CXX=no
  14345. $RM -r conftest 2>/dev/null
  14346. mkdir conftest
  14347. cd conftest
  14348. mkdir out
  14349. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14350. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14351. # Insert the option either (1) after the last *FLAGS variable, or
  14352. # (2) before a word containing "conftest.", or (3) at the end.
  14353. # Note that $ac_compile itself does not contain backslashes and begins
  14354. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14355. lt_compile=`echo "$ac_compile" | $SED \
  14356. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14357. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14358. -e 's:$: $lt_compiler_flag:'`
  14359. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14360. (eval "$lt_compile" 2>out/conftest.err)
  14361. ac_status=$?
  14362. cat out/conftest.err >&5
  14363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14364. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14365. then
  14366. # The compiler can only warn and ignore the option if not recognized
  14367. # So say no if there are warnings
  14368. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14369. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14370. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14371. lt_cv_prog_compiler_c_o_CXX=yes
  14372. fi
  14373. fi
  14374. chmod u+w . 2>&5
  14375. $RM conftest*
  14376. # SGI C++ compiler will create directory out/ii_files/ for
  14377. # template instantiation
  14378. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14379. $RM out/* && rmdir out
  14380. cd ..
  14381. $RM -r conftest
  14382. $RM conftest*
  14383. fi
  14384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14385. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14386. hard_links=nottested
  14387. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14388. # do not overwrite the value of need_locks provided by the user
  14389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14390. $as_echo_n "checking if we can lock with hard links... " >&6; }
  14391. hard_links=yes
  14392. $RM conftest*
  14393. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14394. touch conftest.a
  14395. ln conftest.a conftest.b 2>&5 || hard_links=no
  14396. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14398. $as_echo "$hard_links" >&6; }
  14399. if test no = "$hard_links"; then
  14400. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14401. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14402. need_locks=warn
  14403. fi
  14404. else
  14405. need_locks=no
  14406. fi
  14407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14408. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14409. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14410. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14411. case $host_os in
  14412. aix[4-9]*)
  14413. # If we're using GNU nm, then we don't want the "-C" option.
  14414. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14415. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14416. # weak defined symbols like other global defined symbols, whereas
  14417. # GNU nm marks them as "W".
  14418. # While the 'weak' keyword is ignored in the Export File, we need
  14419. # it in the Import File for the 'aix-soname' feature, so we have
  14420. # to replace the "-B" option with "-P" for AIX nm.
  14421. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14422. 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'
  14423. else
  14424. 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'
  14425. fi
  14426. ;;
  14427. pw32*)
  14428. export_symbols_cmds_CXX=$ltdll_cmds
  14429. ;;
  14430. cygwin* | mingw* | cegcc*)
  14431. case $cc_basename in
  14432. cl*)
  14433. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14434. ;;
  14435. *)
  14436. 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'
  14437. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14438. ;;
  14439. esac
  14440. ;;
  14441. linux* | k*bsd*-gnu | gnu*)
  14442. link_all_deplibs_CXX=no
  14443. ;;
  14444. *)
  14445. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14446. ;;
  14447. esac
  14448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14449. $as_echo "$ld_shlibs_CXX" >&6; }
  14450. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14451. with_gnu_ld_CXX=$with_gnu_ld
  14452. #
  14453. # Do we need to explicitly link libc?
  14454. #
  14455. case "x$archive_cmds_need_lc_CXX" in
  14456. x|xyes)
  14457. # Assume -lc should be added
  14458. archive_cmds_need_lc_CXX=yes
  14459. if test yes,yes = "$GCC,$enable_shared"; then
  14460. case $archive_cmds_CXX in
  14461. *'~'*)
  14462. # FIXME: we may have to deal with multi-command sequences.
  14463. ;;
  14464. '$CC '*)
  14465. # Test whether the compiler implicitly links with -lc since on some
  14466. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14467. # to ld, don't add -lc before -lgcc.
  14468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14469. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  14470. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  14471. $as_echo_n "(cached) " >&6
  14472. else
  14473. $RM conftest*
  14474. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14475. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14476. (eval $ac_compile) 2>&5
  14477. ac_status=$?
  14478. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14479. test $ac_status = 0; } 2>conftest.err; then
  14480. soname=conftest
  14481. lib=conftest
  14482. libobjs=conftest.$ac_objext
  14483. deplibs=
  14484. wl=$lt_prog_compiler_wl_CXX
  14485. pic_flag=$lt_prog_compiler_pic_CXX
  14486. compiler_flags=-v
  14487. linker_flags=-v
  14488. verstring=
  14489. output_objdir=.
  14490. libname=conftest
  14491. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14492. allow_undefined_flag_CXX=
  14493. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14494. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14495. ac_status=$?
  14496. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14497. test $ac_status = 0; }
  14498. then
  14499. lt_cv_archive_cmds_need_lc_CXX=no
  14500. else
  14501. lt_cv_archive_cmds_need_lc_CXX=yes
  14502. fi
  14503. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14504. else
  14505. cat conftest.err 1>&5
  14506. fi
  14507. $RM conftest*
  14508. fi
  14509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14510. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14511. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14512. ;;
  14513. esac
  14514. fi
  14515. ;;
  14516. esac
  14517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14518. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  14519. library_names_spec=
  14520. libname_spec='lib$name'
  14521. soname_spec=
  14522. shrext_cmds=.so
  14523. postinstall_cmds=
  14524. postuninstall_cmds=
  14525. finish_cmds=
  14526. finish_eval=
  14527. shlibpath_var=
  14528. shlibpath_overrides_runpath=unknown
  14529. version_type=none
  14530. dynamic_linker="$host_os ld.so"
  14531. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14532. need_lib_prefix=unknown
  14533. hardcode_into_libs=no
  14534. # when you set need_version to no, make sure it does not cause -set_version
  14535. # flags to be left without arguments
  14536. need_version=unknown
  14537. case $host_os in
  14538. aix3*)
  14539. version_type=linux # correct to gnu/linux during the next big refactor
  14540. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14541. shlibpath_var=LIBPATH
  14542. # AIX 3 has no versioning support, so we append a major version to the name.
  14543. soname_spec='$libname$release$shared_ext$major'
  14544. ;;
  14545. aix[4-9]*)
  14546. version_type=linux # correct to gnu/linux during the next big refactor
  14547. need_lib_prefix=no
  14548. need_version=no
  14549. hardcode_into_libs=yes
  14550. if test ia64 = "$host_cpu"; then
  14551. # AIX 5 supports IA64
  14552. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14553. shlibpath_var=LD_LIBRARY_PATH
  14554. else
  14555. # With GCC up to 2.95.x, collect2 would create an import file
  14556. # for dependence libraries. The import file would start with
  14557. # the line '#! .'. This would cause the generated library to
  14558. # depend on '.', always an invalid library. This was fixed in
  14559. # development snapshots of GCC prior to 3.0.
  14560. case $host_os in
  14561. aix4 | aix4.[01] | aix4.[01].*)
  14562. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14563. echo ' yes '
  14564. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14565. :
  14566. else
  14567. can_build_shared=no
  14568. fi
  14569. ;;
  14570. esac
  14571. # Using Import Files as archive members, it is possible to support
  14572. # filename-based versioning of shared library archives on AIX. While
  14573. # this would work for both with and without runtime linking, it will
  14574. # prevent static linking of such archives. So we do filename-based
  14575. # shared library versioning with .so extension only, which is used
  14576. # when both runtime linking and shared linking is enabled.
  14577. # Unfortunately, runtime linking may impact performance, so we do
  14578. # not want this to be the default eventually. Also, we use the
  14579. # versioned .so libs for executables only if there is the -brtl
  14580. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14581. # To allow for filename-based versioning support, we need to create
  14582. # libNAME.so.V as an archive file, containing:
  14583. # *) an Import File, referring to the versioned filename of the
  14584. # archive as well as the shared archive member, telling the
  14585. # bitwidth (32 or 64) of that shared object, and providing the
  14586. # list of exported symbols of that shared object, eventually
  14587. # decorated with the 'weak' keyword
  14588. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14589. # it being seen by the linker.
  14590. # At run time we better use the real file rather than another symlink,
  14591. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14592. case $with_aix_soname,$aix_use_runtimelinking in
  14593. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14594. # soname into executable. Probably we can add versioning support to
  14595. # collect2, so additional links can be useful in future.
  14596. aix,yes) # traditional libtool
  14597. dynamic_linker='AIX unversionable lib.so'
  14598. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14599. # instead of lib<name>.a to let people know that these are not
  14600. # typical AIX shared libraries.
  14601. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14602. ;;
  14603. aix,no) # traditional AIX only
  14604. dynamic_linker='AIX lib.a(lib.so.V)'
  14605. # We preserve .a as extension for shared libraries through AIX4.2
  14606. # and later when we are not doing run time linking.
  14607. library_names_spec='$libname$release.a $libname.a'
  14608. soname_spec='$libname$release$shared_ext$major'
  14609. ;;
  14610. svr4,*) # full svr4 only
  14611. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14612. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14613. # We do not specify a path in Import Files, so LIBPATH fires.
  14614. shlibpath_overrides_runpath=yes
  14615. ;;
  14616. *,yes) # both, prefer svr4
  14617. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14618. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14619. # unpreferred sharedlib libNAME.a needs extra handling
  14620. 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"'
  14621. 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"'
  14622. # We do not specify a path in Import Files, so LIBPATH fires.
  14623. shlibpath_overrides_runpath=yes
  14624. ;;
  14625. *,no) # both, prefer aix
  14626. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14627. library_names_spec='$libname$release.a $libname.a'
  14628. soname_spec='$libname$release$shared_ext$major'
  14629. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14630. 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)'
  14631. 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"'
  14632. ;;
  14633. esac
  14634. shlibpath_var=LIBPATH
  14635. fi
  14636. ;;
  14637. amigaos*)
  14638. case $host_cpu in
  14639. powerpc)
  14640. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14641. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14642. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14643. ;;
  14644. m68k)
  14645. library_names_spec='$libname.ixlibrary $libname.a'
  14646. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14647. 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'
  14648. ;;
  14649. esac
  14650. ;;
  14651. beos*)
  14652. library_names_spec='$libname$shared_ext'
  14653. dynamic_linker="$host_os ld.so"
  14654. shlibpath_var=LIBRARY_PATH
  14655. ;;
  14656. bsdi[45]*)
  14657. version_type=linux # correct to gnu/linux during the next big refactor
  14658. need_version=no
  14659. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14660. soname_spec='$libname$release$shared_ext$major'
  14661. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14662. shlibpath_var=LD_LIBRARY_PATH
  14663. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14664. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14665. # the default ld.so.conf also contains /usr/contrib/lib and
  14666. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14667. # libtool to hard-code these into programs
  14668. ;;
  14669. cygwin* | mingw* | pw32* | cegcc*)
  14670. version_type=windows
  14671. shrext_cmds=.dll
  14672. need_version=no
  14673. need_lib_prefix=no
  14674. case $GCC,$cc_basename in
  14675. yes,*)
  14676. # gcc
  14677. library_names_spec='$libname.dll.a'
  14678. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14679. postinstall_cmds='base_file=`basename \$file`~
  14680. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14681. dldir=$destdir/`dirname \$dlpath`~
  14682. test -d \$dldir || mkdir -p \$dldir~
  14683. $install_prog $dir/$dlname \$dldir/$dlname~
  14684. chmod a+x \$dldir/$dlname~
  14685. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14686. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14687. fi'
  14688. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14689. dlpath=$dir/\$dldll~
  14690. $RM \$dlpath'
  14691. shlibpath_overrides_runpath=yes
  14692. case $host_os in
  14693. cygwin*)
  14694. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14695. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14696. ;;
  14697. mingw* | cegcc*)
  14698. # MinGW DLLs use traditional 'lib' prefix
  14699. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14700. ;;
  14701. pw32*)
  14702. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14703. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14704. ;;
  14705. esac
  14706. dynamic_linker='Win32 ld.exe'
  14707. ;;
  14708. *,cl*)
  14709. # Native MSVC
  14710. libname_spec='$name'
  14711. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14712. library_names_spec='$libname.dll.lib'
  14713. case $build_os in
  14714. mingw*)
  14715. sys_lib_search_path_spec=
  14716. lt_save_ifs=$IFS
  14717. IFS=';'
  14718. for lt_path in $LIB
  14719. do
  14720. IFS=$lt_save_ifs
  14721. # Let DOS variable expansion print the short 8.3 style file name.
  14722. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14723. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14724. done
  14725. IFS=$lt_save_ifs
  14726. # Convert to MSYS style.
  14727. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14728. ;;
  14729. cygwin*)
  14730. # Convert to unix form, then to dos form, then back to unix form
  14731. # but this time dos style (no spaces!) so that the unix form looks
  14732. # like /cygdrive/c/PROGRA~1:/cygdr...
  14733. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14734. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14735. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14736. ;;
  14737. *)
  14738. sys_lib_search_path_spec=$LIB
  14739. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14740. # It is most probably a Windows format PATH.
  14741. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14742. else
  14743. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14744. fi
  14745. # FIXME: find the short name or the path components, as spaces are
  14746. # common. (e.g. "Program Files" -> "PROGRA~1")
  14747. ;;
  14748. esac
  14749. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14750. postinstall_cmds='base_file=`basename \$file`~
  14751. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14752. dldir=$destdir/`dirname \$dlpath`~
  14753. test -d \$dldir || mkdir -p \$dldir~
  14754. $install_prog $dir/$dlname \$dldir/$dlname'
  14755. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14756. dlpath=$dir/\$dldll~
  14757. $RM \$dlpath'
  14758. shlibpath_overrides_runpath=yes
  14759. dynamic_linker='Win32 link.exe'
  14760. ;;
  14761. *)
  14762. # Assume MSVC wrapper
  14763. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14764. dynamic_linker='Win32 ld.exe'
  14765. ;;
  14766. esac
  14767. # FIXME: first we should search . and the directory the executable is in
  14768. shlibpath_var=PATH
  14769. ;;
  14770. darwin* | rhapsody*)
  14771. dynamic_linker="$host_os dyld"
  14772. version_type=darwin
  14773. need_lib_prefix=no
  14774. need_version=no
  14775. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14776. soname_spec='$libname$release$major$shared_ext'
  14777. shlibpath_overrides_runpath=yes
  14778. shlibpath_var=DYLD_LIBRARY_PATH
  14779. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14780. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14781. ;;
  14782. dgux*)
  14783. version_type=linux # correct to gnu/linux during the next big refactor
  14784. need_lib_prefix=no
  14785. need_version=no
  14786. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14787. soname_spec='$libname$release$shared_ext$major'
  14788. shlibpath_var=LD_LIBRARY_PATH
  14789. ;;
  14790. freebsd* | dragonfly*)
  14791. # DragonFly does not have aout. When/if they implement a new
  14792. # versioning mechanism, adjust this.
  14793. if test -x /usr/bin/objformat; then
  14794. objformat=`/usr/bin/objformat`
  14795. else
  14796. case $host_os in
  14797. freebsd[23].*) objformat=aout ;;
  14798. *) objformat=elf ;;
  14799. esac
  14800. fi
  14801. version_type=freebsd-$objformat
  14802. case $version_type in
  14803. freebsd-elf*)
  14804. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14805. soname_spec='$libname$release$shared_ext$major'
  14806. need_version=no
  14807. need_lib_prefix=no
  14808. ;;
  14809. freebsd-*)
  14810. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14811. need_version=yes
  14812. ;;
  14813. esac
  14814. shlibpath_var=LD_LIBRARY_PATH
  14815. case $host_os in
  14816. freebsd2.*)
  14817. shlibpath_overrides_runpath=yes
  14818. ;;
  14819. freebsd3.[01]* | freebsdelf3.[01]*)
  14820. shlibpath_overrides_runpath=yes
  14821. hardcode_into_libs=yes
  14822. ;;
  14823. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14824. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14825. shlibpath_overrides_runpath=no
  14826. hardcode_into_libs=yes
  14827. ;;
  14828. *) # from 4.6 on, and DragonFly
  14829. shlibpath_overrides_runpath=yes
  14830. hardcode_into_libs=yes
  14831. ;;
  14832. esac
  14833. ;;
  14834. haiku*)
  14835. version_type=linux # correct to gnu/linux during the next big refactor
  14836. need_lib_prefix=no
  14837. need_version=no
  14838. dynamic_linker="$host_os runtime_loader"
  14839. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14840. soname_spec='$libname$release$shared_ext$major'
  14841. shlibpath_var=LIBRARY_PATH
  14842. shlibpath_overrides_runpath=no
  14843. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14844. hardcode_into_libs=yes
  14845. ;;
  14846. hpux9* | hpux10* | hpux11*)
  14847. # Give a soname corresponding to the major version so that dld.sl refuses to
  14848. # link against other versions.
  14849. version_type=sunos
  14850. need_lib_prefix=no
  14851. need_version=no
  14852. case $host_cpu in
  14853. ia64*)
  14854. shrext_cmds='.so'
  14855. hardcode_into_libs=yes
  14856. dynamic_linker="$host_os dld.so"
  14857. shlibpath_var=LD_LIBRARY_PATH
  14858. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14859. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14860. soname_spec='$libname$release$shared_ext$major'
  14861. if test 32 = "$HPUX_IA64_MODE"; then
  14862. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14863. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14864. else
  14865. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14866. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14867. fi
  14868. ;;
  14869. hppa*64*)
  14870. shrext_cmds='.sl'
  14871. hardcode_into_libs=yes
  14872. dynamic_linker="$host_os dld.sl"
  14873. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14874. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14875. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14876. soname_spec='$libname$release$shared_ext$major'
  14877. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14878. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14879. ;;
  14880. *)
  14881. shrext_cmds='.sl'
  14882. dynamic_linker="$host_os dld.sl"
  14883. shlibpath_var=SHLIB_PATH
  14884. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14885. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14886. soname_spec='$libname$release$shared_ext$major'
  14887. ;;
  14888. esac
  14889. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14890. postinstall_cmds='chmod 555 $lib'
  14891. # or fails outright, so override atomically:
  14892. install_override_mode=555
  14893. ;;
  14894. interix[3-9]*)
  14895. version_type=linux # correct to gnu/linux during the next big refactor
  14896. need_lib_prefix=no
  14897. need_version=no
  14898. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14899. soname_spec='$libname$release$shared_ext$major'
  14900. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14901. shlibpath_var=LD_LIBRARY_PATH
  14902. shlibpath_overrides_runpath=no
  14903. hardcode_into_libs=yes
  14904. ;;
  14905. irix5* | irix6* | nonstopux*)
  14906. case $host_os in
  14907. nonstopux*) version_type=nonstopux ;;
  14908. *)
  14909. if test yes = "$lt_cv_prog_gnu_ld"; then
  14910. version_type=linux # correct to gnu/linux during the next big refactor
  14911. else
  14912. version_type=irix
  14913. fi ;;
  14914. esac
  14915. need_lib_prefix=no
  14916. need_version=no
  14917. soname_spec='$libname$release$shared_ext$major'
  14918. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14919. case $host_os in
  14920. irix5* | nonstopux*)
  14921. libsuff= shlibsuff=
  14922. ;;
  14923. *)
  14924. case $LD in # libtool.m4 will add one of these switches to LD
  14925. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14926. libsuff= shlibsuff= libmagic=32-bit;;
  14927. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14928. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14929. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14930. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14931. *) libsuff= shlibsuff= libmagic=never-match;;
  14932. esac
  14933. ;;
  14934. esac
  14935. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14936. shlibpath_overrides_runpath=no
  14937. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14938. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14939. hardcode_into_libs=yes
  14940. ;;
  14941. # No shared lib support for Linux oldld, aout, or coff.
  14942. linux*oldld* | linux*aout* | linux*coff*)
  14943. dynamic_linker=no
  14944. ;;
  14945. linux*android*)
  14946. version_type=none # Android doesn't support versioned libraries.
  14947. need_lib_prefix=no
  14948. need_version=no
  14949. library_names_spec='$libname$release$shared_ext'
  14950. soname_spec='$libname$release$shared_ext'
  14951. finish_cmds=
  14952. shlibpath_var=LD_LIBRARY_PATH
  14953. shlibpath_overrides_runpath=yes
  14954. # This implies no fast_install, which is unacceptable.
  14955. # Some rework will be needed to allow for fast_install
  14956. # before this can be enabled.
  14957. hardcode_into_libs=yes
  14958. dynamic_linker='Android linker'
  14959. # Don't embed -rpath directories since the linker doesn't support them.
  14960. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14961. ;;
  14962. # This must be glibc/ELF.
  14963. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14964. version_type=linux # correct to gnu/linux during the next big refactor
  14965. need_lib_prefix=no
  14966. need_version=no
  14967. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14968. soname_spec='$libname$release$shared_ext$major'
  14969. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14970. shlibpath_var=LD_LIBRARY_PATH
  14971. shlibpath_overrides_runpath=no
  14972. # Some binutils ld are patched to set DT_RUNPATH
  14973. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  14974. $as_echo_n "(cached) " >&6
  14975. else
  14976. lt_cv_shlibpath_overrides_runpath=no
  14977. save_LDFLAGS=$LDFLAGS
  14978. save_libdir=$libdir
  14979. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14980. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14982. /* end confdefs.h. */
  14983. int
  14984. main ()
  14985. {
  14986. ;
  14987. return 0;
  14988. }
  14989. _ACEOF
  14990. if ac_fn_cxx_try_link "$LINENO"; then :
  14991. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  14992. lt_cv_shlibpath_overrides_runpath=yes
  14993. fi
  14994. fi
  14995. rm -f core conftest.err conftest.$ac_objext \
  14996. conftest$ac_exeext conftest.$ac_ext
  14997. LDFLAGS=$save_LDFLAGS
  14998. libdir=$save_libdir
  14999. fi
  15000. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  15001. # This implies no fast_install, which is unacceptable.
  15002. # Some rework will be needed to allow for fast_install
  15003. # before this can be enabled.
  15004. hardcode_into_libs=yes
  15005. # Ideally, we could use ldconfig to report *all* directores which are
  15006. # searched for libraries, however this is still not possible. Aside from not
  15007. # being certain /sbin/ldconfig is available, command
  15008. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  15009. # even though it is searched at run-time. Try to do the best guess by
  15010. # appending ld.so.conf contents (and includes) to the search path.
  15011. if test -f /etc/ld.so.conf; then
  15012. 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' ' '`
  15013. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  15014. fi
  15015. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15016. # powerpc, because MkLinux only supported shared libraries with the
  15017. # GNU dynamic linker. Since this was broken with cross compilers,
  15018. # most powerpc-linux boxes support dynamic linking these days and
  15019. # people can always --disable-shared, the test was removed, and we
  15020. # assume the GNU/Linux dynamic linker is in use.
  15021. dynamic_linker='GNU/Linux ld.so'
  15022. ;;
  15023. netbsdelf*-gnu)
  15024. version_type=linux
  15025. need_lib_prefix=no
  15026. need_version=no
  15027. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15028. soname_spec='${libname}${release}${shared_ext}$major'
  15029. shlibpath_var=LD_LIBRARY_PATH
  15030. shlibpath_overrides_runpath=no
  15031. hardcode_into_libs=yes
  15032. dynamic_linker='NetBSD ld.elf_so'
  15033. ;;
  15034. netbsd*)
  15035. version_type=sunos
  15036. need_lib_prefix=no
  15037. need_version=no
  15038. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15039. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15040. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15041. dynamic_linker='NetBSD (a.out) ld.so'
  15042. else
  15043. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15044. soname_spec='$libname$release$shared_ext$major'
  15045. dynamic_linker='NetBSD ld.elf_so'
  15046. fi
  15047. shlibpath_var=LD_LIBRARY_PATH
  15048. shlibpath_overrides_runpath=yes
  15049. hardcode_into_libs=yes
  15050. ;;
  15051. newsos6)
  15052. version_type=linux # correct to gnu/linux during the next big refactor
  15053. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15054. shlibpath_var=LD_LIBRARY_PATH
  15055. shlibpath_overrides_runpath=yes
  15056. ;;
  15057. *nto* | *qnx*)
  15058. version_type=qnx
  15059. need_lib_prefix=no
  15060. need_version=no
  15061. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15062. soname_spec='$libname$release$shared_ext$major'
  15063. shlibpath_var=LD_LIBRARY_PATH
  15064. shlibpath_overrides_runpath=no
  15065. hardcode_into_libs=yes
  15066. dynamic_linker='ldqnx.so'
  15067. ;;
  15068. openbsd* | bitrig*)
  15069. version_type=sunos
  15070. sys_lib_dlsearch_path_spec=/usr/lib
  15071. need_lib_prefix=no
  15072. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15073. need_version=no
  15074. else
  15075. need_version=yes
  15076. fi
  15077. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15078. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15079. shlibpath_var=LD_LIBRARY_PATH
  15080. shlibpath_overrides_runpath=yes
  15081. ;;
  15082. os2*)
  15083. libname_spec='$name'
  15084. version_type=windows
  15085. shrext_cmds=.dll
  15086. need_version=no
  15087. need_lib_prefix=no
  15088. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15089. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15090. v=$($ECHO $release$versuffix | tr -d .-);
  15091. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15092. $ECHO $n$v`$shared_ext'
  15093. library_names_spec='${libname}_dll.$libext'
  15094. dynamic_linker='OS/2 ld.exe'
  15095. shlibpath_var=BEGINLIBPATH
  15096. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15097. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15098. postinstall_cmds='base_file=`basename \$file`~
  15099. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15100. dldir=$destdir/`dirname \$dlpath`~
  15101. test -d \$dldir || mkdir -p \$dldir~
  15102. $install_prog $dir/$dlname \$dldir/$dlname~
  15103. chmod a+x \$dldir/$dlname~
  15104. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15105. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15106. fi'
  15107. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15108. dlpath=$dir/\$dldll~
  15109. $RM \$dlpath'
  15110. ;;
  15111. osf3* | osf4* | osf5*)
  15112. version_type=osf
  15113. need_lib_prefix=no
  15114. need_version=no
  15115. soname_spec='$libname$release$shared_ext$major'
  15116. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15117. shlibpath_var=LD_LIBRARY_PATH
  15118. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15119. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15120. ;;
  15121. rdos*)
  15122. dynamic_linker=no
  15123. ;;
  15124. solaris*)
  15125. version_type=linux # correct to gnu/linux during the next big refactor
  15126. need_lib_prefix=no
  15127. need_version=no
  15128. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15129. soname_spec='$libname$release$shared_ext$major'
  15130. shlibpath_var=LD_LIBRARY_PATH
  15131. shlibpath_overrides_runpath=yes
  15132. hardcode_into_libs=yes
  15133. # ldd complains unless libraries are executable
  15134. postinstall_cmds='chmod +x $lib'
  15135. ;;
  15136. sunos4*)
  15137. version_type=sunos
  15138. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15139. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15140. shlibpath_var=LD_LIBRARY_PATH
  15141. shlibpath_overrides_runpath=yes
  15142. if test yes = "$with_gnu_ld"; then
  15143. need_lib_prefix=no
  15144. fi
  15145. need_version=yes
  15146. ;;
  15147. sysv4 | sysv4.3*)
  15148. version_type=linux # correct to gnu/linux during the next big refactor
  15149. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15150. soname_spec='$libname$release$shared_ext$major'
  15151. shlibpath_var=LD_LIBRARY_PATH
  15152. case $host_vendor in
  15153. sni)
  15154. shlibpath_overrides_runpath=no
  15155. need_lib_prefix=no
  15156. runpath_var=LD_RUN_PATH
  15157. ;;
  15158. siemens)
  15159. need_lib_prefix=no
  15160. ;;
  15161. motorola)
  15162. need_lib_prefix=no
  15163. need_version=no
  15164. shlibpath_overrides_runpath=no
  15165. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15166. ;;
  15167. esac
  15168. ;;
  15169. sysv4*MP*)
  15170. if test -d /usr/nec; then
  15171. version_type=linux # correct to gnu/linux during the next big refactor
  15172. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15173. soname_spec='$libname$shared_ext.$major'
  15174. shlibpath_var=LD_LIBRARY_PATH
  15175. fi
  15176. ;;
  15177. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15178. version_type=sco
  15179. need_lib_prefix=no
  15180. need_version=no
  15181. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15182. soname_spec='$libname$release$shared_ext$major'
  15183. shlibpath_var=LD_LIBRARY_PATH
  15184. shlibpath_overrides_runpath=yes
  15185. hardcode_into_libs=yes
  15186. if test yes = "$with_gnu_ld"; then
  15187. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15188. else
  15189. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15190. case $host_os in
  15191. sco3.2v5*)
  15192. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15193. ;;
  15194. esac
  15195. fi
  15196. sys_lib_dlsearch_path_spec='/usr/lib'
  15197. ;;
  15198. tpf*)
  15199. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15200. version_type=linux # correct to gnu/linux during the next big refactor
  15201. need_lib_prefix=no
  15202. need_version=no
  15203. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15204. shlibpath_var=LD_LIBRARY_PATH
  15205. shlibpath_overrides_runpath=no
  15206. hardcode_into_libs=yes
  15207. ;;
  15208. uts4*)
  15209. version_type=linux # correct to gnu/linux during the next big refactor
  15210. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15211. soname_spec='$libname$release$shared_ext$major'
  15212. shlibpath_var=LD_LIBRARY_PATH
  15213. ;;
  15214. *)
  15215. dynamic_linker=no
  15216. ;;
  15217. esac
  15218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15219. $as_echo "$dynamic_linker" >&6; }
  15220. test no = "$dynamic_linker" && can_build_shared=no
  15221. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15222. if test yes = "$GCC"; then
  15223. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15224. fi
  15225. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15226. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15227. fi
  15228. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15229. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15230. fi
  15231. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15232. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15233. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15234. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15235. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15236. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15238. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  15239. hardcode_action_CXX=
  15240. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15241. test -n "$runpath_var_CXX" ||
  15242. test yes = "$hardcode_automatic_CXX"; then
  15243. # We can hardcode non-existent directories.
  15244. if test no != "$hardcode_direct_CXX" &&
  15245. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15246. # have to relink, otherwise we might link with an installed library
  15247. # when we should be linking with a yet-to-be-installed one
  15248. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15249. test no != "$hardcode_minus_L_CXX"; then
  15250. # Linking always hardcodes the temporary library directory.
  15251. hardcode_action_CXX=relink
  15252. else
  15253. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15254. hardcode_action_CXX=immediate
  15255. fi
  15256. else
  15257. # We cannot hardcode anything, or else we can only hardcode existing
  15258. # directories.
  15259. hardcode_action_CXX=unsupported
  15260. fi
  15261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15262. $as_echo "$hardcode_action_CXX" >&6; }
  15263. if test relink = "$hardcode_action_CXX" ||
  15264. test yes = "$inherit_rpath_CXX"; then
  15265. # Fast installation is not supported
  15266. enable_fast_install=no
  15267. elif test yes = "$shlibpath_overrides_runpath" ||
  15268. test no = "$enable_shared"; then
  15269. # Fast installation is not necessary
  15270. enable_fast_install=needless
  15271. fi
  15272. fi # test -n "$compiler"
  15273. CC=$lt_save_CC
  15274. CFLAGS=$lt_save_CFLAGS
  15275. LDCXX=$LD
  15276. LD=$lt_save_LD
  15277. GCC=$lt_save_GCC
  15278. with_gnu_ld=$lt_save_with_gnu_ld
  15279. lt_cv_path_LDCXX=$lt_cv_path_LD
  15280. lt_cv_path_LD=$lt_save_path_LD
  15281. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15282. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15283. fi # test yes != "$_lt_caught_CXX_error"
  15284. ac_ext=c
  15285. ac_cpp='$CPP $CPPFLAGS'
  15286. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15287. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15288. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15289. ac_ext=c
  15290. ac_cpp='$CPP $CPPFLAGS'
  15291. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15292. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15293. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  15295. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  15296. # On Suns, sometimes $CPP names a directory.
  15297. if test -n "$CPP" && test -d "$CPP"; then
  15298. CPP=
  15299. fi
  15300. if test -z "$CPP"; then
  15301. if ${ac_cv_prog_CPP+:} false; then :
  15302. $as_echo_n "(cached) " >&6
  15303. else
  15304. # Double quotes because CPP needs to be expanded
  15305. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  15306. do
  15307. ac_preproc_ok=false
  15308. for ac_c_preproc_warn_flag in '' yes
  15309. do
  15310. # Use a header file that comes with gcc, so configuring glibc
  15311. # with a fresh cross-compiler works.
  15312. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15313. # <limits.h> exists even on freestanding compilers.
  15314. # On the NeXT, cc -E runs the code through the compiler's parser,
  15315. # not just through cpp. "Syntax error" is here to catch this case.
  15316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15317. /* end confdefs.h. */
  15318. #ifdef __STDC__
  15319. # include <limits.h>
  15320. #else
  15321. # include <assert.h>
  15322. #endif
  15323. Syntax error
  15324. _ACEOF
  15325. if ac_fn_c_try_cpp "$LINENO"; then :
  15326. else
  15327. # Broken: fails on valid input.
  15328. continue
  15329. fi
  15330. rm -f conftest.err conftest.i conftest.$ac_ext
  15331. # OK, works on sane cases. Now check whether nonexistent headers
  15332. # can be detected and how.
  15333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15334. /* end confdefs.h. */
  15335. #include <ac_nonexistent.h>
  15336. _ACEOF
  15337. if ac_fn_c_try_cpp "$LINENO"; then :
  15338. # Broken: success on invalid input.
  15339. continue
  15340. else
  15341. # Passes both tests.
  15342. ac_preproc_ok=:
  15343. break
  15344. fi
  15345. rm -f conftest.err conftest.i conftest.$ac_ext
  15346. done
  15347. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  15348. rm -f conftest.i conftest.err conftest.$ac_ext
  15349. if $ac_preproc_ok; then :
  15350. break
  15351. fi
  15352. done
  15353. ac_cv_prog_CPP=$CPP
  15354. fi
  15355. CPP=$ac_cv_prog_CPP
  15356. else
  15357. ac_cv_prog_CPP=$CPP
  15358. fi
  15359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  15360. $as_echo "$CPP" >&6; }
  15361. ac_preproc_ok=false
  15362. for ac_c_preproc_warn_flag in '' yes
  15363. do
  15364. # Use a header file that comes with gcc, so configuring glibc
  15365. # with a fresh cross-compiler works.
  15366. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15367. # <limits.h> exists even on freestanding compilers.
  15368. # On the NeXT, cc -E runs the code through the compiler's parser,
  15369. # not just through cpp. "Syntax error" is here to catch this case.
  15370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15371. /* end confdefs.h. */
  15372. #ifdef __STDC__
  15373. # include <limits.h>
  15374. #else
  15375. # include <assert.h>
  15376. #endif
  15377. Syntax error
  15378. _ACEOF
  15379. if ac_fn_c_try_cpp "$LINENO"; then :
  15380. else
  15381. # Broken: fails on valid input.
  15382. continue
  15383. fi
  15384. rm -f conftest.err conftest.i conftest.$ac_ext
  15385. # OK, works on sane cases. Now check whether nonexistent headers
  15386. # can be detected and how.
  15387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15388. /* end confdefs.h. */
  15389. #include <ac_nonexistent.h>
  15390. _ACEOF
  15391. if ac_fn_c_try_cpp "$LINENO"; then :
  15392. # Broken: success on invalid input.
  15393. continue
  15394. else
  15395. # Passes both tests.
  15396. ac_preproc_ok=:
  15397. break
  15398. fi
  15399. rm -f conftest.err conftest.i conftest.$ac_ext
  15400. done
  15401. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  15402. rm -f conftest.i conftest.err conftest.$ac_ext
  15403. if $ac_preproc_ok; then :
  15404. else
  15405. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15406. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15407. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  15408. See \`config.log' for more details" "$LINENO" 5; }
  15409. fi
  15410. ac_ext=c
  15411. ac_cpp='$CPP $CPPFLAGS'
  15412. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15413. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15414. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  15416. $as_echo_n "checking whether ln -s works... " >&6; }
  15417. LN_S=$as_ln_s
  15418. if test "$LN_S" = "ln -s"; then
  15419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15420. $as_echo "yes" >&6; }
  15421. else
  15422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  15423. $as_echo "no, using $LN_S" >&6; }
  15424. fi
  15425. for ac_prog in gawk mawk nawk awk
  15426. do
  15427. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15428. set dummy $ac_prog; ac_word=$2
  15429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15430. $as_echo_n "checking for $ac_word... " >&6; }
  15431. if ${ac_cv_prog_AWK+:} false; then :
  15432. $as_echo_n "(cached) " >&6
  15433. else
  15434. if test -n "$AWK"; then
  15435. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  15436. else
  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_exec_ext in '' $ac_executable_extensions; do
  15443. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15444. ac_cv_prog_AWK="$ac_prog"
  15445. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15446. break 2
  15447. fi
  15448. done
  15449. done
  15450. IFS=$as_save_IFS
  15451. fi
  15452. fi
  15453. AWK=$ac_cv_prog_AWK
  15454. if test -n "$AWK"; then
  15455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  15456. $as_echo "$AWK" >&6; }
  15457. else
  15458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15459. $as_echo "no" >&6; }
  15460. fi
  15461. test -n "$AWK" && break
  15462. done
  15463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  15464. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  15465. if ${ac_cv_path_SED+:} false; then :
  15466. $as_echo_n "(cached) " >&6
  15467. else
  15468. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  15469. for ac_i in 1 2 3 4 5 6 7; do
  15470. ac_script="$ac_script$as_nl$ac_script"
  15471. done
  15472. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  15473. { ac_script=; unset ac_script;}
  15474. if test -z "$SED"; then
  15475. ac_path_SED_found=false
  15476. # Loop through the user's path and test for each of PROGNAME-LIST
  15477. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15478. for as_dir in $PATH
  15479. do
  15480. IFS=$as_save_IFS
  15481. test -z "$as_dir" && as_dir=.
  15482. for ac_prog in sed gsed; do
  15483. for ac_exec_ext in '' $ac_executable_extensions; do
  15484. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  15485. as_fn_executable_p "$ac_path_SED" || continue
  15486. # Check for GNU ac_path_SED and select it if it is found.
  15487. # Check for GNU $ac_path_SED
  15488. case `"$ac_path_SED" --version 2>&1` in
  15489. *GNU*)
  15490. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  15491. *)
  15492. ac_count=0
  15493. $as_echo_n 0123456789 >"conftest.in"
  15494. while :
  15495. do
  15496. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15497. mv "conftest.tmp" "conftest.in"
  15498. cp "conftest.in" "conftest.nl"
  15499. $as_echo '' >> "conftest.nl"
  15500. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15501. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15502. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15503. if test $ac_count -gt ${ac_path_SED_max-0}; then
  15504. # Best one so far, save it but keep looking for a better one
  15505. ac_cv_path_SED="$ac_path_SED"
  15506. ac_path_SED_max=$ac_count
  15507. fi
  15508. # 10*(2^10) chars as input seems more than enough
  15509. test $ac_count -gt 10 && break
  15510. done
  15511. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15512. esac
  15513. $ac_path_SED_found && break 3
  15514. done
  15515. done
  15516. done
  15517. IFS=$as_save_IFS
  15518. if test -z "$ac_cv_path_SED"; then
  15519. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  15520. fi
  15521. else
  15522. ac_cv_path_SED=$SED
  15523. fi
  15524. fi
  15525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  15526. $as_echo "$ac_cv_path_SED" >&6; }
  15527. SED="$ac_cv_path_SED"
  15528. rm -f conftest.sed
  15529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15530. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15531. set x ${MAKE-make}
  15532. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15533. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  15534. $as_echo_n "(cached) " >&6
  15535. else
  15536. cat >conftest.make <<\_ACEOF
  15537. SHELL = /bin/sh
  15538. all:
  15539. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15540. _ACEOF
  15541. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15542. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15543. *@@@%%%=?*=@@@%%%*)
  15544. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15545. *)
  15546. eval ac_cv_prog_make_${ac_make}_set=no;;
  15547. esac
  15548. rm -f conftest.make
  15549. fi
  15550. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15552. $as_echo "yes" >&6; }
  15553. SET_MAKE=
  15554. else
  15555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15556. $as_echo "no" >&6; }
  15557. SET_MAKE="MAKE=${MAKE-make}"
  15558. fi
  15559. # Extract the first word of "printf", so it can be a program name with args.
  15560. set dummy printf; ac_word=$2
  15561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15562. $as_echo_n "checking for $ac_word... " >&6; }
  15563. if ${ac_cv_path_PRINTF+:} false; then :
  15564. $as_echo_n "(cached) " >&6
  15565. else
  15566. case $PRINTF in
  15567. [\\/]* | ?:[\\/]*)
  15568. ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
  15569. ;;
  15570. *)
  15571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15572. for as_dir in $PATH
  15573. do
  15574. IFS=$as_save_IFS
  15575. test -z "$as_dir" && as_dir=.
  15576. for ac_exec_ext in '' $ac_executable_extensions; do
  15577. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15578. ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
  15579. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15580. break 2
  15581. fi
  15582. done
  15583. done
  15584. IFS=$as_save_IFS
  15585. ;;
  15586. esac
  15587. fi
  15588. PRINTF=$ac_cv_path_PRINTF
  15589. if test -n "$PRINTF"; then
  15590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
  15591. $as_echo "$PRINTF" >&6; }
  15592. else
  15593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15594. $as_echo "no" >&6; }
  15595. fi
  15596. # Extract the first word of "echo", so it can be a program name with args.
  15597. set dummy echo; ac_word=$2
  15598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15599. $as_echo_n "checking for $ac_word... " >&6; }
  15600. if ${ac_cv_path_ECHO+:} false; then :
  15601. $as_echo_n "(cached) " >&6
  15602. else
  15603. case $ECHO in
  15604. [\\/]* | ?:[\\/]*)
  15605. ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
  15606. ;;
  15607. *)
  15608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15609. for as_dir in $PATH
  15610. do
  15611. IFS=$as_save_IFS
  15612. test -z "$as_dir" && as_dir=.
  15613. for ac_exec_ext in '' $ac_executable_extensions; do
  15614. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15615. ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
  15616. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15617. break 2
  15618. fi
  15619. done
  15620. done
  15621. IFS=$as_save_IFS
  15622. ;;
  15623. esac
  15624. fi
  15625. ECHO=$ac_cv_path_ECHO
  15626. if test -n "$ECHO"; then
  15627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
  15628. $as_echo "$ECHO" >&6; }
  15629. else
  15630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15631. $as_echo "no" >&6; }
  15632. fi
  15633. # Extract the first word of "cut", so it can be a program name with args.
  15634. set dummy cut; ac_word=$2
  15635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15636. $as_echo_n "checking for $ac_word... " >&6; }
  15637. if ${ac_cv_path_CUT+:} false; then :
  15638. $as_echo_n "(cached) " >&6
  15639. else
  15640. case $CUT in
  15641. [\\/]* | ?:[\\/]*)
  15642. ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
  15643. ;;
  15644. *)
  15645. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15646. for as_dir in $PATH
  15647. do
  15648. IFS=$as_save_IFS
  15649. test -z "$as_dir" && as_dir=.
  15650. for ac_exec_ext in '' $ac_executable_extensions; do
  15651. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15652. ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
  15653. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15654. break 2
  15655. fi
  15656. done
  15657. done
  15658. IFS=$as_save_IFS
  15659. ;;
  15660. esac
  15661. fi
  15662. CUT=$ac_cv_path_CUT
  15663. if test -n "$CUT"; then
  15664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
  15665. $as_echo "$CUT" >&6; }
  15666. else
  15667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15668. $as_echo "no" >&6; }
  15669. fi
  15670. # Extract the first word of "autogen", so it can be a program name with args.
  15671. set dummy autogen; ac_word=$2
  15672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15673. $as_echo_n "checking for $ac_word... " >&6; }
  15674. if ${ac_cv_path_AUTOGEN+:} false; then :
  15675. $as_echo_n "(cached) " >&6
  15676. else
  15677. case $AUTOGEN in
  15678. [\\/]* | ?:[\\/]*)
  15679. ac_cv_path_AUTOGEN="$AUTOGEN" # Let the user override the test with a path.
  15680. ;;
  15681. *)
  15682. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15683. for as_dir in $PATH
  15684. do
  15685. IFS=$as_save_IFS
  15686. test -z "$as_dir" && as_dir=.
  15687. for ac_exec_ext in '' $ac_executable_extensions; do
  15688. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15689. ac_cv_path_AUTOGEN="$as_dir/$ac_word$ac_exec_ext"
  15690. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15691. break 2
  15692. fi
  15693. done
  15694. done
  15695. IFS=$as_save_IFS
  15696. ;;
  15697. esac
  15698. fi
  15699. AUTOGEN=$ac_cv_path_AUTOGEN
  15700. if test -n "$AUTOGEN"; then
  15701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOGEN" >&5
  15702. $as_echo "$AUTOGEN" >&6; }
  15703. else
  15704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15705. $as_echo "no" >&6; }
  15706. fi
  15707. # Extract the first word of "groff", so it can be a program name with args.
  15708. set dummy groff; ac_word=$2
  15709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15710. $as_echo_n "checking for $ac_word... " >&6; }
  15711. if ${ac_cv_path_GROFF+:} false; then :
  15712. $as_echo_n "(cached) " >&6
  15713. else
  15714. case $GROFF in
  15715. [\\/]* | ?:[\\/]*)
  15716. ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
  15717. ;;
  15718. *)
  15719. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15720. for as_dir in $PATH
  15721. do
  15722. IFS=$as_save_IFS
  15723. test -z "$as_dir" && as_dir=.
  15724. for ac_exec_ext in '' $ac_executable_extensions; do
  15725. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15726. ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
  15727. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15728. break 2
  15729. fi
  15730. done
  15731. done
  15732. IFS=$as_save_IFS
  15733. ;;
  15734. esac
  15735. fi
  15736. GROFF=$ac_cv_path_GROFF
  15737. if test -n "$GROFF"; then
  15738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
  15739. $as_echo "$GROFF" >&6; }
  15740. else
  15741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15742. $as_echo "no" >&6; }
  15743. fi
  15744. # Extract the first word of "depmod", so it can be a program name with args.
  15745. set dummy depmod; ac_word=$2
  15746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15747. $as_echo_n "checking for $ac_word... " >&6; }
  15748. if ${ac_cv_path_depmod+:} false; then :
  15749. $as_echo_n "(cached) " >&6
  15750. else
  15751. case $depmod in
  15752. [\\/]* | ?:[\\/]*)
  15753. ac_cv_path_depmod="$depmod" # Let the user override the test with a path.
  15754. ;;
  15755. *)
  15756. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15757. as_dummy="$PATH:/sbin"
  15758. for as_dir in $as_dummy
  15759. do
  15760. IFS=$as_save_IFS
  15761. test -z "$as_dir" && as_dir=.
  15762. for ac_exec_ext in '' $ac_executable_extensions; do
  15763. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15764. ac_cv_path_depmod="$as_dir/$ac_word$ac_exec_ext"
  15765. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15766. break 2
  15767. fi
  15768. done
  15769. done
  15770. IFS=$as_save_IFS
  15771. test -z "$ac_cv_path_depmod" && ac_cv_path_depmod="/sbin/depmod"
  15772. ;;
  15773. esac
  15774. fi
  15775. depmod=$ac_cv_path_depmod
  15776. if test -n "$depmod"; then
  15777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $depmod" >&5
  15778. $as_echo "$depmod" >&6; }
  15779. else
  15780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15781. $as_echo "no" >&6; }
  15782. fi
  15783. # Extract the first word of "insmod", so it can be a program name with args.
  15784. set dummy insmod; ac_word=$2
  15785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15786. $as_echo_n "checking for $ac_word... " >&6; }
  15787. if ${ac_cv_path_insmod+:} false; then :
  15788. $as_echo_n "(cached) " >&6
  15789. else
  15790. case $insmod in
  15791. [\\/]* | ?:[\\/]*)
  15792. ac_cv_path_insmod="$insmod" # Let the user override the test with a path.
  15793. ;;
  15794. *)
  15795. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15796. as_dummy="$PATH:/sbin"
  15797. for as_dir in $as_dummy
  15798. do
  15799. IFS=$as_save_IFS
  15800. test -z "$as_dir" && as_dir=.
  15801. for ac_exec_ext in '' $ac_executable_extensions; do
  15802. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15803. ac_cv_path_insmod="$as_dir/$ac_word$ac_exec_ext"
  15804. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15805. break 2
  15806. fi
  15807. done
  15808. done
  15809. IFS=$as_save_IFS
  15810. test -z "$ac_cv_path_insmod" && ac_cv_path_insmod="/sbin/insmod"
  15811. ;;
  15812. esac
  15813. fi
  15814. insmod=$ac_cv_path_insmod
  15815. if test -n "$insmod"; then
  15816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $insmod" >&5
  15817. $as_echo "$insmod" >&6; }
  15818. else
  15819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15820. $as_echo "no" >&6; }
  15821. fi
  15822. # Extract the first word of "rmmod", so it can be a program name with args.
  15823. set dummy rmmod; ac_word=$2
  15824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15825. $as_echo_n "checking for $ac_word... " >&6; }
  15826. if ${ac_cv_path_rmmod+:} false; then :
  15827. $as_echo_n "(cached) " >&6
  15828. else
  15829. case $rmmod in
  15830. [\\/]* | ?:[\\/]*)
  15831. ac_cv_path_rmmod="$rmmod" # Let the user override the test with a path.
  15832. ;;
  15833. *)
  15834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15835. as_dummy="$PATH:/sbin"
  15836. for as_dir in $as_dummy
  15837. do
  15838. IFS=$as_save_IFS
  15839. test -z "$as_dir" && as_dir=.
  15840. for ac_exec_ext in '' $ac_executable_extensions; do
  15841. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15842. ac_cv_path_rmmod="$as_dir/$ac_word$ac_exec_ext"
  15843. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15844. break 2
  15845. fi
  15846. done
  15847. done
  15848. IFS=$as_save_IFS
  15849. test -z "$ac_cv_path_rmmod" && ac_cv_path_rmmod="/sbin/rmmod"
  15850. ;;
  15851. esac
  15852. fi
  15853. rmmod=$ac_cv_path_rmmod
  15854. if test -n "$rmmod"; then
  15855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rmmod" >&5
  15856. $as_echo "$rmmod" >&6; }
  15857. else
  15858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15859. $as_echo "no" >&6; }
  15860. fi
  15861. case "${enable_local_libopts+set}" in
  15862. set) ;;
  15863. *) enable_local_libopts=yes ;;
  15864. esac
  15865. case "${enable_libopts_install+set}" in
  15866. set) ;;
  15867. *) enable_libopts_install=no ;;
  15868. esac
  15869. AUTOGEN_VERSION="unknown - man pages will not be built"
  15870. if test -n "${AUTOGEN}" ; then
  15871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for autogen version >= ${MAINTAINER_AUTOGEN_VERSION}" >&5
  15872. $as_echo_n "checking for autogen version >= ${MAINTAINER_AUTOGEN_VERSION}... " >&6; }
  15873. AUTOGEN_VERSION=$(${AUTOGEN} -v | ${CUT} -d' ' -f 4)
  15874. AUTOGEN_MAJOR=$(echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 1)
  15875. AUTOGEN_MINOR=$(echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 2)
  15876. AUTOGEN_BUILD=$(echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 3)
  15877. if test -z "$AUTOGEN_BUILD"; then
  15878. AUTOGEN_BUILD=0
  15879. fi
  15880. if (test ${AUTOGEN_MAJOR} -eq 5 && test ${AUTOGEN_MINOR} -eq 18 && test ${AUTOGEN_BUILD} -lt 4) ||
  15881. (test ${AUTOGEN_MAJOR} -eq 5 && test ${AUTOGEN_MINOR} -lt 18) ||
  15882. test ${AUTOGEN_MAJOR} -lt 5 ; then
  15883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15884. $as_echo "no" >&6; }
  15885. if test ! "x$enable_local_libopts" = "xyes"; then
  15886. as_fn_error $? "${AUTOGEN} is too old (${AUTOGEN_VERSION}) for building from source code. Upgrade to 5.18.4 or higher" "$LINENO" 5
  15887. fi
  15888. AUTOGEN_VERSION="${AUTOGEN_VERSION} - downlevel"
  15889. else
  15890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15891. $as_echo "yes" >&6; }
  15892. fi
  15893. if test ! -f src/tcpreplay_opts.c && test "x$enable_local_libopts" = "xyes" ; then
  15894. if test $MAINTAINER_AUTOGEN_VERSION != $AUTOGEN_VERSION ; then
  15895. 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
  15896. fi
  15897. fi
  15898. else
  15899. if test ! -f src/tcpreplay_opts.c ; then
  15900. 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
  15901. fi
  15902. fi
  15903. $as_echo "#define AUTOGEN_VERSION \${AUTOGEN_VERSION}" >>confdefs.h
  15904. if test "x$enable_local_libopts" = "xyes" ; then
  15905. { $as_echo "$as_me:${as_lineno-$LINENO}: Using included libopts tearoff" >&5
  15906. $as_echo "$as_me: Using included libopts tearoff" >&6;}
  15907. else
  15908. { $as_echo "$as_me:${as_lineno-$LINENO}: Using system libopts" >&5
  15909. $as_echo "$as_me: Using system libopts" >&6;}
  15910. fi
  15911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15912. $as_echo_n "checking for egrep... " >&6; }
  15913. if ${ac_cv_path_EGREP+:} false; then :
  15914. $as_echo_n "(cached) " >&6
  15915. else
  15916. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15917. then ac_cv_path_EGREP="$GREP -E"
  15918. else
  15919. if test -z "$EGREP"; then
  15920. ac_path_EGREP_found=false
  15921. # Loop through the user's path and test for each of PROGNAME-LIST
  15922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15923. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15924. do
  15925. IFS=$as_save_IFS
  15926. test -z "$as_dir" && as_dir=.
  15927. for ac_prog in egrep; do
  15928. for ac_exec_ext in '' $ac_executable_extensions; do
  15929. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  15930. as_fn_executable_p "$ac_path_EGREP" || continue
  15931. # Check for GNU ac_path_EGREP and select it if it is found.
  15932. # Check for GNU $ac_path_EGREP
  15933. case `"$ac_path_EGREP" --version 2>&1` in
  15934. *GNU*)
  15935. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15936. *)
  15937. ac_count=0
  15938. $as_echo_n 0123456789 >"conftest.in"
  15939. while :
  15940. do
  15941. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15942. mv "conftest.tmp" "conftest.in"
  15943. cp "conftest.in" "conftest.nl"
  15944. $as_echo 'EGREP' >> "conftest.nl"
  15945. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15946. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15947. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15948. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15949. # Best one so far, save it but keep looking for a better one
  15950. ac_cv_path_EGREP="$ac_path_EGREP"
  15951. ac_path_EGREP_max=$ac_count
  15952. fi
  15953. # 10*(2^10) chars as input seems more than enough
  15954. test $ac_count -gt 10 && break
  15955. done
  15956. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15957. esac
  15958. $ac_path_EGREP_found && break 3
  15959. done
  15960. done
  15961. done
  15962. IFS=$as_save_IFS
  15963. if test -z "$ac_cv_path_EGREP"; then
  15964. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15965. fi
  15966. else
  15967. ac_cv_path_EGREP=$EGREP
  15968. fi
  15969. fi
  15970. fi
  15971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15972. $as_echo "$ac_cv_path_EGREP" >&6; }
  15973. EGREP="$ac_cv_path_EGREP"
  15974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
  15975. $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
  15976. if ${ac_cv_header_sys_types_h_makedev+:} false; then :
  15977. $as_echo_n "(cached) " >&6
  15978. else
  15979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15980. /* end confdefs.h. */
  15981. #include <sys/types.h>
  15982. int
  15983. main ()
  15984. {
  15985. return makedev(0, 0);
  15986. ;
  15987. return 0;
  15988. }
  15989. _ACEOF
  15990. if ac_fn_c_try_link "$LINENO"; then :
  15991. ac_cv_header_sys_types_h_makedev=yes
  15992. else
  15993. ac_cv_header_sys_types_h_makedev=no
  15994. fi
  15995. rm -f core conftest.err conftest.$ac_objext \
  15996. conftest$ac_exeext conftest.$ac_ext
  15997. fi
  15998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
  15999. $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
  16000. if test $ac_cv_header_sys_types_h_makedev = no; then
  16001. ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
  16002. if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
  16003. $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
  16004. fi
  16005. if test $ac_cv_header_sys_mkdev_h = no; then
  16006. ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
  16007. if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
  16008. $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
  16009. fi
  16010. fi
  16011. fi
  16012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  16013. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  16014. if ${ac_cv_header_stdbool_h+:} false; then :
  16015. $as_echo_n "(cached) " >&6
  16016. else
  16017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16018. /* end confdefs.h. */
  16019. #include <stdbool.h>
  16020. #ifndef bool
  16021. "error: bool is not defined"
  16022. #endif
  16023. #ifndef false
  16024. "error: false is not defined"
  16025. #endif
  16026. #if false
  16027. "error: false is not 0"
  16028. #endif
  16029. #ifndef true
  16030. "error: true is not defined"
  16031. #endif
  16032. #if true != 1
  16033. "error: true is not 1"
  16034. #endif
  16035. #ifndef __bool_true_false_are_defined
  16036. "error: __bool_true_false_are_defined is not defined"
  16037. #endif
  16038. struct s { _Bool s: 1; _Bool t; } s;
  16039. char a[true == 1 ? 1 : -1];
  16040. char b[false == 0 ? 1 : -1];
  16041. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  16042. char d[(bool) 0.5 == true ? 1 : -1];
  16043. /* See body of main program for 'e'. */
  16044. char f[(_Bool) 0.0 == false ? 1 : -1];
  16045. char g[true];
  16046. char h[sizeof (_Bool)];
  16047. char i[sizeof s.t];
  16048. enum { j = false, k = true, l = false * true, m = true * 256 };
  16049. /* The following fails for
  16050. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  16051. _Bool n[m];
  16052. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  16053. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  16054. /* Catch a bug in an HP-UX C compiler. See
  16055. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  16056. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  16057. */
  16058. _Bool q = true;
  16059. _Bool *pq = &q;
  16060. int
  16061. main ()
  16062. {
  16063. bool e = &s;
  16064. *pq |= q;
  16065. *pq |= ! q;
  16066. /* Refer to every declared value, to avoid compiler optimizations. */
  16067. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  16068. + !m + !n + !o + !p + !q + !pq);
  16069. ;
  16070. return 0;
  16071. }
  16072. _ACEOF
  16073. if ac_fn_c_try_compile "$LINENO"; then :
  16074. ac_cv_header_stdbool_h=yes
  16075. else
  16076. ac_cv_header_stdbool_h=no
  16077. fi
  16078. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16079. fi
  16080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  16081. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  16082. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  16083. if test "x$ac_cv_type__Bool" = xyes; then :
  16084. cat >>confdefs.h <<_ACEOF
  16085. #define HAVE__BOOL 1
  16086. _ACEOF
  16087. fi
  16088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16089. $as_echo_n "checking for inline... " >&6; }
  16090. if ${ac_cv_c_inline+:} false; then :
  16091. $as_echo_n "(cached) " >&6
  16092. else
  16093. ac_cv_c_inline=no
  16094. for ac_kw in inline __inline__ __inline; do
  16095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16096. /* end confdefs.h. */
  16097. #ifndef __cplusplus
  16098. typedef int foo_t;
  16099. static $ac_kw foo_t static_foo () {return 0; }
  16100. $ac_kw foo_t foo () {return 0; }
  16101. #endif
  16102. _ACEOF
  16103. if ac_fn_c_try_compile "$LINENO"; then :
  16104. ac_cv_c_inline=$ac_kw
  16105. fi
  16106. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16107. test "$ac_cv_c_inline" != no && break
  16108. done
  16109. fi
  16110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16111. $as_echo "$ac_cv_c_inline" >&6; }
  16112. case $ac_cv_c_inline in
  16113. inline | yes) ;;
  16114. *)
  16115. case $ac_cv_c_inline in
  16116. no) ac_val=;;
  16117. *) ac_val=$ac_cv_c_inline;;
  16118. esac
  16119. cat >>confdefs.h <<_ACEOF
  16120. #ifndef __cplusplus
  16121. #define inline $ac_val
  16122. #endif
  16123. _ACEOF
  16124. ;;
  16125. esac
  16126. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  16127. case $ac_cv_c_int16_t in #(
  16128. no|yes) ;; #(
  16129. *)
  16130. cat >>confdefs.h <<_ACEOF
  16131. #define int16_t $ac_cv_c_int16_t
  16132. _ACEOF
  16133. ;;
  16134. esac
  16135. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  16136. case $ac_cv_c_int32_t in #(
  16137. no|yes) ;; #(
  16138. *)
  16139. cat >>confdefs.h <<_ACEOF
  16140. #define int32_t $ac_cv_c_int32_t
  16141. _ACEOF
  16142. ;;
  16143. esac
  16144. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  16145. case $ac_cv_c_int64_t in #(
  16146. no|yes) ;; #(
  16147. *)
  16148. cat >>confdefs.h <<_ACEOF
  16149. #define int64_t $ac_cv_c_int64_t
  16150. _ACEOF
  16151. ;;
  16152. esac
  16153. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  16154. case $ac_cv_c_int8_t in #(
  16155. no|yes) ;; #(
  16156. *)
  16157. cat >>confdefs.h <<_ACEOF
  16158. #define int8_t $ac_cv_c_int8_t
  16159. _ACEOF
  16160. ;;
  16161. esac
  16162. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  16163. if test "x$ac_cv_type_off_t" = xyes; then :
  16164. else
  16165. cat >>confdefs.h <<_ACEOF
  16166. #define off_t long int
  16167. _ACEOF
  16168. fi
  16169. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  16170. if test "x$ac_cv_type_pid_t" = xyes; then :
  16171. else
  16172. cat >>confdefs.h <<_ACEOF
  16173. #define pid_t int
  16174. _ACEOF
  16175. fi
  16176. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16177. if test "x$ac_cv_type_size_t" = xyes; then :
  16178. else
  16179. cat >>confdefs.h <<_ACEOF
  16180. #define size_t unsigned int
  16181. _ACEOF
  16182. fi
  16183. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  16184. if test "x$ac_cv_type_ssize_t" = xyes; then :
  16185. else
  16186. cat >>confdefs.h <<_ACEOF
  16187. #define ssize_t int
  16188. _ACEOF
  16189. fi
  16190. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  16191. case $ac_cv_c_uint16_t in #(
  16192. no|yes) ;; #(
  16193. *)
  16194. cat >>confdefs.h <<_ACEOF
  16195. #define uint16_t $ac_cv_c_uint16_t
  16196. _ACEOF
  16197. ;;
  16198. esac
  16199. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  16200. case $ac_cv_c_uint32_t in #(
  16201. no|yes) ;; #(
  16202. *)
  16203. $as_echo "#define _UINT32_T 1" >>confdefs.h
  16204. cat >>confdefs.h <<_ACEOF
  16205. #define uint32_t $ac_cv_c_uint32_t
  16206. _ACEOF
  16207. ;;
  16208. esac
  16209. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  16210. case $ac_cv_c_uint64_t in #(
  16211. no|yes) ;; #(
  16212. *)
  16213. $as_echo "#define _UINT64_T 1" >>confdefs.h
  16214. cat >>confdefs.h <<_ACEOF
  16215. #define uint64_t $ac_cv_c_uint64_t
  16216. _ACEOF
  16217. ;;
  16218. esac
  16219. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  16220. case $ac_cv_c_uint8_t in #(
  16221. no|yes) ;; #(
  16222. *)
  16223. $as_echo "#define _UINT8_T 1" >>confdefs.h
  16224. cat >>confdefs.h <<_ACEOF
  16225. #define uint8_t $ac_cv_c_uint8_t
  16226. _ACEOF
  16227. ;;
  16228. esac
  16229. for ac_header in $ac_header_list
  16230. do :
  16231. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16232. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  16233. "
  16234. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16235. cat >>confdefs.h <<_ACEOF
  16236. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16237. _ACEOF
  16238. fi
  16239. done
  16240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  16241. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  16242. if ${ac_cv_c_const+:} false; then :
  16243. $as_echo_n "(cached) " >&6
  16244. else
  16245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16246. /* end confdefs.h. */
  16247. int
  16248. main ()
  16249. {
  16250. #ifndef __cplusplus
  16251. /* Ultrix mips cc rejects this sort of thing. */
  16252. typedef int charset[2];
  16253. const charset cs = { 0, 0 };
  16254. /* SunOS 4.1.1 cc rejects this. */
  16255. char const *const *pcpcc;
  16256. char **ppc;
  16257. /* NEC SVR4.0.2 mips cc rejects this. */
  16258. struct point {int x, y;};
  16259. static struct point const zero = {0,0};
  16260. /* AIX XL C 1.02.0.0 rejects this.
  16261. It does not let you subtract one const X* pointer from another in
  16262. an arm of an if-expression whose if-part is not a constant
  16263. expression */
  16264. const char *g = "string";
  16265. pcpcc = &g + (g ? g-g : 0);
  16266. /* HPUX 7.0 cc rejects these. */
  16267. ++pcpcc;
  16268. ppc = (char**) pcpcc;
  16269. pcpcc = (char const *const *) ppc;
  16270. { /* SCO 3.2v4 cc rejects this sort of thing. */
  16271. char tx;
  16272. char *t = &tx;
  16273. char const *s = 0 ? (char *) 0 : (char const *) 0;
  16274. *t++ = 0;
  16275. if (s) return 0;
  16276. }
  16277. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  16278. int x[] = {25, 17};
  16279. const int *foo = &x[0];
  16280. ++foo;
  16281. }
  16282. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  16283. typedef const int *iptr;
  16284. iptr p = 0;
  16285. ++p;
  16286. }
  16287. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  16288. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  16289. struct s { int j; const int *ap[3]; } bx;
  16290. struct s *b = &bx; b->j = 5;
  16291. }
  16292. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  16293. const int foo = 10;
  16294. if (!foo) return 0;
  16295. }
  16296. return !cs[0] && !zero.x;
  16297. #endif
  16298. ;
  16299. return 0;
  16300. }
  16301. _ACEOF
  16302. if ac_fn_c_try_compile "$LINENO"; then :
  16303. ac_cv_c_const=yes
  16304. else
  16305. ac_cv_c_const=no
  16306. fi
  16307. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16308. fi
  16309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16310. $as_echo "$ac_cv_c_const" >&6; }
  16311. if test $ac_cv_c_const = no; then
  16312. $as_echo "#define const /**/" >>confdefs.h
  16313. fi
  16314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16315. $as_echo_n "checking for inline... " >&6; }
  16316. if ${ac_cv_c_inline+:} false; then :
  16317. $as_echo_n "(cached) " >&6
  16318. else
  16319. ac_cv_c_inline=no
  16320. for ac_kw in inline __inline__ __inline; do
  16321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16322. /* end confdefs.h. */
  16323. #ifndef __cplusplus
  16324. typedef int foo_t;
  16325. static $ac_kw foo_t static_foo () {return 0; }
  16326. $ac_kw foo_t foo () {return 0; }
  16327. #endif
  16328. _ACEOF
  16329. if ac_fn_c_try_compile "$LINENO"; then :
  16330. ac_cv_c_inline=$ac_kw
  16331. fi
  16332. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16333. test "$ac_cv_c_inline" != no && break
  16334. done
  16335. fi
  16336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16337. $as_echo "$ac_cv_c_inline" >&6; }
  16338. case $ac_cv_c_inline in
  16339. inline | yes) ;;
  16340. *)
  16341. case $ac_cv_c_inline in
  16342. no) ac_val=;;
  16343. *) ac_val=$ac_cv_c_inline;;
  16344. esac
  16345. cat >>confdefs.h <<_ACEOF
  16346. #ifndef __cplusplus
  16347. #define inline $ac_val
  16348. #endif
  16349. _ACEOF
  16350. ;;
  16351. esac
  16352. # Check whether --enable-largefile was given.
  16353. if test "${enable_largefile+set}" = set; then :
  16354. enableval=$enable_largefile;
  16355. fi
  16356. if test "$enable_largefile" != no; then
  16357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  16358. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  16359. if ${ac_cv_sys_largefile_CC+:} false; then :
  16360. $as_echo_n "(cached) " >&6
  16361. else
  16362. ac_cv_sys_largefile_CC=no
  16363. if test "$GCC" != yes; then
  16364. ac_save_CC=$CC
  16365. while :; do
  16366. # IRIX 6.2 and later do not support large files by default,
  16367. # so use the C compiler's -n32 option if that helps.
  16368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16369. /* end confdefs.h. */
  16370. #include <sys/types.h>
  16371. /* Check that off_t can represent 2**63 - 1 correctly.
  16372. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16373. since some C++ compilers masquerading as C compilers
  16374. incorrectly reject 9223372036854775807. */
  16375. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16376. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16377. && LARGE_OFF_T % 2147483647 == 1)
  16378. ? 1 : -1];
  16379. int
  16380. main ()
  16381. {
  16382. ;
  16383. return 0;
  16384. }
  16385. _ACEOF
  16386. if ac_fn_c_try_compile "$LINENO"; then :
  16387. break
  16388. fi
  16389. rm -f core conftest.err conftest.$ac_objext
  16390. CC="$CC -n32"
  16391. if ac_fn_c_try_compile "$LINENO"; then :
  16392. ac_cv_sys_largefile_CC=' -n32'; break
  16393. fi
  16394. rm -f core conftest.err conftest.$ac_objext
  16395. break
  16396. done
  16397. CC=$ac_save_CC
  16398. rm -f conftest.$ac_ext
  16399. fi
  16400. fi
  16401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  16402. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  16403. if test "$ac_cv_sys_largefile_CC" != no; then
  16404. CC=$CC$ac_cv_sys_largefile_CC
  16405. fi
  16406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  16407. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  16408. if ${ac_cv_sys_file_offset_bits+:} false; then :
  16409. $as_echo_n "(cached) " >&6
  16410. else
  16411. while :; do
  16412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16413. /* end confdefs.h. */
  16414. #include <sys/types.h>
  16415. /* Check that off_t can represent 2**63 - 1 correctly.
  16416. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16417. since some C++ compilers masquerading as C compilers
  16418. incorrectly reject 9223372036854775807. */
  16419. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16420. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16421. && LARGE_OFF_T % 2147483647 == 1)
  16422. ? 1 : -1];
  16423. int
  16424. main ()
  16425. {
  16426. ;
  16427. return 0;
  16428. }
  16429. _ACEOF
  16430. if ac_fn_c_try_compile "$LINENO"; then :
  16431. ac_cv_sys_file_offset_bits=no; break
  16432. fi
  16433. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16435. /* end confdefs.h. */
  16436. #define _FILE_OFFSET_BITS 64
  16437. #include <sys/types.h>
  16438. /* Check that off_t can represent 2**63 - 1 correctly.
  16439. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16440. since some C++ compilers masquerading as C compilers
  16441. incorrectly reject 9223372036854775807. */
  16442. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16443. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16444. && LARGE_OFF_T % 2147483647 == 1)
  16445. ? 1 : -1];
  16446. int
  16447. main ()
  16448. {
  16449. ;
  16450. return 0;
  16451. }
  16452. _ACEOF
  16453. if ac_fn_c_try_compile "$LINENO"; then :
  16454. ac_cv_sys_file_offset_bits=64; break
  16455. fi
  16456. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16457. ac_cv_sys_file_offset_bits=unknown
  16458. break
  16459. done
  16460. fi
  16461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  16462. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  16463. case $ac_cv_sys_file_offset_bits in #(
  16464. no | unknown) ;;
  16465. *)
  16466. cat >>confdefs.h <<_ACEOF
  16467. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  16468. _ACEOF
  16469. ;;
  16470. esac
  16471. rm -rf conftest*
  16472. if test $ac_cv_sys_file_offset_bits = unknown; then
  16473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  16474. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  16475. if ${ac_cv_sys_large_files+:} false; then :
  16476. $as_echo_n "(cached) " >&6
  16477. else
  16478. while :; do
  16479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16480. /* end confdefs.h. */
  16481. #include <sys/types.h>
  16482. /* Check that off_t can represent 2**63 - 1 correctly.
  16483. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16484. since some C++ compilers masquerading as C compilers
  16485. incorrectly reject 9223372036854775807. */
  16486. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16487. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16488. && LARGE_OFF_T % 2147483647 == 1)
  16489. ? 1 : -1];
  16490. int
  16491. main ()
  16492. {
  16493. ;
  16494. return 0;
  16495. }
  16496. _ACEOF
  16497. if ac_fn_c_try_compile "$LINENO"; then :
  16498. ac_cv_sys_large_files=no; break
  16499. fi
  16500. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16502. /* end confdefs.h. */
  16503. #define _LARGE_FILES 1
  16504. #include <sys/types.h>
  16505. /* Check that off_t can represent 2**63 - 1 correctly.
  16506. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16507. since some C++ compilers masquerading as C compilers
  16508. incorrectly reject 9223372036854775807. */
  16509. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16510. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16511. && LARGE_OFF_T % 2147483647 == 1)
  16512. ? 1 : -1];
  16513. int
  16514. main ()
  16515. {
  16516. ;
  16517. return 0;
  16518. }
  16519. _ACEOF
  16520. if ac_fn_c_try_compile "$LINENO"; then :
  16521. ac_cv_sys_large_files=1; break
  16522. fi
  16523. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16524. ac_cv_sys_large_files=unknown
  16525. break
  16526. done
  16527. fi
  16528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  16529. $as_echo "$ac_cv_sys_large_files" >&6; }
  16530. case $ac_cv_sys_large_files in #(
  16531. no | unknown) ;;
  16532. *)
  16533. cat >>confdefs.h <<_ACEOF
  16534. #define _LARGE_FILES $ac_cv_sys_large_files
  16535. _ACEOF
  16536. ;;
  16537. esac
  16538. rm -rf conftest*
  16539. fi
  16540. fi
  16541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  16542. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  16543. if ${ac_cv_sys_largefile_source+:} false; then :
  16544. $as_echo_n "(cached) " >&6
  16545. else
  16546. while :; do
  16547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16548. /* end confdefs.h. */
  16549. #include <sys/types.h> /* for off_t */
  16550. #include <stdio.h>
  16551. int
  16552. main ()
  16553. {
  16554. int (*fp) (FILE *, off_t, int) = fseeko;
  16555. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  16556. ;
  16557. return 0;
  16558. }
  16559. _ACEOF
  16560. if ac_fn_c_try_link "$LINENO"; then :
  16561. ac_cv_sys_largefile_source=no; break
  16562. fi
  16563. rm -f core conftest.err conftest.$ac_objext \
  16564. conftest$ac_exeext conftest.$ac_ext
  16565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16566. /* end confdefs.h. */
  16567. #define _LARGEFILE_SOURCE 1
  16568. #include <sys/types.h> /* for off_t */
  16569. #include <stdio.h>
  16570. int
  16571. main ()
  16572. {
  16573. int (*fp) (FILE *, off_t, int) = fseeko;
  16574. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  16575. ;
  16576. return 0;
  16577. }
  16578. _ACEOF
  16579. if ac_fn_c_try_link "$LINENO"; then :
  16580. ac_cv_sys_largefile_source=1; break
  16581. fi
  16582. rm -f core conftest.err conftest.$ac_objext \
  16583. conftest$ac_exeext conftest.$ac_ext
  16584. ac_cv_sys_largefile_source=unknown
  16585. break
  16586. done
  16587. fi
  16588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  16589. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  16590. case $ac_cv_sys_largefile_source in #(
  16591. no | unknown) ;;
  16592. *)
  16593. cat >>confdefs.h <<_ACEOF
  16594. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  16595. _ACEOF
  16596. ;;
  16597. esac
  16598. rm -rf conftest*
  16599. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  16600. # in glibc 2.1.3, but that breaks too many other things.
  16601. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  16602. if test $ac_cv_sys_largefile_source != unknown; then
  16603. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  16604. fi
  16605. ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
  16606. if test "x$ac_cv_type_u_int8_t" = xyes; then :
  16607. else
  16608. cat >>confdefs.h <<_ACEOF
  16609. #define u_int8_t uint8_t
  16610. _ACEOF
  16611. fi
  16612. ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
  16613. if test "x$ac_cv_type_u_int16_t" = xyes; then :
  16614. else
  16615. cat >>confdefs.h <<_ACEOF
  16616. #define u_int16_t uint16_t
  16617. _ACEOF
  16618. fi
  16619. ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
  16620. if test "x$ac_cv_type_u_int32_t" = xyes; then :
  16621. else
  16622. cat >>confdefs.h <<_ACEOF
  16623. #define u_int32_t uint32_t
  16624. _ACEOF
  16625. fi
  16626. ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
  16627. if test "x$ac_cv_type_u_int64_t" = xyes; then :
  16628. else
  16629. cat >>confdefs.h <<_ACEOF
  16630. #define u_int64_t uint64_t
  16631. _ACEOF
  16632. fi
  16633. wno_format=""
  16634. wno_macro_redefined=""
  16635. case $host in
  16636. *-apple-darwin*)
  16637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-macro-redefined" >&5
  16638. $as_echo_n "checking for $CC -Wno-macro-redefined... " >&6; }
  16639. OLD_CFLAGS=$CFLAGS
  16640. CFLAGS="$CFLAGS -Wno-macro-redefined -Werror"
  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. wno_macro_redefined="-Wno-macro-redefined"
  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. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-format" >&5
  16656. $as_echo_n "checking for $CC -Wno-format... " >&6; }
  16657. CFLAGS="$OLD_CFLAGS $wno_macro_redefined"
  16658. CFLAGS="$CFLAGS -Wno-format -Werror"
  16659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16660. /* end confdefs.h. */
  16661. #include <stdlib.h>
  16662. int main(int argc, char *argv[]) { return(0); }
  16663. _ACEOF
  16664. if ac_fn_c_try_compile "$LINENO"; then :
  16665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16666. $as_echo "yes" >&6; }
  16667. wno_format="-Wno-format"
  16668. else
  16669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16670. $as_echo "no" >&6; }
  16671. fi
  16672. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16673. CFLAGS="$OLD_CFLAGS $wno_format"
  16674. ;;
  16675. esac
  16676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wextra support" >&5
  16677. $as_echo_n "checking for $CC -Wextra support... " >&6; }
  16678. OLD_CFLAGS=$CFLAGS
  16679. CFLAGS="$CFLAGS -Wextra -Werror"
  16680. wextra=""
  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. wextra="-Wextra"
  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 $wextra"
  16696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-variadic-macros support" >&5
  16697. $as_echo_n "checking for $CC -Wno-variadic-macros support... " >&6; }
  16698. OLD_CFLAGS=$CFLAGS
  16699. CFLAGS="$CFLAGS -Wno-variadic-macros -Werror"
  16700. wno_variadic_macros=""
  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_variadic_macros="-Wno-variadic-macros"
  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_variadic_macros"
  16716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wfatal-errors support" >&5
  16717. $as_echo_n "checking for $CC -Wfatal-errors support... " >&6; }
  16718. OLD_CFLAGS=$CFLAGS
  16719. CFLAGS="$CFLAGS -Wfatal-errors -Werror"
  16720. wfatal_errors=""
  16721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16722. /* end confdefs.h. */
  16723. #include <stdlib.h>
  16724. int main(int argc, char *argv[]) { return(0); }
  16725. _ACEOF
  16726. if ac_fn_c_try_compile "$LINENO"; then :
  16727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16728. $as_echo "yes" >&6; }
  16729. wfatal_errors="-Wfatal-errors"
  16730. else
  16731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16732. $as_echo "no" >&6; }
  16733. fi
  16734. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16735. CFLAGS="$OLD_CFLAGS $wfatal_errors"
  16736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-format-contains-nul support" >&5
  16737. $as_echo_n "checking for $CC -Wno-format-contains-nul support... " >&6; }
  16738. OLD_CFLAGS=$CFLAGS
  16739. CFLAGS="$CFLAGS -Wno-format-contains-nul -Werror"
  16740. wno_format_contains_nul=""
  16741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16742. /* end confdefs.h. */
  16743. #include <stdlib.h>
  16744. int main(int argc, char *argv[]) { return(0); }
  16745. _ACEOF
  16746. if ac_fn_c_try_compile "$LINENO"; then :
  16747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16748. $as_echo "yes" >&6; }
  16749. wno_format_contains_nul="-Wno-format-contains-nul"
  16750. else
  16751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16752. $as_echo "no" >&6; }
  16753. fi
  16754. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16755. CFLAGS="$OLD_CFLAGS $wno_format_contains_nul"
  16756. for ac_header in fcntl.h stddef.h sys/socket.h arpa/inet.h sys/time.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. for ac_header in signal.h string.h strings.h sys/types.h stdint.h sys/select.h
  16767. do :
  16768. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16769. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16770. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16771. cat >>confdefs.h <<_ACEOF
  16772. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16773. _ACEOF
  16774. fi
  16775. done
  16776. for ac_header in netinet/in.h netinet/in_systm.h poll.h sys/poll.h unistd.h sys/param.h
  16777. do :
  16778. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16779. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16780. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16781. cat >>confdefs.h <<_ACEOF
  16782. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16783. _ACEOF
  16784. fi
  16785. done
  16786. for ac_header in inttypes.h libintl.h sys/file.h sys/ioctl.h sys/systeminfo.h
  16787. do :
  16788. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16789. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16790. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16791. cat >>confdefs.h <<_ACEOF
  16792. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16793. _ACEOF
  16794. fi
  16795. done
  16796. for ac_header in sys/io.h architecture/i386/pio.h sched.h fts.h
  16797. do :
  16798. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16799. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16800. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16801. cat >>confdefs.h <<_ACEOF
  16802. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16803. _ACEOF
  16804. fi
  16805. done
  16806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  16807. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  16808. if ${ac_cv_header_stdbool_h+:} false; then :
  16809. $as_echo_n "(cached) " >&6
  16810. else
  16811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16812. /* end confdefs.h. */
  16813. #include <stdbool.h>
  16814. #ifndef bool
  16815. "error: bool is not defined"
  16816. #endif
  16817. #ifndef false
  16818. "error: false is not defined"
  16819. #endif
  16820. #if false
  16821. "error: false is not 0"
  16822. #endif
  16823. #ifndef true
  16824. "error: true is not defined"
  16825. #endif
  16826. #if true != 1
  16827. "error: true is not 1"
  16828. #endif
  16829. #ifndef __bool_true_false_are_defined
  16830. "error: __bool_true_false_are_defined is not defined"
  16831. #endif
  16832. struct s { _Bool s: 1; _Bool t; } s;
  16833. char a[true == 1 ? 1 : -1];
  16834. char b[false == 0 ? 1 : -1];
  16835. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  16836. char d[(bool) 0.5 == true ? 1 : -1];
  16837. /* See body of main program for 'e'. */
  16838. char f[(_Bool) 0.0 == false ? 1 : -1];
  16839. char g[true];
  16840. char h[sizeof (_Bool)];
  16841. char i[sizeof s.t];
  16842. enum { j = false, k = true, l = false * true, m = true * 256 };
  16843. /* The following fails for
  16844. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  16845. _Bool n[m];
  16846. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  16847. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  16848. /* Catch a bug in an HP-UX C compiler. See
  16849. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  16850. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  16851. */
  16852. _Bool q = true;
  16853. _Bool *pq = &q;
  16854. int
  16855. main ()
  16856. {
  16857. bool e = &s;
  16858. *pq |= q;
  16859. *pq |= ! q;
  16860. /* Refer to every declared value, to avoid compiler optimizations. */
  16861. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  16862. + !m + !n + !o + !p + !q + !pq);
  16863. ;
  16864. return 0;
  16865. }
  16866. _ACEOF
  16867. if ac_fn_c_try_compile "$LINENO"; then :
  16868. ac_cv_header_stdbool_h=yes
  16869. else
  16870. ac_cv_header_stdbool_h=no
  16871. fi
  16872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16873. fi
  16874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  16875. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  16876. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  16877. if test "x$ac_cv_type__Bool" = xyes; then :
  16878. cat >>confdefs.h <<_ACEOF
  16879. #define HAVE__BOOL 1
  16880. _ACEOF
  16881. fi
  16882. if test $ac_cv_header_stdbool_h = yes; then
  16883. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  16884. fi
  16885. for ac_header in sys/sysctl.h net/route.h
  16886. do :
  16887. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16888. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  16889. #if HAVE_SYS_PARAM_H
  16890. #include <sys/param.h>
  16891. #endif
  16892. #if HAVE_SYS_TYPES_H
  16893. #include <sys/types.h>
  16894. #endif
  16895. #if HAVE_SYS_SOCKET_H
  16896. #include <sys/socket.h>
  16897. #endif
  16898. "
  16899. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16900. cat >>confdefs.h <<_ACEOF
  16901. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16902. _ACEOF
  16903. fi
  16904. done
  16905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  16906. $as_echo_n "checking for socket in -lsocket... " >&6; }
  16907. if ${ac_cv_lib_socket_socket+:} false; then :
  16908. $as_echo_n "(cached) " >&6
  16909. else
  16910. ac_check_lib_save_LIBS=$LIBS
  16911. LIBS="-lsocket $LIBS"
  16912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16913. /* end confdefs.h. */
  16914. /* Override any GCC internal prototype to avoid an error.
  16915. Use char because int might match the return type of a GCC
  16916. builtin and then its argument prototype would still apply. */
  16917. #ifdef __cplusplus
  16918. extern "C"
  16919. #endif
  16920. char socket ();
  16921. int
  16922. main ()
  16923. {
  16924. return socket ();
  16925. ;
  16926. return 0;
  16927. }
  16928. _ACEOF
  16929. if ac_fn_c_try_link "$LINENO"; then :
  16930. ac_cv_lib_socket_socket=yes
  16931. else
  16932. ac_cv_lib_socket_socket=no
  16933. fi
  16934. rm -f core conftest.err conftest.$ac_objext \
  16935. conftest$ac_exeext conftest.$ac_ext
  16936. LIBS=$ac_check_lib_save_LIBS
  16937. fi
  16938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  16939. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  16940. if test "x$ac_cv_lib_socket_socket" = xyes; then :
  16941. cat >>confdefs.h <<_ACEOF
  16942. #define HAVE_LIBSOCKET 1
  16943. _ACEOF
  16944. LIBS="-lsocket $LIBS"
  16945. fi
  16946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  16947. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  16948. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  16949. $as_echo_n "(cached) " >&6
  16950. else
  16951. ac_check_lib_save_LIBS=$LIBS
  16952. LIBS="-lnsl $LIBS"
  16953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16954. /* end confdefs.h. */
  16955. /* Override any GCC internal prototype to avoid an error.
  16956. Use char because int might match the return type of a GCC
  16957. builtin and then its argument prototype would still apply. */
  16958. #ifdef __cplusplus
  16959. extern "C"
  16960. #endif
  16961. char gethostbyname ();
  16962. int
  16963. main ()
  16964. {
  16965. return gethostbyname ();
  16966. ;
  16967. return 0;
  16968. }
  16969. _ACEOF
  16970. if ac_fn_c_try_link "$LINENO"; then :
  16971. ac_cv_lib_nsl_gethostbyname=yes
  16972. else
  16973. ac_cv_lib_nsl_gethostbyname=no
  16974. fi
  16975. rm -f core conftest.err conftest.$ac_objext \
  16976. conftest$ac_exeext conftest.$ac_ext
  16977. LIBS=$ac_check_lib_save_LIBS
  16978. fi
  16979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  16980. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  16981. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  16982. cat >>confdefs.h <<_ACEOF
  16983. #define HAVE_LIBNSL 1
  16984. _ACEOF
  16985. LIBS="-lnsl $LIBS"
  16986. fi
  16987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
  16988. $as_echo_n "checking for nanosleep in -lrt... " >&6; }
  16989. if ${ac_cv_lib_rt_nanosleep+:} false; then :
  16990. $as_echo_n "(cached) " >&6
  16991. else
  16992. ac_check_lib_save_LIBS=$LIBS
  16993. LIBS="-lrt $LIBS"
  16994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16995. /* end confdefs.h. */
  16996. /* Override any GCC internal prototype to avoid an error.
  16997. Use char because int might match the return type of a GCC
  16998. builtin and then its argument prototype would still apply. */
  16999. #ifdef __cplusplus
  17000. extern "C"
  17001. #endif
  17002. char nanosleep ();
  17003. int
  17004. main ()
  17005. {
  17006. return nanosleep ();
  17007. ;
  17008. return 0;
  17009. }
  17010. _ACEOF
  17011. if ac_fn_c_try_link "$LINENO"; then :
  17012. ac_cv_lib_rt_nanosleep=yes
  17013. else
  17014. ac_cv_lib_rt_nanosleep=no
  17015. fi
  17016. rm -f core conftest.err conftest.$ac_objext \
  17017. conftest$ac_exeext conftest.$ac_ext
  17018. LIBS=$ac_check_lib_save_LIBS
  17019. fi
  17020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
  17021. $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
  17022. if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
  17023. cat >>confdefs.h <<_ACEOF
  17024. #define HAVE_LIBRT 1
  17025. _ACEOF
  17026. LIBS="-lrt $LIBS"
  17027. fi
  17028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolv in -lresolv" >&5
  17029. $as_echo_n "checking for resolv in -lresolv... " >&6; }
  17030. if ${ac_cv_lib_resolv_resolv+:} false; then :
  17031. $as_echo_n "(cached) " >&6
  17032. else
  17033. ac_check_lib_save_LIBS=$LIBS
  17034. LIBS="-lresolv $LIBS"
  17035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17036. /* end confdefs.h. */
  17037. /* Override any GCC internal prototype to avoid an error.
  17038. Use char because int might match the return type of a GCC
  17039. builtin and then its argument prototype would still apply. */
  17040. #ifdef __cplusplus
  17041. extern "C"
  17042. #endif
  17043. char resolv ();
  17044. int
  17045. main ()
  17046. {
  17047. return resolv ();
  17048. ;
  17049. return 0;
  17050. }
  17051. _ACEOF
  17052. if ac_fn_c_try_link "$LINENO"; then :
  17053. ac_cv_lib_resolv_resolv=yes
  17054. else
  17055. ac_cv_lib_resolv_resolv=no
  17056. fi
  17057. rm -f core conftest.err conftest.$ac_objext \
  17058. conftest$ac_exeext conftest.$ac_ext
  17059. LIBS=$ac_check_lib_save_LIBS
  17060. fi
  17061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_resolv" >&5
  17062. $as_echo "$ac_cv_lib_resolv_resolv" >&6; }
  17063. if test "x$ac_cv_lib_resolv_resolv" = xyes; then :
  17064. cat >>confdefs.h <<_ACEOF
  17065. #define HAVE_LIBRESOLV 1
  17066. _ACEOF
  17067. LIBS="-lresolv $LIBS"
  17068. fi
  17069. for ac_header in vfork.h
  17070. do :
  17071. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  17072. if test "x$ac_cv_header_vfork_h" = xyes; then :
  17073. cat >>confdefs.h <<_ACEOF
  17074. #define HAVE_VFORK_H 1
  17075. _ACEOF
  17076. fi
  17077. done
  17078. for ac_func in fork vfork
  17079. do :
  17080. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17081. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17082. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17083. cat >>confdefs.h <<_ACEOF
  17084. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17085. _ACEOF
  17086. fi
  17087. done
  17088. if test "x$ac_cv_func_fork" = xyes; then
  17089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  17090. $as_echo_n "checking for working fork... " >&6; }
  17091. if ${ac_cv_func_fork_works+:} false; then :
  17092. $as_echo_n "(cached) " >&6
  17093. else
  17094. if test "$cross_compiling" = yes; then :
  17095. ac_cv_func_fork_works=cross
  17096. else
  17097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17098. /* end confdefs.h. */
  17099. $ac_includes_default
  17100. int
  17101. main ()
  17102. {
  17103. /* By Ruediger Kuhlmann. */
  17104. return fork () < 0;
  17105. ;
  17106. return 0;
  17107. }
  17108. _ACEOF
  17109. if ac_fn_c_try_run "$LINENO"; then :
  17110. ac_cv_func_fork_works=yes
  17111. else
  17112. ac_cv_func_fork_works=no
  17113. fi
  17114. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17115. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17116. fi
  17117. fi
  17118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  17119. $as_echo "$ac_cv_func_fork_works" >&6; }
  17120. else
  17121. ac_cv_func_fork_works=$ac_cv_func_fork
  17122. fi
  17123. if test "x$ac_cv_func_fork_works" = xcross; then
  17124. case $host in
  17125. *-*-amigaos* | *-*-msdosdjgpp*)
  17126. # Override, as these systems have only a dummy fork() stub
  17127. ac_cv_func_fork_works=no
  17128. ;;
  17129. *)
  17130. ac_cv_func_fork_works=yes
  17131. ;;
  17132. esac
  17133. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  17134. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  17135. fi
  17136. ac_cv_func_vfork_works=$ac_cv_func_vfork
  17137. if test "x$ac_cv_func_vfork" = xyes; then
  17138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  17139. $as_echo_n "checking for working vfork... " >&6; }
  17140. if ${ac_cv_func_vfork_works+:} false; then :
  17141. $as_echo_n "(cached) " >&6
  17142. else
  17143. if test "$cross_compiling" = yes; then :
  17144. ac_cv_func_vfork_works=cross
  17145. else
  17146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17147. /* end confdefs.h. */
  17148. /* Thanks to Paul Eggert for this test. */
  17149. $ac_includes_default
  17150. #include <sys/wait.h>
  17151. #ifdef HAVE_VFORK_H
  17152. # include <vfork.h>
  17153. #endif
  17154. /* On some sparc systems, changes by the child to local and incoming
  17155. argument registers are propagated back to the parent. The compiler
  17156. is told about this with #include <vfork.h>, but some compilers
  17157. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  17158. static variable whose address is put into a register that is
  17159. clobbered by the vfork. */
  17160. static void
  17161. #ifdef __cplusplus
  17162. sparc_address_test (int arg)
  17163. # else
  17164. sparc_address_test (arg) int arg;
  17165. #endif
  17166. {
  17167. static pid_t child;
  17168. if (!child) {
  17169. child = vfork ();
  17170. if (child < 0) {
  17171. perror ("vfork");
  17172. _exit(2);
  17173. }
  17174. if (!child) {
  17175. arg = getpid();
  17176. write(-1, "", 0);
  17177. _exit (arg);
  17178. }
  17179. }
  17180. }
  17181. int
  17182. main ()
  17183. {
  17184. pid_t parent = getpid ();
  17185. pid_t child;
  17186. sparc_address_test (0);
  17187. child = vfork ();
  17188. if (child == 0) {
  17189. /* Here is another test for sparc vfork register problems. This
  17190. test uses lots of local variables, at least as many local
  17191. variables as main has allocated so far including compiler
  17192. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  17193. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  17194. reuse the register of parent for one of the local variables,
  17195. since it will think that parent can't possibly be used any more
  17196. in this routine. Assigning to the local variable will thus
  17197. munge parent in the parent process. */
  17198. pid_t
  17199. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  17200. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  17201. /* Convince the compiler that p..p7 are live; otherwise, it might
  17202. use the same hardware register for all 8 local variables. */
  17203. if (p != p1 || p != p2 || p != p3 || p != p4
  17204. || p != p5 || p != p6 || p != p7)
  17205. _exit(1);
  17206. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  17207. from child file descriptors. If the child closes a descriptor
  17208. before it execs or exits, this munges the parent's descriptor
  17209. as well. Test for this by closing stdout in the child. */
  17210. _exit(close(fileno(stdout)) != 0);
  17211. } else {
  17212. int status;
  17213. struct stat st;
  17214. while (wait(&status) != child)
  17215. ;
  17216. return (
  17217. /* Was there some problem with vforking? */
  17218. child < 0
  17219. /* Did the child fail? (This shouldn't happen.) */
  17220. || status
  17221. /* Did the vfork/compiler bug occur? */
  17222. || parent != getpid()
  17223. /* Did the file descriptor bug occur? */
  17224. || fstat(fileno(stdout), &st) != 0
  17225. );
  17226. }
  17227. }
  17228. _ACEOF
  17229. if ac_fn_c_try_run "$LINENO"; then :
  17230. ac_cv_func_vfork_works=yes
  17231. else
  17232. ac_cv_func_vfork_works=no
  17233. fi
  17234. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17235. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17236. fi
  17237. fi
  17238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  17239. $as_echo "$ac_cv_func_vfork_works" >&6; }
  17240. fi;
  17241. if test "x$ac_cv_func_fork_works" = xcross; then
  17242. ac_cv_func_vfork_works=$ac_cv_func_vfork
  17243. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  17244. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  17245. fi
  17246. if test "x$ac_cv_func_vfork_works" = xyes; then
  17247. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  17248. else
  17249. $as_echo "#define vfork fork" >>confdefs.h
  17250. fi
  17251. if test "x$ac_cv_func_fork_works" = xyes; then
  17252. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  17253. fi
  17254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  17255. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  17256. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  17257. $as_echo_n "(cached) " >&6
  17258. else
  17259. rm -f conftest.sym conftest.file
  17260. echo >conftest.file
  17261. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  17262. if test "$cross_compiling" = yes; then :
  17263. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17264. else
  17265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17266. /* end confdefs.h. */
  17267. $ac_includes_default
  17268. int
  17269. main ()
  17270. {
  17271. struct stat sbuf;
  17272. /* Linux will dereference the symlink and fail, as required by POSIX.
  17273. That is better in the sense that it means we will not
  17274. have to compile and use the lstat wrapper. */
  17275. return lstat ("conftest.sym/", &sbuf) == 0;
  17276. ;
  17277. return 0;
  17278. }
  17279. _ACEOF
  17280. if ac_fn_c_try_run "$LINENO"; then :
  17281. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  17282. else
  17283. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17284. fi
  17285. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17286. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17287. fi
  17288. else
  17289. # If the `ln -s' command failed, then we probably don't even
  17290. # have an lstat function.
  17291. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17292. fi
  17293. rm -f conftest.sym conftest.file
  17294. fi
  17295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  17296. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  17297. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  17298. cat >>confdefs.h <<_ACEOF
  17299. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  17300. _ACEOF
  17301. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  17302. case " $LIBOBJS " in
  17303. *" lstat.$ac_objext "* ) ;;
  17304. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  17305. ;;
  17306. esac
  17307. fi
  17308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  17309. $as_echo_n "checking for working memcmp... " >&6; }
  17310. if ${ac_cv_func_memcmp_working+:} false; then :
  17311. $as_echo_n "(cached) " >&6
  17312. else
  17313. if test "$cross_compiling" = yes; then :
  17314. ac_cv_func_memcmp_working=no
  17315. else
  17316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17317. /* end confdefs.h. */
  17318. $ac_includes_default
  17319. int
  17320. main ()
  17321. {
  17322. /* Some versions of memcmp are not 8-bit clean. */
  17323. char c0 = '\100', c1 = '\200', c2 = '\201';
  17324. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  17325. return 1;
  17326. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  17327. or more and with at least one buffer not starting on a 4-byte boundary.
  17328. William Lewis provided this test program. */
  17329. {
  17330. char foo[21];
  17331. char bar[21];
  17332. int i;
  17333. for (i = 0; i < 4; i++)
  17334. {
  17335. char *a = foo + i;
  17336. char *b = bar + i;
  17337. strcpy (a, "--------01111111");
  17338. strcpy (b, "--------10000000");
  17339. if (memcmp (a, b, 16) >= 0)
  17340. return 1;
  17341. }
  17342. return 0;
  17343. }
  17344. ;
  17345. return 0;
  17346. }
  17347. _ACEOF
  17348. if ac_fn_c_try_run "$LINENO"; then :
  17349. ac_cv_func_memcmp_working=yes
  17350. else
  17351. ac_cv_func_memcmp_working=no
  17352. fi
  17353. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17354. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17355. fi
  17356. fi
  17357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  17358. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  17359. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  17360. *" memcmp.$ac_objext "* ) ;;
  17361. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  17362. ;;
  17363. esac
  17364. for ac_func in vprintf
  17365. do :
  17366. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  17367. if test "x$ac_cv_func_vprintf" = xyes; then :
  17368. cat >>confdefs.h <<_ACEOF
  17369. #define HAVE_VPRINTF 1
  17370. _ACEOF
  17371. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  17372. if test "x$ac_cv_func__doprnt" = xyes; then :
  17373. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  17374. fi
  17375. fi
  17376. done
  17377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  17378. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  17379. if ${ac_cv_header_time+:} false; then :
  17380. $as_echo_n "(cached) " >&6
  17381. else
  17382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17383. /* end confdefs.h. */
  17384. #include <sys/types.h>
  17385. #include <sys/time.h>
  17386. #include <time.h>
  17387. int
  17388. main ()
  17389. {
  17390. if ((struct tm *) 0)
  17391. return 0;
  17392. ;
  17393. return 0;
  17394. }
  17395. _ACEOF
  17396. if ac_fn_c_try_compile "$LINENO"; then :
  17397. ac_cv_header_time=yes
  17398. else
  17399. ac_cv_header_time=no
  17400. fi
  17401. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17402. fi
  17403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  17404. $as_echo "$ac_cv_header_time" >&6; }
  17405. if test $ac_cv_header_time = yes; then
  17406. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  17407. fi
  17408. for ac_func in $ac_func_list
  17409. do :
  17410. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17411. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17412. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17413. cat >>confdefs.h <<_ACEOF
  17414. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17415. _ACEOF
  17416. fi
  17417. done
  17418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  17419. $as_echo_n "checking for working mktime... " >&6; }
  17420. if ${ac_cv_func_working_mktime+:} false; then :
  17421. $as_echo_n "(cached) " >&6
  17422. else
  17423. if test "$cross_compiling" = yes; then :
  17424. ac_cv_func_working_mktime=no
  17425. else
  17426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17427. /* end confdefs.h. */
  17428. /* Test program from Paul Eggert and Tony Leneis. */
  17429. #ifdef TIME_WITH_SYS_TIME
  17430. # include <sys/time.h>
  17431. # include <time.h>
  17432. #else
  17433. # ifdef HAVE_SYS_TIME_H
  17434. # include <sys/time.h>
  17435. # else
  17436. # include <time.h>
  17437. # endif
  17438. #endif
  17439. #include <limits.h>
  17440. #include <stdlib.h>
  17441. #ifdef HAVE_UNISTD_H
  17442. # include <unistd.h>
  17443. #endif
  17444. #ifndef HAVE_ALARM
  17445. # define alarm(X) /* empty */
  17446. #endif
  17447. /* Work around redefinition to rpl_putenv by other config tests. */
  17448. #undef putenv
  17449. static time_t time_t_max;
  17450. static time_t time_t_min;
  17451. /* Values we'll use to set the TZ environment variable. */
  17452. static const char *tz_strings[] = {
  17453. (const char *) 0, "TZ=GMT0", "TZ=JST-9",
  17454. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  17455. };
  17456. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  17457. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  17458. Based on a problem report from Andreas Jaeger. */
  17459. static int
  17460. spring_forward_gap ()
  17461. {
  17462. /* glibc (up to about 1998-10-07) failed this test. */
  17463. struct tm tm;
  17464. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17465. instead of "TZ=America/Vancouver" in order to detect the bug even
  17466. on systems that don't support the Olson extension, or don't have the
  17467. full zoneinfo tables installed. */
  17468. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  17469. tm.tm_year = 98;
  17470. tm.tm_mon = 3;
  17471. tm.tm_mday = 5;
  17472. tm.tm_hour = 2;
  17473. tm.tm_min = 0;
  17474. tm.tm_sec = 0;
  17475. tm.tm_isdst = -1;
  17476. return mktime (&tm) != (time_t) -1;
  17477. }
  17478. static int
  17479. mktime_test1 (time_t now)
  17480. {
  17481. struct tm *lt;
  17482. return ! (lt = localtime (&now)) || mktime (lt) == now;
  17483. }
  17484. static int
  17485. mktime_test (time_t now)
  17486. {
  17487. return (mktime_test1 (now)
  17488. && mktime_test1 ((time_t) (time_t_max - now))
  17489. && mktime_test1 ((time_t) (time_t_min + now)));
  17490. }
  17491. static int
  17492. irix_6_4_bug ()
  17493. {
  17494. /* Based on code from Ariel Faigon. */
  17495. struct tm tm;
  17496. tm.tm_year = 96;
  17497. tm.tm_mon = 3;
  17498. tm.tm_mday = 0;
  17499. tm.tm_hour = 0;
  17500. tm.tm_min = 0;
  17501. tm.tm_sec = 0;
  17502. tm.tm_isdst = -1;
  17503. mktime (&tm);
  17504. return tm.tm_mon == 2 && tm.tm_mday == 31;
  17505. }
  17506. static int
  17507. bigtime_test (int j)
  17508. {
  17509. struct tm tm;
  17510. time_t now;
  17511. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  17512. now = mktime (&tm);
  17513. if (now != (time_t) -1)
  17514. {
  17515. struct tm *lt = localtime (&now);
  17516. if (! (lt
  17517. && lt->tm_year == tm.tm_year
  17518. && lt->tm_mon == tm.tm_mon
  17519. && lt->tm_mday == tm.tm_mday
  17520. && lt->tm_hour == tm.tm_hour
  17521. && lt->tm_min == tm.tm_min
  17522. && lt->tm_sec == tm.tm_sec
  17523. && lt->tm_yday == tm.tm_yday
  17524. && lt->tm_wday == tm.tm_wday
  17525. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  17526. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  17527. return 0;
  17528. }
  17529. return 1;
  17530. }
  17531. static int
  17532. year_2050_test ()
  17533. {
  17534. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  17535. ignoring leap seconds. */
  17536. unsigned long int answer = 2527315200UL;
  17537. struct tm tm;
  17538. time_t t;
  17539. tm.tm_year = 2050 - 1900;
  17540. tm.tm_mon = 2 - 1;
  17541. tm.tm_mday = 1;
  17542. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  17543. tm.tm_isdst = -1;
  17544. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17545. instead of "TZ=America/Vancouver" in order to detect the bug even
  17546. on systems that don't support the Olson extension, or don't have the
  17547. full zoneinfo tables installed. */
  17548. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  17549. t = mktime (&tm);
  17550. /* Check that the result is either a failure, or close enough
  17551. to the correct answer that we can assume the discrepancy is
  17552. due to leap seconds. */
  17553. return (t == (time_t) -1
  17554. || (0 < t && answer - 120 <= t && t <= answer + 120));
  17555. }
  17556. int
  17557. main ()
  17558. {
  17559. time_t t, delta;
  17560. int i, j;
  17561. /* This test makes some buggy mktime implementations loop.
  17562. Give up after 60 seconds; a mktime slower than that
  17563. isn't worth using anyway. */
  17564. alarm (60);
  17565. for (;;)
  17566. {
  17567. t = (time_t_max << 1) + 1;
  17568. if (t <= time_t_max)
  17569. break;
  17570. time_t_max = t;
  17571. }
  17572. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  17573. delta = time_t_max / 997; /* a suitable prime number */
  17574. for (i = 0; i < N_STRINGS; i++)
  17575. {
  17576. if (tz_strings[i])
  17577. putenv ((char*) tz_strings[i]);
  17578. for (t = 0; t <= time_t_max - delta; t += delta)
  17579. if (! mktime_test (t))
  17580. return 1;
  17581. if (! (mktime_test ((time_t) 1)
  17582. && mktime_test ((time_t) (60 * 60))
  17583. && mktime_test ((time_t) (60 * 60 * 24))))
  17584. return 1;
  17585. for (j = 1; ; j <<= 1)
  17586. if (! bigtime_test (j))
  17587. return 1;
  17588. else if (INT_MAX / 2 < j)
  17589. break;
  17590. if (! bigtime_test (INT_MAX))
  17591. return 1;
  17592. }
  17593. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  17594. }
  17595. _ACEOF
  17596. if ac_fn_c_try_run "$LINENO"; then :
  17597. ac_cv_func_working_mktime=yes
  17598. else
  17599. ac_cv_func_working_mktime=no
  17600. fi
  17601. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17602. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17603. fi
  17604. fi
  17605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  17606. $as_echo "$ac_cv_func_working_mktime" >&6; }
  17607. if test $ac_cv_func_working_mktime = no; then
  17608. case " $LIBOBJS " in
  17609. *" mktime.$ac_objext "* ) ;;
  17610. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  17611. ;;
  17612. esac
  17613. fi
  17614. for ac_func in getpagesize
  17615. do :
  17616. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  17617. if test "x$ac_cv_func_getpagesize" = xyes; then :
  17618. cat >>confdefs.h <<_ACEOF
  17619. #define HAVE_GETPAGESIZE 1
  17620. _ACEOF
  17621. fi
  17622. done
  17623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  17624. $as_echo_n "checking for working mmap... " >&6; }
  17625. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  17626. $as_echo_n "(cached) " >&6
  17627. else
  17628. if test "$cross_compiling" = yes; then :
  17629. ac_cv_func_mmap_fixed_mapped=no
  17630. else
  17631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17632. /* end confdefs.h. */
  17633. $ac_includes_default
  17634. /* malloc might have been renamed as rpl_malloc. */
  17635. #undef malloc
  17636. /* Thanks to Mike Haertel and Jim Avera for this test.
  17637. Here is a matrix of mmap possibilities:
  17638. mmap private not fixed
  17639. mmap private fixed at somewhere currently unmapped
  17640. mmap private fixed at somewhere already mapped
  17641. mmap shared not fixed
  17642. mmap shared fixed at somewhere currently unmapped
  17643. mmap shared fixed at somewhere already mapped
  17644. For private mappings, we should verify that changes cannot be read()
  17645. back from the file, nor mmap's back from the file at a different
  17646. address. (There have been systems where private was not correctly
  17647. implemented like the infamous i386 svr4.0, and systems where the
  17648. VM page cache was not coherent with the file system buffer cache
  17649. like early versions of FreeBSD and possibly contemporary NetBSD.)
  17650. For shared mappings, we should conversely verify that changes get
  17651. propagated back to all the places they're supposed to be.
  17652. Grep wants private fixed already mapped.
  17653. The main things grep needs to know about mmap are:
  17654. * does it exist and is it safe to write into the mmap'd area
  17655. * how to use it (BSD variants) */
  17656. #include <fcntl.h>
  17657. #include <sys/mman.h>
  17658. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  17659. char *malloc ();
  17660. #endif
  17661. /* This mess was copied from the GNU getpagesize.h. */
  17662. #ifndef HAVE_GETPAGESIZE
  17663. # ifdef _SC_PAGESIZE
  17664. # define getpagesize() sysconf(_SC_PAGESIZE)
  17665. # else /* no _SC_PAGESIZE */
  17666. # ifdef HAVE_SYS_PARAM_H
  17667. # include <sys/param.h>
  17668. # ifdef EXEC_PAGESIZE
  17669. # define getpagesize() EXEC_PAGESIZE
  17670. # else /* no EXEC_PAGESIZE */
  17671. # ifdef NBPG
  17672. # define getpagesize() NBPG * CLSIZE
  17673. # ifndef CLSIZE
  17674. # define CLSIZE 1
  17675. # endif /* no CLSIZE */
  17676. # else /* no NBPG */
  17677. # ifdef NBPC
  17678. # define getpagesize() NBPC
  17679. # else /* no NBPC */
  17680. # ifdef PAGESIZE
  17681. # define getpagesize() PAGESIZE
  17682. # endif /* PAGESIZE */
  17683. # endif /* no NBPC */
  17684. # endif /* no NBPG */
  17685. # endif /* no EXEC_PAGESIZE */
  17686. # else /* no HAVE_SYS_PARAM_H */
  17687. # define getpagesize() 8192 /* punt totally */
  17688. # endif /* no HAVE_SYS_PARAM_H */
  17689. # endif /* no _SC_PAGESIZE */
  17690. #endif /* no HAVE_GETPAGESIZE */
  17691. int
  17692. main ()
  17693. {
  17694. char *data, *data2, *data3;
  17695. const char *cdata2;
  17696. int i, pagesize;
  17697. int fd, fd2;
  17698. pagesize = getpagesize ();
  17699. /* First, make a file with some known garbage in it. */
  17700. data = (char *) malloc (pagesize);
  17701. if (!data)
  17702. return 1;
  17703. for (i = 0; i < pagesize; ++i)
  17704. *(data + i) = rand ();
  17705. umask (0);
  17706. fd = creat ("conftest.mmap", 0600);
  17707. if (fd < 0)
  17708. return 2;
  17709. if (write (fd, data, pagesize) != pagesize)
  17710. return 3;
  17711. close (fd);
  17712. /* Next, check that the tail of a page is zero-filled. File must have
  17713. non-zero length, otherwise we risk SIGBUS for entire page. */
  17714. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  17715. if (fd2 < 0)
  17716. return 4;
  17717. cdata2 = "";
  17718. if (write (fd2, cdata2, 1) != 1)
  17719. return 5;
  17720. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  17721. if (data2 == MAP_FAILED)
  17722. return 6;
  17723. for (i = 0; i < pagesize; ++i)
  17724. if (*(data2 + i))
  17725. return 7;
  17726. close (fd2);
  17727. if (munmap (data2, pagesize))
  17728. return 8;
  17729. /* Next, try to mmap the file at a fixed address which already has
  17730. something else allocated at it. If we can, also make sure that
  17731. we see the same garbage. */
  17732. fd = open ("conftest.mmap", O_RDWR);
  17733. if (fd < 0)
  17734. return 9;
  17735. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  17736. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  17737. return 10;
  17738. for (i = 0; i < pagesize; ++i)
  17739. if (*(data + i) != *(data2 + i))
  17740. return 11;
  17741. /* Finally, make sure that changes to the mapped area do not
  17742. percolate back to the file as seen by read(). (This is a bug on
  17743. some variants of i386 svr4.0.) */
  17744. for (i = 0; i < pagesize; ++i)
  17745. *(data2 + i) = *(data2 + i) + 1;
  17746. data3 = (char *) malloc (pagesize);
  17747. if (!data3)
  17748. return 12;
  17749. if (read (fd, data3, pagesize) != pagesize)
  17750. return 13;
  17751. for (i = 0; i < pagesize; ++i)
  17752. if (*(data + i) != *(data3 + i))
  17753. return 14;
  17754. close (fd);
  17755. free (data);
  17756. free (data3);
  17757. return 0;
  17758. }
  17759. _ACEOF
  17760. if ac_fn_c_try_run "$LINENO"; then :
  17761. ac_cv_func_mmap_fixed_mapped=yes
  17762. else
  17763. ac_cv_func_mmap_fixed_mapped=no
  17764. fi
  17765. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17766. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17767. fi
  17768. fi
  17769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  17770. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  17771. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  17772. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  17773. fi
  17774. rm -f conftest.mmap conftest.txt
  17775. ac_fn_c_check_member "$LINENO" "struct timeval" "tv_sec" "ac_cv_member_struct_timeval_tv_sec" "$ac_includes_default"
  17776. if test "x$ac_cv_member_struct_timeval_tv_sec" = xyes; then :
  17777. cat >>confdefs.h <<_ACEOF
  17778. #define HAVE_STRUCT_TIMEVAL_TV_SEC 1
  17779. _ACEOF
  17780. fi
  17781. for ac_func in alarm atexit bzero dup2 gethostbyname getpagesize gettimeofday
  17782. do :
  17783. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17784. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17785. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17786. cat >>confdefs.h <<_ACEOF
  17787. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17788. _ACEOF
  17789. fi
  17790. done
  17791. for ac_func in ctime inet_ntoa memmove memset munmap pow putenv realpath
  17792. do :
  17793. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17794. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17795. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17796. cat >>confdefs.h <<_ACEOF
  17797. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17798. _ACEOF
  17799. fi
  17800. done
  17801. for ac_func in regcomp strdup select socket strcasecmp strchr strcspn strdup
  17802. do :
  17803. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17804. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17805. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17806. cat >>confdefs.h <<_ACEOF
  17807. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17808. _ACEOF
  17809. fi
  17810. done
  17811. for ac_func in strerror strtol strncpy strtoull poll ntohll mmap snprintf
  17812. do :
  17813. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17814. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17815. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17816. cat >>confdefs.h <<_ACEOF
  17817. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17818. _ACEOF
  17819. fi
  17820. done
  17821. for ac_func in vsnprintf strsignal strpbrk strrchr strspn strstr strtoul
  17822. do :
  17823. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17824. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17825. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17826. cat >>confdefs.h <<_ACEOF
  17827. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17828. _ACEOF
  17829. fi
  17830. done
  17831. for ac_func in ioperm
  17832. do :
  17833. ac_fn_c_check_func "$LINENO" "ioperm" "ac_cv_func_ioperm"
  17834. if test "x$ac_cv_func_ioperm" = xyes; then :
  17835. cat >>confdefs.h <<_ACEOF
  17836. #define HAVE_IOPERM 1
  17837. _ACEOF
  17838. fi
  17839. done
  17840. for ac_func in strlcpy
  17841. do :
  17842. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  17843. if test "x$ac_cv_func_strlcpy" = xyes; then :
  17844. cat >>confdefs.h <<_ACEOF
  17845. #define HAVE_STRLCPY 1
  17846. _ACEOF
  17847. have_strlcpy=true
  17848. else
  17849. have_strlcpy=false
  17850. fi
  17851. done
  17852. if test x$have_strlcpy = xtrue; then
  17853. SYSTEM_STRLCPY_TRUE=
  17854. SYSTEM_STRLCPY_FALSE='#'
  17855. else
  17856. SYSTEM_STRLCPY_TRUE='#'
  17857. SYSTEM_STRLCPY_FALSE=
  17858. fi
  17859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  17860. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  17861. if ${ac_cv_c_bigendian+:} false; then :
  17862. $as_echo_n "(cached) " >&6
  17863. else
  17864. ac_cv_c_bigendian=unknown
  17865. # See if we're dealing with a universal compiler.
  17866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17867. /* end confdefs.h. */
  17868. #ifndef __APPLE_CC__
  17869. not a universal capable compiler
  17870. #endif
  17871. typedef int dummy;
  17872. _ACEOF
  17873. if ac_fn_c_try_compile "$LINENO"; then :
  17874. # Check for potential -arch flags. It is not universal unless
  17875. # there are at least two -arch flags with different values.
  17876. ac_arch=
  17877. ac_prev=
  17878. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  17879. if test -n "$ac_prev"; then
  17880. case $ac_word in
  17881. i?86 | x86_64 | ppc | ppc64)
  17882. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  17883. ac_arch=$ac_word
  17884. else
  17885. ac_cv_c_bigendian=universal
  17886. break
  17887. fi
  17888. ;;
  17889. esac
  17890. ac_prev=
  17891. elif test "x$ac_word" = "x-arch"; then
  17892. ac_prev=arch
  17893. fi
  17894. done
  17895. fi
  17896. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17897. if test $ac_cv_c_bigendian = unknown; then
  17898. # See if sys/param.h defines the BYTE_ORDER macro.
  17899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17900. /* end confdefs.h. */
  17901. #include <sys/types.h>
  17902. #include <sys/param.h>
  17903. int
  17904. main ()
  17905. {
  17906. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  17907. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  17908. && LITTLE_ENDIAN)
  17909. bogus endian macros
  17910. #endif
  17911. ;
  17912. return 0;
  17913. }
  17914. _ACEOF
  17915. if ac_fn_c_try_compile "$LINENO"; then :
  17916. # It does; now see whether it defined to BIG_ENDIAN or not.
  17917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17918. /* end confdefs.h. */
  17919. #include <sys/types.h>
  17920. #include <sys/param.h>
  17921. int
  17922. main ()
  17923. {
  17924. #if BYTE_ORDER != BIG_ENDIAN
  17925. not big endian
  17926. #endif
  17927. ;
  17928. return 0;
  17929. }
  17930. _ACEOF
  17931. if ac_fn_c_try_compile "$LINENO"; then :
  17932. ac_cv_c_bigendian=yes
  17933. else
  17934. ac_cv_c_bigendian=no
  17935. fi
  17936. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17937. fi
  17938. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17939. fi
  17940. if test $ac_cv_c_bigendian = unknown; then
  17941. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  17942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17943. /* end confdefs.h. */
  17944. #include <limits.h>
  17945. int
  17946. main ()
  17947. {
  17948. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  17949. bogus endian macros
  17950. #endif
  17951. ;
  17952. return 0;
  17953. }
  17954. _ACEOF
  17955. if ac_fn_c_try_compile "$LINENO"; then :
  17956. # It does; now see whether it defined to _BIG_ENDIAN or not.
  17957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17958. /* end confdefs.h. */
  17959. #include <limits.h>
  17960. int
  17961. main ()
  17962. {
  17963. #ifndef _BIG_ENDIAN
  17964. not big endian
  17965. #endif
  17966. ;
  17967. return 0;
  17968. }
  17969. _ACEOF
  17970. if ac_fn_c_try_compile "$LINENO"; then :
  17971. ac_cv_c_bigendian=yes
  17972. else
  17973. ac_cv_c_bigendian=no
  17974. fi
  17975. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17976. fi
  17977. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17978. fi
  17979. if test $ac_cv_c_bigendian = unknown; then
  17980. # Compile a test program.
  17981. if test "$cross_compiling" = yes; then :
  17982. # Try to guess by grepping values from an object file.
  17983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17984. /* end confdefs.h. */
  17985. short int ascii_mm[] =
  17986. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  17987. short int ascii_ii[] =
  17988. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  17989. int use_ascii (int i) {
  17990. return ascii_mm[i] + ascii_ii[i];
  17991. }
  17992. short int ebcdic_ii[] =
  17993. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  17994. short int ebcdic_mm[] =
  17995. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  17996. int use_ebcdic (int i) {
  17997. return ebcdic_mm[i] + ebcdic_ii[i];
  17998. }
  17999. extern int foo;
  18000. int
  18001. main ()
  18002. {
  18003. return use_ascii (foo) == use_ebcdic (foo);
  18004. ;
  18005. return 0;
  18006. }
  18007. _ACEOF
  18008. if ac_fn_c_try_compile "$LINENO"; then :
  18009. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  18010. ac_cv_c_bigendian=yes
  18011. fi
  18012. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  18013. if test "$ac_cv_c_bigendian" = unknown; then
  18014. ac_cv_c_bigendian=no
  18015. else
  18016. # finding both strings is unlikely to happen, but who knows?
  18017. ac_cv_c_bigendian=unknown
  18018. fi
  18019. fi
  18020. fi
  18021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18022. else
  18023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18024. /* end confdefs.h. */
  18025. $ac_includes_default
  18026. int
  18027. main ()
  18028. {
  18029. /* Are we little or big endian? From Harbison&Steele. */
  18030. union
  18031. {
  18032. long int l;
  18033. char c[sizeof (long int)];
  18034. } u;
  18035. u.l = 1;
  18036. return u.c[sizeof (long int) - 1] == 1;
  18037. ;
  18038. return 0;
  18039. }
  18040. _ACEOF
  18041. if ac_fn_c_try_run "$LINENO"; then :
  18042. ac_cv_c_bigendian=no
  18043. else
  18044. ac_cv_c_bigendian=yes
  18045. fi
  18046. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18047. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18048. fi
  18049. fi
  18050. fi
  18051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  18052. $as_echo "$ac_cv_c_bigendian" >&6; }
  18053. case $ac_cv_c_bigendian in #(
  18054. yes)
  18055. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  18056. ;; #(
  18057. no)
  18058. ;; #(
  18059. universal)
  18060. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  18061. ;; #(
  18062. *)
  18063. as_fn_error $? "unknown endianness
  18064. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  18065. esac
  18066. if test x$ac_cv_c_bigendian = xyes ; then
  18067. WORDS_BIGENDIAN_TRUE=
  18068. WORDS_BIGENDIAN_FALSE='#'
  18069. else
  18070. WORDS_BIGENDIAN_TRUE='#'
  18071. WORDS_BIGENDIAN_FALSE=
  18072. fi
  18073. # Check whether --enable-asan was given.
  18074. if test "${enable_asan+set}" = set; then :
  18075. enableval=$enable_asan;
  18076. fi
  18077. if test "x$enable_asan" = "xyes"; then
  18078. build_asan=yes
  18079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __asan_report_error in -lasan" >&5
  18080. $as_echo_n "checking for __asan_report_error in -lasan... " >&6; }
  18081. if ${ac_cv_lib_asan___asan_report_error+:} false; then :
  18082. $as_echo_n "(cached) " >&6
  18083. else
  18084. ac_check_lib_save_LIBS=$LIBS
  18085. LIBS="-lasan $LIBS"
  18086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18087. /* end confdefs.h. */
  18088. /* Override any GCC internal prototype to avoid an error.
  18089. Use char because int might match the return type of a GCC
  18090. builtin and then its argument prototype would still apply. */
  18091. #ifdef __cplusplus
  18092. extern "C"
  18093. #endif
  18094. char __asan_report_error ();
  18095. int
  18096. main ()
  18097. {
  18098. return __asan_report_error ();
  18099. ;
  18100. return 0;
  18101. }
  18102. _ACEOF
  18103. if ac_fn_c_try_link "$LINENO"; then :
  18104. ac_cv_lib_asan___asan_report_error=yes
  18105. else
  18106. ac_cv_lib_asan___asan_report_error=no
  18107. fi
  18108. rm -f core conftest.err conftest.$ac_objext \
  18109. conftest$ac_exeext conftest.$ac_ext
  18110. LIBS=$ac_check_lib_save_LIBS
  18111. fi
  18112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asan___asan_report_error" >&5
  18113. $as_echo "$ac_cv_lib_asan___asan_report_error" >&6; }
  18114. if test "x$ac_cv_lib_asan___asan_report_error" = xyes; then :
  18115. cat >>confdefs.h <<_ACEOF
  18116. #define HAVE_LIBASAN 1
  18117. _ACEOF
  18118. LIBS="-lasan $LIBS"
  18119. else
  18120. as_fn_error $? "libasan.so not found, this is required for --enable-asan" "$LINENO" 5
  18121. fi
  18122. CFLAGS="${CFLAGS} -O1 -g -fsanitize=address -fno-omit-frame-pointer"
  18123. LDFLAGS="-lasan ${LDFLAGS}"
  18124. else
  18125. build_asan=no
  18126. fi
  18127. debug=no
  18128. debug_flag=NDEBUG
  18129. debug_run_time_flag=
  18130. # Check whether --enable-debug was given.
  18131. if test "${enable_debug+set}" = set; then :
  18132. enableval=$enable_debug; if test x$enableval = xyes; then
  18133. debug=yes
  18134. CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9s]*//g'`
  18135. CFLAGS="${CFLAGS} -g -O0 -Wall $wextra $wfatal_errors $wno_variadic_macros $wno_format_contains_nul $wno_format"
  18136. # We may also want to add:
  18137. # -Wformat-security -Wswitch-default -Wunused-paramter -Wpadded"
  18138. debug_flag=DEBUG
  18139. debug_run_time_flag=--dbug=1
  18140. $as_echo "#define DEBUG 1" >>confdefs.h
  18141. fi
  18142. fi
  18143. extra_debug=no
  18144. extra_debug_flag=NEXTRA_DBUG
  18145. # Check whether --enable-extra-debug was given.
  18146. if test "${enable_extra_debug+set}" = set; then :
  18147. enableval=$enable_extra_debug; if test x$enableval = xyes; then
  18148. extra_debug=yes
  18149. extra_debug_flag=EXTRA_DEBUG
  18150. $as_echo "#define EXTRA_DEBUG 1" >>confdefs.h
  18151. fi
  18152. fi
  18153. timestamp_trace=no
  18154. # Check whether --enable-timestamp-trace was given.
  18155. if test "${enable_timestamp_trace+set}" = set; then :
  18156. enableval=$enable_timestamp_trace; if test x$enableval = xyes; then
  18157. timestamp_trace=yes
  18158. CFLAGS="${CFLAGS} -DTIMESTAMP_TRACE"
  18159. $as_echo "#define TIMESTAMP_TRACE 1" >>confdefs.h
  18160. fi
  18161. fi
  18162. # Check whether --enable-dmalloc was given.
  18163. if test "${enable_dmalloc+set}" = set; then :
  18164. enableval=$enable_dmalloc; if test x$enableval = xyes ; then
  18165. dmalloc=yes
  18166. $as_echo "#define ENABLE_DMALLOC 1" >>confdefs.h
  18167. $as_echo "#define DMALLOC_FUNC_CHECK 1" >>confdefs.h
  18168. CFLAGS="${CFLAGS} -I/opt/local/include"
  18169. DMALLOC_LIB="/opt/local/lib/libdmalloc.a"
  18170. fi
  18171. fi
  18172. # Check whether --enable-pedantic was given.
  18173. if test "${enable_pedantic+set}" = set; then :
  18174. enableval=$enable_pedantic; if test x$enableval = xyes; then
  18175. CFLAGS="$CFLAGS -pedantic"
  18176. fi
  18177. fi
  18178. # Check whether --enable-efence was given.
  18179. if test "${enable_efence+set}" = set; then :
  18180. enableval=$enable_efence; if test x$enableval = xyes; then
  18181. CFLAGS="$CFLAGS -lefence"
  18182. $as_echo "#define EFENCE 1" >>confdefs.h
  18183. fi
  18184. fi
  18185. # Check whether --enable-gprof was given.
  18186. if test "${enable_gprof+set}" = set; then :
  18187. enableval=$enable_gprof; if test x$enableval = xyes; then
  18188. if test $debug = yes; then
  18189. CFLAGS="$CFLAGS -pg"
  18190. else
  18191. # GPROF requires gdb
  18192. CFLAGS="$CFLAGS -ggdb -pg -fprofile-arcs"
  18193. fi
  18194. $as_echo "#define GPROF 1" >>confdefs.h
  18195. fi
  18196. fi
  18197. enable_pcap_config=no
  18198. # Check whether --enable-pcapconfig was given.
  18199. if test "${enable_pcapconfig+set}" = set; then :
  18200. enableval=$enable_pcapconfig;
  18201. if test $enableval = yes; then
  18202. enable_pcap_config=yes
  18203. { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling libpcap discovery via pcap_config" >&5
  18204. $as_echo "$as_me: Enabling libpcap discovery via pcap_config" >&6;}
  18205. else
  18206. enable_pcap_config=no
  18207. { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling libpcap discovery via pcap_config" >&5
  18208. $as_echo "$as_me: Disabling libpcap discovery via pcap_config" >&6;}
  18209. fi
  18210. else
  18211. { $as_echo "$as_me:${as_lineno-$LINENO}: Bypassing libpcap discovery via pcap_config" >&5
  18212. $as_echo "$as_me: Bypassing libpcap discovery via pcap_config" >&6;}
  18213. fi
  18214. use64bit_counters=yes
  18215. # Check whether --enable-64bits was given.
  18216. if test "${enable_64bits+set}" = set; then :
  18217. enableval=$enable_64bits;
  18218. { $as_echo "$as_me:${as_lineno-$LINENO}: Using u_int32_t for packet counters" >&5
  18219. $as_echo "$as_me: Using u_int32_t for packet counters" >&6;}
  18220. else
  18221. $as_echo "#define ENABLE_64BITS 1" >>confdefs.h
  18222. { $as_echo "$as_me:${as_lineno-$LINENO}: Using u_int64_t for packet counters" >&5
  18223. $as_echo "$as_me: Using u_int64_t for packet counters" >&6;}
  18224. fi
  18225. # If we're running gcc add '-D_U_="__attribute__((unused))"' to CFLAGS as well,
  18226. # so we can use _U_ to flag unused function arguments and not get warnings
  18227. # about them. Otherwise, add '-D_U_=""', so that _U_ used to flag an unused
  18228. # function argument will compile with non-GCC compilers.
  18229. #
  18230. if test "x$GCC" = "xyes" ; then
  18231. CFLAGS="-D_U_=\"__attribute__((unused))\" $CFLAGS"
  18232. else
  18233. CFLAGS="-D_U_=\"\" $CFLAGS"
  18234. fi
  18235. # Check whether --enable-force-bpf was given.
  18236. if test "${enable_force_bpf+set}" = set; then :
  18237. enableval=$enable_force_bpf;
  18238. $as_echo "#define FORCE_INJECT_BPF 1" >>confdefs.h
  18239. fi
  18240. # Check whether --enable-force-pf was given.
  18241. if test "${enable_force_pf+set}" = set; then :
  18242. enableval=$enable_force_pf;
  18243. $as_echo "#define FORCE_INJECT_PF 1" >>confdefs.h
  18244. fi
  18245. # Check whether --enable-force-libdnet was given.
  18246. if test "${enable_force_libdnet+set}" = set; then :
  18247. enableval=$enable_force_libdnet;
  18248. $as_echo "#define FORCE_INJECT_LIBDNET 1" >>confdefs.h
  18249. fi
  18250. # Check whether --enable-force-inject was given.
  18251. if test "${enable_force_inject+set}" = set; then :
  18252. enableval=$enable_force_inject;
  18253. $as_echo "#define FORCE_INJECT_PCAP_INJECT 1" >>confdefs.h
  18254. fi
  18255. # Check whether --enable-force-sendpacket was given.
  18256. if test "${enable_force_sendpacket+set}" = set; then :
  18257. enableval=$enable_force_sendpacket;
  18258. $as_echo "#define FORCE_INJECT_PCAP_SENDPACKET 1" >>confdefs.h
  18259. fi
  18260. static_link=no
  18261. dynamic_link=yes
  18262. # Check whether --enable-static-link was given.
  18263. if test "${enable_static_link+set}" = set; then :
  18264. enableval=$enable_static_link;
  18265. if test $enableval = yes; then
  18266. static_link=yes
  18267. dynamic_link=no
  18268. fi
  18269. fi
  18270. # Check whether --enable-dynamic-link was given.
  18271. if test "${enable_dynamic_link+set}" = set; then :
  18272. enableval=$enable_dynamic_link;
  18273. if test $enableval = no; then
  18274. dynamic_link=no
  18275. static_link=yes
  18276. elif test $static_link = yes; then
  18277. as_fn_error $? "Cannot specify both --enable-dynamic-link and --enable-static-link" "$LINENO" 5
  18278. fi
  18279. fi
  18280. if test $static_link = yes; then
  18281. $as_echo "#define ENABLE_STATIC_LINK 1" >>confdefs.h
  18282. else
  18283. $as_echo "#define ENABLE_DYNAMIC_LINK 1" >>confdefs.h
  18284. fi
  18285. ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
  18286. if test "x$ac_cv_func_inet_aton" = xyes; then :
  18287. $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
  18288. inet_aton=yes
  18289. else
  18290. inet_aton=no
  18291. fi
  18292. ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
  18293. if test "x$ac_cv_func_inet_pton" = xyes; then :
  18294. $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
  18295. inet_pton=yes
  18296. else
  18297. inet_pton=no
  18298. fi
  18299. ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
  18300. if test "x$ac_cv_func_inet_ntop" = xyes; then :
  18301. $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
  18302. inet_ntop=yes
  18303. else
  18304. inet_ntop=no
  18305. fi
  18306. if test "$inet_ntop" = "no" -a "$inet_pton" = "no" ; then
  18307. as_fn_error $? "We need either inet_ntop or inet_pton" "$LINENO" 5
  18308. fi
  18309. ac_fn_c_check_func "$LINENO" "inet_addr" "ac_cv_func_inet_addr"
  18310. if test "x$ac_cv_func_inet_addr" = xyes; then :
  18311. $as_echo "#define HAVE_INET_ADDR 1" >>confdefs.h
  18312. inet_addr=yes
  18313. else
  18314. inet_addr=no
  18315. fi
  18316. if test x$inet_addr = no ; then
  18317. as_fn_error $? "We need inet_addr. See bug 26" "$LINENO" 5
  18318. fi
  18319. have_tuntap=no
  18320. # Check whether --enable-tuntap was given.
  18321. if test "${enable_tuntap+set}" = set; then :
  18322. enableval=$enable_tuntap; :
  18323. else
  18324. case "$build_os" in
  18325. linux*)
  18326. ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default"
  18327. if test "x$ac_cv_header_linux_if_tun_h" = xyes; then :
  18328. have_tuntap=yes
  18329. fi
  18330. ;;
  18331. *)
  18332. ac_fn_c_check_header_mongrel "$LINENO" "net/if_tun.h" "ac_cv_header_net_if_tun_h" "$ac_includes_default"
  18333. if test "x$ac_cv_header_net_if_tun_h" = xyes; then :
  18334. have_tuntap=yes
  18335. fi
  18336. ;;
  18337. esac
  18338. fi
  18339. if test $have_tuntap = yes ; then
  18340. $as_echo "#define HAVE_TUNTAP 1" >>confdefs.h
  18341. fi
  18342. foundpcap=no
  18343. pf_ring_found=no
  18344. pf_ring_lib=${with_pfring_lib}
  18345. using_pcap_config=no
  18346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcap" >&5
  18347. $as_echo_n "checking for libpcap... " >&6; }
  18348. # Check whether --with-libpcap was given.
  18349. if test "${with_libpcap+set}" = set; then :
  18350. withval=$with_libpcap;
  18351. testdir=$withval
  18352. for incl in ${testdir}/include/pcap.h ${testdir}/pcap.h ${testdir}/pcap/pcap.h; do
  18353. if ! test -f "${incl}"; then
  18354. continue
  18355. fi
  18356. LPCAPINC=${incl}
  18357. LPCAPINCDIR=${testdir}
  18358. if test $dynamic_link = yes; then
  18359. for ext in .dylib .so .tbd ; do
  18360. for dir in . lib lib64 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
  18361. sharefile=$(ls ${testdir}/$dir/libpcap${ext}* 2> /dev/null | sort | head -n1)
  18362. if test -n "${sharefile}"; then
  18363. LPCAPLIB="-L$(dirname ${sharefile}) -lpcap"
  18364. foundpcap=$testdir
  18365. break
  18366. fi
  18367. done
  18368. if ! test $foundpcap = no; then
  18369. break
  18370. fi
  18371. done
  18372. else
  18373. for ext in ${libext} .a .A.tbd ; do
  18374. for dir in . lib lib64 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
  18375. staticfile=$(ls ${testdir}/$dir/libpcap${ext} 2> /dev/null | sort | head -n1)
  18376. if test -n "${staticfile}"; then
  18377. LPCAPLIB="${staticfile}"
  18378. foundpcap=${testdir}
  18379. break
  18380. fi
  18381. done
  18382. if ! test $foundpcap = no; then
  18383. ## could be PF_RING
  18384. #
  18385. # library is static and in PF_RING build tree
  18386. #
  18387. # Need access to libpfring library
  18388. # and must find an associated libpfring.a
  18389. if test -n "${with_pfring_lib}"; then
  18390. if test -f ${with_pfring_lib}; then
  18391. pf_ring_lib=${with_pfring_lib}
  18392. pf_ring_found=yes
  18393. else
  18394. as_fn_error $? "\"Unable to find PF_RING library ${with_pfring_lib}\"" "$LINENO" 5
  18395. fi
  18396. else
  18397. ## search locally for most likely PF_RING library
  18398. for lib in ${foundpcap}/../lib/libs/libpfring_zc_${host_cpu}.a \
  18399. ${foundpcap}/../lib/libs/libpfring_dna_${host_cpu}.a \
  18400. ${foundpcap}/../lib/libs/libpfring_zero_${host_cpu}.a \
  18401. ${foundpcap}/../lib/libs/libpfring_nt_${host_cpu}.a \
  18402. ${foundpcap}/../lib/libpfring.a; do
  18403. if test -f "${lib}"; then
  18404. pf_ring_lib=${lib}
  18405. pf_ring_found=yes
  18406. break
  18407. fi
  18408. done
  18409. fi
  18410. break
  18411. fi
  18412. done
  18413. fi
  18414. if test $foundpcap = no; then
  18415. as_fn_error $? "\"Unable to find matching library for header file in ${testdir}\"" "$LINENO" 5
  18416. fi
  18417. break
  18418. done
  18419. else
  18420. #
  18421. # Look for pcap-config.
  18422. #
  18423. # I wish this option could be the default, but it is only enabled with --enable-pcapconfig
  18424. #
  18425. # The issue is that libpcap is one of those libraries that is nearly impossible to set up
  18426. # properly across all platforms. The 'pcap-config' script is shipped with new versions of libpcap,
  18427. # and was created to address portability issues. Unfortunately, the script is not updated properly
  18428. # outside of the base distribution. Examples: PF_RING requires 'pthreads', 'numa' and 'rt', but
  18429. # this is not reflect that in the script. OS X Xcode 10.11 SDK creates its own very broken
  18430. # 'pcap-config' script that only occasionally works for dynamic definitions, and defintely
  18431. # does not work for static.
  18432. #
  18433. # The ability to enable this script exists for corner cases where libpcap distributions starts
  18434. # using even more libraries than I am currently not aware of. Originally, you only had to worry
  18435. # about 'nl', but now we have to be prepared to add 'nl-3', 'nl-genl-3' and 'dbus-1' to make
  18436. # libpcap fucntional. In the future, there may be more.
  18437. #
  18438. # (sigh)
  18439. #
  18440. # So, in the future if libpcap changes and stops working, try setting --enable-pcapconfig. It
  18441. # it may work for you.
  18442. if test $enable_pcap_config = yes; then
  18443. if test -n "$ac_tool_prefix"; then
  18444. # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args.
  18445. set dummy ${ac_tool_prefix}pcap-config; ac_word=$2
  18446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18447. $as_echo_n "checking for $ac_word... " >&6; }
  18448. if ${ac_cv_path_PCAP_CONFIG+:} false; then :
  18449. $as_echo_n "(cached) " >&6
  18450. else
  18451. case $PCAP_CONFIG in
  18452. [\\/]* | ?:[\\/]*)
  18453. ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
  18454. ;;
  18455. *)
  18456. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18457. for as_dir in $PATH
  18458. do
  18459. IFS=$as_save_IFS
  18460. test -z "$as_dir" && as_dir=.
  18461. for ac_exec_ext in '' $ac_executable_extensions; do
  18462. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18463. ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18464. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18465. break 2
  18466. fi
  18467. done
  18468. done
  18469. IFS=$as_save_IFS
  18470. ;;
  18471. esac
  18472. fi
  18473. PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
  18474. if test -n "$PCAP_CONFIG"; then
  18475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCAP_CONFIG" >&5
  18476. $as_echo "$PCAP_CONFIG" >&6; }
  18477. else
  18478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18479. $as_echo "no" >&6; }
  18480. fi
  18481. fi
  18482. if test -z "$ac_cv_path_PCAP_CONFIG"; then
  18483. ac_pt_PCAP_CONFIG=$PCAP_CONFIG
  18484. # Extract the first word of "pcap-config", so it can be a program name with args.
  18485. set dummy pcap-config; ac_word=$2
  18486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18487. $as_echo_n "checking for $ac_word... " >&6; }
  18488. if ${ac_cv_path_ac_pt_PCAP_CONFIG+:} false; then :
  18489. $as_echo_n "(cached) " >&6
  18490. else
  18491. case $ac_pt_PCAP_CONFIG in
  18492. [\\/]* | ?:[\\/]*)
  18493. ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path.
  18494. ;;
  18495. *)
  18496. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18497. for as_dir in $PATH
  18498. do
  18499. IFS=$as_save_IFS
  18500. test -z "$as_dir" && as_dir=.
  18501. for ac_exec_ext in '' $ac_executable_extensions; do
  18502. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18503. ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18504. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18505. break 2
  18506. fi
  18507. done
  18508. done
  18509. IFS=$as_save_IFS
  18510. ;;
  18511. esac
  18512. fi
  18513. ac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG
  18514. if test -n "$ac_pt_PCAP_CONFIG"; then
  18515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PCAP_CONFIG" >&5
  18516. $as_echo "$ac_pt_PCAP_CONFIG" >&6; }
  18517. else
  18518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18519. $as_echo "no" >&6; }
  18520. fi
  18521. if test "x$ac_pt_PCAP_CONFIG" = x; then
  18522. PCAP_CONFIG=""
  18523. else
  18524. case $cross_compiling:$ac_tool_warned in
  18525. yes:)
  18526. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18527. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18528. ac_tool_warned=yes ;;
  18529. esac
  18530. PCAP_CONFIG=$ac_pt_PCAP_CONFIG
  18531. fi
  18532. else
  18533. PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG"
  18534. fi
  18535. if test -n "$PCAP_CONFIG"; then
  18536. #
  18537. # Found - use it to get the include flags for
  18538. # libpcap and the flags to link with libpcap.
  18539. #
  18540. # Please read section 11.6 "Shell Substitutions"
  18541. # in the autoconf manual before doing anything
  18542. # to this that involves quoting. Especially note
  18543. # the statement "There is just no portable way to use
  18544. # double-quoted strings inside double-quoted back-quoted
  18545. # expressions (pfew!)."
  18546. #
  18547. if test $dynamic_link = yes; then
  18548. LPCAPLIB=$($PCAP_CONFIG --libs)
  18549. else
  18550. LPCAPLIB=$($PCAP_CONFIG --libs --static)
  18551. fi
  18552. CFLAGS="$CFLAGS $($PCAP_CONFIG --cflags)"
  18553. if test -n "$LPCAPLIB"; then
  18554. foundpcap=yes
  18555. using_pcap_config=yes
  18556. else
  18557. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find libpcap using pcap-config" >&5
  18558. $as_echo "$as_me: WARNING: Unable to find libpcap using pcap-config" >&2;}
  18559. fi
  18560. fi
  18561. fi
  18562. if test ! $foundpcap = yes; then
  18563. #
  18564. # Not found; look for pcap.
  18565. #
  18566. for testdir in /usr/local /opt/local /usr /wpdpack $MACOSX_SDK_PATH/usr /usr/local/opt/libpcap ; do
  18567. if test -f "${testdir}/include/pcap.h"; then
  18568. LPCAPINC="${testdir}/include/pcap.h"
  18569. LPCAPINCDIR="${testdir}/include"
  18570. if test $dynamic_link = yes; then
  18571. for ext in .dylib .so .tbd; do
  18572. for dir in . lib lib64 ${host_cpu} lib/${host_cpu} ${host_cpu}-${host_os} lib/${host_cpu}-${host_os} ${MULTIARCH} lib/${MULTIARCH}; do
  18573. sharefile=$(ls "${testdir}/$dir/libpcap${ext}" 2> /dev/null | sort | head -n1)
  18574. if test -n "${sharefile}"; then
  18575. LPCAPLIB="-L$(dirname ${sharefile}) -lpcap"
  18576. foundpcap=$testdir
  18577. break
  18578. fi
  18579. done
  18580. if ! test $foundpcap = no; then
  18581. break
  18582. fi
  18583. done
  18584. fi
  18585. if test $foundpcap = no ; then
  18586. for ext in ${libext} .a .A.tbd ; do
  18587. for dir in . lib lib64 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
  18588. staticfile=$(ls "${testdir}/$dir/libpcap${ext}" 2> /dev/null | sort | head -n1)
  18589. if test -n "${staticfile}"; then
  18590. LPCAPLIB="${staticfile}"
  18591. foundpcap=$testdir
  18592. break
  18593. fi
  18594. done
  18595. if ! test $foundpcap = no; then
  18596. break
  18597. fi
  18598. done
  18599. fi
  18600. if test $foundpcap = no -a -f "${testdir}/lib/libwpcap.${libext}" ; then
  18601. LPCAPLIB="${testdir}/lib/libwpcap.${libext}"
  18602. $as_echo "#define HAVE_WINPCAP 1" >>confdefs.h
  18603. foundpcap=$testdir
  18604. fi
  18605. fi
  18606. if ! test $foundpcap = no; then
  18607. break
  18608. fi
  18609. done
  18610. fi
  18611. fi
  18612. if test $foundpcap = no ; then
  18613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18614. $as_echo "no" >&6; }
  18615. as_fn_error $? "libpcap not found" "$LINENO" 5
  18616. else
  18617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $foundpcap" >&5
  18618. $as_echo "$foundpcap" >&6; }
  18619. fi
  18620. # libpcap can require libnl
  18621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nl_handle_alloc" >&5
  18622. $as_echo_n "checking for library containing nl_handle_alloc... " >&6; }
  18623. if ${ac_cv_search_nl_handle_alloc+:} false; then :
  18624. $as_echo_n "(cached) " >&6
  18625. else
  18626. ac_func_search_save_LIBS=$LIBS
  18627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18628. /* end confdefs.h. */
  18629. /* Override any GCC internal prototype to avoid an error.
  18630. Use char because int might match the return type of a GCC
  18631. builtin and then its argument prototype would still apply. */
  18632. #ifdef __cplusplus
  18633. extern "C"
  18634. #endif
  18635. char nl_handle_alloc ();
  18636. int
  18637. main ()
  18638. {
  18639. return nl_handle_alloc ();
  18640. ;
  18641. return 0;
  18642. }
  18643. _ACEOF
  18644. for ac_lib in '' nl; do
  18645. if test -z "$ac_lib"; then
  18646. ac_res="none required"
  18647. else
  18648. ac_res=-l$ac_lib
  18649. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  18650. fi
  18651. if ac_fn_c_try_link "$LINENO"; then :
  18652. ac_cv_search_nl_handle_alloc=$ac_res
  18653. fi
  18654. rm -f core conftest.err conftest.$ac_objext \
  18655. conftest$ac_exeext
  18656. if ${ac_cv_search_nl_handle_alloc+:} false; then :
  18657. break
  18658. fi
  18659. done
  18660. if ${ac_cv_search_nl_handle_alloc+:} false; then :
  18661. else
  18662. ac_cv_search_nl_handle_alloc=no
  18663. fi
  18664. rm conftest.$ac_ext
  18665. LIBS=$ac_func_search_save_LIBS
  18666. fi
  18667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nl_handle_alloc" >&5
  18668. $as_echo "$ac_cv_search_nl_handle_alloc" >&6; }
  18669. ac_res=$ac_cv_search_nl_handle_alloc
  18670. if test "$ac_res" != no; then :
  18671. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  18672. { $as_echo "$as_me:${as_lineno-$LINENO}: Unable to find nl library - may be needed by libpcap" >&5
  18673. $as_echo "$as_me: Unable to find nl library - may be needed by libpcap" >&6;}
  18674. fi
  18675. ##
  18676. ## If not automatically configured,
  18677. ## check for newer and full-featured libpcap's
  18678. ##
  18679. if ! test $using_pcap_config = yes; then
  18680. ## newer libpcap requires dbus and latest nl (e.g. -lnl-genl-3 -lnl-3 -ldbus-1)
  18681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_cache_alloc in -lnl" >&5
  18682. $as_echo_n "checking for nl_cache_alloc in -lnl... " >&6; }
  18683. if ${ac_cv_lib_nl_nl_cache_alloc+:} false; then :
  18684. $as_echo_n "(cached) " >&6
  18685. else
  18686. ac_check_lib_save_LIBS=$LIBS
  18687. LIBS="-lnl $LIBS"
  18688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18689. /* end confdefs.h. */
  18690. /* Override any GCC internal prototype to avoid an error.
  18691. Use char because int might match the return type of a GCC
  18692. builtin and then its argument prototype would still apply. */
  18693. #ifdef __cplusplus
  18694. extern "C"
  18695. #endif
  18696. char nl_cache_alloc ();
  18697. int
  18698. main ()
  18699. {
  18700. return nl_cache_alloc ();
  18701. ;
  18702. return 0;
  18703. }
  18704. _ACEOF
  18705. if ac_fn_c_try_link "$LINENO"; then :
  18706. ac_cv_lib_nl_nl_cache_alloc=yes
  18707. else
  18708. ac_cv_lib_nl_nl_cache_alloc=no
  18709. fi
  18710. rm -f core conftest.err conftest.$ac_objext \
  18711. conftest$ac_exeext conftest.$ac_ext
  18712. LIBS=$ac_check_lib_save_LIBS
  18713. fi
  18714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_cache_alloc" >&5
  18715. $as_echo "$ac_cv_lib_nl_nl_cache_alloc" >&6; }
  18716. if test "x$ac_cv_lib_nl_nl_cache_alloc" = xyes; then :
  18717. nl_found=yes
  18718. fi
  18719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genl_connect in -lnl-genl-3" >&5
  18720. $as_echo_n "checking for genl_connect in -lnl-genl-3... " >&6; }
  18721. if ${ac_cv_lib_nl_genl_3_genl_connect+:} false; then :
  18722. $as_echo_n "(cached) " >&6
  18723. else
  18724. ac_check_lib_save_LIBS=$LIBS
  18725. LIBS="-lnl-genl-3 $LIBS"
  18726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18727. /* end confdefs.h. */
  18728. /* Override any GCC internal prototype to avoid an error.
  18729. Use char because int might match the return type of a GCC
  18730. builtin and then its argument prototype would still apply. */
  18731. #ifdef __cplusplus
  18732. extern "C"
  18733. #endif
  18734. char genl_connect ();
  18735. int
  18736. main ()
  18737. {
  18738. return genl_connect ();
  18739. ;
  18740. return 0;
  18741. }
  18742. _ACEOF
  18743. if ac_fn_c_try_link "$LINENO"; then :
  18744. ac_cv_lib_nl_genl_3_genl_connect=yes
  18745. else
  18746. ac_cv_lib_nl_genl_3_genl_connect=no
  18747. fi
  18748. rm -f core conftest.err conftest.$ac_objext \
  18749. conftest$ac_exeext conftest.$ac_ext
  18750. LIBS=$ac_check_lib_save_LIBS
  18751. fi
  18752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_genl_3_genl_connect" >&5
  18753. $as_echo "$ac_cv_lib_nl_genl_3_genl_connect" >&6; }
  18754. if test "x$ac_cv_lib_nl_genl_3_genl_connect" = xyes; then :
  18755. nl_genl_3_found=yes
  18756. fi
  18757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_cache_alloc in -lnl-3" >&5
  18758. $as_echo_n "checking for nl_cache_alloc in -lnl-3... " >&6; }
  18759. if ${ac_cv_lib_nl_3_nl_cache_alloc+:} false; then :
  18760. $as_echo_n "(cached) " >&6
  18761. else
  18762. ac_check_lib_save_LIBS=$LIBS
  18763. LIBS="-lnl-3 $LIBS"
  18764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18765. /* end confdefs.h. */
  18766. /* Override any GCC internal prototype to avoid an error.
  18767. Use char because int might match the return type of a GCC
  18768. builtin and then its argument prototype would still apply. */
  18769. #ifdef __cplusplus
  18770. extern "C"
  18771. #endif
  18772. char nl_cache_alloc ();
  18773. int
  18774. main ()
  18775. {
  18776. return nl_cache_alloc ();
  18777. ;
  18778. return 0;
  18779. }
  18780. _ACEOF
  18781. if ac_fn_c_try_link "$LINENO"; then :
  18782. ac_cv_lib_nl_3_nl_cache_alloc=yes
  18783. else
  18784. ac_cv_lib_nl_3_nl_cache_alloc=no
  18785. fi
  18786. rm -f core conftest.err conftest.$ac_objext \
  18787. conftest$ac_exeext conftest.$ac_ext
  18788. LIBS=$ac_check_lib_save_LIBS
  18789. fi
  18790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_cache_alloc" >&5
  18791. $as_echo "$ac_cv_lib_nl_3_nl_cache_alloc" >&6; }
  18792. if test "x$ac_cv_lib_nl_3_nl_cache_alloc" = xyes; then :
  18793. nl_3_found=yes
  18794. fi
  18795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_malloc in -ldbus-1" >&5
  18796. $as_echo_n "checking for dbus_malloc in -ldbus-1... " >&6; }
  18797. if ${ac_cv_lib_dbus_1_dbus_malloc+:} false; then :
  18798. $as_echo_n "(cached) " >&6
  18799. else
  18800. ac_check_lib_save_LIBS=$LIBS
  18801. LIBS="-ldbus-1 $LIBS"
  18802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18803. /* end confdefs.h. */
  18804. /* Override any GCC internal prototype to avoid an error.
  18805. Use char because int might match the return type of a GCC
  18806. builtin and then its argument prototype would still apply. */
  18807. #ifdef __cplusplus
  18808. extern "C"
  18809. #endif
  18810. char dbus_malloc ();
  18811. int
  18812. main ()
  18813. {
  18814. return dbus_malloc ();
  18815. ;
  18816. return 0;
  18817. }
  18818. _ACEOF
  18819. if ac_fn_c_try_link "$LINENO"; then :
  18820. ac_cv_lib_dbus_1_dbus_malloc=yes
  18821. else
  18822. ac_cv_lib_dbus_1_dbus_malloc=no
  18823. fi
  18824. rm -f core conftest.err conftest.$ac_objext \
  18825. conftest$ac_exeext conftest.$ac_ext
  18826. LIBS=$ac_check_lib_save_LIBS
  18827. fi
  18828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_malloc" >&5
  18829. $as_echo "$ac_cv_lib_dbus_1_dbus_malloc" >&6; }
  18830. if test "x$ac_cv_lib_dbus_1_dbus_malloc" = xyes; then :
  18831. dbus_1_found=yes
  18832. fi
  18833. if test "$nl_found" = "yes"; then
  18834. LPCAPLIB="$LPCAPLIB -lnl"
  18835. fi
  18836. if test "$nl_genl_3_found" = "yes"; then
  18837. LPCAPLIB="$LPCAPLIB -lnl-genl-3"
  18838. fi
  18839. if test "$nl_3_found" = "yes"; then
  18840. LPCAPLIB="$LPCAPLIB -lnl-3"
  18841. fi
  18842. if test "$dbus_1_found" = "yes"; then
  18843. LPCAPLIB="$LPCAPLIB -ldbus-1"
  18844. fi
  18845. ## See if prereqs for PF_RING exist
  18846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for numa_available in -lnuma" >&5
  18847. $as_echo_n "checking for numa_available in -lnuma... " >&6; }
  18848. if ${ac_cv_lib_numa_numa_available+:} false; then :
  18849. $as_echo_n "(cached) " >&6
  18850. else
  18851. ac_check_lib_save_LIBS=$LIBS
  18852. LIBS="-lnuma $LIBS"
  18853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18854. /* end confdefs.h. */
  18855. /* Override any GCC internal prototype to avoid an error.
  18856. Use char because int might match the return type of a GCC
  18857. builtin and then its argument prototype would still apply. */
  18858. #ifdef __cplusplus
  18859. extern "C"
  18860. #endif
  18861. char numa_available ();
  18862. int
  18863. main ()
  18864. {
  18865. return numa_available ();
  18866. ;
  18867. return 0;
  18868. }
  18869. _ACEOF
  18870. if ac_fn_c_try_link "$LINENO"; then :
  18871. ac_cv_lib_numa_numa_available=yes
  18872. else
  18873. ac_cv_lib_numa_numa_available=no
  18874. fi
  18875. rm -f core conftest.err conftest.$ac_objext \
  18876. conftest$ac_exeext conftest.$ac_ext
  18877. LIBS=$ac_check_lib_save_LIBS
  18878. fi
  18879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_numa_available" >&5
  18880. $as_echo "$ac_cv_lib_numa_numa_available" >&6; }
  18881. if test "x$ac_cv_lib_numa_numa_available" = xyes; then :
  18882. numa_found=yes
  18883. fi
  18884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  18885. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  18886. if ${ac_cv_lib_pthread_pthread_create+:} false; then :
  18887. $as_echo_n "(cached) " >&6
  18888. else
  18889. ac_check_lib_save_LIBS=$LIBS
  18890. LIBS="-lpthread $LIBS"
  18891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18892. /* end confdefs.h. */
  18893. /* Override any GCC internal prototype to avoid an error.
  18894. Use char because int might match the return type of a GCC
  18895. builtin and then its argument prototype would still apply. */
  18896. #ifdef __cplusplus
  18897. extern "C"
  18898. #endif
  18899. char pthread_create ();
  18900. int
  18901. main ()
  18902. {
  18903. return pthread_create ();
  18904. ;
  18905. return 0;
  18906. }
  18907. _ACEOF
  18908. if ac_fn_c_try_link "$LINENO"; then :
  18909. ac_cv_lib_pthread_pthread_create=yes
  18910. else
  18911. ac_cv_lib_pthread_pthread_create=no
  18912. fi
  18913. rm -f core conftest.err conftest.$ac_objext \
  18914. conftest$ac_exeext conftest.$ac_ext
  18915. LIBS=$ac_check_lib_save_LIBS
  18916. fi
  18917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  18918. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  18919. if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
  18920. pthread_found=yes
  18921. fi
  18922. if test $pf_ring_found = yes; then
  18923. if ! test "${numa_found}" = "yes"; then
  18924. as_fn_error $? "PF_RING requires libnuma and/or libnuma-dev" "$LINENO" 5
  18925. fi
  18926. if ! test "${pthread_found}" = "yes"; then
  18927. as_fn_error $? "PF_RING requires libpthread" "$LINENO" 5
  18928. fi
  18929. LPCAPLIB="$LPCAPLIB ${pf_ring_lib} -lnuma -lpthread -lrt"
  18930. fi
  18931. fi
  18932. OLDLIBS="$LIBS"
  18933. if test -n "$LPCAPINCDIR"; then
  18934. OLDCFLAGS="$CFLAGS -I$LPCAPINCDIR"
  18935. CFLAGS="$CFLAGS -I$LPCAPINCDIR"
  18936. else
  18937. OLDCFLAGS="$CFLAGS"
  18938. LPCAPINCDIR=$(echo $CFLAGS | sed -e 's/^\-I//')
  18939. LPCAPINC="$LPCAPINCDIR/pcap.h"
  18940. fi
  18941. LIBS="$LPCAPLIB"
  18942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcap_get_pfring_id" >&5
  18943. $as_echo_n "checking for library containing pcap_get_pfring_id... " >&6; }
  18944. if ${ac_cv_search_pcap_get_pfring_id+:} false; then :
  18945. $as_echo_n "(cached) " >&6
  18946. else
  18947. ac_func_search_save_LIBS=$LIBS
  18948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18949. /* end confdefs.h. */
  18950. /* Override any GCC internal prototype to avoid an error.
  18951. Use char because int might match the return type of a GCC
  18952. builtin and then its argument prototype would still apply. */
  18953. #ifdef __cplusplus
  18954. extern "C"
  18955. #endif
  18956. char pcap_get_pfring_id ();
  18957. int
  18958. main ()
  18959. {
  18960. return pcap_get_pfring_id ();
  18961. ;
  18962. return 0;
  18963. }
  18964. _ACEOF
  18965. for ac_lib in '' pcap; do
  18966. if test -z "$ac_lib"; then
  18967. ac_res="none required"
  18968. else
  18969. ac_res=-l$ac_lib
  18970. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  18971. fi
  18972. if ac_fn_c_try_link "$LINENO"; then :
  18973. ac_cv_search_pcap_get_pfring_id=$ac_res
  18974. fi
  18975. rm -f core conftest.err conftest.$ac_objext \
  18976. conftest$ac_exeext
  18977. if ${ac_cv_search_pcap_get_pfring_id+:} false; then :
  18978. break
  18979. fi
  18980. done
  18981. if ${ac_cv_search_pcap_get_pfring_id+:} false; then :
  18982. else
  18983. ac_cv_search_pcap_get_pfring_id=no
  18984. fi
  18985. rm conftest.$ac_ext
  18986. LIBS=$ac_func_search_save_LIBS
  18987. fi
  18988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcap_get_pfring_id" >&5
  18989. $as_echo "$ac_cv_search_pcap_get_pfring_id" >&6; }
  18990. ac_res=$ac_cv_search_pcap_get_pfring_id
  18991. if test "$ac_res" != no; then :
  18992. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  18993. $as_echo "#define HAVE_PF_RING_PCAP 1" >>confdefs.h
  18994. fi
  18995. ## Does libpcap work with selected libraries?
  18996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcap_close" >&5
  18997. $as_echo_n "checking for library containing pcap_close... " >&6; }
  18998. if ${ac_cv_search_pcap_close+:} false; then :
  18999. $as_echo_n "(cached) " >&6
  19000. else
  19001. ac_func_search_save_LIBS=$LIBS
  19002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19003. /* end confdefs.h. */
  19004. /* Override any GCC internal prototype to avoid an error.
  19005. Use char because int might match the return type of a GCC
  19006. builtin and then its argument prototype would still apply. */
  19007. #ifdef __cplusplus
  19008. extern "C"
  19009. #endif
  19010. char pcap_close ();
  19011. int
  19012. main ()
  19013. {
  19014. return pcap_close ();
  19015. ;
  19016. return 0;
  19017. }
  19018. _ACEOF
  19019. for ac_lib in '' pcap; do
  19020. if test -z "$ac_lib"; then
  19021. ac_res="none required"
  19022. else
  19023. ac_res=-l$ac_lib
  19024. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  19025. fi
  19026. if ac_fn_c_try_link "$LINENO"; then :
  19027. ac_cv_search_pcap_close=$ac_res
  19028. fi
  19029. rm -f core conftest.err conftest.$ac_objext \
  19030. conftest$ac_exeext
  19031. if ${ac_cv_search_pcap_close+:} false; then :
  19032. break
  19033. fi
  19034. done
  19035. if ${ac_cv_search_pcap_close+:} false; then :
  19036. else
  19037. ac_cv_search_pcap_close=no
  19038. fi
  19039. rm conftest.$ac_ext
  19040. LIBS=$ac_func_search_save_LIBS
  19041. fi
  19042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcap_close" >&5
  19043. $as_echo "$ac_cv_search_pcap_close" >&6; }
  19044. ac_res=$ac_cv_search_pcap_close
  19045. if test "$ac_res" != no; then :
  19046. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  19047. else
  19048. as_fn_error $? "Unable to link libpcap in ${foundpcap}" "$LINENO" 5
  19049. fi
  19050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcap version" >&5
  19051. $as_echo_n "checking for libpcap version... " >&6; }
  19052. if test "$cross_compiling" = yes; then :
  19053. libpcap_version_096=yes
  19054. else
  19055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19056. /* end confdefs.h. */
  19057. #include <string.h>
  19058. #include <stdlib.h>
  19059. #include <stdio.h>
  19060. #include "$LPCAPINC"
  19061. #define PCAP_TEST "0.9.6"
  19062. int
  19063. main ()
  19064. {
  19065. /*
  19066. * simple proggy to test the version of libpcap
  19067. * returns zero if version >= 0.9.6
  19068. * or one otherwise
  19069. */
  19070. if (strncmp(pcap_lib_version(), PCAP_TEST, 3) >= 0)
  19071. exit(0);
  19072. if (strncmp(pcap_lib_version(), PCAP_TEST, 5) >= 0) {
  19073. printf("%s ", pcap_lib_version());
  19074. exit(0);
  19075. }
  19076. exit(1);
  19077. ;
  19078. return 0;
  19079. }
  19080. _ACEOF
  19081. if ac_fn_c_try_run "$LINENO"; then :
  19082. libpcap_version_096=yes
  19083. else
  19084. libpcap_version_096=no
  19085. fi
  19086. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19087. conftest.$ac_objext conftest.beam conftest.$ac_ext
  19088. fi
  19089. if test "$cross_compiling" = yes; then :
  19090. libpcap_ver8=yes
  19091. else
  19092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19093. /* end confdefs.h. */
  19094. #include <string.h>
  19095. #include <stdlib.h>
  19096. #include <stdio.h>
  19097. #include "$LPCAPINC"
  19098. #define PCAP_TEST "0.8"
  19099. int
  19100. main ()
  19101. {
  19102. /*
  19103. * simple proggy to test the version of libpcap
  19104. * returns zero if version >= 0.8.0
  19105. * or one otherwise
  19106. */
  19107. if (strncmp(pcap_lib_version(), PCAP_TEST, 3) >= 0)
  19108. exit(0);
  19109. /* winpcap? */
  19110. if (strncmp(pcap_lib_version(), "WinPcap", 7) == 0)
  19111. exit(0);
  19112. exit(1);
  19113. ;
  19114. return 0;
  19115. }
  19116. _ACEOF
  19117. if ac_fn_c_try_run "$LINENO"; then :
  19118. libpcap_ver8=yes
  19119. else
  19120. libpcap_ver8=no
  19121. fi
  19122. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19123. conftest.$ac_objext conftest.beam conftest.$ac_ext
  19124. fi
  19125. if test "$cross_compiling" = yes; then :
  19126. libpcap_ver7=yes
  19127. else
  19128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19129. /* end confdefs.h. */
  19130. #include <string.h>
  19131. #include <stdlib.h>
  19132. #include <stdio.h>
  19133. #include "$LPCAPINC"
  19134. #define PCAP_TEST "0.7.2"
  19135. extern const char pcap_version[[]]; /* double up since autoconf escapes things */
  19136. int
  19137. main ()
  19138. {
  19139. /*
  19140. * simple proggy to test the version of libpcap
  19141. * returns zero if version >= 0.7.2
  19142. * or one otherwise
  19143. */
  19144. if (strncmp(pcap_lib_version(), PCAP_TEST, 3) >= 0)
  19145. exit(0);
  19146. if (strncmp(pcap_version, PCAP_TEST, 5) >= 0)
  19147. exit(0);
  19148. exit(1);
  19149. ;
  19150. return 0;
  19151. }
  19152. _ACEOF
  19153. if ac_fn_c_try_run "$LINENO"; then :
  19154. libpcap_ver7=yes
  19155. else
  19156. libpcap_ver7=no
  19157. fi
  19158. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19159. conftest.$ac_objext conftest.beam conftest.$ac_ext
  19160. fi
  19161. if test x$libpcap_ver8 = xyes ; then
  19162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.8.0" >&5
  19163. $as_echo ">= 0.8.0" >&6; }
  19164. elif test x$libpcap_ver7 = xyes ; then
  19165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.7.2" >&5
  19166. $as_echo ">= 0.7.2" >&6; }
  19167. else
  19168. as_fn_error $? "Libpcap versions < 0.7.2 are not supported
  19169. Please upgrade to version 0.7.2 or better" "$LINENO" 5
  19170. fi
  19171. libpcap_version=unknown
  19172. if test x$libpcap_version_096 = xyes ; then
  19173. libpcap_version=">= 0.9.6"
  19174. elif test x$libpcap_ver8 = xyes ; then
  19175. libpcap_version=">= 0.8.0"
  19176. elif test x$libcap_ver7 = xyes ; then
  19177. libpcap_version=">= 0.7.0"
  19178. fi
  19179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_setnonblock" >&5
  19180. $as_echo_n "checking for pcap_setnonblock... " >&6; }
  19181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19182. /* end confdefs.h. */
  19183. #include <stdio.h>
  19184. #include <stdlib.h>
  19185. #include <string.h>
  19186. #include "$LPCAPINC"
  19187. int
  19188. main ()
  19189. {
  19190. pcap_t *p;
  19191. char *errbuf;
  19192. pcap_setnonblock(p, 1, errbuf);
  19193. exit(0);
  19194. ;
  19195. return 0;
  19196. }
  19197. _ACEOF
  19198. if ac_fn_c_try_link "$LINENO"; then :
  19199. have_pcap_setnonblock=yes
  19200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19201. $as_echo "yes" >&6; }
  19202. else
  19203. have_pcap_setnonblock=no
  19204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19205. $as_echo "no" >&6; }
  19206. fi
  19207. rm -f core conftest.err conftest.$ac_objext \
  19208. conftest$ac_exeext conftest.$ac_ext
  19209. if test $have_pcap_setnonblock = yes ; then
  19210. $as_echo "#define HAVE_PCAP_SETNONBLOCK 1" >>confdefs.h
  19211. fi
  19212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_datalink_val_to_description" >&5
  19213. $as_echo_n "checking for pcap_datalink_val_to_description... " >&6; }
  19214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19215. /* end confdefs.h. */
  19216. #include <stdio.h>
  19217. #include <stdlib.h>
  19218. #include <string.h>
  19219. #include "$LPCAPINC"
  19220. int
  19221. main ()
  19222. {
  19223. if (strcmp(pcap_datalink_val_to_description(1), "Ethernet (10Mb)") == 0)
  19224. exit(0);
  19225. exit(1);
  19226. ;
  19227. return 0;
  19228. }
  19229. _ACEOF
  19230. if ac_fn_c_try_link "$LINENO"; then :
  19231. have_dlt_to_desc=yes
  19232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19233. $as_echo "yes" >&6; }
  19234. else
  19235. have_dlt_to_desc=no
  19236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19237. $as_echo "no" >&6; }
  19238. fi
  19239. rm -f core conftest.err conftest.$ac_objext \
  19240. conftest$ac_exeext conftest.$ac_ext
  19241. if test $have_dlt_to_desc = yes ; then
  19242. $as_echo "#define HAVE_DLT_VAL_TO_DESC 1" >>confdefs.h
  19243. fi
  19244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_get_selectable_fd" >&5
  19245. $as_echo_n "checking for pcap_get_selectable_fd... " >&6; }
  19246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19247. /* end confdefs.h. */
  19248. #include <stdio.h>
  19249. #include <stdlib.h>
  19250. #include <string.h>
  19251. #include "$LPCAPINC"
  19252. int
  19253. main ()
  19254. {
  19255. int f;
  19256. pcap_t *p;
  19257. f = pcap_get_selectable_fd(p);
  19258. exit(0);
  19259. ;
  19260. return 0;
  19261. }
  19262. _ACEOF
  19263. if ac_fn_c_try_link "$LINENO"; then :
  19264. have_pcap_get_selectable_fd=yes
  19265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19266. $as_echo "yes" >&6; }
  19267. else
  19268. have_pcap_get_selectable_fd=no
  19269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19270. $as_echo "no" >&6; }
  19271. fi
  19272. rm -f core conftest.err conftest.$ac_objext \
  19273. conftest$ac_exeext conftest.$ac_ext
  19274. if test x$have_pcap_get_selectable_fd = xyes ; then
  19275. $as_echo "#define HAVE_PCAP_GET_SELECTABLE_FD 1" >>confdefs.h
  19276. fi
  19277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen" >&5
  19278. $as_echo_n "checking for pcap_dump_fopen... " >&6; }
  19279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19280. /* end confdefs.h. */
  19281. #include <stdio.h>
  19282. #include <stdlib.h>
  19283. #include <string.h>
  19284. #include "$LPCAPINC"
  19285. int
  19286. main ()
  19287. {
  19288. pcap_dumper_t *dump;
  19289. pcap_t *pcap;
  19290. FILE *foo;
  19291. dump = pcap_dump_fopen(pcap, foo);
  19292. ;
  19293. return 0;
  19294. }
  19295. _ACEOF
  19296. if ac_fn_c_try_link "$LINENO"; then :
  19297. have_pcap_dump_fopen=yes
  19298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19299. $as_echo "yes" >&6; }
  19300. else
  19301. have_pcap_dump_fopen=no
  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. if test $have_pcap_dump_fopen = yes ; then
  19308. $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
  19309. else
  19310. { $as_echo "$as_me:${as_lineno-$LINENO}: --verbose mode requires libpcap >= 0.9.0" >&5
  19311. $as_echo "$as_me: --verbose mode requires libpcap >= 0.9.0" >&6;}
  19312. fi
  19313. have_pcap_inject=no
  19314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_inject sending support" >&5
  19315. $as_echo_n "checking for pcap_inject sending support... " >&6; }
  19316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19317. /* end confdefs.h. */
  19318. #include <stdio.h>
  19319. #include <stdlib.h>
  19320. #include <string.h>
  19321. #include "$LPCAPINC"
  19322. int
  19323. main ()
  19324. {
  19325. pcap_t *pcap;
  19326. char *buf;
  19327. pcap_inject(pcap, (void *)buf, 0);
  19328. ;
  19329. return 0;
  19330. }
  19331. _ACEOF
  19332. if ac_fn_c_try_link "$LINENO"; then :
  19333. have_pcap_inject=yes
  19334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19335. $as_echo "yes" >&6; }
  19336. else
  19337. have_pcap_inject=no
  19338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19339. $as_echo "no" >&6; }
  19340. fi
  19341. rm -f core conftest.err conftest.$ac_objext \
  19342. conftest$ac_exeext conftest.$ac_ext
  19343. if test $have_pcap_inject = yes ; then
  19344. $as_echo "#define HAVE_PCAP_INJECT 1" >>confdefs.h
  19345. fi
  19346. have_pcap_sendpacket=no
  19347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_sendpacket sending support" >&5
  19348. $as_echo_n "checking for pcap_sendpacket sending support... " >&6; }
  19349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19350. /* end confdefs.h. */
  19351. #include <stdio.h>
  19352. #include <stdlib.h>
  19353. #include <string.h>
  19354. #include "$LPCAPINC"
  19355. int
  19356. main ()
  19357. {
  19358. pcap_t *pcap;
  19359. u_char *buf;
  19360. pcap_sendpacket(pcap, buf, 0);
  19361. ;
  19362. return 0;
  19363. }
  19364. _ACEOF
  19365. if ac_fn_c_try_link "$LINENO"; then :
  19366. have_pcap_sendpacket=yes
  19367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19368. $as_echo "yes" >&6; }
  19369. else
  19370. have_pcap_sendpacket=no
  19371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19372. $as_echo "no" >&6; }
  19373. fi
  19374. rm -f core conftest.err conftest.$ac_objext \
  19375. conftest$ac_exeext conftest.$ac_ext
  19376. if test $have_pcap_sendpacket = yes ; then
  19377. $as_echo "#define HAVE_PCAP_SENDPACKET 1" >>confdefs.h
  19378. fi
  19379. have_pcap_breakloop=no
  19380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_breakloop" >&5
  19381. $as_echo_n "checking for pcap_breakloop... " >&6; }
  19382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19383. /* end confdefs.h. */
  19384. #include <stdio.h>
  19385. #include <stdlib.h>
  19386. #include <string.h>
  19387. #include "$LPCAPINC"
  19388. int
  19389. main ()
  19390. {
  19391. pcap_t *pcap;
  19392. pcap_sendpacket(pcap);
  19393. ;
  19394. return 0;
  19395. }
  19396. _ACEOF
  19397. if ac_fn_c_try_link "$LINENO"; then :
  19398. have_pcap_breakloop=yes
  19399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19400. $as_echo "yes" >&6; }
  19401. else
  19402. have_pcap_breakloop=no
  19403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19404. $as_echo "no" >&6; }
  19405. fi
  19406. rm -f core conftest.err conftest.$ac_objext \
  19407. conftest$ac_exeext conftest.$ac_ext
  19408. if test $have_pcap_breakloop = yes ; then
  19409. $as_echo "#define HAVE_PCAP_BREAKLOOP 1" >>confdefs.h
  19410. fi
  19411. have_pcap_version=no
  19412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_version" >&5
  19413. $as_echo_n "checking for pcap_version... " >&6; }
  19414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19415. /* end confdefs.h. */
  19416. #include <stdio.h>
  19417. #include <stdlib.h>
  19418. #include <string.h>
  19419. #include "$LPCAPINC"
  19420. extern char pcap_version[];
  19421. int
  19422. main ()
  19423. {
  19424. printf("%s", pcap_version);
  19425. ;
  19426. return 0;
  19427. }
  19428. _ACEOF
  19429. if ac_fn_c_try_link "$LINENO"; then :
  19430. $as_echo "#define HAVE_PCAP_VERSION 1" >>confdefs.h
  19431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19432. $as_echo "yes" >&6; }
  19433. else
  19434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19435. $as_echo "no" >&6; }
  19436. fi
  19437. rm -f core conftest.err conftest.$ac_objext \
  19438. conftest$ac_exeext conftest.$ac_ext
  19439. have_pcap_snapshot=no
  19440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_snapshot" >&5
  19441. $as_echo_n "checking for pcap_snapshot... " >&6; }
  19442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19443. /* end confdefs.h. */
  19444. #include <stdio.h>
  19445. #include <stdlib.h>
  19446. #include <string.h>
  19447. #include "$LPCAPINC"
  19448. int
  19449. main ()
  19450. {
  19451. pcap_t *p;
  19452. int len;
  19453. len = pcap_snapshot(p);
  19454. exit(0);
  19455. ;
  19456. return 0;
  19457. }
  19458. _ACEOF
  19459. if ac_fn_c_try_link "$LINENO"; then :
  19460. have_pcap_snapshot=yes
  19461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19462. $as_echo "yes" >&6; }
  19463. else
  19464. have_pcap_snapshot=no
  19465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19466. $as_echo "no" >&6; }
  19467. fi
  19468. rm -f core conftest.err conftest.$ac_objext \
  19469. conftest$ac_exeext conftest.$ac_ext
  19470. if test $have_pcap_snapshot = yes ; then
  19471. $as_echo "#define HAVE_PCAP_SNAPSHOT 1" >>confdefs.h
  19472. fi
  19473. # Tcpbridge requires libpcap and pcap_sendpacket()
  19474. enable_tcpbridge=no
  19475. if test x$foundpcap != xno -a x$have_pcap_sendpacket = xyes ; then
  19476. # if we have pcap_sendpacket() then we can build tcpbridge on non-BPF systems
  19477. if test x$have_bpf = xno; then
  19478. $as_echo "#define ENABLE_TCPBRIDGE 1" >>confdefs.h
  19479. enable_tcpbridge=yes
  19480. { $as_echo "$as_me:${as_lineno-$LINENO}: Building tcpbridge" >&5
  19481. $as_echo "$as_me: Building tcpbridge" >&6;}
  19482. # BPF systems need to also have pcap_setnonblock()
  19483. elif test x$have_pcap_setnonblock = xyes ; then
  19484. $as_echo "#define ENABLE_TCPBRIDGE 1" >>confdefs.h
  19485. enable_tcpbridge=yes
  19486. { $as_echo "$as_me:${as_lineno-$LINENO}: Building tcpbridge" >&5
  19487. $as_echo "$as_me: Building tcpbridge" >&6;}
  19488. else
  19489. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to build tcpbridge. Try installing latest libpcap!" >&5
  19490. $as_echo "$as_me: WARNING: Unable to build tcpbridge. Try installing latest libpcap!" >&2;}
  19491. fi
  19492. fi
  19493. if test x$enable_tcpbridge = xyes ; then
  19494. COMPILE_TCPBRIDGE_TRUE=
  19495. COMPILE_TCPBRIDGE_FALSE='#'
  19496. else
  19497. COMPILE_TCPBRIDGE_TRUE='#'
  19498. COMPILE_TCPBRIDGE_FALSE=
  19499. fi
  19500. # tcpliveplay requires linux OS to function properly
  19501. enable_tcpliveplay=no
  19502. case $host in
  19503. *-*-linux*)
  19504. $as_echo "#define ENABLE_TCPLIVEPLAY 1" >>confdefs.h
  19505. enable_tcpliveplay=yes
  19506. { $as_echo "$as_me:${as_lineno-$LINENO}: Building tcpliveplay" >&5
  19507. $as_echo "$as_me: Building tcpliveplay" >&6;}
  19508. ;;
  19509. *)
  19510. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to build tcpliveplay. This tool is only enabled on linux environments." >&5
  19511. $as_echo "$as_me: WARNING: Unable to build tcpliveplay. This tool is only enabled on linux environments." >&2;}
  19512. ;;
  19513. esac
  19514. if test x$enable_tcpliveplay = xyes ; then
  19515. COMPILE_TCPLIVEPLAY_TRUE=
  19516. COMPILE_TCPLIVEPLAY_FALSE='#'
  19517. else
  19518. COMPILE_TCPLIVEPLAY_TRUE='#'
  19519. COMPILE_TCPLIVEPLAY_FALSE=
  19520. fi
  19521. have_netmap=no
  19522. enable_netmap=no
  19523. trynetmapdir=
  19524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap socket sending support" >&5
  19525. $as_echo_n "checking for netmap socket sending support... " >&6; }
  19526. # Check whether --with-netmap was given.
  19527. if test "${with_netmap+set}" = set; then :
  19528. withval=$with_netmap; trynetmapdir=$withval
  19529. fi
  19530. NETMAP_SEARCH_DIRS=
  19531. if test "$cross_compiling" = yes; then
  19532. if test "x$trynetmapdir" != "x"; then
  19533. NETMAP_SEARCH_DIRS=$trynetmapdir
  19534. fi
  19535. else
  19536. 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"
  19537. fi
  19538. for testdir in $NETMAP_SEARCH_DIRS; do
  19539. if test -f "${testdir}/sys/net/netmap.h" ; then
  19540. NETMAPINC="${testdir}/sys/net/netmap.h"
  19541. NETMAPUSERINC="${testdir}/sys/net/netmap_user.h"
  19542. NETMAPINCDIR="${testdir}/sys"
  19543. have_netmap="yes $testdir"
  19544. enable_netmap=yes
  19545. else
  19546. if test -f "${testdir}/net/netmap.h" ; then
  19547. NETMAPINC="${testdir}/net/netmap.h"
  19548. NETMAPUSERINC="${testdir}/net/netmap_user.h"
  19549. NETMAPINCDIR="${testdir}"
  19550. have_netmap="yes $testdir"
  19551. enable_netmap=yes
  19552. fi
  19553. fi
  19554. if test "$have_netmap" != no ; then
  19555. NETMAPFLAGS="-DHAVE_NETMAP"
  19556. OLDCFLAGS="$CFLAGS -I$NETMAPINCDIR"
  19557. CFLAGS="$CFLAGS -DNETMAP_WITH_LIBS -DND -I$NETMAPINCDIR"
  19558. $as_echo "#define HAVE_NETMAP 1" >>confdefs.h
  19559. have_netmap="yes $testdir"
  19560. enable_netmap=yes
  19561. break;
  19562. fi
  19563. done
  19564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_netmap" >&5
  19565. $as_echo "$have_netmap" >&6; }
  19566. if test x$enable_netmap = xyes ; then
  19567. COMPILE_NETMAP_TRUE=
  19568. COMPILE_NETMAP_FALSE='#'
  19569. else
  19570. COMPILE_NETMAP_TRUE='#'
  19571. COMPILE_NETMAP_FALSE=
  19572. fi
  19573. if test "x$NETMAPINCDIR" != "x"; then
  19574. OLDCPPFLAGS="$CPPFLAGS"
  19575. CPPFLAGS="$CPPFLAGS -DNETMAP_WITH_LIBS -DND -I$NETMAPINCDIR"
  19576. have_nm_open=no
  19577. have_nm_nr_reg_mask=no
  19578. have_nm_nr_flags=no
  19579. have_nmring_head_tail=no
  19580. if test "$have_netmap" != no ; then
  19581. ac_fn_c_check_decl "$LINENO" "nm_open" "ac_cv_have_decl_nm_open" "
  19582. #include <stdio.h>
  19583. #include \"${NETMAPUSERINC}\"
  19584. "
  19585. if test "x$ac_cv_have_decl_nm_open" = xyes; then :
  19586. have_nm_open=yes
  19587. fi
  19588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap NR_REG_MASK definition" >&5
  19589. $as_echo_n "checking for netmap NR_REG_MASK definition... " >&6; }
  19590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19591. /* end confdefs.h. */
  19592. #include <stdint.h>
  19593. #include <sys/socket.h>
  19594. #include <net/if.h>
  19595. #include <net/netmap.h>
  19596. int
  19597. main ()
  19598. {
  19599. #ifdef NR_REG_MASK
  19600. /* OK */
  19601. #else
  19602. # error NR_REG_MASK not found
  19603. #endif
  19604. ;
  19605. return 0;
  19606. }
  19607. _ACEOF
  19608. if ac_fn_c_try_compile "$LINENO"; then :
  19609. have_nm_nr_reg_mask=yes
  19610. fi
  19611. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nm_nr_reg_mask" >&5
  19613. $as_echo "$have_nm_nr_reg_mask" >&6; }
  19614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap nr_flags definition" >&5
  19615. $as_echo_n "checking for netmap nr_flags definition... " >&6; }
  19616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19617. /* end confdefs.h. */
  19618. #include <stdint.h>
  19619. #include <sys/socket.h>
  19620. #include <net/if.h>
  19621. #include <net/netmap.h>
  19622. int
  19623. main ()
  19624. {
  19625. struct nmreq nmr;
  19626. nmr.nr_flags = 0;
  19627. ;
  19628. return 0;
  19629. }
  19630. _ACEOF
  19631. if ac_fn_c_try_compile "$LINENO"; then :
  19632. have_nm_nr_flags=yes
  19633. fi
  19634. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nm_nr_flags" >&5
  19636. $as_echo "$have_nm_nr_flags" >&6; }
  19637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap ring head/tail definitions" >&5
  19638. $as_echo_n "checking for netmap ring head/tail definitions... " >&6; }
  19639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19640. /* end confdefs.h. */
  19641. #include <stdint.h>
  19642. #include <sys/socket.h>
  19643. #include <net/if.h>
  19644. #include <net/netmap.h>
  19645. int
  19646. main ()
  19647. {
  19648. struct netmap_ring r;
  19649. r.head = r.tail = 0;
  19650. ;
  19651. return 0;
  19652. }
  19653. _ACEOF
  19654. if ac_fn_c_try_compile "$LINENO"; then :
  19655. have_nmring_head_tail=yes
  19656. fi
  19657. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nmring_head_tail" >&5
  19659. $as_echo "$have_nmring_head_tail" >&6; }
  19660. fi
  19661. if test "$have_nm_open" = yes ; then
  19662. $as_echo "#define HAVE_NETMAP_NM_OPEN 1" >>confdefs.h
  19663. fi
  19664. if test "$have_nm_nr_reg_mask" = yes ; then
  19665. $as_echo "#define HAVE_NETMAP_NR_REG 1" >>confdefs.h
  19666. fi
  19667. if test "$have_nm_nr_flags" = yes ; then
  19668. $as_echo "#define HAVE_NETMAP_NR_FLAGS 1" >>confdefs.h
  19669. fi
  19670. if test "$have_nmring_head_tail" = yes ; then
  19671. $as_echo "#define HAVE_NETMAP_RING_HEAD_TAIL 1" >>confdefs.h
  19672. fi
  19673. CPPFLAGS="$OLDCPPFLAGS"
  19674. fi
  19675. have_pf=no
  19676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PF_PACKET socket sending support" >&5
  19677. $as_echo_n "checking for PF_PACKET socket sending support... " >&6; }
  19678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19679. /* end confdefs.h. */
  19680. #include <sys/socket.h>
  19681. #include <netpacket/packet.h>
  19682. #include <net/ethernet.h> /* the L2 protocols */
  19683. #include <netinet/in.h> /* htons */
  19684. int
  19685. main ()
  19686. {
  19687. int pf_socket;
  19688. pf_socket = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
  19689. ;
  19690. return 0;
  19691. }
  19692. _ACEOF
  19693. if ac_fn_c_try_compile "$LINENO"; then :
  19694. $as_echo "#define HAVE_PF_PACKET 1" >>confdefs.h
  19695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19696. $as_echo "yes" >&6; }
  19697. have_pf=yes
  19698. else
  19699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19700. $as_echo "no" >&6; }
  19701. fi
  19702. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19703. have_tx_ring=no
  19704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TX_RING socket sending support" >&5
  19705. $as_echo_n "checking for TX_RING socket sending support... " >&6; }
  19706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19707. /* end confdefs.h. */
  19708. #include <sys/socket.h>
  19709. #include <netpacket/packet.h>
  19710. #include <net/ethernet.h> /* the L2 protocols */
  19711. #include <netinet/in.h> /* htons */
  19712. #include <linux/if_packet.h>
  19713. int
  19714. main ()
  19715. {
  19716. int test;
  19717. test = TP_STATUS_WRONG_FORMAT
  19718. ;
  19719. return 0;
  19720. }
  19721. _ACEOF
  19722. if ac_fn_c_try_compile "$LINENO"; then :
  19723. $as_echo "#define HAVE_TX_RING 1" >>confdefs.h
  19724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19725. $as_echo "yes" >&6; }
  19726. have_tx_ring=yes
  19727. else
  19728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19729. $as_echo "no" >&6; }
  19730. fi
  19731. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19732. for ac_header in net/bpf.h
  19733. do :
  19734. ac_fn_c_check_header_mongrel "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
  19735. if test "x$ac_cv_header_net_bpf_h" = xyes; then :
  19736. cat >>confdefs.h <<_ACEOF
  19737. #define HAVE_NET_BPF_H 1
  19738. _ACEOF
  19739. have_bpf=yes
  19740. else
  19741. have_bpf=no
  19742. fi
  19743. done
  19744. if test $have_bpf = yes ; then
  19745. $as_echo "#define HAVE_BPF 1" >>confdefs.h
  19746. fi
  19747. founddnet=no
  19748. have_libdnet=no
  19749. libdnet_version=
  19750. enable_fragroute=no
  19751. trydnetdir=/usr/local
  19752. if test $have_cygwin = no ; then
  19753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdnet" >&5
  19754. $as_echo_n "checking for libdnet... " >&6; }
  19755. # Check whether --with-libdnet was given.
  19756. if test "${with_libdnet+set}" = set; then :
  19757. withval=$with_libdnet; trydnetdir=$withval
  19758. fi
  19759. if test $trydnetdir != no; then
  19760. case "$build_os" in
  19761. linux*)
  19762. for testdir in $trydnetdir /usr/local /opt/local /usr ; do
  19763. if test -x ${testdir}/bin/dumbnet-config -a $founddnet = no ; then
  19764. LDNETINC="$($testdir/bin/dumbnet-config --cflags)"
  19765. LDNETLIB="$($testdir/bin/dumbnet-config --libs)"
  19766. libdnet_version="$($testdir/bin/dumbnet-config --version) (libdumbnet)"
  19767. founddnet=$testdir
  19768. fi
  19769. done
  19770. ;;
  19771. esac
  19772. if test $founddnet = no ; then
  19773. for testdir in $trydnetdir /usr/local /opt/local $MACOSX_SDK_PATH/usr /usr ; do
  19774. if test -x ${testdir}/bin/dnet-config -a $founddnet = no ; then
  19775. LDNETINC="$($testdir/bin/dnet-config --cflags)"
  19776. LDNETLIB="$($testdir/bin/dnet-config --libs)"
  19777. libdnet_version="$($testdir/bin/dnet-config --version)"
  19778. founddnet=$testdir
  19779. fi
  19780. done
  19781. fi
  19782. fi
  19783. if test $founddnet = no ; then
  19784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19785. $as_echo "no" >&6; }
  19786. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdnet not found, disabling fragroute feature" >&5
  19787. $as_echo "$as_me: WARNING: libdnet not found, disabling fragroute feature" >&2;}
  19788. else
  19789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $founddnet" >&5
  19790. $as_echo "$founddnet" >&6; }
  19791. enable_fragroute=yes
  19792. have_libdnet=yes
  19793. $as_echo "#define HAVE_LIBDNET 1" >>confdefs.h
  19794. old_cflags=$CFLAGS
  19795. CFLAGS=$LDNETINC
  19796. for ac_header in dumbnet.h dnet.h
  19797. do :
  19798. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19799. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  19800. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  19801. cat >>confdefs.h <<_ACEOF
  19802. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19803. _ACEOF
  19804. fi
  19805. done
  19806. CFLAGS=$old_cflags
  19807. fi
  19808. else
  19809. { $as_echo "$as_me:${as_lineno-$LINENO}: Skipping libdnet check under Cygwin for compatibility reasons" >&5
  19810. $as_echo "$as_me: Skipping libdnet check under Cygwin for compatibility reasons" >&6;}
  19811. fi
  19812. cat >>confdefs.h <<_ACEOF
  19813. #define LIBDNET_VERSION "$libdnet_version"
  19814. _ACEOF
  19815. if test x$founddnet != xno; then
  19816. COMPILE_FRAGROUTE_TRUE=
  19817. COMPILE_FRAGROUTE_FALSE='#'
  19818. else
  19819. COMPILE_FRAGROUTE_TRUE='#'
  19820. COMPILE_FRAGROUTE_FALSE=
  19821. fi
  19822. if test x$founddnet != xno ; then
  19823. $as_echo "#define ENABLE_FRAGROUTE 1" >>confdefs.h
  19824. fi
  19825. if test $have_bpf = no -a $have_pcap_inject = no -a $have_pcap_sendpacket = no \
  19826. -a $have_libdnet = no -a $have_pf = no ; then
  19827. as_fn_error $? "Unable to find a supported method to send packets. Please upgrade your libpcap or enable libdnet" "$LINENO" 5
  19828. fi
  19829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLT_LINUX_SLL in libpcap" >&5
  19830. $as_echo_n "checking for DLT_LINUX_SLL in libpcap... " >&6; }
  19831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19832. /* end confdefs.h. */
  19833. #include "$LPCAPINC"
  19834. int
  19835. main ()
  19836. {
  19837. int foo;
  19838. foo = DLT_LINUX_SLL
  19839. ;
  19840. return 0;
  19841. }
  19842. _ACEOF
  19843. if ac_fn_c_try_compile "$LINENO"; then :
  19844. $as_echo "#define HAVE_DLT_LINUX_SLL 1" >>confdefs.h
  19845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19846. $as_echo "yes" >&6; }
  19847. else
  19848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19849. $as_echo "no" >&6; }
  19850. fi
  19851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLT_C_HDLC in libpcap" >&5
  19853. $as_echo_n "checking for DLT_C_HDLC in libpcap... " >&6; }
  19854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19855. /* end confdefs.h. */
  19856. #include "$LPCAPINC"
  19857. int
  19858. main ()
  19859. {
  19860. int foo;
  19861. foo = DLT_C_HDLC
  19862. ;
  19863. return 0;
  19864. }
  19865. _ACEOF
  19866. if ac_fn_c_try_compile "$LINENO"; then :
  19867. $as_echo "#define HAVE_DLT_C_HDLC 1" >>confdefs.h
  19868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19869. $as_echo "yes" >&6; }
  19870. else
  19871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19872. $as_echo "no" >&6; }
  19873. fi
  19874. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19875. PCAP_BPF_H_FILE="$LPCAPINCDIR/pcap-bpf.h"
  19876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PCAP_BPF_H_FILE" >&5
  19877. $as_echo_n "checking for $PCAP_BPF_H_FILE... " >&6; }
  19878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19879. /* end confdefs.h. */
  19880. #include <sys/types.h>
  19881. #include <sys/time.h>
  19882. #include <stdint.h>
  19883. #include "$PCAP_BPF_H_FILE"
  19884. int
  19885. main ()
  19886. {
  19887. int foo;
  19888. foo = BPF_MAJOR_VERSION;
  19889. ;
  19890. return 0;
  19891. }
  19892. _ACEOF
  19893. if ac_fn_c_try_compile "$LINENO"; then :
  19894. $as_echo "#define INCLUDE_PCAP_BPF_HEADER 1" >>confdefs.h
  19895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19896. $as_echo "yes" >&6; }
  19897. else
  19898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19899. $as_echo "no" >&6; }
  19900. fi
  19901. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19902. foundbpfheader=no
  19903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcap bpf header" >&5
  19904. $as_echo_n "checking for libpcap bpf header... " >&6; }
  19905. for testfile in $LPCAPINCDIR/pcap/bpf.h $LPCAPINCDIR/pcap-bpf.h ; do
  19906. if test -f "${testfile}" -a $foundbpfheader = no ; then
  19907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19908. /* end confdefs.h. */
  19909. #include <sys/types.h>
  19910. #include <sys/time.h>
  19911. #include <stdint.h>
  19912. #include "$testfile"
  19913. int
  19914. main ()
  19915. {
  19916. int foo;
  19917. foo = BPF_MAJOR_VERSION;
  19918. ;
  19919. return 0;
  19920. }
  19921. _ACEOF
  19922. if ac_fn_c_try_compile "$LINENO"; then :
  19923. foundbpfheader=yes
  19924. PCAP_BPF_H_FILE=$testfile
  19925. $as_echo "#define INCLUDE_PCAP_BPF_HEADER 1" >>confdefs.h
  19926. fi
  19927. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19928. fi
  19929. done
  19930. if test $foundbpfheader != no; then
  19931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $testfile" >&5
  19932. $as_echo "$testfile" >&6; }
  19933. else
  19934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19935. $as_echo "no" >&6; }
  19936. fi
  19937. have_pcap_netmap=no
  19938. if test $foundpcap != no ; then
  19939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap libpcap" >&5
  19940. $as_echo_n "checking for netmap libpcap... " >&6; }
  19941. PCAP_NETMAP_C_FILE="$LPCAPINCDIR/pcap-netmap.c"
  19942. if test -f "${PCAP_NETMAP_C_FILE}" ; then
  19943. $as_echo "#define HAVE_LIBPCAP_NETMAP 1" >>confdefs.h
  19944. have_pcap_netmap=yes
  19945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19946. $as_echo "yes" >&6; }
  19947. else
  19948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19949. $as_echo "no" >&6; }
  19950. fi
  19951. fi
  19952. LIBS="$OLDLIBS"
  19953. CFLAGS="$OLDCFLAGS"
  19954. pcapnav_ver=no
  19955. pcncfg=no
  19956. # Check whether --with-pcapnav-config was given.
  19957. if test "${with_pcapnav_config+set}" = set; then :
  19958. withval=$with_pcapnav_config; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcapnav-config" >&5
  19959. $as_echo_n "checking for pcapnav-config... " >&6; }
  19960. if test -x $withval ; then
  19961. pcncfg=$withval
  19962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcncfg" >&5
  19963. $as_echo "$pcncfg" >&6; }
  19964. elif test x$withval = xno ; then
  19965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19966. $as_echo "no" >&6; }
  19967. else
  19968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Can't find pcapnav-config: disabling offset jump feature" >&5
  19969. $as_echo "Can't find pcapnav-config: disabling offset jump feature" >&6; }
  19970. fi
  19971. else
  19972. # Extract the first word of "pcapnav-config", so it can be a program name with args.
  19973. set dummy pcapnav-config; ac_word=$2
  19974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19975. $as_echo_n "checking for $ac_word... " >&6; }
  19976. if ${ac_cv_path_pcncfg+:} false; then :
  19977. $as_echo_n "(cached) " >&6
  19978. else
  19979. case $pcncfg in
  19980. [\\/]* | ?:[\\/]*)
  19981. ac_cv_path_pcncfg="$pcncfg" # Let the user override the test with a path.
  19982. ;;
  19983. *)
  19984. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19985. for as_dir in $PATH
  19986. do
  19987. IFS=$as_save_IFS
  19988. test -z "$as_dir" && as_dir=.
  19989. for ac_exec_ext in '' $ac_executable_extensions; do
  19990. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19991. ac_cv_path_pcncfg="$as_dir/$ac_word$ac_exec_ext"
  19992. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19993. break 2
  19994. fi
  19995. done
  19996. done
  19997. IFS=$as_save_IFS
  19998. test -z "$ac_cv_path_pcncfg" && ac_cv_path_pcncfg="no "
  19999. ;;
  20000. esac
  20001. fi
  20002. pcncfg=$ac_cv_path_pcncfg
  20003. if test -n "$pcncfg"; then
  20004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcncfg" >&5
  20005. $as_echo "$pcncfg" >&6; }
  20006. else
  20007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20008. $as_echo "no" >&6; }
  20009. fi
  20010. fi
  20011. if test $pcncfg != no ; then
  20012. LNAVLIB=$($pcncfg --libs)
  20013. LNAV_CFLAGS=$($pcncfg --cflags)
  20014. PCAPNAV_VERSION=$($pcncfg --version)
  20015. cat >>confdefs.h <<_ACEOF
  20016. #define PCAPNAV_VERSION "$PCAPNAV_VERSION"
  20017. _ACEOF
  20018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcapnav version" >&5
  20019. $as_echo_n "checking for libpcapnav version... " >&6; }
  20020. if test "$cross_compiling" = yes; then :
  20021. libpcapnav_ver=no
  20022. else
  20023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20024. /* end confdefs.h. */
  20025. #include <string.h>
  20026. #define PCAPNAV_TEST "0.4"
  20027. /*
  20028. * simple proggy to test the version of libpcapnav
  20029. * returns zero if version >= 0.4
  20030. * or one otherwise
  20031. */
  20032. int
  20033. main (int argc, char *argv[])
  20034. {
  20035. if (strncmp(PCAPNAV_VERSION, PCAPNAV_TEST, 3) >= 0)
  20036. exit(0);
  20037. exit(1);
  20038. }
  20039. _ACEOF
  20040. if ac_fn_c_try_run "$LINENO"; then :
  20041. libpcapnav_ver=yes
  20042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.4" >&5
  20043. $as_echo ">= 0.4" >&6; }
  20044. else
  20045. libpcapnav_ver=no
  20046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: < 0.4" >&5
  20047. $as_echo "< 0.4" >&6; }
  20048. fi
  20049. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20050. conftest.$ac_objext conftest.beam conftest.$ac_ext
  20051. fi
  20052. if test x$libpcapnav_ver = xno ; then
  20053. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libpcapnav versions < 0.4 are not supported.
  20054. Please upgrade to version 0.4 or better.
  20055. Disabling offset jump feature." >&5
  20056. $as_echo "$as_me: WARNING: Libpcapnav versions < 0.4 are not supported.
  20057. Please upgrade to version 0.4 or better.
  20058. Disabling offset jump feature." >&2;}
  20059. else
  20060. $as_echo "#define HAVE_PCAPNAV 1" >>confdefs.h
  20061. fi
  20062. fi # checking pcapnav version
  20063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for requires strict byte alignment" >&5
  20064. $as_echo_n "checking for requires strict byte alignment... " >&6; }
  20065. if ${unaligned_cv_fail+:} false; then :
  20066. $as_echo_n "(cached) " >&6
  20067. else
  20068. case "$host_os" in
  20069. darwin*)
  20070. # macOS M1 test fails due to lack of fork() so just hard code it
  20071. unaligned_cv_fail=no
  20072. ;;
  20073. *)
  20074. case "$host_cpu" in
  20075. # XXX: should also check that they don't do weird things
  20076. alpha*|arm*|hp*|mips*|sparc*|ia64)
  20077. unaligned_cv_fail=yes
  20078. ;;
  20079. *)
  20080. cat >conftest.c <<EOF
  20081. #include <sys/types.h>
  20082. #include <sys/wait.h>
  20083. #include <stdio.h>
  20084. unsigned char a[5] = { 1, 2, 3, 4, 5 };
  20085. main() {
  20086. unsigned int i;
  20087. pid_t pid;
  20088. int status;
  20089. /* avoid "core dumped" message */
  20090. pid = fork();
  20091. if (pid < 0)
  20092. exit(2);
  20093. if (pid > 0) {
  20094. /* parent */
  20095. pid = waitpid(pid, &status, 0);
  20096. if (pid < 0)
  20097. exit(3);
  20098. exit(!WIFEXITED(status));
  20099. }
  20100. /* child */
  20101. i = *(unsigned int *)&a[1];
  20102. printf("%d\n", i);
  20103. exit(0);
  20104. }
  20105. EOF
  20106. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
  20107. conftest.c $LIBS >/dev/null 2>&1
  20108. if test ! -x conftest ; then
  20109. unaligned_cv_fail=yes
  20110. else
  20111. ./conftest >conftest.out
  20112. if test ! -s conftest.out ; then
  20113. unaligned_cv_fail=yes
  20114. else
  20115. unaligned_cv_fail=no
  20116. fi
  20117. fi
  20118. rm -f conftest* core core.conftest
  20119. ;;
  20120. esac
  20121. ;;
  20122. esac
  20123. fi
  20124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unaligned_cv_fail" >&5
  20125. $as_echo "$unaligned_cv_fail" >&6; }
  20126. if test $unaligned_cv_fail = yes ; then
  20127. $as_echo "#define FORCE_ALIGN 1" >>confdefs.h
  20128. fi
  20129. tcpdump_path=no
  20130. # Check whether --with-tcpdump was given.
  20131. if test "${with_tcpdump+set}" = set; then :
  20132. withval=$with_tcpdump; if test -x $withval ; then
  20133. tcpdump_path=$withval
  20134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using tcpdump in $tcpdump_path" >&5
  20135. $as_echo "Using tcpdump in $tcpdump_path" >&6; }
  20136. else
  20137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error: $withval does not exist or is not executable" >&5
  20138. $as_echo "Error: $withval does not exist or is not executable" >&6; }
  20139. fi
  20140. else
  20141. # Extract the first word of "tcpdump", so it can be a program name with args.
  20142. set dummy tcpdump; ac_word=$2
  20143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20144. $as_echo_n "checking for $ac_word... " >&6; }
  20145. if ${ac_cv_path_tcpdump_path+:} false; then :
  20146. $as_echo_n "(cached) " >&6
  20147. else
  20148. case $tcpdump_path in
  20149. [\\/]* | ?:[\\/]*)
  20150. ac_cv_path_tcpdump_path="$tcpdump_path" # Let the user override the test with a path.
  20151. ;;
  20152. *)
  20153. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20154. as_dummy="$PATH:/usr/sbin:/sbin:/usr/local/sbin"
  20155. for as_dir in $as_dummy
  20156. do
  20157. IFS=$as_save_IFS
  20158. test -z "$as_dir" && as_dir=.
  20159. for ac_exec_ext in '' $ac_executable_extensions; do
  20160. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20161. ac_cv_path_tcpdump_path="$as_dir/$ac_word$ac_exec_ext"
  20162. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20163. break 2
  20164. fi
  20165. done
  20166. done
  20167. IFS=$as_save_IFS
  20168. test -z "$ac_cv_path_tcpdump_path" && ac_cv_path_tcpdump_path=""no""
  20169. ;;
  20170. esac
  20171. fi
  20172. tcpdump_path=$ac_cv_path_tcpdump_path
  20173. if test -n "$tcpdump_path"; then
  20174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_path" >&5
  20175. $as_echo "$tcpdump_path" >&6; }
  20176. else
  20177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20178. $as_echo "no" >&6; }
  20179. fi
  20180. fi
  20181. if test "$tcpdump_path" = "no"; then
  20182. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  20183. Disabling --verbose" >&5
  20184. $as_echo "$as_me: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  20185. Disabling --verbose" >&2;}
  20186. else
  20187. $as_echo "#define HAVE_TCPDUMP 1" >>confdefs.h
  20188. cat >>confdefs.h <<_ACEOF
  20189. #define TCPDUMP_BINARY "$tcpdump_path"
  20190. _ACEOF
  20191. fi
  20192. if test "$tcpdump_path" != "no" -a x$have_pcap_dump_fopen = xyes; then
  20193. ENABLE_TCPDUMP_TRUE=
  20194. ENABLE_TCPDUMP_FALSE='#'
  20195. else
  20196. ENABLE_TCPDUMP_TRUE='#'
  20197. ENABLE_TCPDUMP_FALSE=
  20198. fi
  20199. if test x$tcpdump_path != xno -a x$have_pcap_dump_fopen = xyes ; then
  20200. $as_echo "#define ENABLE_VERBOSE 1" >>confdefs.h
  20201. else
  20202. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of libpcap does not support --verbose" >&5
  20203. $as_echo "$as_me: WARNING: Your version of libpcap does not support --verbose" >&2;}
  20204. fi
  20205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'make test' profile" >&5
  20206. $as_echo_n "checking for 'make test' profile... " >&6; }
  20207. if test "$host" = "$build" ; then
  20208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20209. $as_echo "yes" >&6; }
  20210. else
  20211. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to do tests when cross-compiling" >&5
  20212. $as_echo "$as_me: WARNING: Unable to do tests when cross-compiling" >&2;}
  20213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unable to do tests when cross-compiling" >&5
  20214. $as_echo "Unable to do tests when cross-compiling" >&6; }
  20215. fi
  20216. # Check whether --with-testnic was given.
  20217. if test "${with_testnic+set}" = set; then :
  20218. withval=$with_testnic; nic1=$withval
  20219. nic2=$withval
  20220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using --with-testnic=$withval" >&5
  20221. $as_echo "Using --with-testnic=$withval" >&6; }
  20222. else
  20223. case $host in
  20224. *-*-linux*)
  20225. nic1=eth0
  20226. nic2=eth0
  20227. ;;
  20228. *-*-solaris*)
  20229. nic1=hme0
  20230. nic2=hme0
  20231. ;;
  20232. *-*-sunos*)
  20233. nic1=hme0
  20234. nic2=hme0
  20235. ;;
  20236. *-apple-darwin*)
  20237. nic1=en0
  20238. nic2=en0
  20239. ;;
  20240. *-*-openbsd*)
  20241. nic1=xl0
  20242. nic2=xl0
  20243. ;;
  20244. *-*-freebsd*)
  20245. nic1=em0
  20246. nic2=em0
  20247. ;;
  20248. *-*-cygwin)
  20249. nic1=%0
  20250. nic2=%0
  20251. ;;
  20252. *)
  20253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host is unknown! Using first non-loopback interface" >&5
  20254. $as_echo "$host is unknown! Using first non-loopback interface" >&6; }
  20255. nic1=%0
  20256. nic2=%0
  20257. ;;
  20258. esac
  20259. fi
  20260. disable_pcap_findalldevs=no
  20261. osx_frameworks=no
  20262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OS version" >&5
  20263. $as_echo_n "checking for OS version... " >&6; }
  20264. case $host in
  20265. *-*-linux*)
  20266. $as_echo "#define HAVE_LINUX 1" >>confdefs.h
  20267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
  20268. $as_echo "Linux" >&6; }
  20269. ;;
  20270. *-*-solaris*)
  20271. $as_echo "#define HAVE_SOLARIS 1" >>confdefs.h
  20272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
  20273. $as_echo "Solaris" >&6; }
  20274. ;;
  20275. *-*-sunos*)
  20276. $as_echo "#define HAVE_SUNOS 1" >>confdefs.h
  20277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunOS" >&5
  20278. $as_echo "SunOS" >&6; }
  20279. ;;
  20280. *-apple-darwin*)
  20281. if test x$libpcap_version_096 = xno ; then
  20282. disable_pcap_findalldevs=yes
  20283. fi
  20284. osx_frameworks=yes
  20285. $as_echo "#define HAVE_DARWIN 1" >>confdefs.h
  20286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Apple macOS" >&5
  20287. $as_echo "Apple macOS" >&6; }
  20288. ;;
  20289. *-*-openbsd*)
  20290. $as_echo "#define HAVE_OPENBSD 1" >>confdefs.h
  20291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenBSD" >&5
  20292. $as_echo "OpenBSD" >&6; }
  20293. ;;
  20294. *-*-freebsd*)
  20295. $as_echo "#define HAVE_FREEBSD 1" >>confdefs.h
  20296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: FreeBSD" >&5
  20297. $as_echo "FreeBSD" >&6; }
  20298. ;;
  20299. *-*-cygwin)
  20300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Win32/Cygwin" >&5
  20301. $as_echo "Win32/Cygwin" >&6; }
  20302. $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
  20303. ;;
  20304. *)
  20305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host is unknown!" >&5
  20306. $as_echo "$host is unknown!" >&6; }
  20307. ;;
  20308. esac
  20309. if test "$osx_frameworks" = "yes"; then
  20310. ENABLE_OSX_FRAMEWORKS_TRUE=
  20311. ENABLE_OSX_FRAMEWORKS_FALSE='#'
  20312. else
  20313. ENABLE_OSX_FRAMEWORKS_TRUE='#'
  20314. ENABLE_OSX_FRAMEWORKS_FALSE=
  20315. fi
  20316. # Check whether --with-testnic2 was given.
  20317. if test "${with_testnic2+set}" = set; then :
  20318. withval=$with_testnic2; nic2=$withval
  20319. fi
  20320. { $as_echo "$as_me:${as_lineno-$LINENO}: Using $nic1 for 1st test network interface card" >&5
  20321. $as_echo "$as_me: Using $nic1 for 1st test network interface card" >&6;}
  20322. { $as_echo "$as_me:${as_lineno-$LINENO}: Using $nic2 for 2nd test network interface card" >&5
  20323. $as_echo "$as_me: Using $nic2 for 2nd test network interface card" >&6;}
  20324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if it's ok to use pcap_findalldevs()" >&5
  20325. $as_echo_n "checking if it's ok to use pcap_findalldevs()... " >&6; }
  20326. if test x$disable_pcap_findalldevs = xno ; then
  20327. $as_echo "#define ENABLE_PCAP_FINDALLDEVS 1" >>confdefs.h
  20328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20329. $as_echo "yes" >&6; }
  20330. else
  20331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20332. $as_echo "no" >&6; }
  20333. fi
  20334. ac_header_dirent=no
  20335. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  20336. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  20337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  20338. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  20339. if eval \${$as_ac_Header+:} false; then :
  20340. $as_echo_n "(cached) " >&6
  20341. else
  20342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20343. /* end confdefs.h. */
  20344. #include <sys/types.h>
  20345. #include <$ac_hdr>
  20346. int
  20347. main ()
  20348. {
  20349. if ((DIR *) 0)
  20350. return 0;
  20351. ;
  20352. return 0;
  20353. }
  20354. _ACEOF
  20355. if ac_fn_c_try_compile "$LINENO"; then :
  20356. eval "$as_ac_Header=yes"
  20357. else
  20358. eval "$as_ac_Header=no"
  20359. fi
  20360. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20361. fi
  20362. eval ac_res=\$$as_ac_Header
  20363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20364. $as_echo "$ac_res" >&6; }
  20365. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20366. cat >>confdefs.h <<_ACEOF
  20367. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  20368. _ACEOF
  20369. ac_header_dirent=$ac_hdr; break
  20370. fi
  20371. done
  20372. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  20373. if test $ac_header_dirent = dirent.h; then
  20374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  20375. $as_echo_n "checking for library containing opendir... " >&6; }
  20376. if ${ac_cv_search_opendir+:} false; then :
  20377. $as_echo_n "(cached) " >&6
  20378. else
  20379. ac_func_search_save_LIBS=$LIBS
  20380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20381. /* end confdefs.h. */
  20382. /* Override any GCC internal prototype to avoid an error.
  20383. Use char because int might match the return type of a GCC
  20384. builtin and then its argument prototype would still apply. */
  20385. #ifdef __cplusplus
  20386. extern "C"
  20387. #endif
  20388. char opendir ();
  20389. int
  20390. main ()
  20391. {
  20392. return opendir ();
  20393. ;
  20394. return 0;
  20395. }
  20396. _ACEOF
  20397. for ac_lib in '' dir; do
  20398. if test -z "$ac_lib"; then
  20399. ac_res="none required"
  20400. else
  20401. ac_res=-l$ac_lib
  20402. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  20403. fi
  20404. if ac_fn_c_try_link "$LINENO"; then :
  20405. ac_cv_search_opendir=$ac_res
  20406. fi
  20407. rm -f core conftest.err conftest.$ac_objext \
  20408. conftest$ac_exeext
  20409. if ${ac_cv_search_opendir+:} false; then :
  20410. break
  20411. fi
  20412. done
  20413. if ${ac_cv_search_opendir+:} false; then :
  20414. else
  20415. ac_cv_search_opendir=no
  20416. fi
  20417. rm conftest.$ac_ext
  20418. LIBS=$ac_func_search_save_LIBS
  20419. fi
  20420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  20421. $as_echo "$ac_cv_search_opendir" >&6; }
  20422. ac_res=$ac_cv_search_opendir
  20423. if test "$ac_res" != no; then :
  20424. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  20425. fi
  20426. else
  20427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  20428. $as_echo_n "checking for library containing opendir... " >&6; }
  20429. if ${ac_cv_search_opendir+:} false; then :
  20430. $as_echo_n "(cached) " >&6
  20431. else
  20432. ac_func_search_save_LIBS=$LIBS
  20433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20434. /* end confdefs.h. */
  20435. /* Override any GCC internal prototype to avoid an error.
  20436. Use char because int might match the return type of a GCC
  20437. builtin and then its argument prototype would still apply. */
  20438. #ifdef __cplusplus
  20439. extern "C"
  20440. #endif
  20441. char opendir ();
  20442. int
  20443. main ()
  20444. {
  20445. return opendir ();
  20446. ;
  20447. return 0;
  20448. }
  20449. _ACEOF
  20450. for ac_lib in '' x; do
  20451. if test -z "$ac_lib"; then
  20452. ac_res="none required"
  20453. else
  20454. ac_res=-l$ac_lib
  20455. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  20456. fi
  20457. if ac_fn_c_try_link "$LINENO"; then :
  20458. ac_cv_search_opendir=$ac_res
  20459. fi
  20460. rm -f core conftest.err conftest.$ac_objext \
  20461. conftest$ac_exeext
  20462. if ${ac_cv_search_opendir+:} false; then :
  20463. break
  20464. fi
  20465. done
  20466. if ${ac_cv_search_opendir+:} false; then :
  20467. else
  20468. ac_cv_search_opendir=no
  20469. fi
  20470. rm conftest.$ac_ext
  20471. LIBS=$ac_func_search_save_LIBS
  20472. fi
  20473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  20474. $as_echo "$ac_cv_search_opendir" >&6; }
  20475. ac_res=$ac_cv_search_opendir
  20476. if test "$ac_res" != no; then :
  20477. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  20478. fi
  20479. fi
  20480. # =================
  20481. # AC_CHECK_HEADERS
  20482. # =================
  20483. for ac_header in \
  20484. sys/mman.h sys/param.h sys/poll.h sys/procset.h \
  20485. sys/select.h sys/socket.h sys/stropts.h sys/time.h \
  20486. sys/un.h sys/wait.h dlfcn.h errno.h \
  20487. fcntl.h libgen.h libintl.h memory.h \
  20488. netinet/in.h setjmp.h stdbool.h sysexits.h \
  20489. unistd.h utime.h
  20490. do :
  20491. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20492. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20493. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20494. cat >>confdefs.h <<_ACEOF
  20495. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20496. _ACEOF
  20497. fi
  20498. done
  20499. for ac_header in stdarg.h varargs.h
  20500. do :
  20501. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20502. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20503. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20504. cat >>confdefs.h <<_ACEOF
  20505. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20506. _ACEOF
  20507. lo_have_arg_hdr=true;break
  20508. else
  20509. lo_have_arg_hdr=false
  20510. fi
  20511. done
  20512. for ac_header in string.h strings.h
  20513. do :
  20514. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20515. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20516. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20517. cat >>confdefs.h <<_ACEOF
  20518. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20519. _ACEOF
  20520. lo_have_str_hdr=true;break
  20521. else
  20522. lo_have_str_hdr=false
  20523. fi
  20524. done
  20525. for ac_header in limits.h sys/limits.h values.h
  20526. do :
  20527. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20528. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20529. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20530. cat >>confdefs.h <<_ACEOF
  20531. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20532. _ACEOF
  20533. lo_have_lim_hdr=true;break
  20534. else
  20535. lo_have_lim_hdr=false
  20536. fi
  20537. done
  20538. for ac_header in inttypes.h stdint.h
  20539. do :
  20540. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20541. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20542. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20543. cat >>confdefs.h <<_ACEOF
  20544. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20545. _ACEOF
  20546. lo_have_typ_hdr=true;break
  20547. else
  20548. lo_have_typ_hdr=false
  20549. fi
  20550. done
  20551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
  20552. $as_echo_n "checking for working stdnoreturn.h... " >&6; }
  20553. if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
  20554. $as_echo_n "(cached) " >&6
  20555. else
  20556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20557. /* end confdefs.h. */
  20558. #include <stdlib.h>
  20559. #include <stdnoreturn.h>
  20560. /* Do not check for 'noreturn' after the return type.
  20561. C11 allows it, but it's rarely done that way
  20562. and circa-2012 bleeding-edge GCC rejects it when given
  20563. -Werror=old-style-declaration. */
  20564. noreturn void foo1 (void) { exit (0); }
  20565. _Noreturn void foo2 (void) { exit (0); }
  20566. int testit (int argc, char **argv) {
  20567. if (argc & 1)
  20568. return 0;
  20569. (argv[0][0] ? foo1 : foo2) ();
  20570. }
  20571. int
  20572. main ()
  20573. {
  20574. ;
  20575. return 0;
  20576. }
  20577. _ACEOF
  20578. if ac_fn_c_try_compile "$LINENO"; then :
  20579. gl_cv_header_working_stdnoreturn_h=yes
  20580. else
  20581. gl_cv_header_working_stdnoreturn_h=no
  20582. fi
  20583. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20584. fi
  20585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
  20586. $as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }
  20587. if test $gl_cv_header_working_stdnoreturn_h = yes; then
  20588. STDNORETURN_H=''
  20589. else
  20590. STDNORETURN_H='stdnoreturn.h'
  20591. fi
  20592. if test -n "$STDNORETURN_H"; then
  20593. GL_GENERATE_STDNORETURN_H_TRUE=
  20594. GL_GENERATE_STDNORETURN_H_FALSE='#'
  20595. else
  20596. GL_GENERATE_STDNORETURN_H_TRUE='#'
  20597. GL_GENERATE_STDNORETURN_H_FALSE=
  20598. fi
  20599. # ----------------------------------------------------------------------
  20600. # check for various programs used during the build.
  20601. # On OS/X, "wchar.h" needs "runetype.h" to work properly.
  20602. # ----------------------------------------------------------------------
  20603. for ac_header in runetype.h wchar.h
  20604. do :
  20605. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20606. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  20607. $ac_includes_default
  20608. #if HAVE_RUNETYPE_H
  20609. # include <runetype.h>
  20610. #endif
  20611. "
  20612. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20613. cat >>confdefs.h <<_ACEOF
  20614. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20615. _ACEOF
  20616. fi
  20617. done
  20618. # Check whether --enable-nls was given.
  20619. if test "${enable_nls+set}" = set; then :
  20620. enableval=$enable_nls;
  20621. fi
  20622. if test "x$enable_nls" != "xno" && \
  20623. test "X${ac_cv_header_libintl_h}" = Xyes; then :
  20624. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  20625. fi
  20626. # --------------------------------------------
  20627. # Verify certain entries from AC_CHECK_HEADERS
  20628. # --------------------------------------------
  20629. ${lo_have_arg_hdr} || \
  20630. as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
  20631. ${lo_have_str_hdr} || \
  20632. as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
  20633. ${lo_have_lim_hdr} || \
  20634. as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
  20635. ${lo_have_typ_hdr} || \
  20636. as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
  20637. for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
  20638. do eval as_ac_var=\${ac_cv_header_${f}_h}
  20639. test "X${as_ac_var}" = Xyes || {
  20640. as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
  20641. }
  20642. done
  20643. test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
  20644. echo '#include <stdint.h>' > inttypes.h
  20645. # ----------------------------------------------------------------------
  20646. # Checks for typedefs
  20647. # ----------------------------------------------------------------------
  20648. ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
  20649. if test "x$ac_cv_type_wchar_t" = xyes; then :
  20650. cat >>confdefs.h <<_ACEOF
  20651. #define HAVE_WCHAR_T 1
  20652. _ACEOF
  20653. fi
  20654. ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
  20655. $ac_includes_default
  20656. #if HAVE_RUNETYPE_H
  20657. # include <runetype.h>
  20658. #endif
  20659. #if HAVE_WCHAR_H
  20660. # include <wchar.h>
  20661. #endif
  20662. "
  20663. if test "x$ac_cv_type_wint_t" = xyes; then :
  20664. cat >>confdefs.h <<_ACEOF
  20665. #define HAVE_WINT_T 1
  20666. _ACEOF
  20667. fi
  20668. ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
  20669. if test "x$ac_cv_type_int8_t" = xyes; then :
  20670. cat >>confdefs.h <<_ACEOF
  20671. #define HAVE_INT8_T 1
  20672. _ACEOF
  20673. fi
  20674. ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
  20675. if test "x$ac_cv_type_uint8_t" = xyes; then :
  20676. cat >>confdefs.h <<_ACEOF
  20677. #define HAVE_UINT8_T 1
  20678. _ACEOF
  20679. fi
  20680. ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
  20681. if test "x$ac_cv_type_int16_t" = xyes; then :
  20682. cat >>confdefs.h <<_ACEOF
  20683. #define HAVE_INT16_T 1
  20684. _ACEOF
  20685. fi
  20686. ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
  20687. if test "x$ac_cv_type_uint16_t" = xyes; then :
  20688. cat >>confdefs.h <<_ACEOF
  20689. #define HAVE_UINT16_T 1
  20690. _ACEOF
  20691. fi
  20692. ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
  20693. if test "x$ac_cv_type_int32_t" = xyes; then :
  20694. cat >>confdefs.h <<_ACEOF
  20695. #define HAVE_INT32_T 1
  20696. _ACEOF
  20697. fi
  20698. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
  20699. if test "x$ac_cv_type_uint32_t" = xyes; then :
  20700. cat >>confdefs.h <<_ACEOF
  20701. #define HAVE_UINT32_T 1
  20702. _ACEOF
  20703. fi
  20704. ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
  20705. if test "x$ac_cv_type_intptr_t" = xyes; then :
  20706. cat >>confdefs.h <<_ACEOF
  20707. #define HAVE_INTPTR_T 1
  20708. _ACEOF
  20709. fi
  20710. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  20711. if test "x$ac_cv_type_uintptr_t" = xyes; then :
  20712. cat >>confdefs.h <<_ACEOF
  20713. #define HAVE_UINTPTR_T 1
  20714. _ACEOF
  20715. fi
  20716. ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
  20717. if test "x$ac_cv_type_uint_t" = xyes; then :
  20718. cat >>confdefs.h <<_ACEOF
  20719. #define HAVE_UINT_T 1
  20720. _ACEOF
  20721. fi
  20722. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  20723. if test "x$ac_cv_type_pid_t" = xyes; then :
  20724. cat >>confdefs.h <<_ACEOF
  20725. #define HAVE_PID_T 1
  20726. _ACEOF
  20727. fi
  20728. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  20729. if test "x$ac_cv_type_size_t" = xyes; then :
  20730. cat >>confdefs.h <<_ACEOF
  20731. #define HAVE_SIZE_T 1
  20732. _ACEOF
  20733. fi
  20734. ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  20735. if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
  20736. cat >>confdefs.h <<_ACEOF
  20737. #define HAVE_PTRDIFF_T 1
  20738. _ACEOF
  20739. fi
  20740. # The cast to long int works around a bug in the HP C Compiler
  20741. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  20742. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  20743. # This bug is HP SR number 8606223364.
  20744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
  20745. $as_echo_n "checking size of char *... " >&6; }
  20746. if ${ac_cv_sizeof_char_p+:} false; then :
  20747. $as_echo_n "(cached) " >&6
  20748. else
  20749. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
  20750. else
  20751. if test "$ac_cv_type_char_p" = yes; then
  20752. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20753. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20754. as_fn_error 77 "cannot compute sizeof (char *)
  20755. See \`config.log' for more details" "$LINENO" 5; }
  20756. else
  20757. ac_cv_sizeof_char_p=0
  20758. fi
  20759. fi
  20760. fi
  20761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
  20762. $as_echo "$ac_cv_sizeof_char_p" >&6; }
  20763. cat >>confdefs.h <<_ACEOF
  20764. #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
  20765. _ACEOF
  20766. # The cast to long int works around a bug in the HP C Compiler
  20767. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  20768. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  20769. # This bug is HP SR number 8606223364.
  20770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  20771. $as_echo_n "checking size of int... " >&6; }
  20772. if ${ac_cv_sizeof_int+:} false; then :
  20773. $as_echo_n "(cached) " >&6
  20774. else
  20775. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  20776. else
  20777. if test "$ac_cv_type_int" = yes; then
  20778. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20779. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20780. as_fn_error 77 "cannot compute sizeof (int)
  20781. See \`config.log' for more details" "$LINENO" 5; }
  20782. else
  20783. ac_cv_sizeof_int=0
  20784. fi
  20785. fi
  20786. fi
  20787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  20788. $as_echo "$ac_cv_sizeof_int" >&6; }
  20789. cat >>confdefs.h <<_ACEOF
  20790. #define SIZEOF_INT $ac_cv_sizeof_int
  20791. _ACEOF
  20792. # The cast to long int works around a bug in the HP C Compiler
  20793. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  20794. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  20795. # This bug is HP SR number 8606223364.
  20796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  20797. $as_echo_n "checking size of long... " >&6; }
  20798. if ${ac_cv_sizeof_long+:} false; then :
  20799. $as_echo_n "(cached) " >&6
  20800. else
  20801. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  20802. else
  20803. if test "$ac_cv_type_long" = yes; then
  20804. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20805. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20806. as_fn_error 77 "cannot compute sizeof (long)
  20807. See \`config.log' for more details" "$LINENO" 5; }
  20808. else
  20809. ac_cv_sizeof_long=0
  20810. fi
  20811. fi
  20812. fi
  20813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  20814. $as_echo "$ac_cv_sizeof_long" >&6; }
  20815. cat >>confdefs.h <<_ACEOF
  20816. #define SIZEOF_LONG $ac_cv_sizeof_long
  20817. _ACEOF
  20818. # The cast to long int works around a bug in the HP C Compiler
  20819. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  20820. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  20821. # This bug is HP SR number 8606223364.
  20822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  20823. $as_echo_n "checking size of short... " >&6; }
  20824. if ${ac_cv_sizeof_short+:} false; then :
  20825. $as_echo_n "(cached) " >&6
  20826. else
  20827. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  20828. else
  20829. if test "$ac_cv_type_short" = yes; then
  20830. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20831. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20832. as_fn_error 77 "cannot compute sizeof (short)
  20833. See \`config.log' for more details" "$LINENO" 5; }
  20834. else
  20835. ac_cv_sizeof_short=0
  20836. fi
  20837. fi
  20838. fi
  20839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  20840. $as_echo "$ac_cv_sizeof_short" >&6; }
  20841. cat >>confdefs.h <<_ACEOF
  20842. #define SIZEOF_SHORT $ac_cv_sizeof_short
  20843. _ACEOF
  20844. # ------------
  20845. # AC_CHECK_LIB
  20846. # ------------
  20847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
  20848. $as_echo_n "checking for pathfind in -lgen... " >&6; }
  20849. if ${ac_cv_lib_gen_pathfind+:} false; then :
  20850. $as_echo_n "(cached) " >&6
  20851. else
  20852. ac_check_lib_save_LIBS=$LIBS
  20853. LIBS="-lgen $LIBS"
  20854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20855. /* end confdefs.h. */
  20856. /* Override any GCC internal prototype to avoid an error.
  20857. Use char because int might match the return type of a GCC
  20858. builtin and then its argument prototype would still apply. */
  20859. #ifdef __cplusplus
  20860. extern "C"
  20861. #endif
  20862. char pathfind ();
  20863. int
  20864. main ()
  20865. {
  20866. return pathfind ();
  20867. ;
  20868. return 0;
  20869. }
  20870. _ACEOF
  20871. if ac_fn_c_try_link "$LINENO"; then :
  20872. ac_cv_lib_gen_pathfind=yes
  20873. else
  20874. ac_cv_lib_gen_pathfind=no
  20875. fi
  20876. rm -f core conftest.err conftest.$ac_objext \
  20877. conftest$ac_exeext conftest.$ac_ext
  20878. LIBS=$ac_check_lib_save_LIBS
  20879. fi
  20880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
  20881. $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
  20882. if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
  20883. cat >>confdefs.h <<_ACEOF
  20884. #define HAVE_LIBGEN 1
  20885. _ACEOF
  20886. LIBS="-lgen $LIBS"
  20887. fi
  20888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
  20889. $as_echo_n "checking for gettext in -lintl... " >&6; }
  20890. if ${ac_cv_lib_intl_gettext+:} false; then :
  20891. $as_echo_n "(cached) " >&6
  20892. else
  20893. ac_check_lib_save_LIBS=$LIBS
  20894. LIBS="-lintl $LIBS"
  20895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20896. /* end confdefs.h. */
  20897. /* Override any GCC internal prototype to avoid an error.
  20898. Use char because int might match the return type of a GCC
  20899. builtin and then its argument prototype would still apply. */
  20900. #ifdef __cplusplus
  20901. extern "C"
  20902. #endif
  20903. char gettext ();
  20904. int
  20905. main ()
  20906. {
  20907. return gettext ();
  20908. ;
  20909. return 0;
  20910. }
  20911. _ACEOF
  20912. if ac_fn_c_try_link "$LINENO"; then :
  20913. ac_cv_lib_intl_gettext=yes
  20914. else
  20915. ac_cv_lib_intl_gettext=no
  20916. fi
  20917. rm -f core conftest.err conftest.$ac_objext \
  20918. conftest$ac_exeext conftest.$ac_ext
  20919. LIBS=$ac_check_lib_save_LIBS
  20920. fi
  20921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
  20922. $as_echo "$ac_cv_lib_intl_gettext" >&6; }
  20923. if test "x$ac_cv_lib_intl_gettext" = xyes; then :
  20924. cat >>confdefs.h <<_ACEOF
  20925. #define HAVE_LIBINTL 1
  20926. _ACEOF
  20927. LIBS="-lintl $LIBS"
  20928. fi
  20929. for ac_func in vprintf
  20930. do :
  20931. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  20932. if test "x$ac_cv_func_vprintf" = xyes; then :
  20933. cat >>confdefs.h <<_ACEOF
  20934. #define HAVE_VPRINTF 1
  20935. _ACEOF
  20936. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  20937. if test "x$ac_cv_func__doprnt" = xyes; then :
  20938. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  20939. fi
  20940. fi
  20941. done
  20942. for ac_header in vfork.h
  20943. do :
  20944. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  20945. if test "x$ac_cv_header_vfork_h" = xyes; then :
  20946. cat >>confdefs.h <<_ACEOF
  20947. #define HAVE_VFORK_H 1
  20948. _ACEOF
  20949. fi
  20950. done
  20951. for ac_func in fork vfork
  20952. do :
  20953. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20954. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  20955. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  20956. cat >>confdefs.h <<_ACEOF
  20957. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20958. _ACEOF
  20959. fi
  20960. done
  20961. if test "x$ac_cv_func_fork" = xyes; then
  20962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  20963. $as_echo_n "checking for working fork... " >&6; }
  20964. if ${ac_cv_func_fork_works+:} false; then :
  20965. $as_echo_n "(cached) " >&6
  20966. else
  20967. if test "$cross_compiling" = yes; then :
  20968. ac_cv_func_fork_works=cross
  20969. else
  20970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20971. /* end confdefs.h. */
  20972. $ac_includes_default
  20973. int
  20974. main ()
  20975. {
  20976. /* By Ruediger Kuhlmann. */
  20977. return fork () < 0;
  20978. ;
  20979. return 0;
  20980. }
  20981. _ACEOF
  20982. if ac_fn_c_try_run "$LINENO"; then :
  20983. ac_cv_func_fork_works=yes
  20984. else
  20985. ac_cv_func_fork_works=no
  20986. fi
  20987. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20988. conftest.$ac_objext conftest.beam conftest.$ac_ext
  20989. fi
  20990. fi
  20991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  20992. $as_echo "$ac_cv_func_fork_works" >&6; }
  20993. else
  20994. ac_cv_func_fork_works=$ac_cv_func_fork
  20995. fi
  20996. if test "x$ac_cv_func_fork_works" = xcross; then
  20997. case $host in
  20998. *-*-amigaos* | *-*-msdosdjgpp*)
  20999. # Override, as these systems have only a dummy fork() stub
  21000. ac_cv_func_fork_works=no
  21001. ;;
  21002. *)
  21003. ac_cv_func_fork_works=yes
  21004. ;;
  21005. esac
  21006. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  21007. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  21008. fi
  21009. ac_cv_func_vfork_works=$ac_cv_func_vfork
  21010. if test "x$ac_cv_func_vfork" = xyes; then
  21011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  21012. $as_echo_n "checking for working vfork... " >&6; }
  21013. if ${ac_cv_func_vfork_works+:} false; then :
  21014. $as_echo_n "(cached) " >&6
  21015. else
  21016. if test "$cross_compiling" = yes; then :
  21017. ac_cv_func_vfork_works=cross
  21018. else
  21019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21020. /* end confdefs.h. */
  21021. /* Thanks to Paul Eggert for this test. */
  21022. $ac_includes_default
  21023. #include <sys/wait.h>
  21024. #ifdef HAVE_VFORK_H
  21025. # include <vfork.h>
  21026. #endif
  21027. /* On some sparc systems, changes by the child to local and incoming
  21028. argument registers are propagated back to the parent. The compiler
  21029. is told about this with #include <vfork.h>, but some compilers
  21030. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  21031. static variable whose address is put into a register that is
  21032. clobbered by the vfork. */
  21033. static void
  21034. #ifdef __cplusplus
  21035. sparc_address_test (int arg)
  21036. # else
  21037. sparc_address_test (arg) int arg;
  21038. #endif
  21039. {
  21040. static pid_t child;
  21041. if (!child) {
  21042. child = vfork ();
  21043. if (child < 0) {
  21044. perror ("vfork");
  21045. _exit(2);
  21046. }
  21047. if (!child) {
  21048. arg = getpid();
  21049. write(-1, "", 0);
  21050. _exit (arg);
  21051. }
  21052. }
  21053. }
  21054. int
  21055. main ()
  21056. {
  21057. pid_t parent = getpid ();
  21058. pid_t child;
  21059. sparc_address_test (0);
  21060. child = vfork ();
  21061. if (child == 0) {
  21062. /* Here is another test for sparc vfork register problems. This
  21063. test uses lots of local variables, at least as many local
  21064. variables as main has allocated so far including compiler
  21065. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  21066. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  21067. reuse the register of parent for one of the local variables,
  21068. since it will think that parent can't possibly be used any more
  21069. in this routine. Assigning to the local variable will thus
  21070. munge parent in the parent process. */
  21071. pid_t
  21072. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  21073. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  21074. /* Convince the compiler that p..p7 are live; otherwise, it might
  21075. use the same hardware register for all 8 local variables. */
  21076. if (p != p1 || p != p2 || p != p3 || p != p4
  21077. || p != p5 || p != p6 || p != p7)
  21078. _exit(1);
  21079. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  21080. from child file descriptors. If the child closes a descriptor
  21081. before it execs or exits, this munges the parent's descriptor
  21082. as well. Test for this by closing stdout in the child. */
  21083. _exit(close(fileno(stdout)) != 0);
  21084. } else {
  21085. int status;
  21086. struct stat st;
  21087. while (wait(&status) != child)
  21088. ;
  21089. return (
  21090. /* Was there some problem with vforking? */
  21091. child < 0
  21092. /* Did the child fail? (This shouldn't happen.) */
  21093. || status
  21094. /* Did the vfork/compiler bug occur? */
  21095. || parent != getpid()
  21096. /* Did the file descriptor bug occur? */
  21097. || fstat(fileno(stdout), &st) != 0
  21098. );
  21099. }
  21100. }
  21101. _ACEOF
  21102. if ac_fn_c_try_run "$LINENO"; then :
  21103. ac_cv_func_vfork_works=yes
  21104. else
  21105. ac_cv_func_vfork_works=no
  21106. fi
  21107. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21108. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21109. fi
  21110. fi
  21111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  21112. $as_echo "$ac_cv_func_vfork_works" >&6; }
  21113. fi;
  21114. if test "x$ac_cv_func_fork_works" = xcross; then
  21115. ac_cv_func_vfork_works=$ac_cv_func_vfork
  21116. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  21117. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  21118. fi
  21119. if test "x$ac_cv_func_vfork_works" = xyes; then
  21120. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  21121. else
  21122. $as_echo "#define vfork fork" >>confdefs.h
  21123. fi
  21124. if test "x$ac_cv_func_fork_works" = xyes; then
  21125. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  21126. fi
  21127. for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
  21128. strrchr strsignal fchmod fstat chmod
  21129. do :
  21130. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21131. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  21132. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  21133. cat >>confdefs.h <<_ACEOF
  21134. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21135. _ACEOF
  21136. fi
  21137. done
  21138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  21139. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  21140. if ${ac_cv_path_SED+:} false; then :
  21141. $as_echo_n "(cached) " >&6
  21142. else
  21143. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  21144. for ac_i in 1 2 3 4 5 6 7; do
  21145. ac_script="$ac_script$as_nl$ac_script"
  21146. done
  21147. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  21148. { ac_script=; unset ac_script;}
  21149. if test -z "$SED"; then
  21150. ac_path_SED_found=false
  21151. # Loop through the user's path and test for each of PROGNAME-LIST
  21152. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21153. for as_dir in $PATH
  21154. do
  21155. IFS=$as_save_IFS
  21156. test -z "$as_dir" && as_dir=.
  21157. for ac_prog in sed gsed; do
  21158. for ac_exec_ext in '' $ac_executable_extensions; do
  21159. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  21160. as_fn_executable_p "$ac_path_SED" || continue
  21161. # Check for GNU ac_path_SED and select it if it is found.
  21162. # Check for GNU $ac_path_SED
  21163. case `"$ac_path_SED" --version 2>&1` in
  21164. *GNU*)
  21165. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  21166. *)
  21167. ac_count=0
  21168. $as_echo_n 0123456789 >"conftest.in"
  21169. while :
  21170. do
  21171. cat "conftest.in" "conftest.in" >"conftest.tmp"
  21172. mv "conftest.tmp" "conftest.in"
  21173. cp "conftest.in" "conftest.nl"
  21174. $as_echo '' >> "conftest.nl"
  21175. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  21176. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  21177. as_fn_arith $ac_count + 1 && ac_count=$as_val
  21178. if test $ac_count -gt ${ac_path_SED_max-0}; then
  21179. # Best one so far, save it but keep looking for a better one
  21180. ac_cv_path_SED="$ac_path_SED"
  21181. ac_path_SED_max=$ac_count
  21182. fi
  21183. # 10*(2^10) chars as input seems more than enough
  21184. test $ac_count -gt 10 && break
  21185. done
  21186. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  21187. esac
  21188. $ac_path_SED_found && break 3
  21189. done
  21190. done
  21191. done
  21192. IFS=$as_save_IFS
  21193. if test -z "$ac_cv_path_SED"; then
  21194. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  21195. fi
  21196. else
  21197. ac_cv_path_SED=$SED
  21198. fi
  21199. fi
  21200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  21201. $as_echo "$ac_cv_path_SED" >&6; }
  21202. SED="$ac_cv_path_SED"
  21203. rm -f conftest.sed
  21204. while :
  21205. do
  21206. POSIX_SHELL=`which bash`
  21207. test -x "$POSIX_SHELL" && break
  21208. POSIX_SHELL=`which dash`
  21209. test -x "$POSIX_SHELL" && break
  21210. POSIX_SHELL=/usr/xpg4/bin/sh
  21211. test -x "$POSIX_SHELL" && break
  21212. POSIX_SHELL=`/bin/sh -c '
  21213. exec 2>/dev/null
  21214. if ! true ; then exit 1 ; fi
  21215. echo /bin/sh'`
  21216. test -x "$POSIX_SHELL" && break
  21217. as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
  21218. done
  21219. cat >>confdefs.h <<_ACEOF
  21220. #define POSIX_SHELL "${POSIX_SHELL}"
  21221. _ACEOF
  21222. LIBOPTS_BUILD_BLOCKED=''
  21223. NEED_LIBOPTS_DIR=''
  21224. # Check whether --enable-local-libopts was given.
  21225. if test "${enable_local_libopts+set}" = set; then :
  21226. enableval=$enable_local_libopts;
  21227. if test x$enableval = xyes ; then
  21228. { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
  21229. $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
  21230. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  21231. NEED_LIBOPTS_DIR=true
  21232. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  21233. fi
  21234. fi
  21235. # Check whether --enable-libopts-install was given.
  21236. if test "${enable_libopts_install+set}" = set; then :
  21237. enableval=$enable_libopts_install;
  21238. fi
  21239. if test "X${enable_libopts_install}" = Xyes; then
  21240. INSTALL_LIBOPTS_TRUE=
  21241. INSTALL_LIBOPTS_FALSE='#'
  21242. else
  21243. INSTALL_LIBOPTS_TRUE='#'
  21244. INSTALL_LIBOPTS_FALSE=
  21245. fi
  21246. if test -z "${NEED_LIBOPTS_DIR}" ; then
  21247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
  21248. $as_echo_n "checking whether autoopts-config can be found... " >&6; }
  21249. # Check whether --with-autoopts-config was given.
  21250. if test "${with_autoopts_config+set}" = set; then :
  21251. withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
  21252. else
  21253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
  21254. $as_echo_n "checking whether autoopts-config is specified... " >&6; }
  21255. if ${lo_cv_with_autoopts_config+:} false; then :
  21256. $as_echo_n "(cached) " >&6
  21257. else
  21258. if autoopts-config --help 2>/dev/null 1>&2
  21259. then lo_cv_with_autoopts_config=autoopts-config
  21260. elif libopts-config --help 2>/dev/null 1>&2
  21261. then lo_cv_with_autoopts_config=libopts-config
  21262. else lo_cv_with_autoopts_config=no ; fi
  21263. fi
  21264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
  21265. $as_echo "$lo_cv_with_autoopts_config" >&6; }
  21266. fi
  21267. # end of AC_ARG_WITH
  21268. if ${lo_cv_test_autoopts+:} false; then :
  21269. $as_echo_n "(cached) " >&6
  21270. else
  21271. if test -z "${lo_cv_with_autoopts_config}" \
  21272. -o X"${lo_cv_with_autoopts_config}" = Xno
  21273. then
  21274. if autoopts-config --help 2>/dev/null 1>&2
  21275. then lo_cv_with_autoopts_config=autoopts-config
  21276. elif libopts-config --help 2>/dev/null 1>&2
  21277. then lo_cv_with_autoopts_config=libopts-config
  21278. else lo_cv_with_autoopts_config=false ; fi
  21279. fi
  21280. lo_cv_test_autoopts=`
  21281. ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
  21282. if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
  21283. then lo_cv_test_autoopts=no ; fi
  21284. fi
  21285. # end of CACHE_VAL
  21286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
  21287. $as_echo "${lo_cv_test_autoopts}" >&6; }
  21288. if test "X${lo_cv_test_autoopts}" != Xno
  21289. then
  21290. LIBOPTS_LDADD="${lo_cv_test_autoopts}"
  21291. LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
  21292. else
  21293. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  21294. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  21295. NEED_LIBOPTS_DIR=true
  21296. fi
  21297. fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  21298. if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
  21299. NEED_LIBOPTS_DIR=''
  21300. fi
  21301. if test -n "${NEED_LIBOPTS_DIR}"; then
  21302. NEED_LIBOPTS_TRUE=
  21303. NEED_LIBOPTS_FALSE='#'
  21304. else
  21305. NEED_LIBOPTS_TRUE='#'
  21306. NEED_LIBOPTS_FALSE=
  21307. fi
  21308. LIBOPTS_DIR=libopts
  21309. # end of AC_DEFUN of LIBOPTS_CHECK_COMMON
  21310. if test -z "$NEED_LIBOPTS_TRUE"; then :
  21311. # Check to see if a reg expr header is specified.
  21312. # Check whether --with-regex-header was given.
  21313. if test "${with_regex_header+set}" = set; then :
  21314. withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
  21315. else
  21316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
  21317. $as_echo_n "checking whether a reg expr header is specified... " >&6; }
  21318. if ${libopts_cv_with_regex_header+:} false; then :
  21319. $as_echo_n "(cached) " >&6
  21320. else
  21321. libopts_cv_with_regex_header=no
  21322. fi
  21323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
  21324. $as_echo "$libopts_cv_with_regex_header" >&6; }
  21325. fi
  21326. # end of AC_ARG_WITH
  21327. if test "X${libopts_cv_with_regex_header}" != Xno
  21328. then
  21329. cat >>confdefs.h <<_ACEOF
  21330. #define REGEX_HEADER <${libopts_cv_with_regex_header}>
  21331. _ACEOF
  21332. else
  21333. $as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
  21334. fi
  21335. # Check to see if a working libregex can be found.
  21336. # Check whether --with-libregex was given.
  21337. if test "${with_libregex+set}" = set; then :
  21338. withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
  21339. else
  21340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
  21341. $as_echo_n "checking whether with-libregex was specified... " >&6; }
  21342. if ${libopts_cv_with_libregex_root+:} false; then :
  21343. $as_echo_n "(cached) " >&6
  21344. else
  21345. libopts_cv_with_libregex_root=no
  21346. fi
  21347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
  21348. $as_echo "$libopts_cv_with_libregex_root" >&6; }
  21349. fi
  21350. # end of AC_ARG_WITH libregex
  21351. if test "${with_libregex+set}" = set && \
  21352. test "X${withval}" = Xno
  21353. then ## disabled by request
  21354. libopts_cv_with_libregex_root=no
  21355. libopts_cv_with_libregex_cflags=no
  21356. libopts_cv_with_libregex_libs=no
  21357. else
  21358. # Check whether --with-libregex-cflags was given.
  21359. if test "${with_libregex_cflags+set}" = set; then :
  21360. withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_libregex_cflags}
  21361. else
  21362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
  21363. $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
  21364. if ${libopts_cv_with_libregex_cflags+:} false; then :
  21365. $as_echo_n "(cached) " >&6
  21366. else
  21367. libopts_cv_with_libregex_cflags=no
  21368. fi
  21369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
  21370. $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
  21371. fi
  21372. # end of AC_ARG_WITH libregex-cflags
  21373. # Check whether --with-libregex-libs was given.
  21374. if test "${with_libregex_libs+set}" = set; then :
  21375. withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_libregex_libs}
  21376. else
  21377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
  21378. $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
  21379. if ${libopts_cv_with_libregex_libs+:} false; then :
  21380. $as_echo_n "(cached) " >&6
  21381. else
  21382. libopts_cv_with_libregex_libs=no
  21383. fi
  21384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
  21385. $as_echo "$libopts_cv_with_libregex_libs" >&6; }
  21386. fi
  21387. # end of AC_ARG_WITH libregex-libs
  21388. case "X${libopts_cv_with_libregex_cflags}" in
  21389. Xyes|Xno|X )
  21390. case "X${libopts_cv_with_libregex_root}" in
  21391. Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
  21392. * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
  21393. esac
  21394. esac
  21395. case "X${libopts_cv_with_libregex_libs}" in
  21396. Xyes|Xno|X )
  21397. case "X${libopts_cv_with_libregex_root}" in
  21398. Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
  21399. * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex" ;;
  21400. esac
  21401. esac
  21402. libopts_save_CPPFLAGS="${CPPFLAGS}"
  21403. libopts_save_LIBS="${LIBS}"
  21404. case "X${libopts_cv_with_libregex_cflags}" in
  21405. Xyes|Xno|X )
  21406. libopts_cv_with_libregex_cflags="" ;;
  21407. * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
  21408. esac
  21409. case "X${libopts_cv_with_libregex_libs}" in
  21410. Xyes|Xno|X )
  21411. libopts_cv_with_libregex_libs="" ;;
  21412. * )
  21413. LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
  21414. esac
  21415. LIBREGEX_CFLAGS=""
  21416. LIBREGEX_LIBS=""
  21417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
  21418. $as_echo_n "checking whether libregex functions properly... " >&6; }
  21419. if ${libopts_cv_with_libregex+:} false; then :
  21420. $as_echo_n "(cached) " >&6
  21421. else
  21422. if test "$cross_compiling" = yes; then :
  21423. libopts_cv_with_libregex=no
  21424. else
  21425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21426. /* end confdefs.h. */
  21427. #include <stdio.h>
  21428. #include <stdlib.h>
  21429. #include <sys/types.h>
  21430. #include REGEX_HEADER
  21431. static regex_t re;
  21432. void comp_re(char const * pzPat) {
  21433. int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
  21434. if (res == 0) return;
  21435. exit( res ); }
  21436. int main() {
  21437. regmatch_t m[2];
  21438. comp_re( "^.*\$" );
  21439. comp_re( "()|no.*" );
  21440. comp_re( "." );
  21441. if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
  21442. if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
  21443. fputs( "error: regex -->.<-- did not match\n", stderr );
  21444. return 1;
  21445. }
  21446. return 0; }
  21447. _ACEOF
  21448. if ac_fn_c_try_run "$LINENO"; then :
  21449. libopts_cv_with_libregex=yes
  21450. else
  21451. libopts_cv_with_libregex=no
  21452. fi
  21453. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21454. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21455. fi
  21456. # end of AC_RUN_IFELSE
  21457. fi
  21458. # end of AC_CACHE_VAL for libopts_cv_with_libregex
  21459. fi ## disabled by request
  21460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
  21461. $as_echo "${libopts_cv_with_libregex}" >&6; }
  21462. if test "X${libopts_cv_with_libregex}" != Xno
  21463. then
  21464. $as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
  21465. else
  21466. CPPFLAGS="${libopts_save_CPPFLAGS}"
  21467. LIBS="${libopts_save_LIBS}"
  21468. libopts_cv_with_libregex_root=no
  21469. libopts_cv_with_libregex_cflags=no
  21470. libopts_cv_with_libregex_libs=no
  21471. libopts_cv_with_libregex=no
  21472. fi
  21473. # Check to see if pathfind(3) works.
  21474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
  21475. $as_echo_n "checking whether pathfind(3) works... " >&6; }
  21476. if ${libopts_cv_run_pathfind+:} false; then :
  21477. $as_echo_n "(cached) " >&6
  21478. else
  21479. if test "$cross_compiling" = yes; then :
  21480. libopts_cv_run_pathfind=no
  21481. else
  21482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21483. /* end confdefs.h. */
  21484. #include <string.h>
  21485. #include <stdlib.h>
  21486. int main (int argc, char ** argv) {
  21487. char * pz = pathfind( getenv( "PATH" ), "sh", "x" );
  21488. return (pz == 0) ? 1 : 0;
  21489. }
  21490. _ACEOF
  21491. if ac_fn_c_try_run "$LINENO"; then :
  21492. libopts_cv_run_pathfind=yes
  21493. else
  21494. libopts_cv_run_pathfind=no
  21495. fi
  21496. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21497. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21498. fi
  21499. # end of RUN_IFELSE
  21500. fi
  21501. # end of AC_CACHE_VAL for libopts_cv_run_pathfind
  21502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
  21503. $as_echo "${libopts_cv_run_pathfind}" >&6; }
  21504. if test "X${libopts_cv_run_pathfind}" != Xno
  21505. then
  21506. $as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
  21507. fi
  21508. # Check to see if /dev/zero is readable device.
  21509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
  21510. $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
  21511. if ${libopts_cv_test_dev_zero+:} false; then :
  21512. $as_echo_n "(cached) " >&6
  21513. else
  21514. libopts_cv_test_dev_zero=`exec 2> /dev/null
  21515. dzero=\`ls -lL /dev/zero | egrep ^c......r\`
  21516. test -z "${dzero}" && exit 1
  21517. echo ${dzero}`
  21518. if test $? -ne 0 || test -z "$libopts_cv_test_dev_zero"
  21519. then libopts_cv_test_dev_zero=no
  21520. fi
  21521. fi
  21522. # end of CACHE_VAL of libopts_cv_test_dev_zero
  21523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
  21524. $as_echo "${libopts_cv_test_dev_zero}" >&6; }
  21525. if test "X${libopts_cv_test_dev_zero}" != Xno
  21526. then
  21527. $as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
  21528. fi
  21529. # Check to see if we have a functional realpath(3C).
  21530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
  21531. $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
  21532. if ${libopts_cv_run_realpath+:} false; then :
  21533. $as_echo_n "(cached) " >&6
  21534. else
  21535. if test "$cross_compiling" = yes; then :
  21536. libopts_cv_run_realpath=no
  21537. else
  21538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21539. /* end confdefs.h. */
  21540. #include <limits.h>
  21541. #include <stdlib.h>
  21542. int main (int argc, char ** argv) {
  21543. #ifndef PATH_MAX
  21544. choke me!!
  21545. #else
  21546. char zPath[PATH_MAX+1];
  21547. #endif
  21548. char *pz = realpath(argv[0], zPath);
  21549. return (pz == zPath) ? 0 : 1;
  21550. }
  21551. _ACEOF
  21552. if ac_fn_c_try_run "$LINENO"; then :
  21553. libopts_cv_run_realpath=yes
  21554. else
  21555. libopts_cv_run_realpath=no
  21556. fi
  21557. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21558. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21559. fi
  21560. # end of RUN_IFELSE
  21561. fi
  21562. # end of AC_CACHE_VAL for libopts_cv_run_realpath
  21563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
  21564. $as_echo "${libopts_cv_run_realpath}" >&6; }
  21565. if test "X${libopts_cv_run_realpath}" != Xno
  21566. then
  21567. $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
  21568. fi
  21569. # Check to see if strftime() works.
  21570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
  21571. $as_echo_n "checking whether strftime() works... " >&6; }
  21572. if ${libopts_cv_run_strftime+:} false; then :
  21573. $as_echo_n "(cached) " >&6
  21574. else
  21575. if test "$cross_compiling" = yes; then :
  21576. libopts_cv_run_strftime=no
  21577. else
  21578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21579. /* end confdefs.h. */
  21580. #include <time.h>
  21581. #include <string.h>
  21582. char t_buf[ 64 ];
  21583. int main() {
  21584. static char const z[] = "Thursday Aug 28 240";
  21585. struct tm tm;
  21586. tm.tm_sec = 36; /* seconds after the minute [0, 61] */
  21587. tm.tm_min = 44; /* minutes after the hour [0, 59] */
  21588. tm.tm_hour = 12; /* hour since midnight [0, 23] */
  21589. tm.tm_mday = 28; /* day of the month [1, 31] */
  21590. tm.tm_mon = 7; /* months since January [0, 11] */
  21591. tm.tm_year = 86; /* years since 1900 */
  21592. tm.tm_wday = 4; /* days since Sunday [0, 6] */
  21593. tm.tm_yday = 239; /* days since January 1 [0, 365] */
  21594. tm.tm_isdst = 1; /* flag for daylight savings time */
  21595. strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
  21596. return (strcmp( t_buf, z ) != 0); }
  21597. _ACEOF
  21598. if ac_fn_c_try_run "$LINENO"; then :
  21599. libopts_cv_run_strftime=yes
  21600. else
  21601. libopts_cv_run_strftime=no
  21602. fi
  21603. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21604. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21605. fi
  21606. # end of RUN_IFELSE
  21607. fi
  21608. # end of AC_CACHE_VAL for libopts_cv_run_strftime
  21609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
  21610. $as_echo "${libopts_cv_run_strftime}" >&6; }
  21611. if test "X${libopts_cv_run_strftime}" != Xno
  21612. then
  21613. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  21614. fi
  21615. # Check to see if fopen accepts "b" mode.
  21616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
  21617. $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
  21618. if ${libopts_cv_run_fopen_binary+:} false; then :
  21619. $as_echo_n "(cached) " >&6
  21620. else
  21621. if test "$cross_compiling" = yes; then :
  21622. libopts_cv_run_fopen_binary=no
  21623. else
  21624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21625. /* end confdefs.h. */
  21626. #include <stdio.h>
  21627. int main (int argc, char ** argv) {
  21628. FILE * fp = fopen("conftest.$ac_ext", "rb");
  21629. return (fp == NULL) ? 1 : fclose(fp); }
  21630. _ACEOF
  21631. if ac_fn_c_try_run "$LINENO"; then :
  21632. libopts_cv_run_fopen_binary=yes
  21633. else
  21634. libopts_cv_run_fopen_binary=no
  21635. fi
  21636. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21637. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21638. fi
  21639. # end of RUN_IFELSE
  21640. fi
  21641. # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
  21642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
  21643. $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
  21644. if test "X${libopts_cv_run_fopen_binary}" != Xno
  21645. then
  21646. $as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
  21647. else
  21648. $as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
  21649. fi
  21650. # Check to see if fopen accepts "t" mode.
  21651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
  21652. $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
  21653. if ${libopts_cv_run_fopen_text+:} false; then :
  21654. $as_echo_n "(cached) " >&6
  21655. else
  21656. if test "$cross_compiling" = yes; then :
  21657. libopts_cv_run_fopen_text=no
  21658. else
  21659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21660. /* end confdefs.h. */
  21661. #include <stdio.h>
  21662. int main (int argc, char ** argv) {
  21663. FILE * fp = fopen("conftest.$ac_ext", "rt");
  21664. return (fp == NULL) ? 1 : fclose(fp); }
  21665. _ACEOF
  21666. if ac_fn_c_try_run "$LINENO"; then :
  21667. libopts_cv_run_fopen_text=yes
  21668. else
  21669. libopts_cv_run_fopen_text=no
  21670. fi
  21671. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21672. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21673. fi
  21674. # end of RUN_IFELSE
  21675. fi
  21676. # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
  21677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
  21678. $as_echo "${libopts_cv_run_fopen_text}" >&6; }
  21679. if test "X${libopts_cv_run_fopen_text}" != Xno
  21680. then
  21681. $as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
  21682. else
  21683. $as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
  21684. fi
  21685. # Check to see if not wanting optional option args.
  21686. # Check whether --enable-optional-args was given.
  21687. if test "${enable_optional_args+set}" = set; then :
  21688. enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
  21689. else
  21690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
  21691. $as_echo_n "checking whether not wanting optional option args... " >&6; }
  21692. if ${libopts_cv_enable_optional_args+:} false; then :
  21693. $as_echo_n "(cached) " >&6
  21694. else
  21695. libopts_cv_enable_optional_args=yes
  21696. fi
  21697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
  21698. $as_echo "$libopts_cv_enable_optional_args" >&6; }
  21699. fi
  21700. # end of AC_ARG_ENABLE
  21701. if test "X${libopts_cv_enable_optional_args}" = Xno
  21702. then
  21703. $as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
  21704. fi
  21705. fi
  21706. ac_config_files="$ac_config_files libopts/Makefile"
  21707. # end of AC_DEFUN of LIBOPTS_CHECK
  21708. 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"
  21709. cat >confcache <<\_ACEOF
  21710. # This file is a shell script that caches the results of configure
  21711. # tests run on this system so they can be shared between configure
  21712. # scripts and configure runs, see configure's option --config-cache.
  21713. # It is not useful on other systems. If it contains results you don't
  21714. # want to keep, you may remove or edit it.
  21715. #
  21716. # config.status only pays attention to the cache file if you give it
  21717. # the --recheck option to rerun configure.
  21718. #
  21719. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21720. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21721. # following values.
  21722. _ACEOF
  21723. # The following way of writing the cache mishandles newlines in values,
  21724. # but we know of no workaround that is simple, portable, and efficient.
  21725. # So, we kill variables containing newlines.
  21726. # Ultrix sh set writes to stderr and can't be redirected directly,
  21727. # and sets the high bit in the cache file unless we assign to the vars.
  21728. (
  21729. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21730. eval ac_val=\$$ac_var
  21731. case $ac_val in #(
  21732. *${as_nl}*)
  21733. case $ac_var in #(
  21734. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  21735. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21736. esac
  21737. case $ac_var in #(
  21738. _ | IFS | as_nl) ;; #(
  21739. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21740. *) { eval $ac_var=; unset $ac_var;} ;;
  21741. esac ;;
  21742. esac
  21743. done
  21744. (set) 2>&1 |
  21745. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21746. *${as_nl}ac_space=\ *)
  21747. # `set' does not quote correctly, so add quotes: double-quote
  21748. # substitution turns \\\\ into \\, and sed turns \\ into \.
  21749. sed -n \
  21750. "s/'/'\\\\''/g;
  21751. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21752. ;; #(
  21753. *)
  21754. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21755. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21756. ;;
  21757. esac |
  21758. sort
  21759. ) |
  21760. sed '
  21761. /^ac_cv_env_/b end
  21762. t clear
  21763. :clear
  21764. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21765. t end
  21766. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21767. :end' >>confcache
  21768. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21769. if test -w "$cache_file"; then
  21770. if test "x$cache_file" != "x/dev/null"; then
  21771. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  21772. $as_echo "$as_me: updating cache $cache_file" >&6;}
  21773. if test ! -f "$cache_file" || test -h "$cache_file"; then
  21774. cat confcache >"$cache_file"
  21775. else
  21776. case $cache_file in #(
  21777. */* | ?:*)
  21778. mv -f confcache "$cache_file"$$ &&
  21779. mv -f "$cache_file"$$ "$cache_file" ;; #(
  21780. *)
  21781. mv -f confcache "$cache_file" ;;
  21782. esac
  21783. fi
  21784. fi
  21785. else
  21786. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  21787. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21788. fi
  21789. fi
  21790. rm -f confcache
  21791. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21792. # Let make expand exec_prefix.
  21793. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21794. DEFS=-DHAVE_CONFIG_H
  21795. ac_libobjs=
  21796. ac_ltlibobjs=
  21797. U=
  21798. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21799. # 1. Remove the extension, and $U if already installed.
  21800. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21801. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  21802. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21803. # will be set to the directory where LIBOBJS objects are built.
  21804. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21805. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  21806. done
  21807. LIBOBJS=$ac_libobjs
  21808. LTLIBOBJS=$ac_ltlibobjs
  21809. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  21810. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  21811. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21812. fi
  21813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  21814. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  21815. if test -n "$am_sleep_pid"; then
  21816. # Hide warnings about reused PIDs.
  21817. wait $am_sleep_pid 2>/dev/null
  21818. fi
  21819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  21820. $as_echo "done" >&6; }
  21821. if test -n "$EXEEXT"; then
  21822. am__EXEEXT_TRUE=
  21823. am__EXEEXT_FALSE='#'
  21824. else
  21825. am__EXEEXT_TRUE='#'
  21826. am__EXEEXT_FALSE=
  21827. fi
  21828. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  21829. as_fn_error $? "conditional \"AMDEP\" was never defined.
  21830. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21831. fi
  21832. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  21833. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  21834. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21835. fi
  21836. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  21837. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  21838. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21839. fi
  21840. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  21841. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  21842. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21843. fi
  21844. if test -z "${SYSTEM_STRLCPY_TRUE}" && test -z "${SYSTEM_STRLCPY_FALSE}"; then
  21845. as_fn_error $? "conditional \"SYSTEM_STRLCPY\" was never defined.
  21846. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21847. fi
  21848. if test -z "${WORDS_BIGENDIAN_TRUE}" && test -z "${WORDS_BIGENDIAN_FALSE}"; then
  21849. as_fn_error $? "conditional \"WORDS_BIGENDIAN\" was never defined.
  21850. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21851. fi
  21852. if test -z "${COMPILE_TCPBRIDGE_TRUE}" && test -z "${COMPILE_TCPBRIDGE_FALSE}"; then
  21853. as_fn_error $? "conditional \"COMPILE_TCPBRIDGE\" was never defined.
  21854. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21855. fi
  21856. if test -z "${COMPILE_TCPLIVEPLAY_TRUE}" && test -z "${COMPILE_TCPLIVEPLAY_FALSE}"; then
  21857. as_fn_error $? "conditional \"COMPILE_TCPLIVEPLAY\" was never defined.
  21858. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21859. fi
  21860. if test -z "${COMPILE_NETMAP_TRUE}" && test -z "${COMPILE_NETMAP_FALSE}"; then
  21861. as_fn_error $? "conditional \"COMPILE_NETMAP\" was never defined.
  21862. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21863. fi
  21864. if test -z "${COMPILE_FRAGROUTE_TRUE}" && test -z "${COMPILE_FRAGROUTE_FALSE}"; then
  21865. as_fn_error $? "conditional \"COMPILE_FRAGROUTE\" was never defined.
  21866. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21867. fi
  21868. if test -z "${ENABLE_TCPDUMP_TRUE}" && test -z "${ENABLE_TCPDUMP_FALSE}"; then
  21869. as_fn_error $? "conditional \"ENABLE_TCPDUMP\" was never defined.
  21870. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21871. fi
  21872. if test -z "${ENABLE_OSX_FRAMEWORKS_TRUE}" && test -z "${ENABLE_OSX_FRAMEWORKS_FALSE}"; then
  21873. as_fn_error $? "conditional \"ENABLE_OSX_FRAMEWORKS\" was never defined.
  21874. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21875. fi
  21876. if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
  21877. as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
  21878. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21879. fi
  21880. if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
  21881. as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
  21882. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21883. fi
  21884. if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
  21885. as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
  21886. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21887. fi
  21888. : "${CONFIG_STATUS=./config.status}"
  21889. ac_write_fail=0
  21890. ac_clean_files_save=$ac_clean_files
  21891. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21892. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  21893. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21894. as_write_fail=0
  21895. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  21896. #! $SHELL
  21897. # Generated by $as_me.
  21898. # Run this file to recreate the current configuration.
  21899. # Compiler output produced by configure, useful for debugging
  21900. # configure, is in config.log if it exists.
  21901. debug=false
  21902. ac_cs_recheck=false
  21903. ac_cs_silent=false
  21904. SHELL=\${CONFIG_SHELL-$SHELL}
  21905. export SHELL
  21906. _ASEOF
  21907. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  21908. ## -------------------- ##
  21909. ## M4sh Initialization. ##
  21910. ## -------------------- ##
  21911. # Be more Bourne compatible
  21912. DUALCASE=1; export DUALCASE # for MKS sh
  21913. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21914. emulate sh
  21915. NULLCMD=:
  21916. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21917. # is contrary to our usage. Disable this feature.
  21918. alias -g '${1+"$@"}'='"$@"'
  21919. setopt NO_GLOB_SUBST
  21920. else
  21921. case `(set -o) 2>/dev/null` in #(
  21922. *posix*) :
  21923. set -o posix ;; #(
  21924. *) :
  21925. ;;
  21926. esac
  21927. fi
  21928. as_nl='
  21929. '
  21930. export as_nl
  21931. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  21932. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  21933. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  21934. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  21935. # Prefer a ksh shell builtin over an external printf program on Solaris,
  21936. # but without wasting forks for bash or zsh.
  21937. if test -z "$BASH_VERSION$ZSH_VERSION" \
  21938. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  21939. as_echo='print -r --'
  21940. as_echo_n='print -rn --'
  21941. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  21942. as_echo='printf %s\n'
  21943. as_echo_n='printf %s'
  21944. else
  21945. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  21946. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  21947. as_echo_n='/usr/ucb/echo -n'
  21948. else
  21949. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  21950. as_echo_n_body='eval
  21951. arg=$1;
  21952. case $arg in #(
  21953. *"$as_nl"*)
  21954. expr "X$arg" : "X\\(.*\\)$as_nl";
  21955. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  21956. esac;
  21957. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  21958. '
  21959. export as_echo_n_body
  21960. as_echo_n='sh -c $as_echo_n_body as_echo'
  21961. fi
  21962. export as_echo_body
  21963. as_echo='sh -c $as_echo_body as_echo'
  21964. fi
  21965. # The user is always right.
  21966. if test "${PATH_SEPARATOR+set}" != set; then
  21967. PATH_SEPARATOR=:
  21968. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  21969. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  21970. PATH_SEPARATOR=';'
  21971. }
  21972. fi
  21973. # IFS
  21974. # We need space, tab and new line, in precisely that order. Quoting is
  21975. # there to prevent editors from complaining about space-tab.
  21976. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  21977. # splitting by setting IFS to empty value.)
  21978. IFS=" "" $as_nl"
  21979. # Find who we are. Look in the path if we contain no directory separator.
  21980. as_myself=
  21981. case $0 in #((
  21982. *[\\/]* ) as_myself=$0 ;;
  21983. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21984. for as_dir in $PATH
  21985. do
  21986. IFS=$as_save_IFS
  21987. test -z "$as_dir" && as_dir=.
  21988. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  21989. done
  21990. IFS=$as_save_IFS
  21991. ;;
  21992. esac
  21993. # We did not find ourselves, most probably we were run as `sh COMMAND'
  21994. # in which case we are not to be found in the path.
  21995. if test "x$as_myself" = x; then
  21996. as_myself=$0
  21997. fi
  21998. if test ! -f "$as_myself"; then
  21999. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  22000. exit 1
  22001. fi
  22002. # Unset variables that we do not need and which cause bugs (e.g. in
  22003. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  22004. # suppresses any "Segmentation fault" message there. '((' could
  22005. # trigger a bug in pdksh 5.2.14.
  22006. for as_var in BASH_ENV ENV MAIL MAILPATH
  22007. do eval test x\${$as_var+set} = xset \
  22008. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  22009. done
  22010. PS1='$ '
  22011. PS2='> '
  22012. PS4='+ '
  22013. # NLS nuisances.
  22014. LC_ALL=C
  22015. export LC_ALL
  22016. LANGUAGE=C
  22017. export LANGUAGE
  22018. # CDPATH.
  22019. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22020. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  22021. # ----------------------------------------
  22022. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  22023. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  22024. # script with STATUS, using 1 if that was 0.
  22025. as_fn_error ()
  22026. {
  22027. as_status=$1; test $as_status -eq 0 && as_status=1
  22028. if test "$4"; then
  22029. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22030. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  22031. fi
  22032. $as_echo "$as_me: error: $2" >&2
  22033. as_fn_exit $as_status
  22034. } # as_fn_error
  22035. # as_fn_set_status STATUS
  22036. # -----------------------
  22037. # Set $? to STATUS, without forking.
  22038. as_fn_set_status ()
  22039. {
  22040. return $1
  22041. } # as_fn_set_status
  22042. # as_fn_exit STATUS
  22043. # -----------------
  22044. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  22045. as_fn_exit ()
  22046. {
  22047. set +e
  22048. as_fn_set_status $1
  22049. exit $1
  22050. } # as_fn_exit
  22051. # as_fn_unset VAR
  22052. # ---------------
  22053. # Portably unset VAR.
  22054. as_fn_unset ()
  22055. {
  22056. { eval $1=; unset $1;}
  22057. }
  22058. as_unset=as_fn_unset
  22059. # as_fn_append VAR VALUE
  22060. # ----------------------
  22061. # Append the text in VALUE to the end of the definition contained in VAR. Take
  22062. # advantage of any shell optimizations that allow amortized linear growth over
  22063. # repeated appends, instead of the typical quadratic growth present in naive
  22064. # implementations.
  22065. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  22066. eval 'as_fn_append ()
  22067. {
  22068. eval $1+=\$2
  22069. }'
  22070. else
  22071. as_fn_append ()
  22072. {
  22073. eval $1=\$$1\$2
  22074. }
  22075. fi # as_fn_append
  22076. # as_fn_arith ARG...
  22077. # ------------------
  22078. # Perform arithmetic evaluation on the ARGs, and store the result in the
  22079. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  22080. # must be portable across $(()) and expr.
  22081. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  22082. eval 'as_fn_arith ()
  22083. {
  22084. as_val=$(( $* ))
  22085. }'
  22086. else
  22087. as_fn_arith ()
  22088. {
  22089. as_val=`expr "$@" || test $? -eq 1`
  22090. }
  22091. fi # as_fn_arith
  22092. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22093. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22094. as_expr=expr
  22095. else
  22096. as_expr=false
  22097. fi
  22098. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22099. as_basename=basename
  22100. else
  22101. as_basename=false
  22102. fi
  22103. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22104. as_dirname=dirname
  22105. else
  22106. as_dirname=false
  22107. fi
  22108. as_me=`$as_basename -- "$0" ||
  22109. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22110. X"$0" : 'X\(//\)$' \| \
  22111. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22112. $as_echo X/"$0" |
  22113. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22114. s//\1/
  22115. q
  22116. }
  22117. /^X\/\(\/\/\)$/{
  22118. s//\1/
  22119. q
  22120. }
  22121. /^X\/\(\/\).*/{
  22122. s//\1/
  22123. q
  22124. }
  22125. s/.*/./; q'`
  22126. # Avoid depending upon Character Ranges.
  22127. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22128. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22129. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22130. as_cr_digits='0123456789'
  22131. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22132. ECHO_C= ECHO_N= ECHO_T=
  22133. case `echo -n x` in #(((((
  22134. -n*)
  22135. case `echo 'xy\c'` in
  22136. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22137. xy) ECHO_C='\c';;
  22138. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  22139. ECHO_T=' ';;
  22140. esac;;
  22141. *)
  22142. ECHO_N='-n';;
  22143. esac
  22144. rm -f conf$$ conf$$.exe conf$$.file
  22145. if test -d conf$$.dir; then
  22146. rm -f conf$$.dir/conf$$.file
  22147. else
  22148. rm -f conf$$.dir
  22149. mkdir conf$$.dir 2>/dev/null
  22150. fi
  22151. if (echo >conf$$.file) 2>/dev/null; then
  22152. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22153. as_ln_s='ln -s'
  22154. # ... but there are two gotchas:
  22155. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22156. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22157. # In both cases, we have to default to `cp -pR'.
  22158. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22159. as_ln_s='cp -pR'
  22160. elif ln conf$$.file conf$$ 2>/dev/null; then
  22161. as_ln_s=ln
  22162. else
  22163. as_ln_s='cp -pR'
  22164. fi
  22165. else
  22166. as_ln_s='cp -pR'
  22167. fi
  22168. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22169. rmdir conf$$.dir 2>/dev/null
  22170. # as_fn_mkdir_p
  22171. # -------------
  22172. # Create "$as_dir" as a directory, including parents if necessary.
  22173. as_fn_mkdir_p ()
  22174. {
  22175. case $as_dir in #(
  22176. -*) as_dir=./$as_dir;;
  22177. esac
  22178. test -d "$as_dir" || eval $as_mkdir_p || {
  22179. as_dirs=
  22180. while :; do
  22181. case $as_dir in #(
  22182. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22183. *) as_qdir=$as_dir;;
  22184. esac
  22185. as_dirs="'$as_qdir' $as_dirs"
  22186. as_dir=`$as_dirname -- "$as_dir" ||
  22187. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22188. X"$as_dir" : 'X\(//\)[^/]' \| \
  22189. X"$as_dir" : 'X\(//\)$' \| \
  22190. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22191. $as_echo X"$as_dir" |
  22192. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22193. s//\1/
  22194. q
  22195. }
  22196. /^X\(\/\/\)[^/].*/{
  22197. s//\1/
  22198. q
  22199. }
  22200. /^X\(\/\/\)$/{
  22201. s//\1/
  22202. q
  22203. }
  22204. /^X\(\/\).*/{
  22205. s//\1/
  22206. q
  22207. }
  22208. s/.*/./; q'`
  22209. test -d "$as_dir" && break
  22210. done
  22211. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22212. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  22213. } # as_fn_mkdir_p
  22214. if mkdir -p . 2>/dev/null; then
  22215. as_mkdir_p='mkdir -p "$as_dir"'
  22216. else
  22217. test -d ./-p && rmdir ./-p
  22218. as_mkdir_p=false
  22219. fi
  22220. # as_fn_executable_p FILE
  22221. # -----------------------
  22222. # Test if FILE is an executable regular file.
  22223. as_fn_executable_p ()
  22224. {
  22225. test -f "$1" && test -x "$1"
  22226. } # as_fn_executable_p
  22227. as_test_x='test -x'
  22228. as_executable_p=as_fn_executable_p
  22229. # Sed expression to map a string onto a valid CPP name.
  22230. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22231. # Sed expression to map a string onto a valid variable name.
  22232. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22233. exec 6>&1
  22234. ## ----------------------------------- ##
  22235. ## Main body of $CONFIG_STATUS script. ##
  22236. ## ----------------------------------- ##
  22237. _ASEOF
  22238. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22239. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22240. # Save the log message, to keep $0 and so on meaningful, and to
  22241. # report actual input values of CONFIG_FILES etc. instead of their
  22242. # values after options handling.
  22243. ac_log="
  22244. This file was extended by tcpreplay $as_me 4.4.2, which was
  22245. generated by GNU Autoconf 2.69. Invocation command line was
  22246. CONFIG_FILES = $CONFIG_FILES
  22247. CONFIG_HEADERS = $CONFIG_HEADERS
  22248. CONFIG_LINKS = $CONFIG_LINKS
  22249. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22250. $ $0 $@
  22251. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22252. "
  22253. _ACEOF
  22254. case $ac_config_files in *"
  22255. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22256. esac
  22257. case $ac_config_headers in *"
  22258. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22259. esac
  22260. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22261. # Files that config.status was made for.
  22262. config_files="$ac_config_files"
  22263. config_headers="$ac_config_headers"
  22264. config_commands="$ac_config_commands"
  22265. _ACEOF
  22266. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22267. ac_cs_usage="\
  22268. \`$as_me' instantiates files and other configuration actions
  22269. from templates according to the current configuration. Unless the files
  22270. and actions are specified as TAGs, all are instantiated by default.
  22271. Usage: $0 [OPTION]... [TAG]...
  22272. -h, --help print this help, then exit
  22273. -V, --version print version number and configuration settings, then exit
  22274. --config print configuration, then exit
  22275. -q, --quiet, --silent
  22276. do not print progress messages
  22277. -d, --debug don't remove temporary files
  22278. --recheck update $as_me by reconfiguring in the same conditions
  22279. --file=FILE[:TEMPLATE]
  22280. instantiate the configuration file FILE
  22281. --header=FILE[:TEMPLATE]
  22282. instantiate the configuration header FILE
  22283. Configuration files:
  22284. $config_files
  22285. Configuration headers:
  22286. $config_headers
  22287. Configuration commands:
  22288. $config_commands
  22289. Report bugs to <https://github.com/appneta/tcpreplay/issues>.
  22290. tcpreplay home page: <http://tcpreplay.sourceforge.net/>."
  22291. _ACEOF
  22292. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22293. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  22294. ac_cs_version="\\
  22295. tcpreplay config.status 4.4.2
  22296. configured by $0, generated by GNU Autoconf 2.69,
  22297. with options \\"\$ac_cs_config\\"
  22298. Copyright (C) 2012 Free Software Foundation, Inc.
  22299. This config.status script is free software; the Free Software Foundation
  22300. gives unlimited permission to copy, distribute and modify it."
  22301. ac_pwd='$ac_pwd'
  22302. srcdir='$srcdir'
  22303. INSTALL='$INSTALL'
  22304. MKDIR_P='$MKDIR_P'
  22305. AWK='$AWK'
  22306. test -n "\$AWK" || AWK=awk
  22307. _ACEOF
  22308. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22309. # The default lists apply if the user does not specify any file.
  22310. ac_need_defaults=:
  22311. while test $# != 0
  22312. do
  22313. case $1 in
  22314. --*=?*)
  22315. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22316. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22317. ac_shift=:
  22318. ;;
  22319. --*=)
  22320. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22321. ac_optarg=
  22322. ac_shift=:
  22323. ;;
  22324. *)
  22325. ac_option=$1
  22326. ac_optarg=$2
  22327. ac_shift=shift
  22328. ;;
  22329. esac
  22330. case $ac_option in
  22331. # Handling of the options.
  22332. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22333. ac_cs_recheck=: ;;
  22334. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22335. $as_echo "$ac_cs_version"; exit ;;
  22336. --config | --confi | --conf | --con | --co | --c )
  22337. $as_echo "$ac_cs_config"; exit ;;
  22338. --debug | --debu | --deb | --de | --d | -d )
  22339. debug=: ;;
  22340. --file | --fil | --fi | --f )
  22341. $ac_shift
  22342. case $ac_optarg in
  22343. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22344. '') as_fn_error $? "missing file argument" ;;
  22345. esac
  22346. as_fn_append CONFIG_FILES " '$ac_optarg'"
  22347. ac_need_defaults=false;;
  22348. --header | --heade | --head | --hea )
  22349. $ac_shift
  22350. case $ac_optarg in
  22351. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22352. esac
  22353. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  22354. ac_need_defaults=false;;
  22355. --he | --h)
  22356. # Conflict between --help and --header
  22357. as_fn_error $? "ambiguous option: \`$1'
  22358. Try \`$0 --help' for more information.";;
  22359. --help | --hel | -h )
  22360. $as_echo "$ac_cs_usage"; exit ;;
  22361. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22362. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22363. ac_cs_silent=: ;;
  22364. # This is an error.
  22365. -*) as_fn_error $? "unrecognized option: \`$1'
  22366. Try \`$0 --help' for more information." ;;
  22367. *) as_fn_append ac_config_targets " $1"
  22368. ac_need_defaults=false ;;
  22369. esac
  22370. shift
  22371. done
  22372. ac_configure_extra_args=
  22373. if $ac_cs_silent; then
  22374. exec 6>/dev/null
  22375. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22376. fi
  22377. _ACEOF
  22378. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22379. if \$ac_cs_recheck; then
  22380. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22381. shift
  22382. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22383. CONFIG_SHELL='$SHELL'
  22384. export CONFIG_SHELL
  22385. exec "\$@"
  22386. fi
  22387. _ACEOF
  22388. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22389. exec 5>>config.log
  22390. {
  22391. echo
  22392. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22393. ## Running $as_me. ##
  22394. _ASBOX
  22395. $as_echo "$ac_log"
  22396. } >&5
  22397. _ACEOF
  22398. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22399. #
  22400. # INIT-COMMANDS
  22401. #
  22402. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  22403. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22404. # if CDPATH is set.
  22405. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22406. sed_quote_subst='$sed_quote_subst'
  22407. double_quote_subst='$double_quote_subst'
  22408. delay_variable_subst='$delay_variable_subst'
  22409. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  22410. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  22411. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  22412. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  22413. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  22414. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  22415. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  22416. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  22417. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  22418. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  22419. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  22420. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  22421. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  22422. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  22423. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  22424. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  22425. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  22426. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  22427. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  22428. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  22429. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  22430. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  22431. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  22432. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  22433. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  22434. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  22435. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  22436. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  22437. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  22438. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  22439. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  22440. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  22441. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  22442. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  22443. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  22444. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  22445. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  22446. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  22447. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  22448. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  22449. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  22450. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  22451. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  22452. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  22453. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  22454. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  22455. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22456. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22457. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  22458. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  22459. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  22460. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  22461. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  22462. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  22463. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  22464. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  22465. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  22466. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  22467. 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"`'
  22468. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  22469. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  22470. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  22471. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  22472. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  22473. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  22474. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  22475. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  22476. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  22477. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  22478. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  22479. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  22480. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  22481. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  22482. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  22483. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  22484. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  22485. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  22486. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  22487. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  22488. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22489. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  22490. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  22491. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  22492. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  22493. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  22494. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  22495. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22496. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  22497. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22498. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  22499. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22500. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  22501. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22502. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22503. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  22504. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  22505. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  22506. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  22507. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  22508. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22509. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  22510. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  22511. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  22512. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  22513. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  22514. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  22515. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  22516. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  22517. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  22518. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  22519. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  22520. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  22521. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  22522. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  22523. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  22524. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22525. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  22526. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  22527. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  22528. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  22529. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  22530. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22531. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22532. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  22533. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  22534. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  22535. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  22536. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  22537. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  22538. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  22539. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  22540. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  22541. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  22542. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  22543. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  22544. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  22545. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  22546. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  22547. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  22548. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  22549. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  22550. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  22551. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22552. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22553. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22554. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  22555. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  22556. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22557. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  22558. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  22559. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  22560. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  22561. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  22562. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  22563. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22564. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22565. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  22566. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22567. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22568. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22569. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22570. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22571. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22572. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  22573. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22574. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22575. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22576. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  22577. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  22578. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  22579. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  22580. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  22581. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  22582. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  22583. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  22584. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  22585. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22586. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22587. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22588. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22589. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22590. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22591. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  22592. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  22593. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22594. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22595. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  22596. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  22597. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  22598. LTCC='$LTCC'
  22599. LTCFLAGS='$LTCFLAGS'
  22600. compiler='$compiler_DEFAULT'
  22601. # A function that is used when there is no print builtin or printf.
  22602. func_fallback_echo ()
  22603. {
  22604. eval 'cat <<_LTECHO_EOF
  22605. \$1
  22606. _LTECHO_EOF'
  22607. }
  22608. # Quote evaled strings.
  22609. for var in SHELL \
  22610. ECHO \
  22611. PATH_SEPARATOR \
  22612. SED \
  22613. GREP \
  22614. EGREP \
  22615. FGREP \
  22616. LD \
  22617. NM \
  22618. LN_S \
  22619. lt_SP2NL \
  22620. lt_NL2SP \
  22621. reload_flag \
  22622. OBJDUMP \
  22623. deplibs_check_method \
  22624. file_magic_cmd \
  22625. file_magic_glob \
  22626. want_nocaseglob \
  22627. DLLTOOL \
  22628. sharedlib_from_linklib_cmd \
  22629. AR \
  22630. AR_FLAGS \
  22631. archiver_list_spec \
  22632. STRIP \
  22633. RANLIB \
  22634. CC \
  22635. CFLAGS \
  22636. compiler \
  22637. lt_cv_sys_global_symbol_pipe \
  22638. lt_cv_sys_global_symbol_to_cdecl \
  22639. lt_cv_sys_global_symbol_to_import \
  22640. lt_cv_sys_global_symbol_to_c_name_address \
  22641. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  22642. lt_cv_nm_interface \
  22643. nm_file_list_spec \
  22644. lt_cv_truncate_bin \
  22645. lt_prog_compiler_no_builtin_flag \
  22646. lt_prog_compiler_pic \
  22647. lt_prog_compiler_wl \
  22648. lt_prog_compiler_static \
  22649. lt_cv_prog_compiler_c_o \
  22650. need_locks \
  22651. MANIFEST_TOOL \
  22652. DSYMUTIL \
  22653. NMEDIT \
  22654. LIPO \
  22655. OTOOL \
  22656. OTOOL64 \
  22657. shrext_cmds \
  22658. export_dynamic_flag_spec \
  22659. whole_archive_flag_spec \
  22660. compiler_needs_object \
  22661. with_gnu_ld \
  22662. allow_undefined_flag \
  22663. no_undefined_flag \
  22664. hardcode_libdir_flag_spec \
  22665. hardcode_libdir_separator \
  22666. exclude_expsyms \
  22667. include_expsyms \
  22668. file_list_spec \
  22669. variables_saved_for_relink \
  22670. libname_spec \
  22671. library_names_spec \
  22672. soname_spec \
  22673. install_override_mode \
  22674. finish_eval \
  22675. old_striplib \
  22676. striplib \
  22677. compiler_lib_search_dirs \
  22678. predep_objects \
  22679. postdep_objects \
  22680. predeps \
  22681. postdeps \
  22682. compiler_lib_search_path \
  22683. LD_CXX \
  22684. reload_flag_CXX \
  22685. compiler_CXX \
  22686. lt_prog_compiler_no_builtin_flag_CXX \
  22687. lt_prog_compiler_pic_CXX \
  22688. lt_prog_compiler_wl_CXX \
  22689. lt_prog_compiler_static_CXX \
  22690. lt_cv_prog_compiler_c_o_CXX \
  22691. export_dynamic_flag_spec_CXX \
  22692. whole_archive_flag_spec_CXX \
  22693. compiler_needs_object_CXX \
  22694. with_gnu_ld_CXX \
  22695. allow_undefined_flag_CXX \
  22696. no_undefined_flag_CXX \
  22697. hardcode_libdir_flag_spec_CXX \
  22698. hardcode_libdir_separator_CXX \
  22699. exclude_expsyms_CXX \
  22700. include_expsyms_CXX \
  22701. file_list_spec_CXX \
  22702. compiler_lib_search_dirs_CXX \
  22703. predep_objects_CXX \
  22704. postdep_objects_CXX \
  22705. predeps_CXX \
  22706. postdeps_CXX \
  22707. compiler_lib_search_path_CXX; do
  22708. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22709. *[\\\\\\\`\\"\\\$]*)
  22710. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  22711. ;;
  22712. *)
  22713. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22714. ;;
  22715. esac
  22716. done
  22717. # Double-quote double-evaled strings.
  22718. for var in reload_cmds \
  22719. old_postinstall_cmds \
  22720. old_postuninstall_cmds \
  22721. old_archive_cmds \
  22722. extract_expsyms_cmds \
  22723. old_archive_from_new_cmds \
  22724. old_archive_from_expsyms_cmds \
  22725. archive_cmds \
  22726. archive_expsym_cmds \
  22727. module_cmds \
  22728. module_expsym_cmds \
  22729. export_symbols_cmds \
  22730. prelink_cmds \
  22731. postlink_cmds \
  22732. postinstall_cmds \
  22733. postuninstall_cmds \
  22734. finish_cmds \
  22735. sys_lib_search_path_spec \
  22736. configure_time_dlsearch_path \
  22737. configure_time_lt_sys_library_path \
  22738. reload_cmds_CXX \
  22739. old_archive_cmds_CXX \
  22740. old_archive_from_new_cmds_CXX \
  22741. old_archive_from_expsyms_cmds_CXX \
  22742. archive_cmds_CXX \
  22743. archive_expsym_cmds_CXX \
  22744. module_cmds_CXX \
  22745. module_expsym_cmds_CXX \
  22746. export_symbols_cmds_CXX \
  22747. prelink_cmds_CXX \
  22748. postlink_cmds_CXX; do
  22749. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22750. *[\\\\\\\`\\"\\\$]*)
  22751. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  22752. ;;
  22753. *)
  22754. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22755. ;;
  22756. esac
  22757. done
  22758. ac_aux_dir='$ac_aux_dir'
  22759. # See if we are running on zsh, and set the options that allow our
  22760. # commands through without removal of \ escapes INIT.
  22761. if test -n "\${ZSH_VERSION+set}"; then
  22762. setopt NO_GLOB_SUBST
  22763. fi
  22764. PACKAGE='$PACKAGE'
  22765. VERSION='$VERSION'
  22766. RM='$RM'
  22767. ofile='$ofile'
  22768. _ACEOF
  22769. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22770. # Handling of arguments.
  22771. for ac_config_target in $ac_config_targets
  22772. do
  22773. case $ac_config_target in
  22774. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  22775. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  22776. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  22777. "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
  22778. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  22779. "doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doxygen.cfg" ;;
  22780. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  22781. "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  22782. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  22783. "src/tcpedit/Makefile") CONFIG_FILES="$CONFIG_FILES src/tcpedit/Makefile" ;;
  22784. "src/fragroute/Makefile") CONFIG_FILES="$CONFIG_FILES src/fragroute/Makefile" ;;
  22785. "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
  22786. "src/defines.h") CONFIG_FILES="$CONFIG_FILES src/defines.h" ;;
  22787. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  22788. "test/config") CONFIG_FILES="$CONFIG_FILES test/config" ;;
  22789. "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
  22790. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  22791. esac
  22792. done
  22793. # If the user did not use the arguments to specify the items to instantiate,
  22794. # then the envvar interface is used. Set only those that are not.
  22795. # We use the long form for the default assignment because of an extremely
  22796. # bizarre bug on SunOS 4.1.3.
  22797. if $ac_need_defaults; then
  22798. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  22799. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  22800. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  22801. fi
  22802. # Have a temporary directory for convenience. Make it in the build tree
  22803. # simply because there is no reason against having it here, and in addition,
  22804. # creating and moving files from /tmp can sometimes cause problems.
  22805. # Hook for its removal unless debugging.
  22806. # Note that there is a small window in which the directory will not be cleaned:
  22807. # after its creation but before its name has been assigned to `$tmp'.
  22808. $debug ||
  22809. {
  22810. tmp= ac_tmp=
  22811. trap 'exit_status=$?
  22812. : "${ac_tmp:=$tmp}"
  22813. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  22814. ' 0
  22815. trap 'as_fn_exit 1' 1 2 13 15
  22816. }
  22817. # Create a (secure) tmp directory for tmp files.
  22818. {
  22819. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  22820. test -d "$tmp"
  22821. } ||
  22822. {
  22823. tmp=./conf$$-$RANDOM
  22824. (umask 077 && mkdir "$tmp")
  22825. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  22826. ac_tmp=$tmp
  22827. # Set up the scripts for CONFIG_FILES section.
  22828. # No need to generate them if there are no CONFIG_FILES.
  22829. # This happens for instance with `./config.status config.h'.
  22830. if test -n "$CONFIG_FILES"; then
  22831. ac_cr=`echo X | tr X '\015'`
  22832. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  22833. # But we know of no other shell where ac_cr would be empty at this
  22834. # point, so we can use a bashism as a fallback.
  22835. if test "x$ac_cr" = x; then
  22836. eval ac_cr=\$\'\\r\'
  22837. fi
  22838. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  22839. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  22840. ac_cs_awk_cr='\\r'
  22841. else
  22842. ac_cs_awk_cr=$ac_cr
  22843. fi
  22844. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  22845. _ACEOF
  22846. {
  22847. echo "cat >conf$$subs.awk <<_ACEOF" &&
  22848. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  22849. echo "_ACEOF"
  22850. } >conf$$subs.sh ||
  22851. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22852. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  22853. ac_delim='%!_!# '
  22854. for ac_last_try in false false false false false :; do
  22855. . ./conf$$subs.sh ||
  22856. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22857. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  22858. if test $ac_delim_n = $ac_delim_num; then
  22859. break
  22860. elif $ac_last_try; then
  22861. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22862. else
  22863. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22864. fi
  22865. done
  22866. rm -f conf$$subs.sh
  22867. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22868. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  22869. _ACEOF
  22870. sed -n '
  22871. h
  22872. s/^/S["/; s/!.*/"]=/
  22873. p
  22874. g
  22875. s/^[^!]*!//
  22876. :repl
  22877. t repl
  22878. s/'"$ac_delim"'$//
  22879. t delim
  22880. :nl
  22881. h
  22882. s/\(.\{148\}\)..*/\1/
  22883. t more1
  22884. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  22885. p
  22886. n
  22887. b repl
  22888. :more1
  22889. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22890. p
  22891. g
  22892. s/.\{148\}//
  22893. t nl
  22894. :delim
  22895. h
  22896. s/\(.\{148\}\)..*/\1/
  22897. t more2
  22898. s/["\\]/\\&/g; s/^/"/; s/$/"/
  22899. p
  22900. b
  22901. :more2
  22902. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22903. p
  22904. g
  22905. s/.\{148\}//
  22906. t delim
  22907. ' <conf$$subs.awk | sed '
  22908. /^[^""]/{
  22909. N
  22910. s/\n//
  22911. }
  22912. ' >>$CONFIG_STATUS || ac_write_fail=1
  22913. rm -f conf$$subs.awk
  22914. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22915. _ACAWK
  22916. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  22917. for (key in S) S_is_set[key] = 1
  22918. FS = ""
  22919. }
  22920. {
  22921. line = $ 0
  22922. nfields = split(line, field, "@")
  22923. substed = 0
  22924. len = length(field[1])
  22925. for (i = 2; i < nfields; i++) {
  22926. key = field[i]
  22927. keylen = length(key)
  22928. if (S_is_set[key]) {
  22929. value = S[key]
  22930. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  22931. len += length(value) + length(field[++i])
  22932. substed = 1
  22933. } else
  22934. len += 1 + keylen
  22935. }
  22936. print line
  22937. }
  22938. _ACAWK
  22939. _ACEOF
  22940. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22941. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  22942. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  22943. else
  22944. cat
  22945. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  22946. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  22947. _ACEOF
  22948. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  22949. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  22950. # trailing colons and then remove the whole line if VPATH becomes empty
  22951. # (actually we leave an empty line to preserve line numbers).
  22952. if test "x$srcdir" = x.; then
  22953. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  22954. h
  22955. s///
  22956. s/^/:/
  22957. s/[ ]*$/:/
  22958. s/:\$(srcdir):/:/g
  22959. s/:\${srcdir}:/:/g
  22960. s/:@srcdir@:/:/g
  22961. s/^:*//
  22962. s/:*$//
  22963. x
  22964. s/\(=[ ]*\).*/\1/
  22965. G
  22966. s/\n//
  22967. s/^[^=]*=[ ]*$//
  22968. }'
  22969. fi
  22970. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22971. fi # test -n "$CONFIG_FILES"
  22972. # Set up the scripts for CONFIG_HEADERS section.
  22973. # No need to generate them if there are no CONFIG_HEADERS.
  22974. # This happens for instance with `./config.status Makefile'.
  22975. if test -n "$CONFIG_HEADERS"; then
  22976. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  22977. BEGIN {
  22978. _ACEOF
  22979. # Transform confdefs.h into an awk script `defines.awk', embedded as
  22980. # here-document in config.status, that substitutes the proper values into
  22981. # config.h.in to produce config.h.
  22982. # Create a delimiter string that does not exist in confdefs.h, to ease
  22983. # handling of long lines.
  22984. ac_delim='%!_!# '
  22985. for ac_last_try in false false :; do
  22986. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  22987. if test -z "$ac_tt"; then
  22988. break
  22989. elif $ac_last_try; then
  22990. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  22991. else
  22992. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22993. fi
  22994. done
  22995. # For the awk script, D is an array of macro values keyed by name,
  22996. # likewise P contains macro parameters if any. Preserve backslash
  22997. # newline sequences.
  22998. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  22999. sed -n '
  23000. s/.\{148\}/&'"$ac_delim"'/g
  23001. t rset
  23002. :rset
  23003. s/^[ ]*#[ ]*define[ ][ ]*/ /
  23004. t def
  23005. d
  23006. :def
  23007. s/\\$//
  23008. t bsnl
  23009. s/["\\]/\\&/g
  23010. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23011. D["\1"]=" \3"/p
  23012. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  23013. d
  23014. :bsnl
  23015. s/["\\]/\\&/g
  23016. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23017. D["\1"]=" \3\\\\\\n"\\/p
  23018. t cont
  23019. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  23020. t cont
  23021. d
  23022. :cont
  23023. n
  23024. s/.\{148\}/&'"$ac_delim"'/g
  23025. t clear
  23026. :clear
  23027. s/\\$//
  23028. t bsnlc
  23029. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  23030. d
  23031. :bsnlc
  23032. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  23033. b cont
  23034. ' <confdefs.h | sed '
  23035. s/'"$ac_delim"'/"\\\
  23036. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  23037. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23038. for (key in D) D_is_set[key] = 1
  23039. FS = ""
  23040. }
  23041. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  23042. line = \$ 0
  23043. split(line, arg, " ")
  23044. if (arg[1] == "#") {
  23045. defundef = arg[2]
  23046. mac1 = arg[3]
  23047. } else {
  23048. defundef = substr(arg[1], 2)
  23049. mac1 = arg[2]
  23050. }
  23051. split(mac1, mac2, "(") #)
  23052. macro = mac2[1]
  23053. prefix = substr(line, 1, index(line, defundef) - 1)
  23054. if (D_is_set[macro]) {
  23055. # Preserve the white space surrounding the "#".
  23056. print prefix "define", macro P[macro] D[macro]
  23057. next
  23058. } else {
  23059. # Replace #undef with comments. This is necessary, for example,
  23060. # in the case of _POSIX_SOURCE, which is predefined and required
  23061. # on some systems where configure will not decide to define it.
  23062. if (defundef == "undef") {
  23063. print "/*", prefix defundef, macro, "*/"
  23064. next
  23065. }
  23066. }
  23067. }
  23068. { print }
  23069. _ACAWK
  23070. _ACEOF
  23071. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23072. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  23073. fi # test -n "$CONFIG_HEADERS"
  23074. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  23075. shift
  23076. for ac_tag
  23077. do
  23078. case $ac_tag in
  23079. :[FHLC]) ac_mode=$ac_tag; continue;;
  23080. esac
  23081. case $ac_mode$ac_tag in
  23082. :[FHL]*:*);;
  23083. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  23084. :[FH]-) ac_tag=-:-;;
  23085. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23086. esac
  23087. ac_save_IFS=$IFS
  23088. IFS=:
  23089. set x $ac_tag
  23090. IFS=$ac_save_IFS
  23091. shift
  23092. ac_file=$1
  23093. shift
  23094. case $ac_mode in
  23095. :L) ac_source=$1;;
  23096. :[FH])
  23097. ac_file_inputs=
  23098. for ac_f
  23099. do
  23100. case $ac_f in
  23101. -) ac_f="$ac_tmp/stdin";;
  23102. *) # Look for the file first in the build tree, then in the source tree
  23103. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23104. # because $ac_f cannot contain `:'.
  23105. test -f "$ac_f" ||
  23106. case $ac_f in
  23107. [\\/$]*) false;;
  23108. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23109. esac ||
  23110. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  23111. esac
  23112. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23113. as_fn_append ac_file_inputs " '$ac_f'"
  23114. done
  23115. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23116. # use $as_me), people would be surprised to read:
  23117. # /* config.h. Generated by config.status. */
  23118. configure_input='Generated from '`
  23119. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23120. `' by configure.'
  23121. if test x"$ac_file" != x-; then
  23122. configure_input="$ac_file. $configure_input"
  23123. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  23124. $as_echo "$as_me: creating $ac_file" >&6;}
  23125. fi
  23126. # Neutralize special characters interpreted by sed in replacement strings.
  23127. case $configure_input in #(
  23128. *\&* | *\|* | *\\* )
  23129. ac_sed_conf_input=`$as_echo "$configure_input" |
  23130. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23131. *) ac_sed_conf_input=$configure_input;;
  23132. esac
  23133. case $ac_tag in
  23134. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  23135. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  23136. esac
  23137. ;;
  23138. esac
  23139. ac_dir=`$as_dirname -- "$ac_file" ||
  23140. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23141. X"$ac_file" : 'X\(//\)[^/]' \| \
  23142. X"$ac_file" : 'X\(//\)$' \| \
  23143. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23144. $as_echo X"$ac_file" |
  23145. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23146. s//\1/
  23147. q
  23148. }
  23149. /^X\(\/\/\)[^/].*/{
  23150. s//\1/
  23151. q
  23152. }
  23153. /^X\(\/\/\)$/{
  23154. s//\1/
  23155. q
  23156. }
  23157. /^X\(\/\).*/{
  23158. s//\1/
  23159. q
  23160. }
  23161. s/.*/./; q'`
  23162. as_dir="$ac_dir"; as_fn_mkdir_p
  23163. ac_builddir=.
  23164. case "$ac_dir" in
  23165. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23166. *)
  23167. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23168. # A ".." for each directory in $ac_dir_suffix.
  23169. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23170. case $ac_top_builddir_sub in
  23171. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23172. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23173. esac ;;
  23174. esac
  23175. ac_abs_top_builddir=$ac_pwd
  23176. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23177. # for backward compatibility:
  23178. ac_top_builddir=$ac_top_build_prefix
  23179. case $srcdir in
  23180. .) # We are building in place.
  23181. ac_srcdir=.
  23182. ac_top_srcdir=$ac_top_builddir_sub
  23183. ac_abs_top_srcdir=$ac_pwd ;;
  23184. [\\/]* | ?:[\\/]* ) # Absolute name.
  23185. ac_srcdir=$srcdir$ac_dir_suffix;
  23186. ac_top_srcdir=$srcdir
  23187. ac_abs_top_srcdir=$srcdir ;;
  23188. *) # Relative name.
  23189. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23190. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23191. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23192. esac
  23193. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23194. case $ac_mode in
  23195. :F)
  23196. #
  23197. # CONFIG_FILE
  23198. #
  23199. case $INSTALL in
  23200. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23201. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23202. esac
  23203. ac_MKDIR_P=$MKDIR_P
  23204. case $MKDIR_P in
  23205. [\\/$]* | ?:[\\/]* ) ;;
  23206. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  23207. esac
  23208. _ACEOF
  23209. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23210. # If the template does not know about datarootdir, expand it.
  23211. # FIXME: This hack should be removed a few years after 2.60.
  23212. ac_datarootdir_hack=; ac_datarootdir_seen=
  23213. ac_sed_dataroot='
  23214. /datarootdir/ {
  23215. p
  23216. q
  23217. }
  23218. /@datadir@/p
  23219. /@docdir@/p
  23220. /@infodir@/p
  23221. /@localedir@/p
  23222. /@mandir@/p'
  23223. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23224. *datarootdir*) ac_datarootdir_seen=yes;;
  23225. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23226. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23227. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23228. _ACEOF
  23229. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23230. ac_datarootdir_hack='
  23231. s&@datadir@&$datadir&g
  23232. s&@docdir@&$docdir&g
  23233. s&@infodir@&$infodir&g
  23234. s&@localedir@&$localedir&g
  23235. s&@mandir@&$mandir&g
  23236. s&\\\${datarootdir}&$datarootdir&g' ;;
  23237. esac
  23238. _ACEOF
  23239. # Neutralize VPATH when `$srcdir' = `.'.
  23240. # Shell code in configure.ac might set extrasub.
  23241. # FIXME: do we really want to maintain this feature?
  23242. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23243. ac_sed_extra="$ac_vpsub
  23244. $extrasub
  23245. _ACEOF
  23246. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23247. :t
  23248. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23249. s|@configure_input@|$ac_sed_conf_input|;t t
  23250. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23251. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23252. s&@srcdir@&$ac_srcdir&;t t
  23253. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23254. s&@top_srcdir@&$ac_top_srcdir&;t t
  23255. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23256. s&@builddir@&$ac_builddir&;t t
  23257. s&@abs_builddir@&$ac_abs_builddir&;t t
  23258. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23259. s&@INSTALL@&$ac_INSTALL&;t t
  23260. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  23261. $ac_datarootdir_hack
  23262. "
  23263. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  23264. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23265. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23266. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  23267. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  23268. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  23269. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23270. which seems to be undefined. Please make sure it is defined" >&5
  23271. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23272. which seems to be undefined. Please make sure it is defined" >&2;}
  23273. rm -f "$ac_tmp/stdin"
  23274. case $ac_file in
  23275. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  23276. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  23277. esac \
  23278. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23279. ;;
  23280. :H)
  23281. #
  23282. # CONFIG_HEADER
  23283. #
  23284. if test x"$ac_file" != x-; then
  23285. {
  23286. $as_echo "/* $configure_input */" \
  23287. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  23288. } >"$ac_tmp/config.h" \
  23289. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23290. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  23291. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  23292. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23293. else
  23294. rm -f "$ac_file"
  23295. mv "$ac_tmp/config.h" "$ac_file" \
  23296. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23297. fi
  23298. else
  23299. $as_echo "/* $configure_input */" \
  23300. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  23301. || as_fn_error $? "could not create -" "$LINENO" 5
  23302. fi
  23303. # Compute "$ac_file"'s index in $config_headers.
  23304. _am_arg="$ac_file"
  23305. _am_stamp_count=1
  23306. for _am_header in $config_headers :; do
  23307. case $_am_header in
  23308. $_am_arg | $_am_arg:* )
  23309. break ;;
  23310. * )
  23311. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  23312. esac
  23313. done
  23314. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  23315. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23316. X"$_am_arg" : 'X\(//\)[^/]' \| \
  23317. X"$_am_arg" : 'X\(//\)$' \| \
  23318. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  23319. $as_echo X"$_am_arg" |
  23320. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23321. s//\1/
  23322. q
  23323. }
  23324. /^X\(\/\/\)[^/].*/{
  23325. s//\1/
  23326. q
  23327. }
  23328. /^X\(\/\/\)$/{
  23329. s//\1/
  23330. q
  23331. }
  23332. /^X\(\/\).*/{
  23333. s//\1/
  23334. q
  23335. }
  23336. s/.*/./; q'`/stamp-h$_am_stamp_count
  23337. ;;
  23338. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  23339. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23340. ;;
  23341. esac
  23342. case $ac_file$ac_mode in
  23343. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  23344. # Older Autoconf quotes --file arguments for eval, but not when files
  23345. # are listed without --file. Let's play safe and only enable the eval
  23346. # if we detect the quoting.
  23347. # TODO: see whether this extra hack can be removed once we start
  23348. # requiring Autoconf 2.70 or later.
  23349. case $CONFIG_FILES in #(
  23350. *\'*) :
  23351. eval set x "$CONFIG_FILES" ;; #(
  23352. *) :
  23353. set x $CONFIG_FILES ;; #(
  23354. *) :
  23355. ;;
  23356. esac
  23357. shift
  23358. # Used to flag and report bootstrapping failures.
  23359. am_rc=0
  23360. for am_mf
  23361. do
  23362. # Strip MF so we end up with the name of the file.
  23363. am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
  23364. # Check whether this is an Automake generated Makefile which includes
  23365. # dependency-tracking related rules and includes.
  23366. # Grep'ing the whole file directly is not great: AIX grep has a line
  23367. # limit of 2048, but all sed's we know have understand at least 4000.
  23368. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  23369. || continue
  23370. am_dirpart=`$as_dirname -- "$am_mf" ||
  23371. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23372. X"$am_mf" : 'X\(//\)[^/]' \| \
  23373. X"$am_mf" : 'X\(//\)$' \| \
  23374. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  23375. $as_echo X"$am_mf" |
  23376. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23377. s//\1/
  23378. q
  23379. }
  23380. /^X\(\/\/\)[^/].*/{
  23381. s//\1/
  23382. q
  23383. }
  23384. /^X\(\/\/\)$/{
  23385. s//\1/
  23386. q
  23387. }
  23388. /^X\(\/\).*/{
  23389. s//\1/
  23390. q
  23391. }
  23392. s/.*/./; q'`
  23393. am_filepart=`$as_basename -- "$am_mf" ||
  23394. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  23395. X"$am_mf" : 'X\(//\)$' \| \
  23396. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  23397. $as_echo X/"$am_mf" |
  23398. sed '/^.*\/\([^/][^/]*\)\/*$/{
  23399. s//\1/
  23400. q
  23401. }
  23402. /^X\/\(\/\/\)$/{
  23403. s//\1/
  23404. q
  23405. }
  23406. /^X\/\(\/\).*/{
  23407. s//\1/
  23408. q
  23409. }
  23410. s/.*/./; q'`
  23411. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  23412. && sed -e '/# am--include-marker/d' "$am_filepart" \
  23413. | $MAKE -f - am--depfiles" >&5
  23414. (cd "$am_dirpart" \
  23415. && sed -e '/# am--include-marker/d' "$am_filepart" \
  23416. | $MAKE -f - am--depfiles) >&5 2>&5
  23417. ac_status=$?
  23418. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23419. (exit $ac_status); } || am_rc=$?
  23420. done
  23421. if test $am_rc -ne 0; then
  23422. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  23423. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23424. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  23425. for automatic dependency tracking. Try re-running configure with the
  23426. '--disable-dependency-tracking' option to at least be able to build
  23427. the package (albeit without support for automatic dependency tracking).
  23428. See \`config.log' for more details" "$LINENO" 5; }
  23429. fi
  23430. { am_dirpart=; unset am_dirpart;}
  23431. { am_filepart=; unset am_filepart;}
  23432. { am_mf=; unset am_mf;}
  23433. { am_rc=; unset am_rc;}
  23434. rm -f conftest-deps.mk
  23435. }
  23436. ;;
  23437. "libtool":C)
  23438. # See if we are running on zsh, and set the options that allow our
  23439. # commands through without removal of \ escapes.
  23440. if test -n "${ZSH_VERSION+set}"; then
  23441. setopt NO_GLOB_SUBST
  23442. fi
  23443. cfgfile=${ofile}T
  23444. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23445. $RM "$cfgfile"
  23446. cat <<_LT_EOF >> "$cfgfile"
  23447. #! $SHELL
  23448. # Generated automatically by $as_me ($PACKAGE) $VERSION
  23449. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23450. # Provide generalized library-building support services.
  23451. # Written by Gordon Matzigkeit, 1996
  23452. # Copyright (C) 2014 Free Software Foundation, Inc.
  23453. # This is free software; see the source for copying conditions. There is NO
  23454. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  23455. # GNU Libtool is free software; you can redistribute it and/or modify
  23456. # it under the terms of the GNU General Public License as published by
  23457. # the Free Software Foundation; either version 2 of of the License, or
  23458. # (at your option) any later version.
  23459. #
  23460. # As a special exception to the GNU General Public License, if you
  23461. # distribute this file as part of a program or library that is built
  23462. # using GNU Libtool, you may include this file under the same
  23463. # distribution terms that you use for the rest of that program.
  23464. #
  23465. # GNU Libtool is distributed in the hope that it will be useful, but
  23466. # WITHOUT ANY WARRANTY; without even the implied warranty of
  23467. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23468. # GNU General Public License for more details.
  23469. #
  23470. # You should have received a copy of the GNU General Public License
  23471. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  23472. # The names of the tagged configurations supported by this script.
  23473. available_tags='CXX '
  23474. # Configured defaults for sys_lib_dlsearch_path munging.
  23475. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  23476. # ### BEGIN LIBTOOL CONFIG
  23477. # Which release of libtool.m4 was used?
  23478. macro_version=$macro_version
  23479. macro_revision=$macro_revision
  23480. # Whether or not to build shared libraries.
  23481. build_libtool_libs=$enable_shared
  23482. # Whether or not to build static libraries.
  23483. build_old_libs=$enable_static
  23484. # What type of objects to build.
  23485. pic_mode=$pic_mode
  23486. # Whether or not to optimize for fast installation.
  23487. fast_install=$enable_fast_install
  23488. # Shared archive member basename,for filename based shared library versioning on AIX.
  23489. shared_archive_member_spec=$shared_archive_member_spec
  23490. # Shell to use when invoking shell scripts.
  23491. SHELL=$lt_SHELL
  23492. # An echo program that protects backslashes.
  23493. ECHO=$lt_ECHO
  23494. # The PATH separator for the build system.
  23495. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  23496. # The host system.
  23497. host_alias=$host_alias
  23498. host=$host
  23499. host_os=$host_os
  23500. # The build system.
  23501. build_alias=$build_alias
  23502. build=$build
  23503. build_os=$build_os
  23504. # A sed program that does not truncate output.
  23505. SED=$lt_SED
  23506. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23507. Xsed="\$SED -e 1s/^X//"
  23508. # A grep program that handles long lines.
  23509. GREP=$lt_GREP
  23510. # An ERE matcher.
  23511. EGREP=$lt_EGREP
  23512. # A literal string matcher.
  23513. FGREP=$lt_FGREP
  23514. # A BSD- or MS-compatible name lister.
  23515. NM=$lt_NM
  23516. # Whether we need soft or hard links.
  23517. LN_S=$lt_LN_S
  23518. # What is the maximum length of a command?
  23519. max_cmd_len=$max_cmd_len
  23520. # Object file suffix (normally "o").
  23521. objext=$ac_objext
  23522. # Executable file suffix (normally "").
  23523. exeext=$exeext
  23524. # whether the shell understands "unset".
  23525. lt_unset=$lt_unset
  23526. # turn spaces into newlines.
  23527. SP2NL=$lt_lt_SP2NL
  23528. # turn newlines into spaces.
  23529. NL2SP=$lt_lt_NL2SP
  23530. # convert \$build file names to \$host format.
  23531. to_host_file_cmd=$lt_cv_to_host_file_cmd
  23532. # convert \$build files to toolchain format.
  23533. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  23534. # An object symbol dumper.
  23535. OBJDUMP=$lt_OBJDUMP
  23536. # Method to check whether dependent libraries are shared objects.
  23537. deplibs_check_method=$lt_deplibs_check_method
  23538. # Command to use when deplibs_check_method = "file_magic".
  23539. file_magic_cmd=$lt_file_magic_cmd
  23540. # How to find potential files when deplibs_check_method = "file_magic".
  23541. file_magic_glob=$lt_file_magic_glob
  23542. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  23543. want_nocaseglob=$lt_want_nocaseglob
  23544. # DLL creation program.
  23545. DLLTOOL=$lt_DLLTOOL
  23546. # Command to associate shared and link libraries.
  23547. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  23548. # The archiver.
  23549. AR=$lt_AR
  23550. # Flags to create an archive.
  23551. AR_FLAGS=$lt_AR_FLAGS
  23552. # How to feed a file listing to the archiver.
  23553. archiver_list_spec=$lt_archiver_list_spec
  23554. # A symbol stripping program.
  23555. STRIP=$lt_STRIP
  23556. # Commands used to install an old-style archive.
  23557. RANLIB=$lt_RANLIB
  23558. old_postinstall_cmds=$lt_old_postinstall_cmds
  23559. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  23560. # Whether to use a lock for old archive extraction.
  23561. lock_old_archive_extraction=$lock_old_archive_extraction
  23562. # A C compiler.
  23563. LTCC=$lt_CC
  23564. # LTCC compiler flags.
  23565. LTCFLAGS=$lt_CFLAGS
  23566. # Take the output of nm and produce a listing of raw symbols and C names.
  23567. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  23568. # Transform the output of nm in a proper C declaration.
  23569. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  23570. # Transform the output of nm into a list of symbols to manually relocate.
  23571. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  23572. # Transform the output of nm in a C name address pair.
  23573. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  23574. # Transform the output of nm in a C name address pair when lib prefix is needed.
  23575. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  23576. # The name lister interface.
  23577. nm_interface=$lt_lt_cv_nm_interface
  23578. # Specify filename containing input files for \$NM.
  23579. nm_file_list_spec=$lt_nm_file_list_spec
  23580. # The root where to search for dependent libraries,and where our libraries should be installed.
  23581. lt_sysroot=$lt_sysroot
  23582. # Command to truncate a binary pipe.
  23583. lt_truncate_bin=$lt_lt_cv_truncate_bin
  23584. # The name of the directory that contains temporary libtool files.
  23585. objdir=$objdir
  23586. # Used to examine libraries when file_magic_cmd begins with "file".
  23587. MAGIC_CMD=$MAGIC_CMD
  23588. # Must we lock files when doing compilation?
  23589. need_locks=$lt_need_locks
  23590. # Manifest tool.
  23591. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  23592. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  23593. DSYMUTIL=$lt_DSYMUTIL
  23594. # Tool to change global to local symbols on Mac OS X.
  23595. NMEDIT=$lt_NMEDIT
  23596. # Tool to manipulate fat objects and archives on Mac OS X.
  23597. LIPO=$lt_LIPO
  23598. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  23599. OTOOL=$lt_OTOOL
  23600. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  23601. OTOOL64=$lt_OTOOL64
  23602. # Old archive suffix (normally "a").
  23603. libext=$libext
  23604. # Shared library suffix (normally ".so").
  23605. shrext_cmds=$lt_shrext_cmds
  23606. # The commands to extract the exported symbol list from a shared archive.
  23607. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23608. # Variables whose values should be saved in libtool wrapper scripts and
  23609. # restored at link time.
  23610. variables_saved_for_relink=$lt_variables_saved_for_relink
  23611. # Do we need the "lib" prefix for modules?
  23612. need_lib_prefix=$need_lib_prefix
  23613. # Do we need a version for libraries?
  23614. need_version=$need_version
  23615. # Library versioning type.
  23616. version_type=$version_type
  23617. # Shared library runtime path variable.
  23618. runpath_var=$runpath_var
  23619. # Shared library path variable.
  23620. shlibpath_var=$shlibpath_var
  23621. # Is shlibpath searched before the hard-coded library search path?
  23622. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23623. # Format of library name prefix.
  23624. libname_spec=$lt_libname_spec
  23625. # List of archive names. First name is the real one, the rest are links.
  23626. # The last name is the one that the linker finds with -lNAME
  23627. library_names_spec=$lt_library_names_spec
  23628. # The coded name of the library, if different from the real name.
  23629. soname_spec=$lt_soname_spec
  23630. # Permission mode override for installation of shared libraries.
  23631. install_override_mode=$lt_install_override_mode
  23632. # Command to use after installation of a shared archive.
  23633. postinstall_cmds=$lt_postinstall_cmds
  23634. # Command to use after uninstallation of a shared archive.
  23635. postuninstall_cmds=$lt_postuninstall_cmds
  23636. # Commands used to finish a libtool library installation in a directory.
  23637. finish_cmds=$lt_finish_cmds
  23638. # As "finish_cmds", except a single script fragment to be evaled but
  23639. # not shown.
  23640. finish_eval=$lt_finish_eval
  23641. # Whether we should hardcode library paths into libraries.
  23642. hardcode_into_libs=$hardcode_into_libs
  23643. # Compile-time system search path for libraries.
  23644. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23645. # Detected run-time system search path for libraries.
  23646. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  23647. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  23648. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  23649. # Whether dlopen is supported.
  23650. dlopen_support=$enable_dlopen
  23651. # Whether dlopen of programs is supported.
  23652. dlopen_self=$enable_dlopen_self
  23653. # Whether dlopen of statically linked programs is supported.
  23654. dlopen_self_static=$enable_dlopen_self_static
  23655. # Commands to strip libraries.
  23656. old_striplib=$lt_old_striplib
  23657. striplib=$lt_striplib
  23658. # The linker used to build libraries.
  23659. LD=$lt_LD
  23660. # How to create reloadable object files.
  23661. reload_flag=$lt_reload_flag
  23662. reload_cmds=$lt_reload_cmds
  23663. # Commands used to build an old-style archive.
  23664. old_archive_cmds=$lt_old_archive_cmds
  23665. # A language specific compiler.
  23666. CC=$lt_compiler
  23667. # Is the compiler the GNU compiler?
  23668. with_gcc=$GCC
  23669. # Compiler flag to turn off builtin functions.
  23670. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  23671. # Additional compiler flags for building library objects.
  23672. pic_flag=$lt_lt_prog_compiler_pic
  23673. # How to pass a linker flag through the compiler.
  23674. wl=$lt_lt_prog_compiler_wl
  23675. # Compiler flag to prevent dynamic linking.
  23676. link_static_flag=$lt_lt_prog_compiler_static
  23677. # Does compiler simultaneously support -c and -o options?
  23678. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  23679. # Whether or not to add -lc for building shared libraries.
  23680. build_libtool_need_lc=$archive_cmds_need_lc
  23681. # Whether or not to disallow shared libs when runtime libs are static.
  23682. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  23683. # Compiler flag to allow reflexive dlopens.
  23684. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  23685. # Compiler flag to generate shared objects directly from archives.
  23686. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  23687. # Whether the compiler copes with passing no objects directly.
  23688. compiler_needs_object=$lt_compiler_needs_object
  23689. # Create an old-style archive from a shared archive.
  23690. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  23691. # Create a temporary old-style archive to link instead of a shared archive.
  23692. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  23693. # Commands used to build a shared archive.
  23694. archive_cmds=$lt_archive_cmds
  23695. archive_expsym_cmds=$lt_archive_expsym_cmds
  23696. # Commands used to build a loadable module if different from building
  23697. # a shared archive.
  23698. module_cmds=$lt_module_cmds
  23699. module_expsym_cmds=$lt_module_expsym_cmds
  23700. # Whether we are building with GNU ld or not.
  23701. with_gnu_ld=$lt_with_gnu_ld
  23702. # Flag that allows shared libraries with undefined symbols to be built.
  23703. allow_undefined_flag=$lt_allow_undefined_flag
  23704. # Flag that enforces no undefined symbols.
  23705. no_undefined_flag=$lt_no_undefined_flag
  23706. # Flag to hardcode \$libdir into a binary during linking.
  23707. # This must work even if \$libdir does not exist
  23708. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  23709. # Whether we need a single "-rpath" flag with a separated argument.
  23710. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  23711. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  23712. # DIR into the resulting binary.
  23713. hardcode_direct=$hardcode_direct
  23714. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  23715. # DIR into the resulting binary and the resulting library dependency is
  23716. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  23717. # library is relocated.
  23718. hardcode_direct_absolute=$hardcode_direct_absolute
  23719. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23720. # into the resulting binary.
  23721. hardcode_minus_L=$hardcode_minus_L
  23722. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23723. # into the resulting binary.
  23724. hardcode_shlibpath_var=$hardcode_shlibpath_var
  23725. # Set to "yes" if building a shared library automatically hardcodes DIR
  23726. # into the library and all subsequent libraries and executables linked
  23727. # against it.
  23728. hardcode_automatic=$hardcode_automatic
  23729. # Set to yes if linker adds runtime paths of dependent libraries
  23730. # to runtime path list.
  23731. inherit_rpath=$inherit_rpath
  23732. # Whether libtool must link a program against all its dependency libraries.
  23733. link_all_deplibs=$link_all_deplibs
  23734. # Set to "yes" if exported symbols are required.
  23735. always_export_symbols=$always_export_symbols
  23736. # The commands to list exported symbols.
  23737. export_symbols_cmds=$lt_export_symbols_cmds
  23738. # Symbols that should not be listed in the preloaded symbols.
  23739. exclude_expsyms=$lt_exclude_expsyms
  23740. # Symbols that must always be exported.
  23741. include_expsyms=$lt_include_expsyms
  23742. # Commands necessary for linking programs (against libraries) with templates.
  23743. prelink_cmds=$lt_prelink_cmds
  23744. # Commands necessary for finishing linking programs.
  23745. postlink_cmds=$lt_postlink_cmds
  23746. # Specify filename containing input files.
  23747. file_list_spec=$lt_file_list_spec
  23748. # How to hardcode a shared library path into an executable.
  23749. hardcode_action=$hardcode_action
  23750. # The directories searched by this compiler when creating a shared library.
  23751. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  23752. # Dependencies to place before and after the objects being linked to
  23753. # create a shared library.
  23754. predep_objects=$lt_predep_objects
  23755. postdep_objects=$lt_postdep_objects
  23756. predeps=$lt_predeps
  23757. postdeps=$lt_postdeps
  23758. # The library search path used internally by the compiler when linking
  23759. # a shared library.
  23760. compiler_lib_search_path=$lt_compiler_lib_search_path
  23761. # ### END LIBTOOL CONFIG
  23762. _LT_EOF
  23763. cat <<'_LT_EOF' >> "$cfgfile"
  23764. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  23765. # func_munge_path_list VARIABLE PATH
  23766. # -----------------------------------
  23767. # VARIABLE is name of variable containing _space_ separated list of
  23768. # directories to be munged by the contents of PATH, which is string
  23769. # having a format:
  23770. # "DIR[:DIR]:"
  23771. # string "DIR[ DIR]" will be prepended to VARIABLE
  23772. # ":DIR[:DIR]"
  23773. # string "DIR[ DIR]" will be appended to VARIABLE
  23774. # "DIRP[:DIRP]::[DIRA:]DIRA"
  23775. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  23776. # "DIRA[ DIRA]" will be appended to VARIABLE
  23777. # "DIR[:DIR]"
  23778. # VARIABLE will be replaced by "DIR[ DIR]"
  23779. func_munge_path_list ()
  23780. {
  23781. case x$2 in
  23782. x)
  23783. ;;
  23784. *:)
  23785. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  23786. ;;
  23787. x:*)
  23788. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  23789. ;;
  23790. *::*)
  23791. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  23792. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  23793. ;;
  23794. *)
  23795. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  23796. ;;
  23797. esac
  23798. }
  23799. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  23800. func_cc_basename ()
  23801. {
  23802. for cc_temp in $*""; do
  23803. case $cc_temp in
  23804. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  23805. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  23806. \-*) ;;
  23807. *) break;;
  23808. esac
  23809. done
  23810. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  23811. }
  23812. # ### END FUNCTIONS SHARED WITH CONFIGURE
  23813. _LT_EOF
  23814. case $host_os in
  23815. aix3*)
  23816. cat <<\_LT_EOF >> "$cfgfile"
  23817. # AIX sometimes has problems with the GCC collect2 program. For some
  23818. # reason, if we set the COLLECT_NAMES environment variable, the problems
  23819. # vanish in a puff of smoke.
  23820. if test set != "${COLLECT_NAMES+set}"; then
  23821. COLLECT_NAMES=
  23822. export COLLECT_NAMES
  23823. fi
  23824. _LT_EOF
  23825. ;;
  23826. esac
  23827. ltmain=$ac_aux_dir/ltmain.sh
  23828. # We use sed instead of cat because bash on DJGPP gets confused if
  23829. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  23830. # text mode, it properly converts lines to CR/LF. This bash problem
  23831. # is reportedly fixed, but why not run on old versions too?
  23832. sed '$q' "$ltmain" >> "$cfgfile" \
  23833. || (rm -f "$cfgfile"; exit 1)
  23834. mv -f "$cfgfile" "$ofile" ||
  23835. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  23836. chmod +x "$ofile"
  23837. cat <<_LT_EOF >> "$ofile"
  23838. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  23839. # The linker used to build libraries.
  23840. LD=$lt_LD_CXX
  23841. # How to create reloadable object files.
  23842. reload_flag=$lt_reload_flag_CXX
  23843. reload_cmds=$lt_reload_cmds_CXX
  23844. # Commands used to build an old-style archive.
  23845. old_archive_cmds=$lt_old_archive_cmds_CXX
  23846. # A language specific compiler.
  23847. CC=$lt_compiler_CXX
  23848. # Is the compiler the GNU compiler?
  23849. with_gcc=$GCC_CXX
  23850. # Compiler flag to turn off builtin functions.
  23851. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  23852. # Additional compiler flags for building library objects.
  23853. pic_flag=$lt_lt_prog_compiler_pic_CXX
  23854. # How to pass a linker flag through the compiler.
  23855. wl=$lt_lt_prog_compiler_wl_CXX
  23856. # Compiler flag to prevent dynamic linking.
  23857. link_static_flag=$lt_lt_prog_compiler_static_CXX
  23858. # Does compiler simultaneously support -c and -o options?
  23859. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  23860. # Whether or not to add -lc for building shared libraries.
  23861. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  23862. # Whether or not to disallow shared libs when runtime libs are static.
  23863. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  23864. # Compiler flag to allow reflexive dlopens.
  23865. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  23866. # Compiler flag to generate shared objects directly from archives.
  23867. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  23868. # Whether the compiler copes with passing no objects directly.
  23869. compiler_needs_object=$lt_compiler_needs_object_CXX
  23870. # Create an old-style archive from a shared archive.
  23871. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  23872. # Create a temporary old-style archive to link instead of a shared archive.
  23873. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  23874. # Commands used to build a shared archive.
  23875. archive_cmds=$lt_archive_cmds_CXX
  23876. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  23877. # Commands used to build a loadable module if different from building
  23878. # a shared archive.
  23879. module_cmds=$lt_module_cmds_CXX
  23880. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  23881. # Whether we are building with GNU ld or not.
  23882. with_gnu_ld=$lt_with_gnu_ld_CXX
  23883. # Flag that allows shared libraries with undefined symbols to be built.
  23884. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  23885. # Flag that enforces no undefined symbols.
  23886. no_undefined_flag=$lt_no_undefined_flag_CXX
  23887. # Flag to hardcode \$libdir into a binary during linking.
  23888. # This must work even if \$libdir does not exist
  23889. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  23890. # Whether we need a single "-rpath" flag with a separated argument.
  23891. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  23892. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  23893. # DIR into the resulting binary.
  23894. hardcode_direct=$hardcode_direct_CXX
  23895. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  23896. # DIR into the resulting binary and the resulting library dependency is
  23897. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  23898. # library is relocated.
  23899. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  23900. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23901. # into the resulting binary.
  23902. hardcode_minus_L=$hardcode_minus_L_CXX
  23903. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23904. # into the resulting binary.
  23905. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  23906. # Set to "yes" if building a shared library automatically hardcodes DIR
  23907. # into the library and all subsequent libraries and executables linked
  23908. # against it.
  23909. hardcode_automatic=$hardcode_automatic_CXX
  23910. # Set to yes if linker adds runtime paths of dependent libraries
  23911. # to runtime path list.
  23912. inherit_rpath=$inherit_rpath_CXX
  23913. # Whether libtool must link a program against all its dependency libraries.
  23914. link_all_deplibs=$link_all_deplibs_CXX
  23915. # Set to "yes" if exported symbols are required.
  23916. always_export_symbols=$always_export_symbols_CXX
  23917. # The commands to list exported symbols.
  23918. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  23919. # Symbols that should not be listed in the preloaded symbols.
  23920. exclude_expsyms=$lt_exclude_expsyms_CXX
  23921. # Symbols that must always be exported.
  23922. include_expsyms=$lt_include_expsyms_CXX
  23923. # Commands necessary for linking programs (against libraries) with templates.
  23924. prelink_cmds=$lt_prelink_cmds_CXX
  23925. # Commands necessary for finishing linking programs.
  23926. postlink_cmds=$lt_postlink_cmds_CXX
  23927. # Specify filename containing input files.
  23928. file_list_spec=$lt_file_list_spec_CXX
  23929. # How to hardcode a shared library path into an executable.
  23930. hardcode_action=$hardcode_action_CXX
  23931. # The directories searched by this compiler when creating a shared library.
  23932. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  23933. # Dependencies to place before and after the objects being linked to
  23934. # create a shared library.
  23935. predep_objects=$lt_predep_objects_CXX
  23936. postdep_objects=$lt_postdep_objects_CXX
  23937. predeps=$lt_predeps_CXX
  23938. postdeps=$lt_postdeps_CXX
  23939. # The library search path used internally by the compiler when linking
  23940. # a shared library.
  23941. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  23942. # ### END LIBTOOL TAG CONFIG: CXX
  23943. _LT_EOF
  23944. ;;
  23945. esac
  23946. done # for ac_tag
  23947. as_fn_exit 0
  23948. _ACEOF
  23949. ac_clean_files=$ac_clean_files_save
  23950. test $ac_write_fail = 0 ||
  23951. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  23952. # configure is writing to config.log, and then calls config.status.
  23953. # config.status does its own redirection, appending to config.log.
  23954. # Unfortunately, on DOS this fails, as config.log is still kept open
  23955. # by configure, so config.status won't be able to write to it; its
  23956. # output is simply discarded. So we exec the FD to /dev/null,
  23957. # effectively closing config.log, so it can be properly (re)opened and
  23958. # appended to by config.status. When coming back to configure, we
  23959. # need to make the FD available again.
  23960. if test "$no_create" != yes; then
  23961. ac_cs_success=:
  23962. ac_config_status_args=
  23963. test "$silent" = yes &&
  23964. ac_config_status_args="$ac_config_status_args --quiet"
  23965. exec 5>/dev/null
  23966. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  23967. exec 5>>config.log
  23968. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  23969. # would make configure fail if this is the last instruction.
  23970. $ac_cs_success || as_fn_exit 1
  23971. fi
  23972. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  23973. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  23974. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  23975. fi
  23976. # Configuration results
  23977. { $as_echo "$as_me:${as_lineno-$LINENO}: result:
  23978. ##########################################################################
  23979. TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION})
  23980. ##########################################################################
  23981. libpcap: ${foundpcap} (${libpcap_version})
  23982. PF_RING libpcap ${pf_ring_found} ${pf_ring_lib}
  23983. libdnet: ${founddnet} ${libdnet_version}
  23984. autogen: ${AUTOGEN} (${AUTOGEN_VERSION})
  23985. Use libopts tearoff: ${enable_local_libopts}
  23986. 64bit counter support: ${use64bit_counters}
  23987. tcpdump binary path: ${tcpdump_path}
  23988. fragroute support: ${enable_fragroute}
  23989. tcpbridge support: ${enable_tcpbridge}
  23990. tcpliveplay support: ${enable_tcpliveplay}
  23991. Supported Packet Injection Methods (*):
  23992. Linux TX_RING: ${have_tx_ring}
  23993. Linux PF_PACKET: ${have_pf}
  23994. BSD BPF: ${have_bpf}
  23995. libdnet: ${have_libdnet}
  23996. pcap_inject: ${have_pcap_inject}
  23997. pcap_sendpacket: ${have_pcap_sendpacket} **
  23998. pcap_netmap ${have_pcap_netmap}
  23999. Linux/BSD netmap: ${have_netmap}
  24000. Tuntap device support: ${have_tuntap}
  24001. * In order of preference; see configure --help to override
  24002. ** Required for tcpbridge
  24003. " >&5
  24004. $as_echo "
  24005. ##########################################################################
  24006. TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION})
  24007. ##########################################################################
  24008. libpcap: ${foundpcap} (${libpcap_version})
  24009. PF_RING libpcap ${pf_ring_found} ${pf_ring_lib}
  24010. libdnet: ${founddnet} ${libdnet_version}
  24011. autogen: ${AUTOGEN} (${AUTOGEN_VERSION})
  24012. Use libopts tearoff: ${enable_local_libopts}
  24013. 64bit counter support: ${use64bit_counters}
  24014. tcpdump binary path: ${tcpdump_path}
  24015. fragroute support: ${enable_fragroute}
  24016. tcpbridge support: ${enable_tcpbridge}
  24017. tcpliveplay support: ${enable_tcpliveplay}
  24018. Supported Packet Injection Methods (*):
  24019. Linux TX_RING: ${have_tx_ring}
  24020. Linux PF_PACKET: ${have_pf}
  24021. BSD BPF: ${have_bpf}
  24022. libdnet: ${have_libdnet}
  24023. pcap_inject: ${have_pcap_inject}
  24024. pcap_sendpacket: ${have_pcap_sendpacket} **
  24025. pcap_netmap ${have_pcap_netmap}
  24026. Linux/BSD netmap: ${have_netmap}
  24027. Tuntap device support: ${have_tuntap}
  24028. * In order of preference; see configure --help to override
  24029. ** Required for tcpbridge
  24030. " >&6; }
  24031. case $host in
  24032. *-*-cygwin)
  24033. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Windows/Cygwin support is still somewhat experimental.
  24034. Please report any bugs! https://github.com/appneta/tcpreplay/issues" >&5
  24035. $as_echo "$as_me: WARNING: Windows/Cygwin support is still somewhat experimental.
  24036. Please report any bugs! https://github.com/appneta/tcpreplay/issues" >&2;}
  24037. ;;
  24038. esac