configure 818 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for tcpreplay 4.4.0.
  4. #
  5. # Report bugs to <https://github.com/appneta/tcpreplay/issues>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  188. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. PATH=/empty FPATH=/empty; export PATH FPATH
  192. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  193. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  194. test \$(( 1 + 1 )) = 2 || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  259. $0: https://github.com/appneta/tcpreplay/issues about your
  260. $0: system, including any error possibly output before this
  261. $0: message. Then install a modern shell, or manually run
  262. $0: the script under such a shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='tcpreplay'
  542. PACKAGE_TARNAME='tcpreplay'
  543. PACKAGE_VERSION='4.4.0'
  544. PACKAGE_STRING='tcpreplay 4.4.0'
  545. PACKAGE_BUGREPORT='https://github.com/appneta/tcpreplay/issues'
  546. PACKAGE_URL='http://tcpreplay.sourceforge.net/'
  547. ac_unique_file="src/tcpreplay.c"
  548. # Factoring default headers for most tests.
  549. ac_includes_default="\
  550. #include <stdio.h>
  551. #ifdef HAVE_SYS_TYPES_H
  552. # include <sys/types.h>
  553. #endif
  554. #ifdef HAVE_SYS_STAT_H
  555. # include <sys/stat.h>
  556. #endif
  557. #ifdef STDC_HEADERS
  558. # include <stdlib.h>
  559. # include <stddef.h>
  560. #else
  561. # ifdef HAVE_STDLIB_H
  562. # include <stdlib.h>
  563. # endif
  564. #endif
  565. #ifdef HAVE_STRING_H
  566. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  567. # include <memory.h>
  568. # endif
  569. # include <string.h>
  570. #endif
  571. #ifdef HAVE_STRINGS_H
  572. # include <strings.h>
  573. #endif
  574. #ifdef HAVE_INTTYPES_H
  575. # include <inttypes.h>
  576. #endif
  577. #ifdef HAVE_STDINT_H
  578. # include <stdint.h>
  579. #endif
  580. #ifdef HAVE_UNISTD_H
  581. # include <unistd.h>
  582. #endif"
  583. ac_header_list=
  584. ac_func_list=
  585. ac_subst_vars='am__EXEEXT_FALSE
  586. am__EXEEXT_TRUE
  587. LTLIBOBJS
  588. LIBOPTS_DIR
  589. LIBOPTS_CFLAGS
  590. LIBOPTS_LDADD
  591. NEED_LIBOPTS_FALSE
  592. NEED_LIBOPTS_TRUE
  593. INSTALL_LIBOPTS_FALSE
  594. INSTALL_LIBOPTS_TRUE
  595. POSIX_SHELL
  596. GL_GENERATE_STDNORETURN_H_FALSE
  597. GL_GENERATE_STDNORETURN_H_TRUE
  598. STDNORETURN_H
  599. nic2
  600. nic1
  601. ENABLE_OSX_FRAMEWORKS_FALSE
  602. ENABLE_OSX_FRAMEWORKS_TRUE
  603. ENABLE_TCPDUMP_FALSE
  604. ENABLE_TCPDUMP_TRUE
  605. tcpdump_path
  606. LNAV_CFLAGS
  607. LNAVLIB
  608. pcncfg
  609. PCAP_BPF_H_FILE
  610. COMPILE_FRAGROUTE_FALSE
  611. COMPILE_FRAGROUTE_TRUE
  612. LDNETLIB
  613. LDNETINC
  614. COMPILE_NETMAP_FALSE
  615. COMPILE_NETMAP_TRUE
  616. NETMAPFLAGS
  617. NETMAPINCDIR
  618. NETMAPUSERINC
  619. NETMAPINC
  620. COMPILE_TCPLIVEPLAY_FALSE
  621. COMPILE_TCPLIVEPLAY_TRUE
  622. COMPILE_TCPBRIDGE_FALSE
  623. COMPILE_TCPBRIDGE_TRUE
  624. LPCAPLIB
  625. LPCAPINC
  626. PCAP_CONFIG
  627. DMALLOC_LIB
  628. timestamp_trace_flag
  629. extra_debug_flag
  630. debug_run_time_flag
  631. debug_flag
  632. build_asan
  633. WORDS_BIGENDIAN_FALSE
  634. WORDS_BIGENDIAN_TRUE
  635. SYSTEM_STRLCPY_FALSE
  636. SYSTEM_STRLCPY_TRUE
  637. LIBOBJS
  638. rmmod
  639. insmod
  640. depmod
  641. GROFF
  642. AUTOGEN
  643. CUT
  644. ECHO
  645. PRINTF
  646. CXXCPP
  647. am__fastdepCXX_FALSE
  648. am__fastdepCXX_TRUE
  649. CXXDEPMODE
  650. ac_ct_CXX
  651. CXXFLAGS
  652. CXX
  653. CPP
  654. LT_SYS_LIBRARY_PATH
  655. OTOOL64
  656. OTOOL
  657. LIPO
  658. NMEDIT
  659. DSYMUTIL
  660. MANIFEST_TOOL
  661. RANLIB
  662. DLLTOOL
  663. OBJDUMP
  664. LN_S
  665. NM
  666. ac_ct_DUMPBIN
  667. DUMPBIN
  668. LD
  669. FGREP
  670. EGREP
  671. GREP
  672. SED
  673. am__fastdepCC_FALSE
  674. am__fastdepCC_TRUE
  675. CCDEPMODE
  676. am__nodep
  677. AMDEPBACKSLASH
  678. AMDEP_FALSE
  679. AMDEP_TRUE
  680. am__include
  681. DEPDIR
  682. OBJEXT
  683. EXEEXT
  684. ac_ct_CC
  685. CPPFLAGS
  686. LDFLAGS
  687. CFLAGS
  688. CC
  689. ac_ct_AR
  690. AR
  691. AM_BACKSLASH
  692. AM_DEFAULT_VERBOSITY
  693. AM_DEFAULT_V
  694. AM_V
  695. am__untar
  696. am__tar
  697. AMTAR
  698. am__leading_dot
  699. SET_MAKE
  700. AWK
  701. mkdir_p
  702. MKDIR_P
  703. INSTALL_STRIP_PROGRAM
  704. STRIP
  705. install_sh
  706. MAKEINFO
  707. AUTOHEADER
  708. AUTOMAKE
  709. AUTOCONF
  710. ACLOCAL
  711. VERSION
  712. PACKAGE
  713. CYGPATH_W
  714. am__isrc
  715. INSTALL_DATA
  716. INSTALL_SCRIPT
  717. INSTALL_PROGRAM
  718. LIBTOOL
  719. MACOSX_SDK_PATH
  720. CROSS_LD
  721. CROSS_ARCH
  722. target_os
  723. target_vendor
  724. target_cpu
  725. target
  726. host_os
  727. host_vendor
  728. host_cpu
  729. host
  730. build_os
  731. build_vendor
  732. build_cpu
  733. build
  734. TCPREPLAY_RELEASE
  735. TCPREPLAY_VERSION
  736. MAINT
  737. MAINTAINER_MODE_FALSE
  738. MAINTAINER_MODE_TRUE
  739. target_alias
  740. host_alias
  741. build_alias
  742. LIBS
  743. ECHO_T
  744. ECHO_N
  745. ECHO_C
  746. DEFS
  747. mandir
  748. localedir
  749. libdir
  750. psdir
  751. pdfdir
  752. dvidir
  753. htmldir
  754. infodir
  755. docdir
  756. oldincludedir
  757. includedir
  758. runstatedir
  759. localstatedir
  760. sharedstatedir
  761. sysconfdir
  762. datadir
  763. datarootdir
  764. libexecdir
  765. sbindir
  766. bindir
  767. program_transform_name
  768. prefix
  769. exec_prefix
  770. PACKAGE_URL
  771. PACKAGE_BUGREPORT
  772. PACKAGE_STRING
  773. PACKAGE_VERSION
  774. PACKAGE_TARNAME
  775. PACKAGE_NAME
  776. PATH_SEPARATOR
  777. SHELL
  778. am__quote'
  779. ac_subst_files=''
  780. ac_user_opts='
  781. enable_option_checking
  782. enable_maintainer_mode
  783. with_dmalloc
  784. with_macos_sdk
  785. with_pfring_lib
  786. enable_silent_rules
  787. enable_dependency_tracking
  788. enable_shared
  789. enable_static
  790. with_pic
  791. enable_fast_install
  792. with_aix_soname
  793. with_gnu_ld
  794. with_sysroot
  795. enable_libtool_lock
  796. enable_largefile
  797. enable_asan
  798. enable_debug
  799. enable_extra_debug
  800. enable_timestamp_trace
  801. enable_dmalloc
  802. enable_pedantic
  803. enable_efence
  804. enable_gprof
  805. enable_pcapconfig
  806. enable_64bits
  807. enable_force_bpf
  808. enable_force_pf
  809. enable_force_libdnet
  810. enable_force_inject
  811. enable_force_sendpacket
  812. enable_static_link
  813. enable_dynamic_link
  814. enable_tuntap
  815. with_libpcap
  816. with_netmap
  817. with_libdnet
  818. with_pcapnav_config
  819. with_tcpdump
  820. with_testnic
  821. with_testnic2
  822. enable_nls
  823. enable_local_libopts
  824. enable_libopts_install
  825. with_autoopts_config
  826. with_regex_header
  827. with_libregex
  828. with_libregex_cflags
  829. with_libregex_libs
  830. enable_optional_args
  831. '
  832. ac_precious_vars='build_alias
  833. host_alias
  834. target_alias
  835. CC
  836. CFLAGS
  837. LDFLAGS
  838. LIBS
  839. CPPFLAGS
  840. LT_SYS_LIBRARY_PATH
  841. CPP
  842. CXX
  843. CXXFLAGS
  844. CCC
  845. CXXCPP'
  846. # Initialize some variables set by options.
  847. ac_init_help=
  848. ac_init_version=false
  849. ac_unrecognized_opts=
  850. ac_unrecognized_sep=
  851. # The variables have the same names as the options, with
  852. # dashes changed to underlines.
  853. cache_file=/dev/null
  854. exec_prefix=NONE
  855. no_create=
  856. no_recursion=
  857. prefix=NONE
  858. program_prefix=NONE
  859. program_suffix=NONE
  860. program_transform_name=s,x,x,
  861. silent=
  862. site=
  863. srcdir=
  864. verbose=
  865. x_includes=NONE
  866. x_libraries=NONE
  867. # Installation directory options.
  868. # These are left unexpanded so users can "make install exec_prefix=/foo"
  869. # and all the variables that are supposed to be based on exec_prefix
  870. # by default will actually change.
  871. # Use braces instead of parens because sh, perl, etc. also accept them.
  872. # (The list follows the same order as the GNU Coding Standards.)
  873. bindir='${exec_prefix}/bin'
  874. sbindir='${exec_prefix}/sbin'
  875. libexecdir='${exec_prefix}/libexec'
  876. datarootdir='${prefix}/share'
  877. datadir='${datarootdir}'
  878. sysconfdir='${prefix}/etc'
  879. sharedstatedir='${prefix}/com'
  880. localstatedir='${prefix}/var'
  881. runstatedir='${localstatedir}/run'
  882. includedir='${prefix}/include'
  883. oldincludedir='/usr/include'
  884. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  885. infodir='${datarootdir}/info'
  886. htmldir='${docdir}'
  887. dvidir='${docdir}'
  888. pdfdir='${docdir}'
  889. psdir='${docdir}'
  890. libdir='${exec_prefix}/lib'
  891. localedir='${datarootdir}/locale'
  892. mandir='${datarootdir}/man'
  893. ac_prev=
  894. ac_dashdash=
  895. for ac_option
  896. do
  897. # If the previous option needs an argument, assign it.
  898. if test -n "$ac_prev"; then
  899. eval $ac_prev=\$ac_option
  900. ac_prev=
  901. continue
  902. fi
  903. case $ac_option in
  904. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  905. *=) ac_optarg= ;;
  906. *) ac_optarg=yes ;;
  907. esac
  908. # Accept the important Cygnus configure options, so we can diagnose typos.
  909. case $ac_dashdash$ac_option in
  910. --)
  911. ac_dashdash=yes ;;
  912. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  913. ac_prev=bindir ;;
  914. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  915. bindir=$ac_optarg ;;
  916. -build | --build | --buil | --bui | --bu)
  917. ac_prev=build_alias ;;
  918. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  919. build_alias=$ac_optarg ;;
  920. -cache-file | --cache-file | --cache-fil | --cache-fi \
  921. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  922. ac_prev=cache_file ;;
  923. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  924. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  925. cache_file=$ac_optarg ;;
  926. --config-cache | -C)
  927. cache_file=config.cache ;;
  928. -datadir | --datadir | --datadi | --datad)
  929. ac_prev=datadir ;;
  930. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  931. datadir=$ac_optarg ;;
  932. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  933. | --dataroo | --dataro | --datar)
  934. ac_prev=datarootdir ;;
  935. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  936. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  937. datarootdir=$ac_optarg ;;
  938. -disable-* | --disable-*)
  939. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  940. # Reject names that are not valid shell variable names.
  941. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  942. as_fn_error $? "invalid feature name: $ac_useropt"
  943. ac_useropt_orig=$ac_useropt
  944. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  945. case $ac_user_opts in
  946. *"
  947. "enable_$ac_useropt"
  948. "*) ;;
  949. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  950. ac_unrecognized_sep=', ';;
  951. esac
  952. eval enable_$ac_useropt=no ;;
  953. -docdir | --docdir | --docdi | --doc | --do)
  954. ac_prev=docdir ;;
  955. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  956. docdir=$ac_optarg ;;
  957. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  958. ac_prev=dvidir ;;
  959. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  960. dvidir=$ac_optarg ;;
  961. -enable-* | --enable-*)
  962. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  963. # Reject names that are not valid shell variable names.
  964. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  965. as_fn_error $? "invalid feature name: $ac_useropt"
  966. ac_useropt_orig=$ac_useropt
  967. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  968. case $ac_user_opts in
  969. *"
  970. "enable_$ac_useropt"
  971. "*) ;;
  972. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  973. ac_unrecognized_sep=', ';;
  974. esac
  975. eval enable_$ac_useropt=\$ac_optarg ;;
  976. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  977. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  978. | --exec | --exe | --ex)
  979. ac_prev=exec_prefix ;;
  980. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  981. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  982. | --exec=* | --exe=* | --ex=*)
  983. exec_prefix=$ac_optarg ;;
  984. -gas | --gas | --ga | --g)
  985. # Obsolete; use --with-gas.
  986. with_gas=yes ;;
  987. -help | --help | --hel | --he | -h)
  988. ac_init_help=long ;;
  989. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  990. ac_init_help=recursive ;;
  991. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  992. ac_init_help=short ;;
  993. -host | --host | --hos | --ho)
  994. ac_prev=host_alias ;;
  995. -host=* | --host=* | --hos=* | --ho=*)
  996. host_alias=$ac_optarg ;;
  997. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  998. ac_prev=htmldir ;;
  999. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1000. | --ht=*)
  1001. htmldir=$ac_optarg ;;
  1002. -includedir | --includedir | --includedi | --included | --include \
  1003. | --includ | --inclu | --incl | --inc)
  1004. ac_prev=includedir ;;
  1005. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1006. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1007. includedir=$ac_optarg ;;
  1008. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1009. ac_prev=infodir ;;
  1010. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1011. infodir=$ac_optarg ;;
  1012. -libdir | --libdir | --libdi | --libd)
  1013. ac_prev=libdir ;;
  1014. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1015. libdir=$ac_optarg ;;
  1016. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1017. | --libexe | --libex | --libe)
  1018. ac_prev=libexecdir ;;
  1019. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1020. | --libexe=* | --libex=* | --libe=*)
  1021. libexecdir=$ac_optarg ;;
  1022. -localedir | --localedir | --localedi | --localed | --locale)
  1023. ac_prev=localedir ;;
  1024. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1025. localedir=$ac_optarg ;;
  1026. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1027. | --localstate | --localstat | --localsta | --localst | --locals)
  1028. ac_prev=localstatedir ;;
  1029. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1030. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1031. localstatedir=$ac_optarg ;;
  1032. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1033. ac_prev=mandir ;;
  1034. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1035. mandir=$ac_optarg ;;
  1036. -nfp | --nfp | --nf)
  1037. # Obsolete; use --without-fp.
  1038. with_fp=no ;;
  1039. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1040. | --no-cr | --no-c | -n)
  1041. no_create=yes ;;
  1042. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1043. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1044. no_recursion=yes ;;
  1045. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1046. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1047. | --oldin | --oldi | --old | --ol | --o)
  1048. ac_prev=oldincludedir ;;
  1049. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1050. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1051. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1052. oldincludedir=$ac_optarg ;;
  1053. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1054. ac_prev=prefix ;;
  1055. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1056. prefix=$ac_optarg ;;
  1057. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1058. | --program-pre | --program-pr | --program-p)
  1059. ac_prev=program_prefix ;;
  1060. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1061. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1062. program_prefix=$ac_optarg ;;
  1063. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1064. | --program-suf | --program-su | --program-s)
  1065. ac_prev=program_suffix ;;
  1066. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1067. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1068. program_suffix=$ac_optarg ;;
  1069. -program-transform-name | --program-transform-name \
  1070. | --program-transform-nam | --program-transform-na \
  1071. | --program-transform-n | --program-transform- \
  1072. | --program-transform | --program-transfor \
  1073. | --program-transfo | --program-transf \
  1074. | --program-trans | --program-tran \
  1075. | --progr-tra | --program-tr | --program-t)
  1076. ac_prev=program_transform_name ;;
  1077. -program-transform-name=* | --program-transform-name=* \
  1078. | --program-transform-nam=* | --program-transform-na=* \
  1079. | --program-transform-n=* | --program-transform-=* \
  1080. | --program-transform=* | --program-transfor=* \
  1081. | --program-transfo=* | --program-transf=* \
  1082. | --program-trans=* | --program-tran=* \
  1083. | --progr-tra=* | --program-tr=* | --program-t=*)
  1084. program_transform_name=$ac_optarg ;;
  1085. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1086. ac_prev=pdfdir ;;
  1087. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1088. pdfdir=$ac_optarg ;;
  1089. -psdir | --psdir | --psdi | --psd | --ps)
  1090. ac_prev=psdir ;;
  1091. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1092. psdir=$ac_optarg ;;
  1093. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1094. | -silent | --silent | --silen | --sile | --sil)
  1095. silent=yes ;;
  1096. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1097. | --runstate | --runstat | --runsta | --runst | --runs \
  1098. | --run | --ru | --r)
  1099. ac_prev=runstatedir ;;
  1100. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1101. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1102. | --run=* | --ru=* | --r=*)
  1103. runstatedir=$ac_optarg ;;
  1104. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1105. ac_prev=sbindir ;;
  1106. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1107. | --sbi=* | --sb=*)
  1108. sbindir=$ac_optarg ;;
  1109. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1110. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1111. | --sharedst | --shareds | --shared | --share | --shar \
  1112. | --sha | --sh)
  1113. ac_prev=sharedstatedir ;;
  1114. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1115. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1116. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1117. | --sha=* | --sh=*)
  1118. sharedstatedir=$ac_optarg ;;
  1119. -site | --site | --sit)
  1120. ac_prev=site ;;
  1121. -site=* | --site=* | --sit=*)
  1122. site=$ac_optarg ;;
  1123. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1124. ac_prev=srcdir ;;
  1125. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1126. srcdir=$ac_optarg ;;
  1127. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1128. | --syscon | --sysco | --sysc | --sys | --sy)
  1129. ac_prev=sysconfdir ;;
  1130. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1131. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1132. sysconfdir=$ac_optarg ;;
  1133. -target | --target | --targe | --targ | --tar | --ta | --t)
  1134. ac_prev=target_alias ;;
  1135. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1136. target_alias=$ac_optarg ;;
  1137. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1138. verbose=yes ;;
  1139. -version | --version | --versio | --versi | --vers | -V)
  1140. ac_init_version=: ;;
  1141. -with-* | --with-*)
  1142. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1143. # Reject names that are not valid shell variable names.
  1144. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1145. as_fn_error $? "invalid package name: $ac_useropt"
  1146. ac_useropt_orig=$ac_useropt
  1147. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1148. case $ac_user_opts in
  1149. *"
  1150. "with_$ac_useropt"
  1151. "*) ;;
  1152. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1153. ac_unrecognized_sep=', ';;
  1154. esac
  1155. eval with_$ac_useropt=\$ac_optarg ;;
  1156. -without-* | --without-*)
  1157. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1158. # Reject names that are not valid shell variable names.
  1159. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1160. as_fn_error $? "invalid package name: $ac_useropt"
  1161. ac_useropt_orig=$ac_useropt
  1162. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1163. case $ac_user_opts in
  1164. *"
  1165. "with_$ac_useropt"
  1166. "*) ;;
  1167. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1168. ac_unrecognized_sep=', ';;
  1169. esac
  1170. eval with_$ac_useropt=no ;;
  1171. --x)
  1172. # Obsolete; use --with-x.
  1173. with_x=yes ;;
  1174. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1175. | --x-incl | --x-inc | --x-in | --x-i)
  1176. ac_prev=x_includes ;;
  1177. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1178. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1179. x_includes=$ac_optarg ;;
  1180. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1181. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1182. ac_prev=x_libraries ;;
  1183. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1184. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1185. x_libraries=$ac_optarg ;;
  1186. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1187. Try \`$0 --help' for more information"
  1188. ;;
  1189. *=*)
  1190. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1191. # Reject names that are not valid shell variable names.
  1192. case $ac_envvar in #(
  1193. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1194. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1195. esac
  1196. eval $ac_envvar=\$ac_optarg
  1197. export $ac_envvar ;;
  1198. *)
  1199. # FIXME: should be removed in autoconf 3.0.
  1200. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1201. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1202. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1203. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1204. ;;
  1205. esac
  1206. done
  1207. if test -n "$ac_prev"; then
  1208. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1209. as_fn_error $? "missing argument to $ac_option"
  1210. fi
  1211. if test -n "$ac_unrecognized_opts"; then
  1212. case $enable_option_checking in
  1213. no) ;;
  1214. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1215. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1216. esac
  1217. fi
  1218. # Check all directory arguments for consistency.
  1219. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1220. datadir sysconfdir sharedstatedir localstatedir includedir \
  1221. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1222. libdir localedir mandir runstatedir
  1223. do
  1224. eval ac_val=\$$ac_var
  1225. # Remove trailing slashes.
  1226. case $ac_val in
  1227. */ )
  1228. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1229. eval $ac_var=\$ac_val;;
  1230. esac
  1231. # Be sure to have absolute directory names.
  1232. case $ac_val in
  1233. [\\/$]* | ?:[\\/]* ) continue;;
  1234. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1235. esac
  1236. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1237. done
  1238. # There might be people who depend on the old broken behavior: `$host'
  1239. # used to hold the argument of --host etc.
  1240. # FIXME: To remove some day.
  1241. build=$build_alias
  1242. host=$host_alias
  1243. target=$target_alias
  1244. # FIXME: To remove some day.
  1245. if test "x$host_alias" != x; then
  1246. if test "x$build_alias" = x; then
  1247. cross_compiling=maybe
  1248. elif test "x$build_alias" != "x$host_alias"; then
  1249. cross_compiling=yes
  1250. fi
  1251. fi
  1252. ac_tool_prefix=
  1253. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1254. test "$silent" = yes && exec 6>/dev/null
  1255. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1256. ac_ls_di=`ls -di .` &&
  1257. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1258. as_fn_error $? "working directory cannot be determined"
  1259. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1260. as_fn_error $? "pwd does not report name of working directory"
  1261. # Find the source files, if location was not specified.
  1262. if test -z "$srcdir"; then
  1263. ac_srcdir_defaulted=yes
  1264. # Try the directory containing this script, then the parent directory.
  1265. ac_confdir=`$as_dirname -- "$as_myself" ||
  1266. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1267. X"$as_myself" : 'X\(//\)[^/]' \| \
  1268. X"$as_myself" : 'X\(//\)$' \| \
  1269. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1270. $as_echo X"$as_myself" |
  1271. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1272. s//\1/
  1273. q
  1274. }
  1275. /^X\(\/\/\)[^/].*/{
  1276. s//\1/
  1277. q
  1278. }
  1279. /^X\(\/\/\)$/{
  1280. s//\1/
  1281. q
  1282. }
  1283. /^X\(\/\).*/{
  1284. s//\1/
  1285. q
  1286. }
  1287. s/.*/./; q'`
  1288. srcdir=$ac_confdir
  1289. if test ! -r "$srcdir/$ac_unique_file"; then
  1290. srcdir=..
  1291. fi
  1292. else
  1293. ac_srcdir_defaulted=no
  1294. fi
  1295. if test ! -r "$srcdir/$ac_unique_file"; then
  1296. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1297. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1298. fi
  1299. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1300. ac_abs_confdir=`(
  1301. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1302. pwd)`
  1303. # When building in place, set srcdir=.
  1304. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1305. srcdir=.
  1306. fi
  1307. # Remove unnecessary trailing slashes from srcdir.
  1308. # Double slashes in file names in object file debugging info
  1309. # mess up M-x gdb in Emacs.
  1310. case $srcdir in
  1311. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1312. esac
  1313. for ac_var in $ac_precious_vars; do
  1314. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1315. eval ac_env_${ac_var}_value=\$${ac_var}
  1316. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1317. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1318. done
  1319. #
  1320. # Report the --help message.
  1321. #
  1322. if test "$ac_init_help" = "long"; then
  1323. # Omit some internal or obsolete options to make the list less imposing.
  1324. # This message is too long to be a string in the A/UX 3.1 sh.
  1325. cat <<_ACEOF
  1326. \`configure' configures tcpreplay 4.4.0 to adapt to many kinds of systems.
  1327. Usage: $0 [OPTION]... [VAR=VALUE]...
  1328. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1329. VAR=VALUE. See below for descriptions of some of the useful variables.
  1330. Defaults for the options are specified in brackets.
  1331. Configuration:
  1332. -h, --help display this help and exit
  1333. --help=short display options specific to this package
  1334. --help=recursive display the short help of all the included packages
  1335. -V, --version display version information and exit
  1336. -q, --quiet, --silent do not print \`checking ...' messages
  1337. --cache-file=FILE cache test results in FILE [disabled]
  1338. -C, --config-cache alias for \`--cache-file=config.cache'
  1339. -n, --no-create do not create output files
  1340. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1341. Installation directories:
  1342. --prefix=PREFIX install architecture-independent files in PREFIX
  1343. [$ac_default_prefix]
  1344. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1345. [PREFIX]
  1346. By default, \`make install' will install all the files in
  1347. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1348. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1349. for instance \`--prefix=\$HOME'.
  1350. For better control, use the options below.
  1351. Fine tuning of the installation directories:
  1352. --bindir=DIR user executables [EPREFIX/bin]
  1353. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1354. --libexecdir=DIR program executables [EPREFIX/libexec]
  1355. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1356. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1357. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1358. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1359. --libdir=DIR object code libraries [EPREFIX/lib]
  1360. --includedir=DIR C header files [PREFIX/include]
  1361. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1362. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1363. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1364. --infodir=DIR info documentation [DATAROOTDIR/info]
  1365. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1366. --mandir=DIR man documentation [DATAROOTDIR/man]
  1367. --docdir=DIR documentation root [DATAROOTDIR/doc/tcpreplay]
  1368. --htmldir=DIR html documentation [DOCDIR]
  1369. --dvidir=DIR dvi documentation [DOCDIR]
  1370. --pdfdir=DIR pdf documentation [DOCDIR]
  1371. --psdir=DIR ps documentation [DOCDIR]
  1372. _ACEOF
  1373. cat <<\_ACEOF
  1374. Program names:
  1375. --program-prefix=PREFIX prepend PREFIX to installed program names
  1376. --program-suffix=SUFFIX append SUFFIX to installed program names
  1377. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1378. System types:
  1379. --build=BUILD configure for building on BUILD [guessed]
  1380. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1381. --target=TARGET configure for building compilers for TARGET [HOST]
  1382. _ACEOF
  1383. fi
  1384. if test -n "$ac_init_help"; then
  1385. case $ac_init_help in
  1386. short | recursive ) echo "Configuration of tcpreplay 4.4.0:";;
  1387. esac
  1388. cat <<\_ACEOF
  1389. Optional Features:
  1390. --disable-option-checking ignore unrecognized --enable/--with options
  1391. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1392. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1393. --disable-maintainer-mode
  1394. disable make rules and dependencies not useful (and
  1395. sometimes confusing) to the casual installer
  1396. --enable-silent-rules less verbose build output (undo: "make V=1")
  1397. --disable-silent-rules verbose build output (undo: "make V=0")
  1398. --enable-dependency-tracking
  1399. do not reject slow dependency extractors
  1400. --disable-dependency-tracking
  1401. speeds up one-time build
  1402. --enable-shared[=PKGS] build shared libraries [default=yes]
  1403. --enable-static[=PKGS] build static libraries [default=yes]
  1404. --enable-fast-install[=PKGS]
  1405. optimize for fast installation [default=yes]
  1406. --disable-libtool-lock avoid locking (might break parallel builds)
  1407. --disable-largefile omit support for large files
  1408. --enable-asan Enable Address Sanitizer support
  1409. --enable-debug Enable debugging code and support for the -d option
  1410. --enable-extra-debug Enable additional debugging code (may affect
  1411. performance)
  1412. --timestamp-trace Enable dumping of trace timestamps at the end of a
  1413. test
  1414. --enable-dmalloc Enable linking to dmalloc for better memory
  1415. debugging
  1416. --enable-pedantic Enable gcc's -pedantic option
  1417. --enable-efence Enable Electric Fence memory debugger
  1418. --enable-gprof Enable GNU Profiler
  1419. --enable-pcapconfig Enable automatic libpcap config, reverting to system
  1420. scanning
  1421. --disable-64bits Do not use 64bit packet counters
  1422. --enable-force-bpf Force using BPF for sending packets
  1423. --enable-force-pf Force using Linux's PF_PACKET for sending packets
  1424. --enable-force-libdnet Force using libdnet for sending packets
  1425. --enable-force-inject Force using libpcap's pcap_inject() for sending
  1426. packets
  1427. --enable-force-sendpacket
  1428. Force using libpcap's pcap_sendpacket() for sending
  1429. packets
  1430. --enable-static-link Use static libraries ( .a or .A.tbd ) - default no
  1431. --enable-dynamic-link Use shared libraries ( .so .dylib or .tbd ) -
  1432. default yes
  1433. --disable-tuntap Disable tuntap support
  1434. --disable-nls disable nls support in libopts
  1435. --enable-local-libopts Use the supplied libopts tearoff code
  1436. --enable-libopts-install
  1437. Install libopts with client installation
  1438. --disable-optional-args not wanting optional option args
  1439. Optional Packages:
  1440. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1441. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1442. --with-dmalloc use dmalloc, as in http://www.dmalloc.com
  1443. --with-macos-sdk=VER Specify the macOS SDK version to use.
  1444. --with-pfring-lib Use a specific PF_RING static library when using
  1445. PF_RING libpcap.
  1446. Usage: --with-pfring-lib=<library>
  1447. e. g.: --with-pfring-lib=/usr/lib/libpfring_zc_x86_64.a
  1448. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1449. both]
  1450. --with-aix-soname=aix|svr4|both
  1451. shared library versioning (aka "SONAME") variant to
  1452. provide on AIX, [default=aix].
  1453. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1454. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1455. compiler's sysroot if not specified).
  1456. --with-libpcap=DIR Use libpcap in DIR
  1457. --with-netmap=DIR Use netmap in DIR
  1458. --with-libdnet=DIR Use libdnet in DIR
  1459. --with-pcapnav-config=FILE
  1460. Use given pcapnav-config
  1461. --with-tcpdump=FILE Path to tcpdump binary
  1462. --with-testnic=NIC Select which network card to use for testing
  1463. --with-testnic2=NIC2 Select an optional 2nd network card to use for
  1464. testing
  1465. --with-autoopts-config specify the config-info script
  1466. --with-regex-header a reg expr header is specified
  1467. --with-libregex libregex installation prefix
  1468. --with-libregex-cflags libregex compile flags
  1469. --with-libregex-libs libregex link command arguments
  1470. Some influential environment variables:
  1471. CC C compiler command
  1472. CFLAGS C compiler flags
  1473. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1474. nonstandard directory <lib dir>
  1475. LIBS libraries to pass to the linker, e.g. -l<library>
  1476. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1477. you have headers in a nonstandard directory <include dir>
  1478. LT_SYS_LIBRARY_PATH
  1479. User-defined run-time library search path.
  1480. CPP C preprocessor
  1481. CXX C++ compiler command
  1482. CXXFLAGS C++ compiler flags
  1483. CXXCPP C++ preprocessor
  1484. Use these variables to override the choices made by `configure' or to help
  1485. it to find libraries and programs with nonstandard names/locations.
  1486. Report bugs to <https://github.com/appneta/tcpreplay/issues>.
  1487. tcpreplay home page: <http://tcpreplay.sourceforge.net/>.
  1488. _ACEOF
  1489. ac_status=$?
  1490. fi
  1491. if test "$ac_init_help" = "recursive"; then
  1492. # If there are subdirs, report their specific --help.
  1493. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1494. test -d "$ac_dir" ||
  1495. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1496. continue
  1497. ac_builddir=.
  1498. case "$ac_dir" in
  1499. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1500. *)
  1501. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1502. # A ".." for each directory in $ac_dir_suffix.
  1503. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1504. case $ac_top_builddir_sub in
  1505. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1506. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1507. esac ;;
  1508. esac
  1509. ac_abs_top_builddir=$ac_pwd
  1510. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1511. # for backward compatibility:
  1512. ac_top_builddir=$ac_top_build_prefix
  1513. case $srcdir in
  1514. .) # We are building in place.
  1515. ac_srcdir=.
  1516. ac_top_srcdir=$ac_top_builddir_sub
  1517. ac_abs_top_srcdir=$ac_pwd ;;
  1518. [\\/]* | ?:[\\/]* ) # Absolute name.
  1519. ac_srcdir=$srcdir$ac_dir_suffix;
  1520. ac_top_srcdir=$srcdir
  1521. ac_abs_top_srcdir=$srcdir ;;
  1522. *) # Relative name.
  1523. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1524. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1525. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1526. esac
  1527. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1528. cd "$ac_dir" || { ac_status=$?; continue; }
  1529. # Check for guested configure.
  1530. if test -f "$ac_srcdir/configure.gnu"; then
  1531. echo &&
  1532. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1533. elif test -f "$ac_srcdir/configure"; then
  1534. echo &&
  1535. $SHELL "$ac_srcdir/configure" --help=recursive
  1536. else
  1537. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1538. fi || ac_status=$?
  1539. cd "$ac_pwd" || { ac_status=$?; break; }
  1540. done
  1541. fi
  1542. test -n "$ac_init_help" && exit $ac_status
  1543. if $ac_init_version; then
  1544. cat <<\_ACEOF
  1545. tcpreplay configure 4.4.0
  1546. generated by GNU Autoconf 2.69
  1547. Copyright (C) 2012 Free Software Foundation, Inc.
  1548. This configure script is free software; the Free Software Foundation
  1549. gives unlimited permission to copy, distribute and modify it.
  1550. _ACEOF
  1551. exit
  1552. fi
  1553. ## ------------------------ ##
  1554. ## Autoconf initialization. ##
  1555. ## ------------------------ ##
  1556. # ac_fn_c_try_compile LINENO
  1557. # --------------------------
  1558. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1559. ac_fn_c_try_compile ()
  1560. {
  1561. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1562. rm -f conftest.$ac_objext
  1563. if { { ac_try="$ac_compile"
  1564. case "(($ac_try" in
  1565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1566. *) ac_try_echo=$ac_try;;
  1567. esac
  1568. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1569. $as_echo "$ac_try_echo"; } >&5
  1570. (eval "$ac_compile") 2>conftest.err
  1571. ac_status=$?
  1572. if test -s conftest.err; then
  1573. grep -v '^ *+' conftest.err >conftest.er1
  1574. cat conftest.er1 >&5
  1575. mv -f conftest.er1 conftest.err
  1576. fi
  1577. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1578. test $ac_status = 0; } && {
  1579. test -z "$ac_c_werror_flag" ||
  1580. test ! -s conftest.err
  1581. } && test -s conftest.$ac_objext; then :
  1582. ac_retval=0
  1583. else
  1584. $as_echo "$as_me: failed program was:" >&5
  1585. sed 's/^/| /' conftest.$ac_ext >&5
  1586. ac_retval=1
  1587. fi
  1588. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1589. as_fn_set_status $ac_retval
  1590. } # ac_fn_c_try_compile
  1591. # ac_fn_c_try_link LINENO
  1592. # -----------------------
  1593. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1594. ac_fn_c_try_link ()
  1595. {
  1596. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1597. rm -f conftest.$ac_objext conftest$ac_exeext
  1598. if { { ac_try="$ac_link"
  1599. case "(($ac_try" in
  1600. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1601. *) ac_try_echo=$ac_try;;
  1602. esac
  1603. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1604. $as_echo "$ac_try_echo"; } >&5
  1605. (eval "$ac_link") 2>conftest.err
  1606. ac_status=$?
  1607. if test -s conftest.err; then
  1608. grep -v '^ *+' conftest.err >conftest.er1
  1609. cat conftest.er1 >&5
  1610. mv -f conftest.er1 conftest.err
  1611. fi
  1612. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1613. test $ac_status = 0; } && {
  1614. test -z "$ac_c_werror_flag" ||
  1615. test ! -s conftest.err
  1616. } && test -s conftest$ac_exeext && {
  1617. test "$cross_compiling" = yes ||
  1618. test -x conftest$ac_exeext
  1619. }; then :
  1620. ac_retval=0
  1621. else
  1622. $as_echo "$as_me: failed program was:" >&5
  1623. sed 's/^/| /' conftest.$ac_ext >&5
  1624. ac_retval=1
  1625. fi
  1626. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1627. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1628. # interfere with the next link command; also delete a directory that is
  1629. # left behind by Apple's compiler. We do this before executing the actions.
  1630. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1631. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1632. as_fn_set_status $ac_retval
  1633. } # ac_fn_c_try_link
  1634. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1635. # -------------------------------------------------------
  1636. # Tests whether HEADER exists and can be compiled using the include files in
  1637. # INCLUDES, setting the cache variable VAR accordingly.
  1638. ac_fn_c_check_header_compile ()
  1639. {
  1640. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1642. $as_echo_n "checking for $2... " >&6; }
  1643. if eval \${$3+:} false; then :
  1644. $as_echo_n "(cached) " >&6
  1645. else
  1646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1647. /* end confdefs.h. */
  1648. $4
  1649. #include <$2>
  1650. _ACEOF
  1651. if ac_fn_c_try_compile "$LINENO"; then :
  1652. eval "$3=yes"
  1653. else
  1654. eval "$3=no"
  1655. fi
  1656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1657. fi
  1658. eval ac_res=\$$3
  1659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1660. $as_echo "$ac_res" >&6; }
  1661. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1662. } # ac_fn_c_check_header_compile
  1663. # ac_fn_c_try_cpp LINENO
  1664. # ----------------------
  1665. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1666. ac_fn_c_try_cpp ()
  1667. {
  1668. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1669. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1670. case "(($ac_try" in
  1671. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1672. *) ac_try_echo=$ac_try;;
  1673. esac
  1674. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1675. $as_echo "$ac_try_echo"; } >&5
  1676. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1677. ac_status=$?
  1678. if test -s conftest.err; then
  1679. grep -v '^ *+' conftest.err >conftest.er1
  1680. cat conftest.er1 >&5
  1681. mv -f conftest.er1 conftest.err
  1682. fi
  1683. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1684. test $ac_status = 0; } > conftest.i && {
  1685. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1686. test ! -s conftest.err
  1687. }; then :
  1688. ac_retval=0
  1689. else
  1690. $as_echo "$as_me: failed program was:" >&5
  1691. sed 's/^/| /' conftest.$ac_ext >&5
  1692. ac_retval=1
  1693. fi
  1694. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1695. as_fn_set_status $ac_retval
  1696. } # ac_fn_c_try_cpp
  1697. # ac_fn_c_try_run LINENO
  1698. # ----------------------
  1699. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1700. # that executables *can* be run.
  1701. ac_fn_c_try_run ()
  1702. {
  1703. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1704. if { { ac_try="$ac_link"
  1705. case "(($ac_try" in
  1706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1707. *) ac_try_echo=$ac_try;;
  1708. esac
  1709. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1710. $as_echo "$ac_try_echo"; } >&5
  1711. (eval "$ac_link") 2>&5
  1712. ac_status=$?
  1713. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1714. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1715. { { case "(($ac_try" in
  1716. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1717. *) ac_try_echo=$ac_try;;
  1718. esac
  1719. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1720. $as_echo "$ac_try_echo"; } >&5
  1721. (eval "$ac_try") 2>&5
  1722. ac_status=$?
  1723. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1724. test $ac_status = 0; }; }; then :
  1725. ac_retval=0
  1726. else
  1727. $as_echo "$as_me: program exited with status $ac_status" >&5
  1728. $as_echo "$as_me: failed program was:" >&5
  1729. sed 's/^/| /' conftest.$ac_ext >&5
  1730. ac_retval=$ac_status
  1731. fi
  1732. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1733. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1734. as_fn_set_status $ac_retval
  1735. } # ac_fn_c_try_run
  1736. # ac_fn_c_check_func LINENO FUNC VAR
  1737. # ----------------------------------
  1738. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1739. ac_fn_c_check_func ()
  1740. {
  1741. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1743. $as_echo_n "checking for $2... " >&6; }
  1744. if eval \${$3+:} false; then :
  1745. $as_echo_n "(cached) " >&6
  1746. else
  1747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1748. /* end confdefs.h. */
  1749. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1750. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1751. #define $2 innocuous_$2
  1752. /* System header to define __stub macros and hopefully few prototypes,
  1753. which can conflict with char $2 (); below.
  1754. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1755. <limits.h> exists even on freestanding compilers. */
  1756. #ifdef __STDC__
  1757. # include <limits.h>
  1758. #else
  1759. # include <assert.h>
  1760. #endif
  1761. #undef $2
  1762. /* Override any GCC internal prototype to avoid an error.
  1763. Use char because int might match the return type of a GCC
  1764. builtin and then its argument prototype would still apply. */
  1765. #ifdef __cplusplus
  1766. extern "C"
  1767. #endif
  1768. char $2 ();
  1769. /* The GNU C library defines this for functions which it implements
  1770. to always fail with ENOSYS. Some functions are actually named
  1771. something starting with __ and the normal name is an alias. */
  1772. #if defined __stub_$2 || defined __stub___$2
  1773. choke me
  1774. #endif
  1775. int
  1776. main ()
  1777. {
  1778. return $2 ();
  1779. ;
  1780. return 0;
  1781. }
  1782. _ACEOF
  1783. if ac_fn_c_try_link "$LINENO"; then :
  1784. eval "$3=yes"
  1785. else
  1786. eval "$3=no"
  1787. fi
  1788. rm -f core conftest.err conftest.$ac_objext \
  1789. conftest$ac_exeext conftest.$ac_ext
  1790. fi
  1791. eval ac_res=\$$3
  1792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1793. $as_echo "$ac_res" >&6; }
  1794. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1795. } # ac_fn_c_check_func
  1796. # ac_fn_cxx_try_compile LINENO
  1797. # ----------------------------
  1798. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1799. ac_fn_cxx_try_compile ()
  1800. {
  1801. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1802. rm -f conftest.$ac_objext
  1803. if { { ac_try="$ac_compile"
  1804. case "(($ac_try" in
  1805. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1806. *) ac_try_echo=$ac_try;;
  1807. esac
  1808. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1809. $as_echo "$ac_try_echo"; } >&5
  1810. (eval "$ac_compile") 2>conftest.err
  1811. ac_status=$?
  1812. if test -s conftest.err; then
  1813. grep -v '^ *+' conftest.err >conftest.er1
  1814. cat conftest.er1 >&5
  1815. mv -f conftest.er1 conftest.err
  1816. fi
  1817. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1818. test $ac_status = 0; } && {
  1819. test -z "$ac_cxx_werror_flag" ||
  1820. test ! -s conftest.err
  1821. } && test -s conftest.$ac_objext; then :
  1822. ac_retval=0
  1823. else
  1824. $as_echo "$as_me: failed program was:" >&5
  1825. sed 's/^/| /' conftest.$ac_ext >&5
  1826. ac_retval=1
  1827. fi
  1828. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1829. as_fn_set_status $ac_retval
  1830. } # ac_fn_cxx_try_compile
  1831. # ac_fn_cxx_try_cpp LINENO
  1832. # ------------------------
  1833. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1834. ac_fn_cxx_try_cpp ()
  1835. {
  1836. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1837. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1838. case "(($ac_try" in
  1839. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1840. *) ac_try_echo=$ac_try;;
  1841. esac
  1842. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1843. $as_echo "$ac_try_echo"; } >&5
  1844. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1845. ac_status=$?
  1846. if test -s conftest.err; then
  1847. grep -v '^ *+' conftest.err >conftest.er1
  1848. cat conftest.er1 >&5
  1849. mv -f conftest.er1 conftest.err
  1850. fi
  1851. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1852. test $ac_status = 0; } > conftest.i && {
  1853. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1854. test ! -s conftest.err
  1855. }; then :
  1856. ac_retval=0
  1857. else
  1858. $as_echo "$as_me: failed program was:" >&5
  1859. sed 's/^/| /' conftest.$ac_ext >&5
  1860. ac_retval=1
  1861. fi
  1862. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1863. as_fn_set_status $ac_retval
  1864. } # ac_fn_cxx_try_cpp
  1865. # ac_fn_cxx_try_link LINENO
  1866. # -------------------------
  1867. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1868. ac_fn_cxx_try_link ()
  1869. {
  1870. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1871. rm -f conftest.$ac_objext conftest$ac_exeext
  1872. if { { ac_try="$ac_link"
  1873. case "(($ac_try" in
  1874. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1875. *) ac_try_echo=$ac_try;;
  1876. esac
  1877. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1878. $as_echo "$ac_try_echo"; } >&5
  1879. (eval "$ac_link") 2>conftest.err
  1880. ac_status=$?
  1881. if test -s conftest.err; then
  1882. grep -v '^ *+' conftest.err >conftest.er1
  1883. cat conftest.er1 >&5
  1884. mv -f conftest.er1 conftest.err
  1885. fi
  1886. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1887. test $ac_status = 0; } && {
  1888. test -z "$ac_cxx_werror_flag" ||
  1889. test ! -s conftest.err
  1890. } && test -s conftest$ac_exeext && {
  1891. test "$cross_compiling" = yes ||
  1892. test -x conftest$ac_exeext
  1893. }; then :
  1894. ac_retval=0
  1895. else
  1896. $as_echo "$as_me: failed program was:" >&5
  1897. sed 's/^/| /' conftest.$ac_ext >&5
  1898. ac_retval=1
  1899. fi
  1900. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1901. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1902. # interfere with the next link command; also delete a directory that is
  1903. # left behind by Apple's compiler. We do this before executing the actions.
  1904. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1905. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1906. as_fn_set_status $ac_retval
  1907. } # ac_fn_cxx_try_link
  1908. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1909. # -------------------------------------------------------
  1910. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1911. # the include files in INCLUDES and setting the cache variable VAR
  1912. # accordingly.
  1913. ac_fn_c_check_header_mongrel ()
  1914. {
  1915. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1916. if eval \${$3+:} false; then :
  1917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1918. $as_echo_n "checking for $2... " >&6; }
  1919. if eval \${$3+:} false; then :
  1920. $as_echo_n "(cached) " >&6
  1921. fi
  1922. eval ac_res=\$$3
  1923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1924. $as_echo "$ac_res" >&6; }
  1925. else
  1926. # Is the header compilable?
  1927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1928. $as_echo_n "checking $2 usability... " >&6; }
  1929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1930. /* end confdefs.h. */
  1931. $4
  1932. #include <$2>
  1933. _ACEOF
  1934. if ac_fn_c_try_compile "$LINENO"; then :
  1935. ac_header_compiler=yes
  1936. else
  1937. ac_header_compiler=no
  1938. fi
  1939. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1941. $as_echo "$ac_header_compiler" >&6; }
  1942. # Is the header present?
  1943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1944. $as_echo_n "checking $2 presence... " >&6; }
  1945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1946. /* end confdefs.h. */
  1947. #include <$2>
  1948. _ACEOF
  1949. if ac_fn_c_try_cpp "$LINENO"; then :
  1950. ac_header_preproc=yes
  1951. else
  1952. ac_header_preproc=no
  1953. fi
  1954. rm -f conftest.err conftest.i conftest.$ac_ext
  1955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1956. $as_echo "$ac_header_preproc" >&6; }
  1957. # So? What about this header?
  1958. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1959. yes:no: )
  1960. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1961. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1962. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1963. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1964. ;;
  1965. no:yes:* )
  1966. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1967. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1968. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1969. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1970. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1971. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1972. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1973. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1974. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1975. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1976. ( $as_echo "## ---------------------------------------------------------- ##
  1977. ## Report this to https://github.com/appneta/tcpreplay/issues ##
  1978. ## ---------------------------------------------------------- ##"
  1979. ) | sed "s/^/$as_me: WARNING: /" >&2
  1980. ;;
  1981. esac
  1982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1983. $as_echo_n "checking for $2... " >&6; }
  1984. if eval \${$3+:} false; then :
  1985. $as_echo_n "(cached) " >&6
  1986. else
  1987. eval "$3=\$ac_header_compiler"
  1988. fi
  1989. eval ac_res=\$$3
  1990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1991. $as_echo "$ac_res" >&6; }
  1992. fi
  1993. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1994. } # ac_fn_c_check_header_mongrel
  1995. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1996. # -------------------------------------------
  1997. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1998. # variable VAR accordingly.
  1999. ac_fn_c_check_type ()
  2000. {
  2001. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2003. $as_echo_n "checking for $2... " >&6; }
  2004. if eval \${$3+:} false; then :
  2005. $as_echo_n "(cached) " >&6
  2006. else
  2007. eval "$3=no"
  2008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2009. /* end confdefs.h. */
  2010. $4
  2011. int
  2012. main ()
  2013. {
  2014. if (sizeof ($2))
  2015. return 0;
  2016. ;
  2017. return 0;
  2018. }
  2019. _ACEOF
  2020. if ac_fn_c_try_compile "$LINENO"; then :
  2021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2022. /* end confdefs.h. */
  2023. $4
  2024. int
  2025. main ()
  2026. {
  2027. if (sizeof (($2)))
  2028. return 0;
  2029. ;
  2030. return 0;
  2031. }
  2032. _ACEOF
  2033. if ac_fn_c_try_compile "$LINENO"; then :
  2034. else
  2035. eval "$3=yes"
  2036. fi
  2037. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2038. fi
  2039. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2040. fi
  2041. eval ac_res=\$$3
  2042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2043. $as_echo "$ac_res" >&6; }
  2044. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2045. } # ac_fn_c_check_type
  2046. # ac_fn_c_find_intX_t LINENO BITS VAR
  2047. # -----------------------------------
  2048. # Finds a signed integer type with width BITS, setting cache variable VAR
  2049. # accordingly.
  2050. ac_fn_c_find_intX_t ()
  2051. {
  2052. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  2054. $as_echo_n "checking for int$2_t... " >&6; }
  2055. if eval \${$3+:} false; then :
  2056. $as_echo_n "(cached) " >&6
  2057. else
  2058. eval "$3=no"
  2059. # Order is important - never check a type that is potentially smaller
  2060. # than half of the expected target width.
  2061. for ac_type in int$2_t 'int' 'long int' \
  2062. 'long long int' 'short int' 'signed char'; do
  2063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2064. /* end confdefs.h. */
  2065. $ac_includes_default
  2066. enum { N = $2 / 2 - 1 };
  2067. int
  2068. main ()
  2069. {
  2070. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  2071. test_array [0] = 0;
  2072. return test_array [0];
  2073. ;
  2074. return 0;
  2075. }
  2076. _ACEOF
  2077. if ac_fn_c_try_compile "$LINENO"; then :
  2078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2079. /* end confdefs.h. */
  2080. $ac_includes_default
  2081. enum { N = $2 / 2 - 1 };
  2082. int
  2083. main ()
  2084. {
  2085. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  2086. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  2087. test_array [0] = 0;
  2088. return test_array [0];
  2089. ;
  2090. return 0;
  2091. }
  2092. _ACEOF
  2093. if ac_fn_c_try_compile "$LINENO"; then :
  2094. else
  2095. case $ac_type in #(
  2096. int$2_t) :
  2097. eval "$3=yes" ;; #(
  2098. *) :
  2099. eval "$3=\$ac_type" ;;
  2100. esac
  2101. fi
  2102. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2103. fi
  2104. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2105. if eval test \"x\$"$3"\" = x"no"; then :
  2106. else
  2107. break
  2108. fi
  2109. done
  2110. fi
  2111. eval ac_res=\$$3
  2112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2113. $as_echo "$ac_res" >&6; }
  2114. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2115. } # ac_fn_c_find_intX_t
  2116. # ac_fn_c_find_uintX_t LINENO BITS VAR
  2117. # ------------------------------------
  2118. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  2119. # accordingly.
  2120. ac_fn_c_find_uintX_t ()
  2121. {
  2122. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  2124. $as_echo_n "checking for uint$2_t... " >&6; }
  2125. if eval \${$3+:} false; then :
  2126. $as_echo_n "(cached) " >&6
  2127. else
  2128. eval "$3=no"
  2129. # Order is important - never check a type that is potentially smaller
  2130. # than half of the expected target width.
  2131. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  2132. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  2133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2134. /* end confdefs.h. */
  2135. $ac_includes_default
  2136. int
  2137. main ()
  2138. {
  2139. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  2140. test_array [0] = 0;
  2141. return test_array [0];
  2142. ;
  2143. return 0;
  2144. }
  2145. _ACEOF
  2146. if ac_fn_c_try_compile "$LINENO"; then :
  2147. case $ac_type in #(
  2148. uint$2_t) :
  2149. eval "$3=yes" ;; #(
  2150. *) :
  2151. eval "$3=\$ac_type" ;;
  2152. esac
  2153. fi
  2154. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2155. if eval test \"x\$"$3"\" = x"no"; then :
  2156. else
  2157. break
  2158. fi
  2159. done
  2160. fi
  2161. eval ac_res=\$$3
  2162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2163. $as_echo "$ac_res" >&6; }
  2164. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2165. } # ac_fn_c_find_uintX_t
  2166. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2167. # ----------------------------------------------------
  2168. # Tries to find if the field MEMBER exists in type AGGR, after including
  2169. # INCLUDES, setting cache variable VAR accordingly.
  2170. ac_fn_c_check_member ()
  2171. {
  2172. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2174. $as_echo_n "checking for $2.$3... " >&6; }
  2175. if eval \${$4+:} false; then :
  2176. $as_echo_n "(cached) " >&6
  2177. else
  2178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2179. /* end confdefs.h. */
  2180. $5
  2181. int
  2182. main ()
  2183. {
  2184. static $2 ac_aggr;
  2185. if (ac_aggr.$3)
  2186. return 0;
  2187. ;
  2188. return 0;
  2189. }
  2190. _ACEOF
  2191. if ac_fn_c_try_compile "$LINENO"; then :
  2192. eval "$4=yes"
  2193. else
  2194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2195. /* end confdefs.h. */
  2196. $5
  2197. int
  2198. main ()
  2199. {
  2200. static $2 ac_aggr;
  2201. if (sizeof ac_aggr.$3)
  2202. return 0;
  2203. ;
  2204. return 0;
  2205. }
  2206. _ACEOF
  2207. if ac_fn_c_try_compile "$LINENO"; then :
  2208. eval "$4=yes"
  2209. else
  2210. eval "$4=no"
  2211. fi
  2212. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2213. fi
  2214. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2215. fi
  2216. eval ac_res=\$$4
  2217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2218. $as_echo "$ac_res" >&6; }
  2219. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2220. } # ac_fn_c_check_member
  2221. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2222. # ---------------------------------------------
  2223. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2224. # accordingly.
  2225. ac_fn_c_check_decl ()
  2226. {
  2227. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2228. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2229. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2231. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2232. if eval \${$3+:} false; then :
  2233. $as_echo_n "(cached) " >&6
  2234. else
  2235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2236. /* end confdefs.h. */
  2237. $4
  2238. int
  2239. main ()
  2240. {
  2241. #ifndef $as_decl_name
  2242. #ifdef __cplusplus
  2243. (void) $as_decl_use;
  2244. #else
  2245. (void) $as_decl_name;
  2246. #endif
  2247. #endif
  2248. ;
  2249. return 0;
  2250. }
  2251. _ACEOF
  2252. if ac_fn_c_try_compile "$LINENO"; then :
  2253. eval "$3=yes"
  2254. else
  2255. eval "$3=no"
  2256. fi
  2257. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2258. fi
  2259. eval ac_res=\$$3
  2260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2261. $as_echo "$ac_res" >&6; }
  2262. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2263. } # ac_fn_c_check_decl
  2264. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2265. # --------------------------------------------
  2266. # Tries to find the compile-time value of EXPR in a program that includes
  2267. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2268. # computed
  2269. ac_fn_c_compute_int ()
  2270. {
  2271. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2272. if test "$cross_compiling" = yes; then
  2273. # Depending upon the size, compute the lo and hi bounds.
  2274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2275. /* end confdefs.h. */
  2276. $4
  2277. int
  2278. main ()
  2279. {
  2280. static int test_array [1 - 2 * !(($2) >= 0)];
  2281. test_array [0] = 0;
  2282. return test_array [0];
  2283. ;
  2284. return 0;
  2285. }
  2286. _ACEOF
  2287. if ac_fn_c_try_compile "$LINENO"; then :
  2288. ac_lo=0 ac_mid=0
  2289. while :; do
  2290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2291. /* end confdefs.h. */
  2292. $4
  2293. int
  2294. main ()
  2295. {
  2296. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2297. test_array [0] = 0;
  2298. return test_array [0];
  2299. ;
  2300. return 0;
  2301. }
  2302. _ACEOF
  2303. if ac_fn_c_try_compile "$LINENO"; then :
  2304. ac_hi=$ac_mid; break
  2305. else
  2306. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2307. if test $ac_lo -le $ac_mid; then
  2308. ac_lo= ac_hi=
  2309. break
  2310. fi
  2311. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2312. fi
  2313. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2314. done
  2315. else
  2316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2317. /* end confdefs.h. */
  2318. $4
  2319. int
  2320. main ()
  2321. {
  2322. static int test_array [1 - 2 * !(($2) < 0)];
  2323. test_array [0] = 0;
  2324. return test_array [0];
  2325. ;
  2326. return 0;
  2327. }
  2328. _ACEOF
  2329. if ac_fn_c_try_compile "$LINENO"; then :
  2330. ac_hi=-1 ac_mid=-1
  2331. while :; do
  2332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2333. /* end confdefs.h. */
  2334. $4
  2335. int
  2336. main ()
  2337. {
  2338. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2339. test_array [0] = 0;
  2340. return test_array [0];
  2341. ;
  2342. return 0;
  2343. }
  2344. _ACEOF
  2345. if ac_fn_c_try_compile "$LINENO"; then :
  2346. ac_lo=$ac_mid; break
  2347. else
  2348. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2349. if test $ac_mid -le $ac_hi; then
  2350. ac_lo= ac_hi=
  2351. break
  2352. fi
  2353. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2354. fi
  2355. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2356. done
  2357. else
  2358. ac_lo= ac_hi=
  2359. fi
  2360. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2361. fi
  2362. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2363. # Binary search between lo and hi bounds.
  2364. while test "x$ac_lo" != "x$ac_hi"; do
  2365. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2367. /* end confdefs.h. */
  2368. $4
  2369. int
  2370. main ()
  2371. {
  2372. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2373. test_array [0] = 0;
  2374. return test_array [0];
  2375. ;
  2376. return 0;
  2377. }
  2378. _ACEOF
  2379. if ac_fn_c_try_compile "$LINENO"; then :
  2380. ac_hi=$ac_mid
  2381. else
  2382. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2383. fi
  2384. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2385. done
  2386. case $ac_lo in #((
  2387. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2388. '') ac_retval=1 ;;
  2389. esac
  2390. else
  2391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2392. /* end confdefs.h. */
  2393. $4
  2394. static long int longval () { return $2; }
  2395. static unsigned long int ulongval () { return $2; }
  2396. #include <stdio.h>
  2397. #include <stdlib.h>
  2398. int
  2399. main ()
  2400. {
  2401. FILE *f = fopen ("conftest.val", "w");
  2402. if (! f)
  2403. return 1;
  2404. if (($2) < 0)
  2405. {
  2406. long int i = longval ();
  2407. if (i != ($2))
  2408. return 1;
  2409. fprintf (f, "%ld", i);
  2410. }
  2411. else
  2412. {
  2413. unsigned long int i = ulongval ();
  2414. if (i != ($2))
  2415. return 1;
  2416. fprintf (f, "%lu", i);
  2417. }
  2418. /* Do not output a trailing newline, as this causes \r\n confusion
  2419. on some platforms. */
  2420. return ferror (f) || fclose (f) != 0;
  2421. ;
  2422. return 0;
  2423. }
  2424. _ACEOF
  2425. if ac_fn_c_try_run "$LINENO"; then :
  2426. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2427. else
  2428. ac_retval=1
  2429. fi
  2430. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2431. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2432. rm -f conftest.val
  2433. fi
  2434. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2435. as_fn_set_status $ac_retval
  2436. } # ac_fn_c_compute_int
  2437. cat >config.log <<_ACEOF
  2438. This file contains any messages produced by compilers while
  2439. running configure, to aid debugging if configure makes a mistake.
  2440. It was created by tcpreplay $as_me 4.4.0, which was
  2441. generated by GNU Autoconf 2.69. Invocation command line was
  2442. $ $0 $@
  2443. _ACEOF
  2444. exec 5>>config.log
  2445. {
  2446. cat <<_ASUNAME
  2447. ## --------- ##
  2448. ## Platform. ##
  2449. ## --------- ##
  2450. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2451. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2452. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2453. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2454. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2455. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2456. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2457. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2458. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2459. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2460. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2461. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2462. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2463. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2464. _ASUNAME
  2465. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2466. for as_dir in $PATH
  2467. do
  2468. IFS=$as_save_IFS
  2469. test -z "$as_dir" && as_dir=.
  2470. $as_echo "PATH: $as_dir"
  2471. done
  2472. IFS=$as_save_IFS
  2473. } >&5
  2474. cat >&5 <<_ACEOF
  2475. ## ----------- ##
  2476. ## Core tests. ##
  2477. ## ----------- ##
  2478. _ACEOF
  2479. # Keep a trace of the command line.
  2480. # Strip out --no-create and --no-recursion so they do not pile up.
  2481. # Strip out --silent because we don't want to record it for future runs.
  2482. # Also quote any args containing shell meta-characters.
  2483. # Make two passes to allow for proper duplicate-argument suppression.
  2484. ac_configure_args=
  2485. ac_configure_args0=
  2486. ac_configure_args1=
  2487. ac_must_keep_next=false
  2488. for ac_pass in 1 2
  2489. do
  2490. for ac_arg
  2491. do
  2492. case $ac_arg in
  2493. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2494. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2495. | -silent | --silent | --silen | --sile | --sil)
  2496. continue ;;
  2497. *\'*)
  2498. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2499. esac
  2500. case $ac_pass in
  2501. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2502. 2)
  2503. as_fn_append ac_configure_args1 " '$ac_arg'"
  2504. if test $ac_must_keep_next = true; then
  2505. ac_must_keep_next=false # Got value, back to normal.
  2506. else
  2507. case $ac_arg in
  2508. *=* | --config-cache | -C | -disable-* | --disable-* \
  2509. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2510. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2511. | -with-* | --with-* | -without-* | --without-* | --x)
  2512. case "$ac_configure_args0 " in
  2513. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2514. esac
  2515. ;;
  2516. -* ) ac_must_keep_next=true ;;
  2517. esac
  2518. fi
  2519. as_fn_append ac_configure_args " '$ac_arg'"
  2520. ;;
  2521. esac
  2522. done
  2523. done
  2524. { ac_configure_args0=; unset ac_configure_args0;}
  2525. { ac_configure_args1=; unset ac_configure_args1;}
  2526. # When interrupted or exit'd, cleanup temporary files, and complete
  2527. # config.log. We remove comments because anyway the quotes in there
  2528. # would cause problems or look ugly.
  2529. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2530. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2531. trap 'exit_status=$?
  2532. # Save into config.log some information that might help in debugging.
  2533. {
  2534. echo
  2535. $as_echo "## ---------------- ##
  2536. ## Cache variables. ##
  2537. ## ---------------- ##"
  2538. echo
  2539. # The following way of writing the cache mishandles newlines in values,
  2540. (
  2541. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2542. eval ac_val=\$$ac_var
  2543. case $ac_val in #(
  2544. *${as_nl}*)
  2545. case $ac_var in #(
  2546. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2547. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2548. esac
  2549. case $ac_var in #(
  2550. _ | IFS | as_nl) ;; #(
  2551. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2552. *) { eval $ac_var=; unset $ac_var;} ;;
  2553. esac ;;
  2554. esac
  2555. done
  2556. (set) 2>&1 |
  2557. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2558. *${as_nl}ac_space=\ *)
  2559. sed -n \
  2560. "s/'\''/'\''\\\\'\'''\''/g;
  2561. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2562. ;; #(
  2563. *)
  2564. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2565. ;;
  2566. esac |
  2567. sort
  2568. )
  2569. echo
  2570. $as_echo "## ----------------- ##
  2571. ## Output variables. ##
  2572. ## ----------------- ##"
  2573. echo
  2574. for ac_var in $ac_subst_vars
  2575. do
  2576. eval ac_val=\$$ac_var
  2577. case $ac_val in
  2578. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2579. esac
  2580. $as_echo "$ac_var='\''$ac_val'\''"
  2581. done | sort
  2582. echo
  2583. if test -n "$ac_subst_files"; then
  2584. $as_echo "## ------------------- ##
  2585. ## File substitutions. ##
  2586. ## ------------------- ##"
  2587. echo
  2588. for ac_var in $ac_subst_files
  2589. do
  2590. eval ac_val=\$$ac_var
  2591. case $ac_val in
  2592. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2593. esac
  2594. $as_echo "$ac_var='\''$ac_val'\''"
  2595. done | sort
  2596. echo
  2597. fi
  2598. if test -s confdefs.h; then
  2599. $as_echo "## ----------- ##
  2600. ## confdefs.h. ##
  2601. ## ----------- ##"
  2602. echo
  2603. cat confdefs.h
  2604. echo
  2605. fi
  2606. test "$ac_signal" != 0 &&
  2607. $as_echo "$as_me: caught signal $ac_signal"
  2608. $as_echo "$as_me: exit $exit_status"
  2609. } >&5
  2610. rm -f core *.core core.conftest.* &&
  2611. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2612. exit $exit_status
  2613. ' 0
  2614. for ac_signal in 1 2 13 15; do
  2615. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2616. done
  2617. ac_signal=0
  2618. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2619. rm -f -r conftest* confdefs.h
  2620. $as_echo "/* confdefs.h */" > confdefs.h
  2621. # Predefined preprocessor variables.
  2622. cat >>confdefs.h <<_ACEOF
  2623. #define PACKAGE_NAME "$PACKAGE_NAME"
  2624. _ACEOF
  2625. cat >>confdefs.h <<_ACEOF
  2626. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2627. _ACEOF
  2628. cat >>confdefs.h <<_ACEOF
  2629. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2630. _ACEOF
  2631. cat >>confdefs.h <<_ACEOF
  2632. #define PACKAGE_STRING "$PACKAGE_STRING"
  2633. _ACEOF
  2634. cat >>confdefs.h <<_ACEOF
  2635. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2636. _ACEOF
  2637. cat >>confdefs.h <<_ACEOF
  2638. #define PACKAGE_URL "$PACKAGE_URL"
  2639. _ACEOF
  2640. # Let the site file select an alternate cache file if it wants to.
  2641. # Prefer an explicitly selected file to automatically selected ones.
  2642. ac_site_file1=NONE
  2643. ac_site_file2=NONE
  2644. if test -n "$CONFIG_SITE"; then
  2645. # We do not want a PATH search for config.site.
  2646. case $CONFIG_SITE in #((
  2647. -*) ac_site_file1=./$CONFIG_SITE;;
  2648. */*) ac_site_file1=$CONFIG_SITE;;
  2649. *) ac_site_file1=./$CONFIG_SITE;;
  2650. esac
  2651. elif test "x$prefix" != xNONE; then
  2652. ac_site_file1=$prefix/share/config.site
  2653. ac_site_file2=$prefix/etc/config.site
  2654. else
  2655. ac_site_file1=$ac_default_prefix/share/config.site
  2656. ac_site_file2=$ac_default_prefix/etc/config.site
  2657. fi
  2658. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2659. do
  2660. test "x$ac_site_file" = xNONE && continue
  2661. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2662. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2663. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2664. sed 's/^/| /' "$ac_site_file" >&5
  2665. . "$ac_site_file" \
  2666. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2667. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2668. as_fn_error $? "failed to load site script $ac_site_file
  2669. See \`config.log' for more details" "$LINENO" 5; }
  2670. fi
  2671. done
  2672. if test -r "$cache_file"; then
  2673. # Some versions of bash will fail to source /dev/null (special files
  2674. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2675. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2676. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2677. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2678. case $cache_file in
  2679. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2680. *) . "./$cache_file";;
  2681. esac
  2682. fi
  2683. else
  2684. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2685. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2686. >$cache_file
  2687. fi
  2688. as_fn_append ac_header_list " sys/time.h"
  2689. as_fn_append ac_header_list " unistd.h"
  2690. as_fn_append ac_func_list " alarm"
  2691. as_fn_append ac_header_list " stdlib.h"
  2692. as_fn_append ac_header_list " sys/param.h"
  2693. # Check that the precious variables saved in the cache have kept the same
  2694. # value.
  2695. ac_cache_corrupted=false
  2696. for ac_var in $ac_precious_vars; do
  2697. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2698. eval ac_new_set=\$ac_env_${ac_var}_set
  2699. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2700. eval ac_new_val=\$ac_env_${ac_var}_value
  2701. case $ac_old_set,$ac_new_set in
  2702. set,)
  2703. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2704. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2705. ac_cache_corrupted=: ;;
  2706. ,set)
  2707. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2708. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2709. ac_cache_corrupted=: ;;
  2710. ,);;
  2711. *)
  2712. if test "x$ac_old_val" != "x$ac_new_val"; then
  2713. # differences in whitespace do not lead to failure.
  2714. ac_old_val_w=`echo x $ac_old_val`
  2715. ac_new_val_w=`echo x $ac_new_val`
  2716. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2717. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2718. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2719. ac_cache_corrupted=:
  2720. else
  2721. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2722. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2723. eval $ac_var=\$ac_old_val
  2724. fi
  2725. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2726. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2727. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2728. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2729. fi;;
  2730. esac
  2731. # Pass precious variables to config.status.
  2732. if test "$ac_new_set" = set; then
  2733. case $ac_new_val in
  2734. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2735. *) ac_arg=$ac_var=$ac_new_val ;;
  2736. esac
  2737. case " $ac_configure_args " in
  2738. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2739. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2740. esac
  2741. fi
  2742. done
  2743. if $ac_cache_corrupted; then
  2744. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2745. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2746. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2747. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2748. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2749. fi
  2750. ## -------------------- ##
  2751. ## Main body of script. ##
  2752. ## -------------------- ##
  2753. ac_ext=c
  2754. ac_cpp='$CPP $CPPFLAGS'
  2755. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2756. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2757. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2758. ac_config_headers="$ac_config_headers src/config.h"
  2759. ac_aux_dir=
  2760. for ac_dir in config "$srcdir"/config; do
  2761. if test -f "$ac_dir/install-sh"; then
  2762. ac_aux_dir=$ac_dir
  2763. ac_install_sh="$ac_aux_dir/install-sh -c"
  2764. break
  2765. elif test -f "$ac_dir/install.sh"; then
  2766. ac_aux_dir=$ac_dir
  2767. ac_install_sh="$ac_aux_dir/install.sh -c"
  2768. break
  2769. elif test -f "$ac_dir/shtool"; then
  2770. ac_aux_dir=$ac_dir
  2771. ac_install_sh="$ac_aux_dir/shtool install -c"
  2772. break
  2773. fi
  2774. done
  2775. if test -z "$ac_aux_dir"; then
  2776. as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
  2777. fi
  2778. # These three variables are undocumented and unsupported,
  2779. # and are intended to be withdrawn in a future Autoconf release.
  2780. # They can cause serious problems if a builder's source tree is in a directory
  2781. # whose full name contains unusual characters.
  2782. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2783. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2784. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2786. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2787. # Check whether --enable-maintainer-mode was given.
  2788. if test "${enable_maintainer_mode+set}" = set; then :
  2789. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2790. else
  2791. USE_MAINTAINER_MODE=yes
  2792. fi
  2793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2794. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2795. if test $USE_MAINTAINER_MODE = yes; then
  2796. MAINTAINER_MODE_TRUE=
  2797. MAINTAINER_MODE_FALSE='#'
  2798. else
  2799. MAINTAINER_MODE_TRUE='#'
  2800. MAINTAINER_MODE_FALSE=
  2801. fi
  2802. MAINT=$MAINTAINER_MODE_TRUE
  2803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
  2804. $as_echo_n "checking if malloc debugging is wanted... " >&6; }
  2805. # Check whether --with-dmalloc was given.
  2806. if test "${with_dmalloc+set}" = set; then :
  2807. withval=$with_dmalloc; if test "$withval" = yes; then
  2808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2809. $as_echo "yes" >&6; }
  2810. $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
  2811. LIBS="$LIBS -ldmalloc"
  2812. LDFLAGS="$LDFLAGS -g"
  2813. else
  2814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2815. $as_echo "no" >&6; }
  2816. fi
  2817. else
  2818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2819. $as_echo "no" >&6; }
  2820. fi
  2821. MAINTAINER_AUTOGEN_VERSION=5.18.12
  2822. TCPREPLAY_VERSION=$PACKAGE_VERSION
  2823. TCPREPLAY_RELEASE=1
  2824. # Make sure we can run config.sub.
  2825. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2826. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2828. $as_echo_n "checking build system type... " >&6; }
  2829. if ${ac_cv_build+:} false; then :
  2830. $as_echo_n "(cached) " >&6
  2831. else
  2832. ac_build_alias=$build_alias
  2833. test "x$ac_build_alias" = x &&
  2834. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2835. test "x$ac_build_alias" = x &&
  2836. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2837. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2838. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2839. fi
  2840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2841. $as_echo "$ac_cv_build" >&6; }
  2842. case $ac_cv_build in
  2843. *-*-*) ;;
  2844. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2845. esac
  2846. build=$ac_cv_build
  2847. ac_save_IFS=$IFS; IFS='-'
  2848. set x $ac_cv_build
  2849. shift
  2850. build_cpu=$1
  2851. build_vendor=$2
  2852. shift; shift
  2853. # Remember, the first character of IFS is used to create $*,
  2854. # except with old shells:
  2855. build_os=$*
  2856. IFS=$ac_save_IFS
  2857. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2859. $as_echo_n "checking host system type... " >&6; }
  2860. if ${ac_cv_host+:} false; then :
  2861. $as_echo_n "(cached) " >&6
  2862. else
  2863. if test "x$host_alias" = x; then
  2864. ac_cv_host=$ac_cv_build
  2865. else
  2866. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2867. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2868. fi
  2869. fi
  2870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2871. $as_echo "$ac_cv_host" >&6; }
  2872. case $ac_cv_host in
  2873. *-*-*) ;;
  2874. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2875. esac
  2876. host=$ac_cv_host
  2877. ac_save_IFS=$IFS; IFS='-'
  2878. set x $ac_cv_host
  2879. shift
  2880. host_cpu=$1
  2881. host_vendor=$2
  2882. shift; shift
  2883. # Remember, the first character of IFS is used to create $*,
  2884. # except with old shells:
  2885. host_os=$*
  2886. IFS=$ac_save_IFS
  2887. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2889. $as_echo_n "checking target system type... " >&6; }
  2890. if ${ac_cv_target+:} false; then :
  2891. $as_echo_n "(cached) " >&6
  2892. else
  2893. if test "x$target_alias" = x; then
  2894. ac_cv_target=$ac_cv_host
  2895. else
  2896. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2897. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2898. fi
  2899. fi
  2900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2901. $as_echo "$ac_cv_target" >&6; }
  2902. case $ac_cv_target in
  2903. *-*-*) ;;
  2904. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2905. esac
  2906. target=$ac_cv_target
  2907. ac_save_IFS=$IFS; IFS='-'
  2908. set x $ac_cv_target
  2909. shift
  2910. target_cpu=$1
  2911. target_vendor=$2
  2912. shift; shift
  2913. # Remember, the first character of IFS is used to create $*,
  2914. # except with old shells:
  2915. target_os=$*
  2916. IFS=$ac_save_IFS
  2917. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2918. # The aliases save the names the user supplied, while $host etc.
  2919. # will get canonicalized.
  2920. test -n "$target_alias" &&
  2921. test "$program_prefix$program_suffix$program_transform_name" = \
  2922. NONENONEs,x,x, &&
  2923. program_prefix=${target_alias}-
  2924. CROSS_ARCH=
  2925. CROSS_LD=
  2926. build_arch=$(echo $MACHTYPE | cut -d'-' -f1)
  2927. if test "$cross_compiling" = "yes" ; then
  2928. CROSS_ARCH="ARCH=$host_cpu"
  2929. CROSS_LD="LD=$LD"
  2930. fi
  2931. # Check whether --with-macos-sdk was given.
  2932. if test "${with_macos_sdk+set}" = set; then :
  2933. withval=$with_macos_sdk;
  2934. fi
  2935. case "$host_os" in
  2936. darwin*) # Mac OS X or iOS
  2937. # If no --with-macos-sdk option is given, look for the latestq SDK
  2938. # The intent is that for "most" Mac-based developers, a suitable
  2939. # SDK will be found automatically without any configure options.
  2940. # For developers with a current Xcode, the lowest-numbered SDK
  2941. # higher than or equal to the minimum required should be found.
  2942. # To find a list of available version run `xcodebuild -showsdks`
  2943. MULTIARCH=${host_cpu}-${host_os}
  2944. unset MACOSX_SDK_PATH
  2945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking what macOS compiler to use" >&5
  2946. $as_echo_n "checking what macOS compiler to use... " >&6; }
  2947. if test -n "$with_macos_sdk"; then
  2948. MACOSX_SDK_PATH=$(xcrun --sdk macosx${with_macos_sdk} --show-sdk-path 2> /dev/null)
  2949. if test -z "$MACOSX_SDK_PATH" ; then
  2950. as_fn_error $? "could not find SDK ${with_macos_sdk} for macos-${MULTIARCH}" "$LINENO" 5
  2951. fi
  2952. else
  2953. MACOSX_SDK_PATH=$(xcrun --show-sdk-path 2> /dev/null)
  2954. if test -z "$MACOSX_SDK_PATH" ; then
  2955. for _macos_sdk_major in $(seq 15 -1 10); do
  2956. for _macos_sdk_minor in $(seq 20 -1 0); do
  2957. _macos_sdk_version=$_macos_sdk_major.$_macos_sdk_minor
  2958. MACOSX_SDK_PATH=$(xcrun --sdk macosx${_macos_sdk_version} --show-sdk-path 2> /dev/null)
  2959. if test -d "$_macos_sdk_path" ; then
  2960. break 2
  2961. fi
  2962. done
  2963. done
  2964. if test -z "$MACOSX_SDK_PATH"; then
  2965. for _macos_sdk_major in $(seq 15 -1 10); do
  2966. for _macos_sdk_minor in $(seq 20 -1 0); do
  2967. _macos_sdk_version=$_macos_sdk_major.$_macos_sdk_minor
  2968. MACOSX_SDK_PATH=$(xcode-select -print-path)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX${_macos_sdk_version}.sdk
  2969. if test -d "$MACOSX_SDK_PATH"; then
  2970. break 2
  2971. fi
  2972. MACOSX_SDK_PATH=$(xcode-select -print-path)/SDKs/MacOSX${_macos_sdk_version}.sdk
  2973. if test -d "$MACOSX_SDK_PATH"; then
  2974. break 2
  2975. fi
  2976. done
  2977. done
  2978. fi
  2979. fi
  2980. fi
  2981. if test -d "$MACOSX_SDK_PATH"; then
  2982. CC="$(xcrun -find clang) -m64 -isysroot $MACOSX_SDK_PATH"
  2983. INSTALL_NAME_TOOL=$(xcrun -find install_name_tool)
  2984. AR=$(xcrun -find ar)
  2985. NM=$(xcrun -find nm)
  2986. STRIP=$(xcrun -find strip)
  2987. LIBTOOL=$(xcrun -find libtool)
  2988. RANLIB=$(xcrun -find ranlib)
  2989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${MACOSX_SDK_PATH}" >&5
  2990. $as_echo "${MACOSX_SDK_PATH}" >&6; }
  2991. else
  2992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: legacy" >&5
  2993. $as_echo "legacy" >&6; }
  2994. fi
  2995. ;;
  2996. Linux*)
  2997. MULTIARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH) 2> /dev/null || ${host_cpu}-${host_os}
  2998. ;;
  2999. *)
  3000. MULTIARCH=${host_cpu}-${host_os}
  3001. ;;
  3002. esac
  3003. # Note that the OS X libtool command is unrelated to GNU libtool
  3004. # Check whether --with-pfring-lib was given.
  3005. if test "${with_pfring_lib+set}" = set; then :
  3006. withval=$with_pfring_lib;
  3007. fi
  3008. have_cygwin=no
  3009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin development environment" >&5
  3010. $as_echo_n "checking for cygwin development environment... " >&6; }
  3011. if test $(echo $target | grep -c cygwin) -gt 0 ; then
  3012. $as_echo "#define HAVE_WIN32 1" >>confdefs.h
  3013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3014. $as_echo "yes" >&6; }
  3015. have_cygwin=yes
  3016. else
  3017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3018. $as_echo "no" >&6; }
  3019. fi
  3020. am__api_version='1.16'
  3021. # Find a good install program. We prefer a C program (faster),
  3022. # so one script is as good as another. But avoid the broken or
  3023. # incompatible versions:
  3024. # SysV /etc/install, /usr/sbin/install
  3025. # SunOS /usr/etc/install
  3026. # IRIX /sbin/install
  3027. # AIX /bin/install
  3028. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3029. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3030. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3031. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3032. # OS/2's system install, which has a completely different semantic
  3033. # ./install, which can be erroneously created by make from ./install.sh.
  3034. # Reject install programs that cannot install multiple files.
  3035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3036. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3037. if test -z "$INSTALL"; then
  3038. if ${ac_cv_path_install+:} false; then :
  3039. $as_echo_n "(cached) " >&6
  3040. else
  3041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3042. for as_dir in $PATH
  3043. do
  3044. IFS=$as_save_IFS
  3045. test -z "$as_dir" && as_dir=.
  3046. # Account for people who put trailing slashes in PATH elements.
  3047. case $as_dir/ in #((
  3048. ./ | .// | /[cC]/* | \
  3049. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3050. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3051. /usr/ucb/* ) ;;
  3052. *)
  3053. # OSF1 and SCO ODT 3.0 have their own names for install.
  3054. # Don't use installbsd from OSF since it installs stuff as root
  3055. # by default.
  3056. for ac_prog in ginstall scoinst install; do
  3057. for ac_exec_ext in '' $ac_executable_extensions; do
  3058. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3059. if test $ac_prog = install &&
  3060. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3061. # AIX install. It has an incompatible calling convention.
  3062. :
  3063. elif test $ac_prog = install &&
  3064. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3065. # program-specific install script used by HP pwplus--don't use.
  3066. :
  3067. else
  3068. rm -rf conftest.one conftest.two conftest.dir
  3069. echo one > conftest.one
  3070. echo two > conftest.two
  3071. mkdir conftest.dir
  3072. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3073. test -s conftest.one && test -s conftest.two &&
  3074. test -s conftest.dir/conftest.one &&
  3075. test -s conftest.dir/conftest.two
  3076. then
  3077. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3078. break 3
  3079. fi
  3080. fi
  3081. fi
  3082. done
  3083. done
  3084. ;;
  3085. esac
  3086. done
  3087. IFS=$as_save_IFS
  3088. rm -rf conftest.one conftest.two conftest.dir
  3089. fi
  3090. if test "${ac_cv_path_install+set}" = set; then
  3091. INSTALL=$ac_cv_path_install
  3092. else
  3093. # As a last resort, use the slow shell script. Don't cache a
  3094. # value for INSTALL within a source directory, because that will
  3095. # break other packages using the cache if that directory is
  3096. # removed, or if the value is a relative name.
  3097. INSTALL=$ac_install_sh
  3098. fi
  3099. fi
  3100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3101. $as_echo "$INSTALL" >&6; }
  3102. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3103. # It thinks the first close brace ends the variable substitution.
  3104. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3105. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3106. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3108. $as_echo_n "checking whether build environment is sane... " >&6; }
  3109. # Reject unsafe characters in $srcdir or the absolute working directory
  3110. # name. Accept space and tab only in the latter.
  3111. am_lf='
  3112. '
  3113. case `pwd` in
  3114. *[\\\"\#\$\&\'\`$am_lf]*)
  3115. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  3116. esac
  3117. case $srcdir in
  3118. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3119. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  3120. esac
  3121. # Do 'set' in a subshell so we don't clobber the current shell's
  3122. # arguments. Must try -L first in case configure is actually a
  3123. # symlink; some systems play weird games with the mod time of symlinks
  3124. # (eg FreeBSD returns the mod time of the symlink's containing
  3125. # directory).
  3126. if (
  3127. am_has_slept=no
  3128. for am_try in 1 2; do
  3129. echo "timestamp, slept: $am_has_slept" > conftest.file
  3130. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3131. if test "$*" = "X"; then
  3132. # -L didn't work.
  3133. set X `ls -t "$srcdir/configure" conftest.file`
  3134. fi
  3135. if test "$*" != "X $srcdir/configure conftest.file" \
  3136. && test "$*" != "X conftest.file $srcdir/configure"; then
  3137. # If neither matched, then we have a broken ls. This can happen
  3138. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3139. # broken ls alias from the environment. This has actually
  3140. # happened. Such a system could not be considered "sane".
  3141. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  3142. alias in your environment" "$LINENO" 5
  3143. fi
  3144. if test "$2" = conftest.file || test $am_try -eq 2; then
  3145. break
  3146. fi
  3147. # Just in case.
  3148. sleep 1
  3149. am_has_slept=yes
  3150. done
  3151. test "$2" = conftest.file
  3152. )
  3153. then
  3154. # Ok.
  3155. :
  3156. else
  3157. as_fn_error $? "newly created file is older than distributed files!
  3158. Check your system clock" "$LINENO" 5
  3159. fi
  3160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3161. $as_echo "yes" >&6; }
  3162. # If we didn't sleep, we still need to ensure time stamps of config.status and
  3163. # generated files are strictly newer.
  3164. am_sleep_pid=
  3165. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  3166. ( sleep 1 ) &
  3167. am_sleep_pid=$!
  3168. fi
  3169. rm -f conftest.file
  3170. test "$program_prefix" != NONE &&
  3171. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3172. # Use a double $ so make ignores it.
  3173. test "$program_suffix" != NONE &&
  3174. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3175. # Double any \ or $.
  3176. # By default was `s,x,x', remove it if useless.
  3177. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3178. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3179. # Expand $ac_aux_dir to an absolute path.
  3180. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  3181. if test x"${MISSING+set}" != xset; then
  3182. case $am_aux_dir in
  3183. *\ * | *\ *)
  3184. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3185. *)
  3186. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3187. esac
  3188. fi
  3189. # Use eval to expand $SHELL
  3190. if eval "$MISSING --is-lightweight"; then
  3191. am_missing_run="$MISSING "
  3192. else
  3193. am_missing_run=
  3194. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  3195. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  3196. fi
  3197. if test x"${install_sh+set}" != xset; then
  3198. case $am_aux_dir in
  3199. *\ * | *\ *)
  3200. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3201. *)
  3202. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3203. esac
  3204. fi
  3205. # Installed binaries are usually stripped using 'strip' when the user
  3206. # run "make install-strip". However 'strip' might not be the right
  3207. # tool to use in cross-compilation environments, therefore Automake
  3208. # will honor the 'STRIP' environment variable to overrule this program.
  3209. if test "$cross_compiling" != no; then
  3210. if test -n "$ac_tool_prefix"; then
  3211. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3212. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3214. $as_echo_n "checking for $ac_word... " >&6; }
  3215. if ${ac_cv_prog_STRIP+:} false; then :
  3216. $as_echo_n "(cached) " >&6
  3217. else
  3218. if test -n "$STRIP"; then
  3219. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3220. else
  3221. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3222. for as_dir in $PATH
  3223. do
  3224. IFS=$as_save_IFS
  3225. test -z "$as_dir" && as_dir=.
  3226. for ac_exec_ext in '' $ac_executable_extensions; do
  3227. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3228. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3229. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3230. break 2
  3231. fi
  3232. done
  3233. done
  3234. IFS=$as_save_IFS
  3235. fi
  3236. fi
  3237. STRIP=$ac_cv_prog_STRIP
  3238. if test -n "$STRIP"; then
  3239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3240. $as_echo "$STRIP" >&6; }
  3241. else
  3242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3243. $as_echo "no" >&6; }
  3244. fi
  3245. fi
  3246. if test -z "$ac_cv_prog_STRIP"; then
  3247. ac_ct_STRIP=$STRIP
  3248. # Extract the first word of "strip", so it can be a program name with args.
  3249. set dummy strip; ac_word=$2
  3250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3251. $as_echo_n "checking for $ac_word... " >&6; }
  3252. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  3253. $as_echo_n "(cached) " >&6
  3254. else
  3255. if test -n "$ac_ct_STRIP"; then
  3256. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3257. else
  3258. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3259. for as_dir in $PATH
  3260. do
  3261. IFS=$as_save_IFS
  3262. test -z "$as_dir" && as_dir=.
  3263. for ac_exec_ext in '' $ac_executable_extensions; do
  3264. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3265. ac_cv_prog_ac_ct_STRIP="strip"
  3266. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3267. break 2
  3268. fi
  3269. done
  3270. done
  3271. IFS=$as_save_IFS
  3272. fi
  3273. fi
  3274. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3275. if test -n "$ac_ct_STRIP"; then
  3276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3277. $as_echo "$ac_ct_STRIP" >&6; }
  3278. else
  3279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3280. $as_echo "no" >&6; }
  3281. fi
  3282. if test "x$ac_ct_STRIP" = x; then
  3283. STRIP=":"
  3284. else
  3285. case $cross_compiling:$ac_tool_warned in
  3286. yes:)
  3287. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3288. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3289. ac_tool_warned=yes ;;
  3290. esac
  3291. STRIP=$ac_ct_STRIP
  3292. fi
  3293. else
  3294. STRIP="$ac_cv_prog_STRIP"
  3295. fi
  3296. fi
  3297. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3299. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3300. if test -z "$MKDIR_P"; then
  3301. if ${ac_cv_path_mkdir+:} false; then :
  3302. $as_echo_n "(cached) " >&6
  3303. else
  3304. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3305. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3306. do
  3307. IFS=$as_save_IFS
  3308. test -z "$as_dir" && as_dir=.
  3309. for ac_prog in mkdir gmkdir; do
  3310. for ac_exec_ext in '' $ac_executable_extensions; do
  3311. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  3312. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3313. 'mkdir (GNU coreutils) '* | \
  3314. 'mkdir (coreutils) '* | \
  3315. 'mkdir (fileutils) '4.1*)
  3316. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3317. break 3;;
  3318. esac
  3319. done
  3320. done
  3321. done
  3322. IFS=$as_save_IFS
  3323. fi
  3324. test -d ./--version && rmdir ./--version
  3325. if test "${ac_cv_path_mkdir+set}" = set; then
  3326. MKDIR_P="$ac_cv_path_mkdir -p"
  3327. else
  3328. # As a last resort, use the slow shell script. Don't cache a
  3329. # value for MKDIR_P within a source directory, because that will
  3330. # break other packages using the cache if that directory is
  3331. # removed, or if the value is a relative name.
  3332. MKDIR_P="$ac_install_sh -d"
  3333. fi
  3334. fi
  3335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3336. $as_echo "$MKDIR_P" >&6; }
  3337. for ac_prog in gawk mawk nawk awk
  3338. do
  3339. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3340. set dummy $ac_prog; ac_word=$2
  3341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3342. $as_echo_n "checking for $ac_word... " >&6; }
  3343. if ${ac_cv_prog_AWK+:} false; then :
  3344. $as_echo_n "(cached) " >&6
  3345. else
  3346. if test -n "$AWK"; then
  3347. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3348. else
  3349. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3350. for as_dir in $PATH
  3351. do
  3352. IFS=$as_save_IFS
  3353. test -z "$as_dir" && as_dir=.
  3354. for ac_exec_ext in '' $ac_executable_extensions; do
  3355. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3356. ac_cv_prog_AWK="$ac_prog"
  3357. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3358. break 2
  3359. fi
  3360. done
  3361. done
  3362. IFS=$as_save_IFS
  3363. fi
  3364. fi
  3365. AWK=$ac_cv_prog_AWK
  3366. if test -n "$AWK"; then
  3367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3368. $as_echo "$AWK" >&6; }
  3369. else
  3370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3371. $as_echo "no" >&6; }
  3372. fi
  3373. test -n "$AWK" && break
  3374. done
  3375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3376. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3377. set x ${MAKE-make}
  3378. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3379. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3380. $as_echo_n "(cached) " >&6
  3381. else
  3382. cat >conftest.make <<\_ACEOF
  3383. SHELL = /bin/sh
  3384. all:
  3385. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3386. _ACEOF
  3387. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3388. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3389. *@@@%%%=?*=@@@%%%*)
  3390. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3391. *)
  3392. eval ac_cv_prog_make_${ac_make}_set=no;;
  3393. esac
  3394. rm -f conftest.make
  3395. fi
  3396. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3398. $as_echo "yes" >&6; }
  3399. SET_MAKE=
  3400. else
  3401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3402. $as_echo "no" >&6; }
  3403. SET_MAKE="MAKE=${MAKE-make}"
  3404. fi
  3405. rm -rf .tst 2>/dev/null
  3406. mkdir .tst 2>/dev/null
  3407. if test -d .tst; then
  3408. am__leading_dot=.
  3409. else
  3410. am__leading_dot=_
  3411. fi
  3412. rmdir .tst 2>/dev/null
  3413. # Check whether --enable-silent-rules was given.
  3414. if test "${enable_silent_rules+set}" = set; then :
  3415. enableval=$enable_silent_rules;
  3416. fi
  3417. case $enable_silent_rules in # (((
  3418. yes) AM_DEFAULT_VERBOSITY=0;;
  3419. no) AM_DEFAULT_VERBOSITY=1;;
  3420. *) AM_DEFAULT_VERBOSITY=1;;
  3421. esac
  3422. am_make=${MAKE-make}
  3423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3424. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3425. if ${am_cv_make_support_nested_variables+:} false; then :
  3426. $as_echo_n "(cached) " >&6
  3427. else
  3428. if $as_echo 'TRUE=$(BAR$(V))
  3429. BAR0=false
  3430. BAR1=true
  3431. V=1
  3432. am__doit:
  3433. @$(TRUE)
  3434. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3435. am_cv_make_support_nested_variables=yes
  3436. else
  3437. am_cv_make_support_nested_variables=no
  3438. fi
  3439. fi
  3440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3441. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3442. if test $am_cv_make_support_nested_variables = yes; then
  3443. AM_V='$(V)'
  3444. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3445. else
  3446. AM_V=$AM_DEFAULT_VERBOSITY
  3447. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3448. fi
  3449. AM_BACKSLASH='\'
  3450. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3451. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3452. # is not polluted with repeated "-I."
  3453. am__isrc=' -I$(srcdir)'
  3454. # test to see if srcdir already configured
  3455. if test -f $srcdir/config.status; then
  3456. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3457. fi
  3458. fi
  3459. # test whether we have cygpath
  3460. if test -z "$CYGPATH_W"; then
  3461. if (cygpath --version) >/dev/null 2>/dev/null; then
  3462. CYGPATH_W='cygpath -w'
  3463. else
  3464. CYGPATH_W=echo
  3465. fi
  3466. fi
  3467. # Define the identity of the package.
  3468. PACKAGE='tcpreplay'
  3469. VERSION='4.4.0'
  3470. cat >>confdefs.h <<_ACEOF
  3471. #define PACKAGE "$PACKAGE"
  3472. _ACEOF
  3473. cat >>confdefs.h <<_ACEOF
  3474. #define VERSION "$VERSION"
  3475. _ACEOF
  3476. # Some tools Automake needs.
  3477. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3478. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3479. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3480. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3481. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3482. # For better backward compatibility. To be removed once Automake 1.9.x
  3483. # dies out for good. For more background, see:
  3484. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3485. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3486. mkdir_p='$(MKDIR_P)'
  3487. # We need awk for the "check" target (and possibly the TAP driver). The
  3488. # system "awk" is bad on some platforms.
  3489. # Always define AMTAR for backward compatibility. Yes, it's still used
  3490. # in the wild :-( We should find a proper way to deprecate it ...
  3491. AMTAR='$${TAR-tar}'
  3492. # We'll loop over all known methods to create a tar archive until one works.
  3493. _am_tools='gnutar pax cpio none'
  3494. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3495. # POSIX will say in a future version that running "rm -f" with no argument
  3496. # is OK; and we want to be able to make that assumption in our Makefile
  3497. # recipes. So use an aggressive probe to check that the usage we want is
  3498. # actually supported "in the wild" to an acceptable degree.
  3499. # See automake bug#10828.
  3500. # To make any issue more visible, cause the running configure to be aborted
  3501. # by default if the 'rm' program in use doesn't match our expectations; the
  3502. # user can still override this though.
  3503. if rm -f && rm -fr && rm -rf; then : OK; else
  3504. cat >&2 <<'END'
  3505. Oops!
  3506. Your 'rm' program seems unable to run without file operands specified
  3507. on the command line, even when the '-f' option is present. This is contrary
  3508. to the behaviour of most rm programs out there, and not conforming with
  3509. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3510. Please tell bug-automake@gnu.org about your system, including the value
  3511. of your $PATH and any error possibly output before this message. This
  3512. can help us improve future automake versions.
  3513. END
  3514. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3515. echo 'Configuration will proceed anyway, since you have set the' >&2
  3516. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3517. echo >&2
  3518. else
  3519. cat >&2 <<'END'
  3520. Aborting the configuration process, to ensure you take notice of the issue.
  3521. You can download and install GNU coreutils to get an 'rm' implementation
  3522. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  3523. If you want to complete the configuration process using your problematic
  3524. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3525. to "yes", and re-run configure.
  3526. END
  3527. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3528. fi
  3529. fi
  3530. # Check whether --enable-silent-rules was given.
  3531. if test "${enable_silent_rules+set}" = set; then :
  3532. enableval=$enable_silent_rules;
  3533. fi
  3534. case $enable_silent_rules in # (((
  3535. yes) AM_DEFAULT_VERBOSITY=0;;
  3536. no) AM_DEFAULT_VERBOSITY=1;;
  3537. *) AM_DEFAULT_VERBOSITY=0;;
  3538. esac
  3539. am_make=${MAKE-make}
  3540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3541. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3542. if ${am_cv_make_support_nested_variables+:} false; then :
  3543. $as_echo_n "(cached) " >&6
  3544. else
  3545. if $as_echo 'TRUE=$(BAR$(V))
  3546. BAR0=false
  3547. BAR1=true
  3548. V=1
  3549. am__doit:
  3550. @$(TRUE)
  3551. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3552. am_cv_make_support_nested_variables=yes
  3553. else
  3554. am_cv_make_support_nested_variables=no
  3555. fi
  3556. fi
  3557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3558. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3559. if test $am_cv_make_support_nested_variables = yes; then
  3560. AM_V='$(V)'
  3561. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3562. else
  3563. AM_V=$AM_DEFAULT_VERBOSITY
  3564. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3565. fi
  3566. AM_BACKSLASH='\'
  3567. DEPDIR="${am__leading_dot}deps"
  3568. ac_config_commands="$ac_config_commands depfiles"
  3569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  3570. $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
  3571. cat > confinc.mk << 'END'
  3572. am__doit:
  3573. @echo this is the am__doit target >confinc.out
  3574. .PHONY: am__doit
  3575. END
  3576. am__include="#"
  3577. am__quote=
  3578. # BSD make does it like this.
  3579. echo '.include "confinc.mk" # ignored' > confmf.BSD
  3580. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  3581. echo 'include confinc.mk # ignored' > confmf.GNU
  3582. _am_result=no
  3583. for s in GNU BSD; do
  3584. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  3585. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  3586. ac_status=$?
  3587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3588. (exit $ac_status); }
  3589. case $?:`cat confinc.out 2>/dev/null` in #(
  3590. '0:this is the am__doit target') :
  3591. case $s in #(
  3592. BSD) :
  3593. am__include='.include' am__quote='"' ;; #(
  3594. *) :
  3595. am__include='include' am__quote='' ;;
  3596. esac ;; #(
  3597. *) :
  3598. ;;
  3599. esac
  3600. if test "$am__include" != "#"; then
  3601. _am_result="yes ($s style)"
  3602. break
  3603. fi
  3604. done
  3605. rm -f confinc.* confmf.*
  3606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  3607. $as_echo "${_am_result}" >&6; }
  3608. # Check whether --enable-dependency-tracking was given.
  3609. if test "${enable_dependency_tracking+set}" = set; then :
  3610. enableval=$enable_dependency_tracking;
  3611. fi
  3612. if test "x$enable_dependency_tracking" != xno; then
  3613. am_depcomp="$ac_aux_dir/depcomp"
  3614. AMDEPBACKSLASH='\'
  3615. am__nodep='_no'
  3616. fi
  3617. if test "x$enable_dependency_tracking" != xno; then
  3618. AMDEP_TRUE=
  3619. AMDEP_FALSE='#'
  3620. else
  3621. AMDEP_TRUE='#'
  3622. AMDEP_FALSE=
  3623. fi
  3624. ac_ext=c
  3625. ac_cpp='$CPP $CPPFLAGS'
  3626. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3627. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3628. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3629. if test -n "$ac_tool_prefix"; then
  3630. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3631. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3633. $as_echo_n "checking for $ac_word... " >&6; }
  3634. if ${ac_cv_prog_CC+:} false; then :
  3635. $as_echo_n "(cached) " >&6
  3636. else
  3637. if test -n "$CC"; then
  3638. ac_cv_prog_CC="$CC" # Let the user override the test.
  3639. else
  3640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3641. for as_dir in $PATH
  3642. do
  3643. IFS=$as_save_IFS
  3644. test -z "$as_dir" && as_dir=.
  3645. for ac_exec_ext in '' $ac_executable_extensions; do
  3646. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3647. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3648. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3649. break 2
  3650. fi
  3651. done
  3652. done
  3653. IFS=$as_save_IFS
  3654. fi
  3655. fi
  3656. CC=$ac_cv_prog_CC
  3657. if test -n "$CC"; then
  3658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3659. $as_echo "$CC" >&6; }
  3660. else
  3661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3662. $as_echo "no" >&6; }
  3663. fi
  3664. fi
  3665. if test -z "$ac_cv_prog_CC"; then
  3666. ac_ct_CC=$CC
  3667. # Extract the first word of "gcc", so it can be a program name with args.
  3668. set dummy gcc; ac_word=$2
  3669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3670. $as_echo_n "checking for $ac_word... " >&6; }
  3671. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3672. $as_echo_n "(cached) " >&6
  3673. else
  3674. if test -n "$ac_ct_CC"; then
  3675. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3676. else
  3677. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3678. for as_dir in $PATH
  3679. do
  3680. IFS=$as_save_IFS
  3681. test -z "$as_dir" && as_dir=.
  3682. for ac_exec_ext in '' $ac_executable_extensions; do
  3683. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3684. ac_cv_prog_ac_ct_CC="gcc"
  3685. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3686. break 2
  3687. fi
  3688. done
  3689. done
  3690. IFS=$as_save_IFS
  3691. fi
  3692. fi
  3693. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3694. if test -n "$ac_ct_CC"; then
  3695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3696. $as_echo "$ac_ct_CC" >&6; }
  3697. else
  3698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3699. $as_echo "no" >&6; }
  3700. fi
  3701. if test "x$ac_ct_CC" = x; then
  3702. CC=""
  3703. else
  3704. case $cross_compiling:$ac_tool_warned in
  3705. yes:)
  3706. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3707. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3708. ac_tool_warned=yes ;;
  3709. esac
  3710. CC=$ac_ct_CC
  3711. fi
  3712. else
  3713. CC="$ac_cv_prog_CC"
  3714. fi
  3715. if test -z "$CC"; then
  3716. if test -n "$ac_tool_prefix"; then
  3717. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3718. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3720. $as_echo_n "checking for $ac_word... " >&6; }
  3721. if ${ac_cv_prog_CC+:} false; then :
  3722. $as_echo_n "(cached) " >&6
  3723. else
  3724. if test -n "$CC"; then
  3725. ac_cv_prog_CC="$CC" # Let the user override the test.
  3726. else
  3727. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3728. for as_dir in $PATH
  3729. do
  3730. IFS=$as_save_IFS
  3731. test -z "$as_dir" && as_dir=.
  3732. for ac_exec_ext in '' $ac_executable_extensions; do
  3733. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3734. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3735. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3736. break 2
  3737. fi
  3738. done
  3739. done
  3740. IFS=$as_save_IFS
  3741. fi
  3742. fi
  3743. CC=$ac_cv_prog_CC
  3744. if test -n "$CC"; then
  3745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3746. $as_echo "$CC" >&6; }
  3747. else
  3748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3749. $as_echo "no" >&6; }
  3750. fi
  3751. fi
  3752. fi
  3753. if test -z "$CC"; then
  3754. # Extract the first word of "cc", so it can be a program name with args.
  3755. set dummy cc; ac_word=$2
  3756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3757. $as_echo_n "checking for $ac_word... " >&6; }
  3758. if ${ac_cv_prog_CC+:} false; then :
  3759. $as_echo_n "(cached) " >&6
  3760. else
  3761. if test -n "$CC"; then
  3762. ac_cv_prog_CC="$CC" # Let the user override the test.
  3763. else
  3764. ac_prog_rejected=no
  3765. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3766. for as_dir in $PATH
  3767. do
  3768. IFS=$as_save_IFS
  3769. test -z "$as_dir" && as_dir=.
  3770. for ac_exec_ext in '' $ac_executable_extensions; do
  3771. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3772. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3773. ac_prog_rejected=yes
  3774. continue
  3775. fi
  3776. ac_cv_prog_CC="cc"
  3777. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3778. break 2
  3779. fi
  3780. done
  3781. done
  3782. IFS=$as_save_IFS
  3783. if test $ac_prog_rejected = yes; then
  3784. # We found a bogon in the path, so make sure we never use it.
  3785. set dummy $ac_cv_prog_CC
  3786. shift
  3787. if test $# != 0; then
  3788. # We chose a different compiler from the bogus one.
  3789. # However, it has the same basename, so the bogon will be chosen
  3790. # first if we set CC to just the basename; use the full file name.
  3791. shift
  3792. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3793. fi
  3794. fi
  3795. fi
  3796. fi
  3797. CC=$ac_cv_prog_CC
  3798. if test -n "$CC"; then
  3799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3800. $as_echo "$CC" >&6; }
  3801. else
  3802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3803. $as_echo "no" >&6; }
  3804. fi
  3805. fi
  3806. if test -z "$CC"; then
  3807. if test -n "$ac_tool_prefix"; then
  3808. for ac_prog in cl.exe
  3809. do
  3810. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3811. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3813. $as_echo_n "checking for $ac_word... " >&6; }
  3814. if ${ac_cv_prog_CC+:} false; then :
  3815. $as_echo_n "(cached) " >&6
  3816. else
  3817. if test -n "$CC"; then
  3818. ac_cv_prog_CC="$CC" # Let the user override the test.
  3819. else
  3820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3821. for as_dir in $PATH
  3822. do
  3823. IFS=$as_save_IFS
  3824. test -z "$as_dir" && as_dir=.
  3825. for ac_exec_ext in '' $ac_executable_extensions; do
  3826. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3827. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3828. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3829. break 2
  3830. fi
  3831. done
  3832. done
  3833. IFS=$as_save_IFS
  3834. fi
  3835. fi
  3836. CC=$ac_cv_prog_CC
  3837. if test -n "$CC"; then
  3838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3839. $as_echo "$CC" >&6; }
  3840. else
  3841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3842. $as_echo "no" >&6; }
  3843. fi
  3844. test -n "$CC" && break
  3845. done
  3846. fi
  3847. if test -z "$CC"; then
  3848. ac_ct_CC=$CC
  3849. for ac_prog in cl.exe
  3850. do
  3851. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3852. set dummy $ac_prog; ac_word=$2
  3853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3854. $as_echo_n "checking for $ac_word... " >&6; }
  3855. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3856. $as_echo_n "(cached) " >&6
  3857. else
  3858. if test -n "$ac_ct_CC"; then
  3859. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3860. else
  3861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3862. for as_dir in $PATH
  3863. do
  3864. IFS=$as_save_IFS
  3865. test -z "$as_dir" && as_dir=.
  3866. for ac_exec_ext in '' $ac_executable_extensions; do
  3867. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3868. ac_cv_prog_ac_ct_CC="$ac_prog"
  3869. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3870. break 2
  3871. fi
  3872. done
  3873. done
  3874. IFS=$as_save_IFS
  3875. fi
  3876. fi
  3877. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3878. if test -n "$ac_ct_CC"; then
  3879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3880. $as_echo "$ac_ct_CC" >&6; }
  3881. else
  3882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3883. $as_echo "no" >&6; }
  3884. fi
  3885. test -n "$ac_ct_CC" && break
  3886. done
  3887. if test "x$ac_ct_CC" = x; then
  3888. CC=""
  3889. else
  3890. case $cross_compiling:$ac_tool_warned in
  3891. yes:)
  3892. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3893. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3894. ac_tool_warned=yes ;;
  3895. esac
  3896. CC=$ac_ct_CC
  3897. fi
  3898. fi
  3899. fi
  3900. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3901. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3902. as_fn_error $? "no acceptable C compiler found in \$PATH
  3903. See \`config.log' for more details" "$LINENO" 5; }
  3904. # Provide some information about the compiler.
  3905. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3906. set X $ac_compile
  3907. ac_compiler=$2
  3908. for ac_option in --version -v -V -qversion; do
  3909. { { ac_try="$ac_compiler $ac_option >&5"
  3910. case "(($ac_try" in
  3911. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3912. *) ac_try_echo=$ac_try;;
  3913. esac
  3914. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3915. $as_echo "$ac_try_echo"; } >&5
  3916. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3917. ac_status=$?
  3918. if test -s conftest.err; then
  3919. sed '10a\
  3920. ... rest of stderr output deleted ...
  3921. 10q' conftest.err >conftest.er1
  3922. cat conftest.er1 >&5
  3923. fi
  3924. rm -f conftest.er1 conftest.err
  3925. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3926. test $ac_status = 0; }
  3927. done
  3928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3929. /* end confdefs.h. */
  3930. int
  3931. main ()
  3932. {
  3933. ;
  3934. return 0;
  3935. }
  3936. _ACEOF
  3937. ac_clean_files_save=$ac_clean_files
  3938. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3939. # Try to create an executable without -o first, disregard a.out.
  3940. # It will help us diagnose broken compilers, and finding out an intuition
  3941. # of exeext.
  3942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3943. $as_echo_n "checking whether the C compiler works... " >&6; }
  3944. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3945. # The possible output files:
  3946. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3947. ac_rmfiles=
  3948. for ac_file in $ac_files
  3949. do
  3950. case $ac_file in
  3951. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3952. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3953. esac
  3954. done
  3955. rm -f $ac_rmfiles
  3956. if { { ac_try="$ac_link_default"
  3957. case "(($ac_try" in
  3958. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3959. *) ac_try_echo=$ac_try;;
  3960. esac
  3961. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3962. $as_echo "$ac_try_echo"; } >&5
  3963. (eval "$ac_link_default") 2>&5
  3964. ac_status=$?
  3965. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3966. test $ac_status = 0; }; then :
  3967. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3968. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3969. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3970. # so that the user can short-circuit this test for compilers unknown to
  3971. # Autoconf.
  3972. for ac_file in $ac_files ''
  3973. do
  3974. test -f "$ac_file" || continue
  3975. case $ac_file in
  3976. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3977. ;;
  3978. [ab].out )
  3979. # We found the default executable, but exeext='' is most
  3980. # certainly right.
  3981. break;;
  3982. *.* )
  3983. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3984. then :; else
  3985. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3986. fi
  3987. # We set ac_cv_exeext here because the later test for it is not
  3988. # safe: cross compilers may not add the suffix if given an `-o'
  3989. # argument, so we may need to know it at that point already.
  3990. # Even if this section looks crufty: it has the advantage of
  3991. # actually working.
  3992. break;;
  3993. * )
  3994. break;;
  3995. esac
  3996. done
  3997. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3998. else
  3999. ac_file=''
  4000. fi
  4001. if test -z "$ac_file"; then :
  4002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4003. $as_echo "no" >&6; }
  4004. $as_echo "$as_me: failed program was:" >&5
  4005. sed 's/^/| /' conftest.$ac_ext >&5
  4006. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4007. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4008. as_fn_error 77 "C compiler cannot create executables
  4009. See \`config.log' for more details" "$LINENO" 5; }
  4010. else
  4011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4012. $as_echo "yes" >&6; }
  4013. fi
  4014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  4015. $as_echo_n "checking for C compiler default output file name... " >&6; }
  4016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  4017. $as_echo "$ac_file" >&6; }
  4018. ac_exeext=$ac_cv_exeext
  4019. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  4020. ac_clean_files=$ac_clean_files_save
  4021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4022. $as_echo_n "checking for suffix of executables... " >&6; }
  4023. if { { ac_try="$ac_link"
  4024. case "(($ac_try" in
  4025. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4026. *) ac_try_echo=$ac_try;;
  4027. esac
  4028. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4029. $as_echo "$ac_try_echo"; } >&5
  4030. (eval "$ac_link") 2>&5
  4031. ac_status=$?
  4032. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4033. test $ac_status = 0; }; then :
  4034. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  4035. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  4036. # work properly (i.e., refer to `conftest.exe'), while it won't with
  4037. # `rm'.
  4038. for ac_file in conftest.exe conftest conftest.*; do
  4039. test -f "$ac_file" || continue
  4040. case $ac_file in
  4041. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4042. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4043. break;;
  4044. * ) break;;
  4045. esac
  4046. done
  4047. else
  4048. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4049. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4050. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  4051. See \`config.log' for more details" "$LINENO" 5; }
  4052. fi
  4053. rm -f conftest conftest$ac_cv_exeext
  4054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4055. $as_echo "$ac_cv_exeext" >&6; }
  4056. rm -f conftest.$ac_ext
  4057. EXEEXT=$ac_cv_exeext
  4058. ac_exeext=$EXEEXT
  4059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4060. /* end confdefs.h. */
  4061. #include <stdio.h>
  4062. int
  4063. main ()
  4064. {
  4065. FILE *f = fopen ("conftest.out", "w");
  4066. return ferror (f) || fclose (f) != 0;
  4067. ;
  4068. return 0;
  4069. }
  4070. _ACEOF
  4071. ac_clean_files="$ac_clean_files conftest.out"
  4072. # Check that the compiler produces executables we can run. If not, either
  4073. # the compiler is broken, or we cross compile.
  4074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4075. $as_echo_n "checking whether we are cross compiling... " >&6; }
  4076. if test "$cross_compiling" != yes; then
  4077. { { ac_try="$ac_link"
  4078. case "(($ac_try" in
  4079. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4080. *) ac_try_echo=$ac_try;;
  4081. esac
  4082. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4083. $as_echo "$ac_try_echo"; } >&5
  4084. (eval "$ac_link") 2>&5
  4085. ac_status=$?
  4086. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4087. test $ac_status = 0; }
  4088. if { ac_try='./conftest$ac_cv_exeext'
  4089. { { case "(($ac_try" in
  4090. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4091. *) ac_try_echo=$ac_try;;
  4092. esac
  4093. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4094. $as_echo "$ac_try_echo"; } >&5
  4095. (eval "$ac_try") 2>&5
  4096. ac_status=$?
  4097. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4098. test $ac_status = 0; }; }; then
  4099. cross_compiling=no
  4100. else
  4101. if test "$cross_compiling" = maybe; then
  4102. cross_compiling=yes
  4103. else
  4104. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4105. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4106. as_fn_error $? "cannot run C compiled programs.
  4107. If you meant to cross compile, use \`--host'.
  4108. See \`config.log' for more details" "$LINENO" 5; }
  4109. fi
  4110. fi
  4111. fi
  4112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4113. $as_echo "$cross_compiling" >&6; }
  4114. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  4115. ac_clean_files=$ac_clean_files_save
  4116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4117. $as_echo_n "checking for suffix of object files... " >&6; }
  4118. if ${ac_cv_objext+:} false; then :
  4119. $as_echo_n "(cached) " >&6
  4120. else
  4121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4122. /* end confdefs.h. */
  4123. int
  4124. main ()
  4125. {
  4126. ;
  4127. return 0;
  4128. }
  4129. _ACEOF
  4130. rm -f conftest.o conftest.obj
  4131. if { { ac_try="$ac_compile"
  4132. case "(($ac_try" in
  4133. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4134. *) ac_try_echo=$ac_try;;
  4135. esac
  4136. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4137. $as_echo "$ac_try_echo"; } >&5
  4138. (eval "$ac_compile") 2>&5
  4139. ac_status=$?
  4140. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4141. test $ac_status = 0; }; then :
  4142. for ac_file in conftest.o conftest.obj conftest.*; do
  4143. test -f "$ac_file" || continue;
  4144. case $ac_file in
  4145. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4146. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4147. break;;
  4148. esac
  4149. done
  4150. else
  4151. $as_echo "$as_me: failed program was:" >&5
  4152. sed 's/^/| /' conftest.$ac_ext >&5
  4153. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4154. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4155. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4156. See \`config.log' for more details" "$LINENO" 5; }
  4157. fi
  4158. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4159. fi
  4160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4161. $as_echo "$ac_cv_objext" >&6; }
  4162. OBJEXT=$ac_cv_objext
  4163. ac_objext=$OBJEXT
  4164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4165. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4166. if ${ac_cv_c_compiler_gnu+:} false; then :
  4167. $as_echo_n "(cached) " >&6
  4168. else
  4169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4170. /* end confdefs.h. */
  4171. int
  4172. main ()
  4173. {
  4174. #ifndef __GNUC__
  4175. choke me
  4176. #endif
  4177. ;
  4178. return 0;
  4179. }
  4180. _ACEOF
  4181. if ac_fn_c_try_compile "$LINENO"; then :
  4182. ac_compiler_gnu=yes
  4183. else
  4184. ac_compiler_gnu=no
  4185. fi
  4186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4187. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4188. fi
  4189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4190. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4191. if test $ac_compiler_gnu = yes; then
  4192. GCC=yes
  4193. else
  4194. GCC=
  4195. fi
  4196. ac_test_CFLAGS=${CFLAGS+set}
  4197. ac_save_CFLAGS=$CFLAGS
  4198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4199. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4200. if ${ac_cv_prog_cc_g+:} false; then :
  4201. $as_echo_n "(cached) " >&6
  4202. else
  4203. ac_save_c_werror_flag=$ac_c_werror_flag
  4204. ac_c_werror_flag=yes
  4205. ac_cv_prog_cc_g=no
  4206. CFLAGS="-g"
  4207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4208. /* end confdefs.h. */
  4209. int
  4210. main ()
  4211. {
  4212. ;
  4213. return 0;
  4214. }
  4215. _ACEOF
  4216. if ac_fn_c_try_compile "$LINENO"; then :
  4217. ac_cv_prog_cc_g=yes
  4218. else
  4219. CFLAGS=""
  4220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4221. /* end confdefs.h. */
  4222. int
  4223. main ()
  4224. {
  4225. ;
  4226. return 0;
  4227. }
  4228. _ACEOF
  4229. if ac_fn_c_try_compile "$LINENO"; then :
  4230. else
  4231. ac_c_werror_flag=$ac_save_c_werror_flag
  4232. CFLAGS="-g"
  4233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4234. /* end confdefs.h. */
  4235. int
  4236. main ()
  4237. {
  4238. ;
  4239. return 0;
  4240. }
  4241. _ACEOF
  4242. if ac_fn_c_try_compile "$LINENO"; then :
  4243. ac_cv_prog_cc_g=yes
  4244. fi
  4245. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4246. fi
  4247. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4248. fi
  4249. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4250. ac_c_werror_flag=$ac_save_c_werror_flag
  4251. fi
  4252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4253. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4254. if test "$ac_test_CFLAGS" = set; then
  4255. CFLAGS=$ac_save_CFLAGS
  4256. elif test $ac_cv_prog_cc_g = yes; then
  4257. if test "$GCC" = yes; then
  4258. CFLAGS="-g -O2"
  4259. else
  4260. CFLAGS="-g"
  4261. fi
  4262. else
  4263. if test "$GCC" = yes; then
  4264. CFLAGS="-O2"
  4265. else
  4266. CFLAGS=
  4267. fi
  4268. fi
  4269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4270. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4271. if ${ac_cv_prog_cc_c89+:} false; then :
  4272. $as_echo_n "(cached) " >&6
  4273. else
  4274. ac_cv_prog_cc_c89=no
  4275. ac_save_CC=$CC
  4276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4277. /* end confdefs.h. */
  4278. #include <stdarg.h>
  4279. #include <stdio.h>
  4280. struct stat;
  4281. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4282. struct buf { int x; };
  4283. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4284. static char *e (p, i)
  4285. char **p;
  4286. int i;
  4287. {
  4288. return p[i];
  4289. }
  4290. static char *f (char * (*g) (char **, int), char **p, ...)
  4291. {
  4292. char *s;
  4293. va_list v;
  4294. va_start (v,p);
  4295. s = g (p, va_arg (v,int));
  4296. va_end (v);
  4297. return s;
  4298. }
  4299. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4300. function prototypes and stuff, but not '\xHH' hex character constants.
  4301. These don't provoke an error unfortunately, instead are silently treated
  4302. as 'x'. The following induces an error, until -std is added to get
  4303. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4304. array size at least. It's necessary to write '\x00'==0 to get something
  4305. that's true only with -std. */
  4306. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4307. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4308. inside strings and character constants. */
  4309. #define FOO(x) 'x'
  4310. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4311. int test (int i, double x);
  4312. struct s1 {int (*f) (int a);};
  4313. struct s2 {int (*f) (double a);};
  4314. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4315. int argc;
  4316. char **argv;
  4317. int
  4318. main ()
  4319. {
  4320. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4321. ;
  4322. return 0;
  4323. }
  4324. _ACEOF
  4325. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4326. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4327. do
  4328. CC="$ac_save_CC $ac_arg"
  4329. if ac_fn_c_try_compile "$LINENO"; then :
  4330. ac_cv_prog_cc_c89=$ac_arg
  4331. fi
  4332. rm -f core conftest.err conftest.$ac_objext
  4333. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4334. done
  4335. rm -f conftest.$ac_ext
  4336. CC=$ac_save_CC
  4337. fi
  4338. # AC_CACHE_VAL
  4339. case "x$ac_cv_prog_cc_c89" in
  4340. x)
  4341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4342. $as_echo "none needed" >&6; } ;;
  4343. xno)
  4344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4345. $as_echo "unsupported" >&6; } ;;
  4346. *)
  4347. CC="$CC $ac_cv_prog_cc_c89"
  4348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4349. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4350. esac
  4351. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4352. fi
  4353. ac_ext=c
  4354. ac_cpp='$CPP $CPPFLAGS'
  4355. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4356. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4357. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4358. ac_ext=c
  4359. ac_cpp='$CPP $CPPFLAGS'
  4360. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4361. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4362. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4364. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4365. if ${am_cv_prog_cc_c_o+:} false; then :
  4366. $as_echo_n "(cached) " >&6
  4367. else
  4368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4369. /* end confdefs.h. */
  4370. int
  4371. main ()
  4372. {
  4373. ;
  4374. return 0;
  4375. }
  4376. _ACEOF
  4377. # Make sure it works both with $CC and with simple cc.
  4378. # Following AC_PROG_CC_C_O, we do the test twice because some
  4379. # compilers refuse to overwrite an existing .o file with -o,
  4380. # though they will create one.
  4381. am_cv_prog_cc_c_o=yes
  4382. for am_i in 1 2; do
  4383. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4384. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4385. ac_status=$?
  4386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4387. (exit $ac_status); } \
  4388. && test -f conftest2.$ac_objext; then
  4389. : OK
  4390. else
  4391. am_cv_prog_cc_c_o=no
  4392. break
  4393. fi
  4394. done
  4395. rm -f core conftest*
  4396. unset am_i
  4397. fi
  4398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4399. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4400. if test "$am_cv_prog_cc_c_o" != yes; then
  4401. # Losing compiler, so override with the script.
  4402. # FIXME: It is wrong to rewrite CC.
  4403. # But if we don't then we get into trouble of one sort or another.
  4404. # A longer-term fix would be to have automake use am__CC in this case,
  4405. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4406. CC="$am_aux_dir/compile $CC"
  4407. fi
  4408. ac_ext=c
  4409. ac_cpp='$CPP $CPPFLAGS'
  4410. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4411. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4412. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4413. depcc="$CC" am_compiler_list=
  4414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4415. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4416. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4417. $as_echo_n "(cached) " >&6
  4418. else
  4419. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4420. # We make a subdir and do the tests there. Otherwise we can end up
  4421. # making bogus files that we don't know about and never remove. For
  4422. # instance it was reported that on HP-UX the gcc test will end up
  4423. # making a dummy file named 'D' -- because '-MD' means "put the output
  4424. # in D".
  4425. rm -rf conftest.dir
  4426. mkdir conftest.dir
  4427. # Copy depcomp to subdir because otherwise we won't find it if we're
  4428. # using a relative directory.
  4429. cp "$am_depcomp" conftest.dir
  4430. cd conftest.dir
  4431. # We will build objects and dependencies in a subdirectory because
  4432. # it helps to detect inapplicable dependency modes. For instance
  4433. # both Tru64's cc and ICC support -MD to output dependencies as a
  4434. # side effect of compilation, but ICC will put the dependencies in
  4435. # the current directory while Tru64 will put them in the object
  4436. # directory.
  4437. mkdir sub
  4438. am_cv_CC_dependencies_compiler_type=none
  4439. if test "$am_compiler_list" = ""; then
  4440. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4441. fi
  4442. am__universal=false
  4443. case " $depcc " in #(
  4444. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4445. esac
  4446. for depmode in $am_compiler_list; do
  4447. # Setup a source with many dependencies, because some compilers
  4448. # like to wrap large dependency lists on column 80 (with \), and
  4449. # we should not choose a depcomp mode which is confused by this.
  4450. #
  4451. # We need to recreate these files for each test, as the compiler may
  4452. # overwrite some of them when testing with obscure command lines.
  4453. # This happens at least with the AIX C compiler.
  4454. : > sub/conftest.c
  4455. for i in 1 2 3 4 5 6; do
  4456. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4457. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4458. # Solaris 10 /bin/sh.
  4459. echo '/* dummy */' > sub/conftst$i.h
  4460. done
  4461. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4462. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4463. # mode. It turns out that the SunPro C++ compiler does not properly
  4464. # handle '-M -o', and we need to detect this. Also, some Intel
  4465. # versions had trouble with output in subdirs.
  4466. am__obj=sub/conftest.${OBJEXT-o}
  4467. am__minus_obj="-o $am__obj"
  4468. case $depmode in
  4469. gcc)
  4470. # This depmode causes a compiler race in universal mode.
  4471. test "$am__universal" = false || continue
  4472. ;;
  4473. nosideeffect)
  4474. # After this tag, mechanisms are not by side-effect, so they'll
  4475. # only be used when explicitly requested.
  4476. if test "x$enable_dependency_tracking" = xyes; then
  4477. continue
  4478. else
  4479. break
  4480. fi
  4481. ;;
  4482. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4483. # This compiler won't grok '-c -o', but also, the minuso test has
  4484. # not run yet. These depmodes are late enough in the game, and
  4485. # so weak that their functioning should not be impacted.
  4486. am__obj=conftest.${OBJEXT-o}
  4487. am__minus_obj=
  4488. ;;
  4489. none) break ;;
  4490. esac
  4491. if depmode=$depmode \
  4492. source=sub/conftest.c object=$am__obj \
  4493. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4494. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4495. >/dev/null 2>conftest.err &&
  4496. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4497. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4498. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4499. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4500. # icc doesn't choke on unknown options, it will just issue warnings
  4501. # or remarks (even with -Werror). So we grep stderr for any message
  4502. # that says an option was ignored or not supported.
  4503. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4504. # icc: Command line warning: ignoring option '-M'; no argument required
  4505. # The diagnosis changed in icc 8.0:
  4506. # icc: Command line remark: option '-MP' not supported
  4507. if (grep 'ignoring option' conftest.err ||
  4508. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4509. am_cv_CC_dependencies_compiler_type=$depmode
  4510. break
  4511. fi
  4512. fi
  4513. done
  4514. cd ..
  4515. rm -rf conftest.dir
  4516. else
  4517. am_cv_CC_dependencies_compiler_type=none
  4518. fi
  4519. fi
  4520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4521. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4522. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4523. if
  4524. test "x$enable_dependency_tracking" != xno \
  4525. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4526. am__fastdepCC_TRUE=
  4527. am__fastdepCC_FALSE='#'
  4528. else
  4529. am__fastdepCC_TRUE='#'
  4530. am__fastdepCC_FALSE=
  4531. fi
  4532. if test -n "$ac_tool_prefix"; then
  4533. for ac_prog in ar lib "link -lib"
  4534. do
  4535. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4536. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4538. $as_echo_n "checking for $ac_word... " >&6; }
  4539. if ${ac_cv_prog_AR+:} false; then :
  4540. $as_echo_n "(cached) " >&6
  4541. else
  4542. if test -n "$AR"; then
  4543. ac_cv_prog_AR="$AR" # Let the user override the test.
  4544. else
  4545. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4546. for as_dir in $PATH
  4547. do
  4548. IFS=$as_save_IFS
  4549. test -z "$as_dir" && as_dir=.
  4550. for ac_exec_ext in '' $ac_executable_extensions; do
  4551. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4552. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4553. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4554. break 2
  4555. fi
  4556. done
  4557. done
  4558. IFS=$as_save_IFS
  4559. fi
  4560. fi
  4561. AR=$ac_cv_prog_AR
  4562. if test -n "$AR"; then
  4563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4564. $as_echo "$AR" >&6; }
  4565. else
  4566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4567. $as_echo "no" >&6; }
  4568. fi
  4569. test -n "$AR" && break
  4570. done
  4571. fi
  4572. if test -z "$AR"; then
  4573. ac_ct_AR=$AR
  4574. for ac_prog in ar lib "link -lib"
  4575. do
  4576. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4577. set dummy $ac_prog; ac_word=$2
  4578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4579. $as_echo_n "checking for $ac_word... " >&6; }
  4580. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4581. $as_echo_n "(cached) " >&6
  4582. else
  4583. if test -n "$ac_ct_AR"; then
  4584. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4585. else
  4586. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4587. for as_dir in $PATH
  4588. do
  4589. IFS=$as_save_IFS
  4590. test -z "$as_dir" && as_dir=.
  4591. for ac_exec_ext in '' $ac_executable_extensions; do
  4592. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4593. ac_cv_prog_ac_ct_AR="$ac_prog"
  4594. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4595. break 2
  4596. fi
  4597. done
  4598. done
  4599. IFS=$as_save_IFS
  4600. fi
  4601. fi
  4602. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4603. if test -n "$ac_ct_AR"; then
  4604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4605. $as_echo "$ac_ct_AR" >&6; }
  4606. else
  4607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4608. $as_echo "no" >&6; }
  4609. fi
  4610. test -n "$ac_ct_AR" && break
  4611. done
  4612. if test "x$ac_ct_AR" = x; then
  4613. AR="false"
  4614. else
  4615. case $cross_compiling:$ac_tool_warned in
  4616. yes:)
  4617. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4618. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4619. ac_tool_warned=yes ;;
  4620. esac
  4621. AR=$ac_ct_AR
  4622. fi
  4623. fi
  4624. : ${AR=ar}
  4625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  4626. $as_echo_n "checking the archiver ($AR) interface... " >&6; }
  4627. if ${am_cv_ar_interface+:} false; then :
  4628. $as_echo_n "(cached) " >&6
  4629. else
  4630. ac_ext=c
  4631. ac_cpp='$CPP $CPPFLAGS'
  4632. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4633. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4634. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4635. am_cv_ar_interface=ar
  4636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4637. /* end confdefs.h. */
  4638. int some_variable = 0;
  4639. _ACEOF
  4640. if ac_fn_c_try_compile "$LINENO"; then :
  4641. am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  4642. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4643. (eval $am_ar_try) 2>&5
  4644. ac_status=$?
  4645. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4646. test $ac_status = 0; }
  4647. if test "$ac_status" -eq 0; then
  4648. am_cv_ar_interface=ar
  4649. else
  4650. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  4651. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4652. (eval $am_ar_try) 2>&5
  4653. ac_status=$?
  4654. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4655. test $ac_status = 0; }
  4656. if test "$ac_status" -eq 0; then
  4657. am_cv_ar_interface=lib
  4658. else
  4659. am_cv_ar_interface=unknown
  4660. fi
  4661. fi
  4662. rm -f conftest.lib libconftest.a
  4663. fi
  4664. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4665. ac_ext=c
  4666. ac_cpp='$CPP $CPPFLAGS'
  4667. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4668. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4669. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4670. fi
  4671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  4672. $as_echo "$am_cv_ar_interface" >&6; }
  4673. case $am_cv_ar_interface in
  4674. ar)
  4675. ;;
  4676. lib)
  4677. # Microsoft lib, so override with the ar-lib wrapper script.
  4678. # FIXME: It is wrong to rewrite AR.
  4679. # But if we don't then we get into trouble of one sort or another.
  4680. # A longer-term fix would be to have automake use am__AR in this case,
  4681. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  4682. # similar.
  4683. AR="$am_aux_dir/ar-lib $AR"
  4684. ;;
  4685. unknown)
  4686. as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  4687. ;;
  4688. esac
  4689. case `pwd` in
  4690. *\ * | *\ *)
  4691. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4692. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4693. esac
  4694. macro_version='2.4.6'
  4695. macro_revision='2.4.6'
  4696. ltmain=$ac_aux_dir/ltmain.sh
  4697. # Backslashify metacharacters that are still active within
  4698. # double-quoted strings.
  4699. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4700. # Same as above, but do not quote variable references.
  4701. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4702. # Sed substitution to delay expansion of an escaped shell variable in a
  4703. # double_quote_subst'ed string.
  4704. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4705. # Sed substitution to delay expansion of an escaped single quote.
  4706. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4707. # Sed substitution to avoid accidental globbing in evaled expressions
  4708. no_glob_subst='s/\*/\\\*/g'
  4709. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4710. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4711. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4713. $as_echo_n "checking how to print strings... " >&6; }
  4714. # Test print first, because it will be a builtin if present.
  4715. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4716. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4717. ECHO='print -r --'
  4718. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4719. ECHO='printf %s\n'
  4720. else
  4721. # Use this function as a fallback that always works.
  4722. func_fallback_echo ()
  4723. {
  4724. eval 'cat <<_LTECHO_EOF
  4725. $1
  4726. _LTECHO_EOF'
  4727. }
  4728. ECHO='func_fallback_echo'
  4729. fi
  4730. # func_echo_all arg...
  4731. # Invoke $ECHO with all args, space-separated.
  4732. func_echo_all ()
  4733. {
  4734. $ECHO ""
  4735. }
  4736. case $ECHO in
  4737. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4738. $as_echo "printf" >&6; } ;;
  4739. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4740. $as_echo "print -r" >&6; } ;;
  4741. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4742. $as_echo "cat" >&6; } ;;
  4743. esac
  4744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4745. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4746. if ${ac_cv_path_SED+:} false; then :
  4747. $as_echo_n "(cached) " >&6
  4748. else
  4749. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4750. for ac_i in 1 2 3 4 5 6 7; do
  4751. ac_script="$ac_script$as_nl$ac_script"
  4752. done
  4753. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4754. { ac_script=; unset ac_script;}
  4755. if test -z "$SED"; then
  4756. ac_path_SED_found=false
  4757. # Loop through the user's path and test for each of PROGNAME-LIST
  4758. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4759. for as_dir in $PATH
  4760. do
  4761. IFS=$as_save_IFS
  4762. test -z "$as_dir" && as_dir=.
  4763. for ac_prog in sed gsed; do
  4764. for ac_exec_ext in '' $ac_executable_extensions; do
  4765. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4766. as_fn_executable_p "$ac_path_SED" || continue
  4767. # Check for GNU ac_path_SED and select it if it is found.
  4768. # Check for GNU $ac_path_SED
  4769. case `"$ac_path_SED" --version 2>&1` in
  4770. *GNU*)
  4771. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4772. *)
  4773. ac_count=0
  4774. $as_echo_n 0123456789 >"conftest.in"
  4775. while :
  4776. do
  4777. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4778. mv "conftest.tmp" "conftest.in"
  4779. cp "conftest.in" "conftest.nl"
  4780. $as_echo '' >> "conftest.nl"
  4781. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4782. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4783. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4784. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4785. # Best one so far, save it but keep looking for a better one
  4786. ac_cv_path_SED="$ac_path_SED"
  4787. ac_path_SED_max=$ac_count
  4788. fi
  4789. # 10*(2^10) chars as input seems more than enough
  4790. test $ac_count -gt 10 && break
  4791. done
  4792. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4793. esac
  4794. $ac_path_SED_found && break 3
  4795. done
  4796. done
  4797. done
  4798. IFS=$as_save_IFS
  4799. if test -z "$ac_cv_path_SED"; then
  4800. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4801. fi
  4802. else
  4803. ac_cv_path_SED=$SED
  4804. fi
  4805. fi
  4806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4807. $as_echo "$ac_cv_path_SED" >&6; }
  4808. SED="$ac_cv_path_SED"
  4809. rm -f conftest.sed
  4810. test -z "$SED" && SED=sed
  4811. Xsed="$SED -e 1s/^X//"
  4812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4813. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4814. if ${ac_cv_path_GREP+:} false; then :
  4815. $as_echo_n "(cached) " >&6
  4816. else
  4817. if test -z "$GREP"; then
  4818. ac_path_GREP_found=false
  4819. # Loop through the user's path and test for each of PROGNAME-LIST
  4820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4821. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4822. do
  4823. IFS=$as_save_IFS
  4824. test -z "$as_dir" && as_dir=.
  4825. for ac_prog in grep ggrep; do
  4826. for ac_exec_ext in '' $ac_executable_extensions; do
  4827. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4828. as_fn_executable_p "$ac_path_GREP" || continue
  4829. # Check for GNU ac_path_GREP and select it if it is found.
  4830. # Check for GNU $ac_path_GREP
  4831. case `"$ac_path_GREP" --version 2>&1` in
  4832. *GNU*)
  4833. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4834. *)
  4835. ac_count=0
  4836. $as_echo_n 0123456789 >"conftest.in"
  4837. while :
  4838. do
  4839. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4840. mv "conftest.tmp" "conftest.in"
  4841. cp "conftest.in" "conftest.nl"
  4842. $as_echo 'GREP' >> "conftest.nl"
  4843. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4844. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4845. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4846. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4847. # Best one so far, save it but keep looking for a better one
  4848. ac_cv_path_GREP="$ac_path_GREP"
  4849. ac_path_GREP_max=$ac_count
  4850. fi
  4851. # 10*(2^10) chars as input seems more than enough
  4852. test $ac_count -gt 10 && break
  4853. done
  4854. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4855. esac
  4856. $ac_path_GREP_found && break 3
  4857. done
  4858. done
  4859. done
  4860. IFS=$as_save_IFS
  4861. if test -z "$ac_cv_path_GREP"; then
  4862. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4863. fi
  4864. else
  4865. ac_cv_path_GREP=$GREP
  4866. fi
  4867. fi
  4868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4869. $as_echo "$ac_cv_path_GREP" >&6; }
  4870. GREP="$ac_cv_path_GREP"
  4871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4872. $as_echo_n "checking for egrep... " >&6; }
  4873. if ${ac_cv_path_EGREP+:} false; then :
  4874. $as_echo_n "(cached) " >&6
  4875. else
  4876. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4877. then ac_cv_path_EGREP="$GREP -E"
  4878. else
  4879. if test -z "$EGREP"; then
  4880. ac_path_EGREP_found=false
  4881. # Loop through the user's path and test for each of PROGNAME-LIST
  4882. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4883. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4884. do
  4885. IFS=$as_save_IFS
  4886. test -z "$as_dir" && as_dir=.
  4887. for ac_prog in egrep; do
  4888. for ac_exec_ext in '' $ac_executable_extensions; do
  4889. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4890. as_fn_executable_p "$ac_path_EGREP" || continue
  4891. # Check for GNU ac_path_EGREP and select it if it is found.
  4892. # Check for GNU $ac_path_EGREP
  4893. case `"$ac_path_EGREP" --version 2>&1` in
  4894. *GNU*)
  4895. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4896. *)
  4897. ac_count=0
  4898. $as_echo_n 0123456789 >"conftest.in"
  4899. while :
  4900. do
  4901. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4902. mv "conftest.tmp" "conftest.in"
  4903. cp "conftest.in" "conftest.nl"
  4904. $as_echo 'EGREP' >> "conftest.nl"
  4905. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4906. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4907. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4908. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4909. # Best one so far, save it but keep looking for a better one
  4910. ac_cv_path_EGREP="$ac_path_EGREP"
  4911. ac_path_EGREP_max=$ac_count
  4912. fi
  4913. # 10*(2^10) chars as input seems more than enough
  4914. test $ac_count -gt 10 && break
  4915. done
  4916. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4917. esac
  4918. $ac_path_EGREP_found && break 3
  4919. done
  4920. done
  4921. done
  4922. IFS=$as_save_IFS
  4923. if test -z "$ac_cv_path_EGREP"; then
  4924. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4925. fi
  4926. else
  4927. ac_cv_path_EGREP=$EGREP
  4928. fi
  4929. fi
  4930. fi
  4931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4932. $as_echo "$ac_cv_path_EGREP" >&6; }
  4933. EGREP="$ac_cv_path_EGREP"
  4934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4935. $as_echo_n "checking for fgrep... " >&6; }
  4936. if ${ac_cv_path_FGREP+:} false; then :
  4937. $as_echo_n "(cached) " >&6
  4938. else
  4939. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4940. then ac_cv_path_FGREP="$GREP -F"
  4941. else
  4942. if test -z "$FGREP"; then
  4943. ac_path_FGREP_found=false
  4944. # Loop through the user's path and test for each of PROGNAME-LIST
  4945. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4946. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4947. do
  4948. IFS=$as_save_IFS
  4949. test -z "$as_dir" && as_dir=.
  4950. for ac_prog in fgrep; do
  4951. for ac_exec_ext in '' $ac_executable_extensions; do
  4952. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4953. as_fn_executable_p "$ac_path_FGREP" || continue
  4954. # Check for GNU ac_path_FGREP and select it if it is found.
  4955. # Check for GNU $ac_path_FGREP
  4956. case `"$ac_path_FGREP" --version 2>&1` in
  4957. *GNU*)
  4958. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4959. *)
  4960. ac_count=0
  4961. $as_echo_n 0123456789 >"conftest.in"
  4962. while :
  4963. do
  4964. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4965. mv "conftest.tmp" "conftest.in"
  4966. cp "conftest.in" "conftest.nl"
  4967. $as_echo 'FGREP' >> "conftest.nl"
  4968. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4969. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4970. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4971. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4972. # Best one so far, save it but keep looking for a better one
  4973. ac_cv_path_FGREP="$ac_path_FGREP"
  4974. ac_path_FGREP_max=$ac_count
  4975. fi
  4976. # 10*(2^10) chars as input seems more than enough
  4977. test $ac_count -gt 10 && break
  4978. done
  4979. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4980. esac
  4981. $ac_path_FGREP_found && break 3
  4982. done
  4983. done
  4984. done
  4985. IFS=$as_save_IFS
  4986. if test -z "$ac_cv_path_FGREP"; then
  4987. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4988. fi
  4989. else
  4990. ac_cv_path_FGREP=$FGREP
  4991. fi
  4992. fi
  4993. fi
  4994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4995. $as_echo "$ac_cv_path_FGREP" >&6; }
  4996. FGREP="$ac_cv_path_FGREP"
  4997. test -z "$GREP" && GREP=grep
  4998. # Check whether --with-gnu-ld was given.
  4999. if test "${with_gnu_ld+set}" = set; then :
  5000. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  5001. else
  5002. with_gnu_ld=no
  5003. fi
  5004. ac_prog=ld
  5005. if test yes = "$GCC"; then
  5006. # Check if gcc -print-prog-name=ld gives a path.
  5007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5008. $as_echo_n "checking for ld used by $CC... " >&6; }
  5009. case $host in
  5010. *-*-mingw*)
  5011. # gcc leaves a trailing carriage return, which upsets mingw
  5012. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5013. *)
  5014. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5015. esac
  5016. case $ac_prog in
  5017. # Accept absolute paths.
  5018. [\\/]* | ?:[\\/]*)
  5019. re_direlt='/[^/][^/]*/\.\./'
  5020. # Canonicalize the pathname of ld
  5021. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5022. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5023. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5024. done
  5025. test -z "$LD" && LD=$ac_prog
  5026. ;;
  5027. "")
  5028. # If it fails, then pretend we aren't using GCC.
  5029. ac_prog=ld
  5030. ;;
  5031. *)
  5032. # If it is relative, then search for the first ld in PATH.
  5033. with_gnu_ld=unknown
  5034. ;;
  5035. esac
  5036. elif test yes = "$with_gnu_ld"; then
  5037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5038. $as_echo_n "checking for GNU ld... " >&6; }
  5039. else
  5040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5041. $as_echo_n "checking for non-GNU ld... " >&6; }
  5042. fi
  5043. if ${lt_cv_path_LD+:} false; then :
  5044. $as_echo_n "(cached) " >&6
  5045. else
  5046. if test -z "$LD"; then
  5047. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5048. for ac_dir in $PATH; do
  5049. IFS=$lt_save_ifs
  5050. test -z "$ac_dir" && ac_dir=.
  5051. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5052. lt_cv_path_LD=$ac_dir/$ac_prog
  5053. # Check to see if the program is GNU ld. I'd rather use --version,
  5054. # but apparently some variants of GNU ld only accept -v.
  5055. # Break only if it was the GNU/non-GNU ld that we prefer.
  5056. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5057. *GNU* | *'with BFD'*)
  5058. test no != "$with_gnu_ld" && break
  5059. ;;
  5060. *)
  5061. test yes != "$with_gnu_ld" && break
  5062. ;;
  5063. esac
  5064. fi
  5065. done
  5066. IFS=$lt_save_ifs
  5067. else
  5068. lt_cv_path_LD=$LD # Let the user override the test with a path.
  5069. fi
  5070. fi
  5071. LD=$lt_cv_path_LD
  5072. if test -n "$LD"; then
  5073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5074. $as_echo "$LD" >&6; }
  5075. else
  5076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5077. $as_echo "no" >&6; }
  5078. fi
  5079. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5081. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5082. if ${lt_cv_prog_gnu_ld+:} false; then :
  5083. $as_echo_n "(cached) " >&6
  5084. else
  5085. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5086. case `$LD -v 2>&1 </dev/null` in
  5087. *GNU* | *'with BFD'*)
  5088. lt_cv_prog_gnu_ld=yes
  5089. ;;
  5090. *)
  5091. lt_cv_prog_gnu_ld=no
  5092. ;;
  5093. esac
  5094. fi
  5095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5096. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5097. with_gnu_ld=$lt_cv_prog_gnu_ld
  5098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5099. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5100. if ${lt_cv_path_NM+:} false; then :
  5101. $as_echo_n "(cached) " >&6
  5102. else
  5103. if test -n "$NM"; then
  5104. # Let the user override the test.
  5105. lt_cv_path_NM=$NM
  5106. else
  5107. lt_nm_to_check=${ac_tool_prefix}nm
  5108. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5109. lt_nm_to_check="$lt_nm_to_check nm"
  5110. fi
  5111. for lt_tmp_nm in $lt_nm_to_check; do
  5112. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5113. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5114. IFS=$lt_save_ifs
  5115. test -z "$ac_dir" && ac_dir=.
  5116. tmp_nm=$ac_dir/$lt_tmp_nm
  5117. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  5118. # Check to see if the nm accepts a BSD-compat flag.
  5119. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  5120. # nm: unknown option "B" ignored
  5121. # Tru64's nm complains that /dev/null is an invalid object file
  5122. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  5123. case $build_os in
  5124. mingw*) lt_bad_file=conftest.nm/nofile ;;
  5125. *) lt_bad_file=/dev/null ;;
  5126. esac
  5127. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  5128. *$lt_bad_file* | *'Invalid file or object type'*)
  5129. lt_cv_path_NM="$tmp_nm -B"
  5130. break 2
  5131. ;;
  5132. *)
  5133. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5134. */dev/null*)
  5135. lt_cv_path_NM="$tmp_nm -p"
  5136. break 2
  5137. ;;
  5138. *)
  5139. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5140. continue # so that we can try to find one that supports BSD flags
  5141. ;;
  5142. esac
  5143. ;;
  5144. esac
  5145. fi
  5146. done
  5147. IFS=$lt_save_ifs
  5148. done
  5149. : ${lt_cv_path_NM=no}
  5150. fi
  5151. fi
  5152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5153. $as_echo "$lt_cv_path_NM" >&6; }
  5154. if test no != "$lt_cv_path_NM"; then
  5155. NM=$lt_cv_path_NM
  5156. else
  5157. # Didn't find any BSD compatible name lister, look for dumpbin.
  5158. if test -n "$DUMPBIN"; then :
  5159. # Let the user override the test.
  5160. else
  5161. if test -n "$ac_tool_prefix"; then
  5162. for ac_prog in dumpbin "link -dump"
  5163. do
  5164. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5165. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5167. $as_echo_n "checking for $ac_word... " >&6; }
  5168. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5169. $as_echo_n "(cached) " >&6
  5170. else
  5171. if test -n "$DUMPBIN"; then
  5172. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5173. else
  5174. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5175. for as_dir in $PATH
  5176. do
  5177. IFS=$as_save_IFS
  5178. test -z "$as_dir" && as_dir=.
  5179. for ac_exec_ext in '' $ac_executable_extensions; do
  5180. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5181. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5182. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5183. break 2
  5184. fi
  5185. done
  5186. done
  5187. IFS=$as_save_IFS
  5188. fi
  5189. fi
  5190. DUMPBIN=$ac_cv_prog_DUMPBIN
  5191. if test -n "$DUMPBIN"; then
  5192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5193. $as_echo "$DUMPBIN" >&6; }
  5194. else
  5195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5196. $as_echo "no" >&6; }
  5197. fi
  5198. test -n "$DUMPBIN" && break
  5199. done
  5200. fi
  5201. if test -z "$DUMPBIN"; then
  5202. ac_ct_DUMPBIN=$DUMPBIN
  5203. for ac_prog in dumpbin "link -dump"
  5204. do
  5205. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5206. set dummy $ac_prog; ac_word=$2
  5207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5208. $as_echo_n "checking for $ac_word... " >&6; }
  5209. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5210. $as_echo_n "(cached) " >&6
  5211. else
  5212. if test -n "$ac_ct_DUMPBIN"; then
  5213. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5214. else
  5215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5216. for as_dir in $PATH
  5217. do
  5218. IFS=$as_save_IFS
  5219. test -z "$as_dir" && as_dir=.
  5220. for ac_exec_ext in '' $ac_executable_extensions; do
  5221. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5222. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5223. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5224. break 2
  5225. fi
  5226. done
  5227. done
  5228. IFS=$as_save_IFS
  5229. fi
  5230. fi
  5231. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5232. if test -n "$ac_ct_DUMPBIN"; then
  5233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5234. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5235. else
  5236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5237. $as_echo "no" >&6; }
  5238. fi
  5239. test -n "$ac_ct_DUMPBIN" && break
  5240. done
  5241. if test "x$ac_ct_DUMPBIN" = x; then
  5242. DUMPBIN=":"
  5243. else
  5244. case $cross_compiling:$ac_tool_warned in
  5245. yes:)
  5246. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5247. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5248. ac_tool_warned=yes ;;
  5249. esac
  5250. DUMPBIN=$ac_ct_DUMPBIN
  5251. fi
  5252. fi
  5253. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  5254. *COFF*)
  5255. DUMPBIN="$DUMPBIN -symbols -headers"
  5256. ;;
  5257. *)
  5258. DUMPBIN=:
  5259. ;;
  5260. esac
  5261. fi
  5262. if test : != "$DUMPBIN"; then
  5263. NM=$DUMPBIN
  5264. fi
  5265. fi
  5266. test -z "$NM" && NM=nm
  5267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5268. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5269. if ${lt_cv_nm_interface+:} false; then :
  5270. $as_echo_n "(cached) " >&6
  5271. else
  5272. lt_cv_nm_interface="BSD nm"
  5273. echo "int some_variable = 0;" > conftest.$ac_ext
  5274. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5275. (eval "$ac_compile" 2>conftest.err)
  5276. cat conftest.err >&5
  5277. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5278. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5279. cat conftest.err >&5
  5280. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5281. cat conftest.out >&5
  5282. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5283. lt_cv_nm_interface="MS dumpbin"
  5284. fi
  5285. rm -f conftest*
  5286. fi
  5287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5288. $as_echo "$lt_cv_nm_interface" >&6; }
  5289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5290. $as_echo_n "checking whether ln -s works... " >&6; }
  5291. LN_S=$as_ln_s
  5292. if test "$LN_S" = "ln -s"; then
  5293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5294. $as_echo "yes" >&6; }
  5295. else
  5296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5297. $as_echo "no, using $LN_S" >&6; }
  5298. fi
  5299. # find the maximum length of command line arguments
  5300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5301. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5302. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5303. $as_echo_n "(cached) " >&6
  5304. else
  5305. i=0
  5306. teststring=ABCD
  5307. case $build_os in
  5308. msdosdjgpp*)
  5309. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5310. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5311. # during glob expansion). Even if it were fixed, the result of this
  5312. # check would be larger than it should be.
  5313. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5314. ;;
  5315. gnu*)
  5316. # Under GNU Hurd, this test is not required because there is
  5317. # no limit to the length of command line arguments.
  5318. # Libtool will interpret -1 as no limit whatsoever
  5319. lt_cv_sys_max_cmd_len=-1;
  5320. ;;
  5321. cygwin* | mingw* | cegcc*)
  5322. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5323. # about 5 minutes as the teststring grows exponentially.
  5324. # Worse, since 9x/ME are not pre-emptively multitasking,
  5325. # you end up with a "frozen" computer, even though with patience
  5326. # the test eventually succeeds (with a max line length of 256k).
  5327. # Instead, let's just punt: use the minimum linelength reported by
  5328. # all of the supported platforms: 8192 (on NT/2K/XP).
  5329. lt_cv_sys_max_cmd_len=8192;
  5330. ;;
  5331. mint*)
  5332. # On MiNT this can take a long time and run out of memory.
  5333. lt_cv_sys_max_cmd_len=8192;
  5334. ;;
  5335. amigaos*)
  5336. # On AmigaOS with pdksh, this test takes hours, literally.
  5337. # So we just punt and use a minimum line length of 8192.
  5338. lt_cv_sys_max_cmd_len=8192;
  5339. ;;
  5340. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  5341. # This has been around since 386BSD, at least. Likely further.
  5342. if test -x /sbin/sysctl; then
  5343. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5344. elif test -x /usr/sbin/sysctl; then
  5345. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5346. else
  5347. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5348. fi
  5349. # And add a safety zone
  5350. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5351. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5352. ;;
  5353. interix*)
  5354. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5355. lt_cv_sys_max_cmd_len=196608
  5356. ;;
  5357. os2*)
  5358. # The test takes a long time on OS/2.
  5359. lt_cv_sys_max_cmd_len=8192
  5360. ;;
  5361. osf*)
  5362. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5363. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5364. # nice to cause kernel panics so lets avoid the loop below.
  5365. # First set a reasonable default.
  5366. lt_cv_sys_max_cmd_len=16384
  5367. #
  5368. if test -x /sbin/sysconfig; then
  5369. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5370. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5371. esac
  5372. fi
  5373. ;;
  5374. sco3.2v5*)
  5375. lt_cv_sys_max_cmd_len=102400
  5376. ;;
  5377. sysv5* | sco5v6* | sysv4.2uw2*)
  5378. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5379. if test -n "$kargmax"; then
  5380. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5381. else
  5382. lt_cv_sys_max_cmd_len=32768
  5383. fi
  5384. ;;
  5385. *)
  5386. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5387. if test -n "$lt_cv_sys_max_cmd_len" && \
  5388. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5389. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5390. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5391. else
  5392. # Make teststring a little bigger before we do anything with it.
  5393. # a 1K string should be a reasonable start.
  5394. for i in 1 2 3 4 5 6 7 8; do
  5395. teststring=$teststring$teststring
  5396. done
  5397. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5398. # If test is not a shell built-in, we'll probably end up computing a
  5399. # maximum length that is only half of the actual maximum length, but
  5400. # we can't tell.
  5401. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  5402. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5403. test 17 != "$i" # 1/2 MB should be enough
  5404. do
  5405. i=`expr $i + 1`
  5406. teststring=$teststring$teststring
  5407. done
  5408. # Only check the string length outside the loop.
  5409. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5410. teststring=
  5411. # Add a significant safety factor because C++ compilers can tack on
  5412. # massive amounts of additional arguments before passing them to the
  5413. # linker. It appears as though 1/2 is a usable value.
  5414. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5415. fi
  5416. ;;
  5417. esac
  5418. fi
  5419. if test -n "$lt_cv_sys_max_cmd_len"; then
  5420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5421. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5422. else
  5423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5424. $as_echo "none" >&6; }
  5425. fi
  5426. max_cmd_len=$lt_cv_sys_max_cmd_len
  5427. : ${CP="cp -f"}
  5428. : ${MV="mv -f"}
  5429. : ${RM="rm -f"}
  5430. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5431. lt_unset=unset
  5432. else
  5433. lt_unset=false
  5434. fi
  5435. # test EBCDIC or ASCII
  5436. case `echo X|tr X '\101'` in
  5437. A) # ASCII based system
  5438. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5439. lt_SP2NL='tr \040 \012'
  5440. lt_NL2SP='tr \015\012 \040\040'
  5441. ;;
  5442. *) # EBCDIC based system
  5443. lt_SP2NL='tr \100 \n'
  5444. lt_NL2SP='tr \r\n \100\100'
  5445. ;;
  5446. esac
  5447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5448. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5449. if ${lt_cv_to_host_file_cmd+:} false; then :
  5450. $as_echo_n "(cached) " >&6
  5451. else
  5452. case $host in
  5453. *-*-mingw* )
  5454. case $build in
  5455. *-*-mingw* ) # actually msys
  5456. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5457. ;;
  5458. *-*-cygwin* )
  5459. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5460. ;;
  5461. * ) # otherwise, assume *nix
  5462. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5463. ;;
  5464. esac
  5465. ;;
  5466. *-*-cygwin* )
  5467. case $build in
  5468. *-*-mingw* ) # actually msys
  5469. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5470. ;;
  5471. *-*-cygwin* )
  5472. lt_cv_to_host_file_cmd=func_convert_file_noop
  5473. ;;
  5474. * ) # otherwise, assume *nix
  5475. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5476. ;;
  5477. esac
  5478. ;;
  5479. * ) # unhandled hosts (and "normal" native builds)
  5480. lt_cv_to_host_file_cmd=func_convert_file_noop
  5481. ;;
  5482. esac
  5483. fi
  5484. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5486. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5488. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5489. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5490. $as_echo_n "(cached) " >&6
  5491. else
  5492. #assume ordinary cross tools, or native build.
  5493. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5494. case $host in
  5495. *-*-mingw* )
  5496. case $build in
  5497. *-*-mingw* ) # actually msys
  5498. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5499. ;;
  5500. esac
  5501. ;;
  5502. esac
  5503. fi
  5504. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5506. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5508. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5509. if ${lt_cv_ld_reload_flag+:} false; then :
  5510. $as_echo_n "(cached) " >&6
  5511. else
  5512. lt_cv_ld_reload_flag='-r'
  5513. fi
  5514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5515. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5516. reload_flag=$lt_cv_ld_reload_flag
  5517. case $reload_flag in
  5518. "" | " "*) ;;
  5519. *) reload_flag=" $reload_flag" ;;
  5520. esac
  5521. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5522. case $host_os in
  5523. cygwin* | mingw* | pw32* | cegcc*)
  5524. if test yes != "$GCC"; then
  5525. reload_cmds=false
  5526. fi
  5527. ;;
  5528. darwin*)
  5529. if test yes = "$GCC"; then
  5530. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5531. else
  5532. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5533. fi
  5534. ;;
  5535. esac
  5536. if test -n "$ac_tool_prefix"; then
  5537. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5538. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5540. $as_echo_n "checking for $ac_word... " >&6; }
  5541. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5542. $as_echo_n "(cached) " >&6
  5543. else
  5544. if test -n "$OBJDUMP"; then
  5545. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5546. else
  5547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5548. for as_dir in $PATH
  5549. do
  5550. IFS=$as_save_IFS
  5551. test -z "$as_dir" && as_dir=.
  5552. for ac_exec_ext in '' $ac_executable_extensions; do
  5553. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5554. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5555. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5556. break 2
  5557. fi
  5558. done
  5559. done
  5560. IFS=$as_save_IFS
  5561. fi
  5562. fi
  5563. OBJDUMP=$ac_cv_prog_OBJDUMP
  5564. if test -n "$OBJDUMP"; then
  5565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5566. $as_echo "$OBJDUMP" >&6; }
  5567. else
  5568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5569. $as_echo "no" >&6; }
  5570. fi
  5571. fi
  5572. if test -z "$ac_cv_prog_OBJDUMP"; then
  5573. ac_ct_OBJDUMP=$OBJDUMP
  5574. # Extract the first word of "objdump", so it can be a program name with args.
  5575. set dummy objdump; ac_word=$2
  5576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5577. $as_echo_n "checking for $ac_word... " >&6; }
  5578. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5579. $as_echo_n "(cached) " >&6
  5580. else
  5581. if test -n "$ac_ct_OBJDUMP"; then
  5582. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5583. else
  5584. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5585. for as_dir in $PATH
  5586. do
  5587. IFS=$as_save_IFS
  5588. test -z "$as_dir" && as_dir=.
  5589. for ac_exec_ext in '' $ac_executable_extensions; do
  5590. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5591. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5592. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5593. break 2
  5594. fi
  5595. done
  5596. done
  5597. IFS=$as_save_IFS
  5598. fi
  5599. fi
  5600. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5601. if test -n "$ac_ct_OBJDUMP"; then
  5602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5603. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5604. else
  5605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5606. $as_echo "no" >&6; }
  5607. fi
  5608. if test "x$ac_ct_OBJDUMP" = x; then
  5609. OBJDUMP="false"
  5610. else
  5611. case $cross_compiling:$ac_tool_warned in
  5612. yes:)
  5613. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5614. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5615. ac_tool_warned=yes ;;
  5616. esac
  5617. OBJDUMP=$ac_ct_OBJDUMP
  5618. fi
  5619. else
  5620. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5621. fi
  5622. test -z "$OBJDUMP" && OBJDUMP=objdump
  5623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5624. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5625. if ${lt_cv_deplibs_check_method+:} false; then :
  5626. $as_echo_n "(cached) " >&6
  5627. else
  5628. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5629. lt_cv_file_magic_test_file=
  5630. lt_cv_deplibs_check_method='unknown'
  5631. # Need to set the preceding variable on all platforms that support
  5632. # interlibrary dependencies.
  5633. # 'none' -- dependencies not supported.
  5634. # 'unknown' -- same as none, but documents that we really don't know.
  5635. # 'pass_all' -- all dependencies passed with no checks.
  5636. # 'test_compile' -- check by making test program.
  5637. # 'file_magic [[regex]]' -- check by looking for files in library path
  5638. # that responds to the $file_magic_cmd with a given extended regex.
  5639. # If you have 'file' or equivalent on your system and you're not sure
  5640. # whether 'pass_all' will *always* work, you probably want this one.
  5641. case $host_os in
  5642. aix[4-9]*)
  5643. lt_cv_deplibs_check_method=pass_all
  5644. ;;
  5645. beos*)
  5646. lt_cv_deplibs_check_method=pass_all
  5647. ;;
  5648. bsdi[45]*)
  5649. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5650. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5651. lt_cv_file_magic_test_file=/shlib/libc.so
  5652. ;;
  5653. cygwin*)
  5654. # func_win32_libid is a shell function defined in ltmain.sh
  5655. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5656. lt_cv_file_magic_cmd='func_win32_libid'
  5657. ;;
  5658. mingw* | pw32*)
  5659. # Base MSYS/MinGW do not provide the 'file' command needed by
  5660. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5661. # unless we find 'file', for example because we are cross-compiling.
  5662. if ( file / ) >/dev/null 2>&1; then
  5663. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5664. lt_cv_file_magic_cmd='func_win32_libid'
  5665. else
  5666. # Keep this pattern in sync with the one in func_win32_libid.
  5667. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5668. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5669. fi
  5670. ;;
  5671. cegcc*)
  5672. # use the weaker test based on 'objdump'. See mingw*.
  5673. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5674. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5675. ;;
  5676. darwin* | rhapsody*)
  5677. lt_cv_deplibs_check_method=pass_all
  5678. ;;
  5679. freebsd* | dragonfly*)
  5680. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5681. case $host_cpu in
  5682. i*86 )
  5683. # Not sure whether the presence of OpenBSD here was a mistake.
  5684. # Let's accept both of them until this is cleared up.
  5685. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5686. lt_cv_file_magic_cmd=/usr/bin/file
  5687. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5688. ;;
  5689. esac
  5690. else
  5691. lt_cv_deplibs_check_method=pass_all
  5692. fi
  5693. ;;
  5694. haiku*)
  5695. lt_cv_deplibs_check_method=pass_all
  5696. ;;
  5697. hpux10.20* | hpux11*)
  5698. lt_cv_file_magic_cmd=/usr/bin/file
  5699. case $host_cpu in
  5700. ia64*)
  5701. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5702. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5703. ;;
  5704. hppa*64*)
  5705. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  5706. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5707. ;;
  5708. *)
  5709. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5710. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5711. ;;
  5712. esac
  5713. ;;
  5714. interix[3-9]*)
  5715. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5716. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5717. ;;
  5718. irix5* | irix6* | nonstopux*)
  5719. case $LD in
  5720. *-32|*"-32 ") libmagic=32-bit;;
  5721. *-n32|*"-n32 ") libmagic=N32;;
  5722. *-64|*"-64 ") libmagic=64-bit;;
  5723. *) libmagic=never-match;;
  5724. esac
  5725. lt_cv_deplibs_check_method=pass_all
  5726. ;;
  5727. # This must be glibc/ELF.
  5728. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5729. lt_cv_deplibs_check_method=pass_all
  5730. ;;
  5731. netbsd* | netbsdelf*-gnu)
  5732. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5733. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5734. else
  5735. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5736. fi
  5737. ;;
  5738. newos6*)
  5739. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5740. lt_cv_file_magic_cmd=/usr/bin/file
  5741. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5742. ;;
  5743. *nto* | *qnx*)
  5744. lt_cv_deplibs_check_method=pass_all
  5745. ;;
  5746. openbsd* | bitrig*)
  5747. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5748. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5749. else
  5750. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5751. fi
  5752. ;;
  5753. osf3* | osf4* | osf5*)
  5754. lt_cv_deplibs_check_method=pass_all
  5755. ;;
  5756. rdos*)
  5757. lt_cv_deplibs_check_method=pass_all
  5758. ;;
  5759. solaris*)
  5760. lt_cv_deplibs_check_method=pass_all
  5761. ;;
  5762. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5763. lt_cv_deplibs_check_method=pass_all
  5764. ;;
  5765. sysv4 | sysv4.3*)
  5766. case $host_vendor in
  5767. motorola)
  5768. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  5769. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5770. ;;
  5771. ncr)
  5772. lt_cv_deplibs_check_method=pass_all
  5773. ;;
  5774. sequent)
  5775. lt_cv_file_magic_cmd='/bin/file'
  5776. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5777. ;;
  5778. sni)
  5779. lt_cv_file_magic_cmd='/bin/file'
  5780. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5781. lt_cv_file_magic_test_file=/lib/libc.so
  5782. ;;
  5783. siemens)
  5784. lt_cv_deplibs_check_method=pass_all
  5785. ;;
  5786. pc)
  5787. lt_cv_deplibs_check_method=pass_all
  5788. ;;
  5789. esac
  5790. ;;
  5791. tpf*)
  5792. lt_cv_deplibs_check_method=pass_all
  5793. ;;
  5794. os2*)
  5795. lt_cv_deplibs_check_method=pass_all
  5796. ;;
  5797. esac
  5798. fi
  5799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5800. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5801. file_magic_glob=
  5802. want_nocaseglob=no
  5803. if test "$build" = "$host"; then
  5804. case $host_os in
  5805. mingw* | pw32*)
  5806. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5807. want_nocaseglob=yes
  5808. else
  5809. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5810. fi
  5811. ;;
  5812. esac
  5813. fi
  5814. file_magic_cmd=$lt_cv_file_magic_cmd
  5815. deplibs_check_method=$lt_cv_deplibs_check_method
  5816. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5817. if test -n "$ac_tool_prefix"; then
  5818. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5819. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5821. $as_echo_n "checking for $ac_word... " >&6; }
  5822. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5823. $as_echo_n "(cached) " >&6
  5824. else
  5825. if test -n "$DLLTOOL"; then
  5826. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5827. else
  5828. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5829. for as_dir in $PATH
  5830. do
  5831. IFS=$as_save_IFS
  5832. test -z "$as_dir" && as_dir=.
  5833. for ac_exec_ext in '' $ac_executable_extensions; do
  5834. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5835. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5836. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5837. break 2
  5838. fi
  5839. done
  5840. done
  5841. IFS=$as_save_IFS
  5842. fi
  5843. fi
  5844. DLLTOOL=$ac_cv_prog_DLLTOOL
  5845. if test -n "$DLLTOOL"; then
  5846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5847. $as_echo "$DLLTOOL" >&6; }
  5848. else
  5849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5850. $as_echo "no" >&6; }
  5851. fi
  5852. fi
  5853. if test -z "$ac_cv_prog_DLLTOOL"; then
  5854. ac_ct_DLLTOOL=$DLLTOOL
  5855. # Extract the first word of "dlltool", so it can be a program name with args.
  5856. set dummy dlltool; ac_word=$2
  5857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5858. $as_echo_n "checking for $ac_word... " >&6; }
  5859. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5860. $as_echo_n "(cached) " >&6
  5861. else
  5862. if test -n "$ac_ct_DLLTOOL"; then
  5863. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5864. else
  5865. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5866. for as_dir in $PATH
  5867. do
  5868. IFS=$as_save_IFS
  5869. test -z "$as_dir" && as_dir=.
  5870. for ac_exec_ext in '' $ac_executable_extensions; do
  5871. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5872. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5873. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5874. break 2
  5875. fi
  5876. done
  5877. done
  5878. IFS=$as_save_IFS
  5879. fi
  5880. fi
  5881. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5882. if test -n "$ac_ct_DLLTOOL"; then
  5883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5884. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5885. else
  5886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5887. $as_echo "no" >&6; }
  5888. fi
  5889. if test "x$ac_ct_DLLTOOL" = x; then
  5890. DLLTOOL="false"
  5891. else
  5892. case $cross_compiling:$ac_tool_warned in
  5893. yes:)
  5894. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5895. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5896. ac_tool_warned=yes ;;
  5897. esac
  5898. DLLTOOL=$ac_ct_DLLTOOL
  5899. fi
  5900. else
  5901. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5902. fi
  5903. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5905. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5906. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5907. $as_echo_n "(cached) " >&6
  5908. else
  5909. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5910. case $host_os in
  5911. cygwin* | mingw* | pw32* | cegcc*)
  5912. # two different shell functions defined in ltmain.sh;
  5913. # decide which one to use based on capabilities of $DLLTOOL
  5914. case `$DLLTOOL --help 2>&1` in
  5915. *--identify-strict*)
  5916. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5917. ;;
  5918. *)
  5919. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5920. ;;
  5921. esac
  5922. ;;
  5923. *)
  5924. # fallback: assume linklib IS sharedlib
  5925. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5926. ;;
  5927. esac
  5928. fi
  5929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5930. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5931. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5932. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5933. if test -n "$ac_tool_prefix"; then
  5934. for ac_prog in ar
  5935. do
  5936. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5937. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5939. $as_echo_n "checking for $ac_word... " >&6; }
  5940. if ${ac_cv_prog_AR+:} false; then :
  5941. $as_echo_n "(cached) " >&6
  5942. else
  5943. if test -n "$AR"; then
  5944. ac_cv_prog_AR="$AR" # Let the user override the test.
  5945. else
  5946. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5947. for as_dir in $PATH
  5948. do
  5949. IFS=$as_save_IFS
  5950. test -z "$as_dir" && as_dir=.
  5951. for ac_exec_ext in '' $ac_executable_extensions; do
  5952. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5953. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5954. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5955. break 2
  5956. fi
  5957. done
  5958. done
  5959. IFS=$as_save_IFS
  5960. fi
  5961. fi
  5962. AR=$ac_cv_prog_AR
  5963. if test -n "$AR"; then
  5964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5965. $as_echo "$AR" >&6; }
  5966. else
  5967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5968. $as_echo "no" >&6; }
  5969. fi
  5970. test -n "$AR" && break
  5971. done
  5972. fi
  5973. if test -z "$AR"; then
  5974. ac_ct_AR=$AR
  5975. for ac_prog in ar
  5976. do
  5977. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5978. set dummy $ac_prog; ac_word=$2
  5979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5980. $as_echo_n "checking for $ac_word... " >&6; }
  5981. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5982. $as_echo_n "(cached) " >&6
  5983. else
  5984. if test -n "$ac_ct_AR"; then
  5985. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5986. else
  5987. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5988. for as_dir in $PATH
  5989. do
  5990. IFS=$as_save_IFS
  5991. test -z "$as_dir" && as_dir=.
  5992. for ac_exec_ext in '' $ac_executable_extensions; do
  5993. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5994. ac_cv_prog_ac_ct_AR="$ac_prog"
  5995. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5996. break 2
  5997. fi
  5998. done
  5999. done
  6000. IFS=$as_save_IFS
  6001. fi
  6002. fi
  6003. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6004. if test -n "$ac_ct_AR"; then
  6005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6006. $as_echo "$ac_ct_AR" >&6; }
  6007. else
  6008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6009. $as_echo "no" >&6; }
  6010. fi
  6011. test -n "$ac_ct_AR" && break
  6012. done
  6013. if test "x$ac_ct_AR" = x; then
  6014. AR="false"
  6015. else
  6016. case $cross_compiling:$ac_tool_warned in
  6017. yes:)
  6018. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6019. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6020. ac_tool_warned=yes ;;
  6021. esac
  6022. AR=$ac_ct_AR
  6023. fi
  6024. fi
  6025. : ${AR=ar}
  6026. : ${AR_FLAGS=cru}
  6027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6028. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6029. if ${lt_cv_ar_at_file+:} false; then :
  6030. $as_echo_n "(cached) " >&6
  6031. else
  6032. lt_cv_ar_at_file=no
  6033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6034. /* end confdefs.h. */
  6035. int
  6036. main ()
  6037. {
  6038. ;
  6039. return 0;
  6040. }
  6041. _ACEOF
  6042. if ac_fn_c_try_compile "$LINENO"; then :
  6043. echo conftest.$ac_objext > conftest.lst
  6044. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6045. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6046. (eval $lt_ar_try) 2>&5
  6047. ac_status=$?
  6048. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6049. test $ac_status = 0; }
  6050. if test 0 -eq "$ac_status"; then
  6051. # Ensure the archiver fails upon bogus file names.
  6052. rm -f conftest.$ac_objext libconftest.a
  6053. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6054. (eval $lt_ar_try) 2>&5
  6055. ac_status=$?
  6056. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6057. test $ac_status = 0; }
  6058. if test 0 -ne "$ac_status"; then
  6059. lt_cv_ar_at_file=@
  6060. fi
  6061. fi
  6062. rm -f conftest.* libconftest.a
  6063. fi
  6064. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6065. fi
  6066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6067. $as_echo "$lt_cv_ar_at_file" >&6; }
  6068. if test no = "$lt_cv_ar_at_file"; then
  6069. archiver_list_spec=
  6070. else
  6071. archiver_list_spec=$lt_cv_ar_at_file
  6072. fi
  6073. if test -n "$ac_tool_prefix"; then
  6074. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6075. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6077. $as_echo_n "checking for $ac_word... " >&6; }
  6078. if ${ac_cv_prog_STRIP+:} false; then :
  6079. $as_echo_n "(cached) " >&6
  6080. else
  6081. if test -n "$STRIP"; then
  6082. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6083. else
  6084. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6085. for as_dir in $PATH
  6086. do
  6087. IFS=$as_save_IFS
  6088. test -z "$as_dir" && as_dir=.
  6089. for ac_exec_ext in '' $ac_executable_extensions; do
  6090. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6091. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6092. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6093. break 2
  6094. fi
  6095. done
  6096. done
  6097. IFS=$as_save_IFS
  6098. fi
  6099. fi
  6100. STRIP=$ac_cv_prog_STRIP
  6101. if test -n "$STRIP"; then
  6102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6103. $as_echo "$STRIP" >&6; }
  6104. else
  6105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6106. $as_echo "no" >&6; }
  6107. fi
  6108. fi
  6109. if test -z "$ac_cv_prog_STRIP"; then
  6110. ac_ct_STRIP=$STRIP
  6111. # Extract the first word of "strip", so it can be a program name with args.
  6112. set dummy strip; ac_word=$2
  6113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6114. $as_echo_n "checking for $ac_word... " >&6; }
  6115. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6116. $as_echo_n "(cached) " >&6
  6117. else
  6118. if test -n "$ac_ct_STRIP"; then
  6119. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6120. else
  6121. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6122. for as_dir in $PATH
  6123. do
  6124. IFS=$as_save_IFS
  6125. test -z "$as_dir" && as_dir=.
  6126. for ac_exec_ext in '' $ac_executable_extensions; do
  6127. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6128. ac_cv_prog_ac_ct_STRIP="strip"
  6129. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6130. break 2
  6131. fi
  6132. done
  6133. done
  6134. IFS=$as_save_IFS
  6135. fi
  6136. fi
  6137. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6138. if test -n "$ac_ct_STRIP"; then
  6139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6140. $as_echo "$ac_ct_STRIP" >&6; }
  6141. else
  6142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6143. $as_echo "no" >&6; }
  6144. fi
  6145. if test "x$ac_ct_STRIP" = x; then
  6146. STRIP=":"
  6147. else
  6148. case $cross_compiling:$ac_tool_warned in
  6149. yes:)
  6150. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6151. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6152. ac_tool_warned=yes ;;
  6153. esac
  6154. STRIP=$ac_ct_STRIP
  6155. fi
  6156. else
  6157. STRIP="$ac_cv_prog_STRIP"
  6158. fi
  6159. test -z "$STRIP" && STRIP=:
  6160. if test -n "$ac_tool_prefix"; then
  6161. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6162. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6164. $as_echo_n "checking for $ac_word... " >&6; }
  6165. if ${ac_cv_prog_RANLIB+:} false; then :
  6166. $as_echo_n "(cached) " >&6
  6167. else
  6168. if test -n "$RANLIB"; then
  6169. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6170. else
  6171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6172. for as_dir in $PATH
  6173. do
  6174. IFS=$as_save_IFS
  6175. test -z "$as_dir" && as_dir=.
  6176. for ac_exec_ext in '' $ac_executable_extensions; do
  6177. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6178. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6179. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6180. break 2
  6181. fi
  6182. done
  6183. done
  6184. IFS=$as_save_IFS
  6185. fi
  6186. fi
  6187. RANLIB=$ac_cv_prog_RANLIB
  6188. if test -n "$RANLIB"; then
  6189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6190. $as_echo "$RANLIB" >&6; }
  6191. else
  6192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6193. $as_echo "no" >&6; }
  6194. fi
  6195. fi
  6196. if test -z "$ac_cv_prog_RANLIB"; then
  6197. ac_ct_RANLIB=$RANLIB
  6198. # Extract the first word of "ranlib", so it can be a program name with args.
  6199. set dummy ranlib; ac_word=$2
  6200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6201. $as_echo_n "checking for $ac_word... " >&6; }
  6202. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6203. $as_echo_n "(cached) " >&6
  6204. else
  6205. if test -n "$ac_ct_RANLIB"; then
  6206. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6207. else
  6208. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6209. for as_dir in $PATH
  6210. do
  6211. IFS=$as_save_IFS
  6212. test -z "$as_dir" && as_dir=.
  6213. for ac_exec_ext in '' $ac_executable_extensions; do
  6214. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6215. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6216. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6217. break 2
  6218. fi
  6219. done
  6220. done
  6221. IFS=$as_save_IFS
  6222. fi
  6223. fi
  6224. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6225. if test -n "$ac_ct_RANLIB"; then
  6226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6227. $as_echo "$ac_ct_RANLIB" >&6; }
  6228. else
  6229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6230. $as_echo "no" >&6; }
  6231. fi
  6232. if test "x$ac_ct_RANLIB" = x; then
  6233. RANLIB=":"
  6234. else
  6235. case $cross_compiling:$ac_tool_warned in
  6236. yes:)
  6237. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6238. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6239. ac_tool_warned=yes ;;
  6240. esac
  6241. RANLIB=$ac_ct_RANLIB
  6242. fi
  6243. else
  6244. RANLIB="$ac_cv_prog_RANLIB"
  6245. fi
  6246. test -z "$RANLIB" && RANLIB=:
  6247. # Determine commands to create old-style static archives.
  6248. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6249. old_postinstall_cmds='chmod 644 $oldlib'
  6250. old_postuninstall_cmds=
  6251. if test -n "$RANLIB"; then
  6252. case $host_os in
  6253. bitrig* | openbsd*)
  6254. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6255. ;;
  6256. *)
  6257. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6258. ;;
  6259. esac
  6260. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6261. fi
  6262. case $host_os in
  6263. darwin*)
  6264. lock_old_archive_extraction=yes ;;
  6265. *)
  6266. lock_old_archive_extraction=no ;;
  6267. esac
  6268. # If no C compiler was specified, use CC.
  6269. LTCC=${LTCC-"$CC"}
  6270. # If no C compiler flags were specified, use CFLAGS.
  6271. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6272. # Allow CC to be a program name with arguments.
  6273. compiler=$CC
  6274. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6276. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6277. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6278. $as_echo_n "(cached) " >&6
  6279. else
  6280. # These are sane defaults that work on at least a few old systems.
  6281. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6282. # Character class describing NM global symbol codes.
  6283. symcode='[BCDEGRST]'
  6284. # Regexp to match symbols that can be accessed directly from C.
  6285. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6286. # Define system-specific variables.
  6287. case $host_os in
  6288. aix*)
  6289. symcode='[BCDT]'
  6290. ;;
  6291. cygwin* | mingw* | pw32* | cegcc*)
  6292. symcode='[ABCDGISTW]'
  6293. ;;
  6294. hpux*)
  6295. if test ia64 = "$host_cpu"; then
  6296. symcode='[ABCDEGRST]'
  6297. fi
  6298. ;;
  6299. irix* | nonstopux*)
  6300. symcode='[BCDEGRST]'
  6301. ;;
  6302. osf*)
  6303. symcode='[BCDEGQRST]'
  6304. ;;
  6305. solaris*)
  6306. symcode='[BDRT]'
  6307. ;;
  6308. sco3.2v5*)
  6309. symcode='[DT]'
  6310. ;;
  6311. sysv4.2uw2*)
  6312. symcode='[DT]'
  6313. ;;
  6314. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6315. symcode='[ABDT]'
  6316. ;;
  6317. sysv4)
  6318. symcode='[DFNSTU]'
  6319. ;;
  6320. esac
  6321. # If we're using GNU nm, then use its standard symbol codes.
  6322. case `$NM -V 2>&1` in
  6323. *GNU* | *'with BFD'*)
  6324. symcode='[ABCDGIRSTW]' ;;
  6325. esac
  6326. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6327. # Gets list of data symbols to import.
  6328. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  6329. # Adjust the below global symbol transforms to fixup imported variables.
  6330. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  6331. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  6332. lt_c_name_lib_hook="\
  6333. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  6334. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  6335. else
  6336. # Disable hooks by default.
  6337. lt_cv_sys_global_symbol_to_import=
  6338. lt_cdecl_hook=
  6339. lt_c_name_hook=
  6340. lt_c_name_lib_hook=
  6341. fi
  6342. # Transform an extracted symbol line into a proper C declaration.
  6343. # Some systems (esp. on ia64) link data and code symbols differently,
  6344. # so use this general approach.
  6345. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  6346. $lt_cdecl_hook\
  6347. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6348. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6349. # Transform an extracted symbol line into symbol name and symbol address
  6350. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  6351. $lt_c_name_hook\
  6352. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6353. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6354. # Transform an extracted symbol line into symbol name with lib prefix and
  6355. # symbol address.
  6356. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  6357. $lt_c_name_lib_hook\
  6358. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6359. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6360. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6361. # Handle CRLF in mingw tool chain
  6362. opt_cr=
  6363. case $build_os in
  6364. mingw*)
  6365. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6366. ;;
  6367. esac
  6368. # Try without a prefix underscore, then with it.
  6369. for ac_symprfx in "" "_"; do
  6370. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6371. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6372. # Write the raw and C identifiers.
  6373. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6374. # Fake it for dumpbin and say T for any non-static function,
  6375. # D for any global variable and I for any imported variable.
  6376. # Also find C++ and __fastcall symbols from MSVC++,
  6377. # which start with @ or ?.
  6378. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6379. " {last_section=section; section=\$ 3};"\
  6380. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6381. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6382. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6383. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6384. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6385. " \$ 0!~/External *\|/{next};"\
  6386. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6387. " {if(hide[section]) next};"\
  6388. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6389. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6390. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6391. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6392. " ' prfx=^$ac_symprfx"
  6393. else
  6394. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6395. fi
  6396. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6397. # Check to see that the pipe works correctly.
  6398. pipe_works=no
  6399. rm -f conftest*
  6400. cat > conftest.$ac_ext <<_LT_EOF
  6401. #ifdef __cplusplus
  6402. extern "C" {
  6403. #endif
  6404. char nm_test_var;
  6405. void nm_test_func(void);
  6406. void nm_test_func(void){}
  6407. #ifdef __cplusplus
  6408. }
  6409. #endif
  6410. int main(){nm_test_var='a';nm_test_func();return(0);}
  6411. _LT_EOF
  6412. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6413. (eval $ac_compile) 2>&5
  6414. ac_status=$?
  6415. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6416. test $ac_status = 0; }; then
  6417. # Now try to grab the symbols.
  6418. nlist=conftest.nm
  6419. $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
  6420. if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
  6421. # Try sorting and uniquifying the output.
  6422. if sort "$nlist" | uniq > "$nlist"T; then
  6423. mv -f "$nlist"T "$nlist"
  6424. else
  6425. rm -f "$nlist"T
  6426. fi
  6427. # Make sure that we snagged all the symbols we need.
  6428. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6429. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6430. cat <<_LT_EOF > conftest.$ac_ext
  6431. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6432. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6433. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6434. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6435. # define LT_DLSYM_CONST
  6436. #elif defined __osf__
  6437. /* This system does not cope well with relocations in const data. */
  6438. # define LT_DLSYM_CONST
  6439. #else
  6440. # define LT_DLSYM_CONST const
  6441. #endif
  6442. #ifdef __cplusplus
  6443. extern "C" {
  6444. #endif
  6445. _LT_EOF
  6446. # Now generate the symbol file.
  6447. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6448. cat <<_LT_EOF >> conftest.$ac_ext
  6449. /* The mapping between symbol names and symbols. */
  6450. LT_DLSYM_CONST struct {
  6451. const char *name;
  6452. void *address;
  6453. }
  6454. lt__PROGRAM__LTX_preloaded_symbols[] =
  6455. {
  6456. { "@PROGRAM@", (void *) 0 },
  6457. _LT_EOF
  6458. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6459. cat <<\_LT_EOF >> conftest.$ac_ext
  6460. {0, (void *) 0}
  6461. };
  6462. /* This works around a problem in FreeBSD linker */
  6463. #ifdef FREEBSD_WORKAROUND
  6464. static const void *lt_preloaded_setup() {
  6465. return lt__PROGRAM__LTX_preloaded_symbols;
  6466. }
  6467. #endif
  6468. #ifdef __cplusplus
  6469. }
  6470. #endif
  6471. _LT_EOF
  6472. # Now try linking the two files.
  6473. mv conftest.$ac_objext conftstm.$ac_objext
  6474. lt_globsym_save_LIBS=$LIBS
  6475. lt_globsym_save_CFLAGS=$CFLAGS
  6476. LIBS=conftstm.$ac_objext
  6477. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6478. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6479. (eval $ac_link) 2>&5
  6480. ac_status=$?
  6481. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6482. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6483. pipe_works=yes
  6484. fi
  6485. LIBS=$lt_globsym_save_LIBS
  6486. CFLAGS=$lt_globsym_save_CFLAGS
  6487. else
  6488. echo "cannot find nm_test_func in $nlist" >&5
  6489. fi
  6490. else
  6491. echo "cannot find nm_test_var in $nlist" >&5
  6492. fi
  6493. else
  6494. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6495. fi
  6496. else
  6497. echo "$progname: failed program was:" >&5
  6498. cat conftest.$ac_ext >&5
  6499. fi
  6500. rm -rf conftest* conftst*
  6501. # Do not use the global_symbol_pipe unless it works.
  6502. if test yes = "$pipe_works"; then
  6503. break
  6504. else
  6505. lt_cv_sys_global_symbol_pipe=
  6506. fi
  6507. done
  6508. fi
  6509. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6510. lt_cv_sys_global_symbol_to_cdecl=
  6511. fi
  6512. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6514. $as_echo "failed" >&6; }
  6515. else
  6516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6517. $as_echo "ok" >&6; }
  6518. fi
  6519. # Response file support.
  6520. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6521. nm_file_list_spec='@'
  6522. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6523. nm_file_list_spec='@'
  6524. fi
  6525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6526. $as_echo_n "checking for sysroot... " >&6; }
  6527. # Check whether --with-sysroot was given.
  6528. if test "${with_sysroot+set}" = set; then :
  6529. withval=$with_sysroot;
  6530. else
  6531. with_sysroot=no
  6532. fi
  6533. lt_sysroot=
  6534. case $with_sysroot in #(
  6535. yes)
  6536. if test yes = "$GCC"; then
  6537. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6538. fi
  6539. ;; #(
  6540. /*)
  6541. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6542. ;; #(
  6543. no|'')
  6544. ;; #(
  6545. *)
  6546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6547. $as_echo "$with_sysroot" >&6; }
  6548. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6549. ;;
  6550. esac
  6551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6552. $as_echo "${lt_sysroot:-no}" >&6; }
  6553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6554. $as_echo_n "checking for a working dd... " >&6; }
  6555. if ${ac_cv_path_lt_DD+:} false; then :
  6556. $as_echo_n "(cached) " >&6
  6557. else
  6558. printf 0123456789abcdef0123456789abcdef >conftest.i
  6559. cat conftest.i conftest.i >conftest2.i
  6560. : ${lt_DD:=$DD}
  6561. if test -z "$lt_DD"; then
  6562. ac_path_lt_DD_found=false
  6563. # Loop through the user's path and test for each of PROGNAME-LIST
  6564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6565. for as_dir in $PATH
  6566. do
  6567. IFS=$as_save_IFS
  6568. test -z "$as_dir" && as_dir=.
  6569. for ac_prog in dd; do
  6570. for ac_exec_ext in '' $ac_executable_extensions; do
  6571. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  6572. as_fn_executable_p "$ac_path_lt_DD" || continue
  6573. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6574. cmp -s conftest.i conftest.out \
  6575. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6576. fi
  6577. $ac_path_lt_DD_found && break 3
  6578. done
  6579. done
  6580. done
  6581. IFS=$as_save_IFS
  6582. if test -z "$ac_cv_path_lt_DD"; then
  6583. :
  6584. fi
  6585. else
  6586. ac_cv_path_lt_DD=$lt_DD
  6587. fi
  6588. rm -f conftest.i conftest2.i conftest.out
  6589. fi
  6590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6591. $as_echo "$ac_cv_path_lt_DD" >&6; }
  6592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6593. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  6594. if ${lt_cv_truncate_bin+:} false; then :
  6595. $as_echo_n "(cached) " >&6
  6596. else
  6597. printf 0123456789abcdef0123456789abcdef >conftest.i
  6598. cat conftest.i conftest.i >conftest2.i
  6599. lt_cv_truncate_bin=
  6600. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6601. cmp -s conftest.i conftest.out \
  6602. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6603. fi
  6604. rm -f conftest.i conftest2.i conftest.out
  6605. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6606. fi
  6607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6608. $as_echo "$lt_cv_truncate_bin" >&6; }
  6609. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6610. func_cc_basename ()
  6611. {
  6612. for cc_temp in $*""; do
  6613. case $cc_temp in
  6614. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6615. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6616. \-*) ;;
  6617. *) break;;
  6618. esac
  6619. done
  6620. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6621. }
  6622. # Check whether --enable-libtool-lock was given.
  6623. if test "${enable_libtool_lock+set}" = set; then :
  6624. enableval=$enable_libtool_lock;
  6625. fi
  6626. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6627. # Some flags need to be propagated to the compiler or linker for good
  6628. # libtool support.
  6629. case $host in
  6630. ia64-*-hpux*)
  6631. # Find out what ABI is being produced by ac_compile, and set mode
  6632. # options accordingly.
  6633. echo 'int i;' > conftest.$ac_ext
  6634. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6635. (eval $ac_compile) 2>&5
  6636. ac_status=$?
  6637. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6638. test $ac_status = 0; }; then
  6639. case `/usr/bin/file conftest.$ac_objext` in
  6640. *ELF-32*)
  6641. HPUX_IA64_MODE=32
  6642. ;;
  6643. *ELF-64*)
  6644. HPUX_IA64_MODE=64
  6645. ;;
  6646. esac
  6647. fi
  6648. rm -rf conftest*
  6649. ;;
  6650. *-*-irix6*)
  6651. # Find out what ABI is being produced by ac_compile, and set linker
  6652. # options accordingly.
  6653. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6654. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6655. (eval $ac_compile) 2>&5
  6656. ac_status=$?
  6657. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6658. test $ac_status = 0; }; then
  6659. if test yes = "$lt_cv_prog_gnu_ld"; then
  6660. case `/usr/bin/file conftest.$ac_objext` in
  6661. *32-bit*)
  6662. LD="${LD-ld} -melf32bsmip"
  6663. ;;
  6664. *N32*)
  6665. LD="${LD-ld} -melf32bmipn32"
  6666. ;;
  6667. *64-bit*)
  6668. LD="${LD-ld} -melf64bmip"
  6669. ;;
  6670. esac
  6671. else
  6672. case `/usr/bin/file conftest.$ac_objext` in
  6673. *32-bit*)
  6674. LD="${LD-ld} -32"
  6675. ;;
  6676. *N32*)
  6677. LD="${LD-ld} -n32"
  6678. ;;
  6679. *64-bit*)
  6680. LD="${LD-ld} -64"
  6681. ;;
  6682. esac
  6683. fi
  6684. fi
  6685. rm -rf conftest*
  6686. ;;
  6687. mips64*-*linux*)
  6688. # Find out what ABI is being produced by ac_compile, and set linker
  6689. # options accordingly.
  6690. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6691. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6692. (eval $ac_compile) 2>&5
  6693. ac_status=$?
  6694. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6695. test $ac_status = 0; }; then
  6696. emul=elf
  6697. case `/usr/bin/file conftest.$ac_objext` in
  6698. *32-bit*)
  6699. emul="${emul}32"
  6700. ;;
  6701. *64-bit*)
  6702. emul="${emul}64"
  6703. ;;
  6704. esac
  6705. case `/usr/bin/file conftest.$ac_objext` in
  6706. *MSB*)
  6707. emul="${emul}btsmip"
  6708. ;;
  6709. *LSB*)
  6710. emul="${emul}ltsmip"
  6711. ;;
  6712. esac
  6713. case `/usr/bin/file conftest.$ac_objext` in
  6714. *N32*)
  6715. emul="${emul}n32"
  6716. ;;
  6717. esac
  6718. LD="${LD-ld} -m $emul"
  6719. fi
  6720. rm -rf conftest*
  6721. ;;
  6722. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6723. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6724. # Find out what ABI is being produced by ac_compile, and set linker
  6725. # options accordingly. Note that the listed cases only cover the
  6726. # situations where additional linker options are needed (such as when
  6727. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6728. # vice versa); the common cases where no linker options are needed do
  6729. # not appear in the list.
  6730. echo 'int i;' > conftest.$ac_ext
  6731. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6732. (eval $ac_compile) 2>&5
  6733. ac_status=$?
  6734. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6735. test $ac_status = 0; }; then
  6736. case `/usr/bin/file conftest.o` in
  6737. *32-bit*)
  6738. case $host in
  6739. x86_64-*kfreebsd*-gnu)
  6740. LD="${LD-ld} -m elf_i386_fbsd"
  6741. ;;
  6742. x86_64-*linux*)
  6743. case `/usr/bin/file conftest.o` in
  6744. *x86-64*)
  6745. LD="${LD-ld} -m elf32_x86_64"
  6746. ;;
  6747. *)
  6748. LD="${LD-ld} -m elf_i386"
  6749. ;;
  6750. esac
  6751. ;;
  6752. powerpc64le-*linux*)
  6753. LD="${LD-ld} -m elf32lppclinux"
  6754. ;;
  6755. powerpc64-*linux*)
  6756. LD="${LD-ld} -m elf32ppclinux"
  6757. ;;
  6758. s390x-*linux*)
  6759. LD="${LD-ld} -m elf_s390"
  6760. ;;
  6761. sparc64-*linux*)
  6762. LD="${LD-ld} -m elf32_sparc"
  6763. ;;
  6764. esac
  6765. ;;
  6766. *64-bit*)
  6767. case $host in
  6768. x86_64-*kfreebsd*-gnu)
  6769. LD="${LD-ld} -m elf_x86_64_fbsd"
  6770. ;;
  6771. x86_64-*linux*)
  6772. LD="${LD-ld} -m elf_x86_64"
  6773. ;;
  6774. powerpcle-*linux*)
  6775. LD="${LD-ld} -m elf64lppc"
  6776. ;;
  6777. powerpc-*linux*)
  6778. LD="${LD-ld} -m elf64ppc"
  6779. ;;
  6780. s390*-*linux*|s390*-*tpf*)
  6781. LD="${LD-ld} -m elf64_s390"
  6782. ;;
  6783. sparc*-*linux*)
  6784. LD="${LD-ld} -m elf64_sparc"
  6785. ;;
  6786. esac
  6787. ;;
  6788. esac
  6789. fi
  6790. rm -rf conftest*
  6791. ;;
  6792. *-*-sco3.2v5*)
  6793. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6794. SAVE_CFLAGS=$CFLAGS
  6795. CFLAGS="$CFLAGS -belf"
  6796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6797. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6798. if ${lt_cv_cc_needs_belf+:} false; then :
  6799. $as_echo_n "(cached) " >&6
  6800. else
  6801. ac_ext=c
  6802. ac_cpp='$CPP $CPPFLAGS'
  6803. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6804. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6805. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6807. /* end confdefs.h. */
  6808. int
  6809. main ()
  6810. {
  6811. ;
  6812. return 0;
  6813. }
  6814. _ACEOF
  6815. if ac_fn_c_try_link "$LINENO"; then :
  6816. lt_cv_cc_needs_belf=yes
  6817. else
  6818. lt_cv_cc_needs_belf=no
  6819. fi
  6820. rm -f core conftest.err conftest.$ac_objext \
  6821. conftest$ac_exeext conftest.$ac_ext
  6822. ac_ext=c
  6823. ac_cpp='$CPP $CPPFLAGS'
  6824. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6825. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6826. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6827. fi
  6828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6829. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6830. if test yes != "$lt_cv_cc_needs_belf"; then
  6831. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6832. CFLAGS=$SAVE_CFLAGS
  6833. fi
  6834. ;;
  6835. *-*solaris*)
  6836. # Find out what ABI is being produced by ac_compile, and set linker
  6837. # options accordingly.
  6838. echo 'int i;' > conftest.$ac_ext
  6839. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6840. (eval $ac_compile) 2>&5
  6841. ac_status=$?
  6842. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6843. test $ac_status = 0; }; then
  6844. case `/usr/bin/file conftest.o` in
  6845. *64-bit*)
  6846. case $lt_cv_prog_gnu_ld in
  6847. yes*)
  6848. case $host in
  6849. i?86-*-solaris*|x86_64-*-solaris*)
  6850. LD="${LD-ld} -m elf_x86_64"
  6851. ;;
  6852. sparc*-*-solaris*)
  6853. LD="${LD-ld} -m elf64_sparc"
  6854. ;;
  6855. esac
  6856. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6857. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6858. LD=${LD-ld}_sol2
  6859. fi
  6860. ;;
  6861. *)
  6862. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6863. LD="${LD-ld} -64"
  6864. fi
  6865. ;;
  6866. esac
  6867. ;;
  6868. esac
  6869. fi
  6870. rm -rf conftest*
  6871. ;;
  6872. esac
  6873. need_locks=$enable_libtool_lock
  6874. if test -n "$ac_tool_prefix"; then
  6875. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6876. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6878. $as_echo_n "checking for $ac_word... " >&6; }
  6879. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6880. $as_echo_n "(cached) " >&6
  6881. else
  6882. if test -n "$MANIFEST_TOOL"; then
  6883. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6884. else
  6885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6886. for as_dir in $PATH
  6887. do
  6888. IFS=$as_save_IFS
  6889. test -z "$as_dir" && as_dir=.
  6890. for ac_exec_ext in '' $ac_executable_extensions; do
  6891. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6892. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6893. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6894. break 2
  6895. fi
  6896. done
  6897. done
  6898. IFS=$as_save_IFS
  6899. fi
  6900. fi
  6901. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6902. if test -n "$MANIFEST_TOOL"; then
  6903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6904. $as_echo "$MANIFEST_TOOL" >&6; }
  6905. else
  6906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6907. $as_echo "no" >&6; }
  6908. fi
  6909. fi
  6910. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6911. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6912. # Extract the first word of "mt", so it can be a program name with args.
  6913. set dummy mt; ac_word=$2
  6914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6915. $as_echo_n "checking for $ac_word... " >&6; }
  6916. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6917. $as_echo_n "(cached) " >&6
  6918. else
  6919. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6920. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6921. else
  6922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6923. for as_dir in $PATH
  6924. do
  6925. IFS=$as_save_IFS
  6926. test -z "$as_dir" && as_dir=.
  6927. for ac_exec_ext in '' $ac_executable_extensions; do
  6928. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6929. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6930. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6931. break 2
  6932. fi
  6933. done
  6934. done
  6935. IFS=$as_save_IFS
  6936. fi
  6937. fi
  6938. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6939. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6941. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6942. else
  6943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6944. $as_echo "no" >&6; }
  6945. fi
  6946. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6947. MANIFEST_TOOL=":"
  6948. else
  6949. case $cross_compiling:$ac_tool_warned in
  6950. yes:)
  6951. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6952. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6953. ac_tool_warned=yes ;;
  6954. esac
  6955. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6956. fi
  6957. else
  6958. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6959. fi
  6960. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6962. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6963. if ${lt_cv_path_mainfest_tool+:} false; then :
  6964. $as_echo_n "(cached) " >&6
  6965. else
  6966. lt_cv_path_mainfest_tool=no
  6967. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6968. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6969. cat conftest.err >&5
  6970. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6971. lt_cv_path_mainfest_tool=yes
  6972. fi
  6973. rm -f conftest*
  6974. fi
  6975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6976. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6977. if test yes != "$lt_cv_path_mainfest_tool"; then
  6978. MANIFEST_TOOL=:
  6979. fi
  6980. case $host_os in
  6981. rhapsody* | darwin*)
  6982. if test -n "$ac_tool_prefix"; then
  6983. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6984. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6986. $as_echo_n "checking for $ac_word... " >&6; }
  6987. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6988. $as_echo_n "(cached) " >&6
  6989. else
  6990. if test -n "$DSYMUTIL"; then
  6991. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6992. else
  6993. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6994. for as_dir in $PATH
  6995. do
  6996. IFS=$as_save_IFS
  6997. test -z "$as_dir" && as_dir=.
  6998. for ac_exec_ext in '' $ac_executable_extensions; do
  6999. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7000. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7001. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7002. break 2
  7003. fi
  7004. done
  7005. done
  7006. IFS=$as_save_IFS
  7007. fi
  7008. fi
  7009. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7010. if test -n "$DSYMUTIL"; then
  7011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7012. $as_echo "$DSYMUTIL" >&6; }
  7013. else
  7014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7015. $as_echo "no" >&6; }
  7016. fi
  7017. fi
  7018. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7019. ac_ct_DSYMUTIL=$DSYMUTIL
  7020. # Extract the first word of "dsymutil", so it can be a program name with args.
  7021. set dummy dsymutil; ac_word=$2
  7022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7023. $as_echo_n "checking for $ac_word... " >&6; }
  7024. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  7025. $as_echo_n "(cached) " >&6
  7026. else
  7027. if test -n "$ac_ct_DSYMUTIL"; then
  7028. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7029. else
  7030. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7031. for as_dir in $PATH
  7032. do
  7033. IFS=$as_save_IFS
  7034. test -z "$as_dir" && as_dir=.
  7035. for ac_exec_ext in '' $ac_executable_extensions; do
  7036. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7037. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7038. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7039. break 2
  7040. fi
  7041. done
  7042. done
  7043. IFS=$as_save_IFS
  7044. fi
  7045. fi
  7046. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7047. if test -n "$ac_ct_DSYMUTIL"; then
  7048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7049. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7050. else
  7051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7052. $as_echo "no" >&6; }
  7053. fi
  7054. if test "x$ac_ct_DSYMUTIL" = x; then
  7055. DSYMUTIL=":"
  7056. else
  7057. case $cross_compiling:$ac_tool_warned in
  7058. yes:)
  7059. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7060. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7061. ac_tool_warned=yes ;;
  7062. esac
  7063. DSYMUTIL=$ac_ct_DSYMUTIL
  7064. fi
  7065. else
  7066. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7067. fi
  7068. if test -n "$ac_tool_prefix"; then
  7069. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7070. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7072. $as_echo_n "checking for $ac_word... " >&6; }
  7073. if ${ac_cv_prog_NMEDIT+:} false; then :
  7074. $as_echo_n "(cached) " >&6
  7075. else
  7076. if test -n "$NMEDIT"; then
  7077. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7078. else
  7079. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7080. for as_dir in $PATH
  7081. do
  7082. IFS=$as_save_IFS
  7083. test -z "$as_dir" && as_dir=.
  7084. for ac_exec_ext in '' $ac_executable_extensions; do
  7085. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7086. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7087. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7088. break 2
  7089. fi
  7090. done
  7091. done
  7092. IFS=$as_save_IFS
  7093. fi
  7094. fi
  7095. NMEDIT=$ac_cv_prog_NMEDIT
  7096. if test -n "$NMEDIT"; then
  7097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7098. $as_echo "$NMEDIT" >&6; }
  7099. else
  7100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7101. $as_echo "no" >&6; }
  7102. fi
  7103. fi
  7104. if test -z "$ac_cv_prog_NMEDIT"; then
  7105. ac_ct_NMEDIT=$NMEDIT
  7106. # Extract the first word of "nmedit", so it can be a program name with args.
  7107. set dummy nmedit; ac_word=$2
  7108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7109. $as_echo_n "checking for $ac_word... " >&6; }
  7110. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7111. $as_echo_n "(cached) " >&6
  7112. else
  7113. if test -n "$ac_ct_NMEDIT"; then
  7114. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7115. else
  7116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7117. for as_dir in $PATH
  7118. do
  7119. IFS=$as_save_IFS
  7120. test -z "$as_dir" && as_dir=.
  7121. for ac_exec_ext in '' $ac_executable_extensions; do
  7122. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7123. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7124. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7125. break 2
  7126. fi
  7127. done
  7128. done
  7129. IFS=$as_save_IFS
  7130. fi
  7131. fi
  7132. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7133. if test -n "$ac_ct_NMEDIT"; then
  7134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7135. $as_echo "$ac_ct_NMEDIT" >&6; }
  7136. else
  7137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7138. $as_echo "no" >&6; }
  7139. fi
  7140. if test "x$ac_ct_NMEDIT" = x; then
  7141. NMEDIT=":"
  7142. else
  7143. case $cross_compiling:$ac_tool_warned in
  7144. yes:)
  7145. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7146. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7147. ac_tool_warned=yes ;;
  7148. esac
  7149. NMEDIT=$ac_ct_NMEDIT
  7150. fi
  7151. else
  7152. NMEDIT="$ac_cv_prog_NMEDIT"
  7153. fi
  7154. if test -n "$ac_tool_prefix"; then
  7155. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7156. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7158. $as_echo_n "checking for $ac_word... " >&6; }
  7159. if ${ac_cv_prog_LIPO+:} false; then :
  7160. $as_echo_n "(cached) " >&6
  7161. else
  7162. if test -n "$LIPO"; then
  7163. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7164. else
  7165. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7166. for as_dir in $PATH
  7167. do
  7168. IFS=$as_save_IFS
  7169. test -z "$as_dir" && as_dir=.
  7170. for ac_exec_ext in '' $ac_executable_extensions; do
  7171. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7172. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7173. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7174. break 2
  7175. fi
  7176. done
  7177. done
  7178. IFS=$as_save_IFS
  7179. fi
  7180. fi
  7181. LIPO=$ac_cv_prog_LIPO
  7182. if test -n "$LIPO"; then
  7183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7184. $as_echo "$LIPO" >&6; }
  7185. else
  7186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7187. $as_echo "no" >&6; }
  7188. fi
  7189. fi
  7190. if test -z "$ac_cv_prog_LIPO"; then
  7191. ac_ct_LIPO=$LIPO
  7192. # Extract the first word of "lipo", so it can be a program name with args.
  7193. set dummy lipo; ac_word=$2
  7194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7195. $as_echo_n "checking for $ac_word... " >&6; }
  7196. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7197. $as_echo_n "(cached) " >&6
  7198. else
  7199. if test -n "$ac_ct_LIPO"; then
  7200. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7201. else
  7202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7203. for as_dir in $PATH
  7204. do
  7205. IFS=$as_save_IFS
  7206. test -z "$as_dir" && as_dir=.
  7207. for ac_exec_ext in '' $ac_executable_extensions; do
  7208. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7209. ac_cv_prog_ac_ct_LIPO="lipo"
  7210. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7211. break 2
  7212. fi
  7213. done
  7214. done
  7215. IFS=$as_save_IFS
  7216. fi
  7217. fi
  7218. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7219. if test -n "$ac_ct_LIPO"; then
  7220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7221. $as_echo "$ac_ct_LIPO" >&6; }
  7222. else
  7223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7224. $as_echo "no" >&6; }
  7225. fi
  7226. if test "x$ac_ct_LIPO" = x; then
  7227. LIPO=":"
  7228. else
  7229. case $cross_compiling:$ac_tool_warned in
  7230. yes:)
  7231. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7232. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7233. ac_tool_warned=yes ;;
  7234. esac
  7235. LIPO=$ac_ct_LIPO
  7236. fi
  7237. else
  7238. LIPO="$ac_cv_prog_LIPO"
  7239. fi
  7240. if test -n "$ac_tool_prefix"; then
  7241. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7242. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7244. $as_echo_n "checking for $ac_word... " >&6; }
  7245. if ${ac_cv_prog_OTOOL+:} false; then :
  7246. $as_echo_n "(cached) " >&6
  7247. else
  7248. if test -n "$OTOOL"; then
  7249. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7250. else
  7251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7252. for as_dir in $PATH
  7253. do
  7254. IFS=$as_save_IFS
  7255. test -z "$as_dir" && as_dir=.
  7256. for ac_exec_ext in '' $ac_executable_extensions; do
  7257. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7258. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7259. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7260. break 2
  7261. fi
  7262. done
  7263. done
  7264. IFS=$as_save_IFS
  7265. fi
  7266. fi
  7267. OTOOL=$ac_cv_prog_OTOOL
  7268. if test -n "$OTOOL"; then
  7269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7270. $as_echo "$OTOOL" >&6; }
  7271. else
  7272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7273. $as_echo "no" >&6; }
  7274. fi
  7275. fi
  7276. if test -z "$ac_cv_prog_OTOOL"; then
  7277. ac_ct_OTOOL=$OTOOL
  7278. # Extract the first word of "otool", so it can be a program name with args.
  7279. set dummy otool; ac_word=$2
  7280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7281. $as_echo_n "checking for $ac_word... " >&6; }
  7282. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7283. $as_echo_n "(cached) " >&6
  7284. else
  7285. if test -n "$ac_ct_OTOOL"; then
  7286. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7287. else
  7288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7289. for as_dir in $PATH
  7290. do
  7291. IFS=$as_save_IFS
  7292. test -z "$as_dir" && as_dir=.
  7293. for ac_exec_ext in '' $ac_executable_extensions; do
  7294. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7295. ac_cv_prog_ac_ct_OTOOL="otool"
  7296. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7297. break 2
  7298. fi
  7299. done
  7300. done
  7301. IFS=$as_save_IFS
  7302. fi
  7303. fi
  7304. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7305. if test -n "$ac_ct_OTOOL"; then
  7306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7307. $as_echo "$ac_ct_OTOOL" >&6; }
  7308. else
  7309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7310. $as_echo "no" >&6; }
  7311. fi
  7312. if test "x$ac_ct_OTOOL" = x; then
  7313. OTOOL=":"
  7314. else
  7315. case $cross_compiling:$ac_tool_warned in
  7316. yes:)
  7317. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7318. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7319. ac_tool_warned=yes ;;
  7320. esac
  7321. OTOOL=$ac_ct_OTOOL
  7322. fi
  7323. else
  7324. OTOOL="$ac_cv_prog_OTOOL"
  7325. fi
  7326. if test -n "$ac_tool_prefix"; then
  7327. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7328. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7330. $as_echo_n "checking for $ac_word... " >&6; }
  7331. if ${ac_cv_prog_OTOOL64+:} false; then :
  7332. $as_echo_n "(cached) " >&6
  7333. else
  7334. if test -n "$OTOOL64"; then
  7335. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7336. else
  7337. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7338. for as_dir in $PATH
  7339. do
  7340. IFS=$as_save_IFS
  7341. test -z "$as_dir" && as_dir=.
  7342. for ac_exec_ext in '' $ac_executable_extensions; do
  7343. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7344. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7345. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7346. break 2
  7347. fi
  7348. done
  7349. done
  7350. IFS=$as_save_IFS
  7351. fi
  7352. fi
  7353. OTOOL64=$ac_cv_prog_OTOOL64
  7354. if test -n "$OTOOL64"; then
  7355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7356. $as_echo "$OTOOL64" >&6; }
  7357. else
  7358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7359. $as_echo "no" >&6; }
  7360. fi
  7361. fi
  7362. if test -z "$ac_cv_prog_OTOOL64"; then
  7363. ac_ct_OTOOL64=$OTOOL64
  7364. # Extract the first word of "otool64", so it can be a program name with args.
  7365. set dummy otool64; ac_word=$2
  7366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7367. $as_echo_n "checking for $ac_word... " >&6; }
  7368. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7369. $as_echo_n "(cached) " >&6
  7370. else
  7371. if test -n "$ac_ct_OTOOL64"; then
  7372. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7373. else
  7374. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7375. for as_dir in $PATH
  7376. do
  7377. IFS=$as_save_IFS
  7378. test -z "$as_dir" && as_dir=.
  7379. for ac_exec_ext in '' $ac_executable_extensions; do
  7380. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7381. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7382. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7383. break 2
  7384. fi
  7385. done
  7386. done
  7387. IFS=$as_save_IFS
  7388. fi
  7389. fi
  7390. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7391. if test -n "$ac_ct_OTOOL64"; then
  7392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7393. $as_echo "$ac_ct_OTOOL64" >&6; }
  7394. else
  7395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7396. $as_echo "no" >&6; }
  7397. fi
  7398. if test "x$ac_ct_OTOOL64" = x; then
  7399. OTOOL64=":"
  7400. else
  7401. case $cross_compiling:$ac_tool_warned in
  7402. yes:)
  7403. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7404. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7405. ac_tool_warned=yes ;;
  7406. esac
  7407. OTOOL64=$ac_ct_OTOOL64
  7408. fi
  7409. else
  7410. OTOOL64="$ac_cv_prog_OTOOL64"
  7411. fi
  7412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7413. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7414. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7415. $as_echo_n "(cached) " >&6
  7416. else
  7417. lt_cv_apple_cc_single_mod=no
  7418. if test -z "$LT_MULTI_MODULE"; then
  7419. # By default we will add the -single_module flag. You can override
  7420. # by either setting the environment variable LT_MULTI_MODULE
  7421. # non-empty at configure time, or by adding -multi_module to the
  7422. # link flags.
  7423. rm -rf libconftest.dylib*
  7424. echo "int foo(void){return 1;}" > conftest.c
  7425. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7426. -dynamiclib -Wl,-single_module conftest.c" >&5
  7427. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7428. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7429. _lt_result=$?
  7430. # If there is a non-empty error log, and "single_module"
  7431. # appears in it, assume the flag caused a linker warning
  7432. if test -s conftest.err && $GREP single_module conftest.err; then
  7433. cat conftest.err >&5
  7434. # Otherwise, if the output was created with a 0 exit code from
  7435. # the compiler, it worked.
  7436. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7437. lt_cv_apple_cc_single_mod=yes
  7438. else
  7439. cat conftest.err >&5
  7440. fi
  7441. rm -rf libconftest.dylib*
  7442. rm -f conftest.*
  7443. fi
  7444. fi
  7445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7446. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7448. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7449. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7450. $as_echo_n "(cached) " >&6
  7451. else
  7452. lt_cv_ld_exported_symbols_list=no
  7453. save_LDFLAGS=$LDFLAGS
  7454. echo "_main" > conftest.sym
  7455. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7457. /* end confdefs.h. */
  7458. int
  7459. main ()
  7460. {
  7461. ;
  7462. return 0;
  7463. }
  7464. _ACEOF
  7465. if ac_fn_c_try_link "$LINENO"; then :
  7466. lt_cv_ld_exported_symbols_list=yes
  7467. else
  7468. lt_cv_ld_exported_symbols_list=no
  7469. fi
  7470. rm -f core conftest.err conftest.$ac_objext \
  7471. conftest$ac_exeext conftest.$ac_ext
  7472. LDFLAGS=$save_LDFLAGS
  7473. fi
  7474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7475. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7477. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7478. if ${lt_cv_ld_force_load+:} false; then :
  7479. $as_echo_n "(cached) " >&6
  7480. else
  7481. lt_cv_ld_force_load=no
  7482. cat > conftest.c << _LT_EOF
  7483. int forced_loaded() { return 2;}
  7484. _LT_EOF
  7485. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7486. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7487. echo "$AR cru libconftest.a conftest.o" >&5
  7488. $AR cru libconftest.a conftest.o 2>&5
  7489. echo "$RANLIB libconftest.a" >&5
  7490. $RANLIB libconftest.a 2>&5
  7491. cat > conftest.c << _LT_EOF
  7492. int main() { return 0;}
  7493. _LT_EOF
  7494. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7495. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7496. _lt_result=$?
  7497. if test -s conftest.err && $GREP force_load conftest.err; then
  7498. cat conftest.err >&5
  7499. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7500. lt_cv_ld_force_load=yes
  7501. else
  7502. cat conftest.err >&5
  7503. fi
  7504. rm -f conftest.err libconftest.a conftest conftest.c
  7505. rm -rf conftest.dSYM
  7506. fi
  7507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7508. $as_echo "$lt_cv_ld_force_load" >&6; }
  7509. case $host_os in
  7510. rhapsody* | darwin1.[012])
  7511. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7512. darwin1.*)
  7513. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7514. darwin*) # darwin 5.x on
  7515. # if running on 10.5 or later, the deployment target defaults
  7516. # to the OS version, if on x86, and 10.4, the deployment
  7517. # target defaults to 10.4. Don't you love it?
  7518. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7519. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7520. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7521. 10.[012][,.]*)
  7522. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7523. 10.*)
  7524. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7525. esac
  7526. ;;
  7527. esac
  7528. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7529. _lt_dar_single_mod='$single_module'
  7530. fi
  7531. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7532. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7533. else
  7534. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7535. fi
  7536. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7537. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7538. else
  7539. _lt_dsymutil=
  7540. fi
  7541. ;;
  7542. esac
  7543. # func_munge_path_list VARIABLE PATH
  7544. # -----------------------------------
  7545. # VARIABLE is name of variable containing _space_ separated list of
  7546. # directories to be munged by the contents of PATH, which is string
  7547. # having a format:
  7548. # "DIR[:DIR]:"
  7549. # string "DIR[ DIR]" will be prepended to VARIABLE
  7550. # ":DIR[:DIR]"
  7551. # string "DIR[ DIR]" will be appended to VARIABLE
  7552. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7553. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7554. # "DIRA[ DIRA]" will be appended to VARIABLE
  7555. # "DIR[:DIR]"
  7556. # VARIABLE will be replaced by "DIR[ DIR]"
  7557. func_munge_path_list ()
  7558. {
  7559. case x$2 in
  7560. x)
  7561. ;;
  7562. *:)
  7563. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7564. ;;
  7565. x:*)
  7566. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7567. ;;
  7568. *::*)
  7569. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7570. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7571. ;;
  7572. *)
  7573. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7574. ;;
  7575. esac
  7576. }
  7577. ac_ext=c
  7578. ac_cpp='$CPP $CPPFLAGS'
  7579. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7580. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7581. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7583. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7584. # On Suns, sometimes $CPP names a directory.
  7585. if test -n "$CPP" && test -d "$CPP"; then
  7586. CPP=
  7587. fi
  7588. if test -z "$CPP"; then
  7589. if ${ac_cv_prog_CPP+:} false; then :
  7590. $as_echo_n "(cached) " >&6
  7591. else
  7592. # Double quotes because CPP needs to be expanded
  7593. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7594. do
  7595. ac_preproc_ok=false
  7596. for ac_c_preproc_warn_flag in '' yes
  7597. do
  7598. # Use a header file that comes with gcc, so configuring glibc
  7599. # with a fresh cross-compiler works.
  7600. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7601. # <limits.h> exists even on freestanding compilers.
  7602. # On the NeXT, cc -E runs the code through the compiler's parser,
  7603. # not just through cpp. "Syntax error" is here to catch this case.
  7604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7605. /* end confdefs.h. */
  7606. #ifdef __STDC__
  7607. # include <limits.h>
  7608. #else
  7609. # include <assert.h>
  7610. #endif
  7611. Syntax error
  7612. _ACEOF
  7613. if ac_fn_c_try_cpp "$LINENO"; then :
  7614. else
  7615. # Broken: fails on valid input.
  7616. continue
  7617. fi
  7618. rm -f conftest.err conftest.i conftest.$ac_ext
  7619. # OK, works on sane cases. Now check whether nonexistent headers
  7620. # can be detected and how.
  7621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7622. /* end confdefs.h. */
  7623. #include <ac_nonexistent.h>
  7624. _ACEOF
  7625. if ac_fn_c_try_cpp "$LINENO"; then :
  7626. # Broken: success on invalid input.
  7627. continue
  7628. else
  7629. # Passes both tests.
  7630. ac_preproc_ok=:
  7631. break
  7632. fi
  7633. rm -f conftest.err conftest.i conftest.$ac_ext
  7634. done
  7635. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7636. rm -f conftest.i conftest.err conftest.$ac_ext
  7637. if $ac_preproc_ok; then :
  7638. break
  7639. fi
  7640. done
  7641. ac_cv_prog_CPP=$CPP
  7642. fi
  7643. CPP=$ac_cv_prog_CPP
  7644. else
  7645. ac_cv_prog_CPP=$CPP
  7646. fi
  7647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7648. $as_echo "$CPP" >&6; }
  7649. ac_preproc_ok=false
  7650. for ac_c_preproc_warn_flag in '' yes
  7651. do
  7652. # Use a header file that comes with gcc, so configuring glibc
  7653. # with a fresh cross-compiler works.
  7654. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7655. # <limits.h> exists even on freestanding compilers.
  7656. # On the NeXT, cc -E runs the code through the compiler's parser,
  7657. # not just through cpp. "Syntax error" is here to catch this case.
  7658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7659. /* end confdefs.h. */
  7660. #ifdef __STDC__
  7661. # include <limits.h>
  7662. #else
  7663. # include <assert.h>
  7664. #endif
  7665. Syntax error
  7666. _ACEOF
  7667. if ac_fn_c_try_cpp "$LINENO"; then :
  7668. else
  7669. # Broken: fails on valid input.
  7670. continue
  7671. fi
  7672. rm -f conftest.err conftest.i conftest.$ac_ext
  7673. # OK, works on sane cases. Now check whether nonexistent headers
  7674. # can be detected and how.
  7675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7676. /* end confdefs.h. */
  7677. #include <ac_nonexistent.h>
  7678. _ACEOF
  7679. if ac_fn_c_try_cpp "$LINENO"; then :
  7680. # Broken: success on invalid input.
  7681. continue
  7682. else
  7683. # Passes both tests.
  7684. ac_preproc_ok=:
  7685. break
  7686. fi
  7687. rm -f conftest.err conftest.i conftest.$ac_ext
  7688. done
  7689. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7690. rm -f conftest.i conftest.err conftest.$ac_ext
  7691. if $ac_preproc_ok; then :
  7692. else
  7693. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7694. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7695. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7696. See \`config.log' for more details" "$LINENO" 5; }
  7697. fi
  7698. ac_ext=c
  7699. ac_cpp='$CPP $CPPFLAGS'
  7700. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7701. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7702. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7704. $as_echo_n "checking for ANSI C header files... " >&6; }
  7705. if ${ac_cv_header_stdc+:} false; then :
  7706. $as_echo_n "(cached) " >&6
  7707. else
  7708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7709. /* end confdefs.h. */
  7710. #include <stdlib.h>
  7711. #include <stdarg.h>
  7712. #include <string.h>
  7713. #include <float.h>
  7714. int
  7715. main ()
  7716. {
  7717. ;
  7718. return 0;
  7719. }
  7720. _ACEOF
  7721. if ac_fn_c_try_compile "$LINENO"; then :
  7722. ac_cv_header_stdc=yes
  7723. else
  7724. ac_cv_header_stdc=no
  7725. fi
  7726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7727. if test $ac_cv_header_stdc = yes; then
  7728. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7730. /* end confdefs.h. */
  7731. #include <string.h>
  7732. _ACEOF
  7733. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7734. $EGREP "memchr" >/dev/null 2>&1; then :
  7735. else
  7736. ac_cv_header_stdc=no
  7737. fi
  7738. rm -f conftest*
  7739. fi
  7740. if test $ac_cv_header_stdc = yes; then
  7741. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7743. /* end confdefs.h. */
  7744. #include <stdlib.h>
  7745. _ACEOF
  7746. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7747. $EGREP "free" >/dev/null 2>&1; then :
  7748. else
  7749. ac_cv_header_stdc=no
  7750. fi
  7751. rm -f conftest*
  7752. fi
  7753. if test $ac_cv_header_stdc = yes; then
  7754. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7755. if test "$cross_compiling" = yes; then :
  7756. :
  7757. else
  7758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7759. /* end confdefs.h. */
  7760. #include <ctype.h>
  7761. #include <stdlib.h>
  7762. #if ((' ' & 0x0FF) == 0x020)
  7763. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7764. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7765. #else
  7766. # define ISLOWER(c) \
  7767. (('a' <= (c) && (c) <= 'i') \
  7768. || ('j' <= (c) && (c) <= 'r') \
  7769. || ('s' <= (c) && (c) <= 'z'))
  7770. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7771. #endif
  7772. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7773. int
  7774. main ()
  7775. {
  7776. int i;
  7777. for (i = 0; i < 256; i++)
  7778. if (XOR (islower (i), ISLOWER (i))
  7779. || toupper (i) != TOUPPER (i))
  7780. return 2;
  7781. return 0;
  7782. }
  7783. _ACEOF
  7784. if ac_fn_c_try_run "$LINENO"; then :
  7785. else
  7786. ac_cv_header_stdc=no
  7787. fi
  7788. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7789. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7790. fi
  7791. fi
  7792. fi
  7793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7794. $as_echo "$ac_cv_header_stdc" >&6; }
  7795. if test $ac_cv_header_stdc = yes; then
  7796. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7797. fi
  7798. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7799. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7800. inttypes.h stdint.h unistd.h
  7801. do :
  7802. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7803. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7804. "
  7805. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7806. cat >>confdefs.h <<_ACEOF
  7807. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7808. _ACEOF
  7809. fi
  7810. done
  7811. for ac_header in dlfcn.h
  7812. do :
  7813. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7814. "
  7815. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7816. cat >>confdefs.h <<_ACEOF
  7817. #define HAVE_DLFCN_H 1
  7818. _ACEOF
  7819. fi
  7820. done
  7821. # Set options
  7822. enable_dlopen=no
  7823. enable_win32_dll=no
  7824. # Check whether --enable-shared was given.
  7825. if test "${enable_shared+set}" = set; then :
  7826. enableval=$enable_shared; p=${PACKAGE-default}
  7827. case $enableval in
  7828. yes) enable_shared=yes ;;
  7829. no) enable_shared=no ;;
  7830. *)
  7831. enable_shared=no
  7832. # Look at the argument we got. We use all the common list separators.
  7833. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7834. for pkg in $enableval; do
  7835. IFS=$lt_save_ifs
  7836. if test "X$pkg" = "X$p"; then
  7837. enable_shared=yes
  7838. fi
  7839. done
  7840. IFS=$lt_save_ifs
  7841. ;;
  7842. esac
  7843. else
  7844. enable_shared=yes
  7845. fi
  7846. # Check whether --enable-static was given.
  7847. if test "${enable_static+set}" = set; then :
  7848. enableval=$enable_static; p=${PACKAGE-default}
  7849. case $enableval in
  7850. yes) enable_static=yes ;;
  7851. no) enable_static=no ;;
  7852. *)
  7853. enable_static=no
  7854. # Look at the argument we got. We use all the common list separators.
  7855. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7856. for pkg in $enableval; do
  7857. IFS=$lt_save_ifs
  7858. if test "X$pkg" = "X$p"; then
  7859. enable_static=yes
  7860. fi
  7861. done
  7862. IFS=$lt_save_ifs
  7863. ;;
  7864. esac
  7865. else
  7866. enable_static=yes
  7867. fi
  7868. # Check whether --with-pic was given.
  7869. if test "${with_pic+set}" = set; then :
  7870. withval=$with_pic; lt_p=${PACKAGE-default}
  7871. case $withval in
  7872. yes|no) pic_mode=$withval ;;
  7873. *)
  7874. pic_mode=default
  7875. # Look at the argument we got. We use all the common list separators.
  7876. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7877. for lt_pkg in $withval; do
  7878. IFS=$lt_save_ifs
  7879. if test "X$lt_pkg" = "X$lt_p"; then
  7880. pic_mode=yes
  7881. fi
  7882. done
  7883. IFS=$lt_save_ifs
  7884. ;;
  7885. esac
  7886. else
  7887. pic_mode=default
  7888. fi
  7889. # Check whether --enable-fast-install was given.
  7890. if test "${enable_fast_install+set}" = set; then :
  7891. enableval=$enable_fast_install; p=${PACKAGE-default}
  7892. case $enableval in
  7893. yes) enable_fast_install=yes ;;
  7894. no) enable_fast_install=no ;;
  7895. *)
  7896. enable_fast_install=no
  7897. # Look at the argument we got. We use all the common list separators.
  7898. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7899. for pkg in $enableval; do
  7900. IFS=$lt_save_ifs
  7901. if test "X$pkg" = "X$p"; then
  7902. enable_fast_install=yes
  7903. fi
  7904. done
  7905. IFS=$lt_save_ifs
  7906. ;;
  7907. esac
  7908. else
  7909. enable_fast_install=yes
  7910. fi
  7911. shared_archive_member_spec=
  7912. case $host,$enable_shared in
  7913. power*-*-aix[5-9]*,yes)
  7914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7915. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  7916. # Check whether --with-aix-soname was given.
  7917. if test "${with_aix_soname+set}" = set; then :
  7918. withval=$with_aix_soname; case $withval in
  7919. aix|svr4|both)
  7920. ;;
  7921. *)
  7922. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7923. ;;
  7924. esac
  7925. lt_cv_with_aix_soname=$with_aix_soname
  7926. else
  7927. if ${lt_cv_with_aix_soname+:} false; then :
  7928. $as_echo_n "(cached) " >&6
  7929. else
  7930. lt_cv_with_aix_soname=aix
  7931. fi
  7932. with_aix_soname=$lt_cv_with_aix_soname
  7933. fi
  7934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7935. $as_echo "$with_aix_soname" >&6; }
  7936. if test aix != "$with_aix_soname"; then
  7937. # For the AIX way of multilib, we name the shared archive member
  7938. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7939. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7940. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7941. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7942. if test 64 = "${OBJECT_MODE-32}"; then
  7943. shared_archive_member_spec=shr_64
  7944. else
  7945. shared_archive_member_spec=shr
  7946. fi
  7947. fi
  7948. ;;
  7949. *)
  7950. with_aix_soname=aix
  7951. ;;
  7952. esac
  7953. # This can be used to rebuild libtool when needed
  7954. LIBTOOL_DEPS=$ltmain
  7955. # Always use our own libtool.
  7956. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7957. test -z "$LN_S" && LN_S="ln -s"
  7958. if test -n "${ZSH_VERSION+set}"; then
  7959. setopt NO_GLOB_SUBST
  7960. fi
  7961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7962. $as_echo_n "checking for objdir... " >&6; }
  7963. if ${lt_cv_objdir+:} false; then :
  7964. $as_echo_n "(cached) " >&6
  7965. else
  7966. rm -f .libs 2>/dev/null
  7967. mkdir .libs 2>/dev/null
  7968. if test -d .libs; then
  7969. lt_cv_objdir=.libs
  7970. else
  7971. # MS-DOS does not allow filenames that begin with a dot.
  7972. lt_cv_objdir=_libs
  7973. fi
  7974. rmdir .libs 2>/dev/null
  7975. fi
  7976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7977. $as_echo "$lt_cv_objdir" >&6; }
  7978. objdir=$lt_cv_objdir
  7979. cat >>confdefs.h <<_ACEOF
  7980. #define LT_OBJDIR "$lt_cv_objdir/"
  7981. _ACEOF
  7982. case $host_os in
  7983. aix3*)
  7984. # AIX sometimes has problems with the GCC collect2 program. For some
  7985. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7986. # vanish in a puff of smoke.
  7987. if test set != "${COLLECT_NAMES+set}"; then
  7988. COLLECT_NAMES=
  7989. export COLLECT_NAMES
  7990. fi
  7991. ;;
  7992. esac
  7993. # Global variables:
  7994. ofile=libtool
  7995. can_build_shared=yes
  7996. # All known linkers require a '.a' archive for static linking (except MSVC,
  7997. # which needs '.lib').
  7998. libext=a
  7999. with_gnu_ld=$lt_cv_prog_gnu_ld
  8000. old_CC=$CC
  8001. old_CFLAGS=$CFLAGS
  8002. # Set sane defaults for various variables
  8003. test -z "$CC" && CC=cc
  8004. test -z "$LTCC" && LTCC=$CC
  8005. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8006. test -z "$LD" && LD=ld
  8007. test -z "$ac_objext" && ac_objext=o
  8008. func_cc_basename $compiler
  8009. cc_basename=$func_cc_basename_result
  8010. # Only perform the check for file, if the check method requires it
  8011. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8012. case $deplibs_check_method in
  8013. file_magic*)
  8014. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8016. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  8017. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8018. $as_echo_n "(cached) " >&6
  8019. else
  8020. case $MAGIC_CMD in
  8021. [\\/*] | ?:[\\/]*)
  8022. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8023. ;;
  8024. *)
  8025. lt_save_MAGIC_CMD=$MAGIC_CMD
  8026. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8027. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8028. for ac_dir in $ac_dummy; do
  8029. IFS=$lt_save_ifs
  8030. test -z "$ac_dir" && ac_dir=.
  8031. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  8032. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  8033. if test -n "$file_magic_test_file"; then
  8034. case $deplibs_check_method in
  8035. "file_magic "*)
  8036. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8037. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8038. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8039. $EGREP "$file_magic_regex" > /dev/null; then
  8040. :
  8041. else
  8042. cat <<_LT_EOF 1>&2
  8043. *** Warning: the command libtool uses to detect shared libraries,
  8044. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8045. *** The result is that libtool may fail to recognize shared libraries
  8046. *** as such. This will affect the creation of libtool libraries that
  8047. *** depend on shared libraries, but programs linked with such libtool
  8048. *** libraries will work regardless of this problem. Nevertheless, you
  8049. *** may want to report the problem to your system manager and/or to
  8050. *** bug-libtool@gnu.org
  8051. _LT_EOF
  8052. fi ;;
  8053. esac
  8054. fi
  8055. break
  8056. fi
  8057. done
  8058. IFS=$lt_save_ifs
  8059. MAGIC_CMD=$lt_save_MAGIC_CMD
  8060. ;;
  8061. esac
  8062. fi
  8063. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8064. if test -n "$MAGIC_CMD"; then
  8065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8066. $as_echo "$MAGIC_CMD" >&6; }
  8067. else
  8068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8069. $as_echo "no" >&6; }
  8070. fi
  8071. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8072. if test -n "$ac_tool_prefix"; then
  8073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8074. $as_echo_n "checking for file... " >&6; }
  8075. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8076. $as_echo_n "(cached) " >&6
  8077. else
  8078. case $MAGIC_CMD in
  8079. [\\/*] | ?:[\\/]*)
  8080. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8081. ;;
  8082. *)
  8083. lt_save_MAGIC_CMD=$MAGIC_CMD
  8084. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8085. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8086. for ac_dir in $ac_dummy; do
  8087. IFS=$lt_save_ifs
  8088. test -z "$ac_dir" && ac_dir=.
  8089. if test -f "$ac_dir/file"; then
  8090. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  8091. if test -n "$file_magic_test_file"; then
  8092. case $deplibs_check_method in
  8093. "file_magic "*)
  8094. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8095. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8096. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8097. $EGREP "$file_magic_regex" > /dev/null; then
  8098. :
  8099. else
  8100. cat <<_LT_EOF 1>&2
  8101. *** Warning: the command libtool uses to detect shared libraries,
  8102. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8103. *** The result is that libtool may fail to recognize shared libraries
  8104. *** as such. This will affect the creation of libtool libraries that
  8105. *** depend on shared libraries, but programs linked with such libtool
  8106. *** libraries will work regardless of this problem. Nevertheless, you
  8107. *** may want to report the problem to your system manager and/or to
  8108. *** bug-libtool@gnu.org
  8109. _LT_EOF
  8110. fi ;;
  8111. esac
  8112. fi
  8113. break
  8114. fi
  8115. done
  8116. IFS=$lt_save_ifs
  8117. MAGIC_CMD=$lt_save_MAGIC_CMD
  8118. ;;
  8119. esac
  8120. fi
  8121. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8122. if test -n "$MAGIC_CMD"; then
  8123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8124. $as_echo "$MAGIC_CMD" >&6; }
  8125. else
  8126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8127. $as_echo "no" >&6; }
  8128. fi
  8129. else
  8130. MAGIC_CMD=:
  8131. fi
  8132. fi
  8133. fi
  8134. ;;
  8135. esac
  8136. # Use C for the default configuration in the libtool script
  8137. lt_save_CC=$CC
  8138. ac_ext=c
  8139. ac_cpp='$CPP $CPPFLAGS'
  8140. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8141. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8142. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8143. # Source file extension for C test sources.
  8144. ac_ext=c
  8145. # Object file extension for compiled C test sources.
  8146. objext=o
  8147. objext=$objext
  8148. # Code to be used in simple compile tests
  8149. lt_simple_compile_test_code="int some_variable = 0;"
  8150. # Code to be used in simple link tests
  8151. lt_simple_link_test_code='int main(){return(0);}'
  8152. # If no C compiler was specified, use CC.
  8153. LTCC=${LTCC-"$CC"}
  8154. # If no C compiler flags were specified, use CFLAGS.
  8155. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8156. # Allow CC to be a program name with arguments.
  8157. compiler=$CC
  8158. # Save the default compiler, since it gets overwritten when the other
  8159. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8160. compiler_DEFAULT=$CC
  8161. # save warnings/boilerplate of simple test code
  8162. ac_outfile=conftest.$ac_objext
  8163. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8164. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8165. _lt_compiler_boilerplate=`cat conftest.err`
  8166. $RM conftest*
  8167. ac_outfile=conftest.$ac_objext
  8168. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8169. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8170. _lt_linker_boilerplate=`cat conftest.err`
  8171. $RM -r conftest*
  8172. ## CAVEAT EMPTOR:
  8173. ## There is no encapsulation within the following macros, do not change
  8174. ## the running order or otherwise move them around unless you know exactly
  8175. ## what you are doing...
  8176. if test -n "$compiler"; then
  8177. lt_prog_compiler_no_builtin_flag=
  8178. if test yes = "$GCC"; then
  8179. case $cc_basename in
  8180. nvcc*)
  8181. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8182. *)
  8183. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8184. esac
  8185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8186. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8187. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8188. $as_echo_n "(cached) " >&6
  8189. else
  8190. lt_cv_prog_compiler_rtti_exceptions=no
  8191. ac_outfile=conftest.$ac_objext
  8192. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8193. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8194. # Insert the option either (1) after the last *FLAGS variable, or
  8195. # (2) before a word containing "conftest.", or (3) at the end.
  8196. # Note that $ac_compile itself does not contain backslashes and begins
  8197. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8198. # The option is referenced via a variable to avoid confusing sed.
  8199. lt_compile=`echo "$ac_compile" | $SED \
  8200. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8201. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8202. -e 's:$: $lt_compiler_flag:'`
  8203. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8204. (eval "$lt_compile" 2>conftest.err)
  8205. ac_status=$?
  8206. cat conftest.err >&5
  8207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8208. if (exit $ac_status) && test -s "$ac_outfile"; then
  8209. # The compiler can only warn and ignore the option if not recognized
  8210. # So say no if there are warnings other than the usual output.
  8211. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8212. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8213. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8214. lt_cv_prog_compiler_rtti_exceptions=yes
  8215. fi
  8216. fi
  8217. $RM conftest*
  8218. fi
  8219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8220. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8221. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8222. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8223. else
  8224. :
  8225. fi
  8226. fi
  8227. lt_prog_compiler_wl=
  8228. lt_prog_compiler_pic=
  8229. lt_prog_compiler_static=
  8230. if test yes = "$GCC"; then
  8231. lt_prog_compiler_wl='-Wl,'
  8232. lt_prog_compiler_static='-static'
  8233. case $host_os in
  8234. aix*)
  8235. # All AIX code is PIC.
  8236. if test ia64 = "$host_cpu"; then
  8237. # AIX 5 now supports IA64 processor
  8238. lt_prog_compiler_static='-Bstatic'
  8239. fi
  8240. lt_prog_compiler_pic='-fPIC'
  8241. ;;
  8242. amigaos*)
  8243. case $host_cpu in
  8244. powerpc)
  8245. # see comment about AmigaOS4 .so support
  8246. lt_prog_compiler_pic='-fPIC'
  8247. ;;
  8248. m68k)
  8249. # FIXME: we need at least 68020 code to build shared libraries, but
  8250. # adding the '-m68020' flag to GCC prevents building anything better,
  8251. # like '-m68040'.
  8252. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8253. ;;
  8254. esac
  8255. ;;
  8256. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8257. # PIC is the default for these OSes.
  8258. ;;
  8259. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8260. # This hack is so that the source file can tell whether it is being
  8261. # built for inclusion in a dll (and should export symbols for example).
  8262. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8263. # (--disable-auto-import) libraries
  8264. lt_prog_compiler_pic='-DDLL_EXPORT'
  8265. case $host_os in
  8266. os2*)
  8267. lt_prog_compiler_static='$wl-static'
  8268. ;;
  8269. esac
  8270. ;;
  8271. darwin* | rhapsody*)
  8272. # PIC is the default on this platform
  8273. # Common symbols not allowed in MH_DYLIB files
  8274. lt_prog_compiler_pic='-fno-common'
  8275. ;;
  8276. haiku*)
  8277. # PIC is the default for Haiku.
  8278. # The "-static" flag exists, but is broken.
  8279. lt_prog_compiler_static=
  8280. ;;
  8281. hpux*)
  8282. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8283. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8284. # sets the default TLS model and affects inlining.
  8285. case $host_cpu in
  8286. hppa*64*)
  8287. # +Z the default
  8288. ;;
  8289. *)
  8290. lt_prog_compiler_pic='-fPIC'
  8291. ;;
  8292. esac
  8293. ;;
  8294. interix[3-9]*)
  8295. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8296. # Instead, we relocate shared libraries at runtime.
  8297. ;;
  8298. msdosdjgpp*)
  8299. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8300. # on systems that don't support them.
  8301. lt_prog_compiler_can_build_shared=no
  8302. enable_shared=no
  8303. ;;
  8304. *nto* | *qnx*)
  8305. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8306. # it will coredump.
  8307. lt_prog_compiler_pic='-fPIC -shared'
  8308. ;;
  8309. sysv4*MP*)
  8310. if test -d /usr/nec; then
  8311. lt_prog_compiler_pic=-Kconform_pic
  8312. fi
  8313. ;;
  8314. *)
  8315. lt_prog_compiler_pic='-fPIC'
  8316. ;;
  8317. esac
  8318. case $cc_basename in
  8319. nvcc*) # Cuda Compiler Driver 2.2
  8320. lt_prog_compiler_wl='-Xlinker '
  8321. if test -n "$lt_prog_compiler_pic"; then
  8322. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8323. fi
  8324. ;;
  8325. esac
  8326. else
  8327. # PORTME Check for flag to pass linker flags through the system compiler.
  8328. case $host_os in
  8329. aix*)
  8330. lt_prog_compiler_wl='-Wl,'
  8331. if test ia64 = "$host_cpu"; then
  8332. # AIX 5 now supports IA64 processor
  8333. lt_prog_compiler_static='-Bstatic'
  8334. else
  8335. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8336. fi
  8337. ;;
  8338. darwin* | rhapsody*)
  8339. # PIC is the default on this platform
  8340. # Common symbols not allowed in MH_DYLIB files
  8341. lt_prog_compiler_pic='-fno-common'
  8342. case $cc_basename in
  8343. nagfor*)
  8344. # NAG Fortran compiler
  8345. lt_prog_compiler_wl='-Wl,-Wl,,'
  8346. lt_prog_compiler_pic='-PIC'
  8347. lt_prog_compiler_static='-Bstatic'
  8348. ;;
  8349. esac
  8350. ;;
  8351. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8352. # This hack is so that the source file can tell whether it is being
  8353. # built for inclusion in a dll (and should export symbols for example).
  8354. lt_prog_compiler_pic='-DDLL_EXPORT'
  8355. case $host_os in
  8356. os2*)
  8357. lt_prog_compiler_static='$wl-static'
  8358. ;;
  8359. esac
  8360. ;;
  8361. hpux9* | hpux10* | hpux11*)
  8362. lt_prog_compiler_wl='-Wl,'
  8363. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8364. # not for PA HP-UX.
  8365. case $host_cpu in
  8366. hppa*64*|ia64*)
  8367. # +Z the default
  8368. ;;
  8369. *)
  8370. lt_prog_compiler_pic='+Z'
  8371. ;;
  8372. esac
  8373. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8374. lt_prog_compiler_static='$wl-a ${wl}archive'
  8375. ;;
  8376. irix5* | irix6* | nonstopux*)
  8377. lt_prog_compiler_wl='-Wl,'
  8378. # PIC (with -KPIC) is the default.
  8379. lt_prog_compiler_static='-non_shared'
  8380. ;;
  8381. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8382. case $cc_basename in
  8383. # old Intel for x86_64, which still supported -KPIC.
  8384. ecc*)
  8385. lt_prog_compiler_wl='-Wl,'
  8386. lt_prog_compiler_pic='-KPIC'
  8387. lt_prog_compiler_static='-static'
  8388. ;;
  8389. # icc used to be incompatible with GCC.
  8390. # ICC 10 doesn't accept -KPIC any more.
  8391. icc* | ifort*)
  8392. lt_prog_compiler_wl='-Wl,'
  8393. lt_prog_compiler_pic='-fPIC'
  8394. lt_prog_compiler_static='-static'
  8395. ;;
  8396. # Lahey Fortran 8.1.
  8397. lf95*)
  8398. lt_prog_compiler_wl='-Wl,'
  8399. lt_prog_compiler_pic='--shared'
  8400. lt_prog_compiler_static='--static'
  8401. ;;
  8402. nagfor*)
  8403. # NAG Fortran compiler
  8404. lt_prog_compiler_wl='-Wl,-Wl,,'
  8405. lt_prog_compiler_pic='-PIC'
  8406. lt_prog_compiler_static='-Bstatic'
  8407. ;;
  8408. tcc*)
  8409. # Fabrice Bellard et al's Tiny C Compiler
  8410. lt_prog_compiler_wl='-Wl,'
  8411. lt_prog_compiler_pic='-fPIC'
  8412. lt_prog_compiler_static='-static'
  8413. ;;
  8414. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8415. # Portland Group compilers (*not* the Pentium gcc compiler,
  8416. # which looks to be a dead project)
  8417. lt_prog_compiler_wl='-Wl,'
  8418. lt_prog_compiler_pic='-fpic'
  8419. lt_prog_compiler_static='-Bstatic'
  8420. ;;
  8421. ccc*)
  8422. lt_prog_compiler_wl='-Wl,'
  8423. # All Alpha code is PIC.
  8424. lt_prog_compiler_static='-non_shared'
  8425. ;;
  8426. xl* | bgxl* | bgf* | mpixl*)
  8427. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8428. lt_prog_compiler_wl='-Wl,'
  8429. lt_prog_compiler_pic='-qpic'
  8430. lt_prog_compiler_static='-qstaticlink'
  8431. ;;
  8432. *)
  8433. case `$CC -V 2>&1 | sed 5q` in
  8434. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8435. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8436. lt_prog_compiler_pic='-KPIC'
  8437. lt_prog_compiler_static='-Bstatic'
  8438. lt_prog_compiler_wl=''
  8439. ;;
  8440. *Sun\ F* | *Sun*Fortran*)
  8441. lt_prog_compiler_pic='-KPIC'
  8442. lt_prog_compiler_static='-Bstatic'
  8443. lt_prog_compiler_wl='-Qoption ld '
  8444. ;;
  8445. *Sun\ C*)
  8446. # Sun C 5.9
  8447. lt_prog_compiler_pic='-KPIC'
  8448. lt_prog_compiler_static='-Bstatic'
  8449. lt_prog_compiler_wl='-Wl,'
  8450. ;;
  8451. *Intel*\ [CF]*Compiler*)
  8452. lt_prog_compiler_wl='-Wl,'
  8453. lt_prog_compiler_pic='-fPIC'
  8454. lt_prog_compiler_static='-static'
  8455. ;;
  8456. *Portland\ Group*)
  8457. lt_prog_compiler_wl='-Wl,'
  8458. lt_prog_compiler_pic='-fpic'
  8459. lt_prog_compiler_static='-Bstatic'
  8460. ;;
  8461. esac
  8462. ;;
  8463. esac
  8464. ;;
  8465. newsos6)
  8466. lt_prog_compiler_pic='-KPIC'
  8467. lt_prog_compiler_static='-Bstatic'
  8468. ;;
  8469. *nto* | *qnx*)
  8470. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8471. # it will coredump.
  8472. lt_prog_compiler_pic='-fPIC -shared'
  8473. ;;
  8474. osf3* | osf4* | osf5*)
  8475. lt_prog_compiler_wl='-Wl,'
  8476. # All OSF/1 code is PIC.
  8477. lt_prog_compiler_static='-non_shared'
  8478. ;;
  8479. rdos*)
  8480. lt_prog_compiler_static='-non_shared'
  8481. ;;
  8482. solaris*)
  8483. lt_prog_compiler_pic='-KPIC'
  8484. lt_prog_compiler_static='-Bstatic'
  8485. case $cc_basename in
  8486. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8487. lt_prog_compiler_wl='-Qoption ld ';;
  8488. *)
  8489. lt_prog_compiler_wl='-Wl,';;
  8490. esac
  8491. ;;
  8492. sunos4*)
  8493. lt_prog_compiler_wl='-Qoption ld '
  8494. lt_prog_compiler_pic='-PIC'
  8495. lt_prog_compiler_static='-Bstatic'
  8496. ;;
  8497. sysv4 | sysv4.2uw2* | sysv4.3*)
  8498. lt_prog_compiler_wl='-Wl,'
  8499. lt_prog_compiler_pic='-KPIC'
  8500. lt_prog_compiler_static='-Bstatic'
  8501. ;;
  8502. sysv4*MP*)
  8503. if test -d /usr/nec; then
  8504. lt_prog_compiler_pic='-Kconform_pic'
  8505. lt_prog_compiler_static='-Bstatic'
  8506. fi
  8507. ;;
  8508. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8509. lt_prog_compiler_wl='-Wl,'
  8510. lt_prog_compiler_pic='-KPIC'
  8511. lt_prog_compiler_static='-Bstatic'
  8512. ;;
  8513. unicos*)
  8514. lt_prog_compiler_wl='-Wl,'
  8515. lt_prog_compiler_can_build_shared=no
  8516. ;;
  8517. uts4*)
  8518. lt_prog_compiler_pic='-pic'
  8519. lt_prog_compiler_static='-Bstatic'
  8520. ;;
  8521. *)
  8522. lt_prog_compiler_can_build_shared=no
  8523. ;;
  8524. esac
  8525. fi
  8526. case $host_os in
  8527. # For platforms that do not support PIC, -DPIC is meaningless:
  8528. *djgpp*)
  8529. lt_prog_compiler_pic=
  8530. ;;
  8531. *)
  8532. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8533. ;;
  8534. esac
  8535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8536. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8537. if ${lt_cv_prog_compiler_pic+:} false; then :
  8538. $as_echo_n "(cached) " >&6
  8539. else
  8540. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8541. fi
  8542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8543. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8544. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8545. #
  8546. # Check to make sure the PIC flag actually works.
  8547. #
  8548. if test -n "$lt_prog_compiler_pic"; then
  8549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8550. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8551. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8552. $as_echo_n "(cached) " >&6
  8553. else
  8554. lt_cv_prog_compiler_pic_works=no
  8555. ac_outfile=conftest.$ac_objext
  8556. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8557. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8558. # Insert the option either (1) after the last *FLAGS variable, or
  8559. # (2) before a word containing "conftest.", or (3) at the end.
  8560. # Note that $ac_compile itself does not contain backslashes and begins
  8561. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8562. # The option is referenced via a variable to avoid confusing sed.
  8563. lt_compile=`echo "$ac_compile" | $SED \
  8564. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8565. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8566. -e 's:$: $lt_compiler_flag:'`
  8567. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8568. (eval "$lt_compile" 2>conftest.err)
  8569. ac_status=$?
  8570. cat conftest.err >&5
  8571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8572. if (exit $ac_status) && test -s "$ac_outfile"; then
  8573. # The compiler can only warn and ignore the option if not recognized
  8574. # So say no if there are warnings other than the usual output.
  8575. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8576. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8577. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8578. lt_cv_prog_compiler_pic_works=yes
  8579. fi
  8580. fi
  8581. $RM conftest*
  8582. fi
  8583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8584. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8585. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8586. case $lt_prog_compiler_pic in
  8587. "" | " "*) ;;
  8588. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8589. esac
  8590. else
  8591. lt_prog_compiler_pic=
  8592. lt_prog_compiler_can_build_shared=no
  8593. fi
  8594. fi
  8595. #
  8596. # Check to make sure the static flag actually works.
  8597. #
  8598. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8600. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8601. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8602. $as_echo_n "(cached) " >&6
  8603. else
  8604. lt_cv_prog_compiler_static_works=no
  8605. save_LDFLAGS=$LDFLAGS
  8606. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8607. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8608. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8609. # The linker can only warn and ignore the option if not recognized
  8610. # So say no if there are warnings
  8611. if test -s conftest.err; then
  8612. # Append any errors to the config.log.
  8613. cat conftest.err 1>&5
  8614. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8615. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8616. if diff conftest.exp conftest.er2 >/dev/null; then
  8617. lt_cv_prog_compiler_static_works=yes
  8618. fi
  8619. else
  8620. lt_cv_prog_compiler_static_works=yes
  8621. fi
  8622. fi
  8623. $RM -r conftest*
  8624. LDFLAGS=$save_LDFLAGS
  8625. fi
  8626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8627. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8628. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8629. :
  8630. else
  8631. lt_prog_compiler_static=
  8632. fi
  8633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8634. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8635. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8636. $as_echo_n "(cached) " >&6
  8637. else
  8638. lt_cv_prog_compiler_c_o=no
  8639. $RM -r conftest 2>/dev/null
  8640. mkdir conftest
  8641. cd conftest
  8642. mkdir out
  8643. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8644. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8645. # Insert the option either (1) after the last *FLAGS variable, or
  8646. # (2) before a word containing "conftest.", or (3) at the end.
  8647. # Note that $ac_compile itself does not contain backslashes and begins
  8648. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8649. lt_compile=`echo "$ac_compile" | $SED \
  8650. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8651. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8652. -e 's:$: $lt_compiler_flag:'`
  8653. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8654. (eval "$lt_compile" 2>out/conftest.err)
  8655. ac_status=$?
  8656. cat out/conftest.err >&5
  8657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8658. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8659. then
  8660. # The compiler can only warn and ignore the option if not recognized
  8661. # So say no if there are warnings
  8662. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8663. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8664. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8665. lt_cv_prog_compiler_c_o=yes
  8666. fi
  8667. fi
  8668. chmod u+w . 2>&5
  8669. $RM conftest*
  8670. # SGI C++ compiler will create directory out/ii_files/ for
  8671. # template instantiation
  8672. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8673. $RM out/* && rmdir out
  8674. cd ..
  8675. $RM -r conftest
  8676. $RM conftest*
  8677. fi
  8678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8679. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8681. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8682. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8683. $as_echo_n "(cached) " >&6
  8684. else
  8685. lt_cv_prog_compiler_c_o=no
  8686. $RM -r conftest 2>/dev/null
  8687. mkdir conftest
  8688. cd conftest
  8689. mkdir out
  8690. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8691. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8692. # Insert the option either (1) after the last *FLAGS variable, or
  8693. # (2) before a word containing "conftest.", or (3) at the end.
  8694. # Note that $ac_compile itself does not contain backslashes and begins
  8695. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8696. lt_compile=`echo "$ac_compile" | $SED \
  8697. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8698. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8699. -e 's:$: $lt_compiler_flag:'`
  8700. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8701. (eval "$lt_compile" 2>out/conftest.err)
  8702. ac_status=$?
  8703. cat out/conftest.err >&5
  8704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8705. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8706. then
  8707. # The compiler can only warn and ignore the option if not recognized
  8708. # So say no if there are warnings
  8709. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8710. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8711. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8712. lt_cv_prog_compiler_c_o=yes
  8713. fi
  8714. fi
  8715. chmod u+w . 2>&5
  8716. $RM conftest*
  8717. # SGI C++ compiler will create directory out/ii_files/ for
  8718. # template instantiation
  8719. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8720. $RM out/* && rmdir out
  8721. cd ..
  8722. $RM -r conftest
  8723. $RM conftest*
  8724. fi
  8725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8726. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8727. hard_links=nottested
  8728. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8729. # do not overwrite the value of need_locks provided by the user
  8730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8731. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8732. hard_links=yes
  8733. $RM conftest*
  8734. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8735. touch conftest.a
  8736. ln conftest.a conftest.b 2>&5 || hard_links=no
  8737. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8739. $as_echo "$hard_links" >&6; }
  8740. if test no = "$hard_links"; then
  8741. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8742. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8743. need_locks=warn
  8744. fi
  8745. else
  8746. need_locks=no
  8747. fi
  8748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8749. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8750. runpath_var=
  8751. allow_undefined_flag=
  8752. always_export_symbols=no
  8753. archive_cmds=
  8754. archive_expsym_cmds=
  8755. compiler_needs_object=no
  8756. enable_shared_with_static_runtimes=no
  8757. export_dynamic_flag_spec=
  8758. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8759. hardcode_automatic=no
  8760. hardcode_direct=no
  8761. hardcode_direct_absolute=no
  8762. hardcode_libdir_flag_spec=
  8763. hardcode_libdir_separator=
  8764. hardcode_minus_L=no
  8765. hardcode_shlibpath_var=unsupported
  8766. inherit_rpath=no
  8767. link_all_deplibs=unknown
  8768. module_cmds=
  8769. module_expsym_cmds=
  8770. old_archive_from_new_cmds=
  8771. old_archive_from_expsyms_cmds=
  8772. thread_safe_flag_spec=
  8773. whole_archive_flag_spec=
  8774. # include_expsyms should be a list of space-separated symbols to be *always*
  8775. # included in the symbol list
  8776. include_expsyms=
  8777. # exclude_expsyms can be an extended regexp of symbols to exclude
  8778. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8779. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8780. # as well as any symbol that contains 'd'.
  8781. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8782. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8783. # platforms (ab)use it in PIC code, but their linkers get confused if
  8784. # the symbol is explicitly referenced. Since portable code cannot
  8785. # rely on this symbol name, it's probably fine to never include it in
  8786. # preloaded symbol tables.
  8787. # Exclude shared library initialization/finalization symbols.
  8788. extract_expsyms_cmds=
  8789. case $host_os in
  8790. cygwin* | mingw* | pw32* | cegcc*)
  8791. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8792. # When not using gcc, we currently assume that we are using
  8793. # Microsoft Visual C++.
  8794. if test yes != "$GCC"; then
  8795. with_gnu_ld=no
  8796. fi
  8797. ;;
  8798. interix*)
  8799. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8800. with_gnu_ld=yes
  8801. ;;
  8802. openbsd* | bitrig*)
  8803. with_gnu_ld=no
  8804. ;;
  8805. linux* | k*bsd*-gnu | gnu*)
  8806. link_all_deplibs=no
  8807. ;;
  8808. esac
  8809. ld_shlibs=yes
  8810. # On some targets, GNU ld is compatible enough with the native linker
  8811. # that we're better off using the native interface for both.
  8812. lt_use_gnu_ld_interface=no
  8813. if test yes = "$with_gnu_ld"; then
  8814. case $host_os in
  8815. aix*)
  8816. # The AIX port of GNU ld has always aspired to compatibility
  8817. # with the native linker. However, as the warning in the GNU ld
  8818. # block says, versions before 2.19.5* couldn't really create working
  8819. # shared libraries, regardless of the interface used.
  8820. case `$LD -v 2>&1` in
  8821. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8822. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8823. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8824. *)
  8825. lt_use_gnu_ld_interface=yes
  8826. ;;
  8827. esac
  8828. ;;
  8829. *)
  8830. lt_use_gnu_ld_interface=yes
  8831. ;;
  8832. esac
  8833. fi
  8834. if test yes = "$lt_use_gnu_ld_interface"; then
  8835. # If archive_cmds runs LD, not CC, wlarc should be empty
  8836. wlarc='$wl'
  8837. # Set some defaults for GNU ld with shared library support. These
  8838. # are reset later if shared libraries are not supported. Putting them
  8839. # here allows them to be overridden if necessary.
  8840. runpath_var=LD_RUN_PATH
  8841. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8842. export_dynamic_flag_spec='$wl--export-dynamic'
  8843. # ancient GNU ld didn't support --whole-archive et. al.
  8844. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8845. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8846. else
  8847. whole_archive_flag_spec=
  8848. fi
  8849. supports_anon_versioning=no
  8850. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  8851. *GNU\ gold*) supports_anon_versioning=yes ;;
  8852. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8853. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8854. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8855. *\ 2.11.*) ;; # other 2.11 versions
  8856. *) supports_anon_versioning=yes ;;
  8857. esac
  8858. # See if GNU ld supports shared libraries.
  8859. case $host_os in
  8860. aix[3-9]*)
  8861. # On AIX/PPC, the GNU linker is very broken
  8862. if test ia64 != "$host_cpu"; then
  8863. ld_shlibs=no
  8864. cat <<_LT_EOF 1>&2
  8865. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8866. *** to be unable to reliably create shared libraries on AIX.
  8867. *** Therefore, libtool is disabling shared libraries support. If you
  8868. *** really care for shared libraries, you may want to install binutils
  8869. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8870. *** You will then need to restart the configuration process.
  8871. _LT_EOF
  8872. fi
  8873. ;;
  8874. amigaos*)
  8875. case $host_cpu in
  8876. powerpc)
  8877. # see comment about AmigaOS4 .so support
  8878. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8879. archive_expsym_cmds=''
  8880. ;;
  8881. m68k)
  8882. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  8883. hardcode_libdir_flag_spec='-L$libdir'
  8884. hardcode_minus_L=yes
  8885. ;;
  8886. esac
  8887. ;;
  8888. beos*)
  8889. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8890. allow_undefined_flag=unsupported
  8891. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8892. # support --undefined. This deserves some investigation. FIXME
  8893. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8894. else
  8895. ld_shlibs=no
  8896. fi
  8897. ;;
  8898. cygwin* | mingw* | pw32* | cegcc*)
  8899. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8900. # as there is no search path for DLLs.
  8901. hardcode_libdir_flag_spec='-L$libdir'
  8902. export_dynamic_flag_spec='$wl--export-all-symbols'
  8903. allow_undefined_flag=unsupported
  8904. always_export_symbols=no
  8905. enable_shared_with_static_runtimes=yes
  8906. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  8907. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8908. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8909. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8910. # If the export-symbols file already is a .def file, use it as
  8911. # is; otherwise, prepend EXPORTS...
  8912. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8913. cp $export_symbols $output_objdir/$soname.def;
  8914. else
  8915. echo EXPORTS > $output_objdir/$soname.def;
  8916. cat $export_symbols >> $output_objdir/$soname.def;
  8917. fi~
  8918. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8919. else
  8920. ld_shlibs=no
  8921. fi
  8922. ;;
  8923. haiku*)
  8924. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8925. link_all_deplibs=yes
  8926. ;;
  8927. os2*)
  8928. hardcode_libdir_flag_spec='-L$libdir'
  8929. hardcode_minus_L=yes
  8930. allow_undefined_flag=unsupported
  8931. shrext_cmds=.dll
  8932. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8933. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8934. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8935. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8936. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8937. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8938. emximp -o $lib $output_objdir/$libname.def'
  8939. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8940. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8941. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8942. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8943. prefix_cmds="$SED"~
  8944. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8945. prefix_cmds="$prefix_cmds -e 1d";
  8946. fi~
  8947. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8948. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8949. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8950. emximp -o $lib $output_objdir/$libname.def'
  8951. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8952. enable_shared_with_static_runtimes=yes
  8953. ;;
  8954. interix[3-9]*)
  8955. hardcode_direct=no
  8956. hardcode_shlibpath_var=no
  8957. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8958. export_dynamic_flag_spec='$wl-E'
  8959. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8960. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8961. # default) and relocated if they conflict, which is a slow very memory
  8962. # consuming and fragmenting process. To avoid this, we pick a random,
  8963. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8964. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8965. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8966. archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8967. ;;
  8968. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8969. tmp_diet=no
  8970. if test linux-dietlibc = "$host_os"; then
  8971. case $cc_basename in
  8972. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8973. esac
  8974. fi
  8975. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8976. && test no = "$tmp_diet"
  8977. then
  8978. tmp_addflag=' $pic_flag'
  8979. tmp_sharedflag='-shared'
  8980. case $cc_basename,$host_cpu in
  8981. pgcc*) # Portland Group C compiler
  8982. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8983. tmp_addflag=' $pic_flag'
  8984. ;;
  8985. pgf77* | pgf90* | pgf95* | pgfortran*)
  8986. # Portland Group f77 and f90 compilers
  8987. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8988. tmp_addflag=' $pic_flag -Mnomain' ;;
  8989. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8990. tmp_addflag=' -i_dynamic' ;;
  8991. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8992. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8993. ifc* | ifort*) # Intel Fortran compiler
  8994. tmp_addflag=' -nofor_main' ;;
  8995. lf95*) # Lahey Fortran 8.1
  8996. whole_archive_flag_spec=
  8997. tmp_sharedflag='--shared' ;;
  8998. nagfor*) # NAGFOR 5.3
  8999. tmp_sharedflag='-Wl,-shared' ;;
  9000. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9001. tmp_sharedflag='-qmkshrobj'
  9002. tmp_addflag= ;;
  9003. nvcc*) # Cuda Compiler Driver 2.2
  9004. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  9005. compiler_needs_object=yes
  9006. ;;
  9007. esac
  9008. case `$CC -V 2>&1 | sed 5q` in
  9009. *Sun\ C*) # Sun C 5.9
  9010. whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  9011. compiler_needs_object=yes
  9012. tmp_sharedflag='-G' ;;
  9013. *Sun\ F*) # Sun Fortran 8.3
  9014. tmp_sharedflag='-G' ;;
  9015. esac
  9016. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9017. if test yes = "$supports_anon_versioning"; then
  9018. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9019. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9020. echo "local: *; };" >> $output_objdir/$libname.ver~
  9021. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  9022. fi
  9023. case $cc_basename in
  9024. tcc*)
  9025. export_dynamic_flag_spec='-rdynamic'
  9026. ;;
  9027. xlf* | bgf* | bgxlf* | mpixlf*)
  9028. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9029. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9030. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9031. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9032. if test yes = "$supports_anon_versioning"; then
  9033. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9034. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9035. echo "local: *; };" >> $output_objdir/$libname.ver~
  9036. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9037. fi
  9038. ;;
  9039. esac
  9040. else
  9041. ld_shlibs=no
  9042. fi
  9043. ;;
  9044. netbsd* | netbsdelf*-gnu)
  9045. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9046. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9047. wlarc=
  9048. else
  9049. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9050. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9051. fi
  9052. ;;
  9053. solaris*)
  9054. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9055. ld_shlibs=no
  9056. cat <<_LT_EOF 1>&2
  9057. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9058. *** create shared libraries on Solaris systems. Therefore, libtool
  9059. *** is disabling shared libraries support. We urge you to upgrade GNU
  9060. *** binutils to release 2.9.1 or newer. Another option is to modify
  9061. *** your PATH or compiler configuration so that the native linker is
  9062. *** used, and then restart.
  9063. _LT_EOF
  9064. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9065. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9066. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9067. else
  9068. ld_shlibs=no
  9069. fi
  9070. ;;
  9071. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9072. case `$LD -v 2>&1` in
  9073. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9074. ld_shlibs=no
  9075. cat <<_LT_EOF 1>&2
  9076. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  9077. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9078. *** is disabling shared libraries support. We urge you to upgrade GNU
  9079. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9080. *** your PATH or compiler configuration so that the native linker is
  9081. *** used, and then restart.
  9082. _LT_EOF
  9083. ;;
  9084. *)
  9085. # For security reasons, it is highly recommended that you always
  9086. # use absolute paths for naming shared libraries, and exclude the
  9087. # DT_RUNPATH tag from executables and libraries. But doing so
  9088. # requires that you compile everything twice, which is a pain.
  9089. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9090. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9091. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9092. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9093. else
  9094. ld_shlibs=no
  9095. fi
  9096. ;;
  9097. esac
  9098. ;;
  9099. sunos4*)
  9100. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9101. wlarc=
  9102. hardcode_direct=yes
  9103. hardcode_shlibpath_var=no
  9104. ;;
  9105. *)
  9106. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9107. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9108. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9109. else
  9110. ld_shlibs=no
  9111. fi
  9112. ;;
  9113. esac
  9114. if test no = "$ld_shlibs"; then
  9115. runpath_var=
  9116. hardcode_libdir_flag_spec=
  9117. export_dynamic_flag_spec=
  9118. whole_archive_flag_spec=
  9119. fi
  9120. else
  9121. # PORTME fill in a description of your system's linker (not GNU ld)
  9122. case $host_os in
  9123. aix3*)
  9124. allow_undefined_flag=unsupported
  9125. always_export_symbols=yes
  9126. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  9127. # Note: this linker hardcodes the directories in LIBPATH if there
  9128. # are no directories specified by -L.
  9129. hardcode_minus_L=yes
  9130. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  9131. # Neither direct hardcoding nor static linking is supported with a
  9132. # broken collect2.
  9133. hardcode_direct=unsupported
  9134. fi
  9135. ;;
  9136. aix[4-9]*)
  9137. if test ia64 = "$host_cpu"; then
  9138. # On IA64, the linker does run time linking by default, so we don't
  9139. # have to do anything special.
  9140. aix_use_runtimelinking=no
  9141. exp_sym_flag='-Bexport'
  9142. no_entry_flag=
  9143. else
  9144. # If we're using GNU nm, then we don't want the "-C" option.
  9145. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  9146. # Without the "-l" option, or with the "-B" option, AIX nm treats
  9147. # weak defined symbols like other global defined symbols, whereas
  9148. # GNU nm marks them as "W".
  9149. # While the 'weak' keyword is ignored in the Export File, we need
  9150. # it in the Import File for the 'aix-soname' feature, so we have
  9151. # to replace the "-B" option with "-P" for AIX nm.
  9152. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9153. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  9154. else
  9155. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  9156. fi
  9157. aix_use_runtimelinking=no
  9158. # Test if we are trying to use run time linking or normal
  9159. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9160. # have runtime linking enabled, and use it for executables.
  9161. # For shared libraries, we enable/disable runtime linking
  9162. # depending on the kind of the shared library created -
  9163. # when "with_aix_soname,aix_use_runtimelinking" is:
  9164. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  9165. # "aix,yes" lib.so shared, rtl:yes, for executables
  9166. # lib.a static archive
  9167. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  9168. # lib.a(lib.so.V) shared, rtl:no, for executables
  9169. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  9170. # lib.a(lib.so.V) shared, rtl:no
  9171. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  9172. # lib.a static archive
  9173. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9174. for ld_flag in $LDFLAGS; do
  9175. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  9176. aix_use_runtimelinking=yes
  9177. break
  9178. fi
  9179. done
  9180. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9181. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9182. # so we don't have lib.a shared libs to link our executables.
  9183. # We have to force runtime linking in this case.
  9184. aix_use_runtimelinking=yes
  9185. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9186. fi
  9187. ;;
  9188. esac
  9189. exp_sym_flag='-bexport'
  9190. no_entry_flag='-bnoentry'
  9191. fi
  9192. # When large executables or shared objects are built, AIX ld can
  9193. # have problems creating the table of contents. If linking a library
  9194. # or program results in "error TOC overflow" add -mminimal-toc to
  9195. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9196. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9197. archive_cmds=''
  9198. hardcode_direct=yes
  9199. hardcode_direct_absolute=yes
  9200. hardcode_libdir_separator=':'
  9201. link_all_deplibs=yes
  9202. file_list_spec='$wl-f,'
  9203. case $with_aix_soname,$aix_use_runtimelinking in
  9204. aix,*) ;; # traditional, no import file
  9205. svr4,* | *,yes) # use import file
  9206. # The Import File defines what to hardcode.
  9207. hardcode_direct=no
  9208. hardcode_direct_absolute=no
  9209. ;;
  9210. esac
  9211. if test yes = "$GCC"; then
  9212. case $host_os in aix4.[012]|aix4.[012].*)
  9213. # We only want to do this on AIX 4.2 and lower, the check
  9214. # below for broken collect2 doesn't work under 4.3+
  9215. collect2name=`$CC -print-prog-name=collect2`
  9216. if test -f "$collect2name" &&
  9217. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9218. then
  9219. # We have reworked collect2
  9220. :
  9221. else
  9222. # We have old collect2
  9223. hardcode_direct=unsupported
  9224. # It fails to find uninstalled libraries when the uninstalled
  9225. # path is not listed in the libpath. Setting hardcode_minus_L
  9226. # to unsupported forces relinking
  9227. hardcode_minus_L=yes
  9228. hardcode_libdir_flag_spec='-L$libdir'
  9229. hardcode_libdir_separator=
  9230. fi
  9231. ;;
  9232. esac
  9233. shared_flag='-shared'
  9234. if test yes = "$aix_use_runtimelinking"; then
  9235. shared_flag="$shared_flag "'$wl-G'
  9236. fi
  9237. # Need to ensure runtime linking is disabled for the traditional
  9238. # shared library, or the linker may eventually find shared libraries
  9239. # /with/ Import File - we do not want to mix them.
  9240. shared_flag_aix='-shared'
  9241. shared_flag_svr4='-shared $wl-G'
  9242. else
  9243. # not using gcc
  9244. if test ia64 = "$host_cpu"; then
  9245. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9246. # chokes on -Wl,-G. The following line is correct:
  9247. shared_flag='-G'
  9248. else
  9249. if test yes = "$aix_use_runtimelinking"; then
  9250. shared_flag='$wl-G'
  9251. else
  9252. shared_flag='$wl-bM:SRE'
  9253. fi
  9254. shared_flag_aix='$wl-bM:SRE'
  9255. shared_flag_svr4='$wl-G'
  9256. fi
  9257. fi
  9258. export_dynamic_flag_spec='$wl-bexpall'
  9259. # It seems that -bexpall does not export symbols beginning with
  9260. # underscore (_), so it is better to generate a list of symbols to export.
  9261. always_export_symbols=yes
  9262. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9263. # Warning - without using the other runtime loading flags (-brtl),
  9264. # -berok will link without error, but may produce a broken library.
  9265. allow_undefined_flag='-berok'
  9266. # Determine the default libpath from the value encoded in an
  9267. # empty executable.
  9268. if test set = "${lt_cv_aix_libpath+set}"; then
  9269. aix_libpath=$lt_cv_aix_libpath
  9270. else
  9271. if ${lt_cv_aix_libpath_+:} false; then :
  9272. $as_echo_n "(cached) " >&6
  9273. else
  9274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9275. /* end confdefs.h. */
  9276. int
  9277. main ()
  9278. {
  9279. ;
  9280. return 0;
  9281. }
  9282. _ACEOF
  9283. if ac_fn_c_try_link "$LINENO"; then :
  9284. lt_aix_libpath_sed='
  9285. /Import File Strings/,/^$/ {
  9286. /^0/ {
  9287. s/^0 *\([^ ]*\) *$/\1/
  9288. p
  9289. }
  9290. }'
  9291. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9292. # Check for a 64-bit object if we didn't find anything.
  9293. if test -z "$lt_cv_aix_libpath_"; then
  9294. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9295. fi
  9296. fi
  9297. rm -f core conftest.err conftest.$ac_objext \
  9298. conftest$ac_exeext conftest.$ac_ext
  9299. if test -z "$lt_cv_aix_libpath_"; then
  9300. lt_cv_aix_libpath_=/usr/lib:/lib
  9301. fi
  9302. fi
  9303. aix_libpath=$lt_cv_aix_libpath_
  9304. fi
  9305. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9306. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  9307. else
  9308. if test ia64 = "$host_cpu"; then
  9309. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9310. allow_undefined_flag="-z nodefs"
  9311. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
  9312. else
  9313. # Determine the default libpath from the value encoded in an
  9314. # empty executable.
  9315. if test set = "${lt_cv_aix_libpath+set}"; then
  9316. aix_libpath=$lt_cv_aix_libpath
  9317. else
  9318. if ${lt_cv_aix_libpath_+:} false; then :
  9319. $as_echo_n "(cached) " >&6
  9320. else
  9321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9322. /* end confdefs.h. */
  9323. int
  9324. main ()
  9325. {
  9326. ;
  9327. return 0;
  9328. }
  9329. _ACEOF
  9330. if ac_fn_c_try_link "$LINENO"; then :
  9331. lt_aix_libpath_sed='
  9332. /Import File Strings/,/^$/ {
  9333. /^0/ {
  9334. s/^0 *\([^ ]*\) *$/\1/
  9335. p
  9336. }
  9337. }'
  9338. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9339. # Check for a 64-bit object if we didn't find anything.
  9340. if test -z "$lt_cv_aix_libpath_"; then
  9341. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9342. fi
  9343. fi
  9344. rm -f core conftest.err conftest.$ac_objext \
  9345. conftest$ac_exeext conftest.$ac_ext
  9346. if test -z "$lt_cv_aix_libpath_"; then
  9347. lt_cv_aix_libpath_=/usr/lib:/lib
  9348. fi
  9349. fi
  9350. aix_libpath=$lt_cv_aix_libpath_
  9351. fi
  9352. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9353. # Warning - without using the other run time loading flags,
  9354. # -berok will link without error, but may produce a broken library.
  9355. no_undefined_flag=' $wl-bernotok'
  9356. allow_undefined_flag=' $wl-berok'
  9357. if test yes = "$with_gnu_ld"; then
  9358. # We only use this code for GNU lds that support --whole-archive.
  9359. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9360. else
  9361. # Exported symbols can be pulled into shared objects from archives
  9362. whole_archive_flag_spec='$convenience'
  9363. fi
  9364. archive_cmds_need_lc=yes
  9365. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9366. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9367. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9368. if test svr4 != "$with_aix_soname"; then
  9369. # This is similar to how AIX traditionally builds its shared libraries.
  9370. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  9371. fi
  9372. if test aix != "$with_aix_soname"; then
  9373. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  9374. else
  9375. # used by -dlpreopen to get the symbols
  9376. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9377. fi
  9378. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9379. fi
  9380. fi
  9381. ;;
  9382. amigaos*)
  9383. case $host_cpu in
  9384. powerpc)
  9385. # see comment about AmigaOS4 .so support
  9386. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9387. archive_expsym_cmds=''
  9388. ;;
  9389. m68k)
  9390. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  9391. hardcode_libdir_flag_spec='-L$libdir'
  9392. hardcode_minus_L=yes
  9393. ;;
  9394. esac
  9395. ;;
  9396. bsdi[45]*)
  9397. export_dynamic_flag_spec=-rdynamic
  9398. ;;
  9399. cygwin* | mingw* | pw32* | cegcc*)
  9400. # When not using gcc, we currently assume that we are using
  9401. # Microsoft Visual C++.
  9402. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9403. # no search path for DLLs.
  9404. case $cc_basename in
  9405. cl*)
  9406. # Native MSVC
  9407. hardcode_libdir_flag_spec=' '
  9408. allow_undefined_flag=unsupported
  9409. always_export_symbols=yes
  9410. file_list_spec='@'
  9411. # Tell ltmain to make .lib files, not .a files.
  9412. libext=lib
  9413. # Tell ltmain to make .dll files, not .so files.
  9414. shrext_cmds=.dll
  9415. # FIXME: Setting linknames here is a bad hack.
  9416. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9417. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9418. cp "$export_symbols" "$output_objdir/$soname.def";
  9419. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9420. else
  9421. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9422. fi~
  9423. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9424. linknames='
  9425. # The linker will not automatically build a static lib if we build a DLL.
  9426. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9427. enable_shared_with_static_runtimes=yes
  9428. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9429. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9430. # Don't use ranlib
  9431. old_postinstall_cmds='chmod 644 $oldlib'
  9432. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9433. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9434. case $lt_outputfile in
  9435. *.exe|*.EXE) ;;
  9436. *)
  9437. lt_outputfile=$lt_outputfile.exe
  9438. lt_tool_outputfile=$lt_tool_outputfile.exe
  9439. ;;
  9440. esac~
  9441. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9442. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9443. $RM "$lt_outputfile.manifest";
  9444. fi'
  9445. ;;
  9446. *)
  9447. # Assume MSVC wrapper
  9448. hardcode_libdir_flag_spec=' '
  9449. allow_undefined_flag=unsupported
  9450. # Tell ltmain to make .lib files, not .a files.
  9451. libext=lib
  9452. # Tell ltmain to make .dll files, not .so files.
  9453. shrext_cmds=.dll
  9454. # FIXME: Setting linknames here is a bad hack.
  9455. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9456. # The linker will automatically build a .lib file if we build a DLL.
  9457. old_archive_from_new_cmds='true'
  9458. # FIXME: Should let the user specify the lib program.
  9459. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9460. enable_shared_with_static_runtimes=yes
  9461. ;;
  9462. esac
  9463. ;;
  9464. darwin* | rhapsody*)
  9465. archive_cmds_need_lc=no
  9466. hardcode_direct=no
  9467. hardcode_automatic=yes
  9468. hardcode_shlibpath_var=unsupported
  9469. if test yes = "$lt_cv_ld_force_load"; then
  9470. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  9471. else
  9472. whole_archive_flag_spec=''
  9473. fi
  9474. link_all_deplibs=yes
  9475. allow_undefined_flag=$_lt_dar_allow_undefined
  9476. case $cc_basename in
  9477. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9478. *) _lt_dar_can_shared=$GCC ;;
  9479. esac
  9480. if test yes = "$_lt_dar_can_shared"; then
  9481. output_verbose_link_cmd=func_echo_all
  9482. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9483. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9484. archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
  9485. module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
  9486. else
  9487. ld_shlibs=no
  9488. fi
  9489. ;;
  9490. dgux*)
  9491. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9492. hardcode_libdir_flag_spec='-L$libdir'
  9493. hardcode_shlibpath_var=no
  9494. ;;
  9495. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9496. # support. Future versions do this automatically, but an explicit c++rt0.o
  9497. # does not break anything, and helps significantly (at the cost of a little
  9498. # extra space).
  9499. freebsd2.2*)
  9500. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9501. hardcode_libdir_flag_spec='-R$libdir'
  9502. hardcode_direct=yes
  9503. hardcode_shlibpath_var=no
  9504. ;;
  9505. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9506. freebsd2.*)
  9507. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9508. hardcode_direct=yes
  9509. hardcode_minus_L=yes
  9510. hardcode_shlibpath_var=no
  9511. ;;
  9512. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9513. freebsd* | dragonfly*)
  9514. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9515. hardcode_libdir_flag_spec='-R$libdir'
  9516. hardcode_direct=yes
  9517. hardcode_shlibpath_var=no
  9518. ;;
  9519. hpux9*)
  9520. if test yes = "$GCC"; then
  9521. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9522. else
  9523. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9524. fi
  9525. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9526. hardcode_libdir_separator=:
  9527. hardcode_direct=yes
  9528. # hardcode_minus_L: Not really in the search PATH,
  9529. # but as the default location of the library.
  9530. hardcode_minus_L=yes
  9531. export_dynamic_flag_spec='$wl-E'
  9532. ;;
  9533. hpux10*)
  9534. if test yes,no = "$GCC,$with_gnu_ld"; then
  9535. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9536. else
  9537. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9538. fi
  9539. if test no = "$with_gnu_ld"; then
  9540. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9541. hardcode_libdir_separator=:
  9542. hardcode_direct=yes
  9543. hardcode_direct_absolute=yes
  9544. export_dynamic_flag_spec='$wl-E'
  9545. # hardcode_minus_L: Not really in the search PATH,
  9546. # but as the default location of the library.
  9547. hardcode_minus_L=yes
  9548. fi
  9549. ;;
  9550. hpux11*)
  9551. if test yes,no = "$GCC,$with_gnu_ld"; then
  9552. case $host_cpu in
  9553. hppa*64*)
  9554. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9555. ;;
  9556. ia64*)
  9557. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9558. ;;
  9559. *)
  9560. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9561. ;;
  9562. esac
  9563. else
  9564. case $host_cpu in
  9565. hppa*64*)
  9566. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9567. ;;
  9568. ia64*)
  9569. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9570. ;;
  9571. *)
  9572. # Older versions of the 11.00 compiler do not understand -b yet
  9573. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9575. $as_echo_n "checking if $CC understands -b... " >&6; }
  9576. if ${lt_cv_prog_compiler__b+:} false; then :
  9577. $as_echo_n "(cached) " >&6
  9578. else
  9579. lt_cv_prog_compiler__b=no
  9580. save_LDFLAGS=$LDFLAGS
  9581. LDFLAGS="$LDFLAGS -b"
  9582. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9583. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9584. # The linker can only warn and ignore the option if not recognized
  9585. # So say no if there are warnings
  9586. if test -s conftest.err; then
  9587. # Append any errors to the config.log.
  9588. cat conftest.err 1>&5
  9589. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9590. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9591. if diff conftest.exp conftest.er2 >/dev/null; then
  9592. lt_cv_prog_compiler__b=yes
  9593. fi
  9594. else
  9595. lt_cv_prog_compiler__b=yes
  9596. fi
  9597. fi
  9598. $RM -r conftest*
  9599. LDFLAGS=$save_LDFLAGS
  9600. fi
  9601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9602. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9603. if test yes = "$lt_cv_prog_compiler__b"; then
  9604. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9605. else
  9606. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9607. fi
  9608. ;;
  9609. esac
  9610. fi
  9611. if test no = "$with_gnu_ld"; then
  9612. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9613. hardcode_libdir_separator=:
  9614. case $host_cpu in
  9615. hppa*64*|ia64*)
  9616. hardcode_direct=no
  9617. hardcode_shlibpath_var=no
  9618. ;;
  9619. *)
  9620. hardcode_direct=yes
  9621. hardcode_direct_absolute=yes
  9622. export_dynamic_flag_spec='$wl-E'
  9623. # hardcode_minus_L: Not really in the search PATH,
  9624. # but as the default location of the library.
  9625. hardcode_minus_L=yes
  9626. ;;
  9627. esac
  9628. fi
  9629. ;;
  9630. irix5* | irix6* | nonstopux*)
  9631. if test yes = "$GCC"; then
  9632. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9633. # Try to use the -exported_symbol ld option, if it does not
  9634. # work, assume that -exports_file does not work either and
  9635. # implicitly export all symbols.
  9636. # This should be the same for all languages, so no per-tag cache variable.
  9637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9638. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9639. if ${lt_cv_irix_exported_symbol+:} false; then :
  9640. $as_echo_n "(cached) " >&6
  9641. else
  9642. save_LDFLAGS=$LDFLAGS
  9643. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9645. /* end confdefs.h. */
  9646. int foo (void) { return 0; }
  9647. _ACEOF
  9648. if ac_fn_c_try_link "$LINENO"; then :
  9649. lt_cv_irix_exported_symbol=yes
  9650. else
  9651. lt_cv_irix_exported_symbol=no
  9652. fi
  9653. rm -f core conftest.err conftest.$ac_objext \
  9654. conftest$ac_exeext conftest.$ac_ext
  9655. LDFLAGS=$save_LDFLAGS
  9656. fi
  9657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9658. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9659. if test yes = "$lt_cv_irix_exported_symbol"; then
  9660. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
  9661. fi
  9662. link_all_deplibs=no
  9663. else
  9664. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9665. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
  9666. fi
  9667. archive_cmds_need_lc='no'
  9668. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9669. hardcode_libdir_separator=:
  9670. inherit_rpath=yes
  9671. link_all_deplibs=yes
  9672. ;;
  9673. linux*)
  9674. case $cc_basename in
  9675. tcc*)
  9676. # Fabrice Bellard et al's Tiny C Compiler
  9677. ld_shlibs=yes
  9678. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9679. ;;
  9680. esac
  9681. ;;
  9682. netbsd* | netbsdelf*-gnu)
  9683. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9684. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9685. else
  9686. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9687. fi
  9688. hardcode_libdir_flag_spec='-R$libdir'
  9689. hardcode_direct=yes
  9690. hardcode_shlibpath_var=no
  9691. ;;
  9692. newsos6)
  9693. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9694. hardcode_direct=yes
  9695. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9696. hardcode_libdir_separator=:
  9697. hardcode_shlibpath_var=no
  9698. ;;
  9699. *nto* | *qnx*)
  9700. ;;
  9701. openbsd* | bitrig*)
  9702. if test -f /usr/libexec/ld.so; then
  9703. hardcode_direct=yes
  9704. hardcode_shlibpath_var=no
  9705. hardcode_direct_absolute=yes
  9706. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9707. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9708. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9709. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9710. export_dynamic_flag_spec='$wl-E'
  9711. else
  9712. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9713. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9714. fi
  9715. else
  9716. ld_shlibs=no
  9717. fi
  9718. ;;
  9719. os2*)
  9720. hardcode_libdir_flag_spec='-L$libdir'
  9721. hardcode_minus_L=yes
  9722. allow_undefined_flag=unsupported
  9723. shrext_cmds=.dll
  9724. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9725. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9726. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9727. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9728. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9729. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9730. emximp -o $lib $output_objdir/$libname.def'
  9731. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9732. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9733. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9734. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9735. prefix_cmds="$SED"~
  9736. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9737. prefix_cmds="$prefix_cmds -e 1d";
  9738. fi~
  9739. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9740. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9741. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9742. emximp -o $lib $output_objdir/$libname.def'
  9743. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9744. enable_shared_with_static_runtimes=yes
  9745. ;;
  9746. osf3*)
  9747. if test yes = "$GCC"; then
  9748. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9749. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9750. else
  9751. allow_undefined_flag=' -expect_unresolved \*'
  9752. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9753. fi
  9754. archive_cmds_need_lc='no'
  9755. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9756. hardcode_libdir_separator=:
  9757. ;;
  9758. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9759. if test yes = "$GCC"; then
  9760. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9761. archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9762. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9763. else
  9764. allow_undefined_flag=' -expect_unresolved \*'
  9765. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9766. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  9767. $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
  9768. # Both c and cxx compiler support -rpath directly
  9769. hardcode_libdir_flag_spec='-rpath $libdir'
  9770. fi
  9771. archive_cmds_need_lc='no'
  9772. hardcode_libdir_separator=:
  9773. ;;
  9774. solaris*)
  9775. no_undefined_flag=' -z defs'
  9776. if test yes = "$GCC"; then
  9777. wlarc='$wl'
  9778. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9779. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9780. $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9781. else
  9782. case `$CC -V 2>&1` in
  9783. *"Compilers 5.0"*)
  9784. wlarc=''
  9785. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9786. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9787. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9788. ;;
  9789. *)
  9790. wlarc='$wl'
  9791. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9792. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9793. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9794. ;;
  9795. esac
  9796. fi
  9797. hardcode_libdir_flag_spec='-R$libdir'
  9798. hardcode_shlibpath_var=no
  9799. case $host_os in
  9800. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9801. *)
  9802. # The compiler driver will combine and reorder linker options,
  9803. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9804. # but is careful enough not to reorder.
  9805. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9806. if test yes = "$GCC"; then
  9807. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9808. else
  9809. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9810. fi
  9811. ;;
  9812. esac
  9813. link_all_deplibs=yes
  9814. ;;
  9815. sunos4*)
  9816. if test sequent = "$host_vendor"; then
  9817. # Use $CC to link under sequent, because it throws in some extra .o
  9818. # files that make .init and .fini sections work.
  9819. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9820. else
  9821. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9822. fi
  9823. hardcode_libdir_flag_spec='-L$libdir'
  9824. hardcode_direct=yes
  9825. hardcode_minus_L=yes
  9826. hardcode_shlibpath_var=no
  9827. ;;
  9828. sysv4)
  9829. case $host_vendor in
  9830. sni)
  9831. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9832. hardcode_direct=yes # is this really true???
  9833. ;;
  9834. siemens)
  9835. ## LD is ld it makes a PLAMLIB
  9836. ## CC just makes a GrossModule.
  9837. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9838. reload_cmds='$CC -r -o $output$reload_objs'
  9839. hardcode_direct=no
  9840. ;;
  9841. motorola)
  9842. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9843. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9844. ;;
  9845. esac
  9846. runpath_var='LD_RUN_PATH'
  9847. hardcode_shlibpath_var=no
  9848. ;;
  9849. sysv4.3*)
  9850. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9851. hardcode_shlibpath_var=no
  9852. export_dynamic_flag_spec='-Bexport'
  9853. ;;
  9854. sysv4*MP*)
  9855. if test -d /usr/nec; then
  9856. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9857. hardcode_shlibpath_var=no
  9858. runpath_var=LD_RUN_PATH
  9859. hardcode_runpath_var=yes
  9860. ld_shlibs=yes
  9861. fi
  9862. ;;
  9863. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9864. no_undefined_flag='$wl-z,text'
  9865. archive_cmds_need_lc=no
  9866. hardcode_shlibpath_var=no
  9867. runpath_var='LD_RUN_PATH'
  9868. if test yes = "$GCC"; then
  9869. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9870. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9871. else
  9872. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9873. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9874. fi
  9875. ;;
  9876. sysv5* | sco3.2v5* | sco5v6*)
  9877. # Note: We CANNOT use -z defs as we might desire, because we do not
  9878. # link with -lc, and that would cause any symbols used from libc to
  9879. # always be unresolved, which means just about no library would
  9880. # ever link correctly. If we're not using GNU ld we use -z text
  9881. # though, which does catch some bad symbols but isn't as heavy-handed
  9882. # as -z defs.
  9883. no_undefined_flag='$wl-z,text'
  9884. allow_undefined_flag='$wl-z,nodefs'
  9885. archive_cmds_need_lc=no
  9886. hardcode_shlibpath_var=no
  9887. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9888. hardcode_libdir_separator=':'
  9889. link_all_deplibs=yes
  9890. export_dynamic_flag_spec='$wl-Bexport'
  9891. runpath_var='LD_RUN_PATH'
  9892. if test yes = "$GCC"; then
  9893. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9894. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9895. else
  9896. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9897. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9898. fi
  9899. ;;
  9900. uts4*)
  9901. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9902. hardcode_libdir_flag_spec='-L$libdir'
  9903. hardcode_shlibpath_var=no
  9904. ;;
  9905. *)
  9906. ld_shlibs=no
  9907. ;;
  9908. esac
  9909. if test sni = "$host_vendor"; then
  9910. case $host in
  9911. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9912. export_dynamic_flag_spec='$wl-Blargedynsym'
  9913. ;;
  9914. esac
  9915. fi
  9916. fi
  9917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9918. $as_echo "$ld_shlibs" >&6; }
  9919. test no = "$ld_shlibs" && can_build_shared=no
  9920. with_gnu_ld=$with_gnu_ld
  9921. #
  9922. # Do we need to explicitly link libc?
  9923. #
  9924. case "x$archive_cmds_need_lc" in
  9925. x|xyes)
  9926. # Assume -lc should be added
  9927. archive_cmds_need_lc=yes
  9928. if test yes,yes = "$GCC,$enable_shared"; then
  9929. case $archive_cmds in
  9930. *'~'*)
  9931. # FIXME: we may have to deal with multi-command sequences.
  9932. ;;
  9933. '$CC '*)
  9934. # Test whether the compiler implicitly links with -lc since on some
  9935. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9936. # to ld, don't add -lc before -lgcc.
  9937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9938. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9939. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9940. $as_echo_n "(cached) " >&6
  9941. else
  9942. $RM conftest*
  9943. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9944. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9945. (eval $ac_compile) 2>&5
  9946. ac_status=$?
  9947. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9948. test $ac_status = 0; } 2>conftest.err; then
  9949. soname=conftest
  9950. lib=conftest
  9951. libobjs=conftest.$ac_objext
  9952. deplibs=
  9953. wl=$lt_prog_compiler_wl
  9954. pic_flag=$lt_prog_compiler_pic
  9955. compiler_flags=-v
  9956. linker_flags=-v
  9957. verstring=
  9958. output_objdir=.
  9959. libname=conftest
  9960. lt_save_allow_undefined_flag=$allow_undefined_flag
  9961. allow_undefined_flag=
  9962. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9963. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9964. ac_status=$?
  9965. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9966. test $ac_status = 0; }
  9967. then
  9968. lt_cv_archive_cmds_need_lc=no
  9969. else
  9970. lt_cv_archive_cmds_need_lc=yes
  9971. fi
  9972. allow_undefined_flag=$lt_save_allow_undefined_flag
  9973. else
  9974. cat conftest.err 1>&5
  9975. fi
  9976. $RM conftest*
  9977. fi
  9978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9979. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9980. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9981. ;;
  9982. esac
  9983. fi
  9984. ;;
  9985. esac
  9986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9987. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9988. if test yes = "$GCC"; then
  9989. case $host_os in
  9990. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9991. *) lt_awk_arg='/^libraries:/' ;;
  9992. esac
  9993. case $host_os in
  9994. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9995. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9996. esac
  9997. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9998. case $lt_search_path_spec in
  9999. *\;*)
  10000. # if the path contains ";" then we assume it to be the separator
  10001. # otherwise default to the standard path separator (i.e. ":") - it is
  10002. # assumed that no part of a normal pathname contains ";" but that should
  10003. # okay in the real world where ";" in dirpaths is itself problematic.
  10004. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  10005. ;;
  10006. *)
  10007. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  10008. ;;
  10009. esac
  10010. # Ok, now we have the path, separated by spaces, we can step through it
  10011. # and add multilib dir if necessary...
  10012. lt_tmp_lt_search_path_spec=
  10013. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  10014. # ...but if some path component already ends with the multilib dir we assume
  10015. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  10016. case "$lt_multi_os_dir; $lt_search_path_spec " in
  10017. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  10018. lt_multi_os_dir=
  10019. ;;
  10020. esac
  10021. for lt_sys_path in $lt_search_path_spec; do
  10022. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  10023. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  10024. elif test -n "$lt_multi_os_dir"; then
  10025. test -d "$lt_sys_path" && \
  10026. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10027. fi
  10028. done
  10029. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10030. BEGIN {RS = " "; FS = "/|\n";} {
  10031. lt_foo = "";
  10032. lt_count = 0;
  10033. for (lt_i = NF; lt_i > 0; lt_i--) {
  10034. if ($lt_i != "" && $lt_i != ".") {
  10035. if ($lt_i == "..") {
  10036. lt_count++;
  10037. } else {
  10038. if (lt_count == 0) {
  10039. lt_foo = "/" $lt_i lt_foo;
  10040. } else {
  10041. lt_count--;
  10042. }
  10043. }
  10044. }
  10045. }
  10046. if (lt_foo != "") { lt_freq[lt_foo]++; }
  10047. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10048. }'`
  10049. # AWK program above erroneously prepends '/' to C:/dos/paths
  10050. # for these hosts.
  10051. case $host_os in
  10052. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10053. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  10054. esac
  10055. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10056. else
  10057. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10058. fi
  10059. library_names_spec=
  10060. libname_spec='lib$name'
  10061. soname_spec=
  10062. shrext_cmds=.so
  10063. postinstall_cmds=
  10064. postuninstall_cmds=
  10065. finish_cmds=
  10066. finish_eval=
  10067. shlibpath_var=
  10068. shlibpath_overrides_runpath=unknown
  10069. version_type=none
  10070. dynamic_linker="$host_os ld.so"
  10071. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10072. need_lib_prefix=unknown
  10073. hardcode_into_libs=no
  10074. # when you set need_version to no, make sure it does not cause -set_version
  10075. # flags to be left without arguments
  10076. need_version=unknown
  10077. case $host_os in
  10078. aix3*)
  10079. version_type=linux # correct to gnu/linux during the next big refactor
  10080. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  10081. shlibpath_var=LIBPATH
  10082. # AIX 3 has no versioning support, so we append a major version to the name.
  10083. soname_spec='$libname$release$shared_ext$major'
  10084. ;;
  10085. aix[4-9]*)
  10086. version_type=linux # correct to gnu/linux during the next big refactor
  10087. need_lib_prefix=no
  10088. need_version=no
  10089. hardcode_into_libs=yes
  10090. if test ia64 = "$host_cpu"; then
  10091. # AIX 5 supports IA64
  10092. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  10093. shlibpath_var=LD_LIBRARY_PATH
  10094. else
  10095. # With GCC up to 2.95.x, collect2 would create an import file
  10096. # for dependence libraries. The import file would start with
  10097. # the line '#! .'. This would cause the generated library to
  10098. # depend on '.', always an invalid library. This was fixed in
  10099. # development snapshots of GCC prior to 3.0.
  10100. case $host_os in
  10101. aix4 | aix4.[01] | aix4.[01].*)
  10102. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10103. echo ' yes '
  10104. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  10105. :
  10106. else
  10107. can_build_shared=no
  10108. fi
  10109. ;;
  10110. esac
  10111. # Using Import Files as archive members, it is possible to support
  10112. # filename-based versioning of shared library archives on AIX. While
  10113. # this would work for both with and without runtime linking, it will
  10114. # prevent static linking of such archives. So we do filename-based
  10115. # shared library versioning with .so extension only, which is used
  10116. # when both runtime linking and shared linking is enabled.
  10117. # Unfortunately, runtime linking may impact performance, so we do
  10118. # not want this to be the default eventually. Also, we use the
  10119. # versioned .so libs for executables only if there is the -brtl
  10120. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  10121. # To allow for filename-based versioning support, we need to create
  10122. # libNAME.so.V as an archive file, containing:
  10123. # *) an Import File, referring to the versioned filename of the
  10124. # archive as well as the shared archive member, telling the
  10125. # bitwidth (32 or 64) of that shared object, and providing the
  10126. # list of exported symbols of that shared object, eventually
  10127. # decorated with the 'weak' keyword
  10128. # *) the shared object with the F_LOADONLY flag set, to really avoid
  10129. # it being seen by the linker.
  10130. # At run time we better use the real file rather than another symlink,
  10131. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  10132. case $with_aix_soname,$aix_use_runtimelinking in
  10133. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  10134. # soname into executable. Probably we can add versioning support to
  10135. # collect2, so additional links can be useful in future.
  10136. aix,yes) # traditional libtool
  10137. dynamic_linker='AIX unversionable lib.so'
  10138. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10139. # instead of lib<name>.a to let people know that these are not
  10140. # typical AIX shared libraries.
  10141. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10142. ;;
  10143. aix,no) # traditional AIX only
  10144. dynamic_linker='AIX lib.a(lib.so.V)'
  10145. # We preserve .a as extension for shared libraries through AIX4.2
  10146. # and later when we are not doing run time linking.
  10147. library_names_spec='$libname$release.a $libname.a'
  10148. soname_spec='$libname$release$shared_ext$major'
  10149. ;;
  10150. svr4,*) # full svr4 only
  10151. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  10152. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10153. # We do not specify a path in Import Files, so LIBPATH fires.
  10154. shlibpath_overrides_runpath=yes
  10155. ;;
  10156. *,yes) # both, prefer svr4
  10157. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  10158. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10159. # unpreferred sharedlib libNAME.a needs extra handling
  10160. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  10161. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  10162. # We do not specify a path in Import Files, so LIBPATH fires.
  10163. shlibpath_overrides_runpath=yes
  10164. ;;
  10165. *,no) # both, prefer aix
  10166. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  10167. library_names_spec='$libname$release.a $libname.a'
  10168. soname_spec='$libname$release$shared_ext$major'
  10169. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  10170. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  10171. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  10172. ;;
  10173. esac
  10174. shlibpath_var=LIBPATH
  10175. fi
  10176. ;;
  10177. amigaos*)
  10178. case $host_cpu in
  10179. powerpc)
  10180. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10181. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10182. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10183. ;;
  10184. m68k)
  10185. library_names_spec='$libname.ixlibrary $libname.a'
  10186. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10187. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  10188. ;;
  10189. esac
  10190. ;;
  10191. beos*)
  10192. library_names_spec='$libname$shared_ext'
  10193. dynamic_linker="$host_os ld.so"
  10194. shlibpath_var=LIBRARY_PATH
  10195. ;;
  10196. bsdi[45]*)
  10197. version_type=linux # correct to gnu/linux during the next big refactor
  10198. need_version=no
  10199. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10200. soname_spec='$libname$release$shared_ext$major'
  10201. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10202. shlibpath_var=LD_LIBRARY_PATH
  10203. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10204. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10205. # the default ld.so.conf also contains /usr/contrib/lib and
  10206. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10207. # libtool to hard-code these into programs
  10208. ;;
  10209. cygwin* | mingw* | pw32* | cegcc*)
  10210. version_type=windows
  10211. shrext_cmds=.dll
  10212. need_version=no
  10213. need_lib_prefix=no
  10214. case $GCC,$cc_basename in
  10215. yes,*)
  10216. # gcc
  10217. library_names_spec='$libname.dll.a'
  10218. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10219. postinstall_cmds='base_file=`basename \$file`~
  10220. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10221. dldir=$destdir/`dirname \$dlpath`~
  10222. test -d \$dldir || mkdir -p \$dldir~
  10223. $install_prog $dir/$dlname \$dldir/$dlname~
  10224. chmod a+x \$dldir/$dlname~
  10225. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10226. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10227. fi'
  10228. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10229. dlpath=$dir/\$dldll~
  10230. $RM \$dlpath'
  10231. shlibpath_overrides_runpath=yes
  10232. case $host_os in
  10233. cygwin*)
  10234. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10235. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10236. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10237. ;;
  10238. mingw* | cegcc*)
  10239. # MinGW DLLs use traditional 'lib' prefix
  10240. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10241. ;;
  10242. pw32*)
  10243. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10244. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10245. ;;
  10246. esac
  10247. dynamic_linker='Win32 ld.exe'
  10248. ;;
  10249. *,cl*)
  10250. # Native MSVC
  10251. libname_spec='$name'
  10252. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10253. library_names_spec='$libname.dll.lib'
  10254. case $build_os in
  10255. mingw*)
  10256. sys_lib_search_path_spec=
  10257. lt_save_ifs=$IFS
  10258. IFS=';'
  10259. for lt_path in $LIB
  10260. do
  10261. IFS=$lt_save_ifs
  10262. # Let DOS variable expansion print the short 8.3 style file name.
  10263. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10264. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10265. done
  10266. IFS=$lt_save_ifs
  10267. # Convert to MSYS style.
  10268. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10269. ;;
  10270. cygwin*)
  10271. # Convert to unix form, then to dos form, then back to unix form
  10272. # but this time dos style (no spaces!) so that the unix form looks
  10273. # like /cygdrive/c/PROGRA~1:/cygdr...
  10274. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10275. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10276. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10277. ;;
  10278. *)
  10279. sys_lib_search_path_spec=$LIB
  10280. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10281. # It is most probably a Windows format PATH.
  10282. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10283. else
  10284. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10285. fi
  10286. # FIXME: find the short name or the path components, as spaces are
  10287. # common. (e.g. "Program Files" -> "PROGRA~1")
  10288. ;;
  10289. esac
  10290. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10291. postinstall_cmds='base_file=`basename \$file`~
  10292. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10293. dldir=$destdir/`dirname \$dlpath`~
  10294. test -d \$dldir || mkdir -p \$dldir~
  10295. $install_prog $dir/$dlname \$dldir/$dlname'
  10296. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10297. dlpath=$dir/\$dldll~
  10298. $RM \$dlpath'
  10299. shlibpath_overrides_runpath=yes
  10300. dynamic_linker='Win32 link.exe'
  10301. ;;
  10302. *)
  10303. # Assume MSVC wrapper
  10304. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10305. dynamic_linker='Win32 ld.exe'
  10306. ;;
  10307. esac
  10308. # FIXME: first we should search . and the directory the executable is in
  10309. shlibpath_var=PATH
  10310. ;;
  10311. darwin* | rhapsody*)
  10312. dynamic_linker="$host_os dyld"
  10313. version_type=darwin
  10314. need_lib_prefix=no
  10315. need_version=no
  10316. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10317. soname_spec='$libname$release$major$shared_ext'
  10318. shlibpath_overrides_runpath=yes
  10319. shlibpath_var=DYLD_LIBRARY_PATH
  10320. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10321. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10322. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10323. ;;
  10324. dgux*)
  10325. version_type=linux # correct to gnu/linux during the next big refactor
  10326. need_lib_prefix=no
  10327. need_version=no
  10328. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10329. soname_spec='$libname$release$shared_ext$major'
  10330. shlibpath_var=LD_LIBRARY_PATH
  10331. ;;
  10332. freebsd* | dragonfly*)
  10333. # DragonFly does not have aout. When/if they implement a new
  10334. # versioning mechanism, adjust this.
  10335. if test -x /usr/bin/objformat; then
  10336. objformat=`/usr/bin/objformat`
  10337. else
  10338. case $host_os in
  10339. freebsd[23].*) objformat=aout ;;
  10340. *) objformat=elf ;;
  10341. esac
  10342. fi
  10343. version_type=freebsd-$objformat
  10344. case $version_type in
  10345. freebsd-elf*)
  10346. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10347. soname_spec='$libname$release$shared_ext$major'
  10348. need_version=no
  10349. need_lib_prefix=no
  10350. ;;
  10351. freebsd-*)
  10352. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10353. need_version=yes
  10354. ;;
  10355. esac
  10356. shlibpath_var=LD_LIBRARY_PATH
  10357. case $host_os in
  10358. freebsd2.*)
  10359. shlibpath_overrides_runpath=yes
  10360. ;;
  10361. freebsd3.[01]* | freebsdelf3.[01]*)
  10362. shlibpath_overrides_runpath=yes
  10363. hardcode_into_libs=yes
  10364. ;;
  10365. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10366. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10367. shlibpath_overrides_runpath=no
  10368. hardcode_into_libs=yes
  10369. ;;
  10370. *) # from 4.6 on, and DragonFly
  10371. shlibpath_overrides_runpath=yes
  10372. hardcode_into_libs=yes
  10373. ;;
  10374. esac
  10375. ;;
  10376. haiku*)
  10377. version_type=linux # correct to gnu/linux during the next big refactor
  10378. need_lib_prefix=no
  10379. need_version=no
  10380. dynamic_linker="$host_os runtime_loader"
  10381. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10382. soname_spec='$libname$release$shared_ext$major'
  10383. shlibpath_var=LIBRARY_PATH
  10384. shlibpath_overrides_runpath=no
  10385. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10386. hardcode_into_libs=yes
  10387. ;;
  10388. hpux9* | hpux10* | hpux11*)
  10389. # Give a soname corresponding to the major version so that dld.sl refuses to
  10390. # link against other versions.
  10391. version_type=sunos
  10392. need_lib_prefix=no
  10393. need_version=no
  10394. case $host_cpu in
  10395. ia64*)
  10396. shrext_cmds='.so'
  10397. hardcode_into_libs=yes
  10398. dynamic_linker="$host_os dld.so"
  10399. shlibpath_var=LD_LIBRARY_PATH
  10400. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10401. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10402. soname_spec='$libname$release$shared_ext$major'
  10403. if test 32 = "$HPUX_IA64_MODE"; then
  10404. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10405. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10406. else
  10407. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10408. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10409. fi
  10410. ;;
  10411. hppa*64*)
  10412. shrext_cmds='.sl'
  10413. hardcode_into_libs=yes
  10414. dynamic_linker="$host_os dld.sl"
  10415. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10416. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10417. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10418. soname_spec='$libname$release$shared_ext$major'
  10419. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10420. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10421. ;;
  10422. *)
  10423. shrext_cmds='.sl'
  10424. dynamic_linker="$host_os dld.sl"
  10425. shlibpath_var=SHLIB_PATH
  10426. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10427. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10428. soname_spec='$libname$release$shared_ext$major'
  10429. ;;
  10430. esac
  10431. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10432. postinstall_cmds='chmod 555 $lib'
  10433. # or fails outright, so override atomically:
  10434. install_override_mode=555
  10435. ;;
  10436. interix[3-9]*)
  10437. version_type=linux # correct to gnu/linux during the next big refactor
  10438. need_lib_prefix=no
  10439. need_version=no
  10440. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10441. soname_spec='$libname$release$shared_ext$major'
  10442. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10443. shlibpath_var=LD_LIBRARY_PATH
  10444. shlibpath_overrides_runpath=no
  10445. hardcode_into_libs=yes
  10446. ;;
  10447. irix5* | irix6* | nonstopux*)
  10448. case $host_os in
  10449. nonstopux*) version_type=nonstopux ;;
  10450. *)
  10451. if test yes = "$lt_cv_prog_gnu_ld"; then
  10452. version_type=linux # correct to gnu/linux during the next big refactor
  10453. else
  10454. version_type=irix
  10455. fi ;;
  10456. esac
  10457. need_lib_prefix=no
  10458. need_version=no
  10459. soname_spec='$libname$release$shared_ext$major'
  10460. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10461. case $host_os in
  10462. irix5* | nonstopux*)
  10463. libsuff= shlibsuff=
  10464. ;;
  10465. *)
  10466. case $LD in # libtool.m4 will add one of these switches to LD
  10467. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10468. libsuff= shlibsuff= libmagic=32-bit;;
  10469. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10470. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10471. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10472. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10473. *) libsuff= shlibsuff= libmagic=never-match;;
  10474. esac
  10475. ;;
  10476. esac
  10477. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10478. shlibpath_overrides_runpath=no
  10479. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10480. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10481. hardcode_into_libs=yes
  10482. ;;
  10483. # No shared lib support for Linux oldld, aout, or coff.
  10484. linux*oldld* | linux*aout* | linux*coff*)
  10485. dynamic_linker=no
  10486. ;;
  10487. linux*android*)
  10488. version_type=none # Android doesn't support versioned libraries.
  10489. need_lib_prefix=no
  10490. need_version=no
  10491. library_names_spec='$libname$release$shared_ext'
  10492. soname_spec='$libname$release$shared_ext'
  10493. finish_cmds=
  10494. shlibpath_var=LD_LIBRARY_PATH
  10495. shlibpath_overrides_runpath=yes
  10496. # This implies no fast_install, which is unacceptable.
  10497. # Some rework will be needed to allow for fast_install
  10498. # before this can be enabled.
  10499. hardcode_into_libs=yes
  10500. dynamic_linker='Android linker'
  10501. # Don't embed -rpath directories since the linker doesn't support them.
  10502. hardcode_libdir_flag_spec='-L$libdir'
  10503. ;;
  10504. # This must be glibc/ELF.
  10505. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10506. version_type=linux # correct to gnu/linux during the next big refactor
  10507. need_lib_prefix=no
  10508. need_version=no
  10509. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10510. soname_spec='$libname$release$shared_ext$major'
  10511. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10512. shlibpath_var=LD_LIBRARY_PATH
  10513. shlibpath_overrides_runpath=no
  10514. # Some binutils ld are patched to set DT_RUNPATH
  10515. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10516. $as_echo_n "(cached) " >&6
  10517. else
  10518. lt_cv_shlibpath_overrides_runpath=no
  10519. save_LDFLAGS=$LDFLAGS
  10520. save_libdir=$libdir
  10521. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10522. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10524. /* end confdefs.h. */
  10525. int
  10526. main ()
  10527. {
  10528. ;
  10529. return 0;
  10530. }
  10531. _ACEOF
  10532. if ac_fn_c_try_link "$LINENO"; then :
  10533. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10534. lt_cv_shlibpath_overrides_runpath=yes
  10535. fi
  10536. fi
  10537. rm -f core conftest.err conftest.$ac_objext \
  10538. conftest$ac_exeext conftest.$ac_ext
  10539. LDFLAGS=$save_LDFLAGS
  10540. libdir=$save_libdir
  10541. fi
  10542. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10543. # This implies no fast_install, which is unacceptable.
  10544. # Some rework will be needed to allow for fast_install
  10545. # before this can be enabled.
  10546. hardcode_into_libs=yes
  10547. # Ideally, we could use ldconfig to report *all* directores which are
  10548. # searched for libraries, however this is still not possible. Aside from not
  10549. # being certain /sbin/ldconfig is available, command
  10550. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10551. # even though it is searched at run-time. Try to do the best guess by
  10552. # appending ld.so.conf contents (and includes) to the search path.
  10553. if test -f /etc/ld.so.conf; then
  10554. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  10555. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10556. fi
  10557. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10558. # powerpc, because MkLinux only supported shared libraries with the
  10559. # GNU dynamic linker. Since this was broken with cross compilers,
  10560. # most powerpc-linux boxes support dynamic linking these days and
  10561. # people can always --disable-shared, the test was removed, and we
  10562. # assume the GNU/Linux dynamic linker is in use.
  10563. dynamic_linker='GNU/Linux ld.so'
  10564. ;;
  10565. netbsdelf*-gnu)
  10566. version_type=linux
  10567. need_lib_prefix=no
  10568. need_version=no
  10569. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10570. soname_spec='${libname}${release}${shared_ext}$major'
  10571. shlibpath_var=LD_LIBRARY_PATH
  10572. shlibpath_overrides_runpath=no
  10573. hardcode_into_libs=yes
  10574. dynamic_linker='NetBSD ld.elf_so'
  10575. ;;
  10576. netbsd*)
  10577. version_type=sunos
  10578. need_lib_prefix=no
  10579. need_version=no
  10580. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10581. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10582. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10583. dynamic_linker='NetBSD (a.out) ld.so'
  10584. else
  10585. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10586. soname_spec='$libname$release$shared_ext$major'
  10587. dynamic_linker='NetBSD ld.elf_so'
  10588. fi
  10589. shlibpath_var=LD_LIBRARY_PATH
  10590. shlibpath_overrides_runpath=yes
  10591. hardcode_into_libs=yes
  10592. ;;
  10593. newsos6)
  10594. version_type=linux # correct to gnu/linux during the next big refactor
  10595. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10596. shlibpath_var=LD_LIBRARY_PATH
  10597. shlibpath_overrides_runpath=yes
  10598. ;;
  10599. *nto* | *qnx*)
  10600. version_type=qnx
  10601. need_lib_prefix=no
  10602. need_version=no
  10603. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10604. soname_spec='$libname$release$shared_ext$major'
  10605. shlibpath_var=LD_LIBRARY_PATH
  10606. shlibpath_overrides_runpath=no
  10607. hardcode_into_libs=yes
  10608. dynamic_linker='ldqnx.so'
  10609. ;;
  10610. openbsd* | bitrig*)
  10611. version_type=sunos
  10612. sys_lib_dlsearch_path_spec=/usr/lib
  10613. need_lib_prefix=no
  10614. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10615. need_version=no
  10616. else
  10617. need_version=yes
  10618. fi
  10619. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10620. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10621. shlibpath_var=LD_LIBRARY_PATH
  10622. shlibpath_overrides_runpath=yes
  10623. ;;
  10624. os2*)
  10625. libname_spec='$name'
  10626. version_type=windows
  10627. shrext_cmds=.dll
  10628. need_version=no
  10629. need_lib_prefix=no
  10630. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10631. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10632. v=$($ECHO $release$versuffix | tr -d .-);
  10633. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10634. $ECHO $n$v`$shared_ext'
  10635. library_names_spec='${libname}_dll.$libext'
  10636. dynamic_linker='OS/2 ld.exe'
  10637. shlibpath_var=BEGINLIBPATH
  10638. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10639. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10640. postinstall_cmds='base_file=`basename \$file`~
  10641. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10642. dldir=$destdir/`dirname \$dlpath`~
  10643. test -d \$dldir || mkdir -p \$dldir~
  10644. $install_prog $dir/$dlname \$dldir/$dlname~
  10645. chmod a+x \$dldir/$dlname~
  10646. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10647. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10648. fi'
  10649. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10650. dlpath=$dir/\$dldll~
  10651. $RM \$dlpath'
  10652. ;;
  10653. osf3* | osf4* | osf5*)
  10654. version_type=osf
  10655. need_lib_prefix=no
  10656. need_version=no
  10657. soname_spec='$libname$release$shared_ext$major'
  10658. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10659. shlibpath_var=LD_LIBRARY_PATH
  10660. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10661. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10662. ;;
  10663. rdos*)
  10664. dynamic_linker=no
  10665. ;;
  10666. solaris*)
  10667. version_type=linux # correct to gnu/linux during the next big refactor
  10668. need_lib_prefix=no
  10669. need_version=no
  10670. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10671. soname_spec='$libname$release$shared_ext$major'
  10672. shlibpath_var=LD_LIBRARY_PATH
  10673. shlibpath_overrides_runpath=yes
  10674. hardcode_into_libs=yes
  10675. # ldd complains unless libraries are executable
  10676. postinstall_cmds='chmod +x $lib'
  10677. ;;
  10678. sunos4*)
  10679. version_type=sunos
  10680. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10681. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10682. shlibpath_var=LD_LIBRARY_PATH
  10683. shlibpath_overrides_runpath=yes
  10684. if test yes = "$with_gnu_ld"; then
  10685. need_lib_prefix=no
  10686. fi
  10687. need_version=yes
  10688. ;;
  10689. sysv4 | sysv4.3*)
  10690. version_type=linux # correct to gnu/linux during the next big refactor
  10691. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10692. soname_spec='$libname$release$shared_ext$major'
  10693. shlibpath_var=LD_LIBRARY_PATH
  10694. case $host_vendor in
  10695. sni)
  10696. shlibpath_overrides_runpath=no
  10697. need_lib_prefix=no
  10698. runpath_var=LD_RUN_PATH
  10699. ;;
  10700. siemens)
  10701. need_lib_prefix=no
  10702. ;;
  10703. motorola)
  10704. need_lib_prefix=no
  10705. need_version=no
  10706. shlibpath_overrides_runpath=no
  10707. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10708. ;;
  10709. esac
  10710. ;;
  10711. sysv4*MP*)
  10712. if test -d /usr/nec; then
  10713. version_type=linux # correct to gnu/linux during the next big refactor
  10714. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10715. soname_spec='$libname$shared_ext.$major'
  10716. shlibpath_var=LD_LIBRARY_PATH
  10717. fi
  10718. ;;
  10719. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10720. version_type=sco
  10721. need_lib_prefix=no
  10722. need_version=no
  10723. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10724. soname_spec='$libname$release$shared_ext$major'
  10725. shlibpath_var=LD_LIBRARY_PATH
  10726. shlibpath_overrides_runpath=yes
  10727. hardcode_into_libs=yes
  10728. if test yes = "$with_gnu_ld"; then
  10729. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10730. else
  10731. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10732. case $host_os in
  10733. sco3.2v5*)
  10734. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10735. ;;
  10736. esac
  10737. fi
  10738. sys_lib_dlsearch_path_spec='/usr/lib'
  10739. ;;
  10740. tpf*)
  10741. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10742. version_type=linux # correct to gnu/linux during the next big refactor
  10743. need_lib_prefix=no
  10744. need_version=no
  10745. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10746. shlibpath_var=LD_LIBRARY_PATH
  10747. shlibpath_overrides_runpath=no
  10748. hardcode_into_libs=yes
  10749. ;;
  10750. uts4*)
  10751. version_type=linux # correct to gnu/linux during the next big refactor
  10752. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10753. soname_spec='$libname$release$shared_ext$major'
  10754. shlibpath_var=LD_LIBRARY_PATH
  10755. ;;
  10756. *)
  10757. dynamic_linker=no
  10758. ;;
  10759. esac
  10760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10761. $as_echo "$dynamic_linker" >&6; }
  10762. test no = "$dynamic_linker" && can_build_shared=no
  10763. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10764. if test yes = "$GCC"; then
  10765. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10766. fi
  10767. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10768. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10769. fi
  10770. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10771. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10772. fi
  10773. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10774. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10775. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10776. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10777. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10778. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10780. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10781. hardcode_action=
  10782. if test -n "$hardcode_libdir_flag_spec" ||
  10783. test -n "$runpath_var" ||
  10784. test yes = "$hardcode_automatic"; then
  10785. # We can hardcode non-existent directories.
  10786. if test no != "$hardcode_direct" &&
  10787. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10788. # have to relink, otherwise we might link with an installed library
  10789. # when we should be linking with a yet-to-be-installed one
  10790. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10791. test no != "$hardcode_minus_L"; then
  10792. # Linking always hardcodes the temporary library directory.
  10793. hardcode_action=relink
  10794. else
  10795. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10796. hardcode_action=immediate
  10797. fi
  10798. else
  10799. # We cannot hardcode anything, or else we can only hardcode existing
  10800. # directories.
  10801. hardcode_action=unsupported
  10802. fi
  10803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10804. $as_echo "$hardcode_action" >&6; }
  10805. if test relink = "$hardcode_action" ||
  10806. test yes = "$inherit_rpath"; then
  10807. # Fast installation is not supported
  10808. enable_fast_install=no
  10809. elif test yes = "$shlibpath_overrides_runpath" ||
  10810. test no = "$enable_shared"; then
  10811. # Fast installation is not necessary
  10812. enable_fast_install=needless
  10813. fi
  10814. if test yes != "$enable_dlopen"; then
  10815. enable_dlopen=unknown
  10816. enable_dlopen_self=unknown
  10817. enable_dlopen_self_static=unknown
  10818. else
  10819. lt_cv_dlopen=no
  10820. lt_cv_dlopen_libs=
  10821. case $host_os in
  10822. beos*)
  10823. lt_cv_dlopen=load_add_on
  10824. lt_cv_dlopen_libs=
  10825. lt_cv_dlopen_self=yes
  10826. ;;
  10827. mingw* | pw32* | cegcc*)
  10828. lt_cv_dlopen=LoadLibrary
  10829. lt_cv_dlopen_libs=
  10830. ;;
  10831. cygwin*)
  10832. lt_cv_dlopen=dlopen
  10833. lt_cv_dlopen_libs=
  10834. ;;
  10835. darwin*)
  10836. # if libdl is installed we need to link against it
  10837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10838. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10839. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10840. $as_echo_n "(cached) " >&6
  10841. else
  10842. ac_check_lib_save_LIBS=$LIBS
  10843. LIBS="-ldl $LIBS"
  10844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10845. /* end confdefs.h. */
  10846. /* Override any GCC internal prototype to avoid an error.
  10847. Use char because int might match the return type of a GCC
  10848. builtin and then its argument prototype would still apply. */
  10849. #ifdef __cplusplus
  10850. extern "C"
  10851. #endif
  10852. char dlopen ();
  10853. int
  10854. main ()
  10855. {
  10856. return dlopen ();
  10857. ;
  10858. return 0;
  10859. }
  10860. _ACEOF
  10861. if ac_fn_c_try_link "$LINENO"; then :
  10862. ac_cv_lib_dl_dlopen=yes
  10863. else
  10864. ac_cv_lib_dl_dlopen=no
  10865. fi
  10866. rm -f core conftest.err conftest.$ac_objext \
  10867. conftest$ac_exeext conftest.$ac_ext
  10868. LIBS=$ac_check_lib_save_LIBS
  10869. fi
  10870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10871. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10872. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10873. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10874. else
  10875. lt_cv_dlopen=dyld
  10876. lt_cv_dlopen_libs=
  10877. lt_cv_dlopen_self=yes
  10878. fi
  10879. ;;
  10880. tpf*)
  10881. # Don't try to run any link tests for TPF. We know it's impossible
  10882. # because TPF is a cross-compiler, and we know how we open DSOs.
  10883. lt_cv_dlopen=dlopen
  10884. lt_cv_dlopen_libs=
  10885. lt_cv_dlopen_self=no
  10886. ;;
  10887. *)
  10888. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10889. if test "x$ac_cv_func_shl_load" = xyes; then :
  10890. lt_cv_dlopen=shl_load
  10891. else
  10892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10893. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10894. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10895. $as_echo_n "(cached) " >&6
  10896. else
  10897. ac_check_lib_save_LIBS=$LIBS
  10898. LIBS="-ldld $LIBS"
  10899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10900. /* end confdefs.h. */
  10901. /* Override any GCC internal prototype to avoid an error.
  10902. Use char because int might match the return type of a GCC
  10903. builtin and then its argument prototype would still apply. */
  10904. #ifdef __cplusplus
  10905. extern "C"
  10906. #endif
  10907. char shl_load ();
  10908. int
  10909. main ()
  10910. {
  10911. return shl_load ();
  10912. ;
  10913. return 0;
  10914. }
  10915. _ACEOF
  10916. if ac_fn_c_try_link "$LINENO"; then :
  10917. ac_cv_lib_dld_shl_load=yes
  10918. else
  10919. ac_cv_lib_dld_shl_load=no
  10920. fi
  10921. rm -f core conftest.err conftest.$ac_objext \
  10922. conftest$ac_exeext conftest.$ac_ext
  10923. LIBS=$ac_check_lib_save_LIBS
  10924. fi
  10925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10926. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10927. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10928. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10929. else
  10930. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10931. if test "x$ac_cv_func_dlopen" = xyes; then :
  10932. lt_cv_dlopen=dlopen
  10933. else
  10934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10935. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10936. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10937. $as_echo_n "(cached) " >&6
  10938. else
  10939. ac_check_lib_save_LIBS=$LIBS
  10940. LIBS="-ldl $LIBS"
  10941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10942. /* end confdefs.h. */
  10943. /* Override any GCC internal prototype to avoid an error.
  10944. Use char because int might match the return type of a GCC
  10945. builtin and then its argument prototype would still apply. */
  10946. #ifdef __cplusplus
  10947. extern "C"
  10948. #endif
  10949. char dlopen ();
  10950. int
  10951. main ()
  10952. {
  10953. return dlopen ();
  10954. ;
  10955. return 0;
  10956. }
  10957. _ACEOF
  10958. if ac_fn_c_try_link "$LINENO"; then :
  10959. ac_cv_lib_dl_dlopen=yes
  10960. else
  10961. ac_cv_lib_dl_dlopen=no
  10962. fi
  10963. rm -f core conftest.err conftest.$ac_objext \
  10964. conftest$ac_exeext conftest.$ac_ext
  10965. LIBS=$ac_check_lib_save_LIBS
  10966. fi
  10967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10968. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10969. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10970. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10971. else
  10972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10973. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10974. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10975. $as_echo_n "(cached) " >&6
  10976. else
  10977. ac_check_lib_save_LIBS=$LIBS
  10978. LIBS="-lsvld $LIBS"
  10979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10980. /* end confdefs.h. */
  10981. /* Override any GCC internal prototype to avoid an error.
  10982. Use char because int might match the return type of a GCC
  10983. builtin and then its argument prototype would still apply. */
  10984. #ifdef __cplusplus
  10985. extern "C"
  10986. #endif
  10987. char dlopen ();
  10988. int
  10989. main ()
  10990. {
  10991. return dlopen ();
  10992. ;
  10993. return 0;
  10994. }
  10995. _ACEOF
  10996. if ac_fn_c_try_link "$LINENO"; then :
  10997. ac_cv_lib_svld_dlopen=yes
  10998. else
  10999. ac_cv_lib_svld_dlopen=no
  11000. fi
  11001. rm -f core conftest.err conftest.$ac_objext \
  11002. conftest$ac_exeext conftest.$ac_ext
  11003. LIBS=$ac_check_lib_save_LIBS
  11004. fi
  11005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  11006. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  11007. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  11008. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  11009. else
  11010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  11011. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  11012. if ${ac_cv_lib_dld_dld_link+:} false; then :
  11013. $as_echo_n "(cached) " >&6
  11014. else
  11015. ac_check_lib_save_LIBS=$LIBS
  11016. LIBS="-ldld $LIBS"
  11017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11018. /* end confdefs.h. */
  11019. /* Override any GCC internal prototype to avoid an error.
  11020. Use char because int might match the return type of a GCC
  11021. builtin and then its argument prototype would still apply. */
  11022. #ifdef __cplusplus
  11023. extern "C"
  11024. #endif
  11025. char dld_link ();
  11026. int
  11027. main ()
  11028. {
  11029. return dld_link ();
  11030. ;
  11031. return 0;
  11032. }
  11033. _ACEOF
  11034. if ac_fn_c_try_link "$LINENO"; then :
  11035. ac_cv_lib_dld_dld_link=yes
  11036. else
  11037. ac_cv_lib_dld_dld_link=no
  11038. fi
  11039. rm -f core conftest.err conftest.$ac_objext \
  11040. conftest$ac_exeext conftest.$ac_ext
  11041. LIBS=$ac_check_lib_save_LIBS
  11042. fi
  11043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11044. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  11045. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  11046. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  11047. fi
  11048. fi
  11049. fi
  11050. fi
  11051. fi
  11052. fi
  11053. ;;
  11054. esac
  11055. if test no = "$lt_cv_dlopen"; then
  11056. enable_dlopen=no
  11057. else
  11058. enable_dlopen=yes
  11059. fi
  11060. case $lt_cv_dlopen in
  11061. dlopen)
  11062. save_CPPFLAGS=$CPPFLAGS
  11063. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11064. save_LDFLAGS=$LDFLAGS
  11065. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11066. save_LIBS=$LIBS
  11067. LIBS="$lt_cv_dlopen_libs $LIBS"
  11068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11069. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  11070. if ${lt_cv_dlopen_self+:} false; then :
  11071. $as_echo_n "(cached) " >&6
  11072. else
  11073. if test yes = "$cross_compiling"; then :
  11074. lt_cv_dlopen_self=cross
  11075. else
  11076. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11077. lt_status=$lt_dlunknown
  11078. cat > conftest.$ac_ext <<_LT_EOF
  11079. #line $LINENO "configure"
  11080. #include "confdefs.h"
  11081. #if HAVE_DLFCN_H
  11082. #include <dlfcn.h>
  11083. #endif
  11084. #include <stdio.h>
  11085. #ifdef RTLD_GLOBAL
  11086. # define LT_DLGLOBAL RTLD_GLOBAL
  11087. #else
  11088. # ifdef DL_GLOBAL
  11089. # define LT_DLGLOBAL DL_GLOBAL
  11090. # else
  11091. # define LT_DLGLOBAL 0
  11092. # endif
  11093. #endif
  11094. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11095. find out it does not work in some platform. */
  11096. #ifndef LT_DLLAZY_OR_NOW
  11097. # ifdef RTLD_LAZY
  11098. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11099. # else
  11100. # ifdef DL_LAZY
  11101. # define LT_DLLAZY_OR_NOW DL_LAZY
  11102. # else
  11103. # ifdef RTLD_NOW
  11104. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11105. # else
  11106. # ifdef DL_NOW
  11107. # define LT_DLLAZY_OR_NOW DL_NOW
  11108. # else
  11109. # define LT_DLLAZY_OR_NOW 0
  11110. # endif
  11111. # endif
  11112. # endif
  11113. # endif
  11114. #endif
  11115. /* When -fvisibility=hidden is used, assume the code has been annotated
  11116. correspondingly for the symbols needed. */
  11117. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11118. int fnord () __attribute__((visibility("default")));
  11119. #endif
  11120. int fnord () { return 42; }
  11121. int main ()
  11122. {
  11123. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11124. int status = $lt_dlunknown;
  11125. if (self)
  11126. {
  11127. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11128. else
  11129. {
  11130. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11131. else puts (dlerror ());
  11132. }
  11133. /* dlclose (self); */
  11134. }
  11135. else
  11136. puts (dlerror ());
  11137. return status;
  11138. }
  11139. _LT_EOF
  11140. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11141. (eval $ac_link) 2>&5
  11142. ac_status=$?
  11143. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11144. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11145. (./conftest; exit; ) >&5 2>/dev/null
  11146. lt_status=$?
  11147. case x$lt_status in
  11148. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11149. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11150. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11151. esac
  11152. else :
  11153. # compilation failed
  11154. lt_cv_dlopen_self=no
  11155. fi
  11156. fi
  11157. rm -fr conftest*
  11158. fi
  11159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11160. $as_echo "$lt_cv_dlopen_self" >&6; }
  11161. if test yes = "$lt_cv_dlopen_self"; then
  11162. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11164. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  11165. if ${lt_cv_dlopen_self_static+:} false; then :
  11166. $as_echo_n "(cached) " >&6
  11167. else
  11168. if test yes = "$cross_compiling"; then :
  11169. lt_cv_dlopen_self_static=cross
  11170. else
  11171. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11172. lt_status=$lt_dlunknown
  11173. cat > conftest.$ac_ext <<_LT_EOF
  11174. #line $LINENO "configure"
  11175. #include "confdefs.h"
  11176. #if HAVE_DLFCN_H
  11177. #include <dlfcn.h>
  11178. #endif
  11179. #include <stdio.h>
  11180. #ifdef RTLD_GLOBAL
  11181. # define LT_DLGLOBAL RTLD_GLOBAL
  11182. #else
  11183. # ifdef DL_GLOBAL
  11184. # define LT_DLGLOBAL DL_GLOBAL
  11185. # else
  11186. # define LT_DLGLOBAL 0
  11187. # endif
  11188. #endif
  11189. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11190. find out it does not work in some platform. */
  11191. #ifndef LT_DLLAZY_OR_NOW
  11192. # ifdef RTLD_LAZY
  11193. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11194. # else
  11195. # ifdef DL_LAZY
  11196. # define LT_DLLAZY_OR_NOW DL_LAZY
  11197. # else
  11198. # ifdef RTLD_NOW
  11199. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11200. # else
  11201. # ifdef DL_NOW
  11202. # define LT_DLLAZY_OR_NOW DL_NOW
  11203. # else
  11204. # define LT_DLLAZY_OR_NOW 0
  11205. # endif
  11206. # endif
  11207. # endif
  11208. # endif
  11209. #endif
  11210. /* When -fvisibility=hidden is used, assume the code has been annotated
  11211. correspondingly for the symbols needed. */
  11212. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11213. int fnord () __attribute__((visibility("default")));
  11214. #endif
  11215. int fnord () { return 42; }
  11216. int main ()
  11217. {
  11218. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11219. int status = $lt_dlunknown;
  11220. if (self)
  11221. {
  11222. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11223. else
  11224. {
  11225. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11226. else puts (dlerror ());
  11227. }
  11228. /* dlclose (self); */
  11229. }
  11230. else
  11231. puts (dlerror ());
  11232. return status;
  11233. }
  11234. _LT_EOF
  11235. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11236. (eval $ac_link) 2>&5
  11237. ac_status=$?
  11238. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11239. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11240. (./conftest; exit; ) >&5 2>/dev/null
  11241. lt_status=$?
  11242. case x$lt_status in
  11243. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11244. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11245. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11246. esac
  11247. else :
  11248. # compilation failed
  11249. lt_cv_dlopen_self_static=no
  11250. fi
  11251. fi
  11252. rm -fr conftest*
  11253. fi
  11254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11255. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11256. fi
  11257. CPPFLAGS=$save_CPPFLAGS
  11258. LDFLAGS=$save_LDFLAGS
  11259. LIBS=$save_LIBS
  11260. ;;
  11261. esac
  11262. case $lt_cv_dlopen_self in
  11263. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11264. *) enable_dlopen_self=unknown ;;
  11265. esac
  11266. case $lt_cv_dlopen_self_static in
  11267. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11268. *) enable_dlopen_self_static=unknown ;;
  11269. esac
  11270. fi
  11271. striplib=
  11272. old_striplib=
  11273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11274. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11275. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11276. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11277. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11279. $as_echo "yes" >&6; }
  11280. else
  11281. # FIXME - insert some real tests, host_os isn't really good enough
  11282. case $host_os in
  11283. darwin*)
  11284. if test -n "$STRIP"; then
  11285. striplib="$STRIP -x"
  11286. old_striplib="$STRIP -S"
  11287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11288. $as_echo "yes" >&6; }
  11289. else
  11290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11291. $as_echo "no" >&6; }
  11292. fi
  11293. ;;
  11294. *)
  11295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11296. $as_echo "no" >&6; }
  11297. ;;
  11298. esac
  11299. fi
  11300. # Report what library types will actually be built
  11301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11302. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11304. $as_echo "$can_build_shared" >&6; }
  11305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11306. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11307. test no = "$can_build_shared" && enable_shared=no
  11308. # On AIX, shared libraries and static libraries use the same namespace, and
  11309. # are all built from PIC.
  11310. case $host_os in
  11311. aix3*)
  11312. test yes = "$enable_shared" && enable_static=no
  11313. if test -n "$RANLIB"; then
  11314. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11315. postinstall_cmds='$RANLIB $lib'
  11316. fi
  11317. ;;
  11318. aix[4-9]*)
  11319. if test ia64 != "$host_cpu"; then
  11320. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11321. yes,aix,yes) ;; # shared object as lib.so file only
  11322. yes,svr4,*) ;; # shared object as lib.so archive member only
  11323. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11324. esac
  11325. fi
  11326. ;;
  11327. esac
  11328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11329. $as_echo "$enable_shared" >&6; }
  11330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11331. $as_echo_n "checking whether to build static libraries... " >&6; }
  11332. # Make sure either enable_shared or enable_static is yes.
  11333. test yes = "$enable_shared" || enable_static=yes
  11334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11335. $as_echo "$enable_static" >&6; }
  11336. fi
  11337. ac_ext=c
  11338. ac_cpp='$CPP $CPPFLAGS'
  11339. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11340. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11341. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11342. CC=$lt_save_CC
  11343. ac_config_commands="$ac_config_commands libtool"
  11344. # Only expand once:
  11345. ac_ext=c
  11346. ac_cpp='$CPP $CPPFLAGS'
  11347. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11348. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11349. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11350. if test -n "$ac_tool_prefix"; then
  11351. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11352. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11354. $as_echo_n "checking for $ac_word... " >&6; }
  11355. if ${ac_cv_prog_CC+:} false; then :
  11356. $as_echo_n "(cached) " >&6
  11357. else
  11358. if test -n "$CC"; then
  11359. ac_cv_prog_CC="$CC" # Let the user override the test.
  11360. else
  11361. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11362. for as_dir in $PATH
  11363. do
  11364. IFS=$as_save_IFS
  11365. test -z "$as_dir" && as_dir=.
  11366. for ac_exec_ext in '' $ac_executable_extensions; do
  11367. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11368. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11369. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11370. break 2
  11371. fi
  11372. done
  11373. done
  11374. IFS=$as_save_IFS
  11375. fi
  11376. fi
  11377. CC=$ac_cv_prog_CC
  11378. if test -n "$CC"; then
  11379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11380. $as_echo "$CC" >&6; }
  11381. else
  11382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11383. $as_echo "no" >&6; }
  11384. fi
  11385. fi
  11386. if test -z "$ac_cv_prog_CC"; then
  11387. ac_ct_CC=$CC
  11388. # Extract the first word of "gcc", so it can be a program name with args.
  11389. set dummy gcc; ac_word=$2
  11390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11391. $as_echo_n "checking for $ac_word... " >&6; }
  11392. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  11393. $as_echo_n "(cached) " >&6
  11394. else
  11395. if test -n "$ac_ct_CC"; then
  11396. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11397. else
  11398. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11399. for as_dir in $PATH
  11400. do
  11401. IFS=$as_save_IFS
  11402. test -z "$as_dir" && as_dir=.
  11403. for ac_exec_ext in '' $ac_executable_extensions; do
  11404. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11405. ac_cv_prog_ac_ct_CC="gcc"
  11406. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11407. break 2
  11408. fi
  11409. done
  11410. done
  11411. IFS=$as_save_IFS
  11412. fi
  11413. fi
  11414. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11415. if test -n "$ac_ct_CC"; then
  11416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11417. $as_echo "$ac_ct_CC" >&6; }
  11418. else
  11419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11420. $as_echo "no" >&6; }
  11421. fi
  11422. if test "x$ac_ct_CC" = x; then
  11423. CC=""
  11424. else
  11425. case $cross_compiling:$ac_tool_warned in
  11426. yes:)
  11427. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11428. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11429. ac_tool_warned=yes ;;
  11430. esac
  11431. CC=$ac_ct_CC
  11432. fi
  11433. else
  11434. CC="$ac_cv_prog_CC"
  11435. fi
  11436. if test -z "$CC"; then
  11437. if test -n "$ac_tool_prefix"; then
  11438. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11439. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11441. $as_echo_n "checking for $ac_word... " >&6; }
  11442. if ${ac_cv_prog_CC+:} false; then :
  11443. $as_echo_n "(cached) " >&6
  11444. else
  11445. if test -n "$CC"; then
  11446. ac_cv_prog_CC="$CC" # Let the user override the test.
  11447. else
  11448. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11449. for as_dir in $PATH
  11450. do
  11451. IFS=$as_save_IFS
  11452. test -z "$as_dir" && as_dir=.
  11453. for ac_exec_ext in '' $ac_executable_extensions; do
  11454. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11455. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11456. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11457. break 2
  11458. fi
  11459. done
  11460. done
  11461. IFS=$as_save_IFS
  11462. fi
  11463. fi
  11464. CC=$ac_cv_prog_CC
  11465. if test -n "$CC"; then
  11466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11467. $as_echo "$CC" >&6; }
  11468. else
  11469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11470. $as_echo "no" >&6; }
  11471. fi
  11472. fi
  11473. fi
  11474. if test -z "$CC"; then
  11475. # Extract the first word of "cc", so it can be a program name with args.
  11476. set dummy cc; ac_word=$2
  11477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11478. $as_echo_n "checking for $ac_word... " >&6; }
  11479. if ${ac_cv_prog_CC+:} false; then :
  11480. $as_echo_n "(cached) " >&6
  11481. else
  11482. if test -n "$CC"; then
  11483. ac_cv_prog_CC="$CC" # Let the user override the test.
  11484. else
  11485. ac_prog_rejected=no
  11486. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11487. for as_dir in $PATH
  11488. do
  11489. IFS=$as_save_IFS
  11490. test -z "$as_dir" && as_dir=.
  11491. for ac_exec_ext in '' $ac_executable_extensions; do
  11492. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11493. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11494. ac_prog_rejected=yes
  11495. continue
  11496. fi
  11497. ac_cv_prog_CC="cc"
  11498. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11499. break 2
  11500. fi
  11501. done
  11502. done
  11503. IFS=$as_save_IFS
  11504. if test $ac_prog_rejected = yes; then
  11505. # We found a bogon in the path, so make sure we never use it.
  11506. set dummy $ac_cv_prog_CC
  11507. shift
  11508. if test $# != 0; then
  11509. # We chose a different compiler from the bogus one.
  11510. # However, it has the same basename, so the bogon will be chosen
  11511. # first if we set CC to just the basename; use the full file name.
  11512. shift
  11513. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  11514. fi
  11515. fi
  11516. fi
  11517. fi
  11518. CC=$ac_cv_prog_CC
  11519. if test -n "$CC"; then
  11520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11521. $as_echo "$CC" >&6; }
  11522. else
  11523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11524. $as_echo "no" >&6; }
  11525. fi
  11526. fi
  11527. if test -z "$CC"; then
  11528. if test -n "$ac_tool_prefix"; then
  11529. for ac_prog in cl.exe
  11530. do
  11531. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11532. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11534. $as_echo_n "checking for $ac_word... " >&6; }
  11535. if ${ac_cv_prog_CC+:} false; then :
  11536. $as_echo_n "(cached) " >&6
  11537. else
  11538. if test -n "$CC"; then
  11539. ac_cv_prog_CC="$CC" # Let the user override the test.
  11540. else
  11541. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11542. for as_dir in $PATH
  11543. do
  11544. IFS=$as_save_IFS
  11545. test -z "$as_dir" && as_dir=.
  11546. for ac_exec_ext in '' $ac_executable_extensions; do
  11547. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11548. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11549. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11550. break 2
  11551. fi
  11552. done
  11553. done
  11554. IFS=$as_save_IFS
  11555. fi
  11556. fi
  11557. CC=$ac_cv_prog_CC
  11558. if test -n "$CC"; then
  11559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11560. $as_echo "$CC" >&6; }
  11561. else
  11562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11563. $as_echo "no" >&6; }
  11564. fi
  11565. test -n "$CC" && break
  11566. done
  11567. fi
  11568. if test -z "$CC"; then
  11569. ac_ct_CC=$CC
  11570. for ac_prog in cl.exe
  11571. do
  11572. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11573. set dummy $ac_prog; ac_word=$2
  11574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11575. $as_echo_n "checking for $ac_word... " >&6; }
  11576. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  11577. $as_echo_n "(cached) " >&6
  11578. else
  11579. if test -n "$ac_ct_CC"; then
  11580. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11581. else
  11582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11583. for as_dir in $PATH
  11584. do
  11585. IFS=$as_save_IFS
  11586. test -z "$as_dir" && as_dir=.
  11587. for ac_exec_ext in '' $ac_executable_extensions; do
  11588. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11589. ac_cv_prog_ac_ct_CC="$ac_prog"
  11590. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11591. break 2
  11592. fi
  11593. done
  11594. done
  11595. IFS=$as_save_IFS
  11596. fi
  11597. fi
  11598. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11599. if test -n "$ac_ct_CC"; then
  11600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11601. $as_echo "$ac_ct_CC" >&6; }
  11602. else
  11603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11604. $as_echo "no" >&6; }
  11605. fi
  11606. test -n "$ac_ct_CC" && break
  11607. done
  11608. if test "x$ac_ct_CC" = x; then
  11609. CC=""
  11610. else
  11611. case $cross_compiling:$ac_tool_warned in
  11612. yes:)
  11613. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11614. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11615. ac_tool_warned=yes ;;
  11616. esac
  11617. CC=$ac_ct_CC
  11618. fi
  11619. fi
  11620. fi
  11621. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11622. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11623. as_fn_error $? "no acceptable C compiler found in \$PATH
  11624. See \`config.log' for more details" "$LINENO" 5; }
  11625. # Provide some information about the compiler.
  11626. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11627. set X $ac_compile
  11628. ac_compiler=$2
  11629. for ac_option in --version -v -V -qversion; do
  11630. { { ac_try="$ac_compiler $ac_option >&5"
  11631. case "(($ac_try" in
  11632. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11633. *) ac_try_echo=$ac_try;;
  11634. esac
  11635. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11636. $as_echo "$ac_try_echo"; } >&5
  11637. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11638. ac_status=$?
  11639. if test -s conftest.err; then
  11640. sed '10a\
  11641. ... rest of stderr output deleted ...
  11642. 10q' conftest.err >conftest.er1
  11643. cat conftest.er1 >&5
  11644. fi
  11645. rm -f conftest.er1 conftest.err
  11646. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11647. test $ac_status = 0; }
  11648. done
  11649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  11650. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  11651. if ${ac_cv_c_compiler_gnu+:} false; then :
  11652. $as_echo_n "(cached) " >&6
  11653. else
  11654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11655. /* end confdefs.h. */
  11656. int
  11657. main ()
  11658. {
  11659. #ifndef __GNUC__
  11660. choke me
  11661. #endif
  11662. ;
  11663. return 0;
  11664. }
  11665. _ACEOF
  11666. if ac_fn_c_try_compile "$LINENO"; then :
  11667. ac_compiler_gnu=yes
  11668. else
  11669. ac_compiler_gnu=no
  11670. fi
  11671. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11672. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11673. fi
  11674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11675. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  11676. if test $ac_compiler_gnu = yes; then
  11677. GCC=yes
  11678. else
  11679. GCC=
  11680. fi
  11681. ac_test_CFLAGS=${CFLAGS+set}
  11682. ac_save_CFLAGS=$CFLAGS
  11683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11684. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  11685. if ${ac_cv_prog_cc_g+:} false; then :
  11686. $as_echo_n "(cached) " >&6
  11687. else
  11688. ac_save_c_werror_flag=$ac_c_werror_flag
  11689. ac_c_werror_flag=yes
  11690. ac_cv_prog_cc_g=no
  11691. CFLAGS="-g"
  11692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11693. /* end confdefs.h. */
  11694. int
  11695. main ()
  11696. {
  11697. ;
  11698. return 0;
  11699. }
  11700. _ACEOF
  11701. if ac_fn_c_try_compile "$LINENO"; then :
  11702. ac_cv_prog_cc_g=yes
  11703. else
  11704. CFLAGS=""
  11705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11706. /* end confdefs.h. */
  11707. int
  11708. main ()
  11709. {
  11710. ;
  11711. return 0;
  11712. }
  11713. _ACEOF
  11714. if ac_fn_c_try_compile "$LINENO"; then :
  11715. else
  11716. ac_c_werror_flag=$ac_save_c_werror_flag
  11717. CFLAGS="-g"
  11718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11719. /* end confdefs.h. */
  11720. int
  11721. main ()
  11722. {
  11723. ;
  11724. return 0;
  11725. }
  11726. _ACEOF
  11727. if ac_fn_c_try_compile "$LINENO"; then :
  11728. ac_cv_prog_cc_g=yes
  11729. fi
  11730. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11731. fi
  11732. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11733. fi
  11734. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11735. ac_c_werror_flag=$ac_save_c_werror_flag
  11736. fi
  11737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11738. $as_echo "$ac_cv_prog_cc_g" >&6; }
  11739. if test "$ac_test_CFLAGS" = set; then
  11740. CFLAGS=$ac_save_CFLAGS
  11741. elif test $ac_cv_prog_cc_g = yes; then
  11742. if test "$GCC" = yes; then
  11743. CFLAGS="-g -O2"
  11744. else
  11745. CFLAGS="-g"
  11746. fi
  11747. else
  11748. if test "$GCC" = yes; then
  11749. CFLAGS="-O2"
  11750. else
  11751. CFLAGS=
  11752. fi
  11753. fi
  11754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  11755. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  11756. if ${ac_cv_prog_cc_c89+:} false; then :
  11757. $as_echo_n "(cached) " >&6
  11758. else
  11759. ac_cv_prog_cc_c89=no
  11760. ac_save_CC=$CC
  11761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11762. /* end confdefs.h. */
  11763. #include <stdarg.h>
  11764. #include <stdio.h>
  11765. struct stat;
  11766. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  11767. struct buf { int x; };
  11768. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  11769. static char *e (p, i)
  11770. char **p;
  11771. int i;
  11772. {
  11773. return p[i];
  11774. }
  11775. static char *f (char * (*g) (char **, int), char **p, ...)
  11776. {
  11777. char *s;
  11778. va_list v;
  11779. va_start (v,p);
  11780. s = g (p, va_arg (v,int));
  11781. va_end (v);
  11782. return s;
  11783. }
  11784. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  11785. function prototypes and stuff, but not '\xHH' hex character constants.
  11786. These don't provoke an error unfortunately, instead are silently treated
  11787. as 'x'. The following induces an error, until -std is added to get
  11788. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  11789. array size at least. It's necessary to write '\x00'==0 to get something
  11790. that's true only with -std. */
  11791. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  11792. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  11793. inside strings and character constants. */
  11794. #define FOO(x) 'x'
  11795. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  11796. int test (int i, double x);
  11797. struct s1 {int (*f) (int a);};
  11798. struct s2 {int (*f) (double a);};
  11799. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  11800. int argc;
  11801. char **argv;
  11802. int
  11803. main ()
  11804. {
  11805. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  11806. ;
  11807. return 0;
  11808. }
  11809. _ACEOF
  11810. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  11811. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11812. do
  11813. CC="$ac_save_CC $ac_arg"
  11814. if ac_fn_c_try_compile "$LINENO"; then :
  11815. ac_cv_prog_cc_c89=$ac_arg
  11816. fi
  11817. rm -f core conftest.err conftest.$ac_objext
  11818. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11819. done
  11820. rm -f conftest.$ac_ext
  11821. CC=$ac_save_CC
  11822. fi
  11823. # AC_CACHE_VAL
  11824. case "x$ac_cv_prog_cc_c89" in
  11825. x)
  11826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11827. $as_echo "none needed" >&6; } ;;
  11828. xno)
  11829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11830. $as_echo "unsupported" >&6; } ;;
  11831. *)
  11832. CC="$CC $ac_cv_prog_cc_c89"
  11833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11834. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  11835. esac
  11836. if test "x$ac_cv_prog_cc_c89" != xno; then :
  11837. fi
  11838. ac_ext=c
  11839. ac_cpp='$CPP $CPPFLAGS'
  11840. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11841. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11842. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11843. ac_ext=c
  11844. ac_cpp='$CPP $CPPFLAGS'
  11845. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11846. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11847. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  11849. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  11850. if ${am_cv_prog_cc_c_o+:} false; then :
  11851. $as_echo_n "(cached) " >&6
  11852. else
  11853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11854. /* end confdefs.h. */
  11855. int
  11856. main ()
  11857. {
  11858. ;
  11859. return 0;
  11860. }
  11861. _ACEOF
  11862. # Make sure it works both with $CC and with simple cc.
  11863. # Following AC_PROG_CC_C_O, we do the test twice because some
  11864. # compilers refuse to overwrite an existing .o file with -o,
  11865. # though they will create one.
  11866. am_cv_prog_cc_c_o=yes
  11867. for am_i in 1 2; do
  11868. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  11869. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  11870. ac_status=$?
  11871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11872. (exit $ac_status); } \
  11873. && test -f conftest2.$ac_objext; then
  11874. : OK
  11875. else
  11876. am_cv_prog_cc_c_o=no
  11877. break
  11878. fi
  11879. done
  11880. rm -f core conftest*
  11881. unset am_i
  11882. fi
  11883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  11884. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  11885. if test "$am_cv_prog_cc_c_o" != yes; then
  11886. # Losing compiler, so override with the script.
  11887. # FIXME: It is wrong to rewrite CC.
  11888. # But if we don't then we get into trouble of one sort or another.
  11889. # A longer-term fix would be to have automake use am__CC in this case,
  11890. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  11891. CC="$am_aux_dir/compile $CC"
  11892. fi
  11893. ac_ext=c
  11894. ac_cpp='$CPP $CPPFLAGS'
  11895. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11896. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11897. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11898. depcc="$CC" am_compiler_list=
  11899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  11900. $as_echo_n "checking dependency style of $depcc... " >&6; }
  11901. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  11902. $as_echo_n "(cached) " >&6
  11903. else
  11904. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  11905. # We make a subdir and do the tests there. Otherwise we can end up
  11906. # making bogus files that we don't know about and never remove. For
  11907. # instance it was reported that on HP-UX the gcc test will end up
  11908. # making a dummy file named 'D' -- because '-MD' means "put the output
  11909. # in D".
  11910. rm -rf conftest.dir
  11911. mkdir conftest.dir
  11912. # Copy depcomp to subdir because otherwise we won't find it if we're
  11913. # using a relative directory.
  11914. cp "$am_depcomp" conftest.dir
  11915. cd conftest.dir
  11916. # We will build objects and dependencies in a subdirectory because
  11917. # it helps to detect inapplicable dependency modes. For instance
  11918. # both Tru64's cc and ICC support -MD to output dependencies as a
  11919. # side effect of compilation, but ICC will put the dependencies in
  11920. # the current directory while Tru64 will put them in the object
  11921. # directory.
  11922. mkdir sub
  11923. am_cv_CC_dependencies_compiler_type=none
  11924. if test "$am_compiler_list" = ""; then
  11925. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  11926. fi
  11927. am__universal=false
  11928. case " $depcc " in #(
  11929. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  11930. esac
  11931. for depmode in $am_compiler_list; do
  11932. # Setup a source with many dependencies, because some compilers
  11933. # like to wrap large dependency lists on column 80 (with \), and
  11934. # we should not choose a depcomp mode which is confused by this.
  11935. #
  11936. # We need to recreate these files for each test, as the compiler may
  11937. # overwrite some of them when testing with obscure command lines.
  11938. # This happens at least with the AIX C compiler.
  11939. : > sub/conftest.c
  11940. for i in 1 2 3 4 5 6; do
  11941. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  11942. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  11943. # Solaris 10 /bin/sh.
  11944. echo '/* dummy */' > sub/conftst$i.h
  11945. done
  11946. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  11947. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  11948. # mode. It turns out that the SunPro C++ compiler does not properly
  11949. # handle '-M -o', and we need to detect this. Also, some Intel
  11950. # versions had trouble with output in subdirs.
  11951. am__obj=sub/conftest.${OBJEXT-o}
  11952. am__minus_obj="-o $am__obj"
  11953. case $depmode in
  11954. gcc)
  11955. # This depmode causes a compiler race in universal mode.
  11956. test "$am__universal" = false || continue
  11957. ;;
  11958. nosideeffect)
  11959. # After this tag, mechanisms are not by side-effect, so they'll
  11960. # only be used when explicitly requested.
  11961. if test "x$enable_dependency_tracking" = xyes; then
  11962. continue
  11963. else
  11964. break
  11965. fi
  11966. ;;
  11967. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  11968. # This compiler won't grok '-c -o', but also, the minuso test has
  11969. # not run yet. These depmodes are late enough in the game, and
  11970. # so weak that their functioning should not be impacted.
  11971. am__obj=conftest.${OBJEXT-o}
  11972. am__minus_obj=
  11973. ;;
  11974. none) break ;;
  11975. esac
  11976. if depmode=$depmode \
  11977. source=sub/conftest.c object=$am__obj \
  11978. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  11979. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  11980. >/dev/null 2>conftest.err &&
  11981. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  11982. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  11983. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  11984. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  11985. # icc doesn't choke on unknown options, it will just issue warnings
  11986. # or remarks (even with -Werror). So we grep stderr for any message
  11987. # that says an option was ignored or not supported.
  11988. # When given -MP, icc 7.0 and 7.1 complain thusly:
  11989. # icc: Command line warning: ignoring option '-M'; no argument required
  11990. # The diagnosis changed in icc 8.0:
  11991. # icc: Command line remark: option '-MP' not supported
  11992. if (grep 'ignoring option' conftest.err ||
  11993. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  11994. am_cv_CC_dependencies_compiler_type=$depmode
  11995. break
  11996. fi
  11997. fi
  11998. done
  11999. cd ..
  12000. rm -rf conftest.dir
  12001. else
  12002. am_cv_CC_dependencies_compiler_type=none
  12003. fi
  12004. fi
  12005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  12006. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  12007. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  12008. if
  12009. test "x$enable_dependency_tracking" != xno \
  12010. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  12011. am__fastdepCC_TRUE=
  12012. am__fastdepCC_FALSE='#'
  12013. else
  12014. am__fastdepCC_TRUE='#'
  12015. am__fastdepCC_FALSE=
  12016. fi
  12017. ac_ext=cpp
  12018. ac_cpp='$CXXCPP $CPPFLAGS'
  12019. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12020. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12021. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12022. if test -z "$CXX"; then
  12023. if test -n "$CCC"; then
  12024. CXX=$CCC
  12025. else
  12026. if test -n "$ac_tool_prefix"; then
  12027. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  12028. do
  12029. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12030. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12032. $as_echo_n "checking for $ac_word... " >&6; }
  12033. if ${ac_cv_prog_CXX+:} false; then :
  12034. $as_echo_n "(cached) " >&6
  12035. else
  12036. if test -n "$CXX"; then
  12037. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12038. else
  12039. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12040. for as_dir in $PATH
  12041. do
  12042. IFS=$as_save_IFS
  12043. test -z "$as_dir" && as_dir=.
  12044. for ac_exec_ext in '' $ac_executable_extensions; do
  12045. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12046. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12047. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12048. break 2
  12049. fi
  12050. done
  12051. done
  12052. IFS=$as_save_IFS
  12053. fi
  12054. fi
  12055. CXX=$ac_cv_prog_CXX
  12056. if test -n "$CXX"; then
  12057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12058. $as_echo "$CXX" >&6; }
  12059. else
  12060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12061. $as_echo "no" >&6; }
  12062. fi
  12063. test -n "$CXX" && break
  12064. done
  12065. fi
  12066. if test -z "$CXX"; then
  12067. ac_ct_CXX=$CXX
  12068. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  12069. do
  12070. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12071. set dummy $ac_prog; ac_word=$2
  12072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12073. $as_echo_n "checking for $ac_word... " >&6; }
  12074. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  12075. $as_echo_n "(cached) " >&6
  12076. else
  12077. if test -n "$ac_ct_CXX"; then
  12078. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12079. else
  12080. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12081. for as_dir in $PATH
  12082. do
  12083. IFS=$as_save_IFS
  12084. test -z "$as_dir" && as_dir=.
  12085. for ac_exec_ext in '' $ac_executable_extensions; do
  12086. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12087. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12088. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12089. break 2
  12090. fi
  12091. done
  12092. done
  12093. IFS=$as_save_IFS
  12094. fi
  12095. fi
  12096. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12097. if test -n "$ac_ct_CXX"; then
  12098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12099. $as_echo "$ac_ct_CXX" >&6; }
  12100. else
  12101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12102. $as_echo "no" >&6; }
  12103. fi
  12104. test -n "$ac_ct_CXX" && break
  12105. done
  12106. if test "x$ac_ct_CXX" = x; then
  12107. CXX="g++"
  12108. else
  12109. case $cross_compiling:$ac_tool_warned in
  12110. yes:)
  12111. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12112. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12113. ac_tool_warned=yes ;;
  12114. esac
  12115. CXX=$ac_ct_CXX
  12116. fi
  12117. fi
  12118. fi
  12119. fi
  12120. # Provide some information about the compiler.
  12121. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12122. set X $ac_compile
  12123. ac_compiler=$2
  12124. for ac_option in --version -v -V -qversion; do
  12125. { { ac_try="$ac_compiler $ac_option >&5"
  12126. case "(($ac_try" in
  12127. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12128. *) ac_try_echo=$ac_try;;
  12129. esac
  12130. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12131. $as_echo "$ac_try_echo"; } >&5
  12132. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12133. ac_status=$?
  12134. if test -s conftest.err; then
  12135. sed '10a\
  12136. ... rest of stderr output deleted ...
  12137. 10q' conftest.err >conftest.er1
  12138. cat conftest.er1 >&5
  12139. fi
  12140. rm -f conftest.er1 conftest.err
  12141. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12142. test $ac_status = 0; }
  12143. done
  12144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  12145. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  12146. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  12147. $as_echo_n "(cached) " >&6
  12148. else
  12149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12150. /* end confdefs.h. */
  12151. int
  12152. main ()
  12153. {
  12154. #ifndef __GNUC__
  12155. choke me
  12156. #endif
  12157. ;
  12158. return 0;
  12159. }
  12160. _ACEOF
  12161. if ac_fn_cxx_try_compile "$LINENO"; then :
  12162. ac_compiler_gnu=yes
  12163. else
  12164. ac_compiler_gnu=no
  12165. fi
  12166. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12167. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12168. fi
  12169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12170. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  12171. if test $ac_compiler_gnu = yes; then
  12172. GXX=yes
  12173. else
  12174. GXX=
  12175. fi
  12176. ac_test_CXXFLAGS=${CXXFLAGS+set}
  12177. ac_save_CXXFLAGS=$CXXFLAGS
  12178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12179. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  12180. if ${ac_cv_prog_cxx_g+:} false; then :
  12181. $as_echo_n "(cached) " >&6
  12182. else
  12183. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12184. ac_cxx_werror_flag=yes
  12185. ac_cv_prog_cxx_g=no
  12186. CXXFLAGS="-g"
  12187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12188. /* end confdefs.h. */
  12189. int
  12190. main ()
  12191. {
  12192. ;
  12193. return 0;
  12194. }
  12195. _ACEOF
  12196. if ac_fn_cxx_try_compile "$LINENO"; then :
  12197. ac_cv_prog_cxx_g=yes
  12198. else
  12199. CXXFLAGS=""
  12200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12201. /* end confdefs.h. */
  12202. int
  12203. main ()
  12204. {
  12205. ;
  12206. return 0;
  12207. }
  12208. _ACEOF
  12209. if ac_fn_cxx_try_compile "$LINENO"; then :
  12210. else
  12211. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12212. CXXFLAGS="-g"
  12213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12214. /* end confdefs.h. */
  12215. int
  12216. main ()
  12217. {
  12218. ;
  12219. return 0;
  12220. }
  12221. _ACEOF
  12222. if ac_fn_cxx_try_compile "$LINENO"; then :
  12223. ac_cv_prog_cxx_g=yes
  12224. fi
  12225. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12226. fi
  12227. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12228. fi
  12229. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12230. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12231. fi
  12232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12233. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  12234. if test "$ac_test_CXXFLAGS" = set; then
  12235. CXXFLAGS=$ac_save_CXXFLAGS
  12236. elif test $ac_cv_prog_cxx_g = yes; then
  12237. if test "$GXX" = yes; then
  12238. CXXFLAGS="-g -O2"
  12239. else
  12240. CXXFLAGS="-g"
  12241. fi
  12242. else
  12243. if test "$GXX" = yes; then
  12244. CXXFLAGS="-O2"
  12245. else
  12246. CXXFLAGS=
  12247. fi
  12248. fi
  12249. ac_ext=c
  12250. ac_cpp='$CPP $CPPFLAGS'
  12251. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12252. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12253. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12254. depcc="$CXX" am_compiler_list=
  12255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  12256. $as_echo_n "checking dependency style of $depcc... " >&6; }
  12257. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  12258. $as_echo_n "(cached) " >&6
  12259. else
  12260. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  12261. # We make a subdir and do the tests there. Otherwise we can end up
  12262. # making bogus files that we don't know about and never remove. For
  12263. # instance it was reported that on HP-UX the gcc test will end up
  12264. # making a dummy file named 'D' -- because '-MD' means "put the output
  12265. # in D".
  12266. rm -rf conftest.dir
  12267. mkdir conftest.dir
  12268. # Copy depcomp to subdir because otherwise we won't find it if we're
  12269. # using a relative directory.
  12270. cp "$am_depcomp" conftest.dir
  12271. cd conftest.dir
  12272. # We will build objects and dependencies in a subdirectory because
  12273. # it helps to detect inapplicable dependency modes. For instance
  12274. # both Tru64's cc and ICC support -MD to output dependencies as a
  12275. # side effect of compilation, but ICC will put the dependencies in
  12276. # the current directory while Tru64 will put them in the object
  12277. # directory.
  12278. mkdir sub
  12279. am_cv_CXX_dependencies_compiler_type=none
  12280. if test "$am_compiler_list" = ""; then
  12281. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  12282. fi
  12283. am__universal=false
  12284. case " $depcc " in #(
  12285. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  12286. esac
  12287. for depmode in $am_compiler_list; do
  12288. # Setup a source with many dependencies, because some compilers
  12289. # like to wrap large dependency lists on column 80 (with \), and
  12290. # we should not choose a depcomp mode which is confused by this.
  12291. #
  12292. # We need to recreate these files for each test, as the compiler may
  12293. # overwrite some of them when testing with obscure command lines.
  12294. # This happens at least with the AIX C compiler.
  12295. : > sub/conftest.c
  12296. for i in 1 2 3 4 5 6; do
  12297. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  12298. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  12299. # Solaris 10 /bin/sh.
  12300. echo '/* dummy */' > sub/conftst$i.h
  12301. done
  12302. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  12303. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  12304. # mode. It turns out that the SunPro C++ compiler does not properly
  12305. # handle '-M -o', and we need to detect this. Also, some Intel
  12306. # versions had trouble with output in subdirs.
  12307. am__obj=sub/conftest.${OBJEXT-o}
  12308. am__minus_obj="-o $am__obj"
  12309. case $depmode in
  12310. gcc)
  12311. # This depmode causes a compiler race in universal mode.
  12312. test "$am__universal" = false || continue
  12313. ;;
  12314. nosideeffect)
  12315. # After this tag, mechanisms are not by side-effect, so they'll
  12316. # only be used when explicitly requested.
  12317. if test "x$enable_dependency_tracking" = xyes; then
  12318. continue
  12319. else
  12320. break
  12321. fi
  12322. ;;
  12323. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  12324. # This compiler won't grok '-c -o', but also, the minuso test has
  12325. # not run yet. These depmodes are late enough in the game, and
  12326. # so weak that their functioning should not be impacted.
  12327. am__obj=conftest.${OBJEXT-o}
  12328. am__minus_obj=
  12329. ;;
  12330. none) break ;;
  12331. esac
  12332. if depmode=$depmode \
  12333. source=sub/conftest.c object=$am__obj \
  12334. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12335. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  12336. >/dev/null 2>conftest.err &&
  12337. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  12338. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12339. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  12340. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12341. # icc doesn't choke on unknown options, it will just issue warnings
  12342. # or remarks (even with -Werror). So we grep stderr for any message
  12343. # that says an option was ignored or not supported.
  12344. # When given -MP, icc 7.0 and 7.1 complain thusly:
  12345. # icc: Command line warning: ignoring option '-M'; no argument required
  12346. # The diagnosis changed in icc 8.0:
  12347. # icc: Command line remark: option '-MP' not supported
  12348. if (grep 'ignoring option' conftest.err ||
  12349. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  12350. am_cv_CXX_dependencies_compiler_type=$depmode
  12351. break
  12352. fi
  12353. fi
  12354. done
  12355. cd ..
  12356. rm -rf conftest.dir
  12357. else
  12358. am_cv_CXX_dependencies_compiler_type=none
  12359. fi
  12360. fi
  12361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  12362. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  12363. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  12364. if
  12365. test "x$enable_dependency_tracking" != xno \
  12366. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  12367. am__fastdepCXX_TRUE=
  12368. am__fastdepCXX_FALSE='#'
  12369. else
  12370. am__fastdepCXX_TRUE='#'
  12371. am__fastdepCXX_FALSE=
  12372. fi
  12373. func_stripname_cnf ()
  12374. {
  12375. case $2 in
  12376. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12377. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12378. esac
  12379. } # func_stripname_cnf
  12380. if test -n "$CXX" && ( test no != "$CXX" &&
  12381. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12382. (test g++ != "$CXX"))); then
  12383. ac_ext=cpp
  12384. ac_cpp='$CXXCPP $CPPFLAGS'
  12385. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12386. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12387. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12389. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  12390. if test -z "$CXXCPP"; then
  12391. if ${ac_cv_prog_CXXCPP+:} false; then :
  12392. $as_echo_n "(cached) " >&6
  12393. else
  12394. # Double quotes because CXXCPP needs to be expanded
  12395. for CXXCPP in "$CXX -E" "/lib/cpp"
  12396. do
  12397. ac_preproc_ok=false
  12398. for ac_cxx_preproc_warn_flag in '' yes
  12399. do
  12400. # Use a header file that comes with gcc, so configuring glibc
  12401. # with a fresh cross-compiler works.
  12402. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12403. # <limits.h> exists even on freestanding compilers.
  12404. # On the NeXT, cc -E runs the code through the compiler's parser,
  12405. # not just through cpp. "Syntax error" is here to catch this case.
  12406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12407. /* end confdefs.h. */
  12408. #ifdef __STDC__
  12409. # include <limits.h>
  12410. #else
  12411. # include <assert.h>
  12412. #endif
  12413. Syntax error
  12414. _ACEOF
  12415. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12416. else
  12417. # Broken: fails on valid input.
  12418. continue
  12419. fi
  12420. rm -f conftest.err conftest.i conftest.$ac_ext
  12421. # OK, works on sane cases. Now check whether nonexistent headers
  12422. # can be detected and how.
  12423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12424. /* end confdefs.h. */
  12425. #include <ac_nonexistent.h>
  12426. _ACEOF
  12427. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12428. # Broken: success on invalid input.
  12429. continue
  12430. else
  12431. # Passes both tests.
  12432. ac_preproc_ok=:
  12433. break
  12434. fi
  12435. rm -f conftest.err conftest.i conftest.$ac_ext
  12436. done
  12437. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12438. rm -f conftest.i conftest.err conftest.$ac_ext
  12439. if $ac_preproc_ok; then :
  12440. break
  12441. fi
  12442. done
  12443. ac_cv_prog_CXXCPP=$CXXCPP
  12444. fi
  12445. CXXCPP=$ac_cv_prog_CXXCPP
  12446. else
  12447. ac_cv_prog_CXXCPP=$CXXCPP
  12448. fi
  12449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12450. $as_echo "$CXXCPP" >&6; }
  12451. ac_preproc_ok=false
  12452. for ac_cxx_preproc_warn_flag in '' yes
  12453. do
  12454. # Use a header file that comes with gcc, so configuring glibc
  12455. # with a fresh cross-compiler works.
  12456. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12457. # <limits.h> exists even on freestanding compilers.
  12458. # On the NeXT, cc -E runs the code through the compiler's parser,
  12459. # not just through cpp. "Syntax error" is here to catch this case.
  12460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12461. /* end confdefs.h. */
  12462. #ifdef __STDC__
  12463. # include <limits.h>
  12464. #else
  12465. # include <assert.h>
  12466. #endif
  12467. Syntax error
  12468. _ACEOF
  12469. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12470. else
  12471. # Broken: fails on valid input.
  12472. continue
  12473. fi
  12474. rm -f conftest.err conftest.i conftest.$ac_ext
  12475. # OK, works on sane cases. Now check whether nonexistent headers
  12476. # can be detected and how.
  12477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12478. /* end confdefs.h. */
  12479. #include <ac_nonexistent.h>
  12480. _ACEOF
  12481. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12482. # Broken: success on invalid input.
  12483. continue
  12484. else
  12485. # Passes both tests.
  12486. ac_preproc_ok=:
  12487. break
  12488. fi
  12489. rm -f conftest.err conftest.i conftest.$ac_ext
  12490. done
  12491. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12492. rm -f conftest.i conftest.err conftest.$ac_ext
  12493. if $ac_preproc_ok; then :
  12494. else
  12495. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12496. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12497. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12498. See \`config.log' for more details" "$LINENO" 5; }
  12499. fi
  12500. ac_ext=c
  12501. ac_cpp='$CPP $CPPFLAGS'
  12502. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12503. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12504. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12505. else
  12506. _lt_caught_CXX_error=yes
  12507. fi
  12508. ac_ext=cpp
  12509. ac_cpp='$CXXCPP $CPPFLAGS'
  12510. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12511. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12512. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12513. archive_cmds_need_lc_CXX=no
  12514. allow_undefined_flag_CXX=
  12515. always_export_symbols_CXX=no
  12516. archive_expsym_cmds_CXX=
  12517. compiler_needs_object_CXX=no
  12518. export_dynamic_flag_spec_CXX=
  12519. hardcode_direct_CXX=no
  12520. hardcode_direct_absolute_CXX=no
  12521. hardcode_libdir_flag_spec_CXX=
  12522. hardcode_libdir_separator_CXX=
  12523. hardcode_minus_L_CXX=no
  12524. hardcode_shlibpath_var_CXX=unsupported
  12525. hardcode_automatic_CXX=no
  12526. inherit_rpath_CXX=no
  12527. module_cmds_CXX=
  12528. module_expsym_cmds_CXX=
  12529. link_all_deplibs_CXX=unknown
  12530. old_archive_cmds_CXX=$old_archive_cmds
  12531. reload_flag_CXX=$reload_flag
  12532. reload_cmds_CXX=$reload_cmds
  12533. no_undefined_flag_CXX=
  12534. whole_archive_flag_spec_CXX=
  12535. enable_shared_with_static_runtimes_CXX=no
  12536. # Source file extension for C++ test sources.
  12537. ac_ext=cpp
  12538. # Object file extension for compiled C++ test sources.
  12539. objext=o
  12540. objext_CXX=$objext
  12541. # No sense in running all these tests if we already determined that
  12542. # the CXX compiler isn't working. Some variables (like enable_shared)
  12543. # are currently assumed to apply to all compilers on this platform,
  12544. # and will be corrupted by setting them based on a non-working compiler.
  12545. if test yes != "$_lt_caught_CXX_error"; then
  12546. # Code to be used in simple compile tests
  12547. lt_simple_compile_test_code="int some_variable = 0;"
  12548. # Code to be used in simple link tests
  12549. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12550. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12551. # If no C compiler was specified, use CC.
  12552. LTCC=${LTCC-"$CC"}
  12553. # If no C compiler flags were specified, use CFLAGS.
  12554. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12555. # Allow CC to be a program name with arguments.
  12556. compiler=$CC
  12557. # save warnings/boilerplate of simple test code
  12558. ac_outfile=conftest.$ac_objext
  12559. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12560. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12561. _lt_compiler_boilerplate=`cat conftest.err`
  12562. $RM conftest*
  12563. ac_outfile=conftest.$ac_objext
  12564. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12565. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12566. _lt_linker_boilerplate=`cat conftest.err`
  12567. $RM -r conftest*
  12568. # Allow CC to be a program name with arguments.
  12569. lt_save_CC=$CC
  12570. lt_save_CFLAGS=$CFLAGS
  12571. lt_save_LD=$LD
  12572. lt_save_GCC=$GCC
  12573. GCC=$GXX
  12574. lt_save_with_gnu_ld=$with_gnu_ld
  12575. lt_save_path_LD=$lt_cv_path_LD
  12576. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12577. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12578. else
  12579. $as_unset lt_cv_prog_gnu_ld
  12580. fi
  12581. if test -n "${lt_cv_path_LDCXX+set}"; then
  12582. lt_cv_path_LD=$lt_cv_path_LDCXX
  12583. else
  12584. $as_unset lt_cv_path_LD
  12585. fi
  12586. test -z "${LDCXX+set}" || LD=$LDCXX
  12587. CC=${CXX-"c++"}
  12588. CFLAGS=$CXXFLAGS
  12589. compiler=$CC
  12590. compiler_CXX=$CC
  12591. func_cc_basename $compiler
  12592. cc_basename=$func_cc_basename_result
  12593. if test -n "$compiler"; then
  12594. # We don't want -fno-exception when compiling C++ code, so set the
  12595. # no_builtin_flag separately
  12596. if test yes = "$GXX"; then
  12597. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12598. else
  12599. lt_prog_compiler_no_builtin_flag_CXX=
  12600. fi
  12601. if test yes = "$GXX"; then
  12602. # Set up default GNU C++ configuration
  12603. # Check whether --with-gnu-ld was given.
  12604. if test "${with_gnu_ld+set}" = set; then :
  12605. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12606. else
  12607. with_gnu_ld=no
  12608. fi
  12609. ac_prog=ld
  12610. if test yes = "$GCC"; then
  12611. # Check if gcc -print-prog-name=ld gives a path.
  12612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12613. $as_echo_n "checking for ld used by $CC... " >&6; }
  12614. case $host in
  12615. *-*-mingw*)
  12616. # gcc leaves a trailing carriage return, which upsets mingw
  12617. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12618. *)
  12619. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12620. esac
  12621. case $ac_prog in
  12622. # Accept absolute paths.
  12623. [\\/]* | ?:[\\/]*)
  12624. re_direlt='/[^/][^/]*/\.\./'
  12625. # Canonicalize the pathname of ld
  12626. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12627. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12628. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12629. done
  12630. test -z "$LD" && LD=$ac_prog
  12631. ;;
  12632. "")
  12633. # If it fails, then pretend we aren't using GCC.
  12634. ac_prog=ld
  12635. ;;
  12636. *)
  12637. # If it is relative, then search for the first ld in PATH.
  12638. with_gnu_ld=unknown
  12639. ;;
  12640. esac
  12641. elif test yes = "$with_gnu_ld"; then
  12642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12643. $as_echo_n "checking for GNU ld... " >&6; }
  12644. else
  12645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12646. $as_echo_n "checking for non-GNU ld... " >&6; }
  12647. fi
  12648. if ${lt_cv_path_LD+:} false; then :
  12649. $as_echo_n "(cached) " >&6
  12650. else
  12651. if test -z "$LD"; then
  12652. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12653. for ac_dir in $PATH; do
  12654. IFS=$lt_save_ifs
  12655. test -z "$ac_dir" && ac_dir=.
  12656. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12657. lt_cv_path_LD=$ac_dir/$ac_prog
  12658. # Check to see if the program is GNU ld. I'd rather use --version,
  12659. # but apparently some variants of GNU ld only accept -v.
  12660. # Break only if it was the GNU/non-GNU ld that we prefer.
  12661. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12662. *GNU* | *'with BFD'*)
  12663. test no != "$with_gnu_ld" && break
  12664. ;;
  12665. *)
  12666. test yes != "$with_gnu_ld" && break
  12667. ;;
  12668. esac
  12669. fi
  12670. done
  12671. IFS=$lt_save_ifs
  12672. else
  12673. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12674. fi
  12675. fi
  12676. LD=$lt_cv_path_LD
  12677. if test -n "$LD"; then
  12678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12679. $as_echo "$LD" >&6; }
  12680. else
  12681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12682. $as_echo "no" >&6; }
  12683. fi
  12684. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12686. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  12687. if ${lt_cv_prog_gnu_ld+:} false; then :
  12688. $as_echo_n "(cached) " >&6
  12689. else
  12690. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12691. case `$LD -v 2>&1 </dev/null` in
  12692. *GNU* | *'with BFD'*)
  12693. lt_cv_prog_gnu_ld=yes
  12694. ;;
  12695. *)
  12696. lt_cv_prog_gnu_ld=no
  12697. ;;
  12698. esac
  12699. fi
  12700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12701. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  12702. with_gnu_ld=$lt_cv_prog_gnu_ld
  12703. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12704. # archiving commands below assume that GNU ld is being used.
  12705. if test yes = "$with_gnu_ld"; then
  12706. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12707. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  12708. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12709. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12710. # If archive_cmds runs LD, not CC, wlarc should be empty
  12711. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12712. # investigate it a little bit more. (MM)
  12713. wlarc='$wl'
  12714. # ancient GNU ld didn't support --whole-archive et. al.
  12715. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12716. $GREP 'no-whole-archive' > /dev/null; then
  12717. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12718. else
  12719. whole_archive_flag_spec_CXX=
  12720. fi
  12721. else
  12722. with_gnu_ld=no
  12723. wlarc=
  12724. # A generic and very simple default shared library creation
  12725. # command for GNU C++ for the case where it uses the native
  12726. # linker, instead of GNU ld. If possible, this setting should
  12727. # overridden to take advantage of the native linker features on
  12728. # the platform it is being used on.
  12729. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12730. fi
  12731. # Commands to make compiler produce verbose output that lists
  12732. # what "hidden" libraries, object files and flags are used when
  12733. # linking a shared library.
  12734. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  12735. else
  12736. GXX=no
  12737. with_gnu_ld=no
  12738. wlarc=
  12739. fi
  12740. # PORTME: fill in a description of your system's C++ link characteristics
  12741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12742. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12743. ld_shlibs_CXX=yes
  12744. case $host_os in
  12745. aix3*)
  12746. # FIXME: insert proper C++ library support
  12747. ld_shlibs_CXX=no
  12748. ;;
  12749. aix[4-9]*)
  12750. if test ia64 = "$host_cpu"; then
  12751. # On IA64, the linker does run time linking by default, so we don't
  12752. # have to do anything special.
  12753. aix_use_runtimelinking=no
  12754. exp_sym_flag='-Bexport'
  12755. no_entry_flag=
  12756. else
  12757. aix_use_runtimelinking=no
  12758. # Test if we are trying to use run time linking or normal
  12759. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12760. # have runtime linking enabled, and use it for executables.
  12761. # For shared libraries, we enable/disable runtime linking
  12762. # depending on the kind of the shared library created -
  12763. # when "with_aix_soname,aix_use_runtimelinking" is:
  12764. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12765. # "aix,yes" lib.so shared, rtl:yes, for executables
  12766. # lib.a static archive
  12767. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12768. # lib.a(lib.so.V) shared, rtl:no, for executables
  12769. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12770. # lib.a(lib.so.V) shared, rtl:no
  12771. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12772. # lib.a static archive
  12773. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12774. for ld_flag in $LDFLAGS; do
  12775. case $ld_flag in
  12776. *-brtl*)
  12777. aix_use_runtimelinking=yes
  12778. break
  12779. ;;
  12780. esac
  12781. done
  12782. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12783. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12784. # so we don't have lib.a shared libs to link our executables.
  12785. # We have to force runtime linking in this case.
  12786. aix_use_runtimelinking=yes
  12787. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12788. fi
  12789. ;;
  12790. esac
  12791. exp_sym_flag='-bexport'
  12792. no_entry_flag='-bnoentry'
  12793. fi
  12794. # When large executables or shared objects are built, AIX ld can
  12795. # have problems creating the table of contents. If linking a library
  12796. # or program results in "error TOC overflow" add -mminimal-toc to
  12797. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12798. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12799. archive_cmds_CXX=''
  12800. hardcode_direct_CXX=yes
  12801. hardcode_direct_absolute_CXX=yes
  12802. hardcode_libdir_separator_CXX=':'
  12803. link_all_deplibs_CXX=yes
  12804. file_list_spec_CXX='$wl-f,'
  12805. case $with_aix_soname,$aix_use_runtimelinking in
  12806. aix,*) ;; # no import file
  12807. svr4,* | *,yes) # use import file
  12808. # The Import File defines what to hardcode.
  12809. hardcode_direct_CXX=no
  12810. hardcode_direct_absolute_CXX=no
  12811. ;;
  12812. esac
  12813. if test yes = "$GXX"; then
  12814. case $host_os in aix4.[012]|aix4.[012].*)
  12815. # We only want to do this on AIX 4.2 and lower, the check
  12816. # below for broken collect2 doesn't work under 4.3+
  12817. collect2name=`$CC -print-prog-name=collect2`
  12818. if test -f "$collect2name" &&
  12819. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12820. then
  12821. # We have reworked collect2
  12822. :
  12823. else
  12824. # We have old collect2
  12825. hardcode_direct_CXX=unsupported
  12826. # It fails to find uninstalled libraries when the uninstalled
  12827. # path is not listed in the libpath. Setting hardcode_minus_L
  12828. # to unsupported forces relinking
  12829. hardcode_minus_L_CXX=yes
  12830. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12831. hardcode_libdir_separator_CXX=
  12832. fi
  12833. esac
  12834. shared_flag='-shared'
  12835. if test yes = "$aix_use_runtimelinking"; then
  12836. shared_flag=$shared_flag' $wl-G'
  12837. fi
  12838. # Need to ensure runtime linking is disabled for the traditional
  12839. # shared library, or the linker may eventually find shared libraries
  12840. # /with/ Import File - we do not want to mix them.
  12841. shared_flag_aix='-shared'
  12842. shared_flag_svr4='-shared $wl-G'
  12843. else
  12844. # not using gcc
  12845. if test ia64 = "$host_cpu"; then
  12846. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12847. # chokes on -Wl,-G. The following line is correct:
  12848. shared_flag='-G'
  12849. else
  12850. if test yes = "$aix_use_runtimelinking"; then
  12851. shared_flag='$wl-G'
  12852. else
  12853. shared_flag='$wl-bM:SRE'
  12854. fi
  12855. shared_flag_aix='$wl-bM:SRE'
  12856. shared_flag_svr4='$wl-G'
  12857. fi
  12858. fi
  12859. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12860. # It seems that -bexpall does not export symbols beginning with
  12861. # underscore (_), so it is better to generate a list of symbols to
  12862. # export.
  12863. always_export_symbols_CXX=yes
  12864. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12865. # Warning - without using the other runtime loading flags (-brtl),
  12866. # -berok will link without error, but may produce a broken library.
  12867. # The "-G" linker flag allows undefined symbols.
  12868. no_undefined_flag_CXX='-bernotok'
  12869. # Determine the default libpath from the value encoded in an empty
  12870. # executable.
  12871. if test set = "${lt_cv_aix_libpath+set}"; then
  12872. aix_libpath=$lt_cv_aix_libpath
  12873. else
  12874. if ${lt_cv_aix_libpath__CXX+:} false; then :
  12875. $as_echo_n "(cached) " >&6
  12876. else
  12877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12878. /* end confdefs.h. */
  12879. int
  12880. main ()
  12881. {
  12882. ;
  12883. return 0;
  12884. }
  12885. _ACEOF
  12886. if ac_fn_cxx_try_link "$LINENO"; then :
  12887. lt_aix_libpath_sed='
  12888. /Import File Strings/,/^$/ {
  12889. /^0/ {
  12890. s/^0 *\([^ ]*\) *$/\1/
  12891. p
  12892. }
  12893. }'
  12894. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12895. # Check for a 64-bit object if we didn't find anything.
  12896. if test -z "$lt_cv_aix_libpath__CXX"; then
  12897. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12898. fi
  12899. fi
  12900. rm -f core conftest.err conftest.$ac_objext \
  12901. conftest$ac_exeext conftest.$ac_ext
  12902. if test -z "$lt_cv_aix_libpath__CXX"; then
  12903. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12904. fi
  12905. fi
  12906. aix_libpath=$lt_cv_aix_libpath__CXX
  12907. fi
  12908. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12909. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  12910. else
  12911. if test ia64 = "$host_cpu"; then
  12912. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12913. allow_undefined_flag_CXX="-z nodefs"
  12914. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
  12915. else
  12916. # Determine the default libpath from the value encoded in an
  12917. # empty executable.
  12918. if test set = "${lt_cv_aix_libpath+set}"; then
  12919. aix_libpath=$lt_cv_aix_libpath
  12920. else
  12921. if ${lt_cv_aix_libpath__CXX+:} false; then :
  12922. $as_echo_n "(cached) " >&6
  12923. else
  12924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12925. /* end confdefs.h. */
  12926. int
  12927. main ()
  12928. {
  12929. ;
  12930. return 0;
  12931. }
  12932. _ACEOF
  12933. if ac_fn_cxx_try_link "$LINENO"; then :
  12934. lt_aix_libpath_sed='
  12935. /Import File Strings/,/^$/ {
  12936. /^0/ {
  12937. s/^0 *\([^ ]*\) *$/\1/
  12938. p
  12939. }
  12940. }'
  12941. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12942. # Check for a 64-bit object if we didn't find anything.
  12943. if test -z "$lt_cv_aix_libpath__CXX"; then
  12944. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12945. fi
  12946. fi
  12947. rm -f core conftest.err conftest.$ac_objext \
  12948. conftest$ac_exeext conftest.$ac_ext
  12949. if test -z "$lt_cv_aix_libpath__CXX"; then
  12950. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12951. fi
  12952. fi
  12953. aix_libpath=$lt_cv_aix_libpath__CXX
  12954. fi
  12955. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12956. # Warning - without using the other run time loading flags,
  12957. # -berok will link without error, but may produce a broken library.
  12958. no_undefined_flag_CXX=' $wl-bernotok'
  12959. allow_undefined_flag_CXX=' $wl-berok'
  12960. if test yes = "$with_gnu_ld"; then
  12961. # We only use this code for GNU lds that support --whole-archive.
  12962. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12963. else
  12964. # Exported symbols can be pulled into shared objects from archives
  12965. whole_archive_flag_spec_CXX='$convenience'
  12966. fi
  12967. archive_cmds_need_lc_CXX=yes
  12968. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12969. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12970. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12971. if test svr4 != "$with_aix_soname"; then
  12972. # This is similar to how AIX traditionally builds its shared
  12973. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12974. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  12975. fi
  12976. if test aix != "$with_aix_soname"; then
  12977. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  12978. else
  12979. # used by -dlpreopen to get the symbols
  12980. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12981. fi
  12982. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12983. fi
  12984. fi
  12985. ;;
  12986. beos*)
  12987. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12988. allow_undefined_flag_CXX=unsupported
  12989. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12990. # support --undefined. This deserves some investigation. FIXME
  12991. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12992. else
  12993. ld_shlibs_CXX=no
  12994. fi
  12995. ;;
  12996. chorus*)
  12997. case $cc_basename in
  12998. *)
  12999. # FIXME: insert proper C++ library support
  13000. ld_shlibs_CXX=no
  13001. ;;
  13002. esac
  13003. ;;
  13004. cygwin* | mingw* | pw32* | cegcc*)
  13005. case $GXX,$cc_basename in
  13006. ,cl* | no,cl*)
  13007. # Native MSVC
  13008. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13009. # no search path for DLLs.
  13010. hardcode_libdir_flag_spec_CXX=' '
  13011. allow_undefined_flag_CXX=unsupported
  13012. always_export_symbols_CXX=yes
  13013. file_list_spec_CXX='@'
  13014. # Tell ltmain to make .lib files, not .a files.
  13015. libext=lib
  13016. # Tell ltmain to make .dll files, not .so files.
  13017. shrext_cmds=.dll
  13018. # FIXME: Setting linknames here is a bad hack.
  13019. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  13020. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13021. cp "$export_symbols" "$output_objdir/$soname.def";
  13022. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  13023. else
  13024. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  13025. fi~
  13026. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13027. linknames='
  13028. # The linker will not automatically build a static lib if we build a DLL.
  13029. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13030. enable_shared_with_static_runtimes_CXX=yes
  13031. # Don't use ranlib
  13032. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13033. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13034. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13035. case $lt_outputfile in
  13036. *.exe|*.EXE) ;;
  13037. *)
  13038. lt_outputfile=$lt_outputfile.exe
  13039. lt_tool_outputfile=$lt_tool_outputfile.exe
  13040. ;;
  13041. esac~
  13042. func_to_tool_file "$lt_outputfile"~
  13043. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13044. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13045. $RM "$lt_outputfile.manifest";
  13046. fi'
  13047. ;;
  13048. *)
  13049. # g++
  13050. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13051. # as there is no search path for DLLs.
  13052. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13053. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13054. allow_undefined_flag_CXX=unsupported
  13055. always_export_symbols_CXX=no
  13056. enable_shared_with_static_runtimes_CXX=yes
  13057. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13058. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13059. # If the export-symbols file already is a .def file, use it as
  13060. # is; otherwise, prepend EXPORTS...
  13061. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13062. cp $export_symbols $output_objdir/$soname.def;
  13063. else
  13064. echo EXPORTS > $output_objdir/$soname.def;
  13065. cat $export_symbols >> $output_objdir/$soname.def;
  13066. fi~
  13067. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13068. else
  13069. ld_shlibs_CXX=no
  13070. fi
  13071. ;;
  13072. esac
  13073. ;;
  13074. darwin* | rhapsody*)
  13075. archive_cmds_need_lc_CXX=no
  13076. hardcode_direct_CXX=no
  13077. hardcode_automatic_CXX=yes
  13078. hardcode_shlibpath_var_CXX=unsupported
  13079. if test yes = "$lt_cv_ld_force_load"; then
  13080. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  13081. else
  13082. whole_archive_flag_spec_CXX=''
  13083. fi
  13084. link_all_deplibs_CXX=yes
  13085. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13086. case $cc_basename in
  13087. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13088. *) _lt_dar_can_shared=$GCC ;;
  13089. esac
  13090. if test yes = "$_lt_dar_can_shared"; then
  13091. output_verbose_link_cmd=func_echo_all
  13092. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  13093. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13094. archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
  13095. module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
  13096. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13097. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
  13098. archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
  13099. fi
  13100. else
  13101. ld_shlibs_CXX=no
  13102. fi
  13103. ;;
  13104. os2*)
  13105. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13106. hardcode_minus_L_CXX=yes
  13107. allow_undefined_flag_CXX=unsupported
  13108. shrext_cmds=.dll
  13109. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13110. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13111. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13112. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13113. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13114. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13115. emximp -o $lib $output_objdir/$libname.def'
  13116. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13117. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13118. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13119. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13120. prefix_cmds="$SED"~
  13121. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13122. prefix_cmds="$prefix_cmds -e 1d";
  13123. fi~
  13124. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13125. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13126. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13127. emximp -o $lib $output_objdir/$libname.def'
  13128. old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13129. enable_shared_with_static_runtimes_CXX=yes
  13130. ;;
  13131. dgux*)
  13132. case $cc_basename in
  13133. ec++*)
  13134. # FIXME: insert proper C++ library support
  13135. ld_shlibs_CXX=no
  13136. ;;
  13137. ghcx*)
  13138. # Green Hills C++ Compiler
  13139. # FIXME: insert proper C++ library support
  13140. ld_shlibs_CXX=no
  13141. ;;
  13142. *)
  13143. # FIXME: insert proper C++ library support
  13144. ld_shlibs_CXX=no
  13145. ;;
  13146. esac
  13147. ;;
  13148. freebsd2.*)
  13149. # C++ shared libraries reported to be fairly broken before
  13150. # switch to ELF
  13151. ld_shlibs_CXX=no
  13152. ;;
  13153. freebsd-elf*)
  13154. archive_cmds_need_lc_CXX=no
  13155. ;;
  13156. freebsd* | dragonfly*)
  13157. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13158. # conventions
  13159. ld_shlibs_CXX=yes
  13160. ;;
  13161. haiku*)
  13162. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13163. link_all_deplibs_CXX=yes
  13164. ;;
  13165. hpux9*)
  13166. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13167. hardcode_libdir_separator_CXX=:
  13168. export_dynamic_flag_spec_CXX='$wl-E'
  13169. hardcode_direct_CXX=yes
  13170. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13171. # but as the default
  13172. # location of the library.
  13173. case $cc_basename in
  13174. CC*)
  13175. # FIXME: insert proper C++ library support
  13176. ld_shlibs_CXX=no
  13177. ;;
  13178. aCC*)
  13179. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  13180. # Commands to make compiler produce verbose output that lists
  13181. # what "hidden" libraries, object files and flags are used when
  13182. # linking a shared library.
  13183. #
  13184. # There doesn't appear to be a way to prevent this compiler from
  13185. # explicitly linking system object files so we need to strip them
  13186. # from the output so that they don't get included in the library
  13187. # dependencies.
  13188. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  13189. ;;
  13190. *)
  13191. if test yes = "$GXX"; then
  13192. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  13193. else
  13194. # FIXME: insert proper C++ library support
  13195. ld_shlibs_CXX=no
  13196. fi
  13197. ;;
  13198. esac
  13199. ;;
  13200. hpux10*|hpux11*)
  13201. if test no = "$with_gnu_ld"; then
  13202. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13203. hardcode_libdir_separator_CXX=:
  13204. case $host_cpu in
  13205. hppa*64*|ia64*)
  13206. ;;
  13207. *)
  13208. export_dynamic_flag_spec_CXX='$wl-E'
  13209. ;;
  13210. esac
  13211. fi
  13212. case $host_cpu in
  13213. hppa*64*|ia64*)
  13214. hardcode_direct_CXX=no
  13215. hardcode_shlibpath_var_CXX=no
  13216. ;;
  13217. *)
  13218. hardcode_direct_CXX=yes
  13219. hardcode_direct_absolute_CXX=yes
  13220. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13221. # but as the default
  13222. # location of the library.
  13223. ;;
  13224. esac
  13225. case $cc_basename in
  13226. CC*)
  13227. # FIXME: insert proper C++ library support
  13228. ld_shlibs_CXX=no
  13229. ;;
  13230. aCC*)
  13231. case $host_cpu in
  13232. hppa*64*)
  13233. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13234. ;;
  13235. ia64*)
  13236. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13237. ;;
  13238. *)
  13239. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13240. ;;
  13241. esac
  13242. # Commands to make compiler produce verbose output that lists
  13243. # what "hidden" libraries, object files and flags are used when
  13244. # linking a shared library.
  13245. #
  13246. # There doesn't appear to be a way to prevent this compiler from
  13247. # explicitly linking system object files so we need to strip them
  13248. # from the output so that they don't get included in the library
  13249. # dependencies.
  13250. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  13251. ;;
  13252. *)
  13253. if test yes = "$GXX"; then
  13254. if test no = "$with_gnu_ld"; then
  13255. case $host_cpu in
  13256. hppa*64*)
  13257. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13258. ;;
  13259. ia64*)
  13260. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13261. ;;
  13262. *)
  13263. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13264. ;;
  13265. esac
  13266. fi
  13267. else
  13268. # FIXME: insert proper C++ library support
  13269. ld_shlibs_CXX=no
  13270. fi
  13271. ;;
  13272. esac
  13273. ;;
  13274. interix[3-9]*)
  13275. hardcode_direct_CXX=no
  13276. hardcode_shlibpath_var_CXX=no
  13277. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13278. export_dynamic_flag_spec_CXX='$wl-E'
  13279. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13280. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13281. # default) and relocated if they conflict, which is a slow very memory
  13282. # consuming and fragmenting process. To avoid this, we pick a random,
  13283. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13284. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13285. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  13286. archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  13287. ;;
  13288. irix5* | irix6*)
  13289. case $cc_basename in
  13290. CC*)
  13291. # SGI C++
  13292. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  13293. # Archives containing C++ object files must be created using
  13294. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13295. # necessary to make sure instantiated templates are included
  13296. # in the archive.
  13297. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13298. ;;
  13299. *)
  13300. if test yes = "$GXX"; then
  13301. if test no = "$with_gnu_ld"; then
  13302. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  13303. else
  13304. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
  13305. fi
  13306. fi
  13307. link_all_deplibs_CXX=yes
  13308. ;;
  13309. esac
  13310. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13311. hardcode_libdir_separator_CXX=:
  13312. inherit_rpath_CXX=yes
  13313. ;;
  13314. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13315. case $cc_basename in
  13316. KCC*)
  13317. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13318. # KCC will only create a shared library if the output file
  13319. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13320. # to its proper name (with version) after linking.
  13321. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  13322. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
  13323. # Commands to make compiler produce verbose output that lists
  13324. # what "hidden" libraries, object files and flags are used when
  13325. # linking a shared library.
  13326. #
  13327. # There doesn't appear to be a way to prevent this compiler from
  13328. # explicitly linking system object files so we need to strip them
  13329. # from the output so that they don't get included in the library
  13330. # dependencies.
  13331. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  13332. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13333. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13334. # Archives containing C++ object files must be created using
  13335. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13336. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13337. ;;
  13338. icpc* | ecpc* )
  13339. # Intel C++
  13340. with_gnu_ld=yes
  13341. # version 8.0 and above of icpc choke on multiply defined symbols
  13342. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13343. # earlier do not add the objects themselves.
  13344. case `$CC -V 2>&1` in
  13345. *"Version 7."*)
  13346. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13347. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13348. ;;
  13349. *) # Version 8.0 or newer
  13350. tmp_idyn=
  13351. case $host_cpu in
  13352. ia64*) tmp_idyn=' -i_dynamic';;
  13353. esac
  13354. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13355. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13356. ;;
  13357. esac
  13358. archive_cmds_need_lc_CXX=no
  13359. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13360. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13361. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13362. ;;
  13363. pgCC* | pgcpp*)
  13364. # Portland Group C++ compiler
  13365. case `$CC -V` in
  13366. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13367. prelink_cmds_CXX='tpldir=Template.dir~
  13368. rm -rf $tpldir~
  13369. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13370. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13371. old_archive_cmds_CXX='tpldir=Template.dir~
  13372. rm -rf $tpldir~
  13373. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13374. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13375. $RANLIB $oldlib'
  13376. archive_cmds_CXX='tpldir=Template.dir~
  13377. rm -rf $tpldir~
  13378. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13379. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13380. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13381. rm -rf $tpldir~
  13382. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13383. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13384. ;;
  13385. *) # Version 6 and above use weak symbols
  13386. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13387. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13388. ;;
  13389. esac
  13390. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13391. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13392. whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  13393. ;;
  13394. cxx*)
  13395. # Compaq C++
  13396. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13397. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
  13398. runpath_var=LD_RUN_PATH
  13399. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13400. hardcode_libdir_separator_CXX=:
  13401. # Commands to make compiler produce verbose output that lists
  13402. # what "hidden" libraries, object files and flags are used when
  13403. # linking a shared library.
  13404. #
  13405. # There doesn't appear to be a way to prevent this compiler from
  13406. # explicitly linking system object files so we need to strip them
  13407. # from the output so that they don't get included in the library
  13408. # dependencies.
  13409. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  13410. ;;
  13411. xl* | mpixl* | bgxl*)
  13412. # IBM XL 8.0 on PPC, with GNU ld
  13413. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13414. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13415. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13416. if test yes = "$supports_anon_versioning"; then
  13417. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13418. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13419. echo "local: *; };" >> $output_objdir/$libname.ver~
  13420. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13421. fi
  13422. ;;
  13423. *)
  13424. case `$CC -V 2>&1 | sed 5q` in
  13425. *Sun\ C*)
  13426. # Sun C++ 5.9
  13427. no_undefined_flag_CXX=' -zdefs'
  13428. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13429. archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
  13430. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13431. whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  13432. compiler_needs_object_CXX=yes
  13433. # Not sure whether something based on
  13434. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13435. # would be better.
  13436. output_verbose_link_cmd='func_echo_all'
  13437. # Archives containing C++ object files must be created using
  13438. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13439. # necessary to make sure instantiated templates are included
  13440. # in the archive.
  13441. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13442. ;;
  13443. esac
  13444. ;;
  13445. esac
  13446. ;;
  13447. lynxos*)
  13448. # FIXME: insert proper C++ library support
  13449. ld_shlibs_CXX=no
  13450. ;;
  13451. m88k*)
  13452. # FIXME: insert proper C++ library support
  13453. ld_shlibs_CXX=no
  13454. ;;
  13455. mvs*)
  13456. case $cc_basename in
  13457. cxx*)
  13458. # FIXME: insert proper C++ library support
  13459. ld_shlibs_CXX=no
  13460. ;;
  13461. *)
  13462. # FIXME: insert proper C++ library support
  13463. ld_shlibs_CXX=no
  13464. ;;
  13465. esac
  13466. ;;
  13467. netbsd*)
  13468. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13469. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13470. wlarc=
  13471. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13472. hardcode_direct_CXX=yes
  13473. hardcode_shlibpath_var_CXX=no
  13474. fi
  13475. # Workaround some broken pre-1.5 toolchains
  13476. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13477. ;;
  13478. *nto* | *qnx*)
  13479. ld_shlibs_CXX=yes
  13480. ;;
  13481. openbsd* | bitrig*)
  13482. if test -f /usr/libexec/ld.so; then
  13483. hardcode_direct_CXX=yes
  13484. hardcode_shlibpath_var_CXX=no
  13485. hardcode_direct_absolute_CXX=yes
  13486. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13487. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13488. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13489. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13490. export_dynamic_flag_spec_CXX='$wl-E'
  13491. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13492. fi
  13493. output_verbose_link_cmd=func_echo_all
  13494. else
  13495. ld_shlibs_CXX=no
  13496. fi
  13497. ;;
  13498. osf3* | osf4* | osf5*)
  13499. case $cc_basename in
  13500. KCC*)
  13501. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13502. # KCC will only create a shared library if the output file
  13503. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13504. # to its proper name (with version) after linking.
  13505. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  13506. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13507. hardcode_libdir_separator_CXX=:
  13508. # Archives containing C++ object files must be created using
  13509. # the KAI C++ compiler.
  13510. case $host in
  13511. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13512. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13513. esac
  13514. ;;
  13515. RCC*)
  13516. # Rational C++ 2.4.1
  13517. # FIXME: insert proper C++ library support
  13518. ld_shlibs_CXX=no
  13519. ;;
  13520. cxx*)
  13521. case $host in
  13522. osf3*)
  13523. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13524. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  13525. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13526. ;;
  13527. *)
  13528. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13529. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  13530. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13531. echo "-hidden">> $lib.exp~
  13532. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
  13533. $RM $lib.exp'
  13534. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13535. ;;
  13536. esac
  13537. hardcode_libdir_separator_CXX=:
  13538. # Commands to make compiler produce verbose output that lists
  13539. # what "hidden" libraries, object files and flags are used when
  13540. # linking a shared library.
  13541. #
  13542. # There doesn't appear to be a way to prevent this compiler from
  13543. # explicitly linking system object files so we need to strip them
  13544. # from the output so that they don't get included in the library
  13545. # dependencies.
  13546. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  13547. ;;
  13548. *)
  13549. if test yes,no = "$GXX,$with_gnu_ld"; then
  13550. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13551. case $host in
  13552. osf3*)
  13553. archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  13554. ;;
  13555. *)
  13556. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  13557. ;;
  13558. esac
  13559. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13560. hardcode_libdir_separator_CXX=:
  13561. # Commands to make compiler produce verbose output that lists
  13562. # what "hidden" libraries, object files and flags are used when
  13563. # linking a shared library.
  13564. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  13565. else
  13566. # FIXME: insert proper C++ library support
  13567. ld_shlibs_CXX=no
  13568. fi
  13569. ;;
  13570. esac
  13571. ;;
  13572. psos*)
  13573. # FIXME: insert proper C++ library support
  13574. ld_shlibs_CXX=no
  13575. ;;
  13576. sunos4*)
  13577. case $cc_basename in
  13578. CC*)
  13579. # Sun C++ 4.x
  13580. # FIXME: insert proper C++ library support
  13581. ld_shlibs_CXX=no
  13582. ;;
  13583. lcc*)
  13584. # Lucid
  13585. # FIXME: insert proper C++ library support
  13586. ld_shlibs_CXX=no
  13587. ;;
  13588. *)
  13589. # FIXME: insert proper C++ library support
  13590. ld_shlibs_CXX=no
  13591. ;;
  13592. esac
  13593. ;;
  13594. solaris*)
  13595. case $cc_basename in
  13596. CC* | sunCC*)
  13597. # Sun C++ 4.2, 5.x and Centerline C++
  13598. archive_cmds_need_lc_CXX=yes
  13599. no_undefined_flag_CXX=' -zdefs'
  13600. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13601. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13602. $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13603. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13604. hardcode_shlibpath_var_CXX=no
  13605. case $host_os in
  13606. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13607. *)
  13608. # The compiler driver will combine and reorder linker options,
  13609. # but understands '-z linker_flag'.
  13610. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13611. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13612. ;;
  13613. esac
  13614. link_all_deplibs_CXX=yes
  13615. output_verbose_link_cmd='func_echo_all'
  13616. # Archives containing C++ object files must be created using
  13617. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13618. # necessary to make sure instantiated templates are included
  13619. # in the archive.
  13620. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13621. ;;
  13622. gcx*)
  13623. # Green Hills C++ Compiler
  13624. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13625. # The C++ compiler must be used to create the archive.
  13626. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13627. ;;
  13628. *)
  13629. # GNU C++ compiler with Solaris linker
  13630. if test yes,no = "$GXX,$with_gnu_ld"; then
  13631. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13632. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13633. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13634. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13635. $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13636. # Commands to make compiler produce verbose output that lists
  13637. # what "hidden" libraries, object files and flags are used when
  13638. # linking a shared library.
  13639. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  13640. else
  13641. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13642. # platform.
  13643. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13644. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13645. $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13646. # Commands to make compiler produce verbose output that lists
  13647. # what "hidden" libraries, object files and flags are used when
  13648. # linking a shared library.
  13649. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  13650. fi
  13651. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13652. case $host_os in
  13653. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13654. *)
  13655. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13656. ;;
  13657. esac
  13658. fi
  13659. ;;
  13660. esac
  13661. ;;
  13662. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13663. no_undefined_flag_CXX='$wl-z,text'
  13664. archive_cmds_need_lc_CXX=no
  13665. hardcode_shlibpath_var_CXX=no
  13666. runpath_var='LD_RUN_PATH'
  13667. case $cc_basename in
  13668. CC*)
  13669. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13670. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13671. ;;
  13672. *)
  13673. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13674. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13675. ;;
  13676. esac
  13677. ;;
  13678. sysv5* | sco3.2v5* | sco5v6*)
  13679. # Note: We CANNOT use -z defs as we might desire, because we do not
  13680. # link with -lc, and that would cause any symbols used from libc to
  13681. # always be unresolved, which means just about no library would
  13682. # ever link correctly. If we're not using GNU ld we use -z text
  13683. # though, which does catch some bad symbols but isn't as heavy-handed
  13684. # as -z defs.
  13685. no_undefined_flag_CXX='$wl-z,text'
  13686. allow_undefined_flag_CXX='$wl-z,nodefs'
  13687. archive_cmds_need_lc_CXX=no
  13688. hardcode_shlibpath_var_CXX=no
  13689. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13690. hardcode_libdir_separator_CXX=':'
  13691. link_all_deplibs_CXX=yes
  13692. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13693. runpath_var='LD_RUN_PATH'
  13694. case $cc_basename in
  13695. CC*)
  13696. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13697. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13698. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13699. '"$old_archive_cmds_CXX"
  13700. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13701. '"$reload_cmds_CXX"
  13702. ;;
  13703. *)
  13704. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13705. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13706. ;;
  13707. esac
  13708. ;;
  13709. tandem*)
  13710. case $cc_basename in
  13711. NCC*)
  13712. # NonStop-UX NCC 3.20
  13713. # FIXME: insert proper C++ library support
  13714. ld_shlibs_CXX=no
  13715. ;;
  13716. *)
  13717. # FIXME: insert proper C++ library support
  13718. ld_shlibs_CXX=no
  13719. ;;
  13720. esac
  13721. ;;
  13722. vxworks*)
  13723. # FIXME: insert proper C++ library support
  13724. ld_shlibs_CXX=no
  13725. ;;
  13726. *)
  13727. # FIXME: insert proper C++ library support
  13728. ld_shlibs_CXX=no
  13729. ;;
  13730. esac
  13731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13732. $as_echo "$ld_shlibs_CXX" >&6; }
  13733. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13734. GCC_CXX=$GXX
  13735. LD_CXX=$LD
  13736. ## CAVEAT EMPTOR:
  13737. ## There is no encapsulation within the following macros, do not change
  13738. ## the running order or otherwise move them around unless you know exactly
  13739. ## what you are doing...
  13740. # Dependencies to place before and after the object being linked:
  13741. predep_objects_CXX=
  13742. postdep_objects_CXX=
  13743. predeps_CXX=
  13744. postdeps_CXX=
  13745. compiler_lib_search_path_CXX=
  13746. cat > conftest.$ac_ext <<_LT_EOF
  13747. class Foo
  13748. {
  13749. public:
  13750. Foo (void) { a = 0; }
  13751. private:
  13752. int a;
  13753. };
  13754. _LT_EOF
  13755. _lt_libdeps_save_CFLAGS=$CFLAGS
  13756. case "$CC $CFLAGS " in #(
  13757. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13758. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13759. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13760. esac
  13761. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13762. (eval $ac_compile) 2>&5
  13763. ac_status=$?
  13764. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13765. test $ac_status = 0; }; then
  13766. # Parse the compiler output and extract the necessary
  13767. # objects, libraries and library flags.
  13768. # Sentinel used to keep track of whether or not we are before
  13769. # the conftest object file.
  13770. pre_test_object_deps_done=no
  13771. for p in `eval "$output_verbose_link_cmd"`; do
  13772. case $prev$p in
  13773. -L* | -R* | -l*)
  13774. # Some compilers place space between "-{L,R}" and the path.
  13775. # Remove the space.
  13776. if test x-L = "$p" ||
  13777. test x-R = "$p"; then
  13778. prev=$p
  13779. continue
  13780. fi
  13781. # Expand the sysroot to ease extracting the directories later.
  13782. if test -z "$prev"; then
  13783. case $p in
  13784. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13785. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13786. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13787. esac
  13788. fi
  13789. case $p in
  13790. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13791. esac
  13792. if test no = "$pre_test_object_deps_done"; then
  13793. case $prev in
  13794. -L | -R)
  13795. # Internal compiler library paths should come after those
  13796. # provided the user. The postdeps already come after the
  13797. # user supplied libs so there is no need to process them.
  13798. if test -z "$compiler_lib_search_path_CXX"; then
  13799. compiler_lib_search_path_CXX=$prev$p
  13800. else
  13801. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13802. fi
  13803. ;;
  13804. # The "-l" case would never come before the object being
  13805. # linked, so don't bother handling this case.
  13806. esac
  13807. else
  13808. if test -z "$postdeps_CXX"; then
  13809. postdeps_CXX=$prev$p
  13810. else
  13811. postdeps_CXX="${postdeps_CXX} $prev$p"
  13812. fi
  13813. fi
  13814. prev=
  13815. ;;
  13816. *.lto.$objext) ;; # Ignore GCC LTO objects
  13817. *.$objext)
  13818. # This assumes that the test object file only shows up
  13819. # once in the compiler output.
  13820. if test "$p" = "conftest.$objext"; then
  13821. pre_test_object_deps_done=yes
  13822. continue
  13823. fi
  13824. if test no = "$pre_test_object_deps_done"; then
  13825. if test -z "$predep_objects_CXX"; then
  13826. predep_objects_CXX=$p
  13827. else
  13828. predep_objects_CXX="$predep_objects_CXX $p"
  13829. fi
  13830. else
  13831. if test -z "$postdep_objects_CXX"; then
  13832. postdep_objects_CXX=$p
  13833. else
  13834. postdep_objects_CXX="$postdep_objects_CXX $p"
  13835. fi
  13836. fi
  13837. ;;
  13838. *) ;; # Ignore the rest.
  13839. esac
  13840. done
  13841. # Clean up.
  13842. rm -f a.out a.exe
  13843. else
  13844. echo "libtool.m4: error: problem compiling CXX test program"
  13845. fi
  13846. $RM -f confest.$objext
  13847. CFLAGS=$_lt_libdeps_save_CFLAGS
  13848. # PORTME: override above test on systems where it is broken
  13849. case $host_os in
  13850. interix[3-9]*)
  13851. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13852. # hack all around it, let's just trust "g++" to DTRT.
  13853. predep_objects_CXX=
  13854. postdep_objects_CXX=
  13855. postdeps_CXX=
  13856. ;;
  13857. esac
  13858. case " $postdeps_CXX " in
  13859. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13860. esac
  13861. compiler_lib_search_dirs_CXX=
  13862. if test -n "${compiler_lib_search_path_CXX}"; then
  13863. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13864. fi
  13865. lt_prog_compiler_wl_CXX=
  13866. lt_prog_compiler_pic_CXX=
  13867. lt_prog_compiler_static_CXX=
  13868. # C++ specific cases for pic, static, wl, etc.
  13869. if test yes = "$GXX"; then
  13870. lt_prog_compiler_wl_CXX='-Wl,'
  13871. lt_prog_compiler_static_CXX='-static'
  13872. case $host_os in
  13873. aix*)
  13874. # All AIX code is PIC.
  13875. if test ia64 = "$host_cpu"; then
  13876. # AIX 5 now supports IA64 processor
  13877. lt_prog_compiler_static_CXX='-Bstatic'
  13878. fi
  13879. lt_prog_compiler_pic_CXX='-fPIC'
  13880. ;;
  13881. amigaos*)
  13882. case $host_cpu in
  13883. powerpc)
  13884. # see comment about AmigaOS4 .so support
  13885. lt_prog_compiler_pic_CXX='-fPIC'
  13886. ;;
  13887. m68k)
  13888. # FIXME: we need at least 68020 code to build shared libraries, but
  13889. # adding the '-m68020' flag to GCC prevents building anything better,
  13890. # like '-m68040'.
  13891. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13892. ;;
  13893. esac
  13894. ;;
  13895. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13896. # PIC is the default for these OSes.
  13897. ;;
  13898. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13899. # This hack is so that the source file can tell whether it is being
  13900. # built for inclusion in a dll (and should export symbols for example).
  13901. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13902. # (--disable-auto-import) libraries
  13903. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13904. case $host_os in
  13905. os2*)
  13906. lt_prog_compiler_static_CXX='$wl-static'
  13907. ;;
  13908. esac
  13909. ;;
  13910. darwin* | rhapsody*)
  13911. # PIC is the default on this platform
  13912. # Common symbols not allowed in MH_DYLIB files
  13913. lt_prog_compiler_pic_CXX='-fno-common'
  13914. ;;
  13915. *djgpp*)
  13916. # DJGPP does not support shared libraries at all
  13917. lt_prog_compiler_pic_CXX=
  13918. ;;
  13919. haiku*)
  13920. # PIC is the default for Haiku.
  13921. # The "-static" flag exists, but is broken.
  13922. lt_prog_compiler_static_CXX=
  13923. ;;
  13924. interix[3-9]*)
  13925. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13926. # Instead, we relocate shared libraries at runtime.
  13927. ;;
  13928. sysv4*MP*)
  13929. if test -d /usr/nec; then
  13930. lt_prog_compiler_pic_CXX=-Kconform_pic
  13931. fi
  13932. ;;
  13933. hpux*)
  13934. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13935. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13936. # sets the default TLS model and affects inlining.
  13937. case $host_cpu in
  13938. hppa*64*)
  13939. ;;
  13940. *)
  13941. lt_prog_compiler_pic_CXX='-fPIC'
  13942. ;;
  13943. esac
  13944. ;;
  13945. *qnx* | *nto*)
  13946. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13947. # it will coredump.
  13948. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13949. ;;
  13950. *)
  13951. lt_prog_compiler_pic_CXX='-fPIC'
  13952. ;;
  13953. esac
  13954. else
  13955. case $host_os in
  13956. aix[4-9]*)
  13957. # All AIX code is PIC.
  13958. if test ia64 = "$host_cpu"; then
  13959. # AIX 5 now supports IA64 processor
  13960. lt_prog_compiler_static_CXX='-Bstatic'
  13961. else
  13962. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13963. fi
  13964. ;;
  13965. chorus*)
  13966. case $cc_basename in
  13967. cxch68*)
  13968. # Green Hills C++ Compiler
  13969. # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  13970. ;;
  13971. esac
  13972. ;;
  13973. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13974. # This hack is so that the source file can tell whether it is being
  13975. # built for inclusion in a dll (and should export symbols for example).
  13976. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13977. ;;
  13978. dgux*)
  13979. case $cc_basename in
  13980. ec++*)
  13981. lt_prog_compiler_pic_CXX='-KPIC'
  13982. ;;
  13983. ghcx*)
  13984. # Green Hills C++ Compiler
  13985. lt_prog_compiler_pic_CXX='-pic'
  13986. ;;
  13987. *)
  13988. ;;
  13989. esac
  13990. ;;
  13991. freebsd* | dragonfly*)
  13992. # FreeBSD uses GNU C++
  13993. ;;
  13994. hpux9* | hpux10* | hpux11*)
  13995. case $cc_basename in
  13996. CC*)
  13997. lt_prog_compiler_wl_CXX='-Wl,'
  13998. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13999. if test ia64 != "$host_cpu"; then
  14000. lt_prog_compiler_pic_CXX='+Z'
  14001. fi
  14002. ;;
  14003. aCC*)
  14004. lt_prog_compiler_wl_CXX='-Wl,'
  14005. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14006. case $host_cpu in
  14007. hppa*64*|ia64*)
  14008. # +Z the default
  14009. ;;
  14010. *)
  14011. lt_prog_compiler_pic_CXX='+Z'
  14012. ;;
  14013. esac
  14014. ;;
  14015. *)
  14016. ;;
  14017. esac
  14018. ;;
  14019. interix*)
  14020. # This is c89, which is MS Visual C++ (no shared libs)
  14021. # Anyone wants to do a port?
  14022. ;;
  14023. irix5* | irix6* | nonstopux*)
  14024. case $cc_basename in
  14025. CC*)
  14026. lt_prog_compiler_wl_CXX='-Wl,'
  14027. lt_prog_compiler_static_CXX='-non_shared'
  14028. # CC pic flag -KPIC is the default.
  14029. ;;
  14030. *)
  14031. ;;
  14032. esac
  14033. ;;
  14034. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14035. case $cc_basename in
  14036. KCC*)
  14037. # KAI C++ Compiler
  14038. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14039. lt_prog_compiler_pic_CXX='-fPIC'
  14040. ;;
  14041. ecpc* )
  14042. # old Intel C++ for x86_64, which still supported -KPIC.
  14043. lt_prog_compiler_wl_CXX='-Wl,'
  14044. lt_prog_compiler_pic_CXX='-KPIC'
  14045. lt_prog_compiler_static_CXX='-static'
  14046. ;;
  14047. icpc* )
  14048. # Intel C++, used to be incompatible with GCC.
  14049. # ICC 10 doesn't accept -KPIC any more.
  14050. lt_prog_compiler_wl_CXX='-Wl,'
  14051. lt_prog_compiler_pic_CXX='-fPIC'
  14052. lt_prog_compiler_static_CXX='-static'
  14053. ;;
  14054. pgCC* | pgcpp*)
  14055. # Portland Group C++ compiler
  14056. lt_prog_compiler_wl_CXX='-Wl,'
  14057. lt_prog_compiler_pic_CXX='-fpic'
  14058. lt_prog_compiler_static_CXX='-Bstatic'
  14059. ;;
  14060. cxx*)
  14061. # Compaq C++
  14062. # Make sure the PIC flag is empty. It appears that all Alpha
  14063. # Linux and Compaq Tru64 Unix objects are PIC.
  14064. lt_prog_compiler_pic_CXX=
  14065. lt_prog_compiler_static_CXX='-non_shared'
  14066. ;;
  14067. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14068. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14069. lt_prog_compiler_wl_CXX='-Wl,'
  14070. lt_prog_compiler_pic_CXX='-qpic'
  14071. lt_prog_compiler_static_CXX='-qstaticlink'
  14072. ;;
  14073. *)
  14074. case `$CC -V 2>&1 | sed 5q` in
  14075. *Sun\ C*)
  14076. # Sun C++ 5.9
  14077. lt_prog_compiler_pic_CXX='-KPIC'
  14078. lt_prog_compiler_static_CXX='-Bstatic'
  14079. lt_prog_compiler_wl_CXX='-Qoption ld '
  14080. ;;
  14081. esac
  14082. ;;
  14083. esac
  14084. ;;
  14085. lynxos*)
  14086. ;;
  14087. m88k*)
  14088. ;;
  14089. mvs*)
  14090. case $cc_basename in
  14091. cxx*)
  14092. lt_prog_compiler_pic_CXX='-W c,exportall'
  14093. ;;
  14094. *)
  14095. ;;
  14096. esac
  14097. ;;
  14098. netbsd* | netbsdelf*-gnu)
  14099. ;;
  14100. *qnx* | *nto*)
  14101. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14102. # it will coredump.
  14103. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14104. ;;
  14105. osf3* | osf4* | osf5*)
  14106. case $cc_basename in
  14107. KCC*)
  14108. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14109. ;;
  14110. RCC*)
  14111. # Rational C++ 2.4.1
  14112. lt_prog_compiler_pic_CXX='-pic'
  14113. ;;
  14114. cxx*)
  14115. # Digital/Compaq C++
  14116. lt_prog_compiler_wl_CXX='-Wl,'
  14117. # Make sure the PIC flag is empty. It appears that all Alpha
  14118. # Linux and Compaq Tru64 Unix objects are PIC.
  14119. lt_prog_compiler_pic_CXX=
  14120. lt_prog_compiler_static_CXX='-non_shared'
  14121. ;;
  14122. *)
  14123. ;;
  14124. esac
  14125. ;;
  14126. psos*)
  14127. ;;
  14128. solaris*)
  14129. case $cc_basename in
  14130. CC* | sunCC*)
  14131. # Sun C++ 4.2, 5.x and Centerline C++
  14132. lt_prog_compiler_pic_CXX='-KPIC'
  14133. lt_prog_compiler_static_CXX='-Bstatic'
  14134. lt_prog_compiler_wl_CXX='-Qoption ld '
  14135. ;;
  14136. gcx*)
  14137. # Green Hills C++ Compiler
  14138. lt_prog_compiler_pic_CXX='-PIC'
  14139. ;;
  14140. *)
  14141. ;;
  14142. esac
  14143. ;;
  14144. sunos4*)
  14145. case $cc_basename in
  14146. CC*)
  14147. # Sun C++ 4.x
  14148. lt_prog_compiler_pic_CXX='-pic'
  14149. lt_prog_compiler_static_CXX='-Bstatic'
  14150. ;;
  14151. lcc*)
  14152. # Lucid
  14153. lt_prog_compiler_pic_CXX='-pic'
  14154. ;;
  14155. *)
  14156. ;;
  14157. esac
  14158. ;;
  14159. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14160. case $cc_basename in
  14161. CC*)
  14162. lt_prog_compiler_wl_CXX='-Wl,'
  14163. lt_prog_compiler_pic_CXX='-KPIC'
  14164. lt_prog_compiler_static_CXX='-Bstatic'
  14165. ;;
  14166. esac
  14167. ;;
  14168. tandem*)
  14169. case $cc_basename in
  14170. NCC*)
  14171. # NonStop-UX NCC 3.20
  14172. lt_prog_compiler_pic_CXX='-KPIC'
  14173. ;;
  14174. *)
  14175. ;;
  14176. esac
  14177. ;;
  14178. vxworks*)
  14179. ;;
  14180. *)
  14181. lt_prog_compiler_can_build_shared_CXX=no
  14182. ;;
  14183. esac
  14184. fi
  14185. case $host_os in
  14186. # For platforms that do not support PIC, -DPIC is meaningless:
  14187. *djgpp*)
  14188. lt_prog_compiler_pic_CXX=
  14189. ;;
  14190. *)
  14191. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14192. ;;
  14193. esac
  14194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14195. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  14196. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  14197. $as_echo_n "(cached) " >&6
  14198. else
  14199. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14200. fi
  14201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14202. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14203. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14204. #
  14205. # Check to make sure the PIC flag actually works.
  14206. #
  14207. if test -n "$lt_prog_compiler_pic_CXX"; then
  14208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14209. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14210. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  14211. $as_echo_n "(cached) " >&6
  14212. else
  14213. lt_cv_prog_compiler_pic_works_CXX=no
  14214. ac_outfile=conftest.$ac_objext
  14215. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14216. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14217. # Insert the option either (1) after the last *FLAGS variable, or
  14218. # (2) before a word containing "conftest.", or (3) at the end.
  14219. # Note that $ac_compile itself does not contain backslashes and begins
  14220. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14221. # The option is referenced via a variable to avoid confusing sed.
  14222. lt_compile=`echo "$ac_compile" | $SED \
  14223. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14224. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14225. -e 's:$: $lt_compiler_flag:'`
  14226. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14227. (eval "$lt_compile" 2>conftest.err)
  14228. ac_status=$?
  14229. cat conftest.err >&5
  14230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14231. if (exit $ac_status) && test -s "$ac_outfile"; then
  14232. # The compiler can only warn and ignore the option if not recognized
  14233. # So say no if there are warnings other than the usual output.
  14234. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14235. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14236. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14237. lt_cv_prog_compiler_pic_works_CXX=yes
  14238. fi
  14239. fi
  14240. $RM conftest*
  14241. fi
  14242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14243. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14244. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14245. case $lt_prog_compiler_pic_CXX in
  14246. "" | " "*) ;;
  14247. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14248. esac
  14249. else
  14250. lt_prog_compiler_pic_CXX=
  14251. lt_prog_compiler_can_build_shared_CXX=no
  14252. fi
  14253. fi
  14254. #
  14255. # Check to make sure the static flag actually works.
  14256. #
  14257. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14259. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14260. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  14261. $as_echo_n "(cached) " >&6
  14262. else
  14263. lt_cv_prog_compiler_static_works_CXX=no
  14264. save_LDFLAGS=$LDFLAGS
  14265. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14266. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14267. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14268. # The linker can only warn and ignore the option if not recognized
  14269. # So say no if there are warnings
  14270. if test -s conftest.err; then
  14271. # Append any errors to the config.log.
  14272. cat conftest.err 1>&5
  14273. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14274. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14275. if diff conftest.exp conftest.er2 >/dev/null; then
  14276. lt_cv_prog_compiler_static_works_CXX=yes
  14277. fi
  14278. else
  14279. lt_cv_prog_compiler_static_works_CXX=yes
  14280. fi
  14281. fi
  14282. $RM -r conftest*
  14283. LDFLAGS=$save_LDFLAGS
  14284. fi
  14285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14286. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14287. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14288. :
  14289. else
  14290. lt_prog_compiler_static_CXX=
  14291. fi
  14292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14293. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14294. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  14295. $as_echo_n "(cached) " >&6
  14296. else
  14297. lt_cv_prog_compiler_c_o_CXX=no
  14298. $RM -r conftest 2>/dev/null
  14299. mkdir conftest
  14300. cd conftest
  14301. mkdir out
  14302. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14303. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14304. # Insert the option either (1) after the last *FLAGS variable, or
  14305. # (2) before a word containing "conftest.", or (3) at the end.
  14306. # Note that $ac_compile itself does not contain backslashes and begins
  14307. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14308. lt_compile=`echo "$ac_compile" | $SED \
  14309. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14310. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14311. -e 's:$: $lt_compiler_flag:'`
  14312. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14313. (eval "$lt_compile" 2>out/conftest.err)
  14314. ac_status=$?
  14315. cat out/conftest.err >&5
  14316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14317. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14318. then
  14319. # The compiler can only warn and ignore the option if not recognized
  14320. # So say no if there are warnings
  14321. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14322. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14323. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14324. lt_cv_prog_compiler_c_o_CXX=yes
  14325. fi
  14326. fi
  14327. chmod u+w . 2>&5
  14328. $RM conftest*
  14329. # SGI C++ compiler will create directory out/ii_files/ for
  14330. # template instantiation
  14331. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14332. $RM out/* && rmdir out
  14333. cd ..
  14334. $RM -r conftest
  14335. $RM conftest*
  14336. fi
  14337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14338. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14340. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14341. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  14342. $as_echo_n "(cached) " >&6
  14343. else
  14344. lt_cv_prog_compiler_c_o_CXX=no
  14345. $RM -r conftest 2>/dev/null
  14346. mkdir conftest
  14347. cd conftest
  14348. mkdir out
  14349. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14350. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14351. # Insert the option either (1) after the last *FLAGS variable, or
  14352. # (2) before a word containing "conftest.", or (3) at the end.
  14353. # Note that $ac_compile itself does not contain backslashes and begins
  14354. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14355. lt_compile=`echo "$ac_compile" | $SED \
  14356. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14357. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14358. -e 's:$: $lt_compiler_flag:'`
  14359. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14360. (eval "$lt_compile" 2>out/conftest.err)
  14361. ac_status=$?
  14362. cat out/conftest.err >&5
  14363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14364. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14365. then
  14366. # The compiler can only warn and ignore the option if not recognized
  14367. # So say no if there are warnings
  14368. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14369. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14370. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14371. lt_cv_prog_compiler_c_o_CXX=yes
  14372. fi
  14373. fi
  14374. chmod u+w . 2>&5
  14375. $RM conftest*
  14376. # SGI C++ compiler will create directory out/ii_files/ for
  14377. # template instantiation
  14378. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14379. $RM out/* && rmdir out
  14380. cd ..
  14381. $RM -r conftest
  14382. $RM conftest*
  14383. fi
  14384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14385. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14386. hard_links=nottested
  14387. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14388. # do not overwrite the value of need_locks provided by the user
  14389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14390. $as_echo_n "checking if we can lock with hard links... " >&6; }
  14391. hard_links=yes
  14392. $RM conftest*
  14393. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14394. touch conftest.a
  14395. ln conftest.a conftest.b 2>&5 || hard_links=no
  14396. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14398. $as_echo "$hard_links" >&6; }
  14399. if test no = "$hard_links"; then
  14400. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14401. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14402. need_locks=warn
  14403. fi
  14404. else
  14405. need_locks=no
  14406. fi
  14407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14408. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14409. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14410. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14411. case $host_os in
  14412. aix[4-9]*)
  14413. # If we're using GNU nm, then we don't want the "-C" option.
  14414. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14415. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14416. # weak defined symbols like other global defined symbols, whereas
  14417. # GNU nm marks them as "W".
  14418. # While the 'weak' keyword is ignored in the Export File, we need
  14419. # it in the Import File for the 'aix-soname' feature, so we have
  14420. # to replace the "-B" option with "-P" for AIX nm.
  14421. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14422. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  14423. else
  14424. export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  14425. fi
  14426. ;;
  14427. pw32*)
  14428. export_symbols_cmds_CXX=$ltdll_cmds
  14429. ;;
  14430. cygwin* | mingw* | cegcc*)
  14431. case $cc_basename in
  14432. cl*)
  14433. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14434. ;;
  14435. *)
  14436. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  14437. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14438. ;;
  14439. esac
  14440. ;;
  14441. linux* | k*bsd*-gnu | gnu*)
  14442. link_all_deplibs_CXX=no
  14443. ;;
  14444. *)
  14445. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14446. ;;
  14447. esac
  14448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14449. $as_echo "$ld_shlibs_CXX" >&6; }
  14450. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14451. with_gnu_ld_CXX=$with_gnu_ld
  14452. #
  14453. # Do we need to explicitly link libc?
  14454. #
  14455. case "x$archive_cmds_need_lc_CXX" in
  14456. x|xyes)
  14457. # Assume -lc should be added
  14458. archive_cmds_need_lc_CXX=yes
  14459. if test yes,yes = "$GCC,$enable_shared"; then
  14460. case $archive_cmds_CXX in
  14461. *'~'*)
  14462. # FIXME: we may have to deal with multi-command sequences.
  14463. ;;
  14464. '$CC '*)
  14465. # Test whether the compiler implicitly links with -lc since on some
  14466. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14467. # to ld, don't add -lc before -lgcc.
  14468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14469. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  14470. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  14471. $as_echo_n "(cached) " >&6
  14472. else
  14473. $RM conftest*
  14474. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14475. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14476. (eval $ac_compile) 2>&5
  14477. ac_status=$?
  14478. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14479. test $ac_status = 0; } 2>conftest.err; then
  14480. soname=conftest
  14481. lib=conftest
  14482. libobjs=conftest.$ac_objext
  14483. deplibs=
  14484. wl=$lt_prog_compiler_wl_CXX
  14485. pic_flag=$lt_prog_compiler_pic_CXX
  14486. compiler_flags=-v
  14487. linker_flags=-v
  14488. verstring=
  14489. output_objdir=.
  14490. libname=conftest
  14491. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14492. allow_undefined_flag_CXX=
  14493. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14494. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14495. ac_status=$?
  14496. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14497. test $ac_status = 0; }
  14498. then
  14499. lt_cv_archive_cmds_need_lc_CXX=no
  14500. else
  14501. lt_cv_archive_cmds_need_lc_CXX=yes
  14502. fi
  14503. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14504. else
  14505. cat conftest.err 1>&5
  14506. fi
  14507. $RM conftest*
  14508. fi
  14509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14510. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14511. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14512. ;;
  14513. esac
  14514. fi
  14515. ;;
  14516. esac
  14517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14518. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  14519. library_names_spec=
  14520. libname_spec='lib$name'
  14521. soname_spec=
  14522. shrext_cmds=.so
  14523. postinstall_cmds=
  14524. postuninstall_cmds=
  14525. finish_cmds=
  14526. finish_eval=
  14527. shlibpath_var=
  14528. shlibpath_overrides_runpath=unknown
  14529. version_type=none
  14530. dynamic_linker="$host_os ld.so"
  14531. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14532. need_lib_prefix=unknown
  14533. hardcode_into_libs=no
  14534. # when you set need_version to no, make sure it does not cause -set_version
  14535. # flags to be left without arguments
  14536. need_version=unknown
  14537. case $host_os in
  14538. aix3*)
  14539. version_type=linux # correct to gnu/linux during the next big refactor
  14540. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14541. shlibpath_var=LIBPATH
  14542. # AIX 3 has no versioning support, so we append a major version to the name.
  14543. soname_spec='$libname$release$shared_ext$major'
  14544. ;;
  14545. aix[4-9]*)
  14546. version_type=linux # correct to gnu/linux during the next big refactor
  14547. need_lib_prefix=no
  14548. need_version=no
  14549. hardcode_into_libs=yes
  14550. if test ia64 = "$host_cpu"; then
  14551. # AIX 5 supports IA64
  14552. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14553. shlibpath_var=LD_LIBRARY_PATH
  14554. else
  14555. # With GCC up to 2.95.x, collect2 would create an import file
  14556. # for dependence libraries. The import file would start with
  14557. # the line '#! .'. This would cause the generated library to
  14558. # depend on '.', always an invalid library. This was fixed in
  14559. # development snapshots of GCC prior to 3.0.
  14560. case $host_os in
  14561. aix4 | aix4.[01] | aix4.[01].*)
  14562. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14563. echo ' yes '
  14564. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14565. :
  14566. else
  14567. can_build_shared=no
  14568. fi
  14569. ;;
  14570. esac
  14571. # Using Import Files as archive members, it is possible to support
  14572. # filename-based versioning of shared library archives on AIX. While
  14573. # this would work for both with and without runtime linking, it will
  14574. # prevent static linking of such archives. So we do filename-based
  14575. # shared library versioning with .so extension only, which is used
  14576. # when both runtime linking and shared linking is enabled.
  14577. # Unfortunately, runtime linking may impact performance, so we do
  14578. # not want this to be the default eventually. Also, we use the
  14579. # versioned .so libs for executables only if there is the -brtl
  14580. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14581. # To allow for filename-based versioning support, we need to create
  14582. # libNAME.so.V as an archive file, containing:
  14583. # *) an Import File, referring to the versioned filename of the
  14584. # archive as well as the shared archive member, telling the
  14585. # bitwidth (32 or 64) of that shared object, and providing the
  14586. # list of exported symbols of that shared object, eventually
  14587. # decorated with the 'weak' keyword
  14588. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14589. # it being seen by the linker.
  14590. # At run time we better use the real file rather than another symlink,
  14591. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14592. case $with_aix_soname,$aix_use_runtimelinking in
  14593. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14594. # soname into executable. Probably we can add versioning support to
  14595. # collect2, so additional links can be useful in future.
  14596. aix,yes) # traditional libtool
  14597. dynamic_linker='AIX unversionable lib.so'
  14598. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14599. # instead of lib<name>.a to let people know that these are not
  14600. # typical AIX shared libraries.
  14601. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14602. ;;
  14603. aix,no) # traditional AIX only
  14604. dynamic_linker='AIX lib.a(lib.so.V)'
  14605. # We preserve .a as extension for shared libraries through AIX4.2
  14606. # and later when we are not doing run time linking.
  14607. library_names_spec='$libname$release.a $libname.a'
  14608. soname_spec='$libname$release$shared_ext$major'
  14609. ;;
  14610. svr4,*) # full svr4 only
  14611. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14612. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14613. # We do not specify a path in Import Files, so LIBPATH fires.
  14614. shlibpath_overrides_runpath=yes
  14615. ;;
  14616. *,yes) # both, prefer svr4
  14617. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14618. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14619. # unpreferred sharedlib libNAME.a needs extra handling
  14620. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  14621. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  14622. # We do not specify a path in Import Files, so LIBPATH fires.
  14623. shlibpath_overrides_runpath=yes
  14624. ;;
  14625. *,no) # both, prefer aix
  14626. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14627. library_names_spec='$libname$release.a $libname.a'
  14628. soname_spec='$libname$release$shared_ext$major'
  14629. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14630. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  14631. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  14632. ;;
  14633. esac
  14634. shlibpath_var=LIBPATH
  14635. fi
  14636. ;;
  14637. amigaos*)
  14638. case $host_cpu in
  14639. powerpc)
  14640. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14641. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14642. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14643. ;;
  14644. m68k)
  14645. library_names_spec='$libname.ixlibrary $libname.a'
  14646. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14647. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  14648. ;;
  14649. esac
  14650. ;;
  14651. beos*)
  14652. library_names_spec='$libname$shared_ext'
  14653. dynamic_linker="$host_os ld.so"
  14654. shlibpath_var=LIBRARY_PATH
  14655. ;;
  14656. bsdi[45]*)
  14657. version_type=linux # correct to gnu/linux during the next big refactor
  14658. need_version=no
  14659. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14660. soname_spec='$libname$release$shared_ext$major'
  14661. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14662. shlibpath_var=LD_LIBRARY_PATH
  14663. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14664. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14665. # the default ld.so.conf also contains /usr/contrib/lib and
  14666. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14667. # libtool to hard-code these into programs
  14668. ;;
  14669. cygwin* | mingw* | pw32* | cegcc*)
  14670. version_type=windows
  14671. shrext_cmds=.dll
  14672. need_version=no
  14673. need_lib_prefix=no
  14674. case $GCC,$cc_basename in
  14675. yes,*)
  14676. # gcc
  14677. library_names_spec='$libname.dll.a'
  14678. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14679. postinstall_cmds='base_file=`basename \$file`~
  14680. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14681. dldir=$destdir/`dirname \$dlpath`~
  14682. test -d \$dldir || mkdir -p \$dldir~
  14683. $install_prog $dir/$dlname \$dldir/$dlname~
  14684. chmod a+x \$dldir/$dlname~
  14685. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14686. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14687. fi'
  14688. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14689. dlpath=$dir/\$dldll~
  14690. $RM \$dlpath'
  14691. shlibpath_overrides_runpath=yes
  14692. case $host_os in
  14693. cygwin*)
  14694. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14695. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14696. ;;
  14697. mingw* | cegcc*)
  14698. # MinGW DLLs use traditional 'lib' prefix
  14699. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14700. ;;
  14701. pw32*)
  14702. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14703. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14704. ;;
  14705. esac
  14706. dynamic_linker='Win32 ld.exe'
  14707. ;;
  14708. *,cl*)
  14709. # Native MSVC
  14710. libname_spec='$name'
  14711. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14712. library_names_spec='$libname.dll.lib'
  14713. case $build_os in
  14714. mingw*)
  14715. sys_lib_search_path_spec=
  14716. lt_save_ifs=$IFS
  14717. IFS=';'
  14718. for lt_path in $LIB
  14719. do
  14720. IFS=$lt_save_ifs
  14721. # Let DOS variable expansion print the short 8.3 style file name.
  14722. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14723. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14724. done
  14725. IFS=$lt_save_ifs
  14726. # Convert to MSYS style.
  14727. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14728. ;;
  14729. cygwin*)
  14730. # Convert to unix form, then to dos form, then back to unix form
  14731. # but this time dos style (no spaces!) so that the unix form looks
  14732. # like /cygdrive/c/PROGRA~1:/cygdr...
  14733. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14734. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14735. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14736. ;;
  14737. *)
  14738. sys_lib_search_path_spec=$LIB
  14739. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14740. # It is most probably a Windows format PATH.
  14741. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14742. else
  14743. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14744. fi
  14745. # FIXME: find the short name or the path components, as spaces are
  14746. # common. (e.g. "Program Files" -> "PROGRA~1")
  14747. ;;
  14748. esac
  14749. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14750. postinstall_cmds='base_file=`basename \$file`~
  14751. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14752. dldir=$destdir/`dirname \$dlpath`~
  14753. test -d \$dldir || mkdir -p \$dldir~
  14754. $install_prog $dir/$dlname \$dldir/$dlname'
  14755. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14756. dlpath=$dir/\$dldll~
  14757. $RM \$dlpath'
  14758. shlibpath_overrides_runpath=yes
  14759. dynamic_linker='Win32 link.exe'
  14760. ;;
  14761. *)
  14762. # Assume MSVC wrapper
  14763. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14764. dynamic_linker='Win32 ld.exe'
  14765. ;;
  14766. esac
  14767. # FIXME: first we should search . and the directory the executable is in
  14768. shlibpath_var=PATH
  14769. ;;
  14770. darwin* | rhapsody*)
  14771. dynamic_linker="$host_os dyld"
  14772. version_type=darwin
  14773. need_lib_prefix=no
  14774. need_version=no
  14775. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14776. soname_spec='$libname$release$major$shared_ext'
  14777. shlibpath_overrides_runpath=yes
  14778. shlibpath_var=DYLD_LIBRARY_PATH
  14779. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14780. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14781. ;;
  14782. dgux*)
  14783. version_type=linux # correct to gnu/linux during the next big refactor
  14784. need_lib_prefix=no
  14785. need_version=no
  14786. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14787. soname_spec='$libname$release$shared_ext$major'
  14788. shlibpath_var=LD_LIBRARY_PATH
  14789. ;;
  14790. freebsd* | dragonfly*)
  14791. # DragonFly does not have aout. When/if they implement a new
  14792. # versioning mechanism, adjust this.
  14793. if test -x /usr/bin/objformat; then
  14794. objformat=`/usr/bin/objformat`
  14795. else
  14796. case $host_os in
  14797. freebsd[23].*) objformat=aout ;;
  14798. *) objformat=elf ;;
  14799. esac
  14800. fi
  14801. version_type=freebsd-$objformat
  14802. case $version_type in
  14803. freebsd-elf*)
  14804. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14805. soname_spec='$libname$release$shared_ext$major'
  14806. need_version=no
  14807. need_lib_prefix=no
  14808. ;;
  14809. freebsd-*)
  14810. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14811. need_version=yes
  14812. ;;
  14813. esac
  14814. shlibpath_var=LD_LIBRARY_PATH
  14815. case $host_os in
  14816. freebsd2.*)
  14817. shlibpath_overrides_runpath=yes
  14818. ;;
  14819. freebsd3.[01]* | freebsdelf3.[01]*)
  14820. shlibpath_overrides_runpath=yes
  14821. hardcode_into_libs=yes
  14822. ;;
  14823. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14824. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14825. shlibpath_overrides_runpath=no
  14826. hardcode_into_libs=yes
  14827. ;;
  14828. *) # from 4.6 on, and DragonFly
  14829. shlibpath_overrides_runpath=yes
  14830. hardcode_into_libs=yes
  14831. ;;
  14832. esac
  14833. ;;
  14834. haiku*)
  14835. version_type=linux # correct to gnu/linux during the next big refactor
  14836. need_lib_prefix=no
  14837. need_version=no
  14838. dynamic_linker="$host_os runtime_loader"
  14839. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14840. soname_spec='$libname$release$shared_ext$major'
  14841. shlibpath_var=LIBRARY_PATH
  14842. shlibpath_overrides_runpath=no
  14843. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14844. hardcode_into_libs=yes
  14845. ;;
  14846. hpux9* | hpux10* | hpux11*)
  14847. # Give a soname corresponding to the major version so that dld.sl refuses to
  14848. # link against other versions.
  14849. version_type=sunos
  14850. need_lib_prefix=no
  14851. need_version=no
  14852. case $host_cpu in
  14853. ia64*)
  14854. shrext_cmds='.so'
  14855. hardcode_into_libs=yes
  14856. dynamic_linker="$host_os dld.so"
  14857. shlibpath_var=LD_LIBRARY_PATH
  14858. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14859. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14860. soname_spec='$libname$release$shared_ext$major'
  14861. if test 32 = "$HPUX_IA64_MODE"; then
  14862. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14863. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14864. else
  14865. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14866. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14867. fi
  14868. ;;
  14869. hppa*64*)
  14870. shrext_cmds='.sl'
  14871. hardcode_into_libs=yes
  14872. dynamic_linker="$host_os dld.sl"
  14873. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14874. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14875. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14876. soname_spec='$libname$release$shared_ext$major'
  14877. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14878. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14879. ;;
  14880. *)
  14881. shrext_cmds='.sl'
  14882. dynamic_linker="$host_os dld.sl"
  14883. shlibpath_var=SHLIB_PATH
  14884. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14885. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14886. soname_spec='$libname$release$shared_ext$major'
  14887. ;;
  14888. esac
  14889. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14890. postinstall_cmds='chmod 555 $lib'
  14891. # or fails outright, so override atomically:
  14892. install_override_mode=555
  14893. ;;
  14894. interix[3-9]*)
  14895. version_type=linux # correct to gnu/linux during the next big refactor
  14896. need_lib_prefix=no
  14897. need_version=no
  14898. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14899. soname_spec='$libname$release$shared_ext$major'
  14900. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14901. shlibpath_var=LD_LIBRARY_PATH
  14902. shlibpath_overrides_runpath=no
  14903. hardcode_into_libs=yes
  14904. ;;
  14905. irix5* | irix6* | nonstopux*)
  14906. case $host_os in
  14907. nonstopux*) version_type=nonstopux ;;
  14908. *)
  14909. if test yes = "$lt_cv_prog_gnu_ld"; then
  14910. version_type=linux # correct to gnu/linux during the next big refactor
  14911. else
  14912. version_type=irix
  14913. fi ;;
  14914. esac
  14915. need_lib_prefix=no
  14916. need_version=no
  14917. soname_spec='$libname$release$shared_ext$major'
  14918. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14919. case $host_os in
  14920. irix5* | nonstopux*)
  14921. libsuff= shlibsuff=
  14922. ;;
  14923. *)
  14924. case $LD in # libtool.m4 will add one of these switches to LD
  14925. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14926. libsuff= shlibsuff= libmagic=32-bit;;
  14927. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14928. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14929. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14930. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14931. *) libsuff= shlibsuff= libmagic=never-match;;
  14932. esac
  14933. ;;
  14934. esac
  14935. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14936. shlibpath_overrides_runpath=no
  14937. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14938. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14939. hardcode_into_libs=yes
  14940. ;;
  14941. # No shared lib support for Linux oldld, aout, or coff.
  14942. linux*oldld* | linux*aout* | linux*coff*)
  14943. dynamic_linker=no
  14944. ;;
  14945. linux*android*)
  14946. version_type=none # Android doesn't support versioned libraries.
  14947. need_lib_prefix=no
  14948. need_version=no
  14949. library_names_spec='$libname$release$shared_ext'
  14950. soname_spec='$libname$release$shared_ext'
  14951. finish_cmds=
  14952. shlibpath_var=LD_LIBRARY_PATH
  14953. shlibpath_overrides_runpath=yes
  14954. # This implies no fast_install, which is unacceptable.
  14955. # Some rework will be needed to allow for fast_install
  14956. # before this can be enabled.
  14957. hardcode_into_libs=yes
  14958. dynamic_linker='Android linker'
  14959. # Don't embed -rpath directories since the linker doesn't support them.
  14960. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14961. ;;
  14962. # This must be glibc/ELF.
  14963. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14964. version_type=linux # correct to gnu/linux during the next big refactor
  14965. need_lib_prefix=no
  14966. need_version=no
  14967. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14968. soname_spec='$libname$release$shared_ext$major'
  14969. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14970. shlibpath_var=LD_LIBRARY_PATH
  14971. shlibpath_overrides_runpath=no
  14972. # Some binutils ld are patched to set DT_RUNPATH
  14973. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  14974. $as_echo_n "(cached) " >&6
  14975. else
  14976. lt_cv_shlibpath_overrides_runpath=no
  14977. save_LDFLAGS=$LDFLAGS
  14978. save_libdir=$libdir
  14979. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14980. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14982. /* end confdefs.h. */
  14983. int
  14984. main ()
  14985. {
  14986. ;
  14987. return 0;
  14988. }
  14989. _ACEOF
  14990. if ac_fn_cxx_try_link "$LINENO"; then :
  14991. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  14992. lt_cv_shlibpath_overrides_runpath=yes
  14993. fi
  14994. fi
  14995. rm -f core conftest.err conftest.$ac_objext \
  14996. conftest$ac_exeext conftest.$ac_ext
  14997. LDFLAGS=$save_LDFLAGS
  14998. libdir=$save_libdir
  14999. fi
  15000. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  15001. # This implies no fast_install, which is unacceptable.
  15002. # Some rework will be needed to allow for fast_install
  15003. # before this can be enabled.
  15004. hardcode_into_libs=yes
  15005. # Ideally, we could use ldconfig to report *all* directores which are
  15006. # searched for libraries, however this is still not possible. Aside from not
  15007. # being certain /sbin/ldconfig is available, command
  15008. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  15009. # even though it is searched at run-time. Try to do the best guess by
  15010. # appending ld.so.conf contents (and includes) to the search path.
  15011. if test -f /etc/ld.so.conf; then
  15012. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  15013. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  15014. fi
  15015. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15016. # powerpc, because MkLinux only supported shared libraries with the
  15017. # GNU dynamic linker. Since this was broken with cross compilers,
  15018. # most powerpc-linux boxes support dynamic linking these days and
  15019. # people can always --disable-shared, the test was removed, and we
  15020. # assume the GNU/Linux dynamic linker is in use.
  15021. dynamic_linker='GNU/Linux ld.so'
  15022. ;;
  15023. netbsdelf*-gnu)
  15024. version_type=linux
  15025. need_lib_prefix=no
  15026. need_version=no
  15027. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15028. soname_spec='${libname}${release}${shared_ext}$major'
  15029. shlibpath_var=LD_LIBRARY_PATH
  15030. shlibpath_overrides_runpath=no
  15031. hardcode_into_libs=yes
  15032. dynamic_linker='NetBSD ld.elf_so'
  15033. ;;
  15034. netbsd*)
  15035. version_type=sunos
  15036. need_lib_prefix=no
  15037. need_version=no
  15038. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15039. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15040. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15041. dynamic_linker='NetBSD (a.out) ld.so'
  15042. else
  15043. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15044. soname_spec='$libname$release$shared_ext$major'
  15045. dynamic_linker='NetBSD ld.elf_so'
  15046. fi
  15047. shlibpath_var=LD_LIBRARY_PATH
  15048. shlibpath_overrides_runpath=yes
  15049. hardcode_into_libs=yes
  15050. ;;
  15051. newsos6)
  15052. version_type=linux # correct to gnu/linux during the next big refactor
  15053. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15054. shlibpath_var=LD_LIBRARY_PATH
  15055. shlibpath_overrides_runpath=yes
  15056. ;;
  15057. *nto* | *qnx*)
  15058. version_type=qnx
  15059. need_lib_prefix=no
  15060. need_version=no
  15061. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15062. soname_spec='$libname$release$shared_ext$major'
  15063. shlibpath_var=LD_LIBRARY_PATH
  15064. shlibpath_overrides_runpath=no
  15065. hardcode_into_libs=yes
  15066. dynamic_linker='ldqnx.so'
  15067. ;;
  15068. openbsd* | bitrig*)
  15069. version_type=sunos
  15070. sys_lib_dlsearch_path_spec=/usr/lib
  15071. need_lib_prefix=no
  15072. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15073. need_version=no
  15074. else
  15075. need_version=yes
  15076. fi
  15077. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15078. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15079. shlibpath_var=LD_LIBRARY_PATH
  15080. shlibpath_overrides_runpath=yes
  15081. ;;
  15082. os2*)
  15083. libname_spec='$name'
  15084. version_type=windows
  15085. shrext_cmds=.dll
  15086. need_version=no
  15087. need_lib_prefix=no
  15088. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15089. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15090. v=$($ECHO $release$versuffix | tr -d .-);
  15091. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15092. $ECHO $n$v`$shared_ext'
  15093. library_names_spec='${libname}_dll.$libext'
  15094. dynamic_linker='OS/2 ld.exe'
  15095. shlibpath_var=BEGINLIBPATH
  15096. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15097. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15098. postinstall_cmds='base_file=`basename \$file`~
  15099. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15100. dldir=$destdir/`dirname \$dlpath`~
  15101. test -d \$dldir || mkdir -p \$dldir~
  15102. $install_prog $dir/$dlname \$dldir/$dlname~
  15103. chmod a+x \$dldir/$dlname~
  15104. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15105. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15106. fi'
  15107. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15108. dlpath=$dir/\$dldll~
  15109. $RM \$dlpath'
  15110. ;;
  15111. osf3* | osf4* | osf5*)
  15112. version_type=osf
  15113. need_lib_prefix=no
  15114. need_version=no
  15115. soname_spec='$libname$release$shared_ext$major'
  15116. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15117. shlibpath_var=LD_LIBRARY_PATH
  15118. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15119. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15120. ;;
  15121. rdos*)
  15122. dynamic_linker=no
  15123. ;;
  15124. solaris*)
  15125. version_type=linux # correct to gnu/linux during the next big refactor
  15126. need_lib_prefix=no
  15127. need_version=no
  15128. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15129. soname_spec='$libname$release$shared_ext$major'
  15130. shlibpath_var=LD_LIBRARY_PATH
  15131. shlibpath_overrides_runpath=yes
  15132. hardcode_into_libs=yes
  15133. # ldd complains unless libraries are executable
  15134. postinstall_cmds='chmod +x $lib'
  15135. ;;
  15136. sunos4*)
  15137. version_type=sunos
  15138. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15139. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15140. shlibpath_var=LD_LIBRARY_PATH
  15141. shlibpath_overrides_runpath=yes
  15142. if test yes = "$with_gnu_ld"; then
  15143. need_lib_prefix=no
  15144. fi
  15145. need_version=yes
  15146. ;;
  15147. sysv4 | sysv4.3*)
  15148. version_type=linux # correct to gnu/linux during the next big refactor
  15149. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15150. soname_spec='$libname$release$shared_ext$major'
  15151. shlibpath_var=LD_LIBRARY_PATH
  15152. case $host_vendor in
  15153. sni)
  15154. shlibpath_overrides_runpath=no
  15155. need_lib_prefix=no
  15156. runpath_var=LD_RUN_PATH
  15157. ;;
  15158. siemens)
  15159. need_lib_prefix=no
  15160. ;;
  15161. motorola)
  15162. need_lib_prefix=no
  15163. need_version=no
  15164. shlibpath_overrides_runpath=no
  15165. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15166. ;;
  15167. esac
  15168. ;;
  15169. sysv4*MP*)
  15170. if test -d /usr/nec; then
  15171. version_type=linux # correct to gnu/linux during the next big refactor
  15172. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15173. soname_spec='$libname$shared_ext.$major'
  15174. shlibpath_var=LD_LIBRARY_PATH
  15175. fi
  15176. ;;
  15177. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15178. version_type=sco
  15179. need_lib_prefix=no
  15180. need_version=no
  15181. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15182. soname_spec='$libname$release$shared_ext$major'
  15183. shlibpath_var=LD_LIBRARY_PATH
  15184. shlibpath_overrides_runpath=yes
  15185. hardcode_into_libs=yes
  15186. if test yes = "$with_gnu_ld"; then
  15187. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15188. else
  15189. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15190. case $host_os in
  15191. sco3.2v5*)
  15192. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15193. ;;
  15194. esac
  15195. fi
  15196. sys_lib_dlsearch_path_spec='/usr/lib'
  15197. ;;
  15198. tpf*)
  15199. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15200. version_type=linux # correct to gnu/linux during the next big refactor
  15201. need_lib_prefix=no
  15202. need_version=no
  15203. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15204. shlibpath_var=LD_LIBRARY_PATH
  15205. shlibpath_overrides_runpath=no
  15206. hardcode_into_libs=yes
  15207. ;;
  15208. uts4*)
  15209. version_type=linux # correct to gnu/linux during the next big refactor
  15210. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15211. soname_spec='$libname$release$shared_ext$major'
  15212. shlibpath_var=LD_LIBRARY_PATH
  15213. ;;
  15214. *)
  15215. dynamic_linker=no
  15216. ;;
  15217. esac
  15218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15219. $as_echo "$dynamic_linker" >&6; }
  15220. test no = "$dynamic_linker" && can_build_shared=no
  15221. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15222. if test yes = "$GCC"; then
  15223. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15224. fi
  15225. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15226. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15227. fi
  15228. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15229. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15230. fi
  15231. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15232. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15233. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15234. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15235. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15236. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15238. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  15239. hardcode_action_CXX=
  15240. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15241. test -n "$runpath_var_CXX" ||
  15242. test yes = "$hardcode_automatic_CXX"; then
  15243. # We can hardcode non-existent directories.
  15244. if test no != "$hardcode_direct_CXX" &&
  15245. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15246. # have to relink, otherwise we might link with an installed library
  15247. # when we should be linking with a yet-to-be-installed one
  15248. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15249. test no != "$hardcode_minus_L_CXX"; then
  15250. # Linking always hardcodes the temporary library directory.
  15251. hardcode_action_CXX=relink
  15252. else
  15253. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15254. hardcode_action_CXX=immediate
  15255. fi
  15256. else
  15257. # We cannot hardcode anything, or else we can only hardcode existing
  15258. # directories.
  15259. hardcode_action_CXX=unsupported
  15260. fi
  15261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15262. $as_echo "$hardcode_action_CXX" >&6; }
  15263. if test relink = "$hardcode_action_CXX" ||
  15264. test yes = "$inherit_rpath_CXX"; then
  15265. # Fast installation is not supported
  15266. enable_fast_install=no
  15267. elif test yes = "$shlibpath_overrides_runpath" ||
  15268. test no = "$enable_shared"; then
  15269. # Fast installation is not necessary
  15270. enable_fast_install=needless
  15271. fi
  15272. fi # test -n "$compiler"
  15273. CC=$lt_save_CC
  15274. CFLAGS=$lt_save_CFLAGS
  15275. LDCXX=$LD
  15276. LD=$lt_save_LD
  15277. GCC=$lt_save_GCC
  15278. with_gnu_ld=$lt_save_with_gnu_ld
  15279. lt_cv_path_LDCXX=$lt_cv_path_LD
  15280. lt_cv_path_LD=$lt_save_path_LD
  15281. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15282. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15283. fi # test yes != "$_lt_caught_CXX_error"
  15284. ac_ext=c
  15285. ac_cpp='$CPP $CPPFLAGS'
  15286. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15287. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15288. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15289. ac_ext=c
  15290. ac_cpp='$CPP $CPPFLAGS'
  15291. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15292. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15293. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  15295. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  15296. # On Suns, sometimes $CPP names a directory.
  15297. if test -n "$CPP" && test -d "$CPP"; then
  15298. CPP=
  15299. fi
  15300. if test -z "$CPP"; then
  15301. if ${ac_cv_prog_CPP+:} false; then :
  15302. $as_echo_n "(cached) " >&6
  15303. else
  15304. # Double quotes because CPP needs to be expanded
  15305. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  15306. do
  15307. ac_preproc_ok=false
  15308. for ac_c_preproc_warn_flag in '' yes
  15309. do
  15310. # Use a header file that comes with gcc, so configuring glibc
  15311. # with a fresh cross-compiler works.
  15312. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15313. # <limits.h> exists even on freestanding compilers.
  15314. # On the NeXT, cc -E runs the code through the compiler's parser,
  15315. # not just through cpp. "Syntax error" is here to catch this case.
  15316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15317. /* end confdefs.h. */
  15318. #ifdef __STDC__
  15319. # include <limits.h>
  15320. #else
  15321. # include <assert.h>
  15322. #endif
  15323. Syntax error
  15324. _ACEOF
  15325. if ac_fn_c_try_cpp "$LINENO"; then :
  15326. else
  15327. # Broken: fails on valid input.
  15328. continue
  15329. fi
  15330. rm -f conftest.err conftest.i conftest.$ac_ext
  15331. # OK, works on sane cases. Now check whether nonexistent headers
  15332. # can be detected and how.
  15333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15334. /* end confdefs.h. */
  15335. #include <ac_nonexistent.h>
  15336. _ACEOF
  15337. if ac_fn_c_try_cpp "$LINENO"; then :
  15338. # Broken: success on invalid input.
  15339. continue
  15340. else
  15341. # Passes both tests.
  15342. ac_preproc_ok=:
  15343. break
  15344. fi
  15345. rm -f conftest.err conftest.i conftest.$ac_ext
  15346. done
  15347. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  15348. rm -f conftest.i conftest.err conftest.$ac_ext
  15349. if $ac_preproc_ok; then :
  15350. break
  15351. fi
  15352. done
  15353. ac_cv_prog_CPP=$CPP
  15354. fi
  15355. CPP=$ac_cv_prog_CPP
  15356. else
  15357. ac_cv_prog_CPP=$CPP
  15358. fi
  15359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  15360. $as_echo "$CPP" >&6; }
  15361. ac_preproc_ok=false
  15362. for ac_c_preproc_warn_flag in '' yes
  15363. do
  15364. # Use a header file that comes with gcc, so configuring glibc
  15365. # with a fresh cross-compiler works.
  15366. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15367. # <limits.h> exists even on freestanding compilers.
  15368. # On the NeXT, cc -E runs the code through the compiler's parser,
  15369. # not just through cpp. "Syntax error" is here to catch this case.
  15370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15371. /* end confdefs.h. */
  15372. #ifdef __STDC__
  15373. # include <limits.h>
  15374. #else
  15375. # include <assert.h>
  15376. #endif
  15377. Syntax error
  15378. _ACEOF
  15379. if ac_fn_c_try_cpp "$LINENO"; then :
  15380. else
  15381. # Broken: fails on valid input.
  15382. continue
  15383. fi
  15384. rm -f conftest.err conftest.i conftest.$ac_ext
  15385. # OK, works on sane cases. Now check whether nonexistent headers
  15386. # can be detected and how.
  15387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15388. /* end confdefs.h. */
  15389. #include <ac_nonexistent.h>
  15390. _ACEOF
  15391. if ac_fn_c_try_cpp "$LINENO"; then :
  15392. # Broken: success on invalid input.
  15393. continue
  15394. else
  15395. # Passes both tests.
  15396. ac_preproc_ok=:
  15397. break
  15398. fi
  15399. rm -f conftest.err conftest.i conftest.$ac_ext
  15400. done
  15401. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  15402. rm -f conftest.i conftest.err conftest.$ac_ext
  15403. if $ac_preproc_ok; then :
  15404. else
  15405. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15406. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15407. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  15408. See \`config.log' for more details" "$LINENO" 5; }
  15409. fi
  15410. ac_ext=c
  15411. ac_cpp='$CPP $CPPFLAGS'
  15412. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15413. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15414. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  15416. $as_echo_n "checking whether ln -s works... " >&6; }
  15417. LN_S=$as_ln_s
  15418. if test "$LN_S" = "ln -s"; then
  15419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15420. $as_echo "yes" >&6; }
  15421. else
  15422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  15423. $as_echo "no, using $LN_S" >&6; }
  15424. fi
  15425. for ac_prog in gawk mawk nawk awk
  15426. do
  15427. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15428. set dummy $ac_prog; ac_word=$2
  15429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15430. $as_echo_n "checking for $ac_word... " >&6; }
  15431. if ${ac_cv_prog_AWK+:} false; then :
  15432. $as_echo_n "(cached) " >&6
  15433. else
  15434. if test -n "$AWK"; then
  15435. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  15436. else
  15437. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15438. for as_dir in $PATH
  15439. do
  15440. IFS=$as_save_IFS
  15441. test -z "$as_dir" && as_dir=.
  15442. for ac_exec_ext in '' $ac_executable_extensions; do
  15443. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15444. ac_cv_prog_AWK="$ac_prog"
  15445. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15446. break 2
  15447. fi
  15448. done
  15449. done
  15450. IFS=$as_save_IFS
  15451. fi
  15452. fi
  15453. AWK=$ac_cv_prog_AWK
  15454. if test -n "$AWK"; then
  15455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  15456. $as_echo "$AWK" >&6; }
  15457. else
  15458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15459. $as_echo "no" >&6; }
  15460. fi
  15461. test -n "$AWK" && break
  15462. done
  15463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  15464. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  15465. if ${ac_cv_path_SED+:} false; then :
  15466. $as_echo_n "(cached) " >&6
  15467. else
  15468. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  15469. for ac_i in 1 2 3 4 5 6 7; do
  15470. ac_script="$ac_script$as_nl$ac_script"
  15471. done
  15472. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  15473. { ac_script=; unset ac_script;}
  15474. if test -z "$SED"; then
  15475. ac_path_SED_found=false
  15476. # Loop through the user's path and test for each of PROGNAME-LIST
  15477. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15478. for as_dir in $PATH
  15479. do
  15480. IFS=$as_save_IFS
  15481. test -z "$as_dir" && as_dir=.
  15482. for ac_prog in sed gsed; do
  15483. for ac_exec_ext in '' $ac_executable_extensions; do
  15484. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  15485. as_fn_executable_p "$ac_path_SED" || continue
  15486. # Check for GNU ac_path_SED and select it if it is found.
  15487. # Check for GNU $ac_path_SED
  15488. case `"$ac_path_SED" --version 2>&1` in
  15489. *GNU*)
  15490. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  15491. *)
  15492. ac_count=0
  15493. $as_echo_n 0123456789 >"conftest.in"
  15494. while :
  15495. do
  15496. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15497. mv "conftest.tmp" "conftest.in"
  15498. cp "conftest.in" "conftest.nl"
  15499. $as_echo '' >> "conftest.nl"
  15500. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15501. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15502. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15503. if test $ac_count -gt ${ac_path_SED_max-0}; then
  15504. # Best one so far, save it but keep looking for a better one
  15505. ac_cv_path_SED="$ac_path_SED"
  15506. ac_path_SED_max=$ac_count
  15507. fi
  15508. # 10*(2^10) chars as input seems more than enough
  15509. test $ac_count -gt 10 && break
  15510. done
  15511. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15512. esac
  15513. $ac_path_SED_found && break 3
  15514. done
  15515. done
  15516. done
  15517. IFS=$as_save_IFS
  15518. if test -z "$ac_cv_path_SED"; then
  15519. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  15520. fi
  15521. else
  15522. ac_cv_path_SED=$SED
  15523. fi
  15524. fi
  15525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  15526. $as_echo "$ac_cv_path_SED" >&6; }
  15527. SED="$ac_cv_path_SED"
  15528. rm -f conftest.sed
  15529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15530. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15531. set x ${MAKE-make}
  15532. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15533. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  15534. $as_echo_n "(cached) " >&6
  15535. else
  15536. cat >conftest.make <<\_ACEOF
  15537. SHELL = /bin/sh
  15538. all:
  15539. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15540. _ACEOF
  15541. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15542. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15543. *@@@%%%=?*=@@@%%%*)
  15544. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15545. *)
  15546. eval ac_cv_prog_make_${ac_make}_set=no;;
  15547. esac
  15548. rm -f conftest.make
  15549. fi
  15550. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15552. $as_echo "yes" >&6; }
  15553. SET_MAKE=
  15554. else
  15555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15556. $as_echo "no" >&6; }
  15557. SET_MAKE="MAKE=${MAKE-make}"
  15558. fi
  15559. # Extract the first word of "printf", so it can be a program name with args.
  15560. set dummy printf; ac_word=$2
  15561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15562. $as_echo_n "checking for $ac_word... " >&6; }
  15563. if ${ac_cv_path_PRINTF+:} false; then :
  15564. $as_echo_n "(cached) " >&6
  15565. else
  15566. case $PRINTF in
  15567. [\\/]* | ?:[\\/]*)
  15568. ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
  15569. ;;
  15570. *)
  15571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15572. for as_dir in $PATH
  15573. do
  15574. IFS=$as_save_IFS
  15575. test -z "$as_dir" && as_dir=.
  15576. for ac_exec_ext in '' $ac_executable_extensions; do
  15577. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15578. ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
  15579. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15580. break 2
  15581. fi
  15582. done
  15583. done
  15584. IFS=$as_save_IFS
  15585. ;;
  15586. esac
  15587. fi
  15588. PRINTF=$ac_cv_path_PRINTF
  15589. if test -n "$PRINTF"; then
  15590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
  15591. $as_echo "$PRINTF" >&6; }
  15592. else
  15593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15594. $as_echo "no" >&6; }
  15595. fi
  15596. # Extract the first word of "echo", so it can be a program name with args.
  15597. set dummy echo; ac_word=$2
  15598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15599. $as_echo_n "checking for $ac_word... " >&6; }
  15600. if ${ac_cv_path_ECHO+:} false; then :
  15601. $as_echo_n "(cached) " >&6
  15602. else
  15603. case $ECHO in
  15604. [\\/]* | ?:[\\/]*)
  15605. ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
  15606. ;;
  15607. *)
  15608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15609. for as_dir in $PATH
  15610. do
  15611. IFS=$as_save_IFS
  15612. test -z "$as_dir" && as_dir=.
  15613. for ac_exec_ext in '' $ac_executable_extensions; do
  15614. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15615. ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
  15616. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15617. break 2
  15618. fi
  15619. done
  15620. done
  15621. IFS=$as_save_IFS
  15622. ;;
  15623. esac
  15624. fi
  15625. ECHO=$ac_cv_path_ECHO
  15626. if test -n "$ECHO"; then
  15627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
  15628. $as_echo "$ECHO" >&6; }
  15629. else
  15630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15631. $as_echo "no" >&6; }
  15632. fi
  15633. # Extract the first word of "cut", so it can be a program name with args.
  15634. set dummy cut; ac_word=$2
  15635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15636. $as_echo_n "checking for $ac_word... " >&6; }
  15637. if ${ac_cv_path_CUT+:} false; then :
  15638. $as_echo_n "(cached) " >&6
  15639. else
  15640. case $CUT in
  15641. [\\/]* | ?:[\\/]*)
  15642. ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
  15643. ;;
  15644. *)
  15645. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15646. for as_dir in $PATH
  15647. do
  15648. IFS=$as_save_IFS
  15649. test -z "$as_dir" && as_dir=.
  15650. for ac_exec_ext in '' $ac_executable_extensions; do
  15651. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15652. ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
  15653. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15654. break 2
  15655. fi
  15656. done
  15657. done
  15658. IFS=$as_save_IFS
  15659. ;;
  15660. esac
  15661. fi
  15662. CUT=$ac_cv_path_CUT
  15663. if test -n "$CUT"; then
  15664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
  15665. $as_echo "$CUT" >&6; }
  15666. else
  15667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15668. $as_echo "no" >&6; }
  15669. fi
  15670. # Extract the first word of "autogen", so it can be a program name with args.
  15671. set dummy autogen; ac_word=$2
  15672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15673. $as_echo_n "checking for $ac_word... " >&6; }
  15674. if ${ac_cv_path_AUTOGEN+:} false; then :
  15675. $as_echo_n "(cached) " >&6
  15676. else
  15677. case $AUTOGEN in
  15678. [\\/]* | ?:[\\/]*)
  15679. ac_cv_path_AUTOGEN="$AUTOGEN" # Let the user override the test with a path.
  15680. ;;
  15681. *)
  15682. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15683. for as_dir in $PATH
  15684. do
  15685. IFS=$as_save_IFS
  15686. test -z "$as_dir" && as_dir=.
  15687. for ac_exec_ext in '' $ac_executable_extensions; do
  15688. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15689. ac_cv_path_AUTOGEN="$as_dir/$ac_word$ac_exec_ext"
  15690. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15691. break 2
  15692. fi
  15693. done
  15694. done
  15695. IFS=$as_save_IFS
  15696. ;;
  15697. esac
  15698. fi
  15699. AUTOGEN=$ac_cv_path_AUTOGEN
  15700. if test -n "$AUTOGEN"; then
  15701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOGEN" >&5
  15702. $as_echo "$AUTOGEN" >&6; }
  15703. else
  15704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15705. $as_echo "no" >&6; }
  15706. fi
  15707. # Extract the first word of "groff", so it can be a program name with args.
  15708. set dummy groff; ac_word=$2
  15709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15710. $as_echo_n "checking for $ac_word... " >&6; }
  15711. if ${ac_cv_path_GROFF+:} false; then :
  15712. $as_echo_n "(cached) " >&6
  15713. else
  15714. case $GROFF in
  15715. [\\/]* | ?:[\\/]*)
  15716. ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
  15717. ;;
  15718. *)
  15719. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15720. for as_dir in $PATH
  15721. do
  15722. IFS=$as_save_IFS
  15723. test -z "$as_dir" && as_dir=.
  15724. for ac_exec_ext in '' $ac_executable_extensions; do
  15725. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15726. ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
  15727. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15728. break 2
  15729. fi
  15730. done
  15731. done
  15732. IFS=$as_save_IFS
  15733. ;;
  15734. esac
  15735. fi
  15736. GROFF=$ac_cv_path_GROFF
  15737. if test -n "$GROFF"; then
  15738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
  15739. $as_echo "$GROFF" >&6; }
  15740. else
  15741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15742. $as_echo "no" >&6; }
  15743. fi
  15744. # Extract the first word of "depmod", so it can be a program name with args.
  15745. set dummy depmod; ac_word=$2
  15746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15747. $as_echo_n "checking for $ac_word... " >&6; }
  15748. if ${ac_cv_path_depmod+:} false; then :
  15749. $as_echo_n "(cached) " >&6
  15750. else
  15751. case $depmod in
  15752. [\\/]* | ?:[\\/]*)
  15753. ac_cv_path_depmod="$depmod" # Let the user override the test with a path.
  15754. ;;
  15755. *)
  15756. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15757. as_dummy="$PATH:/sbin"
  15758. for as_dir in $as_dummy
  15759. do
  15760. IFS=$as_save_IFS
  15761. test -z "$as_dir" && as_dir=.
  15762. for ac_exec_ext in '' $ac_executable_extensions; do
  15763. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15764. ac_cv_path_depmod="$as_dir/$ac_word$ac_exec_ext"
  15765. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15766. break 2
  15767. fi
  15768. done
  15769. done
  15770. IFS=$as_save_IFS
  15771. test -z "$ac_cv_path_depmod" && ac_cv_path_depmod="/sbin/depmod"
  15772. ;;
  15773. esac
  15774. fi
  15775. depmod=$ac_cv_path_depmod
  15776. if test -n "$depmod"; then
  15777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $depmod" >&5
  15778. $as_echo "$depmod" >&6; }
  15779. else
  15780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15781. $as_echo "no" >&6; }
  15782. fi
  15783. # Extract the first word of "insmod", so it can be a program name with args.
  15784. set dummy insmod; ac_word=$2
  15785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15786. $as_echo_n "checking for $ac_word... " >&6; }
  15787. if ${ac_cv_path_insmod+:} false; then :
  15788. $as_echo_n "(cached) " >&6
  15789. else
  15790. case $insmod in
  15791. [\\/]* | ?:[\\/]*)
  15792. ac_cv_path_insmod="$insmod" # Let the user override the test with a path.
  15793. ;;
  15794. *)
  15795. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15796. as_dummy="$PATH:/sbin"
  15797. for as_dir in $as_dummy
  15798. do
  15799. IFS=$as_save_IFS
  15800. test -z "$as_dir" && as_dir=.
  15801. for ac_exec_ext in '' $ac_executable_extensions; do
  15802. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15803. ac_cv_path_insmod="$as_dir/$ac_word$ac_exec_ext"
  15804. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15805. break 2
  15806. fi
  15807. done
  15808. done
  15809. IFS=$as_save_IFS
  15810. test -z "$ac_cv_path_insmod" && ac_cv_path_insmod="/sbin/insmod"
  15811. ;;
  15812. esac
  15813. fi
  15814. insmod=$ac_cv_path_insmod
  15815. if test -n "$insmod"; then
  15816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $insmod" >&5
  15817. $as_echo "$insmod" >&6; }
  15818. else
  15819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15820. $as_echo "no" >&6; }
  15821. fi
  15822. # Extract the first word of "rmmod", so it can be a program name with args.
  15823. set dummy rmmod; ac_word=$2
  15824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15825. $as_echo_n "checking for $ac_word... " >&6; }
  15826. if ${ac_cv_path_rmmod+:} false; then :
  15827. $as_echo_n "(cached) " >&6
  15828. else
  15829. case $rmmod in
  15830. [\\/]* | ?:[\\/]*)
  15831. ac_cv_path_rmmod="$rmmod" # Let the user override the test with a path.
  15832. ;;
  15833. *)
  15834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15835. as_dummy="$PATH:/sbin"
  15836. for as_dir in $as_dummy
  15837. do
  15838. IFS=$as_save_IFS
  15839. test -z "$as_dir" && as_dir=.
  15840. for ac_exec_ext in '' $ac_executable_extensions; do
  15841. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15842. ac_cv_path_rmmod="$as_dir/$ac_word$ac_exec_ext"
  15843. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15844. break 2
  15845. fi
  15846. done
  15847. done
  15848. IFS=$as_save_IFS
  15849. test -z "$ac_cv_path_rmmod" && ac_cv_path_rmmod="/sbin/rmmod"
  15850. ;;
  15851. esac
  15852. fi
  15853. rmmod=$ac_cv_path_rmmod
  15854. if test -n "$rmmod"; then
  15855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rmmod" >&5
  15856. $as_echo "$rmmod" >&6; }
  15857. else
  15858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15859. $as_echo "no" >&6; }
  15860. fi
  15861. case "${enable_local_libopts+set}" in
  15862. set) ;;
  15863. *) enable_local_libopts=yes ;;
  15864. esac
  15865. case "${enable_libopts_install+set}" in
  15866. set) ;;
  15867. *) enable_libopts_install=no ;;
  15868. esac
  15869. AUTOGEN_VERSION="unknown - man pages will not be built"
  15870. if test -n "${AUTOGEN}" ; then
  15871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for autogen version >= ${MAINTAINER_AUTOGEN_VERSION}" >&5
  15872. $as_echo_n "checking for autogen version >= ${MAINTAINER_AUTOGEN_VERSION}... " >&6; }
  15873. AUTOGEN_VERSION=$(${AUTOGEN} -v | ${CUT} -d' ' -f 4)
  15874. AUTOGEN_MAJOR=$(echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 1)
  15875. AUTOGEN_MINOR=$(echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 2)
  15876. AUTOGEN_BUILD=$(echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 3)
  15877. if test -z "$AUTOGEN_BUILD"; then
  15878. AUTOGEN_BUILD=0
  15879. fi
  15880. if (test ${AUTOGEN_MAJOR} -eq 5 && test ${AUTOGEN_MINOR} -eq 18 && test ${AUTOGEN_BUILD} -lt 4) ||
  15881. (test ${AUTOGEN_MAJOR} -eq 5 && test ${AUTOGEN_MINOR} -lt 18) ||
  15882. test ${AUTOGEN_MAJOR} -lt 5 ; then
  15883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15884. $as_echo "no" >&6; }
  15885. if test ! "x$enable_local_libopts" = "xyes"; then
  15886. as_fn_error $? "${AUTOGEN} is too old (${AUTOGEN_VERSION}) for building from source code. Upgrade to 5.18.4 or higher" "$LINENO" 5
  15887. fi
  15888. AUTOGEN_VERSION="${AUTOGEN_VERSION} - downlevel"
  15889. else
  15890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15891. $as_echo "yes" >&6; }
  15892. fi
  15893. if test ! -f src/tcpreplay_opts.c && test "x$enable_local_libopts" = "xyes" ; then
  15894. if test $MAINTAINER_AUTOGEN_VERSION != $AUTOGEN_VERSION ; then
  15895. as_fn_error $? "Your version of autogen ($AUTOGEN_VERSION) != libopts tear off ($MAINTAINER_AUTOGEN_VERSION) Either install the correct version or specify --disable-local-libopts" "$LINENO" 5
  15896. fi
  15897. fi
  15898. else
  15899. if test ! -f src/tcpreplay_opts.c ; then
  15900. as_fn_error $? "Please install GNU autogen $MAINTAINER_AUTOGEN_VERSION or higher if you are building from GitHub. To avoid this message download source from https://github.com/appneta/tcpreplay/releases/latest" "$LINENO" 5
  15901. fi
  15902. fi
  15903. $as_echo "#define AUTOGEN_VERSION \${AUTOGEN_VERSION}" >>confdefs.h
  15904. if test "x$enable_local_libopts" = "xyes" ; then
  15905. { $as_echo "$as_me:${as_lineno-$LINENO}: Using included libopts tearoff" >&5
  15906. $as_echo "$as_me: Using included libopts tearoff" >&6;}
  15907. else
  15908. { $as_echo "$as_me:${as_lineno-$LINENO}: Using system libopts" >&5
  15909. $as_echo "$as_me: Using system libopts" >&6;}
  15910. fi
  15911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15912. $as_echo_n "checking for egrep... " >&6; }
  15913. if ${ac_cv_path_EGREP+:} false; then :
  15914. $as_echo_n "(cached) " >&6
  15915. else
  15916. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15917. then ac_cv_path_EGREP="$GREP -E"
  15918. else
  15919. if test -z "$EGREP"; then
  15920. ac_path_EGREP_found=false
  15921. # Loop through the user's path and test for each of PROGNAME-LIST
  15922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15923. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15924. do
  15925. IFS=$as_save_IFS
  15926. test -z "$as_dir" && as_dir=.
  15927. for ac_prog in egrep; do
  15928. for ac_exec_ext in '' $ac_executable_extensions; do
  15929. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  15930. as_fn_executable_p "$ac_path_EGREP" || continue
  15931. # Check for GNU ac_path_EGREP and select it if it is found.
  15932. # Check for GNU $ac_path_EGREP
  15933. case `"$ac_path_EGREP" --version 2>&1` in
  15934. *GNU*)
  15935. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15936. *)
  15937. ac_count=0
  15938. $as_echo_n 0123456789 >"conftest.in"
  15939. while :
  15940. do
  15941. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15942. mv "conftest.tmp" "conftest.in"
  15943. cp "conftest.in" "conftest.nl"
  15944. $as_echo 'EGREP' >> "conftest.nl"
  15945. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15946. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15947. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15948. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15949. # Best one so far, save it but keep looking for a better one
  15950. ac_cv_path_EGREP="$ac_path_EGREP"
  15951. ac_path_EGREP_max=$ac_count
  15952. fi
  15953. # 10*(2^10) chars as input seems more than enough
  15954. test $ac_count -gt 10 && break
  15955. done
  15956. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15957. esac
  15958. $ac_path_EGREP_found && break 3
  15959. done
  15960. done
  15961. done
  15962. IFS=$as_save_IFS
  15963. if test -z "$ac_cv_path_EGREP"; then
  15964. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15965. fi
  15966. else
  15967. ac_cv_path_EGREP=$EGREP
  15968. fi
  15969. fi
  15970. fi
  15971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15972. $as_echo "$ac_cv_path_EGREP" >&6; }
  15973. EGREP="$ac_cv_path_EGREP"
  15974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
  15975. $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
  15976. if ${ac_cv_header_sys_types_h_makedev+:} false; then :
  15977. $as_echo_n "(cached) " >&6
  15978. else
  15979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15980. /* end confdefs.h. */
  15981. #include <sys/types.h>
  15982. int
  15983. main ()
  15984. {
  15985. return makedev(0, 0);
  15986. ;
  15987. return 0;
  15988. }
  15989. _ACEOF
  15990. if ac_fn_c_try_link "$LINENO"; then :
  15991. ac_cv_header_sys_types_h_makedev=yes
  15992. else
  15993. ac_cv_header_sys_types_h_makedev=no
  15994. fi
  15995. rm -f core conftest.err conftest.$ac_objext \
  15996. conftest$ac_exeext conftest.$ac_ext
  15997. fi
  15998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
  15999. $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
  16000. if test $ac_cv_header_sys_types_h_makedev = no; then
  16001. ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
  16002. if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
  16003. $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
  16004. fi
  16005. if test $ac_cv_header_sys_mkdev_h = no; then
  16006. ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
  16007. if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
  16008. $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
  16009. fi
  16010. fi
  16011. fi
  16012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  16013. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  16014. if ${ac_cv_header_stdbool_h+:} false; then :
  16015. $as_echo_n "(cached) " >&6
  16016. else
  16017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16018. /* end confdefs.h. */
  16019. #include <stdbool.h>
  16020. #ifndef bool
  16021. "error: bool is not defined"
  16022. #endif
  16023. #ifndef false
  16024. "error: false is not defined"
  16025. #endif
  16026. #if false
  16027. "error: false is not 0"
  16028. #endif
  16029. #ifndef true
  16030. "error: true is not defined"
  16031. #endif
  16032. #if true != 1
  16033. "error: true is not 1"
  16034. #endif
  16035. #ifndef __bool_true_false_are_defined
  16036. "error: __bool_true_false_are_defined is not defined"
  16037. #endif
  16038. struct s { _Bool s: 1; _Bool t; } s;
  16039. char a[true == 1 ? 1 : -1];
  16040. char b[false == 0 ? 1 : -1];
  16041. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  16042. char d[(bool) 0.5 == true ? 1 : -1];
  16043. /* See body of main program for 'e'. */
  16044. char f[(_Bool) 0.0 == false ? 1 : -1];
  16045. char g[true];
  16046. char h[sizeof (_Bool)];
  16047. char i[sizeof s.t];
  16048. enum { j = false, k = true, l = false * true, m = true * 256 };
  16049. /* The following fails for
  16050. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  16051. _Bool n[m];
  16052. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  16053. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  16054. /* Catch a bug in an HP-UX C compiler. See
  16055. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  16056. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  16057. */
  16058. _Bool q = true;
  16059. _Bool *pq = &q;
  16060. int
  16061. main ()
  16062. {
  16063. bool e = &s;
  16064. *pq |= q;
  16065. *pq |= ! q;
  16066. /* Refer to every declared value, to avoid compiler optimizations. */
  16067. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  16068. + !m + !n + !o + !p + !q + !pq);
  16069. ;
  16070. return 0;
  16071. }
  16072. _ACEOF
  16073. if ac_fn_c_try_compile "$LINENO"; then :
  16074. ac_cv_header_stdbool_h=yes
  16075. else
  16076. ac_cv_header_stdbool_h=no
  16077. fi
  16078. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16079. fi
  16080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  16081. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  16082. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  16083. if test "x$ac_cv_type__Bool" = xyes; then :
  16084. cat >>confdefs.h <<_ACEOF
  16085. #define HAVE__BOOL 1
  16086. _ACEOF
  16087. fi
  16088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16089. $as_echo_n "checking for inline... " >&6; }
  16090. if ${ac_cv_c_inline+:} false; then :
  16091. $as_echo_n "(cached) " >&6
  16092. else
  16093. ac_cv_c_inline=no
  16094. for ac_kw in inline __inline__ __inline; do
  16095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16096. /* end confdefs.h. */
  16097. #ifndef __cplusplus
  16098. typedef int foo_t;
  16099. static $ac_kw foo_t static_foo () {return 0; }
  16100. $ac_kw foo_t foo () {return 0; }
  16101. #endif
  16102. _ACEOF
  16103. if ac_fn_c_try_compile "$LINENO"; then :
  16104. ac_cv_c_inline=$ac_kw
  16105. fi
  16106. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16107. test "$ac_cv_c_inline" != no && break
  16108. done
  16109. fi
  16110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16111. $as_echo "$ac_cv_c_inline" >&6; }
  16112. case $ac_cv_c_inline in
  16113. inline | yes) ;;
  16114. *)
  16115. case $ac_cv_c_inline in
  16116. no) ac_val=;;
  16117. *) ac_val=$ac_cv_c_inline;;
  16118. esac
  16119. cat >>confdefs.h <<_ACEOF
  16120. #ifndef __cplusplus
  16121. #define inline $ac_val
  16122. #endif
  16123. _ACEOF
  16124. ;;
  16125. esac
  16126. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  16127. case $ac_cv_c_int16_t in #(
  16128. no|yes) ;; #(
  16129. *)
  16130. cat >>confdefs.h <<_ACEOF
  16131. #define int16_t $ac_cv_c_int16_t
  16132. _ACEOF
  16133. ;;
  16134. esac
  16135. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  16136. case $ac_cv_c_int32_t in #(
  16137. no|yes) ;; #(
  16138. *)
  16139. cat >>confdefs.h <<_ACEOF
  16140. #define int32_t $ac_cv_c_int32_t
  16141. _ACEOF
  16142. ;;
  16143. esac
  16144. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  16145. case $ac_cv_c_int64_t in #(
  16146. no|yes) ;; #(
  16147. *)
  16148. cat >>confdefs.h <<_ACEOF
  16149. #define int64_t $ac_cv_c_int64_t
  16150. _ACEOF
  16151. ;;
  16152. esac
  16153. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  16154. case $ac_cv_c_int8_t in #(
  16155. no|yes) ;; #(
  16156. *)
  16157. cat >>confdefs.h <<_ACEOF
  16158. #define int8_t $ac_cv_c_int8_t
  16159. _ACEOF
  16160. ;;
  16161. esac
  16162. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  16163. if test "x$ac_cv_type_off_t" = xyes; then :
  16164. else
  16165. cat >>confdefs.h <<_ACEOF
  16166. #define off_t long int
  16167. _ACEOF
  16168. fi
  16169. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  16170. if test "x$ac_cv_type_pid_t" = xyes; then :
  16171. else
  16172. cat >>confdefs.h <<_ACEOF
  16173. #define pid_t int
  16174. _ACEOF
  16175. fi
  16176. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16177. if test "x$ac_cv_type_size_t" = xyes; then :
  16178. else
  16179. cat >>confdefs.h <<_ACEOF
  16180. #define size_t unsigned int
  16181. _ACEOF
  16182. fi
  16183. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  16184. if test "x$ac_cv_type_ssize_t" = xyes; then :
  16185. else
  16186. cat >>confdefs.h <<_ACEOF
  16187. #define ssize_t int
  16188. _ACEOF
  16189. fi
  16190. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  16191. case $ac_cv_c_uint16_t in #(
  16192. no|yes) ;; #(
  16193. *)
  16194. cat >>confdefs.h <<_ACEOF
  16195. #define uint16_t $ac_cv_c_uint16_t
  16196. _ACEOF
  16197. ;;
  16198. esac
  16199. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  16200. case $ac_cv_c_uint32_t in #(
  16201. no|yes) ;; #(
  16202. *)
  16203. $as_echo "#define _UINT32_T 1" >>confdefs.h
  16204. cat >>confdefs.h <<_ACEOF
  16205. #define uint32_t $ac_cv_c_uint32_t
  16206. _ACEOF
  16207. ;;
  16208. esac
  16209. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  16210. case $ac_cv_c_uint64_t in #(
  16211. no|yes) ;; #(
  16212. *)
  16213. $as_echo "#define _UINT64_T 1" >>confdefs.h
  16214. cat >>confdefs.h <<_ACEOF
  16215. #define uint64_t $ac_cv_c_uint64_t
  16216. _ACEOF
  16217. ;;
  16218. esac
  16219. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  16220. case $ac_cv_c_uint8_t in #(
  16221. no|yes) ;; #(
  16222. *)
  16223. $as_echo "#define _UINT8_T 1" >>confdefs.h
  16224. cat >>confdefs.h <<_ACEOF
  16225. #define uint8_t $ac_cv_c_uint8_t
  16226. _ACEOF
  16227. ;;
  16228. esac
  16229. for ac_header in $ac_header_list
  16230. do :
  16231. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16232. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  16233. "
  16234. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16235. cat >>confdefs.h <<_ACEOF
  16236. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16237. _ACEOF
  16238. fi
  16239. done
  16240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  16241. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  16242. if ${ac_cv_c_const+:} false; then :
  16243. $as_echo_n "(cached) " >&6
  16244. else
  16245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16246. /* end confdefs.h. */
  16247. int
  16248. main ()
  16249. {
  16250. #ifndef __cplusplus
  16251. /* Ultrix mips cc rejects this sort of thing. */
  16252. typedef int charset[2];
  16253. const charset cs = { 0, 0 };
  16254. /* SunOS 4.1.1 cc rejects this. */
  16255. char const *const *pcpcc;
  16256. char **ppc;
  16257. /* NEC SVR4.0.2 mips cc rejects this. */
  16258. struct point {int x, y;};
  16259. static struct point const zero = {0,0};
  16260. /* AIX XL C 1.02.0.0 rejects this.
  16261. It does not let you subtract one const X* pointer from another in
  16262. an arm of an if-expression whose if-part is not a constant
  16263. expression */
  16264. const char *g = "string";
  16265. pcpcc = &g + (g ? g-g : 0);
  16266. /* HPUX 7.0 cc rejects these. */
  16267. ++pcpcc;
  16268. ppc = (char**) pcpcc;
  16269. pcpcc = (char const *const *) ppc;
  16270. { /* SCO 3.2v4 cc rejects this sort of thing. */
  16271. char tx;
  16272. char *t = &tx;
  16273. char const *s = 0 ? (char *) 0 : (char const *) 0;
  16274. *t++ = 0;
  16275. if (s) return 0;
  16276. }
  16277. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  16278. int x[] = {25, 17};
  16279. const int *foo = &x[0];
  16280. ++foo;
  16281. }
  16282. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  16283. typedef const int *iptr;
  16284. iptr p = 0;
  16285. ++p;
  16286. }
  16287. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  16288. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  16289. struct s { int j; const int *ap[3]; } bx;
  16290. struct s *b = &bx; b->j = 5;
  16291. }
  16292. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  16293. const int foo = 10;
  16294. if (!foo) return 0;
  16295. }
  16296. return !cs[0] && !zero.x;
  16297. #endif
  16298. ;
  16299. return 0;
  16300. }
  16301. _ACEOF
  16302. if ac_fn_c_try_compile "$LINENO"; then :
  16303. ac_cv_c_const=yes
  16304. else
  16305. ac_cv_c_const=no
  16306. fi
  16307. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16308. fi
  16309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16310. $as_echo "$ac_cv_c_const" >&6; }
  16311. if test $ac_cv_c_const = no; then
  16312. $as_echo "#define const /**/" >>confdefs.h
  16313. fi
  16314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16315. $as_echo_n "checking for inline... " >&6; }
  16316. if ${ac_cv_c_inline+:} false; then :
  16317. $as_echo_n "(cached) " >&6
  16318. else
  16319. ac_cv_c_inline=no
  16320. for ac_kw in inline __inline__ __inline; do
  16321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16322. /* end confdefs.h. */
  16323. #ifndef __cplusplus
  16324. typedef int foo_t;
  16325. static $ac_kw foo_t static_foo () {return 0; }
  16326. $ac_kw foo_t foo () {return 0; }
  16327. #endif
  16328. _ACEOF
  16329. if ac_fn_c_try_compile "$LINENO"; then :
  16330. ac_cv_c_inline=$ac_kw
  16331. fi
  16332. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16333. test "$ac_cv_c_inline" != no && break
  16334. done
  16335. fi
  16336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16337. $as_echo "$ac_cv_c_inline" >&6; }
  16338. case $ac_cv_c_inline in
  16339. inline | yes) ;;
  16340. *)
  16341. case $ac_cv_c_inline in
  16342. no) ac_val=;;
  16343. *) ac_val=$ac_cv_c_inline;;
  16344. esac
  16345. cat >>confdefs.h <<_ACEOF
  16346. #ifndef __cplusplus
  16347. #define inline $ac_val
  16348. #endif
  16349. _ACEOF
  16350. ;;
  16351. esac
  16352. # Check whether --enable-largefile was given.
  16353. if test "${enable_largefile+set}" = set; then :
  16354. enableval=$enable_largefile;
  16355. fi
  16356. if test "$enable_largefile" != no; then
  16357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  16358. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  16359. if ${ac_cv_sys_largefile_CC+:} false; then :
  16360. $as_echo_n "(cached) " >&6
  16361. else
  16362. ac_cv_sys_largefile_CC=no
  16363. if test "$GCC" != yes; then
  16364. ac_save_CC=$CC
  16365. while :; do
  16366. # IRIX 6.2 and later do not support large files by default,
  16367. # so use the C compiler's -n32 option if that helps.
  16368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16369. /* end confdefs.h. */
  16370. #include <sys/types.h>
  16371. /* Check that off_t can represent 2**63 - 1 correctly.
  16372. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16373. since some C++ compilers masquerading as C compilers
  16374. incorrectly reject 9223372036854775807. */
  16375. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16376. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16377. && LARGE_OFF_T % 2147483647 == 1)
  16378. ? 1 : -1];
  16379. int
  16380. main ()
  16381. {
  16382. ;
  16383. return 0;
  16384. }
  16385. _ACEOF
  16386. if ac_fn_c_try_compile "$LINENO"; then :
  16387. break
  16388. fi
  16389. rm -f core conftest.err conftest.$ac_objext
  16390. CC="$CC -n32"
  16391. if ac_fn_c_try_compile "$LINENO"; then :
  16392. ac_cv_sys_largefile_CC=' -n32'; break
  16393. fi
  16394. rm -f core conftest.err conftest.$ac_objext
  16395. break
  16396. done
  16397. CC=$ac_save_CC
  16398. rm -f conftest.$ac_ext
  16399. fi
  16400. fi
  16401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  16402. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  16403. if test "$ac_cv_sys_largefile_CC" != no; then
  16404. CC=$CC$ac_cv_sys_largefile_CC
  16405. fi
  16406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  16407. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  16408. if ${ac_cv_sys_file_offset_bits+:} false; then :
  16409. $as_echo_n "(cached) " >&6
  16410. else
  16411. while :; do
  16412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16413. /* end confdefs.h. */
  16414. #include <sys/types.h>
  16415. /* Check that off_t can represent 2**63 - 1 correctly.
  16416. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16417. since some C++ compilers masquerading as C compilers
  16418. incorrectly reject 9223372036854775807. */
  16419. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16420. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16421. && LARGE_OFF_T % 2147483647 == 1)
  16422. ? 1 : -1];
  16423. int
  16424. main ()
  16425. {
  16426. ;
  16427. return 0;
  16428. }
  16429. _ACEOF
  16430. if ac_fn_c_try_compile "$LINENO"; then :
  16431. ac_cv_sys_file_offset_bits=no; break
  16432. fi
  16433. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16435. /* end confdefs.h. */
  16436. #define _FILE_OFFSET_BITS 64
  16437. #include <sys/types.h>
  16438. /* Check that off_t can represent 2**63 - 1 correctly.
  16439. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16440. since some C++ compilers masquerading as C compilers
  16441. incorrectly reject 9223372036854775807. */
  16442. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16443. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16444. && LARGE_OFF_T % 2147483647 == 1)
  16445. ? 1 : -1];
  16446. int
  16447. main ()
  16448. {
  16449. ;
  16450. return 0;
  16451. }
  16452. _ACEOF
  16453. if ac_fn_c_try_compile "$LINENO"; then :
  16454. ac_cv_sys_file_offset_bits=64; break
  16455. fi
  16456. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16457. ac_cv_sys_file_offset_bits=unknown
  16458. break
  16459. done
  16460. fi
  16461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  16462. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  16463. case $ac_cv_sys_file_offset_bits in #(
  16464. no | unknown) ;;
  16465. *)
  16466. cat >>confdefs.h <<_ACEOF
  16467. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  16468. _ACEOF
  16469. ;;
  16470. esac
  16471. rm -rf conftest*
  16472. if test $ac_cv_sys_file_offset_bits = unknown; then
  16473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  16474. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  16475. if ${ac_cv_sys_large_files+:} false; then :
  16476. $as_echo_n "(cached) " >&6
  16477. else
  16478. while :; do
  16479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16480. /* end confdefs.h. */
  16481. #include <sys/types.h>
  16482. /* Check that off_t can represent 2**63 - 1 correctly.
  16483. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16484. since some C++ compilers masquerading as C compilers
  16485. incorrectly reject 9223372036854775807. */
  16486. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16487. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16488. && LARGE_OFF_T % 2147483647 == 1)
  16489. ? 1 : -1];
  16490. int
  16491. main ()
  16492. {
  16493. ;
  16494. return 0;
  16495. }
  16496. _ACEOF
  16497. if ac_fn_c_try_compile "$LINENO"; then :
  16498. ac_cv_sys_large_files=no; break
  16499. fi
  16500. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16502. /* end confdefs.h. */
  16503. #define _LARGE_FILES 1
  16504. #include <sys/types.h>
  16505. /* Check that off_t can represent 2**63 - 1 correctly.
  16506. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16507. since some C++ compilers masquerading as C compilers
  16508. incorrectly reject 9223372036854775807. */
  16509. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16510. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16511. && LARGE_OFF_T % 2147483647 == 1)
  16512. ? 1 : -1];
  16513. int
  16514. main ()
  16515. {
  16516. ;
  16517. return 0;
  16518. }
  16519. _ACEOF
  16520. if ac_fn_c_try_compile "$LINENO"; then :
  16521. ac_cv_sys_large_files=1; break
  16522. fi
  16523. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16524. ac_cv_sys_large_files=unknown
  16525. break
  16526. done
  16527. fi
  16528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  16529. $as_echo "$ac_cv_sys_large_files" >&6; }
  16530. case $ac_cv_sys_large_files in #(
  16531. no | unknown) ;;
  16532. *)
  16533. cat >>confdefs.h <<_ACEOF
  16534. #define _LARGE_FILES $ac_cv_sys_large_files
  16535. _ACEOF
  16536. ;;
  16537. esac
  16538. rm -rf conftest*
  16539. fi
  16540. fi
  16541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  16542. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  16543. if ${ac_cv_sys_largefile_source+:} false; then :
  16544. $as_echo_n "(cached) " >&6
  16545. else
  16546. while :; do
  16547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16548. /* end confdefs.h. */
  16549. #include <sys/types.h> /* for off_t */
  16550. #include <stdio.h>
  16551. int
  16552. main ()
  16553. {
  16554. int (*fp) (FILE *, off_t, int) = fseeko;
  16555. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  16556. ;
  16557. return 0;
  16558. }
  16559. _ACEOF
  16560. if ac_fn_c_try_link "$LINENO"; then :
  16561. ac_cv_sys_largefile_source=no; break
  16562. fi
  16563. rm -f core conftest.err conftest.$ac_objext \
  16564. conftest$ac_exeext conftest.$ac_ext
  16565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16566. /* end confdefs.h. */
  16567. #define _LARGEFILE_SOURCE 1
  16568. #include <sys/types.h> /* for off_t */
  16569. #include <stdio.h>
  16570. int
  16571. main ()
  16572. {
  16573. int (*fp) (FILE *, off_t, int) = fseeko;
  16574. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  16575. ;
  16576. return 0;
  16577. }
  16578. _ACEOF
  16579. if ac_fn_c_try_link "$LINENO"; then :
  16580. ac_cv_sys_largefile_source=1; break
  16581. fi
  16582. rm -f core conftest.err conftest.$ac_objext \
  16583. conftest$ac_exeext conftest.$ac_ext
  16584. ac_cv_sys_largefile_source=unknown
  16585. break
  16586. done
  16587. fi
  16588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  16589. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  16590. case $ac_cv_sys_largefile_source in #(
  16591. no | unknown) ;;
  16592. *)
  16593. cat >>confdefs.h <<_ACEOF
  16594. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  16595. _ACEOF
  16596. ;;
  16597. esac
  16598. rm -rf conftest*
  16599. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  16600. # in glibc 2.1.3, but that breaks too many other things.
  16601. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  16602. if test $ac_cv_sys_largefile_source != unknown; then
  16603. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  16604. fi
  16605. ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
  16606. if test "x$ac_cv_type_u_int8_t" = xyes; then :
  16607. else
  16608. cat >>confdefs.h <<_ACEOF
  16609. #define u_int8_t uint8_t
  16610. _ACEOF
  16611. fi
  16612. ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
  16613. if test "x$ac_cv_type_u_int16_t" = xyes; then :
  16614. else
  16615. cat >>confdefs.h <<_ACEOF
  16616. #define u_int16_t uint16_t
  16617. _ACEOF
  16618. fi
  16619. ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
  16620. if test "x$ac_cv_type_u_int32_t" = xyes; then :
  16621. else
  16622. cat >>confdefs.h <<_ACEOF
  16623. #define u_int32_t uint32_t
  16624. _ACEOF
  16625. fi
  16626. ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
  16627. if test "x$ac_cv_type_u_int64_t" = xyes; then :
  16628. else
  16629. cat >>confdefs.h <<_ACEOF
  16630. #define u_int64_t uint64_t
  16631. _ACEOF
  16632. fi
  16633. wno_format=""
  16634. wno_macro_redefined=""
  16635. case $host in
  16636. *-apple-darwin*)
  16637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-macro-redefined" >&5
  16638. $as_echo_n "checking for $CC -Wno-macro-redefined... " >&6; }
  16639. OLD_CFLAGS=$CFLAGS
  16640. CFLAGS="$CFLAGS -Wno-macro-redefined -Werror"
  16641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16642. /* end confdefs.h. */
  16643. #include <stdlib.h>
  16644. int main(int argc, char *argv[]) { return(0); }
  16645. _ACEOF
  16646. if ac_fn_c_try_compile "$LINENO"; then :
  16647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16648. $as_echo "yes" >&6; }
  16649. wno_macro_redefined="-Wno-macro-redefined"
  16650. else
  16651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16652. $as_echo "no" >&6; }
  16653. fi
  16654. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-format" >&5
  16656. $as_echo_n "checking for $CC -Wno-format... " >&6; }
  16657. CFLAGS="$OLD_CFLAGS $wno_macro_redefined"
  16658. CFLAGS="$CFLAGS -Wno-format -Werror"
  16659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16660. /* end confdefs.h. */
  16661. #include <stdlib.h>
  16662. int main(int argc, char *argv[]) { return(0); }
  16663. _ACEOF
  16664. if ac_fn_c_try_compile "$LINENO"; then :
  16665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16666. $as_echo "yes" >&6; }
  16667. wno_format="-Wno-format"
  16668. else
  16669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16670. $as_echo "no" >&6; }
  16671. fi
  16672. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16673. CFLAGS="$OLD_CFLAGS $wno_format"
  16674. ;;
  16675. esac
  16676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wextra support" >&5
  16677. $as_echo_n "checking for $CC -Wextra support... " >&6; }
  16678. OLD_CFLAGS=$CFLAGS
  16679. CFLAGS="$CFLAGS -Wextra -Werror"
  16680. wextra=""
  16681. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16682. /* end confdefs.h. */
  16683. #include <stdlib.h>
  16684. int main(int argc, char *argv[]) { return(0); }
  16685. _ACEOF
  16686. if ac_fn_c_try_compile "$LINENO"; then :
  16687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16688. $as_echo "yes" >&6; }
  16689. wextra="-Wextra"
  16690. else
  16691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16692. $as_echo "no" >&6; }
  16693. fi
  16694. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16695. CFLAGS="$OLD_CFLAGS $wextra"
  16696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-variadic-macros support" >&5
  16697. $as_echo_n "checking for $CC -Wno-variadic-macros support... " >&6; }
  16698. OLD_CFLAGS=$CFLAGS
  16699. CFLAGS="$CFLAGS -Wno-variadic-macros -Werror"
  16700. wno_variadic_macros=""
  16701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16702. /* end confdefs.h. */
  16703. #include <stdlib.h>
  16704. int main(int argc, char *argv[]) { return(0); }
  16705. _ACEOF
  16706. if ac_fn_c_try_compile "$LINENO"; then :
  16707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16708. $as_echo "yes" >&6; }
  16709. wno_variadic_macros="-Wno-variadic-macros"
  16710. else
  16711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16712. $as_echo "no" >&6; }
  16713. fi
  16714. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16715. CFLAGS="$OLD_CFLAGS $wno_variadic_macros"
  16716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wfatal-errors support" >&5
  16717. $as_echo_n "checking for $CC -Wfatal-errors support... " >&6; }
  16718. OLD_CFLAGS=$CFLAGS
  16719. CFLAGS="$CFLAGS -Wfatal-errors -Werror"
  16720. wfatal_errors=""
  16721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16722. /* end confdefs.h. */
  16723. #include <stdlib.h>
  16724. int main(int argc, char *argv[]) { return(0); }
  16725. _ACEOF
  16726. if ac_fn_c_try_compile "$LINENO"; then :
  16727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16728. $as_echo "yes" >&6; }
  16729. wfatal_errors="-Wfatal-errors"
  16730. else
  16731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16732. $as_echo "no" >&6; }
  16733. fi
  16734. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16735. CFLAGS="$OLD_CFLAGS $wfatal_errors"
  16736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-format-contains-nul support" >&5
  16737. $as_echo_n "checking for $CC -Wno-format-contains-nul support... " >&6; }
  16738. OLD_CFLAGS=$CFLAGS
  16739. CFLAGS="$CFLAGS -Wno-format-contains-nul -Werror"
  16740. wno_format_contains_nul=""
  16741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16742. /* end confdefs.h. */
  16743. #include <stdlib.h>
  16744. int main(int argc, char *argv[]) { return(0); }
  16745. _ACEOF
  16746. if ac_fn_c_try_compile "$LINENO"; then :
  16747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16748. $as_echo "yes" >&6; }
  16749. wno_format_contains_nul="-Wno-format-contains-nul"
  16750. else
  16751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16752. $as_echo "no" >&6; }
  16753. fi
  16754. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16755. CFLAGS="$OLD_CFLAGS $wno_format_contains_nul"
  16756. for ac_header in fcntl.h stddef.h sys/socket.h arpa/inet.h sys/time.h
  16757. do :
  16758. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16759. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16760. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16761. cat >>confdefs.h <<_ACEOF
  16762. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16763. _ACEOF
  16764. fi
  16765. done
  16766. for ac_header in signal.h string.h strings.h sys/types.h stdint.h sys/select.h
  16767. do :
  16768. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16769. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16770. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16771. cat >>confdefs.h <<_ACEOF
  16772. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16773. _ACEOF
  16774. fi
  16775. done
  16776. for ac_header in netinet/in.h netinet/in_systm.h poll.h sys/poll.h unistd.h sys/param.h
  16777. do :
  16778. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16779. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16780. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16781. cat >>confdefs.h <<_ACEOF
  16782. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16783. _ACEOF
  16784. fi
  16785. done
  16786. for ac_header in inttypes.h libintl.h sys/file.h sys/ioctl.h sys/systeminfo.h
  16787. do :
  16788. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16789. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16790. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16791. cat >>confdefs.h <<_ACEOF
  16792. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16793. _ACEOF
  16794. fi
  16795. done
  16796. for ac_header in sys/io.h architecture/i386/pio.h sched.h fts.h
  16797. do :
  16798. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16799. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16800. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16801. cat >>confdefs.h <<_ACEOF
  16802. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16803. _ACEOF
  16804. fi
  16805. done
  16806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  16807. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  16808. if ${ac_cv_header_stdbool_h+:} false; then :
  16809. $as_echo_n "(cached) " >&6
  16810. else
  16811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16812. /* end confdefs.h. */
  16813. #include <stdbool.h>
  16814. #ifndef bool
  16815. "error: bool is not defined"
  16816. #endif
  16817. #ifndef false
  16818. "error: false is not defined"
  16819. #endif
  16820. #if false
  16821. "error: false is not 0"
  16822. #endif
  16823. #ifndef true
  16824. "error: true is not defined"
  16825. #endif
  16826. #if true != 1
  16827. "error: true is not 1"
  16828. #endif
  16829. #ifndef __bool_true_false_are_defined
  16830. "error: __bool_true_false_are_defined is not defined"
  16831. #endif
  16832. struct s { _Bool s: 1; _Bool t; } s;
  16833. char a[true == 1 ? 1 : -1];
  16834. char b[false == 0 ? 1 : -1];
  16835. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  16836. char d[(bool) 0.5 == true ? 1 : -1];
  16837. /* See body of main program for 'e'. */
  16838. char f[(_Bool) 0.0 == false ? 1 : -1];
  16839. char g[true];
  16840. char h[sizeof (_Bool)];
  16841. char i[sizeof s.t];
  16842. enum { j = false, k = true, l = false * true, m = true * 256 };
  16843. /* The following fails for
  16844. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  16845. _Bool n[m];
  16846. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  16847. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  16848. /* Catch a bug in an HP-UX C compiler. See
  16849. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  16850. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  16851. */
  16852. _Bool q = true;
  16853. _Bool *pq = &q;
  16854. int
  16855. main ()
  16856. {
  16857. bool e = &s;
  16858. *pq |= q;
  16859. *pq |= ! q;
  16860. /* Refer to every declared value, to avoid compiler optimizations. */
  16861. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  16862. + !m + !n + !o + !p + !q + !pq);
  16863. ;
  16864. return 0;
  16865. }
  16866. _ACEOF
  16867. if ac_fn_c_try_compile "$LINENO"; then :
  16868. ac_cv_header_stdbool_h=yes
  16869. else
  16870. ac_cv_header_stdbool_h=no
  16871. fi
  16872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16873. fi
  16874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  16875. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  16876. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  16877. if test "x$ac_cv_type__Bool" = xyes; then :
  16878. cat >>confdefs.h <<_ACEOF
  16879. #define HAVE__BOOL 1
  16880. _ACEOF
  16881. fi
  16882. if test $ac_cv_header_stdbool_h = yes; then
  16883. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  16884. fi
  16885. for ac_header in sys/sysctl.h net/route.h
  16886. do :
  16887. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16888. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  16889. #if HAVE_SYS_PARAM_H
  16890. #include <sys/param.h>
  16891. #endif
  16892. #if HAVE_SYS_TYPES_H
  16893. #include <sys/types.h>
  16894. #endif
  16895. #if HAVE_SYS_SOCKET_H
  16896. #include <sys/socket.h>
  16897. #endif
  16898. "
  16899. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16900. cat >>confdefs.h <<_ACEOF
  16901. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16902. _ACEOF
  16903. fi
  16904. done
  16905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  16906. $as_echo_n "checking for socket in -lsocket... " >&6; }
  16907. if ${ac_cv_lib_socket_socket+:} false; then :
  16908. $as_echo_n "(cached) " >&6
  16909. else
  16910. ac_check_lib_save_LIBS=$LIBS
  16911. LIBS="-lsocket $LIBS"
  16912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16913. /* end confdefs.h. */
  16914. /* Override any GCC internal prototype to avoid an error.
  16915. Use char because int might match the return type of a GCC
  16916. builtin and then its argument prototype would still apply. */
  16917. #ifdef __cplusplus
  16918. extern "C"
  16919. #endif
  16920. char socket ();
  16921. int
  16922. main ()
  16923. {
  16924. return socket ();
  16925. ;
  16926. return 0;
  16927. }
  16928. _ACEOF
  16929. if ac_fn_c_try_link "$LINENO"; then :
  16930. ac_cv_lib_socket_socket=yes
  16931. else
  16932. ac_cv_lib_socket_socket=no
  16933. fi
  16934. rm -f core conftest.err conftest.$ac_objext \
  16935. conftest$ac_exeext conftest.$ac_ext
  16936. LIBS=$ac_check_lib_save_LIBS
  16937. fi
  16938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  16939. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  16940. if test "x$ac_cv_lib_socket_socket" = xyes; then :
  16941. cat >>confdefs.h <<_ACEOF
  16942. #define HAVE_LIBSOCKET 1
  16943. _ACEOF
  16944. LIBS="-lsocket $LIBS"
  16945. fi
  16946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  16947. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  16948. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  16949. $as_echo_n "(cached) " >&6
  16950. else
  16951. ac_check_lib_save_LIBS=$LIBS
  16952. LIBS="-lnsl $LIBS"
  16953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16954. /* end confdefs.h. */
  16955. /* Override any GCC internal prototype to avoid an error.
  16956. Use char because int might match the return type of a GCC
  16957. builtin and then its argument prototype would still apply. */
  16958. #ifdef __cplusplus
  16959. extern "C"
  16960. #endif
  16961. char gethostbyname ();
  16962. int
  16963. main ()
  16964. {
  16965. return gethostbyname ();
  16966. ;
  16967. return 0;
  16968. }
  16969. _ACEOF
  16970. if ac_fn_c_try_link "$LINENO"; then :
  16971. ac_cv_lib_nsl_gethostbyname=yes
  16972. else
  16973. ac_cv_lib_nsl_gethostbyname=no
  16974. fi
  16975. rm -f core conftest.err conftest.$ac_objext \
  16976. conftest$ac_exeext conftest.$ac_ext
  16977. LIBS=$ac_check_lib_save_LIBS
  16978. fi
  16979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  16980. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  16981. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  16982. cat >>confdefs.h <<_ACEOF
  16983. #define HAVE_LIBNSL 1
  16984. _ACEOF
  16985. LIBS="-lnsl $LIBS"
  16986. fi
  16987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
  16988. $as_echo_n "checking for nanosleep in -lrt... " >&6; }
  16989. if ${ac_cv_lib_rt_nanosleep+:} false; then :
  16990. $as_echo_n "(cached) " >&6
  16991. else
  16992. ac_check_lib_save_LIBS=$LIBS
  16993. LIBS="-lrt $LIBS"
  16994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16995. /* end confdefs.h. */
  16996. /* Override any GCC internal prototype to avoid an error.
  16997. Use char because int might match the return type of a GCC
  16998. builtin and then its argument prototype would still apply. */
  16999. #ifdef __cplusplus
  17000. extern "C"
  17001. #endif
  17002. char nanosleep ();
  17003. int
  17004. main ()
  17005. {
  17006. return nanosleep ();
  17007. ;
  17008. return 0;
  17009. }
  17010. _ACEOF
  17011. if ac_fn_c_try_link "$LINENO"; then :
  17012. ac_cv_lib_rt_nanosleep=yes
  17013. else
  17014. ac_cv_lib_rt_nanosleep=no
  17015. fi
  17016. rm -f core conftest.err conftest.$ac_objext \
  17017. conftest$ac_exeext conftest.$ac_ext
  17018. LIBS=$ac_check_lib_save_LIBS
  17019. fi
  17020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
  17021. $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
  17022. if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
  17023. cat >>confdefs.h <<_ACEOF
  17024. #define HAVE_LIBRT 1
  17025. _ACEOF
  17026. LIBS="-lrt $LIBS"
  17027. fi
  17028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolv in -lresolv" >&5
  17029. $as_echo_n "checking for resolv in -lresolv... " >&6; }
  17030. if ${ac_cv_lib_resolv_resolv+:} false; then :
  17031. $as_echo_n "(cached) " >&6
  17032. else
  17033. ac_check_lib_save_LIBS=$LIBS
  17034. LIBS="-lresolv $LIBS"
  17035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17036. /* end confdefs.h. */
  17037. /* Override any GCC internal prototype to avoid an error.
  17038. Use char because int might match the return type of a GCC
  17039. builtin and then its argument prototype would still apply. */
  17040. #ifdef __cplusplus
  17041. extern "C"
  17042. #endif
  17043. char resolv ();
  17044. int
  17045. main ()
  17046. {
  17047. return resolv ();
  17048. ;
  17049. return 0;
  17050. }
  17051. _ACEOF
  17052. if ac_fn_c_try_link "$LINENO"; then :
  17053. ac_cv_lib_resolv_resolv=yes
  17054. else
  17055. ac_cv_lib_resolv_resolv=no
  17056. fi
  17057. rm -f core conftest.err conftest.$ac_objext \
  17058. conftest$ac_exeext conftest.$ac_ext
  17059. LIBS=$ac_check_lib_save_LIBS
  17060. fi
  17061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_resolv" >&5
  17062. $as_echo "$ac_cv_lib_resolv_resolv" >&6; }
  17063. if test "x$ac_cv_lib_resolv_resolv" = xyes; then :
  17064. cat >>confdefs.h <<_ACEOF
  17065. #define HAVE_LIBRESOLV 1
  17066. _ACEOF
  17067. LIBS="-lresolv $LIBS"
  17068. fi
  17069. for ac_header in vfork.h
  17070. do :
  17071. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  17072. if test "x$ac_cv_header_vfork_h" = xyes; then :
  17073. cat >>confdefs.h <<_ACEOF
  17074. #define HAVE_VFORK_H 1
  17075. _ACEOF
  17076. fi
  17077. done
  17078. for ac_func in fork vfork
  17079. do :
  17080. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17081. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17082. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17083. cat >>confdefs.h <<_ACEOF
  17084. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17085. _ACEOF
  17086. fi
  17087. done
  17088. if test "x$ac_cv_func_fork" = xyes; then
  17089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  17090. $as_echo_n "checking for working fork... " >&6; }
  17091. if ${ac_cv_func_fork_works+:} false; then :
  17092. $as_echo_n "(cached) " >&6
  17093. else
  17094. if test "$cross_compiling" = yes; then :
  17095. ac_cv_func_fork_works=cross
  17096. else
  17097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17098. /* end confdefs.h. */
  17099. $ac_includes_default
  17100. int
  17101. main ()
  17102. {
  17103. /* By Ruediger Kuhlmann. */
  17104. return fork () < 0;
  17105. ;
  17106. return 0;
  17107. }
  17108. _ACEOF
  17109. if ac_fn_c_try_run "$LINENO"; then :
  17110. ac_cv_func_fork_works=yes
  17111. else
  17112. ac_cv_func_fork_works=no
  17113. fi
  17114. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17115. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17116. fi
  17117. fi
  17118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  17119. $as_echo "$ac_cv_func_fork_works" >&6; }
  17120. else
  17121. ac_cv_func_fork_works=$ac_cv_func_fork
  17122. fi
  17123. if test "x$ac_cv_func_fork_works" = xcross; then
  17124. case $host in
  17125. *-*-amigaos* | *-*-msdosdjgpp*)
  17126. # Override, as these systems have only a dummy fork() stub
  17127. ac_cv_func_fork_works=no
  17128. ;;
  17129. *)
  17130. ac_cv_func_fork_works=yes
  17131. ;;
  17132. esac
  17133. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  17134. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  17135. fi
  17136. ac_cv_func_vfork_works=$ac_cv_func_vfork
  17137. if test "x$ac_cv_func_vfork" = xyes; then
  17138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  17139. $as_echo_n "checking for working vfork... " >&6; }
  17140. if ${ac_cv_func_vfork_works+:} false; then :
  17141. $as_echo_n "(cached) " >&6
  17142. else
  17143. if test "$cross_compiling" = yes; then :
  17144. ac_cv_func_vfork_works=cross
  17145. else
  17146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17147. /* end confdefs.h. */
  17148. /* Thanks to Paul Eggert for this test. */
  17149. $ac_includes_default
  17150. #include <sys/wait.h>
  17151. #ifdef HAVE_VFORK_H
  17152. # include <vfork.h>
  17153. #endif
  17154. /* On some sparc systems, changes by the child to local and incoming
  17155. argument registers are propagated back to the parent. The compiler
  17156. is told about this with #include <vfork.h>, but some compilers
  17157. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  17158. static variable whose address is put into a register that is
  17159. clobbered by the vfork. */
  17160. static void
  17161. #ifdef __cplusplus
  17162. sparc_address_test (int arg)
  17163. # else
  17164. sparc_address_test (arg) int arg;
  17165. #endif
  17166. {
  17167. static pid_t child;
  17168. if (!child) {
  17169. child = vfork ();
  17170. if (child < 0) {
  17171. perror ("vfork");
  17172. _exit(2);
  17173. }
  17174. if (!child) {
  17175. arg = getpid();
  17176. write(-1, "", 0);
  17177. _exit (arg);
  17178. }
  17179. }
  17180. }
  17181. int
  17182. main ()
  17183. {
  17184. pid_t parent = getpid ();
  17185. pid_t child;
  17186. sparc_address_test (0);
  17187. child = vfork ();
  17188. if (child == 0) {
  17189. /* Here is another test for sparc vfork register problems. This
  17190. test uses lots of local variables, at least as many local
  17191. variables as main has allocated so far including compiler
  17192. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  17193. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  17194. reuse the register of parent for one of the local variables,
  17195. since it will think that parent can't possibly be used any more
  17196. in this routine. Assigning to the local variable will thus
  17197. munge parent in the parent process. */
  17198. pid_t
  17199. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  17200. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  17201. /* Convince the compiler that p..p7 are live; otherwise, it might
  17202. use the same hardware register for all 8 local variables. */
  17203. if (p != p1 || p != p2 || p != p3 || p != p4
  17204. || p != p5 || p != p6 || p != p7)
  17205. _exit(1);
  17206. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  17207. from child file descriptors. If the child closes a descriptor
  17208. before it execs or exits, this munges the parent's descriptor
  17209. as well. Test for this by closing stdout in the child. */
  17210. _exit(close(fileno(stdout)) != 0);
  17211. } else {
  17212. int status;
  17213. struct stat st;
  17214. while (wait(&status) != child)
  17215. ;
  17216. return (
  17217. /* Was there some problem with vforking? */
  17218. child < 0
  17219. /* Did the child fail? (This shouldn't happen.) */
  17220. || status
  17221. /* Did the vfork/compiler bug occur? */
  17222. || parent != getpid()
  17223. /* Did the file descriptor bug occur? */
  17224. || fstat(fileno(stdout), &st) != 0
  17225. );
  17226. }
  17227. }
  17228. _ACEOF
  17229. if ac_fn_c_try_run "$LINENO"; then :
  17230. ac_cv_func_vfork_works=yes
  17231. else
  17232. ac_cv_func_vfork_works=no
  17233. fi
  17234. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17235. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17236. fi
  17237. fi
  17238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  17239. $as_echo "$ac_cv_func_vfork_works" >&6; }
  17240. fi;
  17241. if test "x$ac_cv_func_fork_works" = xcross; then
  17242. ac_cv_func_vfork_works=$ac_cv_func_vfork
  17243. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  17244. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  17245. fi
  17246. if test "x$ac_cv_func_vfork_works" = xyes; then
  17247. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  17248. else
  17249. $as_echo "#define vfork fork" >>confdefs.h
  17250. fi
  17251. if test "x$ac_cv_func_fork_works" = xyes; then
  17252. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  17253. fi
  17254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  17255. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  17256. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  17257. $as_echo_n "(cached) " >&6
  17258. else
  17259. rm -f conftest.sym conftest.file
  17260. echo >conftest.file
  17261. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  17262. if test "$cross_compiling" = yes; then :
  17263. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17264. else
  17265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17266. /* end confdefs.h. */
  17267. $ac_includes_default
  17268. int
  17269. main ()
  17270. {
  17271. struct stat sbuf;
  17272. /* Linux will dereference the symlink and fail, as required by POSIX.
  17273. That is better in the sense that it means we will not
  17274. have to compile and use the lstat wrapper. */
  17275. return lstat ("conftest.sym/", &sbuf) == 0;
  17276. ;
  17277. return 0;
  17278. }
  17279. _ACEOF
  17280. if ac_fn_c_try_run "$LINENO"; then :
  17281. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  17282. else
  17283. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17284. fi
  17285. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17286. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17287. fi
  17288. else
  17289. # If the `ln -s' command failed, then we probably don't even
  17290. # have an lstat function.
  17291. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17292. fi
  17293. rm -f conftest.sym conftest.file
  17294. fi
  17295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  17296. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  17297. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  17298. cat >>confdefs.h <<_ACEOF
  17299. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  17300. _ACEOF
  17301. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  17302. case " $LIBOBJS " in
  17303. *" lstat.$ac_objext "* ) ;;
  17304. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  17305. ;;
  17306. esac
  17307. fi
  17308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  17309. $as_echo_n "checking for working memcmp... " >&6; }
  17310. if ${ac_cv_func_memcmp_working+:} false; then :
  17311. $as_echo_n "(cached) " >&6
  17312. else
  17313. if test "$cross_compiling" = yes; then :
  17314. ac_cv_func_memcmp_working=no
  17315. else
  17316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17317. /* end confdefs.h. */
  17318. $ac_includes_default
  17319. int
  17320. main ()
  17321. {
  17322. /* Some versions of memcmp are not 8-bit clean. */
  17323. char c0 = '\100', c1 = '\200', c2 = '\201';
  17324. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  17325. return 1;
  17326. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  17327. or more and with at least one buffer not starting on a 4-byte boundary.
  17328. William Lewis provided this test program. */
  17329. {
  17330. char foo[21];
  17331. char bar[21];
  17332. int i;
  17333. for (i = 0; i < 4; i++)
  17334. {
  17335. char *a = foo + i;
  17336. char *b = bar + i;
  17337. strcpy (a, "--------01111111");
  17338. strcpy (b, "--------10000000");
  17339. if (memcmp (a, b, 16) >= 0)
  17340. return 1;
  17341. }
  17342. return 0;
  17343. }
  17344. ;
  17345. return 0;
  17346. }
  17347. _ACEOF
  17348. if ac_fn_c_try_run "$LINENO"; then :
  17349. ac_cv_func_memcmp_working=yes
  17350. else
  17351. ac_cv_func_memcmp_working=no
  17352. fi
  17353. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17354. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17355. fi
  17356. fi
  17357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  17358. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  17359. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  17360. *" memcmp.$ac_objext "* ) ;;
  17361. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  17362. ;;
  17363. esac
  17364. for ac_func in vprintf
  17365. do :
  17366. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  17367. if test "x$ac_cv_func_vprintf" = xyes; then :
  17368. cat >>confdefs.h <<_ACEOF
  17369. #define HAVE_VPRINTF 1
  17370. _ACEOF
  17371. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  17372. if test "x$ac_cv_func__doprnt" = xyes; then :
  17373. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  17374. fi
  17375. fi
  17376. done
  17377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  17378. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  17379. if ${ac_cv_header_time+:} false; then :
  17380. $as_echo_n "(cached) " >&6
  17381. else
  17382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17383. /* end confdefs.h. */
  17384. #include <sys/types.h>
  17385. #include <sys/time.h>
  17386. #include <time.h>
  17387. int
  17388. main ()
  17389. {
  17390. if ((struct tm *) 0)
  17391. return 0;
  17392. ;
  17393. return 0;
  17394. }
  17395. _ACEOF
  17396. if ac_fn_c_try_compile "$LINENO"; then :
  17397. ac_cv_header_time=yes
  17398. else
  17399. ac_cv_header_time=no
  17400. fi
  17401. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17402. fi
  17403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  17404. $as_echo "$ac_cv_header_time" >&6; }
  17405. if test $ac_cv_header_time = yes; then
  17406. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  17407. fi
  17408. for ac_func in $ac_func_list
  17409. do :
  17410. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17411. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17412. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17413. cat >>confdefs.h <<_ACEOF
  17414. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17415. _ACEOF
  17416. fi
  17417. done
  17418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  17419. $as_echo_n "checking for working mktime... " >&6; }
  17420. if ${ac_cv_func_working_mktime+:} false; then :
  17421. $as_echo_n "(cached) " >&6
  17422. else
  17423. if test "$cross_compiling" = yes; then :
  17424. ac_cv_func_working_mktime=no
  17425. else
  17426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17427. /* end confdefs.h. */
  17428. /* Test program from Paul Eggert and Tony Leneis. */
  17429. #ifdef TIME_WITH_SYS_TIME
  17430. # include <sys/time.h>
  17431. # include <time.h>
  17432. #else
  17433. # ifdef HAVE_SYS_TIME_H
  17434. # include <sys/time.h>
  17435. # else
  17436. # include <time.h>
  17437. # endif
  17438. #endif
  17439. #include <limits.h>
  17440. #include <stdlib.h>
  17441. #ifdef HAVE_UNISTD_H
  17442. # include <unistd.h>
  17443. #endif
  17444. #ifndef HAVE_ALARM
  17445. # define alarm(X) /* empty */
  17446. #endif
  17447. /* Work around redefinition to rpl_putenv by other config tests. */
  17448. #undef putenv
  17449. static time_t time_t_max;
  17450. static time_t time_t_min;
  17451. /* Values we'll use to set the TZ environment variable. */
  17452. static const char *tz_strings[] = {
  17453. (const char *) 0, "TZ=GMT0", "TZ=JST-9",
  17454. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  17455. };
  17456. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  17457. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  17458. Based on a problem report from Andreas Jaeger. */
  17459. static int
  17460. spring_forward_gap ()
  17461. {
  17462. /* glibc (up to about 1998-10-07) failed this test. */
  17463. struct tm tm;
  17464. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17465. instead of "TZ=America/Vancouver" in order to detect the bug even
  17466. on systems that don't support the Olson extension, or don't have the
  17467. full zoneinfo tables installed. */
  17468. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  17469. tm.tm_year = 98;
  17470. tm.tm_mon = 3;
  17471. tm.tm_mday = 5;
  17472. tm.tm_hour = 2;
  17473. tm.tm_min = 0;
  17474. tm.tm_sec = 0;
  17475. tm.tm_isdst = -1;
  17476. return mktime (&tm) != (time_t) -1;
  17477. }
  17478. static int
  17479. mktime_test1 (time_t now)
  17480. {
  17481. struct tm *lt;
  17482. return ! (lt = localtime (&now)) || mktime (lt) == now;
  17483. }
  17484. static int
  17485. mktime_test (time_t now)
  17486. {
  17487. return (mktime_test1 (now)
  17488. && mktime_test1 ((time_t) (time_t_max - now))
  17489. && mktime_test1 ((time_t) (time_t_min + now)));
  17490. }
  17491. static int
  17492. irix_6_4_bug ()
  17493. {
  17494. /* Based on code from Ariel Faigon. */
  17495. struct tm tm;
  17496. tm.tm_year = 96;
  17497. tm.tm_mon = 3;
  17498. tm.tm_mday = 0;
  17499. tm.tm_hour = 0;
  17500. tm.tm_min = 0;
  17501. tm.tm_sec = 0;
  17502. tm.tm_isdst = -1;
  17503. mktime (&tm);
  17504. return tm.tm_mon == 2 && tm.tm_mday == 31;
  17505. }
  17506. static int
  17507. bigtime_test (int j)
  17508. {
  17509. struct tm tm;
  17510. time_t now;
  17511. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  17512. now = mktime (&tm);
  17513. if (now != (time_t) -1)
  17514. {
  17515. struct tm *lt = localtime (&now);
  17516. if (! (lt
  17517. && lt->tm_year == tm.tm_year
  17518. && lt->tm_mon == tm.tm_mon
  17519. && lt->tm_mday == tm.tm_mday
  17520. && lt->tm_hour == tm.tm_hour
  17521. && lt->tm_min == tm.tm_min
  17522. && lt->tm_sec == tm.tm_sec
  17523. && lt->tm_yday == tm.tm_yday
  17524. && lt->tm_wday == tm.tm_wday
  17525. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  17526. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  17527. return 0;
  17528. }
  17529. return 1;
  17530. }
  17531. static int
  17532. year_2050_test ()
  17533. {
  17534. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  17535. ignoring leap seconds. */
  17536. unsigned long int answer = 2527315200UL;
  17537. struct tm tm;
  17538. time_t t;
  17539. tm.tm_year = 2050 - 1900;
  17540. tm.tm_mon = 2 - 1;
  17541. tm.tm_mday = 1;
  17542. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  17543. tm.tm_isdst = -1;
  17544. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17545. instead of "TZ=America/Vancouver" in order to detect the bug even
  17546. on systems that don't support the Olson extension, or don't have the
  17547. full zoneinfo tables installed. */
  17548. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  17549. t = mktime (&tm);
  17550. /* Check that the result is either a failure, or close enough
  17551. to the correct answer that we can assume the discrepancy is
  17552. due to leap seconds. */
  17553. return (t == (time_t) -1
  17554. || (0 < t && answer - 120 <= t && t <= answer + 120));
  17555. }
  17556. int
  17557. main ()
  17558. {
  17559. time_t t, delta;
  17560. int i, j;
  17561. /* This test makes some buggy mktime implementations loop.
  17562. Give up after 60 seconds; a mktime slower than that
  17563. isn't worth using anyway. */
  17564. alarm (60);
  17565. for (;;)
  17566. {
  17567. t = (time_t_max << 1) + 1;
  17568. if (t <= time_t_max)
  17569. break;
  17570. time_t_max = t;
  17571. }
  17572. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  17573. delta = time_t_max / 997; /* a suitable prime number */
  17574. for (i = 0; i < N_STRINGS; i++)
  17575. {
  17576. if (tz_strings[i])
  17577. putenv ((char*) tz_strings[i]);
  17578. for (t = 0; t <= time_t_max - delta; t += delta)
  17579. if (! mktime_test (t))
  17580. return 1;
  17581. if (! (mktime_test ((time_t) 1)
  17582. && mktime_test ((time_t) (60 * 60))
  17583. && mktime_test ((time_t) (60 * 60 * 24))))
  17584. return 1;
  17585. for (j = 1; ; j <<= 1)
  17586. if (! bigtime_test (j))
  17587. return 1;
  17588. else if (INT_MAX / 2 < j)
  17589. break;
  17590. if (! bigtime_test (INT_MAX))
  17591. return 1;
  17592. }
  17593. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  17594. }
  17595. _ACEOF
  17596. if ac_fn_c_try_run "$LINENO"; then :
  17597. ac_cv_func_working_mktime=yes
  17598. else
  17599. ac_cv_func_working_mktime=no
  17600. fi
  17601. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17602. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17603. fi
  17604. fi
  17605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  17606. $as_echo "$ac_cv_func_working_mktime" >&6; }
  17607. if test $ac_cv_func_working_mktime = no; then
  17608. case " $LIBOBJS " in
  17609. *" mktime.$ac_objext "* ) ;;
  17610. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  17611. ;;
  17612. esac
  17613. fi
  17614. for ac_func in getpagesize
  17615. do :
  17616. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  17617. if test "x$ac_cv_func_getpagesize" = xyes; then :
  17618. cat >>confdefs.h <<_ACEOF
  17619. #define HAVE_GETPAGESIZE 1
  17620. _ACEOF
  17621. fi
  17622. done
  17623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  17624. $as_echo_n "checking for working mmap... " >&6; }
  17625. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  17626. $as_echo_n "(cached) " >&6
  17627. else
  17628. if test "$cross_compiling" = yes; then :
  17629. ac_cv_func_mmap_fixed_mapped=no
  17630. else
  17631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17632. /* end confdefs.h. */
  17633. $ac_includes_default
  17634. /* malloc might have been renamed as rpl_malloc. */
  17635. #undef malloc
  17636. /* Thanks to Mike Haertel and Jim Avera for this test.
  17637. Here is a matrix of mmap possibilities:
  17638. mmap private not fixed
  17639. mmap private fixed at somewhere currently unmapped
  17640. mmap private fixed at somewhere already mapped
  17641. mmap shared not fixed
  17642. mmap shared fixed at somewhere currently unmapped
  17643. mmap shared fixed at somewhere already mapped
  17644. For private mappings, we should verify that changes cannot be read()
  17645. back from the file, nor mmap's back from the file at a different
  17646. address. (There have been systems where private was not correctly
  17647. implemented like the infamous i386 svr4.0, and systems where the
  17648. VM page cache was not coherent with the file system buffer cache
  17649. like early versions of FreeBSD and possibly contemporary NetBSD.)
  17650. For shared mappings, we should conversely verify that changes get
  17651. propagated back to all the places they're supposed to be.
  17652. Grep wants private fixed already mapped.
  17653. The main things grep needs to know about mmap are:
  17654. * does it exist and is it safe to write into the mmap'd area
  17655. * how to use it (BSD variants) */
  17656. #include <fcntl.h>
  17657. #include <sys/mman.h>
  17658. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  17659. char *malloc ();
  17660. #endif
  17661. /* This mess was copied from the GNU getpagesize.h. */
  17662. #ifndef HAVE_GETPAGESIZE
  17663. # ifdef _SC_PAGESIZE
  17664. # define getpagesize() sysconf(_SC_PAGESIZE)
  17665. # else /* no _SC_PAGESIZE */
  17666. # ifdef HAVE_SYS_PARAM_H
  17667. # include <sys/param.h>
  17668. # ifdef EXEC_PAGESIZE
  17669. # define getpagesize() EXEC_PAGESIZE
  17670. # else /* no EXEC_PAGESIZE */
  17671. # ifdef NBPG
  17672. # define getpagesize() NBPG * CLSIZE
  17673. # ifndef CLSIZE
  17674. # define CLSIZE 1
  17675. # endif /* no CLSIZE */
  17676. # else /* no NBPG */
  17677. # ifdef NBPC
  17678. # define getpagesize() NBPC
  17679. # else /* no NBPC */
  17680. # ifdef PAGESIZE
  17681. # define getpagesize() PAGESIZE
  17682. # endif /* PAGESIZE */
  17683. # endif /* no NBPC */
  17684. # endif /* no NBPG */
  17685. # endif /* no EXEC_PAGESIZE */
  17686. # else /* no HAVE_SYS_PARAM_H */
  17687. # define getpagesize() 8192 /* punt totally */
  17688. # endif /* no HAVE_SYS_PARAM_H */
  17689. # endif /* no _SC_PAGESIZE */
  17690. #endif /* no HAVE_GETPAGESIZE */
  17691. int
  17692. main ()
  17693. {
  17694. char *data, *data2, *data3;
  17695. const char *cdata2;
  17696. int i, pagesize;
  17697. int fd, fd2;
  17698. pagesize = getpagesize ();
  17699. /* First, make a file with some known garbage in it. */
  17700. data = (char *) malloc (pagesize);
  17701. if (!data)
  17702. return 1;
  17703. for (i = 0; i < pagesize; ++i)
  17704. *(data + i) = rand ();
  17705. umask (0);
  17706. fd = creat ("conftest.mmap", 0600);
  17707. if (fd < 0)
  17708. return 2;
  17709. if (write (fd, data, pagesize) != pagesize)
  17710. return 3;
  17711. close (fd);
  17712. /* Next, check that the tail of a page is zero-filled. File must have
  17713. non-zero length, otherwise we risk SIGBUS for entire page. */
  17714. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  17715. if (fd2 < 0)
  17716. return 4;
  17717. cdata2 = "";
  17718. if (write (fd2, cdata2, 1) != 1)
  17719. return 5;
  17720. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  17721. if (data2 == MAP_FAILED)
  17722. return 6;
  17723. for (i = 0; i < pagesize; ++i)
  17724. if (*(data2 + i))
  17725. return 7;
  17726. close (fd2);
  17727. if (munmap (data2, pagesize))
  17728. return 8;
  17729. /* Next, try to mmap the file at a fixed address which already has
  17730. something else allocated at it. If we can, also make sure that
  17731. we see the same garbage. */
  17732. fd = open ("conftest.mmap", O_RDWR);
  17733. if (fd < 0)
  17734. return 9;
  17735. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  17736. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  17737. return 10;
  17738. for (i = 0; i < pagesize; ++i)
  17739. if (*(data + i) != *(data2 + i))
  17740. return 11;
  17741. /* Finally, make sure that changes to the mapped area do not
  17742. percolate back to the file as seen by read(). (This is a bug on
  17743. some variants of i386 svr4.0.) */
  17744. for (i = 0; i < pagesize; ++i)
  17745. *(data2 + i) = *(data2 + i) + 1;
  17746. data3 = (char *) malloc (pagesize);
  17747. if (!data3)
  17748. return 12;
  17749. if (read (fd, data3, pagesize) != pagesize)
  17750. return 13;
  17751. for (i = 0; i < pagesize; ++i)
  17752. if (*(data + i) != *(data3 + i))
  17753. return 14;
  17754. close (fd);
  17755. free (data);
  17756. free (data3);
  17757. return 0;
  17758. }
  17759. _ACEOF
  17760. if ac_fn_c_try_run "$LINENO"; then :
  17761. ac_cv_func_mmap_fixed_mapped=yes
  17762. else
  17763. ac_cv_func_mmap_fixed_mapped=no
  17764. fi
  17765. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17766. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17767. fi
  17768. fi
  17769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  17770. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  17771. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  17772. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  17773. fi
  17774. rm -f conftest.mmap conftest.txt
  17775. ac_fn_c_check_member "$LINENO" "struct timeval" "tv_sec" "ac_cv_member_struct_timeval_tv_sec" "$ac_includes_default"
  17776. if test "x$ac_cv_member_struct_timeval_tv_sec" = xyes; then :
  17777. cat >>confdefs.h <<_ACEOF
  17778. #define HAVE_STRUCT_TIMEVAL_TV_SEC 1
  17779. _ACEOF
  17780. fi
  17781. for ac_func in alarm atexit bzero dup2 gethostbyname getpagesize gettimeofday
  17782. do :
  17783. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17784. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17785. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17786. cat >>confdefs.h <<_ACEOF
  17787. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17788. _ACEOF
  17789. fi
  17790. done
  17791. for ac_func in ctime inet_ntoa memmove memset munmap pow putenv realpath
  17792. do :
  17793. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17794. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17795. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17796. cat >>confdefs.h <<_ACEOF
  17797. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17798. _ACEOF
  17799. fi
  17800. done
  17801. for ac_func in regcomp strdup select socket strcasecmp strchr strcspn strdup
  17802. do :
  17803. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17804. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17805. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17806. cat >>confdefs.h <<_ACEOF
  17807. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17808. _ACEOF
  17809. fi
  17810. done
  17811. for ac_func in strerror strtol strncpy strtoull poll ntohll mmap snprintf
  17812. do :
  17813. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17814. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17815. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17816. cat >>confdefs.h <<_ACEOF
  17817. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17818. _ACEOF
  17819. fi
  17820. done
  17821. for ac_func in vsnprintf strsignal strpbrk strrchr strspn strstr strtoul
  17822. do :
  17823. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17824. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17825. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17826. cat >>confdefs.h <<_ACEOF
  17827. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17828. _ACEOF
  17829. fi
  17830. done
  17831. for ac_func in ioperm
  17832. do :
  17833. ac_fn_c_check_func "$LINENO" "ioperm" "ac_cv_func_ioperm"
  17834. if test "x$ac_cv_func_ioperm" = xyes; then :
  17835. cat >>confdefs.h <<_ACEOF
  17836. #define HAVE_IOPERM 1
  17837. _ACEOF
  17838. fi
  17839. done
  17840. for ac_func in strlcpy
  17841. do :
  17842. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  17843. if test "x$ac_cv_func_strlcpy" = xyes; then :
  17844. cat >>confdefs.h <<_ACEOF
  17845. #define HAVE_STRLCPY 1
  17846. _ACEOF
  17847. have_strlcpy=true
  17848. else
  17849. have_strlcpy=false
  17850. fi
  17851. done
  17852. if test x$have_strlcpy = xtrue; then
  17853. SYSTEM_STRLCPY_TRUE=
  17854. SYSTEM_STRLCPY_FALSE='#'
  17855. else
  17856. SYSTEM_STRLCPY_TRUE='#'
  17857. SYSTEM_STRLCPY_FALSE=
  17858. fi
  17859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  17860. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  17861. if ${ac_cv_c_bigendian+:} false; then :
  17862. $as_echo_n "(cached) " >&6
  17863. else
  17864. ac_cv_c_bigendian=unknown
  17865. # See if we're dealing with a universal compiler.
  17866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17867. /* end confdefs.h. */
  17868. #ifndef __APPLE_CC__
  17869. not a universal capable compiler
  17870. #endif
  17871. typedef int dummy;
  17872. _ACEOF
  17873. if ac_fn_c_try_compile "$LINENO"; then :
  17874. # Check for potential -arch flags. It is not universal unless
  17875. # there are at least two -arch flags with different values.
  17876. ac_arch=
  17877. ac_prev=
  17878. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  17879. if test -n "$ac_prev"; then
  17880. case $ac_word in
  17881. i?86 | x86_64 | ppc | ppc64)
  17882. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  17883. ac_arch=$ac_word
  17884. else
  17885. ac_cv_c_bigendian=universal
  17886. break
  17887. fi
  17888. ;;
  17889. esac
  17890. ac_prev=
  17891. elif test "x$ac_word" = "x-arch"; then
  17892. ac_prev=arch
  17893. fi
  17894. done
  17895. fi
  17896. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17897. if test $ac_cv_c_bigendian = unknown; then
  17898. # See if sys/param.h defines the BYTE_ORDER macro.
  17899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17900. /* end confdefs.h. */
  17901. #include <sys/types.h>
  17902. #include <sys/param.h>
  17903. int
  17904. main ()
  17905. {
  17906. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  17907. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  17908. && LITTLE_ENDIAN)
  17909. bogus endian macros
  17910. #endif
  17911. ;
  17912. return 0;
  17913. }
  17914. _ACEOF
  17915. if ac_fn_c_try_compile "$LINENO"; then :
  17916. # It does; now see whether it defined to BIG_ENDIAN or not.
  17917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17918. /* end confdefs.h. */
  17919. #include <sys/types.h>
  17920. #include <sys/param.h>
  17921. int
  17922. main ()
  17923. {
  17924. #if BYTE_ORDER != BIG_ENDIAN
  17925. not big endian
  17926. #endif
  17927. ;
  17928. return 0;
  17929. }
  17930. _ACEOF
  17931. if ac_fn_c_try_compile "$LINENO"; then :
  17932. ac_cv_c_bigendian=yes
  17933. else
  17934. ac_cv_c_bigendian=no
  17935. fi
  17936. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17937. fi
  17938. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17939. fi
  17940. if test $ac_cv_c_bigendian = unknown; then
  17941. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  17942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17943. /* end confdefs.h. */
  17944. #include <limits.h>
  17945. int
  17946. main ()
  17947. {
  17948. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  17949. bogus endian macros
  17950. #endif
  17951. ;
  17952. return 0;
  17953. }
  17954. _ACEOF
  17955. if ac_fn_c_try_compile "$LINENO"; then :
  17956. # It does; now see whether it defined to _BIG_ENDIAN or not.
  17957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17958. /* end confdefs.h. */
  17959. #include <limits.h>
  17960. int
  17961. main ()
  17962. {
  17963. #ifndef _BIG_ENDIAN
  17964. not big endian
  17965. #endif
  17966. ;
  17967. return 0;
  17968. }
  17969. _ACEOF
  17970. if ac_fn_c_try_compile "$LINENO"; then :
  17971. ac_cv_c_bigendian=yes
  17972. else
  17973. ac_cv_c_bigendian=no
  17974. fi
  17975. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17976. fi
  17977. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17978. fi
  17979. if test $ac_cv_c_bigendian = unknown; then
  17980. # Compile a test program.
  17981. if test "$cross_compiling" = yes; then :
  17982. # Try to guess by grepping values from an object file.
  17983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17984. /* end confdefs.h. */
  17985. short int ascii_mm[] =
  17986. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  17987. short int ascii_ii[] =
  17988. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  17989. int use_ascii (int i) {
  17990. return ascii_mm[i] + ascii_ii[i];
  17991. }
  17992. short int ebcdic_ii[] =
  17993. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  17994. short int ebcdic_mm[] =
  17995. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  17996. int use_ebcdic (int i) {
  17997. return ebcdic_mm[i] + ebcdic_ii[i];
  17998. }
  17999. extern int foo;
  18000. int
  18001. main ()
  18002. {
  18003. return use_ascii (foo) == use_ebcdic (foo);
  18004. ;
  18005. return 0;
  18006. }
  18007. _ACEOF
  18008. if ac_fn_c_try_compile "$LINENO"; then :
  18009. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  18010. ac_cv_c_bigendian=yes
  18011. fi
  18012. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  18013. if test "$ac_cv_c_bigendian" = unknown; then
  18014. ac_cv_c_bigendian=no
  18015. else
  18016. # finding both strings is unlikely to happen, but who knows?
  18017. ac_cv_c_bigendian=unknown
  18018. fi
  18019. fi
  18020. fi
  18021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18022. else
  18023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18024. /* end confdefs.h. */
  18025. $ac_includes_default
  18026. int
  18027. main ()
  18028. {
  18029. /* Are we little or big endian? From Harbison&Steele. */
  18030. union
  18031. {
  18032. long int l;
  18033. char c[sizeof (long int)];
  18034. } u;
  18035. u.l = 1;
  18036. return u.c[sizeof (long int) - 1] == 1;
  18037. ;
  18038. return 0;
  18039. }
  18040. _ACEOF
  18041. if ac_fn_c_try_run "$LINENO"; then :
  18042. ac_cv_c_bigendian=no
  18043. else
  18044. ac_cv_c_bigendian=yes
  18045. fi
  18046. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18047. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18048. fi
  18049. fi
  18050. fi
  18051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  18052. $as_echo "$ac_cv_c_bigendian" >&6; }
  18053. case $ac_cv_c_bigendian in #(
  18054. yes)
  18055. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  18056. ;; #(
  18057. no)
  18058. ;; #(
  18059. universal)
  18060. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  18061. ;; #(
  18062. *)
  18063. as_fn_error $? "unknown endianness
  18064. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  18065. esac
  18066. if test x$ac_cv_c_bigendian = xyes ; then
  18067. WORDS_BIGENDIAN_TRUE=
  18068. WORDS_BIGENDIAN_FALSE='#'
  18069. else
  18070. WORDS_BIGENDIAN_TRUE='#'
  18071. WORDS_BIGENDIAN_FALSE=
  18072. fi
  18073. # Check whether --enable-asan was given.
  18074. if test "${enable_asan+set}" = set; then :
  18075. enableval=$enable_asan;
  18076. fi
  18077. if test "x$enable_asan" = "xyes"; then
  18078. build_asan=yes
  18079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __asan_report_error in -lasan" >&5
  18080. $as_echo_n "checking for __asan_report_error in -lasan... " >&6; }
  18081. if ${ac_cv_lib_asan___asan_report_error+:} false; then :
  18082. $as_echo_n "(cached) " >&6
  18083. else
  18084. ac_check_lib_save_LIBS=$LIBS
  18085. LIBS="-lasan $LIBS"
  18086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18087. /* end confdefs.h. */
  18088. /* Override any GCC internal prototype to avoid an error.
  18089. Use char because int might match the return type of a GCC
  18090. builtin and then its argument prototype would still apply. */
  18091. #ifdef __cplusplus
  18092. extern "C"
  18093. #endif
  18094. char __asan_report_error ();
  18095. int
  18096. main ()
  18097. {
  18098. return __asan_report_error ();
  18099. ;
  18100. return 0;
  18101. }
  18102. _ACEOF
  18103. if ac_fn_c_try_link "$LINENO"; then :
  18104. ac_cv_lib_asan___asan_report_error=yes
  18105. else
  18106. ac_cv_lib_asan___asan_report_error=no
  18107. fi
  18108. rm -f core conftest.err conftest.$ac_objext \
  18109. conftest$ac_exeext conftest.$ac_ext
  18110. LIBS=$ac_check_lib_save_LIBS
  18111. fi
  18112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asan___asan_report_error" >&5
  18113. $as_echo "$ac_cv_lib_asan___asan_report_error" >&6; }
  18114. if test "x$ac_cv_lib_asan___asan_report_error" = xyes; then :
  18115. cat >>confdefs.h <<_ACEOF
  18116. #define HAVE_LIBASAN 1
  18117. _ACEOF
  18118. LIBS="-lasan $LIBS"
  18119. else
  18120. as_fn_error $? "libasan.so not found, this is required for --enable-asan" "$LINENO" 5
  18121. fi
  18122. CFLAGS="${CFLAGS} -O1 -g -fsanitize=address -fno-omit-frame-pointer"
  18123. LDFLAGS="-lasan ${LDFLAGS}"
  18124. else
  18125. build_asan=no
  18126. fi
  18127. debug=no
  18128. debug_flag=NDEBUG
  18129. debug_run_time_flag=
  18130. # Check whether --enable-debug was given.
  18131. if test "${enable_debug+set}" = set; then :
  18132. enableval=$enable_debug; if test x$enableval = xyes; then
  18133. debug=yes
  18134. CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9s]*//g'`
  18135. CFLAGS="${CFLAGS} -g -O0 -Wall $wextra $wfatal_errors $wno_variadic_macros $wno_format_contains_nul $wno_format"
  18136. # We may also want to add:
  18137. # -Wformat-security -Wswitch-default -Wunused-paramter -Wpadded"
  18138. debug_flag=DEBUG
  18139. debug_run_time_flag=--dbug=1
  18140. $as_echo "#define DEBUG 1" >>confdefs.h
  18141. fi
  18142. fi
  18143. extra_debug=no
  18144. extra_debug_flag=NEXTRA_DBUG
  18145. # Check whether --enable-extra-debug was given.
  18146. if test "${enable_extra_debug+set}" = set; then :
  18147. enableval=$enable_extra_debug; if test x$enableval = xyes; then
  18148. extra_debug=yes
  18149. extra_debug_flag=EXTRA_DEBUG
  18150. $as_echo "#define EXTRA_DEBUG 1" >>confdefs.h
  18151. fi
  18152. fi
  18153. timestamp_trace=no
  18154. # Check whether --enable-timestamp-trace was given.
  18155. if test "${enable_timestamp_trace+set}" = set; then :
  18156. enableval=$enable_timestamp_trace; if test x$enableval = xyes; then
  18157. timestamp_trace=yes
  18158. CFLAGS="${CFLAGS} -DTIMESTAMP_TRACE"
  18159. $as_echo "#define TIMESTAMP_TRACE 1" >>confdefs.h
  18160. fi
  18161. fi
  18162. # Check whether --enable-dmalloc was given.
  18163. if test "${enable_dmalloc+set}" = set; then :
  18164. enableval=$enable_dmalloc; if test x$enableval = xyes ; then
  18165. dmalloc=yes
  18166. $as_echo "#define ENABLE_DMALLOC 1" >>confdefs.h
  18167. $as_echo "#define DMALLOC_FUNC_CHECK 1" >>confdefs.h
  18168. CFLAGS="${CFLAGS} -I/opt/local/include"
  18169. DMALLOC_LIB="/opt/local/lib/libdmalloc.a"
  18170. fi
  18171. fi
  18172. # Check whether --enable-pedantic was given.
  18173. if test "${enable_pedantic+set}" = set; then :
  18174. enableval=$enable_pedantic; if test x$enableval = xyes; then
  18175. CFLAGS="$CFLAGS -pedantic"
  18176. fi
  18177. fi
  18178. # Check whether --enable-efence was given.
  18179. if test "${enable_efence+set}" = set; then :
  18180. enableval=$enable_efence; if test x$enableval = xyes; then
  18181. CFLAGS="$CFLAGS -lefence"
  18182. $as_echo "#define EFENCE 1" >>confdefs.h
  18183. fi
  18184. fi
  18185. # Check whether --enable-gprof was given.
  18186. if test "${enable_gprof+set}" = set; then :
  18187. enableval=$enable_gprof; if test x$enableval = xyes; then
  18188. if test $debug = yes; then
  18189. CFLAGS="$CFLAGS -pg"
  18190. else
  18191. # GPROF requires gdb
  18192. CFLAGS="$CFLAGS -ggdb -pg -fprofile-arcs"
  18193. fi
  18194. $as_echo "#define GPROF 1" >>confdefs.h
  18195. fi
  18196. fi
  18197. enable_pcap_config=no
  18198. # Check whether --enable-pcapconfig was given.
  18199. if test "${enable_pcapconfig+set}" = set; then :
  18200. enableval=$enable_pcapconfig;
  18201. if test $enableval = yes; then
  18202. enable_pcap_config=yes
  18203. { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling libpcap discovery via pcap_config" >&5
  18204. $as_echo "$as_me: Enabling libpcap discovery via pcap_config" >&6;}
  18205. else
  18206. enable_pcap_config=no
  18207. { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling libpcap discovery via pcap_config" >&5
  18208. $as_echo "$as_me: Disabling libpcap discovery via pcap_config" >&6;}
  18209. fi
  18210. else
  18211. { $as_echo "$as_me:${as_lineno-$LINENO}: Bypassing libpcap discovery via pcap_config" >&5
  18212. $as_echo "$as_me: Bypassing libpcap discovery via pcap_config" >&6;}
  18213. fi
  18214. use64bit_counters=yes
  18215. # Check whether --enable-64bits was given.
  18216. if test "${enable_64bits+set}" = set; then :
  18217. enableval=$enable_64bits;
  18218. { $as_echo "$as_me:${as_lineno-$LINENO}: Using u_int32_t for packet counters" >&5
  18219. $as_echo "$as_me: Using u_int32_t for packet counters" >&6;}
  18220. else
  18221. $as_echo "#define ENABLE_64BITS 1" >>confdefs.h
  18222. { $as_echo "$as_me:${as_lineno-$LINENO}: Using u_int64_t for packet counters" >&5
  18223. $as_echo "$as_me: Using u_int64_t for packet counters" >&6;}
  18224. fi
  18225. # If we're running gcc add '-D_U_="__attribute__((unused))"' to CFLAGS as well,
  18226. # so we can use _U_ to flag unused function arguments and not get warnings
  18227. # about them. Otherwise, add '-D_U_=""', so that _U_ used to flag an unused
  18228. # function argument will compile with non-GCC compilers.
  18229. #
  18230. if test "x$GCC" = "xyes" ; then
  18231. CFLAGS="-D_U_=\"__attribute__((unused))\" $CFLAGS"
  18232. else
  18233. CFLAGS="-D_U_=\"\" $CFLAGS"
  18234. fi
  18235. # Check whether --enable-force-bpf was given.
  18236. if test "${enable_force_bpf+set}" = set; then :
  18237. enableval=$enable_force_bpf;
  18238. $as_echo "#define FORCE_INJECT_BPF 1" >>confdefs.h
  18239. fi
  18240. # Check whether --enable-force-pf was given.
  18241. if test "${enable_force_pf+set}" = set; then :
  18242. enableval=$enable_force_pf;
  18243. $as_echo "#define FORCE_INJECT_PF 1" >>confdefs.h
  18244. fi
  18245. # Check whether --enable-force-libdnet was given.
  18246. if test "${enable_force_libdnet+set}" = set; then :
  18247. enableval=$enable_force_libdnet;
  18248. $as_echo "#define FORCE_INJECT_LIBDNET 1" >>confdefs.h
  18249. fi
  18250. # Check whether --enable-force-inject was given.
  18251. if test "${enable_force_inject+set}" = set; then :
  18252. enableval=$enable_force_inject;
  18253. $as_echo "#define FORCE_INJECT_PCAP_INJECT 1" >>confdefs.h
  18254. fi
  18255. # Check whether --enable-force-sendpacket was given.
  18256. if test "${enable_force_sendpacket+set}" = set; then :
  18257. enableval=$enable_force_sendpacket;
  18258. $as_echo "#define FORCE_INJECT_PCAP_SENDPACKET 1" >>confdefs.h
  18259. fi
  18260. static_link=no
  18261. dynamic_link=yes
  18262. # Check whether --enable-static-link was given.
  18263. if test "${enable_static_link+set}" = set; then :
  18264. enableval=$enable_static_link;
  18265. if test $enableval = yes; then
  18266. static_link=yes
  18267. dynamic_link=no
  18268. fi
  18269. fi
  18270. # Check whether --enable-dynamic-link was given.
  18271. if test "${enable_dynamic_link+set}" = set; then :
  18272. enableval=$enable_dynamic_link;
  18273. if test $enableval = no; then
  18274. dynamic_link=no
  18275. static_link=yes
  18276. elif test $static_link = yes; then
  18277. as_fn_error $? "Cannot specify both --enable-dynamic-link and --enable-static-link" "$LINENO" 5
  18278. fi
  18279. fi
  18280. if test $static_link = yes; then
  18281. $as_echo "#define ENABLE_STATIC_LINK 1" >>confdefs.h
  18282. else
  18283. $as_echo "#define ENABLE_DYNAMIC_LINK 1" >>confdefs.h
  18284. fi
  18285. ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
  18286. if test "x$ac_cv_func_inet_aton" = xyes; then :
  18287. $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
  18288. inet_aton=yes
  18289. else
  18290. inet_aton=no
  18291. fi
  18292. ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
  18293. if test "x$ac_cv_func_inet_pton" = xyes; then :
  18294. $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
  18295. inet_pton=yes
  18296. else
  18297. inet_pton=no
  18298. fi
  18299. ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
  18300. if test "x$ac_cv_func_inet_ntop" = xyes; then :
  18301. $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
  18302. inet_ntop=yes
  18303. else
  18304. inet_ntop=no
  18305. fi
  18306. if test "$inet_ntop" = "no" -a "$inet_pton" = "no" ; then
  18307. as_fn_error $? "We need either inet_ntop or inet_pton" "$LINENO" 5
  18308. fi
  18309. ac_fn_c_check_func "$LINENO" "inet_addr" "ac_cv_func_inet_addr"
  18310. if test "x$ac_cv_func_inet_addr" = xyes; then :
  18311. $as_echo "#define HAVE_INET_ADDR 1" >>confdefs.h
  18312. inet_addr=yes
  18313. else
  18314. inet_addr=no
  18315. fi
  18316. if test x$inet_addr = no ; then
  18317. as_fn_error $? "We need inet_addr. See bug 26" "$LINENO" 5
  18318. fi
  18319. have_tuntap=no
  18320. # Check whether --enable-tuntap was given.
  18321. if test "${enable_tuntap+set}" = set; then :
  18322. enableval=$enable_tuntap; :
  18323. else
  18324. case "$build_os" in
  18325. linux*)
  18326. ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default"
  18327. if test "x$ac_cv_header_linux_if_tun_h" = xyes; then :
  18328. have_tuntap=yes
  18329. fi
  18330. ;;
  18331. *)
  18332. ac_fn_c_check_header_mongrel "$LINENO" "net/if_tun.h" "ac_cv_header_net_if_tun_h" "$ac_includes_default"
  18333. if test "x$ac_cv_header_net_if_tun_h" = xyes; then :
  18334. have_tuntap=yes
  18335. fi
  18336. ;;
  18337. esac
  18338. fi
  18339. if test $have_tuntap = yes ; then
  18340. $as_echo "#define HAVE_TUNTAP 1" >>confdefs.h
  18341. fi
  18342. foundpcap=no
  18343. pf_ring_found=no
  18344. pf_ring_lib=${with_pfring_lib}
  18345. using_pcap_config=no
  18346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcap" >&5
  18347. $as_echo_n "checking for libpcap... " >&6; }
  18348. # Check whether --with-libpcap was given.
  18349. if test "${with_libpcap+set}" = set; then :
  18350. withval=$with_libpcap;
  18351. testdir=$withval
  18352. for incl in ${testdir}/include/pcap.h ${testdir}/pcap.h ${testdir}/pcap/pcap.h; do
  18353. if ! test -f "${incl}"; then
  18354. continue
  18355. fi
  18356. LPCAPINC=${incl}
  18357. LPCAPINCDIR=${testdir}
  18358. if test $dynamic_link = yes; then
  18359. for ext in .dylib .so .tbd ; do
  18360. for dir in . lib lib64 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
  18361. sharefile=$(ls ${testdir}/$dir/libpcap${ext}* 2> /dev/null | sort | head -n1)
  18362. if test -n "${sharefile}"; then
  18363. LPCAPLIB="-L$(dirname ${sharefile}) -lpcap"
  18364. foundpcap=$testdir
  18365. break
  18366. fi
  18367. done
  18368. if ! test $foundpcap = no; then
  18369. break
  18370. fi
  18371. done
  18372. else
  18373. for ext in ${libext} .a .A.tbd ; do
  18374. for dir in . lib lib64 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
  18375. staticfile=$(ls ${testdir}/$dir/libpcap${ext} 2> /dev/null | sort | head -n1)
  18376. if test -n "${staticfile}"; then
  18377. LPCAPLIB="${staticfile}"
  18378. foundpcap=${testdir}
  18379. break
  18380. fi
  18381. done
  18382. if ! test $foundpcap = no; then
  18383. ## could be PF_RING
  18384. #
  18385. # library is static and in PF_RING build tree
  18386. #
  18387. # Need access to libpfring library
  18388. # and must find an associated libpfring.a
  18389. if test -n "${with_pfring_lib}"; then
  18390. if test -f ${with_pfring_lib}; then
  18391. pf_ring_lib=${with_pfring_lib}
  18392. pf_ring_found=yes
  18393. else
  18394. as_fn_error $? "\"Unable to find PF_RING library ${with_pfring_lib}\"" "$LINENO" 5
  18395. fi
  18396. else
  18397. ## search locally for most likely PF_RING library
  18398. for lib in ${foundpcap}/../lib/libs/libpfring_zc_${host_cpu}.a \
  18399. ${foundpcap}/../lib/libs/libpfring_dna_${host_cpu}.a \
  18400. ${foundpcap}/../lib/libs/libpfring_zero_${host_cpu}.a \
  18401. ${foundpcap}/../lib/libs/libpfring_nt_${host_cpu}.a \
  18402. ${foundpcap}/../lib/libpfring.a; do
  18403. if test -f "${lib}"; then
  18404. pf_ring_lib=${lib}
  18405. pf_ring_found=yes
  18406. break
  18407. fi
  18408. done
  18409. fi
  18410. break
  18411. fi
  18412. done
  18413. fi
  18414. if test $foundpcap = no; then
  18415. as_fn_error $? "\"Unable to find matching library for header file in ${testdir}\"" "$LINENO" 5
  18416. fi
  18417. break
  18418. done
  18419. else
  18420. #
  18421. # Look for pcap-config.
  18422. #
  18423. # I wish this option could be the default, but it is only enabled with --enable-pcapconfig
  18424. #
  18425. # The issue is that libpcap is one of those libraries that is nearly impossible to set up
  18426. # properly across all platforms. The 'pcap-config' script is shipped with new versions of libpcap,
  18427. # and was created to address portability issues. Unfortunately, the script is not updated properly
  18428. # outside of the base distribution. Examples: PF_RING requires 'pthreads', 'numa' and 'rt', but
  18429. # this is not reflect that in the script. OS X Xcode 10.11 SDK creates its own very broken
  18430. # 'pcap-config' script that only occasionally works for dynamic definitions, and defintely
  18431. # does not work for static.
  18432. #
  18433. # The ability to enable this script exists for corner cases where libpcap distributions starts
  18434. # using even more libraries than I am currently not aware of. Originally, you only had to worry
  18435. # about 'nl', but now we have to be prepared to add 'nl-3', 'nl-genl-3' and 'dbus-1' to make
  18436. # libpcap fucntional. In the future, there may be more.
  18437. #
  18438. # (sigh)
  18439. #
  18440. # So, in the future if libpcap changes and stops working, try setting --enable-pcapconfig. It
  18441. # it may work for you.
  18442. if test $enable_pcap_config = yes; then
  18443. if test -n "$ac_tool_prefix"; then
  18444. # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args.
  18445. set dummy ${ac_tool_prefix}pcap-config; ac_word=$2
  18446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18447. $as_echo_n "checking for $ac_word... " >&6; }
  18448. if ${ac_cv_path_PCAP_CONFIG+:} false; then :
  18449. $as_echo_n "(cached) " >&6
  18450. else
  18451. case $PCAP_CONFIG in
  18452. [\\/]* | ?:[\\/]*)
  18453. ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
  18454. ;;
  18455. *)
  18456. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18457. for as_dir in $PATH
  18458. do
  18459. IFS=$as_save_IFS
  18460. test -z "$as_dir" && as_dir=.
  18461. for ac_exec_ext in '' $ac_executable_extensions; do
  18462. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18463. ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18464. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18465. break 2
  18466. fi
  18467. done
  18468. done
  18469. IFS=$as_save_IFS
  18470. ;;
  18471. esac
  18472. fi
  18473. PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
  18474. if test -n "$PCAP_CONFIG"; then
  18475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCAP_CONFIG" >&5
  18476. $as_echo "$PCAP_CONFIG" >&6; }
  18477. else
  18478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18479. $as_echo "no" >&6; }
  18480. fi
  18481. fi
  18482. if test -z "$ac_cv_path_PCAP_CONFIG"; then
  18483. ac_pt_PCAP_CONFIG=$PCAP_CONFIG
  18484. # Extract the first word of "pcap-config", so it can be a program name with args.
  18485. set dummy pcap-config; ac_word=$2
  18486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18487. $as_echo_n "checking for $ac_word... " >&6; }
  18488. if ${ac_cv_path_ac_pt_PCAP_CONFIG+:} false; then :
  18489. $as_echo_n "(cached) " >&6
  18490. else
  18491. case $ac_pt_PCAP_CONFIG in
  18492. [\\/]* | ?:[\\/]*)
  18493. ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path.
  18494. ;;
  18495. *)
  18496. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18497. for as_dir in $PATH
  18498. do
  18499. IFS=$as_save_IFS
  18500. test -z "$as_dir" && as_dir=.
  18501. for ac_exec_ext in '' $ac_executable_extensions; do
  18502. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18503. ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18504. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18505. break 2
  18506. fi
  18507. done
  18508. done
  18509. IFS=$as_save_IFS
  18510. ;;
  18511. esac
  18512. fi
  18513. ac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG
  18514. if test -n "$ac_pt_PCAP_CONFIG"; then
  18515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PCAP_CONFIG" >&5
  18516. $as_echo "$ac_pt_PCAP_CONFIG" >&6; }
  18517. else
  18518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18519. $as_echo "no" >&6; }
  18520. fi
  18521. if test "x$ac_pt_PCAP_CONFIG" = x; then
  18522. PCAP_CONFIG=""
  18523. else
  18524. case $cross_compiling:$ac_tool_warned in
  18525. yes:)
  18526. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18527. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18528. ac_tool_warned=yes ;;
  18529. esac
  18530. PCAP_CONFIG=$ac_pt_PCAP_CONFIG
  18531. fi
  18532. else
  18533. PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG"
  18534. fi
  18535. if test -n "$PCAP_CONFIG"; then
  18536. #
  18537. # Found - use it to get the include flags for
  18538. # libpcap and the flags to link with libpcap.
  18539. #
  18540. # Please read section 11.6 "Shell Substitutions"
  18541. # in the autoconf manual before doing anything
  18542. # to this that involves quoting. Especially note
  18543. # the statement "There is just no portable way to use
  18544. # double-quoted strings inside double-quoted back-quoted
  18545. # expressions (pfew!)."
  18546. #
  18547. if test $dynamic_link = yes; then
  18548. LPCAPLIB=$($PCAP_CONFIG --libs)
  18549. else
  18550. LPCAPLIB=$($PCAP_CONFIG --libs --static)
  18551. fi
  18552. CFLAGS="$CFLAGS $($PCAP_CONFIG --cflags)"
  18553. if test -n "$LPCAPLIB"; then
  18554. foundpcap=yes
  18555. using_pcap_config=yes
  18556. else
  18557. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find libpcap using pcap-config" >&5
  18558. $as_echo "$as_me: WARNING: Unable to find libpcap using pcap-config" >&2;}
  18559. fi
  18560. fi
  18561. fi
  18562. if test ! $foundpcap = yes; then
  18563. #
  18564. # Not found; look for pcap.
  18565. #
  18566. for testdir in /usr/local /opt/local /usr /wpdpack $MACOSX_SDK_PATH/usr /usr/local/opt/libpcap ; do
  18567. if test -f "${testdir}/include/pcap.h"; then
  18568. LPCAPINC="${testdir}/include/pcap.h"
  18569. LPCAPINCDIR="${testdir}/include"
  18570. if test $dynamic_link = yes; then
  18571. for ext in .dylib .so .tbd; do
  18572. for dir in . lib lib64 ${host_cpu} lib/${host_cpu} ${host_cpu}-${host_os} lib/${host_cpu}-${host_os} ${MULTIARCH} lib/${MULTIARCH}; do
  18573. sharefile=$(ls "${testdir}/$dir/libpcap${ext}" 2> /dev/null | sort | head -n1)
  18574. if test -n "${sharefile}"; then
  18575. LPCAPLIB="-L$(dirname ${sharefile}) -lpcap"
  18576. foundpcap=$testdir
  18577. break
  18578. fi
  18579. done
  18580. if ! test $foundpcap = no; then
  18581. break
  18582. fi
  18583. done
  18584. fi
  18585. if test $foundpcap = no ; then
  18586. for ext in ${libext} .a .A.tbd ; do
  18587. for dir in . lib lib64 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
  18588. staticfile=$(ls "${testdir}/$dir/libpcap${ext}" 2> /dev/null | sort | head -n1)
  18589. if test -n "${staticfile}"; then
  18590. LPCAPLIB="${staticfile}"
  18591. foundpcap=$testdir
  18592. break
  18593. fi
  18594. done
  18595. if ! test $foundpcap = no; then
  18596. break
  18597. fi
  18598. done
  18599. fi
  18600. if test $foundpcap = no -a -f "${testdir}/lib/libwpcap.${libext}" ; then
  18601. LPCAPLIB="${testdir}/lib/libwpcap.${libext}"
  18602. $as_echo "#define HAVE_WINPCAP 1" >>confdefs.h
  18603. foundpcap=$testdir
  18604. fi
  18605. fi
  18606. if ! test $foundpcap = no; then
  18607. break
  18608. fi
  18609. done
  18610. fi
  18611. fi
  18612. if test $foundpcap = no ; then
  18613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18614. $as_echo "no" >&6; }
  18615. as_fn_error $? "libpcap not found" "$LINENO" 5
  18616. else
  18617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $foundpcap" >&5
  18618. $as_echo "$foundpcap" >&6; }
  18619. fi
  18620. # libpcap can require libnl
  18621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nl_handle_alloc" >&5
  18622. $as_echo_n "checking for library containing nl_handle_alloc... " >&6; }
  18623. if ${ac_cv_search_nl_handle_alloc+:} false; then :
  18624. $as_echo_n "(cached) " >&6
  18625. else
  18626. ac_func_search_save_LIBS=$LIBS
  18627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18628. /* end confdefs.h. */
  18629. /* Override any GCC internal prototype to avoid an error.
  18630. Use char because int might match the return type of a GCC
  18631. builtin and then its argument prototype would still apply. */
  18632. #ifdef __cplusplus
  18633. extern "C"
  18634. #endif
  18635. char nl_handle_alloc ();
  18636. int
  18637. main ()
  18638. {
  18639. return nl_handle_alloc ();
  18640. ;
  18641. return 0;
  18642. }
  18643. _ACEOF
  18644. for ac_lib in '' nl; do
  18645. if test -z "$ac_lib"; then
  18646. ac_res="none required"
  18647. else
  18648. ac_res=-l$ac_lib
  18649. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  18650. fi
  18651. if ac_fn_c_try_link "$LINENO"; then :
  18652. ac_cv_search_nl_handle_alloc=$ac_res
  18653. fi
  18654. rm -f core conftest.err conftest.$ac_objext \
  18655. conftest$ac_exeext
  18656. if ${ac_cv_search_nl_handle_alloc+:} false; then :
  18657. break
  18658. fi
  18659. done
  18660. if ${ac_cv_search_nl_handle_alloc+:} false; then :
  18661. else
  18662. ac_cv_search_nl_handle_alloc=no
  18663. fi
  18664. rm conftest.$ac_ext
  18665. LIBS=$ac_func_search_save_LIBS
  18666. fi
  18667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nl_handle_alloc" >&5
  18668. $as_echo "$ac_cv_search_nl_handle_alloc" >&6; }
  18669. ac_res=$ac_cv_search_nl_handle_alloc
  18670. if test "$ac_res" != no; then :
  18671. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  18672. { $as_echo "$as_me:${as_lineno-$LINENO}: Unable to find nl library - may be needed by libpcap" >&5
  18673. $as_echo "$as_me: Unable to find nl library - may be needed by libpcap" >&6;}
  18674. fi
  18675. ##
  18676. ## If not automatically configured,
  18677. ## check for newer and full-featured libpcap's
  18678. ##
  18679. if ! test $using_pcap_config = yes; then
  18680. ## newer libpcap requires dbus and latest nl (e.g. -lnl-genl-3 -lnl-3 -ldbus-1)
  18681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_cache_alloc in -lnl" >&5
  18682. $as_echo_n "checking for nl_cache_alloc in -lnl... " >&6; }
  18683. if ${ac_cv_lib_nl_nl_cache_alloc+:} false; then :
  18684. $as_echo_n "(cached) " >&6
  18685. else
  18686. ac_check_lib_save_LIBS=$LIBS
  18687. LIBS="-lnl $LIBS"
  18688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18689. /* end confdefs.h. */
  18690. /* Override any GCC internal prototype to avoid an error.
  18691. Use char because int might match the return type of a GCC
  18692. builtin and then its argument prototype would still apply. */
  18693. #ifdef __cplusplus
  18694. extern "C"
  18695. #endif
  18696. char nl_cache_alloc ();
  18697. int
  18698. main ()
  18699. {
  18700. return nl_cache_alloc ();
  18701. ;
  18702. return 0;
  18703. }
  18704. _ACEOF
  18705. if ac_fn_c_try_link "$LINENO"; then :
  18706. ac_cv_lib_nl_nl_cache_alloc=yes
  18707. else
  18708. ac_cv_lib_nl_nl_cache_alloc=no
  18709. fi
  18710. rm -f core conftest.err conftest.$ac_objext \
  18711. conftest$ac_exeext conftest.$ac_ext
  18712. LIBS=$ac_check_lib_save_LIBS
  18713. fi
  18714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_cache_alloc" >&5
  18715. $as_echo "$ac_cv_lib_nl_nl_cache_alloc" >&6; }
  18716. if test "x$ac_cv_lib_nl_nl_cache_alloc" = xyes; then :
  18717. nl_found=yes
  18718. fi
  18719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genl_connect in -lnl-genl-3" >&5
  18720. $as_echo_n "checking for genl_connect in -lnl-genl-3... " >&6; }
  18721. if ${ac_cv_lib_nl_genl_3_genl_connect+:} false; then :
  18722. $as_echo_n "(cached) " >&6
  18723. else
  18724. ac_check_lib_save_LIBS=$LIBS
  18725. LIBS="-lnl-genl-3 $LIBS"
  18726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18727. /* end confdefs.h. */
  18728. /* Override any GCC internal prototype to avoid an error.
  18729. Use char because int might match the return type of a GCC
  18730. builtin and then its argument prototype would still apply. */
  18731. #ifdef __cplusplus
  18732. extern "C"
  18733. #endif
  18734. char genl_connect ();
  18735. int
  18736. main ()
  18737. {
  18738. return genl_connect ();
  18739. ;
  18740. return 0;
  18741. }
  18742. _ACEOF
  18743. if ac_fn_c_try_link "$LINENO"; then :
  18744. ac_cv_lib_nl_genl_3_genl_connect=yes
  18745. else
  18746. ac_cv_lib_nl_genl_3_genl_connect=no
  18747. fi
  18748. rm -f core conftest.err conftest.$ac_objext \
  18749. conftest$ac_exeext conftest.$ac_ext
  18750. LIBS=$ac_check_lib_save_LIBS
  18751. fi
  18752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_genl_3_genl_connect" >&5
  18753. $as_echo "$ac_cv_lib_nl_genl_3_genl_connect" >&6; }
  18754. if test "x$ac_cv_lib_nl_genl_3_genl_connect" = xyes; then :
  18755. nl_genl_3_found=yes
  18756. fi
  18757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_cache_alloc in -lnl-3" >&5
  18758. $as_echo_n "checking for nl_cache_alloc in -lnl-3... " >&6; }
  18759. if ${ac_cv_lib_nl_3_nl_cache_alloc+:} false; then :
  18760. $as_echo_n "(cached) " >&6
  18761. else
  18762. ac_check_lib_save_LIBS=$LIBS
  18763. LIBS="-lnl-3 $LIBS"
  18764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18765. /* end confdefs.h. */
  18766. /* Override any GCC internal prototype to avoid an error.
  18767. Use char because int might match the return type of a GCC
  18768. builtin and then its argument prototype would still apply. */
  18769. #ifdef __cplusplus
  18770. extern "C"
  18771. #endif
  18772. char nl_cache_alloc ();
  18773. int
  18774. main ()
  18775. {
  18776. return nl_cache_alloc ();
  18777. ;
  18778. return 0;
  18779. }
  18780. _ACEOF
  18781. if ac_fn_c_try_link "$LINENO"; then :
  18782. ac_cv_lib_nl_3_nl_cache_alloc=yes
  18783. else
  18784. ac_cv_lib_nl_3_nl_cache_alloc=no
  18785. fi
  18786. rm -f core conftest.err conftest.$ac_objext \
  18787. conftest$ac_exeext conftest.$ac_ext
  18788. LIBS=$ac_check_lib_save_LIBS
  18789. fi
  18790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_cache_alloc" >&5
  18791. $as_echo "$ac_cv_lib_nl_3_nl_cache_alloc" >&6; }
  18792. if test "x$ac_cv_lib_nl_3_nl_cache_alloc" = xyes; then :
  18793. nl_3_found=yes
  18794. fi
  18795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_malloc in -ldbus-1" >&5
  18796. $as_echo_n "checking for dbus_malloc in -ldbus-1... " >&6; }
  18797. if ${ac_cv_lib_dbus_1_dbus_malloc+:} false; then :
  18798. $as_echo_n "(cached) " >&6
  18799. else
  18800. ac_check_lib_save_LIBS=$LIBS
  18801. LIBS="-ldbus-1 $LIBS"
  18802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18803. /* end confdefs.h. */
  18804. /* Override any GCC internal prototype to avoid an error.
  18805. Use char because int might match the return type of a GCC
  18806. builtin and then its argument prototype would still apply. */
  18807. #ifdef __cplusplus
  18808. extern "C"
  18809. #endif
  18810. char dbus_malloc ();
  18811. int
  18812. main ()
  18813. {
  18814. return dbus_malloc ();
  18815. ;
  18816. return 0;
  18817. }
  18818. _ACEOF
  18819. if ac_fn_c_try_link "$LINENO"; then :
  18820. ac_cv_lib_dbus_1_dbus_malloc=yes
  18821. else
  18822. ac_cv_lib_dbus_1_dbus_malloc=no
  18823. fi
  18824. rm -f core conftest.err conftest.$ac_objext \
  18825. conftest$ac_exeext conftest.$ac_ext
  18826. LIBS=$ac_check_lib_save_LIBS
  18827. fi
  18828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_malloc" >&5
  18829. $as_echo "$ac_cv_lib_dbus_1_dbus_malloc" >&6; }
  18830. if test "x$ac_cv_lib_dbus_1_dbus_malloc" = xyes; then :
  18831. dbus_1_found=yes
  18832. fi
  18833. if test "$nl_found" = "yes"; then
  18834. LPCAPLIB="$LPCAPLIB -lnl"
  18835. fi
  18836. if test "$nl_genl_3_found" = "yes"; then
  18837. LPCAPLIB="$LPCAPLIB -lnl-genl-3"
  18838. fi
  18839. if test "$nl_3_found" = "yes"; then
  18840. LPCAPLIB="$LPCAPLIB -lnl-3"
  18841. fi
  18842. if test "$dbus_1_found" = "yes"; then
  18843. LPCAPLIB="$LPCAPLIB -ldbus-1"
  18844. fi
  18845. ## See if prereqs for PF_RING exist
  18846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for numa_available in -lnuma" >&5
  18847. $as_echo_n "checking for numa_available in -lnuma... " >&6; }
  18848. if ${ac_cv_lib_numa_numa_available+:} false; then :
  18849. $as_echo_n "(cached) " >&6
  18850. else
  18851. ac_check_lib_save_LIBS=$LIBS
  18852. LIBS="-lnuma $LIBS"
  18853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18854. /* end confdefs.h. */
  18855. /* Override any GCC internal prototype to avoid an error.
  18856. Use char because int might match the return type of a GCC
  18857. builtin and then its argument prototype would still apply. */
  18858. #ifdef __cplusplus
  18859. extern "C"
  18860. #endif
  18861. char numa_available ();
  18862. int
  18863. main ()
  18864. {
  18865. return numa_available ();
  18866. ;
  18867. return 0;
  18868. }
  18869. _ACEOF
  18870. if ac_fn_c_try_link "$LINENO"; then :
  18871. ac_cv_lib_numa_numa_available=yes
  18872. else
  18873. ac_cv_lib_numa_numa_available=no
  18874. fi
  18875. rm -f core conftest.err conftest.$ac_objext \
  18876. conftest$ac_exeext conftest.$ac_ext
  18877. LIBS=$ac_check_lib_save_LIBS
  18878. fi
  18879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_numa_available" >&5
  18880. $as_echo "$ac_cv_lib_numa_numa_available" >&6; }
  18881. if test "x$ac_cv_lib_numa_numa_available" = xyes; then :
  18882. numa_found=yes
  18883. fi
  18884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  18885. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  18886. if ${ac_cv_lib_pthread_pthread_create+:} false; then :
  18887. $as_echo_n "(cached) " >&6
  18888. else
  18889. ac_check_lib_save_LIBS=$LIBS
  18890. LIBS="-lpthread $LIBS"
  18891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18892. /* end confdefs.h. */
  18893. /* Override any GCC internal prototype to avoid an error.
  18894. Use char because int might match the return type of a GCC
  18895. builtin and then its argument prototype would still apply. */
  18896. #ifdef __cplusplus
  18897. extern "C"
  18898. #endif
  18899. char pthread_create ();
  18900. int
  18901. main ()
  18902. {
  18903. return pthread_create ();
  18904. ;
  18905. return 0;
  18906. }
  18907. _ACEOF
  18908. if ac_fn_c_try_link "$LINENO"; then :
  18909. ac_cv_lib_pthread_pthread_create=yes
  18910. else
  18911. ac_cv_lib_pthread_pthread_create=no
  18912. fi
  18913. rm -f core conftest.err conftest.$ac_objext \
  18914. conftest$ac_exeext conftest.$ac_ext
  18915. LIBS=$ac_check_lib_save_LIBS
  18916. fi
  18917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  18918. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  18919. if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
  18920. pthread_found=yes
  18921. fi
  18922. if test $pf_ring_found = yes; then
  18923. if ! test "${numa_found}" = "yes"; then
  18924. as_fn_error $? "PF_RING requires libnuma and/or libnuma-dev" "$LINENO" 5
  18925. fi
  18926. if ! test "${pthread_found}" = "yes"; then
  18927. as_fn_error $? "PF_RING requires libpthread" "$LINENO" 5
  18928. fi
  18929. LPCAPLIB="$LPCAPLIB ${pf_ring_lib} -lnuma -lpthread -lrt"
  18930. fi
  18931. fi
  18932. OLDLIBS="$LIBS"
  18933. if test -n "$LPCAPINCDIR"; then
  18934. OLDCFLAGS="$CFLAGS -I$LPCAPINCDIR"
  18935. CFLAGS="$CFLAGS -I$LPCAPINCDIR"
  18936. else
  18937. OLDCFLAGS="$CFLAGS"
  18938. LPCAPINCDIR=$(echo $CFLAGS | sed -e 's/^\-I//')
  18939. LPCAPINC="$LPCAPINCDIR/pcap.h"
  18940. fi
  18941. LIBS="$LPCAPLIB"
  18942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcap_get_pfring_id" >&5
  18943. $as_echo_n "checking for library containing pcap_get_pfring_id... " >&6; }
  18944. if ${ac_cv_search_pcap_get_pfring_id+:} false; then :
  18945. $as_echo_n "(cached) " >&6
  18946. else
  18947. ac_func_search_save_LIBS=$LIBS
  18948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18949. /* end confdefs.h. */
  18950. /* Override any GCC internal prototype to avoid an error.
  18951. Use char because int might match the return type of a GCC
  18952. builtin and then its argument prototype would still apply. */
  18953. #ifdef __cplusplus
  18954. extern "C"
  18955. #endif
  18956. char pcap_get_pfring_id ();
  18957. int
  18958. main ()
  18959. {
  18960. return pcap_get_pfring_id ();
  18961. ;
  18962. return 0;
  18963. }
  18964. _ACEOF
  18965. for ac_lib in '' pcap; do
  18966. if test -z "$ac_lib"; then
  18967. ac_res="none required"
  18968. else
  18969. ac_res=-l$ac_lib
  18970. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  18971. fi
  18972. if ac_fn_c_try_link "$LINENO"; then :
  18973. ac_cv_search_pcap_get_pfring_id=$ac_res
  18974. fi
  18975. rm -f core conftest.err conftest.$ac_objext \
  18976. conftest$ac_exeext
  18977. if ${ac_cv_search_pcap_get_pfring_id+:} false; then :
  18978. break
  18979. fi
  18980. done
  18981. if ${ac_cv_search_pcap_get_pfring_id+:} false; then :
  18982. else
  18983. ac_cv_search_pcap_get_pfring_id=no
  18984. fi
  18985. rm conftest.$ac_ext
  18986. LIBS=$ac_func_search_save_LIBS
  18987. fi
  18988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcap_get_pfring_id" >&5
  18989. $as_echo "$ac_cv_search_pcap_get_pfring_id" >&6; }
  18990. ac_res=$ac_cv_search_pcap_get_pfring_id
  18991. if test "$ac_res" != no; then :
  18992. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  18993. $as_echo "#define HAVE_PF_RING_PCAP 1" >>confdefs.h
  18994. fi
  18995. ## Does libpcap work with selected libraries?
  18996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcap_close" >&5
  18997. $as_echo_n "checking for library containing pcap_close... " >&6; }
  18998. if ${ac_cv_search_pcap_close+:} false; then :
  18999. $as_echo_n "(cached) " >&6
  19000. else
  19001. ac_func_search_save_LIBS=$LIBS
  19002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19003. /* end confdefs.h. */
  19004. /* Override any GCC internal prototype to avoid an error.
  19005. Use char because int might match the return type of a GCC
  19006. builtin and then its argument prototype would still apply. */
  19007. #ifdef __cplusplus
  19008. extern "C"
  19009. #endif
  19010. char pcap_close ();
  19011. int
  19012. main ()
  19013. {
  19014. return pcap_close ();
  19015. ;
  19016. return 0;
  19017. }
  19018. _ACEOF
  19019. for ac_lib in '' pcap; do
  19020. if test -z "$ac_lib"; then
  19021. ac_res="none required"
  19022. else
  19023. ac_res=-l$ac_lib
  19024. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  19025. fi
  19026. if ac_fn_c_try_link "$LINENO"; then :
  19027. ac_cv_search_pcap_close=$ac_res
  19028. fi
  19029. rm -f core conftest.err conftest.$ac_objext \
  19030. conftest$ac_exeext
  19031. if ${ac_cv_search_pcap_close+:} false; then :
  19032. break
  19033. fi
  19034. done
  19035. if ${ac_cv_search_pcap_close+:} false; then :
  19036. else
  19037. ac_cv_search_pcap_close=no
  19038. fi
  19039. rm conftest.$ac_ext
  19040. LIBS=$ac_func_search_save_LIBS
  19041. fi
  19042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcap_close" >&5
  19043. $as_echo "$ac_cv_search_pcap_close" >&6; }
  19044. ac_res=$ac_cv_search_pcap_close
  19045. if test "$ac_res" != no; then :
  19046. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  19047. else
  19048. as_fn_error $? "Unable to link libpcap in ${foundpcap}" "$LINENO" 5
  19049. fi
  19050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcap version" >&5
  19051. $as_echo_n "checking for libpcap version... " >&6; }
  19052. if test "$cross_compiling" = yes; then :
  19053. libpcap_version_096=yes
  19054. else
  19055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19056. /* end confdefs.h. */
  19057. #include <string.h>
  19058. #include <stdlib.h>
  19059. #include <stdio.h>
  19060. #include "$LPCAPINC"
  19061. #define PCAP_TEST "0.9.6"
  19062. int
  19063. main ()
  19064. {
  19065. /*
  19066. * simple proggy to test the version of libpcap
  19067. * returns zero if version >= 0.9.6
  19068. * or one otherwise
  19069. */
  19070. if (strncmp(pcap_lib_version(), PCAP_TEST, 3) >= 0)
  19071. exit(0);
  19072. if (strncmp(pcap_lib_version(), PCAP_TEST, 5) >= 0) {
  19073. printf("%s ", pcap_lib_version());
  19074. exit(0);
  19075. }
  19076. exit(1);
  19077. ;
  19078. return 0;
  19079. }
  19080. _ACEOF
  19081. if ac_fn_c_try_run "$LINENO"; then :
  19082. libpcap_version_096=yes
  19083. else
  19084. libpcap_version_096=no
  19085. fi
  19086. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19087. conftest.$ac_objext conftest.beam conftest.$ac_ext
  19088. fi
  19089. if test "$cross_compiling" = yes; then :
  19090. libpcap_ver8=yes
  19091. else
  19092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19093. /* end confdefs.h. */
  19094. #include <string.h>
  19095. #include <stdlib.h>
  19096. #include <stdio.h>
  19097. #include "$LPCAPINC"
  19098. #define PCAP_TEST "0.8"
  19099. int
  19100. main ()
  19101. {
  19102. /*
  19103. * simple proggy to test the version of libpcap
  19104. * returns zero if version >= 0.8.0
  19105. * or one otherwise
  19106. */
  19107. if (strncmp(pcap_lib_version(), PCAP_TEST, 3) >= 0)
  19108. exit(0);
  19109. /* winpcap? */
  19110. if (strncmp(pcap_lib_version(), "WinPcap", 7) == 0)
  19111. exit(0);
  19112. exit(1);
  19113. ;
  19114. return 0;
  19115. }
  19116. _ACEOF
  19117. if ac_fn_c_try_run "$LINENO"; then :
  19118. libpcap_ver8=yes
  19119. else
  19120. libpcap_ver8=no
  19121. fi
  19122. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19123. conftest.$ac_objext conftest.beam conftest.$ac_ext
  19124. fi
  19125. if test "$cross_compiling" = yes; then :
  19126. libpcap_ver7=yes
  19127. else
  19128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19129. /* end confdefs.h. */
  19130. #include <string.h>
  19131. #include <stdlib.h>
  19132. #include <stdio.h>
  19133. #include "$LPCAPINC"
  19134. #define PCAP_TEST "0.7.2"
  19135. extern const char pcap_version[[]]; /* double up since autoconf escapes things */
  19136. int
  19137. main ()
  19138. {
  19139. /*
  19140. * simple proggy to test the version of libpcap
  19141. * returns zero if version >= 0.7.2
  19142. * or one otherwise
  19143. */
  19144. if (strncmp(pcap_lib_version(), PCAP_TEST, 3) >= 0)
  19145. exit(0);
  19146. if (strncmp(pcap_version, PCAP_TEST, 5) >= 0)
  19147. exit(0);
  19148. exit(1);
  19149. ;
  19150. return 0;
  19151. }
  19152. _ACEOF
  19153. if ac_fn_c_try_run "$LINENO"; then :
  19154. libpcap_ver7=yes
  19155. else
  19156. libpcap_ver7=no
  19157. fi
  19158. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19159. conftest.$ac_objext conftest.beam conftest.$ac_ext
  19160. fi
  19161. if test x$libpcap_ver8 = xyes ; then
  19162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.8.0" >&5
  19163. $as_echo ">= 0.8.0" >&6; }
  19164. elif test x$libpcap_ver7 = xyes ; then
  19165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.7.2" >&5
  19166. $as_echo ">= 0.7.2" >&6; }
  19167. else
  19168. as_fn_error $? "Libpcap versions < 0.7.2 are not supported
  19169. Please upgrade to version 0.7.2 or better" "$LINENO" 5
  19170. fi
  19171. libpcap_version=unknown
  19172. if test x$libpcap_version_096 = xyes ; then
  19173. libpcap_version=">= 0.9.6"
  19174. elif test x$libpcap_ver8 = xyes ; then
  19175. libpcap_version=">= 0.8.0"
  19176. elif test x$libcap_ver7 = xyes ; then
  19177. libpcap_version=">= 0.7.0"
  19178. fi
  19179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_setnonblock" >&5
  19180. $as_echo_n "checking for pcap_setnonblock... " >&6; }
  19181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19182. /* end confdefs.h. */
  19183. #include <stdio.h>
  19184. #include <stdlib.h>
  19185. #include <string.h>
  19186. #include "$LPCAPINC"
  19187. int
  19188. main ()
  19189. {
  19190. pcap_t *p;
  19191. char *errbuf;
  19192. pcap_setnonblock(p, 1, errbuf);
  19193. exit(0);
  19194. ;
  19195. return 0;
  19196. }
  19197. _ACEOF
  19198. if ac_fn_c_try_link "$LINENO"; then :
  19199. have_pcap_setnonblock=yes
  19200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19201. $as_echo "yes" >&6; }
  19202. else
  19203. have_pcap_setnonblock=no
  19204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19205. $as_echo "no" >&6; }
  19206. fi
  19207. rm -f core conftest.err conftest.$ac_objext \
  19208. conftest$ac_exeext conftest.$ac_ext
  19209. if test $have_pcap_setnonblock = yes ; then
  19210. $as_echo "#define HAVE_PCAP_SETNONBLOCK 1" >>confdefs.h
  19211. fi
  19212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_datalink_val_to_description" >&5
  19213. $as_echo_n "checking for pcap_datalink_val_to_description... " >&6; }
  19214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19215. /* end confdefs.h. */
  19216. #include <stdio.h>
  19217. #include <stdlib.h>
  19218. #include <string.h>
  19219. #include "$LPCAPINC"
  19220. int
  19221. main ()
  19222. {
  19223. if (strcmp(pcap_datalink_val_to_description(1), "Ethernet (10Mb)") == 0)
  19224. exit(0);
  19225. exit(1);
  19226. ;
  19227. return 0;
  19228. }
  19229. _ACEOF
  19230. if ac_fn_c_try_link "$LINENO"; then :
  19231. have_dlt_to_desc=yes
  19232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19233. $as_echo "yes" >&6; }
  19234. else
  19235. have_dlt_to_desc=no
  19236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19237. $as_echo "no" >&6; }
  19238. fi
  19239. rm -f core conftest.err conftest.$ac_objext \
  19240. conftest$ac_exeext conftest.$ac_ext
  19241. if test $have_dlt_to_desc = yes ; then
  19242. $as_echo "#define HAVE_DLT_VAL_TO_DESC 1" >>confdefs.h
  19243. fi
  19244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_get_selectable_fd" >&5
  19245. $as_echo_n "checking for pcap_get_selectable_fd... " >&6; }
  19246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19247. /* end confdefs.h. */
  19248. #include <stdio.h>
  19249. #include <stdlib.h>
  19250. #include <string.h>
  19251. #include "$LPCAPINC"
  19252. int
  19253. main ()
  19254. {
  19255. int f;
  19256. pcap_t *p;
  19257. f = pcap_get_selectable_fd(p);
  19258. exit(0);
  19259. ;
  19260. return 0;
  19261. }
  19262. _ACEOF
  19263. if ac_fn_c_try_link "$LINENO"; then :
  19264. have_pcap_get_selectable_fd=yes
  19265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19266. $as_echo "yes" >&6; }
  19267. else
  19268. have_pcap_get_selectable_fd=no
  19269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19270. $as_echo "no" >&6; }
  19271. fi
  19272. rm -f core conftest.err conftest.$ac_objext \
  19273. conftest$ac_exeext conftest.$ac_ext
  19274. if test x$have_pcap_get_selectable_fd = xyes ; then
  19275. $as_echo "#define HAVE_PCAP_GET_SELECTABLE_FD 1" >>confdefs.h
  19276. fi
  19277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen" >&5
  19278. $as_echo_n "checking for pcap_dump_fopen... " >&6; }
  19279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19280. /* end confdefs.h. */
  19281. #include <stdio.h>
  19282. #include <stdlib.h>
  19283. #include <string.h>
  19284. #include "$LPCAPINC"
  19285. int
  19286. main ()
  19287. {
  19288. pcap_dumper_t *dump;
  19289. pcap_t *pcap;
  19290. FILE *foo;
  19291. dump = pcap_dump_fopen(pcap, foo);
  19292. ;
  19293. return 0;
  19294. }
  19295. _ACEOF
  19296. if ac_fn_c_try_link "$LINENO"; then :
  19297. have_pcap_dump_fopen=yes
  19298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19299. $as_echo "yes" >&6; }
  19300. else
  19301. have_pcap_dump_fopen=no
  19302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19303. $as_echo "no" >&6; }
  19304. fi
  19305. rm -f core conftest.err conftest.$ac_objext \
  19306. conftest$ac_exeext conftest.$ac_ext
  19307. if test $have_pcap_dump_fopen = yes ; then
  19308. $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
  19309. else
  19310. { $as_echo "$as_me:${as_lineno-$LINENO}: --verbose mode requires libpcap >= 0.9.0" >&5
  19311. $as_echo "$as_me: --verbose mode requires libpcap >= 0.9.0" >&6;}
  19312. fi
  19313. have_pcap_inject=no
  19314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_inject sending support" >&5
  19315. $as_echo_n "checking for pcap_inject sending support... " >&6; }
  19316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19317. /* end confdefs.h. */
  19318. #include <stdio.h>
  19319. #include <stdlib.h>
  19320. #include <string.h>
  19321. #include "$LPCAPINC"
  19322. int
  19323. main ()
  19324. {
  19325. pcap_t *pcap;
  19326. char *buf;
  19327. pcap_inject(pcap, (void *)buf, 0);
  19328. ;
  19329. return 0;
  19330. }
  19331. _ACEOF
  19332. if ac_fn_c_try_link "$LINENO"; then :
  19333. have_pcap_inject=yes
  19334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19335. $as_echo "yes" >&6; }
  19336. else
  19337. have_pcap_inject=no
  19338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19339. $as_echo "no" >&6; }
  19340. fi
  19341. rm -f core conftest.err conftest.$ac_objext \
  19342. conftest$ac_exeext conftest.$ac_ext
  19343. if test $have_pcap_inject = yes ; then
  19344. $as_echo "#define HAVE_PCAP_INJECT 1" >>confdefs.h
  19345. fi
  19346. have_pcap_sendpacket=no
  19347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_sendpacket sending support" >&5
  19348. $as_echo_n "checking for pcap_sendpacket sending support... " >&6; }
  19349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19350. /* end confdefs.h. */
  19351. #include <stdio.h>
  19352. #include <stdlib.h>
  19353. #include <string.h>
  19354. #include "$LPCAPINC"
  19355. int
  19356. main ()
  19357. {
  19358. pcap_t *pcap;
  19359. u_char *buf;
  19360. pcap_sendpacket(pcap, buf, 0);
  19361. ;
  19362. return 0;
  19363. }
  19364. _ACEOF
  19365. if ac_fn_c_try_link "$LINENO"; then :
  19366. have_pcap_sendpacket=yes
  19367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19368. $as_echo "yes" >&6; }
  19369. else
  19370. have_pcap_sendpacket=no
  19371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19372. $as_echo "no" >&6; }
  19373. fi
  19374. rm -f core conftest.err conftest.$ac_objext \
  19375. conftest$ac_exeext conftest.$ac_ext
  19376. if test $have_pcap_sendpacket = yes ; then
  19377. $as_echo "#define HAVE_PCAP_SENDPACKET 1" >>confdefs.h
  19378. fi
  19379. have_pcap_breakloop=no
  19380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_breakloop" >&5
  19381. $as_echo_n "checking for pcap_breakloop... " >&6; }
  19382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19383. /* end confdefs.h. */
  19384. #include <stdio.h>
  19385. #include <stdlib.h>
  19386. #include <string.h>
  19387. #include "$LPCAPINC"
  19388. int
  19389. main ()
  19390. {
  19391. pcap_t *pcap;
  19392. pcap_sendpacket(pcap);
  19393. ;
  19394. return 0;
  19395. }
  19396. _ACEOF
  19397. if ac_fn_c_try_link "$LINENO"; then :
  19398. have_pcap_breakloop=yes
  19399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19400. $as_echo "yes" >&6; }
  19401. else
  19402. have_pcap_breakloop=no
  19403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19404. $as_echo "no" >&6; }
  19405. fi
  19406. rm -f core conftest.err conftest.$ac_objext \
  19407. conftest$ac_exeext conftest.$ac_ext
  19408. if test $have_pcap_breakloop = yes ; then
  19409. $as_echo "#define HAVE_PCAP_BREAKLOOP 1" >>confdefs.h
  19410. fi
  19411. have_pcap_version=no
  19412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_version" >&5
  19413. $as_echo_n "checking for pcap_version... " >&6; }
  19414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19415. /* end confdefs.h. */
  19416. #include <stdio.h>
  19417. #include <stdlib.h>
  19418. #include <string.h>
  19419. #include "$LPCAPINC"
  19420. extern char pcap_version[];
  19421. int
  19422. main ()
  19423. {
  19424. printf("%s", pcap_version);
  19425. ;
  19426. return 0;
  19427. }
  19428. _ACEOF
  19429. if ac_fn_c_try_link "$LINENO"; then :
  19430. $as_echo "#define HAVE_PCAP_VERSION 1" >>confdefs.h
  19431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19432. $as_echo "yes" >&6; }
  19433. else
  19434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19435. $as_echo "no" >&6; }
  19436. fi
  19437. rm -f core conftest.err conftest.$ac_objext \
  19438. conftest$ac_exeext conftest.$ac_ext
  19439. have_pcap_snapshot=no
  19440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_snapshot" >&5
  19441. $as_echo_n "checking for pcap_snapshot... " >&6; }
  19442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19443. /* end confdefs.h. */
  19444. #include <stdio.h>
  19445. #include <stdlib.h>
  19446. #include <string.h>
  19447. #include "$LPCAPINC"
  19448. int
  19449. main ()
  19450. {
  19451. pcap_t *p;
  19452. int len;
  19453. len = pcap_snapshot(p);
  19454. exit(0);
  19455. ;
  19456. return 0;
  19457. }
  19458. _ACEOF
  19459. if ac_fn_c_try_link "$LINENO"; then :
  19460. have_pcap_snapshot=yes
  19461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19462. $as_echo "yes" >&6; }
  19463. else
  19464. have_pcap_snapshot=no
  19465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19466. $as_echo "no" >&6; }
  19467. fi
  19468. rm -f core conftest.err conftest.$ac_objext \
  19469. conftest$ac_exeext conftest.$ac_ext
  19470. if test $have_pcap_snapshot = yes ; then
  19471. $as_echo "#define HAVE_PCAP_SNAPSHOT 1" >>confdefs.h
  19472. fi
  19473. # Tcpbridge requires libpcap and pcap_sendpacket()
  19474. enable_tcpbridge=no
  19475. if test x$foundpcap != xno -a x$have_pcap_sendpacket = xyes ; then
  19476. # if we have pcap_sendpacket() then we can build tcpbridge on non-BPF systems
  19477. if test x$have_bpf = xno; then
  19478. $as_echo "#define ENABLE_TCPBRIDGE 1" >>confdefs.h
  19479. enable_tcpbridge=yes
  19480. { $as_echo "$as_me:${as_lineno-$LINENO}: Building tcpbridge" >&5
  19481. $as_echo "$as_me: Building tcpbridge" >&6;}
  19482. # BPF systems need to also have pcap_setnonblock()
  19483. elif test x$have_pcap_setnonblock = xyes ; then
  19484. $as_echo "#define ENABLE_TCPBRIDGE 1" >>confdefs.h
  19485. enable_tcpbridge=yes
  19486. { $as_echo "$as_me:${as_lineno-$LINENO}: Building tcpbridge" >&5
  19487. $as_echo "$as_me: Building tcpbridge" >&6;}
  19488. else
  19489. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to build tcpbridge. Try installing latest libpcap!" >&5
  19490. $as_echo "$as_me: WARNING: Unable to build tcpbridge. Try installing latest libpcap!" >&2;}
  19491. fi
  19492. fi
  19493. if test x$enable_tcpbridge = xyes ; then
  19494. COMPILE_TCPBRIDGE_TRUE=
  19495. COMPILE_TCPBRIDGE_FALSE='#'
  19496. else
  19497. COMPILE_TCPBRIDGE_TRUE='#'
  19498. COMPILE_TCPBRIDGE_FALSE=
  19499. fi
  19500. # tcpliveplay requires linux OS to function properly
  19501. enable_tcpliveplay=no
  19502. case $host in
  19503. *-*-linux*)
  19504. $as_echo "#define ENABLE_TCPLIVEPLAY 1" >>confdefs.h
  19505. enable_tcpliveplay=yes
  19506. { $as_echo "$as_me:${as_lineno-$LINENO}: Building tcpliveplay" >&5
  19507. $as_echo "$as_me: Building tcpliveplay" >&6;}
  19508. ;;
  19509. *)
  19510. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to build tcpliveplay. This tool is only enabled on linux environments." >&5
  19511. $as_echo "$as_me: WARNING: Unable to build tcpliveplay. This tool is only enabled on linux environments." >&2;}
  19512. ;;
  19513. esac
  19514. if test x$enable_tcpliveplay = xyes ; then
  19515. COMPILE_TCPLIVEPLAY_TRUE=
  19516. COMPILE_TCPLIVEPLAY_FALSE='#'
  19517. else
  19518. COMPILE_TCPLIVEPLAY_TRUE='#'
  19519. COMPILE_TCPLIVEPLAY_FALSE=
  19520. fi
  19521. have_netmap=no
  19522. enable_netmap=no
  19523. trynetmapdir=
  19524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap socket sending support" >&5
  19525. $as_echo_n "checking for netmap socket sending support... " >&6; }
  19526. # Check whether --with-netmap was given.
  19527. if test "${with_netmap+set}" = set; then :
  19528. withval=$with_netmap; trynetmapdir=$withval
  19529. fi
  19530. NETMAP_SEARCH_DIRS=
  19531. if test "$cross_compiling" = yes; then
  19532. if test "x$trynetmapdir" != "x"; then
  19533. NETMAP_SEARCH_DIRS=$trynetmapdir
  19534. fi
  19535. else
  19536. NETMAP_SEARCH_DIRS="$trynetmapdir /opt/netmap /usr/src/netmap-release /usr/src/netmap /usr/local/src/netmap-release /usr/local/src/netmap /usr/include /usr/local/include"
  19537. fi
  19538. for testdir in $NETMAP_SEARCH_DIRS; do
  19539. if test -f "${testdir}/sys/net/netmap.h" ; then
  19540. NETMAPINC="${testdir}/sys/net/netmap.h"
  19541. NETMAPUSERINC="${testdir}/sys/net/netmap_user.h"
  19542. NETMAPINCDIR="${testdir}/sys"
  19543. have_netmap="yes $testdir"
  19544. enable_netmap=yes
  19545. else
  19546. if test -f "${testdir}/net/netmap.h" ; then
  19547. NETMAPINC="${testdir}/net/netmap.h"
  19548. NETMAPUSERINC="${testdir}/net/netmap_user.h"
  19549. NETMAPINCDIR="${testdir}"
  19550. have_netmap="yes $testdir"
  19551. enable_netmap=yes
  19552. fi
  19553. fi
  19554. if test "$have_netmap" != no ; then
  19555. NETMAPFLAGS="-DHAVE_NETMAP"
  19556. OLDCFLAGS="$CFLAGS -I$NETMAPINCDIR"
  19557. CFLAGS="$CFLAGS -DNETMAP_WITH_LIBS -DND -I$NETMAPINCDIR"
  19558. $as_echo "#define HAVE_NETMAP 1" >>confdefs.h
  19559. have_netmap="yes $testdir"
  19560. enable_netmap=yes
  19561. break;
  19562. fi
  19563. done
  19564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_netmap" >&5
  19565. $as_echo "$have_netmap" >&6; }
  19566. if test x$enable_netmap = xyes ; then
  19567. COMPILE_NETMAP_TRUE=
  19568. COMPILE_NETMAP_FALSE='#'
  19569. else
  19570. COMPILE_NETMAP_TRUE='#'
  19571. COMPILE_NETMAP_FALSE=
  19572. fi
  19573. if test "x$NETMAPINCDIR" != "x"; then
  19574. OLDCPPFLAGS="$CPPFLAGS"
  19575. CPPFLAGS="$CPPFLAGS -DNETMAP_WITH_LIBS -DND -I$NETMAPINCDIR"
  19576. have_nm_open=no
  19577. have_nm_nr_reg_mask=no
  19578. have_nm_nr_flags=no
  19579. have_nmring_head_tail=no
  19580. if test "$have_netmap" != no ; then
  19581. ac_fn_c_check_decl "$LINENO" "nm_open" "ac_cv_have_decl_nm_open" "
  19582. #include <stdio.h>
  19583. #include \"${NETMAPUSERINC}\"
  19584. "
  19585. if test "x$ac_cv_have_decl_nm_open" = xyes; then :
  19586. have_nm_open=yes
  19587. fi
  19588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap NR_REG_MASK definition" >&5
  19589. $as_echo_n "checking for netmap NR_REG_MASK definition... " >&6; }
  19590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19591. /* end confdefs.h. */
  19592. #include <stdint.h>
  19593. #include <sys/socket.h>
  19594. #include <net/if.h>
  19595. #include <net/netmap.h>
  19596. int
  19597. main ()
  19598. {
  19599. #ifdef NR_REG_MASK
  19600. /* OK */
  19601. #else
  19602. # error NR_REG_MASK not found
  19603. #endif
  19604. ;
  19605. return 0;
  19606. }
  19607. _ACEOF
  19608. if ac_fn_c_try_compile "$LINENO"; then :
  19609. have_nm_nr_reg_mask=yes
  19610. fi
  19611. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nm_nr_reg_mask" >&5
  19613. $as_echo "$have_nm_nr_reg_mask" >&6; }
  19614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap nr_flags definition" >&5
  19615. $as_echo_n "checking for netmap nr_flags definition... " >&6; }
  19616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19617. /* end confdefs.h. */
  19618. #include <stdint.h>
  19619. #include <sys/socket.h>
  19620. #include <net/if.h>
  19621. #include <net/netmap.h>
  19622. int
  19623. main ()
  19624. {
  19625. struct nmreq nmr;
  19626. nmr.nr_flags = 0;
  19627. ;
  19628. return 0;
  19629. }
  19630. _ACEOF
  19631. if ac_fn_c_try_compile "$LINENO"; then :
  19632. have_nm_nr_flags=yes
  19633. fi
  19634. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nm_nr_flags" >&5
  19636. $as_echo "$have_nm_nr_flags" >&6; }
  19637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap ring head/tail definitions" >&5
  19638. $as_echo_n "checking for netmap ring head/tail definitions... " >&6; }
  19639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19640. /* end confdefs.h. */
  19641. #include <stdint.h>
  19642. #include <sys/socket.h>
  19643. #include <net/if.h>
  19644. #include <net/netmap.h>
  19645. int
  19646. main ()
  19647. {
  19648. struct netmap_ring r;
  19649. r.head = r.tail = 0;
  19650. ;
  19651. return 0;
  19652. }
  19653. _ACEOF
  19654. if ac_fn_c_try_compile "$LINENO"; then :
  19655. have_nmring_head_tail=yes
  19656. fi
  19657. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nmring_head_tail" >&5
  19659. $as_echo "$have_nmring_head_tail" >&6; }
  19660. fi
  19661. if test "$have_nm_open" = yes ; then
  19662. $as_echo "#define HAVE_NETMAP_NM_OPEN 1" >>confdefs.h
  19663. fi
  19664. if test "$have_nm_nr_reg_mask" = yes ; then
  19665. $as_echo "#define HAVE_NETMAP_NR_REG 1" >>confdefs.h
  19666. fi
  19667. if test "$have_nm_nr_flags" = yes ; then
  19668. $as_echo "#define HAVE_NETMAP_NR_FLAGS 1" >>confdefs.h
  19669. fi
  19670. if test "$have_nmring_head_tail" = yes ; then
  19671. $as_echo "#define HAVE_NETMAP_RING_HEAD_TAIL 1" >>confdefs.h
  19672. fi
  19673. CPPFLAGS="$OLDCPPFLAGS"
  19674. fi
  19675. have_pf=no
  19676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PF_PACKET socket sending support" >&5
  19677. $as_echo_n "checking for PF_PACKET socket sending support... " >&6; }
  19678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19679. /* end confdefs.h. */
  19680. #include <sys/socket.h>
  19681. #include <netpacket/packet.h>
  19682. #include <net/ethernet.h> /* the L2 protocols */
  19683. #include <netinet/in.h> /* htons */
  19684. int
  19685. main ()
  19686. {
  19687. int pf_socket;
  19688. pf_socket = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
  19689. ;
  19690. return 0;
  19691. }
  19692. _ACEOF
  19693. if ac_fn_c_try_compile "$LINENO"; then :
  19694. $as_echo "#define HAVE_PF_PACKET 1" >>confdefs.h
  19695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19696. $as_echo "yes" >&6; }
  19697. have_pf=yes
  19698. else
  19699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19700. $as_echo "no" >&6; }
  19701. fi
  19702. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19703. have_tx_ring=no
  19704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TX_RING socket sending support" >&5
  19705. $as_echo_n "checking for TX_RING socket sending support... " >&6; }
  19706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19707. /* end confdefs.h. */
  19708. #include <sys/socket.h>
  19709. #include <netpacket/packet.h>
  19710. #include <net/ethernet.h> /* the L2 protocols */
  19711. #include <netinet/in.h> /* htons */
  19712. #include <linux/if_packet.h>
  19713. int
  19714. main ()
  19715. {
  19716. int test;
  19717. test = TP_STATUS_WRONG_FORMAT
  19718. ;
  19719. return 0;
  19720. }
  19721. _ACEOF
  19722. if ac_fn_c_try_compile "$LINENO"; then :
  19723. $as_echo "#define HAVE_TX_RING 1" >>confdefs.h
  19724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19725. $as_echo "yes" >&6; }
  19726. have_tx_ring=yes
  19727. else
  19728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19729. $as_echo "no" >&6; }
  19730. fi
  19731. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19732. for ac_header in net/bpf.h
  19733. do :
  19734. ac_fn_c_check_header_mongrel "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
  19735. if test "x$ac_cv_header_net_bpf_h" = xyes; then :
  19736. cat >>confdefs.h <<_ACEOF
  19737. #define HAVE_NET_BPF_H 1
  19738. _ACEOF
  19739. have_bpf=yes
  19740. else
  19741. have_bpf=no
  19742. fi
  19743. done
  19744. if test $have_bpf = yes ; then
  19745. $as_echo "#define HAVE_BPF 1" >>confdefs.h
  19746. fi
  19747. founddnet=no
  19748. have_libdnet=no
  19749. libdnet_version=
  19750. enable_fragroute=no
  19751. trydnetdir=/usr/local
  19752. if test $have_cygwin = no ; then
  19753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdnet" >&5
  19754. $as_echo_n "checking for libdnet... " >&6; }
  19755. # Check whether --with-libdnet was given.
  19756. if test "${with_libdnet+set}" = set; then :
  19757. withval=$with_libdnet; trydnetdir=$withval
  19758. fi
  19759. if test $trydnetdir != no; then
  19760. case "$build_os" in
  19761. linux*)
  19762. for testdir in $trydnetdir /usr/local /opt/local /usr ; do
  19763. if test -x ${testdir}/bin/dumbnet-config -a $founddnet = no ; then
  19764. LDNETINC="$($testdir/bin/dumbnet-config --cflags)"
  19765. LDNETLIB="$($testdir/bin/dumbnet-config --libs)"
  19766. libdnet_version="$($testdir/bin/dumbnet-config --version) (libdumbnet)"
  19767. founddnet=$testdir
  19768. fi
  19769. done
  19770. ;;
  19771. esac
  19772. if test $founddnet = no ; then
  19773. for testdir in $trydnetdir /usr/local /opt/local $MACOSX_SDK_PATH/usr /usr ; do
  19774. if test -x ${testdir}/bin/dnet-config -a $founddnet = no ; then
  19775. LDNETINC="$($testdir/bin/dnet-config --cflags)"
  19776. LDNETLIB="$($testdir/bin/dnet-config --libs)"
  19777. libdnet_version="$($testdir/bin/dnet-config --version)"
  19778. founddnet=$testdir
  19779. fi
  19780. done
  19781. fi
  19782. fi
  19783. if test $founddnet = no ; then
  19784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19785. $as_echo "no" >&6; }
  19786. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdnet not found, disabling fragroute feature" >&5
  19787. $as_echo "$as_me: WARNING: libdnet not found, disabling fragroute feature" >&2;}
  19788. else
  19789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $founddnet" >&5
  19790. $as_echo "$founddnet" >&6; }
  19791. enable_fragroute=yes
  19792. have_libdnet=yes
  19793. $as_echo "#define HAVE_LIBDNET 1" >>confdefs.h
  19794. old_cflags=$CFLAGS
  19795. CFLAGS=$LDNETINC
  19796. for ac_header in dumbnet.h dnet.h
  19797. do :
  19798. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19799. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  19800. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  19801. cat >>confdefs.h <<_ACEOF
  19802. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19803. _ACEOF
  19804. fi
  19805. done
  19806. CFLAGS=$old_cflags
  19807. fi
  19808. else
  19809. { $as_echo "$as_me:${as_lineno-$LINENO}: Skipping libdnet check under Cygwin for compatibility reasons" >&5
  19810. $as_echo "$as_me: Skipping libdnet check under Cygwin for compatibility reasons" >&6;}
  19811. fi
  19812. cat >>confdefs.h <<_ACEOF
  19813. #define LIBDNET_VERSION "$libdnet_version"
  19814. _ACEOF
  19815. if test x$founddnet != xno; then
  19816. COMPILE_FRAGROUTE_TRUE=
  19817. COMPILE_FRAGROUTE_FALSE='#'
  19818. else
  19819. COMPILE_FRAGROUTE_TRUE='#'
  19820. COMPILE_FRAGROUTE_FALSE=
  19821. fi
  19822. if test x$founddnet != xno ; then
  19823. $as_echo "#define ENABLE_FRAGROUTE 1" >>confdefs.h
  19824. fi
  19825. if test $have_bpf = no -a $have_pcap_inject = no -a $have_pcap_sendpacket = no \
  19826. -a $have_libdnet = no -a $have_pf = no ; then
  19827. as_fn_error $? "Unable to find a supported method to send packets. Please upgrade your libpcap or enable libdnet" "$LINENO" 5
  19828. fi
  19829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLT_LINUX_SLL in libpcap" >&5
  19830. $as_echo_n "checking for DLT_LINUX_SLL in libpcap... " >&6; }
  19831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19832. /* end confdefs.h. */
  19833. #include "$LPCAPINC"
  19834. int
  19835. main ()
  19836. {
  19837. int foo;
  19838. foo = DLT_LINUX_SLL
  19839. ;
  19840. return 0;
  19841. }
  19842. _ACEOF
  19843. if ac_fn_c_try_compile "$LINENO"; then :
  19844. $as_echo "#define HAVE_DLT_LINUX_SLL 1" >>confdefs.h
  19845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19846. $as_echo "yes" >&6; }
  19847. else
  19848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19849. $as_echo "no" >&6; }
  19850. fi
  19851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLT_C_HDLC in libpcap" >&5
  19853. $as_echo_n "checking for DLT_C_HDLC in libpcap... " >&6; }
  19854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19855. /* end confdefs.h. */
  19856. #include "$LPCAPINC"
  19857. int
  19858. main ()
  19859. {
  19860. int foo;
  19861. foo = DLT_C_HDLC
  19862. ;
  19863. return 0;
  19864. }
  19865. _ACEOF
  19866. if ac_fn_c_try_compile "$LINENO"; then :
  19867. $as_echo "#define HAVE_DLT_C_HDLC 1" >>confdefs.h
  19868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19869. $as_echo "yes" >&6; }
  19870. else
  19871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19872. $as_echo "no" >&6; }
  19873. fi
  19874. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19875. PCAP_BPF_H_FILE="$LPCAPINCDIR/pcap-bpf.h"
  19876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PCAP_BPF_H_FILE" >&5
  19877. $as_echo_n "checking for $PCAP_BPF_H_FILE... " >&6; }
  19878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19879. /* end confdefs.h. */
  19880. #include <sys/types.h>
  19881. #include <sys/time.h>
  19882. #include <stdint.h>
  19883. #include "$PCAP_BPF_H_FILE"
  19884. int
  19885. main ()
  19886. {
  19887. int foo;
  19888. foo = BPF_MAJOR_VERSION;
  19889. ;
  19890. return 0;
  19891. }
  19892. _ACEOF
  19893. if ac_fn_c_try_compile "$LINENO"; then :
  19894. $as_echo "#define INCLUDE_PCAP_BPF_HEADER 1" >>confdefs.h
  19895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19896. $as_echo "yes" >&6; }
  19897. else
  19898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19899. $as_echo "no" >&6; }
  19900. fi
  19901. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19902. foundbpfheader=no
  19903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcap bpf header" >&5
  19904. $as_echo_n "checking for libpcap bpf header... " >&6; }
  19905. for testfile in $LPCAPINCDIR/pcap/bpf.h $LPCAPINCDIR/pcap-bpf.h ; do
  19906. if test -f "${testfile}" -a $foundbpfheader = no ; then
  19907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19908. /* end confdefs.h. */
  19909. #include <sys/types.h>
  19910. #include <sys/time.h>
  19911. #include <stdint.h>
  19912. #include "$testfile"
  19913. int
  19914. main ()
  19915. {
  19916. int foo;
  19917. foo = BPF_MAJOR_VERSION;
  19918. ;
  19919. return 0;
  19920. }
  19921. _ACEOF
  19922. if ac_fn_c_try_compile "$LINENO"; then :
  19923. foundbpfheader=yes
  19924. PCAP_BPF_H_FILE=$testfile
  19925. $as_echo "#define INCLUDE_PCAP_BPF_HEADER 1" >>confdefs.h
  19926. fi
  19927. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19928. fi
  19929. done
  19930. if test $foundbpfheader != no; then
  19931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $testfile" >&5
  19932. $as_echo "$testfile" >&6; }
  19933. else
  19934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19935. $as_echo "no" >&6; }
  19936. fi
  19937. have_pcap_netmap=no
  19938. if test $foundpcap != no ; then
  19939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap libpcap" >&5
  19940. $as_echo_n "checking for netmap libpcap... " >&6; }
  19941. PCAP_NETMAP_C_FILE="$LPCAPINCDIR/pcap-netmap.c"
  19942. if test -f "${PCAP_NETMAP_C_FILE}" ; then
  19943. $as_echo "#define HAVE_LIBPCAP_NETMAP 1" >>confdefs.h
  19944. have_pcap_netmap=yes
  19945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19946. $as_echo "yes" >&6; }
  19947. else
  19948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19949. $as_echo "no" >&6; }
  19950. fi
  19951. fi
  19952. LIBS="$OLDLIBS"
  19953. CFLAGS="$OLDCFLAGS"
  19954. pcapnav_ver=no
  19955. pcncfg=no
  19956. # Check whether --with-pcapnav-config was given.
  19957. if test "${with_pcapnav_config+set}" = set; then :
  19958. withval=$with_pcapnav_config; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcapnav-config" >&5
  19959. $as_echo_n "checking for pcapnav-config... " >&6; }
  19960. if test -x $withval ; then
  19961. pcncfg=$withval
  19962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcncfg" >&5
  19963. $as_echo "$pcncfg" >&6; }
  19964. elif test x$withval = xno ; then
  19965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19966. $as_echo "no" >&6; }
  19967. else
  19968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Can't find pcapnav-config: disabling offset jump feature" >&5
  19969. $as_echo "Can't find pcapnav-config: disabling offset jump feature" >&6; }
  19970. fi
  19971. else
  19972. # Extract the first word of "pcapnav-config", so it can be a program name with args.
  19973. set dummy pcapnav-config; ac_word=$2
  19974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19975. $as_echo_n "checking for $ac_word... " >&6; }
  19976. if ${ac_cv_path_pcncfg+:} false; then :
  19977. $as_echo_n "(cached) " >&6
  19978. else
  19979. case $pcncfg in
  19980. [\\/]* | ?:[\\/]*)
  19981. ac_cv_path_pcncfg="$pcncfg" # Let the user override the test with a path.
  19982. ;;
  19983. *)
  19984. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19985. for as_dir in $PATH
  19986. do
  19987. IFS=$as_save_IFS
  19988. test -z "$as_dir" && as_dir=.
  19989. for ac_exec_ext in '' $ac_executable_extensions; do
  19990. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19991. ac_cv_path_pcncfg="$as_dir/$ac_word$ac_exec_ext"
  19992. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19993. break 2
  19994. fi
  19995. done
  19996. done
  19997. IFS=$as_save_IFS
  19998. test -z "$ac_cv_path_pcncfg" && ac_cv_path_pcncfg="no "
  19999. ;;
  20000. esac
  20001. fi
  20002. pcncfg=$ac_cv_path_pcncfg
  20003. if test -n "$pcncfg"; then
  20004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcncfg" >&5
  20005. $as_echo "$pcncfg" >&6; }
  20006. else
  20007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20008. $as_echo "no" >&6; }
  20009. fi
  20010. fi
  20011. if test $pcncfg != no ; then
  20012. LNAVLIB=$($pcncfg --libs)
  20013. LNAV_CFLAGS=$($pcncfg --cflags)
  20014. PCAPNAV_VERSION=$($pcncfg --version)
  20015. cat >>confdefs.h <<_ACEOF
  20016. #define PCAPNAV_VERSION "$PCAPNAV_VERSION"
  20017. _ACEOF
  20018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcapnav version" >&5
  20019. $as_echo_n "checking for libpcapnav version... " >&6; }
  20020. if test "$cross_compiling" = yes; then :
  20021. libpcapnav_ver=no
  20022. else
  20023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20024. /* end confdefs.h. */
  20025. #include <string.h>
  20026. #define PCAPNAV_TEST "0.4"
  20027. /*
  20028. * simple proggy to test the version of libpcapnav
  20029. * returns zero if version >= 0.4
  20030. * or one otherwise
  20031. */
  20032. int
  20033. main (int argc, char *argv[])
  20034. {
  20035. if (strncmp(PCAPNAV_VERSION, PCAPNAV_TEST, 3) >= 0)
  20036. exit(0);
  20037. exit(1);
  20038. }
  20039. _ACEOF
  20040. if ac_fn_c_try_run "$LINENO"; then :
  20041. libpcapnav_ver=yes
  20042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.4" >&5
  20043. $as_echo ">= 0.4" >&6; }
  20044. else
  20045. libpcapnav_ver=no
  20046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: < 0.4" >&5
  20047. $as_echo "< 0.4" >&6; }
  20048. fi
  20049. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20050. conftest.$ac_objext conftest.beam conftest.$ac_ext
  20051. fi
  20052. if test x$libpcapnav_ver = xno ; then
  20053. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libpcapnav versions < 0.4 are not supported.
  20054. Please upgrade to version 0.4 or better.
  20055. Disabling offset jump feature." >&5
  20056. $as_echo "$as_me: WARNING: Libpcapnav versions < 0.4 are not supported.
  20057. Please upgrade to version 0.4 or better.
  20058. Disabling offset jump feature." >&2;}
  20059. else
  20060. $as_echo "#define HAVE_PCAPNAV 1" >>confdefs.h
  20061. fi
  20062. fi # checking pcapnav version
  20063. tcpdump_path=no
  20064. # Check whether --with-tcpdump was given.
  20065. if test "${with_tcpdump+set}" = set; then :
  20066. withval=$with_tcpdump; if test -x $withval ; then
  20067. tcpdump_path=$withval
  20068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using tcpdump in $tcpdump_path" >&5
  20069. $as_echo "Using tcpdump in $tcpdump_path" >&6; }
  20070. else
  20071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error: $withval does not exist or is not executable" >&5
  20072. $as_echo "Error: $withval does not exist or is not executable" >&6; }
  20073. fi
  20074. else
  20075. # Extract the first word of "tcpdump", so it can be a program name with args.
  20076. set dummy tcpdump; ac_word=$2
  20077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20078. $as_echo_n "checking for $ac_word... " >&6; }
  20079. if ${ac_cv_path_tcpdump_path+:} false; then :
  20080. $as_echo_n "(cached) " >&6
  20081. else
  20082. case $tcpdump_path in
  20083. [\\/]* | ?:[\\/]*)
  20084. ac_cv_path_tcpdump_path="$tcpdump_path" # Let the user override the test with a path.
  20085. ;;
  20086. *)
  20087. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20088. as_dummy="$PATH:/usr/sbin:/sbin:/usr/local/sbin"
  20089. for as_dir in $as_dummy
  20090. do
  20091. IFS=$as_save_IFS
  20092. test -z "$as_dir" && as_dir=.
  20093. for ac_exec_ext in '' $ac_executable_extensions; do
  20094. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20095. ac_cv_path_tcpdump_path="$as_dir/$ac_word$ac_exec_ext"
  20096. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20097. break 2
  20098. fi
  20099. done
  20100. done
  20101. IFS=$as_save_IFS
  20102. test -z "$ac_cv_path_tcpdump_path" && ac_cv_path_tcpdump_path=""no""
  20103. ;;
  20104. esac
  20105. fi
  20106. tcpdump_path=$ac_cv_path_tcpdump_path
  20107. if test -n "$tcpdump_path"; then
  20108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_path" >&5
  20109. $as_echo "$tcpdump_path" >&6; }
  20110. else
  20111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20112. $as_echo "no" >&6; }
  20113. fi
  20114. fi
  20115. if test "$tcpdump_path" = "no"; then
  20116. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  20117. Disabling --verbose" >&5
  20118. $as_echo "$as_me: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  20119. Disabling --verbose" >&2;}
  20120. else
  20121. $as_echo "#define HAVE_TCPDUMP 1" >>confdefs.h
  20122. cat >>confdefs.h <<_ACEOF
  20123. #define TCPDUMP_BINARY "$tcpdump_path"
  20124. _ACEOF
  20125. fi
  20126. if test "$tcpdump_path" != "no" -a x$have_pcap_dump_fopen = xyes; then
  20127. ENABLE_TCPDUMP_TRUE=
  20128. ENABLE_TCPDUMP_FALSE='#'
  20129. else
  20130. ENABLE_TCPDUMP_TRUE='#'
  20131. ENABLE_TCPDUMP_FALSE=
  20132. fi
  20133. if test x$tcpdump_path != xno -a x$have_pcap_dump_fopen = xyes ; then
  20134. $as_echo "#define ENABLE_VERBOSE 1" >>confdefs.h
  20135. else
  20136. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of libpcap does not support --verbose" >&5
  20137. $as_echo "$as_me: WARNING: Your version of libpcap does not support --verbose" >&2;}
  20138. fi
  20139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'make test' profile" >&5
  20140. $as_echo_n "checking for 'make test' profile... " >&6; }
  20141. if test "$host" == "$build" ; then
  20142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20143. $as_echo "yes" >&6; }
  20144. else
  20145. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to do tests when cross-compiling" >&5
  20146. $as_echo "$as_me: WARNING: Unable to do tests when cross-compiling" >&2;}
  20147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unable to do tests when cross-compiling" >&5
  20148. $as_echo "Unable to do tests when cross-compiling" >&6; }
  20149. fi
  20150. # Check whether --with-testnic was given.
  20151. if test "${with_testnic+set}" = set; then :
  20152. withval=$with_testnic; nic1=$withval
  20153. nic2=$withval
  20154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using --with-testnic=$withval" >&5
  20155. $as_echo "Using --with-testnic=$withval" >&6; }
  20156. else
  20157. case $host in
  20158. *-*-linux*)
  20159. nic1=eth0
  20160. nic2=eth0
  20161. ;;
  20162. *-*-solaris*)
  20163. nic1=hme0
  20164. nic2=hme0
  20165. ;;
  20166. *-*-sunos*)
  20167. nic1=hme0
  20168. nic2=hme0
  20169. ;;
  20170. *-apple-darwin*)
  20171. nic1=en0
  20172. nic2=en0
  20173. ;;
  20174. *-*-openbsd*)
  20175. nic1=xl0
  20176. nic2=xl0
  20177. ;;
  20178. *-*-freebsd*)
  20179. nic1=em0
  20180. nic2=em0
  20181. ;;
  20182. *-*-cygwin)
  20183. nic1=%0
  20184. nic2=%0
  20185. ;;
  20186. *)
  20187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host is unknown! Using first non-loopback interface" >&5
  20188. $as_echo "$host is unknown! Using first non-loopback interface" >&6; }
  20189. nic1=%0
  20190. nic2=%0
  20191. ;;
  20192. esac
  20193. fi
  20194. disable_pcap_findalldevs=no
  20195. osx_frameworks=no
  20196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OS version" >&5
  20197. $as_echo_n "checking for OS version... " >&6; }
  20198. case $host in
  20199. *-*-linux*)
  20200. $as_echo "#define HAVE_LINUX 1" >>confdefs.h
  20201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
  20202. $as_echo "Linux" >&6; }
  20203. ;;
  20204. *-*-solaris*)
  20205. $as_echo "#define HAVE_SOLARIS 1" >>confdefs.h
  20206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
  20207. $as_echo "Solaris" >&6; }
  20208. ;;
  20209. *-*-sunos*)
  20210. $as_echo "#define HAVE_SUNOS 1" >>confdefs.h
  20211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunOS" >&5
  20212. $as_echo "SunOS" >&6; }
  20213. ;;
  20214. *-apple-darwin*)
  20215. if test x$libpcap_version_096 = xno ; then
  20216. disable_pcap_findalldevs=yes
  20217. fi
  20218. osx_frameworks=yes
  20219. $as_echo "#define HAVE_DARWIN 1" >>confdefs.h
  20220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Apple macOS" >&5
  20221. $as_echo "Apple macOS" >&6; }
  20222. ;;
  20223. *-*-openbsd*)
  20224. $as_echo "#define HAVE_OPENBSD 1" >>confdefs.h
  20225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenBSD" >&5
  20226. $as_echo "OpenBSD" >&6; }
  20227. ;;
  20228. *-*-freebsd*)
  20229. $as_echo "#define HAVE_FREEBSD 1" >>confdefs.h
  20230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: FreeBSD" >&5
  20231. $as_echo "FreeBSD" >&6; }
  20232. ;;
  20233. *-*-cygwin)
  20234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Win32/Cygwin" >&5
  20235. $as_echo "Win32/Cygwin" >&6; }
  20236. $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
  20237. ;;
  20238. *)
  20239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host is unknown!" >&5
  20240. $as_echo "$host is unknown!" >&6; }
  20241. ;;
  20242. esac
  20243. if test "$osx_frameworks" = "yes"; then
  20244. ENABLE_OSX_FRAMEWORKS_TRUE=
  20245. ENABLE_OSX_FRAMEWORKS_FALSE='#'
  20246. else
  20247. ENABLE_OSX_FRAMEWORKS_TRUE='#'
  20248. ENABLE_OSX_FRAMEWORKS_FALSE=
  20249. fi
  20250. # Check whether --with-testnic2 was given.
  20251. if test "${with_testnic2+set}" = set; then :
  20252. withval=$with_testnic2; nic2=$withval
  20253. fi
  20254. { $as_echo "$as_me:${as_lineno-$LINENO}: Using $nic1 for 1st test network interface card" >&5
  20255. $as_echo "$as_me: Using $nic1 for 1st test network interface card" >&6;}
  20256. { $as_echo "$as_me:${as_lineno-$LINENO}: Using $nic2 for 2nd test network interface card" >&5
  20257. $as_echo "$as_me: Using $nic2 for 2nd test network interface card" >&6;}
  20258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if it's ok to use pcap_findalldevs()" >&5
  20259. $as_echo_n "checking if it's ok to use pcap_findalldevs()... " >&6; }
  20260. if test x$disable_pcap_findalldevs = xno ; then
  20261. $as_echo "#define ENABLE_PCAP_FINDALLDEVS 1" >>confdefs.h
  20262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20263. $as_echo "yes" >&6; }
  20264. else
  20265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20266. $as_echo "no" >&6; }
  20267. fi
  20268. ac_header_dirent=no
  20269. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  20270. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  20271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  20272. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  20273. if eval \${$as_ac_Header+:} false; then :
  20274. $as_echo_n "(cached) " >&6
  20275. else
  20276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20277. /* end confdefs.h. */
  20278. #include <sys/types.h>
  20279. #include <$ac_hdr>
  20280. int
  20281. main ()
  20282. {
  20283. if ((DIR *) 0)
  20284. return 0;
  20285. ;
  20286. return 0;
  20287. }
  20288. _ACEOF
  20289. if ac_fn_c_try_compile "$LINENO"; then :
  20290. eval "$as_ac_Header=yes"
  20291. else
  20292. eval "$as_ac_Header=no"
  20293. fi
  20294. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20295. fi
  20296. eval ac_res=\$$as_ac_Header
  20297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20298. $as_echo "$ac_res" >&6; }
  20299. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20300. cat >>confdefs.h <<_ACEOF
  20301. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  20302. _ACEOF
  20303. ac_header_dirent=$ac_hdr; break
  20304. fi
  20305. done
  20306. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  20307. if test $ac_header_dirent = dirent.h; then
  20308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  20309. $as_echo_n "checking for library containing opendir... " >&6; }
  20310. if ${ac_cv_search_opendir+:} false; then :
  20311. $as_echo_n "(cached) " >&6
  20312. else
  20313. ac_func_search_save_LIBS=$LIBS
  20314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20315. /* end confdefs.h. */
  20316. /* Override any GCC internal prototype to avoid an error.
  20317. Use char because int might match the return type of a GCC
  20318. builtin and then its argument prototype would still apply. */
  20319. #ifdef __cplusplus
  20320. extern "C"
  20321. #endif
  20322. char opendir ();
  20323. int
  20324. main ()
  20325. {
  20326. return opendir ();
  20327. ;
  20328. return 0;
  20329. }
  20330. _ACEOF
  20331. for ac_lib in '' dir; do
  20332. if test -z "$ac_lib"; then
  20333. ac_res="none required"
  20334. else
  20335. ac_res=-l$ac_lib
  20336. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  20337. fi
  20338. if ac_fn_c_try_link "$LINENO"; then :
  20339. ac_cv_search_opendir=$ac_res
  20340. fi
  20341. rm -f core conftest.err conftest.$ac_objext \
  20342. conftest$ac_exeext
  20343. if ${ac_cv_search_opendir+:} false; then :
  20344. break
  20345. fi
  20346. done
  20347. if ${ac_cv_search_opendir+:} false; then :
  20348. else
  20349. ac_cv_search_opendir=no
  20350. fi
  20351. rm conftest.$ac_ext
  20352. LIBS=$ac_func_search_save_LIBS
  20353. fi
  20354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  20355. $as_echo "$ac_cv_search_opendir" >&6; }
  20356. ac_res=$ac_cv_search_opendir
  20357. if test "$ac_res" != no; then :
  20358. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  20359. fi
  20360. else
  20361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  20362. $as_echo_n "checking for library containing opendir... " >&6; }
  20363. if ${ac_cv_search_opendir+:} false; then :
  20364. $as_echo_n "(cached) " >&6
  20365. else
  20366. ac_func_search_save_LIBS=$LIBS
  20367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20368. /* end confdefs.h. */
  20369. /* Override any GCC internal prototype to avoid an error.
  20370. Use char because int might match the return type of a GCC
  20371. builtin and then its argument prototype would still apply. */
  20372. #ifdef __cplusplus
  20373. extern "C"
  20374. #endif
  20375. char opendir ();
  20376. int
  20377. main ()
  20378. {
  20379. return opendir ();
  20380. ;
  20381. return 0;
  20382. }
  20383. _ACEOF
  20384. for ac_lib in '' x; do
  20385. if test -z "$ac_lib"; then
  20386. ac_res="none required"
  20387. else
  20388. ac_res=-l$ac_lib
  20389. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  20390. fi
  20391. if ac_fn_c_try_link "$LINENO"; then :
  20392. ac_cv_search_opendir=$ac_res
  20393. fi
  20394. rm -f core conftest.err conftest.$ac_objext \
  20395. conftest$ac_exeext
  20396. if ${ac_cv_search_opendir+:} false; then :
  20397. break
  20398. fi
  20399. done
  20400. if ${ac_cv_search_opendir+:} false; then :
  20401. else
  20402. ac_cv_search_opendir=no
  20403. fi
  20404. rm conftest.$ac_ext
  20405. LIBS=$ac_func_search_save_LIBS
  20406. fi
  20407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  20408. $as_echo "$ac_cv_search_opendir" >&6; }
  20409. ac_res=$ac_cv_search_opendir
  20410. if test "$ac_res" != no; then :
  20411. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  20412. fi
  20413. fi
  20414. # =================
  20415. # AC_CHECK_HEADERS
  20416. # =================
  20417. for ac_header in \
  20418. sys/mman.h sys/param.h sys/poll.h sys/procset.h \
  20419. sys/select.h sys/socket.h sys/stropts.h sys/time.h \
  20420. sys/un.h sys/wait.h dlfcn.h errno.h \
  20421. fcntl.h libgen.h libintl.h memory.h \
  20422. netinet/in.h setjmp.h stdbool.h sysexits.h \
  20423. unistd.h utime.h
  20424. do :
  20425. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20426. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20427. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20428. cat >>confdefs.h <<_ACEOF
  20429. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20430. _ACEOF
  20431. fi
  20432. done
  20433. for ac_header in stdarg.h varargs.h
  20434. do :
  20435. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20436. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20437. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20438. cat >>confdefs.h <<_ACEOF
  20439. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20440. _ACEOF
  20441. lo_have_arg_hdr=true;break
  20442. else
  20443. lo_have_arg_hdr=false
  20444. fi
  20445. done
  20446. for ac_header in string.h strings.h
  20447. do :
  20448. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20449. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20450. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20451. cat >>confdefs.h <<_ACEOF
  20452. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20453. _ACEOF
  20454. lo_have_str_hdr=true;break
  20455. else
  20456. lo_have_str_hdr=false
  20457. fi
  20458. done
  20459. for ac_header in limits.h sys/limits.h values.h
  20460. do :
  20461. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20462. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20463. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20464. cat >>confdefs.h <<_ACEOF
  20465. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20466. _ACEOF
  20467. lo_have_lim_hdr=true;break
  20468. else
  20469. lo_have_lim_hdr=false
  20470. fi
  20471. done
  20472. for ac_header in inttypes.h stdint.h
  20473. do :
  20474. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20475. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20476. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20477. cat >>confdefs.h <<_ACEOF
  20478. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20479. _ACEOF
  20480. lo_have_typ_hdr=true;break
  20481. else
  20482. lo_have_typ_hdr=false
  20483. fi
  20484. done
  20485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
  20486. $as_echo_n "checking for working stdnoreturn.h... " >&6; }
  20487. if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
  20488. $as_echo_n "(cached) " >&6
  20489. else
  20490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20491. /* end confdefs.h. */
  20492. #include <stdlib.h>
  20493. #include <stdnoreturn.h>
  20494. /* Do not check for 'noreturn' after the return type.
  20495. C11 allows it, but it's rarely done that way
  20496. and circa-2012 bleeding-edge GCC rejects it when given
  20497. -Werror=old-style-declaration. */
  20498. noreturn void foo1 (void) { exit (0); }
  20499. _Noreturn void foo2 (void) { exit (0); }
  20500. int testit (int argc, char **argv) {
  20501. if (argc & 1)
  20502. return 0;
  20503. (argv[0][0] ? foo1 : foo2) ();
  20504. }
  20505. int
  20506. main ()
  20507. {
  20508. ;
  20509. return 0;
  20510. }
  20511. _ACEOF
  20512. if ac_fn_c_try_compile "$LINENO"; then :
  20513. gl_cv_header_working_stdnoreturn_h=yes
  20514. else
  20515. gl_cv_header_working_stdnoreturn_h=no
  20516. fi
  20517. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20518. fi
  20519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
  20520. $as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }
  20521. if test $gl_cv_header_working_stdnoreturn_h = yes; then
  20522. STDNORETURN_H=''
  20523. else
  20524. STDNORETURN_H='stdnoreturn.h'
  20525. fi
  20526. if test -n "$STDNORETURN_H"; then
  20527. GL_GENERATE_STDNORETURN_H_TRUE=
  20528. GL_GENERATE_STDNORETURN_H_FALSE='#'
  20529. else
  20530. GL_GENERATE_STDNORETURN_H_TRUE='#'
  20531. GL_GENERATE_STDNORETURN_H_FALSE=
  20532. fi
  20533. # ----------------------------------------------------------------------
  20534. # check for various programs used during the build.
  20535. # On OS/X, "wchar.h" needs "runetype.h" to work properly.
  20536. # ----------------------------------------------------------------------
  20537. for ac_header in runetype.h wchar.h
  20538. do :
  20539. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20540. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  20541. $ac_includes_default
  20542. #if HAVE_RUNETYPE_H
  20543. # include <runetype.h>
  20544. #endif
  20545. "
  20546. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20547. cat >>confdefs.h <<_ACEOF
  20548. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20549. _ACEOF
  20550. fi
  20551. done
  20552. # Check whether --enable-nls was given.
  20553. if test "${enable_nls+set}" = set; then :
  20554. enableval=$enable_nls;
  20555. fi
  20556. if test "x$enable_nls" != "xno" && \
  20557. test "X${ac_cv_header_libintl_h}" = Xyes; then :
  20558. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  20559. fi
  20560. # --------------------------------------------
  20561. # Verify certain entries from AC_CHECK_HEADERS
  20562. # --------------------------------------------
  20563. ${lo_have_arg_hdr} || \
  20564. as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
  20565. ${lo_have_str_hdr} || \
  20566. as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
  20567. ${lo_have_lim_hdr} || \
  20568. as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
  20569. ${lo_have_typ_hdr} || \
  20570. as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
  20571. for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
  20572. do eval as_ac_var=\${ac_cv_header_${f}_h}
  20573. test "X${as_ac_var}" = Xyes || {
  20574. as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
  20575. }
  20576. done
  20577. test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
  20578. echo '#include <stdint.h>' > inttypes.h
  20579. # ----------------------------------------------------------------------
  20580. # Checks for typedefs
  20581. # ----------------------------------------------------------------------
  20582. ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
  20583. if test "x$ac_cv_type_wchar_t" = xyes; then :
  20584. cat >>confdefs.h <<_ACEOF
  20585. #define HAVE_WCHAR_T 1
  20586. _ACEOF
  20587. fi
  20588. ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
  20589. $ac_includes_default
  20590. #if HAVE_RUNETYPE_H
  20591. # include <runetype.h>
  20592. #endif
  20593. #if HAVE_WCHAR_H
  20594. # include <wchar.h>
  20595. #endif
  20596. "
  20597. if test "x$ac_cv_type_wint_t" = xyes; then :
  20598. cat >>confdefs.h <<_ACEOF
  20599. #define HAVE_WINT_T 1
  20600. _ACEOF
  20601. fi
  20602. ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
  20603. if test "x$ac_cv_type_int8_t" = xyes; then :
  20604. cat >>confdefs.h <<_ACEOF
  20605. #define HAVE_INT8_T 1
  20606. _ACEOF
  20607. fi
  20608. ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
  20609. if test "x$ac_cv_type_uint8_t" = xyes; then :
  20610. cat >>confdefs.h <<_ACEOF
  20611. #define HAVE_UINT8_T 1
  20612. _ACEOF
  20613. fi
  20614. ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
  20615. if test "x$ac_cv_type_int16_t" = xyes; then :
  20616. cat >>confdefs.h <<_ACEOF
  20617. #define HAVE_INT16_T 1
  20618. _ACEOF
  20619. fi
  20620. ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
  20621. if test "x$ac_cv_type_uint16_t" = xyes; then :
  20622. cat >>confdefs.h <<_ACEOF
  20623. #define HAVE_UINT16_T 1
  20624. _ACEOF
  20625. fi
  20626. ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
  20627. if test "x$ac_cv_type_int32_t" = xyes; then :
  20628. cat >>confdefs.h <<_ACEOF
  20629. #define HAVE_INT32_T 1
  20630. _ACEOF
  20631. fi
  20632. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
  20633. if test "x$ac_cv_type_uint32_t" = xyes; then :
  20634. cat >>confdefs.h <<_ACEOF
  20635. #define HAVE_UINT32_T 1
  20636. _ACEOF
  20637. fi
  20638. ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
  20639. if test "x$ac_cv_type_intptr_t" = xyes; then :
  20640. cat >>confdefs.h <<_ACEOF
  20641. #define HAVE_INTPTR_T 1
  20642. _ACEOF
  20643. fi
  20644. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  20645. if test "x$ac_cv_type_uintptr_t" = xyes; then :
  20646. cat >>confdefs.h <<_ACEOF
  20647. #define HAVE_UINTPTR_T 1
  20648. _ACEOF
  20649. fi
  20650. ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
  20651. if test "x$ac_cv_type_uint_t" = xyes; then :
  20652. cat >>confdefs.h <<_ACEOF
  20653. #define HAVE_UINT_T 1
  20654. _ACEOF
  20655. fi
  20656. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  20657. if test "x$ac_cv_type_pid_t" = xyes; then :
  20658. cat >>confdefs.h <<_ACEOF
  20659. #define HAVE_PID_T 1
  20660. _ACEOF
  20661. fi
  20662. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  20663. if test "x$ac_cv_type_size_t" = xyes; then :
  20664. cat >>confdefs.h <<_ACEOF
  20665. #define HAVE_SIZE_T 1
  20666. _ACEOF
  20667. fi
  20668. ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  20669. if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
  20670. cat >>confdefs.h <<_ACEOF
  20671. #define HAVE_PTRDIFF_T 1
  20672. _ACEOF
  20673. fi
  20674. # The cast to long int works around a bug in the HP C Compiler
  20675. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  20676. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  20677. # This bug is HP SR number 8606223364.
  20678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
  20679. $as_echo_n "checking size of char *... " >&6; }
  20680. if ${ac_cv_sizeof_char_p+:} false; then :
  20681. $as_echo_n "(cached) " >&6
  20682. else
  20683. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
  20684. else
  20685. if test "$ac_cv_type_char_p" = yes; then
  20686. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20687. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20688. as_fn_error 77 "cannot compute sizeof (char *)
  20689. See \`config.log' for more details" "$LINENO" 5; }
  20690. else
  20691. ac_cv_sizeof_char_p=0
  20692. fi
  20693. fi
  20694. fi
  20695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
  20696. $as_echo "$ac_cv_sizeof_char_p" >&6; }
  20697. cat >>confdefs.h <<_ACEOF
  20698. #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
  20699. _ACEOF
  20700. # The cast to long int works around a bug in the HP C Compiler
  20701. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  20702. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  20703. # This bug is HP SR number 8606223364.
  20704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  20705. $as_echo_n "checking size of int... " >&6; }
  20706. if ${ac_cv_sizeof_int+:} false; then :
  20707. $as_echo_n "(cached) " >&6
  20708. else
  20709. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  20710. else
  20711. if test "$ac_cv_type_int" = yes; then
  20712. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20713. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20714. as_fn_error 77 "cannot compute sizeof (int)
  20715. See \`config.log' for more details" "$LINENO" 5; }
  20716. else
  20717. ac_cv_sizeof_int=0
  20718. fi
  20719. fi
  20720. fi
  20721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  20722. $as_echo "$ac_cv_sizeof_int" >&6; }
  20723. cat >>confdefs.h <<_ACEOF
  20724. #define SIZEOF_INT $ac_cv_sizeof_int
  20725. _ACEOF
  20726. # The cast to long int works around a bug in the HP C Compiler
  20727. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  20728. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  20729. # This bug is HP SR number 8606223364.
  20730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  20731. $as_echo_n "checking size of long... " >&6; }
  20732. if ${ac_cv_sizeof_long+:} false; then :
  20733. $as_echo_n "(cached) " >&6
  20734. else
  20735. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  20736. else
  20737. if test "$ac_cv_type_long" = yes; then
  20738. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20739. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20740. as_fn_error 77 "cannot compute sizeof (long)
  20741. See \`config.log' for more details" "$LINENO" 5; }
  20742. else
  20743. ac_cv_sizeof_long=0
  20744. fi
  20745. fi
  20746. fi
  20747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  20748. $as_echo "$ac_cv_sizeof_long" >&6; }
  20749. cat >>confdefs.h <<_ACEOF
  20750. #define SIZEOF_LONG $ac_cv_sizeof_long
  20751. _ACEOF
  20752. # The cast to long int works around a bug in the HP C Compiler
  20753. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  20754. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  20755. # This bug is HP SR number 8606223364.
  20756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  20757. $as_echo_n "checking size of short... " >&6; }
  20758. if ${ac_cv_sizeof_short+:} false; then :
  20759. $as_echo_n "(cached) " >&6
  20760. else
  20761. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  20762. else
  20763. if test "$ac_cv_type_short" = yes; then
  20764. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20765. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20766. as_fn_error 77 "cannot compute sizeof (short)
  20767. See \`config.log' for more details" "$LINENO" 5; }
  20768. else
  20769. ac_cv_sizeof_short=0
  20770. fi
  20771. fi
  20772. fi
  20773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  20774. $as_echo "$ac_cv_sizeof_short" >&6; }
  20775. cat >>confdefs.h <<_ACEOF
  20776. #define SIZEOF_SHORT $ac_cv_sizeof_short
  20777. _ACEOF
  20778. # ------------
  20779. # AC_CHECK_LIB
  20780. # ------------
  20781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
  20782. $as_echo_n "checking for pathfind in -lgen... " >&6; }
  20783. if ${ac_cv_lib_gen_pathfind+:} false; then :
  20784. $as_echo_n "(cached) " >&6
  20785. else
  20786. ac_check_lib_save_LIBS=$LIBS
  20787. LIBS="-lgen $LIBS"
  20788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20789. /* end confdefs.h. */
  20790. /* Override any GCC internal prototype to avoid an error.
  20791. Use char because int might match the return type of a GCC
  20792. builtin and then its argument prototype would still apply. */
  20793. #ifdef __cplusplus
  20794. extern "C"
  20795. #endif
  20796. char pathfind ();
  20797. int
  20798. main ()
  20799. {
  20800. return pathfind ();
  20801. ;
  20802. return 0;
  20803. }
  20804. _ACEOF
  20805. if ac_fn_c_try_link "$LINENO"; then :
  20806. ac_cv_lib_gen_pathfind=yes
  20807. else
  20808. ac_cv_lib_gen_pathfind=no
  20809. fi
  20810. rm -f core conftest.err conftest.$ac_objext \
  20811. conftest$ac_exeext conftest.$ac_ext
  20812. LIBS=$ac_check_lib_save_LIBS
  20813. fi
  20814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
  20815. $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
  20816. if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
  20817. cat >>confdefs.h <<_ACEOF
  20818. #define HAVE_LIBGEN 1
  20819. _ACEOF
  20820. LIBS="-lgen $LIBS"
  20821. fi
  20822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
  20823. $as_echo_n "checking for gettext in -lintl... " >&6; }
  20824. if ${ac_cv_lib_intl_gettext+:} false; then :
  20825. $as_echo_n "(cached) " >&6
  20826. else
  20827. ac_check_lib_save_LIBS=$LIBS
  20828. LIBS="-lintl $LIBS"
  20829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20830. /* end confdefs.h. */
  20831. /* Override any GCC internal prototype to avoid an error.
  20832. Use char because int might match the return type of a GCC
  20833. builtin and then its argument prototype would still apply. */
  20834. #ifdef __cplusplus
  20835. extern "C"
  20836. #endif
  20837. char gettext ();
  20838. int
  20839. main ()
  20840. {
  20841. return gettext ();
  20842. ;
  20843. return 0;
  20844. }
  20845. _ACEOF
  20846. if ac_fn_c_try_link "$LINENO"; then :
  20847. ac_cv_lib_intl_gettext=yes
  20848. else
  20849. ac_cv_lib_intl_gettext=no
  20850. fi
  20851. rm -f core conftest.err conftest.$ac_objext \
  20852. conftest$ac_exeext conftest.$ac_ext
  20853. LIBS=$ac_check_lib_save_LIBS
  20854. fi
  20855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
  20856. $as_echo "$ac_cv_lib_intl_gettext" >&6; }
  20857. if test "x$ac_cv_lib_intl_gettext" = xyes; then :
  20858. cat >>confdefs.h <<_ACEOF
  20859. #define HAVE_LIBINTL 1
  20860. _ACEOF
  20861. LIBS="-lintl $LIBS"
  20862. fi
  20863. for ac_func in vprintf
  20864. do :
  20865. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  20866. if test "x$ac_cv_func_vprintf" = xyes; then :
  20867. cat >>confdefs.h <<_ACEOF
  20868. #define HAVE_VPRINTF 1
  20869. _ACEOF
  20870. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  20871. if test "x$ac_cv_func__doprnt" = xyes; then :
  20872. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  20873. fi
  20874. fi
  20875. done
  20876. for ac_header in vfork.h
  20877. do :
  20878. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  20879. if test "x$ac_cv_header_vfork_h" = xyes; then :
  20880. cat >>confdefs.h <<_ACEOF
  20881. #define HAVE_VFORK_H 1
  20882. _ACEOF
  20883. fi
  20884. done
  20885. for ac_func in fork vfork
  20886. do :
  20887. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20888. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  20889. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  20890. cat >>confdefs.h <<_ACEOF
  20891. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20892. _ACEOF
  20893. fi
  20894. done
  20895. if test "x$ac_cv_func_fork" = xyes; then
  20896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  20897. $as_echo_n "checking for working fork... " >&6; }
  20898. if ${ac_cv_func_fork_works+:} false; then :
  20899. $as_echo_n "(cached) " >&6
  20900. else
  20901. if test "$cross_compiling" = yes; then :
  20902. ac_cv_func_fork_works=cross
  20903. else
  20904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20905. /* end confdefs.h. */
  20906. $ac_includes_default
  20907. int
  20908. main ()
  20909. {
  20910. /* By Ruediger Kuhlmann. */
  20911. return fork () < 0;
  20912. ;
  20913. return 0;
  20914. }
  20915. _ACEOF
  20916. if ac_fn_c_try_run "$LINENO"; then :
  20917. ac_cv_func_fork_works=yes
  20918. else
  20919. ac_cv_func_fork_works=no
  20920. fi
  20921. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20922. conftest.$ac_objext conftest.beam conftest.$ac_ext
  20923. fi
  20924. fi
  20925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  20926. $as_echo "$ac_cv_func_fork_works" >&6; }
  20927. else
  20928. ac_cv_func_fork_works=$ac_cv_func_fork
  20929. fi
  20930. if test "x$ac_cv_func_fork_works" = xcross; then
  20931. case $host in
  20932. *-*-amigaos* | *-*-msdosdjgpp*)
  20933. # Override, as these systems have only a dummy fork() stub
  20934. ac_cv_func_fork_works=no
  20935. ;;
  20936. *)
  20937. ac_cv_func_fork_works=yes
  20938. ;;
  20939. esac
  20940. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  20941. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  20942. fi
  20943. ac_cv_func_vfork_works=$ac_cv_func_vfork
  20944. if test "x$ac_cv_func_vfork" = xyes; then
  20945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  20946. $as_echo_n "checking for working vfork... " >&6; }
  20947. if ${ac_cv_func_vfork_works+:} false; then :
  20948. $as_echo_n "(cached) " >&6
  20949. else
  20950. if test "$cross_compiling" = yes; then :
  20951. ac_cv_func_vfork_works=cross
  20952. else
  20953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20954. /* end confdefs.h. */
  20955. /* Thanks to Paul Eggert for this test. */
  20956. $ac_includes_default
  20957. #include <sys/wait.h>
  20958. #ifdef HAVE_VFORK_H
  20959. # include <vfork.h>
  20960. #endif
  20961. /* On some sparc systems, changes by the child to local and incoming
  20962. argument registers are propagated back to the parent. The compiler
  20963. is told about this with #include <vfork.h>, but some compilers
  20964. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  20965. static variable whose address is put into a register that is
  20966. clobbered by the vfork. */
  20967. static void
  20968. #ifdef __cplusplus
  20969. sparc_address_test (int arg)
  20970. # else
  20971. sparc_address_test (arg) int arg;
  20972. #endif
  20973. {
  20974. static pid_t child;
  20975. if (!child) {
  20976. child = vfork ();
  20977. if (child < 0) {
  20978. perror ("vfork");
  20979. _exit(2);
  20980. }
  20981. if (!child) {
  20982. arg = getpid();
  20983. write(-1, "", 0);
  20984. _exit (arg);
  20985. }
  20986. }
  20987. }
  20988. int
  20989. main ()
  20990. {
  20991. pid_t parent = getpid ();
  20992. pid_t child;
  20993. sparc_address_test (0);
  20994. child = vfork ();
  20995. if (child == 0) {
  20996. /* Here is another test for sparc vfork register problems. This
  20997. test uses lots of local variables, at least as many local
  20998. variables as main has allocated so far including compiler
  20999. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  21000. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  21001. reuse the register of parent for one of the local variables,
  21002. since it will think that parent can't possibly be used any more
  21003. in this routine. Assigning to the local variable will thus
  21004. munge parent in the parent process. */
  21005. pid_t
  21006. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  21007. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  21008. /* Convince the compiler that p..p7 are live; otherwise, it might
  21009. use the same hardware register for all 8 local variables. */
  21010. if (p != p1 || p != p2 || p != p3 || p != p4
  21011. || p != p5 || p != p6 || p != p7)
  21012. _exit(1);
  21013. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  21014. from child file descriptors. If the child closes a descriptor
  21015. before it execs or exits, this munges the parent's descriptor
  21016. as well. Test for this by closing stdout in the child. */
  21017. _exit(close(fileno(stdout)) != 0);
  21018. } else {
  21019. int status;
  21020. struct stat st;
  21021. while (wait(&status) != child)
  21022. ;
  21023. return (
  21024. /* Was there some problem with vforking? */
  21025. child < 0
  21026. /* Did the child fail? (This shouldn't happen.) */
  21027. || status
  21028. /* Did the vfork/compiler bug occur? */
  21029. || parent != getpid()
  21030. /* Did the file descriptor bug occur? */
  21031. || fstat(fileno(stdout), &st) != 0
  21032. );
  21033. }
  21034. }
  21035. _ACEOF
  21036. if ac_fn_c_try_run "$LINENO"; then :
  21037. ac_cv_func_vfork_works=yes
  21038. else
  21039. ac_cv_func_vfork_works=no
  21040. fi
  21041. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21042. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21043. fi
  21044. fi
  21045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  21046. $as_echo "$ac_cv_func_vfork_works" >&6; }
  21047. fi;
  21048. if test "x$ac_cv_func_fork_works" = xcross; then
  21049. ac_cv_func_vfork_works=$ac_cv_func_vfork
  21050. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  21051. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  21052. fi
  21053. if test "x$ac_cv_func_vfork_works" = xyes; then
  21054. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  21055. else
  21056. $as_echo "#define vfork fork" >>confdefs.h
  21057. fi
  21058. if test "x$ac_cv_func_fork_works" = xyes; then
  21059. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  21060. fi
  21061. for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
  21062. strrchr strsignal fchmod fstat chmod
  21063. do :
  21064. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21065. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  21066. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  21067. cat >>confdefs.h <<_ACEOF
  21068. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21069. _ACEOF
  21070. fi
  21071. done
  21072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  21073. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  21074. if ${ac_cv_path_SED+:} false; then :
  21075. $as_echo_n "(cached) " >&6
  21076. else
  21077. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  21078. for ac_i in 1 2 3 4 5 6 7; do
  21079. ac_script="$ac_script$as_nl$ac_script"
  21080. done
  21081. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  21082. { ac_script=; unset ac_script;}
  21083. if test -z "$SED"; then
  21084. ac_path_SED_found=false
  21085. # Loop through the user's path and test for each of PROGNAME-LIST
  21086. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21087. for as_dir in $PATH
  21088. do
  21089. IFS=$as_save_IFS
  21090. test -z "$as_dir" && as_dir=.
  21091. for ac_prog in sed gsed; do
  21092. for ac_exec_ext in '' $ac_executable_extensions; do
  21093. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  21094. as_fn_executable_p "$ac_path_SED" || continue
  21095. # Check for GNU ac_path_SED and select it if it is found.
  21096. # Check for GNU $ac_path_SED
  21097. case `"$ac_path_SED" --version 2>&1` in
  21098. *GNU*)
  21099. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  21100. *)
  21101. ac_count=0
  21102. $as_echo_n 0123456789 >"conftest.in"
  21103. while :
  21104. do
  21105. cat "conftest.in" "conftest.in" >"conftest.tmp"
  21106. mv "conftest.tmp" "conftest.in"
  21107. cp "conftest.in" "conftest.nl"
  21108. $as_echo '' >> "conftest.nl"
  21109. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  21110. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  21111. as_fn_arith $ac_count + 1 && ac_count=$as_val
  21112. if test $ac_count -gt ${ac_path_SED_max-0}; then
  21113. # Best one so far, save it but keep looking for a better one
  21114. ac_cv_path_SED="$ac_path_SED"
  21115. ac_path_SED_max=$ac_count
  21116. fi
  21117. # 10*(2^10) chars as input seems more than enough
  21118. test $ac_count -gt 10 && break
  21119. done
  21120. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  21121. esac
  21122. $ac_path_SED_found && break 3
  21123. done
  21124. done
  21125. done
  21126. IFS=$as_save_IFS
  21127. if test -z "$ac_cv_path_SED"; then
  21128. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  21129. fi
  21130. else
  21131. ac_cv_path_SED=$SED
  21132. fi
  21133. fi
  21134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  21135. $as_echo "$ac_cv_path_SED" >&6; }
  21136. SED="$ac_cv_path_SED"
  21137. rm -f conftest.sed
  21138. while :
  21139. do
  21140. POSIX_SHELL=`which bash`
  21141. test -x "$POSIX_SHELL" && break
  21142. POSIX_SHELL=`which dash`
  21143. test -x "$POSIX_SHELL" && break
  21144. POSIX_SHELL=/usr/xpg4/bin/sh
  21145. test -x "$POSIX_SHELL" && break
  21146. POSIX_SHELL=`/bin/sh -c '
  21147. exec 2>/dev/null
  21148. if ! true ; then exit 1 ; fi
  21149. echo /bin/sh'`
  21150. test -x "$POSIX_SHELL" && break
  21151. as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
  21152. done
  21153. cat >>confdefs.h <<_ACEOF
  21154. #define POSIX_SHELL "${POSIX_SHELL}"
  21155. _ACEOF
  21156. LIBOPTS_BUILD_BLOCKED=''
  21157. NEED_LIBOPTS_DIR=''
  21158. # Check whether --enable-local-libopts was given.
  21159. if test "${enable_local_libopts+set}" = set; then :
  21160. enableval=$enable_local_libopts;
  21161. if test x$enableval = xyes ; then
  21162. { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
  21163. $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
  21164. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  21165. NEED_LIBOPTS_DIR=true
  21166. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  21167. fi
  21168. fi
  21169. # Check whether --enable-libopts-install was given.
  21170. if test "${enable_libopts_install+set}" = set; then :
  21171. enableval=$enable_libopts_install;
  21172. fi
  21173. if test "X${enable_libopts_install}" = Xyes; then
  21174. INSTALL_LIBOPTS_TRUE=
  21175. INSTALL_LIBOPTS_FALSE='#'
  21176. else
  21177. INSTALL_LIBOPTS_TRUE='#'
  21178. INSTALL_LIBOPTS_FALSE=
  21179. fi
  21180. if test -z "${NEED_LIBOPTS_DIR}" ; then
  21181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
  21182. $as_echo_n "checking whether autoopts-config can be found... " >&6; }
  21183. # Check whether --with-autoopts-config was given.
  21184. if test "${with_autoopts_config+set}" = set; then :
  21185. withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
  21186. else
  21187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
  21188. $as_echo_n "checking whether autoopts-config is specified... " >&6; }
  21189. if ${lo_cv_with_autoopts_config+:} false; then :
  21190. $as_echo_n "(cached) " >&6
  21191. else
  21192. if autoopts-config --help 2>/dev/null 1>&2
  21193. then lo_cv_with_autoopts_config=autoopts-config
  21194. elif libopts-config --help 2>/dev/null 1>&2
  21195. then lo_cv_with_autoopts_config=libopts-config
  21196. else lo_cv_with_autoopts_config=no ; fi
  21197. fi
  21198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
  21199. $as_echo "$lo_cv_with_autoopts_config" >&6; }
  21200. fi
  21201. # end of AC_ARG_WITH
  21202. if ${lo_cv_test_autoopts+:} false; then :
  21203. $as_echo_n "(cached) " >&6
  21204. else
  21205. if test -z "${lo_cv_with_autoopts_config}" \
  21206. -o X"${lo_cv_with_autoopts_config}" = Xno
  21207. then
  21208. if autoopts-config --help 2>/dev/null 1>&2
  21209. then lo_cv_with_autoopts_config=autoopts-config
  21210. elif libopts-config --help 2>/dev/null 1>&2
  21211. then lo_cv_with_autoopts_config=libopts-config
  21212. else lo_cv_with_autoopts_config=false ; fi
  21213. fi
  21214. lo_cv_test_autoopts=`
  21215. ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
  21216. if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
  21217. then lo_cv_test_autoopts=no ; fi
  21218. fi
  21219. # end of CACHE_VAL
  21220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
  21221. $as_echo "${lo_cv_test_autoopts}" >&6; }
  21222. if test "X${lo_cv_test_autoopts}" != Xno
  21223. then
  21224. LIBOPTS_LDADD="${lo_cv_test_autoopts}"
  21225. LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
  21226. else
  21227. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  21228. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  21229. NEED_LIBOPTS_DIR=true
  21230. fi
  21231. fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  21232. if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
  21233. NEED_LIBOPTS_DIR=''
  21234. fi
  21235. if test -n "${NEED_LIBOPTS_DIR}"; then
  21236. NEED_LIBOPTS_TRUE=
  21237. NEED_LIBOPTS_FALSE='#'
  21238. else
  21239. NEED_LIBOPTS_TRUE='#'
  21240. NEED_LIBOPTS_FALSE=
  21241. fi
  21242. LIBOPTS_DIR=libopts
  21243. # end of AC_DEFUN of LIBOPTS_CHECK_COMMON
  21244. if test -z "$NEED_LIBOPTS_TRUE"; then :
  21245. # Check to see if a reg expr header is specified.
  21246. # Check whether --with-regex-header was given.
  21247. if test "${with_regex_header+set}" = set; then :
  21248. withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
  21249. else
  21250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
  21251. $as_echo_n "checking whether a reg expr header is specified... " >&6; }
  21252. if ${libopts_cv_with_regex_header+:} false; then :
  21253. $as_echo_n "(cached) " >&6
  21254. else
  21255. libopts_cv_with_regex_header=no
  21256. fi
  21257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
  21258. $as_echo "$libopts_cv_with_regex_header" >&6; }
  21259. fi
  21260. # end of AC_ARG_WITH
  21261. if test "X${libopts_cv_with_regex_header}" != Xno
  21262. then
  21263. cat >>confdefs.h <<_ACEOF
  21264. #define REGEX_HEADER <${libopts_cv_with_regex_header}>
  21265. _ACEOF
  21266. else
  21267. $as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
  21268. fi
  21269. # Check to see if a working libregex can be found.
  21270. # Check whether --with-libregex was given.
  21271. if test "${with_libregex+set}" = set; then :
  21272. withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
  21273. else
  21274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
  21275. $as_echo_n "checking whether with-libregex was specified... " >&6; }
  21276. if ${libopts_cv_with_libregex_root+:} false; then :
  21277. $as_echo_n "(cached) " >&6
  21278. else
  21279. libopts_cv_with_libregex_root=no
  21280. fi
  21281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
  21282. $as_echo "$libopts_cv_with_libregex_root" >&6; }
  21283. fi
  21284. # end of AC_ARG_WITH libregex
  21285. if test "${with_libregex+set}" = set && \
  21286. test "X${withval}" = Xno
  21287. then ## disabled by request
  21288. libopts_cv_with_libregex_root=no
  21289. libopts_cv_with_libregex_cflags=no
  21290. libopts_cv_with_libregex_libs=no
  21291. else
  21292. # Check whether --with-libregex-cflags was given.
  21293. if test "${with_libregex_cflags+set}" = set; then :
  21294. withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_libregex_cflags}
  21295. else
  21296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
  21297. $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
  21298. if ${libopts_cv_with_libregex_cflags+:} false; then :
  21299. $as_echo_n "(cached) " >&6
  21300. else
  21301. libopts_cv_with_libregex_cflags=no
  21302. fi
  21303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
  21304. $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
  21305. fi
  21306. # end of AC_ARG_WITH libregex-cflags
  21307. # Check whether --with-libregex-libs was given.
  21308. if test "${with_libregex_libs+set}" = set; then :
  21309. withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_libregex_libs}
  21310. else
  21311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
  21312. $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
  21313. if ${libopts_cv_with_libregex_libs+:} false; then :
  21314. $as_echo_n "(cached) " >&6
  21315. else
  21316. libopts_cv_with_libregex_libs=no
  21317. fi
  21318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
  21319. $as_echo "$libopts_cv_with_libregex_libs" >&6; }
  21320. fi
  21321. # end of AC_ARG_WITH libregex-libs
  21322. case "X${libopts_cv_with_libregex_cflags}" in
  21323. Xyes|Xno|X )
  21324. case "X${libopts_cv_with_libregex_root}" in
  21325. Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
  21326. * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
  21327. esac
  21328. esac
  21329. case "X${libopts_cv_with_libregex_libs}" in
  21330. Xyes|Xno|X )
  21331. case "X${libopts_cv_with_libregex_root}" in
  21332. Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
  21333. * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex" ;;
  21334. esac
  21335. esac
  21336. libopts_save_CPPFLAGS="${CPPFLAGS}"
  21337. libopts_save_LIBS="${LIBS}"
  21338. case "X${libopts_cv_with_libregex_cflags}" in
  21339. Xyes|Xno|X )
  21340. libopts_cv_with_libregex_cflags="" ;;
  21341. * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
  21342. esac
  21343. case "X${libopts_cv_with_libregex_libs}" in
  21344. Xyes|Xno|X )
  21345. libopts_cv_with_libregex_libs="" ;;
  21346. * )
  21347. LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
  21348. esac
  21349. LIBREGEX_CFLAGS=""
  21350. LIBREGEX_LIBS=""
  21351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
  21352. $as_echo_n "checking whether libregex functions properly... " >&6; }
  21353. if ${libopts_cv_with_libregex+:} false; then :
  21354. $as_echo_n "(cached) " >&6
  21355. else
  21356. if test "$cross_compiling" = yes; then :
  21357. libopts_cv_with_libregex=no
  21358. else
  21359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21360. /* end confdefs.h. */
  21361. #include <stdio.h>
  21362. #include <stdlib.h>
  21363. #include <sys/types.h>
  21364. #include REGEX_HEADER
  21365. static regex_t re;
  21366. void comp_re(char const * pzPat) {
  21367. int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
  21368. if (res == 0) return;
  21369. exit( res ); }
  21370. int main() {
  21371. regmatch_t m[2];
  21372. comp_re( "^.*\$" );
  21373. comp_re( "()|no.*" );
  21374. comp_re( "." );
  21375. if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
  21376. if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
  21377. fputs( "error: regex -->.<-- did not match\n", stderr );
  21378. return 1;
  21379. }
  21380. return 0; }
  21381. _ACEOF
  21382. if ac_fn_c_try_run "$LINENO"; then :
  21383. libopts_cv_with_libregex=yes
  21384. else
  21385. libopts_cv_with_libregex=no
  21386. fi
  21387. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21388. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21389. fi
  21390. # end of AC_RUN_IFELSE
  21391. fi
  21392. # end of AC_CACHE_VAL for libopts_cv_with_libregex
  21393. fi ## disabled by request
  21394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
  21395. $as_echo "${libopts_cv_with_libregex}" >&6; }
  21396. if test "X${libopts_cv_with_libregex}" != Xno
  21397. then
  21398. $as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
  21399. else
  21400. CPPFLAGS="${libopts_save_CPPFLAGS}"
  21401. LIBS="${libopts_save_LIBS}"
  21402. libopts_cv_with_libregex_root=no
  21403. libopts_cv_with_libregex_cflags=no
  21404. libopts_cv_with_libregex_libs=no
  21405. libopts_cv_with_libregex=no
  21406. fi
  21407. # Check to see if pathfind(3) works.
  21408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
  21409. $as_echo_n "checking whether pathfind(3) works... " >&6; }
  21410. if ${libopts_cv_run_pathfind+:} false; then :
  21411. $as_echo_n "(cached) " >&6
  21412. else
  21413. if test "$cross_compiling" = yes; then :
  21414. libopts_cv_run_pathfind=no
  21415. else
  21416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21417. /* end confdefs.h. */
  21418. #include <string.h>
  21419. #include <stdlib.h>
  21420. int main (int argc, char ** argv) {
  21421. char * pz = pathfind( getenv( "PATH" ), "sh", "x" );
  21422. return (pz == 0) ? 1 : 0;
  21423. }
  21424. _ACEOF
  21425. if ac_fn_c_try_run "$LINENO"; then :
  21426. libopts_cv_run_pathfind=yes
  21427. else
  21428. libopts_cv_run_pathfind=no
  21429. fi
  21430. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21431. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21432. fi
  21433. # end of RUN_IFELSE
  21434. fi
  21435. # end of AC_CACHE_VAL for libopts_cv_run_pathfind
  21436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
  21437. $as_echo "${libopts_cv_run_pathfind}" >&6; }
  21438. if test "X${libopts_cv_run_pathfind}" != Xno
  21439. then
  21440. $as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
  21441. fi
  21442. # Check to see if /dev/zero is readable device.
  21443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
  21444. $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
  21445. if ${libopts_cv_test_dev_zero+:} false; then :
  21446. $as_echo_n "(cached) " >&6
  21447. else
  21448. libopts_cv_test_dev_zero=`exec 2> /dev/null
  21449. dzero=\`ls -lL /dev/zero | egrep ^c......r\`
  21450. test -z "${dzero}" && exit 1
  21451. echo ${dzero}`
  21452. if test $? -ne 0 || test -z "$libopts_cv_test_dev_zero"
  21453. then libopts_cv_test_dev_zero=no
  21454. fi
  21455. fi
  21456. # end of CACHE_VAL of libopts_cv_test_dev_zero
  21457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
  21458. $as_echo "${libopts_cv_test_dev_zero}" >&6; }
  21459. if test "X${libopts_cv_test_dev_zero}" != Xno
  21460. then
  21461. $as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
  21462. fi
  21463. # Check to see if we have a functional realpath(3C).
  21464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
  21465. $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
  21466. if ${libopts_cv_run_realpath+:} false; then :
  21467. $as_echo_n "(cached) " >&6
  21468. else
  21469. if test "$cross_compiling" = yes; then :
  21470. libopts_cv_run_realpath=no
  21471. else
  21472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21473. /* end confdefs.h. */
  21474. #include <limits.h>
  21475. #include <stdlib.h>
  21476. int main (int argc, char ** argv) {
  21477. #ifndef PATH_MAX
  21478. choke me!!
  21479. #else
  21480. char zPath[PATH_MAX+1];
  21481. #endif
  21482. char *pz = realpath(argv[0], zPath);
  21483. return (pz == zPath) ? 0 : 1;
  21484. }
  21485. _ACEOF
  21486. if ac_fn_c_try_run "$LINENO"; then :
  21487. libopts_cv_run_realpath=yes
  21488. else
  21489. libopts_cv_run_realpath=no
  21490. fi
  21491. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21492. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21493. fi
  21494. # end of RUN_IFELSE
  21495. fi
  21496. # end of AC_CACHE_VAL for libopts_cv_run_realpath
  21497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
  21498. $as_echo "${libopts_cv_run_realpath}" >&6; }
  21499. if test "X${libopts_cv_run_realpath}" != Xno
  21500. then
  21501. $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
  21502. fi
  21503. # Check to see if strftime() works.
  21504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
  21505. $as_echo_n "checking whether strftime() works... " >&6; }
  21506. if ${libopts_cv_run_strftime+:} false; then :
  21507. $as_echo_n "(cached) " >&6
  21508. else
  21509. if test "$cross_compiling" = yes; then :
  21510. libopts_cv_run_strftime=no
  21511. else
  21512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21513. /* end confdefs.h. */
  21514. #include <time.h>
  21515. #include <string.h>
  21516. char t_buf[ 64 ];
  21517. int main() {
  21518. static char const z[] = "Thursday Aug 28 240";
  21519. struct tm tm;
  21520. tm.tm_sec = 36; /* seconds after the minute [0, 61] */
  21521. tm.tm_min = 44; /* minutes after the hour [0, 59] */
  21522. tm.tm_hour = 12; /* hour since midnight [0, 23] */
  21523. tm.tm_mday = 28; /* day of the month [1, 31] */
  21524. tm.tm_mon = 7; /* months since January [0, 11] */
  21525. tm.tm_year = 86; /* years since 1900 */
  21526. tm.tm_wday = 4; /* days since Sunday [0, 6] */
  21527. tm.tm_yday = 239; /* days since January 1 [0, 365] */
  21528. tm.tm_isdst = 1; /* flag for daylight savings time */
  21529. strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
  21530. return (strcmp( t_buf, z ) != 0); }
  21531. _ACEOF
  21532. if ac_fn_c_try_run "$LINENO"; then :
  21533. libopts_cv_run_strftime=yes
  21534. else
  21535. libopts_cv_run_strftime=no
  21536. fi
  21537. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21538. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21539. fi
  21540. # end of RUN_IFELSE
  21541. fi
  21542. # end of AC_CACHE_VAL for libopts_cv_run_strftime
  21543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
  21544. $as_echo "${libopts_cv_run_strftime}" >&6; }
  21545. if test "X${libopts_cv_run_strftime}" != Xno
  21546. then
  21547. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  21548. fi
  21549. # Check to see if fopen accepts "b" mode.
  21550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
  21551. $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
  21552. if ${libopts_cv_run_fopen_binary+:} false; then :
  21553. $as_echo_n "(cached) " >&6
  21554. else
  21555. if test "$cross_compiling" = yes; then :
  21556. libopts_cv_run_fopen_binary=no
  21557. else
  21558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21559. /* end confdefs.h. */
  21560. #include <stdio.h>
  21561. int main (int argc, char ** argv) {
  21562. FILE * fp = fopen("conftest.$ac_ext", "rb");
  21563. return (fp == NULL) ? 1 : fclose(fp); }
  21564. _ACEOF
  21565. if ac_fn_c_try_run "$LINENO"; then :
  21566. libopts_cv_run_fopen_binary=yes
  21567. else
  21568. libopts_cv_run_fopen_binary=no
  21569. fi
  21570. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21571. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21572. fi
  21573. # end of RUN_IFELSE
  21574. fi
  21575. # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
  21576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
  21577. $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
  21578. if test "X${libopts_cv_run_fopen_binary}" != Xno
  21579. then
  21580. $as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
  21581. else
  21582. $as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
  21583. fi
  21584. # Check to see if fopen accepts "t" mode.
  21585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
  21586. $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
  21587. if ${libopts_cv_run_fopen_text+:} false; then :
  21588. $as_echo_n "(cached) " >&6
  21589. else
  21590. if test "$cross_compiling" = yes; then :
  21591. libopts_cv_run_fopen_text=no
  21592. else
  21593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21594. /* end confdefs.h. */
  21595. #include <stdio.h>
  21596. int main (int argc, char ** argv) {
  21597. FILE * fp = fopen("conftest.$ac_ext", "rt");
  21598. return (fp == NULL) ? 1 : fclose(fp); }
  21599. _ACEOF
  21600. if ac_fn_c_try_run "$LINENO"; then :
  21601. libopts_cv_run_fopen_text=yes
  21602. else
  21603. libopts_cv_run_fopen_text=no
  21604. fi
  21605. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21606. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21607. fi
  21608. # end of RUN_IFELSE
  21609. fi
  21610. # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
  21611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
  21612. $as_echo "${libopts_cv_run_fopen_text}" >&6; }
  21613. if test "X${libopts_cv_run_fopen_text}" != Xno
  21614. then
  21615. $as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
  21616. else
  21617. $as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
  21618. fi
  21619. # Check to see if not wanting optional option args.
  21620. # Check whether --enable-optional-args was given.
  21621. if test "${enable_optional_args+set}" = set; then :
  21622. enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
  21623. else
  21624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
  21625. $as_echo_n "checking whether not wanting optional option args... " >&6; }
  21626. if ${libopts_cv_enable_optional_args+:} false; then :
  21627. $as_echo_n "(cached) " >&6
  21628. else
  21629. libopts_cv_enable_optional_args=yes
  21630. fi
  21631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
  21632. $as_echo "$libopts_cv_enable_optional_args" >&6; }
  21633. fi
  21634. # end of AC_ARG_ENABLE
  21635. if test "X${libopts_cv_enable_optional_args}" = Xno
  21636. then
  21637. $as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
  21638. fi
  21639. fi
  21640. ac_config_files="$ac_config_files libopts/Makefile"
  21641. # end of AC_DEFUN of LIBOPTS_CHECK
  21642. 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"
  21643. cat >confcache <<\_ACEOF
  21644. # This file is a shell script that caches the results of configure
  21645. # tests run on this system so they can be shared between configure
  21646. # scripts and configure runs, see configure's option --config-cache.
  21647. # It is not useful on other systems. If it contains results you don't
  21648. # want to keep, you may remove or edit it.
  21649. #
  21650. # config.status only pays attention to the cache file if you give it
  21651. # the --recheck option to rerun configure.
  21652. #
  21653. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21654. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21655. # following values.
  21656. _ACEOF
  21657. # The following way of writing the cache mishandles newlines in values,
  21658. # but we know of no workaround that is simple, portable, and efficient.
  21659. # So, we kill variables containing newlines.
  21660. # Ultrix sh set writes to stderr and can't be redirected directly,
  21661. # and sets the high bit in the cache file unless we assign to the vars.
  21662. (
  21663. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21664. eval ac_val=\$$ac_var
  21665. case $ac_val in #(
  21666. *${as_nl}*)
  21667. case $ac_var in #(
  21668. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  21669. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21670. esac
  21671. case $ac_var in #(
  21672. _ | IFS | as_nl) ;; #(
  21673. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21674. *) { eval $ac_var=; unset $ac_var;} ;;
  21675. esac ;;
  21676. esac
  21677. done
  21678. (set) 2>&1 |
  21679. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21680. *${as_nl}ac_space=\ *)
  21681. # `set' does not quote correctly, so add quotes: double-quote
  21682. # substitution turns \\\\ into \\, and sed turns \\ into \.
  21683. sed -n \
  21684. "s/'/'\\\\''/g;
  21685. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21686. ;; #(
  21687. *)
  21688. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21689. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21690. ;;
  21691. esac |
  21692. sort
  21693. ) |
  21694. sed '
  21695. /^ac_cv_env_/b end
  21696. t clear
  21697. :clear
  21698. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21699. t end
  21700. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21701. :end' >>confcache
  21702. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21703. if test -w "$cache_file"; then
  21704. if test "x$cache_file" != "x/dev/null"; then
  21705. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  21706. $as_echo "$as_me: updating cache $cache_file" >&6;}
  21707. if test ! -f "$cache_file" || test -h "$cache_file"; then
  21708. cat confcache >"$cache_file"
  21709. else
  21710. case $cache_file in #(
  21711. */* | ?:*)
  21712. mv -f confcache "$cache_file"$$ &&
  21713. mv -f "$cache_file"$$ "$cache_file" ;; #(
  21714. *)
  21715. mv -f confcache "$cache_file" ;;
  21716. esac
  21717. fi
  21718. fi
  21719. else
  21720. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  21721. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21722. fi
  21723. fi
  21724. rm -f confcache
  21725. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21726. # Let make expand exec_prefix.
  21727. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21728. DEFS=-DHAVE_CONFIG_H
  21729. ac_libobjs=
  21730. ac_ltlibobjs=
  21731. U=
  21732. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21733. # 1. Remove the extension, and $U if already installed.
  21734. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21735. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  21736. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21737. # will be set to the directory where LIBOBJS objects are built.
  21738. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21739. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  21740. done
  21741. LIBOBJS=$ac_libobjs
  21742. LTLIBOBJS=$ac_ltlibobjs
  21743. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  21744. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  21745. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21746. fi
  21747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  21748. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  21749. if test -n "$am_sleep_pid"; then
  21750. # Hide warnings about reused PIDs.
  21751. wait $am_sleep_pid 2>/dev/null
  21752. fi
  21753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  21754. $as_echo "done" >&6; }
  21755. if test -n "$EXEEXT"; then
  21756. am__EXEEXT_TRUE=
  21757. am__EXEEXT_FALSE='#'
  21758. else
  21759. am__EXEEXT_TRUE='#'
  21760. am__EXEEXT_FALSE=
  21761. fi
  21762. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  21763. as_fn_error $? "conditional \"AMDEP\" was never defined.
  21764. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21765. fi
  21766. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  21767. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  21768. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21769. fi
  21770. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  21771. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  21772. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21773. fi
  21774. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  21775. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  21776. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21777. fi
  21778. if test -z "${SYSTEM_STRLCPY_TRUE}" && test -z "${SYSTEM_STRLCPY_FALSE}"; then
  21779. as_fn_error $? "conditional \"SYSTEM_STRLCPY\" was never defined.
  21780. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21781. fi
  21782. if test -z "${WORDS_BIGENDIAN_TRUE}" && test -z "${WORDS_BIGENDIAN_FALSE}"; then
  21783. as_fn_error $? "conditional \"WORDS_BIGENDIAN\" was never defined.
  21784. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21785. fi
  21786. if test -z "${COMPILE_TCPBRIDGE_TRUE}" && test -z "${COMPILE_TCPBRIDGE_FALSE}"; then
  21787. as_fn_error $? "conditional \"COMPILE_TCPBRIDGE\" was never defined.
  21788. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21789. fi
  21790. if test -z "${COMPILE_TCPLIVEPLAY_TRUE}" && test -z "${COMPILE_TCPLIVEPLAY_FALSE}"; then
  21791. as_fn_error $? "conditional \"COMPILE_TCPLIVEPLAY\" was never defined.
  21792. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21793. fi
  21794. if test -z "${COMPILE_NETMAP_TRUE}" && test -z "${COMPILE_NETMAP_FALSE}"; then
  21795. as_fn_error $? "conditional \"COMPILE_NETMAP\" was never defined.
  21796. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21797. fi
  21798. if test -z "${COMPILE_FRAGROUTE_TRUE}" && test -z "${COMPILE_FRAGROUTE_FALSE}"; then
  21799. as_fn_error $? "conditional \"COMPILE_FRAGROUTE\" was never defined.
  21800. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21801. fi
  21802. if test -z "${ENABLE_TCPDUMP_TRUE}" && test -z "${ENABLE_TCPDUMP_FALSE}"; then
  21803. as_fn_error $? "conditional \"ENABLE_TCPDUMP\" was never defined.
  21804. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21805. fi
  21806. if test -z "${ENABLE_OSX_FRAMEWORKS_TRUE}" && test -z "${ENABLE_OSX_FRAMEWORKS_FALSE}"; then
  21807. as_fn_error $? "conditional \"ENABLE_OSX_FRAMEWORKS\" was never defined.
  21808. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21809. fi
  21810. if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
  21811. as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
  21812. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21813. fi
  21814. if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
  21815. as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
  21816. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21817. fi
  21818. if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
  21819. as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
  21820. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21821. fi
  21822. : "${CONFIG_STATUS=./config.status}"
  21823. ac_write_fail=0
  21824. ac_clean_files_save=$ac_clean_files
  21825. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21826. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  21827. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21828. as_write_fail=0
  21829. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  21830. #! $SHELL
  21831. # Generated by $as_me.
  21832. # Run this file to recreate the current configuration.
  21833. # Compiler output produced by configure, useful for debugging
  21834. # configure, is in config.log if it exists.
  21835. debug=false
  21836. ac_cs_recheck=false
  21837. ac_cs_silent=false
  21838. SHELL=\${CONFIG_SHELL-$SHELL}
  21839. export SHELL
  21840. _ASEOF
  21841. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  21842. ## -------------------- ##
  21843. ## M4sh Initialization. ##
  21844. ## -------------------- ##
  21845. # Be more Bourne compatible
  21846. DUALCASE=1; export DUALCASE # for MKS sh
  21847. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21848. emulate sh
  21849. NULLCMD=:
  21850. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21851. # is contrary to our usage. Disable this feature.
  21852. alias -g '${1+"$@"}'='"$@"'
  21853. setopt NO_GLOB_SUBST
  21854. else
  21855. case `(set -o) 2>/dev/null` in #(
  21856. *posix*) :
  21857. set -o posix ;; #(
  21858. *) :
  21859. ;;
  21860. esac
  21861. fi
  21862. as_nl='
  21863. '
  21864. export as_nl
  21865. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  21866. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  21867. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  21868. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  21869. # Prefer a ksh shell builtin over an external printf program on Solaris,
  21870. # but without wasting forks for bash or zsh.
  21871. if test -z "$BASH_VERSION$ZSH_VERSION" \
  21872. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  21873. as_echo='print -r --'
  21874. as_echo_n='print -rn --'
  21875. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  21876. as_echo='printf %s\n'
  21877. as_echo_n='printf %s'
  21878. else
  21879. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  21880. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  21881. as_echo_n='/usr/ucb/echo -n'
  21882. else
  21883. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  21884. as_echo_n_body='eval
  21885. arg=$1;
  21886. case $arg in #(
  21887. *"$as_nl"*)
  21888. expr "X$arg" : "X\\(.*\\)$as_nl";
  21889. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  21890. esac;
  21891. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  21892. '
  21893. export as_echo_n_body
  21894. as_echo_n='sh -c $as_echo_n_body as_echo'
  21895. fi
  21896. export as_echo_body
  21897. as_echo='sh -c $as_echo_body as_echo'
  21898. fi
  21899. # The user is always right.
  21900. if test "${PATH_SEPARATOR+set}" != set; then
  21901. PATH_SEPARATOR=:
  21902. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  21903. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  21904. PATH_SEPARATOR=';'
  21905. }
  21906. fi
  21907. # IFS
  21908. # We need space, tab and new line, in precisely that order. Quoting is
  21909. # there to prevent editors from complaining about space-tab.
  21910. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  21911. # splitting by setting IFS to empty value.)
  21912. IFS=" "" $as_nl"
  21913. # Find who we are. Look in the path if we contain no directory separator.
  21914. as_myself=
  21915. case $0 in #((
  21916. *[\\/]* ) as_myself=$0 ;;
  21917. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21918. for as_dir in $PATH
  21919. do
  21920. IFS=$as_save_IFS
  21921. test -z "$as_dir" && as_dir=.
  21922. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  21923. done
  21924. IFS=$as_save_IFS
  21925. ;;
  21926. esac
  21927. # We did not find ourselves, most probably we were run as `sh COMMAND'
  21928. # in which case we are not to be found in the path.
  21929. if test "x$as_myself" = x; then
  21930. as_myself=$0
  21931. fi
  21932. if test ! -f "$as_myself"; then
  21933. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  21934. exit 1
  21935. fi
  21936. # Unset variables that we do not need and which cause bugs (e.g. in
  21937. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  21938. # suppresses any "Segmentation fault" message there. '((' could
  21939. # trigger a bug in pdksh 5.2.14.
  21940. for as_var in BASH_ENV ENV MAIL MAILPATH
  21941. do eval test x\${$as_var+set} = xset \
  21942. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  21943. done
  21944. PS1='$ '
  21945. PS2='> '
  21946. PS4='+ '
  21947. # NLS nuisances.
  21948. LC_ALL=C
  21949. export LC_ALL
  21950. LANGUAGE=C
  21951. export LANGUAGE
  21952. # CDPATH.
  21953. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21954. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  21955. # ----------------------------------------
  21956. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  21957. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  21958. # script with STATUS, using 1 if that was 0.
  21959. as_fn_error ()
  21960. {
  21961. as_status=$1; test $as_status -eq 0 && as_status=1
  21962. if test "$4"; then
  21963. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  21964. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  21965. fi
  21966. $as_echo "$as_me: error: $2" >&2
  21967. as_fn_exit $as_status
  21968. } # as_fn_error
  21969. # as_fn_set_status STATUS
  21970. # -----------------------
  21971. # Set $? to STATUS, without forking.
  21972. as_fn_set_status ()
  21973. {
  21974. return $1
  21975. } # as_fn_set_status
  21976. # as_fn_exit STATUS
  21977. # -----------------
  21978. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  21979. as_fn_exit ()
  21980. {
  21981. set +e
  21982. as_fn_set_status $1
  21983. exit $1
  21984. } # as_fn_exit
  21985. # as_fn_unset VAR
  21986. # ---------------
  21987. # Portably unset VAR.
  21988. as_fn_unset ()
  21989. {
  21990. { eval $1=; unset $1;}
  21991. }
  21992. as_unset=as_fn_unset
  21993. # as_fn_append VAR VALUE
  21994. # ----------------------
  21995. # Append the text in VALUE to the end of the definition contained in VAR. Take
  21996. # advantage of any shell optimizations that allow amortized linear growth over
  21997. # repeated appends, instead of the typical quadratic growth present in naive
  21998. # implementations.
  21999. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  22000. eval 'as_fn_append ()
  22001. {
  22002. eval $1+=\$2
  22003. }'
  22004. else
  22005. as_fn_append ()
  22006. {
  22007. eval $1=\$$1\$2
  22008. }
  22009. fi # as_fn_append
  22010. # as_fn_arith ARG...
  22011. # ------------------
  22012. # Perform arithmetic evaluation on the ARGs, and store the result in the
  22013. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  22014. # must be portable across $(()) and expr.
  22015. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  22016. eval 'as_fn_arith ()
  22017. {
  22018. as_val=$(( $* ))
  22019. }'
  22020. else
  22021. as_fn_arith ()
  22022. {
  22023. as_val=`expr "$@" || test $? -eq 1`
  22024. }
  22025. fi # as_fn_arith
  22026. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22027. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22028. as_expr=expr
  22029. else
  22030. as_expr=false
  22031. fi
  22032. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22033. as_basename=basename
  22034. else
  22035. as_basename=false
  22036. fi
  22037. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22038. as_dirname=dirname
  22039. else
  22040. as_dirname=false
  22041. fi
  22042. as_me=`$as_basename -- "$0" ||
  22043. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22044. X"$0" : 'X\(//\)$' \| \
  22045. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22046. $as_echo X/"$0" |
  22047. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22048. s//\1/
  22049. q
  22050. }
  22051. /^X\/\(\/\/\)$/{
  22052. s//\1/
  22053. q
  22054. }
  22055. /^X\/\(\/\).*/{
  22056. s//\1/
  22057. q
  22058. }
  22059. s/.*/./; q'`
  22060. # Avoid depending upon Character Ranges.
  22061. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22062. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22063. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22064. as_cr_digits='0123456789'
  22065. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22066. ECHO_C= ECHO_N= ECHO_T=
  22067. case `echo -n x` in #(((((
  22068. -n*)
  22069. case `echo 'xy\c'` in
  22070. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22071. xy) ECHO_C='\c';;
  22072. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  22073. ECHO_T=' ';;
  22074. esac;;
  22075. *)
  22076. ECHO_N='-n';;
  22077. esac
  22078. rm -f conf$$ conf$$.exe conf$$.file
  22079. if test -d conf$$.dir; then
  22080. rm -f conf$$.dir/conf$$.file
  22081. else
  22082. rm -f conf$$.dir
  22083. mkdir conf$$.dir 2>/dev/null
  22084. fi
  22085. if (echo >conf$$.file) 2>/dev/null; then
  22086. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22087. as_ln_s='ln -s'
  22088. # ... but there are two gotchas:
  22089. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22090. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22091. # In both cases, we have to default to `cp -pR'.
  22092. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22093. as_ln_s='cp -pR'
  22094. elif ln conf$$.file conf$$ 2>/dev/null; then
  22095. as_ln_s=ln
  22096. else
  22097. as_ln_s='cp -pR'
  22098. fi
  22099. else
  22100. as_ln_s='cp -pR'
  22101. fi
  22102. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22103. rmdir conf$$.dir 2>/dev/null
  22104. # as_fn_mkdir_p
  22105. # -------------
  22106. # Create "$as_dir" as a directory, including parents if necessary.
  22107. as_fn_mkdir_p ()
  22108. {
  22109. case $as_dir in #(
  22110. -*) as_dir=./$as_dir;;
  22111. esac
  22112. test -d "$as_dir" || eval $as_mkdir_p || {
  22113. as_dirs=
  22114. while :; do
  22115. case $as_dir in #(
  22116. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22117. *) as_qdir=$as_dir;;
  22118. esac
  22119. as_dirs="'$as_qdir' $as_dirs"
  22120. as_dir=`$as_dirname -- "$as_dir" ||
  22121. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22122. X"$as_dir" : 'X\(//\)[^/]' \| \
  22123. X"$as_dir" : 'X\(//\)$' \| \
  22124. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22125. $as_echo X"$as_dir" |
  22126. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22127. s//\1/
  22128. q
  22129. }
  22130. /^X\(\/\/\)[^/].*/{
  22131. s//\1/
  22132. q
  22133. }
  22134. /^X\(\/\/\)$/{
  22135. s//\1/
  22136. q
  22137. }
  22138. /^X\(\/\).*/{
  22139. s//\1/
  22140. q
  22141. }
  22142. s/.*/./; q'`
  22143. test -d "$as_dir" && break
  22144. done
  22145. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22146. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  22147. } # as_fn_mkdir_p
  22148. if mkdir -p . 2>/dev/null; then
  22149. as_mkdir_p='mkdir -p "$as_dir"'
  22150. else
  22151. test -d ./-p && rmdir ./-p
  22152. as_mkdir_p=false
  22153. fi
  22154. # as_fn_executable_p FILE
  22155. # -----------------------
  22156. # Test if FILE is an executable regular file.
  22157. as_fn_executable_p ()
  22158. {
  22159. test -f "$1" && test -x "$1"
  22160. } # as_fn_executable_p
  22161. as_test_x='test -x'
  22162. as_executable_p=as_fn_executable_p
  22163. # Sed expression to map a string onto a valid CPP name.
  22164. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22165. # Sed expression to map a string onto a valid variable name.
  22166. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22167. exec 6>&1
  22168. ## ----------------------------------- ##
  22169. ## Main body of $CONFIG_STATUS script. ##
  22170. ## ----------------------------------- ##
  22171. _ASEOF
  22172. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22173. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22174. # Save the log message, to keep $0 and so on meaningful, and to
  22175. # report actual input values of CONFIG_FILES etc. instead of their
  22176. # values after options handling.
  22177. ac_log="
  22178. This file was extended by tcpreplay $as_me 4.4.0, which was
  22179. generated by GNU Autoconf 2.69. Invocation command line was
  22180. CONFIG_FILES = $CONFIG_FILES
  22181. CONFIG_HEADERS = $CONFIG_HEADERS
  22182. CONFIG_LINKS = $CONFIG_LINKS
  22183. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22184. $ $0 $@
  22185. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22186. "
  22187. _ACEOF
  22188. case $ac_config_files in *"
  22189. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22190. esac
  22191. case $ac_config_headers in *"
  22192. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22193. esac
  22194. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22195. # Files that config.status was made for.
  22196. config_files="$ac_config_files"
  22197. config_headers="$ac_config_headers"
  22198. config_commands="$ac_config_commands"
  22199. _ACEOF
  22200. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22201. ac_cs_usage="\
  22202. \`$as_me' instantiates files and other configuration actions
  22203. from templates according to the current configuration. Unless the files
  22204. and actions are specified as TAGs, all are instantiated by default.
  22205. Usage: $0 [OPTION]... [TAG]...
  22206. -h, --help print this help, then exit
  22207. -V, --version print version number and configuration settings, then exit
  22208. --config print configuration, then exit
  22209. -q, --quiet, --silent
  22210. do not print progress messages
  22211. -d, --debug don't remove temporary files
  22212. --recheck update $as_me by reconfiguring in the same conditions
  22213. --file=FILE[:TEMPLATE]
  22214. instantiate the configuration file FILE
  22215. --header=FILE[:TEMPLATE]
  22216. instantiate the configuration header FILE
  22217. Configuration files:
  22218. $config_files
  22219. Configuration headers:
  22220. $config_headers
  22221. Configuration commands:
  22222. $config_commands
  22223. Report bugs to <https://github.com/appneta/tcpreplay/issues>.
  22224. tcpreplay home page: <http://tcpreplay.sourceforge.net/>."
  22225. _ACEOF
  22226. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22227. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  22228. ac_cs_version="\\
  22229. tcpreplay config.status 4.4.0
  22230. configured by $0, generated by GNU Autoconf 2.69,
  22231. with options \\"\$ac_cs_config\\"
  22232. Copyright (C) 2012 Free Software Foundation, Inc.
  22233. This config.status script is free software; the Free Software Foundation
  22234. gives unlimited permission to copy, distribute and modify it."
  22235. ac_pwd='$ac_pwd'
  22236. srcdir='$srcdir'
  22237. INSTALL='$INSTALL'
  22238. MKDIR_P='$MKDIR_P'
  22239. AWK='$AWK'
  22240. test -n "\$AWK" || AWK=awk
  22241. _ACEOF
  22242. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22243. # The default lists apply if the user does not specify any file.
  22244. ac_need_defaults=:
  22245. while test $# != 0
  22246. do
  22247. case $1 in
  22248. --*=?*)
  22249. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22250. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22251. ac_shift=:
  22252. ;;
  22253. --*=)
  22254. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22255. ac_optarg=
  22256. ac_shift=:
  22257. ;;
  22258. *)
  22259. ac_option=$1
  22260. ac_optarg=$2
  22261. ac_shift=shift
  22262. ;;
  22263. esac
  22264. case $ac_option in
  22265. # Handling of the options.
  22266. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22267. ac_cs_recheck=: ;;
  22268. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22269. $as_echo "$ac_cs_version"; exit ;;
  22270. --config | --confi | --conf | --con | --co | --c )
  22271. $as_echo "$ac_cs_config"; exit ;;
  22272. --debug | --debu | --deb | --de | --d | -d )
  22273. debug=: ;;
  22274. --file | --fil | --fi | --f )
  22275. $ac_shift
  22276. case $ac_optarg in
  22277. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22278. '') as_fn_error $? "missing file argument" ;;
  22279. esac
  22280. as_fn_append CONFIG_FILES " '$ac_optarg'"
  22281. ac_need_defaults=false;;
  22282. --header | --heade | --head | --hea )
  22283. $ac_shift
  22284. case $ac_optarg in
  22285. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22286. esac
  22287. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  22288. ac_need_defaults=false;;
  22289. --he | --h)
  22290. # Conflict between --help and --header
  22291. as_fn_error $? "ambiguous option: \`$1'
  22292. Try \`$0 --help' for more information.";;
  22293. --help | --hel | -h )
  22294. $as_echo "$ac_cs_usage"; exit ;;
  22295. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22296. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22297. ac_cs_silent=: ;;
  22298. # This is an error.
  22299. -*) as_fn_error $? "unrecognized option: \`$1'
  22300. Try \`$0 --help' for more information." ;;
  22301. *) as_fn_append ac_config_targets " $1"
  22302. ac_need_defaults=false ;;
  22303. esac
  22304. shift
  22305. done
  22306. ac_configure_extra_args=
  22307. if $ac_cs_silent; then
  22308. exec 6>/dev/null
  22309. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22310. fi
  22311. _ACEOF
  22312. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22313. if \$ac_cs_recheck; then
  22314. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22315. shift
  22316. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22317. CONFIG_SHELL='$SHELL'
  22318. export CONFIG_SHELL
  22319. exec "\$@"
  22320. fi
  22321. _ACEOF
  22322. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22323. exec 5>>config.log
  22324. {
  22325. echo
  22326. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22327. ## Running $as_me. ##
  22328. _ASBOX
  22329. $as_echo "$ac_log"
  22330. } >&5
  22331. _ACEOF
  22332. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22333. #
  22334. # INIT-COMMANDS
  22335. #
  22336. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  22337. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22338. # if CDPATH is set.
  22339. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22340. sed_quote_subst='$sed_quote_subst'
  22341. double_quote_subst='$double_quote_subst'
  22342. delay_variable_subst='$delay_variable_subst'
  22343. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  22344. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  22345. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  22346. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  22347. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  22348. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  22349. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  22350. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  22351. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  22352. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  22353. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  22354. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  22355. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  22356. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  22357. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  22358. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  22359. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  22360. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  22361. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  22362. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  22363. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  22364. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  22365. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  22366. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  22367. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  22368. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  22369. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  22370. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  22371. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  22372. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  22373. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  22374. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  22375. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  22376. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  22377. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  22378. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  22379. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  22380. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  22381. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  22382. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  22383. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  22384. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  22385. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  22386. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  22387. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  22388. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  22389. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22390. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22391. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  22392. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  22393. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  22394. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  22395. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  22396. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  22397. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  22398. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  22399. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  22400. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  22401. 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"`'
  22402. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  22403. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  22404. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  22405. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  22406. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  22407. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  22408. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  22409. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  22410. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  22411. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  22412. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  22413. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  22414. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  22415. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  22416. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  22417. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  22418. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  22419. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  22420. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  22421. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  22422. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22423. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  22424. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  22425. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  22426. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  22427. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  22428. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  22429. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22430. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  22431. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22432. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  22433. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22434. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  22435. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22436. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22437. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  22438. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  22439. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  22440. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  22441. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  22442. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22443. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  22444. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  22445. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  22446. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  22447. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  22448. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  22449. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  22450. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  22451. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  22452. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  22453. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  22454. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  22455. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  22456. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  22457. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  22458. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22459. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  22460. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  22461. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  22462. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  22463. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  22464. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22465. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22466. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  22467. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  22468. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  22469. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  22470. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  22471. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  22472. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  22473. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  22474. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  22475. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  22476. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  22477. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  22478. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  22479. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  22480. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  22481. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  22482. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  22483. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  22484. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  22485. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22486. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22487. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22488. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  22489. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  22490. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22491. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  22492. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  22493. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  22494. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  22495. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  22496. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  22497. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22498. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22499. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  22500. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22501. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22502. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22503. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22504. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22505. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22506. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  22507. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22508. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22509. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22510. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  22511. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  22512. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  22513. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  22514. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  22515. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  22516. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  22517. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  22518. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  22519. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22520. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22521. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22522. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22523. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22524. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22525. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  22526. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  22527. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22528. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22529. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  22530. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  22531. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  22532. LTCC='$LTCC'
  22533. LTCFLAGS='$LTCFLAGS'
  22534. compiler='$compiler_DEFAULT'
  22535. # A function that is used when there is no print builtin or printf.
  22536. func_fallback_echo ()
  22537. {
  22538. eval 'cat <<_LTECHO_EOF
  22539. \$1
  22540. _LTECHO_EOF'
  22541. }
  22542. # Quote evaled strings.
  22543. for var in SHELL \
  22544. ECHO \
  22545. PATH_SEPARATOR \
  22546. SED \
  22547. GREP \
  22548. EGREP \
  22549. FGREP \
  22550. LD \
  22551. NM \
  22552. LN_S \
  22553. lt_SP2NL \
  22554. lt_NL2SP \
  22555. reload_flag \
  22556. OBJDUMP \
  22557. deplibs_check_method \
  22558. file_magic_cmd \
  22559. file_magic_glob \
  22560. want_nocaseglob \
  22561. DLLTOOL \
  22562. sharedlib_from_linklib_cmd \
  22563. AR \
  22564. AR_FLAGS \
  22565. archiver_list_spec \
  22566. STRIP \
  22567. RANLIB \
  22568. CC \
  22569. CFLAGS \
  22570. compiler \
  22571. lt_cv_sys_global_symbol_pipe \
  22572. lt_cv_sys_global_symbol_to_cdecl \
  22573. lt_cv_sys_global_symbol_to_import \
  22574. lt_cv_sys_global_symbol_to_c_name_address \
  22575. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  22576. lt_cv_nm_interface \
  22577. nm_file_list_spec \
  22578. lt_cv_truncate_bin \
  22579. lt_prog_compiler_no_builtin_flag \
  22580. lt_prog_compiler_pic \
  22581. lt_prog_compiler_wl \
  22582. lt_prog_compiler_static \
  22583. lt_cv_prog_compiler_c_o \
  22584. need_locks \
  22585. MANIFEST_TOOL \
  22586. DSYMUTIL \
  22587. NMEDIT \
  22588. LIPO \
  22589. OTOOL \
  22590. OTOOL64 \
  22591. shrext_cmds \
  22592. export_dynamic_flag_spec \
  22593. whole_archive_flag_spec \
  22594. compiler_needs_object \
  22595. with_gnu_ld \
  22596. allow_undefined_flag \
  22597. no_undefined_flag \
  22598. hardcode_libdir_flag_spec \
  22599. hardcode_libdir_separator \
  22600. exclude_expsyms \
  22601. include_expsyms \
  22602. file_list_spec \
  22603. variables_saved_for_relink \
  22604. libname_spec \
  22605. library_names_spec \
  22606. soname_spec \
  22607. install_override_mode \
  22608. finish_eval \
  22609. old_striplib \
  22610. striplib \
  22611. compiler_lib_search_dirs \
  22612. predep_objects \
  22613. postdep_objects \
  22614. predeps \
  22615. postdeps \
  22616. compiler_lib_search_path \
  22617. LD_CXX \
  22618. reload_flag_CXX \
  22619. compiler_CXX \
  22620. lt_prog_compiler_no_builtin_flag_CXX \
  22621. lt_prog_compiler_pic_CXX \
  22622. lt_prog_compiler_wl_CXX \
  22623. lt_prog_compiler_static_CXX \
  22624. lt_cv_prog_compiler_c_o_CXX \
  22625. export_dynamic_flag_spec_CXX \
  22626. whole_archive_flag_spec_CXX \
  22627. compiler_needs_object_CXX \
  22628. with_gnu_ld_CXX \
  22629. allow_undefined_flag_CXX \
  22630. no_undefined_flag_CXX \
  22631. hardcode_libdir_flag_spec_CXX \
  22632. hardcode_libdir_separator_CXX \
  22633. exclude_expsyms_CXX \
  22634. include_expsyms_CXX \
  22635. file_list_spec_CXX \
  22636. compiler_lib_search_dirs_CXX \
  22637. predep_objects_CXX \
  22638. postdep_objects_CXX \
  22639. predeps_CXX \
  22640. postdeps_CXX \
  22641. compiler_lib_search_path_CXX; do
  22642. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22643. *[\\\\\\\`\\"\\\$]*)
  22644. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  22645. ;;
  22646. *)
  22647. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22648. ;;
  22649. esac
  22650. done
  22651. # Double-quote double-evaled strings.
  22652. for var in reload_cmds \
  22653. old_postinstall_cmds \
  22654. old_postuninstall_cmds \
  22655. old_archive_cmds \
  22656. extract_expsyms_cmds \
  22657. old_archive_from_new_cmds \
  22658. old_archive_from_expsyms_cmds \
  22659. archive_cmds \
  22660. archive_expsym_cmds \
  22661. module_cmds \
  22662. module_expsym_cmds \
  22663. export_symbols_cmds \
  22664. prelink_cmds \
  22665. postlink_cmds \
  22666. postinstall_cmds \
  22667. postuninstall_cmds \
  22668. finish_cmds \
  22669. sys_lib_search_path_spec \
  22670. configure_time_dlsearch_path \
  22671. configure_time_lt_sys_library_path \
  22672. reload_cmds_CXX \
  22673. old_archive_cmds_CXX \
  22674. old_archive_from_new_cmds_CXX \
  22675. old_archive_from_expsyms_cmds_CXX \
  22676. archive_cmds_CXX \
  22677. archive_expsym_cmds_CXX \
  22678. module_cmds_CXX \
  22679. module_expsym_cmds_CXX \
  22680. export_symbols_cmds_CXX \
  22681. prelink_cmds_CXX \
  22682. postlink_cmds_CXX; do
  22683. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22684. *[\\\\\\\`\\"\\\$]*)
  22685. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  22686. ;;
  22687. *)
  22688. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22689. ;;
  22690. esac
  22691. done
  22692. ac_aux_dir='$ac_aux_dir'
  22693. # See if we are running on zsh, and set the options that allow our
  22694. # commands through without removal of \ escapes INIT.
  22695. if test -n "\${ZSH_VERSION+set}"; then
  22696. setopt NO_GLOB_SUBST
  22697. fi
  22698. PACKAGE='$PACKAGE'
  22699. VERSION='$VERSION'
  22700. RM='$RM'
  22701. ofile='$ofile'
  22702. _ACEOF
  22703. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22704. # Handling of arguments.
  22705. for ac_config_target in $ac_config_targets
  22706. do
  22707. case $ac_config_target in
  22708. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  22709. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  22710. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  22711. "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
  22712. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  22713. "doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doxygen.cfg" ;;
  22714. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  22715. "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  22716. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  22717. "src/tcpedit/Makefile") CONFIG_FILES="$CONFIG_FILES src/tcpedit/Makefile" ;;
  22718. "src/fragroute/Makefile") CONFIG_FILES="$CONFIG_FILES src/fragroute/Makefile" ;;
  22719. "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
  22720. "src/defines.h") CONFIG_FILES="$CONFIG_FILES src/defines.h" ;;
  22721. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  22722. "test/config") CONFIG_FILES="$CONFIG_FILES test/config" ;;
  22723. "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
  22724. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  22725. esac
  22726. done
  22727. # If the user did not use the arguments to specify the items to instantiate,
  22728. # then the envvar interface is used. Set only those that are not.
  22729. # We use the long form for the default assignment because of an extremely
  22730. # bizarre bug on SunOS 4.1.3.
  22731. if $ac_need_defaults; then
  22732. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  22733. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  22734. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  22735. fi
  22736. # Have a temporary directory for convenience. Make it in the build tree
  22737. # simply because there is no reason against having it here, and in addition,
  22738. # creating and moving files from /tmp can sometimes cause problems.
  22739. # Hook for its removal unless debugging.
  22740. # Note that there is a small window in which the directory will not be cleaned:
  22741. # after its creation but before its name has been assigned to `$tmp'.
  22742. $debug ||
  22743. {
  22744. tmp= ac_tmp=
  22745. trap 'exit_status=$?
  22746. : "${ac_tmp:=$tmp}"
  22747. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  22748. ' 0
  22749. trap 'as_fn_exit 1' 1 2 13 15
  22750. }
  22751. # Create a (secure) tmp directory for tmp files.
  22752. {
  22753. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  22754. test -d "$tmp"
  22755. } ||
  22756. {
  22757. tmp=./conf$$-$RANDOM
  22758. (umask 077 && mkdir "$tmp")
  22759. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  22760. ac_tmp=$tmp
  22761. # Set up the scripts for CONFIG_FILES section.
  22762. # No need to generate them if there are no CONFIG_FILES.
  22763. # This happens for instance with `./config.status config.h'.
  22764. if test -n "$CONFIG_FILES"; then
  22765. ac_cr=`echo X | tr X '\015'`
  22766. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  22767. # But we know of no other shell where ac_cr would be empty at this
  22768. # point, so we can use a bashism as a fallback.
  22769. if test "x$ac_cr" = x; then
  22770. eval ac_cr=\$\'\\r\'
  22771. fi
  22772. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  22773. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  22774. ac_cs_awk_cr='\\r'
  22775. else
  22776. ac_cs_awk_cr=$ac_cr
  22777. fi
  22778. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  22779. _ACEOF
  22780. {
  22781. echo "cat >conf$$subs.awk <<_ACEOF" &&
  22782. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  22783. echo "_ACEOF"
  22784. } >conf$$subs.sh ||
  22785. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22786. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  22787. ac_delim='%!_!# '
  22788. for ac_last_try in false false false false false :; do
  22789. . ./conf$$subs.sh ||
  22790. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22791. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  22792. if test $ac_delim_n = $ac_delim_num; then
  22793. break
  22794. elif $ac_last_try; then
  22795. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22796. else
  22797. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22798. fi
  22799. done
  22800. rm -f conf$$subs.sh
  22801. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22802. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  22803. _ACEOF
  22804. sed -n '
  22805. h
  22806. s/^/S["/; s/!.*/"]=/
  22807. p
  22808. g
  22809. s/^[^!]*!//
  22810. :repl
  22811. t repl
  22812. s/'"$ac_delim"'$//
  22813. t delim
  22814. :nl
  22815. h
  22816. s/\(.\{148\}\)..*/\1/
  22817. t more1
  22818. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  22819. p
  22820. n
  22821. b repl
  22822. :more1
  22823. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22824. p
  22825. g
  22826. s/.\{148\}//
  22827. t nl
  22828. :delim
  22829. h
  22830. s/\(.\{148\}\)..*/\1/
  22831. t more2
  22832. s/["\\]/\\&/g; s/^/"/; s/$/"/
  22833. p
  22834. b
  22835. :more2
  22836. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22837. p
  22838. g
  22839. s/.\{148\}//
  22840. t delim
  22841. ' <conf$$subs.awk | sed '
  22842. /^[^""]/{
  22843. N
  22844. s/\n//
  22845. }
  22846. ' >>$CONFIG_STATUS || ac_write_fail=1
  22847. rm -f conf$$subs.awk
  22848. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22849. _ACAWK
  22850. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  22851. for (key in S) S_is_set[key] = 1
  22852. FS = ""
  22853. }
  22854. {
  22855. line = $ 0
  22856. nfields = split(line, field, "@")
  22857. substed = 0
  22858. len = length(field[1])
  22859. for (i = 2; i < nfields; i++) {
  22860. key = field[i]
  22861. keylen = length(key)
  22862. if (S_is_set[key]) {
  22863. value = S[key]
  22864. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  22865. len += length(value) + length(field[++i])
  22866. substed = 1
  22867. } else
  22868. len += 1 + keylen
  22869. }
  22870. print line
  22871. }
  22872. _ACAWK
  22873. _ACEOF
  22874. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22875. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  22876. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  22877. else
  22878. cat
  22879. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  22880. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  22881. _ACEOF
  22882. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  22883. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  22884. # trailing colons and then remove the whole line if VPATH becomes empty
  22885. # (actually we leave an empty line to preserve line numbers).
  22886. if test "x$srcdir" = x.; then
  22887. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  22888. h
  22889. s///
  22890. s/^/:/
  22891. s/[ ]*$/:/
  22892. s/:\$(srcdir):/:/g
  22893. s/:\${srcdir}:/:/g
  22894. s/:@srcdir@:/:/g
  22895. s/^:*//
  22896. s/:*$//
  22897. x
  22898. s/\(=[ ]*\).*/\1/
  22899. G
  22900. s/\n//
  22901. s/^[^=]*=[ ]*$//
  22902. }'
  22903. fi
  22904. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22905. fi # test -n "$CONFIG_FILES"
  22906. # Set up the scripts for CONFIG_HEADERS section.
  22907. # No need to generate them if there are no CONFIG_HEADERS.
  22908. # This happens for instance with `./config.status Makefile'.
  22909. if test -n "$CONFIG_HEADERS"; then
  22910. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  22911. BEGIN {
  22912. _ACEOF
  22913. # Transform confdefs.h into an awk script `defines.awk', embedded as
  22914. # here-document in config.status, that substitutes the proper values into
  22915. # config.h.in to produce config.h.
  22916. # Create a delimiter string that does not exist in confdefs.h, to ease
  22917. # handling of long lines.
  22918. ac_delim='%!_!# '
  22919. for ac_last_try in false false :; do
  22920. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  22921. if test -z "$ac_tt"; then
  22922. break
  22923. elif $ac_last_try; then
  22924. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  22925. else
  22926. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22927. fi
  22928. done
  22929. # For the awk script, D is an array of macro values keyed by name,
  22930. # likewise P contains macro parameters if any. Preserve backslash
  22931. # newline sequences.
  22932. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  22933. sed -n '
  22934. s/.\{148\}/&'"$ac_delim"'/g
  22935. t rset
  22936. :rset
  22937. s/^[ ]*#[ ]*define[ ][ ]*/ /
  22938. t def
  22939. d
  22940. :def
  22941. s/\\$//
  22942. t bsnl
  22943. s/["\\]/\\&/g
  22944. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22945. D["\1"]=" \3"/p
  22946. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  22947. d
  22948. :bsnl
  22949. s/["\\]/\\&/g
  22950. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22951. D["\1"]=" \3\\\\\\n"\\/p
  22952. t cont
  22953. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  22954. t cont
  22955. d
  22956. :cont
  22957. n
  22958. s/.\{148\}/&'"$ac_delim"'/g
  22959. t clear
  22960. :clear
  22961. s/\\$//
  22962. t bsnlc
  22963. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  22964. d
  22965. :bsnlc
  22966. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  22967. b cont
  22968. ' <confdefs.h | sed '
  22969. s/'"$ac_delim"'/"\\\
  22970. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  22971. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22972. for (key in D) D_is_set[key] = 1
  22973. FS = ""
  22974. }
  22975. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  22976. line = \$ 0
  22977. split(line, arg, " ")
  22978. if (arg[1] == "#") {
  22979. defundef = arg[2]
  22980. mac1 = arg[3]
  22981. } else {
  22982. defundef = substr(arg[1], 2)
  22983. mac1 = arg[2]
  22984. }
  22985. split(mac1, mac2, "(") #)
  22986. macro = mac2[1]
  22987. prefix = substr(line, 1, index(line, defundef) - 1)
  22988. if (D_is_set[macro]) {
  22989. # Preserve the white space surrounding the "#".
  22990. print prefix "define", macro P[macro] D[macro]
  22991. next
  22992. } else {
  22993. # Replace #undef with comments. This is necessary, for example,
  22994. # in the case of _POSIX_SOURCE, which is predefined and required
  22995. # on some systems where configure will not decide to define it.
  22996. if (defundef == "undef") {
  22997. print "/*", prefix defundef, macro, "*/"
  22998. next
  22999. }
  23000. }
  23001. }
  23002. { print }
  23003. _ACAWK
  23004. _ACEOF
  23005. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23006. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  23007. fi # test -n "$CONFIG_HEADERS"
  23008. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  23009. shift
  23010. for ac_tag
  23011. do
  23012. case $ac_tag in
  23013. :[FHLC]) ac_mode=$ac_tag; continue;;
  23014. esac
  23015. case $ac_mode$ac_tag in
  23016. :[FHL]*:*);;
  23017. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  23018. :[FH]-) ac_tag=-:-;;
  23019. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23020. esac
  23021. ac_save_IFS=$IFS
  23022. IFS=:
  23023. set x $ac_tag
  23024. IFS=$ac_save_IFS
  23025. shift
  23026. ac_file=$1
  23027. shift
  23028. case $ac_mode in
  23029. :L) ac_source=$1;;
  23030. :[FH])
  23031. ac_file_inputs=
  23032. for ac_f
  23033. do
  23034. case $ac_f in
  23035. -) ac_f="$ac_tmp/stdin";;
  23036. *) # Look for the file first in the build tree, then in the source tree
  23037. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23038. # because $ac_f cannot contain `:'.
  23039. test -f "$ac_f" ||
  23040. case $ac_f in
  23041. [\\/$]*) false;;
  23042. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23043. esac ||
  23044. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  23045. esac
  23046. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23047. as_fn_append ac_file_inputs " '$ac_f'"
  23048. done
  23049. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23050. # use $as_me), people would be surprised to read:
  23051. # /* config.h. Generated by config.status. */
  23052. configure_input='Generated from '`
  23053. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23054. `' by configure.'
  23055. if test x"$ac_file" != x-; then
  23056. configure_input="$ac_file. $configure_input"
  23057. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  23058. $as_echo "$as_me: creating $ac_file" >&6;}
  23059. fi
  23060. # Neutralize special characters interpreted by sed in replacement strings.
  23061. case $configure_input in #(
  23062. *\&* | *\|* | *\\* )
  23063. ac_sed_conf_input=`$as_echo "$configure_input" |
  23064. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23065. *) ac_sed_conf_input=$configure_input;;
  23066. esac
  23067. case $ac_tag in
  23068. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  23069. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  23070. esac
  23071. ;;
  23072. esac
  23073. ac_dir=`$as_dirname -- "$ac_file" ||
  23074. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23075. X"$ac_file" : 'X\(//\)[^/]' \| \
  23076. X"$ac_file" : 'X\(//\)$' \| \
  23077. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23078. $as_echo X"$ac_file" |
  23079. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23080. s//\1/
  23081. q
  23082. }
  23083. /^X\(\/\/\)[^/].*/{
  23084. s//\1/
  23085. q
  23086. }
  23087. /^X\(\/\/\)$/{
  23088. s//\1/
  23089. q
  23090. }
  23091. /^X\(\/\).*/{
  23092. s//\1/
  23093. q
  23094. }
  23095. s/.*/./; q'`
  23096. as_dir="$ac_dir"; as_fn_mkdir_p
  23097. ac_builddir=.
  23098. case "$ac_dir" in
  23099. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23100. *)
  23101. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23102. # A ".." for each directory in $ac_dir_suffix.
  23103. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23104. case $ac_top_builddir_sub in
  23105. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23106. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23107. esac ;;
  23108. esac
  23109. ac_abs_top_builddir=$ac_pwd
  23110. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23111. # for backward compatibility:
  23112. ac_top_builddir=$ac_top_build_prefix
  23113. case $srcdir in
  23114. .) # We are building in place.
  23115. ac_srcdir=.
  23116. ac_top_srcdir=$ac_top_builddir_sub
  23117. ac_abs_top_srcdir=$ac_pwd ;;
  23118. [\\/]* | ?:[\\/]* ) # Absolute name.
  23119. ac_srcdir=$srcdir$ac_dir_suffix;
  23120. ac_top_srcdir=$srcdir
  23121. ac_abs_top_srcdir=$srcdir ;;
  23122. *) # Relative name.
  23123. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23124. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23125. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23126. esac
  23127. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23128. case $ac_mode in
  23129. :F)
  23130. #
  23131. # CONFIG_FILE
  23132. #
  23133. case $INSTALL in
  23134. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23135. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23136. esac
  23137. ac_MKDIR_P=$MKDIR_P
  23138. case $MKDIR_P in
  23139. [\\/$]* | ?:[\\/]* ) ;;
  23140. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  23141. esac
  23142. _ACEOF
  23143. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23144. # If the template does not know about datarootdir, expand it.
  23145. # FIXME: This hack should be removed a few years after 2.60.
  23146. ac_datarootdir_hack=; ac_datarootdir_seen=
  23147. ac_sed_dataroot='
  23148. /datarootdir/ {
  23149. p
  23150. q
  23151. }
  23152. /@datadir@/p
  23153. /@docdir@/p
  23154. /@infodir@/p
  23155. /@localedir@/p
  23156. /@mandir@/p'
  23157. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23158. *datarootdir*) ac_datarootdir_seen=yes;;
  23159. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23160. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23161. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23162. _ACEOF
  23163. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23164. ac_datarootdir_hack='
  23165. s&@datadir@&$datadir&g
  23166. s&@docdir@&$docdir&g
  23167. s&@infodir@&$infodir&g
  23168. s&@localedir@&$localedir&g
  23169. s&@mandir@&$mandir&g
  23170. s&\\\${datarootdir}&$datarootdir&g' ;;
  23171. esac
  23172. _ACEOF
  23173. # Neutralize VPATH when `$srcdir' = `.'.
  23174. # Shell code in configure.ac might set extrasub.
  23175. # FIXME: do we really want to maintain this feature?
  23176. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23177. ac_sed_extra="$ac_vpsub
  23178. $extrasub
  23179. _ACEOF
  23180. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23181. :t
  23182. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23183. s|@configure_input@|$ac_sed_conf_input|;t t
  23184. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23185. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23186. s&@srcdir@&$ac_srcdir&;t t
  23187. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23188. s&@top_srcdir@&$ac_top_srcdir&;t t
  23189. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23190. s&@builddir@&$ac_builddir&;t t
  23191. s&@abs_builddir@&$ac_abs_builddir&;t t
  23192. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23193. s&@INSTALL@&$ac_INSTALL&;t t
  23194. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  23195. $ac_datarootdir_hack
  23196. "
  23197. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  23198. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23199. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23200. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  23201. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  23202. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  23203. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23204. which seems to be undefined. Please make sure it is defined" >&5
  23205. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23206. which seems to be undefined. Please make sure it is defined" >&2;}
  23207. rm -f "$ac_tmp/stdin"
  23208. case $ac_file in
  23209. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  23210. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  23211. esac \
  23212. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23213. ;;
  23214. :H)
  23215. #
  23216. # CONFIG_HEADER
  23217. #
  23218. if test x"$ac_file" != x-; then
  23219. {
  23220. $as_echo "/* $configure_input */" \
  23221. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  23222. } >"$ac_tmp/config.h" \
  23223. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23224. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  23225. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  23226. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23227. else
  23228. rm -f "$ac_file"
  23229. mv "$ac_tmp/config.h" "$ac_file" \
  23230. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23231. fi
  23232. else
  23233. $as_echo "/* $configure_input */" \
  23234. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  23235. || as_fn_error $? "could not create -" "$LINENO" 5
  23236. fi
  23237. # Compute "$ac_file"'s index in $config_headers.
  23238. _am_arg="$ac_file"
  23239. _am_stamp_count=1
  23240. for _am_header in $config_headers :; do
  23241. case $_am_header in
  23242. $_am_arg | $_am_arg:* )
  23243. break ;;
  23244. * )
  23245. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  23246. esac
  23247. done
  23248. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  23249. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23250. X"$_am_arg" : 'X\(//\)[^/]' \| \
  23251. X"$_am_arg" : 'X\(//\)$' \| \
  23252. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  23253. $as_echo X"$_am_arg" |
  23254. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23255. s//\1/
  23256. q
  23257. }
  23258. /^X\(\/\/\)[^/].*/{
  23259. s//\1/
  23260. q
  23261. }
  23262. /^X\(\/\/\)$/{
  23263. s//\1/
  23264. q
  23265. }
  23266. /^X\(\/\).*/{
  23267. s//\1/
  23268. q
  23269. }
  23270. s/.*/./; q'`/stamp-h$_am_stamp_count
  23271. ;;
  23272. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  23273. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23274. ;;
  23275. esac
  23276. case $ac_file$ac_mode in
  23277. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  23278. # Older Autoconf quotes --file arguments for eval, but not when files
  23279. # are listed without --file. Let's play safe and only enable the eval
  23280. # if we detect the quoting.
  23281. # TODO: see whether this extra hack can be removed once we start
  23282. # requiring Autoconf 2.70 or later.
  23283. case $CONFIG_FILES in #(
  23284. *\'*) :
  23285. eval set x "$CONFIG_FILES" ;; #(
  23286. *) :
  23287. set x $CONFIG_FILES ;; #(
  23288. *) :
  23289. ;;
  23290. esac
  23291. shift
  23292. # Used to flag and report bootstrapping failures.
  23293. am_rc=0
  23294. for am_mf
  23295. do
  23296. # Strip MF so we end up with the name of the file.
  23297. am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
  23298. # Check whether this is an Automake generated Makefile which includes
  23299. # dependency-tracking related rules and includes.
  23300. # Grep'ing the whole file directly is not great: AIX grep has a line
  23301. # limit of 2048, but all sed's we know have understand at least 4000.
  23302. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  23303. || continue
  23304. am_dirpart=`$as_dirname -- "$am_mf" ||
  23305. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23306. X"$am_mf" : 'X\(//\)[^/]' \| \
  23307. X"$am_mf" : 'X\(//\)$' \| \
  23308. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  23309. $as_echo X"$am_mf" |
  23310. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23311. s//\1/
  23312. q
  23313. }
  23314. /^X\(\/\/\)[^/].*/{
  23315. s//\1/
  23316. q
  23317. }
  23318. /^X\(\/\/\)$/{
  23319. s//\1/
  23320. q
  23321. }
  23322. /^X\(\/\).*/{
  23323. s//\1/
  23324. q
  23325. }
  23326. s/.*/./; q'`
  23327. am_filepart=`$as_basename -- "$am_mf" ||
  23328. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  23329. X"$am_mf" : 'X\(//\)$' \| \
  23330. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  23331. $as_echo X/"$am_mf" |
  23332. sed '/^.*\/\([^/][^/]*\)\/*$/{
  23333. s//\1/
  23334. q
  23335. }
  23336. /^X\/\(\/\/\)$/{
  23337. s//\1/
  23338. q
  23339. }
  23340. /^X\/\(\/\).*/{
  23341. s//\1/
  23342. q
  23343. }
  23344. s/.*/./; q'`
  23345. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  23346. && sed -e '/# am--include-marker/d' "$am_filepart" \
  23347. | $MAKE -f - am--depfiles" >&5
  23348. (cd "$am_dirpart" \
  23349. && sed -e '/# am--include-marker/d' "$am_filepart" \
  23350. | $MAKE -f - am--depfiles) >&5 2>&5
  23351. ac_status=$?
  23352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23353. (exit $ac_status); } || am_rc=$?
  23354. done
  23355. if test $am_rc -ne 0; then
  23356. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  23357. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23358. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  23359. for automatic dependency tracking. Try re-running configure with the
  23360. '--disable-dependency-tracking' option to at least be able to build
  23361. the package (albeit without support for automatic dependency tracking).
  23362. See \`config.log' for more details" "$LINENO" 5; }
  23363. fi
  23364. { am_dirpart=; unset am_dirpart;}
  23365. { am_filepart=; unset am_filepart;}
  23366. { am_mf=; unset am_mf;}
  23367. { am_rc=; unset am_rc;}
  23368. rm -f conftest-deps.mk
  23369. }
  23370. ;;
  23371. "libtool":C)
  23372. # See if we are running on zsh, and set the options that allow our
  23373. # commands through without removal of \ escapes.
  23374. if test -n "${ZSH_VERSION+set}"; then
  23375. setopt NO_GLOB_SUBST
  23376. fi
  23377. cfgfile=${ofile}T
  23378. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23379. $RM "$cfgfile"
  23380. cat <<_LT_EOF >> "$cfgfile"
  23381. #! $SHELL
  23382. # Generated automatically by $as_me ($PACKAGE) $VERSION
  23383. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23384. # Provide generalized library-building support services.
  23385. # Written by Gordon Matzigkeit, 1996
  23386. # Copyright (C) 2014 Free Software Foundation, Inc.
  23387. # This is free software; see the source for copying conditions. There is NO
  23388. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  23389. # GNU Libtool is free software; you can redistribute it and/or modify
  23390. # it under the terms of the GNU General Public License as published by
  23391. # the Free Software Foundation; either version 2 of of the License, or
  23392. # (at your option) any later version.
  23393. #
  23394. # As a special exception to the GNU General Public License, if you
  23395. # distribute this file as part of a program or library that is built
  23396. # using GNU Libtool, you may include this file under the same
  23397. # distribution terms that you use for the rest of that program.
  23398. #
  23399. # GNU Libtool is distributed in the hope that it will be useful, but
  23400. # WITHOUT ANY WARRANTY; without even the implied warranty of
  23401. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23402. # GNU General Public License for more details.
  23403. #
  23404. # You should have received a copy of the GNU General Public License
  23405. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  23406. # The names of the tagged configurations supported by this script.
  23407. available_tags='CXX '
  23408. # Configured defaults for sys_lib_dlsearch_path munging.
  23409. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  23410. # ### BEGIN LIBTOOL CONFIG
  23411. # Which release of libtool.m4 was used?
  23412. macro_version=$macro_version
  23413. macro_revision=$macro_revision
  23414. # Whether or not to build shared libraries.
  23415. build_libtool_libs=$enable_shared
  23416. # Whether or not to build static libraries.
  23417. build_old_libs=$enable_static
  23418. # What type of objects to build.
  23419. pic_mode=$pic_mode
  23420. # Whether or not to optimize for fast installation.
  23421. fast_install=$enable_fast_install
  23422. # Shared archive member basename,for filename based shared library versioning on AIX.
  23423. shared_archive_member_spec=$shared_archive_member_spec
  23424. # Shell to use when invoking shell scripts.
  23425. SHELL=$lt_SHELL
  23426. # An echo program that protects backslashes.
  23427. ECHO=$lt_ECHO
  23428. # The PATH separator for the build system.
  23429. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  23430. # The host system.
  23431. host_alias=$host_alias
  23432. host=$host
  23433. host_os=$host_os
  23434. # The build system.
  23435. build_alias=$build_alias
  23436. build=$build
  23437. build_os=$build_os
  23438. # A sed program that does not truncate output.
  23439. SED=$lt_SED
  23440. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23441. Xsed="\$SED -e 1s/^X//"
  23442. # A grep program that handles long lines.
  23443. GREP=$lt_GREP
  23444. # An ERE matcher.
  23445. EGREP=$lt_EGREP
  23446. # A literal string matcher.
  23447. FGREP=$lt_FGREP
  23448. # A BSD- or MS-compatible name lister.
  23449. NM=$lt_NM
  23450. # Whether we need soft or hard links.
  23451. LN_S=$lt_LN_S
  23452. # What is the maximum length of a command?
  23453. max_cmd_len=$max_cmd_len
  23454. # Object file suffix (normally "o").
  23455. objext=$ac_objext
  23456. # Executable file suffix (normally "").
  23457. exeext=$exeext
  23458. # whether the shell understands "unset".
  23459. lt_unset=$lt_unset
  23460. # turn spaces into newlines.
  23461. SP2NL=$lt_lt_SP2NL
  23462. # turn newlines into spaces.
  23463. NL2SP=$lt_lt_NL2SP
  23464. # convert \$build file names to \$host format.
  23465. to_host_file_cmd=$lt_cv_to_host_file_cmd
  23466. # convert \$build files to toolchain format.
  23467. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  23468. # An object symbol dumper.
  23469. OBJDUMP=$lt_OBJDUMP
  23470. # Method to check whether dependent libraries are shared objects.
  23471. deplibs_check_method=$lt_deplibs_check_method
  23472. # Command to use when deplibs_check_method = "file_magic".
  23473. file_magic_cmd=$lt_file_magic_cmd
  23474. # How to find potential files when deplibs_check_method = "file_magic".
  23475. file_magic_glob=$lt_file_magic_glob
  23476. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  23477. want_nocaseglob=$lt_want_nocaseglob
  23478. # DLL creation program.
  23479. DLLTOOL=$lt_DLLTOOL
  23480. # Command to associate shared and link libraries.
  23481. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  23482. # The archiver.
  23483. AR=$lt_AR
  23484. # Flags to create an archive.
  23485. AR_FLAGS=$lt_AR_FLAGS
  23486. # How to feed a file listing to the archiver.
  23487. archiver_list_spec=$lt_archiver_list_spec
  23488. # A symbol stripping program.
  23489. STRIP=$lt_STRIP
  23490. # Commands used to install an old-style archive.
  23491. RANLIB=$lt_RANLIB
  23492. old_postinstall_cmds=$lt_old_postinstall_cmds
  23493. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  23494. # Whether to use a lock for old archive extraction.
  23495. lock_old_archive_extraction=$lock_old_archive_extraction
  23496. # A C compiler.
  23497. LTCC=$lt_CC
  23498. # LTCC compiler flags.
  23499. LTCFLAGS=$lt_CFLAGS
  23500. # Take the output of nm and produce a listing of raw symbols and C names.
  23501. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  23502. # Transform the output of nm in a proper C declaration.
  23503. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  23504. # Transform the output of nm into a list of symbols to manually relocate.
  23505. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  23506. # Transform the output of nm in a C name address pair.
  23507. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  23508. # Transform the output of nm in a C name address pair when lib prefix is needed.
  23509. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  23510. # The name lister interface.
  23511. nm_interface=$lt_lt_cv_nm_interface
  23512. # Specify filename containing input files for \$NM.
  23513. nm_file_list_spec=$lt_nm_file_list_spec
  23514. # The root where to search for dependent libraries,and where our libraries should be installed.
  23515. lt_sysroot=$lt_sysroot
  23516. # Command to truncate a binary pipe.
  23517. lt_truncate_bin=$lt_lt_cv_truncate_bin
  23518. # The name of the directory that contains temporary libtool files.
  23519. objdir=$objdir
  23520. # Used to examine libraries when file_magic_cmd begins with "file".
  23521. MAGIC_CMD=$MAGIC_CMD
  23522. # Must we lock files when doing compilation?
  23523. need_locks=$lt_need_locks
  23524. # Manifest tool.
  23525. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  23526. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  23527. DSYMUTIL=$lt_DSYMUTIL
  23528. # Tool to change global to local symbols on Mac OS X.
  23529. NMEDIT=$lt_NMEDIT
  23530. # Tool to manipulate fat objects and archives on Mac OS X.
  23531. LIPO=$lt_LIPO
  23532. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  23533. OTOOL=$lt_OTOOL
  23534. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  23535. OTOOL64=$lt_OTOOL64
  23536. # Old archive suffix (normally "a").
  23537. libext=$libext
  23538. # Shared library suffix (normally ".so").
  23539. shrext_cmds=$lt_shrext_cmds
  23540. # The commands to extract the exported symbol list from a shared archive.
  23541. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23542. # Variables whose values should be saved in libtool wrapper scripts and
  23543. # restored at link time.
  23544. variables_saved_for_relink=$lt_variables_saved_for_relink
  23545. # Do we need the "lib" prefix for modules?
  23546. need_lib_prefix=$need_lib_prefix
  23547. # Do we need a version for libraries?
  23548. need_version=$need_version
  23549. # Library versioning type.
  23550. version_type=$version_type
  23551. # Shared library runtime path variable.
  23552. runpath_var=$runpath_var
  23553. # Shared library path variable.
  23554. shlibpath_var=$shlibpath_var
  23555. # Is shlibpath searched before the hard-coded library search path?
  23556. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23557. # Format of library name prefix.
  23558. libname_spec=$lt_libname_spec
  23559. # List of archive names. First name is the real one, the rest are links.
  23560. # The last name is the one that the linker finds with -lNAME
  23561. library_names_spec=$lt_library_names_spec
  23562. # The coded name of the library, if different from the real name.
  23563. soname_spec=$lt_soname_spec
  23564. # Permission mode override for installation of shared libraries.
  23565. install_override_mode=$lt_install_override_mode
  23566. # Command to use after installation of a shared archive.
  23567. postinstall_cmds=$lt_postinstall_cmds
  23568. # Command to use after uninstallation of a shared archive.
  23569. postuninstall_cmds=$lt_postuninstall_cmds
  23570. # Commands used to finish a libtool library installation in a directory.
  23571. finish_cmds=$lt_finish_cmds
  23572. # As "finish_cmds", except a single script fragment to be evaled but
  23573. # not shown.
  23574. finish_eval=$lt_finish_eval
  23575. # Whether we should hardcode library paths into libraries.
  23576. hardcode_into_libs=$hardcode_into_libs
  23577. # Compile-time system search path for libraries.
  23578. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23579. # Detected run-time system search path for libraries.
  23580. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  23581. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  23582. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  23583. # Whether dlopen is supported.
  23584. dlopen_support=$enable_dlopen
  23585. # Whether dlopen of programs is supported.
  23586. dlopen_self=$enable_dlopen_self
  23587. # Whether dlopen of statically linked programs is supported.
  23588. dlopen_self_static=$enable_dlopen_self_static
  23589. # Commands to strip libraries.
  23590. old_striplib=$lt_old_striplib
  23591. striplib=$lt_striplib
  23592. # The linker used to build libraries.
  23593. LD=$lt_LD
  23594. # How to create reloadable object files.
  23595. reload_flag=$lt_reload_flag
  23596. reload_cmds=$lt_reload_cmds
  23597. # Commands used to build an old-style archive.
  23598. old_archive_cmds=$lt_old_archive_cmds
  23599. # A language specific compiler.
  23600. CC=$lt_compiler
  23601. # Is the compiler the GNU compiler?
  23602. with_gcc=$GCC
  23603. # Compiler flag to turn off builtin functions.
  23604. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  23605. # Additional compiler flags for building library objects.
  23606. pic_flag=$lt_lt_prog_compiler_pic
  23607. # How to pass a linker flag through the compiler.
  23608. wl=$lt_lt_prog_compiler_wl
  23609. # Compiler flag to prevent dynamic linking.
  23610. link_static_flag=$lt_lt_prog_compiler_static
  23611. # Does compiler simultaneously support -c and -o options?
  23612. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  23613. # Whether or not to add -lc for building shared libraries.
  23614. build_libtool_need_lc=$archive_cmds_need_lc
  23615. # Whether or not to disallow shared libs when runtime libs are static.
  23616. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  23617. # Compiler flag to allow reflexive dlopens.
  23618. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  23619. # Compiler flag to generate shared objects directly from archives.
  23620. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  23621. # Whether the compiler copes with passing no objects directly.
  23622. compiler_needs_object=$lt_compiler_needs_object
  23623. # Create an old-style archive from a shared archive.
  23624. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  23625. # Create a temporary old-style archive to link instead of a shared archive.
  23626. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  23627. # Commands used to build a shared archive.
  23628. archive_cmds=$lt_archive_cmds
  23629. archive_expsym_cmds=$lt_archive_expsym_cmds
  23630. # Commands used to build a loadable module if different from building
  23631. # a shared archive.
  23632. module_cmds=$lt_module_cmds
  23633. module_expsym_cmds=$lt_module_expsym_cmds
  23634. # Whether we are building with GNU ld or not.
  23635. with_gnu_ld=$lt_with_gnu_ld
  23636. # Flag that allows shared libraries with undefined symbols to be built.
  23637. allow_undefined_flag=$lt_allow_undefined_flag
  23638. # Flag that enforces no undefined symbols.
  23639. no_undefined_flag=$lt_no_undefined_flag
  23640. # Flag to hardcode \$libdir into a binary during linking.
  23641. # This must work even if \$libdir does not exist
  23642. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  23643. # Whether we need a single "-rpath" flag with a separated argument.
  23644. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  23645. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  23646. # DIR into the resulting binary.
  23647. hardcode_direct=$hardcode_direct
  23648. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  23649. # DIR into the resulting binary and the resulting library dependency is
  23650. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  23651. # library is relocated.
  23652. hardcode_direct_absolute=$hardcode_direct_absolute
  23653. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23654. # into the resulting binary.
  23655. hardcode_minus_L=$hardcode_minus_L
  23656. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23657. # into the resulting binary.
  23658. hardcode_shlibpath_var=$hardcode_shlibpath_var
  23659. # Set to "yes" if building a shared library automatically hardcodes DIR
  23660. # into the library and all subsequent libraries and executables linked
  23661. # against it.
  23662. hardcode_automatic=$hardcode_automatic
  23663. # Set to yes if linker adds runtime paths of dependent libraries
  23664. # to runtime path list.
  23665. inherit_rpath=$inherit_rpath
  23666. # Whether libtool must link a program against all its dependency libraries.
  23667. link_all_deplibs=$link_all_deplibs
  23668. # Set to "yes" if exported symbols are required.
  23669. always_export_symbols=$always_export_symbols
  23670. # The commands to list exported symbols.
  23671. export_symbols_cmds=$lt_export_symbols_cmds
  23672. # Symbols that should not be listed in the preloaded symbols.
  23673. exclude_expsyms=$lt_exclude_expsyms
  23674. # Symbols that must always be exported.
  23675. include_expsyms=$lt_include_expsyms
  23676. # Commands necessary for linking programs (against libraries) with templates.
  23677. prelink_cmds=$lt_prelink_cmds
  23678. # Commands necessary for finishing linking programs.
  23679. postlink_cmds=$lt_postlink_cmds
  23680. # Specify filename containing input files.
  23681. file_list_spec=$lt_file_list_spec
  23682. # How to hardcode a shared library path into an executable.
  23683. hardcode_action=$hardcode_action
  23684. # The directories searched by this compiler when creating a shared library.
  23685. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  23686. # Dependencies to place before and after the objects being linked to
  23687. # create a shared library.
  23688. predep_objects=$lt_predep_objects
  23689. postdep_objects=$lt_postdep_objects
  23690. predeps=$lt_predeps
  23691. postdeps=$lt_postdeps
  23692. # The library search path used internally by the compiler when linking
  23693. # a shared library.
  23694. compiler_lib_search_path=$lt_compiler_lib_search_path
  23695. # ### END LIBTOOL CONFIG
  23696. _LT_EOF
  23697. cat <<'_LT_EOF' >> "$cfgfile"
  23698. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  23699. # func_munge_path_list VARIABLE PATH
  23700. # -----------------------------------
  23701. # VARIABLE is name of variable containing _space_ separated list of
  23702. # directories to be munged by the contents of PATH, which is string
  23703. # having a format:
  23704. # "DIR[:DIR]:"
  23705. # string "DIR[ DIR]" will be prepended to VARIABLE
  23706. # ":DIR[:DIR]"
  23707. # string "DIR[ DIR]" will be appended to VARIABLE
  23708. # "DIRP[:DIRP]::[DIRA:]DIRA"
  23709. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  23710. # "DIRA[ DIRA]" will be appended to VARIABLE
  23711. # "DIR[:DIR]"
  23712. # VARIABLE will be replaced by "DIR[ DIR]"
  23713. func_munge_path_list ()
  23714. {
  23715. case x$2 in
  23716. x)
  23717. ;;
  23718. *:)
  23719. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  23720. ;;
  23721. x:*)
  23722. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  23723. ;;
  23724. *::*)
  23725. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  23726. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  23727. ;;
  23728. *)
  23729. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  23730. ;;
  23731. esac
  23732. }
  23733. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  23734. func_cc_basename ()
  23735. {
  23736. for cc_temp in $*""; do
  23737. case $cc_temp in
  23738. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  23739. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  23740. \-*) ;;
  23741. *) break;;
  23742. esac
  23743. done
  23744. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  23745. }
  23746. # ### END FUNCTIONS SHARED WITH CONFIGURE
  23747. _LT_EOF
  23748. case $host_os in
  23749. aix3*)
  23750. cat <<\_LT_EOF >> "$cfgfile"
  23751. # AIX sometimes has problems with the GCC collect2 program. For some
  23752. # reason, if we set the COLLECT_NAMES environment variable, the problems
  23753. # vanish in a puff of smoke.
  23754. if test set != "${COLLECT_NAMES+set}"; then
  23755. COLLECT_NAMES=
  23756. export COLLECT_NAMES
  23757. fi
  23758. _LT_EOF
  23759. ;;
  23760. esac
  23761. ltmain=$ac_aux_dir/ltmain.sh
  23762. # We use sed instead of cat because bash on DJGPP gets confused if
  23763. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  23764. # text mode, it properly converts lines to CR/LF. This bash problem
  23765. # is reportedly fixed, but why not run on old versions too?
  23766. sed '$q' "$ltmain" >> "$cfgfile" \
  23767. || (rm -f "$cfgfile"; exit 1)
  23768. mv -f "$cfgfile" "$ofile" ||
  23769. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  23770. chmod +x "$ofile"
  23771. cat <<_LT_EOF >> "$ofile"
  23772. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  23773. # The linker used to build libraries.
  23774. LD=$lt_LD_CXX
  23775. # How to create reloadable object files.
  23776. reload_flag=$lt_reload_flag_CXX
  23777. reload_cmds=$lt_reload_cmds_CXX
  23778. # Commands used to build an old-style archive.
  23779. old_archive_cmds=$lt_old_archive_cmds_CXX
  23780. # A language specific compiler.
  23781. CC=$lt_compiler_CXX
  23782. # Is the compiler the GNU compiler?
  23783. with_gcc=$GCC_CXX
  23784. # Compiler flag to turn off builtin functions.
  23785. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  23786. # Additional compiler flags for building library objects.
  23787. pic_flag=$lt_lt_prog_compiler_pic_CXX
  23788. # How to pass a linker flag through the compiler.
  23789. wl=$lt_lt_prog_compiler_wl_CXX
  23790. # Compiler flag to prevent dynamic linking.
  23791. link_static_flag=$lt_lt_prog_compiler_static_CXX
  23792. # Does compiler simultaneously support -c and -o options?
  23793. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  23794. # Whether or not to add -lc for building shared libraries.
  23795. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  23796. # Whether or not to disallow shared libs when runtime libs are static.
  23797. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  23798. # Compiler flag to allow reflexive dlopens.
  23799. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  23800. # Compiler flag to generate shared objects directly from archives.
  23801. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  23802. # Whether the compiler copes with passing no objects directly.
  23803. compiler_needs_object=$lt_compiler_needs_object_CXX
  23804. # Create an old-style archive from a shared archive.
  23805. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  23806. # Create a temporary old-style archive to link instead of a shared archive.
  23807. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  23808. # Commands used to build a shared archive.
  23809. archive_cmds=$lt_archive_cmds_CXX
  23810. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  23811. # Commands used to build a loadable module if different from building
  23812. # a shared archive.
  23813. module_cmds=$lt_module_cmds_CXX
  23814. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  23815. # Whether we are building with GNU ld or not.
  23816. with_gnu_ld=$lt_with_gnu_ld_CXX
  23817. # Flag that allows shared libraries with undefined symbols to be built.
  23818. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  23819. # Flag that enforces no undefined symbols.
  23820. no_undefined_flag=$lt_no_undefined_flag_CXX
  23821. # Flag to hardcode \$libdir into a binary during linking.
  23822. # This must work even if \$libdir does not exist
  23823. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  23824. # Whether we need a single "-rpath" flag with a separated argument.
  23825. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  23826. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  23827. # DIR into the resulting binary.
  23828. hardcode_direct=$hardcode_direct_CXX
  23829. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  23830. # DIR into the resulting binary and the resulting library dependency is
  23831. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  23832. # library is relocated.
  23833. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  23834. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23835. # into the resulting binary.
  23836. hardcode_minus_L=$hardcode_minus_L_CXX
  23837. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23838. # into the resulting binary.
  23839. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  23840. # Set to "yes" if building a shared library automatically hardcodes DIR
  23841. # into the library and all subsequent libraries and executables linked
  23842. # against it.
  23843. hardcode_automatic=$hardcode_automatic_CXX
  23844. # Set to yes if linker adds runtime paths of dependent libraries
  23845. # to runtime path list.
  23846. inherit_rpath=$inherit_rpath_CXX
  23847. # Whether libtool must link a program against all its dependency libraries.
  23848. link_all_deplibs=$link_all_deplibs_CXX
  23849. # Set to "yes" if exported symbols are required.
  23850. always_export_symbols=$always_export_symbols_CXX
  23851. # The commands to list exported symbols.
  23852. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  23853. # Symbols that should not be listed in the preloaded symbols.
  23854. exclude_expsyms=$lt_exclude_expsyms_CXX
  23855. # Symbols that must always be exported.
  23856. include_expsyms=$lt_include_expsyms_CXX
  23857. # Commands necessary for linking programs (against libraries) with templates.
  23858. prelink_cmds=$lt_prelink_cmds_CXX
  23859. # Commands necessary for finishing linking programs.
  23860. postlink_cmds=$lt_postlink_cmds_CXX
  23861. # Specify filename containing input files.
  23862. file_list_spec=$lt_file_list_spec_CXX
  23863. # How to hardcode a shared library path into an executable.
  23864. hardcode_action=$hardcode_action_CXX
  23865. # The directories searched by this compiler when creating a shared library.
  23866. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  23867. # Dependencies to place before and after the objects being linked to
  23868. # create a shared library.
  23869. predep_objects=$lt_predep_objects_CXX
  23870. postdep_objects=$lt_postdep_objects_CXX
  23871. predeps=$lt_predeps_CXX
  23872. postdeps=$lt_postdeps_CXX
  23873. # The library search path used internally by the compiler when linking
  23874. # a shared library.
  23875. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  23876. # ### END LIBTOOL TAG CONFIG: CXX
  23877. _LT_EOF
  23878. ;;
  23879. esac
  23880. done # for ac_tag
  23881. as_fn_exit 0
  23882. _ACEOF
  23883. ac_clean_files=$ac_clean_files_save
  23884. test $ac_write_fail = 0 ||
  23885. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  23886. # configure is writing to config.log, and then calls config.status.
  23887. # config.status does its own redirection, appending to config.log.
  23888. # Unfortunately, on DOS this fails, as config.log is still kept open
  23889. # by configure, so config.status won't be able to write to it; its
  23890. # output is simply discarded. So we exec the FD to /dev/null,
  23891. # effectively closing config.log, so it can be properly (re)opened and
  23892. # appended to by config.status. When coming back to configure, we
  23893. # need to make the FD available again.
  23894. if test "$no_create" != yes; then
  23895. ac_cs_success=:
  23896. ac_config_status_args=
  23897. test "$silent" = yes &&
  23898. ac_config_status_args="$ac_config_status_args --quiet"
  23899. exec 5>/dev/null
  23900. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  23901. exec 5>>config.log
  23902. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  23903. # would make configure fail if this is the last instruction.
  23904. $ac_cs_success || as_fn_exit 1
  23905. fi
  23906. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  23907. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  23908. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  23909. fi
  23910. # Configuration results
  23911. { $as_echo "$as_me:${as_lineno-$LINENO}: result:
  23912. ##########################################################################
  23913. TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION})
  23914. ##########################################################################
  23915. libpcap: ${foundpcap} (${libpcap_version})
  23916. PF_RING libpcap ${pf_ring_found} ${pf_ring_lib}
  23917. libdnet: ${founddnet} ${libdnet_version}
  23918. autogen: ${AUTOGEN} (${AUTOGEN_VERSION})
  23919. Use libopts tearoff: ${enable_local_libopts}
  23920. 64bit counter support: ${use64bit_counters}
  23921. tcpdump binary path: ${tcpdump_path}
  23922. fragroute support: ${enable_fragroute}
  23923. tcpbridge support: ${enable_tcpbridge}
  23924. tcpliveplay support: ${enable_tcpliveplay}
  23925. Supported Packet Injection Methods (*):
  23926. Linux TX_RING: ${have_tx_ring}
  23927. Linux PF_PACKET: ${have_pf}
  23928. BSD BPF: ${have_bpf}
  23929. libdnet: ${have_libdnet}
  23930. pcap_inject: ${have_pcap_inject}
  23931. pcap_sendpacket: ${have_pcap_sendpacket} **
  23932. pcap_netmap ${have_pcap_netmap}
  23933. Linux/BSD netmap: ${have_netmap}
  23934. Tuntap device support: ${have_tuntap}
  23935. * In order of preference; see configure --help to override
  23936. ** Required for tcpbridge
  23937. " >&5
  23938. $as_echo "
  23939. ##########################################################################
  23940. TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION})
  23941. ##########################################################################
  23942. libpcap: ${foundpcap} (${libpcap_version})
  23943. PF_RING libpcap ${pf_ring_found} ${pf_ring_lib}
  23944. libdnet: ${founddnet} ${libdnet_version}
  23945. autogen: ${AUTOGEN} (${AUTOGEN_VERSION})
  23946. Use libopts tearoff: ${enable_local_libopts}
  23947. 64bit counter support: ${use64bit_counters}
  23948. tcpdump binary path: ${tcpdump_path}
  23949. fragroute support: ${enable_fragroute}
  23950. tcpbridge support: ${enable_tcpbridge}
  23951. tcpliveplay support: ${enable_tcpliveplay}
  23952. Supported Packet Injection Methods (*):
  23953. Linux TX_RING: ${have_tx_ring}
  23954. Linux PF_PACKET: ${have_pf}
  23955. BSD BPF: ${have_bpf}
  23956. libdnet: ${have_libdnet}
  23957. pcap_inject: ${have_pcap_inject}
  23958. pcap_sendpacket: ${have_pcap_sendpacket} **
  23959. pcap_netmap ${have_pcap_netmap}
  23960. Linux/BSD netmap: ${have_netmap}
  23961. Tuntap device support: ${have_tuntap}
  23962. * In order of preference; see configure --help to override
  23963. ** Required for tcpbridge
  23964. " >&6; }
  23965. case $host in
  23966. *-*-cygwin)
  23967. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Windows/Cygwin support is still somewhat experimental.
  23968. Please report any bugs! https://github.com/appneta/tcpreplay/issues" >&5
  23969. $as_echo "$as_me: WARNING: Windows/Cygwin support is still somewhat experimental.
  23970. Please report any bugs! https://github.com/appneta/tcpreplay/issues" >&2;}
  23971. ;;
  23972. esac