1
0

configure 828 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for tcpreplay 4.3.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.3.2'
  544. PACKAGE_STRING='tcpreplay 4.3.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. WORDS_BIGENDIAN_FALSE
  633. WORDS_BIGENDIAN_TRUE
  634. SYSTEM_STRLCPY_FALSE
  635. SYSTEM_STRLCPY_TRUE
  636. LIBOBJS
  637. rmmod
  638. insmod
  639. depmod
  640. GROFF
  641. AUTOGEN
  642. CUT
  643. ECHO
  644. PRINTF
  645. CXXCPP
  646. am__fastdepCXX_FALSE
  647. am__fastdepCXX_TRUE
  648. CXXDEPMODE
  649. ac_ct_CXX
  650. CXXFLAGS
  651. CXX
  652. CPP
  653. LT_SYS_LIBRARY_PATH
  654. OTOOL64
  655. OTOOL
  656. LIPO
  657. NMEDIT
  658. DSYMUTIL
  659. MANIFEST_TOOL
  660. RANLIB
  661. DLLTOOL
  662. OBJDUMP
  663. LN_S
  664. NM
  665. ac_ct_DUMPBIN
  666. DUMPBIN
  667. LD
  668. FGREP
  669. EGREP
  670. GREP
  671. SED
  672. am__fastdepCC_FALSE
  673. am__fastdepCC_TRUE
  674. CCDEPMODE
  675. am__nodep
  676. AMDEPBACKSLASH
  677. AMDEP_FALSE
  678. AMDEP_TRUE
  679. am__quote
  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. ac_subst_files=''
  779. ac_user_opts='
  780. enable_option_checking
  781. enable_maintainer_mode
  782. with_dmalloc
  783. with_macosx_sdk
  784. with_pfring_lib
  785. enable_silent_rules
  786. enable_dependency_tracking
  787. enable_shared
  788. enable_static
  789. with_pic
  790. enable_fast_install
  791. with_aix_soname
  792. with_gnu_ld
  793. with_sysroot
  794. enable_libtool_lock
  795. enable_largefile
  796. enable_debug
  797. enable_extra_debug
  798. enable_timestamp_trace
  799. enable_dmalloc
  800. enable_pedantic
  801. enable_efence
  802. enable_gprof
  803. enable_pcapconfig
  804. enable_64bits
  805. enable_force_bpf
  806. enable_force_pf
  807. enable_force_libdnet
  808. enable_force_inject
  809. enable_force_sendpacket
  810. enable_static_link
  811. enable_dynamic_link
  812. enable_tuntap
  813. with_libpcap
  814. with_netmap
  815. with_libdnet
  816. with_pcapnav_config
  817. with_tcpdump
  818. with_testnic
  819. with_testnic2
  820. enable_nls
  821. enable_local_libopts
  822. enable_libopts_install
  823. with_autoopts_config
  824. with_regex_header
  825. with_libregex
  826. with_libregex_cflags
  827. with_libregex_libs
  828. enable_optional_args
  829. '
  830. ac_precious_vars='build_alias
  831. host_alias
  832. target_alias
  833. CC
  834. CFLAGS
  835. LDFLAGS
  836. LIBS
  837. CPPFLAGS
  838. LT_SYS_LIBRARY_PATH
  839. CPP
  840. CXX
  841. CXXFLAGS
  842. CCC
  843. CXXCPP'
  844. # Initialize some variables set by options.
  845. ac_init_help=
  846. ac_init_version=false
  847. ac_unrecognized_opts=
  848. ac_unrecognized_sep=
  849. # The variables have the same names as the options, with
  850. # dashes changed to underlines.
  851. cache_file=/dev/null
  852. exec_prefix=NONE
  853. no_create=
  854. no_recursion=
  855. prefix=NONE
  856. program_prefix=NONE
  857. program_suffix=NONE
  858. program_transform_name=s,x,x,
  859. silent=
  860. site=
  861. srcdir=
  862. verbose=
  863. x_includes=NONE
  864. x_libraries=NONE
  865. # Installation directory options.
  866. # These are left unexpanded so users can "make install exec_prefix=/foo"
  867. # and all the variables that are supposed to be based on exec_prefix
  868. # by default will actually change.
  869. # Use braces instead of parens because sh, perl, etc. also accept them.
  870. # (The list follows the same order as the GNU Coding Standards.)
  871. bindir='${exec_prefix}/bin'
  872. sbindir='${exec_prefix}/sbin'
  873. libexecdir='${exec_prefix}/libexec'
  874. datarootdir='${prefix}/share'
  875. datadir='${datarootdir}'
  876. sysconfdir='${prefix}/etc'
  877. sharedstatedir='${prefix}/com'
  878. localstatedir='${prefix}/var'
  879. runstatedir='${localstatedir}/run'
  880. includedir='${prefix}/include'
  881. oldincludedir='/usr/include'
  882. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  883. infodir='${datarootdir}/info'
  884. htmldir='${docdir}'
  885. dvidir='${docdir}'
  886. pdfdir='${docdir}'
  887. psdir='${docdir}'
  888. libdir='${exec_prefix}/lib'
  889. localedir='${datarootdir}/locale'
  890. mandir='${datarootdir}/man'
  891. ac_prev=
  892. ac_dashdash=
  893. for ac_option
  894. do
  895. # If the previous option needs an argument, assign it.
  896. if test -n "$ac_prev"; then
  897. eval $ac_prev=\$ac_option
  898. ac_prev=
  899. continue
  900. fi
  901. case $ac_option in
  902. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  903. *=) ac_optarg= ;;
  904. *) ac_optarg=yes ;;
  905. esac
  906. # Accept the important Cygnus configure options, so we can diagnose typos.
  907. case $ac_dashdash$ac_option in
  908. --)
  909. ac_dashdash=yes ;;
  910. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  911. ac_prev=bindir ;;
  912. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  913. bindir=$ac_optarg ;;
  914. -build | --build | --buil | --bui | --bu)
  915. ac_prev=build_alias ;;
  916. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  917. build_alias=$ac_optarg ;;
  918. -cache-file | --cache-file | --cache-fil | --cache-fi \
  919. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  920. ac_prev=cache_file ;;
  921. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  922. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  923. cache_file=$ac_optarg ;;
  924. --config-cache | -C)
  925. cache_file=config.cache ;;
  926. -datadir | --datadir | --datadi | --datad)
  927. ac_prev=datadir ;;
  928. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  929. datadir=$ac_optarg ;;
  930. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  931. | --dataroo | --dataro | --datar)
  932. ac_prev=datarootdir ;;
  933. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  934. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  935. datarootdir=$ac_optarg ;;
  936. -disable-* | --disable-*)
  937. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  938. # Reject names that are not valid shell variable names.
  939. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  940. as_fn_error $? "invalid feature name: $ac_useropt"
  941. ac_useropt_orig=$ac_useropt
  942. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  943. case $ac_user_opts in
  944. *"
  945. "enable_$ac_useropt"
  946. "*) ;;
  947. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  948. ac_unrecognized_sep=', ';;
  949. esac
  950. eval enable_$ac_useropt=no ;;
  951. -docdir | --docdir | --docdi | --doc | --do)
  952. ac_prev=docdir ;;
  953. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  954. docdir=$ac_optarg ;;
  955. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  956. ac_prev=dvidir ;;
  957. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  958. dvidir=$ac_optarg ;;
  959. -enable-* | --enable-*)
  960. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  961. # Reject names that are not valid shell variable names.
  962. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  963. as_fn_error $? "invalid feature name: $ac_useropt"
  964. ac_useropt_orig=$ac_useropt
  965. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  966. case $ac_user_opts in
  967. *"
  968. "enable_$ac_useropt"
  969. "*) ;;
  970. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  971. ac_unrecognized_sep=', ';;
  972. esac
  973. eval enable_$ac_useropt=\$ac_optarg ;;
  974. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  975. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  976. | --exec | --exe | --ex)
  977. ac_prev=exec_prefix ;;
  978. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  979. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  980. | --exec=* | --exe=* | --ex=*)
  981. exec_prefix=$ac_optarg ;;
  982. -gas | --gas | --ga | --g)
  983. # Obsolete; use --with-gas.
  984. with_gas=yes ;;
  985. -help | --help | --hel | --he | -h)
  986. ac_init_help=long ;;
  987. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  988. ac_init_help=recursive ;;
  989. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  990. ac_init_help=short ;;
  991. -host | --host | --hos | --ho)
  992. ac_prev=host_alias ;;
  993. -host=* | --host=* | --hos=* | --ho=*)
  994. host_alias=$ac_optarg ;;
  995. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  996. ac_prev=htmldir ;;
  997. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  998. | --ht=*)
  999. htmldir=$ac_optarg ;;
  1000. -includedir | --includedir | --includedi | --included | --include \
  1001. | --includ | --inclu | --incl | --inc)
  1002. ac_prev=includedir ;;
  1003. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1004. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1005. includedir=$ac_optarg ;;
  1006. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1007. ac_prev=infodir ;;
  1008. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1009. infodir=$ac_optarg ;;
  1010. -libdir | --libdir | --libdi | --libd)
  1011. ac_prev=libdir ;;
  1012. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1013. libdir=$ac_optarg ;;
  1014. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1015. | --libexe | --libex | --libe)
  1016. ac_prev=libexecdir ;;
  1017. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1018. | --libexe=* | --libex=* | --libe=*)
  1019. libexecdir=$ac_optarg ;;
  1020. -localedir | --localedir | --localedi | --localed | --locale)
  1021. ac_prev=localedir ;;
  1022. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1023. localedir=$ac_optarg ;;
  1024. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1025. | --localstate | --localstat | --localsta | --localst | --locals)
  1026. ac_prev=localstatedir ;;
  1027. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1028. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1029. localstatedir=$ac_optarg ;;
  1030. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1031. ac_prev=mandir ;;
  1032. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1033. mandir=$ac_optarg ;;
  1034. -nfp | --nfp | --nf)
  1035. # Obsolete; use --without-fp.
  1036. with_fp=no ;;
  1037. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1038. | --no-cr | --no-c | -n)
  1039. no_create=yes ;;
  1040. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1041. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1042. no_recursion=yes ;;
  1043. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1044. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1045. | --oldin | --oldi | --old | --ol | --o)
  1046. ac_prev=oldincludedir ;;
  1047. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1048. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1049. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1050. oldincludedir=$ac_optarg ;;
  1051. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1052. ac_prev=prefix ;;
  1053. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1054. prefix=$ac_optarg ;;
  1055. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1056. | --program-pre | --program-pr | --program-p)
  1057. ac_prev=program_prefix ;;
  1058. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1059. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1060. program_prefix=$ac_optarg ;;
  1061. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1062. | --program-suf | --program-su | --program-s)
  1063. ac_prev=program_suffix ;;
  1064. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1065. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1066. program_suffix=$ac_optarg ;;
  1067. -program-transform-name | --program-transform-name \
  1068. | --program-transform-nam | --program-transform-na \
  1069. | --program-transform-n | --program-transform- \
  1070. | --program-transform | --program-transfor \
  1071. | --program-transfo | --program-transf \
  1072. | --program-trans | --program-tran \
  1073. | --progr-tra | --program-tr | --program-t)
  1074. ac_prev=program_transform_name ;;
  1075. -program-transform-name=* | --program-transform-name=* \
  1076. | --program-transform-nam=* | --program-transform-na=* \
  1077. | --program-transform-n=* | --program-transform-=* \
  1078. | --program-transform=* | --program-transfor=* \
  1079. | --program-transfo=* | --program-transf=* \
  1080. | --program-trans=* | --program-tran=* \
  1081. | --progr-tra=* | --program-tr=* | --program-t=*)
  1082. program_transform_name=$ac_optarg ;;
  1083. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1084. ac_prev=pdfdir ;;
  1085. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1086. pdfdir=$ac_optarg ;;
  1087. -psdir | --psdir | --psdi | --psd | --ps)
  1088. ac_prev=psdir ;;
  1089. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1090. psdir=$ac_optarg ;;
  1091. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1092. | -silent | --silent | --silen | --sile | --sil)
  1093. silent=yes ;;
  1094. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1095. | --runstate | --runstat | --runsta | --runst | --runs \
  1096. | --run | --ru | --r)
  1097. ac_prev=runstatedir ;;
  1098. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1099. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1100. | --run=* | --ru=* | --r=*)
  1101. runstatedir=$ac_optarg ;;
  1102. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1103. ac_prev=sbindir ;;
  1104. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1105. | --sbi=* | --sb=*)
  1106. sbindir=$ac_optarg ;;
  1107. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1108. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1109. | --sharedst | --shareds | --shared | --share | --shar \
  1110. | --sha | --sh)
  1111. ac_prev=sharedstatedir ;;
  1112. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1113. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1114. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1115. | --sha=* | --sh=*)
  1116. sharedstatedir=$ac_optarg ;;
  1117. -site | --site | --sit)
  1118. ac_prev=site ;;
  1119. -site=* | --site=* | --sit=*)
  1120. site=$ac_optarg ;;
  1121. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1122. ac_prev=srcdir ;;
  1123. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1124. srcdir=$ac_optarg ;;
  1125. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1126. | --syscon | --sysco | --sysc | --sys | --sy)
  1127. ac_prev=sysconfdir ;;
  1128. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1129. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1130. sysconfdir=$ac_optarg ;;
  1131. -target | --target | --targe | --targ | --tar | --ta | --t)
  1132. ac_prev=target_alias ;;
  1133. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1134. target_alias=$ac_optarg ;;
  1135. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1136. verbose=yes ;;
  1137. -version | --version | --versio | --versi | --vers | -V)
  1138. ac_init_version=: ;;
  1139. -with-* | --with-*)
  1140. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1141. # Reject names that are not valid shell variable names.
  1142. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1143. as_fn_error $? "invalid package name: $ac_useropt"
  1144. ac_useropt_orig=$ac_useropt
  1145. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1146. case $ac_user_opts in
  1147. *"
  1148. "with_$ac_useropt"
  1149. "*) ;;
  1150. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1151. ac_unrecognized_sep=', ';;
  1152. esac
  1153. eval with_$ac_useropt=\$ac_optarg ;;
  1154. -without-* | --without-*)
  1155. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1156. # Reject names that are not valid shell variable names.
  1157. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1158. as_fn_error $? "invalid package name: $ac_useropt"
  1159. ac_useropt_orig=$ac_useropt
  1160. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1161. case $ac_user_opts in
  1162. *"
  1163. "with_$ac_useropt"
  1164. "*) ;;
  1165. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1166. ac_unrecognized_sep=', ';;
  1167. esac
  1168. eval with_$ac_useropt=no ;;
  1169. --x)
  1170. # Obsolete; use --with-x.
  1171. with_x=yes ;;
  1172. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1173. | --x-incl | --x-inc | --x-in | --x-i)
  1174. ac_prev=x_includes ;;
  1175. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1176. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1177. x_includes=$ac_optarg ;;
  1178. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1179. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1180. ac_prev=x_libraries ;;
  1181. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1182. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1183. x_libraries=$ac_optarg ;;
  1184. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1185. Try \`$0 --help' for more information"
  1186. ;;
  1187. *=*)
  1188. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1189. # Reject names that are not valid shell variable names.
  1190. case $ac_envvar in #(
  1191. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1192. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1193. esac
  1194. eval $ac_envvar=\$ac_optarg
  1195. export $ac_envvar ;;
  1196. *)
  1197. # FIXME: should be removed in autoconf 3.0.
  1198. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1199. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1200. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1201. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1202. ;;
  1203. esac
  1204. done
  1205. if test -n "$ac_prev"; then
  1206. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1207. as_fn_error $? "missing argument to $ac_option"
  1208. fi
  1209. if test -n "$ac_unrecognized_opts"; then
  1210. case $enable_option_checking in
  1211. no) ;;
  1212. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1213. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1214. esac
  1215. fi
  1216. # Check all directory arguments for consistency.
  1217. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1218. datadir sysconfdir sharedstatedir localstatedir includedir \
  1219. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1220. libdir localedir mandir runstatedir
  1221. do
  1222. eval ac_val=\$$ac_var
  1223. # Remove trailing slashes.
  1224. case $ac_val in
  1225. */ )
  1226. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1227. eval $ac_var=\$ac_val;;
  1228. esac
  1229. # Be sure to have absolute directory names.
  1230. case $ac_val in
  1231. [\\/$]* | ?:[\\/]* ) continue;;
  1232. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1233. esac
  1234. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1235. done
  1236. # There might be people who depend on the old broken behavior: `$host'
  1237. # used to hold the argument of --host etc.
  1238. # FIXME: To remove some day.
  1239. build=$build_alias
  1240. host=$host_alias
  1241. target=$target_alias
  1242. # FIXME: To remove some day.
  1243. if test "x$host_alias" != x; then
  1244. if test "x$build_alias" = x; then
  1245. cross_compiling=maybe
  1246. elif test "x$build_alias" != "x$host_alias"; then
  1247. cross_compiling=yes
  1248. fi
  1249. fi
  1250. ac_tool_prefix=
  1251. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1252. test "$silent" = yes && exec 6>/dev/null
  1253. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1254. ac_ls_di=`ls -di .` &&
  1255. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1256. as_fn_error $? "working directory cannot be determined"
  1257. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1258. as_fn_error $? "pwd does not report name of working directory"
  1259. # Find the source files, if location was not specified.
  1260. if test -z "$srcdir"; then
  1261. ac_srcdir_defaulted=yes
  1262. # Try the directory containing this script, then the parent directory.
  1263. ac_confdir=`$as_dirname -- "$as_myself" ||
  1264. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1265. X"$as_myself" : 'X\(//\)[^/]' \| \
  1266. X"$as_myself" : 'X\(//\)$' \| \
  1267. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1268. $as_echo X"$as_myself" |
  1269. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1270. s//\1/
  1271. q
  1272. }
  1273. /^X\(\/\/\)[^/].*/{
  1274. s//\1/
  1275. q
  1276. }
  1277. /^X\(\/\/\)$/{
  1278. s//\1/
  1279. q
  1280. }
  1281. /^X\(\/\).*/{
  1282. s//\1/
  1283. q
  1284. }
  1285. s/.*/./; q'`
  1286. srcdir=$ac_confdir
  1287. if test ! -r "$srcdir/$ac_unique_file"; then
  1288. srcdir=..
  1289. fi
  1290. else
  1291. ac_srcdir_defaulted=no
  1292. fi
  1293. if test ! -r "$srcdir/$ac_unique_file"; then
  1294. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1295. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1296. fi
  1297. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1298. ac_abs_confdir=`(
  1299. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1300. pwd)`
  1301. # When building in place, set srcdir=.
  1302. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1303. srcdir=.
  1304. fi
  1305. # Remove unnecessary trailing slashes from srcdir.
  1306. # Double slashes in file names in object file debugging info
  1307. # mess up M-x gdb in Emacs.
  1308. case $srcdir in
  1309. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1310. esac
  1311. for ac_var in $ac_precious_vars; do
  1312. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1313. eval ac_env_${ac_var}_value=\$${ac_var}
  1314. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1315. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1316. done
  1317. #
  1318. # Report the --help message.
  1319. #
  1320. if test "$ac_init_help" = "long"; then
  1321. # Omit some internal or obsolete options to make the list less imposing.
  1322. # This message is too long to be a string in the A/UX 3.1 sh.
  1323. cat <<_ACEOF
  1324. \`configure' configures tcpreplay 4.3.2 to adapt to many kinds of systems.
  1325. Usage: $0 [OPTION]... [VAR=VALUE]...
  1326. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1327. VAR=VALUE. See below for descriptions of some of the useful variables.
  1328. Defaults for the options are specified in brackets.
  1329. Configuration:
  1330. -h, --help display this help and exit
  1331. --help=short display options specific to this package
  1332. --help=recursive display the short help of all the included packages
  1333. -V, --version display version information and exit
  1334. -q, --quiet, --silent do not print \`checking ...' messages
  1335. --cache-file=FILE cache test results in FILE [disabled]
  1336. -C, --config-cache alias for \`--cache-file=config.cache'
  1337. -n, --no-create do not create output files
  1338. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1339. Installation directories:
  1340. --prefix=PREFIX install architecture-independent files in PREFIX
  1341. [$ac_default_prefix]
  1342. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1343. [PREFIX]
  1344. By default, \`make install' will install all the files in
  1345. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1346. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1347. for instance \`--prefix=\$HOME'.
  1348. For better control, use the options below.
  1349. Fine tuning of the installation directories:
  1350. --bindir=DIR user executables [EPREFIX/bin]
  1351. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1352. --libexecdir=DIR program executables [EPREFIX/libexec]
  1353. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1354. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1355. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1356. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1357. --libdir=DIR object code libraries [EPREFIX/lib]
  1358. --includedir=DIR C header files [PREFIX/include]
  1359. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1360. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1361. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1362. --infodir=DIR info documentation [DATAROOTDIR/info]
  1363. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1364. --mandir=DIR man documentation [DATAROOTDIR/man]
  1365. --docdir=DIR documentation root [DATAROOTDIR/doc/tcpreplay]
  1366. --htmldir=DIR html documentation [DOCDIR]
  1367. --dvidir=DIR dvi documentation [DOCDIR]
  1368. --pdfdir=DIR pdf documentation [DOCDIR]
  1369. --psdir=DIR ps documentation [DOCDIR]
  1370. _ACEOF
  1371. cat <<\_ACEOF
  1372. Program names:
  1373. --program-prefix=PREFIX prepend PREFIX to installed program names
  1374. --program-suffix=SUFFIX append SUFFIX to installed program names
  1375. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1376. System types:
  1377. --build=BUILD configure for building on BUILD [guessed]
  1378. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1379. --target=TARGET configure for building compilers for TARGET [HOST]
  1380. _ACEOF
  1381. fi
  1382. if test -n "$ac_init_help"; then
  1383. case $ac_init_help in
  1384. short | recursive ) echo "Configuration of tcpreplay 4.3.2:";;
  1385. esac
  1386. cat <<\_ACEOF
  1387. Optional Features:
  1388. --disable-option-checking ignore unrecognized --enable/--with options
  1389. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1390. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1391. --disable-maintainer-mode
  1392. disable make rules and dependencies not useful (and
  1393. sometimes confusing) to the casual installer
  1394. --enable-silent-rules less verbose build output (undo: "make V=1")
  1395. --disable-silent-rules verbose build output (undo: "make V=0")
  1396. --enable-dependency-tracking
  1397. do not reject slow dependency extractors
  1398. --disable-dependency-tracking
  1399. speeds up one-time build
  1400. --enable-shared[=PKGS] build shared libraries [default=yes]
  1401. --enable-static[=PKGS] build static libraries [default=yes]
  1402. --enable-fast-install[=PKGS]
  1403. optimize for fast installation [default=yes]
  1404. --disable-libtool-lock avoid locking (might break parallel builds)
  1405. --disable-largefile omit support for large files
  1406. --enable-debug Enable debugging code and support for the -d option
  1407. --enable-extra-debug Enable additional debugging code (may affect
  1408. performance)
  1409. --timestamp-trace Enable dumping of trace timestamps at the end of a
  1410. test
  1411. --enable-dmalloc Enable linking to dmalloc for better memory
  1412. debugging
  1413. --enable-pedantic Enable gcc's -pedantic option
  1414. --enable-efence Enable Electric Fence memory debugger
  1415. --enable-gprof Enable GNU Profiler
  1416. --enable-pcapconfig Enable automatic libpcap config, reverting to system
  1417. scanning
  1418. --disable-64bits Do not use 64bit packet counters
  1419. --enable-force-bpf Force using BPF for sending packets
  1420. --enable-force-pf Force using Linux's PF_PACKET for sending packets
  1421. --enable-force-libdnet Force using libdnet for sending packets
  1422. --enable-force-inject Force using libpcap's pcap_inject() for sending
  1423. packets
  1424. --enable-force-sendpacket
  1425. Force using libpcap's pcap_sendpacket() for sending
  1426. packets
  1427. --enable-static-link Use static libraries ( .a or .A.tbd ) - default no
  1428. --enable-dynamic-link Use shared libraries ( .so .dylib or .tbd ) -
  1429. default yes
  1430. --disable-tuntap Disable tuntap support
  1431. --disable-nls disable nls support in libopts
  1432. --enable-local-libopts Use the supplied libopts tearoff code
  1433. --enable-libopts-install
  1434. Install libopts with client installation
  1435. --disable-optional-args not wanting optional option args
  1436. Optional Packages:
  1437. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1438. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1439. --with-dmalloc use dmalloc, as in http://www.dmalloc.com
  1440. --with-macosx-sdk Use a specific SDK for building.
  1441. Usage: --with-macosx-sdk=<version>
  1442. e. g.: --with-macosx-sdk=10.8
  1443. --with-pfring-lib Use a specific PF_RING static library when using
  1444. PF_RING libpcap.
  1445. Usage: --with-pfring-lib=<library>
  1446. e. g.: --with-pfring-lib=/usr/lib/libpfring_zc_x86_64.a
  1447. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1448. both]
  1449. --with-aix-soname=aix|svr4|both
  1450. shared library versioning (aka "SONAME") variant to
  1451. provide on AIX, [default=aix].
  1452. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1453. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1454. compiler's sysroot if not specified).
  1455. --with-libpcap=DIR Use libpcap in DIR
  1456. --with-netmap=DIR Use netmap in DIR
  1457. --with-libdnet=DIR Use libdnet in DIR
  1458. --with-pcapnav-config=FILE
  1459. Use given pcapnav-config
  1460. --with-tcpdump=FILE Path to tcpdump binary
  1461. --with-testnic=NIC Select which network card to use for testing
  1462. --with-testnic2=NIC2 Select an optional 2nd network card to use for
  1463. testing
  1464. --with-autoopts-config specify the config-info script
  1465. --with-regex-header a reg expr header is specified
  1466. --with-libregex libregex installation prefix
  1467. --with-libregex-cflags libregex compile flags
  1468. --with-libregex-libs libregex link command arguments
  1469. Some influential environment variables:
  1470. CC C compiler command
  1471. CFLAGS C compiler flags
  1472. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1473. nonstandard directory <lib dir>
  1474. LIBS libraries to pass to the linker, e.g. -l<library>
  1475. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1476. you have headers in a nonstandard directory <include dir>
  1477. LT_SYS_LIBRARY_PATH
  1478. User-defined run-time library search path.
  1479. CPP C preprocessor
  1480. CXX C++ compiler command
  1481. CXXFLAGS C++ compiler flags
  1482. CXXCPP C++ preprocessor
  1483. Use these variables to override the choices made by `configure' or to help
  1484. it to find libraries and programs with nonstandard names/locations.
  1485. Report bugs to <https://github.com/appneta/tcpreplay/issues>.
  1486. tcpreplay home page: <http://tcpreplay.sourceforge.net/>.
  1487. _ACEOF
  1488. ac_status=$?
  1489. fi
  1490. if test "$ac_init_help" = "recursive"; then
  1491. # If there are subdirs, report their specific --help.
  1492. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1493. test -d "$ac_dir" ||
  1494. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1495. continue
  1496. ac_builddir=.
  1497. case "$ac_dir" in
  1498. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1499. *)
  1500. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1501. # A ".." for each directory in $ac_dir_suffix.
  1502. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1503. case $ac_top_builddir_sub in
  1504. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1505. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1506. esac ;;
  1507. esac
  1508. ac_abs_top_builddir=$ac_pwd
  1509. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1510. # for backward compatibility:
  1511. ac_top_builddir=$ac_top_build_prefix
  1512. case $srcdir in
  1513. .) # We are building in place.
  1514. ac_srcdir=.
  1515. ac_top_srcdir=$ac_top_builddir_sub
  1516. ac_abs_top_srcdir=$ac_pwd ;;
  1517. [\\/]* | ?:[\\/]* ) # Absolute name.
  1518. ac_srcdir=$srcdir$ac_dir_suffix;
  1519. ac_top_srcdir=$srcdir
  1520. ac_abs_top_srcdir=$srcdir ;;
  1521. *) # Relative name.
  1522. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1523. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1524. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1525. esac
  1526. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1527. cd "$ac_dir" || { ac_status=$?; continue; }
  1528. # Check for guested configure.
  1529. if test -f "$ac_srcdir/configure.gnu"; then
  1530. echo &&
  1531. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1532. elif test -f "$ac_srcdir/configure"; then
  1533. echo &&
  1534. $SHELL "$ac_srcdir/configure" --help=recursive
  1535. else
  1536. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1537. fi || ac_status=$?
  1538. cd "$ac_pwd" || { ac_status=$?; break; }
  1539. done
  1540. fi
  1541. test -n "$ac_init_help" && exit $ac_status
  1542. if $ac_init_version; then
  1543. cat <<\_ACEOF
  1544. tcpreplay configure 4.3.2
  1545. generated by GNU Autoconf 2.69
  1546. Copyright (C) 2012 Free Software Foundation, Inc.
  1547. This configure script is free software; the Free Software Foundation
  1548. gives unlimited permission to copy, distribute and modify it.
  1549. _ACEOF
  1550. exit
  1551. fi
  1552. ## ------------------------ ##
  1553. ## Autoconf initialization. ##
  1554. ## ------------------------ ##
  1555. # ac_fn_c_try_compile LINENO
  1556. # --------------------------
  1557. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1558. ac_fn_c_try_compile ()
  1559. {
  1560. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1561. rm -f conftest.$ac_objext
  1562. if { { ac_try="$ac_compile"
  1563. case "(($ac_try" in
  1564. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1565. *) ac_try_echo=$ac_try;;
  1566. esac
  1567. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1568. $as_echo "$ac_try_echo"; } >&5
  1569. (eval "$ac_compile") 2>conftest.err
  1570. ac_status=$?
  1571. if test -s conftest.err; then
  1572. grep -v '^ *+' conftest.err >conftest.er1
  1573. cat conftest.er1 >&5
  1574. mv -f conftest.er1 conftest.err
  1575. fi
  1576. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1577. test $ac_status = 0; } && {
  1578. test -z "$ac_c_werror_flag" ||
  1579. test ! -s conftest.err
  1580. } && test -s conftest.$ac_objext; then :
  1581. ac_retval=0
  1582. else
  1583. $as_echo "$as_me: failed program was:" >&5
  1584. sed 's/^/| /' conftest.$ac_ext >&5
  1585. ac_retval=1
  1586. fi
  1587. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1588. as_fn_set_status $ac_retval
  1589. } # ac_fn_c_try_compile
  1590. # ac_fn_c_try_link LINENO
  1591. # -----------------------
  1592. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1593. ac_fn_c_try_link ()
  1594. {
  1595. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1596. rm -f conftest.$ac_objext conftest$ac_exeext
  1597. if { { ac_try="$ac_link"
  1598. case "(($ac_try" in
  1599. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1600. *) ac_try_echo=$ac_try;;
  1601. esac
  1602. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1603. $as_echo "$ac_try_echo"; } >&5
  1604. (eval "$ac_link") 2>conftest.err
  1605. ac_status=$?
  1606. if test -s conftest.err; then
  1607. grep -v '^ *+' conftest.err >conftest.er1
  1608. cat conftest.er1 >&5
  1609. mv -f conftest.er1 conftest.err
  1610. fi
  1611. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1612. test $ac_status = 0; } && {
  1613. test -z "$ac_c_werror_flag" ||
  1614. test ! -s conftest.err
  1615. } && test -s conftest$ac_exeext && {
  1616. test "$cross_compiling" = yes ||
  1617. test -x conftest$ac_exeext
  1618. }; then :
  1619. ac_retval=0
  1620. else
  1621. $as_echo "$as_me: failed program was:" >&5
  1622. sed 's/^/| /' conftest.$ac_ext >&5
  1623. ac_retval=1
  1624. fi
  1625. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1626. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1627. # interfere with the next link command; also delete a directory that is
  1628. # left behind by Apple's compiler. We do this before executing the actions.
  1629. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1630. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1631. as_fn_set_status $ac_retval
  1632. } # ac_fn_c_try_link
  1633. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1634. # -------------------------------------------------------
  1635. # Tests whether HEADER exists and can be compiled using the include files in
  1636. # INCLUDES, setting the cache variable VAR accordingly.
  1637. ac_fn_c_check_header_compile ()
  1638. {
  1639. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1641. $as_echo_n "checking for $2... " >&6; }
  1642. if eval \${$3+:} false; then :
  1643. $as_echo_n "(cached) " >&6
  1644. else
  1645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1646. /* end confdefs.h. */
  1647. $4
  1648. #include <$2>
  1649. _ACEOF
  1650. if ac_fn_c_try_compile "$LINENO"; then :
  1651. eval "$3=yes"
  1652. else
  1653. eval "$3=no"
  1654. fi
  1655. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1656. fi
  1657. eval ac_res=\$$3
  1658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1659. $as_echo "$ac_res" >&6; }
  1660. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1661. } # ac_fn_c_check_header_compile
  1662. # ac_fn_c_try_cpp LINENO
  1663. # ----------------------
  1664. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1665. ac_fn_c_try_cpp ()
  1666. {
  1667. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1668. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1669. case "(($ac_try" in
  1670. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1671. *) ac_try_echo=$ac_try;;
  1672. esac
  1673. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1674. $as_echo "$ac_try_echo"; } >&5
  1675. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1676. ac_status=$?
  1677. if test -s conftest.err; then
  1678. grep -v '^ *+' conftest.err >conftest.er1
  1679. cat conftest.er1 >&5
  1680. mv -f conftest.er1 conftest.err
  1681. fi
  1682. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1683. test $ac_status = 0; } > conftest.i && {
  1684. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1685. test ! -s conftest.err
  1686. }; then :
  1687. ac_retval=0
  1688. else
  1689. $as_echo "$as_me: failed program was:" >&5
  1690. sed 's/^/| /' conftest.$ac_ext >&5
  1691. ac_retval=1
  1692. fi
  1693. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1694. as_fn_set_status $ac_retval
  1695. } # ac_fn_c_try_cpp
  1696. # ac_fn_c_try_run LINENO
  1697. # ----------------------
  1698. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1699. # that executables *can* be run.
  1700. ac_fn_c_try_run ()
  1701. {
  1702. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1703. if { { ac_try="$ac_link"
  1704. case "(($ac_try" in
  1705. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1706. *) ac_try_echo=$ac_try;;
  1707. esac
  1708. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1709. $as_echo "$ac_try_echo"; } >&5
  1710. (eval "$ac_link") 2>&5
  1711. ac_status=$?
  1712. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1713. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1714. { { case "(($ac_try" in
  1715. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1716. *) ac_try_echo=$ac_try;;
  1717. esac
  1718. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1719. $as_echo "$ac_try_echo"; } >&5
  1720. (eval "$ac_try") 2>&5
  1721. ac_status=$?
  1722. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1723. test $ac_status = 0; }; }; then :
  1724. ac_retval=0
  1725. else
  1726. $as_echo "$as_me: program exited with status $ac_status" >&5
  1727. $as_echo "$as_me: failed program was:" >&5
  1728. sed 's/^/| /' conftest.$ac_ext >&5
  1729. ac_retval=$ac_status
  1730. fi
  1731. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1732. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1733. as_fn_set_status $ac_retval
  1734. } # ac_fn_c_try_run
  1735. # ac_fn_c_check_func LINENO FUNC VAR
  1736. # ----------------------------------
  1737. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1738. ac_fn_c_check_func ()
  1739. {
  1740. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1742. $as_echo_n "checking for $2... " >&6; }
  1743. if eval \${$3+:} false; then :
  1744. $as_echo_n "(cached) " >&6
  1745. else
  1746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1747. /* end confdefs.h. */
  1748. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1749. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1750. #define $2 innocuous_$2
  1751. /* System header to define __stub macros and hopefully few prototypes,
  1752. which can conflict with char $2 (); below.
  1753. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1754. <limits.h> exists even on freestanding compilers. */
  1755. #ifdef __STDC__
  1756. # include <limits.h>
  1757. #else
  1758. # include <assert.h>
  1759. #endif
  1760. #undef $2
  1761. /* Override any GCC internal prototype to avoid an error.
  1762. Use char because int might match the return type of a GCC
  1763. builtin and then its argument prototype would still apply. */
  1764. #ifdef __cplusplus
  1765. extern "C"
  1766. #endif
  1767. char $2 ();
  1768. /* The GNU C library defines this for functions which it implements
  1769. to always fail with ENOSYS. Some functions are actually named
  1770. something starting with __ and the normal name is an alias. */
  1771. #if defined __stub_$2 || defined __stub___$2
  1772. choke me
  1773. #endif
  1774. int
  1775. main ()
  1776. {
  1777. return $2 ();
  1778. ;
  1779. return 0;
  1780. }
  1781. _ACEOF
  1782. if ac_fn_c_try_link "$LINENO"; then :
  1783. eval "$3=yes"
  1784. else
  1785. eval "$3=no"
  1786. fi
  1787. rm -f core conftest.err conftest.$ac_objext \
  1788. conftest$ac_exeext conftest.$ac_ext
  1789. fi
  1790. eval ac_res=\$$3
  1791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1792. $as_echo "$ac_res" >&6; }
  1793. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1794. } # ac_fn_c_check_func
  1795. # ac_fn_cxx_try_compile LINENO
  1796. # ----------------------------
  1797. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1798. ac_fn_cxx_try_compile ()
  1799. {
  1800. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1801. rm -f conftest.$ac_objext
  1802. if { { ac_try="$ac_compile"
  1803. case "(($ac_try" in
  1804. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1805. *) ac_try_echo=$ac_try;;
  1806. esac
  1807. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1808. $as_echo "$ac_try_echo"; } >&5
  1809. (eval "$ac_compile") 2>conftest.err
  1810. ac_status=$?
  1811. if test -s conftest.err; then
  1812. grep -v '^ *+' conftest.err >conftest.er1
  1813. cat conftest.er1 >&5
  1814. mv -f conftest.er1 conftest.err
  1815. fi
  1816. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1817. test $ac_status = 0; } && {
  1818. test -z "$ac_cxx_werror_flag" ||
  1819. test ! -s conftest.err
  1820. } && test -s conftest.$ac_objext; then :
  1821. ac_retval=0
  1822. else
  1823. $as_echo "$as_me: failed program was:" >&5
  1824. sed 's/^/| /' conftest.$ac_ext >&5
  1825. ac_retval=1
  1826. fi
  1827. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1828. as_fn_set_status $ac_retval
  1829. } # ac_fn_cxx_try_compile
  1830. # ac_fn_cxx_try_cpp LINENO
  1831. # ------------------------
  1832. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1833. ac_fn_cxx_try_cpp ()
  1834. {
  1835. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1836. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1837. case "(($ac_try" in
  1838. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1839. *) ac_try_echo=$ac_try;;
  1840. esac
  1841. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1842. $as_echo "$ac_try_echo"; } >&5
  1843. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1844. ac_status=$?
  1845. if test -s conftest.err; then
  1846. grep -v '^ *+' conftest.err >conftest.er1
  1847. cat conftest.er1 >&5
  1848. mv -f conftest.er1 conftest.err
  1849. fi
  1850. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1851. test $ac_status = 0; } > conftest.i && {
  1852. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1853. test ! -s conftest.err
  1854. }; then :
  1855. ac_retval=0
  1856. else
  1857. $as_echo "$as_me: failed program was:" >&5
  1858. sed 's/^/| /' conftest.$ac_ext >&5
  1859. ac_retval=1
  1860. fi
  1861. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1862. as_fn_set_status $ac_retval
  1863. } # ac_fn_cxx_try_cpp
  1864. # ac_fn_cxx_try_link LINENO
  1865. # -------------------------
  1866. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1867. ac_fn_cxx_try_link ()
  1868. {
  1869. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1870. rm -f conftest.$ac_objext conftest$ac_exeext
  1871. if { { ac_try="$ac_link"
  1872. case "(($ac_try" in
  1873. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1874. *) ac_try_echo=$ac_try;;
  1875. esac
  1876. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1877. $as_echo "$ac_try_echo"; } >&5
  1878. (eval "$ac_link") 2>conftest.err
  1879. ac_status=$?
  1880. if test -s conftest.err; then
  1881. grep -v '^ *+' conftest.err >conftest.er1
  1882. cat conftest.er1 >&5
  1883. mv -f conftest.er1 conftest.err
  1884. fi
  1885. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1886. test $ac_status = 0; } && {
  1887. test -z "$ac_cxx_werror_flag" ||
  1888. test ! -s conftest.err
  1889. } && test -s conftest$ac_exeext && {
  1890. test "$cross_compiling" = yes ||
  1891. test -x conftest$ac_exeext
  1892. }; then :
  1893. ac_retval=0
  1894. else
  1895. $as_echo "$as_me: failed program was:" >&5
  1896. sed 's/^/| /' conftest.$ac_ext >&5
  1897. ac_retval=1
  1898. fi
  1899. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1900. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1901. # interfere with the next link command; also delete a directory that is
  1902. # left behind by Apple's compiler. We do this before executing the actions.
  1903. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1904. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1905. as_fn_set_status $ac_retval
  1906. } # ac_fn_cxx_try_link
  1907. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1908. # -------------------------------------------------------
  1909. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1910. # the include files in INCLUDES and setting the cache variable VAR
  1911. # accordingly.
  1912. ac_fn_c_check_header_mongrel ()
  1913. {
  1914. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1915. if eval \${$3+:} false; then :
  1916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1917. $as_echo_n "checking for $2... " >&6; }
  1918. if eval \${$3+:} false; then :
  1919. $as_echo_n "(cached) " >&6
  1920. fi
  1921. eval ac_res=\$$3
  1922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1923. $as_echo "$ac_res" >&6; }
  1924. else
  1925. # Is the header compilable?
  1926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1927. $as_echo_n "checking $2 usability... " >&6; }
  1928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1929. /* end confdefs.h. */
  1930. $4
  1931. #include <$2>
  1932. _ACEOF
  1933. if ac_fn_c_try_compile "$LINENO"; then :
  1934. ac_header_compiler=yes
  1935. else
  1936. ac_header_compiler=no
  1937. fi
  1938. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1940. $as_echo "$ac_header_compiler" >&6; }
  1941. # Is the header present?
  1942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1943. $as_echo_n "checking $2 presence... " >&6; }
  1944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1945. /* end confdefs.h. */
  1946. #include <$2>
  1947. _ACEOF
  1948. if ac_fn_c_try_cpp "$LINENO"; then :
  1949. ac_header_preproc=yes
  1950. else
  1951. ac_header_preproc=no
  1952. fi
  1953. rm -f conftest.err conftest.i conftest.$ac_ext
  1954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1955. $as_echo "$ac_header_preproc" >&6; }
  1956. # So? What about this header?
  1957. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1958. yes:no: )
  1959. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1960. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1961. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1962. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1963. ;;
  1964. no:yes:* )
  1965. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1966. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1967. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1968. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1969. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1970. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1971. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1972. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1973. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1974. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1975. ( $as_echo "## ---------------------------------------------------------- ##
  1976. ## Report this to https://github.com/appneta/tcpreplay/issues ##
  1977. ## ---------------------------------------------------------- ##"
  1978. ) | sed "s/^/$as_me: WARNING: /" >&2
  1979. ;;
  1980. esac
  1981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1982. $as_echo_n "checking for $2... " >&6; }
  1983. if eval \${$3+:} false; then :
  1984. $as_echo_n "(cached) " >&6
  1985. else
  1986. eval "$3=\$ac_header_compiler"
  1987. fi
  1988. eval ac_res=\$$3
  1989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1990. $as_echo "$ac_res" >&6; }
  1991. fi
  1992. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1993. } # ac_fn_c_check_header_mongrel
  1994. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1995. # -------------------------------------------
  1996. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1997. # variable VAR accordingly.
  1998. ac_fn_c_check_type ()
  1999. {
  2000. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2002. $as_echo_n "checking for $2... " >&6; }
  2003. if eval \${$3+:} false; then :
  2004. $as_echo_n "(cached) " >&6
  2005. else
  2006. eval "$3=no"
  2007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2008. /* end confdefs.h. */
  2009. $4
  2010. int
  2011. main ()
  2012. {
  2013. if (sizeof ($2))
  2014. return 0;
  2015. ;
  2016. return 0;
  2017. }
  2018. _ACEOF
  2019. if ac_fn_c_try_compile "$LINENO"; then :
  2020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2021. /* end confdefs.h. */
  2022. $4
  2023. int
  2024. main ()
  2025. {
  2026. if (sizeof (($2)))
  2027. return 0;
  2028. ;
  2029. return 0;
  2030. }
  2031. _ACEOF
  2032. if ac_fn_c_try_compile "$LINENO"; then :
  2033. else
  2034. eval "$3=yes"
  2035. fi
  2036. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2037. fi
  2038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2039. fi
  2040. eval ac_res=\$$3
  2041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2042. $as_echo "$ac_res" >&6; }
  2043. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2044. } # ac_fn_c_check_type
  2045. # ac_fn_c_find_intX_t LINENO BITS VAR
  2046. # -----------------------------------
  2047. # Finds a signed integer type with width BITS, setting cache variable VAR
  2048. # accordingly.
  2049. ac_fn_c_find_intX_t ()
  2050. {
  2051. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  2053. $as_echo_n "checking for int$2_t... " >&6; }
  2054. if eval \${$3+:} false; then :
  2055. $as_echo_n "(cached) " >&6
  2056. else
  2057. eval "$3=no"
  2058. # Order is important - never check a type that is potentially smaller
  2059. # than half of the expected target width.
  2060. for ac_type in int$2_t 'int' 'long int' \
  2061. 'long long int' 'short int' 'signed char'; do
  2062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2063. /* end confdefs.h. */
  2064. $ac_includes_default
  2065. enum { N = $2 / 2 - 1 };
  2066. int
  2067. main ()
  2068. {
  2069. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  2070. test_array [0] = 0;
  2071. return test_array [0];
  2072. ;
  2073. return 0;
  2074. }
  2075. _ACEOF
  2076. if ac_fn_c_try_compile "$LINENO"; then :
  2077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2078. /* end confdefs.h. */
  2079. $ac_includes_default
  2080. enum { N = $2 / 2 - 1 };
  2081. int
  2082. main ()
  2083. {
  2084. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  2085. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  2086. test_array [0] = 0;
  2087. return test_array [0];
  2088. ;
  2089. return 0;
  2090. }
  2091. _ACEOF
  2092. if ac_fn_c_try_compile "$LINENO"; then :
  2093. else
  2094. case $ac_type in #(
  2095. int$2_t) :
  2096. eval "$3=yes" ;; #(
  2097. *) :
  2098. eval "$3=\$ac_type" ;;
  2099. esac
  2100. fi
  2101. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2102. fi
  2103. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2104. if eval test \"x\$"$3"\" = x"no"; then :
  2105. else
  2106. break
  2107. fi
  2108. done
  2109. fi
  2110. eval ac_res=\$$3
  2111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2112. $as_echo "$ac_res" >&6; }
  2113. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2114. } # ac_fn_c_find_intX_t
  2115. # ac_fn_c_find_uintX_t LINENO BITS VAR
  2116. # ------------------------------------
  2117. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  2118. # accordingly.
  2119. ac_fn_c_find_uintX_t ()
  2120. {
  2121. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  2123. $as_echo_n "checking for uint$2_t... " >&6; }
  2124. if eval \${$3+:} false; then :
  2125. $as_echo_n "(cached) " >&6
  2126. else
  2127. eval "$3=no"
  2128. # Order is important - never check a type that is potentially smaller
  2129. # than half of the expected target width.
  2130. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  2131. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  2132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2133. /* end confdefs.h. */
  2134. $ac_includes_default
  2135. int
  2136. main ()
  2137. {
  2138. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  2139. test_array [0] = 0;
  2140. return test_array [0];
  2141. ;
  2142. return 0;
  2143. }
  2144. _ACEOF
  2145. if ac_fn_c_try_compile "$LINENO"; then :
  2146. case $ac_type in #(
  2147. uint$2_t) :
  2148. eval "$3=yes" ;; #(
  2149. *) :
  2150. eval "$3=\$ac_type" ;;
  2151. esac
  2152. fi
  2153. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2154. if eval test \"x\$"$3"\" = x"no"; then :
  2155. else
  2156. break
  2157. fi
  2158. done
  2159. fi
  2160. eval ac_res=\$$3
  2161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2162. $as_echo "$ac_res" >&6; }
  2163. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2164. } # ac_fn_c_find_uintX_t
  2165. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2166. # ----------------------------------------------------
  2167. # Tries to find if the field MEMBER exists in type AGGR, after including
  2168. # INCLUDES, setting cache variable VAR accordingly.
  2169. ac_fn_c_check_member ()
  2170. {
  2171. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2173. $as_echo_n "checking for $2.$3... " >&6; }
  2174. if eval \${$4+:} false; then :
  2175. $as_echo_n "(cached) " >&6
  2176. else
  2177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2178. /* end confdefs.h. */
  2179. $5
  2180. int
  2181. main ()
  2182. {
  2183. static $2 ac_aggr;
  2184. if (ac_aggr.$3)
  2185. return 0;
  2186. ;
  2187. return 0;
  2188. }
  2189. _ACEOF
  2190. if ac_fn_c_try_compile "$LINENO"; then :
  2191. eval "$4=yes"
  2192. else
  2193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2194. /* end confdefs.h. */
  2195. $5
  2196. int
  2197. main ()
  2198. {
  2199. static $2 ac_aggr;
  2200. if (sizeof ac_aggr.$3)
  2201. return 0;
  2202. ;
  2203. return 0;
  2204. }
  2205. _ACEOF
  2206. if ac_fn_c_try_compile "$LINENO"; then :
  2207. eval "$4=yes"
  2208. else
  2209. eval "$4=no"
  2210. fi
  2211. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2212. fi
  2213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2214. fi
  2215. eval ac_res=\$$4
  2216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2217. $as_echo "$ac_res" >&6; }
  2218. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2219. } # ac_fn_c_check_member
  2220. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2221. # ---------------------------------------------
  2222. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2223. # accordingly.
  2224. ac_fn_c_check_decl ()
  2225. {
  2226. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2227. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2228. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2230. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2231. if eval \${$3+:} false; then :
  2232. $as_echo_n "(cached) " >&6
  2233. else
  2234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2235. /* end confdefs.h. */
  2236. $4
  2237. int
  2238. main ()
  2239. {
  2240. #ifndef $as_decl_name
  2241. #ifdef __cplusplus
  2242. (void) $as_decl_use;
  2243. #else
  2244. (void) $as_decl_name;
  2245. #endif
  2246. #endif
  2247. ;
  2248. return 0;
  2249. }
  2250. _ACEOF
  2251. if ac_fn_c_try_compile "$LINENO"; then :
  2252. eval "$3=yes"
  2253. else
  2254. eval "$3=no"
  2255. fi
  2256. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2257. fi
  2258. eval ac_res=\$$3
  2259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2260. $as_echo "$ac_res" >&6; }
  2261. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2262. } # ac_fn_c_check_decl
  2263. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2264. # --------------------------------------------
  2265. # Tries to find the compile-time value of EXPR in a program that includes
  2266. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2267. # computed
  2268. ac_fn_c_compute_int ()
  2269. {
  2270. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2271. if test "$cross_compiling" = yes; then
  2272. # Depending upon the size, compute the lo and hi bounds.
  2273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2274. /* end confdefs.h. */
  2275. $4
  2276. int
  2277. main ()
  2278. {
  2279. static int test_array [1 - 2 * !(($2) >= 0)];
  2280. test_array [0] = 0;
  2281. return test_array [0];
  2282. ;
  2283. return 0;
  2284. }
  2285. _ACEOF
  2286. if ac_fn_c_try_compile "$LINENO"; then :
  2287. ac_lo=0 ac_mid=0
  2288. while :; do
  2289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2290. /* end confdefs.h. */
  2291. $4
  2292. int
  2293. main ()
  2294. {
  2295. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2296. test_array [0] = 0;
  2297. return test_array [0];
  2298. ;
  2299. return 0;
  2300. }
  2301. _ACEOF
  2302. if ac_fn_c_try_compile "$LINENO"; then :
  2303. ac_hi=$ac_mid; break
  2304. else
  2305. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2306. if test $ac_lo -le $ac_mid; then
  2307. ac_lo= ac_hi=
  2308. break
  2309. fi
  2310. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2311. fi
  2312. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2313. done
  2314. else
  2315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2316. /* end confdefs.h. */
  2317. $4
  2318. int
  2319. main ()
  2320. {
  2321. static int test_array [1 - 2 * !(($2) < 0)];
  2322. test_array [0] = 0;
  2323. return test_array [0];
  2324. ;
  2325. return 0;
  2326. }
  2327. _ACEOF
  2328. if ac_fn_c_try_compile "$LINENO"; then :
  2329. ac_hi=-1 ac_mid=-1
  2330. while :; do
  2331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2332. /* end confdefs.h. */
  2333. $4
  2334. int
  2335. main ()
  2336. {
  2337. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2338. test_array [0] = 0;
  2339. return test_array [0];
  2340. ;
  2341. return 0;
  2342. }
  2343. _ACEOF
  2344. if ac_fn_c_try_compile "$LINENO"; then :
  2345. ac_lo=$ac_mid; break
  2346. else
  2347. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2348. if test $ac_mid -le $ac_hi; then
  2349. ac_lo= ac_hi=
  2350. break
  2351. fi
  2352. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2353. fi
  2354. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2355. done
  2356. else
  2357. ac_lo= ac_hi=
  2358. fi
  2359. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2360. fi
  2361. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2362. # Binary search between lo and hi bounds.
  2363. while test "x$ac_lo" != "x$ac_hi"; do
  2364. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2366. /* end confdefs.h. */
  2367. $4
  2368. int
  2369. main ()
  2370. {
  2371. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2372. test_array [0] = 0;
  2373. return test_array [0];
  2374. ;
  2375. return 0;
  2376. }
  2377. _ACEOF
  2378. if ac_fn_c_try_compile "$LINENO"; then :
  2379. ac_hi=$ac_mid
  2380. else
  2381. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2382. fi
  2383. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2384. done
  2385. case $ac_lo in #((
  2386. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2387. '') ac_retval=1 ;;
  2388. esac
  2389. else
  2390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2391. /* end confdefs.h. */
  2392. $4
  2393. static long int longval () { return $2; }
  2394. static unsigned long int ulongval () { return $2; }
  2395. #include <stdio.h>
  2396. #include <stdlib.h>
  2397. int
  2398. main ()
  2399. {
  2400. FILE *f = fopen ("conftest.val", "w");
  2401. if (! f)
  2402. return 1;
  2403. if (($2) < 0)
  2404. {
  2405. long int i = longval ();
  2406. if (i != ($2))
  2407. return 1;
  2408. fprintf (f, "%ld", i);
  2409. }
  2410. else
  2411. {
  2412. unsigned long int i = ulongval ();
  2413. if (i != ($2))
  2414. return 1;
  2415. fprintf (f, "%lu", i);
  2416. }
  2417. /* Do not output a trailing newline, as this causes \r\n confusion
  2418. on some platforms. */
  2419. return ferror (f) || fclose (f) != 0;
  2420. ;
  2421. return 0;
  2422. }
  2423. _ACEOF
  2424. if ac_fn_c_try_run "$LINENO"; then :
  2425. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2426. else
  2427. ac_retval=1
  2428. fi
  2429. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2430. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2431. rm -f conftest.val
  2432. fi
  2433. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2434. as_fn_set_status $ac_retval
  2435. } # ac_fn_c_compute_int
  2436. cat >config.log <<_ACEOF
  2437. This file contains any messages produced by compilers while
  2438. running configure, to aid debugging if configure makes a mistake.
  2439. It was created by tcpreplay $as_me 4.3.2, which was
  2440. generated by GNU Autoconf 2.69. Invocation command line was
  2441. $ $0 $@
  2442. _ACEOF
  2443. exec 5>>config.log
  2444. {
  2445. cat <<_ASUNAME
  2446. ## --------- ##
  2447. ## Platform. ##
  2448. ## --------- ##
  2449. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2450. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2451. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2452. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2453. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2454. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2455. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2456. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2457. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2458. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2459. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2460. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2461. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2462. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2463. _ASUNAME
  2464. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2465. for as_dir in $PATH
  2466. do
  2467. IFS=$as_save_IFS
  2468. test -z "$as_dir" && as_dir=.
  2469. $as_echo "PATH: $as_dir"
  2470. done
  2471. IFS=$as_save_IFS
  2472. } >&5
  2473. cat >&5 <<_ACEOF
  2474. ## ----------- ##
  2475. ## Core tests. ##
  2476. ## ----------- ##
  2477. _ACEOF
  2478. # Keep a trace of the command line.
  2479. # Strip out --no-create and --no-recursion so they do not pile up.
  2480. # Strip out --silent because we don't want to record it for future runs.
  2481. # Also quote any args containing shell meta-characters.
  2482. # Make two passes to allow for proper duplicate-argument suppression.
  2483. ac_configure_args=
  2484. ac_configure_args0=
  2485. ac_configure_args1=
  2486. ac_must_keep_next=false
  2487. for ac_pass in 1 2
  2488. do
  2489. for ac_arg
  2490. do
  2491. case $ac_arg in
  2492. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2493. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2494. | -silent | --silent | --silen | --sile | --sil)
  2495. continue ;;
  2496. *\'*)
  2497. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2498. esac
  2499. case $ac_pass in
  2500. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2501. 2)
  2502. as_fn_append ac_configure_args1 " '$ac_arg'"
  2503. if test $ac_must_keep_next = true; then
  2504. ac_must_keep_next=false # Got value, back to normal.
  2505. else
  2506. case $ac_arg in
  2507. *=* | --config-cache | -C | -disable-* | --disable-* \
  2508. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2509. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2510. | -with-* | --with-* | -without-* | --without-* | --x)
  2511. case "$ac_configure_args0 " in
  2512. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2513. esac
  2514. ;;
  2515. -* ) ac_must_keep_next=true ;;
  2516. esac
  2517. fi
  2518. as_fn_append ac_configure_args " '$ac_arg'"
  2519. ;;
  2520. esac
  2521. done
  2522. done
  2523. { ac_configure_args0=; unset ac_configure_args0;}
  2524. { ac_configure_args1=; unset ac_configure_args1;}
  2525. # When interrupted or exit'd, cleanup temporary files, and complete
  2526. # config.log. We remove comments because anyway the quotes in there
  2527. # would cause problems or look ugly.
  2528. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2529. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2530. trap 'exit_status=$?
  2531. # Save into config.log some information that might help in debugging.
  2532. {
  2533. echo
  2534. $as_echo "## ---------------- ##
  2535. ## Cache variables. ##
  2536. ## ---------------- ##"
  2537. echo
  2538. # The following way of writing the cache mishandles newlines in values,
  2539. (
  2540. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2541. eval ac_val=\$$ac_var
  2542. case $ac_val in #(
  2543. *${as_nl}*)
  2544. case $ac_var in #(
  2545. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2546. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2547. esac
  2548. case $ac_var in #(
  2549. _ | IFS | as_nl) ;; #(
  2550. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2551. *) { eval $ac_var=; unset $ac_var;} ;;
  2552. esac ;;
  2553. esac
  2554. done
  2555. (set) 2>&1 |
  2556. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2557. *${as_nl}ac_space=\ *)
  2558. sed -n \
  2559. "s/'\''/'\''\\\\'\'''\''/g;
  2560. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2561. ;; #(
  2562. *)
  2563. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2564. ;;
  2565. esac |
  2566. sort
  2567. )
  2568. echo
  2569. $as_echo "## ----------------- ##
  2570. ## Output variables. ##
  2571. ## ----------------- ##"
  2572. echo
  2573. for ac_var in $ac_subst_vars
  2574. do
  2575. eval ac_val=\$$ac_var
  2576. case $ac_val in
  2577. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2578. esac
  2579. $as_echo "$ac_var='\''$ac_val'\''"
  2580. done | sort
  2581. echo
  2582. if test -n "$ac_subst_files"; then
  2583. $as_echo "## ------------------- ##
  2584. ## File substitutions. ##
  2585. ## ------------------- ##"
  2586. echo
  2587. for ac_var in $ac_subst_files
  2588. do
  2589. eval ac_val=\$$ac_var
  2590. case $ac_val in
  2591. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2592. esac
  2593. $as_echo "$ac_var='\''$ac_val'\''"
  2594. done | sort
  2595. echo
  2596. fi
  2597. if test -s confdefs.h; then
  2598. $as_echo "## ----------- ##
  2599. ## confdefs.h. ##
  2600. ## ----------- ##"
  2601. echo
  2602. cat confdefs.h
  2603. echo
  2604. fi
  2605. test "$ac_signal" != 0 &&
  2606. $as_echo "$as_me: caught signal $ac_signal"
  2607. $as_echo "$as_me: exit $exit_status"
  2608. } >&5
  2609. rm -f core *.core core.conftest.* &&
  2610. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2611. exit $exit_status
  2612. ' 0
  2613. for ac_signal in 1 2 13 15; do
  2614. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2615. done
  2616. ac_signal=0
  2617. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2618. rm -f -r conftest* confdefs.h
  2619. $as_echo "/* confdefs.h */" > confdefs.h
  2620. # Predefined preprocessor variables.
  2621. cat >>confdefs.h <<_ACEOF
  2622. #define PACKAGE_NAME "$PACKAGE_NAME"
  2623. _ACEOF
  2624. cat >>confdefs.h <<_ACEOF
  2625. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2626. _ACEOF
  2627. cat >>confdefs.h <<_ACEOF
  2628. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2629. _ACEOF
  2630. cat >>confdefs.h <<_ACEOF
  2631. #define PACKAGE_STRING "$PACKAGE_STRING"
  2632. _ACEOF
  2633. cat >>confdefs.h <<_ACEOF
  2634. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2635. _ACEOF
  2636. cat >>confdefs.h <<_ACEOF
  2637. #define PACKAGE_URL "$PACKAGE_URL"
  2638. _ACEOF
  2639. # Let the site file select an alternate cache file if it wants to.
  2640. # Prefer an explicitly selected file to automatically selected ones.
  2641. ac_site_file1=NONE
  2642. ac_site_file2=NONE
  2643. if test -n "$CONFIG_SITE"; then
  2644. # We do not want a PATH search for config.site.
  2645. case $CONFIG_SITE in #((
  2646. -*) ac_site_file1=./$CONFIG_SITE;;
  2647. */*) ac_site_file1=$CONFIG_SITE;;
  2648. *) ac_site_file1=./$CONFIG_SITE;;
  2649. esac
  2650. elif test "x$prefix" != xNONE; then
  2651. ac_site_file1=$prefix/share/config.site
  2652. ac_site_file2=$prefix/etc/config.site
  2653. else
  2654. ac_site_file1=$ac_default_prefix/share/config.site
  2655. ac_site_file2=$ac_default_prefix/etc/config.site
  2656. fi
  2657. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2658. do
  2659. test "x$ac_site_file" = xNONE && continue
  2660. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2661. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2662. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2663. sed 's/^/| /' "$ac_site_file" >&5
  2664. . "$ac_site_file" \
  2665. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2666. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2667. as_fn_error $? "failed to load site script $ac_site_file
  2668. See \`config.log' for more details" "$LINENO" 5; }
  2669. fi
  2670. done
  2671. if test -r "$cache_file"; then
  2672. # Some versions of bash will fail to source /dev/null (special files
  2673. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2674. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2675. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2676. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2677. case $cache_file in
  2678. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2679. *) . "./$cache_file";;
  2680. esac
  2681. fi
  2682. else
  2683. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2684. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2685. >$cache_file
  2686. fi
  2687. as_fn_append ac_header_list " sys/time.h"
  2688. as_fn_append ac_header_list " unistd.h"
  2689. as_fn_append ac_func_list " alarm"
  2690. as_fn_append ac_header_list " stdlib.h"
  2691. as_fn_append ac_header_list " sys/param.h"
  2692. # Check that the precious variables saved in the cache have kept the same
  2693. # value.
  2694. ac_cache_corrupted=false
  2695. for ac_var in $ac_precious_vars; do
  2696. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2697. eval ac_new_set=\$ac_env_${ac_var}_set
  2698. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2699. eval ac_new_val=\$ac_env_${ac_var}_value
  2700. case $ac_old_set,$ac_new_set in
  2701. set,)
  2702. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2703. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2704. ac_cache_corrupted=: ;;
  2705. ,set)
  2706. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2707. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2708. ac_cache_corrupted=: ;;
  2709. ,);;
  2710. *)
  2711. if test "x$ac_old_val" != "x$ac_new_val"; then
  2712. # differences in whitespace do not lead to failure.
  2713. ac_old_val_w=`echo x $ac_old_val`
  2714. ac_new_val_w=`echo x $ac_new_val`
  2715. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2716. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2717. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2718. ac_cache_corrupted=:
  2719. else
  2720. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2721. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2722. eval $ac_var=\$ac_old_val
  2723. fi
  2724. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2725. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2726. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2727. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2728. fi;;
  2729. esac
  2730. # Pass precious variables to config.status.
  2731. if test "$ac_new_set" = set; then
  2732. case $ac_new_val in
  2733. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2734. *) ac_arg=$ac_var=$ac_new_val ;;
  2735. esac
  2736. case " $ac_configure_args " in
  2737. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2738. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2739. esac
  2740. fi
  2741. done
  2742. if $ac_cache_corrupted; then
  2743. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2744. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2745. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2746. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2747. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2748. fi
  2749. ## -------------------- ##
  2750. ## Main body of script. ##
  2751. ## -------------------- ##
  2752. ac_ext=c
  2753. ac_cpp='$CPP $CPPFLAGS'
  2754. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2755. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2756. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2757. ac_config_headers="$ac_config_headers src/config.h"
  2758. ac_aux_dir=
  2759. for ac_dir in config "$srcdir"/config; do
  2760. if test -f "$ac_dir/install-sh"; then
  2761. ac_aux_dir=$ac_dir
  2762. ac_install_sh="$ac_aux_dir/install-sh -c"
  2763. break
  2764. elif test -f "$ac_dir/install.sh"; then
  2765. ac_aux_dir=$ac_dir
  2766. ac_install_sh="$ac_aux_dir/install.sh -c"
  2767. break
  2768. elif test -f "$ac_dir/shtool"; then
  2769. ac_aux_dir=$ac_dir
  2770. ac_install_sh="$ac_aux_dir/shtool install -c"
  2771. break
  2772. fi
  2773. done
  2774. if test -z "$ac_aux_dir"; then
  2775. as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
  2776. fi
  2777. # These three variables are undocumented and unsupported,
  2778. # and are intended to be withdrawn in a future Autoconf release.
  2779. # They can cause serious problems if a builder's source tree is in a directory
  2780. # whose full name contains unusual characters.
  2781. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2782. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2783. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2785. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2786. # Check whether --enable-maintainer-mode was given.
  2787. if test "${enable_maintainer_mode+set}" = set; then :
  2788. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2789. else
  2790. USE_MAINTAINER_MODE=yes
  2791. fi
  2792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2793. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2794. if test $USE_MAINTAINER_MODE = yes; then
  2795. MAINTAINER_MODE_TRUE=
  2796. MAINTAINER_MODE_FALSE='#'
  2797. else
  2798. MAINTAINER_MODE_TRUE='#'
  2799. MAINTAINER_MODE_FALSE=
  2800. fi
  2801. MAINT=$MAINTAINER_MODE_TRUE
  2802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
  2803. $as_echo_n "checking if malloc debugging is wanted... " >&6; }
  2804. # Check whether --with-dmalloc was given.
  2805. if test "${with_dmalloc+set}" = set; then :
  2806. withval=$with_dmalloc; if test "$withval" = yes; then
  2807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2808. $as_echo "yes" >&6; }
  2809. $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
  2810. LIBS="$LIBS -ldmalloc"
  2811. LDFLAGS="$LDFLAGS -g"
  2812. else
  2813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2814. $as_echo "no" >&6; }
  2815. fi
  2816. else
  2817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2818. $as_echo "no" >&6; }
  2819. fi
  2820. MAINTAINER_AUTOGEN_VERSION=5.18.12
  2821. TCPREPLAY_VERSION=$PACKAGE_VERSION
  2822. TCPREPLAY_RELEASE=1
  2823. # Make sure we can run config.sub.
  2824. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2825. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2827. $as_echo_n "checking build system type... " >&6; }
  2828. if ${ac_cv_build+:} false; then :
  2829. $as_echo_n "(cached) " >&6
  2830. else
  2831. ac_build_alias=$build_alias
  2832. test "x$ac_build_alias" = x &&
  2833. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2834. test "x$ac_build_alias" = x &&
  2835. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2836. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2837. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2838. fi
  2839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2840. $as_echo "$ac_cv_build" >&6; }
  2841. case $ac_cv_build in
  2842. *-*-*) ;;
  2843. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2844. esac
  2845. build=$ac_cv_build
  2846. ac_save_IFS=$IFS; IFS='-'
  2847. set x $ac_cv_build
  2848. shift
  2849. build_cpu=$1
  2850. build_vendor=$2
  2851. shift; shift
  2852. # Remember, the first character of IFS is used to create $*,
  2853. # except with old shells:
  2854. build_os=$*
  2855. IFS=$ac_save_IFS
  2856. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2858. $as_echo_n "checking host system type... " >&6; }
  2859. if ${ac_cv_host+:} false; then :
  2860. $as_echo_n "(cached) " >&6
  2861. else
  2862. if test "x$host_alias" = x; then
  2863. ac_cv_host=$ac_cv_build
  2864. else
  2865. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2866. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2867. fi
  2868. fi
  2869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2870. $as_echo "$ac_cv_host" >&6; }
  2871. case $ac_cv_host in
  2872. *-*-*) ;;
  2873. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2874. esac
  2875. host=$ac_cv_host
  2876. ac_save_IFS=$IFS; IFS='-'
  2877. set x $ac_cv_host
  2878. shift
  2879. host_cpu=$1
  2880. host_vendor=$2
  2881. shift; shift
  2882. # Remember, the first character of IFS is used to create $*,
  2883. # except with old shells:
  2884. host_os=$*
  2885. IFS=$ac_save_IFS
  2886. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2888. $as_echo_n "checking target system type... " >&6; }
  2889. if ${ac_cv_target+:} false; then :
  2890. $as_echo_n "(cached) " >&6
  2891. else
  2892. if test "x$target_alias" = x; then
  2893. ac_cv_target=$ac_cv_host
  2894. else
  2895. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2896. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2897. fi
  2898. fi
  2899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2900. $as_echo "$ac_cv_target" >&6; }
  2901. case $ac_cv_target in
  2902. *-*-*) ;;
  2903. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2904. esac
  2905. target=$ac_cv_target
  2906. ac_save_IFS=$IFS; IFS='-'
  2907. set x $ac_cv_target
  2908. shift
  2909. target_cpu=$1
  2910. target_vendor=$2
  2911. shift; shift
  2912. # Remember, the first character of IFS is used to create $*,
  2913. # except with old shells:
  2914. target_os=$*
  2915. IFS=$ac_save_IFS
  2916. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2917. # The aliases save the names the user supplied, while $host etc.
  2918. # will get canonicalized.
  2919. test -n "$target_alias" &&
  2920. test "$program_prefix$program_suffix$program_transform_name" = \
  2921. NONENONEs,x,x, &&
  2922. program_prefix=${target_alias}-
  2923. CROSS_ARCH=
  2924. CROSS_LD=
  2925. build_arch=$(echo $MACHTYPE | cut -d'-' -f1)
  2926. if test "$cross_compiling" = "yes" ; then
  2927. CROSS_ARCH="ARCH=$host_cpu"
  2928. CROSS_LD="LD=$LD"
  2929. fi
  2930. MULTIARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH) 2> /dev/null || ${host_cpu}-${host_os}
  2931. # Check whether --with-macosx-sdk was given.
  2932. if test "${with_macosx_sdk+set}" = set; then :
  2933. withval=$with_macosx_sdk;
  2934. fi
  2935. case "$host_os" in
  2936. darwin*) # Mac OS X or iOS
  2937. # If no --with-macosx-sdk option is given, look for one
  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. { $as_echo "$as_me:${as_lineno-$LINENO}: checking what macOS compiler to use" >&5
  2944. $as_echo_n "checking what macOS compiler to use... " >&6; }
  2945. for _macosx_sdk in $with_macosx_sdk 10.8 10.9 10.10 10.11 10.12 10.13 10.14 10.15 10.16.10.17 10.18 10.19 10.20 11.0 11.1 11.2 11.3 11.4 11.5; do
  2946. MACOSX_SDK_PATH=$(xcrun --sdk macosx${_macosx_sdk} --show-sdk-path 2> /dev/null)
  2947. if test -d "$MACOSX_SDK_PATH"; then
  2948. with_macosx_sdk="${_macosx_sdk}"
  2949. break
  2950. else
  2951. MACOSX_SDK_PATH="$(xcode-select -print-path)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX${_macosx_sdk}.sdk"
  2952. if test -d "$MACOSX_SDK_PATH"; then
  2953. with_macosx_sdk="${_macosx_sdk}"
  2954. break
  2955. fi
  2956. fi
  2957. done
  2958. if test -d "$MACOSX_SDK_PATH"; then
  2959. CC="$(xcrun -find clang) -m64 -isysroot $MACOSX_SDK_PATH"
  2960. INSTALL_NAME_TOOL=$(xcrun -find install_name_tool)
  2961. AR=$(xcrun -find ar)
  2962. NM=$(xcrun -find nm)
  2963. STRIP=$(xcrun -find strip)
  2964. LIBTOOL=$(xcrun -find libtool)
  2965. RANLIB=$(xcrun -find ranlib)
  2966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2967. $as_echo "$CC" >&6; }
  2968. else
  2969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: legacy" >&5
  2970. $as_echo "legacy" >&6; }
  2971. fi
  2972. ;;
  2973. esac
  2974. # Note that the OS X libtool command is unrelated to GNU libtool
  2975. # Check whether --with-pfring-lib was given.
  2976. if test "${with_pfring_lib+set}" = set; then :
  2977. withval=$with_pfring_lib;
  2978. fi
  2979. have_cygwin=no
  2980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin development environment" >&5
  2981. $as_echo_n "checking for cygwin development environment... " >&6; }
  2982. if test $(echo $target | grep -c cygwin) -gt 0 ; then
  2983. $as_echo "#define HAVE_WIN32 1" >>confdefs.h
  2984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2985. $as_echo "yes" >&6; }
  2986. have_cygwin=yes
  2987. else
  2988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2989. $as_echo "no" >&6; }
  2990. fi
  2991. am__api_version='1.15'
  2992. # Find a good install program. We prefer a C program (faster),
  2993. # so one script is as good as another. But avoid the broken or
  2994. # incompatible versions:
  2995. # SysV /etc/install, /usr/sbin/install
  2996. # SunOS /usr/etc/install
  2997. # IRIX /sbin/install
  2998. # AIX /bin/install
  2999. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3000. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3001. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3002. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3003. # OS/2's system install, which has a completely different semantic
  3004. # ./install, which can be erroneously created by make from ./install.sh.
  3005. # Reject install programs that cannot install multiple files.
  3006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3007. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3008. if test -z "$INSTALL"; then
  3009. if ${ac_cv_path_install+:} false; then :
  3010. $as_echo_n "(cached) " >&6
  3011. else
  3012. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3013. for as_dir in $PATH
  3014. do
  3015. IFS=$as_save_IFS
  3016. test -z "$as_dir" && as_dir=.
  3017. # Account for people who put trailing slashes in PATH elements.
  3018. case $as_dir/ in #((
  3019. ./ | .// | /[cC]/* | \
  3020. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3021. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3022. /usr/ucb/* ) ;;
  3023. *)
  3024. # OSF1 and SCO ODT 3.0 have their own names for install.
  3025. # Don't use installbsd from OSF since it installs stuff as root
  3026. # by default.
  3027. for ac_prog in ginstall scoinst install; do
  3028. for ac_exec_ext in '' $ac_executable_extensions; do
  3029. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3030. if test $ac_prog = install &&
  3031. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3032. # AIX install. It has an incompatible calling convention.
  3033. :
  3034. elif test $ac_prog = install &&
  3035. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3036. # program-specific install script used by HP pwplus--don't use.
  3037. :
  3038. else
  3039. rm -rf conftest.one conftest.two conftest.dir
  3040. echo one > conftest.one
  3041. echo two > conftest.two
  3042. mkdir conftest.dir
  3043. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3044. test -s conftest.one && test -s conftest.two &&
  3045. test -s conftest.dir/conftest.one &&
  3046. test -s conftest.dir/conftest.two
  3047. then
  3048. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3049. break 3
  3050. fi
  3051. fi
  3052. fi
  3053. done
  3054. done
  3055. ;;
  3056. esac
  3057. done
  3058. IFS=$as_save_IFS
  3059. rm -rf conftest.one conftest.two conftest.dir
  3060. fi
  3061. if test "${ac_cv_path_install+set}" = set; then
  3062. INSTALL=$ac_cv_path_install
  3063. else
  3064. # As a last resort, use the slow shell script. Don't cache a
  3065. # value for INSTALL within a source directory, because that will
  3066. # break other packages using the cache if that directory is
  3067. # removed, or if the value is a relative name.
  3068. INSTALL=$ac_install_sh
  3069. fi
  3070. fi
  3071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3072. $as_echo "$INSTALL" >&6; }
  3073. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3074. # It thinks the first close brace ends the variable substitution.
  3075. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3076. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3077. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3079. $as_echo_n "checking whether build environment is sane... " >&6; }
  3080. # Reject unsafe characters in $srcdir or the absolute working directory
  3081. # name. Accept space and tab only in the latter.
  3082. am_lf='
  3083. '
  3084. case `pwd` in
  3085. *[\\\"\#\$\&\'\`$am_lf]*)
  3086. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  3087. esac
  3088. case $srcdir in
  3089. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3090. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  3091. esac
  3092. # Do 'set' in a subshell so we don't clobber the current shell's
  3093. # arguments. Must try -L first in case configure is actually a
  3094. # symlink; some systems play weird games with the mod time of symlinks
  3095. # (eg FreeBSD returns the mod time of the symlink's containing
  3096. # directory).
  3097. if (
  3098. am_has_slept=no
  3099. for am_try in 1 2; do
  3100. echo "timestamp, slept: $am_has_slept" > conftest.file
  3101. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3102. if test "$*" = "X"; then
  3103. # -L didn't work.
  3104. set X `ls -t "$srcdir/configure" conftest.file`
  3105. fi
  3106. if test "$*" != "X $srcdir/configure conftest.file" \
  3107. && test "$*" != "X conftest.file $srcdir/configure"; then
  3108. # If neither matched, then we have a broken ls. This can happen
  3109. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3110. # broken ls alias from the environment. This has actually
  3111. # happened. Such a system could not be considered "sane".
  3112. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  3113. alias in your environment" "$LINENO" 5
  3114. fi
  3115. if test "$2" = conftest.file || test $am_try -eq 2; then
  3116. break
  3117. fi
  3118. # Just in case.
  3119. sleep 1
  3120. am_has_slept=yes
  3121. done
  3122. test "$2" = conftest.file
  3123. )
  3124. then
  3125. # Ok.
  3126. :
  3127. else
  3128. as_fn_error $? "newly created file is older than distributed files!
  3129. Check your system clock" "$LINENO" 5
  3130. fi
  3131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3132. $as_echo "yes" >&6; }
  3133. # If we didn't sleep, we still need to ensure time stamps of config.status and
  3134. # generated files are strictly newer.
  3135. am_sleep_pid=
  3136. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  3137. ( sleep 1 ) &
  3138. am_sleep_pid=$!
  3139. fi
  3140. rm -f conftest.file
  3141. test "$program_prefix" != NONE &&
  3142. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3143. # Use a double $ so make ignores it.
  3144. test "$program_suffix" != NONE &&
  3145. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3146. # Double any \ or $.
  3147. # By default was `s,x,x', remove it if useless.
  3148. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3149. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3150. # Expand $ac_aux_dir to an absolute path.
  3151. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  3152. if test x"${MISSING+set}" != xset; then
  3153. case $am_aux_dir in
  3154. *\ * | *\ *)
  3155. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3156. *)
  3157. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3158. esac
  3159. fi
  3160. # Use eval to expand $SHELL
  3161. if eval "$MISSING --is-lightweight"; then
  3162. am_missing_run="$MISSING "
  3163. else
  3164. am_missing_run=
  3165. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  3166. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  3167. fi
  3168. if test x"${install_sh+set}" != xset; then
  3169. case $am_aux_dir in
  3170. *\ * | *\ *)
  3171. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3172. *)
  3173. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3174. esac
  3175. fi
  3176. # Installed binaries are usually stripped using 'strip' when the user
  3177. # run "make install-strip". However 'strip' might not be the right
  3178. # tool to use in cross-compilation environments, therefore Automake
  3179. # will honor the 'STRIP' environment variable to overrule this program.
  3180. if test "$cross_compiling" != no; then
  3181. if test -n "$ac_tool_prefix"; then
  3182. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3183. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3185. $as_echo_n "checking for $ac_word... " >&6; }
  3186. if ${ac_cv_prog_STRIP+:} false; then :
  3187. $as_echo_n "(cached) " >&6
  3188. else
  3189. if test -n "$STRIP"; then
  3190. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3191. else
  3192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3193. for as_dir in $PATH
  3194. do
  3195. IFS=$as_save_IFS
  3196. test -z "$as_dir" && as_dir=.
  3197. for ac_exec_ext in '' $ac_executable_extensions; do
  3198. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3199. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3200. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3201. break 2
  3202. fi
  3203. done
  3204. done
  3205. IFS=$as_save_IFS
  3206. fi
  3207. fi
  3208. STRIP=$ac_cv_prog_STRIP
  3209. if test -n "$STRIP"; then
  3210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3211. $as_echo "$STRIP" >&6; }
  3212. else
  3213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3214. $as_echo "no" >&6; }
  3215. fi
  3216. fi
  3217. if test -z "$ac_cv_prog_STRIP"; then
  3218. ac_ct_STRIP=$STRIP
  3219. # Extract the first word of "strip", so it can be a program name with args.
  3220. set dummy strip; ac_word=$2
  3221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3222. $as_echo_n "checking for $ac_word... " >&6; }
  3223. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  3224. $as_echo_n "(cached) " >&6
  3225. else
  3226. if test -n "$ac_ct_STRIP"; then
  3227. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3228. else
  3229. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3230. for as_dir in $PATH
  3231. do
  3232. IFS=$as_save_IFS
  3233. test -z "$as_dir" && as_dir=.
  3234. for ac_exec_ext in '' $ac_executable_extensions; do
  3235. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3236. ac_cv_prog_ac_ct_STRIP="strip"
  3237. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3238. break 2
  3239. fi
  3240. done
  3241. done
  3242. IFS=$as_save_IFS
  3243. fi
  3244. fi
  3245. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3246. if test -n "$ac_ct_STRIP"; then
  3247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3248. $as_echo "$ac_ct_STRIP" >&6; }
  3249. else
  3250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3251. $as_echo "no" >&6; }
  3252. fi
  3253. if test "x$ac_ct_STRIP" = x; then
  3254. STRIP=":"
  3255. else
  3256. case $cross_compiling:$ac_tool_warned in
  3257. yes:)
  3258. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3259. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3260. ac_tool_warned=yes ;;
  3261. esac
  3262. STRIP=$ac_ct_STRIP
  3263. fi
  3264. else
  3265. STRIP="$ac_cv_prog_STRIP"
  3266. fi
  3267. fi
  3268. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3270. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3271. if test -z "$MKDIR_P"; then
  3272. if ${ac_cv_path_mkdir+:} false; then :
  3273. $as_echo_n "(cached) " >&6
  3274. else
  3275. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3276. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3277. do
  3278. IFS=$as_save_IFS
  3279. test -z "$as_dir" && as_dir=.
  3280. for ac_prog in mkdir gmkdir; do
  3281. for ac_exec_ext in '' $ac_executable_extensions; do
  3282. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  3283. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3284. 'mkdir (GNU coreutils) '* | \
  3285. 'mkdir (coreutils) '* | \
  3286. 'mkdir (fileutils) '4.1*)
  3287. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3288. break 3;;
  3289. esac
  3290. done
  3291. done
  3292. done
  3293. IFS=$as_save_IFS
  3294. fi
  3295. test -d ./--version && rmdir ./--version
  3296. if test "${ac_cv_path_mkdir+set}" = set; then
  3297. MKDIR_P="$ac_cv_path_mkdir -p"
  3298. else
  3299. # As a last resort, use the slow shell script. Don't cache a
  3300. # value for MKDIR_P within a source directory, because that will
  3301. # break other packages using the cache if that directory is
  3302. # removed, or if the value is a relative name.
  3303. MKDIR_P="$ac_install_sh -d"
  3304. fi
  3305. fi
  3306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3307. $as_echo "$MKDIR_P" >&6; }
  3308. for ac_prog in gawk mawk nawk awk
  3309. do
  3310. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3311. set dummy $ac_prog; ac_word=$2
  3312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3313. $as_echo_n "checking for $ac_word... " >&6; }
  3314. if ${ac_cv_prog_AWK+:} false; then :
  3315. $as_echo_n "(cached) " >&6
  3316. else
  3317. if test -n "$AWK"; then
  3318. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3319. else
  3320. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3321. for as_dir in $PATH
  3322. do
  3323. IFS=$as_save_IFS
  3324. test -z "$as_dir" && as_dir=.
  3325. for ac_exec_ext in '' $ac_executable_extensions; do
  3326. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3327. ac_cv_prog_AWK="$ac_prog"
  3328. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3329. break 2
  3330. fi
  3331. done
  3332. done
  3333. IFS=$as_save_IFS
  3334. fi
  3335. fi
  3336. AWK=$ac_cv_prog_AWK
  3337. if test -n "$AWK"; then
  3338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3339. $as_echo "$AWK" >&6; }
  3340. else
  3341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3342. $as_echo "no" >&6; }
  3343. fi
  3344. test -n "$AWK" && break
  3345. done
  3346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3347. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3348. set x ${MAKE-make}
  3349. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3350. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3351. $as_echo_n "(cached) " >&6
  3352. else
  3353. cat >conftest.make <<\_ACEOF
  3354. SHELL = /bin/sh
  3355. all:
  3356. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3357. _ACEOF
  3358. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3359. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3360. *@@@%%%=?*=@@@%%%*)
  3361. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3362. *)
  3363. eval ac_cv_prog_make_${ac_make}_set=no;;
  3364. esac
  3365. rm -f conftest.make
  3366. fi
  3367. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3369. $as_echo "yes" >&6; }
  3370. SET_MAKE=
  3371. else
  3372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3373. $as_echo "no" >&6; }
  3374. SET_MAKE="MAKE=${MAKE-make}"
  3375. fi
  3376. rm -rf .tst 2>/dev/null
  3377. mkdir .tst 2>/dev/null
  3378. if test -d .tst; then
  3379. am__leading_dot=.
  3380. else
  3381. am__leading_dot=_
  3382. fi
  3383. rmdir .tst 2>/dev/null
  3384. # Check whether --enable-silent-rules was given.
  3385. if test "${enable_silent_rules+set}" = set; then :
  3386. enableval=$enable_silent_rules;
  3387. fi
  3388. case $enable_silent_rules in # (((
  3389. yes) AM_DEFAULT_VERBOSITY=0;;
  3390. no) AM_DEFAULT_VERBOSITY=1;;
  3391. *) AM_DEFAULT_VERBOSITY=1;;
  3392. esac
  3393. am_make=${MAKE-make}
  3394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3395. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3396. if ${am_cv_make_support_nested_variables+:} false; then :
  3397. $as_echo_n "(cached) " >&6
  3398. else
  3399. if $as_echo 'TRUE=$(BAR$(V))
  3400. BAR0=false
  3401. BAR1=true
  3402. V=1
  3403. am__doit:
  3404. @$(TRUE)
  3405. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3406. am_cv_make_support_nested_variables=yes
  3407. else
  3408. am_cv_make_support_nested_variables=no
  3409. fi
  3410. fi
  3411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3412. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3413. if test $am_cv_make_support_nested_variables = yes; then
  3414. AM_V='$(V)'
  3415. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3416. else
  3417. AM_V=$AM_DEFAULT_VERBOSITY
  3418. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3419. fi
  3420. AM_BACKSLASH='\'
  3421. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3422. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3423. # is not polluted with repeated "-I."
  3424. am__isrc=' -I$(srcdir)'
  3425. # test to see if srcdir already configured
  3426. if test -f $srcdir/config.status; then
  3427. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3428. fi
  3429. fi
  3430. # test whether we have cygpath
  3431. if test -z "$CYGPATH_W"; then
  3432. if (cygpath --version) >/dev/null 2>/dev/null; then
  3433. CYGPATH_W='cygpath -w'
  3434. else
  3435. CYGPATH_W=echo
  3436. fi
  3437. fi
  3438. # Define the identity of the package.
  3439. PACKAGE='tcpreplay'
  3440. VERSION='4.3.2'
  3441. cat >>confdefs.h <<_ACEOF
  3442. #define PACKAGE "$PACKAGE"
  3443. _ACEOF
  3444. cat >>confdefs.h <<_ACEOF
  3445. #define VERSION "$VERSION"
  3446. _ACEOF
  3447. # Some tools Automake needs.
  3448. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3449. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3450. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3451. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3452. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3453. # For better backward compatibility. To be removed once Automake 1.9.x
  3454. # dies out for good. For more background, see:
  3455. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3456. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3457. mkdir_p='$(MKDIR_P)'
  3458. # We need awk for the "check" target (and possibly the TAP driver). The
  3459. # system "awk" is bad on some platforms.
  3460. # Always define AMTAR for backward compatibility. Yes, it's still used
  3461. # in the wild :-( We should find a proper way to deprecate it ...
  3462. AMTAR='$${TAR-tar}'
  3463. # We'll loop over all known methods to create a tar archive until one works.
  3464. _am_tools='gnutar pax cpio none'
  3465. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3466. # POSIX will say in a future version that running "rm -f" with no argument
  3467. # is OK; and we want to be able to make that assumption in our Makefile
  3468. # recipes. So use an aggressive probe to check that the usage we want is
  3469. # actually supported "in the wild" to an acceptable degree.
  3470. # See automake bug#10828.
  3471. # To make any issue more visible, cause the running configure to be aborted
  3472. # by default if the 'rm' program in use doesn't match our expectations; the
  3473. # user can still override this though.
  3474. if rm -f && rm -fr && rm -rf; then : OK; else
  3475. cat >&2 <<'END'
  3476. Oops!
  3477. Your 'rm' program seems unable to run without file operands specified
  3478. on the command line, even when the '-f' option is present. This is contrary
  3479. to the behaviour of most rm programs out there, and not conforming with
  3480. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3481. Please tell bug-automake@gnu.org about your system, including the value
  3482. of your $PATH and any error possibly output before this message. This
  3483. can help us improve future automake versions.
  3484. END
  3485. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3486. echo 'Configuration will proceed anyway, since you have set the' >&2
  3487. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3488. echo >&2
  3489. else
  3490. cat >&2 <<'END'
  3491. Aborting the configuration process, to ensure you take notice of the issue.
  3492. You can download and install GNU coreutils to get an 'rm' implementation
  3493. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3494. If you want to complete the configuration process using your problematic
  3495. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3496. to "yes", and re-run configure.
  3497. END
  3498. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3499. fi
  3500. fi
  3501. # Check whether --enable-silent-rules was given.
  3502. if test "${enable_silent_rules+set}" = set; then :
  3503. enableval=$enable_silent_rules;
  3504. fi
  3505. case $enable_silent_rules in # (((
  3506. yes) AM_DEFAULT_VERBOSITY=0;;
  3507. no) AM_DEFAULT_VERBOSITY=1;;
  3508. *) AM_DEFAULT_VERBOSITY=0;;
  3509. esac
  3510. am_make=${MAKE-make}
  3511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3512. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3513. if ${am_cv_make_support_nested_variables+:} false; then :
  3514. $as_echo_n "(cached) " >&6
  3515. else
  3516. if $as_echo 'TRUE=$(BAR$(V))
  3517. BAR0=false
  3518. BAR1=true
  3519. V=1
  3520. am__doit:
  3521. @$(TRUE)
  3522. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3523. am_cv_make_support_nested_variables=yes
  3524. else
  3525. am_cv_make_support_nested_variables=no
  3526. fi
  3527. fi
  3528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3529. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3530. if test $am_cv_make_support_nested_variables = yes; then
  3531. AM_V='$(V)'
  3532. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3533. else
  3534. AM_V=$AM_DEFAULT_VERBOSITY
  3535. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3536. fi
  3537. AM_BACKSLASH='\'
  3538. DEPDIR="${am__leading_dot}deps"
  3539. ac_config_commands="$ac_config_commands depfiles"
  3540. am_make=${MAKE-make}
  3541. cat > confinc << 'END'
  3542. am__doit:
  3543. @echo this is the am__doit target
  3544. .PHONY: am__doit
  3545. END
  3546. # If we don't find an include directive, just comment out the code.
  3547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3548. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3549. am__include="#"
  3550. am__quote=
  3551. _am_result=none
  3552. # First try GNU make style include.
  3553. echo "include confinc" > confmf
  3554. # Ignore all kinds of additional output from 'make'.
  3555. case `$am_make -s -f confmf 2> /dev/null` in #(
  3556. *the\ am__doit\ target*)
  3557. am__include=include
  3558. am__quote=
  3559. _am_result=GNU
  3560. ;;
  3561. esac
  3562. # Now try BSD make style include.
  3563. if test "$am__include" = "#"; then
  3564. echo '.include "confinc"' > confmf
  3565. case `$am_make -s -f confmf 2> /dev/null` in #(
  3566. *the\ am__doit\ target*)
  3567. am__include=.include
  3568. am__quote="\""
  3569. _am_result=BSD
  3570. ;;
  3571. esac
  3572. fi
  3573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3574. $as_echo "$_am_result" >&6; }
  3575. rm -f confinc confmf
  3576. # Check whether --enable-dependency-tracking was given.
  3577. if test "${enable_dependency_tracking+set}" = set; then :
  3578. enableval=$enable_dependency_tracking;
  3579. fi
  3580. if test "x$enable_dependency_tracking" != xno; then
  3581. am_depcomp="$ac_aux_dir/depcomp"
  3582. AMDEPBACKSLASH='\'
  3583. am__nodep='_no'
  3584. fi
  3585. if test "x$enable_dependency_tracking" != xno; then
  3586. AMDEP_TRUE=
  3587. AMDEP_FALSE='#'
  3588. else
  3589. AMDEP_TRUE='#'
  3590. AMDEP_FALSE=
  3591. fi
  3592. ac_ext=c
  3593. ac_cpp='$CPP $CPPFLAGS'
  3594. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3595. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3596. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3597. if test -n "$ac_tool_prefix"; then
  3598. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3599. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3601. $as_echo_n "checking for $ac_word... " >&6; }
  3602. if ${ac_cv_prog_CC+:} false; then :
  3603. $as_echo_n "(cached) " >&6
  3604. else
  3605. if test -n "$CC"; then
  3606. ac_cv_prog_CC="$CC" # Let the user override the test.
  3607. else
  3608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3609. for as_dir in $PATH
  3610. do
  3611. IFS=$as_save_IFS
  3612. test -z "$as_dir" && as_dir=.
  3613. for ac_exec_ext in '' $ac_executable_extensions; do
  3614. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3615. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3616. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3617. break 2
  3618. fi
  3619. done
  3620. done
  3621. IFS=$as_save_IFS
  3622. fi
  3623. fi
  3624. CC=$ac_cv_prog_CC
  3625. if test -n "$CC"; then
  3626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3627. $as_echo "$CC" >&6; }
  3628. else
  3629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3630. $as_echo "no" >&6; }
  3631. fi
  3632. fi
  3633. if test -z "$ac_cv_prog_CC"; then
  3634. ac_ct_CC=$CC
  3635. # Extract the first word of "gcc", so it can be a program name with args.
  3636. set dummy gcc; ac_word=$2
  3637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3638. $as_echo_n "checking for $ac_word... " >&6; }
  3639. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3640. $as_echo_n "(cached) " >&6
  3641. else
  3642. if test -n "$ac_ct_CC"; then
  3643. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3644. else
  3645. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3646. for as_dir in $PATH
  3647. do
  3648. IFS=$as_save_IFS
  3649. test -z "$as_dir" && as_dir=.
  3650. for ac_exec_ext in '' $ac_executable_extensions; do
  3651. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3652. ac_cv_prog_ac_ct_CC="gcc"
  3653. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3654. break 2
  3655. fi
  3656. done
  3657. done
  3658. IFS=$as_save_IFS
  3659. fi
  3660. fi
  3661. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3662. if test -n "$ac_ct_CC"; then
  3663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3664. $as_echo "$ac_ct_CC" >&6; }
  3665. else
  3666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3667. $as_echo "no" >&6; }
  3668. fi
  3669. if test "x$ac_ct_CC" = x; then
  3670. CC=""
  3671. else
  3672. case $cross_compiling:$ac_tool_warned in
  3673. yes:)
  3674. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3675. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3676. ac_tool_warned=yes ;;
  3677. esac
  3678. CC=$ac_ct_CC
  3679. fi
  3680. else
  3681. CC="$ac_cv_prog_CC"
  3682. fi
  3683. if test -z "$CC"; then
  3684. if test -n "$ac_tool_prefix"; then
  3685. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3686. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3688. $as_echo_n "checking for $ac_word... " >&6; }
  3689. if ${ac_cv_prog_CC+:} false; then :
  3690. $as_echo_n "(cached) " >&6
  3691. else
  3692. if test -n "$CC"; then
  3693. ac_cv_prog_CC="$CC" # Let the user override the test.
  3694. else
  3695. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3696. for as_dir in $PATH
  3697. do
  3698. IFS=$as_save_IFS
  3699. test -z "$as_dir" && as_dir=.
  3700. for ac_exec_ext in '' $ac_executable_extensions; do
  3701. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3702. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3703. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3704. break 2
  3705. fi
  3706. done
  3707. done
  3708. IFS=$as_save_IFS
  3709. fi
  3710. fi
  3711. CC=$ac_cv_prog_CC
  3712. if test -n "$CC"; then
  3713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3714. $as_echo "$CC" >&6; }
  3715. else
  3716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3717. $as_echo "no" >&6; }
  3718. fi
  3719. fi
  3720. fi
  3721. if test -z "$CC"; then
  3722. # Extract the first word of "cc", so it can be a program name with args.
  3723. set dummy cc; ac_word=$2
  3724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3725. $as_echo_n "checking for $ac_word... " >&6; }
  3726. if ${ac_cv_prog_CC+:} false; then :
  3727. $as_echo_n "(cached) " >&6
  3728. else
  3729. if test -n "$CC"; then
  3730. ac_cv_prog_CC="$CC" # Let the user override the test.
  3731. else
  3732. ac_prog_rejected=no
  3733. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3734. for as_dir in $PATH
  3735. do
  3736. IFS=$as_save_IFS
  3737. test -z "$as_dir" && as_dir=.
  3738. for ac_exec_ext in '' $ac_executable_extensions; do
  3739. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3740. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3741. ac_prog_rejected=yes
  3742. continue
  3743. fi
  3744. ac_cv_prog_CC="cc"
  3745. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3746. break 2
  3747. fi
  3748. done
  3749. done
  3750. IFS=$as_save_IFS
  3751. if test $ac_prog_rejected = yes; then
  3752. # We found a bogon in the path, so make sure we never use it.
  3753. set dummy $ac_cv_prog_CC
  3754. shift
  3755. if test $# != 0; then
  3756. # We chose a different compiler from the bogus one.
  3757. # However, it has the same basename, so the bogon will be chosen
  3758. # first if we set CC to just the basename; use the full file name.
  3759. shift
  3760. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3761. fi
  3762. fi
  3763. fi
  3764. fi
  3765. CC=$ac_cv_prog_CC
  3766. if test -n "$CC"; then
  3767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3768. $as_echo "$CC" >&6; }
  3769. else
  3770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3771. $as_echo "no" >&6; }
  3772. fi
  3773. fi
  3774. if test -z "$CC"; then
  3775. if test -n "$ac_tool_prefix"; then
  3776. for ac_prog in cl.exe
  3777. do
  3778. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3779. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3781. $as_echo_n "checking for $ac_word... " >&6; }
  3782. if ${ac_cv_prog_CC+:} false; then :
  3783. $as_echo_n "(cached) " >&6
  3784. else
  3785. if test -n "$CC"; then
  3786. ac_cv_prog_CC="$CC" # Let the user override the test.
  3787. else
  3788. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3789. for as_dir in $PATH
  3790. do
  3791. IFS=$as_save_IFS
  3792. test -z "$as_dir" && as_dir=.
  3793. for ac_exec_ext in '' $ac_executable_extensions; do
  3794. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3795. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3796. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3797. break 2
  3798. fi
  3799. done
  3800. done
  3801. IFS=$as_save_IFS
  3802. fi
  3803. fi
  3804. CC=$ac_cv_prog_CC
  3805. if test -n "$CC"; then
  3806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3807. $as_echo "$CC" >&6; }
  3808. else
  3809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3810. $as_echo "no" >&6; }
  3811. fi
  3812. test -n "$CC" && break
  3813. done
  3814. fi
  3815. if test -z "$CC"; then
  3816. ac_ct_CC=$CC
  3817. for ac_prog in cl.exe
  3818. do
  3819. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3820. set dummy $ac_prog; ac_word=$2
  3821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3822. $as_echo_n "checking for $ac_word... " >&6; }
  3823. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3824. $as_echo_n "(cached) " >&6
  3825. else
  3826. if test -n "$ac_ct_CC"; then
  3827. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3828. else
  3829. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3830. for as_dir in $PATH
  3831. do
  3832. IFS=$as_save_IFS
  3833. test -z "$as_dir" && as_dir=.
  3834. for ac_exec_ext in '' $ac_executable_extensions; do
  3835. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3836. ac_cv_prog_ac_ct_CC="$ac_prog"
  3837. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3838. break 2
  3839. fi
  3840. done
  3841. done
  3842. IFS=$as_save_IFS
  3843. fi
  3844. fi
  3845. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3846. if test -n "$ac_ct_CC"; then
  3847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3848. $as_echo "$ac_ct_CC" >&6; }
  3849. else
  3850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3851. $as_echo "no" >&6; }
  3852. fi
  3853. test -n "$ac_ct_CC" && break
  3854. done
  3855. if test "x$ac_ct_CC" = x; then
  3856. CC=""
  3857. else
  3858. case $cross_compiling:$ac_tool_warned in
  3859. yes:)
  3860. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3861. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3862. ac_tool_warned=yes ;;
  3863. esac
  3864. CC=$ac_ct_CC
  3865. fi
  3866. fi
  3867. fi
  3868. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3869. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3870. as_fn_error $? "no acceptable C compiler found in \$PATH
  3871. See \`config.log' for more details" "$LINENO" 5; }
  3872. # Provide some information about the compiler.
  3873. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3874. set X $ac_compile
  3875. ac_compiler=$2
  3876. for ac_option in --version -v -V -qversion; do
  3877. { { ac_try="$ac_compiler $ac_option >&5"
  3878. case "(($ac_try" in
  3879. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3880. *) ac_try_echo=$ac_try;;
  3881. esac
  3882. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3883. $as_echo "$ac_try_echo"; } >&5
  3884. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3885. ac_status=$?
  3886. if test -s conftest.err; then
  3887. sed '10a\
  3888. ... rest of stderr output deleted ...
  3889. 10q' conftest.err >conftest.er1
  3890. cat conftest.er1 >&5
  3891. fi
  3892. rm -f conftest.er1 conftest.err
  3893. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3894. test $ac_status = 0; }
  3895. done
  3896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3897. /* end confdefs.h. */
  3898. int
  3899. main ()
  3900. {
  3901. ;
  3902. return 0;
  3903. }
  3904. _ACEOF
  3905. ac_clean_files_save=$ac_clean_files
  3906. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3907. # Try to create an executable without -o first, disregard a.out.
  3908. # It will help us diagnose broken compilers, and finding out an intuition
  3909. # of exeext.
  3910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3911. $as_echo_n "checking whether the C compiler works... " >&6; }
  3912. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3913. # The possible output files:
  3914. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3915. ac_rmfiles=
  3916. for ac_file in $ac_files
  3917. do
  3918. case $ac_file in
  3919. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3920. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3921. esac
  3922. done
  3923. rm -f $ac_rmfiles
  3924. if { { ac_try="$ac_link_default"
  3925. case "(($ac_try" in
  3926. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3927. *) ac_try_echo=$ac_try;;
  3928. esac
  3929. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3930. $as_echo "$ac_try_echo"; } >&5
  3931. (eval "$ac_link_default") 2>&5
  3932. ac_status=$?
  3933. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3934. test $ac_status = 0; }; then :
  3935. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3936. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3937. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3938. # so that the user can short-circuit this test for compilers unknown to
  3939. # Autoconf.
  3940. for ac_file in $ac_files ''
  3941. do
  3942. test -f "$ac_file" || continue
  3943. case $ac_file in
  3944. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3945. ;;
  3946. [ab].out )
  3947. # We found the default executable, but exeext='' is most
  3948. # certainly right.
  3949. break;;
  3950. *.* )
  3951. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3952. then :; else
  3953. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3954. fi
  3955. # We set ac_cv_exeext here because the later test for it is not
  3956. # safe: cross compilers may not add the suffix if given an `-o'
  3957. # argument, so we may need to know it at that point already.
  3958. # Even if this section looks crufty: it has the advantage of
  3959. # actually working.
  3960. break;;
  3961. * )
  3962. break;;
  3963. esac
  3964. done
  3965. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3966. else
  3967. ac_file=''
  3968. fi
  3969. if test -z "$ac_file"; then :
  3970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3971. $as_echo "no" >&6; }
  3972. $as_echo "$as_me: failed program was:" >&5
  3973. sed 's/^/| /' conftest.$ac_ext >&5
  3974. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3975. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3976. as_fn_error 77 "C compiler cannot create executables
  3977. See \`config.log' for more details" "$LINENO" 5; }
  3978. else
  3979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3980. $as_echo "yes" >&6; }
  3981. fi
  3982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3983. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3985. $as_echo "$ac_file" >&6; }
  3986. ac_exeext=$ac_cv_exeext
  3987. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3988. ac_clean_files=$ac_clean_files_save
  3989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3990. $as_echo_n "checking for suffix of executables... " >&6; }
  3991. if { { ac_try="$ac_link"
  3992. case "(($ac_try" in
  3993. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3994. *) ac_try_echo=$ac_try;;
  3995. esac
  3996. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3997. $as_echo "$ac_try_echo"; } >&5
  3998. (eval "$ac_link") 2>&5
  3999. ac_status=$?
  4000. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4001. test $ac_status = 0; }; then :
  4002. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  4003. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  4004. # work properly (i.e., refer to `conftest.exe'), while it won't with
  4005. # `rm'.
  4006. for ac_file in conftest.exe conftest conftest.*; do
  4007. test -f "$ac_file" || continue
  4008. case $ac_file in
  4009. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4010. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4011. break;;
  4012. * ) break;;
  4013. esac
  4014. done
  4015. else
  4016. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4017. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4018. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  4019. See \`config.log' for more details" "$LINENO" 5; }
  4020. fi
  4021. rm -f conftest conftest$ac_cv_exeext
  4022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4023. $as_echo "$ac_cv_exeext" >&6; }
  4024. rm -f conftest.$ac_ext
  4025. EXEEXT=$ac_cv_exeext
  4026. ac_exeext=$EXEEXT
  4027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4028. /* end confdefs.h. */
  4029. #include <stdio.h>
  4030. int
  4031. main ()
  4032. {
  4033. FILE *f = fopen ("conftest.out", "w");
  4034. return ferror (f) || fclose (f) != 0;
  4035. ;
  4036. return 0;
  4037. }
  4038. _ACEOF
  4039. ac_clean_files="$ac_clean_files conftest.out"
  4040. # Check that the compiler produces executables we can run. If not, either
  4041. # the compiler is broken, or we cross compile.
  4042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4043. $as_echo_n "checking whether we are cross compiling... " >&6; }
  4044. if test "$cross_compiling" != yes; then
  4045. { { ac_try="$ac_link"
  4046. case "(($ac_try" in
  4047. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4048. *) ac_try_echo=$ac_try;;
  4049. esac
  4050. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4051. $as_echo "$ac_try_echo"; } >&5
  4052. (eval "$ac_link") 2>&5
  4053. ac_status=$?
  4054. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4055. test $ac_status = 0; }
  4056. if { ac_try='./conftest$ac_cv_exeext'
  4057. { { case "(($ac_try" in
  4058. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4059. *) ac_try_echo=$ac_try;;
  4060. esac
  4061. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4062. $as_echo "$ac_try_echo"; } >&5
  4063. (eval "$ac_try") 2>&5
  4064. ac_status=$?
  4065. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4066. test $ac_status = 0; }; }; then
  4067. cross_compiling=no
  4068. else
  4069. if test "$cross_compiling" = maybe; then
  4070. cross_compiling=yes
  4071. else
  4072. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4073. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4074. as_fn_error $? "cannot run C compiled programs.
  4075. If you meant to cross compile, use \`--host'.
  4076. See \`config.log' for more details" "$LINENO" 5; }
  4077. fi
  4078. fi
  4079. fi
  4080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4081. $as_echo "$cross_compiling" >&6; }
  4082. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  4083. ac_clean_files=$ac_clean_files_save
  4084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4085. $as_echo_n "checking for suffix of object files... " >&6; }
  4086. if ${ac_cv_objext+:} false; then :
  4087. $as_echo_n "(cached) " >&6
  4088. else
  4089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4090. /* end confdefs.h. */
  4091. int
  4092. main ()
  4093. {
  4094. ;
  4095. return 0;
  4096. }
  4097. _ACEOF
  4098. rm -f conftest.o conftest.obj
  4099. if { { ac_try="$ac_compile"
  4100. case "(($ac_try" in
  4101. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4102. *) ac_try_echo=$ac_try;;
  4103. esac
  4104. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4105. $as_echo "$ac_try_echo"; } >&5
  4106. (eval "$ac_compile") 2>&5
  4107. ac_status=$?
  4108. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4109. test $ac_status = 0; }; then :
  4110. for ac_file in conftest.o conftest.obj conftest.*; do
  4111. test -f "$ac_file" || continue;
  4112. case $ac_file in
  4113. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4114. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4115. break;;
  4116. esac
  4117. done
  4118. else
  4119. $as_echo "$as_me: failed program was:" >&5
  4120. sed 's/^/| /' conftest.$ac_ext >&5
  4121. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4122. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4123. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4124. See \`config.log' for more details" "$LINENO" 5; }
  4125. fi
  4126. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4127. fi
  4128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4129. $as_echo "$ac_cv_objext" >&6; }
  4130. OBJEXT=$ac_cv_objext
  4131. ac_objext=$OBJEXT
  4132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4133. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4134. if ${ac_cv_c_compiler_gnu+:} false; then :
  4135. $as_echo_n "(cached) " >&6
  4136. else
  4137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4138. /* end confdefs.h. */
  4139. int
  4140. main ()
  4141. {
  4142. #ifndef __GNUC__
  4143. choke me
  4144. #endif
  4145. ;
  4146. return 0;
  4147. }
  4148. _ACEOF
  4149. if ac_fn_c_try_compile "$LINENO"; then :
  4150. ac_compiler_gnu=yes
  4151. else
  4152. ac_compiler_gnu=no
  4153. fi
  4154. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4155. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4156. fi
  4157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4158. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4159. if test $ac_compiler_gnu = yes; then
  4160. GCC=yes
  4161. else
  4162. GCC=
  4163. fi
  4164. ac_test_CFLAGS=${CFLAGS+set}
  4165. ac_save_CFLAGS=$CFLAGS
  4166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4167. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4168. if ${ac_cv_prog_cc_g+:} false; then :
  4169. $as_echo_n "(cached) " >&6
  4170. else
  4171. ac_save_c_werror_flag=$ac_c_werror_flag
  4172. ac_c_werror_flag=yes
  4173. ac_cv_prog_cc_g=no
  4174. CFLAGS="-g"
  4175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4176. /* end confdefs.h. */
  4177. int
  4178. main ()
  4179. {
  4180. ;
  4181. return 0;
  4182. }
  4183. _ACEOF
  4184. if ac_fn_c_try_compile "$LINENO"; then :
  4185. ac_cv_prog_cc_g=yes
  4186. else
  4187. CFLAGS=""
  4188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4189. /* end confdefs.h. */
  4190. int
  4191. main ()
  4192. {
  4193. ;
  4194. return 0;
  4195. }
  4196. _ACEOF
  4197. if ac_fn_c_try_compile "$LINENO"; then :
  4198. else
  4199. ac_c_werror_flag=$ac_save_c_werror_flag
  4200. CFLAGS="-g"
  4201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4202. /* end confdefs.h. */
  4203. int
  4204. main ()
  4205. {
  4206. ;
  4207. return 0;
  4208. }
  4209. _ACEOF
  4210. if ac_fn_c_try_compile "$LINENO"; then :
  4211. ac_cv_prog_cc_g=yes
  4212. fi
  4213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4214. fi
  4215. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4216. fi
  4217. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4218. ac_c_werror_flag=$ac_save_c_werror_flag
  4219. fi
  4220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4221. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4222. if test "$ac_test_CFLAGS" = set; then
  4223. CFLAGS=$ac_save_CFLAGS
  4224. elif test $ac_cv_prog_cc_g = yes; then
  4225. if test "$GCC" = yes; then
  4226. CFLAGS="-g -O2"
  4227. else
  4228. CFLAGS="-g"
  4229. fi
  4230. else
  4231. if test "$GCC" = yes; then
  4232. CFLAGS="-O2"
  4233. else
  4234. CFLAGS=
  4235. fi
  4236. fi
  4237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4238. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4239. if ${ac_cv_prog_cc_c89+:} false; then :
  4240. $as_echo_n "(cached) " >&6
  4241. else
  4242. ac_cv_prog_cc_c89=no
  4243. ac_save_CC=$CC
  4244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4245. /* end confdefs.h. */
  4246. #include <stdarg.h>
  4247. #include <stdio.h>
  4248. struct stat;
  4249. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4250. struct buf { int x; };
  4251. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4252. static char *e (p, i)
  4253. char **p;
  4254. int i;
  4255. {
  4256. return p[i];
  4257. }
  4258. static char *f (char * (*g) (char **, int), char **p, ...)
  4259. {
  4260. char *s;
  4261. va_list v;
  4262. va_start (v,p);
  4263. s = g (p, va_arg (v,int));
  4264. va_end (v);
  4265. return s;
  4266. }
  4267. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4268. function prototypes and stuff, but not '\xHH' hex character constants.
  4269. These don't provoke an error unfortunately, instead are silently treated
  4270. as 'x'. The following induces an error, until -std is added to get
  4271. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4272. array size at least. It's necessary to write '\x00'==0 to get something
  4273. that's true only with -std. */
  4274. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4275. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4276. inside strings and character constants. */
  4277. #define FOO(x) 'x'
  4278. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4279. int test (int i, double x);
  4280. struct s1 {int (*f) (int a);};
  4281. struct s2 {int (*f) (double a);};
  4282. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4283. int argc;
  4284. char **argv;
  4285. int
  4286. main ()
  4287. {
  4288. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4289. ;
  4290. return 0;
  4291. }
  4292. _ACEOF
  4293. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4294. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4295. do
  4296. CC="$ac_save_CC $ac_arg"
  4297. if ac_fn_c_try_compile "$LINENO"; then :
  4298. ac_cv_prog_cc_c89=$ac_arg
  4299. fi
  4300. rm -f core conftest.err conftest.$ac_objext
  4301. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4302. done
  4303. rm -f conftest.$ac_ext
  4304. CC=$ac_save_CC
  4305. fi
  4306. # AC_CACHE_VAL
  4307. case "x$ac_cv_prog_cc_c89" in
  4308. x)
  4309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4310. $as_echo "none needed" >&6; } ;;
  4311. xno)
  4312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4313. $as_echo "unsupported" >&6; } ;;
  4314. *)
  4315. CC="$CC $ac_cv_prog_cc_c89"
  4316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4317. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4318. esac
  4319. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4320. fi
  4321. ac_ext=c
  4322. ac_cpp='$CPP $CPPFLAGS'
  4323. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4324. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4325. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4326. ac_ext=c
  4327. ac_cpp='$CPP $CPPFLAGS'
  4328. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4329. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4330. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4332. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4333. if ${am_cv_prog_cc_c_o+:} false; then :
  4334. $as_echo_n "(cached) " >&6
  4335. else
  4336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4337. /* end confdefs.h. */
  4338. int
  4339. main ()
  4340. {
  4341. ;
  4342. return 0;
  4343. }
  4344. _ACEOF
  4345. # Make sure it works both with $CC and with simple cc.
  4346. # Following AC_PROG_CC_C_O, we do the test twice because some
  4347. # compilers refuse to overwrite an existing .o file with -o,
  4348. # though they will create one.
  4349. am_cv_prog_cc_c_o=yes
  4350. for am_i in 1 2; do
  4351. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4352. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4353. ac_status=$?
  4354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4355. (exit $ac_status); } \
  4356. && test -f conftest2.$ac_objext; then
  4357. : OK
  4358. else
  4359. am_cv_prog_cc_c_o=no
  4360. break
  4361. fi
  4362. done
  4363. rm -f core conftest*
  4364. unset am_i
  4365. fi
  4366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4367. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4368. if test "$am_cv_prog_cc_c_o" != yes; then
  4369. # Losing compiler, so override with the script.
  4370. # FIXME: It is wrong to rewrite CC.
  4371. # But if we don't then we get into trouble of one sort or another.
  4372. # A longer-term fix would be to have automake use am__CC in this case,
  4373. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4374. CC="$am_aux_dir/compile $CC"
  4375. fi
  4376. ac_ext=c
  4377. ac_cpp='$CPP $CPPFLAGS'
  4378. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4379. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4380. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4381. depcc="$CC" am_compiler_list=
  4382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4383. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4384. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4385. $as_echo_n "(cached) " >&6
  4386. else
  4387. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4388. # We make a subdir and do the tests there. Otherwise we can end up
  4389. # making bogus files that we don't know about and never remove. For
  4390. # instance it was reported that on HP-UX the gcc test will end up
  4391. # making a dummy file named 'D' -- because '-MD' means "put the output
  4392. # in D".
  4393. rm -rf conftest.dir
  4394. mkdir conftest.dir
  4395. # Copy depcomp to subdir because otherwise we won't find it if we're
  4396. # using a relative directory.
  4397. cp "$am_depcomp" conftest.dir
  4398. cd conftest.dir
  4399. # We will build objects and dependencies in a subdirectory because
  4400. # it helps to detect inapplicable dependency modes. For instance
  4401. # both Tru64's cc and ICC support -MD to output dependencies as a
  4402. # side effect of compilation, but ICC will put the dependencies in
  4403. # the current directory while Tru64 will put them in the object
  4404. # directory.
  4405. mkdir sub
  4406. am_cv_CC_dependencies_compiler_type=none
  4407. if test "$am_compiler_list" = ""; then
  4408. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4409. fi
  4410. am__universal=false
  4411. case " $depcc " in #(
  4412. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4413. esac
  4414. for depmode in $am_compiler_list; do
  4415. # Setup a source with many dependencies, because some compilers
  4416. # like to wrap large dependency lists on column 80 (with \), and
  4417. # we should not choose a depcomp mode which is confused by this.
  4418. #
  4419. # We need to recreate these files for each test, as the compiler may
  4420. # overwrite some of them when testing with obscure command lines.
  4421. # This happens at least with the AIX C compiler.
  4422. : > sub/conftest.c
  4423. for i in 1 2 3 4 5 6; do
  4424. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4425. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4426. # Solaris 10 /bin/sh.
  4427. echo '/* dummy */' > sub/conftst$i.h
  4428. done
  4429. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4430. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4431. # mode. It turns out that the SunPro C++ compiler does not properly
  4432. # handle '-M -o', and we need to detect this. Also, some Intel
  4433. # versions had trouble with output in subdirs.
  4434. am__obj=sub/conftest.${OBJEXT-o}
  4435. am__minus_obj="-o $am__obj"
  4436. case $depmode in
  4437. gcc)
  4438. # This depmode causes a compiler race in universal mode.
  4439. test "$am__universal" = false || continue
  4440. ;;
  4441. nosideeffect)
  4442. # After this tag, mechanisms are not by side-effect, so they'll
  4443. # only be used when explicitly requested.
  4444. if test "x$enable_dependency_tracking" = xyes; then
  4445. continue
  4446. else
  4447. break
  4448. fi
  4449. ;;
  4450. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4451. # This compiler won't grok '-c -o', but also, the minuso test has
  4452. # not run yet. These depmodes are late enough in the game, and
  4453. # so weak that their functioning should not be impacted.
  4454. am__obj=conftest.${OBJEXT-o}
  4455. am__minus_obj=
  4456. ;;
  4457. none) break ;;
  4458. esac
  4459. if depmode=$depmode \
  4460. source=sub/conftest.c object=$am__obj \
  4461. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4462. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4463. >/dev/null 2>conftest.err &&
  4464. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4465. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4466. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4467. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4468. # icc doesn't choke on unknown options, it will just issue warnings
  4469. # or remarks (even with -Werror). So we grep stderr for any message
  4470. # that says an option was ignored or not supported.
  4471. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4472. # icc: Command line warning: ignoring option '-M'; no argument required
  4473. # The diagnosis changed in icc 8.0:
  4474. # icc: Command line remark: option '-MP' not supported
  4475. if (grep 'ignoring option' conftest.err ||
  4476. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4477. am_cv_CC_dependencies_compiler_type=$depmode
  4478. break
  4479. fi
  4480. fi
  4481. done
  4482. cd ..
  4483. rm -rf conftest.dir
  4484. else
  4485. am_cv_CC_dependencies_compiler_type=none
  4486. fi
  4487. fi
  4488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4489. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4490. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4491. if
  4492. test "x$enable_dependency_tracking" != xno \
  4493. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4494. am__fastdepCC_TRUE=
  4495. am__fastdepCC_FALSE='#'
  4496. else
  4497. am__fastdepCC_TRUE='#'
  4498. am__fastdepCC_FALSE=
  4499. fi
  4500. if test -n "$ac_tool_prefix"; then
  4501. for ac_prog in ar lib "link -lib"
  4502. do
  4503. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4504. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4506. $as_echo_n "checking for $ac_word... " >&6; }
  4507. if ${ac_cv_prog_AR+:} false; then :
  4508. $as_echo_n "(cached) " >&6
  4509. else
  4510. if test -n "$AR"; then
  4511. ac_cv_prog_AR="$AR" # Let the user override the test.
  4512. else
  4513. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4514. for as_dir in $PATH
  4515. do
  4516. IFS=$as_save_IFS
  4517. test -z "$as_dir" && as_dir=.
  4518. for ac_exec_ext in '' $ac_executable_extensions; do
  4519. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4520. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4521. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4522. break 2
  4523. fi
  4524. done
  4525. done
  4526. IFS=$as_save_IFS
  4527. fi
  4528. fi
  4529. AR=$ac_cv_prog_AR
  4530. if test -n "$AR"; then
  4531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4532. $as_echo "$AR" >&6; }
  4533. else
  4534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4535. $as_echo "no" >&6; }
  4536. fi
  4537. test -n "$AR" && break
  4538. done
  4539. fi
  4540. if test -z "$AR"; then
  4541. ac_ct_AR=$AR
  4542. for ac_prog in ar lib "link -lib"
  4543. do
  4544. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4545. set dummy $ac_prog; ac_word=$2
  4546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4547. $as_echo_n "checking for $ac_word... " >&6; }
  4548. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4549. $as_echo_n "(cached) " >&6
  4550. else
  4551. if test -n "$ac_ct_AR"; then
  4552. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4553. else
  4554. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4555. for as_dir in $PATH
  4556. do
  4557. IFS=$as_save_IFS
  4558. test -z "$as_dir" && as_dir=.
  4559. for ac_exec_ext in '' $ac_executable_extensions; do
  4560. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4561. ac_cv_prog_ac_ct_AR="$ac_prog"
  4562. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4563. break 2
  4564. fi
  4565. done
  4566. done
  4567. IFS=$as_save_IFS
  4568. fi
  4569. fi
  4570. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4571. if test -n "$ac_ct_AR"; then
  4572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4573. $as_echo "$ac_ct_AR" >&6; }
  4574. else
  4575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4576. $as_echo "no" >&6; }
  4577. fi
  4578. test -n "$ac_ct_AR" && break
  4579. done
  4580. if test "x$ac_ct_AR" = x; then
  4581. AR="false"
  4582. else
  4583. case $cross_compiling:$ac_tool_warned in
  4584. yes:)
  4585. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4586. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4587. ac_tool_warned=yes ;;
  4588. esac
  4589. AR=$ac_ct_AR
  4590. fi
  4591. fi
  4592. : ${AR=ar}
  4593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  4594. $as_echo_n "checking the archiver ($AR) interface... " >&6; }
  4595. if ${am_cv_ar_interface+:} false; then :
  4596. $as_echo_n "(cached) " >&6
  4597. else
  4598. ac_ext=c
  4599. ac_cpp='$CPP $CPPFLAGS'
  4600. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4601. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4602. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4603. am_cv_ar_interface=ar
  4604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4605. /* end confdefs.h. */
  4606. int some_variable = 0;
  4607. _ACEOF
  4608. if ac_fn_c_try_compile "$LINENO"; then :
  4609. am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  4610. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4611. (eval $am_ar_try) 2>&5
  4612. ac_status=$?
  4613. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4614. test $ac_status = 0; }
  4615. if test "$ac_status" -eq 0; then
  4616. am_cv_ar_interface=ar
  4617. else
  4618. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  4619. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4620. (eval $am_ar_try) 2>&5
  4621. ac_status=$?
  4622. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4623. test $ac_status = 0; }
  4624. if test "$ac_status" -eq 0; then
  4625. am_cv_ar_interface=lib
  4626. else
  4627. am_cv_ar_interface=unknown
  4628. fi
  4629. fi
  4630. rm -f conftest.lib libconftest.a
  4631. fi
  4632. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4633. ac_ext=c
  4634. ac_cpp='$CPP $CPPFLAGS'
  4635. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4636. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4637. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4638. fi
  4639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  4640. $as_echo "$am_cv_ar_interface" >&6; }
  4641. case $am_cv_ar_interface in
  4642. ar)
  4643. ;;
  4644. lib)
  4645. # Microsoft lib, so override with the ar-lib wrapper script.
  4646. # FIXME: It is wrong to rewrite AR.
  4647. # But if we don't then we get into trouble of one sort or another.
  4648. # A longer-term fix would be to have automake use am__AR in this case,
  4649. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  4650. # similar.
  4651. AR="$am_aux_dir/ar-lib $AR"
  4652. ;;
  4653. unknown)
  4654. as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  4655. ;;
  4656. esac
  4657. case `pwd` in
  4658. *\ * | *\ *)
  4659. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4660. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4661. esac
  4662. macro_version='2.4.6'
  4663. macro_revision='2.4.6'
  4664. ltmain=$ac_aux_dir/ltmain.sh
  4665. # Backslashify metacharacters that are still active within
  4666. # double-quoted strings.
  4667. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4668. # Same as above, but do not quote variable references.
  4669. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4670. # Sed substitution to delay expansion of an escaped shell variable in a
  4671. # double_quote_subst'ed string.
  4672. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4673. # Sed substitution to delay expansion of an escaped single quote.
  4674. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4675. # Sed substitution to avoid accidental globbing in evaled expressions
  4676. no_glob_subst='s/\*/\\\*/g'
  4677. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4678. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4679. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4681. $as_echo_n "checking how to print strings... " >&6; }
  4682. # Test print first, because it will be a builtin if present.
  4683. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4684. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4685. ECHO='print -r --'
  4686. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4687. ECHO='printf %s\n'
  4688. else
  4689. # Use this function as a fallback that always works.
  4690. func_fallback_echo ()
  4691. {
  4692. eval 'cat <<_LTECHO_EOF
  4693. $1
  4694. _LTECHO_EOF'
  4695. }
  4696. ECHO='func_fallback_echo'
  4697. fi
  4698. # func_echo_all arg...
  4699. # Invoke $ECHO with all args, space-separated.
  4700. func_echo_all ()
  4701. {
  4702. $ECHO ""
  4703. }
  4704. case $ECHO in
  4705. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4706. $as_echo "printf" >&6; } ;;
  4707. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4708. $as_echo "print -r" >&6; } ;;
  4709. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4710. $as_echo "cat" >&6; } ;;
  4711. esac
  4712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4713. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4714. if ${ac_cv_path_SED+:} false; then :
  4715. $as_echo_n "(cached) " >&6
  4716. else
  4717. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4718. for ac_i in 1 2 3 4 5 6 7; do
  4719. ac_script="$ac_script$as_nl$ac_script"
  4720. done
  4721. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4722. { ac_script=; unset ac_script;}
  4723. if test -z "$SED"; then
  4724. ac_path_SED_found=false
  4725. # Loop through the user's path and test for each of PROGNAME-LIST
  4726. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4727. for as_dir in $PATH
  4728. do
  4729. IFS=$as_save_IFS
  4730. test -z "$as_dir" && as_dir=.
  4731. for ac_prog in sed gsed; do
  4732. for ac_exec_ext in '' $ac_executable_extensions; do
  4733. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4734. as_fn_executable_p "$ac_path_SED" || continue
  4735. # Check for GNU ac_path_SED and select it if it is found.
  4736. # Check for GNU $ac_path_SED
  4737. case `"$ac_path_SED" --version 2>&1` in
  4738. *GNU*)
  4739. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4740. *)
  4741. ac_count=0
  4742. $as_echo_n 0123456789 >"conftest.in"
  4743. while :
  4744. do
  4745. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4746. mv "conftest.tmp" "conftest.in"
  4747. cp "conftest.in" "conftest.nl"
  4748. $as_echo '' >> "conftest.nl"
  4749. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4750. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4751. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4752. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4753. # Best one so far, save it but keep looking for a better one
  4754. ac_cv_path_SED="$ac_path_SED"
  4755. ac_path_SED_max=$ac_count
  4756. fi
  4757. # 10*(2^10) chars as input seems more than enough
  4758. test $ac_count -gt 10 && break
  4759. done
  4760. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4761. esac
  4762. $ac_path_SED_found && break 3
  4763. done
  4764. done
  4765. done
  4766. IFS=$as_save_IFS
  4767. if test -z "$ac_cv_path_SED"; then
  4768. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4769. fi
  4770. else
  4771. ac_cv_path_SED=$SED
  4772. fi
  4773. fi
  4774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4775. $as_echo "$ac_cv_path_SED" >&6; }
  4776. SED="$ac_cv_path_SED"
  4777. rm -f conftest.sed
  4778. test -z "$SED" && SED=sed
  4779. Xsed="$SED -e 1s/^X//"
  4780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4781. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4782. if ${ac_cv_path_GREP+:} false; then :
  4783. $as_echo_n "(cached) " >&6
  4784. else
  4785. if test -z "$GREP"; then
  4786. ac_path_GREP_found=false
  4787. # Loop through the user's path and test for each of PROGNAME-LIST
  4788. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4789. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4790. do
  4791. IFS=$as_save_IFS
  4792. test -z "$as_dir" && as_dir=.
  4793. for ac_prog in grep ggrep; do
  4794. for ac_exec_ext in '' $ac_executable_extensions; do
  4795. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4796. as_fn_executable_p "$ac_path_GREP" || continue
  4797. # Check for GNU ac_path_GREP and select it if it is found.
  4798. # Check for GNU $ac_path_GREP
  4799. case `"$ac_path_GREP" --version 2>&1` in
  4800. *GNU*)
  4801. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4802. *)
  4803. ac_count=0
  4804. $as_echo_n 0123456789 >"conftest.in"
  4805. while :
  4806. do
  4807. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4808. mv "conftest.tmp" "conftest.in"
  4809. cp "conftest.in" "conftest.nl"
  4810. $as_echo 'GREP' >> "conftest.nl"
  4811. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4812. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4813. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4814. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4815. # Best one so far, save it but keep looking for a better one
  4816. ac_cv_path_GREP="$ac_path_GREP"
  4817. ac_path_GREP_max=$ac_count
  4818. fi
  4819. # 10*(2^10) chars as input seems more than enough
  4820. test $ac_count -gt 10 && break
  4821. done
  4822. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4823. esac
  4824. $ac_path_GREP_found && break 3
  4825. done
  4826. done
  4827. done
  4828. IFS=$as_save_IFS
  4829. if test -z "$ac_cv_path_GREP"; then
  4830. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4831. fi
  4832. else
  4833. ac_cv_path_GREP=$GREP
  4834. fi
  4835. fi
  4836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4837. $as_echo "$ac_cv_path_GREP" >&6; }
  4838. GREP="$ac_cv_path_GREP"
  4839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4840. $as_echo_n "checking for egrep... " >&6; }
  4841. if ${ac_cv_path_EGREP+:} false; then :
  4842. $as_echo_n "(cached) " >&6
  4843. else
  4844. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4845. then ac_cv_path_EGREP="$GREP -E"
  4846. else
  4847. if test -z "$EGREP"; then
  4848. ac_path_EGREP_found=false
  4849. # Loop through the user's path and test for each of PROGNAME-LIST
  4850. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4851. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4852. do
  4853. IFS=$as_save_IFS
  4854. test -z "$as_dir" && as_dir=.
  4855. for ac_prog in egrep; do
  4856. for ac_exec_ext in '' $ac_executable_extensions; do
  4857. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4858. as_fn_executable_p "$ac_path_EGREP" || continue
  4859. # Check for GNU ac_path_EGREP and select it if it is found.
  4860. # Check for GNU $ac_path_EGREP
  4861. case `"$ac_path_EGREP" --version 2>&1` in
  4862. *GNU*)
  4863. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4864. *)
  4865. ac_count=0
  4866. $as_echo_n 0123456789 >"conftest.in"
  4867. while :
  4868. do
  4869. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4870. mv "conftest.tmp" "conftest.in"
  4871. cp "conftest.in" "conftest.nl"
  4872. $as_echo 'EGREP' >> "conftest.nl"
  4873. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4874. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4875. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4876. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4877. # Best one so far, save it but keep looking for a better one
  4878. ac_cv_path_EGREP="$ac_path_EGREP"
  4879. ac_path_EGREP_max=$ac_count
  4880. fi
  4881. # 10*(2^10) chars as input seems more than enough
  4882. test $ac_count -gt 10 && break
  4883. done
  4884. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4885. esac
  4886. $ac_path_EGREP_found && break 3
  4887. done
  4888. done
  4889. done
  4890. IFS=$as_save_IFS
  4891. if test -z "$ac_cv_path_EGREP"; then
  4892. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4893. fi
  4894. else
  4895. ac_cv_path_EGREP=$EGREP
  4896. fi
  4897. fi
  4898. fi
  4899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4900. $as_echo "$ac_cv_path_EGREP" >&6; }
  4901. EGREP="$ac_cv_path_EGREP"
  4902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4903. $as_echo_n "checking for fgrep... " >&6; }
  4904. if ${ac_cv_path_FGREP+:} false; then :
  4905. $as_echo_n "(cached) " >&6
  4906. else
  4907. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4908. then ac_cv_path_FGREP="$GREP -F"
  4909. else
  4910. if test -z "$FGREP"; then
  4911. ac_path_FGREP_found=false
  4912. # Loop through the user's path and test for each of PROGNAME-LIST
  4913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4914. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4915. do
  4916. IFS=$as_save_IFS
  4917. test -z "$as_dir" && as_dir=.
  4918. for ac_prog in fgrep; do
  4919. for ac_exec_ext in '' $ac_executable_extensions; do
  4920. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4921. as_fn_executable_p "$ac_path_FGREP" || continue
  4922. # Check for GNU ac_path_FGREP and select it if it is found.
  4923. # Check for GNU $ac_path_FGREP
  4924. case `"$ac_path_FGREP" --version 2>&1` in
  4925. *GNU*)
  4926. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4927. *)
  4928. ac_count=0
  4929. $as_echo_n 0123456789 >"conftest.in"
  4930. while :
  4931. do
  4932. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4933. mv "conftest.tmp" "conftest.in"
  4934. cp "conftest.in" "conftest.nl"
  4935. $as_echo 'FGREP' >> "conftest.nl"
  4936. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4937. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4938. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4939. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4940. # Best one so far, save it but keep looking for a better one
  4941. ac_cv_path_FGREP="$ac_path_FGREP"
  4942. ac_path_FGREP_max=$ac_count
  4943. fi
  4944. # 10*(2^10) chars as input seems more than enough
  4945. test $ac_count -gt 10 && break
  4946. done
  4947. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4948. esac
  4949. $ac_path_FGREP_found && break 3
  4950. done
  4951. done
  4952. done
  4953. IFS=$as_save_IFS
  4954. if test -z "$ac_cv_path_FGREP"; then
  4955. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4956. fi
  4957. else
  4958. ac_cv_path_FGREP=$FGREP
  4959. fi
  4960. fi
  4961. fi
  4962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4963. $as_echo "$ac_cv_path_FGREP" >&6; }
  4964. FGREP="$ac_cv_path_FGREP"
  4965. test -z "$GREP" && GREP=grep
  4966. # Check whether --with-gnu-ld was given.
  4967. if test "${with_gnu_ld+set}" = set; then :
  4968. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4969. else
  4970. with_gnu_ld=no
  4971. fi
  4972. ac_prog=ld
  4973. if test yes = "$GCC"; then
  4974. # Check if gcc -print-prog-name=ld gives a path.
  4975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4976. $as_echo_n "checking for ld used by $CC... " >&6; }
  4977. case $host in
  4978. *-*-mingw*)
  4979. # gcc leaves a trailing carriage return, which upsets mingw
  4980. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4981. *)
  4982. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4983. esac
  4984. case $ac_prog in
  4985. # Accept absolute paths.
  4986. [\\/]* | ?:[\\/]*)
  4987. re_direlt='/[^/][^/]*/\.\./'
  4988. # Canonicalize the pathname of ld
  4989. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4990. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4991. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4992. done
  4993. test -z "$LD" && LD=$ac_prog
  4994. ;;
  4995. "")
  4996. # If it fails, then pretend we aren't using GCC.
  4997. ac_prog=ld
  4998. ;;
  4999. *)
  5000. # If it is relative, then search for the first ld in PATH.
  5001. with_gnu_ld=unknown
  5002. ;;
  5003. esac
  5004. elif test yes = "$with_gnu_ld"; then
  5005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5006. $as_echo_n "checking for GNU ld... " >&6; }
  5007. else
  5008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5009. $as_echo_n "checking for non-GNU ld... " >&6; }
  5010. fi
  5011. if ${lt_cv_path_LD+:} false; then :
  5012. $as_echo_n "(cached) " >&6
  5013. else
  5014. if test -z "$LD"; then
  5015. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5016. for ac_dir in $PATH; do
  5017. IFS=$lt_save_ifs
  5018. test -z "$ac_dir" && ac_dir=.
  5019. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5020. lt_cv_path_LD=$ac_dir/$ac_prog
  5021. # Check to see if the program is GNU ld. I'd rather use --version,
  5022. # but apparently some variants of GNU ld only accept -v.
  5023. # Break only if it was the GNU/non-GNU ld that we prefer.
  5024. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5025. *GNU* | *'with BFD'*)
  5026. test no != "$with_gnu_ld" && break
  5027. ;;
  5028. *)
  5029. test yes != "$with_gnu_ld" && break
  5030. ;;
  5031. esac
  5032. fi
  5033. done
  5034. IFS=$lt_save_ifs
  5035. else
  5036. lt_cv_path_LD=$LD # Let the user override the test with a path.
  5037. fi
  5038. fi
  5039. LD=$lt_cv_path_LD
  5040. if test -n "$LD"; then
  5041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5042. $as_echo "$LD" >&6; }
  5043. else
  5044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5045. $as_echo "no" >&6; }
  5046. fi
  5047. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5049. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5050. if ${lt_cv_prog_gnu_ld+:} false; then :
  5051. $as_echo_n "(cached) " >&6
  5052. else
  5053. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5054. case `$LD -v 2>&1 </dev/null` in
  5055. *GNU* | *'with BFD'*)
  5056. lt_cv_prog_gnu_ld=yes
  5057. ;;
  5058. *)
  5059. lt_cv_prog_gnu_ld=no
  5060. ;;
  5061. esac
  5062. fi
  5063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5064. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5065. with_gnu_ld=$lt_cv_prog_gnu_ld
  5066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5067. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5068. if ${lt_cv_path_NM+:} false; then :
  5069. $as_echo_n "(cached) " >&6
  5070. else
  5071. if test -n "$NM"; then
  5072. # Let the user override the test.
  5073. lt_cv_path_NM=$NM
  5074. else
  5075. lt_nm_to_check=${ac_tool_prefix}nm
  5076. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5077. lt_nm_to_check="$lt_nm_to_check nm"
  5078. fi
  5079. for lt_tmp_nm in $lt_nm_to_check; do
  5080. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5081. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5082. IFS=$lt_save_ifs
  5083. test -z "$ac_dir" && ac_dir=.
  5084. tmp_nm=$ac_dir/$lt_tmp_nm
  5085. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  5086. # Check to see if the nm accepts a BSD-compat flag.
  5087. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  5088. # nm: unknown option "B" ignored
  5089. # Tru64's nm complains that /dev/null is an invalid object file
  5090. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  5091. case $build_os in
  5092. mingw*) lt_bad_file=conftest.nm/nofile ;;
  5093. *) lt_bad_file=/dev/null ;;
  5094. esac
  5095. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  5096. *$lt_bad_file* | *'Invalid file or object type'*)
  5097. lt_cv_path_NM="$tmp_nm -B"
  5098. break 2
  5099. ;;
  5100. *)
  5101. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5102. */dev/null*)
  5103. lt_cv_path_NM="$tmp_nm -p"
  5104. break 2
  5105. ;;
  5106. *)
  5107. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5108. continue # so that we can try to find one that supports BSD flags
  5109. ;;
  5110. esac
  5111. ;;
  5112. esac
  5113. fi
  5114. done
  5115. IFS=$lt_save_ifs
  5116. done
  5117. : ${lt_cv_path_NM=no}
  5118. fi
  5119. fi
  5120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5121. $as_echo "$lt_cv_path_NM" >&6; }
  5122. if test no != "$lt_cv_path_NM"; then
  5123. NM=$lt_cv_path_NM
  5124. else
  5125. # Didn't find any BSD compatible name lister, look for dumpbin.
  5126. if test -n "$DUMPBIN"; then :
  5127. # Let the user override the test.
  5128. else
  5129. if test -n "$ac_tool_prefix"; then
  5130. for ac_prog in dumpbin "link -dump"
  5131. do
  5132. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5133. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5135. $as_echo_n "checking for $ac_word... " >&6; }
  5136. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5137. $as_echo_n "(cached) " >&6
  5138. else
  5139. if test -n "$DUMPBIN"; then
  5140. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5141. else
  5142. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5143. for as_dir in $PATH
  5144. do
  5145. IFS=$as_save_IFS
  5146. test -z "$as_dir" && as_dir=.
  5147. for ac_exec_ext in '' $ac_executable_extensions; do
  5148. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5149. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5150. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5151. break 2
  5152. fi
  5153. done
  5154. done
  5155. IFS=$as_save_IFS
  5156. fi
  5157. fi
  5158. DUMPBIN=$ac_cv_prog_DUMPBIN
  5159. if test -n "$DUMPBIN"; then
  5160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5161. $as_echo "$DUMPBIN" >&6; }
  5162. else
  5163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5164. $as_echo "no" >&6; }
  5165. fi
  5166. test -n "$DUMPBIN" && break
  5167. done
  5168. fi
  5169. if test -z "$DUMPBIN"; then
  5170. ac_ct_DUMPBIN=$DUMPBIN
  5171. for ac_prog in dumpbin "link -dump"
  5172. do
  5173. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5174. set dummy $ac_prog; ac_word=$2
  5175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5176. $as_echo_n "checking for $ac_word... " >&6; }
  5177. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5178. $as_echo_n "(cached) " >&6
  5179. else
  5180. if test -n "$ac_ct_DUMPBIN"; then
  5181. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5182. else
  5183. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5184. for as_dir in $PATH
  5185. do
  5186. IFS=$as_save_IFS
  5187. test -z "$as_dir" && as_dir=.
  5188. for ac_exec_ext in '' $ac_executable_extensions; do
  5189. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5190. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5191. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5192. break 2
  5193. fi
  5194. done
  5195. done
  5196. IFS=$as_save_IFS
  5197. fi
  5198. fi
  5199. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5200. if test -n "$ac_ct_DUMPBIN"; then
  5201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5202. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5203. else
  5204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5205. $as_echo "no" >&6; }
  5206. fi
  5207. test -n "$ac_ct_DUMPBIN" && break
  5208. done
  5209. if test "x$ac_ct_DUMPBIN" = x; then
  5210. DUMPBIN=":"
  5211. else
  5212. case $cross_compiling:$ac_tool_warned in
  5213. yes:)
  5214. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5215. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5216. ac_tool_warned=yes ;;
  5217. esac
  5218. DUMPBIN=$ac_ct_DUMPBIN
  5219. fi
  5220. fi
  5221. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  5222. *COFF*)
  5223. DUMPBIN="$DUMPBIN -symbols -headers"
  5224. ;;
  5225. *)
  5226. DUMPBIN=:
  5227. ;;
  5228. esac
  5229. fi
  5230. if test : != "$DUMPBIN"; then
  5231. NM=$DUMPBIN
  5232. fi
  5233. fi
  5234. test -z "$NM" && NM=nm
  5235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5236. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5237. if ${lt_cv_nm_interface+:} false; then :
  5238. $as_echo_n "(cached) " >&6
  5239. else
  5240. lt_cv_nm_interface="BSD nm"
  5241. echo "int some_variable = 0;" > conftest.$ac_ext
  5242. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5243. (eval "$ac_compile" 2>conftest.err)
  5244. cat conftest.err >&5
  5245. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5246. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5247. cat conftest.err >&5
  5248. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5249. cat conftest.out >&5
  5250. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5251. lt_cv_nm_interface="MS dumpbin"
  5252. fi
  5253. rm -f conftest*
  5254. fi
  5255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5256. $as_echo "$lt_cv_nm_interface" >&6; }
  5257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5258. $as_echo_n "checking whether ln -s works... " >&6; }
  5259. LN_S=$as_ln_s
  5260. if test "$LN_S" = "ln -s"; then
  5261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5262. $as_echo "yes" >&6; }
  5263. else
  5264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5265. $as_echo "no, using $LN_S" >&6; }
  5266. fi
  5267. # find the maximum length of command line arguments
  5268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5269. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5270. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5271. $as_echo_n "(cached) " >&6
  5272. else
  5273. i=0
  5274. teststring=ABCD
  5275. case $build_os in
  5276. msdosdjgpp*)
  5277. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5278. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5279. # during glob expansion). Even if it were fixed, the result of this
  5280. # check would be larger than it should be.
  5281. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5282. ;;
  5283. gnu*)
  5284. # Under GNU Hurd, this test is not required because there is
  5285. # no limit to the length of command line arguments.
  5286. # Libtool will interpret -1 as no limit whatsoever
  5287. lt_cv_sys_max_cmd_len=-1;
  5288. ;;
  5289. cygwin* | mingw* | cegcc*)
  5290. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5291. # about 5 minutes as the teststring grows exponentially.
  5292. # Worse, since 9x/ME are not pre-emptively multitasking,
  5293. # you end up with a "frozen" computer, even though with patience
  5294. # the test eventually succeeds (with a max line length of 256k).
  5295. # Instead, let's just punt: use the minimum linelength reported by
  5296. # all of the supported platforms: 8192 (on NT/2K/XP).
  5297. lt_cv_sys_max_cmd_len=8192;
  5298. ;;
  5299. mint*)
  5300. # On MiNT this can take a long time and run out of memory.
  5301. lt_cv_sys_max_cmd_len=8192;
  5302. ;;
  5303. amigaos*)
  5304. # On AmigaOS with pdksh, this test takes hours, literally.
  5305. # So we just punt and use a minimum line length of 8192.
  5306. lt_cv_sys_max_cmd_len=8192;
  5307. ;;
  5308. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  5309. # This has been around since 386BSD, at least. Likely further.
  5310. if test -x /sbin/sysctl; then
  5311. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5312. elif test -x /usr/sbin/sysctl; then
  5313. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5314. else
  5315. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5316. fi
  5317. # And add a safety zone
  5318. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5319. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5320. ;;
  5321. interix*)
  5322. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5323. lt_cv_sys_max_cmd_len=196608
  5324. ;;
  5325. os2*)
  5326. # The test takes a long time on OS/2.
  5327. lt_cv_sys_max_cmd_len=8192
  5328. ;;
  5329. osf*)
  5330. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5331. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5332. # nice to cause kernel panics so lets avoid the loop below.
  5333. # First set a reasonable default.
  5334. lt_cv_sys_max_cmd_len=16384
  5335. #
  5336. if test -x /sbin/sysconfig; then
  5337. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5338. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5339. esac
  5340. fi
  5341. ;;
  5342. sco3.2v5*)
  5343. lt_cv_sys_max_cmd_len=102400
  5344. ;;
  5345. sysv5* | sco5v6* | sysv4.2uw2*)
  5346. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5347. if test -n "$kargmax"; then
  5348. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5349. else
  5350. lt_cv_sys_max_cmd_len=32768
  5351. fi
  5352. ;;
  5353. *)
  5354. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5355. if test -n "$lt_cv_sys_max_cmd_len" && \
  5356. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5357. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5358. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5359. else
  5360. # Make teststring a little bigger before we do anything with it.
  5361. # a 1K string should be a reasonable start.
  5362. for i in 1 2 3 4 5 6 7 8; do
  5363. teststring=$teststring$teststring
  5364. done
  5365. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5366. # If test is not a shell built-in, we'll probably end up computing a
  5367. # maximum length that is only half of the actual maximum length, but
  5368. # we can't tell.
  5369. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  5370. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5371. test 17 != "$i" # 1/2 MB should be enough
  5372. do
  5373. i=`expr $i + 1`
  5374. teststring=$teststring$teststring
  5375. done
  5376. # Only check the string length outside the loop.
  5377. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5378. teststring=
  5379. # Add a significant safety factor because C++ compilers can tack on
  5380. # massive amounts of additional arguments before passing them to the
  5381. # linker. It appears as though 1/2 is a usable value.
  5382. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5383. fi
  5384. ;;
  5385. esac
  5386. fi
  5387. if test -n "$lt_cv_sys_max_cmd_len"; then
  5388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5389. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5390. else
  5391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5392. $as_echo "none" >&6; }
  5393. fi
  5394. max_cmd_len=$lt_cv_sys_max_cmd_len
  5395. : ${CP="cp -f"}
  5396. : ${MV="mv -f"}
  5397. : ${RM="rm -f"}
  5398. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5399. lt_unset=unset
  5400. else
  5401. lt_unset=false
  5402. fi
  5403. # test EBCDIC or ASCII
  5404. case `echo X|tr X '\101'` in
  5405. A) # ASCII based system
  5406. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5407. lt_SP2NL='tr \040 \012'
  5408. lt_NL2SP='tr \015\012 \040\040'
  5409. ;;
  5410. *) # EBCDIC based system
  5411. lt_SP2NL='tr \100 \n'
  5412. lt_NL2SP='tr \r\n \100\100'
  5413. ;;
  5414. esac
  5415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5416. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5417. if ${lt_cv_to_host_file_cmd+:} false; then :
  5418. $as_echo_n "(cached) " >&6
  5419. else
  5420. case $host in
  5421. *-*-mingw* )
  5422. case $build in
  5423. *-*-mingw* ) # actually msys
  5424. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5425. ;;
  5426. *-*-cygwin* )
  5427. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5428. ;;
  5429. * ) # otherwise, assume *nix
  5430. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5431. ;;
  5432. esac
  5433. ;;
  5434. *-*-cygwin* )
  5435. case $build in
  5436. *-*-mingw* ) # actually msys
  5437. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5438. ;;
  5439. *-*-cygwin* )
  5440. lt_cv_to_host_file_cmd=func_convert_file_noop
  5441. ;;
  5442. * ) # otherwise, assume *nix
  5443. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5444. ;;
  5445. esac
  5446. ;;
  5447. * ) # unhandled hosts (and "normal" native builds)
  5448. lt_cv_to_host_file_cmd=func_convert_file_noop
  5449. ;;
  5450. esac
  5451. fi
  5452. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5454. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5456. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5457. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5458. $as_echo_n "(cached) " >&6
  5459. else
  5460. #assume ordinary cross tools, or native build.
  5461. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5462. case $host in
  5463. *-*-mingw* )
  5464. case $build in
  5465. *-*-mingw* ) # actually msys
  5466. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5467. ;;
  5468. esac
  5469. ;;
  5470. esac
  5471. fi
  5472. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5474. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5476. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5477. if ${lt_cv_ld_reload_flag+:} false; then :
  5478. $as_echo_n "(cached) " >&6
  5479. else
  5480. lt_cv_ld_reload_flag='-r'
  5481. fi
  5482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5483. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5484. reload_flag=$lt_cv_ld_reload_flag
  5485. case $reload_flag in
  5486. "" | " "*) ;;
  5487. *) reload_flag=" $reload_flag" ;;
  5488. esac
  5489. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5490. case $host_os in
  5491. cygwin* | mingw* | pw32* | cegcc*)
  5492. if test yes != "$GCC"; then
  5493. reload_cmds=false
  5494. fi
  5495. ;;
  5496. darwin*)
  5497. if test yes = "$GCC"; then
  5498. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5499. else
  5500. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5501. fi
  5502. ;;
  5503. esac
  5504. if test -n "$ac_tool_prefix"; then
  5505. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5506. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5508. $as_echo_n "checking for $ac_word... " >&6; }
  5509. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5510. $as_echo_n "(cached) " >&6
  5511. else
  5512. if test -n "$OBJDUMP"; then
  5513. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5514. else
  5515. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5516. for as_dir in $PATH
  5517. do
  5518. IFS=$as_save_IFS
  5519. test -z "$as_dir" && as_dir=.
  5520. for ac_exec_ext in '' $ac_executable_extensions; do
  5521. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5522. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5523. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5524. break 2
  5525. fi
  5526. done
  5527. done
  5528. IFS=$as_save_IFS
  5529. fi
  5530. fi
  5531. OBJDUMP=$ac_cv_prog_OBJDUMP
  5532. if test -n "$OBJDUMP"; then
  5533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5534. $as_echo "$OBJDUMP" >&6; }
  5535. else
  5536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5537. $as_echo "no" >&6; }
  5538. fi
  5539. fi
  5540. if test -z "$ac_cv_prog_OBJDUMP"; then
  5541. ac_ct_OBJDUMP=$OBJDUMP
  5542. # Extract the first word of "objdump", so it can be a program name with args.
  5543. set dummy objdump; ac_word=$2
  5544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5545. $as_echo_n "checking for $ac_word... " >&6; }
  5546. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5547. $as_echo_n "(cached) " >&6
  5548. else
  5549. if test -n "$ac_ct_OBJDUMP"; then
  5550. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5551. else
  5552. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5553. for as_dir in $PATH
  5554. do
  5555. IFS=$as_save_IFS
  5556. test -z "$as_dir" && as_dir=.
  5557. for ac_exec_ext in '' $ac_executable_extensions; do
  5558. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5559. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5560. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5561. break 2
  5562. fi
  5563. done
  5564. done
  5565. IFS=$as_save_IFS
  5566. fi
  5567. fi
  5568. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5569. if test -n "$ac_ct_OBJDUMP"; then
  5570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5571. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5572. else
  5573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5574. $as_echo "no" >&6; }
  5575. fi
  5576. if test "x$ac_ct_OBJDUMP" = x; then
  5577. OBJDUMP="false"
  5578. else
  5579. case $cross_compiling:$ac_tool_warned in
  5580. yes:)
  5581. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5582. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5583. ac_tool_warned=yes ;;
  5584. esac
  5585. OBJDUMP=$ac_ct_OBJDUMP
  5586. fi
  5587. else
  5588. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5589. fi
  5590. test -z "$OBJDUMP" && OBJDUMP=objdump
  5591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5592. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5593. if ${lt_cv_deplibs_check_method+:} false; then :
  5594. $as_echo_n "(cached) " >&6
  5595. else
  5596. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5597. lt_cv_file_magic_test_file=
  5598. lt_cv_deplibs_check_method='unknown'
  5599. # Need to set the preceding variable on all platforms that support
  5600. # interlibrary dependencies.
  5601. # 'none' -- dependencies not supported.
  5602. # 'unknown' -- same as none, but documents that we really don't know.
  5603. # 'pass_all' -- all dependencies passed with no checks.
  5604. # 'test_compile' -- check by making test program.
  5605. # 'file_magic [[regex]]' -- check by looking for files in library path
  5606. # that responds to the $file_magic_cmd with a given extended regex.
  5607. # If you have 'file' or equivalent on your system and you're not sure
  5608. # whether 'pass_all' will *always* work, you probably want this one.
  5609. case $host_os in
  5610. aix[4-9]*)
  5611. lt_cv_deplibs_check_method=pass_all
  5612. ;;
  5613. beos*)
  5614. lt_cv_deplibs_check_method=pass_all
  5615. ;;
  5616. bsdi[45]*)
  5617. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5618. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5619. lt_cv_file_magic_test_file=/shlib/libc.so
  5620. ;;
  5621. cygwin*)
  5622. # func_win32_libid is a shell function defined in ltmain.sh
  5623. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5624. lt_cv_file_magic_cmd='func_win32_libid'
  5625. ;;
  5626. mingw* | pw32*)
  5627. # Base MSYS/MinGW do not provide the 'file' command needed by
  5628. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5629. # unless we find 'file', for example because we are cross-compiling.
  5630. if ( file / ) >/dev/null 2>&1; then
  5631. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5632. lt_cv_file_magic_cmd='func_win32_libid'
  5633. else
  5634. # Keep this pattern in sync with the one in func_win32_libid.
  5635. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5636. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5637. fi
  5638. ;;
  5639. cegcc*)
  5640. # use the weaker test based on 'objdump'. See mingw*.
  5641. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5642. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5643. ;;
  5644. darwin* | rhapsody*)
  5645. lt_cv_deplibs_check_method=pass_all
  5646. ;;
  5647. freebsd* | dragonfly*)
  5648. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5649. case $host_cpu in
  5650. i*86 )
  5651. # Not sure whether the presence of OpenBSD here was a mistake.
  5652. # Let's accept both of them until this is cleared up.
  5653. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5654. lt_cv_file_magic_cmd=/usr/bin/file
  5655. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5656. ;;
  5657. esac
  5658. else
  5659. lt_cv_deplibs_check_method=pass_all
  5660. fi
  5661. ;;
  5662. haiku*)
  5663. lt_cv_deplibs_check_method=pass_all
  5664. ;;
  5665. hpux10.20* | hpux11*)
  5666. lt_cv_file_magic_cmd=/usr/bin/file
  5667. case $host_cpu in
  5668. ia64*)
  5669. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5670. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5671. ;;
  5672. hppa*64*)
  5673. 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]'
  5674. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5675. ;;
  5676. *)
  5677. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5678. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5679. ;;
  5680. esac
  5681. ;;
  5682. interix[3-9]*)
  5683. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5684. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5685. ;;
  5686. irix5* | irix6* | nonstopux*)
  5687. case $LD in
  5688. *-32|*"-32 ") libmagic=32-bit;;
  5689. *-n32|*"-n32 ") libmagic=N32;;
  5690. *-64|*"-64 ") libmagic=64-bit;;
  5691. *) libmagic=never-match;;
  5692. esac
  5693. lt_cv_deplibs_check_method=pass_all
  5694. ;;
  5695. # This must be glibc/ELF.
  5696. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5697. lt_cv_deplibs_check_method=pass_all
  5698. ;;
  5699. netbsd* | netbsdelf*-gnu)
  5700. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5701. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5702. else
  5703. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5704. fi
  5705. ;;
  5706. newos6*)
  5707. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5708. lt_cv_file_magic_cmd=/usr/bin/file
  5709. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5710. ;;
  5711. *nto* | *qnx*)
  5712. lt_cv_deplibs_check_method=pass_all
  5713. ;;
  5714. openbsd* | bitrig*)
  5715. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5716. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5717. else
  5718. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5719. fi
  5720. ;;
  5721. osf3* | osf4* | osf5*)
  5722. lt_cv_deplibs_check_method=pass_all
  5723. ;;
  5724. rdos*)
  5725. lt_cv_deplibs_check_method=pass_all
  5726. ;;
  5727. solaris*)
  5728. lt_cv_deplibs_check_method=pass_all
  5729. ;;
  5730. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5731. lt_cv_deplibs_check_method=pass_all
  5732. ;;
  5733. sysv4 | sysv4.3*)
  5734. case $host_vendor in
  5735. motorola)
  5736. 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]'
  5737. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5738. ;;
  5739. ncr)
  5740. lt_cv_deplibs_check_method=pass_all
  5741. ;;
  5742. sequent)
  5743. lt_cv_file_magic_cmd='/bin/file'
  5744. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5745. ;;
  5746. sni)
  5747. lt_cv_file_magic_cmd='/bin/file'
  5748. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5749. lt_cv_file_magic_test_file=/lib/libc.so
  5750. ;;
  5751. siemens)
  5752. lt_cv_deplibs_check_method=pass_all
  5753. ;;
  5754. pc)
  5755. lt_cv_deplibs_check_method=pass_all
  5756. ;;
  5757. esac
  5758. ;;
  5759. tpf*)
  5760. lt_cv_deplibs_check_method=pass_all
  5761. ;;
  5762. os2*)
  5763. lt_cv_deplibs_check_method=pass_all
  5764. ;;
  5765. esac
  5766. fi
  5767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5768. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5769. file_magic_glob=
  5770. want_nocaseglob=no
  5771. if test "$build" = "$host"; then
  5772. case $host_os in
  5773. mingw* | pw32*)
  5774. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5775. want_nocaseglob=yes
  5776. else
  5777. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5778. fi
  5779. ;;
  5780. esac
  5781. fi
  5782. file_magic_cmd=$lt_cv_file_magic_cmd
  5783. deplibs_check_method=$lt_cv_deplibs_check_method
  5784. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5785. if test -n "$ac_tool_prefix"; then
  5786. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5787. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5789. $as_echo_n "checking for $ac_word... " >&6; }
  5790. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5791. $as_echo_n "(cached) " >&6
  5792. else
  5793. if test -n "$DLLTOOL"; then
  5794. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5795. else
  5796. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5797. for as_dir in $PATH
  5798. do
  5799. IFS=$as_save_IFS
  5800. test -z "$as_dir" && as_dir=.
  5801. for ac_exec_ext in '' $ac_executable_extensions; do
  5802. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5803. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5804. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5805. break 2
  5806. fi
  5807. done
  5808. done
  5809. IFS=$as_save_IFS
  5810. fi
  5811. fi
  5812. DLLTOOL=$ac_cv_prog_DLLTOOL
  5813. if test -n "$DLLTOOL"; then
  5814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5815. $as_echo "$DLLTOOL" >&6; }
  5816. else
  5817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5818. $as_echo "no" >&6; }
  5819. fi
  5820. fi
  5821. if test -z "$ac_cv_prog_DLLTOOL"; then
  5822. ac_ct_DLLTOOL=$DLLTOOL
  5823. # Extract the first word of "dlltool", so it can be a program name with args.
  5824. set dummy dlltool; ac_word=$2
  5825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5826. $as_echo_n "checking for $ac_word... " >&6; }
  5827. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5828. $as_echo_n "(cached) " >&6
  5829. else
  5830. if test -n "$ac_ct_DLLTOOL"; then
  5831. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5832. else
  5833. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5834. for as_dir in $PATH
  5835. do
  5836. IFS=$as_save_IFS
  5837. test -z "$as_dir" && as_dir=.
  5838. for ac_exec_ext in '' $ac_executable_extensions; do
  5839. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5840. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5841. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5842. break 2
  5843. fi
  5844. done
  5845. done
  5846. IFS=$as_save_IFS
  5847. fi
  5848. fi
  5849. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5850. if test -n "$ac_ct_DLLTOOL"; then
  5851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5852. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5853. else
  5854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5855. $as_echo "no" >&6; }
  5856. fi
  5857. if test "x$ac_ct_DLLTOOL" = x; then
  5858. DLLTOOL="false"
  5859. else
  5860. case $cross_compiling:$ac_tool_warned in
  5861. yes:)
  5862. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5863. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5864. ac_tool_warned=yes ;;
  5865. esac
  5866. DLLTOOL=$ac_ct_DLLTOOL
  5867. fi
  5868. else
  5869. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5870. fi
  5871. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5873. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5874. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5875. $as_echo_n "(cached) " >&6
  5876. else
  5877. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5878. case $host_os in
  5879. cygwin* | mingw* | pw32* | cegcc*)
  5880. # two different shell functions defined in ltmain.sh;
  5881. # decide which one to use based on capabilities of $DLLTOOL
  5882. case `$DLLTOOL --help 2>&1` in
  5883. *--identify-strict*)
  5884. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5885. ;;
  5886. *)
  5887. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5888. ;;
  5889. esac
  5890. ;;
  5891. *)
  5892. # fallback: assume linklib IS sharedlib
  5893. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5894. ;;
  5895. esac
  5896. fi
  5897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5898. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5899. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5900. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5901. if test -n "$ac_tool_prefix"; then
  5902. for ac_prog in ar
  5903. do
  5904. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5905. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5907. $as_echo_n "checking for $ac_word... " >&6; }
  5908. if ${ac_cv_prog_AR+:} false; then :
  5909. $as_echo_n "(cached) " >&6
  5910. else
  5911. if test -n "$AR"; then
  5912. ac_cv_prog_AR="$AR" # Let the user override the test.
  5913. else
  5914. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5915. for as_dir in $PATH
  5916. do
  5917. IFS=$as_save_IFS
  5918. test -z "$as_dir" && as_dir=.
  5919. for ac_exec_ext in '' $ac_executable_extensions; do
  5920. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5921. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5922. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5923. break 2
  5924. fi
  5925. done
  5926. done
  5927. IFS=$as_save_IFS
  5928. fi
  5929. fi
  5930. AR=$ac_cv_prog_AR
  5931. if test -n "$AR"; then
  5932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5933. $as_echo "$AR" >&6; }
  5934. else
  5935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5936. $as_echo "no" >&6; }
  5937. fi
  5938. test -n "$AR" && break
  5939. done
  5940. fi
  5941. if test -z "$AR"; then
  5942. ac_ct_AR=$AR
  5943. for ac_prog in ar
  5944. do
  5945. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5946. set dummy $ac_prog; ac_word=$2
  5947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5948. $as_echo_n "checking for $ac_word... " >&6; }
  5949. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5950. $as_echo_n "(cached) " >&6
  5951. else
  5952. if test -n "$ac_ct_AR"; then
  5953. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5954. else
  5955. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5956. for as_dir in $PATH
  5957. do
  5958. IFS=$as_save_IFS
  5959. test -z "$as_dir" && as_dir=.
  5960. for ac_exec_ext in '' $ac_executable_extensions; do
  5961. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5962. ac_cv_prog_ac_ct_AR="$ac_prog"
  5963. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5964. break 2
  5965. fi
  5966. done
  5967. done
  5968. IFS=$as_save_IFS
  5969. fi
  5970. fi
  5971. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5972. if test -n "$ac_ct_AR"; then
  5973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5974. $as_echo "$ac_ct_AR" >&6; }
  5975. else
  5976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5977. $as_echo "no" >&6; }
  5978. fi
  5979. test -n "$ac_ct_AR" && break
  5980. done
  5981. if test "x$ac_ct_AR" = x; then
  5982. AR="false"
  5983. else
  5984. case $cross_compiling:$ac_tool_warned in
  5985. yes:)
  5986. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5987. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5988. ac_tool_warned=yes ;;
  5989. esac
  5990. AR=$ac_ct_AR
  5991. fi
  5992. fi
  5993. : ${AR=ar}
  5994. : ${AR_FLAGS=cru}
  5995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5996. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5997. if ${lt_cv_ar_at_file+:} false; then :
  5998. $as_echo_n "(cached) " >&6
  5999. else
  6000. lt_cv_ar_at_file=no
  6001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6002. /* end confdefs.h. */
  6003. int
  6004. main ()
  6005. {
  6006. ;
  6007. return 0;
  6008. }
  6009. _ACEOF
  6010. if ac_fn_c_try_compile "$LINENO"; then :
  6011. echo conftest.$ac_objext > conftest.lst
  6012. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6013. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6014. (eval $lt_ar_try) 2>&5
  6015. ac_status=$?
  6016. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6017. test $ac_status = 0; }
  6018. if test 0 -eq "$ac_status"; then
  6019. # Ensure the archiver fails upon bogus file names.
  6020. rm -f conftest.$ac_objext libconftest.a
  6021. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6022. (eval $lt_ar_try) 2>&5
  6023. ac_status=$?
  6024. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6025. test $ac_status = 0; }
  6026. if test 0 -ne "$ac_status"; then
  6027. lt_cv_ar_at_file=@
  6028. fi
  6029. fi
  6030. rm -f conftest.* libconftest.a
  6031. fi
  6032. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6033. fi
  6034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6035. $as_echo "$lt_cv_ar_at_file" >&6; }
  6036. if test no = "$lt_cv_ar_at_file"; then
  6037. archiver_list_spec=
  6038. else
  6039. archiver_list_spec=$lt_cv_ar_at_file
  6040. fi
  6041. if test -n "$ac_tool_prefix"; then
  6042. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6043. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6045. $as_echo_n "checking for $ac_word... " >&6; }
  6046. if ${ac_cv_prog_STRIP+:} false; then :
  6047. $as_echo_n "(cached) " >&6
  6048. else
  6049. if test -n "$STRIP"; then
  6050. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6051. else
  6052. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6053. for as_dir in $PATH
  6054. do
  6055. IFS=$as_save_IFS
  6056. test -z "$as_dir" && as_dir=.
  6057. for ac_exec_ext in '' $ac_executable_extensions; do
  6058. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6059. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6060. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6061. break 2
  6062. fi
  6063. done
  6064. done
  6065. IFS=$as_save_IFS
  6066. fi
  6067. fi
  6068. STRIP=$ac_cv_prog_STRIP
  6069. if test -n "$STRIP"; then
  6070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6071. $as_echo "$STRIP" >&6; }
  6072. else
  6073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6074. $as_echo "no" >&6; }
  6075. fi
  6076. fi
  6077. if test -z "$ac_cv_prog_STRIP"; then
  6078. ac_ct_STRIP=$STRIP
  6079. # Extract the first word of "strip", so it can be a program name with args.
  6080. set dummy strip; ac_word=$2
  6081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6082. $as_echo_n "checking for $ac_word... " >&6; }
  6083. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6084. $as_echo_n "(cached) " >&6
  6085. else
  6086. if test -n "$ac_ct_STRIP"; then
  6087. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6088. else
  6089. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6090. for as_dir in $PATH
  6091. do
  6092. IFS=$as_save_IFS
  6093. test -z "$as_dir" && as_dir=.
  6094. for ac_exec_ext in '' $ac_executable_extensions; do
  6095. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6096. ac_cv_prog_ac_ct_STRIP="strip"
  6097. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6098. break 2
  6099. fi
  6100. done
  6101. done
  6102. IFS=$as_save_IFS
  6103. fi
  6104. fi
  6105. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6106. if test -n "$ac_ct_STRIP"; then
  6107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6108. $as_echo "$ac_ct_STRIP" >&6; }
  6109. else
  6110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6111. $as_echo "no" >&6; }
  6112. fi
  6113. if test "x$ac_ct_STRIP" = x; then
  6114. STRIP=":"
  6115. else
  6116. case $cross_compiling:$ac_tool_warned in
  6117. yes:)
  6118. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6119. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6120. ac_tool_warned=yes ;;
  6121. esac
  6122. STRIP=$ac_ct_STRIP
  6123. fi
  6124. else
  6125. STRIP="$ac_cv_prog_STRIP"
  6126. fi
  6127. test -z "$STRIP" && STRIP=:
  6128. if test -n "$ac_tool_prefix"; then
  6129. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6130. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6132. $as_echo_n "checking for $ac_word... " >&6; }
  6133. if ${ac_cv_prog_RANLIB+:} false; then :
  6134. $as_echo_n "(cached) " >&6
  6135. else
  6136. if test -n "$RANLIB"; then
  6137. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6138. else
  6139. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6140. for as_dir in $PATH
  6141. do
  6142. IFS=$as_save_IFS
  6143. test -z "$as_dir" && as_dir=.
  6144. for ac_exec_ext in '' $ac_executable_extensions; do
  6145. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6146. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6147. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6148. break 2
  6149. fi
  6150. done
  6151. done
  6152. IFS=$as_save_IFS
  6153. fi
  6154. fi
  6155. RANLIB=$ac_cv_prog_RANLIB
  6156. if test -n "$RANLIB"; then
  6157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6158. $as_echo "$RANLIB" >&6; }
  6159. else
  6160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6161. $as_echo "no" >&6; }
  6162. fi
  6163. fi
  6164. if test -z "$ac_cv_prog_RANLIB"; then
  6165. ac_ct_RANLIB=$RANLIB
  6166. # Extract the first word of "ranlib", so it can be a program name with args.
  6167. set dummy ranlib; ac_word=$2
  6168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6169. $as_echo_n "checking for $ac_word... " >&6; }
  6170. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6171. $as_echo_n "(cached) " >&6
  6172. else
  6173. if test -n "$ac_ct_RANLIB"; then
  6174. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6175. else
  6176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6177. for as_dir in $PATH
  6178. do
  6179. IFS=$as_save_IFS
  6180. test -z "$as_dir" && as_dir=.
  6181. for ac_exec_ext in '' $ac_executable_extensions; do
  6182. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6183. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6184. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6185. break 2
  6186. fi
  6187. done
  6188. done
  6189. IFS=$as_save_IFS
  6190. fi
  6191. fi
  6192. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6193. if test -n "$ac_ct_RANLIB"; then
  6194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6195. $as_echo "$ac_ct_RANLIB" >&6; }
  6196. else
  6197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6198. $as_echo "no" >&6; }
  6199. fi
  6200. if test "x$ac_ct_RANLIB" = x; then
  6201. RANLIB=":"
  6202. else
  6203. case $cross_compiling:$ac_tool_warned in
  6204. yes:)
  6205. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6206. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6207. ac_tool_warned=yes ;;
  6208. esac
  6209. RANLIB=$ac_ct_RANLIB
  6210. fi
  6211. else
  6212. RANLIB="$ac_cv_prog_RANLIB"
  6213. fi
  6214. test -z "$RANLIB" && RANLIB=:
  6215. # Determine commands to create old-style static archives.
  6216. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6217. old_postinstall_cmds='chmod 644 $oldlib'
  6218. old_postuninstall_cmds=
  6219. if test -n "$RANLIB"; then
  6220. case $host_os in
  6221. bitrig* | openbsd*)
  6222. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6223. ;;
  6224. *)
  6225. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6226. ;;
  6227. esac
  6228. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6229. fi
  6230. case $host_os in
  6231. darwin*)
  6232. lock_old_archive_extraction=yes ;;
  6233. *)
  6234. lock_old_archive_extraction=no ;;
  6235. esac
  6236. # If no C compiler was specified, use CC.
  6237. LTCC=${LTCC-"$CC"}
  6238. # If no C compiler flags were specified, use CFLAGS.
  6239. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6240. # Allow CC to be a program name with arguments.
  6241. compiler=$CC
  6242. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6244. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6245. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6246. $as_echo_n "(cached) " >&6
  6247. else
  6248. # These are sane defaults that work on at least a few old systems.
  6249. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6250. # Character class describing NM global symbol codes.
  6251. symcode='[BCDEGRST]'
  6252. # Regexp to match symbols that can be accessed directly from C.
  6253. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6254. # Define system-specific variables.
  6255. case $host_os in
  6256. aix*)
  6257. symcode='[BCDT]'
  6258. ;;
  6259. cygwin* | mingw* | pw32* | cegcc*)
  6260. symcode='[ABCDGISTW]'
  6261. ;;
  6262. hpux*)
  6263. if test ia64 = "$host_cpu"; then
  6264. symcode='[ABCDEGRST]'
  6265. fi
  6266. ;;
  6267. irix* | nonstopux*)
  6268. symcode='[BCDEGRST]'
  6269. ;;
  6270. osf*)
  6271. symcode='[BCDEGQRST]'
  6272. ;;
  6273. solaris*)
  6274. symcode='[BDRT]'
  6275. ;;
  6276. sco3.2v5*)
  6277. symcode='[DT]'
  6278. ;;
  6279. sysv4.2uw2*)
  6280. symcode='[DT]'
  6281. ;;
  6282. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6283. symcode='[ABDT]'
  6284. ;;
  6285. sysv4)
  6286. symcode='[DFNSTU]'
  6287. ;;
  6288. esac
  6289. # If we're using GNU nm, then use its standard symbol codes.
  6290. case `$NM -V 2>&1` in
  6291. *GNU* | *'with BFD'*)
  6292. symcode='[ABCDGIRSTW]' ;;
  6293. esac
  6294. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6295. # Gets list of data symbols to import.
  6296. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  6297. # Adjust the below global symbol transforms to fixup imported variables.
  6298. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  6299. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  6300. lt_c_name_lib_hook="\
  6301. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  6302. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  6303. else
  6304. # Disable hooks by default.
  6305. lt_cv_sys_global_symbol_to_import=
  6306. lt_cdecl_hook=
  6307. lt_c_name_hook=
  6308. lt_c_name_lib_hook=
  6309. fi
  6310. # Transform an extracted symbol line into a proper C declaration.
  6311. # Some systems (esp. on ia64) link data and code symbols differently,
  6312. # so use this general approach.
  6313. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  6314. $lt_cdecl_hook\
  6315. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6316. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6317. # Transform an extracted symbol line into symbol name and symbol address
  6318. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  6319. $lt_c_name_hook\
  6320. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6321. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6322. # Transform an extracted symbol line into symbol name with lib prefix and
  6323. # symbol address.
  6324. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  6325. $lt_c_name_lib_hook\
  6326. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6327. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6328. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6329. # Handle CRLF in mingw tool chain
  6330. opt_cr=
  6331. case $build_os in
  6332. mingw*)
  6333. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6334. ;;
  6335. esac
  6336. # Try without a prefix underscore, then with it.
  6337. for ac_symprfx in "" "_"; do
  6338. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6339. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6340. # Write the raw and C identifiers.
  6341. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6342. # Fake it for dumpbin and say T for any non-static function,
  6343. # D for any global variable and I for any imported variable.
  6344. # Also find C++ and __fastcall symbols from MSVC++,
  6345. # which start with @ or ?.
  6346. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6347. " {last_section=section; section=\$ 3};"\
  6348. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6349. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6350. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6351. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6352. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6353. " \$ 0!~/External *\|/{next};"\
  6354. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6355. " {if(hide[section]) next};"\
  6356. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6357. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6358. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6359. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6360. " ' prfx=^$ac_symprfx"
  6361. else
  6362. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6363. fi
  6364. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6365. # Check to see that the pipe works correctly.
  6366. pipe_works=no
  6367. rm -f conftest*
  6368. cat > conftest.$ac_ext <<_LT_EOF
  6369. #ifdef __cplusplus
  6370. extern "C" {
  6371. #endif
  6372. char nm_test_var;
  6373. void nm_test_func(void);
  6374. void nm_test_func(void){}
  6375. #ifdef __cplusplus
  6376. }
  6377. #endif
  6378. int main(){nm_test_var='a';nm_test_func();return(0);}
  6379. _LT_EOF
  6380. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6381. (eval $ac_compile) 2>&5
  6382. ac_status=$?
  6383. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6384. test $ac_status = 0; }; then
  6385. # Now try to grab the symbols.
  6386. nlist=conftest.nm
  6387. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6388. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6389. ac_status=$?
  6390. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6391. test $ac_status = 0; } && test -s "$nlist"; then
  6392. # Try sorting and uniquifying the output.
  6393. if sort "$nlist" | uniq > "$nlist"T; then
  6394. mv -f "$nlist"T "$nlist"
  6395. else
  6396. rm -f "$nlist"T
  6397. fi
  6398. # Make sure that we snagged all the symbols we need.
  6399. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6400. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6401. cat <<_LT_EOF > conftest.$ac_ext
  6402. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6403. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6404. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6405. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6406. # define LT_DLSYM_CONST
  6407. #elif defined __osf__
  6408. /* This system does not cope well with relocations in const data. */
  6409. # define LT_DLSYM_CONST
  6410. #else
  6411. # define LT_DLSYM_CONST const
  6412. #endif
  6413. #ifdef __cplusplus
  6414. extern "C" {
  6415. #endif
  6416. _LT_EOF
  6417. # Now generate the symbol file.
  6418. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6419. cat <<_LT_EOF >> conftest.$ac_ext
  6420. /* The mapping between symbol names and symbols. */
  6421. LT_DLSYM_CONST struct {
  6422. const char *name;
  6423. void *address;
  6424. }
  6425. lt__PROGRAM__LTX_preloaded_symbols[] =
  6426. {
  6427. { "@PROGRAM@", (void *) 0 },
  6428. _LT_EOF
  6429. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6430. cat <<\_LT_EOF >> conftest.$ac_ext
  6431. {0, (void *) 0}
  6432. };
  6433. /* This works around a problem in FreeBSD linker */
  6434. #ifdef FREEBSD_WORKAROUND
  6435. static const void *lt_preloaded_setup() {
  6436. return lt__PROGRAM__LTX_preloaded_symbols;
  6437. }
  6438. #endif
  6439. #ifdef __cplusplus
  6440. }
  6441. #endif
  6442. _LT_EOF
  6443. # Now try linking the two files.
  6444. mv conftest.$ac_objext conftstm.$ac_objext
  6445. lt_globsym_save_LIBS=$LIBS
  6446. lt_globsym_save_CFLAGS=$CFLAGS
  6447. LIBS=conftstm.$ac_objext
  6448. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6449. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6450. (eval $ac_link) 2>&5
  6451. ac_status=$?
  6452. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6453. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6454. pipe_works=yes
  6455. fi
  6456. LIBS=$lt_globsym_save_LIBS
  6457. CFLAGS=$lt_globsym_save_CFLAGS
  6458. else
  6459. echo "cannot find nm_test_func in $nlist" >&5
  6460. fi
  6461. else
  6462. echo "cannot find nm_test_var in $nlist" >&5
  6463. fi
  6464. else
  6465. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6466. fi
  6467. else
  6468. echo "$progname: failed program was:" >&5
  6469. cat conftest.$ac_ext >&5
  6470. fi
  6471. rm -rf conftest* conftst*
  6472. # Do not use the global_symbol_pipe unless it works.
  6473. if test yes = "$pipe_works"; then
  6474. break
  6475. else
  6476. lt_cv_sys_global_symbol_pipe=
  6477. fi
  6478. done
  6479. fi
  6480. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6481. lt_cv_sys_global_symbol_to_cdecl=
  6482. fi
  6483. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6485. $as_echo "failed" >&6; }
  6486. else
  6487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6488. $as_echo "ok" >&6; }
  6489. fi
  6490. # Response file support.
  6491. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6492. nm_file_list_spec='@'
  6493. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6494. nm_file_list_spec='@'
  6495. fi
  6496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6497. $as_echo_n "checking for sysroot... " >&6; }
  6498. # Check whether --with-sysroot was given.
  6499. if test "${with_sysroot+set}" = set; then :
  6500. withval=$with_sysroot;
  6501. else
  6502. with_sysroot=no
  6503. fi
  6504. lt_sysroot=
  6505. case $with_sysroot in #(
  6506. yes)
  6507. if test yes = "$GCC"; then
  6508. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6509. fi
  6510. ;; #(
  6511. /*)
  6512. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6513. ;; #(
  6514. no|'')
  6515. ;; #(
  6516. *)
  6517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6518. $as_echo "$with_sysroot" >&6; }
  6519. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6520. ;;
  6521. esac
  6522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6523. $as_echo "${lt_sysroot:-no}" >&6; }
  6524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6525. $as_echo_n "checking for a working dd... " >&6; }
  6526. if ${ac_cv_path_lt_DD+:} false; then :
  6527. $as_echo_n "(cached) " >&6
  6528. else
  6529. printf 0123456789abcdef0123456789abcdef >conftest.i
  6530. cat conftest.i conftest.i >conftest2.i
  6531. : ${lt_DD:=$DD}
  6532. if test -z "$lt_DD"; then
  6533. ac_path_lt_DD_found=false
  6534. # Loop through the user's path and test for each of PROGNAME-LIST
  6535. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6536. for as_dir in $PATH
  6537. do
  6538. IFS=$as_save_IFS
  6539. test -z "$as_dir" && as_dir=.
  6540. for ac_prog in dd; do
  6541. for ac_exec_ext in '' $ac_executable_extensions; do
  6542. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  6543. as_fn_executable_p "$ac_path_lt_DD" || continue
  6544. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6545. cmp -s conftest.i conftest.out \
  6546. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6547. fi
  6548. $ac_path_lt_DD_found && break 3
  6549. done
  6550. done
  6551. done
  6552. IFS=$as_save_IFS
  6553. if test -z "$ac_cv_path_lt_DD"; then
  6554. :
  6555. fi
  6556. else
  6557. ac_cv_path_lt_DD=$lt_DD
  6558. fi
  6559. rm -f conftest.i conftest2.i conftest.out
  6560. fi
  6561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6562. $as_echo "$ac_cv_path_lt_DD" >&6; }
  6563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6564. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  6565. if ${lt_cv_truncate_bin+:} false; then :
  6566. $as_echo_n "(cached) " >&6
  6567. else
  6568. printf 0123456789abcdef0123456789abcdef >conftest.i
  6569. cat conftest.i conftest.i >conftest2.i
  6570. lt_cv_truncate_bin=
  6571. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6572. cmp -s conftest.i conftest.out \
  6573. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6574. fi
  6575. rm -f conftest.i conftest2.i conftest.out
  6576. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6577. fi
  6578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6579. $as_echo "$lt_cv_truncate_bin" >&6; }
  6580. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6581. func_cc_basename ()
  6582. {
  6583. for cc_temp in $*""; do
  6584. case $cc_temp in
  6585. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6586. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6587. \-*) ;;
  6588. *) break;;
  6589. esac
  6590. done
  6591. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6592. }
  6593. # Check whether --enable-libtool-lock was given.
  6594. if test "${enable_libtool_lock+set}" = set; then :
  6595. enableval=$enable_libtool_lock;
  6596. fi
  6597. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6598. # Some flags need to be propagated to the compiler or linker for good
  6599. # libtool support.
  6600. case $host in
  6601. ia64-*-hpux*)
  6602. # Find out what ABI is being produced by ac_compile, and set mode
  6603. # options accordingly.
  6604. echo 'int i;' > conftest.$ac_ext
  6605. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6606. (eval $ac_compile) 2>&5
  6607. ac_status=$?
  6608. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6609. test $ac_status = 0; }; then
  6610. case `/usr/bin/file conftest.$ac_objext` in
  6611. *ELF-32*)
  6612. HPUX_IA64_MODE=32
  6613. ;;
  6614. *ELF-64*)
  6615. HPUX_IA64_MODE=64
  6616. ;;
  6617. esac
  6618. fi
  6619. rm -rf conftest*
  6620. ;;
  6621. *-*-irix6*)
  6622. # Find out what ABI is being produced by ac_compile, and set linker
  6623. # options accordingly.
  6624. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6625. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6626. (eval $ac_compile) 2>&5
  6627. ac_status=$?
  6628. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6629. test $ac_status = 0; }; then
  6630. if test yes = "$lt_cv_prog_gnu_ld"; then
  6631. case `/usr/bin/file conftest.$ac_objext` in
  6632. *32-bit*)
  6633. LD="${LD-ld} -melf32bsmip"
  6634. ;;
  6635. *N32*)
  6636. LD="${LD-ld} -melf32bmipn32"
  6637. ;;
  6638. *64-bit*)
  6639. LD="${LD-ld} -melf64bmip"
  6640. ;;
  6641. esac
  6642. else
  6643. case `/usr/bin/file conftest.$ac_objext` in
  6644. *32-bit*)
  6645. LD="${LD-ld} -32"
  6646. ;;
  6647. *N32*)
  6648. LD="${LD-ld} -n32"
  6649. ;;
  6650. *64-bit*)
  6651. LD="${LD-ld} -64"
  6652. ;;
  6653. esac
  6654. fi
  6655. fi
  6656. rm -rf conftest*
  6657. ;;
  6658. mips64*-*linux*)
  6659. # Find out what ABI is being produced by ac_compile, and set linker
  6660. # options accordingly.
  6661. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6662. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6663. (eval $ac_compile) 2>&5
  6664. ac_status=$?
  6665. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6666. test $ac_status = 0; }; then
  6667. emul=elf
  6668. case `/usr/bin/file conftest.$ac_objext` in
  6669. *32-bit*)
  6670. emul="${emul}32"
  6671. ;;
  6672. *64-bit*)
  6673. emul="${emul}64"
  6674. ;;
  6675. esac
  6676. case `/usr/bin/file conftest.$ac_objext` in
  6677. *MSB*)
  6678. emul="${emul}btsmip"
  6679. ;;
  6680. *LSB*)
  6681. emul="${emul}ltsmip"
  6682. ;;
  6683. esac
  6684. case `/usr/bin/file conftest.$ac_objext` in
  6685. *N32*)
  6686. emul="${emul}n32"
  6687. ;;
  6688. esac
  6689. LD="${LD-ld} -m $emul"
  6690. fi
  6691. rm -rf conftest*
  6692. ;;
  6693. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6694. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6695. # Find out what ABI is being produced by ac_compile, and set linker
  6696. # options accordingly. Note that the listed cases only cover the
  6697. # situations where additional linker options are needed (such as when
  6698. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6699. # vice versa); the common cases where no linker options are needed do
  6700. # not appear in the list.
  6701. echo 'int i;' > conftest.$ac_ext
  6702. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6703. (eval $ac_compile) 2>&5
  6704. ac_status=$?
  6705. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6706. test $ac_status = 0; }; then
  6707. case `/usr/bin/file conftest.o` in
  6708. *32-bit*)
  6709. case $host in
  6710. x86_64-*kfreebsd*-gnu)
  6711. LD="${LD-ld} -m elf_i386_fbsd"
  6712. ;;
  6713. x86_64-*linux*)
  6714. case `/usr/bin/file conftest.o` in
  6715. *x86-64*)
  6716. LD="${LD-ld} -m elf32_x86_64"
  6717. ;;
  6718. *)
  6719. LD="${LD-ld} -m elf_i386"
  6720. ;;
  6721. esac
  6722. ;;
  6723. powerpc64le-*linux*)
  6724. LD="${LD-ld} -m elf32lppclinux"
  6725. ;;
  6726. powerpc64-*linux*)
  6727. LD="${LD-ld} -m elf32ppclinux"
  6728. ;;
  6729. s390x-*linux*)
  6730. LD="${LD-ld} -m elf_s390"
  6731. ;;
  6732. sparc64-*linux*)
  6733. LD="${LD-ld} -m elf32_sparc"
  6734. ;;
  6735. esac
  6736. ;;
  6737. *64-bit*)
  6738. case $host in
  6739. x86_64-*kfreebsd*-gnu)
  6740. LD="${LD-ld} -m elf_x86_64_fbsd"
  6741. ;;
  6742. x86_64-*linux*)
  6743. LD="${LD-ld} -m elf_x86_64"
  6744. ;;
  6745. powerpcle-*linux*)
  6746. LD="${LD-ld} -m elf64lppc"
  6747. ;;
  6748. powerpc-*linux*)
  6749. LD="${LD-ld} -m elf64ppc"
  6750. ;;
  6751. s390*-*linux*|s390*-*tpf*)
  6752. LD="${LD-ld} -m elf64_s390"
  6753. ;;
  6754. sparc*-*linux*)
  6755. LD="${LD-ld} -m elf64_sparc"
  6756. ;;
  6757. esac
  6758. ;;
  6759. esac
  6760. fi
  6761. rm -rf conftest*
  6762. ;;
  6763. *-*-sco3.2v5*)
  6764. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6765. SAVE_CFLAGS=$CFLAGS
  6766. CFLAGS="$CFLAGS -belf"
  6767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6768. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6769. if ${lt_cv_cc_needs_belf+:} false; then :
  6770. $as_echo_n "(cached) " >&6
  6771. else
  6772. ac_ext=c
  6773. ac_cpp='$CPP $CPPFLAGS'
  6774. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6775. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6776. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6778. /* end confdefs.h. */
  6779. int
  6780. main ()
  6781. {
  6782. ;
  6783. return 0;
  6784. }
  6785. _ACEOF
  6786. if ac_fn_c_try_link "$LINENO"; then :
  6787. lt_cv_cc_needs_belf=yes
  6788. else
  6789. lt_cv_cc_needs_belf=no
  6790. fi
  6791. rm -f core conftest.err conftest.$ac_objext \
  6792. conftest$ac_exeext conftest.$ac_ext
  6793. ac_ext=c
  6794. ac_cpp='$CPP $CPPFLAGS'
  6795. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6796. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6797. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6798. fi
  6799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6800. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6801. if test yes != "$lt_cv_cc_needs_belf"; then
  6802. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6803. CFLAGS=$SAVE_CFLAGS
  6804. fi
  6805. ;;
  6806. *-*solaris*)
  6807. # Find out what ABI is being produced by ac_compile, and set linker
  6808. # options accordingly.
  6809. echo 'int i;' > conftest.$ac_ext
  6810. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6811. (eval $ac_compile) 2>&5
  6812. ac_status=$?
  6813. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6814. test $ac_status = 0; }; then
  6815. case `/usr/bin/file conftest.o` in
  6816. *64-bit*)
  6817. case $lt_cv_prog_gnu_ld in
  6818. yes*)
  6819. case $host in
  6820. i?86-*-solaris*|x86_64-*-solaris*)
  6821. LD="${LD-ld} -m elf_x86_64"
  6822. ;;
  6823. sparc*-*-solaris*)
  6824. LD="${LD-ld} -m elf64_sparc"
  6825. ;;
  6826. esac
  6827. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6828. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6829. LD=${LD-ld}_sol2
  6830. fi
  6831. ;;
  6832. *)
  6833. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6834. LD="${LD-ld} -64"
  6835. fi
  6836. ;;
  6837. esac
  6838. ;;
  6839. esac
  6840. fi
  6841. rm -rf conftest*
  6842. ;;
  6843. esac
  6844. need_locks=$enable_libtool_lock
  6845. if test -n "$ac_tool_prefix"; then
  6846. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6847. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6849. $as_echo_n "checking for $ac_word... " >&6; }
  6850. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6851. $as_echo_n "(cached) " >&6
  6852. else
  6853. if test -n "$MANIFEST_TOOL"; then
  6854. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6855. else
  6856. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6857. for as_dir in $PATH
  6858. do
  6859. IFS=$as_save_IFS
  6860. test -z "$as_dir" && as_dir=.
  6861. for ac_exec_ext in '' $ac_executable_extensions; do
  6862. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6863. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6864. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6865. break 2
  6866. fi
  6867. done
  6868. done
  6869. IFS=$as_save_IFS
  6870. fi
  6871. fi
  6872. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6873. if test -n "$MANIFEST_TOOL"; then
  6874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6875. $as_echo "$MANIFEST_TOOL" >&6; }
  6876. else
  6877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6878. $as_echo "no" >&6; }
  6879. fi
  6880. fi
  6881. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6882. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6883. # Extract the first word of "mt", so it can be a program name with args.
  6884. set dummy mt; ac_word=$2
  6885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6886. $as_echo_n "checking for $ac_word... " >&6; }
  6887. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6888. $as_echo_n "(cached) " >&6
  6889. else
  6890. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6891. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6892. else
  6893. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6894. for as_dir in $PATH
  6895. do
  6896. IFS=$as_save_IFS
  6897. test -z "$as_dir" && as_dir=.
  6898. for ac_exec_ext in '' $ac_executable_extensions; do
  6899. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6900. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6901. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6902. break 2
  6903. fi
  6904. done
  6905. done
  6906. IFS=$as_save_IFS
  6907. fi
  6908. fi
  6909. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6910. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6912. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6913. else
  6914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6915. $as_echo "no" >&6; }
  6916. fi
  6917. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6918. MANIFEST_TOOL=":"
  6919. else
  6920. case $cross_compiling:$ac_tool_warned in
  6921. yes:)
  6922. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6923. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6924. ac_tool_warned=yes ;;
  6925. esac
  6926. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6927. fi
  6928. else
  6929. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6930. fi
  6931. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6933. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6934. if ${lt_cv_path_mainfest_tool+:} false; then :
  6935. $as_echo_n "(cached) " >&6
  6936. else
  6937. lt_cv_path_mainfest_tool=no
  6938. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6939. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6940. cat conftest.err >&5
  6941. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6942. lt_cv_path_mainfest_tool=yes
  6943. fi
  6944. rm -f conftest*
  6945. fi
  6946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6947. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6948. if test yes != "$lt_cv_path_mainfest_tool"; then
  6949. MANIFEST_TOOL=:
  6950. fi
  6951. case $host_os in
  6952. rhapsody* | darwin*)
  6953. if test -n "$ac_tool_prefix"; then
  6954. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6955. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6957. $as_echo_n "checking for $ac_word... " >&6; }
  6958. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6959. $as_echo_n "(cached) " >&6
  6960. else
  6961. if test -n "$DSYMUTIL"; then
  6962. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6963. else
  6964. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6965. for as_dir in $PATH
  6966. do
  6967. IFS=$as_save_IFS
  6968. test -z "$as_dir" && as_dir=.
  6969. for ac_exec_ext in '' $ac_executable_extensions; do
  6970. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6971. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6972. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6973. break 2
  6974. fi
  6975. done
  6976. done
  6977. IFS=$as_save_IFS
  6978. fi
  6979. fi
  6980. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6981. if test -n "$DSYMUTIL"; then
  6982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6983. $as_echo "$DSYMUTIL" >&6; }
  6984. else
  6985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6986. $as_echo "no" >&6; }
  6987. fi
  6988. fi
  6989. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6990. ac_ct_DSYMUTIL=$DSYMUTIL
  6991. # Extract the first word of "dsymutil", so it can be a program name with args.
  6992. set dummy dsymutil; ac_word=$2
  6993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6994. $as_echo_n "checking for $ac_word... " >&6; }
  6995. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6996. $as_echo_n "(cached) " >&6
  6997. else
  6998. if test -n "$ac_ct_DSYMUTIL"; then
  6999. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7000. else
  7001. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7002. for as_dir in $PATH
  7003. do
  7004. IFS=$as_save_IFS
  7005. test -z "$as_dir" && as_dir=.
  7006. for ac_exec_ext in '' $ac_executable_extensions; do
  7007. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7008. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7009. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7010. break 2
  7011. fi
  7012. done
  7013. done
  7014. IFS=$as_save_IFS
  7015. fi
  7016. fi
  7017. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7018. if test -n "$ac_ct_DSYMUTIL"; then
  7019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7020. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7021. else
  7022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7023. $as_echo "no" >&6; }
  7024. fi
  7025. if test "x$ac_ct_DSYMUTIL" = x; then
  7026. DSYMUTIL=":"
  7027. else
  7028. case $cross_compiling:$ac_tool_warned in
  7029. yes:)
  7030. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7031. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7032. ac_tool_warned=yes ;;
  7033. esac
  7034. DSYMUTIL=$ac_ct_DSYMUTIL
  7035. fi
  7036. else
  7037. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7038. fi
  7039. if test -n "$ac_tool_prefix"; then
  7040. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7041. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7043. $as_echo_n "checking for $ac_word... " >&6; }
  7044. if ${ac_cv_prog_NMEDIT+:} false; then :
  7045. $as_echo_n "(cached) " >&6
  7046. else
  7047. if test -n "$NMEDIT"; then
  7048. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7049. else
  7050. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7051. for as_dir in $PATH
  7052. do
  7053. IFS=$as_save_IFS
  7054. test -z "$as_dir" && as_dir=.
  7055. for ac_exec_ext in '' $ac_executable_extensions; do
  7056. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7057. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7058. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7059. break 2
  7060. fi
  7061. done
  7062. done
  7063. IFS=$as_save_IFS
  7064. fi
  7065. fi
  7066. NMEDIT=$ac_cv_prog_NMEDIT
  7067. if test -n "$NMEDIT"; then
  7068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7069. $as_echo "$NMEDIT" >&6; }
  7070. else
  7071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7072. $as_echo "no" >&6; }
  7073. fi
  7074. fi
  7075. if test -z "$ac_cv_prog_NMEDIT"; then
  7076. ac_ct_NMEDIT=$NMEDIT
  7077. # Extract the first word of "nmedit", so it can be a program name with args.
  7078. set dummy nmedit; ac_word=$2
  7079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7080. $as_echo_n "checking for $ac_word... " >&6; }
  7081. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7082. $as_echo_n "(cached) " >&6
  7083. else
  7084. if test -n "$ac_ct_NMEDIT"; then
  7085. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7086. else
  7087. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7088. for as_dir in $PATH
  7089. do
  7090. IFS=$as_save_IFS
  7091. test -z "$as_dir" && as_dir=.
  7092. for ac_exec_ext in '' $ac_executable_extensions; do
  7093. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7094. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7095. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7096. break 2
  7097. fi
  7098. done
  7099. done
  7100. IFS=$as_save_IFS
  7101. fi
  7102. fi
  7103. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7104. if test -n "$ac_ct_NMEDIT"; then
  7105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7106. $as_echo "$ac_ct_NMEDIT" >&6; }
  7107. else
  7108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7109. $as_echo "no" >&6; }
  7110. fi
  7111. if test "x$ac_ct_NMEDIT" = x; then
  7112. NMEDIT=":"
  7113. else
  7114. case $cross_compiling:$ac_tool_warned in
  7115. yes:)
  7116. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7117. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7118. ac_tool_warned=yes ;;
  7119. esac
  7120. NMEDIT=$ac_ct_NMEDIT
  7121. fi
  7122. else
  7123. NMEDIT="$ac_cv_prog_NMEDIT"
  7124. fi
  7125. if test -n "$ac_tool_prefix"; then
  7126. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7127. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7129. $as_echo_n "checking for $ac_word... " >&6; }
  7130. if ${ac_cv_prog_LIPO+:} false; then :
  7131. $as_echo_n "(cached) " >&6
  7132. else
  7133. if test -n "$LIPO"; then
  7134. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7135. else
  7136. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7137. for as_dir in $PATH
  7138. do
  7139. IFS=$as_save_IFS
  7140. test -z "$as_dir" && as_dir=.
  7141. for ac_exec_ext in '' $ac_executable_extensions; do
  7142. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7143. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7144. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7145. break 2
  7146. fi
  7147. done
  7148. done
  7149. IFS=$as_save_IFS
  7150. fi
  7151. fi
  7152. LIPO=$ac_cv_prog_LIPO
  7153. if test -n "$LIPO"; then
  7154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7155. $as_echo "$LIPO" >&6; }
  7156. else
  7157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7158. $as_echo "no" >&6; }
  7159. fi
  7160. fi
  7161. if test -z "$ac_cv_prog_LIPO"; then
  7162. ac_ct_LIPO=$LIPO
  7163. # Extract the first word of "lipo", so it can be a program name with args.
  7164. set dummy lipo; ac_word=$2
  7165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7166. $as_echo_n "checking for $ac_word... " >&6; }
  7167. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7168. $as_echo_n "(cached) " >&6
  7169. else
  7170. if test -n "$ac_ct_LIPO"; then
  7171. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7172. else
  7173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7174. for as_dir in $PATH
  7175. do
  7176. IFS=$as_save_IFS
  7177. test -z "$as_dir" && as_dir=.
  7178. for ac_exec_ext in '' $ac_executable_extensions; do
  7179. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7180. ac_cv_prog_ac_ct_LIPO="lipo"
  7181. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7182. break 2
  7183. fi
  7184. done
  7185. done
  7186. IFS=$as_save_IFS
  7187. fi
  7188. fi
  7189. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7190. if test -n "$ac_ct_LIPO"; then
  7191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7192. $as_echo "$ac_ct_LIPO" >&6; }
  7193. else
  7194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7195. $as_echo "no" >&6; }
  7196. fi
  7197. if test "x$ac_ct_LIPO" = x; then
  7198. LIPO=":"
  7199. else
  7200. case $cross_compiling:$ac_tool_warned in
  7201. yes:)
  7202. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7203. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7204. ac_tool_warned=yes ;;
  7205. esac
  7206. LIPO=$ac_ct_LIPO
  7207. fi
  7208. else
  7209. LIPO="$ac_cv_prog_LIPO"
  7210. fi
  7211. if test -n "$ac_tool_prefix"; then
  7212. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7213. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7215. $as_echo_n "checking for $ac_word... " >&6; }
  7216. if ${ac_cv_prog_OTOOL+:} false; then :
  7217. $as_echo_n "(cached) " >&6
  7218. else
  7219. if test -n "$OTOOL"; then
  7220. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7221. else
  7222. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7223. for as_dir in $PATH
  7224. do
  7225. IFS=$as_save_IFS
  7226. test -z "$as_dir" && as_dir=.
  7227. for ac_exec_ext in '' $ac_executable_extensions; do
  7228. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7229. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7230. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7231. break 2
  7232. fi
  7233. done
  7234. done
  7235. IFS=$as_save_IFS
  7236. fi
  7237. fi
  7238. OTOOL=$ac_cv_prog_OTOOL
  7239. if test -n "$OTOOL"; then
  7240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7241. $as_echo "$OTOOL" >&6; }
  7242. else
  7243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7244. $as_echo "no" >&6; }
  7245. fi
  7246. fi
  7247. if test -z "$ac_cv_prog_OTOOL"; then
  7248. ac_ct_OTOOL=$OTOOL
  7249. # Extract the first word of "otool", so it can be a program name with args.
  7250. set dummy otool; ac_word=$2
  7251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7252. $as_echo_n "checking for $ac_word... " >&6; }
  7253. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7254. $as_echo_n "(cached) " >&6
  7255. else
  7256. if test -n "$ac_ct_OTOOL"; then
  7257. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7258. else
  7259. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7260. for as_dir in $PATH
  7261. do
  7262. IFS=$as_save_IFS
  7263. test -z "$as_dir" && as_dir=.
  7264. for ac_exec_ext in '' $ac_executable_extensions; do
  7265. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7266. ac_cv_prog_ac_ct_OTOOL="otool"
  7267. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7268. break 2
  7269. fi
  7270. done
  7271. done
  7272. IFS=$as_save_IFS
  7273. fi
  7274. fi
  7275. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7276. if test -n "$ac_ct_OTOOL"; then
  7277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7278. $as_echo "$ac_ct_OTOOL" >&6; }
  7279. else
  7280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7281. $as_echo "no" >&6; }
  7282. fi
  7283. if test "x$ac_ct_OTOOL" = x; then
  7284. OTOOL=":"
  7285. else
  7286. case $cross_compiling:$ac_tool_warned in
  7287. yes:)
  7288. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7289. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7290. ac_tool_warned=yes ;;
  7291. esac
  7292. OTOOL=$ac_ct_OTOOL
  7293. fi
  7294. else
  7295. OTOOL="$ac_cv_prog_OTOOL"
  7296. fi
  7297. if test -n "$ac_tool_prefix"; then
  7298. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7299. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7301. $as_echo_n "checking for $ac_word... " >&6; }
  7302. if ${ac_cv_prog_OTOOL64+:} false; then :
  7303. $as_echo_n "(cached) " >&6
  7304. else
  7305. if test -n "$OTOOL64"; then
  7306. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7307. else
  7308. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7309. for as_dir in $PATH
  7310. do
  7311. IFS=$as_save_IFS
  7312. test -z "$as_dir" && as_dir=.
  7313. for ac_exec_ext in '' $ac_executable_extensions; do
  7314. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7315. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7316. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7317. break 2
  7318. fi
  7319. done
  7320. done
  7321. IFS=$as_save_IFS
  7322. fi
  7323. fi
  7324. OTOOL64=$ac_cv_prog_OTOOL64
  7325. if test -n "$OTOOL64"; then
  7326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7327. $as_echo "$OTOOL64" >&6; }
  7328. else
  7329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7330. $as_echo "no" >&6; }
  7331. fi
  7332. fi
  7333. if test -z "$ac_cv_prog_OTOOL64"; then
  7334. ac_ct_OTOOL64=$OTOOL64
  7335. # Extract the first word of "otool64", so it can be a program name with args.
  7336. set dummy otool64; ac_word=$2
  7337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7338. $as_echo_n "checking for $ac_word... " >&6; }
  7339. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7340. $as_echo_n "(cached) " >&6
  7341. else
  7342. if test -n "$ac_ct_OTOOL64"; then
  7343. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7344. else
  7345. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7346. for as_dir in $PATH
  7347. do
  7348. IFS=$as_save_IFS
  7349. test -z "$as_dir" && as_dir=.
  7350. for ac_exec_ext in '' $ac_executable_extensions; do
  7351. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7352. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7353. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7354. break 2
  7355. fi
  7356. done
  7357. done
  7358. IFS=$as_save_IFS
  7359. fi
  7360. fi
  7361. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7362. if test -n "$ac_ct_OTOOL64"; then
  7363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7364. $as_echo "$ac_ct_OTOOL64" >&6; }
  7365. else
  7366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7367. $as_echo "no" >&6; }
  7368. fi
  7369. if test "x$ac_ct_OTOOL64" = x; then
  7370. OTOOL64=":"
  7371. else
  7372. case $cross_compiling:$ac_tool_warned in
  7373. yes:)
  7374. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7375. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7376. ac_tool_warned=yes ;;
  7377. esac
  7378. OTOOL64=$ac_ct_OTOOL64
  7379. fi
  7380. else
  7381. OTOOL64="$ac_cv_prog_OTOOL64"
  7382. fi
  7383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7384. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7385. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7386. $as_echo_n "(cached) " >&6
  7387. else
  7388. lt_cv_apple_cc_single_mod=no
  7389. if test -z "$LT_MULTI_MODULE"; then
  7390. # By default we will add the -single_module flag. You can override
  7391. # by either setting the environment variable LT_MULTI_MODULE
  7392. # non-empty at configure time, or by adding -multi_module to the
  7393. # link flags.
  7394. rm -rf libconftest.dylib*
  7395. echo "int foo(void){return 1;}" > conftest.c
  7396. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7397. -dynamiclib -Wl,-single_module conftest.c" >&5
  7398. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7399. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7400. _lt_result=$?
  7401. # If there is a non-empty error log, and "single_module"
  7402. # appears in it, assume the flag caused a linker warning
  7403. if test -s conftest.err && $GREP single_module conftest.err; then
  7404. cat conftest.err >&5
  7405. # Otherwise, if the output was created with a 0 exit code from
  7406. # the compiler, it worked.
  7407. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7408. lt_cv_apple_cc_single_mod=yes
  7409. else
  7410. cat conftest.err >&5
  7411. fi
  7412. rm -rf libconftest.dylib*
  7413. rm -f conftest.*
  7414. fi
  7415. fi
  7416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7417. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7419. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7420. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7421. $as_echo_n "(cached) " >&6
  7422. else
  7423. lt_cv_ld_exported_symbols_list=no
  7424. save_LDFLAGS=$LDFLAGS
  7425. echo "_main" > conftest.sym
  7426. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7428. /* end confdefs.h. */
  7429. int
  7430. main ()
  7431. {
  7432. ;
  7433. return 0;
  7434. }
  7435. _ACEOF
  7436. if ac_fn_c_try_link "$LINENO"; then :
  7437. lt_cv_ld_exported_symbols_list=yes
  7438. else
  7439. lt_cv_ld_exported_symbols_list=no
  7440. fi
  7441. rm -f core conftest.err conftest.$ac_objext \
  7442. conftest$ac_exeext conftest.$ac_ext
  7443. LDFLAGS=$save_LDFLAGS
  7444. fi
  7445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7446. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7448. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7449. if ${lt_cv_ld_force_load+:} false; then :
  7450. $as_echo_n "(cached) " >&6
  7451. else
  7452. lt_cv_ld_force_load=no
  7453. cat > conftest.c << _LT_EOF
  7454. int forced_loaded() { return 2;}
  7455. _LT_EOF
  7456. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7457. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7458. echo "$AR cru libconftest.a conftest.o" >&5
  7459. $AR cru libconftest.a conftest.o 2>&5
  7460. echo "$RANLIB libconftest.a" >&5
  7461. $RANLIB libconftest.a 2>&5
  7462. cat > conftest.c << _LT_EOF
  7463. int main() { return 0;}
  7464. _LT_EOF
  7465. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7466. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7467. _lt_result=$?
  7468. if test -s conftest.err && $GREP force_load conftest.err; then
  7469. cat conftest.err >&5
  7470. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7471. lt_cv_ld_force_load=yes
  7472. else
  7473. cat conftest.err >&5
  7474. fi
  7475. rm -f conftest.err libconftest.a conftest conftest.c
  7476. rm -rf conftest.dSYM
  7477. fi
  7478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7479. $as_echo "$lt_cv_ld_force_load" >&6; }
  7480. case $host_os in
  7481. rhapsody* | darwin1.[012])
  7482. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7483. darwin1.*)
  7484. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7485. darwin*) # darwin 5.x on
  7486. # if running on 10.5 or later, the deployment target defaults
  7487. # to the OS version, if on x86, and 10.4, the deployment
  7488. # target defaults to 10.4. Don't you love it?
  7489. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7490. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7491. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7492. 10.[012][,.]*)
  7493. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7494. 10.*)
  7495. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7496. esac
  7497. ;;
  7498. esac
  7499. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7500. _lt_dar_single_mod='$single_module'
  7501. fi
  7502. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7503. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7504. else
  7505. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7506. fi
  7507. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7508. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7509. else
  7510. _lt_dsymutil=
  7511. fi
  7512. ;;
  7513. esac
  7514. # func_munge_path_list VARIABLE PATH
  7515. # -----------------------------------
  7516. # VARIABLE is name of variable containing _space_ separated list of
  7517. # directories to be munged by the contents of PATH, which is string
  7518. # having a format:
  7519. # "DIR[:DIR]:"
  7520. # string "DIR[ DIR]" will be prepended to VARIABLE
  7521. # ":DIR[:DIR]"
  7522. # string "DIR[ DIR]" will be appended to VARIABLE
  7523. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7524. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7525. # "DIRA[ DIRA]" will be appended to VARIABLE
  7526. # "DIR[:DIR]"
  7527. # VARIABLE will be replaced by "DIR[ DIR]"
  7528. func_munge_path_list ()
  7529. {
  7530. case x$2 in
  7531. x)
  7532. ;;
  7533. *:)
  7534. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7535. ;;
  7536. x:*)
  7537. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7538. ;;
  7539. *::*)
  7540. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7541. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7542. ;;
  7543. *)
  7544. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7545. ;;
  7546. esac
  7547. }
  7548. ac_ext=c
  7549. ac_cpp='$CPP $CPPFLAGS'
  7550. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7551. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7552. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7554. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7555. # On Suns, sometimes $CPP names a directory.
  7556. if test -n "$CPP" && test -d "$CPP"; then
  7557. CPP=
  7558. fi
  7559. if test -z "$CPP"; then
  7560. if ${ac_cv_prog_CPP+:} false; then :
  7561. $as_echo_n "(cached) " >&6
  7562. else
  7563. # Double quotes because CPP needs to be expanded
  7564. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7565. do
  7566. ac_preproc_ok=false
  7567. for ac_c_preproc_warn_flag in '' yes
  7568. do
  7569. # Use a header file that comes with gcc, so configuring glibc
  7570. # with a fresh cross-compiler works.
  7571. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7572. # <limits.h> exists even on freestanding compilers.
  7573. # On the NeXT, cc -E runs the code through the compiler's parser,
  7574. # not just through cpp. "Syntax error" is here to catch this case.
  7575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7576. /* end confdefs.h. */
  7577. #ifdef __STDC__
  7578. # include <limits.h>
  7579. #else
  7580. # include <assert.h>
  7581. #endif
  7582. Syntax error
  7583. _ACEOF
  7584. if ac_fn_c_try_cpp "$LINENO"; then :
  7585. else
  7586. # Broken: fails on valid input.
  7587. continue
  7588. fi
  7589. rm -f conftest.err conftest.i conftest.$ac_ext
  7590. # OK, works on sane cases. Now check whether nonexistent headers
  7591. # can be detected and how.
  7592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7593. /* end confdefs.h. */
  7594. #include <ac_nonexistent.h>
  7595. _ACEOF
  7596. if ac_fn_c_try_cpp "$LINENO"; then :
  7597. # Broken: success on invalid input.
  7598. continue
  7599. else
  7600. # Passes both tests.
  7601. ac_preproc_ok=:
  7602. break
  7603. fi
  7604. rm -f conftest.err conftest.i conftest.$ac_ext
  7605. done
  7606. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7607. rm -f conftest.i conftest.err conftest.$ac_ext
  7608. if $ac_preproc_ok; then :
  7609. break
  7610. fi
  7611. done
  7612. ac_cv_prog_CPP=$CPP
  7613. fi
  7614. CPP=$ac_cv_prog_CPP
  7615. else
  7616. ac_cv_prog_CPP=$CPP
  7617. fi
  7618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7619. $as_echo "$CPP" >&6; }
  7620. ac_preproc_ok=false
  7621. for ac_c_preproc_warn_flag in '' yes
  7622. do
  7623. # Use a header file that comes with gcc, so configuring glibc
  7624. # with a fresh cross-compiler works.
  7625. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7626. # <limits.h> exists even on freestanding compilers.
  7627. # On the NeXT, cc -E runs the code through the compiler's parser,
  7628. # not just through cpp. "Syntax error" is here to catch this case.
  7629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7630. /* end confdefs.h. */
  7631. #ifdef __STDC__
  7632. # include <limits.h>
  7633. #else
  7634. # include <assert.h>
  7635. #endif
  7636. Syntax error
  7637. _ACEOF
  7638. if ac_fn_c_try_cpp "$LINENO"; then :
  7639. else
  7640. # Broken: fails on valid input.
  7641. continue
  7642. fi
  7643. rm -f conftest.err conftest.i conftest.$ac_ext
  7644. # OK, works on sane cases. Now check whether nonexistent headers
  7645. # can be detected and how.
  7646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7647. /* end confdefs.h. */
  7648. #include <ac_nonexistent.h>
  7649. _ACEOF
  7650. if ac_fn_c_try_cpp "$LINENO"; then :
  7651. # Broken: success on invalid input.
  7652. continue
  7653. else
  7654. # Passes both tests.
  7655. ac_preproc_ok=:
  7656. break
  7657. fi
  7658. rm -f conftest.err conftest.i conftest.$ac_ext
  7659. done
  7660. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7661. rm -f conftest.i conftest.err conftest.$ac_ext
  7662. if $ac_preproc_ok; then :
  7663. else
  7664. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7665. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7666. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7667. See \`config.log' for more details" "$LINENO" 5; }
  7668. fi
  7669. ac_ext=c
  7670. ac_cpp='$CPP $CPPFLAGS'
  7671. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7672. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7673. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7675. $as_echo_n "checking for ANSI C header files... " >&6; }
  7676. if ${ac_cv_header_stdc+:} false; then :
  7677. $as_echo_n "(cached) " >&6
  7678. else
  7679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7680. /* end confdefs.h. */
  7681. #include <stdlib.h>
  7682. #include <stdarg.h>
  7683. #include <string.h>
  7684. #include <float.h>
  7685. int
  7686. main ()
  7687. {
  7688. ;
  7689. return 0;
  7690. }
  7691. _ACEOF
  7692. if ac_fn_c_try_compile "$LINENO"; then :
  7693. ac_cv_header_stdc=yes
  7694. else
  7695. ac_cv_header_stdc=no
  7696. fi
  7697. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7698. if test $ac_cv_header_stdc = yes; then
  7699. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7701. /* end confdefs.h. */
  7702. #include <string.h>
  7703. _ACEOF
  7704. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7705. $EGREP "memchr" >/dev/null 2>&1; then :
  7706. else
  7707. ac_cv_header_stdc=no
  7708. fi
  7709. rm -f conftest*
  7710. fi
  7711. if test $ac_cv_header_stdc = yes; then
  7712. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7714. /* end confdefs.h. */
  7715. #include <stdlib.h>
  7716. _ACEOF
  7717. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7718. $EGREP "free" >/dev/null 2>&1; then :
  7719. else
  7720. ac_cv_header_stdc=no
  7721. fi
  7722. rm -f conftest*
  7723. fi
  7724. if test $ac_cv_header_stdc = yes; then
  7725. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7726. if test "$cross_compiling" = yes; then :
  7727. :
  7728. else
  7729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7730. /* end confdefs.h. */
  7731. #include <ctype.h>
  7732. #include <stdlib.h>
  7733. #if ((' ' & 0x0FF) == 0x020)
  7734. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7735. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7736. #else
  7737. # define ISLOWER(c) \
  7738. (('a' <= (c) && (c) <= 'i') \
  7739. || ('j' <= (c) && (c) <= 'r') \
  7740. || ('s' <= (c) && (c) <= 'z'))
  7741. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7742. #endif
  7743. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7744. int
  7745. main ()
  7746. {
  7747. int i;
  7748. for (i = 0; i < 256; i++)
  7749. if (XOR (islower (i), ISLOWER (i))
  7750. || toupper (i) != TOUPPER (i))
  7751. return 2;
  7752. return 0;
  7753. }
  7754. _ACEOF
  7755. if ac_fn_c_try_run "$LINENO"; then :
  7756. else
  7757. ac_cv_header_stdc=no
  7758. fi
  7759. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7760. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7761. fi
  7762. fi
  7763. fi
  7764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7765. $as_echo "$ac_cv_header_stdc" >&6; }
  7766. if test $ac_cv_header_stdc = yes; then
  7767. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7768. fi
  7769. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7770. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7771. inttypes.h stdint.h unistd.h
  7772. do :
  7773. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7774. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7775. "
  7776. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7777. cat >>confdefs.h <<_ACEOF
  7778. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7779. _ACEOF
  7780. fi
  7781. done
  7782. for ac_header in dlfcn.h
  7783. do :
  7784. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7785. "
  7786. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7787. cat >>confdefs.h <<_ACEOF
  7788. #define HAVE_DLFCN_H 1
  7789. _ACEOF
  7790. fi
  7791. done
  7792. # Set options
  7793. enable_dlopen=no
  7794. enable_win32_dll=no
  7795. # Check whether --enable-shared was given.
  7796. if test "${enable_shared+set}" = set; then :
  7797. enableval=$enable_shared; p=${PACKAGE-default}
  7798. case $enableval in
  7799. yes) enable_shared=yes ;;
  7800. no) enable_shared=no ;;
  7801. *)
  7802. enable_shared=no
  7803. # Look at the argument we got. We use all the common list separators.
  7804. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7805. for pkg in $enableval; do
  7806. IFS=$lt_save_ifs
  7807. if test "X$pkg" = "X$p"; then
  7808. enable_shared=yes
  7809. fi
  7810. done
  7811. IFS=$lt_save_ifs
  7812. ;;
  7813. esac
  7814. else
  7815. enable_shared=yes
  7816. fi
  7817. # Check whether --enable-static was given.
  7818. if test "${enable_static+set}" = set; then :
  7819. enableval=$enable_static; p=${PACKAGE-default}
  7820. case $enableval in
  7821. yes) enable_static=yes ;;
  7822. no) enable_static=no ;;
  7823. *)
  7824. enable_static=no
  7825. # Look at the argument we got. We use all the common list separators.
  7826. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7827. for pkg in $enableval; do
  7828. IFS=$lt_save_ifs
  7829. if test "X$pkg" = "X$p"; then
  7830. enable_static=yes
  7831. fi
  7832. done
  7833. IFS=$lt_save_ifs
  7834. ;;
  7835. esac
  7836. else
  7837. enable_static=yes
  7838. fi
  7839. # Check whether --with-pic was given.
  7840. if test "${with_pic+set}" = set; then :
  7841. withval=$with_pic; lt_p=${PACKAGE-default}
  7842. case $withval in
  7843. yes|no) pic_mode=$withval ;;
  7844. *)
  7845. pic_mode=default
  7846. # Look at the argument we got. We use all the common list separators.
  7847. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7848. for lt_pkg in $withval; do
  7849. IFS=$lt_save_ifs
  7850. if test "X$lt_pkg" = "X$lt_p"; then
  7851. pic_mode=yes
  7852. fi
  7853. done
  7854. IFS=$lt_save_ifs
  7855. ;;
  7856. esac
  7857. else
  7858. pic_mode=default
  7859. fi
  7860. # Check whether --enable-fast-install was given.
  7861. if test "${enable_fast_install+set}" = set; then :
  7862. enableval=$enable_fast_install; p=${PACKAGE-default}
  7863. case $enableval in
  7864. yes) enable_fast_install=yes ;;
  7865. no) enable_fast_install=no ;;
  7866. *)
  7867. enable_fast_install=no
  7868. # Look at the argument we got. We use all the common list separators.
  7869. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7870. for pkg in $enableval; do
  7871. IFS=$lt_save_ifs
  7872. if test "X$pkg" = "X$p"; then
  7873. enable_fast_install=yes
  7874. fi
  7875. done
  7876. IFS=$lt_save_ifs
  7877. ;;
  7878. esac
  7879. else
  7880. enable_fast_install=yes
  7881. fi
  7882. shared_archive_member_spec=
  7883. case $host,$enable_shared in
  7884. power*-*-aix[5-9]*,yes)
  7885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7886. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  7887. # Check whether --with-aix-soname was given.
  7888. if test "${with_aix_soname+set}" = set; then :
  7889. withval=$with_aix_soname; case $withval in
  7890. aix|svr4|both)
  7891. ;;
  7892. *)
  7893. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7894. ;;
  7895. esac
  7896. lt_cv_with_aix_soname=$with_aix_soname
  7897. else
  7898. if ${lt_cv_with_aix_soname+:} false; then :
  7899. $as_echo_n "(cached) " >&6
  7900. else
  7901. lt_cv_with_aix_soname=aix
  7902. fi
  7903. with_aix_soname=$lt_cv_with_aix_soname
  7904. fi
  7905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7906. $as_echo "$with_aix_soname" >&6; }
  7907. if test aix != "$with_aix_soname"; then
  7908. # For the AIX way of multilib, we name the shared archive member
  7909. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7910. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7911. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7912. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7913. if test 64 = "${OBJECT_MODE-32}"; then
  7914. shared_archive_member_spec=shr_64
  7915. else
  7916. shared_archive_member_spec=shr
  7917. fi
  7918. fi
  7919. ;;
  7920. *)
  7921. with_aix_soname=aix
  7922. ;;
  7923. esac
  7924. # This can be used to rebuild libtool when needed
  7925. LIBTOOL_DEPS=$ltmain
  7926. # Always use our own libtool.
  7927. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7928. test -z "$LN_S" && LN_S="ln -s"
  7929. if test -n "${ZSH_VERSION+set}"; then
  7930. setopt NO_GLOB_SUBST
  7931. fi
  7932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7933. $as_echo_n "checking for objdir... " >&6; }
  7934. if ${lt_cv_objdir+:} false; then :
  7935. $as_echo_n "(cached) " >&6
  7936. else
  7937. rm -f .libs 2>/dev/null
  7938. mkdir .libs 2>/dev/null
  7939. if test -d .libs; then
  7940. lt_cv_objdir=.libs
  7941. else
  7942. # MS-DOS does not allow filenames that begin with a dot.
  7943. lt_cv_objdir=_libs
  7944. fi
  7945. rmdir .libs 2>/dev/null
  7946. fi
  7947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7948. $as_echo "$lt_cv_objdir" >&6; }
  7949. objdir=$lt_cv_objdir
  7950. cat >>confdefs.h <<_ACEOF
  7951. #define LT_OBJDIR "$lt_cv_objdir/"
  7952. _ACEOF
  7953. case $host_os in
  7954. aix3*)
  7955. # AIX sometimes has problems with the GCC collect2 program. For some
  7956. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7957. # vanish in a puff of smoke.
  7958. if test set != "${COLLECT_NAMES+set}"; then
  7959. COLLECT_NAMES=
  7960. export COLLECT_NAMES
  7961. fi
  7962. ;;
  7963. esac
  7964. # Global variables:
  7965. ofile=libtool
  7966. can_build_shared=yes
  7967. # All known linkers require a '.a' archive for static linking (except MSVC,
  7968. # which needs '.lib').
  7969. libext=a
  7970. with_gnu_ld=$lt_cv_prog_gnu_ld
  7971. old_CC=$CC
  7972. old_CFLAGS=$CFLAGS
  7973. # Set sane defaults for various variables
  7974. test -z "$CC" && CC=cc
  7975. test -z "$LTCC" && LTCC=$CC
  7976. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7977. test -z "$LD" && LD=ld
  7978. test -z "$ac_objext" && ac_objext=o
  7979. func_cc_basename $compiler
  7980. cc_basename=$func_cc_basename_result
  7981. # Only perform the check for file, if the check method requires it
  7982. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7983. case $deplibs_check_method in
  7984. file_magic*)
  7985. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7987. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7988. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7989. $as_echo_n "(cached) " >&6
  7990. else
  7991. case $MAGIC_CMD in
  7992. [\\/*] | ?:[\\/]*)
  7993. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7994. ;;
  7995. *)
  7996. lt_save_MAGIC_CMD=$MAGIC_CMD
  7997. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7998. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7999. for ac_dir in $ac_dummy; do
  8000. IFS=$lt_save_ifs
  8001. test -z "$ac_dir" && ac_dir=.
  8002. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  8003. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  8004. if test -n "$file_magic_test_file"; then
  8005. case $deplibs_check_method in
  8006. "file_magic "*)
  8007. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8008. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8009. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8010. $EGREP "$file_magic_regex" > /dev/null; then
  8011. :
  8012. else
  8013. cat <<_LT_EOF 1>&2
  8014. *** Warning: the command libtool uses to detect shared libraries,
  8015. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8016. *** The result is that libtool may fail to recognize shared libraries
  8017. *** as such. This will affect the creation of libtool libraries that
  8018. *** depend on shared libraries, but programs linked with such libtool
  8019. *** libraries will work regardless of this problem. Nevertheless, you
  8020. *** may want to report the problem to your system manager and/or to
  8021. *** bug-libtool@gnu.org
  8022. _LT_EOF
  8023. fi ;;
  8024. esac
  8025. fi
  8026. break
  8027. fi
  8028. done
  8029. IFS=$lt_save_ifs
  8030. MAGIC_CMD=$lt_save_MAGIC_CMD
  8031. ;;
  8032. esac
  8033. fi
  8034. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8035. if test -n "$MAGIC_CMD"; then
  8036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8037. $as_echo "$MAGIC_CMD" >&6; }
  8038. else
  8039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8040. $as_echo "no" >&6; }
  8041. fi
  8042. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8043. if test -n "$ac_tool_prefix"; then
  8044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8045. $as_echo_n "checking for file... " >&6; }
  8046. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8047. $as_echo_n "(cached) " >&6
  8048. else
  8049. case $MAGIC_CMD in
  8050. [\\/*] | ?:[\\/]*)
  8051. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8052. ;;
  8053. *)
  8054. lt_save_MAGIC_CMD=$MAGIC_CMD
  8055. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8056. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8057. for ac_dir in $ac_dummy; do
  8058. IFS=$lt_save_ifs
  8059. test -z "$ac_dir" && ac_dir=.
  8060. if test -f "$ac_dir/file"; then
  8061. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  8062. if test -n "$file_magic_test_file"; then
  8063. case $deplibs_check_method in
  8064. "file_magic "*)
  8065. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8066. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8067. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8068. $EGREP "$file_magic_regex" > /dev/null; then
  8069. :
  8070. else
  8071. cat <<_LT_EOF 1>&2
  8072. *** Warning: the command libtool uses to detect shared libraries,
  8073. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8074. *** The result is that libtool may fail to recognize shared libraries
  8075. *** as such. This will affect the creation of libtool libraries that
  8076. *** depend on shared libraries, but programs linked with such libtool
  8077. *** libraries will work regardless of this problem. Nevertheless, you
  8078. *** may want to report the problem to your system manager and/or to
  8079. *** bug-libtool@gnu.org
  8080. _LT_EOF
  8081. fi ;;
  8082. esac
  8083. fi
  8084. break
  8085. fi
  8086. done
  8087. IFS=$lt_save_ifs
  8088. MAGIC_CMD=$lt_save_MAGIC_CMD
  8089. ;;
  8090. esac
  8091. fi
  8092. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8093. if test -n "$MAGIC_CMD"; then
  8094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8095. $as_echo "$MAGIC_CMD" >&6; }
  8096. else
  8097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8098. $as_echo "no" >&6; }
  8099. fi
  8100. else
  8101. MAGIC_CMD=:
  8102. fi
  8103. fi
  8104. fi
  8105. ;;
  8106. esac
  8107. # Use C for the default configuration in the libtool script
  8108. lt_save_CC=$CC
  8109. ac_ext=c
  8110. ac_cpp='$CPP $CPPFLAGS'
  8111. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8112. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8113. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8114. # Source file extension for C test sources.
  8115. ac_ext=c
  8116. # Object file extension for compiled C test sources.
  8117. objext=o
  8118. objext=$objext
  8119. # Code to be used in simple compile tests
  8120. lt_simple_compile_test_code="int some_variable = 0;"
  8121. # Code to be used in simple link tests
  8122. lt_simple_link_test_code='int main(){return(0);}'
  8123. # If no C compiler was specified, use CC.
  8124. LTCC=${LTCC-"$CC"}
  8125. # If no C compiler flags were specified, use CFLAGS.
  8126. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8127. # Allow CC to be a program name with arguments.
  8128. compiler=$CC
  8129. # Save the default compiler, since it gets overwritten when the other
  8130. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8131. compiler_DEFAULT=$CC
  8132. # save warnings/boilerplate of simple test code
  8133. ac_outfile=conftest.$ac_objext
  8134. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8135. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8136. _lt_compiler_boilerplate=`cat conftest.err`
  8137. $RM conftest*
  8138. ac_outfile=conftest.$ac_objext
  8139. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8140. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8141. _lt_linker_boilerplate=`cat conftest.err`
  8142. $RM -r conftest*
  8143. ## CAVEAT EMPTOR:
  8144. ## There is no encapsulation within the following macros, do not change
  8145. ## the running order or otherwise move them around unless you know exactly
  8146. ## what you are doing...
  8147. if test -n "$compiler"; then
  8148. lt_prog_compiler_no_builtin_flag=
  8149. if test yes = "$GCC"; then
  8150. case $cc_basename in
  8151. nvcc*)
  8152. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8153. *)
  8154. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8155. esac
  8156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8157. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8158. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8159. $as_echo_n "(cached) " >&6
  8160. else
  8161. lt_cv_prog_compiler_rtti_exceptions=no
  8162. ac_outfile=conftest.$ac_objext
  8163. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8164. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8165. # Insert the option either (1) after the last *FLAGS variable, or
  8166. # (2) before a word containing "conftest.", or (3) at the end.
  8167. # Note that $ac_compile itself does not contain backslashes and begins
  8168. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8169. # The option is referenced via a variable to avoid confusing sed.
  8170. lt_compile=`echo "$ac_compile" | $SED \
  8171. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8172. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8173. -e 's:$: $lt_compiler_flag:'`
  8174. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8175. (eval "$lt_compile" 2>conftest.err)
  8176. ac_status=$?
  8177. cat conftest.err >&5
  8178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8179. if (exit $ac_status) && test -s "$ac_outfile"; then
  8180. # The compiler can only warn and ignore the option if not recognized
  8181. # So say no if there are warnings other than the usual output.
  8182. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8183. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8184. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8185. lt_cv_prog_compiler_rtti_exceptions=yes
  8186. fi
  8187. fi
  8188. $RM conftest*
  8189. fi
  8190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8191. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8192. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8193. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8194. else
  8195. :
  8196. fi
  8197. fi
  8198. lt_prog_compiler_wl=
  8199. lt_prog_compiler_pic=
  8200. lt_prog_compiler_static=
  8201. if test yes = "$GCC"; then
  8202. lt_prog_compiler_wl='-Wl,'
  8203. lt_prog_compiler_static='-static'
  8204. case $host_os in
  8205. aix*)
  8206. # All AIX code is PIC.
  8207. if test ia64 = "$host_cpu"; then
  8208. # AIX 5 now supports IA64 processor
  8209. lt_prog_compiler_static='-Bstatic'
  8210. fi
  8211. lt_prog_compiler_pic='-fPIC'
  8212. ;;
  8213. amigaos*)
  8214. case $host_cpu in
  8215. powerpc)
  8216. # see comment about AmigaOS4 .so support
  8217. lt_prog_compiler_pic='-fPIC'
  8218. ;;
  8219. m68k)
  8220. # FIXME: we need at least 68020 code to build shared libraries, but
  8221. # adding the '-m68020' flag to GCC prevents building anything better,
  8222. # like '-m68040'.
  8223. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8224. ;;
  8225. esac
  8226. ;;
  8227. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8228. # PIC is the default for these OSes.
  8229. ;;
  8230. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8231. # This hack is so that the source file can tell whether it is being
  8232. # built for inclusion in a dll (and should export symbols for example).
  8233. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8234. # (--disable-auto-import) libraries
  8235. lt_prog_compiler_pic='-DDLL_EXPORT'
  8236. case $host_os in
  8237. os2*)
  8238. lt_prog_compiler_static='$wl-static'
  8239. ;;
  8240. esac
  8241. ;;
  8242. darwin* | rhapsody*)
  8243. # PIC is the default on this platform
  8244. # Common symbols not allowed in MH_DYLIB files
  8245. lt_prog_compiler_pic='-fno-common'
  8246. ;;
  8247. haiku*)
  8248. # PIC is the default for Haiku.
  8249. # The "-static" flag exists, but is broken.
  8250. lt_prog_compiler_static=
  8251. ;;
  8252. hpux*)
  8253. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8254. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8255. # sets the default TLS model and affects inlining.
  8256. case $host_cpu in
  8257. hppa*64*)
  8258. # +Z the default
  8259. ;;
  8260. *)
  8261. lt_prog_compiler_pic='-fPIC'
  8262. ;;
  8263. esac
  8264. ;;
  8265. interix[3-9]*)
  8266. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8267. # Instead, we relocate shared libraries at runtime.
  8268. ;;
  8269. msdosdjgpp*)
  8270. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8271. # on systems that don't support them.
  8272. lt_prog_compiler_can_build_shared=no
  8273. enable_shared=no
  8274. ;;
  8275. *nto* | *qnx*)
  8276. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8277. # it will coredump.
  8278. lt_prog_compiler_pic='-fPIC -shared'
  8279. ;;
  8280. sysv4*MP*)
  8281. if test -d /usr/nec; then
  8282. lt_prog_compiler_pic=-Kconform_pic
  8283. fi
  8284. ;;
  8285. *)
  8286. lt_prog_compiler_pic='-fPIC'
  8287. ;;
  8288. esac
  8289. case $cc_basename in
  8290. nvcc*) # Cuda Compiler Driver 2.2
  8291. lt_prog_compiler_wl='-Xlinker '
  8292. if test -n "$lt_prog_compiler_pic"; then
  8293. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8294. fi
  8295. ;;
  8296. esac
  8297. else
  8298. # PORTME Check for flag to pass linker flags through the system compiler.
  8299. case $host_os in
  8300. aix*)
  8301. lt_prog_compiler_wl='-Wl,'
  8302. if test ia64 = "$host_cpu"; then
  8303. # AIX 5 now supports IA64 processor
  8304. lt_prog_compiler_static='-Bstatic'
  8305. else
  8306. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8307. fi
  8308. ;;
  8309. darwin* | rhapsody*)
  8310. # PIC is the default on this platform
  8311. # Common symbols not allowed in MH_DYLIB files
  8312. lt_prog_compiler_pic='-fno-common'
  8313. case $cc_basename in
  8314. nagfor*)
  8315. # NAG Fortran compiler
  8316. lt_prog_compiler_wl='-Wl,-Wl,,'
  8317. lt_prog_compiler_pic='-PIC'
  8318. lt_prog_compiler_static='-Bstatic'
  8319. ;;
  8320. esac
  8321. ;;
  8322. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8323. # This hack is so that the source file can tell whether it is being
  8324. # built for inclusion in a dll (and should export symbols for example).
  8325. lt_prog_compiler_pic='-DDLL_EXPORT'
  8326. case $host_os in
  8327. os2*)
  8328. lt_prog_compiler_static='$wl-static'
  8329. ;;
  8330. esac
  8331. ;;
  8332. hpux9* | hpux10* | hpux11*)
  8333. lt_prog_compiler_wl='-Wl,'
  8334. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8335. # not for PA HP-UX.
  8336. case $host_cpu in
  8337. hppa*64*|ia64*)
  8338. # +Z the default
  8339. ;;
  8340. *)
  8341. lt_prog_compiler_pic='+Z'
  8342. ;;
  8343. esac
  8344. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8345. lt_prog_compiler_static='$wl-a ${wl}archive'
  8346. ;;
  8347. irix5* | irix6* | nonstopux*)
  8348. lt_prog_compiler_wl='-Wl,'
  8349. # PIC (with -KPIC) is the default.
  8350. lt_prog_compiler_static='-non_shared'
  8351. ;;
  8352. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8353. case $cc_basename in
  8354. # old Intel for x86_64, which still supported -KPIC.
  8355. ecc*)
  8356. lt_prog_compiler_wl='-Wl,'
  8357. lt_prog_compiler_pic='-KPIC'
  8358. lt_prog_compiler_static='-static'
  8359. ;;
  8360. # icc used to be incompatible with GCC.
  8361. # ICC 10 doesn't accept -KPIC any more.
  8362. icc* | ifort*)
  8363. lt_prog_compiler_wl='-Wl,'
  8364. lt_prog_compiler_pic='-fPIC'
  8365. lt_prog_compiler_static='-static'
  8366. ;;
  8367. # Lahey Fortran 8.1.
  8368. lf95*)
  8369. lt_prog_compiler_wl='-Wl,'
  8370. lt_prog_compiler_pic='--shared'
  8371. lt_prog_compiler_static='--static'
  8372. ;;
  8373. nagfor*)
  8374. # NAG Fortran compiler
  8375. lt_prog_compiler_wl='-Wl,-Wl,,'
  8376. lt_prog_compiler_pic='-PIC'
  8377. lt_prog_compiler_static='-Bstatic'
  8378. ;;
  8379. tcc*)
  8380. # Fabrice Bellard et al's Tiny C Compiler
  8381. lt_prog_compiler_wl='-Wl,'
  8382. lt_prog_compiler_pic='-fPIC'
  8383. lt_prog_compiler_static='-static'
  8384. ;;
  8385. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8386. # Portland Group compilers (*not* the Pentium gcc compiler,
  8387. # which looks to be a dead project)
  8388. lt_prog_compiler_wl='-Wl,'
  8389. lt_prog_compiler_pic='-fpic'
  8390. lt_prog_compiler_static='-Bstatic'
  8391. ;;
  8392. ccc*)
  8393. lt_prog_compiler_wl='-Wl,'
  8394. # All Alpha code is PIC.
  8395. lt_prog_compiler_static='-non_shared'
  8396. ;;
  8397. xl* | bgxl* | bgf* | mpixl*)
  8398. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8399. lt_prog_compiler_wl='-Wl,'
  8400. lt_prog_compiler_pic='-qpic'
  8401. lt_prog_compiler_static='-qstaticlink'
  8402. ;;
  8403. *)
  8404. case `$CC -V 2>&1 | sed 5q` in
  8405. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8406. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8407. lt_prog_compiler_pic='-KPIC'
  8408. lt_prog_compiler_static='-Bstatic'
  8409. lt_prog_compiler_wl=''
  8410. ;;
  8411. *Sun\ F* | *Sun*Fortran*)
  8412. lt_prog_compiler_pic='-KPIC'
  8413. lt_prog_compiler_static='-Bstatic'
  8414. lt_prog_compiler_wl='-Qoption ld '
  8415. ;;
  8416. *Sun\ C*)
  8417. # Sun C 5.9
  8418. lt_prog_compiler_pic='-KPIC'
  8419. lt_prog_compiler_static='-Bstatic'
  8420. lt_prog_compiler_wl='-Wl,'
  8421. ;;
  8422. *Intel*\ [CF]*Compiler*)
  8423. lt_prog_compiler_wl='-Wl,'
  8424. lt_prog_compiler_pic='-fPIC'
  8425. lt_prog_compiler_static='-static'
  8426. ;;
  8427. *Portland\ Group*)
  8428. lt_prog_compiler_wl='-Wl,'
  8429. lt_prog_compiler_pic='-fpic'
  8430. lt_prog_compiler_static='-Bstatic'
  8431. ;;
  8432. esac
  8433. ;;
  8434. esac
  8435. ;;
  8436. newsos6)
  8437. lt_prog_compiler_pic='-KPIC'
  8438. lt_prog_compiler_static='-Bstatic'
  8439. ;;
  8440. *nto* | *qnx*)
  8441. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8442. # it will coredump.
  8443. lt_prog_compiler_pic='-fPIC -shared'
  8444. ;;
  8445. osf3* | osf4* | osf5*)
  8446. lt_prog_compiler_wl='-Wl,'
  8447. # All OSF/1 code is PIC.
  8448. lt_prog_compiler_static='-non_shared'
  8449. ;;
  8450. rdos*)
  8451. lt_prog_compiler_static='-non_shared'
  8452. ;;
  8453. solaris*)
  8454. lt_prog_compiler_pic='-KPIC'
  8455. lt_prog_compiler_static='-Bstatic'
  8456. case $cc_basename in
  8457. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8458. lt_prog_compiler_wl='-Qoption ld ';;
  8459. *)
  8460. lt_prog_compiler_wl='-Wl,';;
  8461. esac
  8462. ;;
  8463. sunos4*)
  8464. lt_prog_compiler_wl='-Qoption ld '
  8465. lt_prog_compiler_pic='-PIC'
  8466. lt_prog_compiler_static='-Bstatic'
  8467. ;;
  8468. sysv4 | sysv4.2uw2* | sysv4.3*)
  8469. lt_prog_compiler_wl='-Wl,'
  8470. lt_prog_compiler_pic='-KPIC'
  8471. lt_prog_compiler_static='-Bstatic'
  8472. ;;
  8473. sysv4*MP*)
  8474. if test -d /usr/nec; then
  8475. lt_prog_compiler_pic='-Kconform_pic'
  8476. lt_prog_compiler_static='-Bstatic'
  8477. fi
  8478. ;;
  8479. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8480. lt_prog_compiler_wl='-Wl,'
  8481. lt_prog_compiler_pic='-KPIC'
  8482. lt_prog_compiler_static='-Bstatic'
  8483. ;;
  8484. unicos*)
  8485. lt_prog_compiler_wl='-Wl,'
  8486. lt_prog_compiler_can_build_shared=no
  8487. ;;
  8488. uts4*)
  8489. lt_prog_compiler_pic='-pic'
  8490. lt_prog_compiler_static='-Bstatic'
  8491. ;;
  8492. *)
  8493. lt_prog_compiler_can_build_shared=no
  8494. ;;
  8495. esac
  8496. fi
  8497. case $host_os in
  8498. # For platforms that do not support PIC, -DPIC is meaningless:
  8499. *djgpp*)
  8500. lt_prog_compiler_pic=
  8501. ;;
  8502. *)
  8503. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8504. ;;
  8505. esac
  8506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8507. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8508. if ${lt_cv_prog_compiler_pic+:} false; then :
  8509. $as_echo_n "(cached) " >&6
  8510. else
  8511. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8512. fi
  8513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8514. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8515. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8516. #
  8517. # Check to make sure the PIC flag actually works.
  8518. #
  8519. if test -n "$lt_prog_compiler_pic"; then
  8520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8521. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8522. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8523. $as_echo_n "(cached) " >&6
  8524. else
  8525. lt_cv_prog_compiler_pic_works=no
  8526. ac_outfile=conftest.$ac_objext
  8527. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8528. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8529. # Insert the option either (1) after the last *FLAGS variable, or
  8530. # (2) before a word containing "conftest.", or (3) at the end.
  8531. # Note that $ac_compile itself does not contain backslashes and begins
  8532. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8533. # The option is referenced via a variable to avoid confusing sed.
  8534. lt_compile=`echo "$ac_compile" | $SED \
  8535. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8536. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8537. -e 's:$: $lt_compiler_flag:'`
  8538. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8539. (eval "$lt_compile" 2>conftest.err)
  8540. ac_status=$?
  8541. cat conftest.err >&5
  8542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8543. if (exit $ac_status) && test -s "$ac_outfile"; then
  8544. # The compiler can only warn and ignore the option if not recognized
  8545. # So say no if there are warnings other than the usual output.
  8546. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8547. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8548. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8549. lt_cv_prog_compiler_pic_works=yes
  8550. fi
  8551. fi
  8552. $RM conftest*
  8553. fi
  8554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8555. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8556. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8557. case $lt_prog_compiler_pic in
  8558. "" | " "*) ;;
  8559. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8560. esac
  8561. else
  8562. lt_prog_compiler_pic=
  8563. lt_prog_compiler_can_build_shared=no
  8564. fi
  8565. fi
  8566. #
  8567. # Check to make sure the static flag actually works.
  8568. #
  8569. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8571. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8572. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8573. $as_echo_n "(cached) " >&6
  8574. else
  8575. lt_cv_prog_compiler_static_works=no
  8576. save_LDFLAGS=$LDFLAGS
  8577. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8578. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8579. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8580. # The linker can only warn and ignore the option if not recognized
  8581. # So say no if there are warnings
  8582. if test -s conftest.err; then
  8583. # Append any errors to the config.log.
  8584. cat conftest.err 1>&5
  8585. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8586. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8587. if diff conftest.exp conftest.er2 >/dev/null; then
  8588. lt_cv_prog_compiler_static_works=yes
  8589. fi
  8590. else
  8591. lt_cv_prog_compiler_static_works=yes
  8592. fi
  8593. fi
  8594. $RM -r conftest*
  8595. LDFLAGS=$save_LDFLAGS
  8596. fi
  8597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8598. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8599. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8600. :
  8601. else
  8602. lt_prog_compiler_static=
  8603. fi
  8604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8605. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8606. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8607. $as_echo_n "(cached) " >&6
  8608. else
  8609. lt_cv_prog_compiler_c_o=no
  8610. $RM -r conftest 2>/dev/null
  8611. mkdir conftest
  8612. cd conftest
  8613. mkdir out
  8614. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8615. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8616. # Insert the option either (1) after the last *FLAGS variable, or
  8617. # (2) before a word containing "conftest.", or (3) at the end.
  8618. # Note that $ac_compile itself does not contain backslashes and begins
  8619. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8620. lt_compile=`echo "$ac_compile" | $SED \
  8621. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8622. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8623. -e 's:$: $lt_compiler_flag:'`
  8624. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8625. (eval "$lt_compile" 2>out/conftest.err)
  8626. ac_status=$?
  8627. cat out/conftest.err >&5
  8628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8629. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8630. then
  8631. # The compiler can only warn and ignore the option if not recognized
  8632. # So say no if there are warnings
  8633. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8634. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8635. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8636. lt_cv_prog_compiler_c_o=yes
  8637. fi
  8638. fi
  8639. chmod u+w . 2>&5
  8640. $RM conftest*
  8641. # SGI C++ compiler will create directory out/ii_files/ for
  8642. # template instantiation
  8643. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8644. $RM out/* && rmdir out
  8645. cd ..
  8646. $RM -r conftest
  8647. $RM conftest*
  8648. fi
  8649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8650. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8652. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8653. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8654. $as_echo_n "(cached) " >&6
  8655. else
  8656. lt_cv_prog_compiler_c_o=no
  8657. $RM -r conftest 2>/dev/null
  8658. mkdir conftest
  8659. cd conftest
  8660. mkdir out
  8661. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8662. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8663. # Insert the option either (1) after the last *FLAGS variable, or
  8664. # (2) before a word containing "conftest.", or (3) at the end.
  8665. # Note that $ac_compile itself does not contain backslashes and begins
  8666. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8667. lt_compile=`echo "$ac_compile" | $SED \
  8668. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8669. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8670. -e 's:$: $lt_compiler_flag:'`
  8671. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8672. (eval "$lt_compile" 2>out/conftest.err)
  8673. ac_status=$?
  8674. cat out/conftest.err >&5
  8675. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8676. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8677. then
  8678. # The compiler can only warn and ignore the option if not recognized
  8679. # So say no if there are warnings
  8680. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8681. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8682. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8683. lt_cv_prog_compiler_c_o=yes
  8684. fi
  8685. fi
  8686. chmod u+w . 2>&5
  8687. $RM conftest*
  8688. # SGI C++ compiler will create directory out/ii_files/ for
  8689. # template instantiation
  8690. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8691. $RM out/* && rmdir out
  8692. cd ..
  8693. $RM -r conftest
  8694. $RM conftest*
  8695. fi
  8696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8697. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8698. hard_links=nottested
  8699. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8700. # do not overwrite the value of need_locks provided by the user
  8701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8702. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8703. hard_links=yes
  8704. $RM conftest*
  8705. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8706. touch conftest.a
  8707. ln conftest.a conftest.b 2>&5 || hard_links=no
  8708. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8710. $as_echo "$hard_links" >&6; }
  8711. if test no = "$hard_links"; then
  8712. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8713. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8714. need_locks=warn
  8715. fi
  8716. else
  8717. need_locks=no
  8718. fi
  8719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8720. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8721. runpath_var=
  8722. allow_undefined_flag=
  8723. always_export_symbols=no
  8724. archive_cmds=
  8725. archive_expsym_cmds=
  8726. compiler_needs_object=no
  8727. enable_shared_with_static_runtimes=no
  8728. export_dynamic_flag_spec=
  8729. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8730. hardcode_automatic=no
  8731. hardcode_direct=no
  8732. hardcode_direct_absolute=no
  8733. hardcode_libdir_flag_spec=
  8734. hardcode_libdir_separator=
  8735. hardcode_minus_L=no
  8736. hardcode_shlibpath_var=unsupported
  8737. inherit_rpath=no
  8738. link_all_deplibs=unknown
  8739. module_cmds=
  8740. module_expsym_cmds=
  8741. old_archive_from_new_cmds=
  8742. old_archive_from_expsyms_cmds=
  8743. thread_safe_flag_spec=
  8744. whole_archive_flag_spec=
  8745. # include_expsyms should be a list of space-separated symbols to be *always*
  8746. # included in the symbol list
  8747. include_expsyms=
  8748. # exclude_expsyms can be an extended regexp of symbols to exclude
  8749. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8750. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8751. # as well as any symbol that contains 'd'.
  8752. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8753. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8754. # platforms (ab)use it in PIC code, but their linkers get confused if
  8755. # the symbol is explicitly referenced. Since portable code cannot
  8756. # rely on this symbol name, it's probably fine to never include it in
  8757. # preloaded symbol tables.
  8758. # Exclude shared library initialization/finalization symbols.
  8759. extract_expsyms_cmds=
  8760. case $host_os in
  8761. cygwin* | mingw* | pw32* | cegcc*)
  8762. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8763. # When not using gcc, we currently assume that we are using
  8764. # Microsoft Visual C++.
  8765. if test yes != "$GCC"; then
  8766. with_gnu_ld=no
  8767. fi
  8768. ;;
  8769. interix*)
  8770. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8771. with_gnu_ld=yes
  8772. ;;
  8773. openbsd* | bitrig*)
  8774. with_gnu_ld=no
  8775. ;;
  8776. linux* | k*bsd*-gnu | gnu*)
  8777. link_all_deplibs=no
  8778. ;;
  8779. esac
  8780. ld_shlibs=yes
  8781. # On some targets, GNU ld is compatible enough with the native linker
  8782. # that we're better off using the native interface for both.
  8783. lt_use_gnu_ld_interface=no
  8784. if test yes = "$with_gnu_ld"; then
  8785. case $host_os in
  8786. aix*)
  8787. # The AIX port of GNU ld has always aspired to compatibility
  8788. # with the native linker. However, as the warning in the GNU ld
  8789. # block says, versions before 2.19.5* couldn't really create working
  8790. # shared libraries, regardless of the interface used.
  8791. case `$LD -v 2>&1` in
  8792. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8793. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8794. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8795. *)
  8796. lt_use_gnu_ld_interface=yes
  8797. ;;
  8798. esac
  8799. ;;
  8800. *)
  8801. lt_use_gnu_ld_interface=yes
  8802. ;;
  8803. esac
  8804. fi
  8805. if test yes = "$lt_use_gnu_ld_interface"; then
  8806. # If archive_cmds runs LD, not CC, wlarc should be empty
  8807. wlarc='$wl'
  8808. # Set some defaults for GNU ld with shared library support. These
  8809. # are reset later if shared libraries are not supported. Putting them
  8810. # here allows them to be overridden if necessary.
  8811. runpath_var=LD_RUN_PATH
  8812. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8813. export_dynamic_flag_spec='$wl--export-dynamic'
  8814. # ancient GNU ld didn't support --whole-archive et. al.
  8815. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8816. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8817. else
  8818. whole_archive_flag_spec=
  8819. fi
  8820. supports_anon_versioning=no
  8821. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  8822. *GNU\ gold*) supports_anon_versioning=yes ;;
  8823. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8824. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8825. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8826. *\ 2.11.*) ;; # other 2.11 versions
  8827. *) supports_anon_versioning=yes ;;
  8828. esac
  8829. # See if GNU ld supports shared libraries.
  8830. case $host_os in
  8831. aix[3-9]*)
  8832. # On AIX/PPC, the GNU linker is very broken
  8833. if test ia64 != "$host_cpu"; then
  8834. ld_shlibs=no
  8835. cat <<_LT_EOF 1>&2
  8836. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8837. *** to be unable to reliably create shared libraries on AIX.
  8838. *** Therefore, libtool is disabling shared libraries support. If you
  8839. *** really care for shared libraries, you may want to install binutils
  8840. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8841. *** You will then need to restart the configuration process.
  8842. _LT_EOF
  8843. fi
  8844. ;;
  8845. amigaos*)
  8846. case $host_cpu in
  8847. powerpc)
  8848. # see comment about AmigaOS4 .so support
  8849. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8850. archive_expsym_cmds=''
  8851. ;;
  8852. m68k)
  8853. 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)'
  8854. hardcode_libdir_flag_spec='-L$libdir'
  8855. hardcode_minus_L=yes
  8856. ;;
  8857. esac
  8858. ;;
  8859. beos*)
  8860. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8861. allow_undefined_flag=unsupported
  8862. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8863. # support --undefined. This deserves some investigation. FIXME
  8864. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8865. else
  8866. ld_shlibs=no
  8867. fi
  8868. ;;
  8869. cygwin* | mingw* | pw32* | cegcc*)
  8870. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8871. # as there is no search path for DLLs.
  8872. hardcode_libdir_flag_spec='-L$libdir'
  8873. export_dynamic_flag_spec='$wl--export-all-symbols'
  8874. allow_undefined_flag=unsupported
  8875. always_export_symbols=no
  8876. enable_shared_with_static_runtimes=yes
  8877. 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'
  8878. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8879. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8880. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8881. # If the export-symbols file already is a .def file, use it as
  8882. # is; otherwise, prepend EXPORTS...
  8883. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8884. cp $export_symbols $output_objdir/$soname.def;
  8885. else
  8886. echo EXPORTS > $output_objdir/$soname.def;
  8887. cat $export_symbols >> $output_objdir/$soname.def;
  8888. fi~
  8889. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8890. else
  8891. ld_shlibs=no
  8892. fi
  8893. ;;
  8894. haiku*)
  8895. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8896. link_all_deplibs=yes
  8897. ;;
  8898. os2*)
  8899. hardcode_libdir_flag_spec='-L$libdir'
  8900. hardcode_minus_L=yes
  8901. allow_undefined_flag=unsupported
  8902. shrext_cmds=.dll
  8903. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8904. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8905. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8906. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8907. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8908. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8909. emximp -o $lib $output_objdir/$libname.def'
  8910. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8911. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8912. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8913. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8914. prefix_cmds="$SED"~
  8915. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8916. prefix_cmds="$prefix_cmds -e 1d";
  8917. fi~
  8918. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8919. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8920. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8921. emximp -o $lib $output_objdir/$libname.def'
  8922. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8923. enable_shared_with_static_runtimes=yes
  8924. ;;
  8925. interix[3-9]*)
  8926. hardcode_direct=no
  8927. hardcode_shlibpath_var=no
  8928. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8929. export_dynamic_flag_spec='$wl-E'
  8930. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8931. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8932. # default) and relocated if they conflict, which is a slow very memory
  8933. # consuming and fragmenting process. To avoid this, we pick a random,
  8934. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8935. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8936. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8937. 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'
  8938. ;;
  8939. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8940. tmp_diet=no
  8941. if test linux-dietlibc = "$host_os"; then
  8942. case $cc_basename in
  8943. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8944. esac
  8945. fi
  8946. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8947. && test no = "$tmp_diet"
  8948. then
  8949. tmp_addflag=' $pic_flag'
  8950. tmp_sharedflag='-shared'
  8951. case $cc_basename,$host_cpu in
  8952. pgcc*) # Portland Group C compiler
  8953. 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'
  8954. tmp_addflag=' $pic_flag'
  8955. ;;
  8956. pgf77* | pgf90* | pgf95* | pgfortran*)
  8957. # Portland Group f77 and f90 compilers
  8958. 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'
  8959. tmp_addflag=' $pic_flag -Mnomain' ;;
  8960. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8961. tmp_addflag=' -i_dynamic' ;;
  8962. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8963. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8964. ifc* | ifort*) # Intel Fortran compiler
  8965. tmp_addflag=' -nofor_main' ;;
  8966. lf95*) # Lahey Fortran 8.1
  8967. whole_archive_flag_spec=
  8968. tmp_sharedflag='--shared' ;;
  8969. nagfor*) # NAGFOR 5.3
  8970. tmp_sharedflag='-Wl,-shared' ;;
  8971. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8972. tmp_sharedflag='-qmkshrobj'
  8973. tmp_addflag= ;;
  8974. nvcc*) # Cuda Compiler Driver 2.2
  8975. 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'
  8976. compiler_needs_object=yes
  8977. ;;
  8978. esac
  8979. case `$CC -V 2>&1 | sed 5q` in
  8980. *Sun\ C*) # Sun C 5.9
  8981. 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'
  8982. compiler_needs_object=yes
  8983. tmp_sharedflag='-G' ;;
  8984. *Sun\ F*) # Sun Fortran 8.3
  8985. tmp_sharedflag='-G' ;;
  8986. esac
  8987. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8988. if test yes = "$supports_anon_versioning"; then
  8989. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8990. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8991. echo "local: *; };" >> $output_objdir/$libname.ver~
  8992. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8993. fi
  8994. case $cc_basename in
  8995. tcc*)
  8996. export_dynamic_flag_spec='-rdynamic'
  8997. ;;
  8998. xlf* | bgf* | bgxlf* | mpixlf*)
  8999. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9000. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9001. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9002. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9003. if test yes = "$supports_anon_versioning"; then
  9004. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9005. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9006. echo "local: *; };" >> $output_objdir/$libname.ver~
  9007. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9008. fi
  9009. ;;
  9010. esac
  9011. else
  9012. ld_shlibs=no
  9013. fi
  9014. ;;
  9015. netbsd* | netbsdelf*-gnu)
  9016. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9017. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9018. wlarc=
  9019. else
  9020. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9021. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9022. fi
  9023. ;;
  9024. solaris*)
  9025. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9026. ld_shlibs=no
  9027. cat <<_LT_EOF 1>&2
  9028. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9029. *** create shared libraries on Solaris systems. Therefore, libtool
  9030. *** is disabling shared libraries support. We urge you to upgrade GNU
  9031. *** binutils to release 2.9.1 or newer. Another option is to modify
  9032. *** your PATH or compiler configuration so that the native linker is
  9033. *** used, and then restart.
  9034. _LT_EOF
  9035. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9036. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9037. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9038. else
  9039. ld_shlibs=no
  9040. fi
  9041. ;;
  9042. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9043. case `$LD -v 2>&1` in
  9044. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9045. ld_shlibs=no
  9046. cat <<_LT_EOF 1>&2
  9047. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  9048. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9049. *** is disabling shared libraries support. We urge you to upgrade GNU
  9050. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9051. *** your PATH or compiler configuration so that the native linker is
  9052. *** used, and then restart.
  9053. _LT_EOF
  9054. ;;
  9055. *)
  9056. # For security reasons, it is highly recommended that you always
  9057. # use absolute paths for naming shared libraries, and exclude the
  9058. # DT_RUNPATH tag from executables and libraries. But doing so
  9059. # requires that you compile everything twice, which is a pain.
  9060. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9061. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9062. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9063. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9064. else
  9065. ld_shlibs=no
  9066. fi
  9067. ;;
  9068. esac
  9069. ;;
  9070. sunos4*)
  9071. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9072. wlarc=
  9073. hardcode_direct=yes
  9074. hardcode_shlibpath_var=no
  9075. ;;
  9076. *)
  9077. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9078. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9079. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9080. else
  9081. ld_shlibs=no
  9082. fi
  9083. ;;
  9084. esac
  9085. if test no = "$ld_shlibs"; then
  9086. runpath_var=
  9087. hardcode_libdir_flag_spec=
  9088. export_dynamic_flag_spec=
  9089. whole_archive_flag_spec=
  9090. fi
  9091. else
  9092. # PORTME fill in a description of your system's linker (not GNU ld)
  9093. case $host_os in
  9094. aix3*)
  9095. allow_undefined_flag=unsupported
  9096. always_export_symbols=yes
  9097. 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'
  9098. # Note: this linker hardcodes the directories in LIBPATH if there
  9099. # are no directories specified by -L.
  9100. hardcode_minus_L=yes
  9101. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  9102. # Neither direct hardcoding nor static linking is supported with a
  9103. # broken collect2.
  9104. hardcode_direct=unsupported
  9105. fi
  9106. ;;
  9107. aix[4-9]*)
  9108. if test ia64 = "$host_cpu"; then
  9109. # On IA64, the linker does run time linking by default, so we don't
  9110. # have to do anything special.
  9111. aix_use_runtimelinking=no
  9112. exp_sym_flag='-Bexport'
  9113. no_entry_flag=
  9114. else
  9115. # If we're using GNU nm, then we don't want the "-C" option.
  9116. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  9117. # Without the "-l" option, or with the "-B" option, AIX nm treats
  9118. # weak defined symbols like other global defined symbols, whereas
  9119. # GNU nm marks them as "W".
  9120. # While the 'weak' keyword is ignored in the Export File, we need
  9121. # it in the Import File for the 'aix-soname' feature, so we have
  9122. # to replace the "-B" option with "-P" for AIX nm.
  9123. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9124. 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'
  9125. else
  9126. 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'
  9127. fi
  9128. aix_use_runtimelinking=no
  9129. # Test if we are trying to use run time linking or normal
  9130. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9131. # have runtime linking enabled, and use it for executables.
  9132. # For shared libraries, we enable/disable runtime linking
  9133. # depending on the kind of the shared library created -
  9134. # when "with_aix_soname,aix_use_runtimelinking" is:
  9135. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  9136. # "aix,yes" lib.so shared, rtl:yes, for executables
  9137. # lib.a static archive
  9138. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  9139. # lib.a(lib.so.V) shared, rtl:no, for executables
  9140. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  9141. # lib.a(lib.so.V) shared, rtl:no
  9142. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  9143. # lib.a static archive
  9144. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9145. for ld_flag in $LDFLAGS; do
  9146. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  9147. aix_use_runtimelinking=yes
  9148. break
  9149. fi
  9150. done
  9151. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9152. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9153. # so we don't have lib.a shared libs to link our executables.
  9154. # We have to force runtime linking in this case.
  9155. aix_use_runtimelinking=yes
  9156. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9157. fi
  9158. ;;
  9159. esac
  9160. exp_sym_flag='-bexport'
  9161. no_entry_flag='-bnoentry'
  9162. fi
  9163. # When large executables or shared objects are built, AIX ld can
  9164. # have problems creating the table of contents. If linking a library
  9165. # or program results in "error TOC overflow" add -mminimal-toc to
  9166. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9167. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9168. archive_cmds=''
  9169. hardcode_direct=yes
  9170. hardcode_direct_absolute=yes
  9171. hardcode_libdir_separator=':'
  9172. link_all_deplibs=yes
  9173. file_list_spec='$wl-f,'
  9174. case $with_aix_soname,$aix_use_runtimelinking in
  9175. aix,*) ;; # traditional, no import file
  9176. svr4,* | *,yes) # use import file
  9177. # The Import File defines what to hardcode.
  9178. hardcode_direct=no
  9179. hardcode_direct_absolute=no
  9180. ;;
  9181. esac
  9182. if test yes = "$GCC"; then
  9183. case $host_os in aix4.[012]|aix4.[012].*)
  9184. # We only want to do this on AIX 4.2 and lower, the check
  9185. # below for broken collect2 doesn't work under 4.3+
  9186. collect2name=`$CC -print-prog-name=collect2`
  9187. if test -f "$collect2name" &&
  9188. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9189. then
  9190. # We have reworked collect2
  9191. :
  9192. else
  9193. # We have old collect2
  9194. hardcode_direct=unsupported
  9195. # It fails to find uninstalled libraries when the uninstalled
  9196. # path is not listed in the libpath. Setting hardcode_minus_L
  9197. # to unsupported forces relinking
  9198. hardcode_minus_L=yes
  9199. hardcode_libdir_flag_spec='-L$libdir'
  9200. hardcode_libdir_separator=
  9201. fi
  9202. ;;
  9203. esac
  9204. shared_flag='-shared'
  9205. if test yes = "$aix_use_runtimelinking"; then
  9206. shared_flag="$shared_flag "'$wl-G'
  9207. fi
  9208. # Need to ensure runtime linking is disabled for the traditional
  9209. # shared library, or the linker may eventually find shared libraries
  9210. # /with/ Import File - we do not want to mix them.
  9211. shared_flag_aix='-shared'
  9212. shared_flag_svr4='-shared $wl-G'
  9213. else
  9214. # not using gcc
  9215. if test ia64 = "$host_cpu"; then
  9216. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9217. # chokes on -Wl,-G. The following line is correct:
  9218. shared_flag='-G'
  9219. else
  9220. if test yes = "$aix_use_runtimelinking"; then
  9221. shared_flag='$wl-G'
  9222. else
  9223. shared_flag='$wl-bM:SRE'
  9224. fi
  9225. shared_flag_aix='$wl-bM:SRE'
  9226. shared_flag_svr4='$wl-G'
  9227. fi
  9228. fi
  9229. export_dynamic_flag_spec='$wl-bexpall'
  9230. # It seems that -bexpall does not export symbols beginning with
  9231. # underscore (_), so it is better to generate a list of symbols to export.
  9232. always_export_symbols=yes
  9233. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9234. # Warning - without using the other runtime loading flags (-brtl),
  9235. # -berok will link without error, but may produce a broken library.
  9236. allow_undefined_flag='-berok'
  9237. # Determine the default libpath from the value encoded in an
  9238. # empty executable.
  9239. if test set = "${lt_cv_aix_libpath+set}"; then
  9240. aix_libpath=$lt_cv_aix_libpath
  9241. else
  9242. if ${lt_cv_aix_libpath_+:} false; then :
  9243. $as_echo_n "(cached) " >&6
  9244. else
  9245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9246. /* end confdefs.h. */
  9247. int
  9248. main ()
  9249. {
  9250. ;
  9251. return 0;
  9252. }
  9253. _ACEOF
  9254. if ac_fn_c_try_link "$LINENO"; then :
  9255. lt_aix_libpath_sed='
  9256. /Import File Strings/,/^$/ {
  9257. /^0/ {
  9258. s/^0 *\([^ ]*\) *$/\1/
  9259. p
  9260. }
  9261. }'
  9262. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9263. # Check for a 64-bit object if we didn't find anything.
  9264. if test -z "$lt_cv_aix_libpath_"; then
  9265. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9266. fi
  9267. fi
  9268. rm -f core conftest.err conftest.$ac_objext \
  9269. conftest$ac_exeext conftest.$ac_ext
  9270. if test -z "$lt_cv_aix_libpath_"; then
  9271. lt_cv_aix_libpath_=/usr/lib:/lib
  9272. fi
  9273. fi
  9274. aix_libpath=$lt_cv_aix_libpath_
  9275. fi
  9276. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9277. 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
  9278. else
  9279. if test ia64 = "$host_cpu"; then
  9280. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9281. allow_undefined_flag="-z nodefs"
  9282. 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"
  9283. else
  9284. # Determine the default libpath from the value encoded in an
  9285. # empty executable.
  9286. if test set = "${lt_cv_aix_libpath+set}"; then
  9287. aix_libpath=$lt_cv_aix_libpath
  9288. else
  9289. if ${lt_cv_aix_libpath_+:} false; then :
  9290. $as_echo_n "(cached) " >&6
  9291. else
  9292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9293. /* end confdefs.h. */
  9294. int
  9295. main ()
  9296. {
  9297. ;
  9298. return 0;
  9299. }
  9300. _ACEOF
  9301. if ac_fn_c_try_link "$LINENO"; then :
  9302. lt_aix_libpath_sed='
  9303. /Import File Strings/,/^$/ {
  9304. /^0/ {
  9305. s/^0 *\([^ ]*\) *$/\1/
  9306. p
  9307. }
  9308. }'
  9309. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9310. # Check for a 64-bit object if we didn't find anything.
  9311. if test -z "$lt_cv_aix_libpath_"; then
  9312. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9313. fi
  9314. fi
  9315. rm -f core conftest.err conftest.$ac_objext \
  9316. conftest$ac_exeext conftest.$ac_ext
  9317. if test -z "$lt_cv_aix_libpath_"; then
  9318. lt_cv_aix_libpath_=/usr/lib:/lib
  9319. fi
  9320. fi
  9321. aix_libpath=$lt_cv_aix_libpath_
  9322. fi
  9323. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9324. # Warning - without using the other run time loading flags,
  9325. # -berok will link without error, but may produce a broken library.
  9326. no_undefined_flag=' $wl-bernotok'
  9327. allow_undefined_flag=' $wl-berok'
  9328. if test yes = "$with_gnu_ld"; then
  9329. # We only use this code for GNU lds that support --whole-archive.
  9330. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9331. else
  9332. # Exported symbols can be pulled into shared objects from archives
  9333. whole_archive_flag_spec='$convenience'
  9334. fi
  9335. archive_cmds_need_lc=yes
  9336. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9337. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9338. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9339. if test svr4 != "$with_aix_soname"; then
  9340. # This is similar to how AIX traditionally builds its shared libraries.
  9341. 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'
  9342. fi
  9343. if test aix != "$with_aix_soname"; then
  9344. 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'
  9345. else
  9346. # used by -dlpreopen to get the symbols
  9347. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9348. fi
  9349. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9350. fi
  9351. fi
  9352. ;;
  9353. amigaos*)
  9354. case $host_cpu in
  9355. powerpc)
  9356. # see comment about AmigaOS4 .so support
  9357. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9358. archive_expsym_cmds=''
  9359. ;;
  9360. m68k)
  9361. 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)'
  9362. hardcode_libdir_flag_spec='-L$libdir'
  9363. hardcode_minus_L=yes
  9364. ;;
  9365. esac
  9366. ;;
  9367. bsdi[45]*)
  9368. export_dynamic_flag_spec=-rdynamic
  9369. ;;
  9370. cygwin* | mingw* | pw32* | cegcc*)
  9371. # When not using gcc, we currently assume that we are using
  9372. # Microsoft Visual C++.
  9373. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9374. # no search path for DLLs.
  9375. case $cc_basename in
  9376. cl*)
  9377. # Native MSVC
  9378. hardcode_libdir_flag_spec=' '
  9379. allow_undefined_flag=unsupported
  9380. always_export_symbols=yes
  9381. file_list_spec='@'
  9382. # Tell ltmain to make .lib files, not .a files.
  9383. libext=lib
  9384. # Tell ltmain to make .dll files, not .so files.
  9385. shrext_cmds=.dll
  9386. # FIXME: Setting linknames here is a bad hack.
  9387. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9388. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9389. cp "$export_symbols" "$output_objdir/$soname.def";
  9390. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9391. else
  9392. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9393. fi~
  9394. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9395. linknames='
  9396. # The linker will not automatically build a static lib if we build a DLL.
  9397. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9398. enable_shared_with_static_runtimes=yes
  9399. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9400. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9401. # Don't use ranlib
  9402. old_postinstall_cmds='chmod 644 $oldlib'
  9403. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9404. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9405. case $lt_outputfile in
  9406. *.exe|*.EXE) ;;
  9407. *)
  9408. lt_outputfile=$lt_outputfile.exe
  9409. lt_tool_outputfile=$lt_tool_outputfile.exe
  9410. ;;
  9411. esac~
  9412. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9413. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9414. $RM "$lt_outputfile.manifest";
  9415. fi'
  9416. ;;
  9417. *)
  9418. # Assume MSVC wrapper
  9419. hardcode_libdir_flag_spec=' '
  9420. allow_undefined_flag=unsupported
  9421. # Tell ltmain to make .lib files, not .a files.
  9422. libext=lib
  9423. # Tell ltmain to make .dll files, not .so files.
  9424. shrext_cmds=.dll
  9425. # FIXME: Setting linknames here is a bad hack.
  9426. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9427. # The linker will automatically build a .lib file if we build a DLL.
  9428. old_archive_from_new_cmds='true'
  9429. # FIXME: Should let the user specify the lib program.
  9430. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9431. enable_shared_with_static_runtimes=yes
  9432. ;;
  9433. esac
  9434. ;;
  9435. darwin* | rhapsody*)
  9436. archive_cmds_need_lc=no
  9437. hardcode_direct=no
  9438. hardcode_automatic=yes
  9439. hardcode_shlibpath_var=unsupported
  9440. if test yes = "$lt_cv_ld_force_load"; then
  9441. 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\"`'
  9442. else
  9443. whole_archive_flag_spec=''
  9444. fi
  9445. link_all_deplibs=yes
  9446. allow_undefined_flag=$_lt_dar_allow_undefined
  9447. case $cc_basename in
  9448. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9449. *) _lt_dar_can_shared=$GCC ;;
  9450. esac
  9451. if test yes = "$_lt_dar_can_shared"; then
  9452. output_verbose_link_cmd=func_echo_all
  9453. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9454. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9455. 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"
  9456. 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"
  9457. else
  9458. ld_shlibs=no
  9459. fi
  9460. ;;
  9461. dgux*)
  9462. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9463. hardcode_libdir_flag_spec='-L$libdir'
  9464. hardcode_shlibpath_var=no
  9465. ;;
  9466. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9467. # support. Future versions do this automatically, but an explicit c++rt0.o
  9468. # does not break anything, and helps significantly (at the cost of a little
  9469. # extra space).
  9470. freebsd2.2*)
  9471. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9472. hardcode_libdir_flag_spec='-R$libdir'
  9473. hardcode_direct=yes
  9474. hardcode_shlibpath_var=no
  9475. ;;
  9476. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9477. freebsd2.*)
  9478. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9479. hardcode_direct=yes
  9480. hardcode_minus_L=yes
  9481. hardcode_shlibpath_var=no
  9482. ;;
  9483. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9484. freebsd* | dragonfly*)
  9485. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9486. hardcode_libdir_flag_spec='-R$libdir'
  9487. hardcode_direct=yes
  9488. hardcode_shlibpath_var=no
  9489. ;;
  9490. hpux9*)
  9491. if test yes = "$GCC"; then
  9492. 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'
  9493. else
  9494. 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'
  9495. fi
  9496. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9497. hardcode_libdir_separator=:
  9498. hardcode_direct=yes
  9499. # hardcode_minus_L: Not really in the search PATH,
  9500. # but as the default location of the library.
  9501. hardcode_minus_L=yes
  9502. export_dynamic_flag_spec='$wl-E'
  9503. ;;
  9504. hpux10*)
  9505. if test yes,no = "$GCC,$with_gnu_ld"; then
  9506. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9507. else
  9508. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9509. fi
  9510. if test no = "$with_gnu_ld"; then
  9511. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9512. hardcode_libdir_separator=:
  9513. hardcode_direct=yes
  9514. hardcode_direct_absolute=yes
  9515. export_dynamic_flag_spec='$wl-E'
  9516. # hardcode_minus_L: Not really in the search PATH,
  9517. # but as the default location of the library.
  9518. hardcode_minus_L=yes
  9519. fi
  9520. ;;
  9521. hpux11*)
  9522. if test yes,no = "$GCC,$with_gnu_ld"; then
  9523. case $host_cpu in
  9524. hppa*64*)
  9525. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9526. ;;
  9527. ia64*)
  9528. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9529. ;;
  9530. *)
  9531. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9532. ;;
  9533. esac
  9534. else
  9535. case $host_cpu in
  9536. hppa*64*)
  9537. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9538. ;;
  9539. ia64*)
  9540. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9541. ;;
  9542. *)
  9543. # Older versions of the 11.00 compiler do not understand -b yet
  9544. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9546. $as_echo_n "checking if $CC understands -b... " >&6; }
  9547. if ${lt_cv_prog_compiler__b+:} false; then :
  9548. $as_echo_n "(cached) " >&6
  9549. else
  9550. lt_cv_prog_compiler__b=no
  9551. save_LDFLAGS=$LDFLAGS
  9552. LDFLAGS="$LDFLAGS -b"
  9553. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9554. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9555. # The linker can only warn and ignore the option if not recognized
  9556. # So say no if there are warnings
  9557. if test -s conftest.err; then
  9558. # Append any errors to the config.log.
  9559. cat conftest.err 1>&5
  9560. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9561. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9562. if diff conftest.exp conftest.er2 >/dev/null; then
  9563. lt_cv_prog_compiler__b=yes
  9564. fi
  9565. else
  9566. lt_cv_prog_compiler__b=yes
  9567. fi
  9568. fi
  9569. $RM -r conftest*
  9570. LDFLAGS=$save_LDFLAGS
  9571. fi
  9572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9573. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9574. if test yes = "$lt_cv_prog_compiler__b"; then
  9575. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9576. else
  9577. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9578. fi
  9579. ;;
  9580. esac
  9581. fi
  9582. if test no = "$with_gnu_ld"; then
  9583. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9584. hardcode_libdir_separator=:
  9585. case $host_cpu in
  9586. hppa*64*|ia64*)
  9587. hardcode_direct=no
  9588. hardcode_shlibpath_var=no
  9589. ;;
  9590. *)
  9591. hardcode_direct=yes
  9592. hardcode_direct_absolute=yes
  9593. export_dynamic_flag_spec='$wl-E'
  9594. # hardcode_minus_L: Not really in the search PATH,
  9595. # but as the default location of the library.
  9596. hardcode_minus_L=yes
  9597. ;;
  9598. esac
  9599. fi
  9600. ;;
  9601. irix5* | irix6* | nonstopux*)
  9602. if test yes = "$GCC"; then
  9603. 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'
  9604. # Try to use the -exported_symbol ld option, if it does not
  9605. # work, assume that -exports_file does not work either and
  9606. # implicitly export all symbols.
  9607. # This should be the same for all languages, so no per-tag cache variable.
  9608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9609. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9610. if ${lt_cv_irix_exported_symbol+:} false; then :
  9611. $as_echo_n "(cached) " >&6
  9612. else
  9613. save_LDFLAGS=$LDFLAGS
  9614. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9616. /* end confdefs.h. */
  9617. int foo (void) { return 0; }
  9618. _ACEOF
  9619. if ac_fn_c_try_link "$LINENO"; then :
  9620. lt_cv_irix_exported_symbol=yes
  9621. else
  9622. lt_cv_irix_exported_symbol=no
  9623. fi
  9624. rm -f core conftest.err conftest.$ac_objext \
  9625. conftest$ac_exeext conftest.$ac_ext
  9626. LDFLAGS=$save_LDFLAGS
  9627. fi
  9628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9629. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9630. if test yes = "$lt_cv_irix_exported_symbol"; then
  9631. 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'
  9632. fi
  9633. link_all_deplibs=no
  9634. else
  9635. 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'
  9636. 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'
  9637. fi
  9638. archive_cmds_need_lc='no'
  9639. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9640. hardcode_libdir_separator=:
  9641. inherit_rpath=yes
  9642. link_all_deplibs=yes
  9643. ;;
  9644. linux*)
  9645. case $cc_basename in
  9646. tcc*)
  9647. # Fabrice Bellard et al's Tiny C Compiler
  9648. ld_shlibs=yes
  9649. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9650. ;;
  9651. esac
  9652. ;;
  9653. netbsd* | netbsdelf*-gnu)
  9654. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9655. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9656. else
  9657. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9658. fi
  9659. hardcode_libdir_flag_spec='-R$libdir'
  9660. hardcode_direct=yes
  9661. hardcode_shlibpath_var=no
  9662. ;;
  9663. newsos6)
  9664. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9665. hardcode_direct=yes
  9666. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9667. hardcode_libdir_separator=:
  9668. hardcode_shlibpath_var=no
  9669. ;;
  9670. *nto* | *qnx*)
  9671. ;;
  9672. openbsd* | bitrig*)
  9673. if test -f /usr/libexec/ld.so; then
  9674. hardcode_direct=yes
  9675. hardcode_shlibpath_var=no
  9676. hardcode_direct_absolute=yes
  9677. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9678. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9679. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9680. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9681. export_dynamic_flag_spec='$wl-E'
  9682. else
  9683. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9684. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9685. fi
  9686. else
  9687. ld_shlibs=no
  9688. fi
  9689. ;;
  9690. os2*)
  9691. hardcode_libdir_flag_spec='-L$libdir'
  9692. hardcode_minus_L=yes
  9693. allow_undefined_flag=unsupported
  9694. shrext_cmds=.dll
  9695. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9696. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9697. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9698. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9699. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9700. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9701. emximp -o $lib $output_objdir/$libname.def'
  9702. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9703. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9704. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9705. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9706. prefix_cmds="$SED"~
  9707. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9708. prefix_cmds="$prefix_cmds -e 1d";
  9709. fi~
  9710. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9711. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9712. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9713. emximp -o $lib $output_objdir/$libname.def'
  9714. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9715. enable_shared_with_static_runtimes=yes
  9716. ;;
  9717. osf3*)
  9718. if test yes = "$GCC"; then
  9719. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9720. 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'
  9721. else
  9722. allow_undefined_flag=' -expect_unresolved \*'
  9723. 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'
  9724. fi
  9725. archive_cmds_need_lc='no'
  9726. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9727. hardcode_libdir_separator=:
  9728. ;;
  9729. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9730. if test yes = "$GCC"; then
  9731. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9732. 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'
  9733. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9734. else
  9735. allow_undefined_flag=' -expect_unresolved \*'
  9736. 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'
  9737. 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~
  9738. $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'
  9739. # Both c and cxx compiler support -rpath directly
  9740. hardcode_libdir_flag_spec='-rpath $libdir'
  9741. fi
  9742. archive_cmds_need_lc='no'
  9743. hardcode_libdir_separator=:
  9744. ;;
  9745. solaris*)
  9746. no_undefined_flag=' -z defs'
  9747. if test yes = "$GCC"; then
  9748. wlarc='$wl'
  9749. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9750. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9751. $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'
  9752. else
  9753. case `$CC -V 2>&1` in
  9754. *"Compilers 5.0"*)
  9755. wlarc=''
  9756. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9757. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9758. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9759. ;;
  9760. *)
  9761. wlarc='$wl'
  9762. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9763. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9764. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9765. ;;
  9766. esac
  9767. fi
  9768. hardcode_libdir_flag_spec='-R$libdir'
  9769. hardcode_shlibpath_var=no
  9770. case $host_os in
  9771. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9772. *)
  9773. # The compiler driver will combine and reorder linker options,
  9774. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9775. # but is careful enough not to reorder.
  9776. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9777. if test yes = "$GCC"; then
  9778. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9779. else
  9780. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9781. fi
  9782. ;;
  9783. esac
  9784. link_all_deplibs=yes
  9785. ;;
  9786. sunos4*)
  9787. if test sequent = "$host_vendor"; then
  9788. # Use $CC to link under sequent, because it throws in some extra .o
  9789. # files that make .init and .fini sections work.
  9790. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9791. else
  9792. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9793. fi
  9794. hardcode_libdir_flag_spec='-L$libdir'
  9795. hardcode_direct=yes
  9796. hardcode_minus_L=yes
  9797. hardcode_shlibpath_var=no
  9798. ;;
  9799. sysv4)
  9800. case $host_vendor in
  9801. sni)
  9802. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9803. hardcode_direct=yes # is this really true???
  9804. ;;
  9805. siemens)
  9806. ## LD is ld it makes a PLAMLIB
  9807. ## CC just makes a GrossModule.
  9808. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9809. reload_cmds='$CC -r -o $output$reload_objs'
  9810. hardcode_direct=no
  9811. ;;
  9812. motorola)
  9813. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9814. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9815. ;;
  9816. esac
  9817. runpath_var='LD_RUN_PATH'
  9818. hardcode_shlibpath_var=no
  9819. ;;
  9820. sysv4.3*)
  9821. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9822. hardcode_shlibpath_var=no
  9823. export_dynamic_flag_spec='-Bexport'
  9824. ;;
  9825. sysv4*MP*)
  9826. if test -d /usr/nec; then
  9827. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9828. hardcode_shlibpath_var=no
  9829. runpath_var=LD_RUN_PATH
  9830. hardcode_runpath_var=yes
  9831. ld_shlibs=yes
  9832. fi
  9833. ;;
  9834. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9835. no_undefined_flag='$wl-z,text'
  9836. archive_cmds_need_lc=no
  9837. hardcode_shlibpath_var=no
  9838. runpath_var='LD_RUN_PATH'
  9839. if test yes = "$GCC"; then
  9840. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9841. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9842. else
  9843. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9844. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9845. fi
  9846. ;;
  9847. sysv5* | sco3.2v5* | sco5v6*)
  9848. # Note: We CANNOT use -z defs as we might desire, because we do not
  9849. # link with -lc, and that would cause any symbols used from libc to
  9850. # always be unresolved, which means just about no library would
  9851. # ever link correctly. If we're not using GNU ld we use -z text
  9852. # though, which does catch some bad symbols but isn't as heavy-handed
  9853. # as -z defs.
  9854. no_undefined_flag='$wl-z,text'
  9855. allow_undefined_flag='$wl-z,nodefs'
  9856. archive_cmds_need_lc=no
  9857. hardcode_shlibpath_var=no
  9858. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9859. hardcode_libdir_separator=':'
  9860. link_all_deplibs=yes
  9861. export_dynamic_flag_spec='$wl-Bexport'
  9862. runpath_var='LD_RUN_PATH'
  9863. if test yes = "$GCC"; then
  9864. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9865. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9866. else
  9867. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9868. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9869. fi
  9870. ;;
  9871. uts4*)
  9872. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9873. hardcode_libdir_flag_spec='-L$libdir'
  9874. hardcode_shlibpath_var=no
  9875. ;;
  9876. *)
  9877. ld_shlibs=no
  9878. ;;
  9879. esac
  9880. if test sni = "$host_vendor"; then
  9881. case $host in
  9882. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9883. export_dynamic_flag_spec='$wl-Blargedynsym'
  9884. ;;
  9885. esac
  9886. fi
  9887. fi
  9888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9889. $as_echo "$ld_shlibs" >&6; }
  9890. test no = "$ld_shlibs" && can_build_shared=no
  9891. with_gnu_ld=$with_gnu_ld
  9892. #
  9893. # Do we need to explicitly link libc?
  9894. #
  9895. case "x$archive_cmds_need_lc" in
  9896. x|xyes)
  9897. # Assume -lc should be added
  9898. archive_cmds_need_lc=yes
  9899. if test yes,yes = "$GCC,$enable_shared"; then
  9900. case $archive_cmds in
  9901. *'~'*)
  9902. # FIXME: we may have to deal with multi-command sequences.
  9903. ;;
  9904. '$CC '*)
  9905. # Test whether the compiler implicitly links with -lc since on some
  9906. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9907. # to ld, don't add -lc before -lgcc.
  9908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9909. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9910. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9911. $as_echo_n "(cached) " >&6
  9912. else
  9913. $RM conftest*
  9914. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9915. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9916. (eval $ac_compile) 2>&5
  9917. ac_status=$?
  9918. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9919. test $ac_status = 0; } 2>conftest.err; then
  9920. soname=conftest
  9921. lib=conftest
  9922. libobjs=conftest.$ac_objext
  9923. deplibs=
  9924. wl=$lt_prog_compiler_wl
  9925. pic_flag=$lt_prog_compiler_pic
  9926. compiler_flags=-v
  9927. linker_flags=-v
  9928. verstring=
  9929. output_objdir=.
  9930. libname=conftest
  9931. lt_save_allow_undefined_flag=$allow_undefined_flag
  9932. allow_undefined_flag=
  9933. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9934. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9935. ac_status=$?
  9936. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9937. test $ac_status = 0; }
  9938. then
  9939. lt_cv_archive_cmds_need_lc=no
  9940. else
  9941. lt_cv_archive_cmds_need_lc=yes
  9942. fi
  9943. allow_undefined_flag=$lt_save_allow_undefined_flag
  9944. else
  9945. cat conftest.err 1>&5
  9946. fi
  9947. $RM conftest*
  9948. fi
  9949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9950. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9951. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9952. ;;
  9953. esac
  9954. fi
  9955. ;;
  9956. esac
  9957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9958. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9959. if test yes = "$GCC"; then
  9960. case $host_os in
  9961. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9962. *) lt_awk_arg='/^libraries:/' ;;
  9963. esac
  9964. case $host_os in
  9965. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9966. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9967. esac
  9968. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9969. case $lt_search_path_spec in
  9970. *\;*)
  9971. # if the path contains ";" then we assume it to be the separator
  9972. # otherwise default to the standard path separator (i.e. ":") - it is
  9973. # assumed that no part of a normal pathname contains ";" but that should
  9974. # okay in the real world where ";" in dirpaths is itself problematic.
  9975. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9976. ;;
  9977. *)
  9978. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9979. ;;
  9980. esac
  9981. # Ok, now we have the path, separated by spaces, we can step through it
  9982. # and add multilib dir if necessary...
  9983. lt_tmp_lt_search_path_spec=
  9984. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9985. # ...but if some path component already ends with the multilib dir we assume
  9986. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9987. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9988. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9989. lt_multi_os_dir=
  9990. ;;
  9991. esac
  9992. for lt_sys_path in $lt_search_path_spec; do
  9993. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9994. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9995. elif test -n "$lt_multi_os_dir"; then
  9996. test -d "$lt_sys_path" && \
  9997. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9998. fi
  9999. done
  10000. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10001. BEGIN {RS = " "; FS = "/|\n";} {
  10002. lt_foo = "";
  10003. lt_count = 0;
  10004. for (lt_i = NF; lt_i > 0; lt_i--) {
  10005. if ($lt_i != "" && $lt_i != ".") {
  10006. if ($lt_i == "..") {
  10007. lt_count++;
  10008. } else {
  10009. if (lt_count == 0) {
  10010. lt_foo = "/" $lt_i lt_foo;
  10011. } else {
  10012. lt_count--;
  10013. }
  10014. }
  10015. }
  10016. }
  10017. if (lt_foo != "") { lt_freq[lt_foo]++; }
  10018. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10019. }'`
  10020. # AWK program above erroneously prepends '/' to C:/dos/paths
  10021. # for these hosts.
  10022. case $host_os in
  10023. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10024. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  10025. esac
  10026. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10027. else
  10028. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10029. fi
  10030. library_names_spec=
  10031. libname_spec='lib$name'
  10032. soname_spec=
  10033. shrext_cmds=.so
  10034. postinstall_cmds=
  10035. postuninstall_cmds=
  10036. finish_cmds=
  10037. finish_eval=
  10038. shlibpath_var=
  10039. shlibpath_overrides_runpath=unknown
  10040. version_type=none
  10041. dynamic_linker="$host_os ld.so"
  10042. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10043. need_lib_prefix=unknown
  10044. hardcode_into_libs=no
  10045. # when you set need_version to no, make sure it does not cause -set_version
  10046. # flags to be left without arguments
  10047. need_version=unknown
  10048. case $host_os in
  10049. aix3*)
  10050. version_type=linux # correct to gnu/linux during the next big refactor
  10051. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  10052. shlibpath_var=LIBPATH
  10053. # AIX 3 has no versioning support, so we append a major version to the name.
  10054. soname_spec='$libname$release$shared_ext$major'
  10055. ;;
  10056. aix[4-9]*)
  10057. version_type=linux # correct to gnu/linux during the next big refactor
  10058. need_lib_prefix=no
  10059. need_version=no
  10060. hardcode_into_libs=yes
  10061. if test ia64 = "$host_cpu"; then
  10062. # AIX 5 supports IA64
  10063. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  10064. shlibpath_var=LD_LIBRARY_PATH
  10065. else
  10066. # With GCC up to 2.95.x, collect2 would create an import file
  10067. # for dependence libraries. The import file would start with
  10068. # the line '#! .'. This would cause the generated library to
  10069. # depend on '.', always an invalid library. This was fixed in
  10070. # development snapshots of GCC prior to 3.0.
  10071. case $host_os in
  10072. aix4 | aix4.[01] | aix4.[01].*)
  10073. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10074. echo ' yes '
  10075. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  10076. :
  10077. else
  10078. can_build_shared=no
  10079. fi
  10080. ;;
  10081. esac
  10082. # Using Import Files as archive members, it is possible to support
  10083. # filename-based versioning of shared library archives on AIX. While
  10084. # this would work for both with and without runtime linking, it will
  10085. # prevent static linking of such archives. So we do filename-based
  10086. # shared library versioning with .so extension only, which is used
  10087. # when both runtime linking and shared linking is enabled.
  10088. # Unfortunately, runtime linking may impact performance, so we do
  10089. # not want this to be the default eventually. Also, we use the
  10090. # versioned .so libs for executables only if there is the -brtl
  10091. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  10092. # To allow for filename-based versioning support, we need to create
  10093. # libNAME.so.V as an archive file, containing:
  10094. # *) an Import File, referring to the versioned filename of the
  10095. # archive as well as the shared archive member, telling the
  10096. # bitwidth (32 or 64) of that shared object, and providing the
  10097. # list of exported symbols of that shared object, eventually
  10098. # decorated with the 'weak' keyword
  10099. # *) the shared object with the F_LOADONLY flag set, to really avoid
  10100. # it being seen by the linker.
  10101. # At run time we better use the real file rather than another symlink,
  10102. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  10103. case $with_aix_soname,$aix_use_runtimelinking in
  10104. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  10105. # soname into executable. Probably we can add versioning support to
  10106. # collect2, so additional links can be useful in future.
  10107. aix,yes) # traditional libtool
  10108. dynamic_linker='AIX unversionable lib.so'
  10109. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10110. # instead of lib<name>.a to let people know that these are not
  10111. # typical AIX shared libraries.
  10112. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10113. ;;
  10114. aix,no) # traditional AIX only
  10115. dynamic_linker='AIX lib.a(lib.so.V)'
  10116. # We preserve .a as extension for shared libraries through AIX4.2
  10117. # and later when we are not doing run time linking.
  10118. library_names_spec='$libname$release.a $libname.a'
  10119. soname_spec='$libname$release$shared_ext$major'
  10120. ;;
  10121. svr4,*) # full svr4 only
  10122. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  10123. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10124. # We do not specify a path in Import Files, so LIBPATH fires.
  10125. shlibpath_overrides_runpath=yes
  10126. ;;
  10127. *,yes) # both, prefer svr4
  10128. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  10129. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10130. # unpreferred sharedlib libNAME.a needs extra handling
  10131. 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"'
  10132. 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"'
  10133. # We do not specify a path in Import Files, so LIBPATH fires.
  10134. shlibpath_overrides_runpath=yes
  10135. ;;
  10136. *,no) # both, prefer aix
  10137. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  10138. library_names_spec='$libname$release.a $libname.a'
  10139. soname_spec='$libname$release$shared_ext$major'
  10140. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  10141. 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)'
  10142. 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"'
  10143. ;;
  10144. esac
  10145. shlibpath_var=LIBPATH
  10146. fi
  10147. ;;
  10148. amigaos*)
  10149. case $host_cpu in
  10150. powerpc)
  10151. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10152. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10153. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10154. ;;
  10155. m68k)
  10156. library_names_spec='$libname.ixlibrary $libname.a'
  10157. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10158. 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'
  10159. ;;
  10160. esac
  10161. ;;
  10162. beos*)
  10163. library_names_spec='$libname$shared_ext'
  10164. dynamic_linker="$host_os ld.so"
  10165. shlibpath_var=LIBRARY_PATH
  10166. ;;
  10167. bsdi[45]*)
  10168. version_type=linux # correct to gnu/linux during the next big refactor
  10169. need_version=no
  10170. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10171. soname_spec='$libname$release$shared_ext$major'
  10172. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10173. shlibpath_var=LD_LIBRARY_PATH
  10174. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10175. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10176. # the default ld.so.conf also contains /usr/contrib/lib and
  10177. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10178. # libtool to hard-code these into programs
  10179. ;;
  10180. cygwin* | mingw* | pw32* | cegcc*)
  10181. version_type=windows
  10182. shrext_cmds=.dll
  10183. need_version=no
  10184. need_lib_prefix=no
  10185. case $GCC,$cc_basename in
  10186. yes,*)
  10187. # gcc
  10188. library_names_spec='$libname.dll.a'
  10189. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10190. postinstall_cmds='base_file=`basename \$file`~
  10191. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10192. dldir=$destdir/`dirname \$dlpath`~
  10193. test -d \$dldir || mkdir -p \$dldir~
  10194. $install_prog $dir/$dlname \$dldir/$dlname~
  10195. chmod a+x \$dldir/$dlname~
  10196. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10197. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10198. fi'
  10199. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10200. dlpath=$dir/\$dldll~
  10201. $RM \$dlpath'
  10202. shlibpath_overrides_runpath=yes
  10203. case $host_os in
  10204. cygwin*)
  10205. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10206. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10207. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10208. ;;
  10209. mingw* | cegcc*)
  10210. # MinGW DLLs use traditional 'lib' prefix
  10211. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10212. ;;
  10213. pw32*)
  10214. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10215. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10216. ;;
  10217. esac
  10218. dynamic_linker='Win32 ld.exe'
  10219. ;;
  10220. *,cl*)
  10221. # Native MSVC
  10222. libname_spec='$name'
  10223. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10224. library_names_spec='$libname.dll.lib'
  10225. case $build_os in
  10226. mingw*)
  10227. sys_lib_search_path_spec=
  10228. lt_save_ifs=$IFS
  10229. IFS=';'
  10230. for lt_path in $LIB
  10231. do
  10232. IFS=$lt_save_ifs
  10233. # Let DOS variable expansion print the short 8.3 style file name.
  10234. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10235. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10236. done
  10237. IFS=$lt_save_ifs
  10238. # Convert to MSYS style.
  10239. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10240. ;;
  10241. cygwin*)
  10242. # Convert to unix form, then to dos form, then back to unix form
  10243. # but this time dos style (no spaces!) so that the unix form looks
  10244. # like /cygdrive/c/PROGRA~1:/cygdr...
  10245. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10246. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10247. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10248. ;;
  10249. *)
  10250. sys_lib_search_path_spec=$LIB
  10251. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10252. # It is most probably a Windows format PATH.
  10253. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10254. else
  10255. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10256. fi
  10257. # FIXME: find the short name or the path components, as spaces are
  10258. # common. (e.g. "Program Files" -> "PROGRA~1")
  10259. ;;
  10260. esac
  10261. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10262. postinstall_cmds='base_file=`basename \$file`~
  10263. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10264. dldir=$destdir/`dirname \$dlpath`~
  10265. test -d \$dldir || mkdir -p \$dldir~
  10266. $install_prog $dir/$dlname \$dldir/$dlname'
  10267. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10268. dlpath=$dir/\$dldll~
  10269. $RM \$dlpath'
  10270. shlibpath_overrides_runpath=yes
  10271. dynamic_linker='Win32 link.exe'
  10272. ;;
  10273. *)
  10274. # Assume MSVC wrapper
  10275. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10276. dynamic_linker='Win32 ld.exe'
  10277. ;;
  10278. esac
  10279. # FIXME: first we should search . and the directory the executable is in
  10280. shlibpath_var=PATH
  10281. ;;
  10282. darwin* | rhapsody*)
  10283. dynamic_linker="$host_os dyld"
  10284. version_type=darwin
  10285. need_lib_prefix=no
  10286. need_version=no
  10287. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10288. soname_spec='$libname$release$major$shared_ext'
  10289. shlibpath_overrides_runpath=yes
  10290. shlibpath_var=DYLD_LIBRARY_PATH
  10291. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10292. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10293. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10294. ;;
  10295. dgux*)
  10296. version_type=linux # correct to gnu/linux during the next big refactor
  10297. need_lib_prefix=no
  10298. need_version=no
  10299. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10300. soname_spec='$libname$release$shared_ext$major'
  10301. shlibpath_var=LD_LIBRARY_PATH
  10302. ;;
  10303. freebsd* | dragonfly*)
  10304. # DragonFly does not have aout. When/if they implement a new
  10305. # versioning mechanism, adjust this.
  10306. if test -x /usr/bin/objformat; then
  10307. objformat=`/usr/bin/objformat`
  10308. else
  10309. case $host_os in
  10310. freebsd[23].*) objformat=aout ;;
  10311. *) objformat=elf ;;
  10312. esac
  10313. fi
  10314. version_type=freebsd-$objformat
  10315. case $version_type in
  10316. freebsd-elf*)
  10317. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10318. soname_spec='$libname$release$shared_ext$major'
  10319. need_version=no
  10320. need_lib_prefix=no
  10321. ;;
  10322. freebsd-*)
  10323. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10324. need_version=yes
  10325. ;;
  10326. esac
  10327. shlibpath_var=LD_LIBRARY_PATH
  10328. case $host_os in
  10329. freebsd2.*)
  10330. shlibpath_overrides_runpath=yes
  10331. ;;
  10332. freebsd3.[01]* | freebsdelf3.[01]*)
  10333. shlibpath_overrides_runpath=yes
  10334. hardcode_into_libs=yes
  10335. ;;
  10336. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10337. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10338. shlibpath_overrides_runpath=no
  10339. hardcode_into_libs=yes
  10340. ;;
  10341. *) # from 4.6 on, and DragonFly
  10342. shlibpath_overrides_runpath=yes
  10343. hardcode_into_libs=yes
  10344. ;;
  10345. esac
  10346. ;;
  10347. haiku*)
  10348. version_type=linux # correct to gnu/linux during the next big refactor
  10349. need_lib_prefix=no
  10350. need_version=no
  10351. dynamic_linker="$host_os runtime_loader"
  10352. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10353. soname_spec='$libname$release$shared_ext$major'
  10354. shlibpath_var=LIBRARY_PATH
  10355. shlibpath_overrides_runpath=no
  10356. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10357. hardcode_into_libs=yes
  10358. ;;
  10359. hpux9* | hpux10* | hpux11*)
  10360. # Give a soname corresponding to the major version so that dld.sl refuses to
  10361. # link against other versions.
  10362. version_type=sunos
  10363. need_lib_prefix=no
  10364. need_version=no
  10365. case $host_cpu in
  10366. ia64*)
  10367. shrext_cmds='.so'
  10368. hardcode_into_libs=yes
  10369. dynamic_linker="$host_os dld.so"
  10370. shlibpath_var=LD_LIBRARY_PATH
  10371. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10372. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10373. soname_spec='$libname$release$shared_ext$major'
  10374. if test 32 = "$HPUX_IA64_MODE"; then
  10375. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10376. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10377. else
  10378. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10379. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10380. fi
  10381. ;;
  10382. hppa*64*)
  10383. shrext_cmds='.sl'
  10384. hardcode_into_libs=yes
  10385. dynamic_linker="$host_os dld.sl"
  10386. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10387. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10388. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10389. soname_spec='$libname$release$shared_ext$major'
  10390. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10391. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10392. ;;
  10393. *)
  10394. shrext_cmds='.sl'
  10395. dynamic_linker="$host_os dld.sl"
  10396. shlibpath_var=SHLIB_PATH
  10397. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10398. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10399. soname_spec='$libname$release$shared_ext$major'
  10400. ;;
  10401. esac
  10402. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10403. postinstall_cmds='chmod 555 $lib'
  10404. # or fails outright, so override atomically:
  10405. install_override_mode=555
  10406. ;;
  10407. interix[3-9]*)
  10408. version_type=linux # correct to gnu/linux during the next big refactor
  10409. need_lib_prefix=no
  10410. need_version=no
  10411. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10412. soname_spec='$libname$release$shared_ext$major'
  10413. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10414. shlibpath_var=LD_LIBRARY_PATH
  10415. shlibpath_overrides_runpath=no
  10416. hardcode_into_libs=yes
  10417. ;;
  10418. irix5* | irix6* | nonstopux*)
  10419. case $host_os in
  10420. nonstopux*) version_type=nonstopux ;;
  10421. *)
  10422. if test yes = "$lt_cv_prog_gnu_ld"; then
  10423. version_type=linux # correct to gnu/linux during the next big refactor
  10424. else
  10425. version_type=irix
  10426. fi ;;
  10427. esac
  10428. need_lib_prefix=no
  10429. need_version=no
  10430. soname_spec='$libname$release$shared_ext$major'
  10431. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10432. case $host_os in
  10433. irix5* | nonstopux*)
  10434. libsuff= shlibsuff=
  10435. ;;
  10436. *)
  10437. case $LD in # libtool.m4 will add one of these switches to LD
  10438. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10439. libsuff= shlibsuff= libmagic=32-bit;;
  10440. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10441. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10442. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10443. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10444. *) libsuff= shlibsuff= libmagic=never-match;;
  10445. esac
  10446. ;;
  10447. esac
  10448. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10449. shlibpath_overrides_runpath=no
  10450. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10451. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10452. hardcode_into_libs=yes
  10453. ;;
  10454. # No shared lib support for Linux oldld, aout, or coff.
  10455. linux*oldld* | linux*aout* | linux*coff*)
  10456. dynamic_linker=no
  10457. ;;
  10458. linux*android*)
  10459. version_type=none # Android doesn't support versioned libraries.
  10460. need_lib_prefix=no
  10461. need_version=no
  10462. library_names_spec='$libname$release$shared_ext'
  10463. soname_spec='$libname$release$shared_ext'
  10464. finish_cmds=
  10465. shlibpath_var=LD_LIBRARY_PATH
  10466. shlibpath_overrides_runpath=yes
  10467. # This implies no fast_install, which is unacceptable.
  10468. # Some rework will be needed to allow for fast_install
  10469. # before this can be enabled.
  10470. hardcode_into_libs=yes
  10471. dynamic_linker='Android linker'
  10472. # Don't embed -rpath directories since the linker doesn't support them.
  10473. hardcode_libdir_flag_spec='-L$libdir'
  10474. ;;
  10475. # This must be glibc/ELF.
  10476. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10477. version_type=linux # correct to gnu/linux during the next big refactor
  10478. need_lib_prefix=no
  10479. need_version=no
  10480. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10481. soname_spec='$libname$release$shared_ext$major'
  10482. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10483. shlibpath_var=LD_LIBRARY_PATH
  10484. shlibpath_overrides_runpath=no
  10485. # Some binutils ld are patched to set DT_RUNPATH
  10486. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10487. $as_echo_n "(cached) " >&6
  10488. else
  10489. lt_cv_shlibpath_overrides_runpath=no
  10490. save_LDFLAGS=$LDFLAGS
  10491. save_libdir=$libdir
  10492. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10493. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10495. /* end confdefs.h. */
  10496. int
  10497. main ()
  10498. {
  10499. ;
  10500. return 0;
  10501. }
  10502. _ACEOF
  10503. if ac_fn_c_try_link "$LINENO"; then :
  10504. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10505. lt_cv_shlibpath_overrides_runpath=yes
  10506. fi
  10507. fi
  10508. rm -f core conftest.err conftest.$ac_objext \
  10509. conftest$ac_exeext conftest.$ac_ext
  10510. LDFLAGS=$save_LDFLAGS
  10511. libdir=$save_libdir
  10512. fi
  10513. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10514. # This implies no fast_install, which is unacceptable.
  10515. # Some rework will be needed to allow for fast_install
  10516. # before this can be enabled.
  10517. hardcode_into_libs=yes
  10518. # Ideally, we could use ldconfig to report *all* directores which are
  10519. # searched for libraries, however this is still not possible. Aside from not
  10520. # being certain /sbin/ldconfig is available, command
  10521. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10522. # even though it is searched at run-time. Try to do the best guess by
  10523. # appending ld.so.conf contents (and includes) to the search path.
  10524. if test -f /etc/ld.so.conf; then
  10525. 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' ' '`
  10526. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10527. fi
  10528. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10529. # powerpc, because MkLinux only supported shared libraries with the
  10530. # GNU dynamic linker. Since this was broken with cross compilers,
  10531. # most powerpc-linux boxes support dynamic linking these days and
  10532. # people can always --disable-shared, the test was removed, and we
  10533. # assume the GNU/Linux dynamic linker is in use.
  10534. dynamic_linker='GNU/Linux ld.so'
  10535. ;;
  10536. netbsdelf*-gnu)
  10537. version_type=linux
  10538. need_lib_prefix=no
  10539. need_version=no
  10540. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10541. soname_spec='${libname}${release}${shared_ext}$major'
  10542. shlibpath_var=LD_LIBRARY_PATH
  10543. shlibpath_overrides_runpath=no
  10544. hardcode_into_libs=yes
  10545. dynamic_linker='NetBSD ld.elf_so'
  10546. ;;
  10547. netbsd*)
  10548. version_type=sunos
  10549. need_lib_prefix=no
  10550. need_version=no
  10551. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10552. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10553. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10554. dynamic_linker='NetBSD (a.out) ld.so'
  10555. else
  10556. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10557. soname_spec='$libname$release$shared_ext$major'
  10558. dynamic_linker='NetBSD ld.elf_so'
  10559. fi
  10560. shlibpath_var=LD_LIBRARY_PATH
  10561. shlibpath_overrides_runpath=yes
  10562. hardcode_into_libs=yes
  10563. ;;
  10564. newsos6)
  10565. version_type=linux # correct to gnu/linux during the next big refactor
  10566. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10567. shlibpath_var=LD_LIBRARY_PATH
  10568. shlibpath_overrides_runpath=yes
  10569. ;;
  10570. *nto* | *qnx*)
  10571. version_type=qnx
  10572. need_lib_prefix=no
  10573. need_version=no
  10574. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10575. soname_spec='$libname$release$shared_ext$major'
  10576. shlibpath_var=LD_LIBRARY_PATH
  10577. shlibpath_overrides_runpath=no
  10578. hardcode_into_libs=yes
  10579. dynamic_linker='ldqnx.so'
  10580. ;;
  10581. openbsd* | bitrig*)
  10582. version_type=sunos
  10583. sys_lib_dlsearch_path_spec=/usr/lib
  10584. need_lib_prefix=no
  10585. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10586. need_version=no
  10587. else
  10588. need_version=yes
  10589. fi
  10590. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10591. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10592. shlibpath_var=LD_LIBRARY_PATH
  10593. shlibpath_overrides_runpath=yes
  10594. ;;
  10595. os2*)
  10596. libname_spec='$name'
  10597. version_type=windows
  10598. shrext_cmds=.dll
  10599. need_version=no
  10600. need_lib_prefix=no
  10601. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10602. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10603. v=$($ECHO $release$versuffix | tr -d .-);
  10604. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10605. $ECHO $n$v`$shared_ext'
  10606. library_names_spec='${libname}_dll.$libext'
  10607. dynamic_linker='OS/2 ld.exe'
  10608. shlibpath_var=BEGINLIBPATH
  10609. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10610. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10611. postinstall_cmds='base_file=`basename \$file`~
  10612. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10613. dldir=$destdir/`dirname \$dlpath`~
  10614. test -d \$dldir || mkdir -p \$dldir~
  10615. $install_prog $dir/$dlname \$dldir/$dlname~
  10616. chmod a+x \$dldir/$dlname~
  10617. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10618. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10619. fi'
  10620. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10621. dlpath=$dir/\$dldll~
  10622. $RM \$dlpath'
  10623. ;;
  10624. osf3* | osf4* | osf5*)
  10625. version_type=osf
  10626. need_lib_prefix=no
  10627. need_version=no
  10628. soname_spec='$libname$release$shared_ext$major'
  10629. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10630. shlibpath_var=LD_LIBRARY_PATH
  10631. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10632. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10633. ;;
  10634. rdos*)
  10635. dynamic_linker=no
  10636. ;;
  10637. solaris*)
  10638. version_type=linux # correct to gnu/linux during the next big refactor
  10639. need_lib_prefix=no
  10640. need_version=no
  10641. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10642. soname_spec='$libname$release$shared_ext$major'
  10643. shlibpath_var=LD_LIBRARY_PATH
  10644. shlibpath_overrides_runpath=yes
  10645. hardcode_into_libs=yes
  10646. # ldd complains unless libraries are executable
  10647. postinstall_cmds='chmod +x $lib'
  10648. ;;
  10649. sunos4*)
  10650. version_type=sunos
  10651. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10652. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10653. shlibpath_var=LD_LIBRARY_PATH
  10654. shlibpath_overrides_runpath=yes
  10655. if test yes = "$with_gnu_ld"; then
  10656. need_lib_prefix=no
  10657. fi
  10658. need_version=yes
  10659. ;;
  10660. sysv4 | sysv4.3*)
  10661. version_type=linux # correct to gnu/linux during the next big refactor
  10662. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10663. soname_spec='$libname$release$shared_ext$major'
  10664. shlibpath_var=LD_LIBRARY_PATH
  10665. case $host_vendor in
  10666. sni)
  10667. shlibpath_overrides_runpath=no
  10668. need_lib_prefix=no
  10669. runpath_var=LD_RUN_PATH
  10670. ;;
  10671. siemens)
  10672. need_lib_prefix=no
  10673. ;;
  10674. motorola)
  10675. need_lib_prefix=no
  10676. need_version=no
  10677. shlibpath_overrides_runpath=no
  10678. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10679. ;;
  10680. esac
  10681. ;;
  10682. sysv4*MP*)
  10683. if test -d /usr/nec; then
  10684. version_type=linux # correct to gnu/linux during the next big refactor
  10685. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10686. soname_spec='$libname$shared_ext.$major'
  10687. shlibpath_var=LD_LIBRARY_PATH
  10688. fi
  10689. ;;
  10690. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10691. version_type=sco
  10692. need_lib_prefix=no
  10693. need_version=no
  10694. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10695. soname_spec='$libname$release$shared_ext$major'
  10696. shlibpath_var=LD_LIBRARY_PATH
  10697. shlibpath_overrides_runpath=yes
  10698. hardcode_into_libs=yes
  10699. if test yes = "$with_gnu_ld"; then
  10700. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10701. else
  10702. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10703. case $host_os in
  10704. sco3.2v5*)
  10705. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10706. ;;
  10707. esac
  10708. fi
  10709. sys_lib_dlsearch_path_spec='/usr/lib'
  10710. ;;
  10711. tpf*)
  10712. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10713. version_type=linux # correct to gnu/linux during the next big refactor
  10714. need_lib_prefix=no
  10715. need_version=no
  10716. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10717. shlibpath_var=LD_LIBRARY_PATH
  10718. shlibpath_overrides_runpath=no
  10719. hardcode_into_libs=yes
  10720. ;;
  10721. uts4*)
  10722. version_type=linux # correct to gnu/linux during the next big refactor
  10723. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10724. soname_spec='$libname$release$shared_ext$major'
  10725. shlibpath_var=LD_LIBRARY_PATH
  10726. ;;
  10727. *)
  10728. dynamic_linker=no
  10729. ;;
  10730. esac
  10731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10732. $as_echo "$dynamic_linker" >&6; }
  10733. test no = "$dynamic_linker" && can_build_shared=no
  10734. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10735. if test yes = "$GCC"; then
  10736. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10737. fi
  10738. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10739. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10740. fi
  10741. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10742. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10743. fi
  10744. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10745. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10746. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10747. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10748. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10749. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10751. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10752. hardcode_action=
  10753. if test -n "$hardcode_libdir_flag_spec" ||
  10754. test -n "$runpath_var" ||
  10755. test yes = "$hardcode_automatic"; then
  10756. # We can hardcode non-existent directories.
  10757. if test no != "$hardcode_direct" &&
  10758. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10759. # have to relink, otherwise we might link with an installed library
  10760. # when we should be linking with a yet-to-be-installed one
  10761. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10762. test no != "$hardcode_minus_L"; then
  10763. # Linking always hardcodes the temporary library directory.
  10764. hardcode_action=relink
  10765. else
  10766. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10767. hardcode_action=immediate
  10768. fi
  10769. else
  10770. # We cannot hardcode anything, or else we can only hardcode existing
  10771. # directories.
  10772. hardcode_action=unsupported
  10773. fi
  10774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10775. $as_echo "$hardcode_action" >&6; }
  10776. if test relink = "$hardcode_action" ||
  10777. test yes = "$inherit_rpath"; then
  10778. # Fast installation is not supported
  10779. enable_fast_install=no
  10780. elif test yes = "$shlibpath_overrides_runpath" ||
  10781. test no = "$enable_shared"; then
  10782. # Fast installation is not necessary
  10783. enable_fast_install=needless
  10784. fi
  10785. if test yes != "$enable_dlopen"; then
  10786. enable_dlopen=unknown
  10787. enable_dlopen_self=unknown
  10788. enable_dlopen_self_static=unknown
  10789. else
  10790. lt_cv_dlopen=no
  10791. lt_cv_dlopen_libs=
  10792. case $host_os in
  10793. beos*)
  10794. lt_cv_dlopen=load_add_on
  10795. lt_cv_dlopen_libs=
  10796. lt_cv_dlopen_self=yes
  10797. ;;
  10798. mingw* | pw32* | cegcc*)
  10799. lt_cv_dlopen=LoadLibrary
  10800. lt_cv_dlopen_libs=
  10801. ;;
  10802. cygwin*)
  10803. lt_cv_dlopen=dlopen
  10804. lt_cv_dlopen_libs=
  10805. ;;
  10806. darwin*)
  10807. # if libdl is installed we need to link against it
  10808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10809. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10810. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10811. $as_echo_n "(cached) " >&6
  10812. else
  10813. ac_check_lib_save_LIBS=$LIBS
  10814. LIBS="-ldl $LIBS"
  10815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10816. /* end confdefs.h. */
  10817. /* Override any GCC internal prototype to avoid an error.
  10818. Use char because int might match the return type of a GCC
  10819. builtin and then its argument prototype would still apply. */
  10820. #ifdef __cplusplus
  10821. extern "C"
  10822. #endif
  10823. char dlopen ();
  10824. int
  10825. main ()
  10826. {
  10827. return dlopen ();
  10828. ;
  10829. return 0;
  10830. }
  10831. _ACEOF
  10832. if ac_fn_c_try_link "$LINENO"; then :
  10833. ac_cv_lib_dl_dlopen=yes
  10834. else
  10835. ac_cv_lib_dl_dlopen=no
  10836. fi
  10837. rm -f core conftest.err conftest.$ac_objext \
  10838. conftest$ac_exeext conftest.$ac_ext
  10839. LIBS=$ac_check_lib_save_LIBS
  10840. fi
  10841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10842. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10843. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10844. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10845. else
  10846. lt_cv_dlopen=dyld
  10847. lt_cv_dlopen_libs=
  10848. lt_cv_dlopen_self=yes
  10849. fi
  10850. ;;
  10851. tpf*)
  10852. # Don't try to run any link tests for TPF. We know it's impossible
  10853. # because TPF is a cross-compiler, and we know how we open DSOs.
  10854. lt_cv_dlopen=dlopen
  10855. lt_cv_dlopen_libs=
  10856. lt_cv_dlopen_self=no
  10857. ;;
  10858. *)
  10859. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10860. if test "x$ac_cv_func_shl_load" = xyes; then :
  10861. lt_cv_dlopen=shl_load
  10862. else
  10863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10864. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10865. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10866. $as_echo_n "(cached) " >&6
  10867. else
  10868. ac_check_lib_save_LIBS=$LIBS
  10869. LIBS="-ldld $LIBS"
  10870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10871. /* end confdefs.h. */
  10872. /* Override any GCC internal prototype to avoid an error.
  10873. Use char because int might match the return type of a GCC
  10874. builtin and then its argument prototype would still apply. */
  10875. #ifdef __cplusplus
  10876. extern "C"
  10877. #endif
  10878. char shl_load ();
  10879. int
  10880. main ()
  10881. {
  10882. return shl_load ();
  10883. ;
  10884. return 0;
  10885. }
  10886. _ACEOF
  10887. if ac_fn_c_try_link "$LINENO"; then :
  10888. ac_cv_lib_dld_shl_load=yes
  10889. else
  10890. ac_cv_lib_dld_shl_load=no
  10891. fi
  10892. rm -f core conftest.err conftest.$ac_objext \
  10893. conftest$ac_exeext conftest.$ac_ext
  10894. LIBS=$ac_check_lib_save_LIBS
  10895. fi
  10896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10897. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10898. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10899. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10900. else
  10901. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10902. if test "x$ac_cv_func_dlopen" = xyes; then :
  10903. lt_cv_dlopen=dlopen
  10904. else
  10905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10906. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10907. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10908. $as_echo_n "(cached) " >&6
  10909. else
  10910. ac_check_lib_save_LIBS=$LIBS
  10911. LIBS="-ldl $LIBS"
  10912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10913. /* end confdefs.h. */
  10914. /* Override any GCC internal prototype to avoid an error.
  10915. Use char because int might match the return type of a GCC
  10916. builtin and then its argument prototype would still apply. */
  10917. #ifdef __cplusplus
  10918. extern "C"
  10919. #endif
  10920. char dlopen ();
  10921. int
  10922. main ()
  10923. {
  10924. return dlopen ();
  10925. ;
  10926. return 0;
  10927. }
  10928. _ACEOF
  10929. if ac_fn_c_try_link "$LINENO"; then :
  10930. ac_cv_lib_dl_dlopen=yes
  10931. else
  10932. ac_cv_lib_dl_dlopen=no
  10933. fi
  10934. rm -f core conftest.err conftest.$ac_objext \
  10935. conftest$ac_exeext conftest.$ac_ext
  10936. LIBS=$ac_check_lib_save_LIBS
  10937. fi
  10938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10939. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10940. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10941. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10942. else
  10943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10944. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10945. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10946. $as_echo_n "(cached) " >&6
  10947. else
  10948. ac_check_lib_save_LIBS=$LIBS
  10949. LIBS="-lsvld $LIBS"
  10950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10951. /* end confdefs.h. */
  10952. /* Override any GCC internal prototype to avoid an error.
  10953. Use char because int might match the return type of a GCC
  10954. builtin and then its argument prototype would still apply. */
  10955. #ifdef __cplusplus
  10956. extern "C"
  10957. #endif
  10958. char dlopen ();
  10959. int
  10960. main ()
  10961. {
  10962. return dlopen ();
  10963. ;
  10964. return 0;
  10965. }
  10966. _ACEOF
  10967. if ac_fn_c_try_link "$LINENO"; then :
  10968. ac_cv_lib_svld_dlopen=yes
  10969. else
  10970. ac_cv_lib_svld_dlopen=no
  10971. fi
  10972. rm -f core conftest.err conftest.$ac_objext \
  10973. conftest$ac_exeext conftest.$ac_ext
  10974. LIBS=$ac_check_lib_save_LIBS
  10975. fi
  10976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10977. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10978. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10979. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10980. else
  10981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10982. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10983. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10984. $as_echo_n "(cached) " >&6
  10985. else
  10986. ac_check_lib_save_LIBS=$LIBS
  10987. LIBS="-ldld $LIBS"
  10988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10989. /* end confdefs.h. */
  10990. /* Override any GCC internal prototype to avoid an error.
  10991. Use char because int might match the return type of a GCC
  10992. builtin and then its argument prototype would still apply. */
  10993. #ifdef __cplusplus
  10994. extern "C"
  10995. #endif
  10996. char dld_link ();
  10997. int
  10998. main ()
  10999. {
  11000. return dld_link ();
  11001. ;
  11002. return 0;
  11003. }
  11004. _ACEOF
  11005. if ac_fn_c_try_link "$LINENO"; then :
  11006. ac_cv_lib_dld_dld_link=yes
  11007. else
  11008. ac_cv_lib_dld_dld_link=no
  11009. fi
  11010. rm -f core conftest.err conftest.$ac_objext \
  11011. conftest$ac_exeext conftest.$ac_ext
  11012. LIBS=$ac_check_lib_save_LIBS
  11013. fi
  11014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11015. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  11016. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  11017. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  11018. fi
  11019. fi
  11020. fi
  11021. fi
  11022. fi
  11023. fi
  11024. ;;
  11025. esac
  11026. if test no = "$lt_cv_dlopen"; then
  11027. enable_dlopen=no
  11028. else
  11029. enable_dlopen=yes
  11030. fi
  11031. case $lt_cv_dlopen in
  11032. dlopen)
  11033. save_CPPFLAGS=$CPPFLAGS
  11034. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11035. save_LDFLAGS=$LDFLAGS
  11036. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11037. save_LIBS=$LIBS
  11038. LIBS="$lt_cv_dlopen_libs $LIBS"
  11039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11040. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  11041. if ${lt_cv_dlopen_self+:} false; then :
  11042. $as_echo_n "(cached) " >&6
  11043. else
  11044. if test yes = "$cross_compiling"; then :
  11045. lt_cv_dlopen_self=cross
  11046. else
  11047. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11048. lt_status=$lt_dlunknown
  11049. cat > conftest.$ac_ext <<_LT_EOF
  11050. #line $LINENO "configure"
  11051. #include "confdefs.h"
  11052. #if HAVE_DLFCN_H
  11053. #include <dlfcn.h>
  11054. #endif
  11055. #include <stdio.h>
  11056. #ifdef RTLD_GLOBAL
  11057. # define LT_DLGLOBAL RTLD_GLOBAL
  11058. #else
  11059. # ifdef DL_GLOBAL
  11060. # define LT_DLGLOBAL DL_GLOBAL
  11061. # else
  11062. # define LT_DLGLOBAL 0
  11063. # endif
  11064. #endif
  11065. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11066. find out it does not work in some platform. */
  11067. #ifndef LT_DLLAZY_OR_NOW
  11068. # ifdef RTLD_LAZY
  11069. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11070. # else
  11071. # ifdef DL_LAZY
  11072. # define LT_DLLAZY_OR_NOW DL_LAZY
  11073. # else
  11074. # ifdef RTLD_NOW
  11075. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11076. # else
  11077. # ifdef DL_NOW
  11078. # define LT_DLLAZY_OR_NOW DL_NOW
  11079. # else
  11080. # define LT_DLLAZY_OR_NOW 0
  11081. # endif
  11082. # endif
  11083. # endif
  11084. # endif
  11085. #endif
  11086. /* When -fvisibility=hidden is used, assume the code has been annotated
  11087. correspondingly for the symbols needed. */
  11088. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11089. int fnord () __attribute__((visibility("default")));
  11090. #endif
  11091. int fnord () { return 42; }
  11092. int main ()
  11093. {
  11094. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11095. int status = $lt_dlunknown;
  11096. if (self)
  11097. {
  11098. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11099. else
  11100. {
  11101. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11102. else puts (dlerror ());
  11103. }
  11104. /* dlclose (self); */
  11105. }
  11106. else
  11107. puts (dlerror ());
  11108. return status;
  11109. }
  11110. _LT_EOF
  11111. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11112. (eval $ac_link) 2>&5
  11113. ac_status=$?
  11114. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11115. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11116. (./conftest; exit; ) >&5 2>/dev/null
  11117. lt_status=$?
  11118. case x$lt_status in
  11119. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11120. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11121. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11122. esac
  11123. else :
  11124. # compilation failed
  11125. lt_cv_dlopen_self=no
  11126. fi
  11127. fi
  11128. rm -fr conftest*
  11129. fi
  11130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11131. $as_echo "$lt_cv_dlopen_self" >&6; }
  11132. if test yes = "$lt_cv_dlopen_self"; then
  11133. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11135. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  11136. if ${lt_cv_dlopen_self_static+:} false; then :
  11137. $as_echo_n "(cached) " >&6
  11138. else
  11139. if test yes = "$cross_compiling"; then :
  11140. lt_cv_dlopen_self_static=cross
  11141. else
  11142. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11143. lt_status=$lt_dlunknown
  11144. cat > conftest.$ac_ext <<_LT_EOF
  11145. #line $LINENO "configure"
  11146. #include "confdefs.h"
  11147. #if HAVE_DLFCN_H
  11148. #include <dlfcn.h>
  11149. #endif
  11150. #include <stdio.h>
  11151. #ifdef RTLD_GLOBAL
  11152. # define LT_DLGLOBAL RTLD_GLOBAL
  11153. #else
  11154. # ifdef DL_GLOBAL
  11155. # define LT_DLGLOBAL DL_GLOBAL
  11156. # else
  11157. # define LT_DLGLOBAL 0
  11158. # endif
  11159. #endif
  11160. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11161. find out it does not work in some platform. */
  11162. #ifndef LT_DLLAZY_OR_NOW
  11163. # ifdef RTLD_LAZY
  11164. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11165. # else
  11166. # ifdef DL_LAZY
  11167. # define LT_DLLAZY_OR_NOW DL_LAZY
  11168. # else
  11169. # ifdef RTLD_NOW
  11170. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11171. # else
  11172. # ifdef DL_NOW
  11173. # define LT_DLLAZY_OR_NOW DL_NOW
  11174. # else
  11175. # define LT_DLLAZY_OR_NOW 0
  11176. # endif
  11177. # endif
  11178. # endif
  11179. # endif
  11180. #endif
  11181. /* When -fvisibility=hidden is used, assume the code has been annotated
  11182. correspondingly for the symbols needed. */
  11183. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11184. int fnord () __attribute__((visibility("default")));
  11185. #endif
  11186. int fnord () { return 42; }
  11187. int main ()
  11188. {
  11189. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11190. int status = $lt_dlunknown;
  11191. if (self)
  11192. {
  11193. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11194. else
  11195. {
  11196. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11197. else puts (dlerror ());
  11198. }
  11199. /* dlclose (self); */
  11200. }
  11201. else
  11202. puts (dlerror ());
  11203. return status;
  11204. }
  11205. _LT_EOF
  11206. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11207. (eval $ac_link) 2>&5
  11208. ac_status=$?
  11209. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11210. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11211. (./conftest; exit; ) >&5 2>/dev/null
  11212. lt_status=$?
  11213. case x$lt_status in
  11214. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11215. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11216. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11217. esac
  11218. else :
  11219. # compilation failed
  11220. lt_cv_dlopen_self_static=no
  11221. fi
  11222. fi
  11223. rm -fr conftest*
  11224. fi
  11225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11226. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11227. fi
  11228. CPPFLAGS=$save_CPPFLAGS
  11229. LDFLAGS=$save_LDFLAGS
  11230. LIBS=$save_LIBS
  11231. ;;
  11232. esac
  11233. case $lt_cv_dlopen_self in
  11234. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11235. *) enable_dlopen_self=unknown ;;
  11236. esac
  11237. case $lt_cv_dlopen_self_static in
  11238. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11239. *) enable_dlopen_self_static=unknown ;;
  11240. esac
  11241. fi
  11242. striplib=
  11243. old_striplib=
  11244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11245. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11246. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11247. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11248. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11250. $as_echo "yes" >&6; }
  11251. else
  11252. # FIXME - insert some real tests, host_os isn't really good enough
  11253. case $host_os in
  11254. darwin*)
  11255. if test -n "$STRIP"; then
  11256. striplib="$STRIP -x"
  11257. old_striplib="$STRIP -S"
  11258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11259. $as_echo "yes" >&6; }
  11260. else
  11261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11262. $as_echo "no" >&6; }
  11263. fi
  11264. ;;
  11265. *)
  11266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11267. $as_echo "no" >&6; }
  11268. ;;
  11269. esac
  11270. fi
  11271. # Report what library types will actually be built
  11272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11273. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11275. $as_echo "$can_build_shared" >&6; }
  11276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11277. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11278. test no = "$can_build_shared" && enable_shared=no
  11279. # On AIX, shared libraries and static libraries use the same namespace, and
  11280. # are all built from PIC.
  11281. case $host_os in
  11282. aix3*)
  11283. test yes = "$enable_shared" && enable_static=no
  11284. if test -n "$RANLIB"; then
  11285. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11286. postinstall_cmds='$RANLIB $lib'
  11287. fi
  11288. ;;
  11289. aix[4-9]*)
  11290. if test ia64 != "$host_cpu"; then
  11291. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11292. yes,aix,yes) ;; # shared object as lib.so file only
  11293. yes,svr4,*) ;; # shared object as lib.so archive member only
  11294. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11295. esac
  11296. fi
  11297. ;;
  11298. esac
  11299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11300. $as_echo "$enable_shared" >&6; }
  11301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11302. $as_echo_n "checking whether to build static libraries... " >&6; }
  11303. # Make sure either enable_shared or enable_static is yes.
  11304. test yes = "$enable_shared" || enable_static=yes
  11305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11306. $as_echo "$enable_static" >&6; }
  11307. fi
  11308. ac_ext=c
  11309. ac_cpp='$CPP $CPPFLAGS'
  11310. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11311. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11312. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11313. CC=$lt_save_CC
  11314. ac_config_commands="$ac_config_commands libtool"
  11315. # Only expand once:
  11316. ac_ext=c
  11317. ac_cpp='$CPP $CPPFLAGS'
  11318. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11319. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11320. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11321. if test -n "$ac_tool_prefix"; then
  11322. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11323. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11325. $as_echo_n "checking for $ac_word... " >&6; }
  11326. if ${ac_cv_prog_CC+:} false; then :
  11327. $as_echo_n "(cached) " >&6
  11328. else
  11329. if test -n "$CC"; then
  11330. ac_cv_prog_CC="$CC" # Let the user override the test.
  11331. else
  11332. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11333. for as_dir in $PATH
  11334. do
  11335. IFS=$as_save_IFS
  11336. test -z "$as_dir" && as_dir=.
  11337. for ac_exec_ext in '' $ac_executable_extensions; do
  11338. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11339. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11340. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11341. break 2
  11342. fi
  11343. done
  11344. done
  11345. IFS=$as_save_IFS
  11346. fi
  11347. fi
  11348. CC=$ac_cv_prog_CC
  11349. if test -n "$CC"; then
  11350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11351. $as_echo "$CC" >&6; }
  11352. else
  11353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11354. $as_echo "no" >&6; }
  11355. fi
  11356. fi
  11357. if test -z "$ac_cv_prog_CC"; then
  11358. ac_ct_CC=$CC
  11359. # Extract the first word of "gcc", so it can be a program name with args.
  11360. set dummy gcc; ac_word=$2
  11361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11362. $as_echo_n "checking for $ac_word... " >&6; }
  11363. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  11364. $as_echo_n "(cached) " >&6
  11365. else
  11366. if test -n "$ac_ct_CC"; then
  11367. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11368. else
  11369. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11370. for as_dir in $PATH
  11371. do
  11372. IFS=$as_save_IFS
  11373. test -z "$as_dir" && as_dir=.
  11374. for ac_exec_ext in '' $ac_executable_extensions; do
  11375. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11376. ac_cv_prog_ac_ct_CC="gcc"
  11377. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11378. break 2
  11379. fi
  11380. done
  11381. done
  11382. IFS=$as_save_IFS
  11383. fi
  11384. fi
  11385. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11386. if test -n "$ac_ct_CC"; then
  11387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11388. $as_echo "$ac_ct_CC" >&6; }
  11389. else
  11390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11391. $as_echo "no" >&6; }
  11392. fi
  11393. if test "x$ac_ct_CC" = x; then
  11394. CC=""
  11395. else
  11396. case $cross_compiling:$ac_tool_warned in
  11397. yes:)
  11398. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11399. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11400. ac_tool_warned=yes ;;
  11401. esac
  11402. CC=$ac_ct_CC
  11403. fi
  11404. else
  11405. CC="$ac_cv_prog_CC"
  11406. fi
  11407. if test -z "$CC"; then
  11408. if test -n "$ac_tool_prefix"; then
  11409. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11410. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11412. $as_echo_n "checking for $ac_word... " >&6; }
  11413. if ${ac_cv_prog_CC+:} false; then :
  11414. $as_echo_n "(cached) " >&6
  11415. else
  11416. if test -n "$CC"; then
  11417. ac_cv_prog_CC="$CC" # Let the user override the test.
  11418. else
  11419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11420. for as_dir in $PATH
  11421. do
  11422. IFS=$as_save_IFS
  11423. test -z "$as_dir" && as_dir=.
  11424. for ac_exec_ext in '' $ac_executable_extensions; do
  11425. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11426. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11427. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11428. break 2
  11429. fi
  11430. done
  11431. done
  11432. IFS=$as_save_IFS
  11433. fi
  11434. fi
  11435. CC=$ac_cv_prog_CC
  11436. if test -n "$CC"; then
  11437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11438. $as_echo "$CC" >&6; }
  11439. else
  11440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11441. $as_echo "no" >&6; }
  11442. fi
  11443. fi
  11444. fi
  11445. if test -z "$CC"; then
  11446. # Extract the first word of "cc", so it can be a program name with args.
  11447. set dummy cc; ac_word=$2
  11448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11449. $as_echo_n "checking for $ac_word... " >&6; }
  11450. if ${ac_cv_prog_CC+:} false; then :
  11451. $as_echo_n "(cached) " >&6
  11452. else
  11453. if test -n "$CC"; then
  11454. ac_cv_prog_CC="$CC" # Let the user override the test.
  11455. else
  11456. ac_prog_rejected=no
  11457. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11458. for as_dir in $PATH
  11459. do
  11460. IFS=$as_save_IFS
  11461. test -z "$as_dir" && as_dir=.
  11462. for ac_exec_ext in '' $ac_executable_extensions; do
  11463. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11464. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11465. ac_prog_rejected=yes
  11466. continue
  11467. fi
  11468. ac_cv_prog_CC="cc"
  11469. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11470. break 2
  11471. fi
  11472. done
  11473. done
  11474. IFS=$as_save_IFS
  11475. if test $ac_prog_rejected = yes; then
  11476. # We found a bogon in the path, so make sure we never use it.
  11477. set dummy $ac_cv_prog_CC
  11478. shift
  11479. if test $# != 0; then
  11480. # We chose a different compiler from the bogus one.
  11481. # However, it has the same basename, so the bogon will be chosen
  11482. # first if we set CC to just the basename; use the full file name.
  11483. shift
  11484. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  11485. fi
  11486. fi
  11487. fi
  11488. fi
  11489. CC=$ac_cv_prog_CC
  11490. if test -n "$CC"; then
  11491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11492. $as_echo "$CC" >&6; }
  11493. else
  11494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11495. $as_echo "no" >&6; }
  11496. fi
  11497. fi
  11498. if test -z "$CC"; then
  11499. if test -n "$ac_tool_prefix"; then
  11500. for ac_prog in cl.exe
  11501. do
  11502. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11503. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11505. $as_echo_n "checking for $ac_word... " >&6; }
  11506. if ${ac_cv_prog_CC+:} false; then :
  11507. $as_echo_n "(cached) " >&6
  11508. else
  11509. if test -n "$CC"; then
  11510. ac_cv_prog_CC="$CC" # Let the user override the test.
  11511. else
  11512. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11513. for as_dir in $PATH
  11514. do
  11515. IFS=$as_save_IFS
  11516. test -z "$as_dir" && as_dir=.
  11517. for ac_exec_ext in '' $ac_executable_extensions; do
  11518. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11519. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11520. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11521. break 2
  11522. fi
  11523. done
  11524. done
  11525. IFS=$as_save_IFS
  11526. fi
  11527. fi
  11528. CC=$ac_cv_prog_CC
  11529. if test -n "$CC"; then
  11530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11531. $as_echo "$CC" >&6; }
  11532. else
  11533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11534. $as_echo "no" >&6; }
  11535. fi
  11536. test -n "$CC" && break
  11537. done
  11538. fi
  11539. if test -z "$CC"; then
  11540. ac_ct_CC=$CC
  11541. for ac_prog in cl.exe
  11542. do
  11543. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11544. set dummy $ac_prog; ac_word=$2
  11545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11546. $as_echo_n "checking for $ac_word... " >&6; }
  11547. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  11548. $as_echo_n "(cached) " >&6
  11549. else
  11550. if test -n "$ac_ct_CC"; then
  11551. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11552. else
  11553. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11554. for as_dir in $PATH
  11555. do
  11556. IFS=$as_save_IFS
  11557. test -z "$as_dir" && as_dir=.
  11558. for ac_exec_ext in '' $ac_executable_extensions; do
  11559. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11560. ac_cv_prog_ac_ct_CC="$ac_prog"
  11561. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11562. break 2
  11563. fi
  11564. done
  11565. done
  11566. IFS=$as_save_IFS
  11567. fi
  11568. fi
  11569. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11570. if test -n "$ac_ct_CC"; then
  11571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11572. $as_echo "$ac_ct_CC" >&6; }
  11573. else
  11574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11575. $as_echo "no" >&6; }
  11576. fi
  11577. test -n "$ac_ct_CC" && break
  11578. done
  11579. if test "x$ac_ct_CC" = x; then
  11580. CC=""
  11581. else
  11582. case $cross_compiling:$ac_tool_warned in
  11583. yes:)
  11584. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11585. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11586. ac_tool_warned=yes ;;
  11587. esac
  11588. CC=$ac_ct_CC
  11589. fi
  11590. fi
  11591. fi
  11592. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11593. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11594. as_fn_error $? "no acceptable C compiler found in \$PATH
  11595. See \`config.log' for more details" "$LINENO" 5; }
  11596. # Provide some information about the compiler.
  11597. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11598. set X $ac_compile
  11599. ac_compiler=$2
  11600. for ac_option in --version -v -V -qversion; do
  11601. { { ac_try="$ac_compiler $ac_option >&5"
  11602. case "(($ac_try" in
  11603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11604. *) ac_try_echo=$ac_try;;
  11605. esac
  11606. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11607. $as_echo "$ac_try_echo"; } >&5
  11608. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11609. ac_status=$?
  11610. if test -s conftest.err; then
  11611. sed '10a\
  11612. ... rest of stderr output deleted ...
  11613. 10q' conftest.err >conftest.er1
  11614. cat conftest.er1 >&5
  11615. fi
  11616. rm -f conftest.er1 conftest.err
  11617. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11618. test $ac_status = 0; }
  11619. done
  11620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  11621. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  11622. if ${ac_cv_c_compiler_gnu+:} false; then :
  11623. $as_echo_n "(cached) " >&6
  11624. else
  11625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11626. /* end confdefs.h. */
  11627. int
  11628. main ()
  11629. {
  11630. #ifndef __GNUC__
  11631. choke me
  11632. #endif
  11633. ;
  11634. return 0;
  11635. }
  11636. _ACEOF
  11637. if ac_fn_c_try_compile "$LINENO"; then :
  11638. ac_compiler_gnu=yes
  11639. else
  11640. ac_compiler_gnu=no
  11641. fi
  11642. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11643. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11644. fi
  11645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11646. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  11647. if test $ac_compiler_gnu = yes; then
  11648. GCC=yes
  11649. else
  11650. GCC=
  11651. fi
  11652. ac_test_CFLAGS=${CFLAGS+set}
  11653. ac_save_CFLAGS=$CFLAGS
  11654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11655. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  11656. if ${ac_cv_prog_cc_g+:} false; then :
  11657. $as_echo_n "(cached) " >&6
  11658. else
  11659. ac_save_c_werror_flag=$ac_c_werror_flag
  11660. ac_c_werror_flag=yes
  11661. ac_cv_prog_cc_g=no
  11662. CFLAGS="-g"
  11663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11664. /* end confdefs.h. */
  11665. int
  11666. main ()
  11667. {
  11668. ;
  11669. return 0;
  11670. }
  11671. _ACEOF
  11672. if ac_fn_c_try_compile "$LINENO"; then :
  11673. ac_cv_prog_cc_g=yes
  11674. else
  11675. CFLAGS=""
  11676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11677. /* end confdefs.h. */
  11678. int
  11679. main ()
  11680. {
  11681. ;
  11682. return 0;
  11683. }
  11684. _ACEOF
  11685. if ac_fn_c_try_compile "$LINENO"; then :
  11686. else
  11687. ac_c_werror_flag=$ac_save_c_werror_flag
  11688. CFLAGS="-g"
  11689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11690. /* end confdefs.h. */
  11691. int
  11692. main ()
  11693. {
  11694. ;
  11695. return 0;
  11696. }
  11697. _ACEOF
  11698. if ac_fn_c_try_compile "$LINENO"; then :
  11699. ac_cv_prog_cc_g=yes
  11700. fi
  11701. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11702. fi
  11703. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11704. fi
  11705. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11706. ac_c_werror_flag=$ac_save_c_werror_flag
  11707. fi
  11708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11709. $as_echo "$ac_cv_prog_cc_g" >&6; }
  11710. if test "$ac_test_CFLAGS" = set; then
  11711. CFLAGS=$ac_save_CFLAGS
  11712. elif test $ac_cv_prog_cc_g = yes; then
  11713. if test "$GCC" = yes; then
  11714. CFLAGS="-g -O2"
  11715. else
  11716. CFLAGS="-g"
  11717. fi
  11718. else
  11719. if test "$GCC" = yes; then
  11720. CFLAGS="-O2"
  11721. else
  11722. CFLAGS=
  11723. fi
  11724. fi
  11725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  11726. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  11727. if ${ac_cv_prog_cc_c89+:} false; then :
  11728. $as_echo_n "(cached) " >&6
  11729. else
  11730. ac_cv_prog_cc_c89=no
  11731. ac_save_CC=$CC
  11732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11733. /* end confdefs.h. */
  11734. #include <stdarg.h>
  11735. #include <stdio.h>
  11736. struct stat;
  11737. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  11738. struct buf { int x; };
  11739. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  11740. static char *e (p, i)
  11741. char **p;
  11742. int i;
  11743. {
  11744. return p[i];
  11745. }
  11746. static char *f (char * (*g) (char **, int), char **p, ...)
  11747. {
  11748. char *s;
  11749. va_list v;
  11750. va_start (v,p);
  11751. s = g (p, va_arg (v,int));
  11752. va_end (v);
  11753. return s;
  11754. }
  11755. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  11756. function prototypes and stuff, but not '\xHH' hex character constants.
  11757. These don't provoke an error unfortunately, instead are silently treated
  11758. as 'x'. The following induces an error, until -std is added to get
  11759. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  11760. array size at least. It's necessary to write '\x00'==0 to get something
  11761. that's true only with -std. */
  11762. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  11763. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  11764. inside strings and character constants. */
  11765. #define FOO(x) 'x'
  11766. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  11767. int test (int i, double x);
  11768. struct s1 {int (*f) (int a);};
  11769. struct s2 {int (*f) (double a);};
  11770. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  11771. int argc;
  11772. char **argv;
  11773. int
  11774. main ()
  11775. {
  11776. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  11777. ;
  11778. return 0;
  11779. }
  11780. _ACEOF
  11781. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  11782. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11783. do
  11784. CC="$ac_save_CC $ac_arg"
  11785. if ac_fn_c_try_compile "$LINENO"; then :
  11786. ac_cv_prog_cc_c89=$ac_arg
  11787. fi
  11788. rm -f core conftest.err conftest.$ac_objext
  11789. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11790. done
  11791. rm -f conftest.$ac_ext
  11792. CC=$ac_save_CC
  11793. fi
  11794. # AC_CACHE_VAL
  11795. case "x$ac_cv_prog_cc_c89" in
  11796. x)
  11797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11798. $as_echo "none needed" >&6; } ;;
  11799. xno)
  11800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11801. $as_echo "unsupported" >&6; } ;;
  11802. *)
  11803. CC="$CC $ac_cv_prog_cc_c89"
  11804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11805. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  11806. esac
  11807. if test "x$ac_cv_prog_cc_c89" != xno; then :
  11808. fi
  11809. ac_ext=c
  11810. ac_cpp='$CPP $CPPFLAGS'
  11811. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11812. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11813. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11814. ac_ext=c
  11815. ac_cpp='$CPP $CPPFLAGS'
  11816. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11817. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11818. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  11820. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  11821. if ${am_cv_prog_cc_c_o+:} false; then :
  11822. $as_echo_n "(cached) " >&6
  11823. else
  11824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11825. /* end confdefs.h. */
  11826. int
  11827. main ()
  11828. {
  11829. ;
  11830. return 0;
  11831. }
  11832. _ACEOF
  11833. # Make sure it works both with $CC and with simple cc.
  11834. # Following AC_PROG_CC_C_O, we do the test twice because some
  11835. # compilers refuse to overwrite an existing .o file with -o,
  11836. # though they will create one.
  11837. am_cv_prog_cc_c_o=yes
  11838. for am_i in 1 2; do
  11839. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  11840. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  11841. ac_status=$?
  11842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11843. (exit $ac_status); } \
  11844. && test -f conftest2.$ac_objext; then
  11845. : OK
  11846. else
  11847. am_cv_prog_cc_c_o=no
  11848. break
  11849. fi
  11850. done
  11851. rm -f core conftest*
  11852. unset am_i
  11853. fi
  11854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  11855. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  11856. if test "$am_cv_prog_cc_c_o" != yes; then
  11857. # Losing compiler, so override with the script.
  11858. # FIXME: It is wrong to rewrite CC.
  11859. # But if we don't then we get into trouble of one sort or another.
  11860. # A longer-term fix would be to have automake use am__CC in this case,
  11861. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  11862. CC="$am_aux_dir/compile $CC"
  11863. fi
  11864. ac_ext=c
  11865. ac_cpp='$CPP $CPPFLAGS'
  11866. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11867. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11868. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11869. depcc="$CC" am_compiler_list=
  11870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  11871. $as_echo_n "checking dependency style of $depcc... " >&6; }
  11872. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  11873. $as_echo_n "(cached) " >&6
  11874. else
  11875. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  11876. # We make a subdir and do the tests there. Otherwise we can end up
  11877. # making bogus files that we don't know about and never remove. For
  11878. # instance it was reported that on HP-UX the gcc test will end up
  11879. # making a dummy file named 'D' -- because '-MD' means "put the output
  11880. # in D".
  11881. rm -rf conftest.dir
  11882. mkdir conftest.dir
  11883. # Copy depcomp to subdir because otherwise we won't find it if we're
  11884. # using a relative directory.
  11885. cp "$am_depcomp" conftest.dir
  11886. cd conftest.dir
  11887. # We will build objects and dependencies in a subdirectory because
  11888. # it helps to detect inapplicable dependency modes. For instance
  11889. # both Tru64's cc and ICC support -MD to output dependencies as a
  11890. # side effect of compilation, but ICC will put the dependencies in
  11891. # the current directory while Tru64 will put them in the object
  11892. # directory.
  11893. mkdir sub
  11894. am_cv_CC_dependencies_compiler_type=none
  11895. if test "$am_compiler_list" = ""; then
  11896. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  11897. fi
  11898. am__universal=false
  11899. case " $depcc " in #(
  11900. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  11901. esac
  11902. for depmode in $am_compiler_list; do
  11903. # Setup a source with many dependencies, because some compilers
  11904. # like to wrap large dependency lists on column 80 (with \), and
  11905. # we should not choose a depcomp mode which is confused by this.
  11906. #
  11907. # We need to recreate these files for each test, as the compiler may
  11908. # overwrite some of them when testing with obscure command lines.
  11909. # This happens at least with the AIX C compiler.
  11910. : > sub/conftest.c
  11911. for i in 1 2 3 4 5 6; do
  11912. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  11913. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  11914. # Solaris 10 /bin/sh.
  11915. echo '/* dummy */' > sub/conftst$i.h
  11916. done
  11917. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  11918. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  11919. # mode. It turns out that the SunPro C++ compiler does not properly
  11920. # handle '-M -o', and we need to detect this. Also, some Intel
  11921. # versions had trouble with output in subdirs.
  11922. am__obj=sub/conftest.${OBJEXT-o}
  11923. am__minus_obj="-o $am__obj"
  11924. case $depmode in
  11925. gcc)
  11926. # This depmode causes a compiler race in universal mode.
  11927. test "$am__universal" = false || continue
  11928. ;;
  11929. nosideeffect)
  11930. # After this tag, mechanisms are not by side-effect, so they'll
  11931. # only be used when explicitly requested.
  11932. if test "x$enable_dependency_tracking" = xyes; then
  11933. continue
  11934. else
  11935. break
  11936. fi
  11937. ;;
  11938. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  11939. # This compiler won't grok '-c -o', but also, the minuso test has
  11940. # not run yet. These depmodes are late enough in the game, and
  11941. # so weak that their functioning should not be impacted.
  11942. am__obj=conftest.${OBJEXT-o}
  11943. am__minus_obj=
  11944. ;;
  11945. none) break ;;
  11946. esac
  11947. if depmode=$depmode \
  11948. source=sub/conftest.c object=$am__obj \
  11949. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  11950. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  11951. >/dev/null 2>conftest.err &&
  11952. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  11953. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  11954. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  11955. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  11956. # icc doesn't choke on unknown options, it will just issue warnings
  11957. # or remarks (even with -Werror). So we grep stderr for any message
  11958. # that says an option was ignored or not supported.
  11959. # When given -MP, icc 7.0 and 7.1 complain thusly:
  11960. # icc: Command line warning: ignoring option '-M'; no argument required
  11961. # The diagnosis changed in icc 8.0:
  11962. # icc: Command line remark: option '-MP' not supported
  11963. if (grep 'ignoring option' conftest.err ||
  11964. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  11965. am_cv_CC_dependencies_compiler_type=$depmode
  11966. break
  11967. fi
  11968. fi
  11969. done
  11970. cd ..
  11971. rm -rf conftest.dir
  11972. else
  11973. am_cv_CC_dependencies_compiler_type=none
  11974. fi
  11975. fi
  11976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  11977. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  11978. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  11979. if
  11980. test "x$enable_dependency_tracking" != xno \
  11981. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  11982. am__fastdepCC_TRUE=
  11983. am__fastdepCC_FALSE='#'
  11984. else
  11985. am__fastdepCC_TRUE='#'
  11986. am__fastdepCC_FALSE=
  11987. fi
  11988. case $ac_cv_prog_cc_stdc in #(
  11989. no) :
  11990. ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  11991. *) :
  11992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  11993. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  11994. if ${ac_cv_prog_cc_c99+:} false; then :
  11995. $as_echo_n "(cached) " >&6
  11996. else
  11997. ac_cv_prog_cc_c99=no
  11998. ac_save_CC=$CC
  11999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12000. /* end confdefs.h. */
  12001. #include <stdarg.h>
  12002. #include <stdbool.h>
  12003. #include <stdlib.h>
  12004. #include <wchar.h>
  12005. #include <stdio.h>
  12006. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  12007. #define debug(...) fprintf (stderr, __VA_ARGS__)
  12008. #define showlist(...) puts (#__VA_ARGS__)
  12009. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  12010. static void
  12011. test_varargs_macros (void)
  12012. {
  12013. int x = 1234;
  12014. int y = 5678;
  12015. debug ("Flag");
  12016. debug ("X = %d\n", x);
  12017. showlist (The first, second, and third items.);
  12018. report (x>y, "x is %d but y is %d", x, y);
  12019. }
  12020. // Check long long types.
  12021. #define BIG64 18446744073709551615ull
  12022. #define BIG32 4294967295ul
  12023. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  12024. #if !BIG_OK
  12025. your preprocessor is broken;
  12026. #endif
  12027. #if BIG_OK
  12028. #else
  12029. your preprocessor is broken;
  12030. #endif
  12031. static long long int bignum = -9223372036854775807LL;
  12032. static unsigned long long int ubignum = BIG64;
  12033. struct incomplete_array
  12034. {
  12035. int datasize;
  12036. double data[];
  12037. };
  12038. struct named_init {
  12039. int number;
  12040. const wchar_t *name;
  12041. double average;
  12042. };
  12043. typedef const char *ccp;
  12044. static inline int
  12045. test_restrict (ccp restrict text)
  12046. {
  12047. // See if C++-style comments work.
  12048. // Iterate through items via the restricted pointer.
  12049. // Also check for declarations in for loops.
  12050. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  12051. continue;
  12052. return 0;
  12053. }
  12054. // Check varargs and va_copy.
  12055. static void
  12056. test_varargs (const char *format, ...)
  12057. {
  12058. va_list args;
  12059. va_start (args, format);
  12060. va_list args_copy;
  12061. va_copy (args_copy, args);
  12062. const char *str;
  12063. int number;
  12064. float fnumber;
  12065. while (*format)
  12066. {
  12067. switch (*format++)
  12068. {
  12069. case 's': // string
  12070. str = va_arg (args_copy, const char *);
  12071. break;
  12072. case 'd': // int
  12073. number = va_arg (args_copy, int);
  12074. break;
  12075. case 'f': // float
  12076. fnumber = va_arg (args_copy, double);
  12077. break;
  12078. default:
  12079. break;
  12080. }
  12081. }
  12082. va_end (args_copy);
  12083. va_end (args);
  12084. }
  12085. int
  12086. main ()
  12087. {
  12088. // Check bool.
  12089. _Bool success = false;
  12090. // Check restrict.
  12091. if (test_restrict ("String literal") == 0)
  12092. success = true;
  12093. char *restrict newvar = "Another string";
  12094. // Check varargs.
  12095. test_varargs ("s, d' f .", "string", 65, 34.234);
  12096. test_varargs_macros ();
  12097. // Check flexible array members.
  12098. struct incomplete_array *ia =
  12099. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  12100. ia->datasize = 10;
  12101. for (int i = 0; i < ia->datasize; ++i)
  12102. ia->data[i] = i * 1.234;
  12103. // Check named initializers.
  12104. struct named_init ni = {
  12105. .number = 34,
  12106. .name = L"Test wide string",
  12107. .average = 543.34343,
  12108. };
  12109. ni.number = 58;
  12110. int dynamic_array[ni.number];
  12111. dynamic_array[ni.number - 1] = 543;
  12112. // work around unused variable warnings
  12113. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  12114. || dynamic_array[ni.number - 1] != 543);
  12115. ;
  12116. return 0;
  12117. }
  12118. _ACEOF
  12119. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  12120. do
  12121. CC="$ac_save_CC $ac_arg"
  12122. if ac_fn_c_try_compile "$LINENO"; then :
  12123. ac_cv_prog_cc_c99=$ac_arg
  12124. fi
  12125. rm -f core conftest.err conftest.$ac_objext
  12126. test "x$ac_cv_prog_cc_c99" != "xno" && break
  12127. done
  12128. rm -f conftest.$ac_ext
  12129. CC=$ac_save_CC
  12130. fi
  12131. # AC_CACHE_VAL
  12132. case "x$ac_cv_prog_cc_c99" in
  12133. x)
  12134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12135. $as_echo "none needed" >&6; } ;;
  12136. xno)
  12137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12138. $as_echo "unsupported" >&6; } ;;
  12139. *)
  12140. CC="$CC $ac_cv_prog_cc_c99"
  12141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  12142. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  12143. esac
  12144. if test "x$ac_cv_prog_cc_c99" != xno; then :
  12145. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  12146. else
  12147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  12148. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  12149. if ${ac_cv_prog_cc_c89+:} false; then :
  12150. $as_echo_n "(cached) " >&6
  12151. else
  12152. ac_cv_prog_cc_c89=no
  12153. ac_save_CC=$CC
  12154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12155. /* end confdefs.h. */
  12156. #include <stdarg.h>
  12157. #include <stdio.h>
  12158. struct stat;
  12159. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  12160. struct buf { int x; };
  12161. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  12162. static char *e (p, i)
  12163. char **p;
  12164. int i;
  12165. {
  12166. return p[i];
  12167. }
  12168. static char *f (char * (*g) (char **, int), char **p, ...)
  12169. {
  12170. char *s;
  12171. va_list v;
  12172. va_start (v,p);
  12173. s = g (p, va_arg (v,int));
  12174. va_end (v);
  12175. return s;
  12176. }
  12177. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  12178. function prototypes and stuff, but not '\xHH' hex character constants.
  12179. These don't provoke an error unfortunately, instead are silently treated
  12180. as 'x'. The following induces an error, until -std is added to get
  12181. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  12182. array size at least. It's necessary to write '\x00'==0 to get something
  12183. that's true only with -std. */
  12184. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  12185. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  12186. inside strings and character constants. */
  12187. #define FOO(x) 'x'
  12188. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  12189. int test (int i, double x);
  12190. struct s1 {int (*f) (int a);};
  12191. struct s2 {int (*f) (double a);};
  12192. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  12193. int argc;
  12194. char **argv;
  12195. int
  12196. main ()
  12197. {
  12198. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  12199. ;
  12200. return 0;
  12201. }
  12202. _ACEOF
  12203. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  12204. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  12205. do
  12206. CC="$ac_save_CC $ac_arg"
  12207. if ac_fn_c_try_compile "$LINENO"; then :
  12208. ac_cv_prog_cc_c89=$ac_arg
  12209. fi
  12210. rm -f core conftest.err conftest.$ac_objext
  12211. test "x$ac_cv_prog_cc_c89" != "xno" && break
  12212. done
  12213. rm -f conftest.$ac_ext
  12214. CC=$ac_save_CC
  12215. fi
  12216. # AC_CACHE_VAL
  12217. case "x$ac_cv_prog_cc_c89" in
  12218. x)
  12219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12220. $as_echo "none needed" >&6; } ;;
  12221. xno)
  12222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12223. $as_echo "unsupported" >&6; } ;;
  12224. *)
  12225. CC="$CC $ac_cv_prog_cc_c89"
  12226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  12227. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  12228. esac
  12229. if test "x$ac_cv_prog_cc_c89" != xno; then :
  12230. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  12231. else
  12232. ac_cv_prog_cc_stdc=no
  12233. fi
  12234. fi
  12235. ;;
  12236. esac
  12237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
  12238. $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  12239. if ${ac_cv_prog_cc_stdc+:} false; then :
  12240. $as_echo_n "(cached) " >&6
  12241. fi
  12242. case $ac_cv_prog_cc_stdc in #(
  12243. no) :
  12244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12245. $as_echo "unsupported" >&6; } ;; #(
  12246. '') :
  12247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12248. $as_echo "none needed" >&6; } ;; #(
  12249. *) :
  12250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
  12251. $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  12252. esac
  12253. ac_ext=cpp
  12254. ac_cpp='$CXXCPP $CPPFLAGS'
  12255. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12256. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12257. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12258. if test -z "$CXX"; then
  12259. if test -n "$CCC"; then
  12260. CXX=$CCC
  12261. else
  12262. if test -n "$ac_tool_prefix"; then
  12263. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  12264. do
  12265. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12266. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12268. $as_echo_n "checking for $ac_word... " >&6; }
  12269. if ${ac_cv_prog_CXX+:} false; then :
  12270. $as_echo_n "(cached) " >&6
  12271. else
  12272. if test -n "$CXX"; then
  12273. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12274. else
  12275. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12276. for as_dir in $PATH
  12277. do
  12278. IFS=$as_save_IFS
  12279. test -z "$as_dir" && as_dir=.
  12280. for ac_exec_ext in '' $ac_executable_extensions; do
  12281. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12282. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12283. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12284. break 2
  12285. fi
  12286. done
  12287. done
  12288. IFS=$as_save_IFS
  12289. fi
  12290. fi
  12291. CXX=$ac_cv_prog_CXX
  12292. if test -n "$CXX"; then
  12293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12294. $as_echo "$CXX" >&6; }
  12295. else
  12296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12297. $as_echo "no" >&6; }
  12298. fi
  12299. test -n "$CXX" && break
  12300. done
  12301. fi
  12302. if test -z "$CXX"; then
  12303. ac_ct_CXX=$CXX
  12304. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  12305. do
  12306. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12307. set dummy $ac_prog; ac_word=$2
  12308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12309. $as_echo_n "checking for $ac_word... " >&6; }
  12310. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  12311. $as_echo_n "(cached) " >&6
  12312. else
  12313. if test -n "$ac_ct_CXX"; then
  12314. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12315. else
  12316. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12317. for as_dir in $PATH
  12318. do
  12319. IFS=$as_save_IFS
  12320. test -z "$as_dir" && as_dir=.
  12321. for ac_exec_ext in '' $ac_executable_extensions; do
  12322. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12323. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12324. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12325. break 2
  12326. fi
  12327. done
  12328. done
  12329. IFS=$as_save_IFS
  12330. fi
  12331. fi
  12332. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12333. if test -n "$ac_ct_CXX"; then
  12334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12335. $as_echo "$ac_ct_CXX" >&6; }
  12336. else
  12337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12338. $as_echo "no" >&6; }
  12339. fi
  12340. test -n "$ac_ct_CXX" && break
  12341. done
  12342. if test "x$ac_ct_CXX" = x; then
  12343. CXX="g++"
  12344. else
  12345. case $cross_compiling:$ac_tool_warned in
  12346. yes:)
  12347. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12348. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12349. ac_tool_warned=yes ;;
  12350. esac
  12351. CXX=$ac_ct_CXX
  12352. fi
  12353. fi
  12354. fi
  12355. fi
  12356. # Provide some information about the compiler.
  12357. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12358. set X $ac_compile
  12359. ac_compiler=$2
  12360. for ac_option in --version -v -V -qversion; do
  12361. { { ac_try="$ac_compiler $ac_option >&5"
  12362. case "(($ac_try" in
  12363. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12364. *) ac_try_echo=$ac_try;;
  12365. esac
  12366. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12367. $as_echo "$ac_try_echo"; } >&5
  12368. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12369. ac_status=$?
  12370. if test -s conftest.err; then
  12371. sed '10a\
  12372. ... rest of stderr output deleted ...
  12373. 10q' conftest.err >conftest.er1
  12374. cat conftest.er1 >&5
  12375. fi
  12376. rm -f conftest.er1 conftest.err
  12377. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12378. test $ac_status = 0; }
  12379. done
  12380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  12381. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  12382. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  12383. $as_echo_n "(cached) " >&6
  12384. else
  12385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12386. /* end confdefs.h. */
  12387. int
  12388. main ()
  12389. {
  12390. #ifndef __GNUC__
  12391. choke me
  12392. #endif
  12393. ;
  12394. return 0;
  12395. }
  12396. _ACEOF
  12397. if ac_fn_cxx_try_compile "$LINENO"; then :
  12398. ac_compiler_gnu=yes
  12399. else
  12400. ac_compiler_gnu=no
  12401. fi
  12402. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12403. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12404. fi
  12405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12406. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  12407. if test $ac_compiler_gnu = yes; then
  12408. GXX=yes
  12409. else
  12410. GXX=
  12411. fi
  12412. ac_test_CXXFLAGS=${CXXFLAGS+set}
  12413. ac_save_CXXFLAGS=$CXXFLAGS
  12414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12415. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  12416. if ${ac_cv_prog_cxx_g+:} false; then :
  12417. $as_echo_n "(cached) " >&6
  12418. else
  12419. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12420. ac_cxx_werror_flag=yes
  12421. ac_cv_prog_cxx_g=no
  12422. CXXFLAGS="-g"
  12423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12424. /* end confdefs.h. */
  12425. int
  12426. main ()
  12427. {
  12428. ;
  12429. return 0;
  12430. }
  12431. _ACEOF
  12432. if ac_fn_cxx_try_compile "$LINENO"; then :
  12433. ac_cv_prog_cxx_g=yes
  12434. else
  12435. CXXFLAGS=""
  12436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12437. /* end confdefs.h. */
  12438. int
  12439. main ()
  12440. {
  12441. ;
  12442. return 0;
  12443. }
  12444. _ACEOF
  12445. if ac_fn_cxx_try_compile "$LINENO"; then :
  12446. else
  12447. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12448. CXXFLAGS="-g"
  12449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12450. /* end confdefs.h. */
  12451. int
  12452. main ()
  12453. {
  12454. ;
  12455. return 0;
  12456. }
  12457. _ACEOF
  12458. if ac_fn_cxx_try_compile "$LINENO"; then :
  12459. ac_cv_prog_cxx_g=yes
  12460. fi
  12461. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12462. fi
  12463. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12464. fi
  12465. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12466. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12467. fi
  12468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12469. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  12470. if test "$ac_test_CXXFLAGS" = set; then
  12471. CXXFLAGS=$ac_save_CXXFLAGS
  12472. elif test $ac_cv_prog_cxx_g = yes; then
  12473. if test "$GXX" = yes; then
  12474. CXXFLAGS="-g -O2"
  12475. else
  12476. CXXFLAGS="-g"
  12477. fi
  12478. else
  12479. if test "$GXX" = yes; then
  12480. CXXFLAGS="-O2"
  12481. else
  12482. CXXFLAGS=
  12483. fi
  12484. fi
  12485. ac_ext=c
  12486. ac_cpp='$CPP $CPPFLAGS'
  12487. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12488. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12489. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12490. depcc="$CXX" am_compiler_list=
  12491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  12492. $as_echo_n "checking dependency style of $depcc... " >&6; }
  12493. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  12494. $as_echo_n "(cached) " >&6
  12495. else
  12496. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  12497. # We make a subdir and do the tests there. Otherwise we can end up
  12498. # making bogus files that we don't know about and never remove. For
  12499. # instance it was reported that on HP-UX the gcc test will end up
  12500. # making a dummy file named 'D' -- because '-MD' means "put the output
  12501. # in D".
  12502. rm -rf conftest.dir
  12503. mkdir conftest.dir
  12504. # Copy depcomp to subdir because otherwise we won't find it if we're
  12505. # using a relative directory.
  12506. cp "$am_depcomp" conftest.dir
  12507. cd conftest.dir
  12508. # We will build objects and dependencies in a subdirectory because
  12509. # it helps to detect inapplicable dependency modes. For instance
  12510. # both Tru64's cc and ICC support -MD to output dependencies as a
  12511. # side effect of compilation, but ICC will put the dependencies in
  12512. # the current directory while Tru64 will put them in the object
  12513. # directory.
  12514. mkdir sub
  12515. am_cv_CXX_dependencies_compiler_type=none
  12516. if test "$am_compiler_list" = ""; then
  12517. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  12518. fi
  12519. am__universal=false
  12520. case " $depcc " in #(
  12521. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  12522. esac
  12523. for depmode in $am_compiler_list; do
  12524. # Setup a source with many dependencies, because some compilers
  12525. # like to wrap large dependency lists on column 80 (with \), and
  12526. # we should not choose a depcomp mode which is confused by this.
  12527. #
  12528. # We need to recreate these files for each test, as the compiler may
  12529. # overwrite some of them when testing with obscure command lines.
  12530. # This happens at least with the AIX C compiler.
  12531. : > sub/conftest.c
  12532. for i in 1 2 3 4 5 6; do
  12533. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  12534. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  12535. # Solaris 10 /bin/sh.
  12536. echo '/* dummy */' > sub/conftst$i.h
  12537. done
  12538. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  12539. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  12540. # mode. It turns out that the SunPro C++ compiler does not properly
  12541. # handle '-M -o', and we need to detect this. Also, some Intel
  12542. # versions had trouble with output in subdirs.
  12543. am__obj=sub/conftest.${OBJEXT-o}
  12544. am__minus_obj="-o $am__obj"
  12545. case $depmode in
  12546. gcc)
  12547. # This depmode causes a compiler race in universal mode.
  12548. test "$am__universal" = false || continue
  12549. ;;
  12550. nosideeffect)
  12551. # After this tag, mechanisms are not by side-effect, so they'll
  12552. # only be used when explicitly requested.
  12553. if test "x$enable_dependency_tracking" = xyes; then
  12554. continue
  12555. else
  12556. break
  12557. fi
  12558. ;;
  12559. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  12560. # This compiler won't grok '-c -o', but also, the minuso test has
  12561. # not run yet. These depmodes are late enough in the game, and
  12562. # so weak that their functioning should not be impacted.
  12563. am__obj=conftest.${OBJEXT-o}
  12564. am__minus_obj=
  12565. ;;
  12566. none) break ;;
  12567. esac
  12568. if depmode=$depmode \
  12569. source=sub/conftest.c object=$am__obj \
  12570. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12571. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  12572. >/dev/null 2>conftest.err &&
  12573. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  12574. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12575. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  12576. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12577. # icc doesn't choke on unknown options, it will just issue warnings
  12578. # or remarks (even with -Werror). So we grep stderr for any message
  12579. # that says an option was ignored or not supported.
  12580. # When given -MP, icc 7.0 and 7.1 complain thusly:
  12581. # icc: Command line warning: ignoring option '-M'; no argument required
  12582. # The diagnosis changed in icc 8.0:
  12583. # icc: Command line remark: option '-MP' not supported
  12584. if (grep 'ignoring option' conftest.err ||
  12585. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  12586. am_cv_CXX_dependencies_compiler_type=$depmode
  12587. break
  12588. fi
  12589. fi
  12590. done
  12591. cd ..
  12592. rm -rf conftest.dir
  12593. else
  12594. am_cv_CXX_dependencies_compiler_type=none
  12595. fi
  12596. fi
  12597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  12598. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  12599. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  12600. if
  12601. test "x$enable_dependency_tracking" != xno \
  12602. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  12603. am__fastdepCXX_TRUE=
  12604. am__fastdepCXX_FALSE='#'
  12605. else
  12606. am__fastdepCXX_TRUE='#'
  12607. am__fastdepCXX_FALSE=
  12608. fi
  12609. func_stripname_cnf ()
  12610. {
  12611. case $2 in
  12612. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12613. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12614. esac
  12615. } # func_stripname_cnf
  12616. if test -n "$CXX" && ( test no != "$CXX" &&
  12617. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12618. (test g++ != "$CXX"))); then
  12619. ac_ext=cpp
  12620. ac_cpp='$CXXCPP $CPPFLAGS'
  12621. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12622. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12623. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12625. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  12626. if test -z "$CXXCPP"; then
  12627. if ${ac_cv_prog_CXXCPP+:} false; then :
  12628. $as_echo_n "(cached) " >&6
  12629. else
  12630. # Double quotes because CXXCPP needs to be expanded
  12631. for CXXCPP in "$CXX -E" "/lib/cpp"
  12632. do
  12633. ac_preproc_ok=false
  12634. for ac_cxx_preproc_warn_flag in '' yes
  12635. do
  12636. # Use a header file that comes with gcc, so configuring glibc
  12637. # with a fresh cross-compiler works.
  12638. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12639. # <limits.h> exists even on freestanding compilers.
  12640. # On the NeXT, cc -E runs the code through the compiler's parser,
  12641. # not just through cpp. "Syntax error" is here to catch this case.
  12642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12643. /* end confdefs.h. */
  12644. #ifdef __STDC__
  12645. # include <limits.h>
  12646. #else
  12647. # include <assert.h>
  12648. #endif
  12649. Syntax error
  12650. _ACEOF
  12651. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12652. else
  12653. # Broken: fails on valid input.
  12654. continue
  12655. fi
  12656. rm -f conftest.err conftest.i conftest.$ac_ext
  12657. # OK, works on sane cases. Now check whether nonexistent headers
  12658. # can be detected and how.
  12659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12660. /* end confdefs.h. */
  12661. #include <ac_nonexistent.h>
  12662. _ACEOF
  12663. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12664. # Broken: success on invalid input.
  12665. continue
  12666. else
  12667. # Passes both tests.
  12668. ac_preproc_ok=:
  12669. break
  12670. fi
  12671. rm -f conftest.err conftest.i conftest.$ac_ext
  12672. done
  12673. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12674. rm -f conftest.i conftest.err conftest.$ac_ext
  12675. if $ac_preproc_ok; then :
  12676. break
  12677. fi
  12678. done
  12679. ac_cv_prog_CXXCPP=$CXXCPP
  12680. fi
  12681. CXXCPP=$ac_cv_prog_CXXCPP
  12682. else
  12683. ac_cv_prog_CXXCPP=$CXXCPP
  12684. fi
  12685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12686. $as_echo "$CXXCPP" >&6; }
  12687. ac_preproc_ok=false
  12688. for ac_cxx_preproc_warn_flag in '' yes
  12689. do
  12690. # Use a header file that comes with gcc, so configuring glibc
  12691. # with a fresh cross-compiler works.
  12692. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12693. # <limits.h> exists even on freestanding compilers.
  12694. # On the NeXT, cc -E runs the code through the compiler's parser,
  12695. # not just through cpp. "Syntax error" is here to catch this case.
  12696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12697. /* end confdefs.h. */
  12698. #ifdef __STDC__
  12699. # include <limits.h>
  12700. #else
  12701. # include <assert.h>
  12702. #endif
  12703. Syntax error
  12704. _ACEOF
  12705. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12706. else
  12707. # Broken: fails on valid input.
  12708. continue
  12709. fi
  12710. rm -f conftest.err conftest.i conftest.$ac_ext
  12711. # OK, works on sane cases. Now check whether nonexistent headers
  12712. # can be detected and how.
  12713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12714. /* end confdefs.h. */
  12715. #include <ac_nonexistent.h>
  12716. _ACEOF
  12717. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12718. # Broken: success on invalid input.
  12719. continue
  12720. else
  12721. # Passes both tests.
  12722. ac_preproc_ok=:
  12723. break
  12724. fi
  12725. rm -f conftest.err conftest.i conftest.$ac_ext
  12726. done
  12727. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12728. rm -f conftest.i conftest.err conftest.$ac_ext
  12729. if $ac_preproc_ok; then :
  12730. else
  12731. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12732. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12733. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12734. See \`config.log' for more details" "$LINENO" 5; }
  12735. fi
  12736. ac_ext=c
  12737. ac_cpp='$CPP $CPPFLAGS'
  12738. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12739. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12740. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12741. else
  12742. _lt_caught_CXX_error=yes
  12743. fi
  12744. ac_ext=cpp
  12745. ac_cpp='$CXXCPP $CPPFLAGS'
  12746. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12747. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12748. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12749. archive_cmds_need_lc_CXX=no
  12750. allow_undefined_flag_CXX=
  12751. always_export_symbols_CXX=no
  12752. archive_expsym_cmds_CXX=
  12753. compiler_needs_object_CXX=no
  12754. export_dynamic_flag_spec_CXX=
  12755. hardcode_direct_CXX=no
  12756. hardcode_direct_absolute_CXX=no
  12757. hardcode_libdir_flag_spec_CXX=
  12758. hardcode_libdir_separator_CXX=
  12759. hardcode_minus_L_CXX=no
  12760. hardcode_shlibpath_var_CXX=unsupported
  12761. hardcode_automatic_CXX=no
  12762. inherit_rpath_CXX=no
  12763. module_cmds_CXX=
  12764. module_expsym_cmds_CXX=
  12765. link_all_deplibs_CXX=unknown
  12766. old_archive_cmds_CXX=$old_archive_cmds
  12767. reload_flag_CXX=$reload_flag
  12768. reload_cmds_CXX=$reload_cmds
  12769. no_undefined_flag_CXX=
  12770. whole_archive_flag_spec_CXX=
  12771. enable_shared_with_static_runtimes_CXX=no
  12772. # Source file extension for C++ test sources.
  12773. ac_ext=cpp
  12774. # Object file extension for compiled C++ test sources.
  12775. objext=o
  12776. objext_CXX=$objext
  12777. # No sense in running all these tests if we already determined that
  12778. # the CXX compiler isn't working. Some variables (like enable_shared)
  12779. # are currently assumed to apply to all compilers on this platform,
  12780. # and will be corrupted by setting them based on a non-working compiler.
  12781. if test yes != "$_lt_caught_CXX_error"; then
  12782. # Code to be used in simple compile tests
  12783. lt_simple_compile_test_code="int some_variable = 0;"
  12784. # Code to be used in simple link tests
  12785. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12786. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12787. # If no C compiler was specified, use CC.
  12788. LTCC=${LTCC-"$CC"}
  12789. # If no C compiler flags were specified, use CFLAGS.
  12790. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12791. # Allow CC to be a program name with arguments.
  12792. compiler=$CC
  12793. # save warnings/boilerplate of simple test code
  12794. ac_outfile=conftest.$ac_objext
  12795. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12796. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12797. _lt_compiler_boilerplate=`cat conftest.err`
  12798. $RM conftest*
  12799. ac_outfile=conftest.$ac_objext
  12800. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12801. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12802. _lt_linker_boilerplate=`cat conftest.err`
  12803. $RM -r conftest*
  12804. # Allow CC to be a program name with arguments.
  12805. lt_save_CC=$CC
  12806. lt_save_CFLAGS=$CFLAGS
  12807. lt_save_LD=$LD
  12808. lt_save_GCC=$GCC
  12809. GCC=$GXX
  12810. lt_save_with_gnu_ld=$with_gnu_ld
  12811. lt_save_path_LD=$lt_cv_path_LD
  12812. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12813. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12814. else
  12815. $as_unset lt_cv_prog_gnu_ld
  12816. fi
  12817. if test -n "${lt_cv_path_LDCXX+set}"; then
  12818. lt_cv_path_LD=$lt_cv_path_LDCXX
  12819. else
  12820. $as_unset lt_cv_path_LD
  12821. fi
  12822. test -z "${LDCXX+set}" || LD=$LDCXX
  12823. CC=${CXX-"c++"}
  12824. CFLAGS=$CXXFLAGS
  12825. compiler=$CC
  12826. compiler_CXX=$CC
  12827. func_cc_basename $compiler
  12828. cc_basename=$func_cc_basename_result
  12829. if test -n "$compiler"; then
  12830. # We don't want -fno-exception when compiling C++ code, so set the
  12831. # no_builtin_flag separately
  12832. if test yes = "$GXX"; then
  12833. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12834. else
  12835. lt_prog_compiler_no_builtin_flag_CXX=
  12836. fi
  12837. if test yes = "$GXX"; then
  12838. # Set up default GNU C++ configuration
  12839. # Check whether --with-gnu-ld was given.
  12840. if test "${with_gnu_ld+set}" = set; then :
  12841. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12842. else
  12843. with_gnu_ld=no
  12844. fi
  12845. ac_prog=ld
  12846. if test yes = "$GCC"; then
  12847. # Check if gcc -print-prog-name=ld gives a path.
  12848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12849. $as_echo_n "checking for ld used by $CC... " >&6; }
  12850. case $host in
  12851. *-*-mingw*)
  12852. # gcc leaves a trailing carriage return, which upsets mingw
  12853. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12854. *)
  12855. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12856. esac
  12857. case $ac_prog in
  12858. # Accept absolute paths.
  12859. [\\/]* | ?:[\\/]*)
  12860. re_direlt='/[^/][^/]*/\.\./'
  12861. # Canonicalize the pathname of ld
  12862. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12863. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12864. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12865. done
  12866. test -z "$LD" && LD=$ac_prog
  12867. ;;
  12868. "")
  12869. # If it fails, then pretend we aren't using GCC.
  12870. ac_prog=ld
  12871. ;;
  12872. *)
  12873. # If it is relative, then search for the first ld in PATH.
  12874. with_gnu_ld=unknown
  12875. ;;
  12876. esac
  12877. elif test yes = "$with_gnu_ld"; then
  12878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12879. $as_echo_n "checking for GNU ld... " >&6; }
  12880. else
  12881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12882. $as_echo_n "checking for non-GNU ld... " >&6; }
  12883. fi
  12884. if ${lt_cv_path_LD+:} false; then :
  12885. $as_echo_n "(cached) " >&6
  12886. else
  12887. if test -z "$LD"; then
  12888. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12889. for ac_dir in $PATH; do
  12890. IFS=$lt_save_ifs
  12891. test -z "$ac_dir" && ac_dir=.
  12892. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12893. lt_cv_path_LD=$ac_dir/$ac_prog
  12894. # Check to see if the program is GNU ld. I'd rather use --version,
  12895. # but apparently some variants of GNU ld only accept -v.
  12896. # Break only if it was the GNU/non-GNU ld that we prefer.
  12897. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12898. *GNU* | *'with BFD'*)
  12899. test no != "$with_gnu_ld" && break
  12900. ;;
  12901. *)
  12902. test yes != "$with_gnu_ld" && break
  12903. ;;
  12904. esac
  12905. fi
  12906. done
  12907. IFS=$lt_save_ifs
  12908. else
  12909. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12910. fi
  12911. fi
  12912. LD=$lt_cv_path_LD
  12913. if test -n "$LD"; then
  12914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12915. $as_echo "$LD" >&6; }
  12916. else
  12917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12918. $as_echo "no" >&6; }
  12919. fi
  12920. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12922. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  12923. if ${lt_cv_prog_gnu_ld+:} false; then :
  12924. $as_echo_n "(cached) " >&6
  12925. else
  12926. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12927. case `$LD -v 2>&1 </dev/null` in
  12928. *GNU* | *'with BFD'*)
  12929. lt_cv_prog_gnu_ld=yes
  12930. ;;
  12931. *)
  12932. lt_cv_prog_gnu_ld=no
  12933. ;;
  12934. esac
  12935. fi
  12936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12937. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  12938. with_gnu_ld=$lt_cv_prog_gnu_ld
  12939. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12940. # archiving commands below assume that GNU ld is being used.
  12941. if test yes = "$with_gnu_ld"; then
  12942. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12943. 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'
  12944. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12945. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12946. # If archive_cmds runs LD, not CC, wlarc should be empty
  12947. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12948. # investigate it a little bit more. (MM)
  12949. wlarc='$wl'
  12950. # ancient GNU ld didn't support --whole-archive et. al.
  12951. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12952. $GREP 'no-whole-archive' > /dev/null; then
  12953. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12954. else
  12955. whole_archive_flag_spec_CXX=
  12956. fi
  12957. else
  12958. with_gnu_ld=no
  12959. wlarc=
  12960. # A generic and very simple default shared library creation
  12961. # command for GNU C++ for the case where it uses the native
  12962. # linker, instead of GNU ld. If possible, this setting should
  12963. # overridden to take advantage of the native linker features on
  12964. # the platform it is being used on.
  12965. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12966. fi
  12967. # Commands to make compiler produce verbose output that lists
  12968. # what "hidden" libraries, object files and flags are used when
  12969. # linking a shared library.
  12970. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12971. else
  12972. GXX=no
  12973. with_gnu_ld=no
  12974. wlarc=
  12975. fi
  12976. # PORTME: fill in a description of your system's C++ link characteristics
  12977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12978. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12979. ld_shlibs_CXX=yes
  12980. case $host_os in
  12981. aix3*)
  12982. # FIXME: insert proper C++ library support
  12983. ld_shlibs_CXX=no
  12984. ;;
  12985. aix[4-9]*)
  12986. if test ia64 = "$host_cpu"; then
  12987. # On IA64, the linker does run time linking by default, so we don't
  12988. # have to do anything special.
  12989. aix_use_runtimelinking=no
  12990. exp_sym_flag='-Bexport'
  12991. no_entry_flag=
  12992. else
  12993. aix_use_runtimelinking=no
  12994. # Test if we are trying to use run time linking or normal
  12995. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12996. # have runtime linking enabled, and use it for executables.
  12997. # For shared libraries, we enable/disable runtime linking
  12998. # depending on the kind of the shared library created -
  12999. # when "with_aix_soname,aix_use_runtimelinking" is:
  13000. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  13001. # "aix,yes" lib.so shared, rtl:yes, for executables
  13002. # lib.a static archive
  13003. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  13004. # lib.a(lib.so.V) shared, rtl:no, for executables
  13005. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  13006. # lib.a(lib.so.V) shared, rtl:no
  13007. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  13008. # lib.a static archive
  13009. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  13010. for ld_flag in $LDFLAGS; do
  13011. case $ld_flag in
  13012. *-brtl*)
  13013. aix_use_runtimelinking=yes
  13014. break
  13015. ;;
  13016. esac
  13017. done
  13018. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  13019. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  13020. # so we don't have lib.a shared libs to link our executables.
  13021. # We have to force runtime linking in this case.
  13022. aix_use_runtimelinking=yes
  13023. LDFLAGS="$LDFLAGS -Wl,-brtl"
  13024. fi
  13025. ;;
  13026. esac
  13027. exp_sym_flag='-bexport'
  13028. no_entry_flag='-bnoentry'
  13029. fi
  13030. # When large executables or shared objects are built, AIX ld can
  13031. # have problems creating the table of contents. If linking a library
  13032. # or program results in "error TOC overflow" add -mminimal-toc to
  13033. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13034. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13035. archive_cmds_CXX=''
  13036. hardcode_direct_CXX=yes
  13037. hardcode_direct_absolute_CXX=yes
  13038. hardcode_libdir_separator_CXX=':'
  13039. link_all_deplibs_CXX=yes
  13040. file_list_spec_CXX='$wl-f,'
  13041. case $with_aix_soname,$aix_use_runtimelinking in
  13042. aix,*) ;; # no import file
  13043. svr4,* | *,yes) # use import file
  13044. # The Import File defines what to hardcode.
  13045. hardcode_direct_CXX=no
  13046. hardcode_direct_absolute_CXX=no
  13047. ;;
  13048. esac
  13049. if test yes = "$GXX"; then
  13050. case $host_os in aix4.[012]|aix4.[012].*)
  13051. # We only want to do this on AIX 4.2 and lower, the check
  13052. # below for broken collect2 doesn't work under 4.3+
  13053. collect2name=`$CC -print-prog-name=collect2`
  13054. if test -f "$collect2name" &&
  13055. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  13056. then
  13057. # We have reworked collect2
  13058. :
  13059. else
  13060. # We have old collect2
  13061. hardcode_direct_CXX=unsupported
  13062. # It fails to find uninstalled libraries when the uninstalled
  13063. # path is not listed in the libpath. Setting hardcode_minus_L
  13064. # to unsupported forces relinking
  13065. hardcode_minus_L_CXX=yes
  13066. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13067. hardcode_libdir_separator_CXX=
  13068. fi
  13069. esac
  13070. shared_flag='-shared'
  13071. if test yes = "$aix_use_runtimelinking"; then
  13072. shared_flag=$shared_flag' $wl-G'
  13073. fi
  13074. # Need to ensure runtime linking is disabled for the traditional
  13075. # shared library, or the linker may eventually find shared libraries
  13076. # /with/ Import File - we do not want to mix them.
  13077. shared_flag_aix='-shared'
  13078. shared_flag_svr4='-shared $wl-G'
  13079. else
  13080. # not using gcc
  13081. if test ia64 = "$host_cpu"; then
  13082. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13083. # chokes on -Wl,-G. The following line is correct:
  13084. shared_flag='-G'
  13085. else
  13086. if test yes = "$aix_use_runtimelinking"; then
  13087. shared_flag='$wl-G'
  13088. else
  13089. shared_flag='$wl-bM:SRE'
  13090. fi
  13091. shared_flag_aix='$wl-bM:SRE'
  13092. shared_flag_svr4='$wl-G'
  13093. fi
  13094. fi
  13095. export_dynamic_flag_spec_CXX='$wl-bexpall'
  13096. # It seems that -bexpall does not export symbols beginning with
  13097. # underscore (_), so it is better to generate a list of symbols to
  13098. # export.
  13099. always_export_symbols_CXX=yes
  13100. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  13101. # Warning - without using the other runtime loading flags (-brtl),
  13102. # -berok will link without error, but may produce a broken library.
  13103. # The "-G" linker flag allows undefined symbols.
  13104. no_undefined_flag_CXX='-bernotok'
  13105. # Determine the default libpath from the value encoded in an empty
  13106. # executable.
  13107. if test set = "${lt_cv_aix_libpath+set}"; then
  13108. aix_libpath=$lt_cv_aix_libpath
  13109. else
  13110. if ${lt_cv_aix_libpath__CXX+:} false; then :
  13111. $as_echo_n "(cached) " >&6
  13112. else
  13113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13114. /* end confdefs.h. */
  13115. int
  13116. main ()
  13117. {
  13118. ;
  13119. return 0;
  13120. }
  13121. _ACEOF
  13122. if ac_fn_cxx_try_link "$LINENO"; then :
  13123. lt_aix_libpath_sed='
  13124. /Import File Strings/,/^$/ {
  13125. /^0/ {
  13126. s/^0 *\([^ ]*\) *$/\1/
  13127. p
  13128. }
  13129. }'
  13130. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13131. # Check for a 64-bit object if we didn't find anything.
  13132. if test -z "$lt_cv_aix_libpath__CXX"; then
  13133. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13134. fi
  13135. fi
  13136. rm -f core conftest.err conftest.$ac_objext \
  13137. conftest$ac_exeext conftest.$ac_ext
  13138. if test -z "$lt_cv_aix_libpath__CXX"; then
  13139. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  13140. fi
  13141. fi
  13142. aix_libpath=$lt_cv_aix_libpath__CXX
  13143. fi
  13144. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  13145. 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
  13146. else
  13147. if test ia64 = "$host_cpu"; then
  13148. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  13149. allow_undefined_flag_CXX="-z nodefs"
  13150. 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"
  13151. else
  13152. # Determine the default libpath from the value encoded in an
  13153. # empty executable.
  13154. if test set = "${lt_cv_aix_libpath+set}"; then
  13155. aix_libpath=$lt_cv_aix_libpath
  13156. else
  13157. if ${lt_cv_aix_libpath__CXX+:} false; then :
  13158. $as_echo_n "(cached) " >&6
  13159. else
  13160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13161. /* end confdefs.h. */
  13162. int
  13163. main ()
  13164. {
  13165. ;
  13166. return 0;
  13167. }
  13168. _ACEOF
  13169. if ac_fn_cxx_try_link "$LINENO"; then :
  13170. lt_aix_libpath_sed='
  13171. /Import File Strings/,/^$/ {
  13172. /^0/ {
  13173. s/^0 *\([^ ]*\) *$/\1/
  13174. p
  13175. }
  13176. }'
  13177. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13178. # Check for a 64-bit object if we didn't find anything.
  13179. if test -z "$lt_cv_aix_libpath__CXX"; then
  13180. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13181. fi
  13182. fi
  13183. rm -f core conftest.err conftest.$ac_objext \
  13184. conftest$ac_exeext conftest.$ac_ext
  13185. if test -z "$lt_cv_aix_libpath__CXX"; then
  13186. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  13187. fi
  13188. fi
  13189. aix_libpath=$lt_cv_aix_libpath__CXX
  13190. fi
  13191. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  13192. # Warning - without using the other run time loading flags,
  13193. # -berok will link without error, but may produce a broken library.
  13194. no_undefined_flag_CXX=' $wl-bernotok'
  13195. allow_undefined_flag_CXX=' $wl-berok'
  13196. if test yes = "$with_gnu_ld"; then
  13197. # We only use this code for GNU lds that support --whole-archive.
  13198. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13199. else
  13200. # Exported symbols can be pulled into shared objects from archives
  13201. whole_archive_flag_spec_CXX='$convenience'
  13202. fi
  13203. archive_cmds_need_lc_CXX=yes
  13204. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  13205. # -brtl affects multiple linker settings, -berok does not and is overridden later
  13206. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  13207. if test svr4 != "$with_aix_soname"; then
  13208. # This is similar to how AIX traditionally builds its shared
  13209. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  13210. 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'
  13211. fi
  13212. if test aix != "$with_aix_soname"; then
  13213. 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'
  13214. else
  13215. # used by -dlpreopen to get the symbols
  13216. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  13217. fi
  13218. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  13219. fi
  13220. fi
  13221. ;;
  13222. beos*)
  13223. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13224. allow_undefined_flag_CXX=unsupported
  13225. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13226. # support --undefined. This deserves some investigation. FIXME
  13227. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13228. else
  13229. ld_shlibs_CXX=no
  13230. fi
  13231. ;;
  13232. chorus*)
  13233. case $cc_basename in
  13234. *)
  13235. # FIXME: insert proper C++ library support
  13236. ld_shlibs_CXX=no
  13237. ;;
  13238. esac
  13239. ;;
  13240. cygwin* | mingw* | pw32* | cegcc*)
  13241. case $GXX,$cc_basename in
  13242. ,cl* | no,cl*)
  13243. # Native MSVC
  13244. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13245. # no search path for DLLs.
  13246. hardcode_libdir_flag_spec_CXX=' '
  13247. allow_undefined_flag_CXX=unsupported
  13248. always_export_symbols_CXX=yes
  13249. file_list_spec_CXX='@'
  13250. # Tell ltmain to make .lib files, not .a files.
  13251. libext=lib
  13252. # Tell ltmain to make .dll files, not .so files.
  13253. shrext_cmds=.dll
  13254. # FIXME: Setting linknames here is a bad hack.
  13255. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  13256. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13257. cp "$export_symbols" "$output_objdir/$soname.def";
  13258. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  13259. else
  13260. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  13261. fi~
  13262. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13263. linknames='
  13264. # The linker will not automatically build a static lib if we build a DLL.
  13265. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13266. enable_shared_with_static_runtimes_CXX=yes
  13267. # Don't use ranlib
  13268. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13269. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13270. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13271. case $lt_outputfile in
  13272. *.exe|*.EXE) ;;
  13273. *)
  13274. lt_outputfile=$lt_outputfile.exe
  13275. lt_tool_outputfile=$lt_tool_outputfile.exe
  13276. ;;
  13277. esac~
  13278. func_to_tool_file "$lt_outputfile"~
  13279. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13280. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13281. $RM "$lt_outputfile.manifest";
  13282. fi'
  13283. ;;
  13284. *)
  13285. # g++
  13286. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13287. # as there is no search path for DLLs.
  13288. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13289. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13290. allow_undefined_flag_CXX=unsupported
  13291. always_export_symbols_CXX=no
  13292. enable_shared_with_static_runtimes_CXX=yes
  13293. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13294. 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'
  13295. # If the export-symbols file already is a .def file, use it as
  13296. # is; otherwise, prepend EXPORTS...
  13297. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13298. cp $export_symbols $output_objdir/$soname.def;
  13299. else
  13300. echo EXPORTS > $output_objdir/$soname.def;
  13301. cat $export_symbols >> $output_objdir/$soname.def;
  13302. fi~
  13303. $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'
  13304. else
  13305. ld_shlibs_CXX=no
  13306. fi
  13307. ;;
  13308. esac
  13309. ;;
  13310. darwin* | rhapsody*)
  13311. archive_cmds_need_lc_CXX=no
  13312. hardcode_direct_CXX=no
  13313. hardcode_automatic_CXX=yes
  13314. hardcode_shlibpath_var_CXX=unsupported
  13315. if test yes = "$lt_cv_ld_force_load"; then
  13316. 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\"`'
  13317. else
  13318. whole_archive_flag_spec_CXX=''
  13319. fi
  13320. link_all_deplibs_CXX=yes
  13321. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13322. case $cc_basename in
  13323. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13324. *) _lt_dar_can_shared=$GCC ;;
  13325. esac
  13326. if test yes = "$_lt_dar_can_shared"; then
  13327. output_verbose_link_cmd=func_echo_all
  13328. 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"
  13329. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13330. 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"
  13331. 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"
  13332. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13333. 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"
  13334. 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"
  13335. fi
  13336. else
  13337. ld_shlibs_CXX=no
  13338. fi
  13339. ;;
  13340. os2*)
  13341. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13342. hardcode_minus_L_CXX=yes
  13343. allow_undefined_flag_CXX=unsupported
  13344. shrext_cmds=.dll
  13345. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13346. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13347. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13348. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13349. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13350. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13351. emximp -o $lib $output_objdir/$libname.def'
  13352. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13353. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13354. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13355. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13356. prefix_cmds="$SED"~
  13357. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13358. prefix_cmds="$prefix_cmds -e 1d";
  13359. fi~
  13360. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13361. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13362. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13363. emximp -o $lib $output_objdir/$libname.def'
  13364. old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13365. enable_shared_with_static_runtimes_CXX=yes
  13366. ;;
  13367. dgux*)
  13368. case $cc_basename in
  13369. ec++*)
  13370. # FIXME: insert proper C++ library support
  13371. ld_shlibs_CXX=no
  13372. ;;
  13373. ghcx*)
  13374. # Green Hills C++ Compiler
  13375. # FIXME: insert proper C++ library support
  13376. ld_shlibs_CXX=no
  13377. ;;
  13378. *)
  13379. # FIXME: insert proper C++ library support
  13380. ld_shlibs_CXX=no
  13381. ;;
  13382. esac
  13383. ;;
  13384. freebsd2.*)
  13385. # C++ shared libraries reported to be fairly broken before
  13386. # switch to ELF
  13387. ld_shlibs_CXX=no
  13388. ;;
  13389. freebsd-elf*)
  13390. archive_cmds_need_lc_CXX=no
  13391. ;;
  13392. freebsd* | dragonfly*)
  13393. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13394. # conventions
  13395. ld_shlibs_CXX=yes
  13396. ;;
  13397. haiku*)
  13398. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13399. link_all_deplibs_CXX=yes
  13400. ;;
  13401. hpux9*)
  13402. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13403. hardcode_libdir_separator_CXX=:
  13404. export_dynamic_flag_spec_CXX='$wl-E'
  13405. hardcode_direct_CXX=yes
  13406. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13407. # but as the default
  13408. # location of the library.
  13409. case $cc_basename in
  13410. CC*)
  13411. # FIXME: insert proper C++ library support
  13412. ld_shlibs_CXX=no
  13413. ;;
  13414. aCC*)
  13415. 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'
  13416. # Commands to make compiler produce verbose output that lists
  13417. # what "hidden" libraries, object files and flags are used when
  13418. # linking a shared library.
  13419. #
  13420. # There doesn't appear to be a way to prevent this compiler from
  13421. # explicitly linking system object files so we need to strip them
  13422. # from the output so that they don't get included in the library
  13423. # dependencies.
  13424. 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"'
  13425. ;;
  13426. *)
  13427. if test yes = "$GXX"; then
  13428. 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'
  13429. else
  13430. # FIXME: insert proper C++ library support
  13431. ld_shlibs_CXX=no
  13432. fi
  13433. ;;
  13434. esac
  13435. ;;
  13436. hpux10*|hpux11*)
  13437. if test no = "$with_gnu_ld"; then
  13438. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13439. hardcode_libdir_separator_CXX=:
  13440. case $host_cpu in
  13441. hppa*64*|ia64*)
  13442. ;;
  13443. *)
  13444. export_dynamic_flag_spec_CXX='$wl-E'
  13445. ;;
  13446. esac
  13447. fi
  13448. case $host_cpu in
  13449. hppa*64*|ia64*)
  13450. hardcode_direct_CXX=no
  13451. hardcode_shlibpath_var_CXX=no
  13452. ;;
  13453. *)
  13454. hardcode_direct_CXX=yes
  13455. hardcode_direct_absolute_CXX=yes
  13456. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13457. # but as the default
  13458. # location of the library.
  13459. ;;
  13460. esac
  13461. case $cc_basename in
  13462. CC*)
  13463. # FIXME: insert proper C++ library support
  13464. ld_shlibs_CXX=no
  13465. ;;
  13466. aCC*)
  13467. case $host_cpu in
  13468. hppa*64*)
  13469. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13470. ;;
  13471. ia64*)
  13472. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13473. ;;
  13474. *)
  13475. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13476. ;;
  13477. esac
  13478. # Commands to make compiler produce verbose output that lists
  13479. # what "hidden" libraries, object files and flags are used when
  13480. # linking a shared library.
  13481. #
  13482. # There doesn't appear to be a way to prevent this compiler from
  13483. # explicitly linking system object files so we need to strip them
  13484. # from the output so that they don't get included in the library
  13485. # dependencies.
  13486. 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"'
  13487. ;;
  13488. *)
  13489. if test yes = "$GXX"; then
  13490. if test no = "$with_gnu_ld"; then
  13491. case $host_cpu in
  13492. hppa*64*)
  13493. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13494. ;;
  13495. ia64*)
  13496. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13497. ;;
  13498. *)
  13499. 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'
  13500. ;;
  13501. esac
  13502. fi
  13503. else
  13504. # FIXME: insert proper C++ library support
  13505. ld_shlibs_CXX=no
  13506. fi
  13507. ;;
  13508. esac
  13509. ;;
  13510. interix[3-9]*)
  13511. hardcode_direct_CXX=no
  13512. hardcode_shlibpath_var_CXX=no
  13513. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13514. export_dynamic_flag_spec_CXX='$wl-E'
  13515. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13516. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13517. # default) and relocated if they conflict, which is a slow very memory
  13518. # consuming and fragmenting process. To avoid this, we pick a random,
  13519. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13520. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13521. 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'
  13522. 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'
  13523. ;;
  13524. irix5* | irix6*)
  13525. case $cc_basename in
  13526. CC*)
  13527. # SGI C++
  13528. 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'
  13529. # Archives containing C++ object files must be created using
  13530. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13531. # necessary to make sure instantiated templates are included
  13532. # in the archive.
  13533. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13534. ;;
  13535. *)
  13536. if test yes = "$GXX"; then
  13537. if test no = "$with_gnu_ld"; then
  13538. 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'
  13539. else
  13540. 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'
  13541. fi
  13542. fi
  13543. link_all_deplibs_CXX=yes
  13544. ;;
  13545. esac
  13546. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13547. hardcode_libdir_separator_CXX=:
  13548. inherit_rpath_CXX=yes
  13549. ;;
  13550. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13551. case $cc_basename in
  13552. KCC*)
  13553. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13554. # KCC will only create a shared library if the output file
  13555. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13556. # to its proper name (with version) after linking.
  13557. 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'
  13558. 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'
  13559. # Commands to make compiler produce verbose output that lists
  13560. # what "hidden" libraries, object files and flags are used when
  13561. # linking a shared library.
  13562. #
  13563. # There doesn't appear to be a way to prevent this compiler from
  13564. # explicitly linking system object files so we need to strip them
  13565. # from the output so that they don't get included in the library
  13566. # dependencies.
  13567. 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"'
  13568. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13569. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13570. # Archives containing C++ object files must be created using
  13571. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13572. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13573. ;;
  13574. icpc* | ecpc* )
  13575. # Intel C++
  13576. with_gnu_ld=yes
  13577. # version 8.0 and above of icpc choke on multiply defined symbols
  13578. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13579. # earlier do not add the objects themselves.
  13580. case `$CC -V 2>&1` in
  13581. *"Version 7."*)
  13582. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13583. 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'
  13584. ;;
  13585. *) # Version 8.0 or newer
  13586. tmp_idyn=
  13587. case $host_cpu in
  13588. ia64*) tmp_idyn=' -i_dynamic';;
  13589. esac
  13590. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13591. 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'
  13592. ;;
  13593. esac
  13594. archive_cmds_need_lc_CXX=no
  13595. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13596. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13597. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13598. ;;
  13599. pgCC* | pgcpp*)
  13600. # Portland Group C++ compiler
  13601. case `$CC -V` in
  13602. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13603. prelink_cmds_CXX='tpldir=Template.dir~
  13604. rm -rf $tpldir~
  13605. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13606. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13607. old_archive_cmds_CXX='tpldir=Template.dir~
  13608. rm -rf $tpldir~
  13609. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13610. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13611. $RANLIB $oldlib'
  13612. archive_cmds_CXX='tpldir=Template.dir~
  13613. rm -rf $tpldir~
  13614. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13615. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13616. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13617. rm -rf $tpldir~
  13618. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13619. $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'
  13620. ;;
  13621. *) # Version 6 and above use weak symbols
  13622. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13623. 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'
  13624. ;;
  13625. esac
  13626. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13627. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13628. 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'
  13629. ;;
  13630. cxx*)
  13631. # Compaq C++
  13632. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13633. 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'
  13634. runpath_var=LD_RUN_PATH
  13635. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13636. hardcode_libdir_separator_CXX=:
  13637. # Commands to make compiler produce verbose output that lists
  13638. # what "hidden" libraries, object files and flags are used when
  13639. # linking a shared library.
  13640. #
  13641. # There doesn't appear to be a way to prevent this compiler from
  13642. # explicitly linking system object files so we need to strip them
  13643. # from the output so that they don't get included in the library
  13644. # dependencies.
  13645. 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'
  13646. ;;
  13647. xl* | mpixl* | bgxl*)
  13648. # IBM XL 8.0 on PPC, with GNU ld
  13649. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13650. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13651. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13652. if test yes = "$supports_anon_versioning"; then
  13653. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13654. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13655. echo "local: *; };" >> $output_objdir/$libname.ver~
  13656. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13657. fi
  13658. ;;
  13659. *)
  13660. case `$CC -V 2>&1 | sed 5q` in
  13661. *Sun\ C*)
  13662. # Sun C++ 5.9
  13663. no_undefined_flag_CXX=' -zdefs'
  13664. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13665. 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'
  13666. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13667. 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'
  13668. compiler_needs_object_CXX=yes
  13669. # Not sure whether something based on
  13670. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13671. # would be better.
  13672. output_verbose_link_cmd='func_echo_all'
  13673. # Archives containing C++ object files must be created using
  13674. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13675. # necessary to make sure instantiated templates are included
  13676. # in the archive.
  13677. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13678. ;;
  13679. esac
  13680. ;;
  13681. esac
  13682. ;;
  13683. lynxos*)
  13684. # FIXME: insert proper C++ library support
  13685. ld_shlibs_CXX=no
  13686. ;;
  13687. m88k*)
  13688. # FIXME: insert proper C++ library support
  13689. ld_shlibs_CXX=no
  13690. ;;
  13691. mvs*)
  13692. case $cc_basename in
  13693. cxx*)
  13694. # FIXME: insert proper C++ library support
  13695. ld_shlibs_CXX=no
  13696. ;;
  13697. *)
  13698. # FIXME: insert proper C++ library support
  13699. ld_shlibs_CXX=no
  13700. ;;
  13701. esac
  13702. ;;
  13703. netbsd*)
  13704. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13705. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13706. wlarc=
  13707. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13708. hardcode_direct_CXX=yes
  13709. hardcode_shlibpath_var_CXX=no
  13710. fi
  13711. # Workaround some broken pre-1.5 toolchains
  13712. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13713. ;;
  13714. *nto* | *qnx*)
  13715. ld_shlibs_CXX=yes
  13716. ;;
  13717. openbsd* | bitrig*)
  13718. if test -f /usr/libexec/ld.so; then
  13719. hardcode_direct_CXX=yes
  13720. hardcode_shlibpath_var_CXX=no
  13721. hardcode_direct_absolute_CXX=yes
  13722. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13723. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13724. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13725. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13726. export_dynamic_flag_spec_CXX='$wl-E'
  13727. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13728. fi
  13729. output_verbose_link_cmd=func_echo_all
  13730. else
  13731. ld_shlibs_CXX=no
  13732. fi
  13733. ;;
  13734. osf3* | osf4* | osf5*)
  13735. case $cc_basename in
  13736. KCC*)
  13737. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13738. # KCC will only create a shared library if the output file
  13739. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13740. # to its proper name (with version) after linking.
  13741. 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'
  13742. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13743. hardcode_libdir_separator_CXX=:
  13744. # Archives containing C++ object files must be created using
  13745. # the KAI C++ compiler.
  13746. case $host in
  13747. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13748. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13749. esac
  13750. ;;
  13751. RCC*)
  13752. # Rational C++ 2.4.1
  13753. # FIXME: insert proper C++ library support
  13754. ld_shlibs_CXX=no
  13755. ;;
  13756. cxx*)
  13757. case $host in
  13758. osf3*)
  13759. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13760. 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'
  13761. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13762. ;;
  13763. *)
  13764. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13765. 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'
  13766. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13767. echo "-hidden">> $lib.exp~
  13768. $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~
  13769. $RM $lib.exp'
  13770. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13771. ;;
  13772. esac
  13773. hardcode_libdir_separator_CXX=:
  13774. # Commands to make compiler produce verbose output that lists
  13775. # what "hidden" libraries, object files and flags are used when
  13776. # linking a shared library.
  13777. #
  13778. # There doesn't appear to be a way to prevent this compiler from
  13779. # explicitly linking system object files so we need to strip them
  13780. # from the output so that they don't get included in the library
  13781. # dependencies.
  13782. 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"'
  13783. ;;
  13784. *)
  13785. if test yes,no = "$GXX,$with_gnu_ld"; then
  13786. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13787. case $host in
  13788. osf3*)
  13789. 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'
  13790. ;;
  13791. *)
  13792. 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'
  13793. ;;
  13794. esac
  13795. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13796. hardcode_libdir_separator_CXX=:
  13797. # Commands to make compiler produce verbose output that lists
  13798. # what "hidden" libraries, object files and flags are used when
  13799. # linking a shared library.
  13800. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13801. else
  13802. # FIXME: insert proper C++ library support
  13803. ld_shlibs_CXX=no
  13804. fi
  13805. ;;
  13806. esac
  13807. ;;
  13808. psos*)
  13809. # FIXME: insert proper C++ library support
  13810. ld_shlibs_CXX=no
  13811. ;;
  13812. sunos4*)
  13813. case $cc_basename in
  13814. CC*)
  13815. # Sun C++ 4.x
  13816. # FIXME: insert proper C++ library support
  13817. ld_shlibs_CXX=no
  13818. ;;
  13819. lcc*)
  13820. # Lucid
  13821. # FIXME: insert proper C++ library support
  13822. ld_shlibs_CXX=no
  13823. ;;
  13824. *)
  13825. # FIXME: insert proper C++ library support
  13826. ld_shlibs_CXX=no
  13827. ;;
  13828. esac
  13829. ;;
  13830. solaris*)
  13831. case $cc_basename in
  13832. CC* | sunCC*)
  13833. # Sun C++ 4.2, 5.x and Centerline C++
  13834. archive_cmds_need_lc_CXX=yes
  13835. no_undefined_flag_CXX=' -zdefs'
  13836. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13837. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13838. $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'
  13839. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13840. hardcode_shlibpath_var_CXX=no
  13841. case $host_os in
  13842. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13843. *)
  13844. # The compiler driver will combine and reorder linker options,
  13845. # but understands '-z linker_flag'.
  13846. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13847. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13848. ;;
  13849. esac
  13850. link_all_deplibs_CXX=yes
  13851. output_verbose_link_cmd='func_echo_all'
  13852. # Archives containing C++ object files must be created using
  13853. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13854. # necessary to make sure instantiated templates are included
  13855. # in the archive.
  13856. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13857. ;;
  13858. gcx*)
  13859. # Green Hills C++ Compiler
  13860. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13861. # The C++ compiler must be used to create the archive.
  13862. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13863. ;;
  13864. *)
  13865. # GNU C++ compiler with Solaris linker
  13866. if test yes,no = "$GXX,$with_gnu_ld"; then
  13867. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13868. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13869. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13870. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13871. $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'
  13872. # Commands to make compiler produce verbose output that lists
  13873. # what "hidden" libraries, object files and flags are used when
  13874. # linking a shared library.
  13875. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13876. else
  13877. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13878. # platform.
  13879. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13880. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13881. $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'
  13882. # Commands to make compiler produce verbose output that lists
  13883. # what "hidden" libraries, object files and flags are used when
  13884. # linking a shared library.
  13885. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13886. fi
  13887. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13888. case $host_os in
  13889. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13890. *)
  13891. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13892. ;;
  13893. esac
  13894. fi
  13895. ;;
  13896. esac
  13897. ;;
  13898. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13899. no_undefined_flag_CXX='$wl-z,text'
  13900. archive_cmds_need_lc_CXX=no
  13901. hardcode_shlibpath_var_CXX=no
  13902. runpath_var='LD_RUN_PATH'
  13903. case $cc_basename in
  13904. CC*)
  13905. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13906. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13907. ;;
  13908. *)
  13909. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13910. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13911. ;;
  13912. esac
  13913. ;;
  13914. sysv5* | sco3.2v5* | sco5v6*)
  13915. # Note: We CANNOT use -z defs as we might desire, because we do not
  13916. # link with -lc, and that would cause any symbols used from libc to
  13917. # always be unresolved, which means just about no library would
  13918. # ever link correctly. If we're not using GNU ld we use -z text
  13919. # though, which does catch some bad symbols but isn't as heavy-handed
  13920. # as -z defs.
  13921. no_undefined_flag_CXX='$wl-z,text'
  13922. allow_undefined_flag_CXX='$wl-z,nodefs'
  13923. archive_cmds_need_lc_CXX=no
  13924. hardcode_shlibpath_var_CXX=no
  13925. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13926. hardcode_libdir_separator_CXX=':'
  13927. link_all_deplibs_CXX=yes
  13928. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13929. runpath_var='LD_RUN_PATH'
  13930. case $cc_basename in
  13931. CC*)
  13932. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13933. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13934. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13935. '"$old_archive_cmds_CXX"
  13936. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13937. '"$reload_cmds_CXX"
  13938. ;;
  13939. *)
  13940. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13941. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13942. ;;
  13943. esac
  13944. ;;
  13945. tandem*)
  13946. case $cc_basename in
  13947. NCC*)
  13948. # NonStop-UX NCC 3.20
  13949. # FIXME: insert proper C++ library support
  13950. ld_shlibs_CXX=no
  13951. ;;
  13952. *)
  13953. # FIXME: insert proper C++ library support
  13954. ld_shlibs_CXX=no
  13955. ;;
  13956. esac
  13957. ;;
  13958. vxworks*)
  13959. # FIXME: insert proper C++ library support
  13960. ld_shlibs_CXX=no
  13961. ;;
  13962. *)
  13963. # FIXME: insert proper C++ library support
  13964. ld_shlibs_CXX=no
  13965. ;;
  13966. esac
  13967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13968. $as_echo "$ld_shlibs_CXX" >&6; }
  13969. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13970. GCC_CXX=$GXX
  13971. LD_CXX=$LD
  13972. ## CAVEAT EMPTOR:
  13973. ## There is no encapsulation within the following macros, do not change
  13974. ## the running order or otherwise move them around unless you know exactly
  13975. ## what you are doing...
  13976. # Dependencies to place before and after the object being linked:
  13977. predep_objects_CXX=
  13978. postdep_objects_CXX=
  13979. predeps_CXX=
  13980. postdeps_CXX=
  13981. compiler_lib_search_path_CXX=
  13982. cat > conftest.$ac_ext <<_LT_EOF
  13983. class Foo
  13984. {
  13985. public:
  13986. Foo (void) { a = 0; }
  13987. private:
  13988. int a;
  13989. };
  13990. _LT_EOF
  13991. _lt_libdeps_save_CFLAGS=$CFLAGS
  13992. case "$CC $CFLAGS " in #(
  13993. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13994. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13995. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13996. esac
  13997. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13998. (eval $ac_compile) 2>&5
  13999. ac_status=$?
  14000. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14001. test $ac_status = 0; }; then
  14002. # Parse the compiler output and extract the necessary
  14003. # objects, libraries and library flags.
  14004. # Sentinel used to keep track of whether or not we are before
  14005. # the conftest object file.
  14006. pre_test_object_deps_done=no
  14007. for p in `eval "$output_verbose_link_cmd"`; do
  14008. case $prev$p in
  14009. -L* | -R* | -l*)
  14010. # Some compilers place space between "-{L,R}" and the path.
  14011. # Remove the space.
  14012. if test x-L = "$p" ||
  14013. test x-R = "$p"; then
  14014. prev=$p
  14015. continue
  14016. fi
  14017. # Expand the sysroot to ease extracting the directories later.
  14018. if test -z "$prev"; then
  14019. case $p in
  14020. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  14021. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  14022. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  14023. esac
  14024. fi
  14025. case $p in
  14026. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  14027. esac
  14028. if test no = "$pre_test_object_deps_done"; then
  14029. case $prev in
  14030. -L | -R)
  14031. # Internal compiler library paths should come after those
  14032. # provided the user. The postdeps already come after the
  14033. # user supplied libs so there is no need to process them.
  14034. if test -z "$compiler_lib_search_path_CXX"; then
  14035. compiler_lib_search_path_CXX=$prev$p
  14036. else
  14037. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  14038. fi
  14039. ;;
  14040. # The "-l" case would never come before the object being
  14041. # linked, so don't bother handling this case.
  14042. esac
  14043. else
  14044. if test -z "$postdeps_CXX"; then
  14045. postdeps_CXX=$prev$p
  14046. else
  14047. postdeps_CXX="${postdeps_CXX} $prev$p"
  14048. fi
  14049. fi
  14050. prev=
  14051. ;;
  14052. *.lto.$objext) ;; # Ignore GCC LTO objects
  14053. *.$objext)
  14054. # This assumes that the test object file only shows up
  14055. # once in the compiler output.
  14056. if test "$p" = "conftest.$objext"; then
  14057. pre_test_object_deps_done=yes
  14058. continue
  14059. fi
  14060. if test no = "$pre_test_object_deps_done"; then
  14061. if test -z "$predep_objects_CXX"; then
  14062. predep_objects_CXX=$p
  14063. else
  14064. predep_objects_CXX="$predep_objects_CXX $p"
  14065. fi
  14066. else
  14067. if test -z "$postdep_objects_CXX"; then
  14068. postdep_objects_CXX=$p
  14069. else
  14070. postdep_objects_CXX="$postdep_objects_CXX $p"
  14071. fi
  14072. fi
  14073. ;;
  14074. *) ;; # Ignore the rest.
  14075. esac
  14076. done
  14077. # Clean up.
  14078. rm -f a.out a.exe
  14079. else
  14080. echo "libtool.m4: error: problem compiling CXX test program"
  14081. fi
  14082. $RM -f confest.$objext
  14083. CFLAGS=$_lt_libdeps_save_CFLAGS
  14084. # PORTME: override above test on systems where it is broken
  14085. case $host_os in
  14086. interix[3-9]*)
  14087. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  14088. # hack all around it, let's just trust "g++" to DTRT.
  14089. predep_objects_CXX=
  14090. postdep_objects_CXX=
  14091. postdeps_CXX=
  14092. ;;
  14093. esac
  14094. case " $postdeps_CXX " in
  14095. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  14096. esac
  14097. compiler_lib_search_dirs_CXX=
  14098. if test -n "${compiler_lib_search_path_CXX}"; then
  14099. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  14100. fi
  14101. lt_prog_compiler_wl_CXX=
  14102. lt_prog_compiler_pic_CXX=
  14103. lt_prog_compiler_static_CXX=
  14104. # C++ specific cases for pic, static, wl, etc.
  14105. if test yes = "$GXX"; then
  14106. lt_prog_compiler_wl_CXX='-Wl,'
  14107. lt_prog_compiler_static_CXX='-static'
  14108. case $host_os in
  14109. aix*)
  14110. # All AIX code is PIC.
  14111. if test ia64 = "$host_cpu"; then
  14112. # AIX 5 now supports IA64 processor
  14113. lt_prog_compiler_static_CXX='-Bstatic'
  14114. fi
  14115. lt_prog_compiler_pic_CXX='-fPIC'
  14116. ;;
  14117. amigaos*)
  14118. case $host_cpu in
  14119. powerpc)
  14120. # see comment about AmigaOS4 .so support
  14121. lt_prog_compiler_pic_CXX='-fPIC'
  14122. ;;
  14123. m68k)
  14124. # FIXME: we need at least 68020 code to build shared libraries, but
  14125. # adding the '-m68020' flag to GCC prevents building anything better,
  14126. # like '-m68040'.
  14127. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  14128. ;;
  14129. esac
  14130. ;;
  14131. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14132. # PIC is the default for these OSes.
  14133. ;;
  14134. mingw* | cygwin* | os2* | pw32* | cegcc*)
  14135. # This hack is so that the source file can tell whether it is being
  14136. # built for inclusion in a dll (and should export symbols for example).
  14137. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  14138. # (--disable-auto-import) libraries
  14139. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  14140. case $host_os in
  14141. os2*)
  14142. lt_prog_compiler_static_CXX='$wl-static'
  14143. ;;
  14144. esac
  14145. ;;
  14146. darwin* | rhapsody*)
  14147. # PIC is the default on this platform
  14148. # Common symbols not allowed in MH_DYLIB files
  14149. lt_prog_compiler_pic_CXX='-fno-common'
  14150. ;;
  14151. *djgpp*)
  14152. # DJGPP does not support shared libraries at all
  14153. lt_prog_compiler_pic_CXX=
  14154. ;;
  14155. haiku*)
  14156. # PIC is the default for Haiku.
  14157. # The "-static" flag exists, but is broken.
  14158. lt_prog_compiler_static_CXX=
  14159. ;;
  14160. interix[3-9]*)
  14161. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14162. # Instead, we relocate shared libraries at runtime.
  14163. ;;
  14164. sysv4*MP*)
  14165. if test -d /usr/nec; then
  14166. lt_prog_compiler_pic_CXX=-Kconform_pic
  14167. fi
  14168. ;;
  14169. hpux*)
  14170. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  14171. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  14172. # sets the default TLS model and affects inlining.
  14173. case $host_cpu in
  14174. hppa*64*)
  14175. ;;
  14176. *)
  14177. lt_prog_compiler_pic_CXX='-fPIC'
  14178. ;;
  14179. esac
  14180. ;;
  14181. *qnx* | *nto*)
  14182. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14183. # it will coredump.
  14184. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14185. ;;
  14186. *)
  14187. lt_prog_compiler_pic_CXX='-fPIC'
  14188. ;;
  14189. esac
  14190. else
  14191. case $host_os in
  14192. aix[4-9]*)
  14193. # All AIX code is PIC.
  14194. if test ia64 = "$host_cpu"; then
  14195. # AIX 5 now supports IA64 processor
  14196. lt_prog_compiler_static_CXX='-Bstatic'
  14197. else
  14198. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  14199. fi
  14200. ;;
  14201. chorus*)
  14202. case $cc_basename in
  14203. cxch68*)
  14204. # Green Hills C++ Compiler
  14205. # _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"
  14206. ;;
  14207. esac
  14208. ;;
  14209. mingw* | cygwin* | os2* | pw32* | cegcc*)
  14210. # This hack is so that the source file can tell whether it is being
  14211. # built for inclusion in a dll (and should export symbols for example).
  14212. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  14213. ;;
  14214. dgux*)
  14215. case $cc_basename in
  14216. ec++*)
  14217. lt_prog_compiler_pic_CXX='-KPIC'
  14218. ;;
  14219. ghcx*)
  14220. # Green Hills C++ Compiler
  14221. lt_prog_compiler_pic_CXX='-pic'
  14222. ;;
  14223. *)
  14224. ;;
  14225. esac
  14226. ;;
  14227. freebsd* | dragonfly*)
  14228. # FreeBSD uses GNU C++
  14229. ;;
  14230. hpux9* | hpux10* | hpux11*)
  14231. case $cc_basename in
  14232. CC*)
  14233. lt_prog_compiler_wl_CXX='-Wl,'
  14234. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14235. if test ia64 != "$host_cpu"; then
  14236. lt_prog_compiler_pic_CXX='+Z'
  14237. fi
  14238. ;;
  14239. aCC*)
  14240. lt_prog_compiler_wl_CXX='-Wl,'
  14241. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14242. case $host_cpu in
  14243. hppa*64*|ia64*)
  14244. # +Z the default
  14245. ;;
  14246. *)
  14247. lt_prog_compiler_pic_CXX='+Z'
  14248. ;;
  14249. esac
  14250. ;;
  14251. *)
  14252. ;;
  14253. esac
  14254. ;;
  14255. interix*)
  14256. # This is c89, which is MS Visual C++ (no shared libs)
  14257. # Anyone wants to do a port?
  14258. ;;
  14259. irix5* | irix6* | nonstopux*)
  14260. case $cc_basename in
  14261. CC*)
  14262. lt_prog_compiler_wl_CXX='-Wl,'
  14263. lt_prog_compiler_static_CXX='-non_shared'
  14264. # CC pic flag -KPIC is the default.
  14265. ;;
  14266. *)
  14267. ;;
  14268. esac
  14269. ;;
  14270. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14271. case $cc_basename in
  14272. KCC*)
  14273. # KAI C++ Compiler
  14274. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14275. lt_prog_compiler_pic_CXX='-fPIC'
  14276. ;;
  14277. ecpc* )
  14278. # old Intel C++ for x86_64, which still supported -KPIC.
  14279. lt_prog_compiler_wl_CXX='-Wl,'
  14280. lt_prog_compiler_pic_CXX='-KPIC'
  14281. lt_prog_compiler_static_CXX='-static'
  14282. ;;
  14283. icpc* )
  14284. # Intel C++, used to be incompatible with GCC.
  14285. # ICC 10 doesn't accept -KPIC any more.
  14286. lt_prog_compiler_wl_CXX='-Wl,'
  14287. lt_prog_compiler_pic_CXX='-fPIC'
  14288. lt_prog_compiler_static_CXX='-static'
  14289. ;;
  14290. pgCC* | pgcpp*)
  14291. # Portland Group C++ compiler
  14292. lt_prog_compiler_wl_CXX='-Wl,'
  14293. lt_prog_compiler_pic_CXX='-fpic'
  14294. lt_prog_compiler_static_CXX='-Bstatic'
  14295. ;;
  14296. cxx*)
  14297. # Compaq C++
  14298. # Make sure the PIC flag is empty. It appears that all Alpha
  14299. # Linux and Compaq Tru64 Unix objects are PIC.
  14300. lt_prog_compiler_pic_CXX=
  14301. lt_prog_compiler_static_CXX='-non_shared'
  14302. ;;
  14303. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14304. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14305. lt_prog_compiler_wl_CXX='-Wl,'
  14306. lt_prog_compiler_pic_CXX='-qpic'
  14307. lt_prog_compiler_static_CXX='-qstaticlink'
  14308. ;;
  14309. *)
  14310. case `$CC -V 2>&1 | sed 5q` in
  14311. *Sun\ C*)
  14312. # Sun C++ 5.9
  14313. lt_prog_compiler_pic_CXX='-KPIC'
  14314. lt_prog_compiler_static_CXX='-Bstatic'
  14315. lt_prog_compiler_wl_CXX='-Qoption ld '
  14316. ;;
  14317. esac
  14318. ;;
  14319. esac
  14320. ;;
  14321. lynxos*)
  14322. ;;
  14323. m88k*)
  14324. ;;
  14325. mvs*)
  14326. case $cc_basename in
  14327. cxx*)
  14328. lt_prog_compiler_pic_CXX='-W c,exportall'
  14329. ;;
  14330. *)
  14331. ;;
  14332. esac
  14333. ;;
  14334. netbsd* | netbsdelf*-gnu)
  14335. ;;
  14336. *qnx* | *nto*)
  14337. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14338. # it will coredump.
  14339. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14340. ;;
  14341. osf3* | osf4* | osf5*)
  14342. case $cc_basename in
  14343. KCC*)
  14344. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14345. ;;
  14346. RCC*)
  14347. # Rational C++ 2.4.1
  14348. lt_prog_compiler_pic_CXX='-pic'
  14349. ;;
  14350. cxx*)
  14351. # Digital/Compaq C++
  14352. lt_prog_compiler_wl_CXX='-Wl,'
  14353. # Make sure the PIC flag is empty. It appears that all Alpha
  14354. # Linux and Compaq Tru64 Unix objects are PIC.
  14355. lt_prog_compiler_pic_CXX=
  14356. lt_prog_compiler_static_CXX='-non_shared'
  14357. ;;
  14358. *)
  14359. ;;
  14360. esac
  14361. ;;
  14362. psos*)
  14363. ;;
  14364. solaris*)
  14365. case $cc_basename in
  14366. CC* | sunCC*)
  14367. # Sun C++ 4.2, 5.x and Centerline C++
  14368. lt_prog_compiler_pic_CXX='-KPIC'
  14369. lt_prog_compiler_static_CXX='-Bstatic'
  14370. lt_prog_compiler_wl_CXX='-Qoption ld '
  14371. ;;
  14372. gcx*)
  14373. # Green Hills C++ Compiler
  14374. lt_prog_compiler_pic_CXX='-PIC'
  14375. ;;
  14376. *)
  14377. ;;
  14378. esac
  14379. ;;
  14380. sunos4*)
  14381. case $cc_basename in
  14382. CC*)
  14383. # Sun C++ 4.x
  14384. lt_prog_compiler_pic_CXX='-pic'
  14385. lt_prog_compiler_static_CXX='-Bstatic'
  14386. ;;
  14387. lcc*)
  14388. # Lucid
  14389. lt_prog_compiler_pic_CXX='-pic'
  14390. ;;
  14391. *)
  14392. ;;
  14393. esac
  14394. ;;
  14395. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14396. case $cc_basename in
  14397. CC*)
  14398. lt_prog_compiler_wl_CXX='-Wl,'
  14399. lt_prog_compiler_pic_CXX='-KPIC'
  14400. lt_prog_compiler_static_CXX='-Bstatic'
  14401. ;;
  14402. esac
  14403. ;;
  14404. tandem*)
  14405. case $cc_basename in
  14406. NCC*)
  14407. # NonStop-UX NCC 3.20
  14408. lt_prog_compiler_pic_CXX='-KPIC'
  14409. ;;
  14410. *)
  14411. ;;
  14412. esac
  14413. ;;
  14414. vxworks*)
  14415. ;;
  14416. *)
  14417. lt_prog_compiler_can_build_shared_CXX=no
  14418. ;;
  14419. esac
  14420. fi
  14421. case $host_os in
  14422. # For platforms that do not support PIC, -DPIC is meaningless:
  14423. *djgpp*)
  14424. lt_prog_compiler_pic_CXX=
  14425. ;;
  14426. *)
  14427. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14428. ;;
  14429. esac
  14430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14431. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  14432. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  14433. $as_echo_n "(cached) " >&6
  14434. else
  14435. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14436. fi
  14437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14438. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14439. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14440. #
  14441. # Check to make sure the PIC flag actually works.
  14442. #
  14443. if test -n "$lt_prog_compiler_pic_CXX"; then
  14444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14445. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14446. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  14447. $as_echo_n "(cached) " >&6
  14448. else
  14449. lt_cv_prog_compiler_pic_works_CXX=no
  14450. ac_outfile=conftest.$ac_objext
  14451. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14452. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14453. # Insert the option either (1) after the last *FLAGS variable, or
  14454. # (2) before a word containing "conftest.", or (3) at the end.
  14455. # Note that $ac_compile itself does not contain backslashes and begins
  14456. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14457. # The option is referenced via a variable to avoid confusing sed.
  14458. lt_compile=`echo "$ac_compile" | $SED \
  14459. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14460. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14461. -e 's:$: $lt_compiler_flag:'`
  14462. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14463. (eval "$lt_compile" 2>conftest.err)
  14464. ac_status=$?
  14465. cat conftest.err >&5
  14466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14467. if (exit $ac_status) && test -s "$ac_outfile"; then
  14468. # The compiler can only warn and ignore the option if not recognized
  14469. # So say no if there are warnings other than the usual output.
  14470. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14471. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14472. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14473. lt_cv_prog_compiler_pic_works_CXX=yes
  14474. fi
  14475. fi
  14476. $RM conftest*
  14477. fi
  14478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14479. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14480. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14481. case $lt_prog_compiler_pic_CXX in
  14482. "" | " "*) ;;
  14483. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14484. esac
  14485. else
  14486. lt_prog_compiler_pic_CXX=
  14487. lt_prog_compiler_can_build_shared_CXX=no
  14488. fi
  14489. fi
  14490. #
  14491. # Check to make sure the static flag actually works.
  14492. #
  14493. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14495. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14496. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  14497. $as_echo_n "(cached) " >&6
  14498. else
  14499. lt_cv_prog_compiler_static_works_CXX=no
  14500. save_LDFLAGS=$LDFLAGS
  14501. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14502. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14503. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14504. # The linker can only warn and ignore the option if not recognized
  14505. # So say no if there are warnings
  14506. if test -s conftest.err; then
  14507. # Append any errors to the config.log.
  14508. cat conftest.err 1>&5
  14509. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14510. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14511. if diff conftest.exp conftest.er2 >/dev/null; then
  14512. lt_cv_prog_compiler_static_works_CXX=yes
  14513. fi
  14514. else
  14515. lt_cv_prog_compiler_static_works_CXX=yes
  14516. fi
  14517. fi
  14518. $RM -r conftest*
  14519. LDFLAGS=$save_LDFLAGS
  14520. fi
  14521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14522. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14523. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14524. :
  14525. else
  14526. lt_prog_compiler_static_CXX=
  14527. fi
  14528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14529. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14530. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  14531. $as_echo_n "(cached) " >&6
  14532. else
  14533. lt_cv_prog_compiler_c_o_CXX=no
  14534. $RM -r conftest 2>/dev/null
  14535. mkdir conftest
  14536. cd conftest
  14537. mkdir out
  14538. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14539. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14540. # Insert the option either (1) after the last *FLAGS variable, or
  14541. # (2) before a word containing "conftest.", or (3) at the end.
  14542. # Note that $ac_compile itself does not contain backslashes and begins
  14543. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14544. lt_compile=`echo "$ac_compile" | $SED \
  14545. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14546. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14547. -e 's:$: $lt_compiler_flag:'`
  14548. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14549. (eval "$lt_compile" 2>out/conftest.err)
  14550. ac_status=$?
  14551. cat out/conftest.err >&5
  14552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14553. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14554. then
  14555. # The compiler can only warn and ignore the option if not recognized
  14556. # So say no if there are warnings
  14557. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14558. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14559. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14560. lt_cv_prog_compiler_c_o_CXX=yes
  14561. fi
  14562. fi
  14563. chmod u+w . 2>&5
  14564. $RM conftest*
  14565. # SGI C++ compiler will create directory out/ii_files/ for
  14566. # template instantiation
  14567. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14568. $RM out/* && rmdir out
  14569. cd ..
  14570. $RM -r conftest
  14571. $RM conftest*
  14572. fi
  14573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14574. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14576. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14577. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  14578. $as_echo_n "(cached) " >&6
  14579. else
  14580. lt_cv_prog_compiler_c_o_CXX=no
  14581. $RM -r conftest 2>/dev/null
  14582. mkdir conftest
  14583. cd conftest
  14584. mkdir out
  14585. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14586. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14587. # Insert the option either (1) after the last *FLAGS variable, or
  14588. # (2) before a word containing "conftest.", or (3) at the end.
  14589. # Note that $ac_compile itself does not contain backslashes and begins
  14590. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14591. lt_compile=`echo "$ac_compile" | $SED \
  14592. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14593. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14594. -e 's:$: $lt_compiler_flag:'`
  14595. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14596. (eval "$lt_compile" 2>out/conftest.err)
  14597. ac_status=$?
  14598. cat out/conftest.err >&5
  14599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14600. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14601. then
  14602. # The compiler can only warn and ignore the option if not recognized
  14603. # So say no if there are warnings
  14604. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14605. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14606. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14607. lt_cv_prog_compiler_c_o_CXX=yes
  14608. fi
  14609. fi
  14610. chmod u+w . 2>&5
  14611. $RM conftest*
  14612. # SGI C++ compiler will create directory out/ii_files/ for
  14613. # template instantiation
  14614. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14615. $RM out/* && rmdir out
  14616. cd ..
  14617. $RM -r conftest
  14618. $RM conftest*
  14619. fi
  14620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14621. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14622. hard_links=nottested
  14623. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14624. # do not overwrite the value of need_locks provided by the user
  14625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14626. $as_echo_n "checking if we can lock with hard links... " >&6; }
  14627. hard_links=yes
  14628. $RM conftest*
  14629. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14630. touch conftest.a
  14631. ln conftest.a conftest.b 2>&5 || hard_links=no
  14632. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14634. $as_echo "$hard_links" >&6; }
  14635. if test no = "$hard_links"; then
  14636. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14637. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14638. need_locks=warn
  14639. fi
  14640. else
  14641. need_locks=no
  14642. fi
  14643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14644. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14645. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14646. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14647. case $host_os in
  14648. aix[4-9]*)
  14649. # If we're using GNU nm, then we don't want the "-C" option.
  14650. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14651. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14652. # weak defined symbols like other global defined symbols, whereas
  14653. # GNU nm marks them as "W".
  14654. # While the 'weak' keyword is ignored in the Export File, we need
  14655. # it in the Import File for the 'aix-soname' feature, so we have
  14656. # to replace the "-B" option with "-P" for AIX nm.
  14657. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14658. 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'
  14659. else
  14660. 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'
  14661. fi
  14662. ;;
  14663. pw32*)
  14664. export_symbols_cmds_CXX=$ltdll_cmds
  14665. ;;
  14666. cygwin* | mingw* | cegcc*)
  14667. case $cc_basename in
  14668. cl*)
  14669. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14670. ;;
  14671. *)
  14672. 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'
  14673. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14674. ;;
  14675. esac
  14676. ;;
  14677. linux* | k*bsd*-gnu | gnu*)
  14678. link_all_deplibs_CXX=no
  14679. ;;
  14680. *)
  14681. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14682. ;;
  14683. esac
  14684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14685. $as_echo "$ld_shlibs_CXX" >&6; }
  14686. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14687. with_gnu_ld_CXX=$with_gnu_ld
  14688. #
  14689. # Do we need to explicitly link libc?
  14690. #
  14691. case "x$archive_cmds_need_lc_CXX" in
  14692. x|xyes)
  14693. # Assume -lc should be added
  14694. archive_cmds_need_lc_CXX=yes
  14695. if test yes,yes = "$GCC,$enable_shared"; then
  14696. case $archive_cmds_CXX in
  14697. *'~'*)
  14698. # FIXME: we may have to deal with multi-command sequences.
  14699. ;;
  14700. '$CC '*)
  14701. # Test whether the compiler implicitly links with -lc since on some
  14702. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14703. # to ld, don't add -lc before -lgcc.
  14704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14705. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  14706. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  14707. $as_echo_n "(cached) " >&6
  14708. else
  14709. $RM conftest*
  14710. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14711. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14712. (eval $ac_compile) 2>&5
  14713. ac_status=$?
  14714. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14715. test $ac_status = 0; } 2>conftest.err; then
  14716. soname=conftest
  14717. lib=conftest
  14718. libobjs=conftest.$ac_objext
  14719. deplibs=
  14720. wl=$lt_prog_compiler_wl_CXX
  14721. pic_flag=$lt_prog_compiler_pic_CXX
  14722. compiler_flags=-v
  14723. linker_flags=-v
  14724. verstring=
  14725. output_objdir=.
  14726. libname=conftest
  14727. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14728. allow_undefined_flag_CXX=
  14729. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14730. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14731. ac_status=$?
  14732. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14733. test $ac_status = 0; }
  14734. then
  14735. lt_cv_archive_cmds_need_lc_CXX=no
  14736. else
  14737. lt_cv_archive_cmds_need_lc_CXX=yes
  14738. fi
  14739. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14740. else
  14741. cat conftest.err 1>&5
  14742. fi
  14743. $RM conftest*
  14744. fi
  14745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14746. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14747. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14748. ;;
  14749. esac
  14750. fi
  14751. ;;
  14752. esac
  14753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14754. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  14755. library_names_spec=
  14756. libname_spec='lib$name'
  14757. soname_spec=
  14758. shrext_cmds=.so
  14759. postinstall_cmds=
  14760. postuninstall_cmds=
  14761. finish_cmds=
  14762. finish_eval=
  14763. shlibpath_var=
  14764. shlibpath_overrides_runpath=unknown
  14765. version_type=none
  14766. dynamic_linker="$host_os ld.so"
  14767. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14768. need_lib_prefix=unknown
  14769. hardcode_into_libs=no
  14770. # when you set need_version to no, make sure it does not cause -set_version
  14771. # flags to be left without arguments
  14772. need_version=unknown
  14773. case $host_os in
  14774. aix3*)
  14775. version_type=linux # correct to gnu/linux during the next big refactor
  14776. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14777. shlibpath_var=LIBPATH
  14778. # AIX 3 has no versioning support, so we append a major version to the name.
  14779. soname_spec='$libname$release$shared_ext$major'
  14780. ;;
  14781. aix[4-9]*)
  14782. version_type=linux # correct to gnu/linux during the next big refactor
  14783. need_lib_prefix=no
  14784. need_version=no
  14785. hardcode_into_libs=yes
  14786. if test ia64 = "$host_cpu"; then
  14787. # AIX 5 supports IA64
  14788. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14789. shlibpath_var=LD_LIBRARY_PATH
  14790. else
  14791. # With GCC up to 2.95.x, collect2 would create an import file
  14792. # for dependence libraries. The import file would start with
  14793. # the line '#! .'. This would cause the generated library to
  14794. # depend on '.', always an invalid library. This was fixed in
  14795. # development snapshots of GCC prior to 3.0.
  14796. case $host_os in
  14797. aix4 | aix4.[01] | aix4.[01].*)
  14798. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14799. echo ' yes '
  14800. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14801. :
  14802. else
  14803. can_build_shared=no
  14804. fi
  14805. ;;
  14806. esac
  14807. # Using Import Files as archive members, it is possible to support
  14808. # filename-based versioning of shared library archives on AIX. While
  14809. # this would work for both with and without runtime linking, it will
  14810. # prevent static linking of such archives. So we do filename-based
  14811. # shared library versioning with .so extension only, which is used
  14812. # when both runtime linking and shared linking is enabled.
  14813. # Unfortunately, runtime linking may impact performance, so we do
  14814. # not want this to be the default eventually. Also, we use the
  14815. # versioned .so libs for executables only if there is the -brtl
  14816. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14817. # To allow for filename-based versioning support, we need to create
  14818. # libNAME.so.V as an archive file, containing:
  14819. # *) an Import File, referring to the versioned filename of the
  14820. # archive as well as the shared archive member, telling the
  14821. # bitwidth (32 or 64) of that shared object, and providing the
  14822. # list of exported symbols of that shared object, eventually
  14823. # decorated with the 'weak' keyword
  14824. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14825. # it being seen by the linker.
  14826. # At run time we better use the real file rather than another symlink,
  14827. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14828. case $with_aix_soname,$aix_use_runtimelinking in
  14829. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14830. # soname into executable. Probably we can add versioning support to
  14831. # collect2, so additional links can be useful in future.
  14832. aix,yes) # traditional libtool
  14833. dynamic_linker='AIX unversionable lib.so'
  14834. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14835. # instead of lib<name>.a to let people know that these are not
  14836. # typical AIX shared libraries.
  14837. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14838. ;;
  14839. aix,no) # traditional AIX only
  14840. dynamic_linker='AIX lib.a(lib.so.V)'
  14841. # We preserve .a as extension for shared libraries through AIX4.2
  14842. # and later when we are not doing run time linking.
  14843. library_names_spec='$libname$release.a $libname.a'
  14844. soname_spec='$libname$release$shared_ext$major'
  14845. ;;
  14846. svr4,*) # full svr4 only
  14847. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14848. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14849. # We do not specify a path in Import Files, so LIBPATH fires.
  14850. shlibpath_overrides_runpath=yes
  14851. ;;
  14852. *,yes) # both, prefer svr4
  14853. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14854. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14855. # unpreferred sharedlib libNAME.a needs extra handling
  14856. 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"'
  14857. 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"'
  14858. # We do not specify a path in Import Files, so LIBPATH fires.
  14859. shlibpath_overrides_runpath=yes
  14860. ;;
  14861. *,no) # both, prefer aix
  14862. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14863. library_names_spec='$libname$release.a $libname.a'
  14864. soname_spec='$libname$release$shared_ext$major'
  14865. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14866. 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)'
  14867. 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"'
  14868. ;;
  14869. esac
  14870. shlibpath_var=LIBPATH
  14871. fi
  14872. ;;
  14873. amigaos*)
  14874. case $host_cpu in
  14875. powerpc)
  14876. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14877. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14878. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14879. ;;
  14880. m68k)
  14881. library_names_spec='$libname.ixlibrary $libname.a'
  14882. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14883. 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'
  14884. ;;
  14885. esac
  14886. ;;
  14887. beos*)
  14888. library_names_spec='$libname$shared_ext'
  14889. dynamic_linker="$host_os ld.so"
  14890. shlibpath_var=LIBRARY_PATH
  14891. ;;
  14892. bsdi[45]*)
  14893. version_type=linux # correct to gnu/linux during the next big refactor
  14894. need_version=no
  14895. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14896. soname_spec='$libname$release$shared_ext$major'
  14897. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14898. shlibpath_var=LD_LIBRARY_PATH
  14899. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14900. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14901. # the default ld.so.conf also contains /usr/contrib/lib and
  14902. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14903. # libtool to hard-code these into programs
  14904. ;;
  14905. cygwin* | mingw* | pw32* | cegcc*)
  14906. version_type=windows
  14907. shrext_cmds=.dll
  14908. need_version=no
  14909. need_lib_prefix=no
  14910. case $GCC,$cc_basename in
  14911. yes,*)
  14912. # gcc
  14913. library_names_spec='$libname.dll.a'
  14914. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14915. postinstall_cmds='base_file=`basename \$file`~
  14916. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14917. dldir=$destdir/`dirname \$dlpath`~
  14918. test -d \$dldir || mkdir -p \$dldir~
  14919. $install_prog $dir/$dlname \$dldir/$dlname~
  14920. chmod a+x \$dldir/$dlname~
  14921. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14922. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14923. fi'
  14924. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14925. dlpath=$dir/\$dldll~
  14926. $RM \$dlpath'
  14927. shlibpath_overrides_runpath=yes
  14928. case $host_os in
  14929. cygwin*)
  14930. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14931. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14932. ;;
  14933. mingw* | cegcc*)
  14934. # MinGW DLLs use traditional 'lib' prefix
  14935. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14936. ;;
  14937. pw32*)
  14938. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14939. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14940. ;;
  14941. esac
  14942. dynamic_linker='Win32 ld.exe'
  14943. ;;
  14944. *,cl*)
  14945. # Native MSVC
  14946. libname_spec='$name'
  14947. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14948. library_names_spec='$libname.dll.lib'
  14949. case $build_os in
  14950. mingw*)
  14951. sys_lib_search_path_spec=
  14952. lt_save_ifs=$IFS
  14953. IFS=';'
  14954. for lt_path in $LIB
  14955. do
  14956. IFS=$lt_save_ifs
  14957. # Let DOS variable expansion print the short 8.3 style file name.
  14958. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14959. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14960. done
  14961. IFS=$lt_save_ifs
  14962. # Convert to MSYS style.
  14963. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14964. ;;
  14965. cygwin*)
  14966. # Convert to unix form, then to dos form, then back to unix form
  14967. # but this time dos style (no spaces!) so that the unix form looks
  14968. # like /cygdrive/c/PROGRA~1:/cygdr...
  14969. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14970. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14971. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14972. ;;
  14973. *)
  14974. sys_lib_search_path_spec=$LIB
  14975. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14976. # It is most probably a Windows format PATH.
  14977. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14978. else
  14979. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14980. fi
  14981. # FIXME: find the short name or the path components, as spaces are
  14982. # common. (e.g. "Program Files" -> "PROGRA~1")
  14983. ;;
  14984. esac
  14985. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14986. postinstall_cmds='base_file=`basename \$file`~
  14987. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14988. dldir=$destdir/`dirname \$dlpath`~
  14989. test -d \$dldir || mkdir -p \$dldir~
  14990. $install_prog $dir/$dlname \$dldir/$dlname'
  14991. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14992. dlpath=$dir/\$dldll~
  14993. $RM \$dlpath'
  14994. shlibpath_overrides_runpath=yes
  14995. dynamic_linker='Win32 link.exe'
  14996. ;;
  14997. *)
  14998. # Assume MSVC wrapper
  14999. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  15000. dynamic_linker='Win32 ld.exe'
  15001. ;;
  15002. esac
  15003. # FIXME: first we should search . and the directory the executable is in
  15004. shlibpath_var=PATH
  15005. ;;
  15006. darwin* | rhapsody*)
  15007. dynamic_linker="$host_os dyld"
  15008. version_type=darwin
  15009. need_lib_prefix=no
  15010. need_version=no
  15011. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  15012. soname_spec='$libname$release$major$shared_ext'
  15013. shlibpath_overrides_runpath=yes
  15014. shlibpath_var=DYLD_LIBRARY_PATH
  15015. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  15016. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  15017. ;;
  15018. dgux*)
  15019. version_type=linux # correct to gnu/linux during the next big refactor
  15020. need_lib_prefix=no
  15021. need_version=no
  15022. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15023. soname_spec='$libname$release$shared_ext$major'
  15024. shlibpath_var=LD_LIBRARY_PATH
  15025. ;;
  15026. freebsd* | dragonfly*)
  15027. # DragonFly does not have aout. When/if they implement a new
  15028. # versioning mechanism, adjust this.
  15029. if test -x /usr/bin/objformat; then
  15030. objformat=`/usr/bin/objformat`
  15031. else
  15032. case $host_os in
  15033. freebsd[23].*) objformat=aout ;;
  15034. *) objformat=elf ;;
  15035. esac
  15036. fi
  15037. version_type=freebsd-$objformat
  15038. case $version_type in
  15039. freebsd-elf*)
  15040. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15041. soname_spec='$libname$release$shared_ext$major'
  15042. need_version=no
  15043. need_lib_prefix=no
  15044. ;;
  15045. freebsd-*)
  15046. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15047. need_version=yes
  15048. ;;
  15049. esac
  15050. shlibpath_var=LD_LIBRARY_PATH
  15051. case $host_os in
  15052. freebsd2.*)
  15053. shlibpath_overrides_runpath=yes
  15054. ;;
  15055. freebsd3.[01]* | freebsdelf3.[01]*)
  15056. shlibpath_overrides_runpath=yes
  15057. hardcode_into_libs=yes
  15058. ;;
  15059. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  15060. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  15061. shlibpath_overrides_runpath=no
  15062. hardcode_into_libs=yes
  15063. ;;
  15064. *) # from 4.6 on, and DragonFly
  15065. shlibpath_overrides_runpath=yes
  15066. hardcode_into_libs=yes
  15067. ;;
  15068. esac
  15069. ;;
  15070. haiku*)
  15071. version_type=linux # correct to gnu/linux during the next big refactor
  15072. need_lib_prefix=no
  15073. need_version=no
  15074. dynamic_linker="$host_os runtime_loader"
  15075. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15076. soname_spec='$libname$release$shared_ext$major'
  15077. shlibpath_var=LIBRARY_PATH
  15078. shlibpath_overrides_runpath=no
  15079. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  15080. hardcode_into_libs=yes
  15081. ;;
  15082. hpux9* | hpux10* | hpux11*)
  15083. # Give a soname corresponding to the major version so that dld.sl refuses to
  15084. # link against other versions.
  15085. version_type=sunos
  15086. need_lib_prefix=no
  15087. need_version=no
  15088. case $host_cpu in
  15089. ia64*)
  15090. shrext_cmds='.so'
  15091. hardcode_into_libs=yes
  15092. dynamic_linker="$host_os dld.so"
  15093. shlibpath_var=LD_LIBRARY_PATH
  15094. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15095. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15096. soname_spec='$libname$release$shared_ext$major'
  15097. if test 32 = "$HPUX_IA64_MODE"; then
  15098. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  15099. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  15100. else
  15101. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  15102. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  15103. fi
  15104. ;;
  15105. hppa*64*)
  15106. shrext_cmds='.sl'
  15107. hardcode_into_libs=yes
  15108. dynamic_linker="$host_os dld.sl"
  15109. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  15110. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15111. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15112. soname_spec='$libname$release$shared_ext$major'
  15113. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  15114. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15115. ;;
  15116. *)
  15117. shrext_cmds='.sl'
  15118. dynamic_linker="$host_os dld.sl"
  15119. shlibpath_var=SHLIB_PATH
  15120. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15121. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15122. soname_spec='$libname$release$shared_ext$major'
  15123. ;;
  15124. esac
  15125. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  15126. postinstall_cmds='chmod 555 $lib'
  15127. # or fails outright, so override atomically:
  15128. install_override_mode=555
  15129. ;;
  15130. interix[3-9]*)
  15131. version_type=linux # correct to gnu/linux during the next big refactor
  15132. need_lib_prefix=no
  15133. need_version=no
  15134. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15135. soname_spec='$libname$release$shared_ext$major'
  15136. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  15137. shlibpath_var=LD_LIBRARY_PATH
  15138. shlibpath_overrides_runpath=no
  15139. hardcode_into_libs=yes
  15140. ;;
  15141. irix5* | irix6* | nonstopux*)
  15142. case $host_os in
  15143. nonstopux*) version_type=nonstopux ;;
  15144. *)
  15145. if test yes = "$lt_cv_prog_gnu_ld"; then
  15146. version_type=linux # correct to gnu/linux during the next big refactor
  15147. else
  15148. version_type=irix
  15149. fi ;;
  15150. esac
  15151. need_lib_prefix=no
  15152. need_version=no
  15153. soname_spec='$libname$release$shared_ext$major'
  15154. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  15155. case $host_os in
  15156. irix5* | nonstopux*)
  15157. libsuff= shlibsuff=
  15158. ;;
  15159. *)
  15160. case $LD in # libtool.m4 will add one of these switches to LD
  15161. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15162. libsuff= shlibsuff= libmagic=32-bit;;
  15163. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15164. libsuff=32 shlibsuff=N32 libmagic=N32;;
  15165. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15166. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15167. *) libsuff= shlibsuff= libmagic=never-match;;
  15168. esac
  15169. ;;
  15170. esac
  15171. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15172. shlibpath_overrides_runpath=no
  15173. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  15174. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  15175. hardcode_into_libs=yes
  15176. ;;
  15177. # No shared lib support for Linux oldld, aout, or coff.
  15178. linux*oldld* | linux*aout* | linux*coff*)
  15179. dynamic_linker=no
  15180. ;;
  15181. linux*android*)
  15182. version_type=none # Android doesn't support versioned libraries.
  15183. need_lib_prefix=no
  15184. need_version=no
  15185. library_names_spec='$libname$release$shared_ext'
  15186. soname_spec='$libname$release$shared_ext'
  15187. finish_cmds=
  15188. shlibpath_var=LD_LIBRARY_PATH
  15189. shlibpath_overrides_runpath=yes
  15190. # This implies no fast_install, which is unacceptable.
  15191. # Some rework will be needed to allow for fast_install
  15192. # before this can be enabled.
  15193. hardcode_into_libs=yes
  15194. dynamic_linker='Android linker'
  15195. # Don't embed -rpath directories since the linker doesn't support them.
  15196. hardcode_libdir_flag_spec_CXX='-L$libdir'
  15197. ;;
  15198. # This must be glibc/ELF.
  15199. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  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. soname_spec='$libname$release$shared_ext$major'
  15205. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15206. shlibpath_var=LD_LIBRARY_PATH
  15207. shlibpath_overrides_runpath=no
  15208. # Some binutils ld are patched to set DT_RUNPATH
  15209. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  15210. $as_echo_n "(cached) " >&6
  15211. else
  15212. lt_cv_shlibpath_overrides_runpath=no
  15213. save_LDFLAGS=$LDFLAGS
  15214. save_libdir=$libdir
  15215. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  15216. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  15217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15218. /* end confdefs.h. */
  15219. int
  15220. main ()
  15221. {
  15222. ;
  15223. return 0;
  15224. }
  15225. _ACEOF
  15226. if ac_fn_cxx_try_link "$LINENO"; then :
  15227. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  15228. lt_cv_shlibpath_overrides_runpath=yes
  15229. fi
  15230. fi
  15231. rm -f core conftest.err conftest.$ac_objext \
  15232. conftest$ac_exeext conftest.$ac_ext
  15233. LDFLAGS=$save_LDFLAGS
  15234. libdir=$save_libdir
  15235. fi
  15236. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  15237. # This implies no fast_install, which is unacceptable.
  15238. # Some rework will be needed to allow for fast_install
  15239. # before this can be enabled.
  15240. hardcode_into_libs=yes
  15241. # Ideally, we could use ldconfig to report *all* directores which are
  15242. # searched for libraries, however this is still not possible. Aside from not
  15243. # being certain /sbin/ldconfig is available, command
  15244. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  15245. # even though it is searched at run-time. Try to do the best guess by
  15246. # appending ld.so.conf contents (and includes) to the search path.
  15247. if test -f /etc/ld.so.conf; then
  15248. 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' ' '`
  15249. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  15250. fi
  15251. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15252. # powerpc, because MkLinux only supported shared libraries with the
  15253. # GNU dynamic linker. Since this was broken with cross compilers,
  15254. # most powerpc-linux boxes support dynamic linking these days and
  15255. # people can always --disable-shared, the test was removed, and we
  15256. # assume the GNU/Linux dynamic linker is in use.
  15257. dynamic_linker='GNU/Linux ld.so'
  15258. ;;
  15259. netbsdelf*-gnu)
  15260. version_type=linux
  15261. need_lib_prefix=no
  15262. need_version=no
  15263. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15264. soname_spec='${libname}${release}${shared_ext}$major'
  15265. shlibpath_var=LD_LIBRARY_PATH
  15266. shlibpath_overrides_runpath=no
  15267. hardcode_into_libs=yes
  15268. dynamic_linker='NetBSD ld.elf_so'
  15269. ;;
  15270. netbsd*)
  15271. version_type=sunos
  15272. need_lib_prefix=no
  15273. need_version=no
  15274. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15275. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15276. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15277. dynamic_linker='NetBSD (a.out) ld.so'
  15278. else
  15279. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15280. soname_spec='$libname$release$shared_ext$major'
  15281. dynamic_linker='NetBSD ld.elf_so'
  15282. fi
  15283. shlibpath_var=LD_LIBRARY_PATH
  15284. shlibpath_overrides_runpath=yes
  15285. hardcode_into_libs=yes
  15286. ;;
  15287. newsos6)
  15288. version_type=linux # correct to gnu/linux during the next big refactor
  15289. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15290. shlibpath_var=LD_LIBRARY_PATH
  15291. shlibpath_overrides_runpath=yes
  15292. ;;
  15293. *nto* | *qnx*)
  15294. version_type=qnx
  15295. need_lib_prefix=no
  15296. need_version=no
  15297. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15298. soname_spec='$libname$release$shared_ext$major'
  15299. shlibpath_var=LD_LIBRARY_PATH
  15300. shlibpath_overrides_runpath=no
  15301. hardcode_into_libs=yes
  15302. dynamic_linker='ldqnx.so'
  15303. ;;
  15304. openbsd* | bitrig*)
  15305. version_type=sunos
  15306. sys_lib_dlsearch_path_spec=/usr/lib
  15307. need_lib_prefix=no
  15308. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15309. need_version=no
  15310. else
  15311. need_version=yes
  15312. fi
  15313. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15314. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15315. shlibpath_var=LD_LIBRARY_PATH
  15316. shlibpath_overrides_runpath=yes
  15317. ;;
  15318. os2*)
  15319. libname_spec='$name'
  15320. version_type=windows
  15321. shrext_cmds=.dll
  15322. need_version=no
  15323. need_lib_prefix=no
  15324. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15325. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15326. v=$($ECHO $release$versuffix | tr -d .-);
  15327. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15328. $ECHO $n$v`$shared_ext'
  15329. library_names_spec='${libname}_dll.$libext'
  15330. dynamic_linker='OS/2 ld.exe'
  15331. shlibpath_var=BEGINLIBPATH
  15332. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15333. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15334. postinstall_cmds='base_file=`basename \$file`~
  15335. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15336. dldir=$destdir/`dirname \$dlpath`~
  15337. test -d \$dldir || mkdir -p \$dldir~
  15338. $install_prog $dir/$dlname \$dldir/$dlname~
  15339. chmod a+x \$dldir/$dlname~
  15340. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15341. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15342. fi'
  15343. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15344. dlpath=$dir/\$dldll~
  15345. $RM \$dlpath'
  15346. ;;
  15347. osf3* | osf4* | osf5*)
  15348. version_type=osf
  15349. need_lib_prefix=no
  15350. need_version=no
  15351. soname_spec='$libname$release$shared_ext$major'
  15352. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15353. shlibpath_var=LD_LIBRARY_PATH
  15354. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15355. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15356. ;;
  15357. rdos*)
  15358. dynamic_linker=no
  15359. ;;
  15360. solaris*)
  15361. version_type=linux # correct to gnu/linux during the next big refactor
  15362. need_lib_prefix=no
  15363. need_version=no
  15364. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15365. soname_spec='$libname$release$shared_ext$major'
  15366. shlibpath_var=LD_LIBRARY_PATH
  15367. shlibpath_overrides_runpath=yes
  15368. hardcode_into_libs=yes
  15369. # ldd complains unless libraries are executable
  15370. postinstall_cmds='chmod +x $lib'
  15371. ;;
  15372. sunos4*)
  15373. version_type=sunos
  15374. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15375. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15376. shlibpath_var=LD_LIBRARY_PATH
  15377. shlibpath_overrides_runpath=yes
  15378. if test yes = "$with_gnu_ld"; then
  15379. need_lib_prefix=no
  15380. fi
  15381. need_version=yes
  15382. ;;
  15383. sysv4 | sysv4.3*)
  15384. version_type=linux # correct to gnu/linux during the next big refactor
  15385. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15386. soname_spec='$libname$release$shared_ext$major'
  15387. shlibpath_var=LD_LIBRARY_PATH
  15388. case $host_vendor in
  15389. sni)
  15390. shlibpath_overrides_runpath=no
  15391. need_lib_prefix=no
  15392. runpath_var=LD_RUN_PATH
  15393. ;;
  15394. siemens)
  15395. need_lib_prefix=no
  15396. ;;
  15397. motorola)
  15398. need_lib_prefix=no
  15399. need_version=no
  15400. shlibpath_overrides_runpath=no
  15401. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15402. ;;
  15403. esac
  15404. ;;
  15405. sysv4*MP*)
  15406. if test -d /usr/nec; then
  15407. version_type=linux # correct to gnu/linux during the next big refactor
  15408. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15409. soname_spec='$libname$shared_ext.$major'
  15410. shlibpath_var=LD_LIBRARY_PATH
  15411. fi
  15412. ;;
  15413. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15414. version_type=sco
  15415. need_lib_prefix=no
  15416. need_version=no
  15417. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15418. soname_spec='$libname$release$shared_ext$major'
  15419. shlibpath_var=LD_LIBRARY_PATH
  15420. shlibpath_overrides_runpath=yes
  15421. hardcode_into_libs=yes
  15422. if test yes = "$with_gnu_ld"; then
  15423. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15424. else
  15425. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15426. case $host_os in
  15427. sco3.2v5*)
  15428. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15429. ;;
  15430. esac
  15431. fi
  15432. sys_lib_dlsearch_path_spec='/usr/lib'
  15433. ;;
  15434. tpf*)
  15435. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15436. version_type=linux # correct to gnu/linux during the next big refactor
  15437. need_lib_prefix=no
  15438. need_version=no
  15439. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15440. shlibpath_var=LD_LIBRARY_PATH
  15441. shlibpath_overrides_runpath=no
  15442. hardcode_into_libs=yes
  15443. ;;
  15444. uts4*)
  15445. version_type=linux # correct to gnu/linux during the next big refactor
  15446. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15447. soname_spec='$libname$release$shared_ext$major'
  15448. shlibpath_var=LD_LIBRARY_PATH
  15449. ;;
  15450. *)
  15451. dynamic_linker=no
  15452. ;;
  15453. esac
  15454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15455. $as_echo "$dynamic_linker" >&6; }
  15456. test no = "$dynamic_linker" && can_build_shared=no
  15457. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15458. if test yes = "$GCC"; then
  15459. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15460. fi
  15461. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15462. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15463. fi
  15464. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15465. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15466. fi
  15467. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15468. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15469. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15470. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15471. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15472. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15474. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  15475. hardcode_action_CXX=
  15476. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15477. test -n "$runpath_var_CXX" ||
  15478. test yes = "$hardcode_automatic_CXX"; then
  15479. # We can hardcode non-existent directories.
  15480. if test no != "$hardcode_direct_CXX" &&
  15481. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15482. # have to relink, otherwise we might link with an installed library
  15483. # when we should be linking with a yet-to-be-installed one
  15484. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15485. test no != "$hardcode_minus_L_CXX"; then
  15486. # Linking always hardcodes the temporary library directory.
  15487. hardcode_action_CXX=relink
  15488. else
  15489. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15490. hardcode_action_CXX=immediate
  15491. fi
  15492. else
  15493. # We cannot hardcode anything, or else we can only hardcode existing
  15494. # directories.
  15495. hardcode_action_CXX=unsupported
  15496. fi
  15497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15498. $as_echo "$hardcode_action_CXX" >&6; }
  15499. if test relink = "$hardcode_action_CXX" ||
  15500. test yes = "$inherit_rpath_CXX"; then
  15501. # Fast installation is not supported
  15502. enable_fast_install=no
  15503. elif test yes = "$shlibpath_overrides_runpath" ||
  15504. test no = "$enable_shared"; then
  15505. # Fast installation is not necessary
  15506. enable_fast_install=needless
  15507. fi
  15508. fi # test -n "$compiler"
  15509. CC=$lt_save_CC
  15510. CFLAGS=$lt_save_CFLAGS
  15511. LDCXX=$LD
  15512. LD=$lt_save_LD
  15513. GCC=$lt_save_GCC
  15514. with_gnu_ld=$lt_save_with_gnu_ld
  15515. lt_cv_path_LDCXX=$lt_cv_path_LD
  15516. lt_cv_path_LD=$lt_save_path_LD
  15517. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15518. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15519. fi # test yes != "$_lt_caught_CXX_error"
  15520. ac_ext=c
  15521. ac_cpp='$CPP $CPPFLAGS'
  15522. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15523. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15524. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15525. ac_ext=c
  15526. ac_cpp='$CPP $CPPFLAGS'
  15527. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15528. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15529. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  15531. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  15532. # On Suns, sometimes $CPP names a directory.
  15533. if test -n "$CPP" && test -d "$CPP"; then
  15534. CPP=
  15535. fi
  15536. if test -z "$CPP"; then
  15537. if ${ac_cv_prog_CPP+:} false; then :
  15538. $as_echo_n "(cached) " >&6
  15539. else
  15540. # Double quotes because CPP needs to be expanded
  15541. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  15542. do
  15543. ac_preproc_ok=false
  15544. for ac_c_preproc_warn_flag in '' yes
  15545. do
  15546. # Use a header file that comes with gcc, so configuring glibc
  15547. # with a fresh cross-compiler works.
  15548. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15549. # <limits.h> exists even on freestanding compilers.
  15550. # On the NeXT, cc -E runs the code through the compiler's parser,
  15551. # not just through cpp. "Syntax error" is here to catch this case.
  15552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15553. /* end confdefs.h. */
  15554. #ifdef __STDC__
  15555. # include <limits.h>
  15556. #else
  15557. # include <assert.h>
  15558. #endif
  15559. Syntax error
  15560. _ACEOF
  15561. if ac_fn_c_try_cpp "$LINENO"; then :
  15562. else
  15563. # Broken: fails on valid input.
  15564. continue
  15565. fi
  15566. rm -f conftest.err conftest.i conftest.$ac_ext
  15567. # OK, works on sane cases. Now check whether nonexistent headers
  15568. # can be detected and how.
  15569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15570. /* end confdefs.h. */
  15571. #include <ac_nonexistent.h>
  15572. _ACEOF
  15573. if ac_fn_c_try_cpp "$LINENO"; then :
  15574. # Broken: success on invalid input.
  15575. continue
  15576. else
  15577. # Passes both tests.
  15578. ac_preproc_ok=:
  15579. break
  15580. fi
  15581. rm -f conftest.err conftest.i conftest.$ac_ext
  15582. done
  15583. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  15584. rm -f conftest.i conftest.err conftest.$ac_ext
  15585. if $ac_preproc_ok; then :
  15586. break
  15587. fi
  15588. done
  15589. ac_cv_prog_CPP=$CPP
  15590. fi
  15591. CPP=$ac_cv_prog_CPP
  15592. else
  15593. ac_cv_prog_CPP=$CPP
  15594. fi
  15595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  15596. $as_echo "$CPP" >&6; }
  15597. ac_preproc_ok=false
  15598. for ac_c_preproc_warn_flag in '' yes
  15599. do
  15600. # Use a header file that comes with gcc, so configuring glibc
  15601. # with a fresh cross-compiler works.
  15602. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15603. # <limits.h> exists even on freestanding compilers.
  15604. # On the NeXT, cc -E runs the code through the compiler's parser,
  15605. # not just through cpp. "Syntax error" is here to catch this case.
  15606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15607. /* end confdefs.h. */
  15608. #ifdef __STDC__
  15609. # include <limits.h>
  15610. #else
  15611. # include <assert.h>
  15612. #endif
  15613. Syntax error
  15614. _ACEOF
  15615. if ac_fn_c_try_cpp "$LINENO"; then :
  15616. else
  15617. # Broken: fails on valid input.
  15618. continue
  15619. fi
  15620. rm -f conftest.err conftest.i conftest.$ac_ext
  15621. # OK, works on sane cases. Now check whether nonexistent headers
  15622. # can be detected and how.
  15623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15624. /* end confdefs.h. */
  15625. #include <ac_nonexistent.h>
  15626. _ACEOF
  15627. if ac_fn_c_try_cpp "$LINENO"; then :
  15628. # Broken: success on invalid input.
  15629. continue
  15630. else
  15631. # Passes both tests.
  15632. ac_preproc_ok=:
  15633. break
  15634. fi
  15635. rm -f conftest.err conftest.i conftest.$ac_ext
  15636. done
  15637. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  15638. rm -f conftest.i conftest.err conftest.$ac_ext
  15639. if $ac_preproc_ok; then :
  15640. else
  15641. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15642. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15643. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  15644. See \`config.log' for more details" "$LINENO" 5; }
  15645. fi
  15646. ac_ext=c
  15647. ac_cpp='$CPP $CPPFLAGS'
  15648. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15649. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15650. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  15652. $as_echo_n "checking whether ln -s works... " >&6; }
  15653. LN_S=$as_ln_s
  15654. if test "$LN_S" = "ln -s"; then
  15655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15656. $as_echo "yes" >&6; }
  15657. else
  15658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  15659. $as_echo "no, using $LN_S" >&6; }
  15660. fi
  15661. for ac_prog in gawk mawk nawk awk
  15662. do
  15663. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15664. set dummy $ac_prog; ac_word=$2
  15665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15666. $as_echo_n "checking for $ac_word... " >&6; }
  15667. if ${ac_cv_prog_AWK+:} false; then :
  15668. $as_echo_n "(cached) " >&6
  15669. else
  15670. if test -n "$AWK"; then
  15671. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  15672. else
  15673. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15674. for as_dir in $PATH
  15675. do
  15676. IFS=$as_save_IFS
  15677. test -z "$as_dir" && as_dir=.
  15678. for ac_exec_ext in '' $ac_executable_extensions; do
  15679. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15680. ac_cv_prog_AWK="$ac_prog"
  15681. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15682. break 2
  15683. fi
  15684. done
  15685. done
  15686. IFS=$as_save_IFS
  15687. fi
  15688. fi
  15689. AWK=$ac_cv_prog_AWK
  15690. if test -n "$AWK"; then
  15691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  15692. $as_echo "$AWK" >&6; }
  15693. else
  15694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15695. $as_echo "no" >&6; }
  15696. fi
  15697. test -n "$AWK" && break
  15698. done
  15699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  15700. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  15701. if ${ac_cv_path_SED+:} false; then :
  15702. $as_echo_n "(cached) " >&6
  15703. else
  15704. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  15705. for ac_i in 1 2 3 4 5 6 7; do
  15706. ac_script="$ac_script$as_nl$ac_script"
  15707. done
  15708. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  15709. { ac_script=; unset ac_script;}
  15710. if test -z "$SED"; then
  15711. ac_path_SED_found=false
  15712. # Loop through the user's path and test for each of PROGNAME-LIST
  15713. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15714. for as_dir in $PATH
  15715. do
  15716. IFS=$as_save_IFS
  15717. test -z "$as_dir" && as_dir=.
  15718. for ac_prog in sed gsed; do
  15719. for ac_exec_ext in '' $ac_executable_extensions; do
  15720. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  15721. as_fn_executable_p "$ac_path_SED" || continue
  15722. # Check for GNU ac_path_SED and select it if it is found.
  15723. # Check for GNU $ac_path_SED
  15724. case `"$ac_path_SED" --version 2>&1` in
  15725. *GNU*)
  15726. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  15727. *)
  15728. ac_count=0
  15729. $as_echo_n 0123456789 >"conftest.in"
  15730. while :
  15731. do
  15732. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15733. mv "conftest.tmp" "conftest.in"
  15734. cp "conftest.in" "conftest.nl"
  15735. $as_echo '' >> "conftest.nl"
  15736. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15737. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15738. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15739. if test $ac_count -gt ${ac_path_SED_max-0}; then
  15740. # Best one so far, save it but keep looking for a better one
  15741. ac_cv_path_SED="$ac_path_SED"
  15742. ac_path_SED_max=$ac_count
  15743. fi
  15744. # 10*(2^10) chars as input seems more than enough
  15745. test $ac_count -gt 10 && break
  15746. done
  15747. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15748. esac
  15749. $ac_path_SED_found && break 3
  15750. done
  15751. done
  15752. done
  15753. IFS=$as_save_IFS
  15754. if test -z "$ac_cv_path_SED"; then
  15755. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  15756. fi
  15757. else
  15758. ac_cv_path_SED=$SED
  15759. fi
  15760. fi
  15761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  15762. $as_echo "$ac_cv_path_SED" >&6; }
  15763. SED="$ac_cv_path_SED"
  15764. rm -f conftest.sed
  15765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15766. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15767. set x ${MAKE-make}
  15768. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15769. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  15770. $as_echo_n "(cached) " >&6
  15771. else
  15772. cat >conftest.make <<\_ACEOF
  15773. SHELL = /bin/sh
  15774. all:
  15775. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15776. _ACEOF
  15777. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15778. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15779. *@@@%%%=?*=@@@%%%*)
  15780. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15781. *)
  15782. eval ac_cv_prog_make_${ac_make}_set=no;;
  15783. esac
  15784. rm -f conftest.make
  15785. fi
  15786. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15788. $as_echo "yes" >&6; }
  15789. SET_MAKE=
  15790. else
  15791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15792. $as_echo "no" >&6; }
  15793. SET_MAKE="MAKE=${MAKE-make}"
  15794. fi
  15795. # Extract the first word of "printf", so it can be a program name with args.
  15796. set dummy printf; ac_word=$2
  15797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15798. $as_echo_n "checking for $ac_word... " >&6; }
  15799. if ${ac_cv_path_PRINTF+:} false; then :
  15800. $as_echo_n "(cached) " >&6
  15801. else
  15802. case $PRINTF in
  15803. [\\/]* | ?:[\\/]*)
  15804. ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
  15805. ;;
  15806. *)
  15807. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15808. for as_dir in $PATH
  15809. do
  15810. IFS=$as_save_IFS
  15811. test -z "$as_dir" && as_dir=.
  15812. for ac_exec_ext in '' $ac_executable_extensions; do
  15813. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15814. ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
  15815. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15816. break 2
  15817. fi
  15818. done
  15819. done
  15820. IFS=$as_save_IFS
  15821. ;;
  15822. esac
  15823. fi
  15824. PRINTF=$ac_cv_path_PRINTF
  15825. if test -n "$PRINTF"; then
  15826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
  15827. $as_echo "$PRINTF" >&6; }
  15828. else
  15829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15830. $as_echo "no" >&6; }
  15831. fi
  15832. # Extract the first word of "echo", so it can be a program name with args.
  15833. set dummy echo; ac_word=$2
  15834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15835. $as_echo_n "checking for $ac_word... " >&6; }
  15836. if ${ac_cv_path_ECHO+:} false; then :
  15837. $as_echo_n "(cached) " >&6
  15838. else
  15839. case $ECHO in
  15840. [\\/]* | ?:[\\/]*)
  15841. ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
  15842. ;;
  15843. *)
  15844. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15845. for as_dir in $PATH
  15846. do
  15847. IFS=$as_save_IFS
  15848. test -z "$as_dir" && as_dir=.
  15849. for ac_exec_ext in '' $ac_executable_extensions; do
  15850. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15851. ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
  15852. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15853. break 2
  15854. fi
  15855. done
  15856. done
  15857. IFS=$as_save_IFS
  15858. ;;
  15859. esac
  15860. fi
  15861. ECHO=$ac_cv_path_ECHO
  15862. if test -n "$ECHO"; then
  15863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
  15864. $as_echo "$ECHO" >&6; }
  15865. else
  15866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15867. $as_echo "no" >&6; }
  15868. fi
  15869. # Extract the first word of "cut", so it can be a program name with args.
  15870. set dummy cut; ac_word=$2
  15871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15872. $as_echo_n "checking for $ac_word... " >&6; }
  15873. if ${ac_cv_path_CUT+:} false; then :
  15874. $as_echo_n "(cached) " >&6
  15875. else
  15876. case $CUT in
  15877. [\\/]* | ?:[\\/]*)
  15878. ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
  15879. ;;
  15880. *)
  15881. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15882. for as_dir in $PATH
  15883. do
  15884. IFS=$as_save_IFS
  15885. test -z "$as_dir" && as_dir=.
  15886. for ac_exec_ext in '' $ac_executable_extensions; do
  15887. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15888. ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
  15889. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15890. break 2
  15891. fi
  15892. done
  15893. done
  15894. IFS=$as_save_IFS
  15895. ;;
  15896. esac
  15897. fi
  15898. CUT=$ac_cv_path_CUT
  15899. if test -n "$CUT"; then
  15900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
  15901. $as_echo "$CUT" >&6; }
  15902. else
  15903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15904. $as_echo "no" >&6; }
  15905. fi
  15906. # Extract the first word of "autogen", so it can be a program name with args.
  15907. set dummy autogen; ac_word=$2
  15908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15909. $as_echo_n "checking for $ac_word... " >&6; }
  15910. if ${ac_cv_path_AUTOGEN+:} false; then :
  15911. $as_echo_n "(cached) " >&6
  15912. else
  15913. case $AUTOGEN in
  15914. [\\/]* | ?:[\\/]*)
  15915. ac_cv_path_AUTOGEN="$AUTOGEN" # Let the user override the test with a path.
  15916. ;;
  15917. *)
  15918. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15919. for as_dir in $PATH
  15920. do
  15921. IFS=$as_save_IFS
  15922. test -z "$as_dir" && as_dir=.
  15923. for ac_exec_ext in '' $ac_executable_extensions; do
  15924. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15925. ac_cv_path_AUTOGEN="$as_dir/$ac_word$ac_exec_ext"
  15926. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15927. break 2
  15928. fi
  15929. done
  15930. done
  15931. IFS=$as_save_IFS
  15932. ;;
  15933. esac
  15934. fi
  15935. AUTOGEN=$ac_cv_path_AUTOGEN
  15936. if test -n "$AUTOGEN"; then
  15937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOGEN" >&5
  15938. $as_echo "$AUTOGEN" >&6; }
  15939. else
  15940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15941. $as_echo "no" >&6; }
  15942. fi
  15943. # Extract the first word of "groff", so it can be a program name with args.
  15944. set dummy groff; ac_word=$2
  15945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15946. $as_echo_n "checking for $ac_word... " >&6; }
  15947. if ${ac_cv_path_GROFF+:} false; then :
  15948. $as_echo_n "(cached) " >&6
  15949. else
  15950. case $GROFF in
  15951. [\\/]* | ?:[\\/]*)
  15952. ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
  15953. ;;
  15954. *)
  15955. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15956. for as_dir in $PATH
  15957. do
  15958. IFS=$as_save_IFS
  15959. test -z "$as_dir" && as_dir=.
  15960. for ac_exec_ext in '' $ac_executable_extensions; do
  15961. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15962. ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
  15963. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15964. break 2
  15965. fi
  15966. done
  15967. done
  15968. IFS=$as_save_IFS
  15969. ;;
  15970. esac
  15971. fi
  15972. GROFF=$ac_cv_path_GROFF
  15973. if test -n "$GROFF"; then
  15974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
  15975. $as_echo "$GROFF" >&6; }
  15976. else
  15977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15978. $as_echo "no" >&6; }
  15979. fi
  15980. # Extract the first word of "depmod", so it can be a program name with args.
  15981. set dummy depmod; ac_word=$2
  15982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15983. $as_echo_n "checking for $ac_word... " >&6; }
  15984. if ${ac_cv_path_depmod+:} false; then :
  15985. $as_echo_n "(cached) " >&6
  15986. else
  15987. case $depmod in
  15988. [\\/]* | ?:[\\/]*)
  15989. ac_cv_path_depmod="$depmod" # Let the user override the test with a path.
  15990. ;;
  15991. *)
  15992. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15993. as_dummy="$PATH:/sbin"
  15994. for as_dir in $as_dummy
  15995. do
  15996. IFS=$as_save_IFS
  15997. test -z "$as_dir" && as_dir=.
  15998. for ac_exec_ext in '' $ac_executable_extensions; do
  15999. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16000. ac_cv_path_depmod="$as_dir/$ac_word$ac_exec_ext"
  16001. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16002. break 2
  16003. fi
  16004. done
  16005. done
  16006. IFS=$as_save_IFS
  16007. test -z "$ac_cv_path_depmod" && ac_cv_path_depmod="/sbin/depmod"
  16008. ;;
  16009. esac
  16010. fi
  16011. depmod=$ac_cv_path_depmod
  16012. if test -n "$depmod"; then
  16013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $depmod" >&5
  16014. $as_echo "$depmod" >&6; }
  16015. else
  16016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16017. $as_echo "no" >&6; }
  16018. fi
  16019. # Extract the first word of "insmod", so it can be a program name with args.
  16020. set dummy insmod; ac_word=$2
  16021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16022. $as_echo_n "checking for $ac_word... " >&6; }
  16023. if ${ac_cv_path_insmod+:} false; then :
  16024. $as_echo_n "(cached) " >&6
  16025. else
  16026. case $insmod in
  16027. [\\/]* | ?:[\\/]*)
  16028. ac_cv_path_insmod="$insmod" # Let the user override the test with a path.
  16029. ;;
  16030. *)
  16031. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16032. as_dummy="$PATH:/sbin"
  16033. for as_dir in $as_dummy
  16034. do
  16035. IFS=$as_save_IFS
  16036. test -z "$as_dir" && as_dir=.
  16037. for ac_exec_ext in '' $ac_executable_extensions; do
  16038. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16039. ac_cv_path_insmod="$as_dir/$ac_word$ac_exec_ext"
  16040. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16041. break 2
  16042. fi
  16043. done
  16044. done
  16045. IFS=$as_save_IFS
  16046. test -z "$ac_cv_path_insmod" && ac_cv_path_insmod="/sbin/insmod"
  16047. ;;
  16048. esac
  16049. fi
  16050. insmod=$ac_cv_path_insmod
  16051. if test -n "$insmod"; then
  16052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $insmod" >&5
  16053. $as_echo "$insmod" >&6; }
  16054. else
  16055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16056. $as_echo "no" >&6; }
  16057. fi
  16058. # Extract the first word of "rmmod", so it can be a program name with args.
  16059. set dummy rmmod; ac_word=$2
  16060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16061. $as_echo_n "checking for $ac_word... " >&6; }
  16062. if ${ac_cv_path_rmmod+:} false; then :
  16063. $as_echo_n "(cached) " >&6
  16064. else
  16065. case $rmmod in
  16066. [\\/]* | ?:[\\/]*)
  16067. ac_cv_path_rmmod="$rmmod" # Let the user override the test with a path.
  16068. ;;
  16069. *)
  16070. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16071. as_dummy="$PATH:/sbin"
  16072. for as_dir in $as_dummy
  16073. do
  16074. IFS=$as_save_IFS
  16075. test -z "$as_dir" && as_dir=.
  16076. for ac_exec_ext in '' $ac_executable_extensions; do
  16077. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16078. ac_cv_path_rmmod="$as_dir/$ac_word$ac_exec_ext"
  16079. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16080. break 2
  16081. fi
  16082. done
  16083. done
  16084. IFS=$as_save_IFS
  16085. test -z "$ac_cv_path_rmmod" && ac_cv_path_rmmod="/sbin/rmmod"
  16086. ;;
  16087. esac
  16088. fi
  16089. rmmod=$ac_cv_path_rmmod
  16090. if test -n "$rmmod"; then
  16091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rmmod" >&5
  16092. $as_echo "$rmmod" >&6; }
  16093. else
  16094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16095. $as_echo "no" >&6; }
  16096. fi
  16097. case "${enable_local_libopts+set}" in
  16098. set) ;;
  16099. *) enable_local_libopts=yes ;;
  16100. esac
  16101. case "${enable_libopts_install+set}" in
  16102. set) ;;
  16103. *) enable_libopts_install=no ;;
  16104. esac
  16105. AUTOGEN_VERSION="unknown - man pages will not be built"
  16106. if test -n "${AUTOGEN}" ; then
  16107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for autogen version >= ${MAINTAINER_AUTOGEN_VERSION}" >&5
  16108. $as_echo_n "checking for autogen version >= ${MAINTAINER_AUTOGEN_VERSION}... " >&6; }
  16109. AUTOGEN_VERSION=$(${AUTOGEN} -v | ${CUT} -d' ' -f 4)
  16110. AUTOGEN_MAJOR=$(echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 1)
  16111. AUTOGEN_MINOR=$(echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 2)
  16112. AUTOGEN_BUILD=$(echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 3)
  16113. if test -z "$AUTOGEN_BUILD"; then
  16114. AUTOGEN_BUILD=0
  16115. fi
  16116. if (test ${AUTOGEN_MAJOR} -eq 5 && test ${AUTOGEN_MINOR} -eq 18 && test ${AUTOGEN_BUILD} -lt 4) ||
  16117. (test ${AUTOGEN_MAJOR} -eq 5 && test ${AUTOGEN_MINOR} -lt 18) ||
  16118. test ${AUTOGEN_MAJOR} -lt 5 ; then
  16119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16120. $as_echo "no" >&6; }
  16121. if test "x$enable_local_libopts" == "xno"; then
  16122. as_fn_error $? "${AUTOGEN} is too old (${AUTOGEN_VERSION}) for building from source code. Upgrade to 5.18.4 or higher" "$LINENO" 5
  16123. fi
  16124. AUTOGEN_VERSION="${AUTOGEN_VERSION} - downlevel"
  16125. else
  16126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16127. $as_echo "yes" >&6; }
  16128. fi
  16129. if test ! -f src/tcpreplay_opts.c && test "x$enable_local_libopts" = "xyes" ; then
  16130. if test $MAINTAINER_AUTOGEN_VERSION != $AUTOGEN_VERSION ; then
  16131. 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
  16132. fi
  16133. fi
  16134. else
  16135. if test ! -f src/tcpreplay_opts.c ; then
  16136. 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 http://tcpreplay.appneta.com/wiki/installation.html" "$LINENO" 5
  16137. fi
  16138. fi
  16139. $as_echo "#define AUTOGEN_VERSION \${AUTOGEN_VERSION}" >>confdefs.h
  16140. if test "x$enable_local_libopts" = "xyes" ; then
  16141. { $as_echo "$as_me:${as_lineno-$LINENO}: Using included libopts tearoff" >&5
  16142. $as_echo "$as_me: Using included libopts tearoff" >&6;}
  16143. else
  16144. { $as_echo "$as_me:${as_lineno-$LINENO}: Using system libopts" >&5
  16145. $as_echo "$as_me: Using system libopts" >&6;}
  16146. fi
  16147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  16148. $as_echo_n "checking for ANSI C header files... " >&6; }
  16149. if ${ac_cv_header_stdc+:} false; then :
  16150. $as_echo_n "(cached) " >&6
  16151. else
  16152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16153. /* end confdefs.h. */
  16154. #include <stdlib.h>
  16155. #include <stdarg.h>
  16156. #include <string.h>
  16157. #include <float.h>
  16158. int
  16159. main ()
  16160. {
  16161. ;
  16162. return 0;
  16163. }
  16164. _ACEOF
  16165. if ac_fn_c_try_compile "$LINENO"; then :
  16166. ac_cv_header_stdc=yes
  16167. else
  16168. ac_cv_header_stdc=no
  16169. fi
  16170. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16171. if test $ac_cv_header_stdc = yes; then
  16172. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  16173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16174. /* end confdefs.h. */
  16175. #include <string.h>
  16176. _ACEOF
  16177. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16178. $EGREP "memchr" >/dev/null 2>&1; then :
  16179. else
  16180. ac_cv_header_stdc=no
  16181. fi
  16182. rm -f conftest*
  16183. fi
  16184. if test $ac_cv_header_stdc = yes; then
  16185. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  16186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16187. /* end confdefs.h. */
  16188. #include <stdlib.h>
  16189. _ACEOF
  16190. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16191. $EGREP "free" >/dev/null 2>&1; then :
  16192. else
  16193. ac_cv_header_stdc=no
  16194. fi
  16195. rm -f conftest*
  16196. fi
  16197. if test $ac_cv_header_stdc = yes; then
  16198. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  16199. if test "$cross_compiling" = yes; then :
  16200. :
  16201. else
  16202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16203. /* end confdefs.h. */
  16204. #include <ctype.h>
  16205. #include <stdlib.h>
  16206. #if ((' ' & 0x0FF) == 0x020)
  16207. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  16208. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  16209. #else
  16210. # define ISLOWER(c) \
  16211. (('a' <= (c) && (c) <= 'i') \
  16212. || ('j' <= (c) && (c) <= 'r') \
  16213. || ('s' <= (c) && (c) <= 'z'))
  16214. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  16215. #endif
  16216. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  16217. int
  16218. main ()
  16219. {
  16220. int i;
  16221. for (i = 0; i < 256; i++)
  16222. if (XOR (islower (i), ISLOWER (i))
  16223. || toupper (i) != TOUPPER (i))
  16224. return 2;
  16225. return 0;
  16226. }
  16227. _ACEOF
  16228. if ac_fn_c_try_run "$LINENO"; then :
  16229. else
  16230. ac_cv_header_stdc=no
  16231. fi
  16232. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16233. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16234. fi
  16235. fi
  16236. fi
  16237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  16238. $as_echo "$ac_cv_header_stdc" >&6; }
  16239. if test $ac_cv_header_stdc = yes; then
  16240. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  16241. fi
  16242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
  16243. $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
  16244. if ${ac_cv_header_sys_types_h_makedev+:} false; then :
  16245. $as_echo_n "(cached) " >&6
  16246. else
  16247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16248. /* end confdefs.h. */
  16249. #include <sys/types.h>
  16250. int
  16251. main ()
  16252. {
  16253. return makedev(0, 0);
  16254. ;
  16255. return 0;
  16256. }
  16257. _ACEOF
  16258. if ac_fn_c_try_link "$LINENO"; then :
  16259. ac_cv_header_sys_types_h_makedev=yes
  16260. else
  16261. ac_cv_header_sys_types_h_makedev=no
  16262. fi
  16263. rm -f core conftest.err conftest.$ac_objext \
  16264. conftest$ac_exeext conftest.$ac_ext
  16265. fi
  16266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
  16267. $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
  16268. if test $ac_cv_header_sys_types_h_makedev = no; then
  16269. ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
  16270. if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
  16271. $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
  16272. fi
  16273. if test $ac_cv_header_sys_mkdev_h = no; then
  16274. ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
  16275. if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
  16276. $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
  16277. fi
  16278. fi
  16279. fi
  16280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  16281. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  16282. if ${ac_cv_header_stdbool_h+:} false; then :
  16283. $as_echo_n "(cached) " >&6
  16284. else
  16285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16286. /* end confdefs.h. */
  16287. #include <stdbool.h>
  16288. #ifndef bool
  16289. "error: bool is not defined"
  16290. #endif
  16291. #ifndef false
  16292. "error: false is not defined"
  16293. #endif
  16294. #if false
  16295. "error: false is not 0"
  16296. #endif
  16297. #ifndef true
  16298. "error: true is not defined"
  16299. #endif
  16300. #if true != 1
  16301. "error: true is not 1"
  16302. #endif
  16303. #ifndef __bool_true_false_are_defined
  16304. "error: __bool_true_false_are_defined is not defined"
  16305. #endif
  16306. struct s { _Bool s: 1; _Bool t; } s;
  16307. char a[true == 1 ? 1 : -1];
  16308. char b[false == 0 ? 1 : -1];
  16309. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  16310. char d[(bool) 0.5 == true ? 1 : -1];
  16311. /* See body of main program for 'e'. */
  16312. char f[(_Bool) 0.0 == false ? 1 : -1];
  16313. char g[true];
  16314. char h[sizeof (_Bool)];
  16315. char i[sizeof s.t];
  16316. enum { j = false, k = true, l = false * true, m = true * 256 };
  16317. /* The following fails for
  16318. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  16319. _Bool n[m];
  16320. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  16321. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  16322. /* Catch a bug in an HP-UX C compiler. See
  16323. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  16324. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  16325. */
  16326. _Bool q = true;
  16327. _Bool *pq = &q;
  16328. int
  16329. main ()
  16330. {
  16331. bool e = &s;
  16332. *pq |= q;
  16333. *pq |= ! q;
  16334. /* Refer to every declared value, to avoid compiler optimizations. */
  16335. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  16336. + !m + !n + !o + !p + !q + !pq);
  16337. ;
  16338. return 0;
  16339. }
  16340. _ACEOF
  16341. if ac_fn_c_try_compile "$LINENO"; then :
  16342. ac_cv_header_stdbool_h=yes
  16343. else
  16344. ac_cv_header_stdbool_h=no
  16345. fi
  16346. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16347. fi
  16348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  16349. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  16350. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  16351. if test "x$ac_cv_type__Bool" = xyes; then :
  16352. cat >>confdefs.h <<_ACEOF
  16353. #define HAVE__BOOL 1
  16354. _ACEOF
  16355. fi
  16356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16357. $as_echo_n "checking for inline... " >&6; }
  16358. if ${ac_cv_c_inline+:} false; then :
  16359. $as_echo_n "(cached) " >&6
  16360. else
  16361. ac_cv_c_inline=no
  16362. for ac_kw in inline __inline__ __inline; do
  16363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16364. /* end confdefs.h. */
  16365. #ifndef __cplusplus
  16366. typedef int foo_t;
  16367. static $ac_kw foo_t static_foo () {return 0; }
  16368. $ac_kw foo_t foo () {return 0; }
  16369. #endif
  16370. _ACEOF
  16371. if ac_fn_c_try_compile "$LINENO"; then :
  16372. ac_cv_c_inline=$ac_kw
  16373. fi
  16374. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16375. test "$ac_cv_c_inline" != no && break
  16376. done
  16377. fi
  16378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16379. $as_echo "$ac_cv_c_inline" >&6; }
  16380. case $ac_cv_c_inline in
  16381. inline | yes) ;;
  16382. *)
  16383. case $ac_cv_c_inline in
  16384. no) ac_val=;;
  16385. *) ac_val=$ac_cv_c_inline;;
  16386. esac
  16387. cat >>confdefs.h <<_ACEOF
  16388. #ifndef __cplusplus
  16389. #define inline $ac_val
  16390. #endif
  16391. _ACEOF
  16392. ;;
  16393. esac
  16394. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  16395. case $ac_cv_c_int16_t in #(
  16396. no|yes) ;; #(
  16397. *)
  16398. cat >>confdefs.h <<_ACEOF
  16399. #define int16_t $ac_cv_c_int16_t
  16400. _ACEOF
  16401. ;;
  16402. esac
  16403. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  16404. case $ac_cv_c_int32_t in #(
  16405. no|yes) ;; #(
  16406. *)
  16407. cat >>confdefs.h <<_ACEOF
  16408. #define int32_t $ac_cv_c_int32_t
  16409. _ACEOF
  16410. ;;
  16411. esac
  16412. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  16413. case $ac_cv_c_int64_t in #(
  16414. no|yes) ;; #(
  16415. *)
  16416. cat >>confdefs.h <<_ACEOF
  16417. #define int64_t $ac_cv_c_int64_t
  16418. _ACEOF
  16419. ;;
  16420. esac
  16421. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  16422. case $ac_cv_c_int8_t in #(
  16423. no|yes) ;; #(
  16424. *)
  16425. cat >>confdefs.h <<_ACEOF
  16426. #define int8_t $ac_cv_c_int8_t
  16427. _ACEOF
  16428. ;;
  16429. esac
  16430. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  16431. if test "x$ac_cv_type_off_t" = xyes; then :
  16432. else
  16433. cat >>confdefs.h <<_ACEOF
  16434. #define off_t long int
  16435. _ACEOF
  16436. fi
  16437. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  16438. if test "x$ac_cv_type_pid_t" = xyes; then :
  16439. else
  16440. cat >>confdefs.h <<_ACEOF
  16441. #define pid_t int
  16442. _ACEOF
  16443. fi
  16444. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16445. if test "x$ac_cv_type_size_t" = xyes; then :
  16446. else
  16447. cat >>confdefs.h <<_ACEOF
  16448. #define size_t unsigned int
  16449. _ACEOF
  16450. fi
  16451. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  16452. if test "x$ac_cv_type_ssize_t" = xyes; then :
  16453. else
  16454. cat >>confdefs.h <<_ACEOF
  16455. #define ssize_t int
  16456. _ACEOF
  16457. fi
  16458. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  16459. case $ac_cv_c_uint16_t in #(
  16460. no|yes) ;; #(
  16461. *)
  16462. cat >>confdefs.h <<_ACEOF
  16463. #define uint16_t $ac_cv_c_uint16_t
  16464. _ACEOF
  16465. ;;
  16466. esac
  16467. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  16468. case $ac_cv_c_uint32_t in #(
  16469. no|yes) ;; #(
  16470. *)
  16471. $as_echo "#define _UINT32_T 1" >>confdefs.h
  16472. cat >>confdefs.h <<_ACEOF
  16473. #define uint32_t $ac_cv_c_uint32_t
  16474. _ACEOF
  16475. ;;
  16476. esac
  16477. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  16478. case $ac_cv_c_uint64_t in #(
  16479. no|yes) ;; #(
  16480. *)
  16481. $as_echo "#define _UINT64_T 1" >>confdefs.h
  16482. cat >>confdefs.h <<_ACEOF
  16483. #define uint64_t $ac_cv_c_uint64_t
  16484. _ACEOF
  16485. ;;
  16486. esac
  16487. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  16488. case $ac_cv_c_uint8_t in #(
  16489. no|yes) ;; #(
  16490. *)
  16491. $as_echo "#define _UINT8_T 1" >>confdefs.h
  16492. cat >>confdefs.h <<_ACEOF
  16493. #define uint8_t $ac_cv_c_uint8_t
  16494. _ACEOF
  16495. ;;
  16496. esac
  16497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  16498. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  16499. if ${ac_cv_header_time+:} false; then :
  16500. $as_echo_n "(cached) " >&6
  16501. else
  16502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16503. /* end confdefs.h. */
  16504. #include <sys/types.h>
  16505. #include <sys/time.h>
  16506. #include <time.h>
  16507. int
  16508. main ()
  16509. {
  16510. if ((struct tm *) 0)
  16511. return 0;
  16512. ;
  16513. return 0;
  16514. }
  16515. _ACEOF
  16516. if ac_fn_c_try_compile "$LINENO"; then :
  16517. ac_cv_header_time=yes
  16518. else
  16519. ac_cv_header_time=no
  16520. fi
  16521. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16522. fi
  16523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  16524. $as_echo "$ac_cv_header_time" >&6; }
  16525. if test $ac_cv_header_time = yes; then
  16526. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  16527. fi
  16528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  16529. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  16530. if ${ac_cv_c_const+:} false; then :
  16531. $as_echo_n "(cached) " >&6
  16532. else
  16533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16534. /* end confdefs.h. */
  16535. int
  16536. main ()
  16537. {
  16538. #ifndef __cplusplus
  16539. /* Ultrix mips cc rejects this sort of thing. */
  16540. typedef int charset[2];
  16541. const charset cs = { 0, 0 };
  16542. /* SunOS 4.1.1 cc rejects this. */
  16543. char const *const *pcpcc;
  16544. char **ppc;
  16545. /* NEC SVR4.0.2 mips cc rejects this. */
  16546. struct point {int x, y;};
  16547. static struct point const zero = {0,0};
  16548. /* AIX XL C 1.02.0.0 rejects this.
  16549. It does not let you subtract one const X* pointer from another in
  16550. an arm of an if-expression whose if-part is not a constant
  16551. expression */
  16552. const char *g = "string";
  16553. pcpcc = &g + (g ? g-g : 0);
  16554. /* HPUX 7.0 cc rejects these. */
  16555. ++pcpcc;
  16556. ppc = (char**) pcpcc;
  16557. pcpcc = (char const *const *) ppc;
  16558. { /* SCO 3.2v4 cc rejects this sort of thing. */
  16559. char tx;
  16560. char *t = &tx;
  16561. char const *s = 0 ? (char *) 0 : (char const *) 0;
  16562. *t++ = 0;
  16563. if (s) return 0;
  16564. }
  16565. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  16566. int x[] = {25, 17};
  16567. const int *foo = &x[0];
  16568. ++foo;
  16569. }
  16570. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  16571. typedef const int *iptr;
  16572. iptr p = 0;
  16573. ++p;
  16574. }
  16575. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  16576. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  16577. struct s { int j; const int *ap[3]; } bx;
  16578. struct s *b = &bx; b->j = 5;
  16579. }
  16580. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  16581. const int foo = 10;
  16582. if (!foo) return 0;
  16583. }
  16584. return !cs[0] && !zero.x;
  16585. #endif
  16586. ;
  16587. return 0;
  16588. }
  16589. _ACEOF
  16590. if ac_fn_c_try_compile "$LINENO"; then :
  16591. ac_cv_c_const=yes
  16592. else
  16593. ac_cv_c_const=no
  16594. fi
  16595. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16596. fi
  16597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16598. $as_echo "$ac_cv_c_const" >&6; }
  16599. if test $ac_cv_c_const = no; then
  16600. $as_echo "#define const /**/" >>confdefs.h
  16601. fi
  16602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16603. $as_echo_n "checking for inline... " >&6; }
  16604. if ${ac_cv_c_inline+:} false; then :
  16605. $as_echo_n "(cached) " >&6
  16606. else
  16607. ac_cv_c_inline=no
  16608. for ac_kw in inline __inline__ __inline; do
  16609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16610. /* end confdefs.h. */
  16611. #ifndef __cplusplus
  16612. typedef int foo_t;
  16613. static $ac_kw foo_t static_foo () {return 0; }
  16614. $ac_kw foo_t foo () {return 0; }
  16615. #endif
  16616. _ACEOF
  16617. if ac_fn_c_try_compile "$LINENO"; then :
  16618. ac_cv_c_inline=$ac_kw
  16619. fi
  16620. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16621. test "$ac_cv_c_inline" != no && break
  16622. done
  16623. fi
  16624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16625. $as_echo "$ac_cv_c_inline" >&6; }
  16626. case $ac_cv_c_inline in
  16627. inline | yes) ;;
  16628. *)
  16629. case $ac_cv_c_inline in
  16630. no) ac_val=;;
  16631. *) ac_val=$ac_cv_c_inline;;
  16632. esac
  16633. cat >>confdefs.h <<_ACEOF
  16634. #ifndef __cplusplus
  16635. #define inline $ac_val
  16636. #endif
  16637. _ACEOF
  16638. ;;
  16639. esac
  16640. # Check whether --enable-largefile was given.
  16641. if test "${enable_largefile+set}" = set; then :
  16642. enableval=$enable_largefile;
  16643. fi
  16644. if test "$enable_largefile" != no; then
  16645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  16646. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  16647. if ${ac_cv_sys_largefile_CC+:} false; then :
  16648. $as_echo_n "(cached) " >&6
  16649. else
  16650. ac_cv_sys_largefile_CC=no
  16651. if test "$GCC" != yes; then
  16652. ac_save_CC=$CC
  16653. while :; do
  16654. # IRIX 6.2 and later do not support large files by default,
  16655. # so use the C compiler's -n32 option if that helps.
  16656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16657. /* end confdefs.h. */
  16658. #include <sys/types.h>
  16659. /* Check that off_t can represent 2**63 - 1 correctly.
  16660. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16661. since some C++ compilers masquerading as C compilers
  16662. incorrectly reject 9223372036854775807. */
  16663. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16664. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16665. && LARGE_OFF_T % 2147483647 == 1)
  16666. ? 1 : -1];
  16667. int
  16668. main ()
  16669. {
  16670. ;
  16671. return 0;
  16672. }
  16673. _ACEOF
  16674. if ac_fn_c_try_compile "$LINENO"; then :
  16675. break
  16676. fi
  16677. rm -f core conftest.err conftest.$ac_objext
  16678. CC="$CC -n32"
  16679. if ac_fn_c_try_compile "$LINENO"; then :
  16680. ac_cv_sys_largefile_CC=' -n32'; break
  16681. fi
  16682. rm -f core conftest.err conftest.$ac_objext
  16683. break
  16684. done
  16685. CC=$ac_save_CC
  16686. rm -f conftest.$ac_ext
  16687. fi
  16688. fi
  16689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  16690. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  16691. if test "$ac_cv_sys_largefile_CC" != no; then
  16692. CC=$CC$ac_cv_sys_largefile_CC
  16693. fi
  16694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  16695. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  16696. if ${ac_cv_sys_file_offset_bits+:} false; then :
  16697. $as_echo_n "(cached) " >&6
  16698. else
  16699. while :; do
  16700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16701. /* end confdefs.h. */
  16702. #include <sys/types.h>
  16703. /* Check that off_t can represent 2**63 - 1 correctly.
  16704. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16705. since some C++ compilers masquerading as C compilers
  16706. incorrectly reject 9223372036854775807. */
  16707. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16708. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16709. && LARGE_OFF_T % 2147483647 == 1)
  16710. ? 1 : -1];
  16711. int
  16712. main ()
  16713. {
  16714. ;
  16715. return 0;
  16716. }
  16717. _ACEOF
  16718. if ac_fn_c_try_compile "$LINENO"; then :
  16719. ac_cv_sys_file_offset_bits=no; break
  16720. fi
  16721. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16723. /* end confdefs.h. */
  16724. #define _FILE_OFFSET_BITS 64
  16725. #include <sys/types.h>
  16726. /* Check that off_t can represent 2**63 - 1 correctly.
  16727. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16728. since some C++ compilers masquerading as C compilers
  16729. incorrectly reject 9223372036854775807. */
  16730. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16731. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16732. && LARGE_OFF_T % 2147483647 == 1)
  16733. ? 1 : -1];
  16734. int
  16735. main ()
  16736. {
  16737. ;
  16738. return 0;
  16739. }
  16740. _ACEOF
  16741. if ac_fn_c_try_compile "$LINENO"; then :
  16742. ac_cv_sys_file_offset_bits=64; break
  16743. fi
  16744. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16745. ac_cv_sys_file_offset_bits=unknown
  16746. break
  16747. done
  16748. fi
  16749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  16750. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  16751. case $ac_cv_sys_file_offset_bits in #(
  16752. no | unknown) ;;
  16753. *)
  16754. cat >>confdefs.h <<_ACEOF
  16755. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  16756. _ACEOF
  16757. ;;
  16758. esac
  16759. rm -rf conftest*
  16760. if test $ac_cv_sys_file_offset_bits = unknown; then
  16761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  16762. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  16763. if ${ac_cv_sys_large_files+:} false; then :
  16764. $as_echo_n "(cached) " >&6
  16765. else
  16766. while :; do
  16767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16768. /* end confdefs.h. */
  16769. #include <sys/types.h>
  16770. /* Check that off_t can represent 2**63 - 1 correctly.
  16771. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16772. since some C++ compilers masquerading as C compilers
  16773. incorrectly reject 9223372036854775807. */
  16774. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16775. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16776. && LARGE_OFF_T % 2147483647 == 1)
  16777. ? 1 : -1];
  16778. int
  16779. main ()
  16780. {
  16781. ;
  16782. return 0;
  16783. }
  16784. _ACEOF
  16785. if ac_fn_c_try_compile "$LINENO"; then :
  16786. ac_cv_sys_large_files=no; break
  16787. fi
  16788. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16790. /* end confdefs.h. */
  16791. #define _LARGE_FILES 1
  16792. #include <sys/types.h>
  16793. /* Check that off_t can represent 2**63 - 1 correctly.
  16794. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16795. since some C++ compilers masquerading as C compilers
  16796. incorrectly reject 9223372036854775807. */
  16797. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16798. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16799. && LARGE_OFF_T % 2147483647 == 1)
  16800. ? 1 : -1];
  16801. int
  16802. main ()
  16803. {
  16804. ;
  16805. return 0;
  16806. }
  16807. _ACEOF
  16808. if ac_fn_c_try_compile "$LINENO"; then :
  16809. ac_cv_sys_large_files=1; break
  16810. fi
  16811. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16812. ac_cv_sys_large_files=unknown
  16813. break
  16814. done
  16815. fi
  16816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  16817. $as_echo "$ac_cv_sys_large_files" >&6; }
  16818. case $ac_cv_sys_large_files in #(
  16819. no | unknown) ;;
  16820. *)
  16821. cat >>confdefs.h <<_ACEOF
  16822. #define _LARGE_FILES $ac_cv_sys_large_files
  16823. _ACEOF
  16824. ;;
  16825. esac
  16826. rm -rf conftest*
  16827. fi
  16828. fi
  16829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  16830. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  16831. if ${ac_cv_sys_largefile_source+:} false; then :
  16832. $as_echo_n "(cached) " >&6
  16833. else
  16834. while :; do
  16835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16836. /* end confdefs.h. */
  16837. #include <sys/types.h> /* for off_t */
  16838. #include <stdio.h>
  16839. int
  16840. main ()
  16841. {
  16842. int (*fp) (FILE *, off_t, int) = fseeko;
  16843. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  16844. ;
  16845. return 0;
  16846. }
  16847. _ACEOF
  16848. if ac_fn_c_try_link "$LINENO"; then :
  16849. ac_cv_sys_largefile_source=no; break
  16850. fi
  16851. rm -f core conftest.err conftest.$ac_objext \
  16852. conftest$ac_exeext conftest.$ac_ext
  16853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16854. /* end confdefs.h. */
  16855. #define _LARGEFILE_SOURCE 1
  16856. #include <sys/types.h> /* for off_t */
  16857. #include <stdio.h>
  16858. int
  16859. main ()
  16860. {
  16861. int (*fp) (FILE *, off_t, int) = fseeko;
  16862. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  16863. ;
  16864. return 0;
  16865. }
  16866. _ACEOF
  16867. if ac_fn_c_try_link "$LINENO"; then :
  16868. ac_cv_sys_largefile_source=1; break
  16869. fi
  16870. rm -f core conftest.err conftest.$ac_objext \
  16871. conftest$ac_exeext conftest.$ac_ext
  16872. ac_cv_sys_largefile_source=unknown
  16873. break
  16874. done
  16875. fi
  16876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  16877. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  16878. case $ac_cv_sys_largefile_source in #(
  16879. no | unknown) ;;
  16880. *)
  16881. cat >>confdefs.h <<_ACEOF
  16882. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  16883. _ACEOF
  16884. ;;
  16885. esac
  16886. rm -rf conftest*
  16887. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  16888. # in glibc 2.1.3, but that breaks too many other things.
  16889. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  16890. if test $ac_cv_sys_largefile_source != unknown; then
  16891. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  16892. fi
  16893. ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
  16894. if test "x$ac_cv_type_u_int8_t" = xyes; then :
  16895. else
  16896. cat >>confdefs.h <<_ACEOF
  16897. #define u_int8_t uint8_t
  16898. _ACEOF
  16899. fi
  16900. ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
  16901. if test "x$ac_cv_type_u_int16_t" = xyes; then :
  16902. else
  16903. cat >>confdefs.h <<_ACEOF
  16904. #define u_int16_t uint16_t
  16905. _ACEOF
  16906. fi
  16907. ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
  16908. if test "x$ac_cv_type_u_int32_t" = xyes; then :
  16909. else
  16910. cat >>confdefs.h <<_ACEOF
  16911. #define u_int32_t uint32_t
  16912. _ACEOF
  16913. fi
  16914. ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
  16915. if test "x$ac_cv_type_u_int64_t" = xyes; then :
  16916. else
  16917. cat >>confdefs.h <<_ACEOF
  16918. #define u_int64_t uint64_t
  16919. _ACEOF
  16920. fi
  16921. wno_format=""
  16922. wno_macro_redefined=""
  16923. case $host in
  16924. *-apple-darwin*)
  16925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-macro-redefined" >&5
  16926. $as_echo_n "checking for $CC -Wno-macro-redefined... " >&6; }
  16927. OLD_CFLAGS=$CFLAGS
  16928. CFLAGS="$CFLAGS -Wno-macro-redefined -Werror"
  16929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16930. /* end confdefs.h. */
  16931. #include <stdlib.h>
  16932. int main(int argc, char *argv[]) { return(0); }
  16933. _ACEOF
  16934. if ac_fn_c_try_compile "$LINENO"; then :
  16935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16936. $as_echo "yes" >&6; }
  16937. wno_macro_redefined="-Wno-macro-redefined"
  16938. else
  16939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16940. $as_echo "no" >&6; }
  16941. fi
  16942. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16943. CFLAGS="$OLD_CFLAGS $wno_macro_redefined"
  16944. CFLAGS="$CFLAGS -Wno-format -Werror"
  16945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16946. /* end confdefs.h. */
  16947. #include <stdlib.h>
  16948. int main(int argc, char *argv[]) { return(0); }
  16949. _ACEOF
  16950. if ac_fn_c_try_compile "$LINENO"; then :
  16951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16952. $as_echo "yes" >&6; }
  16953. wno_format="-Wno-format"
  16954. else
  16955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16956. $as_echo "no" >&6; }
  16957. fi
  16958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16959. CFLAGS="$OLD_CFLAGS $wno_format"
  16960. ;;
  16961. esac
  16962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wextra support" >&5
  16963. $as_echo_n "checking for $CC -Wextra support... " >&6; }
  16964. OLD_CFLAGS=$CFLAGS
  16965. CFLAGS="$CFLAGS -Wextra -Werror"
  16966. wextra=""
  16967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16968. /* end confdefs.h. */
  16969. #include <stdlib.h>
  16970. int main(int argc, char *argv[]) { return(0); }
  16971. _ACEOF
  16972. if ac_fn_c_try_compile "$LINENO"; then :
  16973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16974. $as_echo "yes" >&6; }
  16975. wextra="-Wextra"
  16976. else
  16977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16978. $as_echo "no" >&6; }
  16979. fi
  16980. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16981. CFLAGS="$OLD_CFLAGS $wextra"
  16982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-variadic-macros support" >&5
  16983. $as_echo_n "checking for $CC -Wno-variadic-macros support... " >&6; }
  16984. OLD_CFLAGS=$CFLAGS
  16985. CFLAGS="$CFLAGS -Wno-variadic-macros -Werror"
  16986. wno_variadic_macros=""
  16987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16988. /* end confdefs.h. */
  16989. #include <stdlib.h>
  16990. int main(int argc, char *argv[]) { return(0); }
  16991. _ACEOF
  16992. if ac_fn_c_try_compile "$LINENO"; then :
  16993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16994. $as_echo "yes" >&6; }
  16995. wno_variadic_macros="-Wno-variadic-macros"
  16996. else
  16997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16998. $as_echo "no" >&6; }
  16999. fi
  17000. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17001. CFLAGS="$OLD_CFLAGS $wno_variadic_macros"
  17002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wfatal-errors support" >&5
  17003. $as_echo_n "checking for $CC -Wfatal-errors support... " >&6; }
  17004. OLD_CFLAGS=$CFLAGS
  17005. CFLAGS="$CFLAGS -Wfatal-errors -Werror"
  17006. wfatal_errors=""
  17007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17008. /* end confdefs.h. */
  17009. #include <stdlib.h>
  17010. int main(int argc, char *argv[]) { return(0); }
  17011. _ACEOF
  17012. if ac_fn_c_try_compile "$LINENO"; then :
  17013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17014. $as_echo "yes" >&6; }
  17015. wfatal_errors="-Wfatal-errors"
  17016. else
  17017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17018. $as_echo "no" >&6; }
  17019. fi
  17020. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17021. CFLAGS="$OLD_CFLAGS $wfatal_errors"
  17022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-format-contains-nul support" >&5
  17023. $as_echo_n "checking for $CC -Wno-format-contains-nul support... " >&6; }
  17024. OLD_CFLAGS=$CFLAGS
  17025. CFLAGS="$CFLAGS -Wno-format-contains-nul -Werror"
  17026. wno_format_contains_nul=""
  17027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17028. /* end confdefs.h. */
  17029. #include <stdlib.h>
  17030. int main(int argc, char *argv[]) { return(0); }
  17031. _ACEOF
  17032. if ac_fn_c_try_compile "$LINENO"; then :
  17033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17034. $as_echo "yes" >&6; }
  17035. wno_format_contains_nul="-Wno-format-contains-nul"
  17036. else
  17037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17038. $as_echo "no" >&6; }
  17039. fi
  17040. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17041. CFLAGS="$OLD_CFLAGS $wno_format_contains_nul"
  17042. for ac_header in fcntl.h stddef.h sys/socket.h arpa/inet.h sys/time.h
  17043. do :
  17044. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17045. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  17046. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  17047. cat >>confdefs.h <<_ACEOF
  17048. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17049. _ACEOF
  17050. fi
  17051. done
  17052. for ac_header in signal.h string.h strings.h sys/types.h stdint.h sys/select.h
  17053. do :
  17054. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17055. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  17056. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  17057. cat >>confdefs.h <<_ACEOF
  17058. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17059. _ACEOF
  17060. fi
  17061. done
  17062. for ac_header in netinet/in.h netinet/in_systm.h poll.h sys/poll.h unistd.h sys/param.h
  17063. do :
  17064. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17065. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  17066. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  17067. cat >>confdefs.h <<_ACEOF
  17068. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17069. _ACEOF
  17070. fi
  17071. done
  17072. for ac_header in inttypes.h libintl.h sys/file.h sys/ioctl.h sys/systeminfo.h
  17073. do :
  17074. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17075. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  17076. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  17077. cat >>confdefs.h <<_ACEOF
  17078. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17079. _ACEOF
  17080. fi
  17081. done
  17082. for ac_header in sys/io.h architecture/i386/pio.h sched.h
  17083. do :
  17084. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17085. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  17086. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  17087. cat >>confdefs.h <<_ACEOF
  17088. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17089. _ACEOF
  17090. fi
  17091. done
  17092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  17093. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  17094. if ${ac_cv_header_stdbool_h+:} false; then :
  17095. $as_echo_n "(cached) " >&6
  17096. else
  17097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17098. /* end confdefs.h. */
  17099. #include <stdbool.h>
  17100. #ifndef bool
  17101. "error: bool is not defined"
  17102. #endif
  17103. #ifndef false
  17104. "error: false is not defined"
  17105. #endif
  17106. #if false
  17107. "error: false is not 0"
  17108. #endif
  17109. #ifndef true
  17110. "error: true is not defined"
  17111. #endif
  17112. #if true != 1
  17113. "error: true is not 1"
  17114. #endif
  17115. #ifndef __bool_true_false_are_defined
  17116. "error: __bool_true_false_are_defined is not defined"
  17117. #endif
  17118. struct s { _Bool s: 1; _Bool t; } s;
  17119. char a[true == 1 ? 1 : -1];
  17120. char b[false == 0 ? 1 : -1];
  17121. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  17122. char d[(bool) 0.5 == true ? 1 : -1];
  17123. /* See body of main program for 'e'. */
  17124. char f[(_Bool) 0.0 == false ? 1 : -1];
  17125. char g[true];
  17126. char h[sizeof (_Bool)];
  17127. char i[sizeof s.t];
  17128. enum { j = false, k = true, l = false * true, m = true * 256 };
  17129. /* The following fails for
  17130. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  17131. _Bool n[m];
  17132. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  17133. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  17134. /* Catch a bug in an HP-UX C compiler. See
  17135. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  17136. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  17137. */
  17138. _Bool q = true;
  17139. _Bool *pq = &q;
  17140. int
  17141. main ()
  17142. {
  17143. bool e = &s;
  17144. *pq |= q;
  17145. *pq |= ! q;
  17146. /* Refer to every declared value, to avoid compiler optimizations. */
  17147. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  17148. + !m + !n + !o + !p + !q + !pq);
  17149. ;
  17150. return 0;
  17151. }
  17152. _ACEOF
  17153. if ac_fn_c_try_compile "$LINENO"; then :
  17154. ac_cv_header_stdbool_h=yes
  17155. else
  17156. ac_cv_header_stdbool_h=no
  17157. fi
  17158. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17159. fi
  17160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  17161. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  17162. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  17163. if test "x$ac_cv_type__Bool" = xyes; then :
  17164. cat >>confdefs.h <<_ACEOF
  17165. #define HAVE__BOOL 1
  17166. _ACEOF
  17167. fi
  17168. if test $ac_cv_header_stdbool_h = yes; then
  17169. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  17170. fi
  17171. for ac_header in sys/sysctl.h net/route.h
  17172. do :
  17173. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17174. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  17175. #if HAVE_SYS_PARAM_H
  17176. #include <sys/param.h>
  17177. #endif
  17178. #if HAVE_SYS_TYPES_H
  17179. #include <sys/types.h>
  17180. #endif
  17181. #if HAVE_SYS_SOCKET_H
  17182. #include <sys/socket.h>
  17183. #endif
  17184. "
  17185. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  17186. cat >>confdefs.h <<_ACEOF
  17187. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17188. _ACEOF
  17189. fi
  17190. done
  17191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  17192. $as_echo_n "checking for socket in -lsocket... " >&6; }
  17193. if ${ac_cv_lib_socket_socket+:} false; then :
  17194. $as_echo_n "(cached) " >&6
  17195. else
  17196. ac_check_lib_save_LIBS=$LIBS
  17197. LIBS="-lsocket $LIBS"
  17198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17199. /* end confdefs.h. */
  17200. /* Override any GCC internal prototype to avoid an error.
  17201. Use char because int might match the return type of a GCC
  17202. builtin and then its argument prototype would still apply. */
  17203. #ifdef __cplusplus
  17204. extern "C"
  17205. #endif
  17206. char socket ();
  17207. int
  17208. main ()
  17209. {
  17210. return socket ();
  17211. ;
  17212. return 0;
  17213. }
  17214. _ACEOF
  17215. if ac_fn_c_try_link "$LINENO"; then :
  17216. ac_cv_lib_socket_socket=yes
  17217. else
  17218. ac_cv_lib_socket_socket=no
  17219. fi
  17220. rm -f core conftest.err conftest.$ac_objext \
  17221. conftest$ac_exeext conftest.$ac_ext
  17222. LIBS=$ac_check_lib_save_LIBS
  17223. fi
  17224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  17225. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  17226. if test "x$ac_cv_lib_socket_socket" = xyes; then :
  17227. cat >>confdefs.h <<_ACEOF
  17228. #define HAVE_LIBSOCKET 1
  17229. _ACEOF
  17230. LIBS="-lsocket $LIBS"
  17231. fi
  17232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17233. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17234. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17235. $as_echo_n "(cached) " >&6
  17236. else
  17237. ac_check_lib_save_LIBS=$LIBS
  17238. LIBS="-lnsl $LIBS"
  17239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17240. /* end confdefs.h. */
  17241. /* Override any GCC internal prototype to avoid an error.
  17242. Use char because int might match the return type of a GCC
  17243. builtin and then its argument prototype would still apply. */
  17244. #ifdef __cplusplus
  17245. extern "C"
  17246. #endif
  17247. char gethostbyname ();
  17248. int
  17249. main ()
  17250. {
  17251. return gethostbyname ();
  17252. ;
  17253. return 0;
  17254. }
  17255. _ACEOF
  17256. if ac_fn_c_try_link "$LINENO"; then :
  17257. ac_cv_lib_nsl_gethostbyname=yes
  17258. else
  17259. ac_cv_lib_nsl_gethostbyname=no
  17260. fi
  17261. rm -f core conftest.err conftest.$ac_objext \
  17262. conftest$ac_exeext conftest.$ac_ext
  17263. LIBS=$ac_check_lib_save_LIBS
  17264. fi
  17265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17266. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17267. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17268. cat >>confdefs.h <<_ACEOF
  17269. #define HAVE_LIBNSL 1
  17270. _ACEOF
  17271. LIBS="-lnsl $LIBS"
  17272. fi
  17273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
  17274. $as_echo_n "checking for nanosleep in -lrt... " >&6; }
  17275. if ${ac_cv_lib_rt_nanosleep+:} false; then :
  17276. $as_echo_n "(cached) " >&6
  17277. else
  17278. ac_check_lib_save_LIBS=$LIBS
  17279. LIBS="-lrt $LIBS"
  17280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17281. /* end confdefs.h. */
  17282. /* Override any GCC internal prototype to avoid an error.
  17283. Use char because int might match the return type of a GCC
  17284. builtin and then its argument prototype would still apply. */
  17285. #ifdef __cplusplus
  17286. extern "C"
  17287. #endif
  17288. char nanosleep ();
  17289. int
  17290. main ()
  17291. {
  17292. return nanosleep ();
  17293. ;
  17294. return 0;
  17295. }
  17296. _ACEOF
  17297. if ac_fn_c_try_link "$LINENO"; then :
  17298. ac_cv_lib_rt_nanosleep=yes
  17299. else
  17300. ac_cv_lib_rt_nanosleep=no
  17301. fi
  17302. rm -f core conftest.err conftest.$ac_objext \
  17303. conftest$ac_exeext conftest.$ac_ext
  17304. LIBS=$ac_check_lib_save_LIBS
  17305. fi
  17306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
  17307. $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
  17308. if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
  17309. cat >>confdefs.h <<_ACEOF
  17310. #define HAVE_LIBRT 1
  17311. _ACEOF
  17312. LIBS="-lrt $LIBS"
  17313. fi
  17314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolv in -lresolv" >&5
  17315. $as_echo_n "checking for resolv in -lresolv... " >&6; }
  17316. if ${ac_cv_lib_resolv_resolv+:} false; then :
  17317. $as_echo_n "(cached) " >&6
  17318. else
  17319. ac_check_lib_save_LIBS=$LIBS
  17320. LIBS="-lresolv $LIBS"
  17321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17322. /* end confdefs.h. */
  17323. /* Override any GCC internal prototype to avoid an error.
  17324. Use char because int might match the return type of a GCC
  17325. builtin and then its argument prototype would still apply. */
  17326. #ifdef __cplusplus
  17327. extern "C"
  17328. #endif
  17329. char resolv ();
  17330. int
  17331. main ()
  17332. {
  17333. return resolv ();
  17334. ;
  17335. return 0;
  17336. }
  17337. _ACEOF
  17338. if ac_fn_c_try_link "$LINENO"; then :
  17339. ac_cv_lib_resolv_resolv=yes
  17340. else
  17341. ac_cv_lib_resolv_resolv=no
  17342. fi
  17343. rm -f core conftest.err conftest.$ac_objext \
  17344. conftest$ac_exeext conftest.$ac_ext
  17345. LIBS=$ac_check_lib_save_LIBS
  17346. fi
  17347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_resolv" >&5
  17348. $as_echo "$ac_cv_lib_resolv_resolv" >&6; }
  17349. if test "x$ac_cv_lib_resolv_resolv" = xyes; then :
  17350. cat >>confdefs.h <<_ACEOF
  17351. #define HAVE_LIBRESOLV 1
  17352. _ACEOF
  17353. LIBS="-lresolv $LIBS"
  17354. fi
  17355. for ac_header in vfork.h
  17356. do :
  17357. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  17358. if test "x$ac_cv_header_vfork_h" = xyes; then :
  17359. cat >>confdefs.h <<_ACEOF
  17360. #define HAVE_VFORK_H 1
  17361. _ACEOF
  17362. fi
  17363. done
  17364. for ac_func in fork vfork
  17365. do :
  17366. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17367. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17368. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17369. cat >>confdefs.h <<_ACEOF
  17370. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17371. _ACEOF
  17372. fi
  17373. done
  17374. if test "x$ac_cv_func_fork" = xyes; then
  17375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  17376. $as_echo_n "checking for working fork... " >&6; }
  17377. if ${ac_cv_func_fork_works+:} false; then :
  17378. $as_echo_n "(cached) " >&6
  17379. else
  17380. if test "$cross_compiling" = yes; then :
  17381. ac_cv_func_fork_works=cross
  17382. else
  17383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17384. /* end confdefs.h. */
  17385. $ac_includes_default
  17386. int
  17387. main ()
  17388. {
  17389. /* By Ruediger Kuhlmann. */
  17390. return fork () < 0;
  17391. ;
  17392. return 0;
  17393. }
  17394. _ACEOF
  17395. if ac_fn_c_try_run "$LINENO"; then :
  17396. ac_cv_func_fork_works=yes
  17397. else
  17398. ac_cv_func_fork_works=no
  17399. fi
  17400. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17401. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17402. fi
  17403. fi
  17404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  17405. $as_echo "$ac_cv_func_fork_works" >&6; }
  17406. else
  17407. ac_cv_func_fork_works=$ac_cv_func_fork
  17408. fi
  17409. if test "x$ac_cv_func_fork_works" = xcross; then
  17410. case $host in
  17411. *-*-amigaos* | *-*-msdosdjgpp*)
  17412. # Override, as these systems have only a dummy fork() stub
  17413. ac_cv_func_fork_works=no
  17414. ;;
  17415. *)
  17416. ac_cv_func_fork_works=yes
  17417. ;;
  17418. esac
  17419. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  17420. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  17421. fi
  17422. ac_cv_func_vfork_works=$ac_cv_func_vfork
  17423. if test "x$ac_cv_func_vfork" = xyes; then
  17424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  17425. $as_echo_n "checking for working vfork... " >&6; }
  17426. if ${ac_cv_func_vfork_works+:} false; then :
  17427. $as_echo_n "(cached) " >&6
  17428. else
  17429. if test "$cross_compiling" = yes; then :
  17430. ac_cv_func_vfork_works=cross
  17431. else
  17432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17433. /* end confdefs.h. */
  17434. /* Thanks to Paul Eggert for this test. */
  17435. $ac_includes_default
  17436. #include <sys/wait.h>
  17437. #ifdef HAVE_VFORK_H
  17438. # include <vfork.h>
  17439. #endif
  17440. /* On some sparc systems, changes by the child to local and incoming
  17441. argument registers are propagated back to the parent. The compiler
  17442. is told about this with #include <vfork.h>, but some compilers
  17443. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  17444. static variable whose address is put into a register that is
  17445. clobbered by the vfork. */
  17446. static void
  17447. #ifdef __cplusplus
  17448. sparc_address_test (int arg)
  17449. # else
  17450. sparc_address_test (arg) int arg;
  17451. #endif
  17452. {
  17453. static pid_t child;
  17454. if (!child) {
  17455. child = vfork ();
  17456. if (child < 0) {
  17457. perror ("vfork");
  17458. _exit(2);
  17459. }
  17460. if (!child) {
  17461. arg = getpid();
  17462. write(-1, "", 0);
  17463. _exit (arg);
  17464. }
  17465. }
  17466. }
  17467. int
  17468. main ()
  17469. {
  17470. pid_t parent = getpid ();
  17471. pid_t child;
  17472. sparc_address_test (0);
  17473. child = vfork ();
  17474. if (child == 0) {
  17475. /* Here is another test for sparc vfork register problems. This
  17476. test uses lots of local variables, at least as many local
  17477. variables as main has allocated so far including compiler
  17478. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  17479. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  17480. reuse the register of parent for one of the local variables,
  17481. since it will think that parent can't possibly be used any more
  17482. in this routine. Assigning to the local variable will thus
  17483. munge parent in the parent process. */
  17484. pid_t
  17485. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  17486. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  17487. /* Convince the compiler that p..p7 are live; otherwise, it might
  17488. use the same hardware register for all 8 local variables. */
  17489. if (p != p1 || p != p2 || p != p3 || p != p4
  17490. || p != p5 || p != p6 || p != p7)
  17491. _exit(1);
  17492. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  17493. from child file descriptors. If the child closes a descriptor
  17494. before it execs or exits, this munges the parent's descriptor
  17495. as well. Test for this by closing stdout in the child. */
  17496. _exit(close(fileno(stdout)) != 0);
  17497. } else {
  17498. int status;
  17499. struct stat st;
  17500. while (wait(&status) != child)
  17501. ;
  17502. return (
  17503. /* Was there some problem with vforking? */
  17504. child < 0
  17505. /* Did the child fail? (This shouldn't happen.) */
  17506. || status
  17507. /* Did the vfork/compiler bug occur? */
  17508. || parent != getpid()
  17509. /* Did the file descriptor bug occur? */
  17510. || fstat(fileno(stdout), &st) != 0
  17511. );
  17512. }
  17513. }
  17514. _ACEOF
  17515. if ac_fn_c_try_run "$LINENO"; then :
  17516. ac_cv_func_vfork_works=yes
  17517. else
  17518. ac_cv_func_vfork_works=no
  17519. fi
  17520. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17521. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17522. fi
  17523. fi
  17524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  17525. $as_echo "$ac_cv_func_vfork_works" >&6; }
  17526. fi;
  17527. if test "x$ac_cv_func_fork_works" = xcross; then
  17528. ac_cv_func_vfork_works=$ac_cv_func_vfork
  17529. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  17530. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  17531. fi
  17532. if test "x$ac_cv_func_vfork_works" = xyes; then
  17533. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  17534. else
  17535. $as_echo "#define vfork fork" >>confdefs.h
  17536. fi
  17537. if test "x$ac_cv_func_fork_works" = xyes; then
  17538. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  17539. fi
  17540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  17541. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  17542. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  17543. $as_echo_n "(cached) " >&6
  17544. else
  17545. rm -f conftest.sym conftest.file
  17546. echo >conftest.file
  17547. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  17548. if test "$cross_compiling" = yes; then :
  17549. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17550. else
  17551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17552. /* end confdefs.h. */
  17553. $ac_includes_default
  17554. int
  17555. main ()
  17556. {
  17557. struct stat sbuf;
  17558. /* Linux will dereference the symlink and fail, as required by POSIX.
  17559. That is better in the sense that it means we will not
  17560. have to compile and use the lstat wrapper. */
  17561. return lstat ("conftest.sym/", &sbuf) == 0;
  17562. ;
  17563. return 0;
  17564. }
  17565. _ACEOF
  17566. if ac_fn_c_try_run "$LINENO"; then :
  17567. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  17568. else
  17569. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17570. fi
  17571. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17572. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17573. fi
  17574. else
  17575. # If the `ln -s' command failed, then we probably don't even
  17576. # have an lstat function.
  17577. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17578. fi
  17579. rm -f conftest.sym conftest.file
  17580. fi
  17581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  17582. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  17583. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  17584. cat >>confdefs.h <<_ACEOF
  17585. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  17586. _ACEOF
  17587. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  17588. case " $LIBOBJS " in
  17589. *" lstat.$ac_objext "* ) ;;
  17590. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  17591. ;;
  17592. esac
  17593. fi
  17594. for ac_header in stdlib.h
  17595. do :
  17596. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  17597. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  17598. cat >>confdefs.h <<_ACEOF
  17599. #define HAVE_STDLIB_H 1
  17600. _ACEOF
  17601. fi
  17602. done
  17603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  17604. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  17605. if ${ac_cv_func_malloc_0_nonnull+:} false; then :
  17606. $as_echo_n "(cached) " >&6
  17607. else
  17608. if test "$cross_compiling" = yes; then :
  17609. ac_cv_func_malloc_0_nonnull=no
  17610. else
  17611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17612. /* end confdefs.h. */
  17613. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  17614. # include <stdlib.h>
  17615. #else
  17616. char *malloc ();
  17617. #endif
  17618. int
  17619. main ()
  17620. {
  17621. return ! malloc (0);
  17622. ;
  17623. return 0;
  17624. }
  17625. _ACEOF
  17626. if ac_fn_c_try_run "$LINENO"; then :
  17627. ac_cv_func_malloc_0_nonnull=yes
  17628. else
  17629. ac_cv_func_malloc_0_nonnull=no
  17630. fi
  17631. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17632. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17633. fi
  17634. fi
  17635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  17636. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  17637. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  17638. $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
  17639. else
  17640. $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
  17641. case " $LIBOBJS " in
  17642. *" malloc.$ac_objext "* ) ;;
  17643. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  17644. ;;
  17645. esac
  17646. $as_echo "#define malloc rpl_malloc" >>confdefs.h
  17647. fi
  17648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  17649. $as_echo_n "checking for working memcmp... " >&6; }
  17650. if ${ac_cv_func_memcmp_working+:} false; then :
  17651. $as_echo_n "(cached) " >&6
  17652. else
  17653. if test "$cross_compiling" = yes; then :
  17654. ac_cv_func_memcmp_working=no
  17655. else
  17656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17657. /* end confdefs.h. */
  17658. $ac_includes_default
  17659. int
  17660. main ()
  17661. {
  17662. /* Some versions of memcmp are not 8-bit clean. */
  17663. char c0 = '\100', c1 = '\200', c2 = '\201';
  17664. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  17665. return 1;
  17666. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  17667. or more and with at least one buffer not starting on a 4-byte boundary.
  17668. William Lewis provided this test program. */
  17669. {
  17670. char foo[21];
  17671. char bar[21];
  17672. int i;
  17673. for (i = 0; i < 4; i++)
  17674. {
  17675. char *a = foo + i;
  17676. char *b = bar + i;
  17677. strcpy (a, "--------01111111");
  17678. strcpy (b, "--------10000000");
  17679. if (memcmp (a, b, 16) >= 0)
  17680. return 1;
  17681. }
  17682. return 0;
  17683. }
  17684. ;
  17685. return 0;
  17686. }
  17687. _ACEOF
  17688. if ac_fn_c_try_run "$LINENO"; then :
  17689. ac_cv_func_memcmp_working=yes
  17690. else
  17691. ac_cv_func_memcmp_working=no
  17692. fi
  17693. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17694. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17695. fi
  17696. fi
  17697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  17698. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  17699. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  17700. *" memcmp.$ac_objext "* ) ;;
  17701. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  17702. ;;
  17703. esac
  17704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  17705. $as_echo_n "checking return type of signal handlers... " >&6; }
  17706. if ${ac_cv_type_signal+:} false; then :
  17707. $as_echo_n "(cached) " >&6
  17708. else
  17709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17710. /* end confdefs.h. */
  17711. #include <sys/types.h>
  17712. #include <signal.h>
  17713. int
  17714. main ()
  17715. {
  17716. return *(signal (0, 0)) (0) == 1;
  17717. ;
  17718. return 0;
  17719. }
  17720. _ACEOF
  17721. if ac_fn_c_try_compile "$LINENO"; then :
  17722. ac_cv_type_signal=int
  17723. else
  17724. ac_cv_type_signal=void
  17725. fi
  17726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17727. fi
  17728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  17729. $as_echo "$ac_cv_type_signal" >&6; }
  17730. cat >>confdefs.h <<_ACEOF
  17731. #define RETSIGTYPE $ac_cv_type_signal
  17732. _ACEOF
  17733. for ac_func in vprintf
  17734. do :
  17735. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  17736. if test "x$ac_cv_func_vprintf" = xyes; then :
  17737. cat >>confdefs.h <<_ACEOF
  17738. #define HAVE_VPRINTF 1
  17739. _ACEOF
  17740. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  17741. if test "x$ac_cv_func__doprnt" = xyes; then :
  17742. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  17743. fi
  17744. fi
  17745. done
  17746. for ac_header in $ac_header_list
  17747. do :
  17748. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17749. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  17750. "
  17751. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  17752. cat >>confdefs.h <<_ACEOF
  17753. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17754. _ACEOF
  17755. fi
  17756. done
  17757. for ac_func in $ac_func_list
  17758. do :
  17759. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17760. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17761. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17762. cat >>confdefs.h <<_ACEOF
  17763. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17764. _ACEOF
  17765. fi
  17766. done
  17767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  17768. $as_echo_n "checking for working mktime... " >&6; }
  17769. if ${ac_cv_func_working_mktime+:} false; then :
  17770. $as_echo_n "(cached) " >&6
  17771. else
  17772. if test "$cross_compiling" = yes; then :
  17773. ac_cv_func_working_mktime=no
  17774. else
  17775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17776. /* end confdefs.h. */
  17777. /* Test program from Paul Eggert and Tony Leneis. */
  17778. #ifdef TIME_WITH_SYS_TIME
  17779. # include <sys/time.h>
  17780. # include <time.h>
  17781. #else
  17782. # ifdef HAVE_SYS_TIME_H
  17783. # include <sys/time.h>
  17784. # else
  17785. # include <time.h>
  17786. # endif
  17787. #endif
  17788. #include <limits.h>
  17789. #include <stdlib.h>
  17790. #ifdef HAVE_UNISTD_H
  17791. # include <unistd.h>
  17792. #endif
  17793. #ifndef HAVE_ALARM
  17794. # define alarm(X) /* empty */
  17795. #endif
  17796. /* Work around redefinition to rpl_putenv by other config tests. */
  17797. #undef putenv
  17798. static time_t time_t_max;
  17799. static time_t time_t_min;
  17800. /* Values we'll use to set the TZ environment variable. */
  17801. static const char *tz_strings[] = {
  17802. (const char *) 0, "TZ=GMT0", "TZ=JST-9",
  17803. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  17804. };
  17805. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  17806. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  17807. Based on a problem report from Andreas Jaeger. */
  17808. static int
  17809. spring_forward_gap ()
  17810. {
  17811. /* glibc (up to about 1998-10-07) failed this test. */
  17812. struct tm tm;
  17813. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17814. instead of "TZ=America/Vancouver" in order to detect the bug even
  17815. on systems that don't support the Olson extension, or don't have the
  17816. full zoneinfo tables installed. */
  17817. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  17818. tm.tm_year = 98;
  17819. tm.tm_mon = 3;
  17820. tm.tm_mday = 5;
  17821. tm.tm_hour = 2;
  17822. tm.tm_min = 0;
  17823. tm.tm_sec = 0;
  17824. tm.tm_isdst = -1;
  17825. return mktime (&tm) != (time_t) -1;
  17826. }
  17827. static int
  17828. mktime_test1 (time_t now)
  17829. {
  17830. struct tm *lt;
  17831. return ! (lt = localtime (&now)) || mktime (lt) == now;
  17832. }
  17833. static int
  17834. mktime_test (time_t now)
  17835. {
  17836. return (mktime_test1 (now)
  17837. && mktime_test1 ((time_t) (time_t_max - now))
  17838. && mktime_test1 ((time_t) (time_t_min + now)));
  17839. }
  17840. static int
  17841. irix_6_4_bug ()
  17842. {
  17843. /* Based on code from Ariel Faigon. */
  17844. struct tm tm;
  17845. tm.tm_year = 96;
  17846. tm.tm_mon = 3;
  17847. tm.tm_mday = 0;
  17848. tm.tm_hour = 0;
  17849. tm.tm_min = 0;
  17850. tm.tm_sec = 0;
  17851. tm.tm_isdst = -1;
  17852. mktime (&tm);
  17853. return tm.tm_mon == 2 && tm.tm_mday == 31;
  17854. }
  17855. static int
  17856. bigtime_test (int j)
  17857. {
  17858. struct tm tm;
  17859. time_t now;
  17860. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  17861. now = mktime (&tm);
  17862. if (now != (time_t) -1)
  17863. {
  17864. struct tm *lt = localtime (&now);
  17865. if (! (lt
  17866. && lt->tm_year == tm.tm_year
  17867. && lt->tm_mon == tm.tm_mon
  17868. && lt->tm_mday == tm.tm_mday
  17869. && lt->tm_hour == tm.tm_hour
  17870. && lt->tm_min == tm.tm_min
  17871. && lt->tm_sec == tm.tm_sec
  17872. && lt->tm_yday == tm.tm_yday
  17873. && lt->tm_wday == tm.tm_wday
  17874. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  17875. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  17876. return 0;
  17877. }
  17878. return 1;
  17879. }
  17880. static int
  17881. year_2050_test ()
  17882. {
  17883. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  17884. ignoring leap seconds. */
  17885. unsigned long int answer = 2527315200UL;
  17886. struct tm tm;
  17887. time_t t;
  17888. tm.tm_year = 2050 - 1900;
  17889. tm.tm_mon = 2 - 1;
  17890. tm.tm_mday = 1;
  17891. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  17892. tm.tm_isdst = -1;
  17893. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17894. instead of "TZ=America/Vancouver" in order to detect the bug even
  17895. on systems that don't support the Olson extension, or don't have the
  17896. full zoneinfo tables installed. */
  17897. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  17898. t = mktime (&tm);
  17899. /* Check that the result is either a failure, or close enough
  17900. to the correct answer that we can assume the discrepancy is
  17901. due to leap seconds. */
  17902. return (t == (time_t) -1
  17903. || (0 < t && answer - 120 <= t && t <= answer + 120));
  17904. }
  17905. int
  17906. main ()
  17907. {
  17908. time_t t, delta;
  17909. int i, j;
  17910. /* This test makes some buggy mktime implementations loop.
  17911. Give up after 60 seconds; a mktime slower than that
  17912. isn't worth using anyway. */
  17913. alarm (60);
  17914. for (;;)
  17915. {
  17916. t = (time_t_max << 1) + 1;
  17917. if (t <= time_t_max)
  17918. break;
  17919. time_t_max = t;
  17920. }
  17921. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  17922. delta = time_t_max / 997; /* a suitable prime number */
  17923. for (i = 0; i < N_STRINGS; i++)
  17924. {
  17925. if (tz_strings[i])
  17926. putenv ((char*) tz_strings[i]);
  17927. for (t = 0; t <= time_t_max - delta; t += delta)
  17928. if (! mktime_test (t))
  17929. return 1;
  17930. if (! (mktime_test ((time_t) 1)
  17931. && mktime_test ((time_t) (60 * 60))
  17932. && mktime_test ((time_t) (60 * 60 * 24))))
  17933. return 1;
  17934. for (j = 1; ; j <<= 1)
  17935. if (! bigtime_test (j))
  17936. return 1;
  17937. else if (INT_MAX / 2 < j)
  17938. break;
  17939. if (! bigtime_test (INT_MAX))
  17940. return 1;
  17941. }
  17942. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  17943. }
  17944. _ACEOF
  17945. if ac_fn_c_try_run "$LINENO"; then :
  17946. ac_cv_func_working_mktime=yes
  17947. else
  17948. ac_cv_func_working_mktime=no
  17949. fi
  17950. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17951. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17952. fi
  17953. fi
  17954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  17955. $as_echo "$ac_cv_func_working_mktime" >&6; }
  17956. if test $ac_cv_func_working_mktime = no; then
  17957. case " $LIBOBJS " in
  17958. *" mktime.$ac_objext "* ) ;;
  17959. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  17960. ;;
  17961. esac
  17962. fi
  17963. for ac_func in getpagesize
  17964. do :
  17965. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  17966. if test "x$ac_cv_func_getpagesize" = xyes; then :
  17967. cat >>confdefs.h <<_ACEOF
  17968. #define HAVE_GETPAGESIZE 1
  17969. _ACEOF
  17970. fi
  17971. done
  17972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  17973. $as_echo_n "checking for working mmap... " >&6; }
  17974. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  17975. $as_echo_n "(cached) " >&6
  17976. else
  17977. if test "$cross_compiling" = yes; then :
  17978. ac_cv_func_mmap_fixed_mapped=no
  17979. else
  17980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17981. /* end confdefs.h. */
  17982. $ac_includes_default
  17983. /* malloc might have been renamed as rpl_malloc. */
  17984. #undef malloc
  17985. /* Thanks to Mike Haertel and Jim Avera for this test.
  17986. Here is a matrix of mmap possibilities:
  17987. mmap private not fixed
  17988. mmap private fixed at somewhere currently unmapped
  17989. mmap private fixed at somewhere already mapped
  17990. mmap shared not fixed
  17991. mmap shared fixed at somewhere currently unmapped
  17992. mmap shared fixed at somewhere already mapped
  17993. For private mappings, we should verify that changes cannot be read()
  17994. back from the file, nor mmap's back from the file at a different
  17995. address. (There have been systems where private was not correctly
  17996. implemented like the infamous i386 svr4.0, and systems where the
  17997. VM page cache was not coherent with the file system buffer cache
  17998. like early versions of FreeBSD and possibly contemporary NetBSD.)
  17999. For shared mappings, we should conversely verify that changes get
  18000. propagated back to all the places they're supposed to be.
  18001. Grep wants private fixed already mapped.
  18002. The main things grep needs to know about mmap are:
  18003. * does it exist and is it safe to write into the mmap'd area
  18004. * how to use it (BSD variants) */
  18005. #include <fcntl.h>
  18006. #include <sys/mman.h>
  18007. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  18008. char *malloc ();
  18009. #endif
  18010. /* This mess was copied from the GNU getpagesize.h. */
  18011. #ifndef HAVE_GETPAGESIZE
  18012. # ifdef _SC_PAGESIZE
  18013. # define getpagesize() sysconf(_SC_PAGESIZE)
  18014. # else /* no _SC_PAGESIZE */
  18015. # ifdef HAVE_SYS_PARAM_H
  18016. # include <sys/param.h>
  18017. # ifdef EXEC_PAGESIZE
  18018. # define getpagesize() EXEC_PAGESIZE
  18019. # else /* no EXEC_PAGESIZE */
  18020. # ifdef NBPG
  18021. # define getpagesize() NBPG * CLSIZE
  18022. # ifndef CLSIZE
  18023. # define CLSIZE 1
  18024. # endif /* no CLSIZE */
  18025. # else /* no NBPG */
  18026. # ifdef NBPC
  18027. # define getpagesize() NBPC
  18028. # else /* no NBPC */
  18029. # ifdef PAGESIZE
  18030. # define getpagesize() PAGESIZE
  18031. # endif /* PAGESIZE */
  18032. # endif /* no NBPC */
  18033. # endif /* no NBPG */
  18034. # endif /* no EXEC_PAGESIZE */
  18035. # else /* no HAVE_SYS_PARAM_H */
  18036. # define getpagesize() 8192 /* punt totally */
  18037. # endif /* no HAVE_SYS_PARAM_H */
  18038. # endif /* no _SC_PAGESIZE */
  18039. #endif /* no HAVE_GETPAGESIZE */
  18040. int
  18041. main ()
  18042. {
  18043. char *data, *data2, *data3;
  18044. const char *cdata2;
  18045. int i, pagesize;
  18046. int fd, fd2;
  18047. pagesize = getpagesize ();
  18048. /* First, make a file with some known garbage in it. */
  18049. data = (char *) malloc (pagesize);
  18050. if (!data)
  18051. return 1;
  18052. for (i = 0; i < pagesize; ++i)
  18053. *(data + i) = rand ();
  18054. umask (0);
  18055. fd = creat ("conftest.mmap", 0600);
  18056. if (fd < 0)
  18057. return 2;
  18058. if (write (fd, data, pagesize) != pagesize)
  18059. return 3;
  18060. close (fd);
  18061. /* Next, check that the tail of a page is zero-filled. File must have
  18062. non-zero length, otherwise we risk SIGBUS for entire page. */
  18063. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  18064. if (fd2 < 0)
  18065. return 4;
  18066. cdata2 = "";
  18067. if (write (fd2, cdata2, 1) != 1)
  18068. return 5;
  18069. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  18070. if (data2 == MAP_FAILED)
  18071. return 6;
  18072. for (i = 0; i < pagesize; ++i)
  18073. if (*(data2 + i))
  18074. return 7;
  18075. close (fd2);
  18076. if (munmap (data2, pagesize))
  18077. return 8;
  18078. /* Next, try to mmap the file at a fixed address which already has
  18079. something else allocated at it. If we can, also make sure that
  18080. we see the same garbage. */
  18081. fd = open ("conftest.mmap", O_RDWR);
  18082. if (fd < 0)
  18083. return 9;
  18084. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  18085. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  18086. return 10;
  18087. for (i = 0; i < pagesize; ++i)
  18088. if (*(data + i) != *(data2 + i))
  18089. return 11;
  18090. /* Finally, make sure that changes to the mapped area do not
  18091. percolate back to the file as seen by read(). (This is a bug on
  18092. some variants of i386 svr4.0.) */
  18093. for (i = 0; i < pagesize; ++i)
  18094. *(data2 + i) = *(data2 + i) + 1;
  18095. data3 = (char *) malloc (pagesize);
  18096. if (!data3)
  18097. return 12;
  18098. if (read (fd, data3, pagesize) != pagesize)
  18099. return 13;
  18100. for (i = 0; i < pagesize; ++i)
  18101. if (*(data + i) != *(data3 + i))
  18102. return 14;
  18103. close (fd);
  18104. return 0;
  18105. }
  18106. _ACEOF
  18107. if ac_fn_c_try_run "$LINENO"; then :
  18108. ac_cv_func_mmap_fixed_mapped=yes
  18109. else
  18110. ac_cv_func_mmap_fixed_mapped=no
  18111. fi
  18112. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18113. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18114. fi
  18115. fi
  18116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  18117. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  18118. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  18119. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  18120. fi
  18121. rm -f conftest.mmap conftest.txt
  18122. for ac_header in stdlib.h
  18123. do :
  18124. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  18125. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  18126. cat >>confdefs.h <<_ACEOF
  18127. #define HAVE_STDLIB_H 1
  18128. _ACEOF
  18129. fi
  18130. done
  18131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
  18132. $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
  18133. if ${ac_cv_func_realloc_0_nonnull+:} false; then :
  18134. $as_echo_n "(cached) " >&6
  18135. else
  18136. if test "$cross_compiling" = yes; then :
  18137. ac_cv_func_realloc_0_nonnull=no
  18138. else
  18139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18140. /* end confdefs.h. */
  18141. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  18142. # include <stdlib.h>
  18143. #else
  18144. char *realloc ();
  18145. #endif
  18146. int
  18147. main ()
  18148. {
  18149. return ! realloc (0, 0);
  18150. ;
  18151. return 0;
  18152. }
  18153. _ACEOF
  18154. if ac_fn_c_try_run "$LINENO"; then :
  18155. ac_cv_func_realloc_0_nonnull=yes
  18156. else
  18157. ac_cv_func_realloc_0_nonnull=no
  18158. fi
  18159. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18160. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18161. fi
  18162. fi
  18163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
  18164. $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
  18165. if test $ac_cv_func_realloc_0_nonnull = yes; then :
  18166. $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
  18167. else
  18168. $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
  18169. case " $LIBOBJS " in
  18170. *" realloc.$ac_objext "* ) ;;
  18171. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  18172. ;;
  18173. esac
  18174. $as_echo "#define realloc rpl_realloc" >>confdefs.h
  18175. fi
  18176. ac_fn_c_check_member "$LINENO" "struct timeval" "tv_sec" "ac_cv_member_struct_timeval_tv_sec" "$ac_includes_default"
  18177. if test "x$ac_cv_member_struct_timeval_tv_sec" = xyes; then :
  18178. cat >>confdefs.h <<_ACEOF
  18179. #define HAVE_STRUCT_TIMEVAL_TV_SEC 1
  18180. _ACEOF
  18181. fi
  18182. for ac_func in alarm atexit bzero dup2 gethostbyname getpagesize gettimeofday
  18183. do :
  18184. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18185. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  18186. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  18187. cat >>confdefs.h <<_ACEOF
  18188. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18189. _ACEOF
  18190. fi
  18191. done
  18192. for ac_func in ctime inet_ntoa memmove memset munmap pow putenv realpath
  18193. do :
  18194. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18195. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  18196. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  18197. cat >>confdefs.h <<_ACEOF
  18198. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18199. _ACEOF
  18200. fi
  18201. done
  18202. for ac_func in regcomp strdup select socket strcasecmp strchr strcspn strdup
  18203. do :
  18204. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18205. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  18206. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  18207. cat >>confdefs.h <<_ACEOF
  18208. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18209. _ACEOF
  18210. fi
  18211. done
  18212. for ac_func in strerror strtol strncpy strtoull poll ntohll mmap snprintf
  18213. do :
  18214. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18215. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  18216. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  18217. cat >>confdefs.h <<_ACEOF
  18218. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18219. _ACEOF
  18220. fi
  18221. done
  18222. for ac_func in vsnprintf strsignal strpbrk strrchr strspn strstr strtoul
  18223. do :
  18224. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18225. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  18226. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  18227. cat >>confdefs.h <<_ACEOF
  18228. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18229. _ACEOF
  18230. fi
  18231. done
  18232. for ac_func in ioperm
  18233. do :
  18234. ac_fn_c_check_func "$LINENO" "ioperm" "ac_cv_func_ioperm"
  18235. if test "x$ac_cv_func_ioperm" = xyes; then :
  18236. cat >>confdefs.h <<_ACEOF
  18237. #define HAVE_IOPERM 1
  18238. _ACEOF
  18239. fi
  18240. done
  18241. for ac_func in strlcpy
  18242. do :
  18243. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  18244. if test "x$ac_cv_func_strlcpy" = xyes; then :
  18245. cat >>confdefs.h <<_ACEOF
  18246. #define HAVE_STRLCPY 1
  18247. _ACEOF
  18248. have_strlcpy=true
  18249. else
  18250. have_strlcpy=false
  18251. fi
  18252. done
  18253. if test x$have_strlcpy = xtrue; then
  18254. SYSTEM_STRLCPY_TRUE=
  18255. SYSTEM_STRLCPY_FALSE='#'
  18256. else
  18257. SYSTEM_STRLCPY_TRUE='#'
  18258. SYSTEM_STRLCPY_FALSE=
  18259. fi
  18260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  18261. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  18262. if ${ac_cv_c_bigendian+:} false; then :
  18263. $as_echo_n "(cached) " >&6
  18264. else
  18265. ac_cv_c_bigendian=unknown
  18266. # See if we're dealing with a universal compiler.
  18267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18268. /* end confdefs.h. */
  18269. #ifndef __APPLE_CC__
  18270. not a universal capable compiler
  18271. #endif
  18272. typedef int dummy;
  18273. _ACEOF
  18274. if ac_fn_c_try_compile "$LINENO"; then :
  18275. # Check for potential -arch flags. It is not universal unless
  18276. # there are at least two -arch flags with different values.
  18277. ac_arch=
  18278. ac_prev=
  18279. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  18280. if test -n "$ac_prev"; then
  18281. case $ac_word in
  18282. i?86 | x86_64 | ppc | ppc64)
  18283. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  18284. ac_arch=$ac_word
  18285. else
  18286. ac_cv_c_bigendian=universal
  18287. break
  18288. fi
  18289. ;;
  18290. esac
  18291. ac_prev=
  18292. elif test "x$ac_word" = "x-arch"; then
  18293. ac_prev=arch
  18294. fi
  18295. done
  18296. fi
  18297. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18298. if test $ac_cv_c_bigendian = unknown; then
  18299. # See if sys/param.h defines the BYTE_ORDER macro.
  18300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18301. /* end confdefs.h. */
  18302. #include <sys/types.h>
  18303. #include <sys/param.h>
  18304. int
  18305. main ()
  18306. {
  18307. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  18308. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  18309. && LITTLE_ENDIAN)
  18310. bogus endian macros
  18311. #endif
  18312. ;
  18313. return 0;
  18314. }
  18315. _ACEOF
  18316. if ac_fn_c_try_compile "$LINENO"; then :
  18317. # It does; now see whether it defined to BIG_ENDIAN or not.
  18318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18319. /* end confdefs.h. */
  18320. #include <sys/types.h>
  18321. #include <sys/param.h>
  18322. int
  18323. main ()
  18324. {
  18325. #if BYTE_ORDER != BIG_ENDIAN
  18326. not big endian
  18327. #endif
  18328. ;
  18329. return 0;
  18330. }
  18331. _ACEOF
  18332. if ac_fn_c_try_compile "$LINENO"; then :
  18333. ac_cv_c_bigendian=yes
  18334. else
  18335. ac_cv_c_bigendian=no
  18336. fi
  18337. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18338. fi
  18339. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18340. fi
  18341. if test $ac_cv_c_bigendian = unknown; then
  18342. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  18343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18344. /* end confdefs.h. */
  18345. #include <limits.h>
  18346. int
  18347. main ()
  18348. {
  18349. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  18350. bogus endian macros
  18351. #endif
  18352. ;
  18353. return 0;
  18354. }
  18355. _ACEOF
  18356. if ac_fn_c_try_compile "$LINENO"; then :
  18357. # It does; now see whether it defined to _BIG_ENDIAN or not.
  18358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18359. /* end confdefs.h. */
  18360. #include <limits.h>
  18361. int
  18362. main ()
  18363. {
  18364. #ifndef _BIG_ENDIAN
  18365. not big endian
  18366. #endif
  18367. ;
  18368. return 0;
  18369. }
  18370. _ACEOF
  18371. if ac_fn_c_try_compile "$LINENO"; then :
  18372. ac_cv_c_bigendian=yes
  18373. else
  18374. ac_cv_c_bigendian=no
  18375. fi
  18376. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18377. fi
  18378. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18379. fi
  18380. if test $ac_cv_c_bigendian = unknown; then
  18381. # Compile a test program.
  18382. if test "$cross_compiling" = yes; then :
  18383. # Try to guess by grepping values from an object file.
  18384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18385. /* end confdefs.h. */
  18386. short int ascii_mm[] =
  18387. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  18388. short int ascii_ii[] =
  18389. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  18390. int use_ascii (int i) {
  18391. return ascii_mm[i] + ascii_ii[i];
  18392. }
  18393. short int ebcdic_ii[] =
  18394. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  18395. short int ebcdic_mm[] =
  18396. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  18397. int use_ebcdic (int i) {
  18398. return ebcdic_mm[i] + ebcdic_ii[i];
  18399. }
  18400. extern int foo;
  18401. int
  18402. main ()
  18403. {
  18404. return use_ascii (foo) == use_ebcdic (foo);
  18405. ;
  18406. return 0;
  18407. }
  18408. _ACEOF
  18409. if ac_fn_c_try_compile "$LINENO"; then :
  18410. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  18411. ac_cv_c_bigendian=yes
  18412. fi
  18413. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  18414. if test "$ac_cv_c_bigendian" = unknown; then
  18415. ac_cv_c_bigendian=no
  18416. else
  18417. # finding both strings is unlikely to happen, but who knows?
  18418. ac_cv_c_bigendian=unknown
  18419. fi
  18420. fi
  18421. fi
  18422. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18423. else
  18424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18425. /* end confdefs.h. */
  18426. $ac_includes_default
  18427. int
  18428. main ()
  18429. {
  18430. /* Are we little or big endian? From Harbison&Steele. */
  18431. union
  18432. {
  18433. long int l;
  18434. char c[sizeof (long int)];
  18435. } u;
  18436. u.l = 1;
  18437. return u.c[sizeof (long int) - 1] == 1;
  18438. ;
  18439. return 0;
  18440. }
  18441. _ACEOF
  18442. if ac_fn_c_try_run "$LINENO"; then :
  18443. ac_cv_c_bigendian=no
  18444. else
  18445. ac_cv_c_bigendian=yes
  18446. fi
  18447. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18448. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18449. fi
  18450. fi
  18451. fi
  18452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  18453. $as_echo "$ac_cv_c_bigendian" >&6; }
  18454. case $ac_cv_c_bigendian in #(
  18455. yes)
  18456. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  18457. ;; #(
  18458. no)
  18459. ;; #(
  18460. universal)
  18461. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  18462. ;; #(
  18463. *)
  18464. as_fn_error $? "unknown endianness
  18465. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  18466. esac
  18467. if test x$ac_cv_c_bigendian = xyes ; then
  18468. WORDS_BIGENDIAN_TRUE=
  18469. WORDS_BIGENDIAN_FALSE='#'
  18470. else
  18471. WORDS_BIGENDIAN_TRUE='#'
  18472. WORDS_BIGENDIAN_FALSE=
  18473. fi
  18474. debug=no
  18475. debug_flag=NDEBUG
  18476. debug_run_time_flag=
  18477. # Check whether --enable-debug was given.
  18478. if test "${enable_debug+set}" = set; then :
  18479. enableval=$enable_debug; if test x$enableval = xyes; then
  18480. debug=yes
  18481. CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9s]*//g'`
  18482. CFLAGS="${CFLAGS} -g -O0 -Wall $wextra $wfatal_errors $wno_variadic_macros $wno_format_contains_nul $wno_format"
  18483. # We may also want to add:
  18484. # -Wformat-security -Wswitch-default -Wunused-paramter -Wpadded"
  18485. debug_flag=DEBUG
  18486. debug_run_time_flag=--dbug=1
  18487. $as_echo "#define DEBUG 1" >>confdefs.h
  18488. fi
  18489. fi
  18490. extra_debug=no
  18491. extra_debug_flag=NEXTRA_DBUG
  18492. # Check whether --enable-extra-debug was given.
  18493. if test "${enable_extra_debug+set}" = set; then :
  18494. enableval=$enable_extra_debug; if test x$enableval = xyes; then
  18495. extra_debug=yes
  18496. extra_debug_flag=EXTRA_DEBUG
  18497. $as_echo "#define EXTRA_DEBUG 1" >>confdefs.h
  18498. fi
  18499. fi
  18500. timestamp_trace=no
  18501. # Check whether --enable-timestamp-trace was given.
  18502. if test "${enable_timestamp_trace+set}" = set; then :
  18503. enableval=$enable_timestamp_trace; if test x$enableval = xyes; then
  18504. timestamp_trace=yes
  18505. CFLAGS="${CFLAGS} -DTIMESTAMP_TRACE"
  18506. $as_echo "#define TIMESTAMP_TRACE 1" >>confdefs.h
  18507. fi
  18508. fi
  18509. # Check whether --enable-dmalloc was given.
  18510. if test "${enable_dmalloc+set}" = set; then :
  18511. enableval=$enable_dmalloc; if test x$enableval = xyes ; then
  18512. dmalloc=yes
  18513. $as_echo "#define ENABLE_DMALLOC 1" >>confdefs.h
  18514. $as_echo "#define DMALLOC_FUNC_CHECK 1" >>confdefs.h
  18515. CFLAGS="${CFLAGS} -I/opt/local/include"
  18516. DMALLOC_LIB="/opt/local/lib/libdmalloc.a"
  18517. fi
  18518. fi
  18519. # Check whether --enable-pedantic was given.
  18520. if test "${enable_pedantic+set}" = set; then :
  18521. enableval=$enable_pedantic; if test x$enableval = xyes; then
  18522. CFLAGS="$CFLAGS -pedantic"
  18523. fi
  18524. fi
  18525. # Check whether --enable-efence was given.
  18526. if test "${enable_efence+set}" = set; then :
  18527. enableval=$enable_efence; if test x$enableval = xyes; then
  18528. CFLAGS="$CFLAGS -lefence"
  18529. $as_echo "#define EFENCE 1" >>confdefs.h
  18530. fi
  18531. fi
  18532. # Check whether --enable-gprof was given.
  18533. if test "${enable_gprof+set}" = set; then :
  18534. enableval=$enable_gprof; if test x$enableval = xyes; then
  18535. if test $debug = yes; then
  18536. CFLAGS="$CFLAGS -pg"
  18537. else
  18538. # GPROF requires gdb
  18539. CFLAGS="$CFLAGS -ggdb -pg -fprofile-arcs"
  18540. fi
  18541. $as_echo "#define GPROF 1" >>confdefs.h
  18542. fi
  18543. fi
  18544. enable_pcap_config=no
  18545. # Check whether --enable-pcapconfig was given.
  18546. if test "${enable_pcapconfig+set}" = set; then :
  18547. enableval=$enable_pcapconfig;
  18548. if test $enableval = yes; then
  18549. enable_pcap_config=yes
  18550. { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling libpcap discovery via pcap_config" >&5
  18551. $as_echo "$as_me: Enabling libpcap discovery via pcap_config" >&6;}
  18552. else
  18553. enable_pcap_config=no
  18554. { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling libpcap discovery via pcap_config" >&5
  18555. $as_echo "$as_me: Disabling libpcap discovery via pcap_config" >&6;}
  18556. fi
  18557. else
  18558. { $as_echo "$as_me:${as_lineno-$LINENO}: Bypassing libpcap discovery via pcap_config" >&5
  18559. $as_echo "$as_me: Bypassing libpcap discovery via pcap_config" >&6;}
  18560. fi
  18561. use64bit_counters=yes
  18562. # Check whether --enable-64bits was given.
  18563. if test "${enable_64bits+set}" = set; then :
  18564. enableval=$enable_64bits;
  18565. { $as_echo "$as_me:${as_lineno-$LINENO}: Using u_int32_t for packet counters" >&5
  18566. $as_echo "$as_me: Using u_int32_t for packet counters" >&6;}
  18567. else
  18568. $as_echo "#define ENABLE_64BITS 1" >>confdefs.h
  18569. { $as_echo "$as_me:${as_lineno-$LINENO}: Using u_int64_t for packet counters" >&5
  18570. $as_echo "$as_me: Using u_int64_t for packet counters" >&6;}
  18571. fi
  18572. # If we're running gcc add '-D_U_="__attribute__((unused))"' to CFLAGS as well,
  18573. # so we can use _U_ to flag unused function arguments and not get warnings
  18574. # about them. Otherwise, add '-D_U_=""', so that _U_ used to flag an unused
  18575. # function argument will compile with non-GCC compilers.
  18576. #
  18577. if test "x$GCC" = "xyes" ; then
  18578. CFLAGS="-D_U_=\"__attribute__((unused))\" $CFLAGS"
  18579. else
  18580. CFLAGS="-D_U_=\"\" $CFLAGS"
  18581. fi
  18582. # Check whether --enable-force-bpf was given.
  18583. if test "${enable_force_bpf+set}" = set; then :
  18584. enableval=$enable_force_bpf;
  18585. $as_echo "#define FORCE_INJECT_BPF 1" >>confdefs.h
  18586. fi
  18587. # Check whether --enable-force-pf was given.
  18588. if test "${enable_force_pf+set}" = set; then :
  18589. enableval=$enable_force_pf;
  18590. $as_echo "#define FORCE_INJECT_PF 1" >>confdefs.h
  18591. fi
  18592. # Check whether --enable-force-libdnet was given.
  18593. if test "${enable_force_libdnet+set}" = set; then :
  18594. enableval=$enable_force_libdnet;
  18595. $as_echo "#define FORCE_INJECT_LIBDNET 1" >>confdefs.h
  18596. fi
  18597. # Check whether --enable-force-inject was given.
  18598. if test "${enable_force_inject+set}" = set; then :
  18599. enableval=$enable_force_inject;
  18600. $as_echo "#define FORCE_INJECT_PCAP_INJECT 1" >>confdefs.h
  18601. fi
  18602. # Check whether --enable-force-sendpacket was given.
  18603. if test "${enable_force_sendpacket+set}" = set; then :
  18604. enableval=$enable_force_sendpacket;
  18605. $as_echo "#define FORCE_INJECT_PCAP_SENDPACKET 1" >>confdefs.h
  18606. fi
  18607. static_link=no
  18608. dynamic_link=yes
  18609. # Check whether --enable-static-link was given.
  18610. if test "${enable_static_link+set}" = set; then :
  18611. enableval=$enable_static_link;
  18612. if test $enableval = yes; then
  18613. static_link=yes
  18614. dynamic_link=no
  18615. fi
  18616. fi
  18617. # Check whether --enable-dynamic-link was given.
  18618. if test "${enable_dynamic_link+set}" = set; then :
  18619. enableval=$enable_dynamic_link;
  18620. if test $enableval = no; then
  18621. dynamic_link=no
  18622. static_link=yes
  18623. elif test $static_link = yes; then
  18624. as_fn_error $? "Cannot specify both --enable-dynamic-link and --enable-static-link" "$LINENO" 5
  18625. fi
  18626. fi
  18627. if test $static_link = yes; then
  18628. $as_echo "#define ENABLE_STATIC_LINK 1" >>confdefs.h
  18629. else
  18630. $as_echo "#define ENABLE_DYNAMIC_LINK 1" >>confdefs.h
  18631. fi
  18632. ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
  18633. if test "x$ac_cv_func_inet_aton" = xyes; then :
  18634. $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
  18635. inet_aton=yes
  18636. else
  18637. inet_aton=no
  18638. fi
  18639. ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
  18640. if test "x$ac_cv_func_inet_pton" = xyes; then :
  18641. $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
  18642. inet_pton=yes
  18643. else
  18644. inet_pton=no
  18645. fi
  18646. ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
  18647. if test "x$ac_cv_func_inet_ntop" = xyes; then :
  18648. $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
  18649. inet_ntop=yes
  18650. else
  18651. inet_ntop=no
  18652. fi
  18653. if test "$inet_ntop" = "no" -a "$inet_pton" = "no" ; then
  18654. as_fn_error $? "We need either inet_ntop or inet_pton" "$LINENO" 5
  18655. fi
  18656. ac_fn_c_check_func "$LINENO" "inet_addr" "ac_cv_func_inet_addr"
  18657. if test "x$ac_cv_func_inet_addr" = xyes; then :
  18658. $as_echo "#define HAVE_INET_ADDR 1" >>confdefs.h
  18659. inet_addr=yes
  18660. else
  18661. inet_addr=no
  18662. fi
  18663. if test x$inet_addr = no ; then
  18664. as_fn_error $? "We need inet_addr. See bug 26" "$LINENO" 5
  18665. fi
  18666. have_tuntap=no
  18667. # Check whether --enable-tuntap was given.
  18668. if test "${enable_tuntap+set}" = set; then :
  18669. enableval=$enable_tuntap; :
  18670. else
  18671. case "$build_os" in
  18672. linux*)
  18673. ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default"
  18674. if test "x$ac_cv_header_linux_if_tun_h" = xyes; then :
  18675. have_tuntap=yes
  18676. fi
  18677. ;;
  18678. *)
  18679. ac_fn_c_check_header_mongrel "$LINENO" "net/if_tun.h" "ac_cv_header_net_if_tun_h" "$ac_includes_default"
  18680. if test "x$ac_cv_header_net_if_tun_h" = xyes; then :
  18681. have_tuntap=yes
  18682. fi
  18683. ;;
  18684. esac
  18685. fi
  18686. if test $have_tuntap = yes ; then
  18687. $as_echo "#define HAVE_TUNTAP 1" >>confdefs.h
  18688. fi
  18689. foundpcap=no
  18690. pf_ring_found=no
  18691. pf_ring_lib=${with_pfring_lib}
  18692. using_pcap_config=no
  18693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcap" >&5
  18694. $as_echo_n "checking for libpcap... " >&6; }
  18695. # Check whether --with-libpcap was given.
  18696. if test "${with_libpcap+set}" = set; then :
  18697. withval=$with_libpcap;
  18698. testdir=$withval
  18699. for incl in ${testdir}/include/pcap.h ${testdir}/pcap.h ${testdir}/pcap/pcap.h; do
  18700. if ! test -f "${incl}"; then
  18701. continue
  18702. fi
  18703. LPCAPINC=${incl}
  18704. LPCAPINCDIR=${testdir}
  18705. if test $dynamic_link = yes; then
  18706. for ext in .dylib .so .tbd ; do
  18707. for dir in . lib lib64 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
  18708. sharefile=$(ls ${testdir}/$dir/libpcap${ext}* 2> /dev/null | sort | head -n1)
  18709. if test -n "${sharefile}"; then
  18710. LPCAPLIB="-L$(dirname ${sharefile}) -lpcap"
  18711. foundpcap=$testdir
  18712. break
  18713. fi
  18714. done
  18715. if ! test $foundpcap = no; then
  18716. break
  18717. fi
  18718. done
  18719. else
  18720. for ext in ${libext} .a .A.tbd ; do
  18721. for dir in . lib lib64 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
  18722. staticfile=$(ls ${testdir}/$dir/libpcap${ext} 2> /dev/null | sort | head -n1)
  18723. if test -n "${staticfile}"; then
  18724. LPCAPLIB="${staticfile}"
  18725. foundpcap=${testdir}
  18726. break
  18727. fi
  18728. done
  18729. if ! test $foundpcap = no; then
  18730. ## could be PF_RING
  18731. #
  18732. # library is static and in PF_RING build tree
  18733. #
  18734. # Need access to libpfring library
  18735. # and must find an associated libpfring.a
  18736. if test -n "${with_pfring_lib}"; then
  18737. if test -f ${with_pfring_lib}; then
  18738. pf_ring_lib=${with_pfring_lib}
  18739. pf_ring_found=yes
  18740. else
  18741. as_fn_error $? "\"Unable to find PF_RING library ${with_pfring_lib}\"" "$LINENO" 5
  18742. fi
  18743. else
  18744. ## search locally for most likely PF_RING library
  18745. for lib in ${foundpcap}/../lib/libs/libpfring_zc_${host_cpu}.a \
  18746. ${foundpcap}/../lib/libs/libpfring_dna_${host_cpu}.a \
  18747. ${foundpcap}/../lib/libs/libpfring_zero_${host_cpu}.a \
  18748. ${foundpcap}/../lib/libs/libpfring_nt_${host_cpu}.a \
  18749. ${foundpcap}/../lib/libpfring.a; do
  18750. if test -f "${lib}"; then
  18751. pf_ring_lib=${lib}
  18752. pf_ring_found=yes
  18753. break
  18754. fi
  18755. done
  18756. fi
  18757. break
  18758. fi
  18759. done
  18760. fi
  18761. if test $foundpcap = no; then
  18762. as_fn_error $? "\"Unable to find matching library for header file in ${testdir}\"" "$LINENO" 5
  18763. fi
  18764. break
  18765. done
  18766. else
  18767. #
  18768. # Look for pcap-config.
  18769. #
  18770. # I wish this option could be the default, but it is only enabled with --enable-pcapconfig
  18771. #
  18772. # The issue is that libpcap is one of those libraries that is nearly impossible to set up
  18773. # properly across all platforms. The 'pcap-config' script is shipped with new versions of libpcap,
  18774. # and was created to address portability issues. Unfortunately, the script is not updated properly
  18775. # outside of the base distribution. Examples: PF_RING requires 'pthreads', 'numa' and 'rt', but
  18776. # this is not reflect that in the script. OS X Xcode 10.11 SDK creates its own very broken
  18777. # 'pcap-config' script that only occasionally works for dynamic definitions, and defintely
  18778. # does not work for static.
  18779. #
  18780. # The ability to enable this script exists for corner cases where libpcap distributions starts
  18781. # using even more libraries than I am currently not aware of. Originally, you only had to worry
  18782. # about 'nl', but now we have to be prepared to add 'nl-3', 'nl-genl-3' and 'dbus-1' to make
  18783. # libpcap fucntional. In the future, there may be more.
  18784. #
  18785. # (sigh)
  18786. #
  18787. # So, in the future if libpcap changes and stops working, try setting --enable-pcapconfig. It
  18788. # it may work for you.
  18789. if test $enable_pcap_config = yes; then
  18790. if test -n "$ac_tool_prefix"; then
  18791. # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args.
  18792. set dummy ${ac_tool_prefix}pcap-config; ac_word=$2
  18793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18794. $as_echo_n "checking for $ac_word... " >&6; }
  18795. if ${ac_cv_path_PCAP_CONFIG+:} false; then :
  18796. $as_echo_n "(cached) " >&6
  18797. else
  18798. case $PCAP_CONFIG in
  18799. [\\/]* | ?:[\\/]*)
  18800. ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
  18801. ;;
  18802. *)
  18803. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18804. for as_dir in $PATH
  18805. do
  18806. IFS=$as_save_IFS
  18807. test -z "$as_dir" && as_dir=.
  18808. for ac_exec_ext in '' $ac_executable_extensions; do
  18809. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18810. ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18811. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18812. break 2
  18813. fi
  18814. done
  18815. done
  18816. IFS=$as_save_IFS
  18817. ;;
  18818. esac
  18819. fi
  18820. PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
  18821. if test -n "$PCAP_CONFIG"; then
  18822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCAP_CONFIG" >&5
  18823. $as_echo "$PCAP_CONFIG" >&6; }
  18824. else
  18825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18826. $as_echo "no" >&6; }
  18827. fi
  18828. fi
  18829. if test -z "$ac_cv_path_PCAP_CONFIG"; then
  18830. ac_pt_PCAP_CONFIG=$PCAP_CONFIG
  18831. # Extract the first word of "pcap-config", so it can be a program name with args.
  18832. set dummy pcap-config; ac_word=$2
  18833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18834. $as_echo_n "checking for $ac_word... " >&6; }
  18835. if ${ac_cv_path_ac_pt_PCAP_CONFIG+:} false; then :
  18836. $as_echo_n "(cached) " >&6
  18837. else
  18838. case $ac_pt_PCAP_CONFIG in
  18839. [\\/]* | ?:[\\/]*)
  18840. ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path.
  18841. ;;
  18842. *)
  18843. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18844. for as_dir in $PATH
  18845. do
  18846. IFS=$as_save_IFS
  18847. test -z "$as_dir" && as_dir=.
  18848. for ac_exec_ext in '' $ac_executable_extensions; do
  18849. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18850. ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18851. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18852. break 2
  18853. fi
  18854. done
  18855. done
  18856. IFS=$as_save_IFS
  18857. ;;
  18858. esac
  18859. fi
  18860. ac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG
  18861. if test -n "$ac_pt_PCAP_CONFIG"; then
  18862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PCAP_CONFIG" >&5
  18863. $as_echo "$ac_pt_PCAP_CONFIG" >&6; }
  18864. else
  18865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18866. $as_echo "no" >&6; }
  18867. fi
  18868. if test "x$ac_pt_PCAP_CONFIG" = x; then
  18869. PCAP_CONFIG=""
  18870. else
  18871. case $cross_compiling:$ac_tool_warned in
  18872. yes:)
  18873. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18874. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18875. ac_tool_warned=yes ;;
  18876. esac
  18877. PCAP_CONFIG=$ac_pt_PCAP_CONFIG
  18878. fi
  18879. else
  18880. PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG"
  18881. fi
  18882. if test -n "$PCAP_CONFIG"; then
  18883. #
  18884. # Found - use it to get the include flags for
  18885. # libpcap and the flags to link with libpcap.
  18886. #
  18887. # Please read section 11.6 "Shell Substitutions"
  18888. # in the autoconf manual before doing anything
  18889. # to this that involves quoting. Especially note
  18890. # the statement "There is just no portable way to use
  18891. # double-quoted strings inside double-quoted back-quoted
  18892. # expressions (pfew!)."
  18893. #
  18894. if test $dynamic_link = yes; then
  18895. LPCAPLIB=$($PCAP_CONFIG --libs)
  18896. else
  18897. LPCAPLIB=$($PCAP_CONFIG --libs --static)
  18898. fi
  18899. CFLAGS="$CFLAGS $($PCAP_CONFIG --cflags)"
  18900. if test -n "$LPCAPLIB"; then
  18901. foundpcap=yes
  18902. using_pcap_config=yes
  18903. else
  18904. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find libpcap using pcap-config" >&5
  18905. $as_echo "$as_me: WARNING: Unable to find libpcap using pcap-config" >&2;}
  18906. fi
  18907. fi
  18908. fi
  18909. if test ! $foundpcap = yes; then
  18910. #
  18911. # Not found; look for pcap.
  18912. #
  18913. for testdir in /usr/local /opt/local /usr /wpdpack $MACOSX_SDK_PATH/usr /usr/local/opt/libpcap ; do
  18914. if test -f "${testdir}/include/pcap.h"; then
  18915. LPCAPINC="${testdir}/include/pcap.h"
  18916. LPCAPINCDIR="${testdir}/include"
  18917. if test $dynamic_link = yes; then
  18918. for ext in .dylib .so .tbd; do
  18919. for dir in . lib lib64 ${host_cpu} lib/${host_cpu} ${host_cpu}-${host_os} lib/${host_cpu}-${host_os} ${MULTIARCH} lib/${MULTIARCH}; do
  18920. sharefile=$(ls "${testdir}/$dir/libpcap${ext}" 2> /dev/null | sort | head -n1)
  18921. if test -n "${sharefile}"; then
  18922. LPCAPLIB="-L$(dirname ${sharefile}) -lpcap"
  18923. foundpcap=$testdir
  18924. break
  18925. fi
  18926. done
  18927. if ! test $foundpcap = no; then
  18928. break
  18929. fi
  18930. done
  18931. fi
  18932. if test $foundpcap = no ; then
  18933. for ext in ${libext} .a .A.tbd ; do
  18934. for dir in . lib lib64 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
  18935. staticfile=$(ls "${testdir}/$dir/libpcap${ext}" 2> /dev/null | sort | head -n1)
  18936. if test -n "${staticfile}"; then
  18937. LPCAPLIB="${staticfile}"
  18938. foundpcap=$testdir
  18939. break
  18940. fi
  18941. done
  18942. if ! test $foundpcap = no; then
  18943. break
  18944. fi
  18945. done
  18946. fi
  18947. if test $foundpcap = no -a -f "${testdir}/lib/libwpcap.${libext}" ; then
  18948. LPCAPLIB="${testdir}/lib/libwpcap.${libext}"
  18949. $as_echo "#define HAVE_WINPCAP 1" >>confdefs.h
  18950. foundpcap=$testdir
  18951. fi
  18952. fi
  18953. if ! test $foundpcap = no; then
  18954. break
  18955. fi
  18956. done
  18957. fi
  18958. fi
  18959. if test $foundpcap = no ; then
  18960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18961. $as_echo "no" >&6; }
  18962. as_fn_error $? "libpcap not found" "$LINENO" 5
  18963. else
  18964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $foundpcap" >&5
  18965. $as_echo "$foundpcap" >&6; }
  18966. fi
  18967. # libpcap can require libnl
  18968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nl_handle_alloc" >&5
  18969. $as_echo_n "checking for library containing nl_handle_alloc... " >&6; }
  18970. if ${ac_cv_search_nl_handle_alloc+:} false; then :
  18971. $as_echo_n "(cached) " >&6
  18972. else
  18973. ac_func_search_save_LIBS=$LIBS
  18974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18975. /* end confdefs.h. */
  18976. /* Override any GCC internal prototype to avoid an error.
  18977. Use char because int might match the return type of a GCC
  18978. builtin and then its argument prototype would still apply. */
  18979. #ifdef __cplusplus
  18980. extern "C"
  18981. #endif
  18982. char nl_handle_alloc ();
  18983. int
  18984. main ()
  18985. {
  18986. return nl_handle_alloc ();
  18987. ;
  18988. return 0;
  18989. }
  18990. _ACEOF
  18991. for ac_lib in '' nl; do
  18992. if test -z "$ac_lib"; then
  18993. ac_res="none required"
  18994. else
  18995. ac_res=-l$ac_lib
  18996. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  18997. fi
  18998. if ac_fn_c_try_link "$LINENO"; then :
  18999. ac_cv_search_nl_handle_alloc=$ac_res
  19000. fi
  19001. rm -f core conftest.err conftest.$ac_objext \
  19002. conftest$ac_exeext
  19003. if ${ac_cv_search_nl_handle_alloc+:} false; then :
  19004. break
  19005. fi
  19006. done
  19007. if ${ac_cv_search_nl_handle_alloc+:} false; then :
  19008. else
  19009. ac_cv_search_nl_handle_alloc=no
  19010. fi
  19011. rm conftest.$ac_ext
  19012. LIBS=$ac_func_search_save_LIBS
  19013. fi
  19014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nl_handle_alloc" >&5
  19015. $as_echo "$ac_cv_search_nl_handle_alloc" >&6; }
  19016. ac_res=$ac_cv_search_nl_handle_alloc
  19017. if test "$ac_res" != no; then :
  19018. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  19019. { $as_echo "$as_me:${as_lineno-$LINENO}: Unable to find nl library - may be needed by libpcap" >&5
  19020. $as_echo "$as_me: Unable to find nl library - may be needed by libpcap" >&6;}
  19021. fi
  19022. ##
  19023. ## If not automatically configured,
  19024. ## check for newer and full-featured libpcap's
  19025. ##
  19026. if ! test $using_pcap_config = yes; then
  19027. ## newer libpcap requires dbus and latest nl (e.g. -lnl-genl-3 -lnl-3 -ldbus-1)
  19028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_cache_alloc in -lnl" >&5
  19029. $as_echo_n "checking for nl_cache_alloc in -lnl... " >&6; }
  19030. if ${ac_cv_lib_nl_nl_cache_alloc+:} false; then :
  19031. $as_echo_n "(cached) " >&6
  19032. else
  19033. ac_check_lib_save_LIBS=$LIBS
  19034. LIBS="-lnl $LIBS"
  19035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19036. /* end confdefs.h. */
  19037. /* Override any GCC internal prototype to avoid an error.
  19038. Use char because int might match the return type of a GCC
  19039. builtin and then its argument prototype would still apply. */
  19040. #ifdef __cplusplus
  19041. extern "C"
  19042. #endif
  19043. char nl_cache_alloc ();
  19044. int
  19045. main ()
  19046. {
  19047. return nl_cache_alloc ();
  19048. ;
  19049. return 0;
  19050. }
  19051. _ACEOF
  19052. if ac_fn_c_try_link "$LINENO"; then :
  19053. ac_cv_lib_nl_nl_cache_alloc=yes
  19054. else
  19055. ac_cv_lib_nl_nl_cache_alloc=no
  19056. fi
  19057. rm -f core conftest.err conftest.$ac_objext \
  19058. conftest$ac_exeext conftest.$ac_ext
  19059. LIBS=$ac_check_lib_save_LIBS
  19060. fi
  19061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_cache_alloc" >&5
  19062. $as_echo "$ac_cv_lib_nl_nl_cache_alloc" >&6; }
  19063. if test "x$ac_cv_lib_nl_nl_cache_alloc" = xyes; then :
  19064. nl_found=yes
  19065. fi
  19066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genl_connect in -lnl-genl-3" >&5
  19067. $as_echo_n "checking for genl_connect in -lnl-genl-3... " >&6; }
  19068. if ${ac_cv_lib_nl_genl_3_genl_connect+:} false; then :
  19069. $as_echo_n "(cached) " >&6
  19070. else
  19071. ac_check_lib_save_LIBS=$LIBS
  19072. LIBS="-lnl-genl-3 $LIBS"
  19073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19074. /* end confdefs.h. */
  19075. /* Override any GCC internal prototype to avoid an error.
  19076. Use char because int might match the return type of a GCC
  19077. builtin and then its argument prototype would still apply. */
  19078. #ifdef __cplusplus
  19079. extern "C"
  19080. #endif
  19081. char genl_connect ();
  19082. int
  19083. main ()
  19084. {
  19085. return genl_connect ();
  19086. ;
  19087. return 0;
  19088. }
  19089. _ACEOF
  19090. if ac_fn_c_try_link "$LINENO"; then :
  19091. ac_cv_lib_nl_genl_3_genl_connect=yes
  19092. else
  19093. ac_cv_lib_nl_genl_3_genl_connect=no
  19094. fi
  19095. rm -f core conftest.err conftest.$ac_objext \
  19096. conftest$ac_exeext conftest.$ac_ext
  19097. LIBS=$ac_check_lib_save_LIBS
  19098. fi
  19099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_genl_3_genl_connect" >&5
  19100. $as_echo "$ac_cv_lib_nl_genl_3_genl_connect" >&6; }
  19101. if test "x$ac_cv_lib_nl_genl_3_genl_connect" = xyes; then :
  19102. nl_genl_3_found=yes
  19103. fi
  19104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_cache_alloc in -lnl-3" >&5
  19105. $as_echo_n "checking for nl_cache_alloc in -lnl-3... " >&6; }
  19106. if ${ac_cv_lib_nl_3_nl_cache_alloc+:} false; then :
  19107. $as_echo_n "(cached) " >&6
  19108. else
  19109. ac_check_lib_save_LIBS=$LIBS
  19110. LIBS="-lnl-3 $LIBS"
  19111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19112. /* end confdefs.h. */
  19113. /* Override any GCC internal prototype to avoid an error.
  19114. Use char because int might match the return type of a GCC
  19115. builtin and then its argument prototype would still apply. */
  19116. #ifdef __cplusplus
  19117. extern "C"
  19118. #endif
  19119. char nl_cache_alloc ();
  19120. int
  19121. main ()
  19122. {
  19123. return nl_cache_alloc ();
  19124. ;
  19125. return 0;
  19126. }
  19127. _ACEOF
  19128. if ac_fn_c_try_link "$LINENO"; then :
  19129. ac_cv_lib_nl_3_nl_cache_alloc=yes
  19130. else
  19131. ac_cv_lib_nl_3_nl_cache_alloc=no
  19132. fi
  19133. rm -f core conftest.err conftest.$ac_objext \
  19134. conftest$ac_exeext conftest.$ac_ext
  19135. LIBS=$ac_check_lib_save_LIBS
  19136. fi
  19137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_cache_alloc" >&5
  19138. $as_echo "$ac_cv_lib_nl_3_nl_cache_alloc" >&6; }
  19139. if test "x$ac_cv_lib_nl_3_nl_cache_alloc" = xyes; then :
  19140. nl_3_found=yes
  19141. fi
  19142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_malloc in -ldbus-1" >&5
  19143. $as_echo_n "checking for dbus_malloc in -ldbus-1... " >&6; }
  19144. if ${ac_cv_lib_dbus_1_dbus_malloc+:} false; then :
  19145. $as_echo_n "(cached) " >&6
  19146. else
  19147. ac_check_lib_save_LIBS=$LIBS
  19148. LIBS="-ldbus-1 $LIBS"
  19149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19150. /* end confdefs.h. */
  19151. /* Override any GCC internal prototype to avoid an error.
  19152. Use char because int might match the return type of a GCC
  19153. builtin and then its argument prototype would still apply. */
  19154. #ifdef __cplusplus
  19155. extern "C"
  19156. #endif
  19157. char dbus_malloc ();
  19158. int
  19159. main ()
  19160. {
  19161. return dbus_malloc ();
  19162. ;
  19163. return 0;
  19164. }
  19165. _ACEOF
  19166. if ac_fn_c_try_link "$LINENO"; then :
  19167. ac_cv_lib_dbus_1_dbus_malloc=yes
  19168. else
  19169. ac_cv_lib_dbus_1_dbus_malloc=no
  19170. fi
  19171. rm -f core conftest.err conftest.$ac_objext \
  19172. conftest$ac_exeext conftest.$ac_ext
  19173. LIBS=$ac_check_lib_save_LIBS
  19174. fi
  19175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_malloc" >&5
  19176. $as_echo "$ac_cv_lib_dbus_1_dbus_malloc" >&6; }
  19177. if test "x$ac_cv_lib_dbus_1_dbus_malloc" = xyes; then :
  19178. dbus_1_found=yes
  19179. fi
  19180. if test "$nl_found" = "yes"; then
  19181. LPCAPLIB="$LPCAPLIB -lnl"
  19182. fi
  19183. if test "$nl_genl_3_found" = "yes"; then
  19184. LPCAPLIB="$LPCAPLIB -lnl-genl-3"
  19185. fi
  19186. if test "$nl_3_found" = "yes"; then
  19187. LPCAPLIB="$LPCAPLIB -lnl-3"
  19188. fi
  19189. if test "$dbus_1_found" = "yes"; then
  19190. LPCAPLIB="$LPCAPLIB -ldbus-1"
  19191. fi
  19192. ## See if prereqs for PF_RING exist
  19193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for numa_available in -lnuma" >&5
  19194. $as_echo_n "checking for numa_available in -lnuma... " >&6; }
  19195. if ${ac_cv_lib_numa_numa_available+:} false; then :
  19196. $as_echo_n "(cached) " >&6
  19197. else
  19198. ac_check_lib_save_LIBS=$LIBS
  19199. LIBS="-lnuma $LIBS"
  19200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19201. /* end confdefs.h. */
  19202. /* Override any GCC internal prototype to avoid an error.
  19203. Use char because int might match the return type of a GCC
  19204. builtin and then its argument prototype would still apply. */
  19205. #ifdef __cplusplus
  19206. extern "C"
  19207. #endif
  19208. char numa_available ();
  19209. int
  19210. main ()
  19211. {
  19212. return numa_available ();
  19213. ;
  19214. return 0;
  19215. }
  19216. _ACEOF
  19217. if ac_fn_c_try_link "$LINENO"; then :
  19218. ac_cv_lib_numa_numa_available=yes
  19219. else
  19220. ac_cv_lib_numa_numa_available=no
  19221. fi
  19222. rm -f core conftest.err conftest.$ac_objext \
  19223. conftest$ac_exeext conftest.$ac_ext
  19224. LIBS=$ac_check_lib_save_LIBS
  19225. fi
  19226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_numa_available" >&5
  19227. $as_echo "$ac_cv_lib_numa_numa_available" >&6; }
  19228. if test "x$ac_cv_lib_numa_numa_available" = xyes; then :
  19229. numa_found=yes
  19230. fi
  19231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  19232. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  19233. if ${ac_cv_lib_pthread_pthread_create+:} false; then :
  19234. $as_echo_n "(cached) " >&6
  19235. else
  19236. ac_check_lib_save_LIBS=$LIBS
  19237. LIBS="-lpthread $LIBS"
  19238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19239. /* end confdefs.h. */
  19240. /* Override any GCC internal prototype to avoid an error.
  19241. Use char because int might match the return type of a GCC
  19242. builtin and then its argument prototype would still apply. */
  19243. #ifdef __cplusplus
  19244. extern "C"
  19245. #endif
  19246. char pthread_create ();
  19247. int
  19248. main ()
  19249. {
  19250. return pthread_create ();
  19251. ;
  19252. return 0;
  19253. }
  19254. _ACEOF
  19255. if ac_fn_c_try_link "$LINENO"; then :
  19256. ac_cv_lib_pthread_pthread_create=yes
  19257. else
  19258. ac_cv_lib_pthread_pthread_create=no
  19259. fi
  19260. rm -f core conftest.err conftest.$ac_objext \
  19261. conftest$ac_exeext conftest.$ac_ext
  19262. LIBS=$ac_check_lib_save_LIBS
  19263. fi
  19264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  19265. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  19266. if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
  19267. pthread_found=yes
  19268. fi
  19269. if test $pf_ring_found = yes; then
  19270. if ! test "${numa_found}" = "yes"; then
  19271. as_fn_error $? "PF_RING requires libnuma and/or libnuma-dev" "$LINENO" 5
  19272. fi
  19273. if ! test "${pthread_found}" = "yes"; then
  19274. as_fn_error $? "PF_RING requires libpthread" "$LINENO" 5
  19275. fi
  19276. LPCAPLIB="$LPCAPLIB ${pf_ring_lib} -lnuma -lpthread -lrt"
  19277. fi
  19278. fi
  19279. OLDLIBS="$LIBS"
  19280. if test -n "$LPCAPINCDIR"; then
  19281. OLDCFLAGS="$CFLAGS -I$LPCAPINCDIR"
  19282. CFLAGS="$CFLAGS -I$LPCAPINCDIR"
  19283. else
  19284. OLDCFLAGS="$CFLAGS"
  19285. LPCAPINCDIR=$(echo $CFLAGS | sed -e 's/^\-I//')
  19286. LPCAPINC="$LPCAPINCDIR/pcap.h"
  19287. fi
  19288. LIBS="$LPCAPLIB"
  19289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcap_get_pfring_id" >&5
  19290. $as_echo_n "checking for library containing pcap_get_pfring_id... " >&6; }
  19291. if ${ac_cv_search_pcap_get_pfring_id+:} false; then :
  19292. $as_echo_n "(cached) " >&6
  19293. else
  19294. ac_func_search_save_LIBS=$LIBS
  19295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19296. /* end confdefs.h. */
  19297. /* Override any GCC internal prototype to avoid an error.
  19298. Use char because int might match the return type of a GCC
  19299. builtin and then its argument prototype would still apply. */
  19300. #ifdef __cplusplus
  19301. extern "C"
  19302. #endif
  19303. char pcap_get_pfring_id ();
  19304. int
  19305. main ()
  19306. {
  19307. return pcap_get_pfring_id ();
  19308. ;
  19309. return 0;
  19310. }
  19311. _ACEOF
  19312. for ac_lib in '' pcap; do
  19313. if test -z "$ac_lib"; then
  19314. ac_res="none required"
  19315. else
  19316. ac_res=-l$ac_lib
  19317. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  19318. fi
  19319. if ac_fn_c_try_link "$LINENO"; then :
  19320. ac_cv_search_pcap_get_pfring_id=$ac_res
  19321. fi
  19322. rm -f core conftest.err conftest.$ac_objext \
  19323. conftest$ac_exeext
  19324. if ${ac_cv_search_pcap_get_pfring_id+:} false; then :
  19325. break
  19326. fi
  19327. done
  19328. if ${ac_cv_search_pcap_get_pfring_id+:} false; then :
  19329. else
  19330. ac_cv_search_pcap_get_pfring_id=no
  19331. fi
  19332. rm conftest.$ac_ext
  19333. LIBS=$ac_func_search_save_LIBS
  19334. fi
  19335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcap_get_pfring_id" >&5
  19336. $as_echo "$ac_cv_search_pcap_get_pfring_id" >&6; }
  19337. ac_res=$ac_cv_search_pcap_get_pfring_id
  19338. if test "$ac_res" != no; then :
  19339. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  19340. $as_echo "#define HAVE_PF_RING_PCAP 1" >>confdefs.h
  19341. fi
  19342. ## Does libpcap work with selected libraries?
  19343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcap_close" >&5
  19344. $as_echo_n "checking for library containing pcap_close... " >&6; }
  19345. if ${ac_cv_search_pcap_close+:} false; then :
  19346. $as_echo_n "(cached) " >&6
  19347. else
  19348. ac_func_search_save_LIBS=$LIBS
  19349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19350. /* end confdefs.h. */
  19351. /* Override any GCC internal prototype to avoid an error.
  19352. Use char because int might match the return type of a GCC
  19353. builtin and then its argument prototype would still apply. */
  19354. #ifdef __cplusplus
  19355. extern "C"
  19356. #endif
  19357. char pcap_close ();
  19358. int
  19359. main ()
  19360. {
  19361. return pcap_close ();
  19362. ;
  19363. return 0;
  19364. }
  19365. _ACEOF
  19366. for ac_lib in '' pcap; do
  19367. if test -z "$ac_lib"; then
  19368. ac_res="none required"
  19369. else
  19370. ac_res=-l$ac_lib
  19371. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  19372. fi
  19373. if ac_fn_c_try_link "$LINENO"; then :
  19374. ac_cv_search_pcap_close=$ac_res
  19375. fi
  19376. rm -f core conftest.err conftest.$ac_objext \
  19377. conftest$ac_exeext
  19378. if ${ac_cv_search_pcap_close+:} false; then :
  19379. break
  19380. fi
  19381. done
  19382. if ${ac_cv_search_pcap_close+:} false; then :
  19383. else
  19384. ac_cv_search_pcap_close=no
  19385. fi
  19386. rm conftest.$ac_ext
  19387. LIBS=$ac_func_search_save_LIBS
  19388. fi
  19389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcap_close" >&5
  19390. $as_echo "$ac_cv_search_pcap_close" >&6; }
  19391. ac_res=$ac_cv_search_pcap_close
  19392. if test "$ac_res" != no; then :
  19393. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  19394. else
  19395. as_fn_error $? "Unable to link libpcap in ${foundpcap}" "$LINENO" 5
  19396. fi
  19397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcap version" >&5
  19398. $as_echo_n "checking for libpcap version... " >&6; }
  19399. if test "$cross_compiling" = yes; then :
  19400. libpcap_version_096=yes
  19401. else
  19402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19403. /* end confdefs.h. */
  19404. #include <string.h>
  19405. #include <stdlib.h>
  19406. #include <stdio.h>
  19407. #include "$LPCAPINC"
  19408. #define PCAP_TEST "0.9.6"
  19409. int
  19410. main ()
  19411. {
  19412. /*
  19413. * simple proggy to test the version of libpcap
  19414. * returns zero if version >= 0.9.6
  19415. * or one otherwise
  19416. */
  19417. if (strncmp(pcap_lib_version(), PCAP_TEST, 3) >= 0)
  19418. exit(0);
  19419. if (strncmp(pcap_lib_version(), PCAP_TEST, 5) >= 0) {
  19420. printf("%s ", pcap_lib_version());
  19421. exit(0);
  19422. }
  19423. exit(1);
  19424. ;
  19425. return 0;
  19426. }
  19427. _ACEOF
  19428. if ac_fn_c_try_run "$LINENO"; then :
  19429. libpcap_version_096=yes
  19430. else
  19431. libpcap_version_096=no
  19432. fi
  19433. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19434. conftest.$ac_objext conftest.beam conftest.$ac_ext
  19435. fi
  19436. if test "$cross_compiling" = yes; then :
  19437. libpcap_ver8=yes
  19438. else
  19439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19440. /* end confdefs.h. */
  19441. #include <string.h>
  19442. #include <stdlib.h>
  19443. #include <stdio.h>
  19444. #include "$LPCAPINC"
  19445. #define PCAP_TEST "0.8"
  19446. int
  19447. main ()
  19448. {
  19449. /*
  19450. * simple proggy to test the version of libpcap
  19451. * returns zero if version >= 0.8.0
  19452. * or one otherwise
  19453. */
  19454. if (strncmp(pcap_lib_version(), PCAP_TEST, 3) >= 0)
  19455. exit(0);
  19456. /* winpcap? */
  19457. if (strncmp(pcap_lib_version(), "WinPcap", 7) == 0)
  19458. exit(0);
  19459. exit(1);
  19460. ;
  19461. return 0;
  19462. }
  19463. _ACEOF
  19464. if ac_fn_c_try_run "$LINENO"; then :
  19465. libpcap_ver8=yes
  19466. else
  19467. libpcap_ver8=no
  19468. fi
  19469. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19470. conftest.$ac_objext conftest.beam conftest.$ac_ext
  19471. fi
  19472. if test "$cross_compiling" = yes; then :
  19473. libpcap_ver7=yes
  19474. else
  19475. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19476. /* end confdefs.h. */
  19477. #include <string.h>
  19478. #include <stdlib.h>
  19479. #include <stdio.h>
  19480. #include "$LPCAPINC"
  19481. #define PCAP_TEST "0.7.2"
  19482. extern const char pcap_version[[]]; /* double up since autoconf escapes things */
  19483. int
  19484. main ()
  19485. {
  19486. /*
  19487. * simple proggy to test the version of libpcap
  19488. * returns zero if version >= 0.7.2
  19489. * or one otherwise
  19490. */
  19491. if (strncmp(pcap_lib_version(), PCAP_TEST, 3) >= 0)
  19492. exit(0);
  19493. if (strncmp(pcap_version, PCAP_TEST, 5) >= 0)
  19494. exit(0);
  19495. exit(1);
  19496. ;
  19497. return 0;
  19498. }
  19499. _ACEOF
  19500. if ac_fn_c_try_run "$LINENO"; then :
  19501. libpcap_ver7=yes
  19502. else
  19503. libpcap_ver7=no
  19504. fi
  19505. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19506. conftest.$ac_objext conftest.beam conftest.$ac_ext
  19507. fi
  19508. if test x$libpcap_ver8 = xyes ; then
  19509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.8.0" >&5
  19510. $as_echo ">= 0.8.0" >&6; }
  19511. elif test x$libpcap_ver7 = xyes ; then
  19512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.7.2" >&5
  19513. $as_echo ">= 0.7.2" >&6; }
  19514. else
  19515. as_fn_error $? "Libpcap versions < 0.7.2 are not supported
  19516. Please upgrade to version 0.7.2 or better" "$LINENO" 5
  19517. fi
  19518. libpcap_version=unknown
  19519. if test x$libpcap_version_096 = xyes ; then
  19520. libpcap_version=">= 0.9.6"
  19521. elif test x$libpcap_ver8 = xyes ; then
  19522. libpcap_version=">= 0.8.0"
  19523. elif test x$libcap_ver7 = xyes ; then
  19524. libpcap_version=">= 0.7.0"
  19525. fi
  19526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_setnonblock" >&5
  19527. $as_echo_n "checking for pcap_setnonblock... " >&6; }
  19528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19529. /* end confdefs.h. */
  19530. #include <stdio.h>
  19531. #include <stdlib.h>
  19532. #include <string.h>
  19533. #include "$LPCAPINC"
  19534. int
  19535. main ()
  19536. {
  19537. pcap_t *p;
  19538. char *errbuf;
  19539. pcap_setnonblock(p, 1, errbuf);
  19540. exit(0);
  19541. ;
  19542. return 0;
  19543. }
  19544. _ACEOF
  19545. if ac_fn_c_try_link "$LINENO"; then :
  19546. have_pcap_setnonblock=yes
  19547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19548. $as_echo "yes" >&6; }
  19549. else
  19550. have_pcap_setnonblock=no
  19551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19552. $as_echo "no" >&6; }
  19553. fi
  19554. rm -f core conftest.err conftest.$ac_objext \
  19555. conftest$ac_exeext conftest.$ac_ext
  19556. if test $have_pcap_setnonblock = yes ; then
  19557. $as_echo "#define HAVE_PCAP_SETNONBLOCK 1" >>confdefs.h
  19558. fi
  19559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_datalink_val_to_description" >&5
  19560. $as_echo_n "checking for pcap_datalink_val_to_description... " >&6; }
  19561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19562. /* end confdefs.h. */
  19563. #include <stdio.h>
  19564. #include <stdlib.h>
  19565. #include <string.h>
  19566. #include "$LPCAPINC"
  19567. int
  19568. main ()
  19569. {
  19570. if (strcmp(pcap_datalink_val_to_description(1), "Ethernet (10Mb)") == 0)
  19571. exit(0);
  19572. exit(1);
  19573. ;
  19574. return 0;
  19575. }
  19576. _ACEOF
  19577. if ac_fn_c_try_link "$LINENO"; then :
  19578. have_dlt_to_desc=yes
  19579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19580. $as_echo "yes" >&6; }
  19581. else
  19582. have_dlt_to_desc=no
  19583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19584. $as_echo "no" >&6; }
  19585. fi
  19586. rm -f core conftest.err conftest.$ac_objext \
  19587. conftest$ac_exeext conftest.$ac_ext
  19588. if test $have_dlt_to_desc = yes ; then
  19589. $as_echo "#define HAVE_DLT_VAL_TO_DESC 1" >>confdefs.h
  19590. fi
  19591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_get_selectable_fd" >&5
  19592. $as_echo_n "checking for pcap_get_selectable_fd... " >&6; }
  19593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19594. /* end confdefs.h. */
  19595. #include <stdio.h>
  19596. #include <stdlib.h>
  19597. #include <string.h>
  19598. #include "$LPCAPINC"
  19599. int
  19600. main ()
  19601. {
  19602. int f;
  19603. pcap_t *p;
  19604. f = pcap_get_selectable_fd(p);
  19605. exit(0);
  19606. ;
  19607. return 0;
  19608. }
  19609. _ACEOF
  19610. if ac_fn_c_try_link "$LINENO"; then :
  19611. have_pcap_get_selectable_fd=yes
  19612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19613. $as_echo "yes" >&6; }
  19614. else
  19615. have_pcap_get_selectable_fd=no
  19616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19617. $as_echo "no" >&6; }
  19618. fi
  19619. rm -f core conftest.err conftest.$ac_objext \
  19620. conftest$ac_exeext conftest.$ac_ext
  19621. if test x$have_pcap_get_selectable_fd = xyes ; then
  19622. $as_echo "#define HAVE_PCAP_GET_SELECTABLE_FD 1" >>confdefs.h
  19623. fi
  19624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen" >&5
  19625. $as_echo_n "checking for pcap_dump_fopen... " >&6; }
  19626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19627. /* end confdefs.h. */
  19628. #include <stdio.h>
  19629. #include <stdlib.h>
  19630. #include <string.h>
  19631. #include "$LPCAPINC"
  19632. int
  19633. main ()
  19634. {
  19635. pcap_dumper_t *dump;
  19636. pcap_t *pcap;
  19637. FILE *foo;
  19638. dump = pcap_dump_fopen(pcap, foo);
  19639. ;
  19640. return 0;
  19641. }
  19642. _ACEOF
  19643. if ac_fn_c_try_link "$LINENO"; then :
  19644. have_pcap_dump_fopen=yes
  19645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19646. $as_echo "yes" >&6; }
  19647. else
  19648. have_pcap_dump_fopen=no
  19649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19650. $as_echo "no" >&6; }
  19651. fi
  19652. rm -f core conftest.err conftest.$ac_objext \
  19653. conftest$ac_exeext conftest.$ac_ext
  19654. if test $have_pcap_dump_fopen = yes ; then
  19655. $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
  19656. else
  19657. { $as_echo "$as_me:${as_lineno-$LINENO}: --verbose mode requires libpcap >= 0.9.0" >&5
  19658. $as_echo "$as_me: --verbose mode requires libpcap >= 0.9.0" >&6;}
  19659. fi
  19660. have_pcap_inject=no
  19661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_inject sending support" >&5
  19662. $as_echo_n "checking for pcap_inject sending support... " >&6; }
  19663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19664. /* end confdefs.h. */
  19665. #include <stdio.h>
  19666. #include <stdlib.h>
  19667. #include <string.h>
  19668. #include "$LPCAPINC"
  19669. int
  19670. main ()
  19671. {
  19672. pcap_t *pcap;
  19673. char *buf;
  19674. pcap_inject(pcap, (void *)buf, 0);
  19675. ;
  19676. return 0;
  19677. }
  19678. _ACEOF
  19679. if ac_fn_c_try_link "$LINENO"; then :
  19680. have_pcap_inject=yes
  19681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19682. $as_echo "yes" >&6; }
  19683. else
  19684. have_pcap_inject=no
  19685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19686. $as_echo "no" >&6; }
  19687. fi
  19688. rm -f core conftest.err conftest.$ac_objext \
  19689. conftest$ac_exeext conftest.$ac_ext
  19690. if test $have_pcap_inject = yes ; then
  19691. $as_echo "#define HAVE_PCAP_INJECT 1" >>confdefs.h
  19692. fi
  19693. have_pcap_sendpacket=no
  19694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_sendpacket sending support" >&5
  19695. $as_echo_n "checking for pcap_sendpacket sending support... " >&6; }
  19696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19697. /* end confdefs.h. */
  19698. #include <stdio.h>
  19699. #include <stdlib.h>
  19700. #include <string.h>
  19701. #include "$LPCAPINC"
  19702. int
  19703. main ()
  19704. {
  19705. pcap_t *pcap;
  19706. u_char *buf;
  19707. pcap_sendpacket(pcap, buf, 0);
  19708. ;
  19709. return 0;
  19710. }
  19711. _ACEOF
  19712. if ac_fn_c_try_link "$LINENO"; then :
  19713. have_pcap_sendpacket=yes
  19714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19715. $as_echo "yes" >&6; }
  19716. else
  19717. have_pcap_sendpacket=no
  19718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19719. $as_echo "no" >&6; }
  19720. fi
  19721. rm -f core conftest.err conftest.$ac_objext \
  19722. conftest$ac_exeext conftest.$ac_ext
  19723. if test $have_pcap_sendpacket = yes ; then
  19724. $as_echo "#define HAVE_PCAP_SENDPACKET 1" >>confdefs.h
  19725. fi
  19726. have_pcap_breakloop=no
  19727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_breakloop" >&5
  19728. $as_echo_n "checking for pcap_breakloop... " >&6; }
  19729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19730. /* end confdefs.h. */
  19731. #include <stdio.h>
  19732. #include <stdlib.h>
  19733. #include <string.h>
  19734. #include "$LPCAPINC"
  19735. int
  19736. main ()
  19737. {
  19738. pcap_t *pcap;
  19739. pcap_sendpacket(pcap);
  19740. ;
  19741. return 0;
  19742. }
  19743. _ACEOF
  19744. if ac_fn_c_try_link "$LINENO"; then :
  19745. have_pcap_breakloop=yes
  19746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19747. $as_echo "yes" >&6; }
  19748. else
  19749. have_pcap_breakloop=no
  19750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19751. $as_echo "no" >&6; }
  19752. fi
  19753. rm -f core conftest.err conftest.$ac_objext \
  19754. conftest$ac_exeext conftest.$ac_ext
  19755. if test $have_pcap_breakloop = yes ; then
  19756. $as_echo "#define HAVE_PCAP_BREAKLOOP 1" >>confdefs.h
  19757. fi
  19758. have_pcap_version=no
  19759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_version" >&5
  19760. $as_echo_n "checking for pcap_version... " >&6; }
  19761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19762. /* end confdefs.h. */
  19763. #include <stdio.h>
  19764. #include <stdlib.h>
  19765. #include <string.h>
  19766. #include "$LPCAPINC"
  19767. extern char pcap_version[];
  19768. int
  19769. main ()
  19770. {
  19771. printf("%s", pcap_version);
  19772. ;
  19773. return 0;
  19774. }
  19775. _ACEOF
  19776. if ac_fn_c_try_link "$LINENO"; then :
  19777. $as_echo "#define HAVE_PCAP_VERSION 1" >>confdefs.h
  19778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19779. $as_echo "yes" >&6; }
  19780. else
  19781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19782. $as_echo "no" >&6; }
  19783. fi
  19784. rm -f core conftest.err conftest.$ac_objext \
  19785. conftest$ac_exeext conftest.$ac_ext
  19786. have_pcap_snapshot=no
  19787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_snapshot" >&5
  19788. $as_echo_n "checking for pcap_snapshot... " >&6; }
  19789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19790. /* end confdefs.h. */
  19791. #include <stdio.h>
  19792. #include <stdlib.h>
  19793. #include <string.h>
  19794. #include "$LPCAPINC"
  19795. int
  19796. main ()
  19797. {
  19798. pcap_t *p;
  19799. int len;
  19800. len = pcap_snapshot(p);
  19801. exit(0);
  19802. ;
  19803. return 0;
  19804. }
  19805. _ACEOF
  19806. if ac_fn_c_try_link "$LINENO"; then :
  19807. have_pcap_snapshot=yes
  19808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19809. $as_echo "yes" >&6; }
  19810. else
  19811. have_pcap_snapshot=no
  19812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19813. $as_echo "no" >&6; }
  19814. fi
  19815. rm -f core conftest.err conftest.$ac_objext \
  19816. conftest$ac_exeext conftest.$ac_ext
  19817. if test $have_pcap_snapshot = yes ; then
  19818. $as_echo "#define HAVE_PCAP_SNAPSHOT 1" >>confdefs.h
  19819. fi
  19820. # Tcpbridge requires libpcap and pcap_sendpacket()
  19821. enable_tcpbridge=no
  19822. if test x$foundpcap != xno -a x$have_pcap_sendpacket = xyes ; then
  19823. # if we have pcap_sendpacket() then we can build tcpbridge on non-BPF systems
  19824. if test x$have_bpf = xno; then
  19825. $as_echo "#define ENABLE_TCPBRIDGE 1" >>confdefs.h
  19826. enable_tcpbridge=yes
  19827. { $as_echo "$as_me:${as_lineno-$LINENO}: Building tcpbridge" >&5
  19828. $as_echo "$as_me: Building tcpbridge" >&6;}
  19829. # BPF systems need to also have pcap_setnonblock()
  19830. elif test x$have_pcap_setnonblock = xyes ; then
  19831. $as_echo "#define ENABLE_TCPBRIDGE 1" >>confdefs.h
  19832. enable_tcpbridge=yes
  19833. { $as_echo "$as_me:${as_lineno-$LINENO}: Building tcpbridge" >&5
  19834. $as_echo "$as_me: Building tcpbridge" >&6;}
  19835. else
  19836. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to build tcpbridge. Try installing latest libpcap!" >&5
  19837. $as_echo "$as_me: WARNING: Unable to build tcpbridge. Try installing latest libpcap!" >&2;}
  19838. fi
  19839. fi
  19840. if test x$enable_tcpbridge = xyes ; then
  19841. COMPILE_TCPBRIDGE_TRUE=
  19842. COMPILE_TCPBRIDGE_FALSE='#'
  19843. else
  19844. COMPILE_TCPBRIDGE_TRUE='#'
  19845. COMPILE_TCPBRIDGE_FALSE=
  19846. fi
  19847. # tcpliveplay requires linux OS to function properly
  19848. enable_tcpliveplay=no
  19849. case $host in
  19850. *-*-linux*)
  19851. $as_echo "#define ENABLE_TCPLIVEPLAY 1" >>confdefs.h
  19852. enable_tcpliveplay=yes
  19853. { $as_echo "$as_me:${as_lineno-$LINENO}: Building tcpliveplay" >&5
  19854. $as_echo "$as_me: Building tcpliveplay" >&6;}
  19855. ;;
  19856. *)
  19857. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to build tcpliveplay. This tool is only enabled on linux environments." >&5
  19858. $as_echo "$as_me: WARNING: Unable to build tcpliveplay. This tool is only enabled on linux environments." >&2;}
  19859. ;;
  19860. esac
  19861. if test x$enable_tcpliveplay = xyes ; then
  19862. COMPILE_TCPLIVEPLAY_TRUE=
  19863. COMPILE_TCPLIVEPLAY_FALSE='#'
  19864. else
  19865. COMPILE_TCPLIVEPLAY_TRUE='#'
  19866. COMPILE_TCPLIVEPLAY_FALSE=
  19867. fi
  19868. have_netmap=no
  19869. enable_netmap=no
  19870. trynetmapdir=
  19871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap socket sending support" >&5
  19872. $as_echo_n "checking for netmap socket sending support... " >&6; }
  19873. # Check whether --with-netmap was given.
  19874. if test "${with_netmap+set}" = set; then :
  19875. withval=$with_netmap; trynetmapdir=$withval
  19876. fi
  19877. NETMAP_SEARCH_DIRS=
  19878. if test "$cross_compiling" = yes; then
  19879. if test "x$trynetmapdir" != "x"; then
  19880. NETMAP_SEARCH_DIRS=$trynetmapdir
  19881. fi
  19882. else
  19883. NETMAP_SEARCH_DIRS="$trynetmapdir /opt/netmap /usr/src/netmap-release /usr/src/netmap /usr/local/src/netmap-release /usr/local/src/netmap /usr/include"
  19884. fi
  19885. for testdir in $NETMAP_SEARCH_DIRS; do
  19886. if test -f "${testdir}/sys/net/netmap.h" ; then
  19887. NETMAPINC="${testdir}/sys/net/netmap.h"
  19888. NETMAPUSERINC="${testdir}/sys/net/netmap_user.h"
  19889. NETMAPINCDIR="${testdir}/sys"
  19890. have_netmap="yes $testdir"
  19891. enable_netmap=yes
  19892. else
  19893. if test -f "${testdir}/net/netmap.h" ; then
  19894. NETMAPINC="${testdir}/net/netmap.h"
  19895. NETMAPUSERINC="${testdir}/net/netmap_user.h"
  19896. NETMAPINCDIR="${testdir}"
  19897. have_netmap="yes $testdir"
  19898. enable_netmap=yes
  19899. fi
  19900. fi
  19901. if test "$have_netmap" != no ; then
  19902. NETMAPFLAGS="-DHAVE_NETMAP"
  19903. OLDCFLAGS="$CFLAGS -I$NETMAPINCDIR"
  19904. CFLAGS="$CFLAGS -DNETMAP_WITH_LIBS -DND -I$NETMAPINCDIR"
  19905. $as_echo "#define HAVE_NETMAP 1" >>confdefs.h
  19906. have_netmap="yes $testdir"
  19907. enable_netmap=yes
  19908. break;
  19909. fi
  19910. done
  19911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_netmap" >&5
  19912. $as_echo "$have_netmap" >&6; }
  19913. if test x$enable_netmap = xyes ; then
  19914. COMPILE_NETMAP_TRUE=
  19915. COMPILE_NETMAP_FALSE='#'
  19916. else
  19917. COMPILE_NETMAP_TRUE='#'
  19918. COMPILE_NETMAP_FALSE=
  19919. fi
  19920. if test "x$NETMAPINCDIR" != "x"; then
  19921. OLDCPPFLAGS="$CPPFLAGS"
  19922. CPPFLAGS="$CPPFLAGS -DNETMAP_WITH_LIBS -DND -I$NETMAPINCDIR"
  19923. have_nm_open=no
  19924. have_nm_nr_reg_mask=no
  19925. have_nm_nr_flags=no
  19926. have_nmring_head_tail=no
  19927. if test "$have_netmap" != no ; then
  19928. ac_fn_c_check_decl "$LINENO" "nm_open" "ac_cv_have_decl_nm_open" "
  19929. #include <stdio.h>
  19930. #include \"${NETMAPUSERINC}\"
  19931. "
  19932. if test "x$ac_cv_have_decl_nm_open" = xyes; then :
  19933. have_nm_open=yes
  19934. fi
  19935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap NR_REG_MASK definition" >&5
  19936. $as_echo_n "checking for netmap NR_REG_MASK definition... " >&6; }
  19937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19938. /* end confdefs.h. */
  19939. #include <stdint.h>
  19940. #include <sys/socket.h>
  19941. #include <net/if.h>
  19942. #include <net/netmap.h>
  19943. int
  19944. main ()
  19945. {
  19946. #ifdef NR_REG_MASK
  19947. /* OK */
  19948. #else
  19949. # error NR_REG_MASK not found
  19950. #endif
  19951. ;
  19952. return 0;
  19953. }
  19954. _ACEOF
  19955. if ac_fn_c_try_compile "$LINENO"; then :
  19956. have_nm_nr_reg_mask=yes
  19957. fi
  19958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nm_nr_reg_mask" >&5
  19960. $as_echo "$have_nm_nr_reg_mask" >&6; }
  19961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap nr_flags definition" >&5
  19962. $as_echo_n "checking for netmap nr_flags definition... " >&6; }
  19963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19964. /* end confdefs.h. */
  19965. #include <stdint.h>
  19966. #include <sys/socket.h>
  19967. #include <net/if.h>
  19968. #include <net/netmap.h>
  19969. int
  19970. main ()
  19971. {
  19972. struct nmreq nmr;
  19973. nmr.nr_flags = 0;
  19974. ;
  19975. return 0;
  19976. }
  19977. _ACEOF
  19978. if ac_fn_c_try_compile "$LINENO"; then :
  19979. have_nm_nr_flags=yes
  19980. fi
  19981. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nm_nr_flags" >&5
  19983. $as_echo "$have_nm_nr_flags" >&6; }
  19984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap ring head/tail definitions" >&5
  19985. $as_echo_n "checking for netmap ring head/tail definitions... " >&6; }
  19986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19987. /* end confdefs.h. */
  19988. #include <stdint.h>
  19989. #include <sys/socket.h>
  19990. #include <net/if.h>
  19991. #include <net/netmap.h>
  19992. int
  19993. main ()
  19994. {
  19995. struct netmap_ring r;
  19996. r.head = r.tail = 0;
  19997. ;
  19998. return 0;
  19999. }
  20000. _ACEOF
  20001. if ac_fn_c_try_compile "$LINENO"; then :
  20002. have_nmring_head_tail=yes
  20003. fi
  20004. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nmring_head_tail" >&5
  20006. $as_echo "$have_nmring_head_tail" >&6; }
  20007. fi
  20008. if test "$have_nm_open" = yes ; then
  20009. $as_echo "#define HAVE_NETMAP_NM_OPEN 1" >>confdefs.h
  20010. fi
  20011. if test "$have_nm_nr_reg_mask" = yes ; then
  20012. $as_echo "#define HAVE_NETMAP_NR_REG 1" >>confdefs.h
  20013. fi
  20014. if test "$have_nm_nr_flags" = yes ; then
  20015. $as_echo "#define HAVE_NETMAP_NR_FLAGS 1" >>confdefs.h
  20016. fi
  20017. if test "$have_nmring_head_tail" = yes ; then
  20018. $as_echo "#define HAVE_NETMAP_RING_HEAD_TAIL 1" >>confdefs.h
  20019. fi
  20020. CPPFLAGS="$OLDCPPFLAGS"
  20021. fi
  20022. have_pf=no
  20023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PF_PACKET socket sending support" >&5
  20024. $as_echo_n "checking for PF_PACKET socket sending support... " >&6; }
  20025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20026. /* end confdefs.h. */
  20027. #include <sys/socket.h>
  20028. #include <netpacket/packet.h>
  20029. #include <net/ethernet.h> /* the L2 protocols */
  20030. #include <netinet/in.h> /* htons */
  20031. int
  20032. main ()
  20033. {
  20034. int pf_socket;
  20035. pf_socket = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
  20036. ;
  20037. return 0;
  20038. }
  20039. _ACEOF
  20040. if ac_fn_c_try_compile "$LINENO"; then :
  20041. $as_echo "#define HAVE_PF_PACKET 1" >>confdefs.h
  20042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20043. $as_echo "yes" >&6; }
  20044. have_pf=yes
  20045. else
  20046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20047. $as_echo "no" >&6; }
  20048. fi
  20049. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20050. have_tx_ring=no
  20051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TX_RING socket sending support" >&5
  20052. $as_echo_n "checking for TX_RING socket sending support... " >&6; }
  20053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20054. /* end confdefs.h. */
  20055. #include <sys/socket.h>
  20056. #include <netpacket/packet.h>
  20057. #include <net/ethernet.h> /* the L2 protocols */
  20058. #include <netinet/in.h> /* htons */
  20059. #include <linux/if_packet.h>
  20060. int
  20061. main ()
  20062. {
  20063. int test;
  20064. test = TP_STATUS_WRONG_FORMAT
  20065. ;
  20066. return 0;
  20067. }
  20068. _ACEOF
  20069. if ac_fn_c_try_compile "$LINENO"; then :
  20070. $as_echo "#define HAVE_TX_RING 1" >>confdefs.h
  20071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20072. $as_echo "yes" >&6; }
  20073. have_tx_ring=yes
  20074. else
  20075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20076. $as_echo "no" >&6; }
  20077. fi
  20078. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20079. for ac_header in net/bpf.h
  20080. do :
  20081. ac_fn_c_check_header_mongrel "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
  20082. if test "x$ac_cv_header_net_bpf_h" = xyes; then :
  20083. cat >>confdefs.h <<_ACEOF
  20084. #define HAVE_NET_BPF_H 1
  20085. _ACEOF
  20086. have_bpf=yes
  20087. else
  20088. have_bpf=no
  20089. fi
  20090. done
  20091. if test $have_bpf = yes ; then
  20092. $as_echo "#define HAVE_BPF 1" >>confdefs.h
  20093. fi
  20094. founddnet=no
  20095. have_libdnet=no
  20096. libdnet_version=
  20097. enable_fragroute=no
  20098. trydnetdir=/usr/local
  20099. if test $have_cygwin = no ; then
  20100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdnet" >&5
  20101. $as_echo_n "checking for libdnet... " >&6; }
  20102. # Check whether --with-libdnet was given.
  20103. if test "${with_libdnet+set}" = set; then :
  20104. withval=$with_libdnet; trydnetdir=$withval
  20105. fi
  20106. case "$build_os" in
  20107. linux*)
  20108. for testdir in $trydnetdir /usr/local /opt/local /usr ; do
  20109. if test -x ${testdir}/bin/dumbnet-config -a $founddnet = no ; then
  20110. LDNETINC="$($testdir/bin/dumbnet-config --cflags)"
  20111. LDNETLIB="$($testdir/bin/dumbnet-config --libs)"
  20112. libdnet_version="$($testdir/bin/dumbnet-config --version) (libdumbnet)"
  20113. founddnet=$testdir
  20114. fi
  20115. done
  20116. ;;
  20117. esac
  20118. if test $founddnet = no ; then
  20119. for testdir in $trydnetdir /usr/local /opt/local $MACOSX_SDK_PATH/usr /usr ; do
  20120. if test -x ${testdir}/bin/dnet-config -a $founddnet = no ; then
  20121. LDNETINC="$($testdir/bin/dnet-config --cflags)"
  20122. LDNETLIB="$($testdir/bin/dnet-config --libs)"
  20123. libdnet_version="$($testdir/bin/dnet-config --version)"
  20124. founddnet=$testdir
  20125. fi
  20126. done
  20127. fi
  20128. if test $founddnet = no ; then
  20129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20130. $as_echo "no" >&6; }
  20131. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdnet not found, disabling fragroute feature" >&5
  20132. $as_echo "$as_me: WARNING: libdnet not found, disabling fragroute feature" >&2;}
  20133. else
  20134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $founddnet" >&5
  20135. $as_echo "$founddnet" >&6; }
  20136. enable_fragroute=yes
  20137. have_libdnet=yes
  20138. $as_echo "#define HAVE_LIBDNET 1" >>confdefs.h
  20139. old_cflags=$CFLAGS
  20140. CFLAGS=$LDNETINC
  20141. for ac_header in dumbnet.h dnet.h
  20142. do :
  20143. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20144. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20145. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20146. cat >>confdefs.h <<_ACEOF
  20147. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20148. _ACEOF
  20149. fi
  20150. done
  20151. CFLAGS=$old_cflags
  20152. fi
  20153. else
  20154. { $as_echo "$as_me:${as_lineno-$LINENO}: Skipping libdnet check under Cygwin for compatibility reasons" >&5
  20155. $as_echo "$as_me: Skipping libdnet check under Cygwin for compatibility reasons" >&6;}
  20156. fi
  20157. cat >>confdefs.h <<_ACEOF
  20158. #define LIBDNET_VERSION "$libdnet_version"
  20159. _ACEOF
  20160. if test x$founddnet != xno; then
  20161. COMPILE_FRAGROUTE_TRUE=
  20162. COMPILE_FRAGROUTE_FALSE='#'
  20163. else
  20164. COMPILE_FRAGROUTE_TRUE='#'
  20165. COMPILE_FRAGROUTE_FALSE=
  20166. fi
  20167. if test x$founddnet != xno ; then
  20168. $as_echo "#define ENABLE_FRAGROUTE 1" >>confdefs.h
  20169. fi
  20170. if test $have_bpf = no -a $have_pcap_inject = no -a $have_pcap_sendpacket = no \
  20171. -a $have_libdnet = no -a $have_pf = no ; then
  20172. as_fn_error $? "Unable to find a supported method to send packets. Please upgrade your libpcap or enable libdnet" "$LINENO" 5
  20173. fi
  20174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLT_LINUX_SLL in libpcap" >&5
  20175. $as_echo_n "checking for DLT_LINUX_SLL in libpcap... " >&6; }
  20176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20177. /* end confdefs.h. */
  20178. #include "$LPCAPINC"
  20179. int
  20180. main ()
  20181. {
  20182. int foo;
  20183. foo = DLT_LINUX_SLL
  20184. ;
  20185. return 0;
  20186. }
  20187. _ACEOF
  20188. if ac_fn_c_try_compile "$LINENO"; then :
  20189. $as_echo "#define HAVE_DLT_LINUX_SLL 1" >>confdefs.h
  20190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20191. $as_echo "yes" >&6; }
  20192. else
  20193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20194. $as_echo "no" >&6; }
  20195. fi
  20196. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLT_C_HDLC in libpcap" >&5
  20198. $as_echo_n "checking for DLT_C_HDLC in libpcap... " >&6; }
  20199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20200. /* end confdefs.h. */
  20201. #include "$LPCAPINC"
  20202. int
  20203. main ()
  20204. {
  20205. int foo;
  20206. foo = DLT_C_HDLC
  20207. ;
  20208. return 0;
  20209. }
  20210. _ACEOF
  20211. if ac_fn_c_try_compile "$LINENO"; then :
  20212. $as_echo "#define HAVE_DLT_C_HDLC 1" >>confdefs.h
  20213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20214. $as_echo "yes" >&6; }
  20215. else
  20216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20217. $as_echo "no" >&6; }
  20218. fi
  20219. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20220. PCAP_BPF_H_FILE="$LPCAPINCDIR/pcap-bpf.h"
  20221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PCAP_BPF_H_FILE" >&5
  20222. $as_echo_n "checking for $PCAP_BPF_H_FILE... " >&6; }
  20223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20224. /* end confdefs.h. */
  20225. #include <sys/types.h>
  20226. #include <sys/time.h>
  20227. #include <stdint.h>
  20228. #include "$PCAP_BPF_H_FILE"
  20229. int
  20230. main ()
  20231. {
  20232. int foo;
  20233. foo = BPF_MAJOR_VERSION;
  20234. ;
  20235. return 0;
  20236. }
  20237. _ACEOF
  20238. if ac_fn_c_try_compile "$LINENO"; then :
  20239. $as_echo "#define INCLUDE_PCAP_BPF_HEADER 1" >>confdefs.h
  20240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20241. $as_echo "yes" >&6; }
  20242. else
  20243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20244. $as_echo "no" >&6; }
  20245. fi
  20246. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20247. foundbpfheader=no
  20248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcap bpf header" >&5
  20249. $as_echo_n "checking for libpcap bpf header... " >&6; }
  20250. for testfile in $LPCAPINCDIR/pcap/bpf.h $LPCAPINCDIR/pcap-bpf.h ; do
  20251. if test -f "${testfile}" -a $foundbpfheader = no ; then
  20252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20253. /* end confdefs.h. */
  20254. #include <sys/types.h>
  20255. #include <sys/time.h>
  20256. #include <stdint.h>
  20257. #include "$testfile"
  20258. int
  20259. main ()
  20260. {
  20261. int foo;
  20262. foo = BPF_MAJOR_VERSION;
  20263. ;
  20264. return 0;
  20265. }
  20266. _ACEOF
  20267. if ac_fn_c_try_compile "$LINENO"; then :
  20268. foundbpfheader=yes
  20269. PCAP_BPF_H_FILE=$testfile
  20270. $as_echo "#define INCLUDE_PCAP_BPF_HEADER 1" >>confdefs.h
  20271. fi
  20272. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20273. fi
  20274. done
  20275. if test $foundbpfheader != no; then
  20276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $testfile" >&5
  20277. $as_echo "$testfile" >&6; }
  20278. else
  20279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20280. $as_echo "no" >&6; }
  20281. fi
  20282. have_pcap_netmap=no
  20283. if test $foundpcap != no ; then
  20284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap libpcap" >&5
  20285. $as_echo_n "checking for netmap libpcap... " >&6; }
  20286. PCAP_NETMAP_C_FILE="$LPCAPINCDIR/pcap-netmap.c"
  20287. if test -f "${PCAP_NETMAP_C_FILE}" ; then
  20288. $as_echo "#define HAVE_LIBPCAP_NETMAP 1" >>confdefs.h
  20289. have_pcap_netmap=yes
  20290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20291. $as_echo "yes" >&6; }
  20292. else
  20293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20294. $as_echo "no" >&6; }
  20295. fi
  20296. fi
  20297. LIBS="$OLDLIBS"
  20298. CFLAGS="$OLDCFLAGS"
  20299. pcapnav_ver=no
  20300. pcncfg=no
  20301. # Check whether --with-pcapnav-config was given.
  20302. if test "${with_pcapnav_config+set}" = set; then :
  20303. withval=$with_pcapnav_config; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcapnav-config" >&5
  20304. $as_echo_n "checking for pcapnav-config... " >&6; }
  20305. if test -x $withval ; then
  20306. pcncfg=$withval
  20307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcncfg" >&5
  20308. $as_echo "$pcncfg" >&6; }
  20309. elif test x$withval = xno ; then
  20310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20311. $as_echo "no" >&6; }
  20312. else
  20313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Can't find pcapnav-config: disabling offset jump feature" >&5
  20314. $as_echo "Can't find pcapnav-config: disabling offset jump feature" >&6; }
  20315. fi
  20316. else
  20317. # Extract the first word of "pcapnav-config", so it can be a program name with args.
  20318. set dummy pcapnav-config; ac_word=$2
  20319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20320. $as_echo_n "checking for $ac_word... " >&6; }
  20321. if ${ac_cv_path_pcncfg+:} false; then :
  20322. $as_echo_n "(cached) " >&6
  20323. else
  20324. case $pcncfg in
  20325. [\\/]* | ?:[\\/]*)
  20326. ac_cv_path_pcncfg="$pcncfg" # Let the user override the test with a path.
  20327. ;;
  20328. *)
  20329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20330. for as_dir in $PATH
  20331. do
  20332. IFS=$as_save_IFS
  20333. test -z "$as_dir" && as_dir=.
  20334. for ac_exec_ext in '' $ac_executable_extensions; do
  20335. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20336. ac_cv_path_pcncfg="$as_dir/$ac_word$ac_exec_ext"
  20337. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20338. break 2
  20339. fi
  20340. done
  20341. done
  20342. IFS=$as_save_IFS
  20343. test -z "$ac_cv_path_pcncfg" && ac_cv_path_pcncfg="no "
  20344. ;;
  20345. esac
  20346. fi
  20347. pcncfg=$ac_cv_path_pcncfg
  20348. if test -n "$pcncfg"; then
  20349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcncfg" >&5
  20350. $as_echo "$pcncfg" >&6; }
  20351. else
  20352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20353. $as_echo "no" >&6; }
  20354. fi
  20355. fi
  20356. if test $pcncfg != no ; then
  20357. LNAVLIB=$($pcncfg --libs)
  20358. LNAV_CFLAGS=$($pcncfg --cflags)
  20359. PCAPNAV_VERSION=$($pcncfg --version)
  20360. cat >>confdefs.h <<_ACEOF
  20361. #define PCAPNAV_VERSION "$PCAPNAV_VERSION"
  20362. _ACEOF
  20363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcapnav version" >&5
  20364. $as_echo_n "checking for libpcapnav version... " >&6; }
  20365. if test "$cross_compiling" = yes; then :
  20366. libpcapnav_ver=no
  20367. else
  20368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20369. /* end confdefs.h. */
  20370. #include <string.h>
  20371. #define PCAPNAV_TEST "0.4"
  20372. /*
  20373. * simple proggy to test the version of libpcapnav
  20374. * returns zero if version >= 0.4
  20375. * or one otherwise
  20376. */
  20377. int
  20378. main (int argc, char *argv[])
  20379. {
  20380. if (strncmp(PCAPNAV_VERSION, PCAPNAV_TEST, 3) >= 0)
  20381. exit(0);
  20382. exit(1);
  20383. }
  20384. _ACEOF
  20385. if ac_fn_c_try_run "$LINENO"; then :
  20386. libpcapnav_ver=yes
  20387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.4" >&5
  20388. $as_echo ">= 0.4" >&6; }
  20389. else
  20390. libpcapnav_ver=no
  20391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: < 0.4" >&5
  20392. $as_echo "< 0.4" >&6; }
  20393. fi
  20394. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20395. conftest.$ac_objext conftest.beam conftest.$ac_ext
  20396. fi
  20397. if test x$libpcapnav_ver = xno ; then
  20398. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libpcapnav versions < 0.4 are not supported.
  20399. Please upgrade to version 0.4 or better.
  20400. Disabling offset jump feature." >&5
  20401. $as_echo "$as_me: WARNING: Libpcapnav versions < 0.4 are not supported.
  20402. Please upgrade to version 0.4 or better.
  20403. Disabling offset jump feature." >&2;}
  20404. else
  20405. $as_echo "#define HAVE_PCAPNAV 1" >>confdefs.h
  20406. fi
  20407. fi # checking pcapnav version
  20408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for requires strict byte alignment" >&5
  20409. $as_echo_n "checking for requires strict byte alignment... " >&6; }
  20410. if ${unaligned_cv_fail+:} false; then :
  20411. $as_echo_n "(cached) " >&6
  20412. else
  20413. case "$host_cpu" in
  20414. # XXX: should also check that they don't do weird things (like on arm)
  20415. alpha*|arm*|hp*|mips*|sparc*|ia64)
  20416. unaligned_cv_fail=yes
  20417. ;;
  20418. *)
  20419. cat >conftest.c <<EOF
  20420. #include <sys/types.h>
  20421. #include <sys/wait.h>
  20422. #include <stdio.h>
  20423. unsigned char a[5] = { 1, 2, 3, 4, 5 };
  20424. main() {
  20425. unsigned int i;
  20426. pid_t pid;
  20427. int status;
  20428. /* avoid "core dumped" message */
  20429. pid = fork();
  20430. if (pid < 0)
  20431. exit(2);
  20432. if (pid > 0) {
  20433. /* parent */
  20434. pid = waitpid(pid, &status, 0);
  20435. if (pid < 0)
  20436. exit(3);
  20437. exit(!WIFEXITED(status));
  20438. }
  20439. /* child */
  20440. i = *(unsigned int *)&a[1];
  20441. printf("%d\n", i);
  20442. exit(0);
  20443. }
  20444. EOF
  20445. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
  20446. conftest.c $LIBS >/dev/null 2>&1
  20447. if test ! -x conftest ; then
  20448. unaligned_cv_fail=yes
  20449. else
  20450. ./conftest >conftest.out
  20451. if test ! -s conftest.out ; then
  20452. unaligned_cv_fail=yes
  20453. else
  20454. unaligned_cv_fail=no
  20455. fi
  20456. fi
  20457. rm -f conftest* core core.conftest
  20458. ;;
  20459. esac
  20460. fi
  20461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unaligned_cv_fail" >&5
  20462. $as_echo "$unaligned_cv_fail" >&6; }
  20463. if test $unaligned_cv_fail = yes ; then
  20464. $as_echo "#define FORCE_ALIGN 1" >>confdefs.h
  20465. fi
  20466. tcpdump_path=no
  20467. # Check whether --with-tcpdump was given.
  20468. if test "${with_tcpdump+set}" = set; then :
  20469. withval=$with_tcpdump; if test -x $withval ; then
  20470. tcpdump_path=$withval
  20471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using tcpdump in $tcpdump_path" >&5
  20472. $as_echo "Using tcpdump in $tcpdump_path" >&6; }
  20473. else
  20474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error: $withval does not exist or is not executable" >&5
  20475. $as_echo "Error: $withval does not exist or is not executable" >&6; }
  20476. fi
  20477. else
  20478. # Extract the first word of "tcpdump", so it can be a program name with args.
  20479. set dummy tcpdump; ac_word=$2
  20480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20481. $as_echo_n "checking for $ac_word... " >&6; }
  20482. if ${ac_cv_path_tcpdump_path+:} false; then :
  20483. $as_echo_n "(cached) " >&6
  20484. else
  20485. case $tcpdump_path in
  20486. [\\/]* | ?:[\\/]*)
  20487. ac_cv_path_tcpdump_path="$tcpdump_path" # Let the user override the test with a path.
  20488. ;;
  20489. *)
  20490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20491. as_dummy="$PATH:/usr/sbin:/sbin:/usr/local/sbin"
  20492. for as_dir in $as_dummy
  20493. do
  20494. IFS=$as_save_IFS
  20495. test -z "$as_dir" && as_dir=.
  20496. for ac_exec_ext in '' $ac_executable_extensions; do
  20497. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20498. ac_cv_path_tcpdump_path="$as_dir/$ac_word$ac_exec_ext"
  20499. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20500. break 2
  20501. fi
  20502. done
  20503. done
  20504. IFS=$as_save_IFS
  20505. test -z "$ac_cv_path_tcpdump_path" && ac_cv_path_tcpdump_path=""no""
  20506. ;;
  20507. esac
  20508. fi
  20509. tcpdump_path=$ac_cv_path_tcpdump_path
  20510. if test -n "$tcpdump_path"; then
  20511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_path" >&5
  20512. $as_echo "$tcpdump_path" >&6; }
  20513. else
  20514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20515. $as_echo "no" >&6; }
  20516. fi
  20517. fi
  20518. if test "$tcpdump_path" = "no"; then
  20519. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  20520. Disabling --verbose" >&5
  20521. $as_echo "$as_me: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  20522. Disabling --verbose" >&2;}
  20523. else
  20524. $as_echo "#define HAVE_TCPDUMP 1" >>confdefs.h
  20525. cat >>confdefs.h <<_ACEOF
  20526. #define TCPDUMP_BINARY "$tcpdump_path"
  20527. _ACEOF
  20528. fi
  20529. if test "$tcpdump_path" != "no" -a x$have_pcap_dump_fopen = xyes; then
  20530. ENABLE_TCPDUMP_TRUE=
  20531. ENABLE_TCPDUMP_FALSE='#'
  20532. else
  20533. ENABLE_TCPDUMP_TRUE='#'
  20534. ENABLE_TCPDUMP_FALSE=
  20535. fi
  20536. if test x$tcpdump_path != xno -a x$have_pcap_dump_fopen = xyes ; then
  20537. $as_echo "#define ENABLE_VERBOSE 1" >>confdefs.h
  20538. else
  20539. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of libpcap does not support --verbose" >&5
  20540. $as_echo "$as_me: WARNING: Your version of libpcap does not support --verbose" >&2;}
  20541. fi
  20542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'make test' profile" >&5
  20543. $as_echo_n "checking for 'make test' profile... " >&6; }
  20544. if test "$host" != "$build" ; then
  20545. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to do tests when cross-compiling" >&5
  20546. $as_echo "$as_me: WARNING: Unable to do tests when cross-compiling" >&2;}
  20547. fi
  20548. # Check whether --with-testnic was given.
  20549. if test "${with_testnic+set}" = set; then :
  20550. withval=$with_testnic; nic1=$withval
  20551. nic2=$withval
  20552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using --with-testnic=$withval" >&5
  20553. $as_echo "Using --with-testnic=$withval" >&6; }
  20554. else
  20555. case $host in
  20556. *-*-linux*)
  20557. nic1=eth0
  20558. nic2=eth0
  20559. ;;
  20560. *-*-solaris*)
  20561. nic1=hme0
  20562. nic2=hme0
  20563. ;;
  20564. *-*-sunos*)
  20565. nic1=hme0
  20566. nic2=hme0
  20567. ;;
  20568. *-apple-darwin*)
  20569. nic1=en0
  20570. nic2=en0
  20571. ;;
  20572. *-*-openbsd*)
  20573. nic1=xl0
  20574. nic2=xl0
  20575. ;;
  20576. *-*-freebsd*)
  20577. nic1=em0
  20578. nic2=em0
  20579. ;;
  20580. *-*-cygwin)
  20581. nic1=%0
  20582. nic2=%0
  20583. ;;
  20584. *)
  20585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host is unknown! Using first non-loopback interface" >&5
  20586. $as_echo "$host is unknown! Using first non-loopback interface" >&6; }
  20587. nic1=%0
  20588. nic2=%0
  20589. ;;
  20590. esac
  20591. fi
  20592. disable_pcap_findalldevs=no
  20593. osx_frameworks=no
  20594. case $host in
  20595. *-*-linux*)
  20596. $as_echo "#define HAVE_LINUX 1" >>confdefs.h
  20597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
  20598. $as_echo "Linux" >&6; }
  20599. ;;
  20600. *-*-solaris*)
  20601. $as_echo "#define HAVE_SOLARIS 1" >>confdefs.h
  20602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
  20603. $as_echo "Solaris" >&6; }
  20604. ;;
  20605. *-*-sunos*)
  20606. $as_echo "#define HAVE_SUNOS 1" >>confdefs.h
  20607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunOS" >&5
  20608. $as_echo "SunOS" >&6; }
  20609. ;;
  20610. *-apple-darwin*)
  20611. if test x$libpcap_version_096 = xno ; then
  20612. disable_pcap_findalldevs=yes
  20613. fi
  20614. osx_frameworks=yes
  20615. $as_echo "#define HAVE_DARWIN 1" >>confdefs.h
  20616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Apple OS X" >&5
  20617. $as_echo "Apple OS X" >&6; }
  20618. ;;
  20619. *-*-openbsd*)
  20620. $as_echo "#define HAVE_OPENBSD 1" >>confdefs.h
  20621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenBSD" >&5
  20622. $as_echo "OpenBSD" >&6; }
  20623. ;;
  20624. *-*-freebsd*)
  20625. $as_echo "#define HAVE_FREEBSD 1" >>confdefs.h
  20626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: FreeBSD" >&5
  20627. $as_echo "FreeBSD" >&6; }
  20628. ;;
  20629. *-*-cygwin)
  20630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Win32/Cygwin" >&5
  20631. $as_echo "Win32/Cygwin" >&6; }
  20632. $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
  20633. ;;
  20634. *)
  20635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host is unknown!" >&5
  20636. $as_echo "$host is unknown!" >&6; }
  20637. ;;
  20638. esac
  20639. if test "$osx_frameworks" = "yes"; then
  20640. ENABLE_OSX_FRAMEWORKS_TRUE=
  20641. ENABLE_OSX_FRAMEWORKS_FALSE='#'
  20642. else
  20643. ENABLE_OSX_FRAMEWORKS_TRUE='#'
  20644. ENABLE_OSX_FRAMEWORKS_FALSE=
  20645. fi
  20646. # Check whether --with-testnic2 was given.
  20647. if test "${with_testnic2+set}" = set; then :
  20648. withval=$with_testnic2; nic2=$withval
  20649. fi
  20650. { $as_echo "$as_me:${as_lineno-$LINENO}: Using $nic1 for 1st test network interface card" >&5
  20651. $as_echo "$as_me: Using $nic1 for 1st test network interface card" >&6;}
  20652. { $as_echo "$as_me:${as_lineno-$LINENO}: Using $nic2 for 2nd test network interface card" >&5
  20653. $as_echo "$as_me: Using $nic2 for 2nd test network interface card" >&6;}
  20654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if it's ok to use pcap_findalldevs()" >&5
  20655. $as_echo_n "checking if it's ok to use pcap_findalldevs()... " >&6; }
  20656. if test x$disable_pcap_findalldevs = xno ; then
  20657. $as_echo "#define ENABLE_PCAP_FINDALLDEVS 1" >>confdefs.h
  20658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20659. $as_echo "yes" >&6; }
  20660. else
  20661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20662. $as_echo "no" >&6; }
  20663. fi
  20664. ac_header_dirent=no
  20665. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  20666. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  20667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  20668. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  20669. if eval \${$as_ac_Header+:} false; then :
  20670. $as_echo_n "(cached) " >&6
  20671. else
  20672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20673. /* end confdefs.h. */
  20674. #include <sys/types.h>
  20675. #include <$ac_hdr>
  20676. int
  20677. main ()
  20678. {
  20679. if ((DIR *) 0)
  20680. return 0;
  20681. ;
  20682. return 0;
  20683. }
  20684. _ACEOF
  20685. if ac_fn_c_try_compile "$LINENO"; then :
  20686. eval "$as_ac_Header=yes"
  20687. else
  20688. eval "$as_ac_Header=no"
  20689. fi
  20690. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20691. fi
  20692. eval ac_res=\$$as_ac_Header
  20693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20694. $as_echo "$ac_res" >&6; }
  20695. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20696. cat >>confdefs.h <<_ACEOF
  20697. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  20698. _ACEOF
  20699. ac_header_dirent=$ac_hdr; break
  20700. fi
  20701. done
  20702. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  20703. if test $ac_header_dirent = dirent.h; then
  20704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  20705. $as_echo_n "checking for library containing opendir... " >&6; }
  20706. if ${ac_cv_search_opendir+:} false; then :
  20707. $as_echo_n "(cached) " >&6
  20708. else
  20709. ac_func_search_save_LIBS=$LIBS
  20710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20711. /* end confdefs.h. */
  20712. /* Override any GCC internal prototype to avoid an error.
  20713. Use char because int might match the return type of a GCC
  20714. builtin and then its argument prototype would still apply. */
  20715. #ifdef __cplusplus
  20716. extern "C"
  20717. #endif
  20718. char opendir ();
  20719. int
  20720. main ()
  20721. {
  20722. return opendir ();
  20723. ;
  20724. return 0;
  20725. }
  20726. _ACEOF
  20727. for ac_lib in '' dir; do
  20728. if test -z "$ac_lib"; then
  20729. ac_res="none required"
  20730. else
  20731. ac_res=-l$ac_lib
  20732. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  20733. fi
  20734. if ac_fn_c_try_link "$LINENO"; then :
  20735. ac_cv_search_opendir=$ac_res
  20736. fi
  20737. rm -f core conftest.err conftest.$ac_objext \
  20738. conftest$ac_exeext
  20739. if ${ac_cv_search_opendir+:} false; then :
  20740. break
  20741. fi
  20742. done
  20743. if ${ac_cv_search_opendir+:} false; then :
  20744. else
  20745. ac_cv_search_opendir=no
  20746. fi
  20747. rm conftest.$ac_ext
  20748. LIBS=$ac_func_search_save_LIBS
  20749. fi
  20750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  20751. $as_echo "$ac_cv_search_opendir" >&6; }
  20752. ac_res=$ac_cv_search_opendir
  20753. if test "$ac_res" != no; then :
  20754. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  20755. fi
  20756. else
  20757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  20758. $as_echo_n "checking for library containing opendir... " >&6; }
  20759. if ${ac_cv_search_opendir+:} false; then :
  20760. $as_echo_n "(cached) " >&6
  20761. else
  20762. ac_func_search_save_LIBS=$LIBS
  20763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20764. /* end confdefs.h. */
  20765. /* Override any GCC internal prototype to avoid an error.
  20766. Use char because int might match the return type of a GCC
  20767. builtin and then its argument prototype would still apply. */
  20768. #ifdef __cplusplus
  20769. extern "C"
  20770. #endif
  20771. char opendir ();
  20772. int
  20773. main ()
  20774. {
  20775. return opendir ();
  20776. ;
  20777. return 0;
  20778. }
  20779. _ACEOF
  20780. for ac_lib in '' x; do
  20781. if test -z "$ac_lib"; then
  20782. ac_res="none required"
  20783. else
  20784. ac_res=-l$ac_lib
  20785. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  20786. fi
  20787. if ac_fn_c_try_link "$LINENO"; then :
  20788. ac_cv_search_opendir=$ac_res
  20789. fi
  20790. rm -f core conftest.err conftest.$ac_objext \
  20791. conftest$ac_exeext
  20792. if ${ac_cv_search_opendir+:} false; then :
  20793. break
  20794. fi
  20795. done
  20796. if ${ac_cv_search_opendir+:} false; then :
  20797. else
  20798. ac_cv_search_opendir=no
  20799. fi
  20800. rm conftest.$ac_ext
  20801. LIBS=$ac_func_search_save_LIBS
  20802. fi
  20803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  20804. $as_echo "$ac_cv_search_opendir" >&6; }
  20805. ac_res=$ac_cv_search_opendir
  20806. if test "$ac_res" != no; then :
  20807. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  20808. fi
  20809. fi
  20810. # =================
  20811. # AC_CHECK_HEADERS
  20812. # =================
  20813. for ac_header in \
  20814. sys/mman.h sys/param.h sys/poll.h sys/procset.h \
  20815. sys/select.h sys/socket.h sys/stropts.h sys/time.h \
  20816. sys/un.h sys/wait.h dlfcn.h errno.h \
  20817. fcntl.h libgen.h libintl.h memory.h \
  20818. netinet/in.h setjmp.h stdbool.h sysexits.h \
  20819. unistd.h utime.h
  20820. do :
  20821. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20822. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20823. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20824. cat >>confdefs.h <<_ACEOF
  20825. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20826. _ACEOF
  20827. fi
  20828. done
  20829. for ac_header in stdarg.h varargs.h
  20830. do :
  20831. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20832. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20833. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20834. cat >>confdefs.h <<_ACEOF
  20835. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20836. _ACEOF
  20837. lo_have_arg_hdr=true;break
  20838. else
  20839. lo_have_arg_hdr=false
  20840. fi
  20841. done
  20842. for ac_header in string.h strings.h
  20843. do :
  20844. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20845. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20846. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20847. cat >>confdefs.h <<_ACEOF
  20848. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20849. _ACEOF
  20850. lo_have_str_hdr=true;break
  20851. else
  20852. lo_have_str_hdr=false
  20853. fi
  20854. done
  20855. for ac_header in limits.h sys/limits.h values.h
  20856. do :
  20857. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20858. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20859. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20860. cat >>confdefs.h <<_ACEOF
  20861. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20862. _ACEOF
  20863. lo_have_lim_hdr=true;break
  20864. else
  20865. lo_have_lim_hdr=false
  20866. fi
  20867. done
  20868. for ac_header in inttypes.h stdint.h
  20869. do :
  20870. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20871. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20872. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20873. cat >>confdefs.h <<_ACEOF
  20874. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20875. _ACEOF
  20876. lo_have_typ_hdr=true;break
  20877. else
  20878. lo_have_typ_hdr=false
  20879. fi
  20880. done
  20881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
  20882. $as_echo_n "checking for working stdnoreturn.h... " >&6; }
  20883. if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
  20884. $as_echo_n "(cached) " >&6
  20885. else
  20886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20887. /* end confdefs.h. */
  20888. #include <stdlib.h>
  20889. #include <stdnoreturn.h>
  20890. /* Do not check for 'noreturn' after the return type.
  20891. C11 allows it, but it's rarely done that way
  20892. and circa-2012 bleeding-edge GCC rejects it when given
  20893. -Werror=old-style-declaration. */
  20894. noreturn void foo1 (void) { exit (0); }
  20895. _Noreturn void foo2 (void) { exit (0); }
  20896. int testit (int argc, char **argv) {
  20897. if (argc & 1)
  20898. return 0;
  20899. (argv[0][0] ? foo1 : foo2) ();
  20900. }
  20901. int
  20902. main ()
  20903. {
  20904. ;
  20905. return 0;
  20906. }
  20907. _ACEOF
  20908. if ac_fn_c_try_compile "$LINENO"; then :
  20909. gl_cv_header_working_stdnoreturn_h=yes
  20910. else
  20911. gl_cv_header_working_stdnoreturn_h=no
  20912. fi
  20913. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20914. fi
  20915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
  20916. $as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }
  20917. if test $gl_cv_header_working_stdnoreturn_h = yes; then
  20918. STDNORETURN_H=''
  20919. else
  20920. STDNORETURN_H='stdnoreturn.h'
  20921. fi
  20922. if test -n "$STDNORETURN_H"; then
  20923. GL_GENERATE_STDNORETURN_H_TRUE=
  20924. GL_GENERATE_STDNORETURN_H_FALSE='#'
  20925. else
  20926. GL_GENERATE_STDNORETURN_H_TRUE='#'
  20927. GL_GENERATE_STDNORETURN_H_FALSE=
  20928. fi
  20929. # ----------------------------------------------------------------------
  20930. # check for various programs used during the build.
  20931. # On OS/X, "wchar.h" needs "runetype.h" to work properly.
  20932. # ----------------------------------------------------------------------
  20933. for ac_header in runetype.h wchar.h
  20934. do :
  20935. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20936. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  20937. $ac_includes_default
  20938. #if HAVE_RUNETYPE_H
  20939. # include <runetype.h>
  20940. #endif
  20941. "
  20942. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20943. cat >>confdefs.h <<_ACEOF
  20944. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20945. _ACEOF
  20946. fi
  20947. done
  20948. # Check whether --enable-nls was given.
  20949. if test "${enable_nls+set}" = set; then :
  20950. enableval=$enable_nls;
  20951. fi
  20952. if test "x$enable_nls" != "xno" && \
  20953. test "X${ac_cv_header_libintl_h}" = Xyes; then :
  20954. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  20955. fi
  20956. # --------------------------------------------
  20957. # Verify certain entries from AC_CHECK_HEADERS
  20958. # --------------------------------------------
  20959. ${lo_have_arg_hdr} || \
  20960. as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
  20961. ${lo_have_str_hdr} || \
  20962. as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
  20963. ${lo_have_lim_hdr} || \
  20964. as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
  20965. ${lo_have_typ_hdr} || \
  20966. as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
  20967. for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
  20968. do eval as_ac_var=\${ac_cv_header_${f}_h}
  20969. test "X${as_ac_var}" = Xyes || {
  20970. as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
  20971. }
  20972. done
  20973. test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
  20974. echo '#include <stdint.h>' > inttypes.h
  20975. # ----------------------------------------------------------------------
  20976. # Checks for typedefs
  20977. # ----------------------------------------------------------------------
  20978. ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
  20979. if test "x$ac_cv_type_wchar_t" = xyes; then :
  20980. cat >>confdefs.h <<_ACEOF
  20981. #define HAVE_WCHAR_T 1
  20982. _ACEOF
  20983. fi
  20984. ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
  20985. $ac_includes_default
  20986. #if HAVE_RUNETYPE_H
  20987. # include <runetype.h>
  20988. #endif
  20989. #if HAVE_WCHAR_H
  20990. # include <wchar.h>
  20991. #endif
  20992. "
  20993. if test "x$ac_cv_type_wint_t" = xyes; then :
  20994. cat >>confdefs.h <<_ACEOF
  20995. #define HAVE_WINT_T 1
  20996. _ACEOF
  20997. fi
  20998. ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
  20999. if test "x$ac_cv_type_int8_t" = xyes; then :
  21000. cat >>confdefs.h <<_ACEOF
  21001. #define HAVE_INT8_T 1
  21002. _ACEOF
  21003. fi
  21004. ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
  21005. if test "x$ac_cv_type_uint8_t" = xyes; then :
  21006. cat >>confdefs.h <<_ACEOF
  21007. #define HAVE_UINT8_T 1
  21008. _ACEOF
  21009. fi
  21010. ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
  21011. if test "x$ac_cv_type_int16_t" = xyes; then :
  21012. cat >>confdefs.h <<_ACEOF
  21013. #define HAVE_INT16_T 1
  21014. _ACEOF
  21015. fi
  21016. ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
  21017. if test "x$ac_cv_type_uint16_t" = xyes; then :
  21018. cat >>confdefs.h <<_ACEOF
  21019. #define HAVE_UINT16_T 1
  21020. _ACEOF
  21021. fi
  21022. ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
  21023. if test "x$ac_cv_type_int32_t" = xyes; then :
  21024. cat >>confdefs.h <<_ACEOF
  21025. #define HAVE_INT32_T 1
  21026. _ACEOF
  21027. fi
  21028. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
  21029. if test "x$ac_cv_type_uint32_t" = xyes; then :
  21030. cat >>confdefs.h <<_ACEOF
  21031. #define HAVE_UINT32_T 1
  21032. _ACEOF
  21033. fi
  21034. ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
  21035. if test "x$ac_cv_type_intptr_t" = xyes; then :
  21036. cat >>confdefs.h <<_ACEOF
  21037. #define HAVE_INTPTR_T 1
  21038. _ACEOF
  21039. fi
  21040. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  21041. if test "x$ac_cv_type_uintptr_t" = xyes; then :
  21042. cat >>confdefs.h <<_ACEOF
  21043. #define HAVE_UINTPTR_T 1
  21044. _ACEOF
  21045. fi
  21046. ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
  21047. if test "x$ac_cv_type_uint_t" = xyes; then :
  21048. cat >>confdefs.h <<_ACEOF
  21049. #define HAVE_UINT_T 1
  21050. _ACEOF
  21051. fi
  21052. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  21053. if test "x$ac_cv_type_pid_t" = xyes; then :
  21054. cat >>confdefs.h <<_ACEOF
  21055. #define HAVE_PID_T 1
  21056. _ACEOF
  21057. fi
  21058. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  21059. if test "x$ac_cv_type_size_t" = xyes; then :
  21060. cat >>confdefs.h <<_ACEOF
  21061. #define HAVE_SIZE_T 1
  21062. _ACEOF
  21063. fi
  21064. ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  21065. if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
  21066. cat >>confdefs.h <<_ACEOF
  21067. #define HAVE_PTRDIFF_T 1
  21068. _ACEOF
  21069. fi
  21070. # The cast to long int works around a bug in the HP C Compiler
  21071. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  21072. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  21073. # This bug is HP SR number 8606223364.
  21074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
  21075. $as_echo_n "checking size of char *... " >&6; }
  21076. if ${ac_cv_sizeof_char_p+:} false; then :
  21077. $as_echo_n "(cached) " >&6
  21078. else
  21079. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
  21080. else
  21081. if test "$ac_cv_type_char_p" = yes; then
  21082. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  21083. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21084. as_fn_error 77 "cannot compute sizeof (char *)
  21085. See \`config.log' for more details" "$LINENO" 5; }
  21086. else
  21087. ac_cv_sizeof_char_p=0
  21088. fi
  21089. fi
  21090. fi
  21091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
  21092. $as_echo "$ac_cv_sizeof_char_p" >&6; }
  21093. cat >>confdefs.h <<_ACEOF
  21094. #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
  21095. _ACEOF
  21096. # The cast to long int works around a bug in the HP C Compiler
  21097. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  21098. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  21099. # This bug is HP SR number 8606223364.
  21100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  21101. $as_echo_n "checking size of int... " >&6; }
  21102. if ${ac_cv_sizeof_int+:} false; then :
  21103. $as_echo_n "(cached) " >&6
  21104. else
  21105. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  21106. else
  21107. if test "$ac_cv_type_int" = yes; then
  21108. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  21109. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21110. as_fn_error 77 "cannot compute sizeof (int)
  21111. See \`config.log' for more details" "$LINENO" 5; }
  21112. else
  21113. ac_cv_sizeof_int=0
  21114. fi
  21115. fi
  21116. fi
  21117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  21118. $as_echo "$ac_cv_sizeof_int" >&6; }
  21119. cat >>confdefs.h <<_ACEOF
  21120. #define SIZEOF_INT $ac_cv_sizeof_int
  21121. _ACEOF
  21122. # The cast to long int works around a bug in the HP C Compiler
  21123. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  21124. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  21125. # This bug is HP SR number 8606223364.
  21126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  21127. $as_echo_n "checking size of long... " >&6; }
  21128. if ${ac_cv_sizeof_long+:} false; then :
  21129. $as_echo_n "(cached) " >&6
  21130. else
  21131. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  21132. else
  21133. if test "$ac_cv_type_long" = yes; then
  21134. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  21135. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21136. as_fn_error 77 "cannot compute sizeof (long)
  21137. See \`config.log' for more details" "$LINENO" 5; }
  21138. else
  21139. ac_cv_sizeof_long=0
  21140. fi
  21141. fi
  21142. fi
  21143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  21144. $as_echo "$ac_cv_sizeof_long" >&6; }
  21145. cat >>confdefs.h <<_ACEOF
  21146. #define SIZEOF_LONG $ac_cv_sizeof_long
  21147. _ACEOF
  21148. # The cast to long int works around a bug in the HP C Compiler
  21149. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  21150. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  21151. # This bug is HP SR number 8606223364.
  21152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  21153. $as_echo_n "checking size of short... " >&6; }
  21154. if ${ac_cv_sizeof_short+:} false; then :
  21155. $as_echo_n "(cached) " >&6
  21156. else
  21157. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  21158. else
  21159. if test "$ac_cv_type_short" = yes; then
  21160. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  21161. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21162. as_fn_error 77 "cannot compute sizeof (short)
  21163. See \`config.log' for more details" "$LINENO" 5; }
  21164. else
  21165. ac_cv_sizeof_short=0
  21166. fi
  21167. fi
  21168. fi
  21169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  21170. $as_echo "$ac_cv_sizeof_short" >&6; }
  21171. cat >>confdefs.h <<_ACEOF
  21172. #define SIZEOF_SHORT $ac_cv_sizeof_short
  21173. _ACEOF
  21174. # ------------
  21175. # AC_CHECK_LIB
  21176. # ------------
  21177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
  21178. $as_echo_n "checking for pathfind in -lgen... " >&6; }
  21179. if ${ac_cv_lib_gen_pathfind+:} false; then :
  21180. $as_echo_n "(cached) " >&6
  21181. else
  21182. ac_check_lib_save_LIBS=$LIBS
  21183. LIBS="-lgen $LIBS"
  21184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21185. /* end confdefs.h. */
  21186. /* Override any GCC internal prototype to avoid an error.
  21187. Use char because int might match the return type of a GCC
  21188. builtin and then its argument prototype would still apply. */
  21189. #ifdef __cplusplus
  21190. extern "C"
  21191. #endif
  21192. char pathfind ();
  21193. int
  21194. main ()
  21195. {
  21196. return pathfind ();
  21197. ;
  21198. return 0;
  21199. }
  21200. _ACEOF
  21201. if ac_fn_c_try_link "$LINENO"; then :
  21202. ac_cv_lib_gen_pathfind=yes
  21203. else
  21204. ac_cv_lib_gen_pathfind=no
  21205. fi
  21206. rm -f core conftest.err conftest.$ac_objext \
  21207. conftest$ac_exeext conftest.$ac_ext
  21208. LIBS=$ac_check_lib_save_LIBS
  21209. fi
  21210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
  21211. $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
  21212. if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
  21213. cat >>confdefs.h <<_ACEOF
  21214. #define HAVE_LIBGEN 1
  21215. _ACEOF
  21216. LIBS="-lgen $LIBS"
  21217. fi
  21218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
  21219. $as_echo_n "checking for gettext in -lintl... " >&6; }
  21220. if ${ac_cv_lib_intl_gettext+:} false; then :
  21221. $as_echo_n "(cached) " >&6
  21222. else
  21223. ac_check_lib_save_LIBS=$LIBS
  21224. LIBS="-lintl $LIBS"
  21225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21226. /* end confdefs.h. */
  21227. /* Override any GCC internal prototype to avoid an error.
  21228. Use char because int might match the return type of a GCC
  21229. builtin and then its argument prototype would still apply. */
  21230. #ifdef __cplusplus
  21231. extern "C"
  21232. #endif
  21233. char gettext ();
  21234. int
  21235. main ()
  21236. {
  21237. return gettext ();
  21238. ;
  21239. return 0;
  21240. }
  21241. _ACEOF
  21242. if ac_fn_c_try_link "$LINENO"; then :
  21243. ac_cv_lib_intl_gettext=yes
  21244. else
  21245. ac_cv_lib_intl_gettext=no
  21246. fi
  21247. rm -f core conftest.err conftest.$ac_objext \
  21248. conftest$ac_exeext conftest.$ac_ext
  21249. LIBS=$ac_check_lib_save_LIBS
  21250. fi
  21251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
  21252. $as_echo "$ac_cv_lib_intl_gettext" >&6; }
  21253. if test "x$ac_cv_lib_intl_gettext" = xyes; then :
  21254. cat >>confdefs.h <<_ACEOF
  21255. #define HAVE_LIBINTL 1
  21256. _ACEOF
  21257. LIBS="-lintl $LIBS"
  21258. fi
  21259. for ac_func in vprintf
  21260. do :
  21261. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  21262. if test "x$ac_cv_func_vprintf" = xyes; then :
  21263. cat >>confdefs.h <<_ACEOF
  21264. #define HAVE_VPRINTF 1
  21265. _ACEOF
  21266. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  21267. if test "x$ac_cv_func__doprnt" = xyes; then :
  21268. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  21269. fi
  21270. fi
  21271. done
  21272. for ac_header in vfork.h
  21273. do :
  21274. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  21275. if test "x$ac_cv_header_vfork_h" = xyes; then :
  21276. cat >>confdefs.h <<_ACEOF
  21277. #define HAVE_VFORK_H 1
  21278. _ACEOF
  21279. fi
  21280. done
  21281. for ac_func in fork vfork
  21282. do :
  21283. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21284. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  21285. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  21286. cat >>confdefs.h <<_ACEOF
  21287. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21288. _ACEOF
  21289. fi
  21290. done
  21291. if test "x$ac_cv_func_fork" = xyes; then
  21292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  21293. $as_echo_n "checking for working fork... " >&6; }
  21294. if ${ac_cv_func_fork_works+:} false; then :
  21295. $as_echo_n "(cached) " >&6
  21296. else
  21297. if test "$cross_compiling" = yes; then :
  21298. ac_cv_func_fork_works=cross
  21299. else
  21300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21301. /* end confdefs.h. */
  21302. $ac_includes_default
  21303. int
  21304. main ()
  21305. {
  21306. /* By Ruediger Kuhlmann. */
  21307. return fork () < 0;
  21308. ;
  21309. return 0;
  21310. }
  21311. _ACEOF
  21312. if ac_fn_c_try_run "$LINENO"; then :
  21313. ac_cv_func_fork_works=yes
  21314. else
  21315. ac_cv_func_fork_works=no
  21316. fi
  21317. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21318. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21319. fi
  21320. fi
  21321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  21322. $as_echo "$ac_cv_func_fork_works" >&6; }
  21323. else
  21324. ac_cv_func_fork_works=$ac_cv_func_fork
  21325. fi
  21326. if test "x$ac_cv_func_fork_works" = xcross; then
  21327. case $host in
  21328. *-*-amigaos* | *-*-msdosdjgpp*)
  21329. # Override, as these systems have only a dummy fork() stub
  21330. ac_cv_func_fork_works=no
  21331. ;;
  21332. *)
  21333. ac_cv_func_fork_works=yes
  21334. ;;
  21335. esac
  21336. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  21337. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  21338. fi
  21339. ac_cv_func_vfork_works=$ac_cv_func_vfork
  21340. if test "x$ac_cv_func_vfork" = xyes; then
  21341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  21342. $as_echo_n "checking for working vfork... " >&6; }
  21343. if ${ac_cv_func_vfork_works+:} false; then :
  21344. $as_echo_n "(cached) " >&6
  21345. else
  21346. if test "$cross_compiling" = yes; then :
  21347. ac_cv_func_vfork_works=cross
  21348. else
  21349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21350. /* end confdefs.h. */
  21351. /* Thanks to Paul Eggert for this test. */
  21352. $ac_includes_default
  21353. #include <sys/wait.h>
  21354. #ifdef HAVE_VFORK_H
  21355. # include <vfork.h>
  21356. #endif
  21357. /* On some sparc systems, changes by the child to local and incoming
  21358. argument registers are propagated back to the parent. The compiler
  21359. is told about this with #include <vfork.h>, but some compilers
  21360. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  21361. static variable whose address is put into a register that is
  21362. clobbered by the vfork. */
  21363. static void
  21364. #ifdef __cplusplus
  21365. sparc_address_test (int arg)
  21366. # else
  21367. sparc_address_test (arg) int arg;
  21368. #endif
  21369. {
  21370. static pid_t child;
  21371. if (!child) {
  21372. child = vfork ();
  21373. if (child < 0) {
  21374. perror ("vfork");
  21375. _exit(2);
  21376. }
  21377. if (!child) {
  21378. arg = getpid();
  21379. write(-1, "", 0);
  21380. _exit (arg);
  21381. }
  21382. }
  21383. }
  21384. int
  21385. main ()
  21386. {
  21387. pid_t parent = getpid ();
  21388. pid_t child;
  21389. sparc_address_test (0);
  21390. child = vfork ();
  21391. if (child == 0) {
  21392. /* Here is another test for sparc vfork register problems. This
  21393. test uses lots of local variables, at least as many local
  21394. variables as main has allocated so far including compiler
  21395. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  21396. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  21397. reuse the register of parent for one of the local variables,
  21398. since it will think that parent can't possibly be used any more
  21399. in this routine. Assigning to the local variable will thus
  21400. munge parent in the parent process. */
  21401. pid_t
  21402. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  21403. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  21404. /* Convince the compiler that p..p7 are live; otherwise, it might
  21405. use the same hardware register for all 8 local variables. */
  21406. if (p != p1 || p != p2 || p != p3 || p != p4
  21407. || p != p5 || p != p6 || p != p7)
  21408. _exit(1);
  21409. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  21410. from child file descriptors. If the child closes a descriptor
  21411. before it execs or exits, this munges the parent's descriptor
  21412. as well. Test for this by closing stdout in the child. */
  21413. _exit(close(fileno(stdout)) != 0);
  21414. } else {
  21415. int status;
  21416. struct stat st;
  21417. while (wait(&status) != child)
  21418. ;
  21419. return (
  21420. /* Was there some problem with vforking? */
  21421. child < 0
  21422. /* Did the child fail? (This shouldn't happen.) */
  21423. || status
  21424. /* Did the vfork/compiler bug occur? */
  21425. || parent != getpid()
  21426. /* Did the file descriptor bug occur? */
  21427. || fstat(fileno(stdout), &st) != 0
  21428. );
  21429. }
  21430. }
  21431. _ACEOF
  21432. if ac_fn_c_try_run "$LINENO"; then :
  21433. ac_cv_func_vfork_works=yes
  21434. else
  21435. ac_cv_func_vfork_works=no
  21436. fi
  21437. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21438. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21439. fi
  21440. fi
  21441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  21442. $as_echo "$ac_cv_func_vfork_works" >&6; }
  21443. fi;
  21444. if test "x$ac_cv_func_fork_works" = xcross; then
  21445. ac_cv_func_vfork_works=$ac_cv_func_vfork
  21446. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  21447. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  21448. fi
  21449. if test "x$ac_cv_func_vfork_works" = xyes; then
  21450. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  21451. else
  21452. $as_echo "#define vfork fork" >>confdefs.h
  21453. fi
  21454. if test "x$ac_cv_func_fork_works" = xyes; then
  21455. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  21456. fi
  21457. for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
  21458. strrchr strsignal fchmod fstat chmod
  21459. do :
  21460. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21461. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  21462. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  21463. cat >>confdefs.h <<_ACEOF
  21464. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21465. _ACEOF
  21466. fi
  21467. done
  21468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  21469. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  21470. if ${ac_cv_path_SED+:} false; then :
  21471. $as_echo_n "(cached) " >&6
  21472. else
  21473. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  21474. for ac_i in 1 2 3 4 5 6 7; do
  21475. ac_script="$ac_script$as_nl$ac_script"
  21476. done
  21477. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  21478. { ac_script=; unset ac_script;}
  21479. if test -z "$SED"; then
  21480. ac_path_SED_found=false
  21481. # Loop through the user's path and test for each of PROGNAME-LIST
  21482. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21483. for as_dir in $PATH
  21484. do
  21485. IFS=$as_save_IFS
  21486. test -z "$as_dir" && as_dir=.
  21487. for ac_prog in sed gsed; do
  21488. for ac_exec_ext in '' $ac_executable_extensions; do
  21489. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  21490. as_fn_executable_p "$ac_path_SED" || continue
  21491. # Check for GNU ac_path_SED and select it if it is found.
  21492. # Check for GNU $ac_path_SED
  21493. case `"$ac_path_SED" --version 2>&1` in
  21494. *GNU*)
  21495. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  21496. *)
  21497. ac_count=0
  21498. $as_echo_n 0123456789 >"conftest.in"
  21499. while :
  21500. do
  21501. cat "conftest.in" "conftest.in" >"conftest.tmp"
  21502. mv "conftest.tmp" "conftest.in"
  21503. cp "conftest.in" "conftest.nl"
  21504. $as_echo '' >> "conftest.nl"
  21505. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  21506. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  21507. as_fn_arith $ac_count + 1 && ac_count=$as_val
  21508. if test $ac_count -gt ${ac_path_SED_max-0}; then
  21509. # Best one so far, save it but keep looking for a better one
  21510. ac_cv_path_SED="$ac_path_SED"
  21511. ac_path_SED_max=$ac_count
  21512. fi
  21513. # 10*(2^10) chars as input seems more than enough
  21514. test $ac_count -gt 10 && break
  21515. done
  21516. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  21517. esac
  21518. $ac_path_SED_found && break 3
  21519. done
  21520. done
  21521. done
  21522. IFS=$as_save_IFS
  21523. if test -z "$ac_cv_path_SED"; then
  21524. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  21525. fi
  21526. else
  21527. ac_cv_path_SED=$SED
  21528. fi
  21529. fi
  21530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  21531. $as_echo "$ac_cv_path_SED" >&6; }
  21532. SED="$ac_cv_path_SED"
  21533. rm -f conftest.sed
  21534. while :
  21535. do
  21536. POSIX_SHELL=`which bash`
  21537. test -x "$POSIX_SHELL" && break
  21538. POSIX_SHELL=`which dash`
  21539. test -x "$POSIX_SHELL" && break
  21540. POSIX_SHELL=/usr/xpg4/bin/sh
  21541. test -x "$POSIX_SHELL" && break
  21542. POSIX_SHELL=`/bin/sh -c '
  21543. exec 2>/dev/null
  21544. if ! true ; then exit 1 ; fi
  21545. echo /bin/sh'`
  21546. test -x "$POSIX_SHELL" && break
  21547. as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
  21548. done
  21549. cat >>confdefs.h <<_ACEOF
  21550. #define POSIX_SHELL "${POSIX_SHELL}"
  21551. _ACEOF
  21552. LIBOPTS_BUILD_BLOCKED=''
  21553. NEED_LIBOPTS_DIR=''
  21554. # Check whether --enable-local-libopts was given.
  21555. if test "${enable_local_libopts+set}" = set; then :
  21556. enableval=$enable_local_libopts;
  21557. if test x$enableval = xyes ; then
  21558. { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
  21559. $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
  21560. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  21561. NEED_LIBOPTS_DIR=true
  21562. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  21563. fi
  21564. fi
  21565. # Check whether --enable-libopts-install was given.
  21566. if test "${enable_libopts_install+set}" = set; then :
  21567. enableval=$enable_libopts_install;
  21568. fi
  21569. if test "X${enable_libopts_install}" = Xyes; then
  21570. INSTALL_LIBOPTS_TRUE=
  21571. INSTALL_LIBOPTS_FALSE='#'
  21572. else
  21573. INSTALL_LIBOPTS_TRUE='#'
  21574. INSTALL_LIBOPTS_FALSE=
  21575. fi
  21576. if test -z "${NEED_LIBOPTS_DIR}" ; then
  21577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
  21578. $as_echo_n "checking whether autoopts-config can be found... " >&6; }
  21579. # Check whether --with-autoopts-config was given.
  21580. if test "${with_autoopts_config+set}" = set; then :
  21581. withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
  21582. else
  21583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
  21584. $as_echo_n "checking whether autoopts-config is specified... " >&6; }
  21585. if ${lo_cv_with_autoopts_config+:} false; then :
  21586. $as_echo_n "(cached) " >&6
  21587. else
  21588. if autoopts-config --help 2>/dev/null 1>&2
  21589. then lo_cv_with_autoopts_config=autoopts-config
  21590. elif libopts-config --help 2>/dev/null 1>&2
  21591. then lo_cv_with_autoopts_config=libopts-config
  21592. else lo_cv_with_autoopts_config=no ; fi
  21593. fi
  21594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
  21595. $as_echo "$lo_cv_with_autoopts_config" >&6; }
  21596. fi
  21597. # end of AC_ARG_WITH
  21598. if ${lo_cv_test_autoopts+:} false; then :
  21599. $as_echo_n "(cached) " >&6
  21600. else
  21601. if test -z "${lo_cv_with_autoopts_config}" \
  21602. -o X"${lo_cv_with_autoopts_config}" = Xno
  21603. then
  21604. if autoopts-config --help 2>/dev/null 1>&2
  21605. then lo_cv_with_autoopts_config=autoopts-config
  21606. elif libopts-config --help 2>/dev/null 1>&2
  21607. then lo_cv_with_autoopts_config=libopts-config
  21608. else lo_cv_with_autoopts_config=false ; fi
  21609. fi
  21610. lo_cv_test_autoopts=`
  21611. ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
  21612. if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
  21613. then lo_cv_test_autoopts=no ; fi
  21614. fi
  21615. # end of CACHE_VAL
  21616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
  21617. $as_echo "${lo_cv_test_autoopts}" >&6; }
  21618. if test "X${lo_cv_test_autoopts}" != Xno
  21619. then
  21620. LIBOPTS_LDADD="${lo_cv_test_autoopts}"
  21621. LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
  21622. else
  21623. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  21624. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  21625. NEED_LIBOPTS_DIR=true
  21626. fi
  21627. fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  21628. if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
  21629. NEED_LIBOPTS_DIR=''
  21630. fi
  21631. if test -n "${NEED_LIBOPTS_DIR}"; then
  21632. NEED_LIBOPTS_TRUE=
  21633. NEED_LIBOPTS_FALSE='#'
  21634. else
  21635. NEED_LIBOPTS_TRUE='#'
  21636. NEED_LIBOPTS_FALSE=
  21637. fi
  21638. LIBOPTS_DIR=libopts
  21639. # end of AC_DEFUN of LIBOPTS_CHECK_COMMON
  21640. if test -z "$NEED_LIBOPTS_TRUE"; then :
  21641. # Check to see if a reg expr header is specified.
  21642. # Check whether --with-regex-header was given.
  21643. if test "${with_regex_header+set}" = set; then :
  21644. withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
  21645. else
  21646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
  21647. $as_echo_n "checking whether a reg expr header is specified... " >&6; }
  21648. if ${libopts_cv_with_regex_header+:} false; then :
  21649. $as_echo_n "(cached) " >&6
  21650. else
  21651. libopts_cv_with_regex_header=no
  21652. fi
  21653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
  21654. $as_echo "$libopts_cv_with_regex_header" >&6; }
  21655. fi
  21656. # end of AC_ARG_WITH
  21657. if test "X${libopts_cv_with_regex_header}" != Xno
  21658. then
  21659. cat >>confdefs.h <<_ACEOF
  21660. #define REGEX_HEADER <${libopts_cv_with_regex_header}>
  21661. _ACEOF
  21662. else
  21663. $as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
  21664. fi
  21665. # Check to see if a working libregex can be found.
  21666. # Check whether --with-libregex was given.
  21667. if test "${with_libregex+set}" = set; then :
  21668. withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
  21669. else
  21670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
  21671. $as_echo_n "checking whether with-libregex was specified... " >&6; }
  21672. if ${libopts_cv_with_libregex_root+:} false; then :
  21673. $as_echo_n "(cached) " >&6
  21674. else
  21675. libopts_cv_with_libregex_root=no
  21676. fi
  21677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
  21678. $as_echo "$libopts_cv_with_libregex_root" >&6; }
  21679. fi
  21680. # end of AC_ARG_WITH libregex
  21681. if test "${with_libregex+set}" = set && \
  21682. test "X${withval}" = Xno
  21683. then ## disabled by request
  21684. libopts_cv_with_libregex_root=no
  21685. libopts_cv_with_libregex_cflags=no
  21686. libopts_cv_with_libregex_libs=no
  21687. else
  21688. # Check whether --with-libregex-cflags was given.
  21689. if test "${with_libregex_cflags+set}" = set; then :
  21690. withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_libregex_cflags}
  21691. else
  21692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
  21693. $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
  21694. if ${libopts_cv_with_libregex_cflags+:} false; then :
  21695. $as_echo_n "(cached) " >&6
  21696. else
  21697. libopts_cv_with_libregex_cflags=no
  21698. fi
  21699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
  21700. $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
  21701. fi
  21702. # end of AC_ARG_WITH libregex-cflags
  21703. # Check whether --with-libregex-libs was given.
  21704. if test "${with_libregex_libs+set}" = set; then :
  21705. withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_libregex_libs}
  21706. else
  21707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
  21708. $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
  21709. if ${libopts_cv_with_libregex_libs+:} false; then :
  21710. $as_echo_n "(cached) " >&6
  21711. else
  21712. libopts_cv_with_libregex_libs=no
  21713. fi
  21714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
  21715. $as_echo "$libopts_cv_with_libregex_libs" >&6; }
  21716. fi
  21717. # end of AC_ARG_WITH libregex-libs
  21718. case "X${libopts_cv_with_libregex_cflags}" in
  21719. Xyes|Xno|X )
  21720. case "X${libopts_cv_with_libregex_root}" in
  21721. Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
  21722. * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
  21723. esac
  21724. esac
  21725. case "X${libopts_cv_with_libregex_libs}" in
  21726. Xyes|Xno|X )
  21727. case "X${libopts_cv_with_libregex_root}" in
  21728. Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
  21729. * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex" ;;
  21730. esac
  21731. esac
  21732. libopts_save_CPPFLAGS="${CPPFLAGS}"
  21733. libopts_save_LIBS="${LIBS}"
  21734. case "X${libopts_cv_with_libregex_cflags}" in
  21735. Xyes|Xno|X )
  21736. libopts_cv_with_libregex_cflags="" ;;
  21737. * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
  21738. esac
  21739. case "X${libopts_cv_with_libregex_libs}" in
  21740. Xyes|Xno|X )
  21741. libopts_cv_with_libregex_libs="" ;;
  21742. * )
  21743. LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
  21744. esac
  21745. LIBREGEX_CFLAGS=""
  21746. LIBREGEX_LIBS=""
  21747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
  21748. $as_echo_n "checking whether libregex functions properly... " >&6; }
  21749. if ${libopts_cv_with_libregex+:} false; then :
  21750. $as_echo_n "(cached) " >&6
  21751. else
  21752. if test "$cross_compiling" = yes; then :
  21753. libopts_cv_with_libregex=no
  21754. else
  21755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21756. /* end confdefs.h. */
  21757. #include <stdio.h>
  21758. #include <stdlib.h>
  21759. #include <sys/types.h>
  21760. #include REGEX_HEADER
  21761. static regex_t re;
  21762. void comp_re(char const * pzPat) {
  21763. int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
  21764. if (res == 0) return;
  21765. exit( res ); }
  21766. int main() {
  21767. regmatch_t m[2];
  21768. comp_re( "^.*\$" );
  21769. comp_re( "()|no.*" );
  21770. comp_re( "." );
  21771. if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
  21772. if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
  21773. fputs( "error: regex -->.<-- did not match\n", stderr );
  21774. return 1;
  21775. }
  21776. return 0; }
  21777. _ACEOF
  21778. if ac_fn_c_try_run "$LINENO"; then :
  21779. libopts_cv_with_libregex=yes
  21780. else
  21781. libopts_cv_with_libregex=no
  21782. fi
  21783. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21784. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21785. fi
  21786. # end of AC_RUN_IFELSE
  21787. fi
  21788. # end of AC_CACHE_VAL for libopts_cv_with_libregex
  21789. fi ## disabled by request
  21790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
  21791. $as_echo "${libopts_cv_with_libregex}" >&6; }
  21792. if test "X${libopts_cv_with_libregex}" != Xno
  21793. then
  21794. $as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
  21795. else
  21796. CPPFLAGS="${libopts_save_CPPFLAGS}"
  21797. LIBS="${libopts_save_LIBS}"
  21798. libopts_cv_with_libregex_root=no
  21799. libopts_cv_with_libregex_cflags=no
  21800. libopts_cv_with_libregex_libs=no
  21801. libopts_cv_with_libregex=no
  21802. fi
  21803. # Check to see if pathfind(3) works.
  21804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
  21805. $as_echo_n "checking whether pathfind(3) works... " >&6; }
  21806. if ${libopts_cv_run_pathfind+:} false; then :
  21807. $as_echo_n "(cached) " >&6
  21808. else
  21809. if test "$cross_compiling" = yes; then :
  21810. libopts_cv_run_pathfind=no
  21811. else
  21812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21813. /* end confdefs.h. */
  21814. #include <string.h>
  21815. #include <stdlib.h>
  21816. int main (int argc, char ** argv) {
  21817. char * pz = pathfind( getenv( "PATH" ), "sh", "x" );
  21818. return (pz == 0) ? 1 : 0;
  21819. }
  21820. _ACEOF
  21821. if ac_fn_c_try_run "$LINENO"; then :
  21822. libopts_cv_run_pathfind=yes
  21823. else
  21824. libopts_cv_run_pathfind=no
  21825. fi
  21826. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21827. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21828. fi
  21829. # end of RUN_IFELSE
  21830. fi
  21831. # end of AC_CACHE_VAL for libopts_cv_run_pathfind
  21832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
  21833. $as_echo "${libopts_cv_run_pathfind}" >&6; }
  21834. if test "X${libopts_cv_run_pathfind}" != Xno
  21835. then
  21836. $as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
  21837. fi
  21838. # Check to see if /dev/zero is readable device.
  21839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
  21840. $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
  21841. if ${libopts_cv_test_dev_zero+:} false; then :
  21842. $as_echo_n "(cached) " >&6
  21843. else
  21844. libopts_cv_test_dev_zero=`exec 2> /dev/null
  21845. dzero=\`ls -lL /dev/zero | egrep ^c......r\`
  21846. test -z "${dzero}" && exit 1
  21847. echo ${dzero}`
  21848. if test $? -ne 0 || test -z "$libopts_cv_test_dev_zero"
  21849. then libopts_cv_test_dev_zero=no
  21850. fi
  21851. fi
  21852. # end of CACHE_VAL of libopts_cv_test_dev_zero
  21853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
  21854. $as_echo "${libopts_cv_test_dev_zero}" >&6; }
  21855. if test "X${libopts_cv_test_dev_zero}" != Xno
  21856. then
  21857. $as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
  21858. fi
  21859. # Check to see if we have a functional realpath(3C).
  21860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
  21861. $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
  21862. if ${libopts_cv_run_realpath+:} false; then :
  21863. $as_echo_n "(cached) " >&6
  21864. else
  21865. if test "$cross_compiling" = yes; then :
  21866. libopts_cv_run_realpath=no
  21867. else
  21868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21869. /* end confdefs.h. */
  21870. #include <limits.h>
  21871. #include <stdlib.h>
  21872. int main (int argc, char ** argv) {
  21873. #ifndef PATH_MAX
  21874. choke me!!
  21875. #else
  21876. char zPath[PATH_MAX+1];
  21877. #endif
  21878. char *pz = realpath(argv[0], zPath);
  21879. return (pz == zPath) ? 0 : 1;
  21880. }
  21881. _ACEOF
  21882. if ac_fn_c_try_run "$LINENO"; then :
  21883. libopts_cv_run_realpath=yes
  21884. else
  21885. libopts_cv_run_realpath=no
  21886. fi
  21887. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21888. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21889. fi
  21890. # end of RUN_IFELSE
  21891. fi
  21892. # end of AC_CACHE_VAL for libopts_cv_run_realpath
  21893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
  21894. $as_echo "${libopts_cv_run_realpath}" >&6; }
  21895. if test "X${libopts_cv_run_realpath}" != Xno
  21896. then
  21897. $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
  21898. fi
  21899. # Check to see if strftime() works.
  21900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
  21901. $as_echo_n "checking whether strftime() works... " >&6; }
  21902. if ${libopts_cv_run_strftime+:} false; then :
  21903. $as_echo_n "(cached) " >&6
  21904. else
  21905. if test "$cross_compiling" = yes; then :
  21906. libopts_cv_run_strftime=no
  21907. else
  21908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21909. /* end confdefs.h. */
  21910. #include <time.h>
  21911. #include <string.h>
  21912. char t_buf[ 64 ];
  21913. int main() {
  21914. static char const z[] = "Thursday Aug 28 240";
  21915. struct tm tm;
  21916. tm.tm_sec = 36; /* seconds after the minute [0, 61] */
  21917. tm.tm_min = 44; /* minutes after the hour [0, 59] */
  21918. tm.tm_hour = 12; /* hour since midnight [0, 23] */
  21919. tm.tm_mday = 28; /* day of the month [1, 31] */
  21920. tm.tm_mon = 7; /* months since January [0, 11] */
  21921. tm.tm_year = 86; /* years since 1900 */
  21922. tm.tm_wday = 4; /* days since Sunday [0, 6] */
  21923. tm.tm_yday = 239; /* days since January 1 [0, 365] */
  21924. tm.tm_isdst = 1; /* flag for daylight savings time */
  21925. strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
  21926. return (strcmp( t_buf, z ) != 0); }
  21927. _ACEOF
  21928. if ac_fn_c_try_run "$LINENO"; then :
  21929. libopts_cv_run_strftime=yes
  21930. else
  21931. libopts_cv_run_strftime=no
  21932. fi
  21933. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21934. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21935. fi
  21936. # end of RUN_IFELSE
  21937. fi
  21938. # end of AC_CACHE_VAL for libopts_cv_run_strftime
  21939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
  21940. $as_echo "${libopts_cv_run_strftime}" >&6; }
  21941. if test "X${libopts_cv_run_strftime}" != Xno
  21942. then
  21943. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  21944. fi
  21945. # Check to see if fopen accepts "b" mode.
  21946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
  21947. $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
  21948. if ${libopts_cv_run_fopen_binary+:} false; then :
  21949. $as_echo_n "(cached) " >&6
  21950. else
  21951. if test "$cross_compiling" = yes; then :
  21952. libopts_cv_run_fopen_binary=no
  21953. else
  21954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21955. /* end confdefs.h. */
  21956. #include <stdio.h>
  21957. int main (int argc, char ** argv) {
  21958. FILE * fp = fopen("conftest.$ac_ext", "rb");
  21959. return (fp == NULL) ? 1 : fclose(fp); }
  21960. _ACEOF
  21961. if ac_fn_c_try_run "$LINENO"; then :
  21962. libopts_cv_run_fopen_binary=yes
  21963. else
  21964. libopts_cv_run_fopen_binary=no
  21965. fi
  21966. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21967. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21968. fi
  21969. # end of RUN_IFELSE
  21970. fi
  21971. # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
  21972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
  21973. $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
  21974. if test "X${libopts_cv_run_fopen_binary}" != Xno
  21975. then
  21976. $as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
  21977. else
  21978. $as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
  21979. fi
  21980. # Check to see if fopen accepts "t" mode.
  21981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
  21982. $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
  21983. if ${libopts_cv_run_fopen_text+:} false; then :
  21984. $as_echo_n "(cached) " >&6
  21985. else
  21986. if test "$cross_compiling" = yes; then :
  21987. libopts_cv_run_fopen_text=no
  21988. else
  21989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21990. /* end confdefs.h. */
  21991. #include <stdio.h>
  21992. int main (int argc, char ** argv) {
  21993. FILE * fp = fopen("conftest.$ac_ext", "rt");
  21994. return (fp == NULL) ? 1 : fclose(fp); }
  21995. _ACEOF
  21996. if ac_fn_c_try_run "$LINENO"; then :
  21997. libopts_cv_run_fopen_text=yes
  21998. else
  21999. libopts_cv_run_fopen_text=no
  22000. fi
  22001. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  22002. conftest.$ac_objext conftest.beam conftest.$ac_ext
  22003. fi
  22004. # end of RUN_IFELSE
  22005. fi
  22006. # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
  22007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
  22008. $as_echo "${libopts_cv_run_fopen_text}" >&6; }
  22009. if test "X${libopts_cv_run_fopen_text}" != Xno
  22010. then
  22011. $as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
  22012. else
  22013. $as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
  22014. fi
  22015. # Check to see if not wanting optional option args.
  22016. # Check whether --enable-optional-args was given.
  22017. if test "${enable_optional_args+set}" = set; then :
  22018. enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
  22019. else
  22020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
  22021. $as_echo_n "checking whether not wanting optional option args... " >&6; }
  22022. if ${libopts_cv_enable_optional_args+:} false; then :
  22023. $as_echo_n "(cached) " >&6
  22024. else
  22025. libopts_cv_enable_optional_args=yes
  22026. fi
  22027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
  22028. $as_echo "$libopts_cv_enable_optional_args" >&6; }
  22029. fi
  22030. # end of AC_ARG_ENABLE
  22031. if test "X${libopts_cv_enable_optional_args}" = Xno
  22032. then
  22033. $as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
  22034. fi
  22035. fi
  22036. ac_config_files="$ac_config_files libopts/Makefile"
  22037. # end of AC_DEFUN of LIBOPTS_CHECK
  22038. 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"
  22039. cat >confcache <<\_ACEOF
  22040. # This file is a shell script that caches the results of configure
  22041. # tests run on this system so they can be shared between configure
  22042. # scripts and configure runs, see configure's option --config-cache.
  22043. # It is not useful on other systems. If it contains results you don't
  22044. # want to keep, you may remove or edit it.
  22045. #
  22046. # config.status only pays attention to the cache file if you give it
  22047. # the --recheck option to rerun configure.
  22048. #
  22049. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  22050. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  22051. # following values.
  22052. _ACEOF
  22053. # The following way of writing the cache mishandles newlines in values,
  22054. # but we know of no workaround that is simple, portable, and efficient.
  22055. # So, we kill variables containing newlines.
  22056. # Ultrix sh set writes to stderr and can't be redirected directly,
  22057. # and sets the high bit in the cache file unless we assign to the vars.
  22058. (
  22059. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  22060. eval ac_val=\$$ac_var
  22061. case $ac_val in #(
  22062. *${as_nl}*)
  22063. case $ac_var in #(
  22064. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  22065. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  22066. esac
  22067. case $ac_var in #(
  22068. _ | IFS | as_nl) ;; #(
  22069. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  22070. *) { eval $ac_var=; unset $ac_var;} ;;
  22071. esac ;;
  22072. esac
  22073. done
  22074. (set) 2>&1 |
  22075. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  22076. *${as_nl}ac_space=\ *)
  22077. # `set' does not quote correctly, so add quotes: double-quote
  22078. # substitution turns \\\\ into \\, and sed turns \\ into \.
  22079. sed -n \
  22080. "s/'/'\\\\''/g;
  22081. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  22082. ;; #(
  22083. *)
  22084. # `set' quotes correctly as required by POSIX, so do not add quotes.
  22085. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  22086. ;;
  22087. esac |
  22088. sort
  22089. ) |
  22090. sed '
  22091. /^ac_cv_env_/b end
  22092. t clear
  22093. :clear
  22094. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  22095. t end
  22096. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  22097. :end' >>confcache
  22098. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  22099. if test -w "$cache_file"; then
  22100. if test "x$cache_file" != "x/dev/null"; then
  22101. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  22102. $as_echo "$as_me: updating cache $cache_file" >&6;}
  22103. if test ! -f "$cache_file" || test -h "$cache_file"; then
  22104. cat confcache >"$cache_file"
  22105. else
  22106. case $cache_file in #(
  22107. */* | ?:*)
  22108. mv -f confcache "$cache_file"$$ &&
  22109. mv -f "$cache_file"$$ "$cache_file" ;; #(
  22110. *)
  22111. mv -f confcache "$cache_file" ;;
  22112. esac
  22113. fi
  22114. fi
  22115. else
  22116. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  22117. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  22118. fi
  22119. fi
  22120. rm -f confcache
  22121. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  22122. # Let make expand exec_prefix.
  22123. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  22124. DEFS=-DHAVE_CONFIG_H
  22125. ac_libobjs=
  22126. ac_ltlibobjs=
  22127. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  22128. # 1. Remove the extension, and $U if already installed.
  22129. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  22130. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  22131. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  22132. # will be set to the directory where LIBOBJS objects are built.
  22133. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  22134. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  22135. done
  22136. LIBOBJS=$ac_libobjs
  22137. LTLIBOBJS=$ac_ltlibobjs
  22138. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  22139. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  22140. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22141. fi
  22142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  22143. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  22144. if test -n "$am_sleep_pid"; then
  22145. # Hide warnings about reused PIDs.
  22146. wait $am_sleep_pid 2>/dev/null
  22147. fi
  22148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  22149. $as_echo "done" >&6; }
  22150. if test -n "$EXEEXT"; then
  22151. am__EXEEXT_TRUE=
  22152. am__EXEEXT_FALSE='#'
  22153. else
  22154. am__EXEEXT_TRUE='#'
  22155. am__EXEEXT_FALSE=
  22156. fi
  22157. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  22158. as_fn_error $? "conditional \"AMDEP\" was never defined.
  22159. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22160. fi
  22161. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  22162. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  22163. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22164. fi
  22165. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  22166. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  22167. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22168. fi
  22169. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  22170. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  22171. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22172. fi
  22173. if test -z "${SYSTEM_STRLCPY_TRUE}" && test -z "${SYSTEM_STRLCPY_FALSE}"; then
  22174. as_fn_error $? "conditional \"SYSTEM_STRLCPY\" was never defined.
  22175. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22176. fi
  22177. if test -z "${WORDS_BIGENDIAN_TRUE}" && test -z "${WORDS_BIGENDIAN_FALSE}"; then
  22178. as_fn_error $? "conditional \"WORDS_BIGENDIAN\" was never defined.
  22179. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22180. fi
  22181. if test -z "${COMPILE_TCPBRIDGE_TRUE}" && test -z "${COMPILE_TCPBRIDGE_FALSE}"; then
  22182. as_fn_error $? "conditional \"COMPILE_TCPBRIDGE\" was never defined.
  22183. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22184. fi
  22185. if test -z "${COMPILE_TCPLIVEPLAY_TRUE}" && test -z "${COMPILE_TCPLIVEPLAY_FALSE}"; then
  22186. as_fn_error $? "conditional \"COMPILE_TCPLIVEPLAY\" was never defined.
  22187. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22188. fi
  22189. if test -z "${COMPILE_NETMAP_TRUE}" && test -z "${COMPILE_NETMAP_FALSE}"; then
  22190. as_fn_error $? "conditional \"COMPILE_NETMAP\" was never defined.
  22191. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22192. fi
  22193. if test -z "${COMPILE_FRAGROUTE_TRUE}" && test -z "${COMPILE_FRAGROUTE_FALSE}"; then
  22194. as_fn_error $? "conditional \"COMPILE_FRAGROUTE\" was never defined.
  22195. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22196. fi
  22197. if test -z "${ENABLE_TCPDUMP_TRUE}" && test -z "${ENABLE_TCPDUMP_FALSE}"; then
  22198. as_fn_error $? "conditional \"ENABLE_TCPDUMP\" was never defined.
  22199. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22200. fi
  22201. if test -z "${ENABLE_OSX_FRAMEWORKS_TRUE}" && test -z "${ENABLE_OSX_FRAMEWORKS_FALSE}"; then
  22202. as_fn_error $? "conditional \"ENABLE_OSX_FRAMEWORKS\" was never defined.
  22203. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22204. fi
  22205. if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
  22206. as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
  22207. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22208. fi
  22209. if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
  22210. as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
  22211. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22212. fi
  22213. if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
  22214. as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
  22215. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22216. fi
  22217. : "${CONFIG_STATUS=./config.status}"
  22218. ac_write_fail=0
  22219. ac_clean_files_save=$ac_clean_files
  22220. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  22221. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  22222. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  22223. as_write_fail=0
  22224. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  22225. #! $SHELL
  22226. # Generated by $as_me.
  22227. # Run this file to recreate the current configuration.
  22228. # Compiler output produced by configure, useful for debugging
  22229. # configure, is in config.log if it exists.
  22230. debug=false
  22231. ac_cs_recheck=false
  22232. ac_cs_silent=false
  22233. SHELL=\${CONFIG_SHELL-$SHELL}
  22234. export SHELL
  22235. _ASEOF
  22236. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  22237. ## -------------------- ##
  22238. ## M4sh Initialization. ##
  22239. ## -------------------- ##
  22240. # Be more Bourne compatible
  22241. DUALCASE=1; export DUALCASE # for MKS sh
  22242. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22243. emulate sh
  22244. NULLCMD=:
  22245. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22246. # is contrary to our usage. Disable this feature.
  22247. alias -g '${1+"$@"}'='"$@"'
  22248. setopt NO_GLOB_SUBST
  22249. else
  22250. case `(set -o) 2>/dev/null` in #(
  22251. *posix*) :
  22252. set -o posix ;; #(
  22253. *) :
  22254. ;;
  22255. esac
  22256. fi
  22257. as_nl='
  22258. '
  22259. export as_nl
  22260. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  22261. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  22262. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  22263. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  22264. # Prefer a ksh shell builtin over an external printf program on Solaris,
  22265. # but without wasting forks for bash or zsh.
  22266. if test -z "$BASH_VERSION$ZSH_VERSION" \
  22267. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  22268. as_echo='print -r --'
  22269. as_echo_n='print -rn --'
  22270. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  22271. as_echo='printf %s\n'
  22272. as_echo_n='printf %s'
  22273. else
  22274. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  22275. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  22276. as_echo_n='/usr/ucb/echo -n'
  22277. else
  22278. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  22279. as_echo_n_body='eval
  22280. arg=$1;
  22281. case $arg in #(
  22282. *"$as_nl"*)
  22283. expr "X$arg" : "X\\(.*\\)$as_nl";
  22284. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  22285. esac;
  22286. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  22287. '
  22288. export as_echo_n_body
  22289. as_echo_n='sh -c $as_echo_n_body as_echo'
  22290. fi
  22291. export as_echo_body
  22292. as_echo='sh -c $as_echo_body as_echo'
  22293. fi
  22294. # The user is always right.
  22295. if test "${PATH_SEPARATOR+set}" != set; then
  22296. PATH_SEPARATOR=:
  22297. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  22298. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  22299. PATH_SEPARATOR=';'
  22300. }
  22301. fi
  22302. # IFS
  22303. # We need space, tab and new line, in precisely that order. Quoting is
  22304. # there to prevent editors from complaining about space-tab.
  22305. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  22306. # splitting by setting IFS to empty value.)
  22307. IFS=" "" $as_nl"
  22308. # Find who we are. Look in the path if we contain no directory separator.
  22309. as_myself=
  22310. case $0 in #((
  22311. *[\\/]* ) as_myself=$0 ;;
  22312. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22313. for as_dir in $PATH
  22314. do
  22315. IFS=$as_save_IFS
  22316. test -z "$as_dir" && as_dir=.
  22317. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22318. done
  22319. IFS=$as_save_IFS
  22320. ;;
  22321. esac
  22322. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22323. # in which case we are not to be found in the path.
  22324. if test "x$as_myself" = x; then
  22325. as_myself=$0
  22326. fi
  22327. if test ! -f "$as_myself"; then
  22328. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  22329. exit 1
  22330. fi
  22331. # Unset variables that we do not need and which cause bugs (e.g. in
  22332. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  22333. # suppresses any "Segmentation fault" message there. '((' could
  22334. # trigger a bug in pdksh 5.2.14.
  22335. for as_var in BASH_ENV ENV MAIL MAILPATH
  22336. do eval test x\${$as_var+set} = xset \
  22337. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  22338. done
  22339. PS1='$ '
  22340. PS2='> '
  22341. PS4='+ '
  22342. # NLS nuisances.
  22343. LC_ALL=C
  22344. export LC_ALL
  22345. LANGUAGE=C
  22346. export LANGUAGE
  22347. # CDPATH.
  22348. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22349. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  22350. # ----------------------------------------
  22351. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  22352. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  22353. # script with STATUS, using 1 if that was 0.
  22354. as_fn_error ()
  22355. {
  22356. as_status=$1; test $as_status -eq 0 && as_status=1
  22357. if test "$4"; then
  22358. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22359. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  22360. fi
  22361. $as_echo "$as_me: error: $2" >&2
  22362. as_fn_exit $as_status
  22363. } # as_fn_error
  22364. # as_fn_set_status STATUS
  22365. # -----------------------
  22366. # Set $? to STATUS, without forking.
  22367. as_fn_set_status ()
  22368. {
  22369. return $1
  22370. } # as_fn_set_status
  22371. # as_fn_exit STATUS
  22372. # -----------------
  22373. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  22374. as_fn_exit ()
  22375. {
  22376. set +e
  22377. as_fn_set_status $1
  22378. exit $1
  22379. } # as_fn_exit
  22380. # as_fn_unset VAR
  22381. # ---------------
  22382. # Portably unset VAR.
  22383. as_fn_unset ()
  22384. {
  22385. { eval $1=; unset $1;}
  22386. }
  22387. as_unset=as_fn_unset
  22388. # as_fn_append VAR VALUE
  22389. # ----------------------
  22390. # Append the text in VALUE to the end of the definition contained in VAR. Take
  22391. # advantage of any shell optimizations that allow amortized linear growth over
  22392. # repeated appends, instead of the typical quadratic growth present in naive
  22393. # implementations.
  22394. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  22395. eval 'as_fn_append ()
  22396. {
  22397. eval $1+=\$2
  22398. }'
  22399. else
  22400. as_fn_append ()
  22401. {
  22402. eval $1=\$$1\$2
  22403. }
  22404. fi # as_fn_append
  22405. # as_fn_arith ARG...
  22406. # ------------------
  22407. # Perform arithmetic evaluation on the ARGs, and store the result in the
  22408. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  22409. # must be portable across $(()) and expr.
  22410. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  22411. eval 'as_fn_arith ()
  22412. {
  22413. as_val=$(( $* ))
  22414. }'
  22415. else
  22416. as_fn_arith ()
  22417. {
  22418. as_val=`expr "$@" || test $? -eq 1`
  22419. }
  22420. fi # as_fn_arith
  22421. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22422. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22423. as_expr=expr
  22424. else
  22425. as_expr=false
  22426. fi
  22427. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22428. as_basename=basename
  22429. else
  22430. as_basename=false
  22431. fi
  22432. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22433. as_dirname=dirname
  22434. else
  22435. as_dirname=false
  22436. fi
  22437. as_me=`$as_basename -- "$0" ||
  22438. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22439. X"$0" : 'X\(//\)$' \| \
  22440. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22441. $as_echo X/"$0" |
  22442. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22443. s//\1/
  22444. q
  22445. }
  22446. /^X\/\(\/\/\)$/{
  22447. s//\1/
  22448. q
  22449. }
  22450. /^X\/\(\/\).*/{
  22451. s//\1/
  22452. q
  22453. }
  22454. s/.*/./; q'`
  22455. # Avoid depending upon Character Ranges.
  22456. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22457. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22458. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22459. as_cr_digits='0123456789'
  22460. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22461. ECHO_C= ECHO_N= ECHO_T=
  22462. case `echo -n x` in #(((((
  22463. -n*)
  22464. case `echo 'xy\c'` in
  22465. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22466. xy) ECHO_C='\c';;
  22467. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  22468. ECHO_T=' ';;
  22469. esac;;
  22470. *)
  22471. ECHO_N='-n';;
  22472. esac
  22473. rm -f conf$$ conf$$.exe conf$$.file
  22474. if test -d conf$$.dir; then
  22475. rm -f conf$$.dir/conf$$.file
  22476. else
  22477. rm -f conf$$.dir
  22478. mkdir conf$$.dir 2>/dev/null
  22479. fi
  22480. if (echo >conf$$.file) 2>/dev/null; then
  22481. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22482. as_ln_s='ln -s'
  22483. # ... but there are two gotchas:
  22484. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22485. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22486. # In both cases, we have to default to `cp -pR'.
  22487. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22488. as_ln_s='cp -pR'
  22489. elif ln conf$$.file conf$$ 2>/dev/null; then
  22490. as_ln_s=ln
  22491. else
  22492. as_ln_s='cp -pR'
  22493. fi
  22494. else
  22495. as_ln_s='cp -pR'
  22496. fi
  22497. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22498. rmdir conf$$.dir 2>/dev/null
  22499. # as_fn_mkdir_p
  22500. # -------------
  22501. # Create "$as_dir" as a directory, including parents if necessary.
  22502. as_fn_mkdir_p ()
  22503. {
  22504. case $as_dir in #(
  22505. -*) as_dir=./$as_dir;;
  22506. esac
  22507. test -d "$as_dir" || eval $as_mkdir_p || {
  22508. as_dirs=
  22509. while :; do
  22510. case $as_dir in #(
  22511. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22512. *) as_qdir=$as_dir;;
  22513. esac
  22514. as_dirs="'$as_qdir' $as_dirs"
  22515. as_dir=`$as_dirname -- "$as_dir" ||
  22516. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22517. X"$as_dir" : 'X\(//\)[^/]' \| \
  22518. X"$as_dir" : 'X\(//\)$' \| \
  22519. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22520. $as_echo X"$as_dir" |
  22521. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22522. s//\1/
  22523. q
  22524. }
  22525. /^X\(\/\/\)[^/].*/{
  22526. s//\1/
  22527. q
  22528. }
  22529. /^X\(\/\/\)$/{
  22530. s//\1/
  22531. q
  22532. }
  22533. /^X\(\/\).*/{
  22534. s//\1/
  22535. q
  22536. }
  22537. s/.*/./; q'`
  22538. test -d "$as_dir" && break
  22539. done
  22540. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22541. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  22542. } # as_fn_mkdir_p
  22543. if mkdir -p . 2>/dev/null; then
  22544. as_mkdir_p='mkdir -p "$as_dir"'
  22545. else
  22546. test -d ./-p && rmdir ./-p
  22547. as_mkdir_p=false
  22548. fi
  22549. # as_fn_executable_p FILE
  22550. # -----------------------
  22551. # Test if FILE is an executable regular file.
  22552. as_fn_executable_p ()
  22553. {
  22554. test -f "$1" && test -x "$1"
  22555. } # as_fn_executable_p
  22556. as_test_x='test -x'
  22557. as_executable_p=as_fn_executable_p
  22558. # Sed expression to map a string onto a valid CPP name.
  22559. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22560. # Sed expression to map a string onto a valid variable name.
  22561. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22562. exec 6>&1
  22563. ## ----------------------------------- ##
  22564. ## Main body of $CONFIG_STATUS script. ##
  22565. ## ----------------------------------- ##
  22566. _ASEOF
  22567. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22568. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22569. # Save the log message, to keep $0 and so on meaningful, and to
  22570. # report actual input values of CONFIG_FILES etc. instead of their
  22571. # values after options handling.
  22572. ac_log="
  22573. This file was extended by tcpreplay $as_me 4.3.2, which was
  22574. generated by GNU Autoconf 2.69. Invocation command line was
  22575. CONFIG_FILES = $CONFIG_FILES
  22576. CONFIG_HEADERS = $CONFIG_HEADERS
  22577. CONFIG_LINKS = $CONFIG_LINKS
  22578. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22579. $ $0 $@
  22580. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22581. "
  22582. _ACEOF
  22583. case $ac_config_files in *"
  22584. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22585. esac
  22586. case $ac_config_headers in *"
  22587. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22588. esac
  22589. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22590. # Files that config.status was made for.
  22591. config_files="$ac_config_files"
  22592. config_headers="$ac_config_headers"
  22593. config_commands="$ac_config_commands"
  22594. _ACEOF
  22595. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22596. ac_cs_usage="\
  22597. \`$as_me' instantiates files and other configuration actions
  22598. from templates according to the current configuration. Unless the files
  22599. and actions are specified as TAGs, all are instantiated by default.
  22600. Usage: $0 [OPTION]... [TAG]...
  22601. -h, --help print this help, then exit
  22602. -V, --version print version number and configuration settings, then exit
  22603. --config print configuration, then exit
  22604. -q, --quiet, --silent
  22605. do not print progress messages
  22606. -d, --debug don't remove temporary files
  22607. --recheck update $as_me by reconfiguring in the same conditions
  22608. --file=FILE[:TEMPLATE]
  22609. instantiate the configuration file FILE
  22610. --header=FILE[:TEMPLATE]
  22611. instantiate the configuration header FILE
  22612. Configuration files:
  22613. $config_files
  22614. Configuration headers:
  22615. $config_headers
  22616. Configuration commands:
  22617. $config_commands
  22618. Report bugs to <https://github.com/appneta/tcpreplay/issues>.
  22619. tcpreplay home page: <http://tcpreplay.sourceforge.net/>."
  22620. _ACEOF
  22621. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22622. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  22623. ac_cs_version="\\
  22624. tcpreplay config.status 4.3.2
  22625. configured by $0, generated by GNU Autoconf 2.69,
  22626. with options \\"\$ac_cs_config\\"
  22627. Copyright (C) 2012 Free Software Foundation, Inc.
  22628. This config.status script is free software; the Free Software Foundation
  22629. gives unlimited permission to copy, distribute and modify it."
  22630. ac_pwd='$ac_pwd'
  22631. srcdir='$srcdir'
  22632. INSTALL='$INSTALL'
  22633. MKDIR_P='$MKDIR_P'
  22634. AWK='$AWK'
  22635. test -n "\$AWK" || AWK=awk
  22636. _ACEOF
  22637. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22638. # The default lists apply if the user does not specify any file.
  22639. ac_need_defaults=:
  22640. while test $# != 0
  22641. do
  22642. case $1 in
  22643. --*=?*)
  22644. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22645. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22646. ac_shift=:
  22647. ;;
  22648. --*=)
  22649. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22650. ac_optarg=
  22651. ac_shift=:
  22652. ;;
  22653. *)
  22654. ac_option=$1
  22655. ac_optarg=$2
  22656. ac_shift=shift
  22657. ;;
  22658. esac
  22659. case $ac_option in
  22660. # Handling of the options.
  22661. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22662. ac_cs_recheck=: ;;
  22663. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22664. $as_echo "$ac_cs_version"; exit ;;
  22665. --config | --confi | --conf | --con | --co | --c )
  22666. $as_echo "$ac_cs_config"; exit ;;
  22667. --debug | --debu | --deb | --de | --d | -d )
  22668. debug=: ;;
  22669. --file | --fil | --fi | --f )
  22670. $ac_shift
  22671. case $ac_optarg in
  22672. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22673. '') as_fn_error $? "missing file argument" ;;
  22674. esac
  22675. as_fn_append CONFIG_FILES " '$ac_optarg'"
  22676. ac_need_defaults=false;;
  22677. --header | --heade | --head | --hea )
  22678. $ac_shift
  22679. case $ac_optarg in
  22680. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22681. esac
  22682. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  22683. ac_need_defaults=false;;
  22684. --he | --h)
  22685. # Conflict between --help and --header
  22686. as_fn_error $? "ambiguous option: \`$1'
  22687. Try \`$0 --help' for more information.";;
  22688. --help | --hel | -h )
  22689. $as_echo "$ac_cs_usage"; exit ;;
  22690. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22691. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22692. ac_cs_silent=: ;;
  22693. # This is an error.
  22694. -*) as_fn_error $? "unrecognized option: \`$1'
  22695. Try \`$0 --help' for more information." ;;
  22696. *) as_fn_append ac_config_targets " $1"
  22697. ac_need_defaults=false ;;
  22698. esac
  22699. shift
  22700. done
  22701. ac_configure_extra_args=
  22702. if $ac_cs_silent; then
  22703. exec 6>/dev/null
  22704. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22705. fi
  22706. _ACEOF
  22707. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22708. if \$ac_cs_recheck; then
  22709. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22710. shift
  22711. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22712. CONFIG_SHELL='$SHELL'
  22713. export CONFIG_SHELL
  22714. exec "\$@"
  22715. fi
  22716. _ACEOF
  22717. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22718. exec 5>>config.log
  22719. {
  22720. echo
  22721. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22722. ## Running $as_me. ##
  22723. _ASBOX
  22724. $as_echo "$ac_log"
  22725. } >&5
  22726. _ACEOF
  22727. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22728. #
  22729. # INIT-COMMANDS
  22730. #
  22731. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  22732. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22733. # if CDPATH is set.
  22734. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22735. sed_quote_subst='$sed_quote_subst'
  22736. double_quote_subst='$double_quote_subst'
  22737. delay_variable_subst='$delay_variable_subst'
  22738. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  22739. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  22740. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  22741. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  22742. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  22743. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  22744. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  22745. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  22746. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  22747. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  22748. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  22749. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  22750. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  22751. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  22752. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  22753. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  22754. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  22755. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  22756. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  22757. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  22758. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  22759. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  22760. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  22761. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  22762. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  22763. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  22764. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  22765. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  22766. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  22767. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  22768. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  22769. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  22770. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  22771. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  22772. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  22773. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  22774. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  22775. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  22776. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  22777. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  22778. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  22779. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  22780. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  22781. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  22782. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  22783. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  22784. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22785. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22786. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  22787. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  22788. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  22789. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  22790. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  22791. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  22792. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  22793. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  22794. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  22795. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  22796. 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"`'
  22797. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  22798. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  22799. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  22800. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  22801. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  22802. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  22803. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  22804. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  22805. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  22806. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  22807. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  22808. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  22809. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  22810. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  22811. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  22812. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  22813. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  22814. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  22815. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  22816. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  22817. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22818. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  22819. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  22820. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  22821. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  22822. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  22823. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  22824. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22825. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  22826. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22827. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  22828. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22829. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  22830. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22831. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22832. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  22833. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  22834. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  22835. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  22836. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  22837. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22838. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  22839. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  22840. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  22841. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  22842. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  22843. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  22844. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  22845. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  22846. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  22847. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  22848. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  22849. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  22850. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  22851. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  22852. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  22853. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22854. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  22855. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  22856. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  22857. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  22858. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  22859. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22860. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22861. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  22862. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  22863. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  22864. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  22865. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  22866. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  22867. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  22868. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  22869. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  22870. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  22871. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  22872. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  22873. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  22874. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  22875. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  22876. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  22877. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  22878. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  22879. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  22880. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22881. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22882. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22883. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  22884. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  22885. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22886. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  22887. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  22888. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  22889. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  22890. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  22891. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  22892. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22893. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22894. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  22895. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22896. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22897. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22898. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22899. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22900. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22901. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  22902. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22903. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22904. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22905. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  22906. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  22907. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  22908. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  22909. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  22910. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  22911. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  22912. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  22913. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  22914. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22915. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22916. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22917. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22918. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22919. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22920. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  22921. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  22922. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22923. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22924. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  22925. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  22926. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  22927. LTCC='$LTCC'
  22928. LTCFLAGS='$LTCFLAGS'
  22929. compiler='$compiler_DEFAULT'
  22930. # A function that is used when there is no print builtin or printf.
  22931. func_fallback_echo ()
  22932. {
  22933. eval 'cat <<_LTECHO_EOF
  22934. \$1
  22935. _LTECHO_EOF'
  22936. }
  22937. # Quote evaled strings.
  22938. for var in SHELL \
  22939. ECHO \
  22940. PATH_SEPARATOR \
  22941. SED \
  22942. GREP \
  22943. EGREP \
  22944. FGREP \
  22945. LD \
  22946. NM \
  22947. LN_S \
  22948. lt_SP2NL \
  22949. lt_NL2SP \
  22950. reload_flag \
  22951. OBJDUMP \
  22952. deplibs_check_method \
  22953. file_magic_cmd \
  22954. file_magic_glob \
  22955. want_nocaseglob \
  22956. DLLTOOL \
  22957. sharedlib_from_linklib_cmd \
  22958. AR \
  22959. AR_FLAGS \
  22960. archiver_list_spec \
  22961. STRIP \
  22962. RANLIB \
  22963. CC \
  22964. CFLAGS \
  22965. compiler \
  22966. lt_cv_sys_global_symbol_pipe \
  22967. lt_cv_sys_global_symbol_to_cdecl \
  22968. lt_cv_sys_global_symbol_to_import \
  22969. lt_cv_sys_global_symbol_to_c_name_address \
  22970. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  22971. lt_cv_nm_interface \
  22972. nm_file_list_spec \
  22973. lt_cv_truncate_bin \
  22974. lt_prog_compiler_no_builtin_flag \
  22975. lt_prog_compiler_pic \
  22976. lt_prog_compiler_wl \
  22977. lt_prog_compiler_static \
  22978. lt_cv_prog_compiler_c_o \
  22979. need_locks \
  22980. MANIFEST_TOOL \
  22981. DSYMUTIL \
  22982. NMEDIT \
  22983. LIPO \
  22984. OTOOL \
  22985. OTOOL64 \
  22986. shrext_cmds \
  22987. export_dynamic_flag_spec \
  22988. whole_archive_flag_spec \
  22989. compiler_needs_object \
  22990. with_gnu_ld \
  22991. allow_undefined_flag \
  22992. no_undefined_flag \
  22993. hardcode_libdir_flag_spec \
  22994. hardcode_libdir_separator \
  22995. exclude_expsyms \
  22996. include_expsyms \
  22997. file_list_spec \
  22998. variables_saved_for_relink \
  22999. libname_spec \
  23000. library_names_spec \
  23001. soname_spec \
  23002. install_override_mode \
  23003. finish_eval \
  23004. old_striplib \
  23005. striplib \
  23006. compiler_lib_search_dirs \
  23007. predep_objects \
  23008. postdep_objects \
  23009. predeps \
  23010. postdeps \
  23011. compiler_lib_search_path \
  23012. LD_CXX \
  23013. reload_flag_CXX \
  23014. compiler_CXX \
  23015. lt_prog_compiler_no_builtin_flag_CXX \
  23016. lt_prog_compiler_pic_CXX \
  23017. lt_prog_compiler_wl_CXX \
  23018. lt_prog_compiler_static_CXX \
  23019. lt_cv_prog_compiler_c_o_CXX \
  23020. export_dynamic_flag_spec_CXX \
  23021. whole_archive_flag_spec_CXX \
  23022. compiler_needs_object_CXX \
  23023. with_gnu_ld_CXX \
  23024. allow_undefined_flag_CXX \
  23025. no_undefined_flag_CXX \
  23026. hardcode_libdir_flag_spec_CXX \
  23027. hardcode_libdir_separator_CXX \
  23028. exclude_expsyms_CXX \
  23029. include_expsyms_CXX \
  23030. file_list_spec_CXX \
  23031. compiler_lib_search_dirs_CXX \
  23032. predep_objects_CXX \
  23033. postdep_objects_CXX \
  23034. predeps_CXX \
  23035. postdeps_CXX \
  23036. compiler_lib_search_path_CXX; do
  23037. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23038. *[\\\\\\\`\\"\\\$]*)
  23039. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  23040. ;;
  23041. *)
  23042. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23043. ;;
  23044. esac
  23045. done
  23046. # Double-quote double-evaled strings.
  23047. for var in reload_cmds \
  23048. old_postinstall_cmds \
  23049. old_postuninstall_cmds \
  23050. old_archive_cmds \
  23051. extract_expsyms_cmds \
  23052. old_archive_from_new_cmds \
  23053. old_archive_from_expsyms_cmds \
  23054. archive_cmds \
  23055. archive_expsym_cmds \
  23056. module_cmds \
  23057. module_expsym_cmds \
  23058. export_symbols_cmds \
  23059. prelink_cmds \
  23060. postlink_cmds \
  23061. postinstall_cmds \
  23062. postuninstall_cmds \
  23063. finish_cmds \
  23064. sys_lib_search_path_spec \
  23065. configure_time_dlsearch_path \
  23066. configure_time_lt_sys_library_path \
  23067. reload_cmds_CXX \
  23068. old_archive_cmds_CXX \
  23069. old_archive_from_new_cmds_CXX \
  23070. old_archive_from_expsyms_cmds_CXX \
  23071. archive_cmds_CXX \
  23072. archive_expsym_cmds_CXX \
  23073. module_cmds_CXX \
  23074. module_expsym_cmds_CXX \
  23075. export_symbols_cmds_CXX \
  23076. prelink_cmds_CXX \
  23077. postlink_cmds_CXX; do
  23078. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23079. *[\\\\\\\`\\"\\\$]*)
  23080. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  23081. ;;
  23082. *)
  23083. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23084. ;;
  23085. esac
  23086. done
  23087. ac_aux_dir='$ac_aux_dir'
  23088. # See if we are running on zsh, and set the options that allow our
  23089. # commands through without removal of \ escapes INIT.
  23090. if test -n "\${ZSH_VERSION+set}"; then
  23091. setopt NO_GLOB_SUBST
  23092. fi
  23093. PACKAGE='$PACKAGE'
  23094. VERSION='$VERSION'
  23095. RM='$RM'
  23096. ofile='$ofile'
  23097. _ACEOF
  23098. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23099. # Handling of arguments.
  23100. for ac_config_target in $ac_config_targets
  23101. do
  23102. case $ac_config_target in
  23103. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  23104. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  23105. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  23106. "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
  23107. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  23108. "doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doxygen.cfg" ;;
  23109. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  23110. "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  23111. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  23112. "src/tcpedit/Makefile") CONFIG_FILES="$CONFIG_FILES src/tcpedit/Makefile" ;;
  23113. "src/fragroute/Makefile") CONFIG_FILES="$CONFIG_FILES src/fragroute/Makefile" ;;
  23114. "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
  23115. "src/defines.h") CONFIG_FILES="$CONFIG_FILES src/defines.h" ;;
  23116. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  23117. "test/config") CONFIG_FILES="$CONFIG_FILES test/config" ;;
  23118. "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
  23119. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  23120. esac
  23121. done
  23122. # If the user did not use the arguments to specify the items to instantiate,
  23123. # then the envvar interface is used. Set only those that are not.
  23124. # We use the long form for the default assignment because of an extremely
  23125. # bizarre bug on SunOS 4.1.3.
  23126. if $ac_need_defaults; then
  23127. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  23128. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  23129. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  23130. fi
  23131. # Have a temporary directory for convenience. Make it in the build tree
  23132. # simply because there is no reason against having it here, and in addition,
  23133. # creating and moving files from /tmp can sometimes cause problems.
  23134. # Hook for its removal unless debugging.
  23135. # Note that there is a small window in which the directory will not be cleaned:
  23136. # after its creation but before its name has been assigned to `$tmp'.
  23137. $debug ||
  23138. {
  23139. tmp= ac_tmp=
  23140. trap 'exit_status=$?
  23141. : "${ac_tmp:=$tmp}"
  23142. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  23143. ' 0
  23144. trap 'as_fn_exit 1' 1 2 13 15
  23145. }
  23146. # Create a (secure) tmp directory for tmp files.
  23147. {
  23148. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  23149. test -d "$tmp"
  23150. } ||
  23151. {
  23152. tmp=./conf$$-$RANDOM
  23153. (umask 077 && mkdir "$tmp")
  23154. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  23155. ac_tmp=$tmp
  23156. # Set up the scripts for CONFIG_FILES section.
  23157. # No need to generate them if there are no CONFIG_FILES.
  23158. # This happens for instance with `./config.status config.h'.
  23159. if test -n "$CONFIG_FILES"; then
  23160. ac_cr=`echo X | tr X '\015'`
  23161. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  23162. # But we know of no other shell where ac_cr would be empty at this
  23163. # point, so we can use a bashism as a fallback.
  23164. if test "x$ac_cr" = x; then
  23165. eval ac_cr=\$\'\\r\'
  23166. fi
  23167. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  23168. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  23169. ac_cs_awk_cr='\\r'
  23170. else
  23171. ac_cs_awk_cr=$ac_cr
  23172. fi
  23173. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  23174. _ACEOF
  23175. {
  23176. echo "cat >conf$$subs.awk <<_ACEOF" &&
  23177. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  23178. echo "_ACEOF"
  23179. } >conf$$subs.sh ||
  23180. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23181. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  23182. ac_delim='%!_!# '
  23183. for ac_last_try in false false false false false :; do
  23184. . ./conf$$subs.sh ||
  23185. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23186. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  23187. if test $ac_delim_n = $ac_delim_num; then
  23188. break
  23189. elif $ac_last_try; then
  23190. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23191. else
  23192. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23193. fi
  23194. done
  23195. rm -f conf$$subs.sh
  23196. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23197. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  23198. _ACEOF
  23199. sed -n '
  23200. h
  23201. s/^/S["/; s/!.*/"]=/
  23202. p
  23203. g
  23204. s/^[^!]*!//
  23205. :repl
  23206. t repl
  23207. s/'"$ac_delim"'$//
  23208. t delim
  23209. :nl
  23210. h
  23211. s/\(.\{148\}\)..*/\1/
  23212. t more1
  23213. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  23214. p
  23215. n
  23216. b repl
  23217. :more1
  23218. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23219. p
  23220. g
  23221. s/.\{148\}//
  23222. t nl
  23223. :delim
  23224. h
  23225. s/\(.\{148\}\)..*/\1/
  23226. t more2
  23227. s/["\\]/\\&/g; s/^/"/; s/$/"/
  23228. p
  23229. b
  23230. :more2
  23231. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23232. p
  23233. g
  23234. s/.\{148\}//
  23235. t delim
  23236. ' <conf$$subs.awk | sed '
  23237. /^[^""]/{
  23238. N
  23239. s/\n//
  23240. }
  23241. ' >>$CONFIG_STATUS || ac_write_fail=1
  23242. rm -f conf$$subs.awk
  23243. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23244. _ACAWK
  23245. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  23246. for (key in S) S_is_set[key] = 1
  23247. FS = ""
  23248. }
  23249. {
  23250. line = $ 0
  23251. nfields = split(line, field, "@")
  23252. substed = 0
  23253. len = length(field[1])
  23254. for (i = 2; i < nfields; i++) {
  23255. key = field[i]
  23256. keylen = length(key)
  23257. if (S_is_set[key]) {
  23258. value = S[key]
  23259. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  23260. len += length(value) + length(field[++i])
  23261. substed = 1
  23262. } else
  23263. len += 1 + keylen
  23264. }
  23265. print line
  23266. }
  23267. _ACAWK
  23268. _ACEOF
  23269. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23270. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  23271. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  23272. else
  23273. cat
  23274. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  23275. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  23276. _ACEOF
  23277. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  23278. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  23279. # trailing colons and then remove the whole line if VPATH becomes empty
  23280. # (actually we leave an empty line to preserve line numbers).
  23281. if test "x$srcdir" = x.; then
  23282. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  23283. h
  23284. s///
  23285. s/^/:/
  23286. s/[ ]*$/:/
  23287. s/:\$(srcdir):/:/g
  23288. s/:\${srcdir}:/:/g
  23289. s/:@srcdir@:/:/g
  23290. s/^:*//
  23291. s/:*$//
  23292. x
  23293. s/\(=[ ]*\).*/\1/
  23294. G
  23295. s/\n//
  23296. s/^[^=]*=[ ]*$//
  23297. }'
  23298. fi
  23299. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23300. fi # test -n "$CONFIG_FILES"
  23301. # Set up the scripts for CONFIG_HEADERS section.
  23302. # No need to generate them if there are no CONFIG_HEADERS.
  23303. # This happens for instance with `./config.status Makefile'.
  23304. if test -n "$CONFIG_HEADERS"; then
  23305. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  23306. BEGIN {
  23307. _ACEOF
  23308. # Transform confdefs.h into an awk script `defines.awk', embedded as
  23309. # here-document in config.status, that substitutes the proper values into
  23310. # config.h.in to produce config.h.
  23311. # Create a delimiter string that does not exist in confdefs.h, to ease
  23312. # handling of long lines.
  23313. ac_delim='%!_!# '
  23314. for ac_last_try in false false :; do
  23315. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  23316. if test -z "$ac_tt"; then
  23317. break
  23318. elif $ac_last_try; then
  23319. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  23320. else
  23321. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23322. fi
  23323. done
  23324. # For the awk script, D is an array of macro values keyed by name,
  23325. # likewise P contains macro parameters if any. Preserve backslash
  23326. # newline sequences.
  23327. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  23328. sed -n '
  23329. s/.\{148\}/&'"$ac_delim"'/g
  23330. t rset
  23331. :rset
  23332. s/^[ ]*#[ ]*define[ ][ ]*/ /
  23333. t def
  23334. d
  23335. :def
  23336. s/\\$//
  23337. t bsnl
  23338. s/["\\]/\\&/g
  23339. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23340. D["\1"]=" \3"/p
  23341. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  23342. d
  23343. :bsnl
  23344. s/["\\]/\\&/g
  23345. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23346. D["\1"]=" \3\\\\\\n"\\/p
  23347. t cont
  23348. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  23349. t cont
  23350. d
  23351. :cont
  23352. n
  23353. s/.\{148\}/&'"$ac_delim"'/g
  23354. t clear
  23355. :clear
  23356. s/\\$//
  23357. t bsnlc
  23358. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  23359. d
  23360. :bsnlc
  23361. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  23362. b cont
  23363. ' <confdefs.h | sed '
  23364. s/'"$ac_delim"'/"\\\
  23365. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  23366. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23367. for (key in D) D_is_set[key] = 1
  23368. FS = ""
  23369. }
  23370. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  23371. line = \$ 0
  23372. split(line, arg, " ")
  23373. if (arg[1] == "#") {
  23374. defundef = arg[2]
  23375. mac1 = arg[3]
  23376. } else {
  23377. defundef = substr(arg[1], 2)
  23378. mac1 = arg[2]
  23379. }
  23380. split(mac1, mac2, "(") #)
  23381. macro = mac2[1]
  23382. prefix = substr(line, 1, index(line, defundef) - 1)
  23383. if (D_is_set[macro]) {
  23384. # Preserve the white space surrounding the "#".
  23385. print prefix "define", macro P[macro] D[macro]
  23386. next
  23387. } else {
  23388. # Replace #undef with comments. This is necessary, for example,
  23389. # in the case of _POSIX_SOURCE, which is predefined and required
  23390. # on some systems where configure will not decide to define it.
  23391. if (defundef == "undef") {
  23392. print "/*", prefix defundef, macro, "*/"
  23393. next
  23394. }
  23395. }
  23396. }
  23397. { print }
  23398. _ACAWK
  23399. _ACEOF
  23400. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23401. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  23402. fi # test -n "$CONFIG_HEADERS"
  23403. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  23404. shift
  23405. for ac_tag
  23406. do
  23407. case $ac_tag in
  23408. :[FHLC]) ac_mode=$ac_tag; continue;;
  23409. esac
  23410. case $ac_mode$ac_tag in
  23411. :[FHL]*:*);;
  23412. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  23413. :[FH]-) ac_tag=-:-;;
  23414. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23415. esac
  23416. ac_save_IFS=$IFS
  23417. IFS=:
  23418. set x $ac_tag
  23419. IFS=$ac_save_IFS
  23420. shift
  23421. ac_file=$1
  23422. shift
  23423. case $ac_mode in
  23424. :L) ac_source=$1;;
  23425. :[FH])
  23426. ac_file_inputs=
  23427. for ac_f
  23428. do
  23429. case $ac_f in
  23430. -) ac_f="$ac_tmp/stdin";;
  23431. *) # Look for the file first in the build tree, then in the source tree
  23432. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23433. # because $ac_f cannot contain `:'.
  23434. test -f "$ac_f" ||
  23435. case $ac_f in
  23436. [\\/$]*) false;;
  23437. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23438. esac ||
  23439. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  23440. esac
  23441. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23442. as_fn_append ac_file_inputs " '$ac_f'"
  23443. done
  23444. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23445. # use $as_me), people would be surprised to read:
  23446. # /* config.h. Generated by config.status. */
  23447. configure_input='Generated from '`
  23448. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23449. `' by configure.'
  23450. if test x"$ac_file" != x-; then
  23451. configure_input="$ac_file. $configure_input"
  23452. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  23453. $as_echo "$as_me: creating $ac_file" >&6;}
  23454. fi
  23455. # Neutralize special characters interpreted by sed in replacement strings.
  23456. case $configure_input in #(
  23457. *\&* | *\|* | *\\* )
  23458. ac_sed_conf_input=`$as_echo "$configure_input" |
  23459. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23460. *) ac_sed_conf_input=$configure_input;;
  23461. esac
  23462. case $ac_tag in
  23463. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  23464. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  23465. esac
  23466. ;;
  23467. esac
  23468. ac_dir=`$as_dirname -- "$ac_file" ||
  23469. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23470. X"$ac_file" : 'X\(//\)[^/]' \| \
  23471. X"$ac_file" : 'X\(//\)$' \| \
  23472. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23473. $as_echo X"$ac_file" |
  23474. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23475. s//\1/
  23476. q
  23477. }
  23478. /^X\(\/\/\)[^/].*/{
  23479. s//\1/
  23480. q
  23481. }
  23482. /^X\(\/\/\)$/{
  23483. s//\1/
  23484. q
  23485. }
  23486. /^X\(\/\).*/{
  23487. s//\1/
  23488. q
  23489. }
  23490. s/.*/./; q'`
  23491. as_dir="$ac_dir"; as_fn_mkdir_p
  23492. ac_builddir=.
  23493. case "$ac_dir" in
  23494. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23495. *)
  23496. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23497. # A ".." for each directory in $ac_dir_suffix.
  23498. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23499. case $ac_top_builddir_sub in
  23500. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23501. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23502. esac ;;
  23503. esac
  23504. ac_abs_top_builddir=$ac_pwd
  23505. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23506. # for backward compatibility:
  23507. ac_top_builddir=$ac_top_build_prefix
  23508. case $srcdir in
  23509. .) # We are building in place.
  23510. ac_srcdir=.
  23511. ac_top_srcdir=$ac_top_builddir_sub
  23512. ac_abs_top_srcdir=$ac_pwd ;;
  23513. [\\/]* | ?:[\\/]* ) # Absolute name.
  23514. ac_srcdir=$srcdir$ac_dir_suffix;
  23515. ac_top_srcdir=$srcdir
  23516. ac_abs_top_srcdir=$srcdir ;;
  23517. *) # Relative name.
  23518. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23519. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23520. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23521. esac
  23522. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23523. case $ac_mode in
  23524. :F)
  23525. #
  23526. # CONFIG_FILE
  23527. #
  23528. case $INSTALL in
  23529. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23530. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23531. esac
  23532. ac_MKDIR_P=$MKDIR_P
  23533. case $MKDIR_P in
  23534. [\\/$]* | ?:[\\/]* ) ;;
  23535. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  23536. esac
  23537. _ACEOF
  23538. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23539. # If the template does not know about datarootdir, expand it.
  23540. # FIXME: This hack should be removed a few years after 2.60.
  23541. ac_datarootdir_hack=; ac_datarootdir_seen=
  23542. ac_sed_dataroot='
  23543. /datarootdir/ {
  23544. p
  23545. q
  23546. }
  23547. /@datadir@/p
  23548. /@docdir@/p
  23549. /@infodir@/p
  23550. /@localedir@/p
  23551. /@mandir@/p'
  23552. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23553. *datarootdir*) ac_datarootdir_seen=yes;;
  23554. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23555. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23556. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23557. _ACEOF
  23558. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23559. ac_datarootdir_hack='
  23560. s&@datadir@&$datadir&g
  23561. s&@docdir@&$docdir&g
  23562. s&@infodir@&$infodir&g
  23563. s&@localedir@&$localedir&g
  23564. s&@mandir@&$mandir&g
  23565. s&\\\${datarootdir}&$datarootdir&g' ;;
  23566. esac
  23567. _ACEOF
  23568. # Neutralize VPATH when `$srcdir' = `.'.
  23569. # Shell code in configure.ac might set extrasub.
  23570. # FIXME: do we really want to maintain this feature?
  23571. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23572. ac_sed_extra="$ac_vpsub
  23573. $extrasub
  23574. _ACEOF
  23575. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23576. :t
  23577. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23578. s|@configure_input@|$ac_sed_conf_input|;t t
  23579. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23580. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23581. s&@srcdir@&$ac_srcdir&;t t
  23582. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23583. s&@top_srcdir@&$ac_top_srcdir&;t t
  23584. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23585. s&@builddir@&$ac_builddir&;t t
  23586. s&@abs_builddir@&$ac_abs_builddir&;t t
  23587. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23588. s&@INSTALL@&$ac_INSTALL&;t t
  23589. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  23590. $ac_datarootdir_hack
  23591. "
  23592. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  23593. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23594. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23595. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  23596. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  23597. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  23598. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23599. which seems to be undefined. Please make sure it is defined" >&5
  23600. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23601. which seems to be undefined. Please make sure it is defined" >&2;}
  23602. rm -f "$ac_tmp/stdin"
  23603. case $ac_file in
  23604. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  23605. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  23606. esac \
  23607. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23608. ;;
  23609. :H)
  23610. #
  23611. # CONFIG_HEADER
  23612. #
  23613. if test x"$ac_file" != x-; then
  23614. {
  23615. $as_echo "/* $configure_input */" \
  23616. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  23617. } >"$ac_tmp/config.h" \
  23618. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23619. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  23620. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  23621. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23622. else
  23623. rm -f "$ac_file"
  23624. mv "$ac_tmp/config.h" "$ac_file" \
  23625. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23626. fi
  23627. else
  23628. $as_echo "/* $configure_input */" \
  23629. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  23630. || as_fn_error $? "could not create -" "$LINENO" 5
  23631. fi
  23632. # Compute "$ac_file"'s index in $config_headers.
  23633. _am_arg="$ac_file"
  23634. _am_stamp_count=1
  23635. for _am_header in $config_headers :; do
  23636. case $_am_header in
  23637. $_am_arg | $_am_arg:* )
  23638. break ;;
  23639. * )
  23640. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  23641. esac
  23642. done
  23643. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  23644. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23645. X"$_am_arg" : 'X\(//\)[^/]' \| \
  23646. X"$_am_arg" : 'X\(//\)$' \| \
  23647. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  23648. $as_echo X"$_am_arg" |
  23649. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23650. s//\1/
  23651. q
  23652. }
  23653. /^X\(\/\/\)[^/].*/{
  23654. s//\1/
  23655. q
  23656. }
  23657. /^X\(\/\/\)$/{
  23658. s//\1/
  23659. q
  23660. }
  23661. /^X\(\/\).*/{
  23662. s//\1/
  23663. q
  23664. }
  23665. s/.*/./; q'`/stamp-h$_am_stamp_count
  23666. ;;
  23667. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  23668. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23669. ;;
  23670. esac
  23671. case $ac_file$ac_mode in
  23672. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  23673. # Older Autoconf quotes --file arguments for eval, but not when files
  23674. # are listed without --file. Let's play safe and only enable the eval
  23675. # if we detect the quoting.
  23676. case $CONFIG_FILES in
  23677. *\'*) eval set x "$CONFIG_FILES" ;;
  23678. *) set x $CONFIG_FILES ;;
  23679. esac
  23680. shift
  23681. for mf
  23682. do
  23683. # Strip MF so we end up with the name of the file.
  23684. mf=`echo "$mf" | sed -e 's/:.*$//'`
  23685. # Check whether this is an Automake generated Makefile or not.
  23686. # We used to match only the files named 'Makefile.in', but
  23687. # some people rename them; so instead we look at the file content.
  23688. # Grep'ing the first line is not enough: some people post-process
  23689. # each Makefile.in and add a new line on top of each file to say so.
  23690. # Grep'ing the whole file is not good either: AIX grep has a line
  23691. # limit of 2048, but all sed's we know have understand at least 4000.
  23692. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  23693. dirpart=`$as_dirname -- "$mf" ||
  23694. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23695. X"$mf" : 'X\(//\)[^/]' \| \
  23696. X"$mf" : 'X\(//\)$' \| \
  23697. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  23698. $as_echo X"$mf" |
  23699. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23700. s//\1/
  23701. q
  23702. }
  23703. /^X\(\/\/\)[^/].*/{
  23704. s//\1/
  23705. q
  23706. }
  23707. /^X\(\/\/\)$/{
  23708. s//\1/
  23709. q
  23710. }
  23711. /^X\(\/\).*/{
  23712. s//\1/
  23713. q
  23714. }
  23715. s/.*/./; q'`
  23716. else
  23717. continue
  23718. fi
  23719. # Extract the definition of DEPDIR, am__include, and am__quote
  23720. # from the Makefile without running 'make'.
  23721. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  23722. test -z "$DEPDIR" && continue
  23723. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  23724. test -z "$am__include" && continue
  23725. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  23726. # Find all dependency output files, they are included files with
  23727. # $(DEPDIR) in their names. We invoke sed twice because it is the
  23728. # simplest approach to changing $(DEPDIR) to its actual value in the
  23729. # expansion.
  23730. for file in `sed -n "
  23731. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  23732. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  23733. # Make sure the directory exists.
  23734. test -f "$dirpart/$file" && continue
  23735. fdir=`$as_dirname -- "$file" ||
  23736. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23737. X"$file" : 'X\(//\)[^/]' \| \
  23738. X"$file" : 'X\(//\)$' \| \
  23739. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  23740. $as_echo X"$file" |
  23741. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23742. s//\1/
  23743. q
  23744. }
  23745. /^X\(\/\/\)[^/].*/{
  23746. s//\1/
  23747. q
  23748. }
  23749. /^X\(\/\/\)$/{
  23750. s//\1/
  23751. q
  23752. }
  23753. /^X\(\/\).*/{
  23754. s//\1/
  23755. q
  23756. }
  23757. s/.*/./; q'`
  23758. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  23759. # echo "creating $dirpart/$file"
  23760. echo '# dummy' > "$dirpart/$file"
  23761. done
  23762. done
  23763. }
  23764. ;;
  23765. "libtool":C)
  23766. # See if we are running on zsh, and set the options that allow our
  23767. # commands through without removal of \ escapes.
  23768. if test -n "${ZSH_VERSION+set}"; then
  23769. setopt NO_GLOB_SUBST
  23770. fi
  23771. cfgfile=${ofile}T
  23772. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23773. $RM "$cfgfile"
  23774. cat <<_LT_EOF >> "$cfgfile"
  23775. #! $SHELL
  23776. # Generated automatically by $as_me ($PACKAGE) $VERSION
  23777. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23778. # Provide generalized library-building support services.
  23779. # Written by Gordon Matzigkeit, 1996
  23780. # Copyright (C) 2014 Free Software Foundation, Inc.
  23781. # This is free software; see the source for copying conditions. There is NO
  23782. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  23783. # GNU Libtool is free software; you can redistribute it and/or modify
  23784. # it under the terms of the GNU General Public License as published by
  23785. # the Free Software Foundation; either version 2 of of the License, or
  23786. # (at your option) any later version.
  23787. #
  23788. # As a special exception to the GNU General Public License, if you
  23789. # distribute this file as part of a program or library that is built
  23790. # using GNU Libtool, you may include this file under the same
  23791. # distribution terms that you use for the rest of that program.
  23792. #
  23793. # GNU Libtool is distributed in the hope that it will be useful, but
  23794. # WITHOUT ANY WARRANTY; without even the implied warranty of
  23795. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23796. # GNU General Public License for more details.
  23797. #
  23798. # You should have received a copy of the GNU General Public License
  23799. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  23800. # The names of the tagged configurations supported by this script.
  23801. available_tags='CXX '
  23802. # Configured defaults for sys_lib_dlsearch_path munging.
  23803. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  23804. # ### BEGIN LIBTOOL CONFIG
  23805. # Which release of libtool.m4 was used?
  23806. macro_version=$macro_version
  23807. macro_revision=$macro_revision
  23808. # Whether or not to build shared libraries.
  23809. build_libtool_libs=$enable_shared
  23810. # Whether or not to build static libraries.
  23811. build_old_libs=$enable_static
  23812. # What type of objects to build.
  23813. pic_mode=$pic_mode
  23814. # Whether or not to optimize for fast installation.
  23815. fast_install=$enable_fast_install
  23816. # Shared archive member basename,for filename based shared library versioning on AIX.
  23817. shared_archive_member_spec=$shared_archive_member_spec
  23818. # Shell to use when invoking shell scripts.
  23819. SHELL=$lt_SHELL
  23820. # An echo program that protects backslashes.
  23821. ECHO=$lt_ECHO
  23822. # The PATH separator for the build system.
  23823. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  23824. # The host system.
  23825. host_alias=$host_alias
  23826. host=$host
  23827. host_os=$host_os
  23828. # The build system.
  23829. build_alias=$build_alias
  23830. build=$build
  23831. build_os=$build_os
  23832. # A sed program that does not truncate output.
  23833. SED=$lt_SED
  23834. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23835. Xsed="\$SED -e 1s/^X//"
  23836. # A grep program that handles long lines.
  23837. GREP=$lt_GREP
  23838. # An ERE matcher.
  23839. EGREP=$lt_EGREP
  23840. # A literal string matcher.
  23841. FGREP=$lt_FGREP
  23842. # A BSD- or MS-compatible name lister.
  23843. NM=$lt_NM
  23844. # Whether we need soft or hard links.
  23845. LN_S=$lt_LN_S
  23846. # What is the maximum length of a command?
  23847. max_cmd_len=$max_cmd_len
  23848. # Object file suffix (normally "o").
  23849. objext=$ac_objext
  23850. # Executable file suffix (normally "").
  23851. exeext=$exeext
  23852. # whether the shell understands "unset".
  23853. lt_unset=$lt_unset
  23854. # turn spaces into newlines.
  23855. SP2NL=$lt_lt_SP2NL
  23856. # turn newlines into spaces.
  23857. NL2SP=$lt_lt_NL2SP
  23858. # convert \$build file names to \$host format.
  23859. to_host_file_cmd=$lt_cv_to_host_file_cmd
  23860. # convert \$build files to toolchain format.
  23861. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  23862. # An object symbol dumper.
  23863. OBJDUMP=$lt_OBJDUMP
  23864. # Method to check whether dependent libraries are shared objects.
  23865. deplibs_check_method=$lt_deplibs_check_method
  23866. # Command to use when deplibs_check_method = "file_magic".
  23867. file_magic_cmd=$lt_file_magic_cmd
  23868. # How to find potential files when deplibs_check_method = "file_magic".
  23869. file_magic_glob=$lt_file_magic_glob
  23870. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  23871. want_nocaseglob=$lt_want_nocaseglob
  23872. # DLL creation program.
  23873. DLLTOOL=$lt_DLLTOOL
  23874. # Command to associate shared and link libraries.
  23875. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  23876. # The archiver.
  23877. AR=$lt_AR
  23878. # Flags to create an archive.
  23879. AR_FLAGS=$lt_AR_FLAGS
  23880. # How to feed a file listing to the archiver.
  23881. archiver_list_spec=$lt_archiver_list_spec
  23882. # A symbol stripping program.
  23883. STRIP=$lt_STRIP
  23884. # Commands used to install an old-style archive.
  23885. RANLIB=$lt_RANLIB
  23886. old_postinstall_cmds=$lt_old_postinstall_cmds
  23887. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  23888. # Whether to use a lock for old archive extraction.
  23889. lock_old_archive_extraction=$lock_old_archive_extraction
  23890. # A C compiler.
  23891. LTCC=$lt_CC
  23892. # LTCC compiler flags.
  23893. LTCFLAGS=$lt_CFLAGS
  23894. # Take the output of nm and produce a listing of raw symbols and C names.
  23895. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  23896. # Transform the output of nm in a proper C declaration.
  23897. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  23898. # Transform the output of nm into a list of symbols to manually relocate.
  23899. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  23900. # Transform the output of nm in a C name address pair.
  23901. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  23902. # Transform the output of nm in a C name address pair when lib prefix is needed.
  23903. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  23904. # The name lister interface.
  23905. nm_interface=$lt_lt_cv_nm_interface
  23906. # Specify filename containing input files for \$NM.
  23907. nm_file_list_spec=$lt_nm_file_list_spec
  23908. # The root where to search for dependent libraries,and where our libraries should be installed.
  23909. lt_sysroot=$lt_sysroot
  23910. # Command to truncate a binary pipe.
  23911. lt_truncate_bin=$lt_lt_cv_truncate_bin
  23912. # The name of the directory that contains temporary libtool files.
  23913. objdir=$objdir
  23914. # Used to examine libraries when file_magic_cmd begins with "file".
  23915. MAGIC_CMD=$MAGIC_CMD
  23916. # Must we lock files when doing compilation?
  23917. need_locks=$lt_need_locks
  23918. # Manifest tool.
  23919. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  23920. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  23921. DSYMUTIL=$lt_DSYMUTIL
  23922. # Tool to change global to local symbols on Mac OS X.
  23923. NMEDIT=$lt_NMEDIT
  23924. # Tool to manipulate fat objects and archives on Mac OS X.
  23925. LIPO=$lt_LIPO
  23926. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  23927. OTOOL=$lt_OTOOL
  23928. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  23929. OTOOL64=$lt_OTOOL64
  23930. # Old archive suffix (normally "a").
  23931. libext=$libext
  23932. # Shared library suffix (normally ".so").
  23933. shrext_cmds=$lt_shrext_cmds
  23934. # The commands to extract the exported symbol list from a shared archive.
  23935. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23936. # Variables whose values should be saved in libtool wrapper scripts and
  23937. # restored at link time.
  23938. variables_saved_for_relink=$lt_variables_saved_for_relink
  23939. # Do we need the "lib" prefix for modules?
  23940. need_lib_prefix=$need_lib_prefix
  23941. # Do we need a version for libraries?
  23942. need_version=$need_version
  23943. # Library versioning type.
  23944. version_type=$version_type
  23945. # Shared library runtime path variable.
  23946. runpath_var=$runpath_var
  23947. # Shared library path variable.
  23948. shlibpath_var=$shlibpath_var
  23949. # Is shlibpath searched before the hard-coded library search path?
  23950. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23951. # Format of library name prefix.
  23952. libname_spec=$lt_libname_spec
  23953. # List of archive names. First name is the real one, the rest are links.
  23954. # The last name is the one that the linker finds with -lNAME
  23955. library_names_spec=$lt_library_names_spec
  23956. # The coded name of the library, if different from the real name.
  23957. soname_spec=$lt_soname_spec
  23958. # Permission mode override for installation of shared libraries.
  23959. install_override_mode=$lt_install_override_mode
  23960. # Command to use after installation of a shared archive.
  23961. postinstall_cmds=$lt_postinstall_cmds
  23962. # Command to use after uninstallation of a shared archive.
  23963. postuninstall_cmds=$lt_postuninstall_cmds
  23964. # Commands used to finish a libtool library installation in a directory.
  23965. finish_cmds=$lt_finish_cmds
  23966. # As "finish_cmds", except a single script fragment to be evaled but
  23967. # not shown.
  23968. finish_eval=$lt_finish_eval
  23969. # Whether we should hardcode library paths into libraries.
  23970. hardcode_into_libs=$hardcode_into_libs
  23971. # Compile-time system search path for libraries.
  23972. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23973. # Detected run-time system search path for libraries.
  23974. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  23975. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  23976. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  23977. # Whether dlopen is supported.
  23978. dlopen_support=$enable_dlopen
  23979. # Whether dlopen of programs is supported.
  23980. dlopen_self=$enable_dlopen_self
  23981. # Whether dlopen of statically linked programs is supported.
  23982. dlopen_self_static=$enable_dlopen_self_static
  23983. # Commands to strip libraries.
  23984. old_striplib=$lt_old_striplib
  23985. striplib=$lt_striplib
  23986. # The linker used to build libraries.
  23987. LD=$lt_LD
  23988. # How to create reloadable object files.
  23989. reload_flag=$lt_reload_flag
  23990. reload_cmds=$lt_reload_cmds
  23991. # Commands used to build an old-style archive.
  23992. old_archive_cmds=$lt_old_archive_cmds
  23993. # A language specific compiler.
  23994. CC=$lt_compiler
  23995. # Is the compiler the GNU compiler?
  23996. with_gcc=$GCC
  23997. # Compiler flag to turn off builtin functions.
  23998. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  23999. # Additional compiler flags for building library objects.
  24000. pic_flag=$lt_lt_prog_compiler_pic
  24001. # How to pass a linker flag through the compiler.
  24002. wl=$lt_lt_prog_compiler_wl
  24003. # Compiler flag to prevent dynamic linking.
  24004. link_static_flag=$lt_lt_prog_compiler_static
  24005. # Does compiler simultaneously support -c and -o options?
  24006. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  24007. # Whether or not to add -lc for building shared libraries.
  24008. build_libtool_need_lc=$archive_cmds_need_lc
  24009. # Whether or not to disallow shared libs when runtime libs are static.
  24010. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  24011. # Compiler flag to allow reflexive dlopens.
  24012. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  24013. # Compiler flag to generate shared objects directly from archives.
  24014. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  24015. # Whether the compiler copes with passing no objects directly.
  24016. compiler_needs_object=$lt_compiler_needs_object
  24017. # Create an old-style archive from a shared archive.
  24018. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  24019. # Create a temporary old-style archive to link instead of a shared archive.
  24020. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  24021. # Commands used to build a shared archive.
  24022. archive_cmds=$lt_archive_cmds
  24023. archive_expsym_cmds=$lt_archive_expsym_cmds
  24024. # Commands used to build a loadable module if different from building
  24025. # a shared archive.
  24026. module_cmds=$lt_module_cmds
  24027. module_expsym_cmds=$lt_module_expsym_cmds
  24028. # Whether we are building with GNU ld or not.
  24029. with_gnu_ld=$lt_with_gnu_ld
  24030. # Flag that allows shared libraries with undefined symbols to be built.
  24031. allow_undefined_flag=$lt_allow_undefined_flag
  24032. # Flag that enforces no undefined symbols.
  24033. no_undefined_flag=$lt_no_undefined_flag
  24034. # Flag to hardcode \$libdir into a binary during linking.
  24035. # This must work even if \$libdir does not exist
  24036. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  24037. # Whether we need a single "-rpath" flag with a separated argument.
  24038. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  24039. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  24040. # DIR into the resulting binary.
  24041. hardcode_direct=$hardcode_direct
  24042. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  24043. # DIR into the resulting binary and the resulting library dependency is
  24044. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  24045. # library is relocated.
  24046. hardcode_direct_absolute=$hardcode_direct_absolute
  24047. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24048. # into the resulting binary.
  24049. hardcode_minus_L=$hardcode_minus_L
  24050. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24051. # into the resulting binary.
  24052. hardcode_shlibpath_var=$hardcode_shlibpath_var
  24053. # Set to "yes" if building a shared library automatically hardcodes DIR
  24054. # into the library and all subsequent libraries and executables linked
  24055. # against it.
  24056. hardcode_automatic=$hardcode_automatic
  24057. # Set to yes if linker adds runtime paths of dependent libraries
  24058. # to runtime path list.
  24059. inherit_rpath=$inherit_rpath
  24060. # Whether libtool must link a program against all its dependency libraries.
  24061. link_all_deplibs=$link_all_deplibs
  24062. # Set to "yes" if exported symbols are required.
  24063. always_export_symbols=$always_export_symbols
  24064. # The commands to list exported symbols.
  24065. export_symbols_cmds=$lt_export_symbols_cmds
  24066. # Symbols that should not be listed in the preloaded symbols.
  24067. exclude_expsyms=$lt_exclude_expsyms
  24068. # Symbols that must always be exported.
  24069. include_expsyms=$lt_include_expsyms
  24070. # Commands necessary for linking programs (against libraries) with templates.
  24071. prelink_cmds=$lt_prelink_cmds
  24072. # Commands necessary for finishing linking programs.
  24073. postlink_cmds=$lt_postlink_cmds
  24074. # Specify filename containing input files.
  24075. file_list_spec=$lt_file_list_spec
  24076. # How to hardcode a shared library path into an executable.
  24077. hardcode_action=$hardcode_action
  24078. # The directories searched by this compiler when creating a shared library.
  24079. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  24080. # Dependencies to place before and after the objects being linked to
  24081. # create a shared library.
  24082. predep_objects=$lt_predep_objects
  24083. postdep_objects=$lt_postdep_objects
  24084. predeps=$lt_predeps
  24085. postdeps=$lt_postdeps
  24086. # The library search path used internally by the compiler when linking
  24087. # a shared library.
  24088. compiler_lib_search_path=$lt_compiler_lib_search_path
  24089. # ### END LIBTOOL CONFIG
  24090. _LT_EOF
  24091. cat <<'_LT_EOF' >> "$cfgfile"
  24092. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  24093. # func_munge_path_list VARIABLE PATH
  24094. # -----------------------------------
  24095. # VARIABLE is name of variable containing _space_ separated list of
  24096. # directories to be munged by the contents of PATH, which is string
  24097. # having a format:
  24098. # "DIR[:DIR]:"
  24099. # string "DIR[ DIR]" will be prepended to VARIABLE
  24100. # ":DIR[:DIR]"
  24101. # string "DIR[ DIR]" will be appended to VARIABLE
  24102. # "DIRP[:DIRP]::[DIRA:]DIRA"
  24103. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  24104. # "DIRA[ DIRA]" will be appended to VARIABLE
  24105. # "DIR[:DIR]"
  24106. # VARIABLE will be replaced by "DIR[ DIR]"
  24107. func_munge_path_list ()
  24108. {
  24109. case x$2 in
  24110. x)
  24111. ;;
  24112. *:)
  24113. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  24114. ;;
  24115. x:*)
  24116. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  24117. ;;
  24118. *::*)
  24119. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  24120. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  24121. ;;
  24122. *)
  24123. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  24124. ;;
  24125. esac
  24126. }
  24127. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  24128. func_cc_basename ()
  24129. {
  24130. for cc_temp in $*""; do
  24131. case $cc_temp in
  24132. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  24133. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  24134. \-*) ;;
  24135. *) break;;
  24136. esac
  24137. done
  24138. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  24139. }
  24140. # ### END FUNCTIONS SHARED WITH CONFIGURE
  24141. _LT_EOF
  24142. case $host_os in
  24143. aix3*)
  24144. cat <<\_LT_EOF >> "$cfgfile"
  24145. # AIX sometimes has problems with the GCC collect2 program. For some
  24146. # reason, if we set the COLLECT_NAMES environment variable, the problems
  24147. # vanish in a puff of smoke.
  24148. if test set != "${COLLECT_NAMES+set}"; then
  24149. COLLECT_NAMES=
  24150. export COLLECT_NAMES
  24151. fi
  24152. _LT_EOF
  24153. ;;
  24154. esac
  24155. ltmain=$ac_aux_dir/ltmain.sh
  24156. # We use sed instead of cat because bash on DJGPP gets confused if
  24157. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  24158. # text mode, it properly converts lines to CR/LF. This bash problem
  24159. # is reportedly fixed, but why not run on old versions too?
  24160. sed '$q' "$ltmain" >> "$cfgfile" \
  24161. || (rm -f "$cfgfile"; exit 1)
  24162. mv -f "$cfgfile" "$ofile" ||
  24163. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  24164. chmod +x "$ofile"
  24165. cat <<_LT_EOF >> "$ofile"
  24166. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  24167. # The linker used to build libraries.
  24168. LD=$lt_LD_CXX
  24169. # How to create reloadable object files.
  24170. reload_flag=$lt_reload_flag_CXX
  24171. reload_cmds=$lt_reload_cmds_CXX
  24172. # Commands used to build an old-style archive.
  24173. old_archive_cmds=$lt_old_archive_cmds_CXX
  24174. # A language specific compiler.
  24175. CC=$lt_compiler_CXX
  24176. # Is the compiler the GNU compiler?
  24177. with_gcc=$GCC_CXX
  24178. # Compiler flag to turn off builtin functions.
  24179. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  24180. # Additional compiler flags for building library objects.
  24181. pic_flag=$lt_lt_prog_compiler_pic_CXX
  24182. # How to pass a linker flag through the compiler.
  24183. wl=$lt_lt_prog_compiler_wl_CXX
  24184. # Compiler flag to prevent dynamic linking.
  24185. link_static_flag=$lt_lt_prog_compiler_static_CXX
  24186. # Does compiler simultaneously support -c and -o options?
  24187. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  24188. # Whether or not to add -lc for building shared libraries.
  24189. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  24190. # Whether or not to disallow shared libs when runtime libs are static.
  24191. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  24192. # Compiler flag to allow reflexive dlopens.
  24193. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  24194. # Compiler flag to generate shared objects directly from archives.
  24195. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  24196. # Whether the compiler copes with passing no objects directly.
  24197. compiler_needs_object=$lt_compiler_needs_object_CXX
  24198. # Create an old-style archive from a shared archive.
  24199. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  24200. # Create a temporary old-style archive to link instead of a shared archive.
  24201. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  24202. # Commands used to build a shared archive.
  24203. archive_cmds=$lt_archive_cmds_CXX
  24204. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  24205. # Commands used to build a loadable module if different from building
  24206. # a shared archive.
  24207. module_cmds=$lt_module_cmds_CXX
  24208. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  24209. # Whether we are building with GNU ld or not.
  24210. with_gnu_ld=$lt_with_gnu_ld_CXX
  24211. # Flag that allows shared libraries with undefined symbols to be built.
  24212. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  24213. # Flag that enforces no undefined symbols.
  24214. no_undefined_flag=$lt_no_undefined_flag_CXX
  24215. # Flag to hardcode \$libdir into a binary during linking.
  24216. # This must work even if \$libdir does not exist
  24217. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  24218. # Whether we need a single "-rpath" flag with a separated argument.
  24219. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  24220. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  24221. # DIR into the resulting binary.
  24222. hardcode_direct=$hardcode_direct_CXX
  24223. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  24224. # DIR into the resulting binary and the resulting library dependency is
  24225. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  24226. # library is relocated.
  24227. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  24228. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24229. # into the resulting binary.
  24230. hardcode_minus_L=$hardcode_minus_L_CXX
  24231. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24232. # into the resulting binary.
  24233. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  24234. # Set to "yes" if building a shared library automatically hardcodes DIR
  24235. # into the library and all subsequent libraries and executables linked
  24236. # against it.
  24237. hardcode_automatic=$hardcode_automatic_CXX
  24238. # Set to yes if linker adds runtime paths of dependent libraries
  24239. # to runtime path list.
  24240. inherit_rpath=$inherit_rpath_CXX
  24241. # Whether libtool must link a program against all its dependency libraries.
  24242. link_all_deplibs=$link_all_deplibs_CXX
  24243. # Set to "yes" if exported symbols are required.
  24244. always_export_symbols=$always_export_symbols_CXX
  24245. # The commands to list exported symbols.
  24246. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  24247. # Symbols that should not be listed in the preloaded symbols.
  24248. exclude_expsyms=$lt_exclude_expsyms_CXX
  24249. # Symbols that must always be exported.
  24250. include_expsyms=$lt_include_expsyms_CXX
  24251. # Commands necessary for linking programs (against libraries) with templates.
  24252. prelink_cmds=$lt_prelink_cmds_CXX
  24253. # Commands necessary for finishing linking programs.
  24254. postlink_cmds=$lt_postlink_cmds_CXX
  24255. # Specify filename containing input files.
  24256. file_list_spec=$lt_file_list_spec_CXX
  24257. # How to hardcode a shared library path into an executable.
  24258. hardcode_action=$hardcode_action_CXX
  24259. # The directories searched by this compiler when creating a shared library.
  24260. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  24261. # Dependencies to place before and after the objects being linked to
  24262. # create a shared library.
  24263. predep_objects=$lt_predep_objects_CXX
  24264. postdep_objects=$lt_postdep_objects_CXX
  24265. predeps=$lt_predeps_CXX
  24266. postdeps=$lt_postdeps_CXX
  24267. # The library search path used internally by the compiler when linking
  24268. # a shared library.
  24269. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  24270. # ### END LIBTOOL TAG CONFIG: CXX
  24271. _LT_EOF
  24272. ;;
  24273. esac
  24274. done # for ac_tag
  24275. as_fn_exit 0
  24276. _ACEOF
  24277. ac_clean_files=$ac_clean_files_save
  24278. test $ac_write_fail = 0 ||
  24279. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  24280. # configure is writing to config.log, and then calls config.status.
  24281. # config.status does its own redirection, appending to config.log.
  24282. # Unfortunately, on DOS this fails, as config.log is still kept open
  24283. # by configure, so config.status won't be able to write to it; its
  24284. # output is simply discarded. So we exec the FD to /dev/null,
  24285. # effectively closing config.log, so it can be properly (re)opened and
  24286. # appended to by config.status. When coming back to configure, we
  24287. # need to make the FD available again.
  24288. if test "$no_create" != yes; then
  24289. ac_cs_success=:
  24290. ac_config_status_args=
  24291. test "$silent" = yes &&
  24292. ac_config_status_args="$ac_config_status_args --quiet"
  24293. exec 5>/dev/null
  24294. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  24295. exec 5>>config.log
  24296. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  24297. # would make configure fail if this is the last instruction.
  24298. $ac_cs_success || as_fn_exit 1
  24299. fi
  24300. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  24301. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  24302. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  24303. fi
  24304. # Configuration results
  24305. { $as_echo "$as_me:${as_lineno-$LINENO}: result:
  24306. ##########################################################################
  24307. TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION})
  24308. ##########################################################################
  24309. libpcap: ${foundpcap} (${libpcap_version})
  24310. PF_RING libpcap ${pf_ring_found} ${pf_ring_lib}
  24311. libdnet: ${founddnet} ${libdnet_version}
  24312. autogen: ${AUTOGEN} (${AUTOGEN_VERSION})
  24313. Use libopts tearoff: ${enable_local_libopts}
  24314. 64bit counter support: ${use64bit_counters}
  24315. tcpdump binary path: ${tcpdump_path}
  24316. fragroute support: ${enable_fragroute}
  24317. tcpbridge support: ${enable_tcpbridge}
  24318. tcpliveplay support: ${enable_tcpliveplay}
  24319. Supported Packet Injection Methods (*):
  24320. Linux TX_RING: ${have_tx_ring}
  24321. Linux PF_PACKET: ${have_pf}
  24322. BSD BPF: ${have_bpf}
  24323. libdnet: ${have_libdnet}
  24324. pcap_inject: ${have_pcap_inject}
  24325. pcap_sendpacket: ${have_pcap_sendpacket} **
  24326. pcap_netmap ${have_pcap_netmap}
  24327. Linux/BSD netmap: ${have_netmap}
  24328. Tuntap device support: ${have_tuntap}
  24329. * In order of preference; see configure --help to override
  24330. ** Required for tcpbridge
  24331. " >&5
  24332. $as_echo "
  24333. ##########################################################################
  24334. TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION})
  24335. ##########################################################################
  24336. libpcap: ${foundpcap} (${libpcap_version})
  24337. PF_RING libpcap ${pf_ring_found} ${pf_ring_lib}
  24338. libdnet: ${founddnet} ${libdnet_version}
  24339. autogen: ${AUTOGEN} (${AUTOGEN_VERSION})
  24340. Use libopts tearoff: ${enable_local_libopts}
  24341. 64bit counter support: ${use64bit_counters}
  24342. tcpdump binary path: ${tcpdump_path}
  24343. fragroute support: ${enable_fragroute}
  24344. tcpbridge support: ${enable_tcpbridge}
  24345. tcpliveplay support: ${enable_tcpliveplay}
  24346. Supported Packet Injection Methods (*):
  24347. Linux TX_RING: ${have_tx_ring}
  24348. Linux PF_PACKET: ${have_pf}
  24349. BSD BPF: ${have_bpf}
  24350. libdnet: ${have_libdnet}
  24351. pcap_inject: ${have_pcap_inject}
  24352. pcap_sendpacket: ${have_pcap_sendpacket} **
  24353. pcap_netmap ${have_pcap_netmap}
  24354. Linux/BSD netmap: ${have_netmap}
  24355. Tuntap device support: ${have_tuntap}
  24356. * In order of preference; see configure --help to override
  24357. ** Required for tcpbridge
  24358. " >&6; }
  24359. case $host in
  24360. *-apple-darwin*)
  24361. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apple OS X versions prior to 10.5 (Leopard) have a serious problem!
  24362. Please see: http://tcpreplay.synfin.net/trac/ticket/142 for more details" >&5
  24363. $as_echo "$as_me: WARNING: Apple OS X versions prior to 10.5 (Leopard) have a serious problem!
  24364. Please see: http://tcpreplay.synfin.net/trac/ticket/142 for more details" >&2;}
  24365. ;;
  24366. *-*-cygwin)
  24367. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Windows/Cygwin support is still somewhat experimental.
  24368. Please report any bugs! https://github.com/appneta/tcpreplay/issues" >&5
  24369. $as_echo "$as_me: WARNING: Windows/Cygwin support is still somewhat experimental.
  24370. Please report any bugs! https://github.com/appneta/tcpreplay/issues" >&2;}
  24371. ;;
  24372. esac